You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
1.0 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{$t as e,At as t,C as n,D as r,Dt as i,Et as a,Ht as o,I as s,It as c,Jt as l,Lt as u,Mt as d,Nt as f,O as p,Ot as m,Q as h,Qt as g,Rt as _,S as v,Ut as y,V as b,Vt as x,W as S,Wt as C,Xt as w,Y as T,Yt as E,Z as D,Zt as O,_t as k,an as A,at as j,b as M,bt as ee,cn as te,ct as ne,g as re,i as ie,in as N,jt as ae,k as oe,kt as se,ln as ce,nn as le,nt as ue,o as de,on as fe,ot as pe,p as me,q as he,qt as ge,rn as _e,sn as ve,st as P,un as ye,w as be,x as F,xt as xe}from"./vue.runtime.esm-bundler-6_koQ1g6.js";import{_ as Se,a as Ce,c as we,i as Te,l as I,o as Ee,s as De}from"./index-BKdX9aPN.js";import{t as Oe}from"./_plugin-vue_export-helper-S3RvzygF.js";import{c as L,i as ke,l as Ae,n as je,o as Me,r as Ne,s as Pe,t as Fe}from"./competitions-Chlt1yqd.js";import{t as Ie}from"./adminCompetition-C_OuGbfR.js";import{n as Le,r as Re,t as ze}from"./competitionBranding-Bz_llsts.js";async function Be(e,t){let{data:n}=await Te.get(`/competitions/${e}/form-schemas`,{params:t?{purpose:t}:{}});return n.data??[]}async function Ve(e,t){let{data:n}=await Te.get(`/competitions/${e}/form-schemas/${t}`),r=n?.data??n;if(!r||typeof r!=`object`||!(`id`in r))throw Error(`表单详情无效`);return r}async function He(e,t){let{data:n}=await Te.post(`/competitions/${e}/form-schemas`,t);return n}async function Ue(e,t,n){let{data:r}=await Te.patch(`/competitions/${e}/form-schemas/${t}`,n);return r}async function We(e,t){await Te.delete(`/competitions/${e}/form-schemas/${t}`)}function Ge(e){let t=e?.data??e;if(!t||typeof t!=`object`||!(`id`in t))throw Error(`渠道响应格式无效`);return t}async function Ke(e){let{data:t}=await Te.get(`/competitions/${e}/signup-channels`),n=t?.data??t;if(!Array.isArray(n))throw Error(`渠道列表响应格式无效`);return n}async function qe(e,t){let{data:n}=await Te.get(`/competitions/${e}/signup-channels/${t}`);return Ge(n)}async function Je(e,t){let{data:n}=await Te.post(`/competitions/${e}/signup-channels`,t);return Ge(n)}async function Ye(e,t,n){let{data:r}=await Te.put(`/competitions/${e}/signup-channels/${t}`,n);return Ge(r)}function Xe(e){if(!e||typeof e!=`object`)throw Error(`列表响应格式无效`);let t=e;if(Array.isArray(t.data)&&typeof t.current_page==`number`){let e=t.data;return{data:e,meta:{current_page:t.current_page,last_page:typeof t.last_page==`number`?t.last_page:1,per_page:typeof t.per_page==`number`?t.per_page:e.length||15,total:typeof t.total==`number`?t.total:e.length}}}throw Error(`列表响应格式无效`)}async function Ze(e,t){let{data:n}=await Te.get(`/competitions/${e}/applications`,{params:t});return Xe(n)}async function Qe(e,t){let{data:n}=await Te.get(`/competitions/${e}/applications/${t}`);if(!n||typeof n!=`object`)throw Error(`报名详情无效`);return n}async function $e(e,t,n,r){et((await Te.get(`/competitions/${e}/applications/${t}/files/${n}/download`,{responseType:`blob`})).data,r||`附件`)}function et(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function tt(e,t){if(!e)return t;let n=/filename\*=UTF-8''([^;]+)/i.exec(e);if(n?.[1])return decodeURIComponent(n[1]);let r=/filename="?([^";]+)"?/i.exec(e);return r?.[1]?r[1]:t}async function nt(e){if(Ce.isAxiosError(e)){let t=e.response?.data;if(t instanceof Blob){let e=await t.text();try{let t=JSON.parse(e);return Error(t.errors?.export?.[0]||t.errors?.part?.[0]||t.message||`导出失败`)}catch{}}if(t&&typeof t==`object`){let e=t;return Error(e.errors?.export?.[0]||e.errors?.part?.[0]||e.message||`导出失败`)}}return e instanceof Error?e:Error(`导出失败`)}function rt(e){return new Promise(t=>{window.setTimeout(t,e)})}async function it(e,t){try{let{data:n}=await Te.get(`/competitions/${e}/applications/export/meta`,{params:t});if(!n||typeof n!=`object`)throw Error(`导出信息无效`);return n}catch(e){throw await nt(e)}}async function at(e,t,n){let r;try{r=await Te.get(`/competitions/${e}/applications/export`,{params:{...t,part:n},responseType:`blob`,timeout:0})}catch(e){throw await nt(e)}let i=tt(r.headers[`content-disposition`],`报名信息导出_第${n}部分.zip`);et(r.data,i)}async function ot(e,t,n){let r=await it(e,t);for(let i=1;i<=r.part_count;i+=1)n?.(i,r.part_count),await at(e,t,i),i<r.part_count&&await rt(500);return r}function st(e){Object.getOwnPropertySymbols(e).forEach(t=>{ci[t]=e[t]})}function ct(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:pi}}function lt(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=pi){return e&&(s?(e.helper(Or),e.helper(Dt(e.inSSR,l))):e.helper(Et(e.inSSR,l)),o&&e.helper(Br)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function ut(e,t=pi){return{type:17,loc:t,elements:e}}function dt(e,t=pi){return{type:15,loc:t,properties:e}}function ft(e,t){return{type:16,loc:pi,key:E(e)?pt(e,!0):e,value:t}}function pt(e,t=!1,n=pi,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function mt(e,t){return{type:5,loc:t,content:E(e)?pt(e,!1,t):e}}function ht(e,t=pi){return{type:8,loc:t,children:e}}function gt(e,t=[],n=pi){return{type:14,loc:n,callee:e,arguments:t}}function _t(e,t=void 0,n=!1,r=!1,i=pi){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function vt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:pi}}function yt(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:pi}}function bt(e){return{type:21,body:e,loc:pi}}function xt(e){return{type:22,elements:e,loc:pi}}function St(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:pi}}function Ct(e,t){return{type:24,left:e,right:t,loc:pi}}function wt(e){return{type:25,expressions:e,loc:pi}}function Tt(e){return{type:26,returns:e,loc:pi}}function Et(e,t){return e||t?jr:Mr}function Dt(e,t){return e||t?kr:Ar}function Ot(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Et(r,e.isComponent)),t(Or),t(Dt(r,e.isComponent)))}function kt(e){return e>=97&&e<=122||e>=65&&e<=90}function At(e){return e===32||e===10||e===9||e===12||e===13}function jt(e){return e===47||e===62||At(e)}function Mt(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Nt(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Pt(e,t){let n=Nt(`MODE`,t),r=Nt(e,t);return n===3?r===!0:r!==!1}function Ft(e,t,n,...r){return Pt(e,t)}function It(e,t,n,...r){if(Nt(e,t)===`suppress-warning`)return;let{message:i,link:a}=yi[e],o=`(deprecation ${e}) ${typeof i==`function`?i(...r):i}${a?`
Details: ${a}`:``}`,s=SyntaxError(o);s.code=e,n&&(s.loc=n),t.onWarn(s)}function Lt(e){throw e}function Rt(e){}function zt(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}function Bt(e,t,n=!1,r=[],i=Object.create(null)){}function Vt(e,t,n){return!1}function Ht(e,t){if(e&&(e.type===`ObjectProperty`||e.type===`ArrayPattern`)){let e=t.length;for(;e--;){let n=t[e];if(n.type===`AssignmentExpression`)return!0;if(n.type!==`ObjectProperty`&&!n.type.endsWith(`Pattern`))break}}return!1}function Ut(e){let t=e.length;for(;t--;){let n=e[t];if(n.type===`NewExpression`)return!0;if(n.type!==`MemberExpression`)break}return!1}function Wt(e,t){for(let n of e.params)for(let e of Yt(n))t(e)}function Gt(e,t){let n=e.type===`SwitchCase`?e.consequent:e.body;for(let e of n)if(e.type===`VariableDeclaration`){if(e.declare)continue;for(let n of e.declarations)for(let e of Yt(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else Kt(e)?qt(e,!0,t):e.type===`SwitchStatement`&&Jt(e,!0,t)}function Kt(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function qt(e,t,n){let r=e.type===`ForStatement`?e.init:e.left;if(r&&r.type===`VariableDeclaration`&&(r.kind===`var`?t:!t))for(let e of r.declarations)for(let t of Yt(e.id))n(t)}function Jt(e,t,n){for(let r of e.cases){for(let e of r.consequent)if(e.type===`VariableDeclaration`&&(e.kind===`var`?t:!t))for(let t of e.declarations)for(let e of Yt(t.id))n(e);Gt(r,n)}}function Yt(e,t=[]){switch(e.type){case`Identifier`:t.push(e);break;case`MemberExpression`:let n=e;for(;n.type===`MemberExpression`;)n=n.object;t.push(n);break;case`ObjectPattern`:for(let n of e.properties)n.type===`RestElement`?Yt(n.argument,t):Yt(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&Yt(e,t)});break;case`RestElement`:Yt(e.argument,t);break;case`AssignmentPattern`:Yt(e.left,t);break}return t}function Xt(e){return Ti.includes(e.type)?Xt(e.expression):e}function Zt(e){switch(e){case`Teleport`:case`teleport`:return wr;case`Suspense`:case`suspense`:return Tr;case`KeepAlive`:case`keep-alive`:return Er;case`BaseTransition`:case`base-transition`:return Dr}}function Qt(e,t,n=t.length){return $t({offset:e.offset,line:e.line,column:e.column},t,n)}function $t(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)t.charCodeAt(e)===10&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function en(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function tn(e,t,n=!1){for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&(n||i.exp)&&(E(t)?i.name===t:t.test(i.name)))return i}}function nn(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name===`bind`&&(a.exp||r)&&rn(a.arg,t))return a}}function rn(e,t){return!!(e&&Ei(e)&&e.content===t)}function an(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function on(e){return e.type===5||e.type===2}function sn(e){return e.type===7&&e.name===`pre`}function cn(e){return e.type===7&&e.name===`slot`}function ln(e){return e.type===1&&e.tagType===3}function un(e){return e.type===1&&e.tagType===2}function dn(e,t=[]){if(e&&!E(e)&&e.type===14){let n=e.callee;if(!E(n)&&Bi.has(n))return dn(e.arguments[0],t.concat(e))}return[e,t]}function fn(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!E(i)&&i.type===14){let e=dn(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||E(i))r=dt([t]);else if(i.type===14){let e=i.arguments[0];!E(e)&&e.type===15?pn(t,e)||e.properties.unshift(t):i.callee===Xr?r=gt(n.helper(Gr),[dt([t]),i]):i.arguments.unshift(dt([t])),!r&&(r=i)}else i.type===15?(pn(t,i)||i.properties.unshift(t),r=i):(r=gt(n.helper(Gr),[dt([t]),i]),o&&o.callee===Yr&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function pn(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function mn(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function hn(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){let r=e.props[n];if(r.type===7&&(hn(r.arg,t)||hn(r.exp,t)))return!0}return e.children.some(e=>hn(e,t));case 11:return hn(e.source,t)?!0:e.children.some(e=>hn(e,t));case 9:return e.branches.some(e=>hn(e,t));case 10:return hn(e.condition,t)?!0:e.children.some(e=>hn(e,t));case 4:return!e.isStatic&&Oi(e.content)&&!!t[e.content];case 8:return e.children.some(e=>y(e)&&hn(e,t));case 5:case 12:return hn(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function gn(e){return e.type===14&&e.callee===oi?e.arguments[1].returns:e}function _n(e){for(let t=0;t<e.length;t++)if(!At(e.charCodeAt(t)))return!1;return!0}function vn(e){return e.type===2&&_n(e.content)||e.type===12&&vn(e.content)}function yn(e){return e.type===3||vn(e)}function eee(e){let t=e.loc,n=e.content,r=n.match(Vi);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return jn(e,!1,kn(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(ra,``).trim(),l=i.indexOf(c),u=c.match(na);if(u){c=c.replace(na,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function bn(e,t){return Gi.slice(e,t)}function xn(e){ta.inSFCRoot&&(Ki.innerLoc=kn(e+1,e+1)),On(Ki);let{tag:t,ns:n}=Ki;n===0&&Ui.isPreTag(t)&&Zi++,Ui.isVoidTag(t)?Cn(Ki,e):(ea.unshift(Ki),(n===1||n===2)&&(ta.inXML=!0)),Ki=null}function Sn(e,t,n){{let t=ea[0]&&ea[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=Ui.decodeEntities(e,!1))}let r=ea[0]||Wi,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,An(i.loc,n)):r.children.push({type:2,content:e,loc:kn(t,n)})}function Cn(e,t,n=!1){n?An(e.loc,wn(t,60)):An(e.loc,tee(t,62)+1),ta.inSFCRoot&&(e.children.length?e.innerLoc.end=d({},e.children[e.children.length-1].loc.end):e.innerLoc.end=d({},e.innerLoc.start),e.innerLoc.source=bn(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Qi||(r===`slot`?e.tagType=2:Tn(e)?e.tagType=3:nee(e)&&(e.tagType=1)),ta.inRCDATA||(e.children=En(a)),i===0&&Ui.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&Ui.isPreTag(r)&&Zi--,$i===e&&(Qi=ta.inVPre=!1,$i=null),ta.inXML&&(ea[0]?ea[0].ns:Ui.ns)===0&&(ta.inXML=!1);{let t=e.props;if(!ta.inSFCRoot&&Pt(`COMPILER_NATIVE_TEMPLATE`,Ui)&&e.tag===`template`&&!Tn(e)){let t=ea[0]||Wi,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Ft(`COMPILER_INLINE_TEMPLATE`,Ui,n.loc)&&e.children.length&&(n.value={type:2,content:bn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function tee(e,t){let n=e;for(;Gi.charCodeAt(n)!==t&&n<Gi.length-1;)n++;return n}function wn(e,t){let n=e;for(;Gi.charCodeAt(n)!==t&&n>=0;)n--;return n}function Tn({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&ia.has(t[e].name))return!0}return!1}function nee({tag:e,props:t}){if(Ui.isCustomElement(e))return!1;if(e===`component`||ree(e.charCodeAt(0))||Zt(e)||Ui.isBuiltInComponent&&Ui.isBuiltInComponent(e)||Ui.isNativeTag&&!Ui.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){let n=t[e];if(n.type===6){if(n.name===`is`&&n.value&&(n.value.content.startsWith(`vue:`)||Ft(`COMPILER_IS_ON_ELEMENT`,Ui,n.loc)))return!0}else if(n.name===`bind`&&rn(n.arg,`is`)&&Ft(`COMPILER_IS_ON_ELEMENT`,Ui,n.loc))return!0}return!1}function ree(e){return e>64&&e<91}function En(e){let t=Ui.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(Zi)i.content=i.content.replace(aa,`
`);else if(_n(i.content)){let a=e[r-1]&&e[r-1].type,o=e[r+1]&&e[r+1].type;!a||!o||t&&(a===3&&(o===3||o===1)||a===1&&(o===3||o===1&&iee(i.content)))?(n=!0,e[r]=null):i.content=` `}else t&&(i.content=Dn(i.content))}return n?e.filter(Boolean):e}function iee(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Dn(e){let t=``,n=!1;for(let r=0;r<e.length;r++)At(e.charCodeAt(r))?n||=(t+=` `,!0):(t+=e[r],n=!1);return t}function On(e){(ea[0]||Wi).children.push(e)}function kn(e,t){return{start:ta.getPos(e),end:t==null?t:ta.getPos(t),source:t==null?t:bn(e,t)}}function aee(e){return kn(e.start.offset,e.end.offset)}function An(e,t){e.end=ta.getPos(t),e.source=bn(e.start.offset,t)}function oee(e){let t={type:6,name:e.rawName,nameLoc:kn(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){let n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function jn(e,t=!1,n,r=0,i=0){return pt(e,t,n,r)}function Mn(e,t,n){Ui.onError(zt(e,kn(t,t),void 0,n))}function see(){ta.reset(),Ki=null,qi=null,Ji=``,Yi=-1,Xi=-1,ea.length=0}function Nn(e,t){if(see(),Gi=e,Ui=d({},Hi),t){let e;for(e in t)t[e]!=null&&(Ui[e]=t[e])}ta.mode=Ui.parseMode===`html`?1:Ui.parseMode===`sfc`?2:0,ta.inXML=Ui.ns===1||Ui.ns===2;let n=t&&t.delimiters;n&&(ta.delimiterOpen=Mt(n[0]),ta.delimiterClose=Mt(n[1]));let r=Wi=ct([],e);return ta.parse(Gi),r.loc=kn(0,e.length),r.children=En(r.children),Wi=null,r}function cee(e,t){Fn(e,void 0,t,!!Pn(e))}function Pn(e){let t=e.children.filter(e=>e.type!==3);return t.length===1&&t[0].type===1&&!un(t[0])?t[0]:null}function Fn(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t<a.length;t++){let s=a[t];if(s.type===1&&s.tagType===0){let e=r?0:In(s,n);if(e>0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&Rn(s,n)>=2){let t=zn(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:In(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,Fn(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)Fn(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;t<s.branches.length;t++)Fn(s.branches[t],e,n,s.branches[t].children.length===1,i)}let s=!1;if(o.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&u(e.codegenNode.children))e.codegenNode.children=c(ut(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!u(e.codegenNode.children)&&e.codegenNode.children.type===15){let t=l(e.codegenNode,`default`);t&&(t.returns=c(ut(t.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!u(t.codegenNode.children)&&t.codegenNode.children.type===15){let n=tn(e,`slot`,!0),r=n&&n.arg&&l(t.codegenNode,n.arg);r&&(r.returns=c(ut(r.returns)),s=!0)}}if(!s)for(let e of o)e.codegenNode=n.cache(e.codegenNode);function c(e){let t=n.cache(e);return t.needArraySpread=!0,t}function l(e,t){if(e.children&&!u(e.children)&&e.children.type===15){let n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function In(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=Rn(e,t);if(a===0)return n.set(e,0),0;a<r&&(r=a);for(let i=0;i<e.children.length;i++){let a=In(e.children[i],t);if(a===0)return n.set(e,0),0;a<r&&(r=a)}if(r>1)for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===7&&a.name===`bind`&&a.exp){let i=In(a.exp,t);if(i===0)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(e.props[t].type===7)return n.set(e,0),0;t.removeHelper(Or),t.removeHelper(Dt(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Et(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return In(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){let r=e.children[n];if(E(r)||w(r))continue;let i=In(r,t);if(i===0)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}function Ln(e,t){if(e.type===14&&!E(e.callee)&&oa.has(e.callee)){let n=e.arguments[0];if(n.type===4)return In(n,t);if(n.type===14)return Ln(n,t)}return 0}function Rn(e,t){let n=3,r=zn(e);if(r&&r.type===15){let{properties:e}=r;for(let r=0;r<e.length;r++){let{key:i,value:a}=e[r],o=In(i,t);if(o===0)return o;o<n&&(n=o);let s;if(s=a.type===4?In(a,t):a.type===14?Ln(a,t):0,s===0)return s;s<n&&(n=s)}}return n}function zn(e){let t=e.codegenNode;if(t.type===13)return t.props}function Bn(e,{filename:n=``,prefixIdentifiers:r=!1,hoistStatic:a=!1,hmr:o=!1,cacheHandlers:s=!1,nodeTransforms:c=[],directiveTransforms:l={},transformHoist:u=null,isBuiltInComponent:d=se,isCustomElement:f=se,expressionPlugins:p=[],scopeId:m=null,slotted:h=!0,ssr:g=!1,inSSR:_=!1,ssrCssVars:v=``,bindingMetadata:y=i,inline:b=!1,isTS:x=!1,onError:S=Lt,onWarn:C=Rt,compatConfig:w}){let T=n.replace(/\?.*$/,``).match(/([^/\\]+)\.\w+$/),D={filename:n,selfName:T&&ae(t(T[1])),prefixIdentifiers:r,hoistStatic:a,hmr:o,cacheHandlers:s,nodeTransforms:c,directiveTransforms:l,transformHoist:u,isBuiltInComponent:d,isCustomElement:f,expressionPlugins:p,scopeId:m,slotted:h,ssr:g,inSSR:_,ssrCssVars:v,bindingMetadata:y,inline:b,isTS:x,onError:S,onWarn:C,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=D.helpers.get(e)||0;return D.helpers.set(e,t+1),e},removeHelper(e){let t=D.helpers.get(e);if(t){let n=t-1;n?D.helpers.set(e,n):D.helpers.delete(e)}},helperString(e){return`_${ci[D.helper(e)]}`},replaceNode(e){D.parent.children[D.childIndex]=D.currentNode=e},removeNode(e){let t=D.parent.children,n=e?t.indexOf(e):D.currentNode?D.childIndex:-1;!e||e===D.currentNode?(D.currentNode=null,D.onNodeRemoved()):D.childIndex>n&&(D.childIndex--,D.onNodeRemoved()),D.parent.children.splice(n,1)},onNodeRemoved:se,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){E(e)&&(e=pt(e)),D.hoists.push(e);let t=pt(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=yt(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function Vn(e,t){let n=Bn(e,t);Hn(e,n),t.hoistStatic&&cee(e,n),t.ssr||lee(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function lee(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=Pn(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&Ot(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=lt(t,n(Cr),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function uee(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let i=e.children[n];E(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Hn(i,t))}}function Hn(e,t){t.currentNode=e;let{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){let a=n[i](e,t);if(a&&(u(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Nr);break;case 5:t.ssr||t.helper(Wr);break;case 9:for(let n=0;n<e.branches.length;n++)Hn(e.branches[n],t);break;case 10:case 11:case 1:case 0:uee(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function Un(e,t){let n=E(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(cn))return;let a=[];for(let o=0;o<i.length;o++){let s=i[o];if(s.type===7&&n(s.name)){i.splice(o,1),o--;let n=t(e,s,r);n&&a.push(n)}}return a}}}function dee(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${ci[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(`
`+` `.repeat(e),0)}return p}function Wn(e,t={}){let n=dee(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(fee(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(ca).join(`, `)} } = _Vue
`,-1),c())),e.components.length&&(Gn(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Gn(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Gn(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t<e.temps;t++)i(`${t>0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),c()),u||i(`return `),e.codegenNode?Jn(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function fee(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l}
`,-1),e.hoists.length&&i(`const { ${[jr,Mr,Nr,Pr,Fr].filter(e=>u.includes(e)).map(ca).join(`, `)} } = _Vue
`,-1)),pee(e.hoists,t),a(),i(`return `)}function Gn(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?zr:t===`component`?Ir:Rr);for(let n=0;n<e.length;n++){let s=e[n],c=s.endsWith(`__self`);c&&(s=s.slice(0,-6)),r(`const ${mn(s,t)} = ${o}(${JSON.stringify(s)}${c?`, true`:``})${a?`!`:``}`),n<e.length-1&&i()}}function pee(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){let a=e[i];a&&(n(`const _hoisted_${i+1} = `),Jn(a,t),r())}t.pure=!1}function Kn(e,t){let n=e.length>3||!1;t.push(`[`),n&&t.indent(),qn(e,t,n),n&&t.deindent(),t.push(`]`)}function qn(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;o<e.length;o++){let s=e[o];E(s)?i(s,-3):u(s)?Kn(s,t):Jn(s,t),o<e.length-1&&(n?(r&&i(`,`),a()):r&&i(`, `))}}function Jn(e,t){if(E(e)){t.push(e,-3);return}if(w(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Jn(e.codegenNode,t);break;case 2:mee(e,t);break;case 4:Yn(e,t);break;case 5:hee(e,t);break;case 12:Jn(e.codegenNode,t);break;case 8:Xn(e,t);break;case 3:_ee(e,t);break;case 13:vee(e,t);break;case 14:bee(e,t);break;case 15:xee(e,t);break;case 17:Zn(e,t);break;case 18:Qn(e,t);break;case 19:See(e,t);break;case 20:Cee(e,t);break;case 21:qn(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:}}function mee(e,t){t.push(JSON.stringify(e.content),-3,e)}function Yn(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function hee(e,t){let{push:n,helper:r,pure:i}=t;i&&n(sa),n(`${r(Wr)}(`),Jn(e.content,t),n(`)`)}function Xn(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];E(r)?t.push(r,-3):Jn(r,t)}}function gee(e,t){let{push:n}=t;e.type===8?(n(`[`),Xn(e,t),n(`]`)):e.isStatic?n(Oi(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}function _ee(e,t){let{push:n,helper:r,pure:i}=t;i&&n(sa),n(`${r(Nr)}(${JSON.stringify(e.content)})`,-3,e)}function vee(e,t){let{push:n,helper:r,pure:i}=t,{tag:a,props:o,children:s,patchFlag:c,dynamicProps:l,directives:u,isBlock:d,disableTracking:f,isComponent:p}=e,m;c&&(m=String(c)),u&&n(r(Br)+`(`),d&&n(`(${r(Or)}(${f?`true`:``}), `),i&&n(sa),n(r(d?Dt(t.inSSR,p):Et(t.inSSR,p))+`(`,-2,e),qn(yee([a,o,s,m,l]),t),n(`)`),d&&n(`)`),u&&(n(`, `),Jn(u,t),n(`)`))}function yee(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(e=>e||`null`)}function bee(e,t){let{push:n,helper:r,pure:i}=t,a=E(e.callee)?e.callee:r(e.callee);i&&n(sa),n(a+`(`,-2,e),qn(e.arguments,t),n(`)`)}function xee(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e<o.length;e++){let{key:r,value:i}=o[e];gee(r,t),n(`: `),Jn(i,t),e<o.length-1&&(n(`,`),a())}s&&i(),n(s?`}`:` }`)}function Zn(e,t){Kn(e.elements,t)}function Qn(e,t){let{push:n,indent:r,deindent:i}=t,{params:a,returns:o,body:s,newline:c,isSlot:l}=e;l&&n(`_${ci[ri]}(`),n(`(`,-2,e),u(a)?qn(a,t):a&&Jn(a,t),n(`) => `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),u(o)?Kn(o,t):Jn(o,t)):s&&Jn(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function See(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Oi(n.content);e&&o(`(`),Yn(n,t),e&&o(`)`)}else o(`(`),Jn(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),Jn(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,Jn(i,t),u||t.indentLevel--,a&&c(!0)}function Cee(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(ei)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),Jn(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ei)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function $n(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function er(e){return E(e)?e:e.type===4?e.content:e.children.map(er).join(``)}function tr(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(zt(28,t.loc)),t.exp=pt(`true`,!1,r)}if(t.name===`if`){let i=nr(e,t),a={type:9,loc:aee(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&yn(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(zt(30,e.loc)),n.removeNode();let i=nr(e,t);o.branches.push(i);let a=r&&r(o,i,!1);Hn(i,n),a&&a(),n.currentNode=null}else n.onError(zt(30,e.loc));break}}}function nr(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!tn(e,`for`)?e.children:[e],userKey:nn(e,`key`),isTemplateIf:n}}function rr(e,t,n){return e.condition?vt(e.condition,ir(e,t,n),gt(n.helper(Nr),[`""`,`true`])):ir(e,t,n)}function ir(e,t,n){let{helper:r}=n,i=ft(`key`,pt(`${t}`,!1,pi,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return fn(e,i,n),e}else return lt(n,r(Cr),dt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=gn(e);return t.type===13&&Ot(t,n),fn(t,i,n),e}}function ar(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}function or(e,t,n,r){if(!t.exp){n.onError(zt(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(zt(32,t.loc));return}sr(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:ln(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function sr(e,t){e.finalized||=!0}function cr({value:e,key:t,index:n},r=[]){return wee([e,t,n,...r])}function wee(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||pt(`_`.repeat(t+1),!1))}function lr(e,t,n=ha){t.helper(ri);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=tn(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Ei(e)&&(s=!0),a.push(ft(e||pt(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!ln(i)||!(m=tn(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(zt(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=pt(`default`,!0),exp:v,loc:y}=m,b;Ei(_)?b=_?_.content:`default`:s=!0;let x=tn(i,`for`),S=n(v,x,h,g),C,w;if(C=tn(i,`if`))s=!0,o.push(vt(C.exp,ur(_,S,p++),fa));else if(w=tn(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],yn(i)););if(i&&ln(i)&&tn(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?vt(w.exp,ur(_,S,p++),fa):ur(_,S,p++)}else t.onError(zt(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(sr(e,t),o.push(gt(t.helper(Vr),[e.source,_t(cr(e),ur(_,S),!0)]))):t.onError(zt(32,x.loc))}else{if(b){if(f.has(b)){t.onError(zt(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(ft(_,S))}}if(!c){let e=(e,r)=>{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),ft(`default`,a)};l?d.length&&!d.every(vn)&&(u?t.onError(zt(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:dr(e.children)?3:1,h=dt(a.concat(ft(`_`,pt(m+``,!1))),i);return o.length&&(h=gt(t.helper(Ur),[h,ut(o)])),{slots:h,hasDynamicSlots:s}}function ur(e,t,n){let r=[ft(`name`,e),ft(`fn`,t)];return n!=null&&r.push(ft(`key`,pt(String(n),!0))),dt(r)}function dr(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||dr(n.children))return!0;break;case 9:if(dr(n.branches))return!0;break;case 10:case 11:if(dr(n.children))return!0;break}}return!1}function fr(e,t,n=!1){let{tag:r}=e,i=gr(r),a=nn(e,`is`,!1,!0);if(a)if(i||Pt(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&pt(a.value.content,!0):(e=a.exp,e||=pt(`is`,!1,a.arg.loc)),e)return gt(t.helper(Lr),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=Zt(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Ir),t.components.add(r),mn(r,`component`))}function pr(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,v=!1,y=!1,b=!1,x=!1,S=[],T=e=>{l.length&&(u.push(dt(mr(l),s)),l=[]),e&&u.push(e)},E=()=>{t.scopes.vFor>0&&l.push(ft(pt(`ref_for`,!0),pt(`true`)))},D=({key:e,value:n})=>{if(Ei(e)){let a=e.content,o=C(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ge(a)&&(y=!0),o&&ge(a)&&(x=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&In(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?v=!0:a!==`key`&&!S.includes(a)&&S.push(a),r&&(a===`class`||a===`style`)&&!S.includes(a)&&S.push(a)}else b=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c;if(n===`ref`&&(h=!0,E()),n===`is`&&(gr(o)||i&&i.content.startsWith(`vue:`)||Pt(`COMPILER_IS_ON_ELEMENT`,t)))continue;l.push(ft(pt(n,!0,r),pt(i?i.content:``,!0,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:v}=c,y=n===`bind`,x=n===`on`;if(n===`slot`){r||t.onError(zt(40,g));continue}if(n===`once`||n===`memo`||n===`is`||y&&rn(i,`is`)&&(gr(o)||Pt(`COMPILER_IS_ON_ELEMENT`,t))||x&&a)continue;if((y&&rn(i,`key`)||x&&f&&rn(i,`vue:before-update`))&&(p=!0),y&&rn(i,`ref`)&&E(),!i&&(y||x)){if(b=!0,h)if(y){if(T(),Pt(`COMPILER_V_BIND_OBJECT_ORDER`,t)){u.unshift(h);continue}E(),T(),u.push(h)}else T({type:14,loc:g,callee:t.helper(Xr),arguments:r?[h]:[h,`true`]});else t.onError(zt(y?34:35,g));continue}y&&v.some(e=>e.content===`prop`)&&(m|=32);let S=t.directiveTransforms[n];if(S){let{props:n,needRuntime:r}=S(c,e,t);!a&&n.forEach(D),x&&i&&!Ei(i)?T(dt(n,s)):l.push(...n),r&&(d.push(c),w(r)&&ga.set(c,r))}else _(n)||(d.push(c),f&&(p=!0))}}let O;if(u.length?(T(),O=u.length>1?gt(t.helper(Gr),u,s):u[0]):l.length&&(O=dt(mr(l),s)),b?m|=16:(g&&!r&&(m|=2),v&&!r&&(m|=4),S.length&&(m|=8),y&&(m|=32)),!p&&(m===0||m===32)&&(h||x||d.length>0)&&(m|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<O.properties.length;t++){let i=O.properties[t].key;Ei(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=O.properties[e],a=O.properties[n];r?O=gt(t.helper(Jr),[O]):(i&&!Ei(i.value)&&(i.value=gt(t.helper(Kr),[i.value])),a&&(v||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=gt(t.helper(qr),[a.value])));break;case 14:break;default:O=gt(t.helper(Jr),[gt(t.helper(Yr),[O])]);break}return{props:O,directives:d,patchFlag:m,dynamicPropNames:S,shouldUseBlock:p}}function mr(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||C(a))&&Tee(o,i):(t.set(a,i),n.push(i))}return n}function Tee(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=ut([e.value,t.value],e.loc)}function hr(e,t){let n=[],r=ga.get(e);r?n.push(t.helperString(r)):(t.helper(Rr),t.directives.add(e.name),n.push(mn(e.name,`directive`)));let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=pt(`true`,!1,i);n.push(dt(e.modifiers.map(e=>ft(e,t)),i))}return ut(n,e.loc)}function Eee(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function gr(e){return e===`component`||e===`Component`}function _r(e,n){let r=`"default"`,i,a=[];for(let n=0;n<e.props.length;n++){let i=e.props[n];i.type===6?i.value&&(i.name===`name`?r=JSON.stringify(i.value.content):(i.name=t(i.name),a.push(i))):i.name===`bind`&&rn(i.arg,`name`)?i.exp?r=i.exp:i.arg&&i.arg.type===4&&(r=i.exp=pt(t(i.arg.content),!1,i.arg.loc)):(i.name===`bind`&&i.arg&&Ei(i.arg)&&(i.arg.content=t(i.arg.content)),a.push(i))}if(a.length>0){let{props:t,directives:r}=pr(e,n,a,!1,!1);i=t,r.length&&n.onError(zt(36,r[0].loc))}return{slotName:r,slotProps:i}}function vr(e=[]){return{props:e}}function yr(e,t){if(e.type===4)br(e,t);else for(let n=0;n<e.children.length;n++){let r=e.children[n];typeof r==`object`&&(r.type===4?br(r,t):r.type===8?yr(e,t):r.type===5&&yr(r.content,t))}}function br(e,t){let n=e.content,r=!1,i=!1,a=!1,o=!1,s=0,c=0,l=0,u=0,d,f,p,m,h=[];for(p=0;p<n.length;p++)if(f=d,d=n.charCodeAt(p),r)d===39&&f!==92&&(r=!1);else if(i)d===34&&f!==92&&(i=!1);else if(a)d===96&&f!==92&&(a=!1);else if(o)d===47&&f!==92&&(o=!1);else if(d===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!s&&!c&&!l)m===void 0?(u=p+1,m=n.slice(0,p).trim()):g();else{switch(d){case 34:i=!0;break;case 39:r=!0;break;case 96:a=!0;break;case 40:l++;break;case 41:l--;break;case 91:c++;break;case 93:c--;break;case 123:s++;break;case 125:s--;break}if(d===47){let e=p-1,t;for(;e>=0&&(t=n.charAt(e),t===` `);e--);(!t||!Ea.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p<h.length;p++)m=Dee(m,h[p],t);e.content=m,e.ast=void 0}}function Dee(e,t,n){n.helper(zr);let r=t.indexOf(`(`);if(r<0)return n.filters.add(t),`${mn(t,`filter`)}(${e})`;{let i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${mn(i,`filter`)}(${e}${a===`)`?a:`,`+a}`}}function xr(e){return[[Aa,wa,ua,ka,da,...[Da],...[],va,_a,pa,Sa],{on:ya,bind:ba,model:Ta}]}function Sr(e,t={}){let n=t.onError||Lt,r=t.mode===`module`;t.prefixIdentifiers===!0?n(zt(48)):r&&n(zt(49)),t.cacheHandlers&&n(zt(50)),t.scopeId&&!r&&n(zt(51));let i=d({},t,{prefixIdentifiers:!1}),a=E(e)?Nn(e,i):e,[o,s]=xr();return Vn(a,d({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:d({},s,t.directiveTransforms||{})})),Wn(a,i)}var Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na=ve((()=>{c(),Cr=Symbol(``),wr=Symbol(``),Tr=Symbol(``),Er=Symbol(``),Dr=Symbol(``),Or=Symbol(``),kr=Symbol(``),Ar=Symbol(``),jr=Symbol(``),Mr=Symbol(``),Nr=Symbol(``),Pr=Symbol(``),Fr=Symbol(``),Ir=Symbol(``),Lr=Symbol(``),Rr=Symbol(``),zr=Symbol(``),Br=Symbol(``),Vr=Symbol(``),Hr=Symbol(``),Ur=Symbol(``),Wr=Symbol(``),Gr=Symbol(``),Kr=Symbol(``),qr=Symbol(``),Jr=Symbol(``),Yr=Symbol(``),Xr=Symbol(``),Zr=Symbol(``),Qr=Symbol(``),$r=Symbol(``),ei=Symbol(``),ti=Symbol(``),ni=Symbol(``),ri=Symbol(``),ii=Symbol(``),ai=Symbol(``),oi=Symbol(``),si=Symbol(``),ci={[Cr]:`Fragment`,[wr]:`Teleport`,[Tr]:`Suspense`,[Er]:`KeepAlive`,[Dr]:`BaseTransition`,[Or]:`openBlock`,[kr]:`createBlock`,[Ar]:`createElementBlock`,[jr]:`createVNode`,[Mr]:`createElementVNode`,[Nr]:`createCommentVNode`,[Pr]:`createTextVNode`,[Fr]:`createStaticVNode`,[Ir]:`resolveComponent`,[Lr]:`resolveDynamicComponent`,[Rr]:`resolveDirective`,[zr]:`resolveFilter`,[Br]:`withDirectives`,[Vr]:`renderList`,[Hr]:`renderSlot`,[Ur]:`createSlots`,[Wr]:`toDisplayString`,[Gr]:`mergeProps`,[Kr]:`normalizeClass`,[qr]:`normalizeStyle`,[Jr]:`normalizeProps`,[Yr]:`guardReactiveProps`,[Xr]:`toHandlers`,[Zr]:`camelize`,[Qr]:`capitalize`,[$r]:`toHandlerKey`,[ei]:`setBlockTracking`,[ti]:`pushScopeId`,[ni]:`popScopeId`,[ri]:`withCtx`,[ii]:`unref`,[ai]:`isRef`,[oi]:`withMemo`,[si]:`isMemoSame`},li={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},ui={ROOT:0,0:`ROOT`,ELEMENT:1,1:`ELEMENT`,TEXT:2,2:`TEXT`,COMMENT:3,3:`COMMENT`,SIMPLE_EXPRESSION:4,4:`SIMPLE_EXPRESSION`,INTERPOLATION:5,5:`INTERPOLATION`,ATTRIBUTE:6,6:`ATTRIBUTE`,DIRECTIVE:7,7:`DIRECTIVE`,COMPOUND_EXPRESSION:8,8:`COMPOUND_EXPRESSION`,IF:9,9:`IF`,IF_BRANCH:10,10:`IF_BRANCH`,FOR:11,11:`FOR`,TEXT_CALL:12,12:`TEXT_CALL`,VNODE_CALL:13,13:`VNODE_CALL`,JS_CALL_EXPRESSION:14,14:`JS_CALL_EXPRESSION`,JS_OBJECT_EXPRESSION:15,15:`JS_OBJECT_EXPRESSION`,JS_PROPERTY:16,16:`JS_PROPERTY`,JS_ARRAY_EXPRESSION:17,17:`JS_ARRAY_EXPRESSION`,JS_FUNCTION_EXPRESSION:18,18:`JS_FUNCTION_EXPRESSION`,JS_CONDITIONAL_EXPRESSION:19,19:`JS_CONDITIONAL_EXPRESSION`,JS_CACHE_EXPRESSION:20,20:`JS_CACHE_EXPRESSION`,JS_BLOCK_STATEMENT:21,21:`JS_BLOCK_STATEMENT`,JS_TEMPLATE_LITERAL:22,22:`JS_TEMPLATE_LITERAL`,JS_IF_STATEMENT:23,23:`JS_IF_STATEMENT`,JS_ASSIGNMENT_EXPRESSION:24,24:`JS_ASSIGNMENT_EXPRESSION`,JS_SEQUENCE_EXPRESSION:25,25:`JS_SEQUENCE_EXPRESSION`,JS_RETURN_STATEMENT:26,26:`JS_RETURN_STATEMENT`},di={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},fi={NOT_CONSTANT:0,0:`NOT_CONSTANT`,CAN_SKIP_PATCH:1,1:`CAN_SKIP_PATCH`,CAN_CACHE:2,2:`CAN_CACHE`,CAN_STRINGIFY:3,3:`CAN_STRINGIFY`},pi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},mi=new Uint8Array([123,123]),hi=new Uint8Array([125,125]),gi={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},_i=class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer=``,this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=mi,this.delimiterClose=hi,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=mi,this.delimiterClose=hi}getPos(e){let t=1,n=e+1,r=this.newlines.length,i=-1;if(r>100){let t=-1,n=r;for(;t+1<n;){let r=t+n>>>1;this.newlines[r]<e?t=r:n=r}i=t}else for(let t=r-1;t>=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?jt(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||At(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.sectionStart=t+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===gi.TitleEnd||this.currentSequence===gi.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===60)}stateCDATASequence(e){e===gi.Cdata[this.sequenceIndex]?++this.sequenceIndex===gi.Cdata.length&&(this.state=28,this.currentSequence=gi.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){let t=this.buffer.charCodeAt(this.index);if(t===10&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===gi.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):kt(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){jt(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(jt(e)){let t=this.buffer.slice(this.sectionStart,this.index);t!==`template`&&this.enterRCDATA(Mt(`</`+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){At(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=kt(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||At(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):At(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):At(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||jt(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||jt(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||jt(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||jt(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||jt(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):At(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):At(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){At(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=gi.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===gi.ScriptEnd[3]?this.startSpecial(gi.ScriptEnd,4):e===gi.StyleEnd[3]?this.startSpecial(gi.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===gi.TitleEnd[3]?this.startSpecial(gi.TitleEnd,4):e===gi.TextareaEnd[3]?this.startSpecial(gi.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){let e=this.buffer.charCodeAt(this.index);switch(e===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity();break}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===gi.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}},vi={COMPILER_IS_ON_ELEMENT:`COMPILER_IS_ON_ELEMENT`,COMPILER_V_BIND_SYNC:`COMPILER_V_BIND_SYNC`,COMPILER_V_BIND_OBJECT_ORDER:`COMPILER_V_BIND_OBJECT_ORDER`,COMPILER_V_ON_NATIVE:`COMPILER_V_ON_NATIVE`,COMPILER_V_IF_V_FOR_PRECEDENCE:`COMPILER_V_IF_V_FOR_PRECEDENCE`,COMPILER_NATIVE_TEMPLATE:`COMPILER_NATIVE_TEMPLATE`,COMPILER_INLINE_TEMPLATE:`COMPILER_INLINE_TEMPLATE`,COMPILER_FILTERS:`COMPILER_FILTERS`},yi={COMPILER_IS_ON_ELEMENT:{message:`Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`,link:`https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-model.html`},COMPILER_V_BIND_OBJECT_ORDER:{message:`v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-bind.html`},COMPILER_V_ON_NATIVE:{message:`.native modifier for v-on has been removed as is no longer necessary.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:`v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`},COMPILER_NATIVE_TEMPLATE:{message:`<template> with no special directives will render as a native template element instead of its inner content in Vue 3.`},COMPILER_INLINE_TEMPLATE:{message:`"inline-template" has been removed in Vue 3.`,link:`https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`},COMPILER_FILTERS:{message:`filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`,link:`https://v3-migration.vuejs.org/breaking-changes/filters.html`}},bi={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:`ABRUPT_CLOSING_OF_EMPTY_COMMENT`,CDATA_IN_HTML_CONTENT:1,1:`CDATA_IN_HTML_CONTENT`,DUPLICATE_ATTRIBUTE:2,2:`DUPLICATE_ATTRIBUTE`,END_TAG_WITH_ATTRIBUTES:3,3:`END_TAG_WITH_ATTRIBUTES`,END_TAG_WITH_TRAILING_SOLIDUS:4,4:`END_TAG_WITH_TRAILING_SOLIDUS`,EOF_BEFORE_TAG_NAME:5,5:`EOF_BEFORE_TAG_NAME`,EOF_IN_CDATA:6,6:`EOF_IN_CDATA`,EOF_IN_COMMENT:7,7:`EOF_IN_COMMENT`,EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:`EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT`,EOF_IN_TAG:9,9:`EOF_IN_TAG`,INCORRECTLY_CLOSED_COMMENT:10,10:`INCORRECTLY_CLOSED_COMMENT`,INCORRECTLY_OPENED_COMMENT:11,11:`INCORRECTLY_OPENED_COMMENT`,INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:`INVALID_FIRST_CHARACTER_OF_TAG_NAME`,MISSING_ATTRIBUTE_VALUE:13,13:`MISSING_ATTRIBUTE_VALUE`,MISSING_END_TAG_NAME:14,14:`MISSING_END_TAG_NAME`,MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:`MISSING_WHITESPACE_BETWEEN_ATTRIBUTES`,NESTED_COMMENT:16,16:`NESTED_COMMENT`,UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:`UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME`,UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:`UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE`,UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:`UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME`,UNEXPECTED_NULL_CHARACTER:20,20:`UNEXPECTED_NULL_CHARACTER`,UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:`UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME`,UNEXPECTED_SOLIDUS_IN_TAG:22,22:`UNEXPECTED_SOLIDUS_IN_TAG`,X_INVALID_END_TAG:23,23:`X_INVALID_END_TAG`,X_MISSING_END_TAG:24,24:`X_MISSING_END_TAG`,X_MISSING_INTERPOLATION_END:25,25:`X_MISSING_INTERPOLATION_END`,X_MISSING_DIRECTIVE_NAME:26,26:`X_MISSING_DIRECTIVE_NAME`,X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:`X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END`,X_V_IF_NO_EXPRESSION:28,28:`X_V_IF_NO_EXPRESSION`,X_V_IF_SAME_KEY:29,29:`X_V_IF_SAME_KEY`,X_V_ELSE_NO_ADJACENT_IF:30,30:`X_V_ELSE_NO_ADJACENT_IF`,X_V_FOR_NO_EXPRESSION:31,31:`X_V_FOR_NO_EXPRESSION`,X_V_FOR_MALFORMED_EXPRESSION:32,32:`X_V_FOR_MALFORMED_EXPRESSION`,X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:`X_V_FOR_TEMPLATE_KEY_PLACEMENT`,X_V_BIND_NO_EXPRESSION:34,34:`X_V_BIND_NO_EXPRESSION`,X_V_ON_NO_EXPRESSION:35,35:`X_V_ON_NO_EXPRESSION`,X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:`X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET`,X_V_SLOT_MIXED_SLOT_USAGE:37,37:`X_V_SLOT_MIXED_SLOT_USAGE`,X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:`X_V_SLOT_DUPLICATE_SLOT_NAMES`,X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:`X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN`,X_V_SLOT_MISPLACED:40,40:`X_V_SLOT_MISPLACED`,X_V_MODEL_NO_EXPRESSION:41,41:`X_V_MODEL_NO_EXPRESSION`,X_V_MODEL_MALFORMED_EXPRESSION:42,42:`X_V_MODEL_MALFORMED_EXPRESSION`,X_V_MODEL_ON_SCOPE_VARIABLE:43,43:`X_V_MODEL_ON_SCOPE_VARIABLE`,X_V_MODEL_ON_PROPS:44,44:`X_V_MODEL_ON_PROPS`,X_V_MODEL_ON_CONST:45,45:`X_V_MODEL_ON_CONST`,X_INVALID_EXPRESSION:46,46:`X_INVALID_EXPRESSION`,X_KEEP_ALIVE_INVALID_CHILDREN:47,47:`X_KEEP_ALIVE_INVALID_CHILDREN`,X_PREFIX_ID_NOT_SUPPORTED:48,48:`X_PREFIX_ID_NOT_SUPPORTED`,X_MODULE_MODE_NOT_SUPPORTED:49,49:`X_MODULE_MODE_NOT_SUPPORTED`,X_CACHE_HANDLER_NOT_SUPPORTED:50,50:`X_CACHE_HANDLER_NOT_SUPPORTED`,X_SCOPE_ID_NOT_SUPPORTED:51,51:`X_SCOPE_ID_NOT_SUPPORTED`,X_VNODE_HOOKS:52,52:`X_VNODE_HOOKS`,X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:`X_V_BIND_INVALID_SAME_NAME_ARGUMENT`,__EXTEND_POINT__:54,54:`__EXTEND_POINT__`},xi={0:`Illegal comment.`,1:`CDATA section is allowed only in XML context.`,2:`Duplicate attribute.`,3:`End tag cannot have attributes.`,4:`Illegal '/' in tags.`,5:`Unexpected EOF in tag.`,6:`Unexpected EOF in CDATA section.`,7:`Unexpected EOF in comment.`,8:`Unexpected EOF in script.`,9:`Unexpected EOF in tag.`,10:`Incorrectly closed comment.`,11:`Incorrectly opened comment.`,12:`Illegal tag name. Use '&lt;' to print '<'.`,13:`Attribute value was expected.`,14:`End tag name was expected.`,15:`Whitespace was expected.`,16:`Unexpected '<!--' in comment.`,17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:`Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (\`).`,19:`Attribute name cannot start with '='.`,21:`'<?' is allowed only in XML context.`,20:`Unexpected null character.`,22:`Illegal '/' in tags.`,23:`Invalid end tag.`,24:`Element is missing end tag.`,25:`Interpolation end sign was not found.`,27:`End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.`,26:`Legal directive name was expected.`,28:`v-if/v-else-if is missing expression.`,29:`v-if/else branches must use unique keys.`,30:`v-else/v-else-if has no adjacent v-if or v-else-if.`,31:`v-for is missing expression.`,32:`v-for has invalid expression.`,33:`<template v-for> key should be placed on the <template> tag.`,34:`v-bind is missing expression.`,53:`v-bind with same-name shorthand only allows static argument.`,35:`v-on is missing expression.`,36:`Unexpected custom directive on <slot> outlet.`,37:`Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,38:`Duplicate slot names found. `,39:`Extraneous children found when component already has explicitly named default slot. These children will be ignored.`,40:`v-slot can only be used on components or <template> tags.`,41:`v-model is missing expression.`,42:`v-model value must be a valid JavaScript member expression.`,43:`v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:`v-model cannot be used on a const binding because it is not writable.`,46:`Error parsing JavaScript expression: `,47:`<KeepAlive> expects exactly one child component.`,52:`@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,48:`"prefixIdentifiers" option is not supported in this build of compiler.`,49:`ES module mode is not supported in this build of compiler.`,50:`"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,51:`"scopeId" option is only supported in module mode.`,54:``},Si=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Ci=e=>e&&(e.type===`ObjectProperty`||e.type===`ObjectMethod`)&&!e.computed,wi=(e,t)=>Ci(t)&&t.key===e,Ti=[`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`],Ei=e=>e.type===4&&e.isStatic,Di=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Oi=e=>!Di.test(e),ki=/[A-Za-z_$\xA0-\uFFFF]/,Ai=/[\.\?\w$\xA0-\uFFFF]/,ji=/\s+[.[]\s*|\s*[.[]\s+/g,Mi=e=>e.type===4?e.content:e.loc.source,Ni=e=>{let t=Mi(e).trim().replace(ji,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e<t.length;e++){let s=t.charAt(e);switch(n){case 0:if(s===`[`)r.push(n),n=1,i++;else if(s===`(`)r.push(n),n=2,a++;else if(!(e===0?ki:Ai).test(s))return!1;break;case 1:s===`'`||s===`"`||s==="`"?(r.push(n),n=3,o=s):s===`[`?i++:s===`]`&&(--i||(n=r.pop()));break;case 2:if(s===`'`||s===`"`||s==="`")r.push(n),n=3,o=s;else if(s===`(`)a++;else if(s===`)`){if(e===t.length-1)return!1;--a||(n=r.pop())}break;case 3:s===o&&(n=r.pop(),o=null);break}}return!i&&!a},Pi=se,Fi=Ni,Ii=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Li=e=>Ii.test(Mi(e)),Ri=se,zi=Li,Bi=new Set([Jr,Yr]),Vi=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Hi={parseMode:`base`,ns:0,delimiters:[`{{`,`}}`],getNamespace:()=>0,isVoidTag:m,isPreTag:m,isIgnoreNewlineTag:m,isCustomElement:m,onError:Lt,onWarn:Rt,comments:!1,prefixIdentifiers:!1},Ui=Hi,Wi=null,Gi=``,Ki=null,qi=null,Ji=``,Yi=-1,Xi=-1,Zi=0,Qi=!1,$i=null,ea=[],ta=new _i(ea,{onerr:Mn,ontext(e,t){Sn(bn(e,t),e,t)},ontextentity(e,t,n){Sn(e,t,n)},oninterpolation(e,t){if(Qi)return Sn(bn(e,t),e,t);let n=e+ta.delimiterOpen.length,r=t-ta.delimiterClose.length;for(;At(Gi.charCodeAt(n));)n++;for(;At(Gi.charCodeAt(r-1));)r--;let i=bn(n,r);i.includes(`&`)&&(i=Ui.decodeEntities(i,!1)),On({type:5,content:jn(i,!1,kn(n,r)),loc:kn(e,t)})},onopentagname(e,t){let n=bn(e,t);Ki={type:1,tag:n,ns:Ui.getNamespace(n,ea[0],Ui.ns),tagType:0,props:[],children:[],loc:kn(e-1,t),codegenNode:void 0}},onopentagend(e){xn(e)},onclosetag(e,t){let n=bn(e,t);if(!Ui.isVoidTag(n)){let r=!1;for(let e=0;e<ea.length;e++)if(ea[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&Mn(24,ea[0].loc.start.offset);for(let n=0;n<=e;n++)Cn(ea.shift(),t,n<e);break}r||Mn(23,wn(e,60))}},onselfclosingtag(e){let t=Ki.tag;Ki.isSelfClosing=!0,xn(e),ea[0]&&ea[0].tag===t&&Cn(ea.shift(),e)},onattribname(e,t){qi={type:6,name:bn(e,t),nameLoc:kn(e,t),value:void 0,loc:kn(e)}},ondirname(e,t){let n=bn(e,t),r=n===`.`||n===`:`?`bind`:n===`@`?`on`:n===`#`?`slot`:n.slice(2);if(!Qi&&r===``&&Mn(26,e),Qi||r===``)qi={type:6,name:n,nameLoc:kn(e,t),value:void 0,loc:kn(e)};else if(qi={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n===`.`?[pt(`prop`)]:[],loc:kn(e)},r===`pre`){Qi=ta.inVPre=!0,$i=Ki;let e=Ki.props;for(let t=0;t<e.length;t++)e[t].type===7&&(e[t]=oee(e[t]))}},ondirarg(e,t){if(e===t)return;let n=bn(e,t);if(Qi&&!sn(qi))qi.name+=n,An(qi.nameLoc,t);else{let r=n[0]!==`[`;qi.arg=jn(r?n:n.slice(1,-1),r,kn(e,t),r?3:0)}},ondirmodifier(e,t){let n=bn(e,t);if(Qi&&!sn(qi))qi.name+=`.`+n,An(qi.nameLoc,t);else if(qi.name===`slot`){let e=qi.arg;e&&(e.content+=`.`+n,An(e.loc,t))}else{let r=pt(n,!0,kn(e,t));qi.modifiers.push(r)}},onattribdata(e,t){Ji+=bn(e,t),Yi<0&&(Yi=e),Xi=t},onattribentity(e,t,n){Ji+=e,Yi<0&&(Yi=t),Xi=n},onattribnameend(e){let t=qi.loc.start.offset,n=bn(t,e);qi.type===7&&(qi.rawName=n),Ki.props.some(e=>(e.type===7?e.rawName:e.name)===n)&&Mn(2,t)},onattribend(e,t){if(Ki&&qi){if(An(qi.loc,t),e!==0)if(Ji.includes(`&`)&&(Ji=Ui.decodeEntities(Ji,!0)),qi.type===6)qi.name===`class`&&(Ji=Dn(Ji).trim()),e===1&&!Ji&&Mn(13,t),qi.value={type:2,content:Ji,loc:e===1?kn(Yi,Xi):kn(Yi-1,Xi+1)},ta.inSFCRoot&&Ki.tag===`template`&&qi.name===`lang`&&Ji&&Ji!==`html`&&ta.enterRCDATA(Mt(`</template`),0);else{qi.exp=jn(Ji,!1,kn(Yi,Xi),0,0),qi.name===`for`&&(qi.forParseResult=eee(qi.exp));let e=-1;qi.name===`bind`&&(e=qi.modifiers.findIndex(e=>e.content===`sync`))>-1&&Ft(`COMPILER_V_BIND_SYNC`,Ui,qi.loc,qi.arg.loc.source)&&(qi.name=`model`,qi.modifiers.splice(e,1))}(qi.type!==7||qi.name!==`pre`)&&Ki.props.push(qi)}Ji=``,Yi=Xi=-1},oncomment(e,t){Ui.comments&&On({type:3,content:bn(e,t),loc:kn(e-4,t+3)})},onend(){let e=Gi.length;for(let t=0;t<ea.length;t++)Cn(ea[t],e-1),Mn(24,ea[t].loc.start.offset)},oncdata(e,t){ea[0].ns===0?Mn(1,e-9):Sn(bn(e,t),e,t)},onprocessinginstruction(e){(ea[0]?ea[0].ns:Ui.ns)===0&&Mn(21,e-1)}}),na=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ra=/^\(|\)$/g,ia=new Set([`if`,`else`,`else-if`,`for`,`slot`]),aa=/\r\n/g,oa=new Set([Kr,qr,Jr,Yr]),sa=`/*@__PURE__*/`,ca=e=>`${ci[e]}: _${ci[e]}`,RegExp(`\\b`+`arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield`.split(`,`).join(`\\b|\\b`)+`\\b`),la=(e,t)=>{if(e.type===5)e.content=$n(e.content,t);else if(e.type===1){let n=tn(e,`memo`);for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&i.name!==`for`){let e=i.exp,r=i.arg;e&&e.type===4&&!(i.name===`on`&&r)&&!(n&&r&&r.type===4&&r.content===`key`)&&(i.exp=$n(e,t,i.name===`slot`)),r&&r.type===4&&!r.isStatic&&(i.arg=$n(r,t))}}}},ua=Un(/^(?:if|else|else-if)$/,(e,t,n)=>tr(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=rr(t,o,n);else{let r=ar(e.codegenNode);r.alternate=rr(t,o+e.branches.length-1,n)}}})),da=Un(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return or(e,t,n,t=>{let a=gt(r(Vr),[t.source]),o=ln(e),s=tn(e,`memo`),c=nn(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?pt(c.value.content,!0):void 0:c.exp),u=c&&l?ft(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=lt(n,r(Cr),void 0,a,f,void 0,void 0,!0,!d,!1,e.loc),()=>{let c,{children:f}=t,p=f.length!==1||f[0].type!==1,m=un(e)?e:o&&e.children.length===1&&un(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&u&&fn(c,u,n)):p?c=lt(n,r(Cr),u?dt([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&u&&fn(c,u,n),c.isBlock!==!d&&(c.isBlock?(i(Or),i(Dt(n.inSSR,c.isComponent))):i(Et(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(r(Or),r(Dt(n.inSSR,c.isComponent))):r(Et(n.inSSR,c.isComponent))),s){let e=_t(cr(t.parseResult,[pt(`_cached`)]));e.body=bt([ht([`const _memo = (`,s.exp,`)`]),ht([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(si)}(_cached, _memo)) return _cached`]),ht([`const _item = `,c]),pt(`_item.memo = _memo`),pt(`return _item`)]),a.arguments.push(e,pt(`_cache`),pt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(_t(cr(t.parseResult),c,!0))}})}),fa=pt(`undefined`,!1),pa=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=tn(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},ma=(e,t)=>{let n;if(ln(e)&&e.props.some(cn)&&(n=tn(e,`for`))){let e=n.forParseResult;if(e){sr(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},ha=(e,t,n,r)=>_t(e,n,!1,!0,n.length?n[0].loc:r),ga=new WeakMap,_a=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?fr(e,t):`"${n}"`,o=y(a)&&a.callee===Lr,s,c,l=0,u,d,f,p=o||a===wr||a===Tr||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=pr(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?ut(r.map(e=>hr(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===Er&&(p=!0,l|=1024),i&&a!==wr&&a!==Er){let{slots:n,hasDynamicSlots:r}=lr(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==wr){let n=e.children[0],r=n.type,i=r===5||r===8;i&&In(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=Eee(d)),e.codegenNode=lt(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)},va=(e,t)=>{if(un(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=_r(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=_t([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=gt(t.helper(Hr),o,r)}},ya=(e,n,r,i)=>{let{loc:a,modifiers:o,arg:s}=e;!e.exp&&!o.length&&r.onError(zt(35,a));let c;if(s.type===4)if(s.isStatic){let e=s.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),c=pt(n.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?A(t(e)):`on:${e}`,!0,s.loc)}else c=ht([`${r.helperString($r)}(`,s,`)`]);else c=s,c.children.unshift(`${r.helperString($r)}(`),c.children.push(`)`);let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=r.cacheHandlers&&!l&&!r.inVOnce;if(l){let e=Fi(l),t=!(e||zi(l)),n=l.content.includes(`;`);(t||u&&e)&&(l=ht([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,l,n?`}`:`)`]))}let d={props:[ft(c,l||pt(`() => {}`,!1,a))]};return i&&(d=i(d)),u&&(d.props[0].value=r.cache(d.props[0].value)),d.props.forEach(e=>e.key.isHandlerKey=!0),d},ba=(e,n,r)=>{let{modifiers:i,loc:a}=e,o=e.arg,{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),o.type===4?o.isStatic||(o.content=o.content?`${o.content} || ""`:`""`):(o.children.unshift(`(`),o.children.push(`) || ""`)),i.some(e=>e.content===`camel`)&&(o.type===4?o.isStatic?o.content=t(o.content):o.content=`${r.helperString(Zr)}(${o.content})`:(o.children.unshift(`${r.helperString(Zr)}(`),o.children.push(`)`))),r.inSSR||(i.some(e=>e.content===`prop`)&&xa(o,`.`),i.some(e=>e.content===`attr`)&&xa(o,`^`)),{props:[ft(o,s)]}},xa=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},Sa=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(on(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(on(a))r||=n[e]=ht([t],t.loc),r.children.push(` + `,a),n.splice(i,1),i--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(e=>e.type===7&&!t.directiveTransforms[e.name])&&e.tag!==`template`)))for(let e=0;e<n.length;e++){let r=n[e];if(on(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&In(r,t)===0&&i.push(`1`),n[e]={type:12,content:r,loc:r.loc,codegenNode:gt(t.helper(Pr),i)}}}}},Ca=new WeakSet,wa=(e,t)=>{if(e.type===1&&tn(e,`once`,!0))return Ca.has(e)||t.inVOnce||t.inSSR?void 0:(Ca.add(e),t.inVOnce=!0,t.helper(ei),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Ta=(e,n,r)=>{let{exp:i,arg:a}=e;if(!i)return r.onError(zt(41,e.loc)),vr();let o=i.loc.source.trim(),s=i.type===4?i.content:o,c=r.bindingMetadata[o];if(c===`props`||c===`props-aliased`)return r.onError(zt(44,i.loc)),vr();if(c===`literal-const`||c===`setup-const`)return r.onError(zt(45,i.loc)),vr();if(!s.trim()||!Fi(i))return r.onError(zt(42,i.loc)),vr();let l=a||pt(`modelValue`,!0),u=a?Ei(a)?`onUpdate:${t(a.content)}`:ht([`"onUpdate:" + `,a]):`onUpdate:modelValue`,d;d=ht([`${r.isTS?`($event: any)`:`$event`} => ((`,i,`) = $event)`]);let f=[ft(l,e.exp),ft(u,d)];if(e.modifiers.length&&n.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Oi(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=a?Ei(a)?`${a.content}Modifiers`:ht([a,` + "Modifiers"`]):`modelModifiers`;f.push(ft(n,pt(`{ ${t} }`,!1,e.loc,2)))}return vr(f)},Ea=/[\w).+\-_$\]]/,Da=(e,t)=>{Pt(`COMPILER_FILTERS`,t)&&(e.type===5?yr(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&yr(e.exp,t)}))},Oa=new WeakSet,ka=(e,t)=>{if(e.type===1){let n=tn(e,`memo`);return!n||Oa.has(e)||t.inSSR?void 0:(Oa.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Ot(r,t),e.codegenNode=gt(t.helper(oi),[n.exp,_t(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Aa=(e,n)=>{if(e.type===1){for(let r of e.props)if(r.type===7&&r.name===`bind`&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){let e=r.arg;if(e.type!==4||!e.isStatic)n.onError(zt(53,e.loc)),r.exp=pt(``,!0,e.loc);else{let n=t(e.content);(ki.test(n[0])||n[0]===`-`)&&(r.exp=pt(n,!1,e.loc))}}}},ja={DATA:`data`,PROPS:`props`,PROPS_ALIASED:`props-aliased`,SETUP_LET:`setup-let`,SETUP_CONST:`setup-const`,SETUP_REACTIVE_CONST:`setup-reactive-const`,SETUP_MAYBE_REF:`setup-maybe-ref`,SETUP_REF:`setup-ref`,OPTIONS:`options`,LITERAL_CONST:`literal-const`},Ma=()=>({props:[]})})),Oee=te({BASE_TRANSITION:()=>Dr,BindingTypes:()=>ja,CAMELIZE:()=>Zr,CAPITALIZE:()=>Qr,CREATE_BLOCK:()=>kr,CREATE_COMMENT:()=>Nr,CREATE_ELEMENT_BLOCK:()=>Ar,CREATE_ELEMENT_VNODE:()=>Mr,CREATE_SLOTS:()=>Ur,CREATE_STATIC:()=>Fr,CREATE_TEXT:()=>Pr,CREATE_VNODE:()=>jr,CompilerDeprecationTypes:()=>vi,ConstantTypes:()=>fi,DOMDirectiveTransforms:()=>uo,DOMErrorCodes:()=>Ya,DOMErrorMessages:()=>Xa,DOMNodeTransforms:()=>lo,ElementTypes:()=>di,ErrorCodes:()=>bi,FRAGMENT:()=>Cr,GUARD_REACTIVE_PROPS:()=>Yr,IS_MEMO_SAME:()=>si,IS_REF:()=>ai,KEEP_ALIVE:()=>Er,MERGE_PROPS:()=>Gr,NORMALIZE_CLASS:()=>Kr,NORMALIZE_PROPS:()=>Jr,NORMALIZE_STYLE:()=>qr,Namespaces:()=>li,NodeTypes:()=>ui,OPEN_BLOCK:()=>Or,POP_SCOPE_ID:()=>ni,PUSH_SCOPE_ID:()=>ti,RENDER_LIST:()=>Vr,RENDER_SLOT:()=>Hr,RESOLVE_COMPONENT:()=>Ir,RESOLVE_DIRECTIVE:()=>Rr,RESOLVE_DYNAMIC_COMPONENT:()=>Lr,RESOLVE_FILTER:()=>zr,SET_BLOCK_TRACKING:()=>ei,SUSPENSE:()=>Tr,TELEPORT:()=>wr,TO_DISPLAY_STRING:()=>Wr,TO_HANDLERS:()=>Xr,TO_HANDLER_KEY:()=>$r,TRANSITION:()=>Ua,TRANSITION_GROUP:()=>Wa,TS_NODE_TYPES:()=>Ti,UNREF:()=>ii,V_MODEL_CHECKBOX:()=>Ia,V_MODEL_DYNAMIC:()=>za,V_MODEL_RADIO:()=>Fa,V_MODEL_SELECT:()=>Ra,V_MODEL_TEXT:()=>La,V_ON_WITH_KEYS:()=>Va,V_ON_WITH_MODIFIERS:()=>Ba,V_SHOW:()=>Ha,WITH_CTX:()=>ri,WITH_DIRECTIVES:()=>Br,WITH_MEMO:()=>oi,advancePositionWithClone:()=>Qt,advancePositionWithMutation:()=>$t,assert:()=>en,baseCompile:()=>Sr,baseParse:()=>Nn,buildDirectiveArgs:()=>hr,buildProps:()=>pr,buildSlots:()=>lr,checkCompatEnabled:()=>Ft,compile:()=>Aee,convertToBlock:()=>Ot,createArrayExpression:()=>ut,createAssignmentExpression:()=>Ct,createBlockStatement:()=>bt,createCacheExpression:()=>yt,createCallExpression:()=>gt,createCompilerError:()=>zt,createCompoundExpression:()=>ht,createConditionalExpression:()=>vt,createDOMCompilerError:()=>Pa,createForLoopParams:()=>cr,createFunctionExpression:()=>_t,createIfStatement:()=>St,createInterpolation:()=>mt,createObjectExpression:()=>dt,createObjectProperty:()=>ft,createReturnStatement:()=>Tt,createRoot:()=>ct,createSequenceExpression:()=>wt,createSimpleExpression:()=>pt,createStructuralDirectiveTransform:()=>Un,createTemplateLiteral:()=>xt,createTransformContext:()=>Bn,createVNodeCall:()=>lt,errorMessages:()=>xi,extractIdentifiers:()=>Yt,findDir:()=>tn,findProp:()=>nn,forAliasRE:()=>Vi,generate:()=>Wn,generateCodeFrame:()=>f,getBaseTransformPreset:()=>xr,getConstantType:()=>In,getMemoedVNodeCall:()=>gn,getVNodeBlockHelper:()=>Dt,getVNodeHelper:()=>Et,hasDynamicKeyVBind:()=>an,hasScopeRef:()=>hn,helperNameMap:()=>ci,injectProp:()=>fn,isAllWhitespace:()=>_n,isCommentOrWhitespace:()=>yn,isCoreComponent:()=>Zt,isFnExpression:()=>zi,isFnExpressionBrowser:()=>Li,isFnExpressionNode:()=>Ri,isFunctionType:()=>Si,isInDestructureAssignment:()=>Ht,isInNewExpression:()=>Ut,isMemberExpression:()=>Fi,isMemberExpressionBrowser:()=>Ni,isMemberExpressionNode:()=>Pi,isReferencedIdentifier:()=>Vt,isSimpleIdentifier:()=>Oi,isSlotOutlet:()=>un,isStaticArgOf:()=>rn,isStaticExp:()=>Ei,isStaticProperty:()=>Ci,isStaticPropertyKey:()=>wi,isTemplateNode:()=>ln,isText:()=>on,isVPre:()=>sn,isVSlot:()=>cn,isWhitespaceText:()=>vn,locStub:()=>pi,noopDirectiveTransform:()=>Ma,parse:()=>jee,parserOptions:()=>Ka,processExpression:()=>$n,processFor:()=>or,processIf:()=>tr,processSlotOutlet:()=>_r,registerRuntimeHelpers:()=>st,resolveComponentType:()=>fr,stringifyExpression:()=>er,toValidAssetId:()=>mn,trackSlotScopes:()=>pa,trackVForSlotScopes:()=>ma,transform:()=>Vn,transformBind:()=>ba,transformElement:()=>_a,transformExpression:()=>la,transformModel:()=>Ta,transformOn:()=>ya,transformStyle:()=>qa,transformVBindShorthand:()=>Aa,traverseNode:()=>Hn,unwrapTSNode:()=>Xt,validFirstIdentCharRE:()=>ki,walkBlockDeclarations:()=>Gt,walkFunctionParams:()=>Wt,walkIdentifiers:()=>Bt,warnDeprecation:()=>It});function kee(e,t=!1){return Ga||=document.createElement(`div`),t?(Ga.innerHTML=`<div foo="${e.replace(/"/g,`&quot;`)}">`,Ga.children[0].getAttribute(`foo`)):(Ga.innerHTML=e,Ga.textContent)}function Pa(e,t){return zt(e,t,void 0)}function Aee(e,t={}){return Sr(e,d({},Ka,t,{nodeTransforms:[co,...lo,...t.nodeTransforms||[]],directiveTransforms:d({},uo,t.directiveTransforms||{}),transformHoist:null}))}function jee(e,t={}){return Nn(e,d({},Ka,t))}var Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,Mee=ve((()=>{Na(),Na(),c(),Fa=Symbol(``),Ia=Symbol(``),La=Symbol(``),Ra=Symbol(``),za=Symbol(``),Ba=Symbol(``),Va=Symbol(``),Ha=Symbol(``),Ua=Symbol(``),Wa=Symbol(``),st({[Fa]:`vModelRadio`,[Ia]:`vModelCheckbox`,[La]:`vModelText`,[Ra]:`vModelSelect`,[za]:`vModelDynamic`,[Ba]:`withModifiers`,[Va]:`withKeys`,[Ha]:`vShow`,[Ua]:`Transition`,[Wa]:`TransitionGroup`}),Ka={parseMode:`html`,isVoidTag:O,isNativeTag:e=>x(e)||l(e)||o(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:kee,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Ua;if(e===`TransitionGroup`||e===`transition-group`)return Wa},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},qa=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:pt(`style`,!0,t.loc),exp:Ja(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ja=(e,t)=>{let n=le(e);return pt(JSON.stringify(n),!1,t,3)},Ya={X_V_HTML_NO_EXPRESSION:54,54:`X_V_HTML_NO_EXPRESSION`,X_V_HTML_WITH_CHILDREN:55,55:`X_V_HTML_WITH_CHILDREN`,X_V_TEXT_NO_EXPRESSION:56,56:`X_V_TEXT_NO_EXPRESSION`,X_V_TEXT_WITH_CHILDREN:57,57:`X_V_TEXT_WITH_CHILDREN`,X_V_MODEL_ON_INVALID_ELEMENT:58,58:`X_V_MODEL_ON_INVALID_ELEMENT`,X_V_MODEL_ARG_ON_ELEMENT:59,59:`X_V_MODEL_ARG_ON_ELEMENT`,X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:`X_V_MODEL_ON_FILE_INPUT_ELEMENT`,X_V_MODEL_UNNECESSARY_VALUE:61,61:`X_V_MODEL_UNNECESSARY_VALUE`,X_V_SHOW_NO_EXPRESSION:62,62:`X_V_SHOW_NO_EXPRESSION`,X_TRANSITION_INVALID_CHILDREN:63,63:`X_TRANSITION_INVALID_CHILDREN`,X_IGNORED_SIDE_EFFECT_TAG:64,64:`X_IGNORED_SIDE_EFFECT_TAG`,__EXTEND_POINT__:65,65:`__EXTEND_POINT__`},Xa={54:`v-html is missing expression.`,55:`v-html will override element children.`,56:`v-text is missing expression.`,57:`v-text will override element children.`,58:`v-model can only be used on <input>, <textarea> and <select> elements.`,59:`v-model argument is not supported on plain elements.`,60:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,61:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,62:`v-show is missing expression.`,63:`<Transition> expects exactly one child element or component.`,64:`Tags with side effect (<script> and <style>) are ignored in client component templates.`},Za=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Pa(54,i)),t.children.length&&(n.onError(Pa(55,i)),t.children.length=0),{props:[ft(pt(`innerHTML`,!0,i),r||pt(``,!0))]}},Qa=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Pa(56,i)),t.children.length&&(n.onError(Pa(57,i)),t.children.length=0),{props:[ft(pt(`textContent`,!0),r?In(r,n)>0?r:gt(n.helperString(Wr),[r],i):pt(``,!0))]}},$a=(e,t,n)=>{let r=Ta(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Pa(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=La,s=!1;if(i===`input`||a){let r=nn(t,`type`);if(r){if(r.type===7)o=za;else if(r.value)switch(r.value.content){case`radio`:o=Fa;break;case`checkbox`:o=Ia;break;case`file`:s=!0,n.onError(Pa(60,e.loc));break;default:break}}else an(t)&&(o=za)}else i===`select`&&(o=Ra);s||(r.needRuntime=n.helper(o))}else n.onError(Pa(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},eo=g(`passive,once,capture`),to=g(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),no=g(`left,right`),ro=g(`onkeyup,onkeydown,onkeypress`),io=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;s<t.length;s++){let c=t[s].content;c===`native`&&Ft(`COMPILER_V_ON_NATIVE`,n,r)||eo(c)?o.push(c):no(c)?Ei(e)?ro(e.content.toLowerCase())?i.push(c):a.push(c):(i.push(c),a.push(c)):to(c)?a.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},ao=(e,t)=>Ei(e)&&e.content.toLowerCase()===`onclick`?pt(t,!0):e.type===4?e:ht([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),oo=(e,t,n)=>ya(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=io(i,r,n,e.loc);if(s.includes(`right`)&&(i=ao(i,`onContextmenu`)),s.includes(`middle`)&&(i=ao(i,`onMouseup`)),s.length&&(a=gt(n.helper(Ba),[a,JSON.stringify(s)])),o.length&&(!Ei(i)||ro(i.content.toLowerCase()))&&(a=gt(n.helper(Va),[a,JSON.stringify(o)])),c.length){let e=c.map(ae).join(``);i=Ei(i)?pt(`${i.content}${e}`,!0):ht([`(`,i,`) + "${e}"`])}return{props:[ft(i,a)]}}),so=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Pa(62,i)),{props:[],needRuntime:n.helper(Ha)}},co=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},lo=[qa,...[]],uo={cloak:Ma,html:Za,text:Qa,model:$a,on:oo,show:so}})),Nee=fe((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(Mee(),ce(Oee)),n=(ie(),ce(de)),r=(c(),ce(_e));function i(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var a=i(n),o=Object.create(null);function s(e,n){if(!r.isString(e))if(e.nodeType)e=e.innerHTML;else return r.NOOP;let i=r.genCacheKey(e,n),s=o[i];if(s)return s;if(e[0]===`#`){let t=document.querySelector(e);e=t?t.innerHTML:``}let c=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},n);!c.isCustomElement&&typeof customElements<`u`&&(c.isCustomElement=e=>!!customElements.get(e));let{code:l}=t.compile(e,c),u=Function(`Vue`,l)(a);return u._rc=!0,o[i]=u}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n[t])})})),fo=fe(((e,t)=>{t.exports=Nee()})),po=te({MultiDrag:()=>Yee,Sortable:()=>qo,Swap:()=>qee,default:()=>qo});function mo(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 ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mo(Object(n),!0).forEach(function(t){Pee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function go(e){"@babel/helpers - typeof";return go=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},go(e)}function Pee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(){return _o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(this,arguments)}function Fee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Iee(e,t){if(e==null)return{};var n=Fee(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lee(e){return Ree(e)||zee(e)||vo(e)||bo()}function Ree(e){if(Array.isArray(e))return yo(e)}function zee(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function vo(e,t){if(e){if(typeof e==`string`)return yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yo(e,t)}}function yo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xo(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function So(e,t,n){e.addEventListener(t,n,!ps&&ys)}function Co(e,t,n){e.removeEventListener(t,n,!ps&&ys)}function wo(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function To(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Eo(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&wo(e,t):wo(e,t))||r&&e===n)return e;if(e===n)break}while(e=To(e))}return null}function Do(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(bs,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(bs,` `))}function Oo(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function ko(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=Oo(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Ao(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function jo(){return document.scrollingElement||document.documentElement}function Mo(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==jo()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!ps))do if(i&&i.getBoundingClientRect&&(Oo(i,`transform`)!==`none`||n&&Oo(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(Oo(i,`border-top-width`)),s-=f.left+parseInt(Oo(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=ko(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function No(e,t,n){for(var r=Ro(e,!0),i=Mo(e)[t];r;){var a=Mo(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===jo())break;r=Ro(r,!1)}return!1}function Po(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==qo.ghost&&(r||o[a]!==qo.dragged)&&Eo(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function Fo(e,t){for(var n=e.lastElementChild;n&&(n===qo.ghost||Oo(n,`display`)===`none`||t&&!wo(n,t));)n=n.previousElementSibling;return n||null}function Io(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==qo.clone&&(!t||wo(e,t))&&n++;return n}function Lo(e){var t=0,n=0,r=jo();if(e)do{var i=ko(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Bee(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Ro(e,t){if(!e||!e.getBoundingClientRect)return jo();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Oo(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return jo();if(r||t)return n;r=!0}}while(n=n.parentNode);return jo()}function Vee(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function zo(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Bo(e,t){return function(){if(!xs){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),xs=setTimeout(function(){xs=void 0},t)}}}function Hee(){clearTimeout(xs),xs=void 0}function Vo(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ho(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Uo(e,t){Oo(e,`position`,`absolute`),Oo(e,`top`,t.top),Oo(e,`left`,t.left),Oo(e,`width`,t.width),Oo(e,`height`,t.height)}function Wo(e){Oo(e,`position`,``),Oo(e,`top`,``),Oo(e,`left`,``),Oo(e,`width`,``),Oo(e,`height`,``)}function Uee(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(Oo(t,`display`)===`none`||t===qo.ghost)){e.push({target:t,rect:Mo(t)});var n=ho({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=ko(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Bee(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=Mo(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=ko(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&zo(c,s)&&!zo(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Gee(u,c,l,r.options)),zo(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){Oo(e,`transition`,``),Oo(e,`transform`,``);var i=ko(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,Oo(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=Wee(e),Oo(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),Oo(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){Oo(e,`transition`,``),Oo(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function Wee(e){return e.offsetWidth}function Gee(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}function Go(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[Ss],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!ps&&!ms?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=ho(ho({},m),Ts.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function Ko(e){Go(ho({putSortable:Bs,cloneEl:Ns,targetEl:R,rootEl:As,oldIndex:Fs,oldDraggableIndex:Ls,newIndex:Is,newDraggableIndex:Rs},e))}function qo(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=_o({},t),e[Ss]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return dc(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:qo.supportPointer!==!1&&`PointerEvent`in window&&!gs,emptyInsertThreshold:5};for(var r in Ts.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in mc(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:lc,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?So(e,`pointerdown`,this._onTapStart):(So(e,`mousedown`,this._onTapStart),So(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(So(e,`dragover`,this),So(e,`dragenter`,this)),Us.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_o(this,Uee())}function Jo(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function Yo(e,t,n,r,i,a,o,s){var c,l=e[Ss],u=l.options.onMove,d;return window.CustomEvent&&!ps&&!ms?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||Mo(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Xo(e){e.draggable=!1}function Zo(){ic=!1}function Qo(e,t,n){var r=Mo(Po(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function $o(e,t,n){var r=Mo(Fo(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function es(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&tc<l*i){if(!$s&&(Qs===1?c>u+l*a/2:c<d-l*a/2)&&($s=!0),$s)f=!0;else if(Qs===1?c<u+tc:c>d-tc)return-Qs}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return ts(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function ts(e){return Io(R)<Io(e)?1:-1}function ns(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function rs(e){ac.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&ac.push(r)}}function is(e){return setTimeout(e,0)}function as(e){return clearTimeout(e)}function Kee(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?So(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?So(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?So(document,`touchmove`,this._handleFallbackAutoScroll):So(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Co(document,`dragover`,this._handleAutoScroll):(Co(document,`pointermove`,this._handleFallbackAutoScroll),Co(document,`touchmove`,this._handleFallbackAutoScroll),Co(document,`mousemove`,this._handleFallbackAutoScroll)),ss(),os(),Hee()},nulling:function(){Tc=xc=bc=Sc=Ec=Cc=wc=null,yc.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(Tc=e,t||this.options.forceAutoScrollFallback||ms||ps||gs){Dc(e,this.options,a,t);var o=Ro(a,!0);Sc&&(!Ec||r!==Cc||i!==wc)&&(Ec&&ss(),Ec=setInterval(function(){var a=Ro(document.elementFromPoint(r,i),!0);a!==o&&(o=a,os()),Dc(e,n.options,a,t)},10),Cc=r,wc=i)}else{if(!this.options.bubbleScroll||Ro(a,!0)===jo()){os();return}Dc(e,this.options,Ro(a,!1),!1)}}},_o(e,{pluginName:`scroll`,initializeByDefault:!0})}function os(){yc.forEach(function(e){clearInterval(e.pid)}),yc=[]}function ss(){clearInterval(Ec)}function cs(){}function ls(){}function qee(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){kc=e.dragEl},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,a=e.changed,o=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=kc;r(n)===!1?kc=null:(Do(n,c.swapClass,!0),kc=n),l&&l!==kc&&Do(l,c.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,a=this.options;kc&&Do(kc,a.swapClass,!1),kc&&(a.swap||n&&n.options.swap)&&r!==kc&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Jee(r,kc),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){kc=null}},_o(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:kc}}})}function Jee(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Io(e),a=Io(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function Yee(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.supportPointer?So(document,`pointerup`,this._deselectMultiDrag):(So(document,`mouseup`,this._deselectMultiDrag),So(document,`touchend`,this._deselectMultiDrag)),So(document,`keydown`,this._checkKeyDown),So(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,setData:function(t,n){var r=``;Ac.length&&Nc===e?Ac.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){Lc=e.dragEl},delayEnded:function(){this.isMultiDrag=~Ac.indexOf(Lc)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Ac.length;r++)jc.push(Ho(Ac[r])),jc[r].sortableIndex=Ac[r].sortableIndex,jc[r].draggable=!1,jc[r].style[`will-change`]=``,Do(jc[r],this.options.selectedClass,!1),Ac[r]===Lc&&Do(jc[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ac.length&&Nc===t&&(us(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(us(!1,n),jc.forEach(function(e){Oo(e,`display`,``)}),t(),zc=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(jc.forEach(function(e){Oo(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),zc=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Nc&&Nc.multiDrag._deselectMultiDrag(),Ac.forEach(function(e){e.sortableIndex=Io(e)}),Ac=Ac.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),Ic=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Ac.forEach(function(e){e!==Lc&&Oo(e,`position`,`absolute`)});var r=Mo(Lc,!1,!0,!0);Ac.forEach(function(e){e!==Lc&&Uo(e,r)}),Fc=!0,Pc=!0}n.animateAll(function(){Fc=!1,Pc=!1,t.options.animation&&Ac.forEach(function(e){Wo(e)}),t.options.sort&&ds()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Fc&&~Ac.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Ac.length>1&&(Ac.forEach(function(e){r.addAnimationState({target:e,rect:Fc?Mo(e):i}),Wo(e),e.fromRect=i,t.removeAnimationState(e)}),Fc=!1,Xee(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Pc=!1,s.animation&&Ac.length>1&&(Fc||!n&&!i.options.sort&&!o)){var c=Mo(Lc,!1,!0,!0);Ac.forEach(function(e){e!==Lc&&(Uo(e,c),a.appendChild(e))}),Fc=!0}if(!n)if(Fc||ds(),Ac.length>1){var l=zc;i._showClone(t),i.options.animation&&!zc&&l&&jc.forEach(function(e){i.addAnimationState({target:e,rect:Rc}),e.fromRect=Rc,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Ac.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Rc=_o({},t);var i=ko(Lc,!0);Rc.top-=i.f,Rc.left-=i.e}},dragOverAnimationComplete:function(){Fc&&(Fc=!1,ds())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!Ic)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Do(Lc,l.selectedClass,!~Ac.indexOf(Lc)),~Ac.indexOf(Lc))Ac.splice(Ac.indexOf(Lc),1),Mc=null,Go({sortable:i,rootEl:n,name:`deselect`,targetEl:Lc,originalEvt:t});else{if(Ac.push(Lc),Go({sortable:i,rootEl:n,name:`select`,targetEl:Lc,originalEvt:t}),t.shiftKey&&Mc&&i.el.contains(Mc)){var d=Io(Mc),f=Io(Lc);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~Ac.indexOf(u[m])||(Do(u[m],l.selectedClass,!0),Ac.push(u[m]),Go({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvt:t}))}}else Mc=Lc;Nc=c}if(Ic&&this.isMultiDrag){if(Fc=!1,(r[Ss].options.sort||r!==n)&&Ac.length>1){var h=Mo(Lc),g=Io(Lc,`:not(.`+this.options.selectedClass+`)`);if(!Pc&&l.animation&&(Lc.thisAnimationDuration=null),c.captureAnimationState(),!Pc&&(l.animation&&(Lc.fromRect=h,Ac.forEach(function(e){if(e.thisAnimationDuration=null,e!==Lc){var t=Fc?Mo(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),ds(),Ac.forEach(function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++}),o===Io(Lc))){var _=!1;Ac.forEach(function(e){if(e.sortableIndex!==Io(e)){_=!0;return}}),_&&a(`update`)}Ac.forEach(function(e){Wo(e)}),c.animateAll()}Nc=c}(n===r||s&&s.lastPutMode!==`clone`)&&jc.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=Ic=!1,jc.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Co(document,`pointerup`,this._deselectMultiDrag),Co(document,`mouseup`,this._deselectMultiDrag),Co(document,`touchend`,this._deselectMultiDrag),Co(document,`keydown`,this._checkKeyDown),Co(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(Ic!==void 0&&Ic)&&Nc===this.sortable&&!(e&&Eo(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;Ac.length;){var t=Ac[0];Do(t,this.options.selectedClass,!1),Ac.shift(),Go({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},_o(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[Ss];!t||!t.options.multiDrag||~Ac.indexOf(e)||(Nc&&Nc!==t&&(Nc.multiDrag._deselectMultiDrag(),Nc=t),Do(e,t.options.selectedClass,!0),Ac.push(e))},deselect:function(e){var t=e.parentNode[Ss],n=Ac.indexOf(e);!t||!t.options.multiDrag||!~n||(Do(e,t.options.selectedClass,!1),Ac.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Ac.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=Fc&&r!==Lc?-1:Fc?Io(r,`:not(.`+e.options.selectedClass+`)`):Io(r);n.push({multiDragElement:r,index:i})}),{items:Lee(Ac),clones:[].concat(jc),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Xee(e,t){Ac.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function us(e,t){jc.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function ds(){Ac.forEach(function(e){e!==Lc&&e.parentNode&&e.parentNode.removeChild(e)})}var fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,R,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc=ve((()=>{fs=`1.14.0`,ps=xo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ms=xo(/Edge/i),hs=xo(/firefox/i),gs=xo(/safari/i)&&!xo(/chrome/i)&&!xo(/android/i),_s=xo(/iP(ad|od|hone)/i),vs=xo(/chrome/i)&&xo(/android/i),ys={capture:!1,passive:!1},bs=/\s+/g,Ss=`Sortable`+new Date().getTime(),Cs=[],ws={initializeByDefault:!0},Ts={mount:function(e){for(var t in ws)ws.hasOwnProperty(t)&&!(t in e)&&(e[t]=ws[t]);Cs.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),Cs.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;Cs.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](ho({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](ho({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in Cs.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,_o(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return Cs.forEach(function(r){typeof r.eventProperties==`function`&&_o(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return Cs.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},Es=[`evt`],Ds=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Iee(n,Es);Ts.pluginEvent.bind(qo)(e,t,ho({dragEl:R,parentEl:Os,ghostEl:ks,rootEl:As,nextEl:js,lastDownEl:Ms,cloneEl:Ns,cloneHidden:Ps,dragStarted:Xs,putSortable:Bs,activeSortable:qo.active,originalEvent:r,oldIndex:Fs,oldDraggableIndex:Ls,newIndex:Is,newDraggableIndex:Rs,hideGhostForTarget:hc,unhideGhostForTarget:gc,cloneNowHidden:function(){Ps=!0},cloneNowShown:function(){Ps=!1},dispatchSortableEvent:function(e){Ko({sortable:t,name:e,originalEvent:r})}},i))},Vs=!1,Hs=!1,Us=[],$s=!1,ec=!1,rc=[],ic=!1,ac=[],oc=typeof document<`u`,sc=_s,cc=ms||ps?`cssFloat`:`float`,lc=oc&&!vs&&!_s&&`draggable`in document.createElement(`div`),uc=function(){if(oc){if(ps)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),dc=function(e,t){var n=Oo(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Po(e,0,t),a=Po(e,1,t),o=i&&Oo(i),s=a&&Oo(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Mo(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Mo(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[cc]===`none`||a&&n[cc]===`none`&&c+l>r)?`vertical`:`horizontal`},fc=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},pc=function(e,t){var n;return Us.some(function(r){var i=r[Ss].options.emptyInsertThreshold;if(!(!i||Fo(r))){var a=Mo(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},mc=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||go(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},hc=function(){!uc&&ks&&Oo(ks,`display`,`none`)},gc=function(){!uc&&ks&&Oo(ks,`display`,``)},oc&&document.addEventListener(`click`,function(e){if(Hs)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Hs=!1,!1},!0),_c=function(e){if(R){e=e.touches?e.touches[0]:e;var t=pc(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ss]._onDragOver(n)}}},vc=function(e){R&&R.parentNode[Ss]._isOutsideThisEl(e.target)},qo.prototype={constructor:qo,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Zs=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,R):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(rs(n),!R&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&gs&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=Eo(s,r.draggable,n,!1),!(s&&s.animated)&&Ms!==s)){if(Fs=Io(s),Ls=Io(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){Ko({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),Ds(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=Eo(c,r.trim(),n,!1),r)return Ko({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),Ds(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!Eo(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!R&&n.parentNode===i){var c=Mo(n);if(As=i,R=n,Os=R.parentNode,js=R.nextSibling,Ms=n,zs=a.group,qo.dragged=R,Ws={target:R,clientX:(t||e).clientX,clientY:(t||e).clientY},Js=Ws.clientX-c.left,Ys=Ws.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,R.style[`will-change`]=`all`,s=function(){if(Ds(`delayEnded`,r,{evt:e}),qo.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!hs&&r.nativeDraggable&&(R.draggable=!0),r._triggerDragStart(e,t),Ko({sortable:r,name:`choose`,originalEvent:e}),Do(R,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){Ao(R,e.trim(),Xo)}),So(o,`dragover`,_c),So(o,`mousemove`,_c),So(o,`touchmove`,_c),So(o,`mouseup`,r._onDrop),So(o,`touchend`,r._onDrop),So(o,`touchcancel`,r._onDrop),hs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),Ds(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ms||ps))){if(qo.eventCanceled){this._onDrop();return}So(o,`mouseup`,r._disableDelayedDrag),So(o,`touchend`,r._disableDelayedDrag),So(o,`touchcancel`,r._disableDelayedDrag),So(o,`mousemove`,r._delayedDragTouchMoveHandler),So(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&So(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&Xo(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Co(e,`mouseup`,this._disableDelayedDrag),Co(e,`touchend`,this._disableDelayedDrag),Co(e,`touchcancel`,this._disableDelayedDrag),Co(e,`mousemove`,this._delayedDragTouchMoveHandler),Co(e,`touchmove`,this._delayedDragTouchMoveHandler),Co(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?So(document,`pointermove`,this._onTouchMove):t?So(document,`touchmove`,this._onTouchMove):So(document,`mousemove`,this._onTouchMove):(So(R,`dragend`,this),So(As,`dragstart`,this._onDragStart));try{document.selection?is(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Vs=!1,As&&R){Ds(`dragStarted`,this,{evt:t}),this.nativeDraggable&&So(document,`dragover`,vc);var n=this.options;!e&&Do(R,n.dragClass,!1),Do(R,n.ghostClass,!0),qo.active=this,e&&this._appendGhost(),Ko({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Gs){this._lastX=Gs.clientX,this._lastY=Gs.clientY,hc();for(var e=document.elementFromPoint(Gs.clientX,Gs.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Gs.clientX,Gs.clientY),e!==t);)t=e;if(R.parentNode[Ss]._isOutsideThisEl(e),t)do{if(t[Ss]){var n=void 0;if(n=t[Ss]._onDragOver({clientX:Gs.clientX,clientY:Gs.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);gc()}},_onTouchMove:function(e){if(Ws){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=ks&&ko(ks,!0),o=ks&&a&&a.a,s=ks&&a&&a.d,c=sc&&nc&&Lo(nc),l=(i.clientX-Ws.clientX+r.x)/(o||1)+(c?c[0]-rc[0]:0)/(o||1),u=(i.clientY-Ws.clientY+r.y)/(s||1)+(c?c[1]-rc[1]:0)/(s||1);if(!qo.active&&!Vs){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ks){a?(a.e+=l-(Ks||0),a.f+=u-(qs||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;Oo(ks,`webkitTransform`,d),Oo(ks,`mozTransform`,d),Oo(ks,`msTransform`,d),Oo(ks,`transform`,d),Ks=l,qs=u,Gs=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ks){var e=this.options.fallbackOnBody?document.body:As,t=Mo(R,!0,sc,!0,e),n=this.options;if(sc){for(nc=e;Oo(nc,`position`)===`static`&&Oo(nc,`transform`)===`none`&&nc!==document;)nc=nc.parentNode;nc!==document.body&&nc!==document.documentElement?(nc===document&&(nc=jo()),t.top+=nc.scrollTop,t.left+=nc.scrollLeft):nc=jo(),rc=Lo(nc)}ks=R.cloneNode(!0),Do(ks,n.ghostClass,!1),Do(ks,n.fallbackClass,!0),Do(ks,n.dragClass,!0),Oo(ks,`transition`,``),Oo(ks,`transform`,``),Oo(ks,`box-sizing`,`border-box`),Oo(ks,`margin`,0),Oo(ks,`top`,t.top),Oo(ks,`left`,t.left),Oo(ks,`width`,t.width),Oo(ks,`height`,t.height),Oo(ks,`opacity`,`0.8`),Oo(ks,`position`,sc?`absolute`:`fixed`),Oo(ks,`zIndex`,`100000`),Oo(ks,`pointerEvents`,`none`),qo.ghost=ks,e.appendChild(ks),Oo(ks,`transform-origin`,Js/parseInt(ks.style.width)*100+`% `+Ys/parseInt(ks.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Ds(`dragStart`,this,{evt:e}),qo.eventCanceled){this._onDrop();return}Ds(`setupClone`,this),qo.eventCanceled||(Ns=Ho(R),Ns.draggable=!1,Ns.style[`will-change`]=``,this._hideClone(),Do(Ns,this.options.chosenClass,!1),qo.clone=Ns),n.cloneId=is(function(){Ds(`clone`,n),!qo.eventCanceled&&(n.options.removeCloneOnHide||As.insertBefore(Ns,R),n._hideClone(),Ko({sortable:n,name:`clone`}))}),!t&&Do(R,i.dragClass,!0),t?(Hs=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Co(document,`mouseup`,n._onDrop),Co(document,`touchend`,n._onDrop),Co(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,R)),So(document,`drop`,n),Oo(R,`transform`,`translateZ(0)`)),Vs=!0,n._dragStartId=is(n._dragStarted.bind(n,t,e)),So(document,`selectstart`,n),Xs=!0,gs&&Oo(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=qo.active,l=zs===s,u=o.sort,d=Bs||c,f,p=this,m=!1;if(ic)return;function h(o,s){Ds(o,p,ho({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return Yo(As,t,R,r,n,Mo(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(Do(R,Bs?Bs.options.ghostClass:c.options.ghostClass,!1),Do(R,o.ghostClass,!0)),Bs!==p&&p!==qo.active?Bs=p:p===qo.active&&Bs&&(Bs=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===R&&!R.animated||n===t&&!n.animated)&&(Zs=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(R.parentNode[Ss]._isOutsideThisEl(e.target),!r&&_c(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Is=Io(R),Rs=Io(R,o.draggable),Ko({sortable:p,name:`change`,toEl:t,newIndex:Is,newDraggableIndex:Rs,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Eo(n,o.draggable,t,!0),h(`dragOver`),qo.eventCanceled)return m;if(R.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(Hs=!1,c&&!o.disabled&&(l?u||(a=Os!==As):Bs===this||(this.lastPutMode=zs.checkPull(this,c,R,e))&&s.checkPut(this,c,R,e))){if(f=this._getDirection(e,n)===`vertical`,r=Mo(R),h(`dragOverValid`),qo.eventCanceled)return m;if(a)return Os=As,g(),this._hideClone(),h(`revert`),qo.eventCanceled||(js?As.insertBefore(R,js):As.appendChild(R)),_(!0);var y=Fo(t,o.draggable);if(!y||$o(e,f,this)&&!y.animated){if(y===R)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=Mo(n)),Yo(As,t,R,r,n,i,e,!!n)!==!1)return g(),t.appendChild(R),Os=t,v(),_(!0)}else if(y&&Qo(e,f,this)){var b=Po(t,0,o,!0);if(b===R)return _(!1);if(n=b,i=Mo(n),Yo(As,t,R,r,n,i,e,!1)!==!1)return g(),t.insertBefore(R,b),Os=t,v(),_(!0)}else if(n.parentNode===t){i=Mo(n);var x=0,S,C=R.parentNode!==t,w=!fc(R.animated&&R.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=No(n,`top`,`top`)||No(R,`top`,`top`),D=E?E.scrollTop:void 0;Zs!==n&&(S=i[T],$s=!1,ec=!w&&o.invertSwap||C),x=es(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,ec,Zs===n);var O;if(x!==0){var k=Io(R);do k-=x,O=Os.children[k];while(O&&(Oo(O,`display`)===`none`||O===ks))}if(x===0||O===n)return _(!1);Zs=n,Qs=x;var A=n.nextElementSibling,j=!1;j=x===1;var M=Yo(As,t,R,r,n,i,e,j);if(M!==!1)return(M===1||M===-1)&&(j=M===1),ic=!0,setTimeout(Zo,30),g(),j&&!A?t.appendChild(R):n.parentNode.insertBefore(R,j?A:n),E&&Vo(E,0,D-E.scrollTop),Os=R.parentNode,S!==void 0&&!ec&&(tc=Math.abs(S-Mo(n)[T])),v(),_(!0)}if(t.contains(R))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Co(document,`mousemove`,this._onTouchMove),Co(document,`touchmove`,this._onTouchMove),Co(document,`pointermove`,this._onTouchMove),Co(document,`dragover`,_c),Co(document,`mousemove`,_c),Co(document,`touchmove`,_c)},_offUpEvents:function(){var e=this.el.ownerDocument;Co(e,`mouseup`,this._onDrop),Co(e,`touchend`,this._onDrop),Co(e,`pointerup`,this._onDrop),Co(e,`touchcancel`,this._onDrop),Co(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(Is=Io(R),Rs=Io(R,n.draggable),Ds(`drop`,this,{evt:e}),Os=R&&R.parentNode,Is=Io(R),Rs=Io(R,n.draggable),qo.eventCanceled){this._nulling();return}Vs=!1,ec=!1,$s=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),as(this.cloneId),as(this._dragStartId),this.nativeDraggable&&(Co(document,`drop`,this),Co(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),gs&&Oo(document.body,`user-select`,``),Oo(R,`transform`,``),e&&(Xs&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ks&&ks.parentNode&&ks.parentNode.removeChild(ks),(As===Os||Bs&&Bs.lastPutMode!==`clone`)&&Ns&&Ns.parentNode&&Ns.parentNode.removeChild(Ns),R&&(this.nativeDraggable&&Co(R,`dragend`,this),Xo(R),R.style[`will-change`]=``,Xs&&!Vs&&Do(R,Bs?Bs.options.ghostClass:this.options.ghostClass,!1),Do(R,this.options.chosenClass,!1),Ko({sortable:this,name:`unchoose`,toEl:Os,newIndex:null,newDraggableIndex:null,originalEvent:e}),As===Os?Is!==Fs&&Is>=0&&(Ko({sortable:this,name:`update`,toEl:Os,originalEvent:e}),Ko({sortable:this,name:`sort`,toEl:Os,originalEvent:e})):(Is>=0&&(Ko({rootEl:Os,name:`add`,toEl:Os,fromEl:As,originalEvent:e}),Ko({sortable:this,name:`remove`,toEl:Os,originalEvent:e}),Ko({rootEl:Os,name:`sort`,toEl:Os,fromEl:As,originalEvent:e}),Ko({sortable:this,name:`sort`,toEl:Os,originalEvent:e})),Bs&&Bs.save()),qo.active&&((Is==null||Is===-1)&&(Is=Fs,Rs=Ls),Ko({sortable:this,name:`end`,toEl:Os,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds(`nulling`,this),As=R=Os=ks=js=Ns=Ms=Ps=Ws=Gs=Xs=Is=Rs=Fs=Ls=Zs=Qs=Bs=zs=qo.dragged=qo.ghost=qo.clone=qo.active=null,ac.forEach(function(e){e.checked=!0}),ac.length=Ks=qs=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:R&&(this._onDragOver(e),Jo(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],Eo(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||ns(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];Eo(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Eo(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=Ts.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&mc(n)},destroy:function(){Ds(`destroy`,this);var e=this.el;e[Ss]=null,Co(e,`mousedown`,this._onTapStart),Co(e,`touchstart`,this._onTapStart),Co(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(Co(e,`dragover`,this),Co(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),Us.splice(Us.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ps){if(Ds(`hideClone`,this),qo.eventCanceled)return;Oo(Ns,`display`,`none`),this.options.removeCloneOnHide&&Ns.parentNode&&Ns.parentNode.removeChild(Ns),Ps=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(Ps){if(Ds(`showClone`,this),qo.eventCanceled)return;R.parentNode==As&&!this.options.group.revertClone?As.insertBefore(Ns,R):js?As.insertBefore(Ns,js):As.appendChild(Ns),this.options.group.revertClone&&this.animate(R,Ns),Oo(Ns,`display`,``),Ps=!1}}},oc&&So(document,`touchmove`,function(e){(qo.active||Vs)&&e.cancelable&&e.preventDefault()}),qo.utils={on:So,off:Co,css:Oo,find:Ao,is:function(e,t){return!!Eo(e,t,e,!1)},extend:Vee,throttle:Bo,closest:Eo,toggleClass:Do,clone:Ho,index:Io,nextTick:is,cancelNextTick:as,detectDirection:dc,getChild:Po},qo.get=function(e){return e[Ss]},qo.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(qo.utils=ho(ho({},qo.utils),e.utils)),Ts.mount(e)})},qo.create=function(e,t){return new qo(e,t)},qo.version=fs,yc=[],Sc=!1,Dc=Bo(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=jo(),l=!1,u;xc!==n&&(xc=n,os(),bc=t.scroll,u=t.scrollFn,bc===!0&&(bc=Ro(n,!0)));var d=0,f=bc;do{var p=f,m=Mo(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=Oo(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),k=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!yc[d])for(var A=0;A<=d;A++)yc[A]||(yc[A]={});(yc[d].vx!=O||yc[d].vy!=k||yc[d].el!==p)&&(yc[d].el=p,yc[d].vx=O,yc[d].vy=k,clearInterval(yc[d].pid),(O!=0||k!=0)&&(l=!0,yc[d].pid=setInterval(function(){r&&this.layer===0&&qo.active._onTouchMove(Tc);var t=yc[this.layer].vy?yc[this.layer].vy*s:0,n=yc[this.layer].vx?yc[this.layer].vx*s:0;typeof u==`function`&&u.call(qo.dragged.parentNode[Ss],n,t,e,Tc,yc[this.layer].el)!==`continue`||Vo(yc[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Ro(f,!1)));Sc=l}},30),Oc=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}},cs.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Po(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Oc},_o(cs,{pluginName:`revertOnSpill`}),ls.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Oc},_o(ls,{pluginName:`removeOnSpill`}),Ac=[],jc=[],Pc=!1,Fc=!1,Ic=!1,qo.mount(new Kee),qo.mount(ls,cs)})),Zee=ye(fe(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(fo(),(Bc(),ce(po))):typeof define==`function`&&define.amd?define([,`sortablejs`],r):typeof e==`object`?e.vuedraggable=r(fo(),(Bc(),ce(po))):n.vuedraggable=r(n.Vue,n.Sortable)})(typeof self<`u`?self:e,function(e,t){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=`fb15`)})({"00ee":(function(e,t,n){var r=n(`b622`)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`}),"0366":(function(e,t,n){var r=n(`1c0b`);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),"057f":(function(e,t,n){var r=n(`fc6a`),i=n(`241c`).f,a={}.toString,o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch{return o.slice()}};e.exports.f=function(e){return o&&a.call(e)==`[object Window]`?s(e):i(r(e))}}),"06cf":(function(e,t,n){var r=n(`83ab`),i=n(`d1e7`),a=n(`5c6c`),o=n(`fc6a`),s=n(`c04e`),c=n(`5135`),l=n(`0cfb`),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch{}if(c(e,t))return a(!i.f.call(e,t),e[t])}}),"0cfb":(function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`cc12`);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!=7})}),"13d5":(function(e,t,n){var r=n(`23e7`),i=n(`d58f`).left,a=n(`a640`),o=n(`ae40`),s=a(`reduce`),c=o(`reduce`,{1:0});r({target:`Array`,proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(e,t,n){var r=n(`c6b6`),i=n(`9263`);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if(typeof a!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}}),"159b":(function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`17c2`),o=n(`9112`);for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{o(l,`forEach`,a)}catch{l.forEach=a}}}),"17c2":(function(e,t,n){var r=n(`b727`).forEach,i=n(`a640`),a=n(`ae40`),o=i(`forEach`),s=a(`forEach`);e.exports=!o||!s?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(e,t,n){e.exports=n(`d066`)(`document`,`documentElement`)}),"1c0b":(function(e,t){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}}),"1c7e":(function(e,t,n){var r=n(`b622`)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),"1d80":(function(e,t){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}}),"1dde":(function(e,t,n){var r=n(`d039`),i=n(`b622`),a=n(`2d00`),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),"23cb":(function(e,t,n){var r=n(`a691`),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}),"23e7":(function(e,t,n){var r=n(`da84`),i=n(`06cf`).f,a=n(`9112`),o=n(`6eeb`),s=n(`ce4e`),c=n(`e893`),l=n(`94ca`);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),"241c":(function(e,t,n){var r=n(`ca84`),i=n(`7839`).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),"25f0":(function(e,t,n){var r=n(`6eeb`),i=n(`825a`),a=n(`d039`),o=n(`ad6d`),s=`toString`,c=RegExp.prototype,l=c[s],u=a(function(){return l.call({source:`a`,flags:`b`})!=`/a/b`}),d=l.name!=s;(u||d)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags,r=String(n===void 0&&e instanceof RegExp&&!(`flags`in c)?o.call(e):n);return`/`+t+`/`+r},{unsafe:!0})}),"2ca0":(function(e,t,n){var r=n(`23e7`),i=n(`06cf`).f,a=n(`50c4`),o=n(`5a34`),s=n(`1d80`),c=n(`ab13`),l=n(`c430`),u=``.startsWith,d=Math.min,f=c(`startsWith`);r({target:`String`,proto:!0,forced:!(!l&&!f&&function(){var e=i(String.prototype,`startsWith`);return e&&!e.writable}())&&!f},{startsWith:function(e){var t=String(s(this));o(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})}),"2d00":(function(e,t,n){var r=n(`da84`),i=n(`342f`),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l}),"342f":(function(e,t,n){e.exports=n(`d066`)(`navigator`,`userAgent`)||``}),"35a1":(function(e,t,n){var r=n(`f5df`),i=n(`3f8c`),a=n(`b622`)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}}),"37e8":(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`825a`),o=n(`df75`);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}}),"3bbe":(function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}}),"3ca3":(function(e,t,n){var r=n(`6547`).charAt,i=n(`69f3`),a=n(`7dd0`),o=`String Iterator`,s=i.set,c=i.getterFor(o);a(String,`String`,function(e){s(this,{type:o,string:String(e),index:0})},function(){var e=c(this),t=e.string,n=e.index,i;return n>=t.length?{value:void 0,done:!0}:(i=r(t,n),e.index+=i.length,{value:i,done:!1})})}),"3f8c":(function(e,t){e.exports={}}),4160:(function(e,t,n){var r=n(`23e7`),i=n(`17c2`);r({target:`Array`,proto:!0,forced:[].forEach!=i},{forEach:i})}),"428f":(function(e,t,n){e.exports=n(`da84`)}),"44ad":(function(e,t,n){var r=n(`d039`),i=n(`c6b6`),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object}),"44d2":(function(e,t,n){var r=n(`b622`),i=n(`7c73`),a=n(`9bf2`),o=r(`unscopables`),s=Array.prototype;s[o]??a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),"44e7":(function(e,t,n){var r=n(`861d`),i=n(`c6b6`),a=n(`b622`)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}}),4930:(function(e,t,n){var r=n(`d039`);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})}),"4d64":(function(e,t,n){var r=n(`fc6a`),i=n(`50c4`),a=n(`23cb`),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),"4de4":(function(e,t,n){var r=n(`23e7`),i=n(`b727`).filter,a=n(`1dde`),o=n(`ae40`),s=a(`filter`),c=o(`filter`);r({target:`Array`,proto:!0,forced:!s||!c},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(e,t,n){var r=n(`0366`),i=n(`7b0b`),a=n(`9bdd`),o=n(`e95a`),s=n(`50c4`),c=n(`8418`),l=n(`35a1`);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}}),"4fad":(function(e,t,n){var r=n(`23e7`),i=n(`6f53`).entries;r({target:`Object`,stat:!0},{entries:function(e){return i(e)}})}),"50c4":(function(e,t,n){var r=n(`a691`),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),5135:(function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}}),5319:(function(e,t,n){var r=n(`d784`),i=n(`825a`),a=n(`7b0b`),o=n(`50c4`),s=n(`a691`),c=n(`1d80`),l=n(`8aa5`),u=n(`14c3`),d=Math.max,f=Math.min,p=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,g=function(e){return e===void 0?e:String(e)};r(`replace`,2,function(e,t,n,r){var _=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,y=_?`$`:`$0`;return[function(n,r){var i=c(this),a=n?.[e];return a===void 0?t.call(String(i),n,r):a.call(n,i,r)},function(e,r){if(!_&&v||typeof r==`string`&&r.indexOf(y)===-1){var a=n(t,e,this,r);if(a.done)return a.value}var c=i(e),p=String(this),m=typeof r==`function`;m||(r=String(r));var h=c.global;if(h){var x=c.unicode;c.lastIndex=0}for(var S=[];;){var C=u(c,p);if(C===null||(S.push(C),!h))break;String(C[0])===``&&(c.lastIndex=l(p,o(c.lastIndex),x))}for(var w=``,T=0,E=0;E<S.length;E++){C=S[E];for(var D=String(C[0]),O=d(f(s(C.index),p.length),0),k=[],A=1;A<C.length;A++)k.push(g(C[A]));var j=C.groups;if(m){var M=[D].concat(k,O,p);j!==void 0&&M.push(j);var ee=String(r.apply(void 0,M))}else ee=b(D,p,O,k,j,r);O>=T&&(w+=p.slice(T,O)+ee,T=O+D.length)}return w+p.slice(T)}];function b(e,n,r,i,o,s){var c=r+e.length,l=i.length,u=h;return o!==void 0&&(o=a(o),u=m),t.call(s,u,function(t,a){var s;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return n.slice(0,r);case`'`:return n.slice(c);case`<`:s=o[a.slice(1,-1)];break;default:var u=+a;if(u===0)return t;if(u>l){var d=p(u/10);return d===0?t:d<=l?i[d-1]===void 0?a.charAt(1):i[d-1]+a.charAt(1):t}s=i[u-1]}return s===void 0?``:s})}})}),5692:(function(e,t,n){var r=n(`c430`),i=n(`c6cd`);(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.6.5`,mode:r?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})}),"56ef":(function(e,t,n){var r=n(`d066`),i=n(`241c`),a=n(`7418`),o=n(`825a`);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}}),"5a34":(function(e,t,n){var r=n(`44e7`);e.exports=function(e){if(r(e))throw TypeError(`The method doesn't accept regular expressions`);return e}}),"5c6c":(function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),"5db7":(function(e,t,n){var r=n(`23e7`),i=n(`a2bf`),a=n(`7b0b`),o=n(`50c4`),s=n(`1c0b`),c=n(`65f0`);r({target:`Array`,proto:!0},{flatMap:function(e){var t=a(this),n=o(t.length),r;return s(e),r=c(t,0),r.length=i(r,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),r}})}),6547:(function(e,t,n){var r=n(`a691`),i=n(`1d80`),a=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}}),"65f0":(function(e,t,n){var r=n(`861d`),i=n(`e8b5`),a=n(`b622`)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}}),"69f3":(function(e,t,n){var r=n(`7f9a`),i=n(`da84`),a=n(`861d`),o=n(`9112`),s=n(`5135`),c=n(`f772`),l=n(`d012`),u=i.WeakMap,d,f,p,m=function(e){return p(e)?f(e):d(e,{})},h=function(e){return function(t){var n;if(!a(t)||(n=f(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var g=new u,_=g.get,v=g.has,y=g.set;d=function(e,t){return y.call(g,e,t),t},f=function(e){return _.call(g,e)||{}},p=function(e){return v.call(g,e)}}else{var b=c(`state`);l[b]=!0,d=function(e,t){return o(e,b,t),t},f=function(e){return s(e,b)?e[b]:{}},p=function(e){return s(e,b)}}e.exports={set:d,get:f,has:p,enforce:m,getterFor:h}}),"6eeb":(function(e,t,n){var r=n(`da84`),i=n(`9112`),a=n(`5135`),o=n(`ce4e`),s=n(`8925`),c=n(`69f3`),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),u(n).source=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})}),"6f53":(function(e,t,n){var r=n(`83ab`),i=n(`df75`),a=n(`fc6a`),o=n(`d1e7`).f,s=function(e){return function(t){for(var n=a(t),s=i(n),c=s.length,l=0,u=[],d;c>l;)d=s[l++],(!r||o.call(n,d))&&u.push(e?[d,n[d]]:n[d]);return u}};e.exports={entries:s(!0),values:s(!1)}}),"73d9":(function(e,t,n){n(`44d2`)(`flatMap`)}),7418:(function(e,t){t.f=Object.getOwnPropertySymbols}),"746f":(function(e,t,n){var r=n(`428f`),i=n(`5135`),a=n(`e538`),o=n(`9bf2`).f;e.exports=function(e){var t=r.Symbol||={};i(t,e)||o(t,e,{value:a.f(e)})}}),7839:(function(e,t){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),"7b0b":(function(e,t,n){var r=n(`1d80`);e.exports=function(e){return Object(r(e))}}),"7c73":(function(e,t,n){var r=n(`825a`),i=n(`37e8`),a=n(`7839`),o=n(`d012`),s=n(`1be4`),c=n(`cc12`),l=n(`f772`),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch{}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}}),"7dd0":(function(e,t,n){var r=n(`23e7`),i=n(`9ed3`),a=n(`e163`),o=n(`d2bb`),s=n(`d44e`),c=n(`9112`),l=n(`6eeb`),u=n(`b622`),d=n(`c430`),f=n(`3f8c`),p=n(`ae93`),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),k=t==`Array`&&E.entries||D,A,j,M;if(k&&(A=a(k.call(new e)),m!==Object.prototype&&A.next&&(!d&&a(A)!==m&&(o?o(A,m):typeof A[g]!=`function`&&c(A,g,b)),s(A,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(j={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(M in j)(h||T||!(M in E))&&l(E,M,j[M]);else r({target:t,proto:!0,forced:h||T},j);return j}}),"7f9a":(function(e,t,n){var r=n(`da84`),i=n(`8925`),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))}),"825a":(function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}}),"83ab":(function(e,t,n){e.exports=!n(`d039`)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(e,t,n){var r=n(`c04e`),i=n(`9bf2`),a=n(`5c6c`);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}}),"861d":(function(e,t){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),8875:(function(e,t,n){var r,i,a;(function(n,o){i=[],r=o,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(typeof self<`u`?self:this,function(){function e(){var t=Object.getOwnPropertyDescriptor(document,`currentScript`);if(!t&&`currentScript`in document&&document.currentScript||t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw Error()}catch(e){var n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),r=n&&n[1]||!1,i=n&&n[2]||!1,a=document.location.href.replace(document.location.hash,``),o,s,c,l=document.getElementsByTagName(`script`);r===a&&(o=document.documentElement.outerHTML,s=RegExp(`(?:[^\\n]+?\\n){0,`+(i-2)+`}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*`,`i`),c=o.replace(s,`$1`).trim());for(var u=0;u<l.length;u++)if(l[u].readyState===`interactive`||l[u].src===r||r===a&&l[u].innerHTML&&l[u].innerHTML.trim()===c)return l[u];return null}}return e})}),8925:(function(e,t,n){var r=n(`c6cd`),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource}),"8aa5":(function(e,t,n){var r=n(`6547`).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),"8bbf":(function(t,n){t.exports=e}),"90e3":(function(e,t){var n=0,r=Math.random();e.exports=function(e){return`Symbol(`+String(e===void 0?``:e)+`)_`+(++n+r).toString(36)}}),9112:(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`5c6c`);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),9263:(function(e,t,n){var r=n(`ad6d`),i=n(`9f7f`),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=(function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
`)&&(m=`(?: `+m+`)`,g=` `+g,h++),i=RegExp(`^(?:`+m+`)`,p)),u&&(i=RegExp(`^`+m+`$(?!\\s)`,p)),c&&(n=t.lastIndex),s=a.call(f?i:t,g),f?s?(s.input=s.input.slice(h),s[0]=s[0].slice(h),s.index=t.lastIndex,t.lastIndex+=s[0].length):t.lastIndex=0:c&&s&&(t.lastIndex=t.global?s.index+s[0].length:n),u&&s&&s.length>1&&o.call(s[0],i,function(){for(d=1;d<arguments.length-2;d++)arguments[d]===void 0&&(s[d]=void 0)}),s}),e.exports=s}),"94ca":(function(e,t,n){var r=n(`d039`),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a}),"99af":(function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`e8b5`),o=n(`861d`),s=n(`7b0b`),c=n(`50c4`),l=n(`8418`),u=n(`65f0`),d=n(`1dde`),f=n(`b622`),p=n(`2d00`),m=f(`isConcatSpreadable`),h=9007199254740991,g=`Maximum allowed index exceeded`,_=p>=51||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=d(`concat`),y=function(e){if(!o(e))return!1;var t=e[m];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,forced:!_||!v},{concat:function(e){var t=s(this),n=u(t,0),r=0,i,a,o,d,f;for(i=-1,o=arguments.length;i<o;i++)if(f=i===-1?t:arguments[i],y(f)){if(d=c(f.length),r+d>h)throw TypeError(g);for(a=0;a<d;a++,r++)a in f&&l(n,r,f[a])}else{if(r>=h)throw TypeError(g);l(n,r++,f)}return n.length=r,n}})}),"9bdd":(function(e,t,n){var r=n(`825a`);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw a!==void 0&&r(a.call(e)),t}}}),"9bf2":(function(e,t,n){var r=n(`83ab`),i=n(`0cfb`),a=n(`825a`),o=n(`c04e`),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),"9ed3":(function(e,t,n){var r=n(`ae93`).IteratorPrototype,i=n(`7c73`),a=n(`5c6c`),o=n(`d44e`),s=n(`3f8c`),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}}),"9f7f":(function(e,t,n){var r=n(`d039`);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null}),t.BROKEN_CARET=r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})}),a2bf:(function(e,t,n){var r=n(`e8b5`),i=n(`50c4`),a=n(`0366`),o=function(e,t,n,s,c,l,u,d){for(var f=c,p=0,m=u?a(u,d,3):!1,h;p<s;){if(p in n){if(h=m?m(n[p],p,t):n[p],l>0&&r(h))f=o(e,t,h,i(h.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError(`Exceed the acceptable array length`);e[f]=h}f++}p++}return f};e.exports=o}),a352:(function(e,n){e.exports=t}),a434:(function(e,t,n){var r=n(`23e7`),i=n(`23cb`),a=n(`a691`),o=n(`50c4`),s=n(`7b0b`),c=n(`65f0`),l=n(`8418`),u=n(`1dde`),d=n(`ae40`),f=u(`splice`),p=d(`splice`,{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,_=`Maximum allowed length exceeded`;r({target:`Array`,proto:!0,forced:!f||!p},{splice:function(e,t){var n=s(this),r=o(n.length),u=i(e,r),d=arguments.length,f,p,v,y,b,x;if(d===0?f=p=0:d===1?(f=0,p=r-u):(f=d-2,p=h(m(a(t),0),r-u)),r+f-p>g)throw TypeError(_);for(v=c(n,p),y=0;y<p;y++)b=u+y,b in n&&l(v,y,n[b]);if(v.length=p,f<p){for(y=u;y<r-p;y++)b=y+p,x=y+f,b in n?n[x]=n[b]:delete n[x];for(y=r;y>r-p+f;y--)delete n[y-1]}else if(f>p)for(y=r-p;y>u;y--)b=y+p-1,x=y+f-1,b in n?n[x]=n[b]:delete n[x];for(y=0;y<f;y++)n[y+u]=arguments[y+2];return n.length=r-p+f,v}})}),a4d3:(function(e,t,n){var r=n(`23e7`),i=n(`da84`),a=n(`d066`),o=n(`c430`),s=n(`83ab`),c=n(`4930`),l=n(`fdbf`),u=n(`d039`),d=n(`5135`),f=n(`e8b5`),p=n(`861d`),m=n(`825a`),h=n(`7b0b`),g=n(`fc6a`),_=n(`c04e`),v=n(`5c6c`),y=n(`7c73`),b=n(`df75`),x=n(`241c`),S=n(`057f`),C=n(`7418`),w=n(`06cf`),T=n(`9bf2`),E=n(`d1e7`),D=n(`9112`),O=n(`6eeb`),k=n(`5692`),A=n(`f772`),j=n(`d012`),M=n(`90e3`),ee=n(`b622`),te=n(`e538`),ne=n(`746f`),re=n(`d44e`),ie=n(`69f3`),N=n(`b727`).forEach,ae=A(`hidden`),oe=`Symbol`,se=`prototype`,ce=ee(`toPrimitive`),le=ie.set,ue=ie.getterFor(oe),de=Object[se],fe=i.Symbol,pe=a(`JSON`,`stringify`),me=w.f,he=T.f,ge=S.f,_e=E.f,ve=k(`symbols`),P=k(`op-symbols`),ye=k(`string-to-symbol-registry`),be=k(`symbol-to-string-registry`),F=k(`wks`),xe=i.QObject,Se=!xe||!xe[se]||!xe[se].findChild,Ce=s&&u(function(){return y(he({},`a`,{get:function(){return he(this,`a`,{value:7}).a}})).a!=7})?function(e,t,n){var r=me(de,t);r&&delete de[t],he(e,t,n),r&&e!==de&&he(de,t,r)}:he,we=function(e,t){var n=ve[e]=y(fe[se]);return le(n,{type:oe,tag:e,description:t}),s||(n.description=t),n},Te=l?function(e){return typeof e==`symbol`}:function(e){return Object(e)instanceof fe},I=function(e,t,n){e===de&&I(P,t,n),m(e);var r=_(t,!0);return m(n),d(ve,r)?(n.enumerable?(d(e,ae)&&e[ae][r]&&(e[ae][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,ae)||he(e,ae,v(1,{})),e[ae][r]=!0),Ce(e,r,n)):he(e,r,n)},Ee=function(e,t){m(e);var n=g(t);return N(b(n).concat(Ae(n)),function(t){(!s||Oe.call(n,t))&&I(e,t,n[t])}),e},De=function(e,t){return t===void 0?y(e):Ee(y(e),t)},Oe=function(e){var t=_(e,!0),n=_e.call(this,t);return this===de&&d(ve,t)&&!d(P,t)?!1:n||!d(this,t)||!d(ve,t)||d(this,ae)&&this[ae][t]?n:!0},L=function(e,t){var n=g(e),r=_(t,!0);if(!(n===de&&d(ve,r)&&!d(P,r))){var i=me(n,r);return i&&d(ve,r)&&!(d(n,ae)&&n[ae][r])&&(i.enumerable=!0),i}},ke=function(e){var t=ge(g(e)),n=[];return N(t,function(e){!d(ve,e)&&!d(j,e)&&n.push(e)}),n},Ae=function(e){var t=e===de,n=ge(t?P:g(e)),r=[];return N(n,function(e){d(ve,e)&&(!t||d(de,e))&&r.push(ve[e])}),r};c||(fe=function(){if(this instanceof fe)throw TypeError(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=M(e),n=function(e){this===de&&n.call(P,e),d(this,ae)&&d(this[ae],t)&&(this[ae][t]=!1),Ce(this,t,v(1,e))};return s&&Se&&Ce(de,t,{configurable:!0,set:n}),we(t,e)},O(fe[se],`toString`,function(){return ue(this).tag}),O(fe,`withoutSetter`,function(e){return we(M(e),e)}),E.f=Oe,T.f=I,w.f=L,x.f=S.f=ke,C.f=Ae,te.f=function(e){return we(ee(e),e)},s&&(he(fe[se],`description`,{configurable:!0,get:function(){return ue(this).description}}),o||O(de,`propertyIsEnumerable`,Oe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:fe}),N(b(F),function(e){ne(e)}),r({target:oe,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ye,t))return ye[t];var n=fe(t);return ye[t]=n,be[n]=t,n},keyFor:function(e){if(!Te(e))throw TypeError(e+` is not a symbol`);if(d(be,e))return be[e]},useSetter:function(){Se=!0},useSimple:function(){Se=!1}}),r({target:`Object`,stat:!0,forced:!c,sham:!s},{create:De,defineProperty:I,defineProperties:Ee,getOwnPropertyDescriptor:L}),r({target:`Object`,stat:!0,forced:!c},{getOwnPropertyNames:ke,getOwnPropertySymbols:Ae}),r({target:`Object`,stat:!0,forced:u(function(){C.f(1)})},{getOwnPropertySymbols:function(e){return C.f(h(e))}}),pe&&r({target:`JSON`,stat:!0,forced:!c||u(function(){var e=fe();return pe([e])!=`[null]`||pe({a:e})!=`{}`||pe(Object(e))!=`{}`})},{stringify:function(e,t,n){for(var r=[e],i=1,a;arguments.length>i;)r.push(arguments[i++]);if(a=t,!(!p(t)&&e===void 0||Te(e)))return f(t)||(t=function(e,t){if(typeof a==`function`&&(t=a.call(this,e,t)),!Te(t))return t}),r[1]=t,pe.apply(null,r)}}),fe[se][ce]||D(fe[se],ce,fe[se].valueOf),re(fe,oe),j[ae]=!0}),a630:(function(e,t,n){var r=n(`23e7`),i=n(`4df4`);r({target:`Array`,stat:!0,forced:!n(`1c7e`)(function(e){Array.from(e)})},{from:i})}),a640:(function(e,t,n){var r=n(`d039`);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}}),a691:(function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}}),ab13:(function(e,t,n){var r=n(`b622`)(`match`);e.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[r]=!1,`/./`[e](t)}catch{}}return!1}}),ac1f:(function(e,t,n){var r=n(`23e7`),i=n(`9263`);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})}),ad6d:(function(e,t,n){var r=n(`825a`);e.exports=function(){var e=r(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}}),ae40:(function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`5135`),o=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||={};var n=[][e],l=a(t,`ACCESSORS`)?t.ACCESSORS:!1,u=a(t,0)?t[0]:c,d=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(l&&!r)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)})}}),ae93:(function(e,t,n){var r=n(`e163`),i=n(`9112`),a=n(`5135`),o=n(`b622`),s=n(`c430`),c=o(`iterator`),l=!1,u=function(){return this},d,f,p;[].keys&&(p=[].keys(),`next`in p?(f=r(r(p)),f!==Object.prototype&&(d=f)):l=!0),d??={},!s&&!a(d,c)&&i(d,c,u),e.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:l}}),b041:(function(e,t,n){var r=n(`00ee`),i=n(`f5df`);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),b0c0:(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c=`name`;r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch{return``}}})}),b622:(function(e,t,n){var r=n(`da84`),i=n(`5692`),a=n(`5135`),o=n(`90e3`),s=n(`4930`),c=n(`fdbf`),l=i(`wks`),u=r.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=d(`Symbol.`+e)),l[e]}}),b64b:(function(e,t,n){var r=n(`23e7`),i=n(`7b0b`),a=n(`df75`);r({target:`Object`,stat:!0,forced:n(`d039`)(function(){a(1)})},{keys:function(e){return a(i(e))}})}),b727:(function(e,t,n){var r=n(`0366`),i=n(`44ad`),a=n(`7b0b`),o=n(`50c4`),s=n(`65f0`),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==5||d;return function(p,m,h,g){for(var _=a(p),v=i(_),y=r(m,h,3),b=o(v.length),x=0,S=g||s,C=t?S(p,b):n?S(p,0):void 0,w,T;b>x;x++)if((f||x in v)&&(w=v[x],T=y(w,x,_),e)){if(t)C[x]=T;else if(T)switch(e){case 3:return!0;case 5:return w;case 6:return x;case 2:c.call(C,w)}else if(u)return!1}return d?-1:l||u?u:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}}),c04e:(function(e,t,n){var r=n(`861d`);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}}),c430:(function(e,t){e.exports=!1}),c6b6:(function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}}),c6cd:(function(e,t,n){var r=n(`da84`),i=n(`ce4e`),a=`__core-js_shared__`;e.exports=r[a]||i(a,{})}),c740:(function(e,t,n){var r=n(`23e7`),i=n(`b727`).findIndex,a=n(`44d2`),o=n(`ae40`),s=`findIndex`,c=!0,l=o(s);s in[]&&[,][s](function(){c=!1}),r({target:`Array`,proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)}),c8ba:(function(e,t){var n=(function(){return this})();try{n||=Function(`return this`)()}catch{typeof window==`object`&&(n=window)}e.exports=n}),c975:(function(e,t,n){var r=n(`23e7`),i=n(`4d64`).indexOf,a=n(`a640`),o=n(`ae40`),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=a(`indexOf`),u=o(`indexOf`,{ACCESSORS:!0,1:0});r({target:`Array`,proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(e,t,n){var r=n(`5135`),i=n(`fc6a`),a=n(`4d64`).indexOf,o=n(`d012`);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),caad:(function(e,t,n){var r=n(`23e7`),i=n(`4d64`).includes,a=n(`44d2`);r({target:`Array`,proto:!0,forced:!n(`ae40`)(`indexOf`,{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(`includes`)}),cc12:(function(e,t,n){var r=n(`da84`),i=n(`861d`),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),ce4e:(function(e,t,n){var r=n(`da84`),i=n(`9112`);e.exports=function(e,t){try{i(r,e,t)}catch{r[e]=t}return t}}),d012:(function(e,t){e.exports={}}),d039:(function(e,t){e.exports=function(e){try{return!!e()}catch{return!0}}}),d066:(function(e,t,n){var r=n(`428f`),i=n(`da84`),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}),d1e7:(function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r}),d28b:(function(e,t,n){n(`746f`)(`iterator`)}),d2bb:(function(e,t,n){var r=n(`825a`),i=n(`3bbe`);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=t instanceof Array}catch{}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)}),d3b7:(function(e,t,n){var r=n(`00ee`),i=n(`6eeb`),a=n(`b041`);r||i(Object.prototype,`toString`,a,{unsafe:!0})}),d44e:(function(e,t,n){var r=n(`9bf2`).f,i=n(`5135`),a=n(`b622`)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}}),d58f:(function(e,t,n){var r=n(`1c0b`),i=n(`7b0b`),a=n(`44ad`),o=n(`50c4`),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}}),d784:(function(e,t,n){n(`ac1f`);var r=n(`6eeb`),i=n(`d039`),a=n(`b622`),o=n(`9263`),s=n(`9112`),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=(function(){return`a`.replace(/./,`$0`)===`$0`})(),d=a(`replace`),f=(function(){return/./[d]?/./[d](`a`,`$0`)===``:!1})(),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}}),d81d:(function(e,t,n){var r=n(`23e7`),i=n(`b727`).map,a=n(`1dde`),o=n(`ae40`),s=a(`map`),c=o(`map`);r({target:`Array`,proto:!0,forced:!s||!c},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof t==`object`&&t)||Function(`return this`)()}).call(this,n(`c8ba`))}),dbb4:(function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`56ef`),o=n(`fc6a`),s=n(`06cf`),c=n(`8418`);r({target:`Object`,stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t=o(e),n=s.f,r=a(t),i={},l=0,u,d;r.length>l;)d=n(t,u=r[l++]),d!==void 0&&c(i,u,d);return i}})}),dbf1:(function(e,t,n){(function(e){n.d(t,`a`,function(){return i});function r(){return typeof window<`u`?window.console:e.console}var i=r()}).call(this,n(`c8ba`))}),ddb0:(function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`e260`),o=n(`9112`),s=n(`b622`),c=s(`iterator`),l=s(`toStringTag`),u=a.values;for(var d in i){var f=r[d],p=f&&f.prototype;if(p){if(p[c]!==u)try{o(p,c,u)}catch{p[c]=u}if(p[l]||o(p,l,d),i[d]){for(var m in a)if(p[m]!==a[m])try{o(p,m,a[m])}catch{p[m]=a[m]}}}}}),df75:(function(e,t,n){var r=n(`ca84`),i=n(`7839`);e.exports=Object.keys||function(e){return r(e,i)}}),e01a:(function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`da84`),o=n(`5135`),s=n(`861d`),c=n(`9bf2`).f,l=n(`e893`),u=a.Symbol;if(i&&typeof u==`function`&&(!(`description`in u.prototype)||u().description!==void 0)){var d={},f=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=this instanceof f?new u(e):e===void 0?u():u(e);return e===``&&(d[t]=!0),t};l(f,u);var p=f.prototype=u.prototype;p.constructor=f;var m=p.toString,h=String(u(`test`))==`Symbol(test)`,g=/^Symbol\((.*)\)[^)]+$/;c(p,`description`,{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(o(d,e))return``;var n=h?t.slice(7,-1):t.replace(g,`$1`);return n===``?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}}),e163:(function(e,t,n){var r=n(`5135`),i=n(`7b0b`),a=n(`f772`),o=n(`e177`),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}),e177:(function(e,t,n){e.exports=!n(`d039`)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),e260:(function(e,t,n){var r=n(`fc6a`),i=n(`44d2`),a=n(`3f8c`),o=n(`69f3`),s=n(`7dd0`),c=`Array Iterator`,l=o.set,u=o.getterFor(c);e.exports=s(Array,`Array`,function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},`values`),a.Arguments=a.Array,i(`keys`),i(`values`),i(`entries`)}),e439:(function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`fc6a`),o=n(`06cf`).f,s=n(`83ab`),c=i(function(){o(1)});r({target:`Object`,stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})}),e538:(function(e,t,n){t.f=n(`b622`)}),e893:(function(e,t,n){var r=n(`5135`),i=n(`56ef`),a=n(`06cf`),o=n(`9bf2`);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}}),e8b5:(function(e,t,n){var r=n(`c6b6`);e.exports=Array.isArray||function(e){return r(e)==`Array`}}),e95a:(function(e,t,n){var r=n(`b622`),i=n(`3f8c`),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),f5df:(function(e,t,n){var r=n(`00ee`),i=n(`c6b6`),a=n(`b622`)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch{}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}}),f772:(function(e,t,n){var r=n(`5692`),i=n(`90e3`),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}}),fb15:(function(e,t,n){if(n.r(t),typeof window<`u`){var r=window.document.currentScript,i=n(`8875`);r=i(),`currentScript`in document||Object.defineProperty(document,`currentScript`,{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n(`99af`),n(`4de4`),n(`4160`),n(`c975`),n(`d81d`),n(`a434`),n(`159b`),n(`a4d3`),n(`e439`),n(`dbb4`),n(`b64b`);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){if(Array.isArray(e))return e}n(`e01a`),n(`d28b`),n(`e260`),n(`d3b7`),n(`3ca3`),n(`ddb0`);function u(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}n(`a630`),n(`fb6a`),n(`b0c0`),n(`25f0`);function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(e){if(typeof e==`string`)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}function p(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(e,t){return l(e)||u(e,t)||f(e,t)||p()}function h(e){if(Array.isArray(e))return d(e)}function g(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function _(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(e){return h(e)||g(e)||f(e)||_()}var y=n(`a352`),b=n.n(y);function x(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function S(e,t,n){var r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var C=n(`dbf1`);n(`13d5`),n(`4fad`),n(`ac1f`),n(`5319`);function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var T=/-(\w)/g,E=w(function(e){return e.replace(T,function(e,t){return t.toUpperCase()})});n(`5db7`),n(`73d9`);var D=[`Start`,`Add`,`Remove`,`Update`,`End`],O=[`Choose`,`Unchoose`,`Sort`,`Filter`,`Clone`],k=[`Move`],A=[k,D,O].flatMap(function(e){return e}).map(function(e){return`on${e}`}),j={manage:k,manageAndEmit:D,emit:O};function M(e){return A.indexOf(e)!==-1}n(`caad`),n(`2ca0`);var ee=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function te(e){return ee.includes(e)}function ne(e){return[`transition-group`,`TransitionGroup`].includes(e)}function re(e){return[`id`,`class`,`role`,`style`].includes(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`)}function ie(e){return e.reduce(function(e,t){var n=m(t,2),r=n[0];return e[r]=n[1],e},{})}function N(e){var t=e.$attrs,n=e.componentData,r=n===void 0?{}:n;return c(c({},ie(Object.entries(t).filter(function(e){var t=m(e,2),n=t[0];return t[1],re(n)}))),r)}function ae(e){var t=e.$attrs,n=e.callBackBuilder,r=ie(oe(t));Object.entries(n).forEach(function(e){var t=m(e,2),n=t[0],i=t[1];j[n].forEach(function(e){r[`on${e}`]=i(e)})});var i=`[data-draggable]${r.draggable||``}`;return c(c({},r),{},{draggable:i})}function oe(e){return Object.entries(e).filter(function(e){var t=m(e,2),n=t[0];return t[1],!re(n)}).map(function(e){var t=m(e,2),n=t[0],r=t[1];return[E(n),r]}).filter(function(e){var t=m(e,2),n=t[0];return t[1],!M(n)})}n(`c740`);function se(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),e}var ue=function(e){return e.el},de=function(e,t){return e.__draggable_context=t},fe=function(e){return e.__draggable_context},pe=function(){function e(t){var n=t.nodes,r=n.header,i=n.default,a=n.footer,o=t.root,s=t.realList;se(this,e),this.defaultNodes=i,this.children=[].concat(v(r),v(i),v(a)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return le(e,[{key:`render`,value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:`updated`,value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){de(ue(e),{element:t[n],index:n})})}},{key:`getUnderlyingVm`,value:function(e){return fe(e)}},{key:`getVmIndexFromDomIndex`,value:function(e,t){var n=this.defaultNodes,r=n.length,i=t.children,a=i.item(e);if(a===null)return r;var o=fe(a);if(o)return o.index;if(r===0)return 0;var s=ue(n[0]);return e<v(i).findIndex(function(e){return e===s})?0:r}},{key:`_isRootComponent`,get:function(){return this.externalComponent||this.rootTransition}}]),e}(),me=n(`8bbf`);function he(e,t){var n=e[t];return n?n():[]}function ge(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],a=m([`header`,`footer`].map(function(e){return he(t,e)}),2),o=a[0],s=a[1],l=t.item;if(!l)throw Error(`draggable element must have an item slot`);var u=i.flatMap(function(e,t){return l({element:e,index:t}).map(function(t){return t.key=r(e),t.props=c(c({},t.props||{}),{},{"data-draggable":!0}),t})});if(u.length!==i.length)throw Error(`Item slot must have only one child`);return{header:o,footer:s,default:u}}function _e(e){var t=ne(e),n=!te(e)&&!t;return{transition:t,externalComponent:n,tag:n?(0,me.resolveComponent)(e):t?me.TransitionGroup:e}}function ve(e){var t=e.$slots,n=e.tag,r=e.realList,i=e.getKey;return new pe({nodes:ge({$slots:t,realList:r,getKey:i}),root:_e(n),realList:r})}function P(e,t){var n=this;(0,me.nextTick)(function(){return n.$emit(e.toLowerCase(),t)})}function ye(e){var t=this;return function(n,r){if(t.realList!==null)return t[`onDrag${e}`](n,r)}}function be(e){var t=this,n=ye.call(this,e);return function(r,i){n.call(t,r,i),P.call(t,e,r)}}var F=null,xe={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:`div`},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Se=[`update:modelValue`,`change`].concat(v([].concat(v(j.manageAndEmit),v(j.emit)).map(function(e){return e.toLowerCase()})));t.default=(0,me.defineComponent)({name:`draggable`,inheritAttrs:!1,props:xe,emits:Se,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,i=this.realList,a=this.getKey,o=ve({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=o;var s=N({$attrs:t,componentData:r});return o.render(me.h,s)}catch(e){return this.error=!0,(0,me.h)(`pre`,{style:{color:`red`}},e.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&C.a.error(`modelValue and list props are mutually exclusive! Please set one or another.`)},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=ae({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return be.call(e,t)},emit:function(t){return P.bind(e,t)},manage:function(t){return ye.call(e,t)}}}),i=n.nodeType===1?n:n.parentElement;this._sortable=new b.a(i,r),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){return this.list||this.modelValue},getKey:function(){var e=this.itemKey;return typeof e==`function`?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&oe(e).forEach(function(e){var n=m(e,2),r=n[0],i=n[1];t.option(r,i)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;(0,me.nextTick)(function(){return t.$emit(`change`,e)})},alterList:function(e){if(this.list){e(this.list);return}var t=v(this.modelValue);e(t),this.$emit(`update:modelValue`,t)},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,v(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};return t!==n&&i?c(c({},r.getUnderlyingVm(n)||{}),a):a},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),F=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(t!==void 0){x(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(S(this.$el,e.item,e.oldIndex),e.pullMode===`clone`){x(e.clone);return}var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var i={element:r,oldIndex:n};this.emitChanges({removed:i})},onDragUpdate:function(e){x(e.item),S(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=v(t.to.children).filter(function(e){return e.style.display!==`none`}),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return n.indexOf(F)!==-1||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var i=this.getRelatedContextFromMoveEvent(e),a=this.computeFutureIndex(i,e),o=c(c({},this.context),{},{futureIndex:a});return n(c(c({},e),{},{relatedContext:i,draggedContext:o}),t)},onDragEnd:function(){F=null}}})}),fb6a:(function(e,t,n){var r=n(`23e7`),i=n(`861d`),a=n(`e8b5`),o=n(`23cb`),s=n(`50c4`),c=n(`fc6a`),l=n(`8418`),u=n(`b622`),d=n(`1dde`),f=n(`ae40`),p=d(`slice`),m=f(`slice`,{ACCESSORS:!0,0:0,1:2}),h=u(`species`),g=[].slice,_=Math.max;r({target:`Array`,proto:!0,forced:!p||!m},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),f,p,m;if(a(n)&&(f=n.constructor,typeof f==`function`&&(f===Array||a(f.prototype))?f=void 0:i(f)&&(f=f[h],f===null&&(f=void 0)),f===Array||f===void 0))return g.call(n,u,d);for(p=new(f===void 0?Array:f)(_(d-u,0)),m=0;u<d;u++,m++)u in n&&l(p,m,n[u]);return p.length=m,p}})}),fc6a:(function(e,t,n){var r=n(`44ad`),i=n(`1d80`);e.exports=function(e){return r(i(e))}}),fdbc:(function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(e,t,n){e.exports=n(`4930`)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})}).default})}))(),1),Vc=`commitment_promise`,Qee=[{value:`text`,label:`单行文本`},{value:`email`,label:`邮箱`},{value:`tel`,label:`手机/电话`},{value:`textarea`,label:`多行文本`},{value:`number`,label:`数字`},{value:`select`,label:`下拉选择`},{value:`checkbox`,label:`勾选确认(通用)`},{value:Vc,label:`签署承诺书`},{value:`file`,label:`文件上传`},{value:`date`,label:`日期`}],Hc=[{value:`number`,label:`数字(打分维度)`},{value:`textarea`,label:`多行文本(评语等)`},{value:`text`,label:`单行文本`}],Uc=[{value:``,label:`不设置预填`},{value:`user.name`,label:`用户资料:姓名(users.name)`},{value:`user.mobile`,label:`用户资料:手机号(users.mobile)`},{value:`user.email`,label:`用户资料:邮箱(users.email)`},{value:`user.company`,label:`用户资料:公司(users.company)`}];function Wc(){return globalThis.crypto?.randomUUID?.()??`f_${Date.now()}_${Math.random().toString(36).slice(2)}`}function Gc(e,t){let n=e===`review`?`number`:`text`;return{__uid:Wc(),key:e===`review`?`dim_${t+1}`:`field_${t+1}`,type:n,label:e===`review`?`评分维度 ${t+1}`:`字段 ${t+1}`,required:e!==`review`,titleSupplement:``,placeholder:``,help:``,options:[],prefillFrom:``,requiredWhenField:``,requiredWhenValuesLines:``,fileExtensionsLines:``,fileMaxCount:``}}function $ee(e){return Array.isArray(e)?e.map(e=>typeof e==`object`&&e&&`label`in e&&`value`in e?{label:String(e.label),value:String(e.value)}:typeof e==`string`?{label:e,value:e}:null).filter(e=>e!=null&&e.label!==``):[]}function Kc(e,t){return Array.isArray(e)?e.map((e,n)=>{if(typeof e!=`object`||!e)return Gc(t,n);let r=e,i=String(r.key??(t===`review`?`dim_${n+1}`:`field_${n+1}`)),a=String(r.type??(t===`review`?`number`:`text`)),o=t===`signup`&&i===`commitment_accepted`&&a===`checkbox`?Vc:a,s=``,c=``;if(t===`signup`){let e=r.required_when;if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e;s=String(t.field??``).trim();let n=t.values;Array.isArray(n)&&(c=n.map(e=>String(e).trim()).filter(Boolean).join(`
`))}}return{__uid:Wc(),key:i,type:o,label:String(r.label??`字段 ${n+1}`),required:!!r.required,titleSupplement:r.title_supplement==null?``:String(r.title_supplement),placeholder:r.placeholder==null?``:String(r.placeholder),help:r.help==null?``:String(r.help),options:o===`select`?$ee(r.options):[],prefillFrom:t===`signup`&&r.prefill_from!=null?String(r.prefill_from).trim():``,requiredWhenField:s,requiredWhenValuesLines:c,fileExtensionsLines:(()=>{if(o!==`file`)return``;let e=r.file_extensions;return Array.isArray(e)?e.map(e=>String(e).trim().toLowerCase().replace(/^\./,``)).filter(Boolean).join(`
`):``})(),fileMaxCount:(()=>{if(o!==`file`)return``;let e=r.file_max_count;if(e==null||e===``)return``;let t=typeof e==`number`?e:parseInt(String(e),10);return Number.isFinite(t)&&t>=1?String(Math.floor(t)):``})()}}):[Gc(t,0)]}function qc(e,t){return e.map(e=>{let n=e.type===Vc,r={key:n?`commitment_accepted`:e.key.trim(),type:n?`checkbox`:e.type,label:e.label.trim(),required:e.required};if(e.placeholder?.trim()&&(r.placeholder=e.placeholder.trim()),e.help?.trim()&&(r.help=e.help.trim()),e.titleSupplement?.trim()&&(r.title_supplement=e.titleSupplement.trim()),t===`signup`&&!n&&e.type!==`file`&&e.prefillFrom?.trim()&&(r.prefill_from=e.prefillFrom.trim()),e.type===`file`){let t=String(e.fileExtensionsLines??``).split(`
`).map(e=>e.trim().toLowerCase().replace(/^\./,``)).filter(Boolean);t.length&&(r.file_extensions=[...new Set(t)]);let n=parseInt(String(e.fileMaxCount??``).trim(),10);Number.isFinite(n)&&n>=1&&(r.file_max_count=n)}if(e.type===`select`&&e.options?.length&&(r.options=e.options.filter(e=>e.value!==``||e.label!==``)),t===`signup`&&!n&&e.requiredWhenField?.trim()&&e.requiredWhenValuesLines?.trim()){let t=e.requiredWhenValuesLines.split(`
`).map(e=>e.trim()).filter(Boolean);t.length&&(r.required_when={field:e.requiredWhenField.trim(),values:t})}return r})}function ete(e,t){let n=new Set;for(let r of e){let e=r.key.trim();if(!e)return`存在未填写「字段 key」的项(须为英文/数字/下划线,与存储键一致)`;if(n.has(e))return`字段 key「${e}」重复`;if(n.add(e),!r.label.trim())return`字段「${e}」缺少显示标签`;if(t===`signup`&&r.type!==`commitment_promise`&&r.requiredWhenField?.trim()&&!r.requiredWhenValuesLines?.trim())return`字段「${e}」填写了条件必填依赖,但未填写「当取值」列表`}return null}var tte={class:`form-schema-visual-editor`},nte={class:`toolbar`},rte={class:`field-card-row`},ite={class:`field-card-body`},ate={class:`prefill-mapping`},ote={class:`prefill-mapping-header`},ste={class:`prefill-mapping-desc`},cte={class:`prefill-mapping-result`},lte={class:`prefill-source-label`},ute=Oe(oe({__name:`FormSchemaVisualEditor`,props:s({purpose:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,i=ue(e,`modelValue`),o=M(()=>t.purpose===`review`?Hc:Qee);function s(){i.value=[...i.value,Gc(t.purpose,i.value.length)]}function c(e){let t=i.value[e];if(!t)return;let n={...t,__uid:globalThis.crypto?.randomUUID?.()??`f_${Date.now()}`,key:`${t.key}_copy`,label:`${t.label}(副本)`},r=[...i.value];r.splice(e+1,0,n),i.value=r}function l(e){i.value.length<=1||(i.value=i.value.filter((t,n)=>n!==e))}function u(e){e.type===`commitment_promise`?(e.key=`commitment_accepted`,e.options=[],e.prefillFrom=``,e.requiredWhenField=``,e.requiredWhenValuesLines=``,e.label.trim()||(e.label=`本人已阅读并同意《参赛承诺书》的全部内容`),e.required=!0):e.type!==`select`&&(e.options=[]),e.type===`file`&&(e.prefillFrom=``)}function d(e){return(e??[]).map(e=>`${e.label}|${e.value}`).join(`
`)}function f(e,t){e.options=t.split(`
`).map(e=>{let t=e.indexOf(`|`);if(t===-1){let t=e.trim();return t?{label:t,value:t}:null}let n=e.slice(0,t).trim(),r=e.slice(t+1).trim()||n;return n||r?{label:n||r,value:r||n}:null}).filter(e=>e!=null)}function m(e){return Uc.find(t=>t.value===e)?.label??`不设置预填`}return(t,h)=>{let g=D(`el-alert`),_=D(`el-button`),y=D(`el-option`),b=D(`el-select`),x=D(`el-col`),S=D(`el-input`),C=D(`el-tag`),w=D(`el-row`),E=D(`el-switch`),O=D(`el-card`);return he(),be(`div`,tte,[e.purpose===`signup`?(he(),v(g,{key:0,type:`info`,closable:!1,class:`prefill-rule-alert`,title:`报名侧预填对照关系由后端配置`,description:`在每个报名字段中设置「预填对照关系」。选手进入报名页加载当前报名记录时,后端只会在该报名字段为空时按对照关系补值,已填写或已保存的内容不会被覆盖。`})):n(``,!0),F(`div`,nte,[p(_,{type:`primary`,onClick:s},{default:P(()=>[...h[1]||=[r(`添加字段`,-1)]]),_:1}),h[2]||=F(`span`,{class:`hint`},`拖拽左侧把手调整顺序`,-1)]),p(a(Zee.default),{modelValue:i.value,"onUpdate:modelValue":h[0]||=e=>i.value=e,"item-key":`__uid`,handle:`.drag-handle`,animation:200,tag:`div`,class:`schema-draggable-list`},{item:P(({element:t,index:s})=>[p(O,{shadow:`hover`,class:`field-card`},{default:P(()=>[F(`div`,rte,[h[23]||=F(`span`,{class:`drag-handle`,title:`拖动排序`},`⠿`,-1),F(`div`,ite,[p(w,{gutter:12},{default:P(()=>[p(x,{xs:24,sm:8},{default:P(()=>[h[3]||=F(`div`,{class:`field-label`},`类型`,-1),p(b,{modelValue:t.type,"onUpdate:modelValue":e=>t.type=e,class:`w-100`,onChange:e=>u(t)},{default:P(()=>[(he(!0),be(re,null,T(o.value,e=>(he(),v(y,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`onChange`])]),_:2},1024),p(x,{xs:24,sm:8},{default:P(()=>[h[4]||=F(`div`,{class:`field-label`},`显示标签`,-1),p(S,{modelValue:t.label,"onUpdate:modelValue":e=>t.label=e,placeholder:`如:参赛作品名称`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),p(x,{xs:24,sm:8},{default:P(()=>[h[5]||=F(`div`,{class:`field-label`},`字段 key(英文)`,-1),p(S,{modelValue:t.key,"onUpdate:modelValue":e=>t.key=e,disabled:t.type===a(Vc),placeholder:`如 project_name`},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])]),_:2},1024),p(x,{span:24},{default:P(()=>[h[6]||=F(`div`,{class:`field-label`},`标题补充`,-1),p(S,{modelValue:t.titleSupplement,"onUpdate:modelValue":e=>t.titleSupplement=e,placeholder:`可选,展示在标题后;必填项时显示在 * 后面`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),p(x,{xs:24,sm:12},{default:P(()=>[h[7]||=F(`div`,{class:`field-label`},`占位提示`,-1),p(S,{modelValue:t.placeholder,"onUpdate:modelValue":e=>t.placeholder=e,placeholder:`可选`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),p(x,{xs:24,sm:12},{default:P(()=>[h[8]||=F(`div`,{class:`field-label`},`填报说明`,-1),p(S,{modelValue:t.help,"onUpdate:modelValue":e=>t.help=e,placeholder:`可选,展示在表单项下方`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),e.purpose===`signup`&&t.type!==`file`&&t.type!==a(`commitment_promise`)?(he(),v(x,{key:0,span:24},{default:P(()=>[F(`div`,ate,[F(`div`,ote,[h[9]||=F(`span`,null,`预填对照关系`,-1),p(C,{size:`small`,type:t.prefillFrom?`success`:`info`,effect:`plain`},{default:P(()=>[r(N(t.prefillFrom?`已设置`:`未设置`),1)]),_:2},1032,[`type`])]),F(`p`,ste,[h[10]||=r(` 后端将报名字段 `,-1),F(`code`,null,N(t.key||`未填写 key`),1),h[11]||=r(` 对照到指定用户资料来源; 报名侧只消费后端返回值,且仅空值时补入。 `,-1)]),p(w,{gutter:12},{default:P(()=>[p(x,{xs:24,sm:12},{default:P(()=>[h[12]||=F(`div`,{class:`field-label`},`目标报名字段(schema key)`,-1),p(S,{"model-value":t.key,disabled:``,placeholder:`请先填写字段 key`},null,8,[`model-value`])]),_:2},1024),p(x,{xs:24,sm:12},{default:P(()=>[h[13]||=F(`div`,{class:`field-label`},`来源用户资料(prefill_from)`,-1),p(b,{modelValue:t.prefillFrom,"onUpdate:modelValue":e=>t.prefillFrom=e,class:`w-100`},{default:P(()=>[(he(!0),be(re,null,T(a(Uc),e=>(he(),v(y,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)]),_:2},1024),F(`div`,cte,[h[14]||=F(`span`,null,`当前关系:`,-1),F(`code`,null,N(t.key||`报名字段 key`),1),h[15]||=F(`span`,null,` ← `,-1),F(`code`,null,N(t.prefillFrom||`未绑定来源`),1),F(`span`,lte,N(m(t.prefillFrom)),1)])])]),_:2},1024)):n(``,!0),e.purpose===`signup`&&t.type===`file`?(he(),v(x,{key:1,span:24},{default:P(()=>[h[16]||=F(`div`,{class:`field-label`},`文件格式限制(可选)`,-1),p(S,{modelValue:t.fileExtensionsLines,"onUpdate:modelValue":e=>t.fileExtensionsLines=e,type:`textarea`,rows:2,placeholder:`每行一个扩展名(不含点),如 pdf;不填则不额外收紧(仍仅能上传系统全局允许的格式)`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)):n(``,!0),e.purpose===`signup`&&t.type===`file`?(he(),v(x,{key:2,xs:24,sm:8},{default:P(()=>[h[17]||=F(`div`,{class:`field-label`},`最多上传文件数(可选)`,-1),p(S,{modelValue:t.fileMaxCount,"onUpdate:modelValue":e=>t.fileMaxCount=e,placeholder:`不填则不限制个数`,inputmode:`numeric`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)):n(``,!0),t.type===`select`?(he(),v(x,{key:3,span:24},{default:P(()=>[h[18]||=F(`div`,{class:`field-label`},`选项(每行:显示文本|值)`,-1),p(S,{type:`textarea`,rows:4,"model-value":d(t.options),placeholder:`每行:本科|undergraduate`,onInput:e=>f(t,e)},null,8,[`model-value`,`onInput`])]),_:2},1024)):n(``,!0),e.purpose===`signup`&&t.type!==a(`commitment_promise`)?(he(),v(x,{key:4,span:24},{default:P(()=>[h[19]||=F(`div`,{class:`field-label`},`条件必填(可选)`,-1),h[20]||=F(`p`,{class:`cond-hint`},` 当下方「依赖字段」取值为列表中任一值时,本字段视为必填(示例:企业名称依赖「参赛组别」为「创业组」)。 `,-1),p(S,{modelValue:t.requiredWhenField,"onUpdate:modelValue":e=>t.requiredWhenField=e,class:`mb-2`,placeholder:`依赖字段 key,如 entry_group`},null,8,[`modelValue`,`onUpdate:modelValue`]),p(S,{modelValue:t.requiredWhenValuesLines,"onUpdate:modelValue":e=>t.requiredWhenValuesLines=e,type:`textarea`,rows:3,placeholder:`依赖取值,每行一个,例如:
创业组`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)):n(``,!0),p(x,{span:24,class:`field-actions`},{default:P(()=>[p(E,{modelValue:t.required,"onUpdate:modelValue":e=>t.required=e,"active-text":`必填`},null,8,[`modelValue`,`onUpdate:modelValue`]),p(_,{size:`small`,onClick:e=>c(s)},{default:P(()=>[...h[21]||=[r(`复制`,-1)]]),_:1},8,[`onClick`]),p(_,{size:`small`,type:`danger`,plain:``,disabled:i.value.length<=1,onClick:e=>l(s)},{default:P(()=>[...h[22]||=[r(` 删除 `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1024)]),_:2},1024)])])]),_:2},1024)]),_:1},8,[`modelValue`])])}}}),[[`__scopeId`,`data-v-c5fa7cb4`]]),Jc=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Xc(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zc,Qc,$c=function(e){return e&&e.Math==Math&&e},el=$c(typeof globalThis==`object`&&globalThis)||$c(typeof window==`object`&&window)||$c(typeof self==`object`&&self)||$c(typeof Jc==`object`&&Jc)||function(){return this}()||Function(`return this`)(),tl=Function.prototype,nl=tl.apply,dte=tl.bind,rl=tl.call,il=typeof Reflect==`object`&&Reflect.apply||(dte?rl.bind(nl):function(){return rl.apply(nl,arguments)}),al=Function.prototype,ol=al.bind,sl=al.call,fte=ol&&ol.bind(sl),cl=ol?function(e){return e&&fte(sl,e)}:function(e){return e&&function(){return sl.apply(e,arguments)}},ll=function(e){return typeof e==`function`},ul=function(e){try{return!!e()}catch{return!0}},dl=!ul((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),fl=Function.prototype.call,pl=fl.bind?fl.bind(fl):function(){return fl.apply(fl,arguments)},ml={}.propertyIsEnumerable,hl=Object.getOwnPropertyDescriptor,gl={f:hl&&!ml.call({1:2},1)?function(e){var t=hl(this,e);return!!t&&t.enumerable}:ml},_l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pte=cl({}.toString),mte=cl(``.slice),vl=function(e){return mte(pte(e),8,-1)},yl=el.Object,hte=cl(``.split),bl=ul((function(){return!yl(`z`).propertyIsEnumerable(0)}))?function(e){return vl(e)==`String`?hte(e,``):yl(e)}:yl,gte=el.TypeError,xl=function(e){if(e==null)throw gte(`Can't call method on `+e);return e},Sl=function(e){return bl(xl(e))},Cl=function(e){return typeof e==`object`?e!==null:ll(e)},wl={},Tl=function(e){return ll(e)?e:void 0},El=function(e,t){return arguments.length<2?Tl(wl[e])||Tl(el[e]):wl[e]&&wl[e][t]||el[e]&&el[e][t]},Dl=cl({}.isPrototypeOf),Ol=El(`navigator`,`userAgent`)||``,kl=el.process,Al=el.Deno,jl=kl&&kl.versions||Al&&Al.version,Ml=jl&&jl.v8;Ml&&(Qc=(Zc=Ml.split(`.`))[0]>0&&Zc[0]<4?1:+(Zc[0]+Zc[1])),!Qc&&Ol&&(!(Zc=Ol.match(/Edge\/(\d+)/))||Zc[1]>=74)&&(Zc=Ol.match(/Chrome\/(\d+)/))&&(Qc=+Zc[1]);var Nl,Pl=Qc,Fl=!!Object.getOwnPropertySymbols&&!ul((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pl&&Pl<41})),Il=Fl&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ll=el.Object,Rl=Il?function(e){return typeof e==`symbol`}:function(e){var t=El(`Symbol`);return ll(t)&&Dl(t.prototype,Ll(e))},zl=el.String,Bl=function(e){try{return zl(e)}catch{return`Object`}},Vl=el.TypeError,Hl=function(e){if(ll(e))return e;throw Vl(Bl(e)+` is not a function`)},Ul=function(e,t){var n=e[t];return n==null?void 0:Hl(n)},Wl=el.TypeError,Gl=Object.defineProperty,Kl=el[`__core-js_shared__`]||function(e,t){try{Gl(el,e,{value:t,configurable:!0,writable:!0})}catch{el[e]=t}return t}(`__core-js_shared__`,{}),ql=Xc((function(e){(e.exports=function(e,t){return Kl[e]||(Kl[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Jl=el.Object,Yl=function(e){return Jl(xl(e))},_te=cl({}.hasOwnProperty),Xl=Object.hasOwn||function(e,t){return _te(Yl(e),t)},vte=0,yte=Math.random(),bte=cl(1 .toString),Zl=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+bte(++vte+yte,36)},Ql=ql(`wks`),$l=el.Symbol,eu=$l&&$l.for,xte=Il?$l:$l&&$l.withoutSetter||Zl,tu=function(e){if(!Xl(Ql,e)||!Fl&&typeof Ql[e]!=`string`){var t=`Symbol.`+e;Fl&&Xl($l,e)?Ql[e]=$l[e]:Ql[e]=Il&&eu?eu(t):xte(t)}return Ql[e]},Ste=el.TypeError,Cte=tu(`toPrimitive`),wte=function(e,t){if(!Cl(e)||Rl(e))return e;var n,r=Ul(e,Cte);if(r){if(t===void 0&&(t=`default`),n=pl(r,e,t),!Cl(n)||Rl(n))return n;throw Ste(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ll(n=e.toString)&&!Cl(r=pl(n,e))||ll(n=e.valueOf)&&!Cl(r=pl(n,e))||t!==`string`&&ll(n=e.toString)&&!Cl(r=pl(n,e)))return r;throw Wl(`Can't convert object to primitive value`)}(e,t)},nu=function(e){var t=wte(e,`string`);return Rl(t)?t:t+``},ru=el.document,Tte=Cl(ru)&&Cl(ru.createElement),iu=function(e){return Tte?ru.createElement(e):{}},au=!dl&&!ul((function(){return Object.defineProperty(iu(`div`),`a`,{get:function(){return 7}}).a!=7})),ou=Object.getOwnPropertyDescriptor,su={f:dl?ou:function(e,t){if(e=Sl(e),t=nu(t),au)try{return ou(e,t)}catch{}if(Xl(e,t))return _l(!pl(gl.f,e,t),e[t])}},Ete=/#|\.prototype\./,cu=function(e,t){var n=Ote[Dte(e)];return n==Ate||n!=kte&&(ll(t)?ul(t):!!t)},Dte=cu.normalize=function(e){return String(e).replace(Ete,`.`).toLowerCase()},Ote=cu.data={},kte=cu.NATIVE=`N`,Ate=cu.POLYFILL=`P`,jte=cu,lu=cl(cl.bind),uu=function(e,t){return Hl(e),t===void 0?e:lu?lu(e,t):function(){return e.apply(t,arguments)}},Mte=el.String,Nte=el.TypeError,du=function(e){if(Cl(e))return e;throw Nte(Mte(e)+` is not an object`)},Pte=el.TypeError,fu=Object.defineProperty,pu={f:dl?fu:function(e,t,n){if(du(e),t=nu(t),du(n),au)try{return fu(e,t,n)}catch{}if(`get`in n||`set`in n)throw Pte(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},mu=dl?function(e,t,n){return pu.f(e,t,_l(1,n))}:function(e,t,n){return e[t]=n,e},Fte=su.f,Ite=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return il(e,this,arguments)};return t.prototype=e.prototype,t},hu=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?el:f?el[u]:(el[u]||{}).prototype,h=d?wl:wl[u]||mu(wl,u,{})[u],g=h.prototype;for(i in t)n=!jte(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&Xl(m,i),o=h[i],n&&(s=e.noTargetGet?(l=Fte(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?uu(a,el):e.wrap&&n?Ite(a):p&&ll(a)?cl(a):a,(e.sham||a&&a.sham||o&&o.sham)&&mu(c,`sham`,!0),mu(h,i,c),p&&(Xl(wl,r=u+`Prototype`)||mu(wl,r,{}),mu(wl[r],i,a),e.real&&g&&!g[i]&&mu(g,i,a)))},gu=ql(`keys`),_u=function(e){return gu[e]||(gu[e]=Zl(e))},Lte=!ul((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vu=_u(`IE_PROTO`),yu=el.Object,Rte=yu.prototype,bu=Lte?yu.getPrototypeOf:function(e){var t=Yl(e);if(Xl(t,vu))return t[vu];var n=t.constructor;return ll(n)&&t instanceof n?n.prototype:t instanceof yu?Rte:null},zte=el.String,Bte=el.TypeError,xu=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=cl(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return du(n),function(e){if(typeof e==`object`||ll(e))return e;throw Bte(`Can't set `+zte(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Vte=Math.ceil,Hte=Math.floor,Su=function(e){var t=+e;return t!=t||t===0?0:(t>0?Hte:Vte)(t)},Ute=Math.max,Wte=Math.min,Cu=function(e,t){var n=Su(e);return n<0?Ute(n+t,0):Wte(n,t)},Gte=Math.min,wu=function(e){return(t=e.length)>0?Gte(Su(t),9007199254740991):0;var t},Tu=function(e){return function(t,n,r){var i,a=Sl(t),o=wu(a),s=Cu(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Kte={includes:Tu(!0),indexOf:Tu(!1)},Eu={},qte=Kte.indexOf,Du=cl([].push),Ou=function(e,t){var n,r=Sl(e),i=0,a=[];for(n in r)!Xl(Eu,n)&&Xl(r,n)&&Du(a,n);for(;t.length>i;)Xl(r,n=t[i++])&&(~qte(a,n)||Du(a,n));return a},ku=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Au=ku.concat(`length`,`prototype`),ju={f:Object.getOwnPropertyNames||function(e){return Ou(e,Au)}},Mu={f:Object.getOwnPropertySymbols},Nu=cl([].concat),Pu=El(`Reflect`,`ownKeys`)||function(e){var t=ju.f(du(e)),n=Mu.f;return n?Nu(t,n(e)):t},Fu=Object.keys||function(e){return Ou(e,ku)},Iu=dl?Object.defineProperties:function(e,t){du(e);for(var n,r=Sl(t),i=Fu(t),a=i.length,o=0;a>o;)pu.f(e,n=i[o++],r[n]);return e},Lu=El(`document`,`documentElement`),Ru=_u(`IE_PROTO`),zu=function(){},Bu=function(e){return`<script>`+e+`<\/script>`},Vu=function(e){e.write(Bu(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Hu=function(){try{Nl=new ActiveXObject(`htmlfile`)}catch{}var e,t;Hu=typeof document<`u`?document.domain&&Nl?Vu(Nl):((t=iu(`iframe`)).style.display=`none`,Lu.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Bu(`document.F=Object`)),e.close(),e.F):Vu(Nl);for(var n=ku.length;n--;)delete Hu.prototype[ku[n]];return Hu()};Eu[Ru]=!0;var Uu=Object.create||function(e,t){var n;return e===null?n=Hu():(zu.prototype=du(e),n=new zu,zu.prototype=null,n[Ru]=e),t===void 0?n:Iu(n,t)},Wu=function(e,t,n){var r=nu(t);r in e?pu.f(e,r,_l(0,n)):e[r]=n},Gu=el.Array,Ku=Math.max,qu=function(e,t,n){for(var r=wu(e),i=Cu(t,r),a=Cu(n===void 0?r:n,r),o=Gu(Ku(a-i,0)),s=0;i<a;i++,s++)Wu(o,s,e[i]);return o.length=s,o},Ju=cl(``.replace),Yu=cl(``.split),Xu=cl([].join),Zu=String(Error(`zxcasd`).stack),Qu=/\n\s*at [^:]*:[^\n]*/,$u=Qu.test(Zu),ed=/@[^\n]*\n/.test(Zu)&&!/zxcasd/.test(Zu),td=function(e,t){if(typeof e!=`string`)return e;if($u)for(;t--;)e=Ju(e,Qu,``);else if(ed)return Xu(qu(Yu(e,`
`),t),`
`);return e},nd=function(e,t){Cl(t)&&`cause`in t&&mu(e,`cause`,t.cause)},rd={},id=tu(`iterator`),ad=Array.prototype,od={};od[tu(`toStringTag`)]=`z`;var sd=String(od)===`[object z]`,cd=tu(`toStringTag`),Jte=el.Object,Yte=vl(function(){return arguments}())==`Arguments`,ld=sd?vl:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Jte(e),cd))==`string`?n:Yte?vl(t):(r=vl(t))==`Object`&&ll(t.callee)?`Arguments`:r},Xte=tu(`iterator`),ud=function(e){if(e!=null)return Ul(e,Xte)||Ul(e,`@@iterator`)||rd[ld(e)]},Zte=el.TypeError,dd=function(e,t,n){var r,i;du(e);try{if(!(r=Ul(e,`return`))){if(t===`throw`)throw n;return n}r=pl(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return du(r),n},Qte=el.TypeError,fd=function(e,t){this.stopped=e,this.result=t},pd=fd.prototype,$te=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=uu(t,u),h=function(e){return r&&dd(r,`normal`,e),new fd(!0,e)},g=function(e){return d?(du(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=ud(e)))throw Qte(Bl(e)+` is not iterable`);if(function(e){return e!==void 0&&(rd.Array===e||ad[id]===e)}(i)){for(a=0,o=wu(e);o>a;a++)if((s=g(e[a]))&&Dl(pd,s))return s;return new fd(!1)}r=function(e,t){var n=arguments.length<2?ud(e):t;if(Hl(n))return du(pl(n,e));throw Zte(Bl(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=pl(c,r)).done;){try{s=g(l.value)}catch(e){dd(r,`throw`,e)}if(typeof s==`object`&&s&&Dl(pd,s))return s}return new fd(!1)},ene=el.String,md=function(e){if(ld(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ene(e)},tne=function(e,t){return e===void 0?arguments.length<2?``:t:md(e)},nne=!ul((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,_l(1,7)),e.stack!==7)})),rne=tu(`toStringTag`),hd=el.Error,ine=[].push,gd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Dl(_d,this);xu?n=xu(new hd(void 0),i?bu(this):_d):(n=i?this:Uu(_d),mu(n,rne,`Error`)),mu(n,`message`,tne(t,``)),nne&&mu(n,`stack`,td(n.stack,1)),nd(n,r);var a=[];return $te(e,ine,{that:a}),mu(n,`errors`,a),n};xu?xu(gd,hd):function(e,t){for(var n=Pu(t),r=pu.f,i=su.f,a=0;a<n.length;a++){var o=n[a];Xl(e,o)||r(e,o,i(t,o))}}(gd,hd);var _d=gd.prototype=Uu(hd.prototype,{constructor:_l(1,gd),message:_l(1,``),name:_l(1,`AggregateError`)});hu({global:!0},{AggregateError:gd});var ane=cl(Function.toString);ll(Kl.inspectSource)||(Kl.inspectSource=function(e){return ane(e)});var vd,yd,bd,xd=Kl.inspectSource,Sd=el.WeakMap,one=ll(Sd)&&/native code/.test(xd(Sd)),Cd=el.TypeError,sne=el.WeakMap;if(one||Kl.state){var wd=Kl.state||=new sne,cne=cl(wd.get),Td=cl(wd.has),lne=cl(wd.set);vd=function(e,t){if(Td(wd,e))throw new Cd(`Object already initialized`);return t.facade=e,lne(wd,e,t),t},yd=function(e){return cne(wd,e)||{}},bd=function(e){return Td(wd,e)}}else{var Ed=_u(`state`);Eu[Ed]=!0,vd=function(e,t){if(Xl(e,Ed))throw new Cd(`Object already initialized`);return t.facade=e,mu(e,Ed,t),t},yd=function(e){return Xl(e,Ed)?e[Ed]:{}},bd=function(e){return Xl(e,Ed)}}var Dd,Od,kd,Ad={set:vd,get:yd,has:bd,enforce:function(e){return bd(e)?yd(e):vd(e,{})},getterFor:function(e){return function(t){var n;if(!Cl(t)||(n=yd(t)).type!==e)throw Cd(`Incompatible receiver, `+e+` required`);return n}}},jd=Function.prototype,une=dl&&Object.getOwnPropertyDescriptor,Md=Xl(jd,`name`),dne={EXISTS:Md,PROPER:Md&&function(){}.name===`something`,CONFIGURABLE:Md&&(!dl||dl&&une(jd,`name`).configurable)},Nd=function(e,t,n,r){r&&r.enumerable?e[t]=n:mu(e,t,n)},Pd=tu(`iterator`),Fd=!1;[].keys&&(`next`in(kd=[].keys())?(Od=bu(bu(kd)))!==Object.prototype&&(Dd=Od):Fd=!0),Dd=Dd==null||ul((function(){var e={};return Dd[Pd].call(e)!==e}))?{}:Uu(Dd),ll(Dd[Pd])||Nd(Dd,Pd,(function(){return this}));var Id={IteratorPrototype:Dd,BUGGY_SAFARI_ITERATORS:Fd},fne=sd?{}.toString:function(){return`[object `+ld(this)+`]`},pne=pu.f,Ld=tu(`toStringTag`),Rd=function(e,t,n,r){if(e){var i=n?e:e.prototype;Xl(i,Ld)||pne(i,Ld,{configurable:!0,value:t}),r&&!sd&&mu(i,`toString`,fne)}},mne=Id.IteratorPrototype,hne=function(){return this},gne=dne.PROPER,zd=Id.BUGGY_SAFARI_ITERATORS,Bd=tu(`iterator`),_ne=function(){return this},Vd=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Uu(mne,{next:_l(+!r,n)}),Rd(e,i,!1,!0),rd[i]=hne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!zd&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[Bd]||p[`@@iterator`]||i&&p[i],h=!zd&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=bu(g.call(new e)))!==Object.prototype&&s.next&&(Rd(s,d,!0,!0),rd[d]=_ne),gne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return pl(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(zd||f||!(l in p))&&Nd(p,l,c[l]);else hu({target:t,proto:!0,forced:zd||f},c);return o&&p[Bd]!==h&&Nd(p,Bd,h,{name:i}),rd[t]=h,c},vne=Ad.set,yne=Ad.getterFor(`Array Iterator`);Vd(Array,`Array`,(function(e,t){vne(this,{type:`Array Iterator`,target:Sl(e),index:0,kind:t})}),(function(){var e=yne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),rd.Arguments=rd.Array;var bne=cl(``.charAt),Hd=cl(``.charCodeAt),xne=cl(``.slice),Ud=function(e){return function(t,n){var r,i,a=md(xl(t)),o=Su(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Hd(a,o))<55296||r>56319||o+1===s||(i=Hd(a,o+1))<56320||i>57343?e?bne(a,o):r:e?xne(a,o,o+2):i-56320+(r-55296<<10)+65536}},Sne={codeAt:Ud(!1),charAt:Ud(!0)}.charAt,Cne=Ad.set,wne=Ad.getterFor(`String Iterator`);Vd(String,`String`,(function(e){Cne(this,{type:`String Iterator`,string:md(e),index:0})}),(function(){var e,t=wne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Sne(n,r),t.index+=e.length,{value:e,done:!1})}));var Tne=wl.AggregateError,Wd=tu(`toStringTag`);for(var Gd in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Kd=el[Gd],qd=Kd&&Kd.prototype;qd&&ld(qd)!==Wd&&mu(qd,Wd,Gd),rd[Gd]=rd.Array}var Jd,Yd,Ene=Tne,Xd=function(e){return e&&e.Math==Math&&e},Zd=Xd(typeof globalThis==`object`&&globalThis)||Xd(typeof window==`object`&&window)||Xd(typeof self==`object`&&self)||Xd(typeof Jc==`object`&&Jc)||function(){return this}()||Function(`return this`)(),Qd=function(e){try{return!!e()}catch{return!0}},$d=!Qd((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),ef=Function.prototype.call,tf=ef.bind?ef.bind(ef):function(){return ef.apply(ef,arguments)},nf={}.propertyIsEnumerable,rf=Object.getOwnPropertyDescriptor,Dne={f:rf&&!nf.call({1:2},1)?function(e){var t=rf(this,e);return!!t&&t.enumerable}:nf},af=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},of=Function.prototype,sf=of.bind,cf=of.call,One=sf&&sf.bind(cf),lf=sf?function(e){return e&&One(cf,e)}:function(e){return e&&function(){return cf.apply(e,arguments)}},kne=lf({}.toString),Ane=lf(``.slice),uf=function(e){return Ane(kne(e),8,-1)},df=Zd.Object,jne=lf(``.split),ff=Qd((function(){return!df(`z`).propertyIsEnumerable(0)}))?function(e){return uf(e)==`String`?jne(e,``):df(e)}:df,Mne=Zd.TypeError,pf=function(e){if(e==null)throw Mne(`Can't call method on `+e);return e},mf=function(e){return ff(pf(e))},hf=function(e){return typeof e==`function`},gf=function(e){return typeof e==`object`?e!==null:hf(e)},Nne=function(e){return hf(e)?e:void 0},_f=function(e,t){return arguments.length<2?Nne(Zd[e]):Zd[e]&&Zd[e][t]},vf=lf({}.isPrototypeOf),yf=_f(`navigator`,`userAgent`)||``,bf=Zd.process,xf=Zd.Deno,Sf=bf&&bf.versions||xf&&xf.version,Cf=Sf&&Sf.v8;Cf&&(Yd=(Jd=Cf.split(`.`))[0]>0&&Jd[0]<4?1:+(Jd[0]+Jd[1])),!Yd&&yf&&(!(Jd=yf.match(/Edge\/(\d+)/))||Jd[1]>=74)&&(Jd=yf.match(/Chrome\/(\d+)/))&&(Yd=+Jd[1]);var wf=Yd,Tf=!!Object.getOwnPropertySymbols&&!Qd((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wf&&wf<41})),Ef=Tf&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Pne=Zd.Object,Df=Ef?function(e){return typeof e==`symbol`}:function(e){var t=_f(`Symbol`);return hf(t)&&vf(t.prototype,Pne(e))},Fne=Zd.String,Of=function(e){try{return Fne(e)}catch{return`Object`}},Ine=Zd.TypeError,kf=function(e){if(hf(e))return e;throw Ine(Of(e)+` is not a function`)},Af=function(e,t){var n=e[t];return n==null?void 0:kf(n)},Lne=Zd.TypeError,Rne=Object.defineProperty,jf=function(e,t){try{Rne(Zd,e,{value:t,configurable:!0,writable:!0})}catch{Zd[e]=t}return t},Mf=Zd[`__core-js_shared__`]||jf(`__core-js_shared__`,{}),Nf=Xc((function(e){(e.exports=function(e,t){return Mf[e]||(Mf[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),zne=Zd.Object,Pf=function(e){return zne(pf(e))},Bne=lf({}.hasOwnProperty),Ff=Object.hasOwn||function(e,t){return Bne(Pf(e),t)},Vne=0,Hne=Math.random(),Une=lf(1 .toString),If=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Une(++Vne+Hne,36)},Lf=Nf(`wks`),Rf=Zd.Symbol,zf=Rf&&Rf.for,Wne=Ef?Rf:Rf&&Rf.withoutSetter||If,Bf=function(e){if(!Ff(Lf,e)||!Tf&&typeof Lf[e]!=`string`){var t=`Symbol.`+e;Tf&&Ff(Rf,e)?Lf[e]=Rf[e]:Lf[e]=Ef&&zf?zf(t):Wne(t)}return Lf[e]},Gne=Zd.TypeError,Kne=Bf(`toPrimitive`),qne=function(e,t){if(!gf(e)||Df(e))return e;var n,r=Af(e,Kne);if(r){if(t===void 0&&(t=`default`),n=tf(r,e,t),!gf(n)||Df(n))return n;throw Gne(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&hf(n=e.toString)&&!gf(r=tf(n,e))||hf(n=e.valueOf)&&!gf(r=tf(n,e))||t!==`string`&&hf(n=e.toString)&&!gf(r=tf(n,e)))return r;throw Lne(`Can't convert object to primitive value`)}(e,t)},Vf=function(e){var t=qne(e,`string`);return Df(t)?t:t+``},Hf=Zd.document,Jne=gf(Hf)&&gf(Hf.createElement),Uf=function(e){return Jne?Hf.createElement(e):{}},Wf=!$d&&!Qd((function(){return Object.defineProperty(Uf(`div`),`a`,{get:function(){return 7}}).a!=7})),Gf=Object.getOwnPropertyDescriptor,Kf={f:$d?Gf:function(e,t){if(e=mf(e),t=Vf(t),Wf)try{return Gf(e,t)}catch{}if(Ff(e,t))return af(!tf(Dne.f,e,t),e[t])}},Yne=Zd.String,Xne=Zd.TypeError,qf=function(e){if(gf(e))return e;throw Xne(Yne(e)+` is not an object`)},Zne=Zd.TypeError,Jf=Object.defineProperty,Yf={f:$d?Jf:function(e,t,n){if(qf(e),t=Vf(t),qf(n),Wf)try{return Jf(e,t,n)}catch{}if(`get`in n||`set`in n)throw Zne(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Xf=$d?function(e,t,n){return Yf.f(e,t,af(1,n))}:function(e,t,n){return e[t]=n,e},Qne=lf(Function.toString);hf(Mf.inspectSource)||(Mf.inspectSource=function(e){return Qne(e)});var Zf,Qf,$f,ep=Mf.inspectSource,tp=Zd.WeakMap,$ne=hf(tp)&&/native code/.test(ep(tp)),np=Nf(`keys`),rp=function(e){return np[e]||(np[e]=If(e))},ip={},ap=Zd.TypeError,ere=Zd.WeakMap;if($ne||Mf.state){var op=Mf.state||=new ere,tre=lf(op.get),sp=lf(op.has),nre=lf(op.set);Zf=function(e,t){if(sp(op,e))throw new ap(`Object already initialized`);return t.facade=e,nre(op,e,t),t},Qf=function(e){return tre(op,e)||{}},$f=function(e){return sp(op,e)}}else{var cp=rp(`state`);ip[cp]=!0,Zf=function(e,t){if(Ff(e,cp))throw new ap(`Object already initialized`);return t.facade=e,Xf(e,cp,t),t},Qf=function(e){return Ff(e,cp)?e[cp]:{}},$f=function(e){return Ff(e,cp)}}var lp={set:Zf,get:Qf,has:$f,enforce:function(e){return $f(e)?Qf(e):Zf(e,{})},getterFor:function(e){return function(t){var n;if(!gf(t)||(n=Qf(t)).type!==e)throw ap(`Incompatible receiver, `+e+` required`);return n}}},up=Function.prototype,rre=$d&&Object.getOwnPropertyDescriptor,dp=Ff(up,`name`),fp={EXISTS:dp,PROPER:dp&&function(){}.name===`something`,CONFIGURABLE:dp&&(!$d||$d&&rre(up,`name`).configurable)},pp=Xc((function(e){var t=fp.CONFIGURABLE,n=lp.get,r=lp.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;hf(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Ff(a,`name`)||t&&a.name!==d)&&Xf(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Zd?l?e[n]=a:jf(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Xf(e,n,a))})(Function.prototype,`toString`,(function(){return hf(this)&&n(this).source||ep(this)}))})),ire=Math.ceil,are=Math.floor,mp=function(e){var t=+e;return t!=t||t===0?0:(t>0?are:ire)(t)},ore=Math.max,sre=Math.min,hp=function(e,t){var n=mp(e);return n<0?ore(n+t,0):sre(n,t)},cre=Math.min,gp=function(e){return e>0?cre(mp(e),9007199254740991):0},_p=function(e){return gp(e.length)},vp=function(e){return function(t,n,r){var i,a=mf(t),o=_p(a),s=hp(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},lre={includes:vp(!0),indexOf:vp(!1)}.indexOf,yp=lf([].push),bp=function(e,t){var n,r=mf(e),i=0,a=[];for(n in r)!Ff(ip,n)&&Ff(r,n)&&yp(a,n);for(;t.length>i;)Ff(r,n=t[i++])&&(~lre(a,n)||yp(a,n));return a},xp=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ure=xp.concat(`length`,`prototype`),dre={f:Object.getOwnPropertyNames||function(e){return bp(e,ure)}},fre={f:Object.getOwnPropertySymbols},pre=lf([].concat),mre=_f(`Reflect`,`ownKeys`)||function(e){var t=dre.f(qf(e)),n=fre.f;return n?pre(t,n(e)):t},Sp=function(e,t){for(var n=mre(t),r=Yf.f,i=Kf.f,a=0;a<n.length;a++){var o=n[a];Ff(e,o)||r(e,o,i(t,o))}},hre=/#|\.prototype\./,Cp=function(e,t){var n=_re[gre(e)];return n==yre||n!=vre&&(hf(t)?Qd(t):!!t)},gre=Cp.normalize=function(e){return String(e).replace(hre,`.`).toLowerCase()},_re=Cp.data={},vre=Cp.NATIVE=`N`,yre=Cp.POLYFILL=`P`,bre=Cp,xre=Kf.f,wp=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Zd:l?Zd[s]||jf(s,{}):(Zd[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=xre(n,r))&&o.value:n[r],!bre(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Sp(a,i)}(e.sham||i&&i.sham)&&Xf(a,`sham`,!0),pp(n,r,a,e)}},Tp={};Tp[Bf(`toStringTag`)]=`z`;var Ep,Dp=String(Tp)===`[object z]`,Sre=Bf(`toStringTag`),Cre=Zd.Object,wre=uf(function(){return arguments}())==`Arguments`,Op=Dp?uf:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Cre(e),Sre))==`string`?n:wre?uf(t):(r=uf(t))==`Object`&&hf(t.callee)?`Arguments`:r},Tre=Zd.String,kp=function(e){if(Op(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Tre(e)},Ere=function(){var e=qf(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},Ap=Zd.RegExp,jp=Qd((function(){var e=Ap(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Dre=jp||Qd((function(){return!Ap(`a`,`y`).sticky})),Ore={BROKEN_CARET:jp||Qd((function(){var e=Ap(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Dre,UNSUPPORTED_Y:jp},kre=Object.keys||function(e){return bp(e,xp)},Are=$d?Object.defineProperties:function(e,t){qf(e);for(var n,r=mf(t),i=kre(t),a=i.length,o=0;a>o;)Yf.f(e,n=i[o++],r[n]);return e},jre=_f(`document`,`documentElement`),Mp=rp(`IE_PROTO`),Np=function(){},Pp=function(e){return`<script>`+e+`<\/script>`},Fp=function(e){e.write(Pp(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Ip=function(){try{Ep=new ActiveXObject(`htmlfile`)}catch{}var e,t;Ip=typeof document<`u`?document.domain&&Ep?Fp(Ep):((t=Uf(`iframe`)).style.display=`none`,jre.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Pp(`document.F=Object`)),e.close(),e.F):Fp(Ep);for(var n=xp.length;n--;)delete Ip.prototype[xp[n]];return Ip()};ip[Mp]=!0;var Lp,Rp,zp=Object.create||function(e,t){var n;return e===null?n=Ip():(Np.prototype=qf(e),n=new Np,Np.prototype=null,n[Mp]=e),t===void 0?n:Are(n,t)},Mre=Zd.RegExp,Nre=Qd((function(){var e=Mre(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Pre=Zd.RegExp,Bp=Qd((function(){var e=Pre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Vp=lp.get,Hp=Nf(`native-string-replace`,String.prototype.replace),Up=RegExp.prototype.exec,Wp=Up,Fre=lf(``.charAt),Ire=lf(``.indexOf),Lre=lf(``.replace),Gp=lf(``.slice),Kp=(Rp=/b*/g,tf(Up,Lp=/a/,`a`),tf(Up,Rp,`a`),Lp.lastIndex!==0||Rp.lastIndex!==0),qp=Ore.BROKEN_CARET,Jp=/()??/.exec(``)[1]!==void 0;(Kp||Jp||qp||Nre||Bp)&&(Wp=function(e){var t,n,r,i,a,o,s,c=this,l=Vp(c),u=kp(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=tf(Wp,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=qp&&c.sticky,m=tf(Ere,c),h=c.source,g=0,_=u;if(p&&(m=Lre(m,`y`,``),Ire(m,`g`)===-1&&(m+=`g`),_=Gp(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Fre(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Jp&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),Kp&&(r=c.lastIndex),i=tf(Up,p?n:c,_),p?i?(i.input=Gp(i.input,g),i[0]=Gp(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Kp&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Jp&&i&&i.length>1&&tf(Hp,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=zp(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Yp=Wp;wp({target:`RegExp`,proto:!0,forced:/./.exec!==Yp},{exec:Yp});var Rre=Bf(`species`),Xp=RegExp.prototype,Zp=lf(``.charAt),Qp=lf(``.charCodeAt),$p=lf(``.slice),em=function(e){return function(t,n){var r,i,a=kp(pf(t)),o=mp(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Qp(a,o))<55296||r>56319||o+1===s||(i=Qp(a,o+1))<56320||i>57343?e?Zp(a,o):r:e?$p(a,o,o+2):i-56320+(r-55296<<10)+65536}},tm={codeAt:em(!1),charAt:em(!0)},nm=tm.charAt,rm=function(e,t,n){return t+(n?nm(e,t).length:1)},zre=Zd.TypeError,im=function(e,t){var n=e.exec;if(hf(n)){var r=tf(n,e,t);return r!==null&&qf(r),r}if(uf(e)===`RegExp`)return tf(Yp,e,t);throw zre(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Bf(e),a=!Qd((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Qd((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Rre]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=lf(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=lf(e),c=t.exec;return c===Yp||c===Xp.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));pp(String.prototype,e,c[0]),pp(Xp,i,c[1])}r&&Xf(Xp[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=pf(this),r=t==null?void 0:Af(t,e);return r?tf(r,t,n):new RegExp(t)[e](kp(n))},function(e){var r=qf(this),i=kp(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return im(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=im(r,i))!==null;){var u=kp(s[0]);c[l]=u,u===``&&(r.lastIndex=rm(i,gp(r.lastIndex),o)),l++}return l===0?null:c}]})),wp({global:!0},{globalThis:Zd});var Bre=!Qd((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),am=rp(`IE_PROTO`),om=Zd.Object,Vre=om.prototype,sm=Bre?om.getPrototypeOf:function(e){var t=Pf(e);if(Ff(t,am))return t[am];var n=t.constructor;return hf(n)&&t instanceof n?n.prototype:t instanceof om?Vre:null},Hre=Zd.String,Ure=Zd.TypeError,cm=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=lf(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return qf(n),function(e){if(typeof e==`object`||hf(e))return e;throw Ure(`Can't set `+Hre(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Wre=Zd.Array,Gre=Math.max,Kre=lf(``.replace),qre=lf(``.split),Jre=lf([].join),lm=String(Error(`zxcasd`).stack),um=/\n\s*at [^:]*:[^\n]*/,dm=um.test(lm),fm=/@[^\n]*\n/.test(lm)&&!/zxcasd/.test(lm),pm=function(e,t){if(typeof e!=`string`)return e;if(dm)for(;t--;)e=Kre(e,um,``);else if(fm)return Jre(function(e,t,n){for(var r,i,a,o,s=_p(e),c=hp(t,s),l=hp(n===void 0?s:n,s),u=Wre(Gre(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=Vf(i))in r?Yf.f(r,o,af(0,a)):r[o]=a;return u.length=d,u}(qre(e,`
`),t),`
`);return e},mm=function(e,t){gf(t)&&`cause`in t&&Xf(e,`cause`,t.cause)},hm=lf(lf.bind),gm=function(e,t){return kf(e),t===void 0?e:hm?hm(e,t):function(){return e.apply(t,arguments)}},_m={},vm=Bf(`iterator`),ym=Array.prototype,bm=Bf(`iterator`),xm=function(e){if(e!=null)return Af(e,bm)||Af(e,`@@iterator`)||_m[Op(e)]},Sm=Zd.TypeError,Cm=function(e,t,n){var r,i;qf(e);try{if(!(r=Af(e,`return`))){if(t===`throw`)throw n;return n}r=tf(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return qf(r),n},Yre=Zd.TypeError,wm=function(e,t){this.stopped=e,this.result=t},Tm=wm.prototype,Xre=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=gm(t,u),h=function(e){return r&&Cm(r,`normal`,e),new wm(!0,e)},g=function(e){return d?(qf(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=xm(e)))throw Yre(Of(e)+` is not iterable`);if(function(e){return e!==void 0&&(_m.Array===e||ym[vm]===e)}(i)){for(a=0,o=_p(e);o>a;a++)if((s=g(e[a]))&&vf(Tm,s))return s;return new wm(!1)}r=function(e,t){var n=arguments.length<2?xm(e):t;if(kf(n))return qf(tf(n,e));throw Sm(Of(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=tf(c,r)).done;){try{s=g(l.value)}catch(e){Cm(r,`throw`,e)}if(typeof s==`object`&&s&&vf(Tm,s))return s}return new wm(!1)},Zre=function(e,t){return e===void 0?arguments.length<2?``:t:kp(e)},Qre=!Qd((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,af(1,7)),e.stack!==7)})),$re=Bf(`toStringTag`),Em=Zd.Error,eie=[].push,Dm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=vf(Om,this);cm?n=cm(new Em(void 0),i?sm(this):Om):(n=i?this:zp(Om),Xf(n,$re,`Error`)),Xf(n,`message`,Zre(t,``)),Qre&&Xf(n,`stack`,pm(n.stack,1)),mm(n,r);var a=[];return Xre(e,eie,{that:a}),Xf(n,`errors`,a),n};cm?cm(Dm,Em):Sp(Dm,Em);var Om=Dm.prototype=zp(Em.prototype,{constructor:af(1,Dm),message:af(1,``),name:af(1,`AggregateError`)});wp({global:!0},{AggregateError:Dm});var km=Bf(`unscopables`),Am=Array.prototype;Am[km]??Yf.f(Am,km,{configurable:!0,value:zp(null)});var jm,Mm,Nm,Pm=function(e){Am[km][e]=!0},Fm=Bf(`iterator`),Im=!1;[].keys&&(`next`in(Nm=[].keys())?(Mm=sm(sm(Nm)))!==Object.prototype&&(jm=Mm):Im=!0),(jm==null||Qd((function(){var e={};return jm[Fm].call(e)!==e})))&&(jm={}),hf(jm[Fm])||pp(jm,Fm,(function(){return this}));var Lm={IteratorPrototype:jm,BUGGY_SAFARI_ITERATORS:Im},tie=Yf.f,Rm=Bf(`toStringTag`),zm=function(e,t,n){e&&!Ff(e=n?e:e.prototype,Rm)&&tie(e,Rm,{configurable:!0,value:t})},nie=Lm.IteratorPrototype,rie=function(){return this},iie=fp.PROPER,aie=fp.CONFIGURABLE,Bm=Lm.IteratorPrototype,Vm=Lm.BUGGY_SAFARI_ITERATORS,Hm=Bf(`iterator`),oie=function(){return this},Um=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=zp(nie,{next:af(+!r,n)}),zm(e,i,!1),_m[i]=rie})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Vm&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[Hm]||p[`@@iterator`]||i&&p[i],h=!Vm&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=sm(g.call(new e)))!==Object.prototype&&s.next&&(sm(s)!==Bm&&(cm?cm(s,Bm):hf(s[Hm])||pp(s,Hm,oie)),zm(s,d,!0)),iie&&i==`values`&&m&&m.name!==`values`&&(aie?Xf(p,`name`,`values`):(f=!0,h=function(){return tf(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Vm||f||!(l in p))&&pp(p,l,c[l]);else wp({target:t,proto:!0,forced:Vm||f},c);return p[Hm]!==h&&pp(p,Hm,h,{name:i}),_m[t]=h,c},sie=lp.set,Wm=lp.getterFor(`Array Iterator`),Gm=Um(Array,`Array`,(function(e,t){sie(this,{type:`Array Iterator`,target:mf(e),index:0,kind:t})}),(function(){var e=Wm(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);_m.Arguments=_m.Array,Pm(`keys`),Pm(`values`),Pm(`entries`);var Km=tm.charAt,qm=lp.set,Jm=lp.getterFor(`String Iterator`);Um(String,`String`,(function(e){qm(this,{type:`String Iterator`,string:kp(e),index:0})}),(function(){var e,t=Jm(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Km(n,r),t.index+=e.length,{value:e,done:!1})}));var Ym,Xm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Zm=Uf(`span`).classList,Qm=Zm&&Zm.constructor&&Zm.constructor.prototype,$m=Qm===Object.prototype?void 0:Qm,eh=Bf(`iterator`),th=Bf(`toStringTag`),nh=Gm.values,rh=function(e,t){if(e){if(e[eh]!==nh)try{Xf(e,eh,nh)}catch{e[eh]=nh}if(e[th]||Xf(e,th,t),Xm[t]){for(var n in Gm)if(e[n]!==Gm[n])try{Xf(e,n,Gm[n])}catch{e[n]=Gm[n]}}}};for(var ih in Xm)rh(Zd[ih]&&Zd[ih].prototype,ih);rh($m,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),ah(),oh()):global&&(Ym=global.navigator)!=null&&Ym.userAgent.match(`QQBrowser`)&&(ah(),oh());function ah(){typeof globalThis>`u`&&(window.globalThis=window)}function oh(){Ene===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var sh,ch=Array.isArray||function(e){return vl(e)==`Array`},lh=function(){},cie=[],uh=El(`Reflect`,`construct`),dh=/^\s*(?:class|function)\b/,lie=cl(dh.exec),uie=!dh.exec(lh),fh=function(e){if(!ll(e))return!1;try{return uh(lh,cie,e),!0}catch{return!1}},die=!uh||ul((function(){var e;return fh(fh.call)||!fh(Object)||!fh((function(){e=!0}))||e}))?function(e){if(!ll(e))return!1;switch(ld(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return uie||!!lie(dh,xd(e))}:fh,fie=tu(`species`),ph=el.Array,mh=function(e,t){return new(function(e){var t;return ch(e)&&(t=e.constructor,(die(t)&&(t===ph||ch(t.prototype))||Cl(t)&&(t=t[fie])===null)&&(t=void 0)),t===void 0?ph:t}(e))(t===0?0:t)},pie=tu(`species`),hh=tu(`isConcatSpreadable`),gh=el.TypeError,mie=Pl>=51||!ul((function(){var e=[];return e[hh]=!1,e.concat()[0]!==e})),hie=(sh=`concat`,Pl>=51||!ul((function(){var e=[];return(e.constructor={})[pie]=function(){return{foo:1}},e[sh](Boolean).foo!==1}))),gie=function(e){if(!Cl(e))return!1;var t=e[hh];return t===void 0?ch(e):!!t};hu({target:`Array`,proto:!0,forced:!mie||!hie},{concat:function(e){var t,n,r,i,a,o=Yl(this),s=mh(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(gie(a=t===-1?o:arguments[t])){if(c+(i=wu(a))>9007199254740991)throw gh(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Wu(s,c,a[n])}else{if(c>=9007199254740991)throw gh(`Maximum allowed index exceeded`);Wu(s,c++,a)}return s.length=c,s}});var _h=ju.f,vh=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yh={f:function(e){return vh&&vl(e)==`Window`?function(e){try{return _h(e)}catch{return qu(vh)}}(e):_h(Sl(e))}},_ie=cl([].slice),bh={f:tu},vie=pu.f,xh=function(e){var t=wl.Symbol||={};Xl(t,e)||vie(t,e,{value:bh.f(e)})},Sh=cl([].push),Ch=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Yl(c),h=bl(m),g=uu(l,u),_=wu(h),v=0,y=d||mh,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Sh(b,f)}else switch(e){case 4:return!1;case 7:Sh(b,f)}return a?-1:r||i?i:b}},wh={forEach:Ch(0),map:Ch(1),filter:Ch(2),some:Ch(3),every:Ch(4),find:Ch(5),findIndex:Ch(6),filterReject:Ch(7)}.forEach,Th=_u(`hidden`),Eh=tu(`toPrimitive`),yie=Ad.set,Dh=Ad.getterFor(`Symbol`),Oh=Object.prototype,kh=el.Symbol,Ah=kh&&kh.prototype,jh=el.TypeError,Mh=el.QObject,Nh=El(`JSON`,`stringify`),Ph=su.f,Fh=pu.f,Ih=yh.f,bie=gl.f,Lh=cl([].push),Rh=ql(`symbols`),zh=ql(`op-symbols`),Bh=ql(`string-to-symbol-registry`),Vh=ql(`symbol-to-string-registry`),xie=ql(`wks`),Hh=!Mh||!Mh.prototype||!Mh.prototype.findChild,Uh=dl&&ul((function(){return Uu(Fh({},`a`,{get:function(){return Fh(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Ph(Oh,t);r&&delete Oh[t],Fh(e,t,n),r&&e!==Oh&&Fh(Oh,t,r)}:Fh,Wh=function(e,t){var n=Rh[e]=Uu(Ah);return yie(n,{type:`Symbol`,tag:e,description:t}),dl||(n.description=t),n},Gh=function(e,t,n){e===Oh&&Gh(zh,t,n),du(e);var r=nu(t);return du(n),Xl(Rh,r)?(n.enumerable?(Xl(e,Th)&&e[Th][r]&&(e[Th][r]=!1),n=Uu(n,{enumerable:_l(0,!1)})):(Xl(e,Th)||Fh(e,Th,_l(1,{})),e[Th][r]=!0),Uh(e,r,n)):Fh(e,r,n)},Kh=function(e,t){du(e);var n=Sl(t);return wh(Fu(n).concat(Xh(n)),(function(t){dl&&!pl(qh,n,t)||Gh(e,t,n[t])})),e},qh=function(e){var t=nu(e),n=pl(bie,this,t);return!(this===Oh&&Xl(Rh,t)&&!Xl(zh,t))&&(!(n||!Xl(this,t)||!Xl(Rh,t)||Xl(this,Th)&&this[Th][t])||n)},Jh=function(e,t){var n=Sl(e),r=nu(t);if(n!==Oh||!Xl(Rh,r)||Xl(zh,r)){var i=Ph(n,r);return!i||!Xl(Rh,r)||Xl(n,Th)&&n[Th][r]||(i.enumerable=!0),i}},Yh=function(e){var t=Ih(Sl(e)),n=[];return wh(t,(function(e){Xl(Rh,e)||Xl(Eu,e)||Lh(n,e)})),n},Xh=function(e){var t=e===Oh,n=Ih(t?zh:Sl(e)),r=[];return wh(n,(function(e){!Xl(Rh,e)||t&&!Xl(Oh,e)||Lh(r,Rh[e])})),r};if(Fl||(Ah=(kh=function(){if(Dl(Ah,this))throw jh(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?md(arguments[0]):void 0,t=Zl(e),n=function(e){this===Oh&&pl(n,zh,e),Xl(this,Th)&&Xl(this[Th],t)&&(this[Th][t]=!1),Uh(this,t,_l(1,e))};return dl&&Hh&&Uh(Oh,t,{configurable:!0,set:n}),Wh(t,e)}).prototype,Nd(Ah,`toString`,(function(){return Dh(this).tag})),Nd(kh,`withoutSetter`,(function(e){return Wh(Zl(e),e)})),gl.f=qh,pu.f=Gh,su.f=Jh,ju.f=yh.f=Yh,Mu.f=Xh,bh.f=function(e){return Wh(tu(e),e)},dl&&Fh(Ah,`description`,{configurable:!0,get:function(){return Dh(this).description}})),hu({global:!0,wrap:!0,forced:!Fl,sham:!Fl},{Symbol:kh}),wh(Fu(xie),(function(e){xh(e)})),hu({target:`Symbol`,stat:!0,forced:!Fl},{for:function(e){var t=md(e);if(Xl(Bh,t))return Bh[t];var n=kh(t);return Bh[t]=n,Vh[n]=t,n},keyFor:function(e){if(!Rl(e))throw jh(e+` is not a symbol`);if(Xl(Vh,e))return Vh[e]},useSetter:function(){Hh=!0},useSimple:function(){Hh=!1}}),hu({target:`Object`,stat:!0,forced:!Fl,sham:!dl},{create:function(e,t){return t===void 0?Uu(e):Kh(Uu(e),t)},defineProperty:Gh,defineProperties:Kh,getOwnPropertyDescriptor:Jh}),hu({target:`Object`,stat:!0,forced:!Fl},{getOwnPropertyNames:Yh,getOwnPropertySymbols:Xh}),hu({target:`Object`,stat:!0,forced:ul((function(){Mu.f(1)}))},{getOwnPropertySymbols:function(e){return Mu.f(Yl(e))}}),Nh&&hu({target:`JSON`,stat:!0,forced:!Fl||ul((function(){var e=kh();return Nh([e])!=`[null]`||Nh({a:e})!=`{}`||Nh(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=_ie(arguments),i=t;if((Cl(t)||e!==void 0)&&!Rl(e))return ch(t)||(t=function(e,t){if(ll(i)&&(t=pl(i,this,e,t)),!Rl(t))return t}),r[1]=t,il(Nh,null,r)}}),!Ah[Eh]){var Sie=Ah.valueOf;Nd(Ah,Eh,(function(e){return pl(Sie,this)}))}Rd(kh,`Symbol`),Eu[Th]=!0,xh(`asyncIterator`),xh(`hasInstance`),xh(`isConcatSpreadable`),xh(`iterator`),xh(`match`),xh(`matchAll`),xh(`replace`),xh(`search`),xh(`species`),xh(`split`),xh(`toPrimitive`),xh(`toStringTag`),xh(`unscopables`),Rd(el.JSON,`JSON`,!0);var Cie=wl.Symbol;xh(`asyncDispose`),xh(`dispose`),xh(`matcher`),xh(`metadata`),xh(`observable`),xh(`patternMatch`),xh(`replaceAll`);var Zh=Cie,wie=bh.f(`iterator`),Tie=Yc(Xc((function(e){function t(n){return typeof Zh==`function`&&typeof wie==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof Zh==`function`&&e.constructor===Zh&&e!==Zh.prototype?`symbol`:typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),Qh=Kf.f,Eie=Qd((function(){Qh(1)}));if(wp({target:`Object`,stat:!0,forced:!$d||Eie,sham:!$d},{getOwnPropertyDescriptor:function(e,t){return Qh(mf(e),t)}}),(typeof global>`u`?`undefined`:Tie(global))===`object`){var Die=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!Die.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)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function $h(e){return Object.prototype.toString.call(e)===`[object Object]`}function eg(e){var t,n;return!1!==$h(e)&&((t=e.constructor)===void 0||!1!==$h(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function tg(e){var t=[...arguments].slice(1);throw Error(`[Immer] minified error nr: `+e+(t.length?` `+t.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function ng(e){return!!e&&!!e[Vg]}function rg(e){return!!e&&(function(e){if(!e||typeof e!=`object`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object||typeof n==`function`&&Function.toString.call(n)===Hg}(e)||Array.isArray(e)||!!e[Bg]||!!e.constructor[Bg]||cg(e)||lg(e))}function ig(e,t,n){n===void 0&&(n=!1),ag(e)===0?(n?Object.keys:Ug)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ag(e){var t=e[Vg];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:cg(e)?2:lg(e)?3:0}function og(e,t){return ag(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sg(e,t,n){var r=ag(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function cg(e){return Ig&&e instanceof Map}function lg(e){return Lg&&e instanceof Set}function ug(e){return e.o||e.t}function dg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Wg(e);delete t[Vg];for(var n=Ug(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function fg(e,t){return t===void 0&&(t=!1),mg(e)||ng(e)||!rg(e)||(ag(e)>1&&(e.set=e.add=e.clear=e.delete=pg),Object.freeze(e),t&&ig(e,(function(e,t){return fg(t,!0)}),!0)),e}function pg(){tg(2)}function mg(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function hg(e){var t=Gg[e];return t||tg(18,e),t}function gg(){return Pg}function _g(e,t){t&&(hg(`Patches`),e.u=[],e.s=[],e.v=t)}function vg(e){yg(e),e.p.forEach(xg),e.p=null}function yg(e){e===Pg&&(Pg=e.l)}function bg(e){return Pg={p:[],l:Pg,h:e,m:!0,_:0}}function xg(e){var t=e[Vg];t.i===0||t.i===1?t.j():t.O=!0}function Sg(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||hg(`ES5`).S(t,e,r),r?(n[Vg].P&&(vg(t),tg(4)),rg(e)&&(e=Cg(t,e),t.l||Tg(t,e)),t.u&&hg(`Patches`).M(n[Vg],e,t.u,t.s)):e=Cg(t,n,[]),vg(t),t.u&&t.v(t.u,t.s),e===zg?void 0:e}function Cg(e,t,n){if(mg(t))return t;var r=t[Vg];if(!r)return ig(t,(function(i,a){return wg(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Tg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=dg(r.k):r.o;ig(r.i===3?new Set(i):i,(function(t,a){return wg(e,r,i,t,a,n)})),Tg(e,i,!1),n&&e.u&&hg(`Patches`).R(r,n,e.u,e.s)}return r.o}function wg(e,t,n,r,i,a){if(ng(i)){var o=Cg(e,i,a&&t&&t.i!==3&&!og(t.D,r)?a.concat(r):void 0);if(sg(n,r,o),!ng(o))return;e.m=!1}if(rg(i)&&!mg(i)){if(!e.h.F&&e._<1)return;Cg(e,i),t&&t.A.l||Tg(e,i)}}function Tg(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&fg(t,n)}function Eg(e,t){var n=e[Vg];return(n?ug(n):e)[t]}function Dg(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 Og(e){e.P||(e.P=!0,e.l&&Og(e.l))}function kg(e){e.o||=dg(e.t)}function Ag(e,t,n){var r=cg(t)?hg(`MapSet`).N(t,n):lg(t)?hg(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:gg(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=Kg;n&&(i=[r],a=qg);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):hg(`ES5`).J(t,n);return(n?n.A:gg()).p.push(r),r}function jg(e){return ng(e)||tg(22,e),function e(t){if(!rg(t))return t;var n,r=t[Vg],i=ag(t);if(r){if(!r.P&&(r.i<4||!hg(`ES5`).K(r)))return r.t;r.I=!0,n=Mg(t,i),r.I=!1}else n=Mg(t,i);return ig(n,(function(t,i){r&&function(e,t){return ag(e)===2?e.get(t):e[t]}(r.t,t)===i||sg(n,t,e(i))})),i===3?new Set(n):n}(e)}function Mg(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return dg(e)}var Ng,Pg,Fg=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Ig=typeof Map<`u`,Lg=typeof Set<`u`,Rg=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,zg=Fg?Symbol.for(`immer-nothing`):((Ng={})[`immer-nothing`]=!0,Ng),Bg=Fg?Symbol.for(`immer-draftable`):`__$immer_draftable`,Vg=Fg?Symbol.for(`immer-state`):`__$immer_state`,Hg=``+Object.prototype.constructor,Ug=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Wg=Object.getOwnPropertyDescriptors||function(e){var t={};return Ug(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Gg={},Kg={get:function(e,t){if(t===Vg)return e;var n=ug(e);if(!og(n,t))return function(e,t,n){var r=Dg(t,n);return r?`value`in r?r.value:r.get?.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!rg(r)?r:r===Eg(e.t,t)?(kg(e),e.o[t]=Ag(e.A.h,r,e)):r},has:function(e,t){return t in ug(e)},ownKeys:function(e){return Reflect.ownKeys(ug(e))},set:function(e,t,n){var r=Dg(ug(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Eg(ug(e),t),a=i?.[Vg];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}(n,i)&&(n!==void 0||og(e.t,t)))return!0;kg(e),Og(e)}return e.o[t]===n&&typeof n!=`number`&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Eg(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,kg(e),Og(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ug(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){tg(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){tg(12)}},qg={};ig(Kg,(function(e,t){qg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),qg.deleteProperty=function(e,t){return Kg.deleteProperty.call(this,e[0],t)},qg.set=function(e,t,n){return Kg.set.call(this,e[0],t,n,e[0])};var Jg=new(function(){function e(e){var t=this;this.g=Rg,this.F=!0,this.produce=function(e,n,r){if(typeof e==`function`&&typeof n!=`function`){var i=n;n=e;var a=t;return function(e){var t=this;e===void 0&&(e=i);var r=[...arguments].slice(1);return a.produce(e,(function(e){var i;return(i=n).call.apply(i,[t,e].concat(r))}))}}var o;if(typeof n!=`function`&&tg(6),r!==void 0&&typeof r!=`function`&&tg(7),rg(e)){var s=bg(t),c=Ag(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?vg(s):yg(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return _g(s,r),Sg(e,s)}),(function(e){throw vg(s),e})):(_g(s,r),Sg(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===zg?void 0:(o===void 0&&(o=e),t.F&&fg(o,!0),o);tg(21,e)},this.produceWithPatches=function(e,n){return typeof e==`function`?function(n){var r=[...arguments].slice(1);return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},typeof e?.useProxies==`boolean`&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){rg(e)||tg(8),ng(e)&&(e=jg(e));var t=bg(this),n=Ag(this,e,void 0);return n[Vg].C=!0,yg(t),n},t.finishDraft=function(e,t){var n=(e&&e[Vg]).A;return _g(n,t),Sg(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Rg&&tg(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=hg(`Patches`).$;return ng(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),Yg=Jg.produce;Jg.produceWithPatches.bind(Jg),Jg.setAutoFreeze.bind(Jg),Jg.setUseProxies.bind(Jg),Jg.applyPatches.bind(Jg);var Xg=Jg.createDraft.bind(Jg),Zg=Jg.finishDraft.bind(Jg);function Qg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $g=new WeakMap,e_=new WeakMap,t_=new WeakMap,n_=new WeakMap,r_=new WeakMap,i_=new WeakMap;function 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 o_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?a_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of B.pathRefs(e))iae.transform(n,t);for(var r of B.pointRefs(e))aae.transform(r,t);for(var i of B.rangeRefs(e))sae.transform(i,t);var a=new Set,o=[],s=e=>{if(e){var t=e.join(`,`);a.has(t)||(a.add(t),o.push(e))}},c=$g.get(e)||[],l=kie(t);for(var u of c)s(H.transform(u,t));for(var d of l)s(d);$g.set(e,o),G.transform(e,t),e.operations.push(t),B.normalize(e),t.type===`set_selection`&&(e.marks=null),e_.get(e)||(e_.set(e,!0),Promise.resolve().then((()=>{e_.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(U.isExpanded(r)?G.setNodes(e,{[t]:n},{match:W.isText,split:!0}):(e.marks=o_(o_({},B.marks(e)||{}),{},{[t]:n}),e_.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&U.isCollapsed(n)&&G.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&U.isCollapsed(n)&&G.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&U.isExpanded(n)&&G.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?V.fragment(e,t):[]},insertBreak:()=>{G.splitNodes(e,{always:!0})},insertFragment:t=>{G.insertFragment(e,t)},insertNode:t=>{G.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=o_({text:t},r);G.insertNodes(e,i)}else G.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!W.isText(n))if(z.isElement(n)&&n.children.length===0)G.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!B.isEditor(n)&&z.isElement(n)&&(e.isInline(n)||n.children.length===0||W.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=V.get(e,r);if(!W.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(W.isText(c)||z.isElement(c)&&e.isInline(c))===i?z.isElement(c)?e.isInline(c)&&(l!=null&&W.isText(l)?u&&(G.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(G.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&W.isText(l)&&(W.equals(c,l,{loose:!0})?(G.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(G.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(G.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(G.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(U.isExpanded(n))G.unsetNodes(e,t,{match:W.isText,split:!0});else{var r=o_({},B.marks(e)||{});delete r[t],e.marks=r,e_.get(e)||e.onChange()}}};return e},kie=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return H.levels(t);case`insert_node`:var{node:n,path:r}=e,i=H.levels(r),a=W.isText(n)?[]:Array.from(V.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...H.ancestors(o),H.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(H.equals(s,c))return[];var l=[],u=[];for(var d of H.ancestors(s)){var f=H.transform(d,e);l.push(f)}for(var p of H.ancestors(c)){var m=H.transform(p,e);u.push(m)}var h=u[u.length-1],g=c[c.length-1],_=h.concat(g);return[...l,...u,_];case`remove_node`:var{path:v}=e;return[...H.ancestors(v)];case`split_node`:var{path:y}=e;return[...H.levels(y),H.next(y)];default:return[]}};function s_(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c_,l_=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Pie(e):e,i=c_.None,a=c_.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=Kie(c,l);if([i,a]=n?[a,u]:[u,i],d_(i,c_.ZWJ)&&d_(a,c_.ExtPict)&&!Xie(n?e.substring(0,o):e.substring(0,e.length-o))||d_(i,c_.RI)&&d_(a,c_.RI)&&!(s=s===null?!!n||Qie(e.substring(0,e.length-o)):!s)||i!==c_.None&&a!==c_.None&&Jie(i,a))break;o+=c.length}return o||1},Aie=/\s/,jie=/[\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]/,Mie=/['\u2018\u2019]/,u_=(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)]},Nie=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Aie.test(t))return!1;if(Mie.test(t)){var[i,a]=u_(n,l_(n,r),r);if(e(i,a,r))return!0}return!jie.test(t)},Pie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Iie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Fie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Fie=e=>e>=55296&&e<=56319,Iie=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]=`None`,e[e.Extend=1]=`Extend`,e[e.ZWJ=2]=`ZWJ`,e[e.RI=4]=`RI`,e[e.Prepend=8]=`Prepend`,e[e.SpacingMark=16]=`SpacingMark`,e[e.L=32]=`L`,e[e.V=64]=`V`,e[e.T=128]=`T`,e[e.LV=256]=`LV`,e[e.LVT=512]=`LVT`,e[e.ExtPict=1024]=`ExtPict`,e[e.Any=2048]=`Any`})(c_||={});var Lie=/^(?:[\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])$/,Rie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,zie=/^(?:[\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])$/,Bie=/^[\u1100-\u115F\uA960-\uA97C]$/,Vie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Hie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Uie=/^[\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]$/,Wie=/^[\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]$/,Gie=/^(?:[\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])$/,Kie=(e,t)=>{var n=c_.Any;return e.search(Lie)!==-1&&(n|=c_.Extend),t===8205&&(n|=c_.ZWJ),t>=127462&&t<=127487&&(n|=c_.RI),e.search(Rie)!==-1&&(n|=c_.Prepend),e.search(zie)!==-1&&(n|=c_.SpacingMark),e.search(Bie)!==-1&&(n|=c_.L),e.search(Vie)!==-1&&(n|=c_.V),e.search(Hie)!==-1&&(n|=c_.T),e.search(Uie)!==-1&&(n|=c_.LV),e.search(Wie)!==-1&&(n|=c_.LVT),e.search(Gie)!==-1&&(n|=c_.ExtPict),n};function d_(e,t){return(e&t)!=0}var qie=[[c_.L,c_.L|c_.V|c_.LV|c_.LVT],[c_.LV|c_.V,c_.V|c_.T],[c_.LVT|c_.T,c_.T],[c_.Any,c_.Extend|c_.ZWJ],[c_.Any,c_.SpacingMark],[c_.Prepend,c_.Any],[c_.ZWJ,c_.ExtPict],[c_.RI,c_.RI]];function Jie(e,t){return qie.findIndex((n=>d_(e,n[0])&&d_(t,n[1])))===-1}var Yie=/(?:[\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$/,Xie=e=>e.search(Yie)!==-1,Zie=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Qie=e=>{var t=e.match(Zie);return t!==null&&t[0].length/2%2==1},f_=e=>eg(e)&&V.isNodeList(e.children)&&!B.isEditor(e),z={isAncestor:e=>eg(e)&&V.isNodeList(e.children),isElement:f_,isElementList:e=>Array.isArray(e)&&e.every((e=>z.isElement(e))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`type`;return f_(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},$ie=[`text`],eae=[`text`];function p_(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 m_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h_=new WeakMap,B={above(e){var{voids:t=!1,mode:n=`lowest`,at:r=e.selection,match:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r){var a=B.path(e,r),o=n===`lowest`;for(var[s,c]of B.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!W.isText(s)&&!H.equals(a,c))return[s,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:B.point(e,t,{edge:`end`}),focus:B.end(e,[])},{distance:a=1}=r,o=0;for(var s of B.positions(e,m_(m_({},r),{},{at:i}))){if(o>a)break;o!==0&&(n=s),o++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:B.start(e,[]),focus:B.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of B.positions(e,m_(m_({},r),{},{at:i,reverse:!0}))){if(o>a)break;o!==0&&(n=s),o++}return n},deleteBackward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteBackward(t)},deleteForward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteForward(t)},deleteFragment(e){var{direction:t=`forward`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteFragment(t)},edges:(e,t)=>[B.start(e,t),B.end(e,t)],end:(e,t)=>B.point(e,t,{edge:`end`}),first(e,t){var n=B.path(e,t,{edge:`start`});return B.node(e,n)},fragment(e,t){var n=B.range(e,t);return V.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>B.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>W.isText(t)||B.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>W.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)=>z.isElement(t)&&!e.isInline(t),isEditor(e){if(!eg(e))return!1;var t=h_.get(e);if(t!==void 0)return t;var n=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==`function`&&(e.marks===null||eg(e.marks))&&(e.selection===null||U.isRange(e.selection))&&V.isNodeList(e.children)&&y_.isOperationList(e.operations);return h_.set(e,n),n},isEnd(e,t,n){var r=B.end(e,n);return S_.equals(t,r)},isEdge:(e,t,n)=>B.isStart(e,t,n)||B.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&W.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>z.isElement(t)&&e.isInline(t),isNormalizing(e){var t=t_.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=B.start(e,n);return S_.equals(t,r)},isVoid:(e,t)=>z.isElement(t)&&e.isVoid(t),last(e,t){var n=B.path(e,t,{edge:`end`});return B.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[V.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:a}=t;if(a??=()=>!0,n){var o=[],s=B.path(e,n);for(var[c,l]of V.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&B.isVoid(e,c)))break;r&&o.reverse(),yield*o}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(U.isExpanded(n)){var[r]=B.nodes(e,{match:W.isText});if(r){var[i]=r;return s_(i,$ie)}return{}}var{anchor:a}=n,{path:o}=a,[s]=B.leaf(e,o);if(a.offset===0){var c=B.previous(e,{at:o,match:W.isText}),l=B.above(e,{match:t=>B.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;H.isAncestor(f,d)&&(s=u)}}return s_(s,eae)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=B.after(e,a,{voids:r});if(o){var[,s]=B.last(e,[]),c=[o.path,s];if(H.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(H.isPath(a)){var[l]=B.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=B.nodes(e,{at:c,match:i,mode:n,voids:r});return u}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[V.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r=`all`,universal:i=!1,reverse:a=!1,voids:o=!1}=t,{match:s}=t;if(s||=()=>!0,n){var c,l;if(tae.isSpan(n))c=n[0],l=n[1];else{var u=B.path(e,n,{edge:`start`}),d=B.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=V.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&B.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&H.compare(g,f[1])===0;if(r!==`highest`||!_){if(s(h,g))if(r===`lowest`&&_)f=[h,g];else{var v=r===`lowest`?f:[h,g];v&&(i?m.push(v):yield v),f=[h,g]}else if(i&&!_&&W.isText(h))return}}r===`lowest`&&f&&(i?m.push(f):yield f),i&&(yield*m)}},normalize(e){var{force:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e=>$g.get(e)||[];if(B.isNormalizing(e)){if(t){var r=Array.from(V.nodes(e),(e=>{var[,t]=e;return t}));$g.set(e,r)}n(e).length!==0&&B.withoutNormalizing(e,(()=>{for(var t of n(e))if(V.has(e,t)){var r=B.node(e,t),[i,a]=r;z.isElement(i)&&i.children.length===0&&e.normalizeNode(r)}for(var o=42*n(e).length,s=0;n(e).length!==0;){if(s>o)throw Error(`
Could not completely normalize the editor after ${o} iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`);var c=n(e).pop();if(V.has(e,c)){var l=B.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n),i=H.parent(r);return B.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(H.isPath(t)){if(r===`start`){var[,i]=V.first(e,t);t=i}else if(r===`end`){var[,a]=V.last(e,t);t=a}}return U.isRange(t)&&(t=r===`start`?U.start(t):r===`end`?U.end(t):H.common(t.anchor.path,t.focus.path)),S_.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>V.has(e,t),pathRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return B.pathRefs(e).delete(r),r.current=null,t}};return B.pathRefs(e).add(r),r},pathRefs(e){var t=n_.get(e);return t||(t=new Set,n_.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(H.isPath(t)){var r;if(n===`end`){var[,i]=V.last(e,t);r=i}else{var[,a]=V.first(e,t);r=a}var o=V.get(e,r);if(!W.isText(o))throw Error(`Cannot get the ${n} point in the node at path [${t}] because it has no ${n} text node.`);return{path:r,offset:n===`end`?o.text.length:0}}if(U.isRange(t)){var[s,c]=U.edges(t);return n===`start`?s:c}return t},pointRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return B.pointRefs(e).delete(r),r.current=null,t}};return B.pointRefs(e).add(r),r},pointRefs(e){var t=r_.get(e);return t||(t=new Set,r_.set(e,t)),t},*positions(e){var{at:t=e.selection,unit:n=`offset`,reverse:r=!1,voids:i=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t){var a=B.range(e,t),[o,s]=U.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of B.nodes(e,{at:t,reverse:r,voids:i})){if(z.isElement(m)){if(!i&&e.isVoid(m)){yield B.start(e,h);continue}if(e.isInline(m))continue;if(B.hasInlines(e,m)){var g=H.isAncestor(h,s.path)?s:B.end(e,h),_=H.isAncestor(h,o.path)?o:B.start(e,h);u=B.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(W.isText(m)){var v=H.equals(h,c.path);for(v?(f=r?c.offset:m.text.length-c.offset,p=c.offset):(f=m.text.length,p=r?f:0),(v||l||n===`offset`)&&(yield{path:h,offset:p},l=!1);;){if(d===0){if(u===``)break;d=y(u,n,r),u=u_(u,d,r)[1]}if(p=r?p-d:p+d,(f-=d)<0){d=-f;break}d=0,yield{path:h,offset:p}}}}}function y(e,t,n){return t===`character`?l_(e,n):t===`word`?function(e){for(var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=0,r=!1;e.length>0;){var i=l_(e,t),[a,o]=u_(e,i,t);if(Nie(a,o,t))r=!0,n+=i;else{if(r)break;n+=i}e=o}return n}(e,n):t===`line`||t===`block`?e.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=B.before(e,a,{voids:r});if(o){var[,s]=B.first(e,[]),c=[o.path,s];if(H.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(H.isPath(a)){var[l]=B.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=B.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>U.isRange(t)&&!n?t:{anchor:B.start(e,t),focus:B.end(e,n||t)},rangeRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return B.rangeRefs(e).delete(r),r.current=null,t}};return B.rangeRefs(e).add(r),r},rangeRefs(e){var t=i_.get(e);return t||(t=new Set,i_.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){t_.set(e,t)},start:(e,t)=>B.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.range(e,t),[i,a]=U.edges(r),o=``;for(var[s,c]of B.nodes(e,{at:r,match:W.isText,voids:n})){var l=s.text;H.equals(c,a.path)&&(l=l.slice(0,a.offset)),H.equals(c,i.path)&&(l=l.slice(i.offset)),o+=l}return o},unhangRange(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},[r,i]=U.edges(t);if(r.offset!==0||i.offset!==0||U.isCollapsed(t))return t;var a=B.above(e,{at:i,match:t=>B.isBlock(e,t)}),o=a?a[1]:[],s={anchor:B.start(e,[]),focus:i},c=!0;for(var[l,u]of B.nodes(e,{at:s,match:W.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||H.isBefore(u,o)){i={path:u,offset:l.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.above(e,m_(m_({},t),{},{match:t=>B.isVoid(e,t)}))},withoutNormalizing(e,t){var n=B.isNormalizing(e);B.setNormalizing(e,!1);try{t()}finally{B.setNormalizing(e,n)}B.normalize(e)}},tae={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(H.isPath)},nae=[`children`],rae=[`text`],g_=new WeakMap,V={ancestor(e,t){var n=V.get(e,t);if(W.isText(n))throw Error(`Cannot get the ancestor node at path [${t}] because it refers to a text node instead: ${n}`);return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of H.ancestors(t,n))yield[V.ancestor(e,r),r]},child(e,t){if(W.isText(e))throw Error(`Cannot get the child of a text node: ${JSON.stringify(e)}`);var n=e.children[t];if(n==null)throw Error(`Cannot get child at index \`${t}\` in node: ${JSON.stringify(e)}`);return n},*children(e,t){for(var{reverse:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[V.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=H.common(t,n);return[V.get(e,r),r]},descendant(e,t){var n=V.get(e,t);if(B.isEditor(n))throw Error(`Cannot get the descendant node at path [${t}] because it refers to the root editor node instead: ${n}`);return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of V.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of V.nodes(e,t))z.isElement(n)&&(yield[n,r])},extractProps:e=>z.isAncestor(e)?s_(e,nae):s_(e,rae),first(e,t){for(var n=t.slice(),r=V.get(e,n);r&&!W.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(W.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return Yg({children:e.children},(e=>{var[n,r]=U.edges(t);for(var[,i]of V.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!U.includes(t,n)}})){if(!U.includes(t,i)){var a=V.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(H.equals(i,r.path)){var s=V.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(H.equals(i,n.path)){var c=V.leaf(e,i);c.text=c.text.slice(n.offset)}}B.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(W.isText(n)||!n.children[i])throw Error(`Cannot find a descendant at path [${t}] in node: ${JSON.stringify(e)}`);n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(W.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>W.isText(e)||z.isElement(e)||B.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=g_.get(e);if(t!==void 0)return t;var n=e.every((e=>V.isNode(e)));return g_.set(e,n),n},last(e,t){for(var n=t.slice(),r=V.get(e,n);r&&!W.isText(r)&&r.children.length!==0;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=V.get(e,t);if(!W.isText(n))throw Error(`Cannot get the leaf node at path [${t}] because it refers to a non-leaf node: ${n}`);return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of H.levels(t,n))yield[V.get(e,r),r]},matches:(e,t)=>z.isElement(e)&&z.isElementProps(t)&&z.matches(e,t)||W.isText(e)&&W.isTextProps(t)&&W.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:a}=t,o=new Set,s=[],c=e;!a||!(r?H.isBefore(s,a):H.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||W.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=H.next(s);if(V.has(e,l)){s=l,c=V.get(e,s);continue}}r&&s[s.length-1]!==0?(s=H.previous(s),c=V.get(e,s)):(s=H.parent(s),c=V.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;H.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=V.get(e,s)}},parent(e,t){var n=H.parent(t),r=V.get(e,n);if(W.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>W.isText(e)?e.text:e.children.map(V.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of V.nodes(e,t))W.isText(n)&&(yield[n,r])}};function __(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 v_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?__(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y_={isNodeOperation:e=>y_.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!eg(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return H.isPath(e.path)&&V.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&H.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&H.isPath(e.path)&&eg(e.properties);case`move_node`:return H.isPath(e.path)&&H.isPath(e.newPath);case`set_node`:return H.isPath(e.path)&&eg(e.properties)&&eg(e.newProperties);case`set_selection`:return e.properties===null&&U.isRange(e.newProperties)||e.newProperties===null&&U.isRange(e.properties)||eg(e.properties)&&eg(e.newProperties);case`split_node`:return H.isPath(e.path)&&typeof e.position==`number`&&eg(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>y_.isOperation(e))),isSelectionOperation:e=>y_.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>y_.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return v_(v_({},e),{},{type:`remove_node`});case`insert_text`:return v_(v_({},e),{},{type:`remove_text`});case`merge_node`:return v_(v_({},e),{},{type:`split_node`,path:H.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(H.equals(t,n))return e;if(H.isSibling(n,t))return v_(v_({},e),{},{path:t,newPath:n});var r=H.transform(n,e),i=H.transform(H.next(n),e);return v_(v_({},e),{},{path:r,newPath:i});case`remove_node`:return v_(v_({},e),{},{type:`insert_node`});case`remove_text`:return v_(v_({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return v_(v_({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return v_(v_({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return v_(v_({},e),{},{type:`merge_node`,path:H.next(e.path)})}}},H={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=H.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return H.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return H.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return H.equals(r,i)&&a<o},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>H.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&H.compare(e,t)===0,isBefore:(e,t)=>H.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&H.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&H.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&H.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&H.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]==`number`),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]&&H.equals(n,r)},levels(e){for(var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=0;r<=e.length;r++)n.push(e.slice(0,r));return t&&n.reverse(),n},next(e){if(e.length===0)throw Error(`Cannot get the next path of a root path [${e}], because it has no next index.`);var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw Error(`Cannot get the parent path of the root path [${e}].`);return e.slice(0,-1)},previous(e){if(e.length===0)throw Error(`Cannot get the previous path of a root path [${e}], because it has no previous index.`);var t=e[e.length-1];if(t<=0)throw Error(`Cannot get the previous path of a first child path [${e}] because it would result in a negative index.`);return e.slice(0,-1).concat(t-1)},relative(e,t){if(!H.isAncestor(t,e)&&!H.equals(e,t))throw Error(`Cannot get the relative path of [${e}] inside ancestor [${t}], because it is not above or equal to the path.`);return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yg(e,(r=>{var{affinity:i=`forward`}=n;if(e&&e?.length!==0){if(r===null)return null;switch(t.type){case`insert_node`:var{path:a}=t;(H.equals(a,r)||H.endsBefore(a,r)||H.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(H.equals(o,r)||H.isAncestor(o,r))return null;H.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;H.equals(s,r)||H.endsBefore(s,r)?--r[s.length-1]:H.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(H.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else H.endsBefore(l,r)?r[l.length-1]+=1:H.isAncestor(l,r)&&e[l.length]>=u&&(r[l.length-1]+=1,r[l.length]-=u);break;case`move_node`:var{path:d,newPath:f}=t;if(H.equals(d,f))return;if(H.isAncestor(d,r)||H.equals(d,r)){var p=f.slice();return H.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}H.isSibling(d,f)&&(H.isAncestor(f,r)||H.equals(f,r))?H.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:H.endsBefore(f,r)||H.equals(f,r)||H.isAncestor(f,r)?(H.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):H.endsBefore(d,r)&&(H.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},iae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=H.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}};function b_(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 x_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?b_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S_={compare(e,t){var n=H.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:+(e.offset>t.offset):n},isAfter:(e,t)=>S_.compare(e,t)===1,isBefore:(e,t)=>S_.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&H.equals(e.path,t.path),isPoint:e=>eg(e)&&typeof e.offset==`number`&&H.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yg(e,(e=>{if(e===null)return null;var{affinity:r=`forward`}=n,{path:i,offset:a}=e;switch(t.type){case`insert_node`:case`move_node`:e.path=H.transform(i,t,n);break;case`insert_text`:H.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:H.equals(t.path,i)&&(e.offset+=t.position),e.path=H.transform(i,t,n);break;case`remove_text`:H.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(H.equals(t.path,i)||H.isAncestor(t.path,i))return null;e.path=H.transform(i,t,n);break;case`split_node`:if(H.equals(t.path,i)){if(t.position===a&&r==null)return null;(t.position<a||t.position===a&&r===`forward`)&&(e.offset-=t.position,e.path=H.transform(i,t,x_(x_({},n),{},{affinity:`forward`})))}else e.path=H.transform(i,t,n)}}))}},aae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=S_.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},oae=[`anchor`,`focus`];function C_(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}var U={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return U.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=U.edges(e);return t},equals:(e,t)=>S_.equals(e.anchor,t.anchor)&&S_.equals(e.focus,t.focus),includes(e,t){if(U.isRange(t)){if(U.includes(e,t.anchor)||U.includes(e,t.focus))return!0;var[n,r]=U.edges(e),[i,a]=U.edges(t);return S_.isBefore(n,i)&&S_.isAfter(r,a)}var[o,s]=U.edges(e),c=!1,l=!1;return S_.isPoint(t)?(c=S_.compare(t,o)>=0,l=S_.compare(t,s)<=0):(c=H.compare(t,o.path)>=0,l=H.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=s_(e,oae),[r,i]=U.edges(e),[a,o]=U.edges(t),s=S_.isBefore(r,a)?a:r,c=S_.isBefore(i,o)?i:o;return S_.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?C_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return S_.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return S_.equals(t,n)},isExpanded:e=>!U.isCollapsed(e),isForward:e=>!U.isBackward(e),isRange:e=>eg(e)&&S_.isPoint(e.anchor)&&S_.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=U.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yg(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=U.isCollapsed(e);U.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?U.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=S_.transform(e.anchor,t,{affinity:r}),c=S_.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},sae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=U.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},w_=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(eg(r)&&eg(i)){if(!w_(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1}else if(r!==i)return!1}for(var o in t)if(e[o]===void 0&&t[o]!==void 0)return!1;return!0},cae=[`text`],lae=[`anchor`,`focus`];function T_(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 E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?T_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return s_(e,cae)}return w_(n?r(e):e,n?r(t):t)},isText:e=>eg(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>W.isText(e))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!==`text`&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[E_({},e)];for(var r of t){var i=s_(r,lae),[a,o]=U.edges(r),s=[],c=0;for(var l of n){var{length:u}=l.text,d=c;if(c+=u,a.offset<=d&&o.offset>=c)Object.assign(l,i),s.push(l);else if(a.offset!==o.offset&&(a.offset===c||o.offset===d)||a.offset>c||o.offset<d||o.offset===d&&d!==0)s.push(l);else{var f=l,p=void 0,m=void 0;if(o.offset<c){var h=o.offset-d;m=E_(E_({},f),{},{text:f.text.slice(h)}),f=E_(E_({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=E_(E_({},f),{},{text:f.text.slice(0,g)}),f=E_(E_({},f),{},{text:f.text.slice(g)})}Object.assign(f,i),p&&s.push(p),s.push(f),m&&s.push(m)}}n=s}return n}};function D_(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 O_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?D_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uae={transform(e,t){e.children=Xg(e.children);var n=e.selection&&Xg(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=V.parent(e,r),o=r[r.length-1];if(o>a.children.length)throw Error(`Cannot apply an "insert_node" operation at path [${r}] because the destination is past the end of the node.`);if(a.children.splice(o,0,i),t)for(var[s,c]of U.points(t))t[c]=S_.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=V.leaf(e,l),p=f.text.slice(0,u),m=f.text.slice(u);if(f.text=p+d+m,t)for(var[h,g]of U.points(t))t[g]=S_.transform(h,n);break;case`merge_node`:var{path:_}=n,v=V.get(e,_),y=H.previous(_),b=V.get(e,y),x=V.parent(e,_),S=_[_.length-1];if(W.isText(v)&&W.isText(b))b.text+=v.text;else{if(W.isText(v)||W.isText(b))throw Error(`Cannot apply a "merge_node" operation at path [${_}] to nodes of different interfaces: ${v} ${b}`);b.children.push(...v.children)}if(x.children.splice(S,1),t)for(var[C,w]of U.points(t))t[w]=S_.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(H.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=V.get(e,T),O=V.parent(e,T),k=T[T.length-1];O.children.splice(k,1);var A=H.transform(T,n),j=V.get(e,H.parent(A)),M=A[A.length-1];if(j.children.splice(M,0,D),t)for(var[ee,te]of U.points(t))t[te]=S_.transform(ee,n);break;case`remove_node`:var{path:ne}=n,re=ne[ne.length-1];if(V.parent(e,ne).children.splice(re,1),t)for(var[ie,N]of U.points(t)){var ae=S_.transform(ie,n);if(t!=null&&ae!=null)t[N]=ae;else{var oe=void 0,se=void 0;for(var[ce,le]of V.texts(e)){if(H.compare(le,ne)!==-1){se=[ce,le];break}oe=[ce,le]}var ue=!1;oe&&se&&(ue=H.equals(se[1],ne)?!H.hasPrevious(se[1]):H.common(oe[1],ne).length<H.common(se[1],ne).length),oe&&!ue?(ie.path=oe[1],ie.offset=oe[0].text.length):se?(ie.path=se[1],ie.offset=0):t=null}}break;case`remove_text`:var{path:de,offset:fe,text:pe}=n;if(pe.length===0)break;var me=V.leaf(e,de);if(me.text=me.text.slice(0,fe)+me.text.slice(fe+pe.length),t)for(var[he,ge]of U.points(t))t[ge]=S_.transform(he,n);break;case`set_node`:var{path:_e,properties:ve,newProperties:P}=n;if(_e.length===0)throw Error(`Cannot set properties on the root node!`);var ye=V.get(e,_e);for(var be in P){if(be===`children`||be===`text`)throw Error(`Cannot set the "${be}" property of nodes!`);var F=P[be];F==null?delete ye[be]:ye[be]=F}for(var xe in ve)P.hasOwnProperty(xe)||delete ye[xe];break;case`set_selection`:var{newProperties:Se}=n;if(Se==null)t=Se;else{if(t==null){if(!U.isRange(Se))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(Se)} when there is no current selection.`);t=O_({},Se)}for(var Ce in Se){var we=Se[Ce];if(we==null){if(Ce===`anchor`||Ce===`focus`)throw Error(`Cannot remove the "${Ce}" selection property`);delete t[Ce]}else t[Ce]=we}}break;case`split_node`:var{path:Te,position:I,properties:Ee}=n;if(Te.length===0)throw Error(`Cannot apply a "split_node" operation at path [${Te}] because the root node cannot be split.`);var De,Oe=V.get(e,Te),L=V.parent(e,Te),ke=Te[Te.length-1];if(W.isText(Oe)){var Ae=Oe.text.slice(0,I),je=Oe.text.slice(I);Oe.text=Ae,De=O_(O_({},Ee),{},{text:je})}else{var Me=Oe.children.slice(0,I),Ne=Oe.children.slice(I);Oe.children=Me,De=O_(O_({},Ee),{},{children:Ne})}if(L.children.splice(ke+1,0,De),t)for(var[Pe,Fe]of U.points(t))t[Fe]=S_.transform(Pe,n)}return t})(e,n,t)}finally{e.children=Zg(e.children),e.selection=n?ng(n)?Zg(n):n:null}}},dae=[`text`],fae=[`children`];function k_(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 A_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?k_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pae={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(V.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?B.end(e,[]):[0],c=!0),c??=!1,U.isRange(o))if(r||(o=B.unhangRange(e,o)),U.isCollapsed(o))o=o.anchor;else{var[,u]=U.edges(o),d=B.pointRef(e,u);G.delete(e,{at:o}),o=d.unref()}if(S_.isPoint(o)){s??=W.isText(l)?e=>W.isText(e):e.isInline(l)?t=>W.isText(t)||B.isInline(e,t):t=>B.isBlock(e,t);var[f]=B.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=B.pathRef(e,p),h=B.isEnd(e,o,p);G.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?H.next(g):g}var _=H.parent(o),v=o[o.length-1];if(i||!B.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=H.next(o)}if(o=H.previous(o),c){var x=B.end(e,o);x&&G.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=H.isPath(n)?M_(e,n):t=>B.isBlock(e,t),n){var o=B.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return B.pathRef(e,n)}))){var c=s.unref();if(c.length<2)throw Error(`Cannot lift node at a path [${c}] because it has a depth of less than \`2\`.`);var[l,u]=B.node(e,H.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=H.next(u);G.moveNodes(e,{at:c,to:p,voids:i}),G.removeNodes(e,{at:u,voids:i})}else if(d===0)G.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=H.next(u);G.moveNodes(e,{at:c,to:m,voids:i})}else{var h=H.next(c),g=H.next(u);G.splitNodes(e,{at:h,voids:i}),G.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:a=!1,mode:o=`lowest`}=t;if(r){if(n==null)if(H.isPath(r)){var[s]=B.parent(e,r);n=e=>s.children.includes(e)}else n=t=>B.isBlock(e,t);if(!i&&U.isRange(r)&&(r=B.unhangRange(e,r)),U.isRange(r))if(U.isCollapsed(r))r=r.anchor;else{var[,c]=U.edges(r),l=B.pointRef(e,c);G.delete(e,{at:r}),r=l.unref(),t.at??G.select(e,r)}var[u]=B.nodes(e,{at:r,match:n,voids:a,mode:o}),d=B.previous(e,{at:r,match:n,voids:a,mode:o});if(u&&d){var[f,p]=u,[m,h]=d;if(p.length!==0&&h.length!==0){var g,_,v=H.next(h),y=H.common(p,h),b=H.isSibling(p,h),x=Array.from(B.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=B.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&j_(e,t)}),C=S&&B.pathRef(e,S[1]);if(W.isText(f)&&W.isText(m)){var w=s_(f,dae);_=m.text.length,g=w}else{if(!z.isElement(f)||!z.isElement(m))throw Error(`Cannot merge the node at path [${p}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(m)}`);w=s_(f,fae),_=m.children.length,g=w}b||G.moveNodes(e,{at:p,to:v,voids:a}),C&&G.removeNodes(e,{at:C.current,voids:a}),z.isElement(m)&&B.isEmpty(e,m)||W.isText(m)&&m.text===``&&h[h.length-1]!==0?G.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){B.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=H.isPath(r)?M_(e,r):t=>B.isBlock(e,t);var s=B.pathRef(e,n),c=B.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return B.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&H.isSibling(d,u)&&H.isAfter(d,u)&&(s.current=H.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=H.isPath(a)?M_(e,a):t=>B.isBlock(e,t),!n&&U.isRange(a)&&(a=B.unhangRange(e,a));var s=B.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return B.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=B.node(e,l);e.apply({type:`remove_node`,path:l,node:u})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection}=n,{hanging:a=!1,mode:o=`lowest`,split:s=!1,voids:c=!1}=n;if(i){if(r??=H.isPath(i)?M_(e,i):t=>B.isBlock(e,t),!a&&U.isRange(i)&&(i=B.unhangRange(e,i)),s&&U.isRange(i)){if(U.isCollapsed(i)&&B.leaf(e,i.anchor)[0].text.length>0)return;var l=B.rangeRef(e,i,{affinity:`inward`}),[u,d]=U.edges(i),f=o===`lowest`?`lowest`:`highest`,p=B.isEnd(e,d,d.path);G.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=B.isStart(e,u,u.path);G.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??G.select(e,i)}for(var[h,g]of B.nodes(e,{at:i,match:r,mode:o,voids:c})){var _={},v={};if(g.length!==0){var y=!1;for(var b in t)b!==`children`&&b!==`text`&&t[b]!==h[b]&&(y=!0,h.hasOwnProperty(b)&&(_[b]=h[b]),t[b]!=null&&(v[b]=t[b]));y&&e.apply({type:`set_node`,path:g,properties:_,newProperties:v})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection,height:o=0,always:s=!1}=t;if(i??=t=>B.isBlock(e,t),U.isRange(a)&&(a=mae(e,a)),H.isPath(a)){var c=a,l=B.point(e,c),[u]=B.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=B.pointRef(e,a,{affinity:`backward`}),[f]=B.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=B.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(z.isElement(m)&&e.isInline(m)){var g=B.after(e,h);if(!g){var _=H.next(h);G.insertNodes(e,{text:``},{at:_,voids:r}),g=B.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=B.pointRef(e,a),y=a.path.length-o,[,b]=f,x=a.path.slice(0,y),S=o===0?a.offset:a.path[y]+0;for(var[C,w]of B.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&B.isVoid(e,C))break;var E=d.current,D=B.isEnd(e,E,w);if(s||!d||!B.isEdge(e,E,w)){T=!0;var O=V.extractProps(C);e.apply({type:`split_node`,path:w,position:S,properties:O})}S=w[w.length-1]+(T||D?1:0)}if(t.at==null){var k=v.current||B.end(e,[]);G.select(e,k)}d.unref(),v.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;G.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=H.isPath(a)?M_(e,a):t=>B.isBlock(e,t),H.isPath(a)&&(a=B.range(e,a));var s=U.isRange(a)?B.rangeRef(e,a):null,c=B.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return B.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=B.node(e,n),o=B.range(e,n);r&&s&&(o=U.intersection(s.current,o)),G.liftNodes(e,{at:o,match:e=>z.isAncestor(a)&&a.children.includes(e),voids:i})};for(var d of l)u(d);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=H.isPath(s)?M_(e,s):e.isInline(t)?t=>B.isInline(e,t)||W.isText(t):t=>B.isBlock(e,t),i&&U.isRange(s)){var[c,l]=U.edges(s),u=B.rangeRef(e,s,{affinity:`inward`});G.splitNodes(e,{at:l,match:o,voids:a}),G.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??G.select(e,s)}for(var[,d]of Array.from(B.nodes(e,{at:s,match:e.isInline(t)?t=>B.isBlock(e,t):e=>B.isEditor(e),mode:`lowest`,voids:a}))){var f=U.isRange(s)?U.intersection(s,B.range(e,d)):s;if(f){var p=Array.from(B.nodes(e,{at:f,match:o,mode:r,voids:a}));if(p.length>0&&function(){var[n]=p,r=p[p.length-1],[,i]=n,[,o]=r;if(i.length===0&&o.length===0)return`continue`;var s=H.equals(i,o)?H.parent(i):H.common(i,o),c=B.range(e,i,o),[l]=B.node(e,s),u=s.length+1,d=H.next(o.slice(0,u)),f=A_(A_({},t),{},{children:[]});G.insertNodes(e,f,{at:d,voids:a}),G.moveNodes(e,{at:c,match:e=>z.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},j_=(e,t)=>{if(z.isElement(t)){var n=t;return!!B.isVoid(e,t)||n.children.length===1&&j_(e,n.children[0])}return!B.isEditor(t)},mae=(e,t)=>{if(U.isCollapsed(t))return t.anchor;var[,n]=U.edges(t),r=B.pointRef(e,n);return G.delete(e,{at:t}),r.unref()},M_=(e,t)=>{var[n]=B.node(e,t);return e=>e===n};function N_(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 P_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?N_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hae={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)G.select(e,n.anchor);else if(t===`focus`)G.select(e,n.focus);else if(t===`start`){var[r]=U.edges(n);G.select(e,r)}else if(t===`end`){var[,i]=U.edges(n);G.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&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i=`character`,reverse:a=!1}=t,{edge:o=null}=t;if(n){o===`start`&&(o=U.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=U.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?B.before(e,s,l):B.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?B.before(e,c,l):B.after(e,c,l);f&&(u.focus=f)}G.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=B.range(e,t),n)G.setSelection(e,t);else{if(!U.isRange(t))throw Error(`When setting the selection and the current selection is \`null\` you must provide at least an \`anchor\` and \`focus\`, but you passed: ${JSON.stringify(t)}`);e.apply({type:`set_selection`,properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i=`both`}=n;if(r){i===`start`&&(i=U.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=U.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;G.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:P_(P_({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!S_.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!S_.equals(t.focus,n.focus)||a!==`anchor`&&a!==`focus`&&t[a]!==n[a])&&(r[a]=n[a],i[a]=t[a]);Object.keys(r).length>0&&e.apply({type:`set_selection`,properties:r,newProperties:i})}}},gae={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r=`character`,distance:i=1,voids:a=!1}=t,{at:o=e.selection,hanging:s=!1}=t;if(o){if(U.isRange(o)&&U.isCollapsed(o)&&(o=o.anchor),S_.isPoint(o)){var c=B.void(e,{at:o,mode:`highest`});if(!a&&c){var[,l]=c;o=l}else{var u={unit:r,distance:i};o={anchor:o,focus:n?B.before(e,o,u)||B.start(e,[]):B.after(e,o,u)||B.end(e,[])},s=!0}}if(H.isPath(o))G.removeNodes(e,{at:o,voids:a});else if(!U.isCollapsed(o)){if(!s){var[,d]=U.edges(o),f=B.end(e,[]);S_.equals(d,f)||(o=B.unhangRange(e,o,{voids:a}))}var[p,m]=U.edges(o),h=B.above(e,{match:t=>B.isBlock(e,t),at:p,voids:a}),g=B.above(e,{match:t=>B.isBlock(e,t),at:m,voids:a}),_=h&&g&&!H.equals(h[1],g[1]),v=H.equals(p.path,m.path),y=a?null:B.void(e,{at:p,mode:`highest`}),b=a?null:B.void(e,{at:m,mode:`highest`});if(y){var x=B.before(e,p);x&&h&&H.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=B.after(e,m);S&&g&&H.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of B.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&H.compare(D,C)===0||(!a&&B.isVoid(e,E)||!H.isCommon(D,p.path)&&!H.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return B.pathRef(e,n)})),k=B.pointRef(e,p),A=B.pointRef(e,m);if(!v&&!y){var j=k.current,[M]=B.leaf(e,j),{path:ee}=j,{offset:te}=p,ne=M.text.slice(te);ne.length>0&&e.apply({type:`remove_text`,path:ee,offset:te,text:ne})}for(var re of O){var ie=re.unref();G.removeNodes(e,{at:ie,voids:a})}if(!b){var N=A.current,[ae]=B.leaf(e,N),{path:oe}=N,se=v?p.offset:0,ce=ae.text.slice(se,m.offset);ce.length>0&&e.apply({type:`remove_text`,path:oe,offset:se,text:ce})}!v&&_&&A.current&&k.current&&G.mergeNodes(e,{at:A.current,hanging:!0,voids:a});var le=n?k.unref()||A.unref():A.unref()||k.unref();t.at==null&&le&&G.select(e,le)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(U.isRange(a))if(r||(a=B.unhangRange(e,a)),U.isCollapsed(a))a=a.anchor;else{var[,o]=U.edges(a);if(!i&&B.void(e,{at:o}))return;var s=B.pointRef(e,o);G.delete(e,{at:a}),a=s.unref()}else H.isPath(a)&&(a=B.start(e,a));if(i||!B.void(e,{at:a})){var c=B.above(e,{at:a,match:t=>B.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;B.isEnd(e,a,l)?a=B.after(e,l):B.isStart(e,a,l)&&(a=B.before(e,l))}var[,u]=B.above(e,{match:t=>B.isBlock(e,t),at:a,voids:i}),d=B.isStart(e,a,u),f=B.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=V.first({children:t},[]),[,_]=V.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&H.isAncestor(r,g)&&z.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&H.isAncestor(r,_)&&z.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of V.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)z.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=B.nodes(e,{at:a,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,k=B.isStart(e,a,O),A=B.isEnd(e,a,O),j=B.pathRef(e,f?H.next(u):u),M=B.pathRef(e,A?H.next(O):O),ee=B.pathRef(e,u);G.splitNodes(e,{at:a,match:t=>T?B.isBlock(e,t):W.isText(t)||B.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var te=B.pathRef(e,!k||k&&A?H.next(O):O);if(G.insertNodes(e,x,{at:te.current,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&G.delete(e,{at:ee.unref(),voids:i}),G.insertNodes(e,S,{at:j.current,match:t=>B.isBlock(e,t),mode:`lowest`,voids:i}),G.insertNodes(e,C,{at:M.current,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),!n.at){var ne=C.length>0?H.previous(M.current):S.length>0?H.previous(j.current):H.previous(te.current),re=B.end(e,ne);G.select(e,re)}te.unref(),j.unref(),M.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(H.isPath(i)&&(i=B.range(e,i)),U.isRange(i))if(U.isCollapsed(i))i=i.anchor;else{var a=U.end(i);if(!r&&B.void(e,{at:a}))return;var o=B.pointRef(e,a);G.delete(e,{at:i,voids:r}),i=o.unref(),G.setSelection(e,{anchor:i,focus:i})}if(r||!B.void(e,{at:i})){var{path:s,offset:c}=i;t.length>0&&e.apply({type:`insert_text`,path:s,offset:c,text:t})}}}))}};function F_(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 I_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?F_(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G=I_(I_(I_(I_({},uae),pae),hae),gae),L_=`[object Map]`,R_=`[object Set]`,_ae=/^\[object .+?Constructor\]$/,vae=/^(?:0|[1-9]\d*)$/,yae=`[\\ud800-\\udfff]`,z_=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,B_=`\\ud83c[\\udffb-\\udfff]`,V_=`[^\\ud800-\\udfff]`,H_=`(?:\\ud83c[\\udde6-\\uddff]){2}`,U_=`[\\ud800-\\udbff][\\udc00-\\udfff]`,W_=`(?:`+z_+`|`+B_+`)?`,bae=`[\\ufe0e\\ufe0f]?`+W_+(`(?:\\u200d(?:`+[V_,H_,U_].join(`|`)+`)[\\ufe0e\\ufe0f]?`+W_+`)*`),xae=`(?:`+[V_+z_+`?`,z_,H_,U_,yae].join(`|`)+`)`,Sae=RegExp(B_+`(?=`+B_+`)|`+xae+bae,`g`),Cae=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),wae=typeof Jc==`object`&&Jc&&Jc.Object===Object&&Jc,Tae=typeof self==`object`&&self&&self.Object===Object&&self,G_=wae||Tae||Function(`return this`)();function Eae(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,(function(t){return e[t]}))}function Dae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Oae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function kae(e){return function(e){return Cae.test(e)}(e)?function(e){return e.match(Sae)||[]}(e):function(e){return e.split(``)}(e)}var K_,q_,Aae=Function.prototype,J_=Object.prototype,Y_=G_[`__core-js_shared__`],X_=function(){var e=/[^.]+$/.exec(Y_&&Y_.keys&&Y_.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Z_=Aae.toString,Q_=J_.hasOwnProperty,$_=J_.toString,jae=RegExp(`^`+Z_.call(Q_).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ev=G_.Symbol,tv=ev?ev.iterator:void 0,Mae=J_.propertyIsEnumerable,Nae=(K_=Object.keys,q_=Object,function(e){return K_(q_(e))}),nv=sv(G_,`DataView`),rv=sv(G_,`Map`),iv=sv(G_,`Promise`),av=sv(G_,`Set`),ov=sv(G_,`WeakMap`),Pae=lv(nv),Fae=lv(rv),Iae=lv(iv),Lae=lv(av),Rae=lv(ov);function zae(e,t){var n=uv(e)||function(e){return function(e){return mv(e)&&dv(e)}(e)&&Q_.call(e,`callee`)&&(!Mae.call(e,`callee`)||$_.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Q_.call(e,a)||i&&(a==`length`||Hae(a,r))||n.push(a);return n}function Bae(e){return!pv(e)||function(e){return!!X_&&X_ in e}(e)?!1:(fv(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?jae:_ae).test(lv(e))}function Vae(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||J_,t!==r)return Nae(e);var t,n,r,i=[];for(var a in Object(e))Q_.call(e,a)&&a!=`constructor`&&i.push(a);return i}function sv(e,t){var n=function(e,t){return e?.[t]}(e,t);return Bae(n)?n:void 0}var cv=function(e){return $_.call(e)};function Hae(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||vae.test(e))&&e>-1&&e%1==0&&e<t}function lv(e){if(e!=null){try{return Z_.call(e)}catch{}try{return e+``}catch{}}return``}(nv&&cv(new nv(new ArrayBuffer(1)))!=`[object DataView]`||rv&&cv(new rv)!=L_||iv&&cv(iv.resolve())!=`[object Promise]`||av&&cv(new av)!=R_||ov&&cv(new ov)!=`[object WeakMap]`)&&(cv=function(e){var t=$_.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?lv(n):void 0;if(r)switch(r){case Pae:return`[object DataView]`;case Fae:return L_;case Iae:return`[object Promise]`;case Lae:return R_;case Rae:return`[object WeakMap]`}return t});var uv=Array.isArray;function dv(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!fv(e)}function fv(e){var t=pv(e)?$_.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function pv(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function mv(e){return!!e&&typeof e==`object`}function Uae(e){return e?Eae(e,function(e){return dv(e)?zae(e):Vae(e)}(e)):[]}var hv=function(e){if(!e)return[];if(dv(e))return function(e){return typeof e==`string`||!uv(e)&&mv(e)&&$_.call(e)==`[object String]`}(e)?kae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(tv&&e[tv])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tv]());var t=cv(e);return(t==L_?Dae:t==R_?Oae:Uae)(e)};function gv(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function _v(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:gv(t[n])&&gv(e[n])&&Object.keys(t[n]).length>0&&_v(e[n],t[n])}))}var vv={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 yv(){var e=typeof document<`u`?document:{};return _v(e,vv),e}var Wae={document:vv,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 typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<`u`&&clearTimeout(e)}};function bv(){var e=typeof window<`u`?window:{};return _v(e,Wae),e}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xv(e)}function Sv(e,t){return Sv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sv(e,t)}function Gae(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function Cv(e,t,n){return Cv=Gae()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Sv(i,n.prototype),i},Cv.apply(null,arguments)}function wv(e){var t=typeof Map==`function`?new Map:void 0;return wv=function(e){if(e===null||!function(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Cv(e,arguments,xv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sv(n,e)},wv(e)}var Tv=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(n),i=r.__proto__,Object.defineProperty(r,`__proto__`,{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(wv(Array));function Ev(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Ev(e)):t.push(e)})),t}function Dv(e,t){return Array.prototype.filter.call(e,t)}function K(e,t){var n=bv(),r=yv(),i=[];if(!t&&e instanceof Tv)return e;if(!e)return new Tv(i);if(typeof e==`string`){var a=e.trim();if(a.indexOf(`<`)>=0&&a.indexOf(`>`)>=0){var o=`div`;a.indexOf(`<li`)===0&&(o=`ul`),a.indexOf(`<tr`)===0&&(o=`tbody`),a.indexOf(`<td`)!==0&&a.indexOf(`<th`)!==0||(o=`tr`),a.indexOf(`<tbody`)===0&&(o=`table`),a.indexOf(`<option`)===0&&(o=`select`);var s=r.createElement(o);s.innerHTML=a;for(var c=0;c<s.childNodes.length;c+=1)i.push(s.childNodes[c])}else i=function(e,t){if(typeof e!=`string`)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Tv)return e;i=e}return new Tv(function(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}(i))}function Ov(){var e=Ev([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function kv(){var e=Ev([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function Av(){var e=Ev([...arguments].map((function(e){return e.split(` `)})));return Dv(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function jv(e,t){if(arguments.length===1&&typeof e==`string`)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Mv(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Nv(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf(`data-`)>=0&&(n[t=a.name.split(`data-`)[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))]=a.value)}for(var o in n)n[o]===`false`?n[o]=!1:n[o]===`true`?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}}function Pv(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()===`select`){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var a=this[i];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()===`select`)for(var o=0;o<a.options.length;o+=1)a.options[o].selected=e.indexOf(a.options[o].value)>=0;else a.value=e}return this}function Fv(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];function a(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),K(t).is(n))r.apply(t,i);else for(var a=K(t).parents(),o=0;o<a.length;o+=1)K(a[o]).is(n)&&r.apply(a[o],i)}}function o(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}typeof e[1]==`function`&&(t=e[0],r=e[1],i=e[2],n=void 0),i||=!1;for(var s,c=t.split(` `),l=0;l<this.length;l+=1){var u=this[l];if(n)for(s=0;s<c.length;s+=1){var d=c[s];u.dom7LiveListeners||={},u.dom7LiveListeners[d]||(u.dom7LiveListeners[d]=[]),u.dom7LiveListeners[d].push({listener:r,proxyListener:a}),u.addEventListener(d,a,i)}else for(s=0;s<c.length;s+=1){var f=c[s];u.dom7Listeners||={},u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:r,proxyListener:o}),u.addEventListener(f,o,i)}}return this}function Iv(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];typeof e[1]==`function`&&(t=e[0],r=e[1],i=e[2],n=void 0),i||=!1;for(var a=t.split(` `),o=0;o<a.length;o+=1)for(var s=a[o],c=0;c<this.length;c+=1){var l=this[c],u=void 0;if(!n&&l.dom7Listeners?u=l.dom7Listeners[s]:n&&l.dom7LiveListeners&&(u=l.dom7LiveListeners[s]),u&&u.length)for(var d=u.length-1;d>=0;--d){var f=u[d];r&&f.listener===r||r&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===r?(l.removeEventListener(s,f.proxyListener,i),u.splice(d,1)):r||(l.removeEventListener(s,f.proxyListener,i),u.splice(d,1))}}return this}function Lv(){var e=bv();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Rv(){var e=bv();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function zv(){if(this.length>0){var e=bv(),t=yv(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}return null}function Bv(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function Vv(){for(var e=bv(),t=0;t<this.length;t+=1){var n=this[t];n.style.display===`none`&&(n.style.display=``),e.getComputedStyle(n,null).getPropertyValue(`display`)===`none`&&(n.style.display=`block`)}return this}function Hv(e,t){var n,r=bv();if(arguments.length===1){if(typeof e!=`string`){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e==`string`){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Uv(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function Wv(e){return K(Dv(this,e))}function Gv(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Kv(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function qv(e){var t,n,r=bv(),i=yv(),a=this[0];if(!a||e===void 0)return!1;if(typeof e==`string`){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=K(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof Tv){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function Jv(){for(var e,t=yv(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e==`string`){var i=t.createElement(`div`);for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof Tv)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function Yv(e){var t,n,r=yv();for(t=0;t<this.length;t+=1)if(typeof e==`string`){var i=r.createElement(`div`);for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;--n)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Tv)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Xv(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?K(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return K(t)}function Zv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?K(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return K(t)}function Qv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return K(t)}function $v(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!K(r[i]).is(e)||t.push(r[i]);return K(t)}function ey(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ty(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=``}}return this}K.fn=Tv.prototype;var ny=`resize scroll`.split(` `);function ry(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)ny.indexOf(e)<0&&(e in this[n]?this[n][e]():K(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(t))}}var iy=ry(`click`),ay=ry(`focus`),oy=`[object GeneratorFunction]`,sy=/^(?:0|[1-9]\d*)$/;function cy(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var ly=Object.prototype,uy=ly.hasOwnProperty,dy=ly.toString,fy=ly.propertyIsEnumerable,py=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function my(e,t){var n=xy(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&Sy(e)}(e)&&uy.call(e,`callee`)&&(!fy.call(e,`callee`)||dy.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!uy.call(e,a)||i&&(a==`length`||by(a,r))||n.push(a);return n}var hy,gy,_y=(hy=function(e,t){return e&&vy(e,t,Cy)},function(e,t){if(e==null)return e;if(!Sy(e))return hy(e,t);for(var n=e.length,r=gy?n:-1,i=Object(e);(gy?r--:++r<n)&&!1!==t(i[r],r,i););return e}),vy=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}();function yy(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ly,t!==r)return py(e);var t,n,r,i=[];for(var a in Object(e))uy.call(e,a)&&a!=`constructor`&&i.push(a);return i}function by(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||sy.test(e))&&e>-1&&e%1==0&&e<t}var xy=Array.isArray;function Sy(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}(e)?dy.call(e):``;return t==`[object Function]`||t==oy}(e)}function Cy(e){return Sy(e)?my(e):yy(e)}function wy(e){return e}var Ty=function(e,t){return(xy(e)?cy:_y)(e,typeof t==`function`?t:wy)},Ey=(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},Dy=/^\s+|\s+$/g,Oy=/^[-+]0x[0-9a-f]+$/i,ky=/^0b[01]+$/i,Ay=/^0o[0-7]+$/i,jy=parseInt,My=typeof Jc==`object`&&Jc&&Jc.Object===Object&&Jc,Ny=typeof self==`object`&&self&&self.Object===Object&&self,Py=My||Ny||Function(`return this`)(),Fy=Object.prototype.toString,Iy=Math.max,Ly=Math.min,Ry=function(){return Py.Date.now()};function zy(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=Ry();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Ly(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=Ry(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=Vy(t)||0,By(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Iy(Vy(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(Ry())},v}function By(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Vy(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Fy.call(e)==`[object Symbol]`}(e))return NaN;if(By(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=By(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Dy,``);var n=ky.test(e);return n||Ay.test(e)?jy(e.slice(2),n?2:8):Oy.test(e)?NaN:+e}var Hy=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return By(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),zy(e,t,{leading:r,maxWait:t,trailing:i})},Uy={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function Wy(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:t===void 0?void 0:t.key}}var Gy=Array.isArray;function Ky(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function qy(e){return e===void 0}function Jy(e){return e!==void 0}var Yy=Wy(``,{},[],void 0,void 0);function Xy(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function Zy(e,t,n){let r={};for(let i=t;i<=n;++i){let t=e[i]?.key;t!==void 0&&(r[t]=i)}return r}var Qy=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function $y(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?Uy:t;for(let t of Qy)for(let r of e){let e=r[t];e!==void 0&&n[t].push(e)}function i(e){let t=e.id?`#`+e.id:``,n=e.getAttribute(`class`),i=n?`.`+n.split(` `).join(`.`):``;return Wy(r.tagName(e).toLowerCase()+t+i,{},[],void 0,e)}function a(e,t){return function(){if(--t==0){let t=r.parentNode(e);r.removeChild(t,e)}}}function o(e,t){var i;let a,s=e.data;if(s!==void 0){let t=s.hook?.init;Jy(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)qy(e.text)&&(e.text=``),e.elm=r.createComment(e.text);else if(l!==void 0){let u=l.indexOf(`#`),d=l.indexOf(`.`,u),f=u>0?u:l.length,p=d>0?d:l.length,m=u!==-1||d!==-1?l.slice(0,Math.min(f,p)):l,h=e.elm=Jy(s)&&Jy(a=s.ns)?r.createElementNS(a,m,s):r.createElement(m,s);for(f<p&&h.setAttribute(`id`,l.slice(f+1,p)),d>0&&h.setAttribute(`class`,l.slice(p+1).replace(/\./g,` `)),a=0;a<n.create.length;++a)n.create[a](Yy,e);if(Gy(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else Ky(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;Jy(g)&&((i=g.create)==null||i.call(g,Yy,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function s(e,t,n,i,a,s){for(;i<=a;++i){let a=n[i];a!=null&&r.insertBefore(e,o(a,s),t)}}function c(e){var t,r;let i=e.data;if(i!==void 0){(r=(t=i?.hook)?.destroy)==null||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(e.children!==void 0)for(let t=0;t<e.children.length;++t){let n=e.children[t];n!=null&&typeof n!=`string`&&c(n)}}}function l(e,t,i,o){for(;i<=o;++i){let o,s,l=t[i];if(l!=null)if(Jy(l.sel)){c(l),o=n.remove.length+1,s=a(l.elm,o);for(let e=0;e<n.remove.length;++e)n.remove[e](l,s);let e=l?.data?.hook?.remove;Jy(e)?e(l,s):s()}else r.removeChild(e,l.elm)}}function u(e,t,i){var a,c,d,f;let p=t.data?.hook;(a=p?.prepatch)==null||a.call(p,e,t);let m=t.elm=e.elm,h=e.children,g=t.children;if(e!==t){if(t.data!==void 0){for(let r=0;r<n.update.length;++r)n.update[r](e,t);(d=(c=t.data.hook)?.update)==null||d.call(c,e,t)}qy(t.text)?Jy(h)&&Jy(g)?h!==g&&function(e,t,n,i){let a,c,d,f,p=0,m=0,h=t.length-1,g=t[0],_=t[h],v=n.length-1,y=n[0],b=n[v];for(;p<=h&&m<=v;)g==null?g=t[++p]:_==null?_=t[--h]:y==null?y=n[++m]:b==null?b=n[--v]:Xy(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):Xy(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):Xy(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):Xy(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=Zy(t,p,h)),c=a[y.key],qy(c)?r.insertBefore(e,o(y,i),g.elm):(d=t[c],d.sel===y.sel?(u(d,y,i),t[c]=void 0,r.insertBefore(e,d.elm,g.elm)):r.insertBefore(e,o(y,i),g.elm)),y=n[++m]);(p<=h||m<=v)&&(p>h?(f=n[v+1]==null?null:n[v+1].elm,s(e,f,n,m,v,i)):l(e,t,p,h))}(m,h,g,i):Jy(g)?(Jy(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):Jy(h)?l(m,h,0,h.length-1):Jy(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(Jy(h)&&l(m,h,0,h.length-1),r.setTextContent(m,t.text)),(f=p?.postpatch)==null||f.call(p,e,t)}}return function(e,t){let a,s,c,d=[];for(a=0;a<n.pre.length;++a)n.pre[a]();for(function(e){return e.sel!==void 0}(e)||(e=i(e)),Xy(e,t)?u(e,t,d):(s=e.elm,c=r.parentNode(s),o(t,d),c!==null&&(r.insertBefore(c,t.elm,r.nextSibling(s)),l(c,[e],0,0))),a=0;a<d.length;++a)d[a].data.hook.insert(d[a]);for(a=0;a<n.post.length;++a)n.post[a]();return t}}function eb(e,t,n){if(e.ns=`http://www.w3.org/2000/svg`,n!==`foreignObject`&&t!==void 0)for(let e=0;e<t.length;++e){let n=t[e].data;n!==void 0&&eb(n,t[e].children,t[e].sel)}}function tb(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(Gy(t)?r=t:Ky(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),Gy(n)?r=n:Ky(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)Ky(r[a])&&(r[a]=Wy(void 0,void 0,void 0,r[a],void 0));return e[0]!==`s`||e[1]!==`v`||e[2]!==`g`||e.length!==3&&e[3]!==`.`&&e[3]!==`#`||eb(o,r,e),Wy(e,o,r,i,void 0)}function nb(e,t){let n,r=t.elm,i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i||={},a||={},a){let e=a[n];i[n]!==e&&(!0===e?r.setAttribute(n,``):!1===e?r.removeAttribute(n):n.charCodeAt(0)===120?n.charCodeAt(3)===58?r.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,n,e):n.charCodeAt(5)===58?r.setAttributeNS(`http://www.w3.org/1999/xlink`,n,e):r.setAttribute(n,e):r.setAttribute(n,e))}for(n in i)n in a||r.removeAttribute(n)}}var rb={create:nb,update:nb};function ib(e,t){let n,r,i=t.elm,a=e.data.class,o=t.data.class;if((a||o)&&a!==o){for(r in a||={},o||={},a)a[r]&&!Object.prototype.hasOwnProperty.call(o,r)&&i.classList.remove(r);for(r in o)n=o[r],n!==a[r]&&i.classList[n?`add`:`remove`](r)}}var ab={create:ib,update:ib},ob=/[A-Z]/g;function sb(e,t){let n=t.elm,r,i=e.data.dataset,a=t.data.dataset;if(!i&&!a||i===a)return;i||={},a||={};let o=n.dataset;for(r in i)a[r]||(o?r in o&&delete o[r]:n.removeAttribute(`data-`+r.replace(ob,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(ob,`-$&`).toLowerCase(),a[r]))}var cb={create:sb,update:sb};function lb(e,t,n){if(typeof e==`function`)e.call(t,n,t);else if(typeof e==`object`)for(let r=0;r<e.length;r++)lb(e[r],t,n)}function ub(e,t){let n=e.type,r=t.data.on;r&&r[n]&&lb(r[n],t,e)}function db(e,t){let n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm,s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(a){let r=t.listener=e.listener||function e(t){ub(t,e.vnode)};if(r.vnode=t,n)for(s in a)n[s]||o.addEventListener(s,r,!1);else for(s in a)o.addEventListener(s,r,!1)}}}var fb={create:db,update:db,destroy:db};function pb(e,t){let n,r,i,a=t.elm,o=e.data.props,s=t.data.props;if((o||s)&&o!==s)for(n in o||={},s||={},s)r=s[n],i=o[n],i===r||n===`value`&&a[n]===r||(a[n]=r)}var mb={create:pb,update:pb},hb=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,gb=!1;function _b(e,t,n){(function(e){hb((function(){hb(e)}))})((function(){e[t]=n}))}function vb(e,t){let n,r,i=t.elm,a=e.data.style,o=t.data.style;if(!a&&!o||a===o)return;a||={},o||={};let s=`delayed`in a;for(r in a)o[r]||(r[0]===`-`&&r[1]===`-`?i.style.removeProperty(r):i.style[r]=``);for(r in o)if(n=o[r],r===`delayed`&&o.delayed)for(let e in o.delayed)n=o.delayed[e],s&&n===a.delayed[e]||_b(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var yb={pre:function(){gb=!1},create:vb,update:vb,destroy:function(e){let t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){let n=e.data.style;if(!n||!n.remove)return void t();let r;gb||=(e.elm.offsetLeft,!0);let i=e.elm,a=0,o=n.remove,s=0,c=[];for(r in o)c.push(r),i.style[r]=o[r];let l=getComputedStyle(i)[`transition-property`].split(`, `);for(;a<l.length;++a)c.indexOf(l[a])!==-1&&s++;i.addEventListener(`transitionend`,(function(e){e.target===i&&--s,s===0&&t()}))}};function bb(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?bb(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(Wy(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function xb(e,t,...n){let r=bb(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?tb(e,t,r[0].text):tb(e,t,r)}xb||={};var Sb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wb=`\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Tb=`[\\ud800-\\udfff]`,Eb=`[`+wb+`]`,Db=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Ob=`\\d+`,kb=`[\\u2700-\\u27bf]`,Ab=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,jb=`[^\\ud800-\\udfff`+wb+Ob+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Mb=`\\ud83c[\\udffb-\\udfff]`,Nb=`[^\\ud800-\\udfff]`,Pb=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Fb=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Ib=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Lb=`(?:`+Ab+`|`+jb+`)`,Rb=`(?:`+Ib+`|`+jb+`)`,zb=`(?:`+Db+`|`+Mb+`)?`,Bb=`[\\ufe0e\\ufe0f]?`+zb+(`(?:\\u200d(?:`+[Nb,Pb,Fb].join(`|`)+`)[\\ufe0e\\ufe0f]?`+zb+`)*`),Vb=`(?:`+[kb,Pb,Fb].join(`|`)+`)`+Bb,Hb=`(?:`+[Nb+Db+`?`,Db,Pb,Fb,Tb].join(`|`)+`)`,Ub=RegExp(`['’]`,`g`),Wb=RegExp(Db,`g`),Gb=RegExp(Mb+`(?=`+Mb+`)|`+Hb+Bb,`g`),Kb=RegExp([Ib+`?`+Ab+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[Eb,Ib,`$`].join(`|`)+`)`,Rb+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[Eb,Ib+Lb,`$`].join(`|`)+`)`,Ib+`?`+Lb+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,Ib+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,Ob,Vb].join(`|`),`g`),qb=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),Jb=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yb=typeof Jc==`object`&&Jc&&Jc.Object===Object&&Jc,Xb=typeof self==`object`&&self&&self.Object===Object&&self,Zb=Yb||Xb||Function(`return this`)(),Qb,$b=(Qb={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},function(e){return Qb?.[e]});function ex(e){return qb.test(e)}function tx(e){return ex(e)?function(e){return e.match(Gb)||[]}(e):function(e){return e.split(``)}(e)}var Kae=Object.prototype.toString,nx=Zb.Symbol,rx=nx?nx.prototype:void 0,ix=rx?rx.toString:void 0;function qae(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Kae.call(e)==`[object Symbol]`}(e))return ix?ix.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Jae(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}(e,t,n)}function ax(e){return e==null?``:qae(e)}for(var ox,Yae=(ox=function(e,t,n){return t=t.toLowerCase(),e+(n?Xae(ax(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}(function(e,t,n){return e=ax(e),(t=n?void 0:t)===void 0?function(e){return Jb.test(e)}(e)?function(e){return e.match(Kb)||[]}(e):function(e){return e.match(Sb)||[]}(e):e.match(t)||[]}(function(e){return(e=ax(e))&&e.replace(Cb,$b).replace(Wb,``)}(e).replace(Ub,``)),ox,``)}),sx,Xae=(sx=`toUpperCase`,function(e){var t=ex(e=ax(e))?tx(e):void 0,n=t?t[0]:e.charAt(0),r=t?Jae(t,1).join(``):e.slice(1);return n[sx]()+r}),Zae=Yae,Qae=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),cx={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},lx={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:Qae?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},ux={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},dx=1;dx<20;dx++)ux[`f`+dx]=111+dx;function fx(e,t,n){t&&!(`byKey`in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},i=(e=e.replace(`++`,`+add`)).split(`+`),a=i.length;for(var o in cx)r[cx[o]]=!1;var s=!0,c=!1,l=void 0;try{for(var u,d=i[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=f.endsWith(`?`)&&f.length>1;p&&(f=f.slice(0,-1));var m=px(f),h=cx[m];if(f.length>1&&!h&&!lx[f]&&!ux[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=$ae(f)),h&&(r[h]=!p||null)}}catch(e){c=!0,l=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}return r}(e,t)})),i=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&((i=n===`key`&&t.key!=null?t.key.toLowerCase():n===`which`?r===91&&t.which===93?91:t.which:t[n])!=null||!1!==r)&&i!==r)return!1}return!0}(t,e)}))};return n==null?i:i(n)}function $ae(e){return e=px(e),ux[e]||e.toUpperCase().charCodeAt(0)}function px(e){return e=e.toLowerCase(),e=lx[e]||e}var eoe=fx,mx=function(e,t){return fx(e,{byKey:!0},t)},toe=/^\s+|\s+$/g,noe=/^[-+]0x[0-9a-f]+$/i,roe=/^0b[01]+$/i,ioe=/^0o[0-7]+$/i,aoe=parseInt,ooe=typeof Jc==`object`&&Jc&&Jc.Object===Object&&Jc,soe=typeof self==`object`&&self&&self.Object===Object&&self,coe=ooe||soe||Function(`return this`)(),loe=Object.prototype.toString,uoe=Math.max,doe=Math.min,hx=function(){return coe.Date.now()};function gx(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _x(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&loe.call(e)==`[object Symbol]`}(e))return NaN;if(gx(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=gx(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(toe,``);var n=roe.test(e);return n||ioe.test(e)?aoe(e.slice(2),n?2:8):noe.test(e)?NaN:+e}var vx,yx=function(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=hx();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?doe(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=hx(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=_x(t)||0,gx(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?uoe(_x(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(hx())},v},bx=Xc((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Boolean]`,o=`[object Date]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Map]`,u=`[object Number]`,d=`[object Object]`,f=`[object Promise]`,p=`[object RegExp]`,m=`[object Set]`,h=`[object String]`,g=`[object Symbol]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k=/\w*$/,A=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={};M[i]=M[`[object Array]`]=M[v]=M[y]=M[a]=M[o]=M[b]=M[x]=M[S]=M[C]=M[w]=M[l]=M[u]=M[d]=M[p]=M[m]=M[h]=M[g]=M[T]=M[E]=M[D]=M[O]=!0,M[`[object Error]`]=M[s]=M[_]=!1;var ee=typeof Jc==`object`&&Jc&&Jc.Object===Object&&Jc,te=typeof self==`object`&&self&&self.Object===Object&&self,ne=ee||te||Function(`return this`)(),re=t&&!t.nodeType&&t,ie=re&&e&&!e.nodeType&&e,N=ie&&ie.exports===re;function ae(e,t){return e.set(t[0],t[1]),e}function oe(e,t){return e.add(t),e}function se(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function ce(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function le(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ue(e,t){return function(n){return e(t(n))}}function de(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var fe=Array.prototype,pe=Function.prototype,me=Object.prototype,he=ne[`__core-js_shared__`],ge=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_e=pe.toString,ve=me.hasOwnProperty,P=me.toString,ye=RegExp(`^`+_e.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=N?ne.Buffer:void 0,F=ne.Symbol,xe=ne.Uint8Array,Se=ue(Object.getPrototypeOf,Object),Ce=Object.create,we=me.propertyIsEnumerable,Te=fe.splice,I=Object.getOwnPropertySymbols,Ee=be?be.isBuffer:void 0,De=ue(Object.keys,Object),Oe=Qe(ne,`DataView`),L=Qe(ne,`Map`),ke=Qe(ne,`Promise`),Ae=Qe(ne,`Set`),je=Qe(ne,`WeakMap`),Me=Qe(Object,`create`),Ne=rt(Oe),Pe=rt(L),Fe=rt(ke),Ie=rt(Ae),Le=rt(je),Re=F?F.prototype:void 0,ze=Re?Re.valueOf:void 0;function Be(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ve(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function He(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ue(e){this.__data__=new Ve(e)}function We(e,t){var n=at(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&ot(e)}(e)&&ve.call(e,`callee`)&&(!we.call(e,`callee`)||P.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,a=!!r;for(var o in e)!t&&!ve.call(e,o)||a&&(o==`length`||tt(o,r))||n.push(o);return n}function Ge(e,t,n){var r=e[t];ve.call(e,t)&&it(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function Ke(e,t){for(var n=e.length;n--;)if(it(e[n][0],t))return n;return-1}function qe(e,t,n,r,f,_,A){var j;if(r&&(j=_?r(e,f,_,A):r(e)),j!==void 0)return j;if(!lt(e))return e;var ee=at(e);if(ee){if(j=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&ve.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e,j)}else{var te=et(e),ne=te==s||te==c;if(st(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(te==d||te==i||ne&&!_){if(ce(e))return _?e:{};if(j=function(e){return typeof e.constructor!=`function`||nt(e)?{}:(t=Se(e),lt(t)?Ce(t):{});var t}(ne?{}:e),!t)return function(e,t){return Xe(e,$e(e),t)}(e,function(e,t){return e&&Xe(t,ut(t),e)}(j,e))}else{if(!M[te])return _?e:{};j=function(e,t,n,r){var i=e.constructor;switch(t){case v:return Ye(e);case a:case o:return new i(+e);case y:return function(e,t){var n=t?Ye(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case b:case x:case S:case C:case w:case T:case E:case D:case O:return function(e,t){var n=t?Ye(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return se(t?n(le(e),!0):le(e),ae,new e.constructor)}(e,r,n);case u:case h:return new i(e);case p:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return se(t?n(de(e),!0):de(e),oe,new e.constructor)}(e,r,n);case g:return function(e){return ze?Object(ze.call(e)):{}}(e)}}(e,te,qe,t)}}A||=new Ue;var re=A.get(e);if(re)return re;if(A.set(e,j),!ee)var ie=n?function(e){return function(e,t,n){var r=t(e);return at(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,ut,$e)}(e):ut(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(ie||e,(function(i,a){ie&&(i=e[a=i]),Ge(j,a,qe(i,t,n,r,a,e,A))})),j}function Je(e){return!(!lt(e)||function(e){return!!ge&&ge in e}(e))&&(ct(e)||ce(e)?ye:A).test(rt(e))}function Ye(e){var t=new e.constructor(e.byteLength);return new xe(t).set(new xe(e)),t}function Xe(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;Ge(n,o,s===void 0?e[o]:s)}return n}function Ze(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function Qe(e,t){var n=function(e,t){return e?.[t]}(e,t);return Je(n)?n:void 0}Be.prototype.clear=function(){this.__data__=Me?Me(null):{}},Be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Be.prototype.get=function(e){var t=this.__data__;if(Me){var r=t[e];return r===n?void 0:r}return ve.call(t,e)?t[e]:void 0},Be.prototype.has=function(e){var t=this.__data__;return Me?t[e]!==void 0:ve.call(t,e)},Be.prototype.set=function(e,t){return this.__data__[e]=Me&&t===void 0?n:t,this},Ve.prototype.clear=function(){this.__data__=[]},Ve.prototype.delete=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():Te.call(t,n,1),!0)},Ve.prototype.get=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},Ve.prototype.has=function(e){return Ke(this.__data__,e)>-1},Ve.prototype.set=function(e,t){var n=this.__data__,r=Ke(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},He.prototype.clear=function(){this.__data__={hash:new Be,map:new(L||Ve),string:new Be}},He.prototype.delete=function(e){return Ze(this,e).delete(e)},He.prototype.get=function(e){return Ze(this,e).get(e)},He.prototype.has=function(e){return Ze(this,e).has(e)},He.prototype.set=function(e,t){return Ze(this,e).set(e,t),this},Ue.prototype.clear=function(){this.__data__=new Ve},Ue.prototype.delete=function(e){return this.__data__.delete(e)},Ue.prototype.get=function(e){return this.__data__.get(e)},Ue.prototype.has=function(e){return this.__data__.has(e)},Ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ve){var r=n.__data__;if(!L||r.length<199)return r.push([e,t]),this;n=this.__data__=new He(r)}return n.set(e,t),this};var $e=I?ue(I,Object):function(){return[]},et=function(e){return P.call(e)};function tt(e,t){return!!(t??=r)&&(typeof e==`number`||j.test(e))&&e>-1&&e%1==0&&e<t}function nt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}function rt(e){if(e!=null){try{return _e.call(e)}catch{}try{return e+``}catch{}}return``}function it(e,t){return e===t||e!=e&&t!=t}(Oe&&et(new Oe(new ArrayBuffer(1)))!=y||L&&et(new L)!=l||ke&&et(ke.resolve())!=f||Ae&&et(new Ae)!=m||je&&et(new je)!=_)&&(et=function(e){var t=P.call(e),n=t==d?e.constructor:void 0,r=n?rt(n):void 0;if(r)switch(r){case Ne:return y;case Pe:return l;case Fe:return f;case Ie:return m;case Le:return _}return t});var at=Array.isArray;function ot(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}(e.length)&&!ct(e)}var st=Ee||function(){return!1};function ct(e){var t=lt(e)?P.call(e):``;return t==s||t==c}function lt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ut(e){return ot(e)?We(e):function(e){if(!nt(e))return De(e);var t=[];for(var n in Object(e))ve.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return qe(e,!0,!0)}}));function xx(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var foe=0;function poe(e){return`__private_`+ foe+++`_`+e}function moe(e,t,n){let r=[];return e.forEach((e=>typeof e==`string`?t[Symbol.split](e).forEach(((e,t,i)=>{e!==``&&r.push(e),t<i.length-1&&r.push(n)})):r.push(e))),r}function Sx(e,t){let n=/\$/g,r=[e];if(t==null)return r;for(let e of Object.keys(t))if(e!==`_`){let i=t[e];typeof i==`string`&&(i=n[Symbol.replace](i,`$$$$`)),r=moe(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var Cx=(vx=poe(`apply`),class{constructor(e){Object.defineProperty(this,vx,{value:hoe}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(xx(this,vx)[vx],this):xx(this,vx)[vx](e)}translate(e,t){return this.translateArray(e,t).join(``)}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw Error(`missing string: ${e}`);let n=this.locale.strings[e];if(typeof n==`object`){if(t&&t.smart_count!==void 0)return Sx(n[this.locale.pluralize(t.smart_count)],t);throw Error(`Attempted to use a string with plural forms, but no value was given for %{smart_count}`)}return Sx(n,t)}});function hoe(e){if(e==null||!e.strings)return;let t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var wx=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,a,o,s){var c=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(`:`),i=r===-1?[e]:[e.substring(0,r),e.substring(r+1)],a=Object.keys(t),o=0,s=a.length;o<s;o++){var c=a[o];if(c===`*`&&(n=n.concat(t[c])),i.length===2&&i[0]===c){n=n.concat(t[c]);break}}return n}(e);c.length&&function(e,t,n){for(var r=0,i=t.length;r<i&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,c,[n,r,i,a,o,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],i=0,a=r?r.length:0;i<a;i++)r[i]!==t&&n.push(r[i]);n.length?this._fns[e]=n:delete this._fns[e]},e},{urlAlphabet:goe}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},Tx=e=>crypto.getRandomValues(new Uint8Array(e)),Ex=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let a=``;for(;;){let o=n(i),s=i;for(;s--;)if(a+=e[o[s]&r]||``,a.length===t)return a}}},_oe={nanoid:(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},customAlphabet:(e,t)=>Ex(e,t,Tx),customRandom:Ex,urlAlphabet:goe,random:Tx},Dx=function(e){if(typeof e!=`number`||isNaN(e))throw 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/1024**r);var i=n[r];return e>=10||e%1==0?(t?`-`:``)+e.toFixed(0)+` `+i:(t?`-`:``)+e.toFixed(1)+` `+i};function Ox(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}Ox.prototype.match=function(e){var t,n,r=!0,i=this.parts,a=i.length;if(typeof e==`string`||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||``).split(this.separator),t=0;r&&t<a;t++)i[t]!==`*`&&(r=t<n.length&&i[t]===n[t]);r&&=n}else r=!1;else if(typeof e.splice==`function`)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e==`object`)for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r};var voe=/[\/\+\.]/,yoe=function(e,t){function n(t){var n=function(e,t,n){var r=new Ox(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,voe);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},boe=0;function xoe(e){return`__private_`+ boe+++`_`+e}var kx=xoe(`publish`),Ax=class{constructor(){Object.defineProperty(this,kx,{value:Soe}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}(this,kx)[kx](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function Soe(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}Ax.VERSION=`2.0.3`;var jx=function(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Mx={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`};function Nx(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var Coe=function(e){if(e??=typeof navigator<`u`?navigator.userAgent:null,!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(`.`);return n=parseInt(n,10),r=parseInt(r,10),n<15||n===15&&r<15063||n>18||n===18&&r>=18218};function Px(e){return e<10?`0${e}`:e.toString()}var Fx=function(){let e=new Date;return`${Px(e.getHours())}:${Px(e.getMinutes())}:${Px(e.getSeconds())}`},Ix={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Fx()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${Fx()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${Fx()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Fx()}]`,...e)}}},woe={strings:{addBulkFilesFailed:{0:`Failed to add %{smart_count} file due to an internal error`,1:`Failed to add %{smart_count} files due to internal errors`},youCanOnlyUploadX:{0:`You can only upload %{smart_count} file`,1:`You can only upload %{smart_count} files`},youHaveToAtLeastSelectX:{0:`You have to select at least %{smart_count} file`,1:`You have to select at least %{smart_count} files`},exceedsSize:`%{file} exceeds maximum allowed size of %{size}`,missingRequiredMetaField:`Missing required meta fields`,missingRequiredMetaFieldOnFile:`Missing required meta fields in %{fileName}`,inferiorSize:`This file is smaller than the allowed size of %{size}`,youCanOnlyUploadFileTypes:`You can only upload: %{types}`,noMoreFilesAllowed:`Cannot add more files`,noDuplicates:`Cannot add the duplicate file '%{fileName}', it already exists`,companionError:`Connection with Companion failed`,authAborted:`Authentication aborted`,companionUnauthorizeHint:`To unauthorize to your %{provider} account, please go to %{url}`,failedToUpload:`Failed to upload %{file}`,noInternetConnection:`No Internet connection`,connectedToInternet:`Connected to the Internet`,noFilesFound:`You have no files or folders here`,selectX:{0:`Select %{smart_count}`,1:`Select %{smart_count}`},allFilesFromFolderNamed:`All files from folder %{name}`,openFolderNamed:`Open folder %{name}`,cancel:`Cancel`,logOut:`Log out`,filter:`Filter`,resetFilter:`Reset filter`,loading:`Loading...`,authenticateWithTitle:`Please authenticate with %{pluginName} to select files`,authenticateWith:`Connect to %{pluginName}`,signInWithGoogle:`Sign in with Google`,searchImages:`Search for images`,enterTextToSearch:`Enter text to search for images`,backToSearch:`Back to Search`,emptyFolderAdded:`No files were added from empty folder`,folderAlreadyAdded:`The folder "%{folder}" was already added`,folderAdded:{0:`Added %{smart_count} file from %{folder}`,1:`Added %{smart_count} files from %{folder}`}}},Lx=_oe,Rx,zx;function q(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Toe=0;function Bx(e){return`__private_`+ Toe+++`_`+e}var{nanoid:Eoe}=Lx,{justErrorsLogger:Doe,debugLogger:Ooe}=Ix,Vx=class extends Error{constructor(){super(...arguments),this.isRestriction=!0}};typeof AggregateError>`u`&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});var koe=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},Hx=Bx(`plugins`),Ux=Bx(`storeUnsubscribe`),Wx=Bx(`emitter`),Gx=Bx(`preProcessors`),Kx=Bx(`uploaders`),qx=Bx(`postProcessors`),Jx=Bx(`checkRestrictions`),Yx=Bx(`checkMinNumberOfFiles`),Xx=Bx(`checkRequiredMetaFieldsOnFile`),Zx=Bx(`checkRequiredMetaFields`),Qx=Bx(`showOrLogErrorAndThrow`),$x=Bx(`assertNewUploadAllowed`),eS=Bx(`checkAndCreateFileStateObject`),tS=Bx(`startIfAutoProceed`),nS=Bx(`addListeners`),rS=Bx(`updateOnlineStatus`),iS=Bx(`createUpload`),aS=Bx(`getUpload`),oS=Bx(`removeUpload`),sS=Bx(`runUpload`);Rx=Symbol.for(`uppy test: getPlugins`),zx=Symbol.for(`uppy test: createUpload`);var cS=class{constructor(e){Object.defineProperty(this,sS,{value:Hoe}),Object.defineProperty(this,oS,{value:Voe}),Object.defineProperty(this,aS,{value:Boe}),Object.defineProperty(this,iS,{value:zoe}),Object.defineProperty(this,nS,{value:Roe}),Object.defineProperty(this,tS,{value:Loe}),Object.defineProperty(this,eS,{value:Ioe}),Object.defineProperty(this,$x,{value:Foe}),Object.defineProperty(this,Qx,{value:Poe}),Object.defineProperty(this,Zx,{value:Noe}),Object.defineProperty(this,Xx,{value:Moe}),Object.defineProperty(this,Yx,{value:joe}),Object.defineProperty(this,Jx,{value:Aoe}),Object.defineProperty(this,Hx,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Ux,{writable:!0,value:void 0}),Object.defineProperty(this,Wx,{writable:!0,value:wx()}),Object.defineProperty(this,Gx,{writable:!0,value:new Set}),Object.defineProperty(this,Kx,{writable:!0,value:new Set}),Object.defineProperty(this,qx,{writable:!0,value:new Set}),Object.defineProperty(this,rS,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=woe;let t={id:`uppy`,autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Ax,logger:Doe,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...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=Ooe),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Hy(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Coe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),q(this,Ux)[Ux]=this.store.subscribe(((e,t,n)=>{this.emit(`state-update`,e,t,n),this.updateAll(t)})),this.opts.debug&&typeof window<`u`&&(window[this.opts.id]=this),q(this,nS)[nS]()}emit(e){var t=[...arguments].slice(1);q(this,Wx)[Wx].emit(e,...t)}on(e,t){return q(this,Wx)[Wx].on(e,t),this}once(e,t){return q(this,Wx)[Wx].once(e,t),this}off(e,t){return q(this,Wx)[Wx].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{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 Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new Cx([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={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i})),this.setState({files:n,totalProgress:0}),this.emit(`reset-progress`)}addPreProcessor(e){q(this,Gx)[Gx].add(e)}removePreProcessor(e){return q(this,Gx)[Gx].delete(e)}addPostProcessor(e){q(this,qx)[qx].add(e)}removePostProcessor(e){return q(this,qx)[qx].delete(e)}addUploader(e){q(this,Kx)[Kx].add(e)}removeUploader(e){return q(this,Kx)[Kx].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log(`Adding metadata:`),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e])return void this.log(`Was trying to set metadata for a file that has been removed: `,e);let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),a=r.filter((e=>!e.progress.uploadStarted)),o=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=r.filter((e=>e.progress.uploadStarted)),c=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),u=r.filter((e=>e.error)),d=i.filter((e=>!e.isPaused)),f=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:a,startedFiles:o,uploadStartedFiles:s,pausedFiles:c,completeFiles:l,erroredFiles:u,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:t===100&&l.length===r.length&&f.length===0,isAllErrored:!!n&&u.length===r.length,isAllPaused:i.length!==0&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return q(this,Jx)[Jx](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){q(this,$x)[$x](e);let{files:t}=this.getState(),n=q(this,eS)[eS](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...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:{...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}`),q(this,tS)[tS](),n.id}addFiles(e){q(this,$x)[$x]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=q(this,eS)[eS](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{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&&q(this,tS)[tS](),r.length>0){let e=`Multiple errors occurred while adding files:
`;if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n(`addBulkFilesFailed`,{smart_count:r.length}),details:e},`error`,this.opts.infoTimeout),typeof AggregateError==`function`)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},a={...r},o=Object.create(null);function s(e){return o[e]===void 0}e.forEach((e=>{n[e]&&(o[e]=n[e],delete i[e])})),Object.keys(a).forEach((e=>{let t=r[e].fileIDs.filter(s);t.length===0?delete a[e]:a[e]={...r[e],fileIDs:t}}));let c={currentUploads:a,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();let l=Object.keys(o);l.forEach((e=>{this.emit(`file-removed`,o[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(`, `)}`)}removeFile(e,t){t===void 0&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit(`upload-pause`,e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!0}})),this.setState({files:e}),this.emit(`pause-all`)}resumeAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e}),this.emit(`resume-all`)}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e,error:null}),this.emit(`retry-all`,t),t.length===0)return Promise.resolve({successful:[],failed:[]});let n=q(this,iS)[iS](t,{forceAllowNewUpload:!0});return q(this,sS)[sS](n)}cancelAll(){this.emit(`cancel-all`);let{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);let t=q(this,iS)[iS]([e],{forceAllowNewUpload:!0});return q(this,sS)[sS](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}`);let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(e.length===0)return this.emit(`progress`,0),void this.setState({totalProgress:0});let t=e.filter((e=>e.progress.bytesTotal!=null)),n=e.filter((e=>e.progress.bytesTotal==null));if(t.length===0){let t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),i=Math.round(r/t*100);this.setState({totalProgress:i});return}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0),i=r/t.length;r+=i*n.length;let a=0;t.forEach((e=>{a+=e.progress.bytesUploaded})),n.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let o=r===0?0:Math.round(a/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit(`progress`,o)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit(`is-online`),this.wasOffline&&=(this.emit(`back-online`),this.info(this.i18n(`connectedToInternet`),`success`,3e3),!1)):(this.emit(`is-offline`),this.info(this.i18n(`noInternetConnection`),`error`,0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if(typeof e!=`function`)throw TypeError(`Expected a plugin class, but got ${e===null?`null`:typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error(`Your plugin must have an id`);if(!n.type)throw Error(`Your plugin must have a type`);let i=this.getPlugin(r);if(i){let e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in q(this,Hx)[Hx]?q(this,Hx)[Hx][n.type].push(n):q(this,Hx)[Hx][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(q(this,Hx)[Hx])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[Rx](e){return q(this,Hx)[Hx][e]}iteratePlugins(e){Object.values(q(this,Hx)[Hx]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=q(this,Hx)[Hx][e.type],n=t.findIndex((t=>t.id===e.id));n!==-1&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),q(this,Ux)[Ux](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,q(this,rS)[rS]),window.removeEventListener(`offline`,q(this,rS)[rS]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit(`info-hidden`)}info(e,t,n){t===void 0&&(t=`info`),n===void 0&&(n=3e3);let r=typeof e==`object`;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){let{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]?q(this,sS)[sS](e):(q(this,oS)[oS](e),Promise.reject(Error(`Nonexistent upload`)))}[zx](){return q(this,iS)[iS](...arguments)}addResultData(e,t){if(!q(this,aS)[aS](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;(e=q(this,Hx)[Hx].uploader)!=null&&e.length||this.log(`No uploader type plugins are used`,`warning`);let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error(`Not starting the upload because onBeforeUpload returned false`)):(n&&typeof n==`object`&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{q(this,Yx)[Yx](t),q(this,Zx)[Zx](t)})).catch((e=>{q(this,Qx)[Qx](e)})).then((()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{let t=this.getFile(e);t.progress.uploadStarted||n.indexOf(e)!==-1||r.push(t.id)}));let i=q(this,iS)[iS](r);return q(this,sS)[sS](i)})).catch((e=>{q(this,Qx)[Qx](e,{showInformer:!1})})))}};function Aoe(e,t){t===void 0&&(t=this.getFiles());let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:o}=this.opts.restrictions;if(a&&t.length+1>a)throw new Vx(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&yoe(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new Vx(this.i18n(`youCanOnlyUploadFileTypes`,{types:e}))}if(i&&e.size!=null){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>i)throw new Vx(this.i18n(`exceedsSize`,{size:Dx(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Vx(this.i18n(`exceedsSize`,{size:Dx(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Vx(this.i18n(`inferiorSize`,{size:Dx(r)}))}function joe(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Vx(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function Moe(e){let{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===``){let n=new Vx(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),q(this,Qx)[Qx](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function Noe(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return q(this,Xx)[Xx](t)}));if(t.length)throw new koe(t,`${this.i18n(`missingRequiredMetaField`)}`)}function Poe(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t,a=typeof e==`object`?e.message:e,o=typeof e==`object`&&e.details?e.details:``,s=a;if(o&&(s+=` ${o}`),e.isRestriction?(this.log(s),this.emit(`restriction-failed`,r,e)):this.log(s,`error`),n&&this.info({message:a,details:o},`error`,this.opts.infoTimeout),i)throw typeof e==`object`?e:Error(e)}function Foe(e){let{allowNewUpload:t}=this.getState();!1===t&&q(this,Qx)[Qx](new Vx(this.i18n(`noMoreFilesAllowed`)),{file:e})}function Ioe(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?jx(e.name).extension?.toLowerCase():null;return t&&t in Mx?Mx[t]:`application/octet-stream`}(t),r=function(e,t){return t.name?t.name:e.split(`/`)[0]===`image`?`${e.split(`/`)[0]}.${e.split(`/`)[1]}`:`noname`}(n,t),i=jx(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${Nx(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${Nx(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(t+=`-${e.data.size}`),e.data.lastModified!==void 0&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(o)){let e=new Vx(this.i18n(`noDuplicates`,{fileName:r}));q(this,Qx)[Qx](e,{file:t})}let s=t.meta||{};s.name=r,s.type=n;let c=Number.isFinite(t.data.size)?t.data.size:null,l={source:t.source||``,id:o,name:r,extension:i||``,meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:a,remote:t.remote||``,preview:t.preview},u=this.opts.onBeforeFileAdded(l,e);!1===u?q(this,Qx)[Qx](new Vx(`Cannot add the file because onBeforeFileAdded returned false.`),{showInformer:!1,fileDescriptor:t}):typeof u==`object`&&u&&(l=u);try{let t=Object.keys(e).map((t=>e[t]));q(this,Jx)[Jx](l,t)}catch(e){q(this,Qx)[Qx](e,{file:l})}return l}function Loe(){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 Roe(){let e=(e,t,n)=>{let r=e.message||`Unknown error`;e.details&&(r+=` ${e.details}`),this.setState({error:r}),t!=null&&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),typeof n==`object`&&n.message){let e=Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n(`failedToUpload`,{file:t.name}),q(this,Qx)[Qx](e,{throwErr:!1})}else q(this,Qx)[Qx](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}`);let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:q(this,qx)[qx].size>0?{mode:`indeterminate`}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),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:{...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}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...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:{...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}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...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&&q(this,Xx)[Xx](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,q(this,rS)[rS]),window.addEventListener(`offline`,q(this,rS)[rS]),setTimeout(q(this,rS)[rS],3e3))}function zoe(e,t){t===void 0&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error(`Cannot create a new upload: already uploading.`);let a=Eoe();return this.emit(`upload`,{id:a,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[a]:{fileIDs:e,step:0,result:{}}}}),a}function Boe(e){let{currentUploads:t}=this.getState();return t[e]}function Voe(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Hoe(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...q(this,Gx)[Gx],...q(this,Kx)[Kx],...q(this,qx)[qx]];try{for(let a=r;a<i.length&&n;a++){let r=i[a],o={...n,step:a};this.setState({currentUploads:{...t,[e]:o}}),await r(o.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit(`error`,t),q(this,oS)[oS](e),t}if(n){n.fileIDs.forEach((e=>{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit(`postprocess-complete`,t)}));let r=n.fileIDs.map((e=>this.getFile(e))),i=r.filter((e=>!e.error)),a=r.filter((e=>e.error));await this.addResultData(e,{successful:i,failed:a,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit(`complete`,a),q(this,oS)[oS](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}cS.VERSION=`2.1.3`;var lS=cS,Uoe=Xc((function(e,t){var n,r,i,a,o,s,c,l,u={},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 m(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var i,a,o,s={};for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return g(e,s,i,a,null)}function g(e,t,n,a,o){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++i};return o==null&&r.vnode!=null&&r.vnode(s),s}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(t==null)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?y(e):null}function b(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return b(e)}}function x(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||s)(S)}function S(){for(var e;S.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,i,a,o;e.__d&&(a=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=p({},i)).__v=i.__v+1,A(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),j(n,i),i.__e!=a&&b(i)))}))}function C(e,t,n,r,i,a,o,s,c,l){var f,p,m,h,v,b,x,S=r&&r.__k||d,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if((h=n.__k[f]=(h=t[f])==null||typeof h==`boolean`?null:typeof h==`string`||typeof h==`number`||typeof h==`bigint`?g(null,h,null,null,h):Array.isArray(h)?g(_,{children:h},null,null,null):h.__b>0?g(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=S[f])===null||m&&h.key==m.key&&h.type===m.type)S[f]=void 0;else for(p=0;p<C;p++){if((m=S[p])&&h.key==m.key&&h.type===m.type){S[p]=void 0;break}m=null}A(e,h,m||=u,i,a,o,s,c,l),v=h.__e,(p=h.ref)&&m.ref!=p&&(x||=[],m.ref&&x.push(m.ref,null,h),x.push(p,h.__c||v,h)),v==null?c&&m.__e==c&&c.parentNode!=e&&(c=y(m)):(b??=v,typeof h.type==`function`&&h.__k===m.__k?h.__d=c=w(h,c,e):c=T(e,h,m,S,v,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=b,f=C;f--;)S[f]!=null&&(typeof n.type==`function`&&S[f].__e!=null&&S[f].__e==n.__d&&(n.__d=y(r,f+1)),te(S[f],S[f]));if(x)for(f=0;f<x.length;f++)ee(x[f],x[++f],x[++f])}function w(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?w(r,t,n):T(n,r,r,i,r.__e,t));return t}function T(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function E(e,t,n){t[0]===`-`?e.setProperty(t,n):e[t]=n==null?``:typeof n!=`number`||f.test(t)?n:n+`px`}function D(e,t,n,r,i){var a;e:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||E(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?k:O,a):e.removeEventListener(t,a?k:O,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink[H:h]/,`h`).replace(/sName$/,`s`);else if(t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n!=null&&(!1!==n||t[0]===`a`&&t[1]===`r`)?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function A(e,t,n,i,a,o,s,c,l){var u,d,f,m,h,g,y,b,x,S,w,T=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(u=r.__b)&&u(t);try{e:if(typeof T==`function`){if(b=t.props,x=(u=T.contextType)&&i[u.__c],S=u?x?x.props.value:u.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(b,S):(t.__c=d=new v(b,S),d.constructor=T,d.render=ne),x&&x.sub(d),d.props=b,d.state||={},d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,T.getDerivedStateFromProps(b,d.__s))),m=d.props,h=d.state,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,S),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===n.__v){d.props=b,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,S),d.componentDidUpdate!=null&&d.__h.push((function(){d.componentDidUpdate(m,h,g)}))}d.context=S,d.props=b,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=p(p({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===_&&u.key==null?u.props.children:u,C(e,Array.isArray(w)?w:[w],t,n,i,a,o,s,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,i,a,o,s,l);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(l||o!=null)&&(t.__e=c,t.__h=!!l,o[o.indexOf(c)]=null),r.__e(e,t,n)}}function j(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function M(e,t,r,i,a,o,s,c){var l,d,f,p=r.props,h=t.props,g=t.type,_=0;if(g===`svg`&&(a=!0),o!=null){for(;_<o.length;_++)if((l=o[_])&&`setAttribute`in l==!!g&&(g?l.localName===g:l.nodeType===3)){e=l,o[_]=null;break}}if(e==null){if(g===null)return document.createTextNode(h);e=a?document.createElementNS(`http://www.w3.org/2000/svg`,g):document.createElement(g,h.is&&h),o=null,c=!1}if(g===null)p===h||c&&e.data===h||(e.data=h);else{if(o&&=n.call(e.childNodes),d=(p=r.props||u).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(o!=null)for(p={},_=0;_<e.attributes.length;_++)p[e.attributes[_].name]=e.attributes[_].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||``))}if(function(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||D(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||D(e,a,t[a],n[a],r)}(e,h,p,a,c),f)t.__k=[];else if(_=t.props.children,C(e,Array.isArray(_)?_:[_],t,r,i,a&&g!==`foreignObject`,o,s,o?o[0]:r.__k&&y(r,0),c),o!=null)for(_=o.length;_--;)o[_]!=null&&m(o[_]);c||(`value`in h&&(_=h.value)!==void 0&&(_!==p.value||_!==e.value||g===`progress`&&!_)&&D(e,`value`,_,p.value,!1),`checked`in h&&(_=h.checked)!==void 0&&_!==e.checked&&D(e,`checked`,_,p.checked,!1))}return e}function ee(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function te(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||ee(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&te(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function ne(e,t,n){return this.constructor(e,n)}function re(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],A(t,e=(!a&&i||t).__k=h(_,null,[e]),o||u,u,t.ownerSVGElement!==void 0,!a&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,s,!a&&i?i:o?o.__e:t.firstChild,a),j(s,e)}n=d.slice,r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},i=0,a=function(e){return e!=null&&e.constructor===void 0},v.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state);typeof e==`function`&&(e=e(p({},n),this.props)),e&&p(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),x(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},v.prototype.render=_,o=[],s=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=v,t.Fragment=_,t.cloneElement=function(e,t,r){var i,a,o,s=p({},e.props);for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),g(e.type,s,i||e.key,a||e.ref,null)},t.createContext=function(e,t){var n={__c:t=`__cC`+ l++,__: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(x)},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){re(t,n,e)},t.isValidElement=a,t.options=r,t.render=re,t.toChildArray=function e(t,n){return n||=[],t==null||typeof t==`boolean`||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Woe=function(e,t){return t===void 0&&(t=document),typeof e==`string`?t.querySelector(e):(n=e)?.nodeType===Node.ELEMENT_NODE?e:null;var n},uS=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){let e=new Cx([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error(`Extend the addTarget method to add your plugin to another plugin's target`)}install(){}uninstall(){}render(){throw Error(`Extend the render method to add your plugin to a DOM element`)}update(){}afterUpdate(){}};function dS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Goe=0;function Koe(e){return`__private_`+ Goe+++`_`+e}var{render:fS}=Uoe,pS=Koe(`updateUI`),qoe=class e extends uS{constructor(){super(...arguments),Object.defineProperty(this,pS,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Woe(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return dS(this,pS)[pS]=function(e){let t=null,n=null;return function(){return n=[...arguments],t||=Promise.resolve().then((()=>(t=null,e(...n)))),t}}((t=>{this.uppy.getPlugin(this.id)&&(fS(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),fS(this.render(this.uppy.getState()),e),this.el=e.firstElementChild,i.appendChild(e),this.onMount(),this.el}let a;if(typeof t==`object`&&t instanceof e)a=t;else if(typeof t==`function`){let e=t;this.uppy.iteratePlugins((t=>{if(t instanceof e)return a=t,!1}))}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let o=`Invalid target option given to ${r}.`;throw o+=typeof t==`function`?" 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 <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",Error(o)}update(e){var t,n;this.el!=null&&((t=(n=dS(this,pS))[pS])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Joe}=Ix,mS=lS,Yoe=lS,Xoe=qoe,Zoe=uS,Qoe=Joe;mS.Uppy=Yoe,mS.UIPlugin=Xoe,mS.BasePlugin=Zoe,mS.debugLogger=Qoe;var hS=class extends Error{constructor(e,t){t===void 0&&(t=null),super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`),this.cause=e,this.isNetworkError=!0,this.request=t}},gS=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new hS(e)}))},$oe=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},_S,vS,yS,bS,xS,ese=$oe;function SS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var tse=0;function CS(e){return`__private_`+ tse+++`_`+e}async function wS(e){if(e.status===401)throw new ese;let t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw Error(n)}}return t}var TS=(vS=CS(`getPostResponseFunc`),yS=CS(`getUrl`),bS=CS(`errorHandler`),xS=_S=class e{constructor(e,t){Object.defineProperty(this,bS,{value:rse}),Object.defineProperty(this,yS,{value:nse}),Object.defineProperty(this,vS,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=[`accept`,`content-type`,`uppy-auth-token`],this.preflightDone=!1}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,``)}headers(){let t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){let t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has(`i-am`)&&r.get(`i-am`)!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get(`i-am`)}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(SS(this,yS)[yS](e),{method:`OPTIONS`}).then((e=>(e.headers.has(`access-control-allow-headers`)&&(this.allowedHeaders=e.headers.get(`access-control-allow-headers`).split(`,`).map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,`warning`),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>gS(SS(this,yS)[yS](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(SS(this,vS)[vS](t)).then(wS).catch(SS(this,bS)[bS](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>gS(SS(this,yS)[yS](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(SS(this,vS)[vS](n)).then(wS).catch(SS(this,bS)[bS](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>gS(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(SS(this,vS)[vS](n)).then(wS).catch(SS(this,bS)[bS](r,e))}},_S.VERSION=`2.0.4`,_S.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${_S.VERSION}`},xS);function nse(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function rse(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${SS(this,yS)[yS](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var ise={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},ES,DS,OS,kS,AS,jS,MS;function NS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var ase=0;function PS(e){return`__private_`+ ase+++`_`+e}var ose=(ES=PS(`queued`),DS=PS(`emitter`),OS=PS(`isOpen`),kS=PS(`socket`),AS=PS(`handleMessage`),jS=Symbol.for(`uppy test: getSocket`),MS=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,ES,{writable:!0,value:[]}),Object.defineProperty(this,DS,{writable:!0,value:wx()}),Object.defineProperty(this,OS,{writable:!0,value:!1}),Object.defineProperty(this,kS,{writable:!0,value:void 0}),Object.defineProperty(this,AS,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return NS(this,OS)[OS]}[jS](){return NS(this,kS)[kS]}[MS](){return NS(this,ES)[ES]}open(){NS(this,kS)[kS]=new WebSocket(this.opts.target),NS(this,kS)[kS].onopen=()=>{for(NS(this,OS)[OS]=!0;NS(this,ES)[ES].length>0&&NS(this,OS)[OS];){let e=NS(this,ES)[ES].shift();this.send(e.action,e.payload)}},NS(this,kS)[kS].onclose=()=>{NS(this,OS)[OS]=!1},NS(this,kS)[kS].onmessage=NS(this,AS)[AS]}close(){var e;(e=NS(this,kS)[kS])==null||e.close()}send(e,t){NS(this,OS)[OS]?NS(this,kS)[kS].send(JSON.stringify({action:e,payload:t})):NS(this,ES)[ES].push({action:e,payload:t})}on(e,t){NS(this,DS)[DS].on(e,t)}emit(e,t){NS(this,DS)[DS].emit(e,t)}once(e,t){NS(this,DS)[DS].once(e,t)}}),sse={RequestClient:TS,Provider:class extends TS{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e,r={};return n&&(r[`uppy-auth-token`]=n),this.companionKeysParams&&(r[`uppy-credentials-params`]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,`warning`)})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||``}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type=`acquirer`,e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if(!(typeof n==`string`||Array.isArray(n)||n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else /^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,``)}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||ise}},SearchProvider:class extends TS{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:``,this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:ose},FS,IS,cse=Hy((function(e,t,n){let{progress:r,bytesUploaded:i,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit(`upload-progress`,n,{uploader:e,bytesUploaded:i,bytesTotal:a}))}),300,{leading:!0,trailing:!0});function LS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var lse=0;function RS(e){return`__private_`+ lse+++`_`+e}var zS=(FS=RS(`emitter`),IS=RS(`events`),class{constructor(e){Object.defineProperty(this,FS,{writable:!0,value:void 0}),Object.defineProperty(this,IS,{writable:!0,value:[]}),LS(this,FS)[FS]=e}on(e,t){return LS(this,IS)[IS].push([e,t]),LS(this,FS)[FS].on(e,t)}remove(){for(let[e,t]of LS(this,IS)[IS].splice(0))LS(this,FS)[FS].off(e,t)}});function BS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var use=0;function VS(e){return`__private_`+ use+++`_`+e}var HS=VS(`aliveTimer`),US=VS(`isDone`),WS=VS(`onTimedOut`),GS=VS(`timeout`),KS=class{constructor(e,t){Object.defineProperty(this,HS,{writable:!0,value:void 0}),Object.defineProperty(this,US,{writable:!0,value:!1}),Object.defineProperty(this,WS,{writable:!0,value:void 0}),Object.defineProperty(this,GS,{writable:!0,value:void 0}),BS(this,GS)[GS]=e,BS(this,WS)[WS]=t}progress(){BS(this,US)[US]||BS(this,GS)[GS]>0&&(clearTimeout(BS(this,HS)[HS]),BS(this,HS)[HS]=setTimeout(BS(this,WS)[WS],BS(this,GS)[GS]))}done(){BS(this,US)[US]||(clearTimeout(BS(this,HS)[HS]),BS(this,HS)[HS]=null,BS(this,US)[US]=!0)}};function qS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var dse=0;function JS(e){return`__private_`+ dse+++`_`+e}function fse(){return Error(`Cancelled`)}var YS=JS(`activeRequests`),XS=JS(`queuedHandlers`),ZS=JS(`call`),QS=JS(`queueNext`),$S=JS(`next`),eC=JS(`queue`),tC=JS(`dequeue`);function pse(e){qS(this,YS)[YS]+=1;let t,n=!1;try{t=e()}catch(e){throw--qS(this,YS)[YS],e}return{abort:()=>{n||(n=!0,--qS(this,YS)[YS],t(),qS(this,QS)[QS]())},done:()=>{n||(n=!0,--qS(this,YS)[YS],qS(this,QS)[QS]())}}}function mse(){queueMicrotask((()=>qS(this,$S)[$S]()))}function hse(){if(qS(this,YS)[YS]>=this.limit||qS(this,XS)[XS].length===0)return;let e=qS(this,XS)[XS].shift(),t=qS(this,ZS)[ZS](e.fn);e.abort=t.abort,e.done=t.done}function gse(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{qS(this,tC)[tC](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=qS(this,XS)[XS].findIndex((e=>n.priority>e.priority));return r===-1?qS(this,XS)[XS].push(n):qS(this,XS)[XS].splice(r,0,n),n}function _se(e){let t=qS(this,XS)[XS].indexOf(e);t!==-1&&qS(this,XS)[XS].splice(t,1)}var vse={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,tC,{value:_se}),Object.defineProperty(this,eC,{value:gse}),Object.defineProperty(this,$S,{value:hse}),Object.defineProperty(this,QS,{value:mse}),Object.defineProperty(this,ZS,{value:pse}),Object.defineProperty(this,YS,{writable:!0,value:0}),Object.defineProperty(this,XS,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return qS(this,YS)[YS]<this.limit?qS(this,ZS)[ZS](e):qS(this,eC)[eC](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){var r=[...arguments];let i,a=new Promise(((a,o)=>{i=n.run((()=>{let t,n;try{n=Promise.resolve(e(...r))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?o(t):(i.done(),a(e))}),(e=>{t?o(t):(i.done(),o(e))})),()=>{t=fse()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},nC,rC,iC=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},yse={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:bse}=Lx,{Provider:xse,RequestClient:Sse,Socket:Cse}=sse,{RateLimitedQueue:wse,internalRateLimitedQueue:aC}=vse;function oC(e,t){let n=t;return n||=Error(`Upload error`),typeof n==`string`&&(n=Error(n)),n instanceof Error||(n=Object.assign(Error(`Upload error`),{data:n})),iC(e)?(n=new hS(n,e),n):(n.request=e,n)}function sC(e){return e.data.slice(0,e.data.size,e.meta.type)}var Tse=(rC=nC=class extends uS{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=yse;let n={formData:!0,fieldName:t.bundle?`files[]`:`file`,method:`post`,metaFields:null,responseUrlFieldName:`url`,bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:``,getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=Error(`Upload error`);return iC(t)&&(n=new hS(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),aC in this.opts?this.requests=this.opts[aC]:this.requests=new wse(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){let t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n==`function`?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){let n=new FormData;this.addMetadata(n,e.meta,t);let r=sC(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){let n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{let t=this.getOptions(e),r=sC(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){let r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit(`upload-started`,e);let i=r.formData?this.createFormDataUpload(e,r):e.data,a=new XMLHttpRequest;this.uploaderEvents[e.id]=new zS(this.uppy);let o=new KS(r.timeout,(()=>{a.abort(),c.done();let t=Error(this.i18n(`timedOut`,{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit(`upload-error`,e,t),n(t)})),s=bse();a.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),a.upload.addEventListener(`progress`,(t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),o.progress(),t.lengthComputable&&this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),a.addEventListener(`load`,(i=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.target.status,a.responseText,a)){let n=r.getResponseData(a.responseText,a),o=n[r.responseUrlFieldName],s={status:i.target.status,body:n,uploadURL:o};return this.uppy.emit(`upload-success`,e,s),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}let l=r.getResponseData(a.responseText,a),u=oC(a,r.getResponseError(a.responseText,a)),d={status:i.target.status,body:l};return this.uppy.emit(`upload-error`,e,u,d),n(u)})),a.addEventListener(`error`,(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);let t=oC(a,r.getResponseError(a.responseText,a));return this.uppy.emit(`upload-error`,e,t),n(t)})),a.open(r.method.toUpperCase(),r.endpoint,!0),a.withCredentials=r.withCredentials,r.responseType!==``&&(a.responseType=r.responseType);let c=this.requests.run((()=>{this.uppy.emit(`upload-started`,e);let t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{a.setRequestHeader(e,t.headers[e])})),a.send(i),()=>{o.done(),a.abort()}}));this.onFileRemove(e.id,(()=>{c.abort(),n(Error(`File removed`))})),this.onCancelAll(e.id,(()=>{c.abort(),n(Error(`Upload cancelled`))}))}))}uploadRemote(e){let t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit(`upload-started`,e);let i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{i[t]=e.meta[t]})),new(e.remote.providerOptions.provider?xse:Sse)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{let{token:a}=i,o=new Cse({target:`${function(e){let t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?`ws`:`wss`}://${t}`}(e.remote.companionUrl)}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new zS(this.uppy),this.onFileRemove(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),this.onRetryAll(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),o.on(`progress`,(t=>cse(this,t,e))),o.on(`success`,(r=>{let i=t.getResponseData(r.response.responseText,r.response),a=i[t.responseUrlFieldName],o={status:r.response.status,body:i,uploadURL:a};return this.uppy.emit(`upload-success`,e,o),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),o.on(`error`,(n=>{let i=n.response,a=i?t.getResponseError(i.responseText,i):Object.assign(Error(n.error.message),{cause:n.error});this.uppy.emit(`upload-error`,e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(a)}));let s=this.requests.run((()=>(o.open(),e.isPaused&&o.send(`pause`,{}),()=>o.close())))})).catch((t=>{this.uppy.emit(`upload-error`,e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{let{endpoint:r}=this.opts,{method:i}=this.opts,a=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,{...this.opts,...a||{}}),s=new XMLHttpRequest,c=new KS(this.opts.timeout,(()=>{s.abort();let e=Error(this.i18n(`timedOut`,{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit(`upload-error`,e,t)}))};s.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] started uploading bundle`),c.progress()})),s.upload.addEventListener(`progress`,(t=>{c.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),s.addEventListener(`load`,(r=>{if(c.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){let n=this.opts.getResponseData(s.responseText,s),i={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit(`upload-success`,e,i)})),t()}let i=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return i.request=s,l(i),n(i)})),s.addEventListener(`error`,(()=>{c.done();let e=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return l(e),n(e)})),this.uppy.on(`cancel-all`,(()=>{c.done(),s.abort()})),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==``&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{s.setRequestHeader(e,this.opts.headers[e])})),s.send(o),e.forEach((e=>{this.uppy.emit(`upload-started`,e)}))}))}uploadFiles(e){return function(e){let t=[],n=[];function r(e){t.push(e)}function i(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,i)))).then((()=>({successful:t,failed:n})))}(e.map(((t,n)=>{let r=parseInt(n,10)+1,i=e.length;return t.error?Promise.reject(Error(t.error)):t.isRemote?this.uploadRemote(t,r,i):this.upload(t,r,i)})))}onFileRemove(e,t){this.uploaderEvents[e].on(`file-removed`,(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on(`upload-retry`,(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on(`retry-all`,(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on(`cancel-all`,(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log(`[XHRUpload] No files to upload!`),Promise.resolve();this.opts.limit!==0||this.opts[aC]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0",`warning`),this.uppy.log(`[XHRUpload] Uploading...`);let t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers==`function`)throw TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},nC.VERSION=`2.0.6`,rC),cC=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function lC(e){var t={exports:{}};return e(t,t.exports),t.exports}var uC,dC,fC=function(e){return e&&e.Math==Math&&e},J=fC(typeof globalThis==`object`&&globalThis)||fC(typeof window==`object`&&window)||fC(typeof self==`object`&&self)||fC(typeof cC==`object`&&cC)||function(){return this}()||Function(`return this`)(),Ese=Object.defineProperty,pC=function(e,t){try{Ese(J,e,{value:t,configurable:!0,writable:!0})}catch{J[e]=t}return t},mC=J[`__core-js_shared__`]||pC(`__core-js_shared__`,{}),hC=lC((function(e){(e.exports=function(e,t){return mC[e]||(mC[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),gC=Function.prototype,_C=gC.bind,vC=gC.call,Dse=_C&&_C.bind(vC),Y=_C?function(e){return e&&Dse(vC,e)}:function(e){return e&&function(){return vC.apply(e,arguments)}},Ose=J.TypeError,yC=function(e){if(e==null)throw Ose(`Can't call method on `+e);return e},kse=J.Object,bC=function(e){return kse(yC(e))},Ase=Y({}.hasOwnProperty),xC=Object.hasOwn||function(e,t){return Ase(bC(e),t)},jse=0,Mse=Math.random(),Nse=Y(1 .toString),SC=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Nse(++jse+Mse,36)},CC=function(e){return typeof e==`function`},Pse=function(e){return CC(e)?e:void 0},wC=function(e,t){return arguments.length<2?Pse(J[e]):J[e]&&J[e][t]},TC=wC(`navigator`,`userAgent`)||``,EC=J.process,DC=J.Deno,OC=EC&&EC.versions||DC&&DC.version,kC=OC&&OC.v8;kC&&(dC=(uC=kC.split(`.`))[0]>0&&uC[0]<4?1:+(uC[0]+uC[1])),!dC&&TC&&(!(uC=TC.match(/Edge\/(\d+)/))||uC[1]>=74)&&(uC=TC.match(/Chrome\/(\d+)/))&&(dC=+uC[1]);var AC=dC,jC=function(e){try{return!!e()}catch{return!0}},MC=!!Object.getOwnPropertySymbols&&!jC((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&AC&&AC<41})),NC=MC&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,PC=hC(`wks`),FC=J.Symbol,IC=FC&&FC.for,Fse=NC?FC:FC&&FC.withoutSetter||SC,LC=function(e){if(!xC(PC,e)||!MC&&typeof PC[e]!=`string`){var t=`Symbol.`+e;MC&&xC(FC,e)?PC[e]=FC[e]:PC[e]=NC&&IC?IC(t):Fse(t)}return PC[e]},RC={};RC[LC(`toStringTag`)]=`z`;var zC=String(RC)===`[object z]`,BC=!jC((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),VC=function(e){return typeof e==`object`?e!==null:CC(e)},HC=J.document,Ise=VC(HC)&&VC(HC.createElement),UC=function(e){return Ise?HC.createElement(e):{}},WC=!BC&&!jC((function(){return Object.defineProperty(UC(`div`),`a`,{get:function(){return 7}}).a!=7})),Lse=J.String,Rse=J.TypeError,GC=function(e){if(VC(e))return e;throw Rse(Lse(e)+` is not an object`)},KC=Function.prototype.call,qC=KC.bind?KC.bind(KC):function(){return KC.apply(KC,arguments)},JC=Y({}.isPrototypeOf),zse=J.Object,YC=NC?function(e){return typeof e==`symbol`}:function(e){var t=wC(`Symbol`);return CC(t)&&JC(t.prototype,zse(e))},Bse=J.String,XC=function(e){try{return Bse(e)}catch{return`Object`}},Vse=J.TypeError,ZC=function(e){if(CC(e))return e;throw Vse(XC(e)+` is not a function`)},QC=function(e,t){var n=e[t];return n==null?void 0:ZC(n)},Hse=J.TypeError,Use=J.TypeError,Wse=LC(`toPrimitive`),$C=function(e){var t=function(e,t){if(!VC(e)||YC(e))return e;var n,r=QC(e,Wse);if(r){if(t===void 0&&(t=`default`),n=qC(r,e,t),!VC(n)||YC(n))return n;throw Use(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&CC(n=e.toString)&&!VC(r=qC(n,e))||CC(n=e.valueOf)&&!VC(r=qC(n,e))||t!==`string`&&CC(n=e.toString)&&!VC(r=qC(n,e)))return r;throw Hse(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return YC(t)?t:t+``},Gse=J.TypeError,ew=Object.defineProperty,tw={f:BC?ew:function(e,t,n){if(GC(e),t=$C(t),GC(n),WC)try{return ew(e,t,n)}catch{}if(`get`in n||`set`in n)throw Gse(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},nw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rw=BC?function(e,t,n){return tw.f(e,t,nw(1,n))}:function(e,t,n){return e[t]=n,e},Kse=Y(Function.toString);CC(mC.inspectSource)||(mC.inspectSource=function(e){return Kse(e)});var iw,aw,ow,sw=mC.inspectSource,cw=J.WeakMap,lw=CC(cw)&&/native code/.test(sw(cw)),uw=hC(`keys`),dw=function(e){return uw[e]||(uw[e]=SC(e))},fw={},pw=J.TypeError,qse=J.WeakMap;if(lw||mC.state){var mw=mC.state||=new qse,Jse=Y(mw.get),hw=Y(mw.has),Yse=Y(mw.set);iw=function(e,t){if(hw(mw,e))throw new pw(`Object already initialized`);return t.facade=e,Yse(mw,e,t),t},aw=function(e){return Jse(mw,e)||{}},ow=function(e){return hw(mw,e)}}else{var gw=dw(`state`);fw[gw]=!0,iw=function(e,t){if(xC(e,gw))throw new pw(`Object already initialized`);return t.facade=e,rw(e,gw,t),t},aw=function(e){return xC(e,gw)?e[gw]:{}},ow=function(e){return xC(e,gw)}}var _w={set:iw,get:aw,has:ow,enforce:function(e){return ow(e)?aw(e):iw(e,{})},getterFor:function(e){return function(t){var n;if(!VC(t)||(n=aw(t)).type!==e)throw pw(`Incompatible receiver, `+e+` required`);return n}}},vw=Function.prototype,Xse=BC&&Object.getOwnPropertyDescriptor,yw=xC(vw,`name`),bw={EXISTS:yw,PROPER:yw&&function(){}.name===`something`,CONFIGURABLE:yw&&(!BC||BC&&Xse(vw,`name`).configurable)},xw=lC((function(e){var t=bw.CONFIGURABLE,n=_w.get,r=_w.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;CC(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!xC(a,`name`)||t&&a.name!==d)&&rw(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===J?l?e[n]=a:pC(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:rw(e,n,a))})(Function.prototype,`toString`,(function(){return CC(this)&&n(this).source||sw(this)}))})),Zse=Y({}.toString),Qse=Y(``.slice),Sw=function(e){return Qse(Zse(e),8,-1)},$se=LC(`toStringTag`),ece=J.Object,tce=Sw(function(){return arguments}())==`Arguments`,Cw=zC?Sw:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=ece(e),$se))==`string`?n:tce?Sw(t):(r=Sw(t))==`Object`&&CC(t.callee)?`Arguments`:r},nce=zC?{}.toString:function(){return`[object `+Cw(this)+`]`};zC||xw(Object.prototype,`toString`,nce,{unsafe:!0});var ww={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Tw=UC(`span`).classList,Ew=Tw&&Tw.constructor&&Tw.constructor.prototype,Dw=Ew===Object.prototype?void 0:Ew,Ow=Y(Y.bind),kw=function(e,t){return ZC(e),t===void 0?e:Ow?Ow(e,t):function(){return e.apply(t,arguments)}},Aw=J.Object,rce=Y(``.split),jw=jC((function(){return!Aw(`z`).propertyIsEnumerable(0)}))?function(e){return Sw(e)==`String`?rce(e,``):Aw(e)}:Aw,ice=Math.ceil,ace=Math.floor,Mw=function(e){var t=+e;return t!=t||t===0?0:(t>0?ace:ice)(t)},oce=Math.min,Nw=function(e){return e>0?oce(Mw(e),9007199254740991):0},Pw=function(e){return Nw(e.length)},Fw=Array.isArray||function(e){return Sw(e)==`Array`},Iw=function(){},sce=[],Lw=wC(`Reflect`,`construct`),Rw=/^\s*(?:class|function)\b/,cce=Y(Rw.exec),lce=!Rw.exec(Iw),zw=function(e){if(!CC(e))return!1;try{return Lw(Iw,sce,e),!0}catch{return!1}},Bw=!Lw||jC((function(){var e;return zw(zw.call)||!zw(Object)||!zw((function(){e=!0}))||e}))?function(e){if(!CC(e))return!1;switch(Cw(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return lce||!!cce(Rw,sw(e))}:zw,uce=LC(`species`),Vw=J.Array,Hw=function(e,t){return new(function(e){var t;return Fw(e)&&(t=e.constructor,(Bw(t)&&(t===Vw||Fw(t.prototype))||VC(t)&&(t=t[uce])===null)&&(t=void 0)),t===void 0?Vw:t}(e))(t===0?0:t)},Uw=Y([].push),Ww=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=bC(c),h=jw(m),g=kw(l,u),_=Pw(h),v=0,y=d||Hw,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Uw(b,f)}else switch(e){case 4:return!1;case 7:Uw(b,f)}return a?-1:r||i?i:b}},Gw={forEach:Ww(0),map:Ww(1),filter:Ww(2),some:Ww(3),every:Ww(4),find:Ww(5),findIndex:Ww(6),filterReject:Ww(7)},Kw=function(e,t){var n=[][e];return!!n&&jC((function(){n.call(null,t||function(){throw 1},1)}))},dce=Gw.forEach,qw=Kw(`forEach`)?[].forEach:function(e){return dce(this,e,arguments.length>1?arguments[1]:void 0)},Jw=function(e){if(e&&e.forEach!==qw)try{rw(e,`forEach`,qw)}catch{e.forEach=qw}};for(var Yw in ww)ww[Yw]&&Jw(J[Yw]&&J[Yw].prototype);Jw(Dw);var Xw={}.propertyIsEnumerable,Zw=Object.getOwnPropertyDescriptor,Qw={f:Zw&&!Xw.call({1:2},1)?function(e){var t=Zw(this,e);return!!t&&t.enumerable}:Xw},$w=function(e){return jw(yC(e))},eT=Object.getOwnPropertyDescriptor,tT={f:BC?eT:function(e,t){if(e=$w(e),t=$C(t),WC)try{return eT(e,t)}catch{}if(xC(e,t))return nw(!qC(Qw.f,e,t),e[t])}},fce=Math.max,pce=Math.min,nT=function(e,t){var n=Mw(e);return n<0?fce(n+t,0):pce(n,t)},rT=function(e){return function(t,n,r){var i,a=$w(t),o=Pw(a),s=nT(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},iT={includes:rT(!0),indexOf:rT(!1)},mce=iT.indexOf,aT=Y([].push),oT=function(e,t){var n,r=$w(e),i=0,a=[];for(n in r)!xC(fw,n)&&xC(r,n)&&aT(a,n);for(;t.length>i;)xC(r,n=t[i++])&&(~mce(a,n)||aT(a,n));return a},sT=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],hce=sT.concat(`length`,`prototype`),cT={f:Object.getOwnPropertyNames||function(e){return oT(e,hce)}},lT={f:Object.getOwnPropertySymbols},gce=Y([].concat),_ce=wC(`Reflect`,`ownKeys`)||function(e){var t=cT.f(GC(e)),n=lT.f;return n?gce(t,n(e)):t},vce=function(e,t){for(var n=_ce(t),r=tw.f,i=tT.f,a=0;a<n.length;a++){var o=n[a];xC(e,o)||r(e,o,i(t,o))}},yce=/#|\.prototype\./,uT=function(e,t){var n=xce[bce(e)];return n==Cce||n!=Sce&&(CC(t)?jC(t):!!t)},bce=uT.normalize=function(e){return String(e).replace(yce,`.`).toLowerCase()},xce=uT.data={},Sce=uT.NATIVE=`N`,Cce=uT.POLYFILL=`P`,dT=uT,wce=tT.f,fT=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?J:l?J[s]||pC(s,{}):(J[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=wce(n,r))&&o.value:n[r],!dT(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;vce(a,i)}(e.sham||i&&i.sham)&&rw(a,`sham`,!0),xw(n,r,a,e)}},pT=Object.keys||function(e){return oT(e,sT)},Tce=jC((function(){pT(1)}));function mT(e){return Object.prototype.toString.call(e)===`[object Object]`}fT({target:`Object`,stat:!0,forced:Tce},{keys:function(e){return pT(bC(e))}});var Ece={isHistory(e){return!1!==mT(t=e)&&((n=t.constructor)===void 0||!1!==mT(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||y_.isOperationList(e.redos[0]))&&(e.undos.length===0||y_.isOperationList(e.undos[0]));var t,n,r}},hT=new WeakMap,gT=new WeakMap,_T={isHistoryEditor:e=>Ece.isHistory(e.history)&&B.isEditor(e),isMerging:e=>gT.get(e),isSaving:e=>hT.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=_T.isMerging(e);gT.set(e,!1),t(),gT.set(e,n)},withoutSaving(e,t){var n=_T.isSaving(e);hT.set(e,!1),t(),hT.set(e,n)}},Dce=J.String,vT=function(e){if(Cw(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Dce(e)},yT=function(){var e=GC(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},Oce=bw.PROPER,bT=RegExp.prototype,xT=bT.toString,kce=Y(yT),Ace=jC((function(){return xT.call({source:`a`,flags:`b`})!=`/a/b`})),jce=Oce&&xT.name!=`toString`;(Ace||jce)&&xw(RegExp.prototype,`toString`,(function(){var e=GC(this),t=vT(e.source),n=e.flags;return`/`+t+`/`+vT(n===void 0&&JC(bT,e)&&!(`flags`in bT)?kce(e):n)}),{unsafe:!0});var ST,Mce=BC?Object.defineProperties:function(e,t){GC(e);for(var n,r=$w(t),i=pT(t),a=i.length,o=0;a>o;)tw.f(e,n=i[o++],r[n]);return e},CT=wC(`document`,`documentElement`),wT=dw(`IE_PROTO`),TT=function(){},ET=function(e){return`<script>`+e+`<\/script>`},DT=function(e){e.write(ET(``)),e.close();var t=e.parentWindow.Object;return e=null,t},OT=function(){try{ST=new ActiveXObject(`htmlfile`)}catch{}var e,t;OT=typeof document<`u`?document.domain&&ST?DT(ST):((t=UC(`iframe`)).style.display=`none`,CT.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(ET(`document.F=Object`)),e.close(),e.F):DT(ST);for(var n=sT.length;n--;)delete OT.prototype[sT[n]];return OT()};fw[wT]=!0;var kT=Object.create||function(e,t){var n;return e===null?n=OT():(TT.prototype=GC(e),n=new TT,TT.prototype=null,n[wT]=e),t===void 0?n:Mce(n,t)},AT=LC(`unscopables`),jT=Array.prototype;jT[AT]??tw.f(jT,AT,{configurable:!0,value:kT(null)});var MT=function(e){jT[AT][e]=!0},Nce=iT.includes;fT({target:`Array`,proto:!0},{includes:function(e){return Nce(this,e,arguments.length>1?arguments[1]:void 0)}}),MT(`includes`);var Pce=LC(`match`),NT=function(e){var t;return VC(e)&&((t=e[Pce])===void 0?Sw(e)==`RegExp`:!!t)},Fce=J.TypeError,PT=function(e){if(NT(e))throw Fce(`The method doesn't accept regular expressions`);return e},Ice=LC(`match`),FT=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[Ice]=!1,`/./`[e](t)}catch{}}return!1},Lce=Y(``.indexOf);fT({target:`String`,proto:!0,forced:!FT(`includes`)},{includes:function(e){return!!~Lce(vT(yC(this)),vT(PT(e)),arguments.length>1?arguments[1]:void 0)}});var Rce=/"/g,zce=Y(``.replace);fT({target:`String`,proto:!0,forced:jC((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=vT(yC(this)),r=`<a`,(r+=` name="`+zce(vT(t),Rce,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var IT=function(e,t,n){var r,i;GC(e);try{if(!(r=QC(e,`return`))){if(t===`throw`)throw n;return n}r=qC(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return GC(r),n},Bce=function(e,t,n,r){try{return r?t(GC(n)[0],n[1]):t(n)}catch(t){IT(e,`throw`,t)}},LT={},Vce=LC(`iterator`),Hce=Array.prototype,RT=function(e){return e!==void 0&&(LT.Array===e||Hce[Vce]===e)},zT=function(e,t,n){var r=$C(t);r in e?tw.f(e,r,nw(0,n)):e[r]=n},Uce=LC(`iterator`),BT=function(e){if(e!=null)return QC(e,Uce)||QC(e,`@@iterator`)||LT[Cw(e)]},Wce=J.TypeError,VT=function(e,t){var n=arguments.length<2?BT(e):t;if(ZC(n))return GC(qC(n,e));throw Wce(XC(e)+` is not iterable`)},HT=J.Array,UT=LC(`iterator`),WT=!1;try{var Gce=0,GT={next:function(){return{done:!!Gce++}},return:function(){WT=!0}};GT[UT]=function(){return this},Array.from(GT,(function(){throw 2}))}catch{}var KT=function(e,t){if(!t&&!WT)return!1;var n=!1;try{var r={};r[UT]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};fT({target:`Array`,stat:!0,forced:!KT((function(e){Array.from(e)}))},{from:function(e){var t=bC(e),n=Bw(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=kw(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=BT(t),p=0;if(!f||this==HT&&RT(f))for(o=Pw(t),s=n?new this(o):HT(o);o>p;p++)d=a?i(t[p],p):t[p],zT(s,p,d);else for(u=(l=VT(t,f)).next,s=n?new this:[];!(c=qC(u,l)).done;p++)d=a?Bce(l,i,[c.value,p],!0):c.value,zT(s,p,d);return s.length=p,s}});var qT,JT,YT,Kce=Y(``.charAt),XT=Y(``.charCodeAt),qce=Y(``.slice),ZT=function(e){return function(t,n){var r,i,a=vT(yC(t)),o=Mw(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=XT(a,o))<55296||r>56319||o+1===s||(i=XT(a,o+1))<56320||i>57343?e?Kce(a,o):r:e?qce(a,o,o+2):i-56320+(r-55296<<10)+65536}},QT={codeAt:ZT(!1),charAt:ZT(!0)},Jce=!jC((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$T=dw(`IE_PROTO`),eE=J.Object,Yce=eE.prototype,tE=Jce?eE.getPrototypeOf:function(e){var t=bC(e);if(xC(t,$T))return t[$T];var n=t.constructor;return CC(n)&&t instanceof n?n.prototype:t instanceof eE?Yce:null},nE=LC(`iterator`),rE=!1;[].keys&&(`next`in(YT=[].keys())?(JT=tE(tE(YT)))!==Object.prototype&&(qT=JT):rE=!0),(qT==null||jC((function(){var e={};return qT[nE].call(e)!==e})))&&(qT={}),CC(qT[nE])||xw(qT,nE,(function(){return this}));var iE={IteratorPrototype:qT,BUGGY_SAFARI_ITERATORS:rE},Xce=tw.f,aE=LC(`toStringTag`),oE=function(e,t,n){e&&!xC(e=n?e:e.prototype,aE)&&Xce(e,aE,{configurable:!0,value:t})},Zce=iE.IteratorPrototype,Qce=function(){return this},$ce=J.String,ele=J.TypeError,sE=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Y(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return GC(n),function(e){if(typeof e==`object`||CC(e))return e;throw ele(`Can't set `+$ce(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tle=bw.PROPER,nle=bw.CONFIGURABLE,cE=iE.IteratorPrototype,lE=iE.BUGGY_SAFARI_ITERATORS,uE=LC(`iterator`),rle=function(){return this},dE=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=kT(Zce,{next:nw(1,n)}),oE(e,i,!1),LT[i]=Qce})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!lE&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[uE]||p[`@@iterator`]||i&&p[i],h=!lE&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=tE(g.call(new e)))!==Object.prototype&&s.next&&(tE(s)!==cE&&(sE?sE(s,cE):CC(s[uE])||xw(s,uE,rle)),oE(s,d,!0)),tle&&i==`values`&&m&&m.name!==`values`&&(nle?rw(p,`name`,`values`):(f=!0,h=function(){return qC(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(lE||f||!(l in p))&&xw(p,l,c[l]);else fT({target:t,proto:!0,forced:lE||f},c);return p[uE]!==h&&xw(p,uE,h,{name:i}),LT[t]=h,c},ile=QT.charAt,ale=_w.set,ole=_w.getterFor(`String Iterator`);dE(String,`String`,(function(e){ale(this,{type:`String Iterator`,string:vT(e),index:0})}),(function(){var e,t=ole(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ile(n,r),t.index+=e.length,{value:e,done:!1})}));var fE,sle=tT.f,pE=Y(``.endsWith),cle=Y(``.slice),lle=Math.min,mE=FT(`endsWith`);fT({target:`String`,proto:!0,forced:!!(mE||(fE=sle(String.prototype,`endsWith`),!fE||fE.writable))&&!mE},{endsWith:function(e){var t=vT(yC(this));PT(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:lle(Nw(n),r),a=vT(e);return pE?pE(t,a,i):cle(t,i-a.length,i)===a}});var ule=Y([].join),dle=jw!=Object,fle=Kw(`join`,`,`);fT({target:`Array`,proto:!0,forced:dle||!fle},{join:function(e){return ule($w(this),e===void 0?`,`:e)}});var ple=LC(`species`),hE=function(e){return AC>=51||!jC((function(){var t=[];return(t.constructor={})[ple]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},mle=Gw.map;fT({target:`Array`,proto:!0,forced:!hE(`map`)},{map:function(e){return mle(this,e,arguments.length>1?arguments[1]:void 0)}});var gE=J.RegExp,_E=jC((function(){var e=gE(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),hle=_E||jC((function(){return!gE(`a`,`y`).sticky})),vE={BROKEN_CARET:_E||jC((function(){var e=gE(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:hle,UNSUPPORTED_Y:_E},gle=J.RegExp,yE=jC((function(){var e=gle(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),_le=J.RegExp,bE=jC((function(){var e=_le(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),vle=_w.get,yle=hC(`native-string-replace`,String.prototype.replace),xE=RegExp.prototype.exec,SE=xE,ble=Y(``.charAt),xle=Y(``.indexOf),Sle=Y(``.replace),CE=Y(``.slice),wE=function(){var e=/a/,t=/b*/g;return qC(xE,e,`a`),qC(xE,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),TE=vE.BROKEN_CARET,EE=/()??/.exec(``)[1]!==void 0;(wE||EE||TE||yE||bE)&&(SE=function(e){var t,n,r,i,a,o,s,c=this,l=vle(c),u=vT(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=qC(SE,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=TE&&c.sticky,m=qC(yT,c),h=c.source,g=0,_=u;if(p&&(m=Sle(m,`y`,``),xle(m,`g`)===-1&&(m+=`g`),_=CE(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ble(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),EE&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),wE&&(r=c.lastIndex),i=qC(xE,p?n:c,_),p?i?(i.input=CE(i.input,g),i[0]=CE(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:wE&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),EE&&i&&i.length>1&&qC(yle,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=kT(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var DE=SE;fT({target:`RegExp`,proto:!0,forced:/./.exec!==DE},{exec:DE});var OE=Function.prototype,kE=OE.apply,Cle=OE.bind,AE=OE.call,jE=typeof Reflect==`object`&&Reflect.apply||(Cle?AE.bind(kE):function(){return AE.apply(kE,arguments)}),wle=LC(`species`),ME=RegExp.prototype,NE=function(e,t,n,r){var i=LC(e),a=!jC((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!jC((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[wle]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Y(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Y(e),c=t.exec;return c===DE||c===ME.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));xw(String.prototype,e,c[0]),xw(ME,i,c[1])}r&&rw(ME[i],`sham`,!0)},Tle=QT.charAt,PE=function(e,t,n){return t+(n?Tle(e,t).length:1)},Ele=Math.floor,FE=Y(``.charAt),Dle=Y(``.replace),IE=Y(``.slice),Ole=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kle=/\$([$&'`]|\d{1,2})/g,Ale=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=kle;return i!==void 0&&(i=bC(i),c=Ole),Dle(a,c,(function(a,c){var l;switch(FE(c,0)){case`$`:return`$`;case`&`:return e;case"`":return IE(t,0,n);case`'`:return IE(t,o);case`<`:l=i[IE(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Ele(u/10);return d===0?a:d<=s?r[d-1]===void 0?FE(c,1):r[d-1]+FE(c,1):a}l=r[u-1]}return l===void 0?``:l}))},jle=J.TypeError,LE=function(e,t){var n=e.exec;if(CC(n)){var r=qC(n,e,t);return r!==null&&GC(r),r}if(Sw(e)===`RegExp`)return qC(DE,e,t);throw jle(`RegExp#exec called on incompatible receiver`)},RE=LC(`replace`),Mle=Math.max,Nle=Math.min,Ple=Y([].concat),zE=Y([].push),BE=Y(``.indexOf),VE=Y(``.slice),Fle=`a`.replace(/./,`$0`)===`$0`,HE=!!/./[RE]&&/./[RE](`a`,`$0`)===``;NE(`replace`,(function(e,t,n){var r=HE?`$`:`$0`;return[function(e,n){var r=yC(this),i=e==null?void 0:QC(e,RE);return i?qC(i,e,r,n):qC(t,vT(r),e,n)},function(e,i){var a=GC(this),o=vT(e);if(typeof i==`string`&&BE(i,r)===-1&&BE(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=CC(i);c||(i=vT(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=LE(a,o);if(f===null||(zE(d,f),!l))break;vT(f[0])===``&&(a.lastIndex=PE(o,Nw(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=vT((f=d[g])[0]),v=Mle(Nle(Mw(f.index),o.length),0),y=[],b=1;b<f.length;b++)zE(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Ple([_],y,v,o);x!==void 0&&zE(S,x);var C=vT(jE(i,void 0,S))}else C=Ale(_,o,v,y,x,i);v>=h&&(m+=VE(o,h,v)+C,h=v+_.length)}return m+VE(o,h)}]}),!!jC((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Fle||HE);var UE=function(e,t){return UE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},UE(e,t)};function WE(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}UE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var GE=function(){return GE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},GE.apply(this,arguments)};function KE(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function qE(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function JE(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var Ile=0,YE=function(){this.id=``+ Ile++},Lle=_w.set,Rle=_w.getterFor(`Array Iterator`),XE=dE(Array,`Array`,(function(e,t){Lle(this,{type:`Array Iterator`,target:$w(e),index:0,kind:t})}),(function(){var e=Rle(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);LT.Arguments=LT.Array,MT(`keys`),MT(`values`),MT(`entries`);var ZE=function(e,t,n){for(var r in t)xw(e,r,t[r],n);return e},zle=J.Array,Ble=Math.max,QE=function(e,t,n){for(var r=Pw(e),i=nT(t,r),a=nT(n===void 0?r:n,r),o=zle(Ble(a-i,0)),s=0;i<a;i++,s++)zT(o,s,e[i]);return o.length=s,o},$E=cT.f,eD=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vle={f:function(e){return eD&&Sw(e)==`Window`?function(e){try{return $E(e)}catch{return QE(eD)}}(e):$E($w(e))}},tD=jC((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),nD=Object.isExtensible,rD=jC((function(){nD(1)}))||tD?function(e){return!!VC(e)&&(!tD||Sw(e)!=`ArrayBuffer`)&&(!nD||nD(e))}:nD,Hle=!jC((function(){return Object.isExtensible(Object.preventExtensions({}))})),iD=lC((function(e){var t=tw.f,n=!1,r=SC(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=cT.f,t=Y([].splice),i={};i[r]=1,e(i).length&&(cT.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},fT({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Vle.f}))},fastKey:function(e,t){if(!VC(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!xC(e,r)){if(!rD(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!xC(e,r)){if(!rD(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Hle&&n&&rD(e)&&!xC(e,r)&&a(e),e}};fw[r]=!0})),Ule=J.TypeError,aD=function(e,t){this.stopped=e,this.result=t},oD=aD.prototype,sD=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=kw(t,u),h=function(e){return r&&IT(r,`normal`,e),new aD(!0,e)},g=function(e){return d?(GC(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=BT(e)))throw Ule(XC(e)+` is not iterable`);if(RT(i)){for(a=0,o=Pw(e);o>a;a++)if((s=g(e[a]))&&JC(oD,s))return s;return new aD(!1)}r=VT(e,i)}for(c=r.next;!(l=qC(c,r)).done;){try{s=g(l.value)}catch(e){IT(r,`throw`,e)}if(typeof s==`object`&&s&&JC(oD,s))return s}return new aD(!1)},Wle=J.TypeError,cD=function(e,t){if(JC(t,e))return e;throw Wle(`Incorrect invocation`)},lD=function(e,t,n){var r,i;return sE&&CC(r=t.constructor)&&r!==n&&VC(i=r.prototype)&&i!==n.prototype&&sE(e,i),e},uD=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=J[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=Y(s[e]);xw(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!VC(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!VC(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!VC(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(dT(e,!CC(o)||!(i||s.forEach&&!jC((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),iD.enable();else if(dT(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=jC((function(){d.has(1)})),m=KT((function(e){new o(e)})),h=!i&&jC((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){cD(e,s);var n=lD(new o,e,c);return t!=null&&sD(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,fT({global:!0,forced:c!=o},l),oE(c,e),i||n.setStrong(c,e,r),c},dD=iD.getWeakData,Gle=_w.set,Kle=_w.getterFor,qle=Gw.find,fD=Gw.findIndex,pD=Y([].splice),Jle=0,mD=function(e){return e.frozen||=new hD},hD=function(){this.entries=[]},gD=function(e,t){return qle(e.entries,(function(e){return e[0]===t}))};hD.prototype={get:function(e){var t=gD(this,e);if(t)return t[1]},has:function(e){return!!gD(this,e)},set:function(e,t){var n=gD(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=fD(this.entries,(function(t){return t[0]===e}));return~t&&pD(this.entries,t,1),!!~t}};var _D,vD={getConstructor:function(e,t,n,r){var i=e((function(e,i){cD(e,a),Gle(e,{type:t,id:Jle++,frozen:void 0}),i!=null&&sD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Kle(t),s=function(e,t,n){var r=o(e),i=dD(GC(t),!0);return!0===i?mD(r).set(t,n):i[r.id]=n,e};return ZE(a,{delete:function(e){var t=o(this);if(!VC(e))return!1;var n=dD(e);return!0===n?mD(t).delete(e):n&&xC(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!VC(e))return!1;var n=dD(e);return!0===n?mD(t).has(e):n&&xC(n,t.id)}}),ZE(a,n?{get:function(e){var t=o(this);if(VC(e)){var n=dD(e);return!0===n?mD(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},yD=_w.enforce,Yle=!J.ActiveXObject&&`ActiveXObject`in J,bD=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Xle=uD(`WeakMap`,bD,vD);if(lw&&Yle){_D=vD.getConstructor(bD,`WeakMap`,!0),iD.enable();var xD=Xle.prototype,SD=Y(xD.delete),CD=Y(xD.has),wD=Y(xD.get),TD=Y(xD.set);ZE(xD,{delete:function(e){if(VC(e)&&!rD(e)){var t=yD(this);return t.frozen||=new _D,SD(this,e)||t.frozen.delete(e)}return SD(this,e)},has:function(e){if(VC(e)&&!rD(e)){var t=yD(this);return t.frozen||=new _D,CD(this,e)||t.frozen.has(e)}return CD(this,e)},get:function(e){if(VC(e)&&!rD(e)){var t=yD(this);return t.frozen||=new _D,CD(this,e)?wD(this,e):t.frozen.get(e)}return wD(this,e)},set:function(e,t){if(VC(e)&&!rD(e)){var n=yD(this);n.frozen||=new _D,CD(this,e)?TD(this,e,t):n.frozen.set(e,t)}else TD(this,e,t);return this}})}var ED=LC(`iterator`),DD=LC(`toStringTag`),OD=XE.values,kD=function(e,t){if(e){if(e[ED]!==OD)try{rw(e,ED,OD)}catch{e[ED]=OD}if(e[DD]||rw(e,DD,t),ww[t]){for(var n in XE)if(e[n]!==XE[n])try{rw(e,n,XE[n])}catch{e[n]=XE[n]}}}};for(var AD in ww)kD(J[AD]&&J[AD].prototype,AD);kD(Dw,`DOMTokenList`);var jD=new WeakMap,MD=new WeakMap,ND=new WeakMap,PD=new WeakMap,FD=new WeakMap,ID=new WeakMap,LD=new WeakMap,RD=new WeakMap,zD=new WeakMap,BD=new WeakMap,VD=new WeakMap,HD=new WeakMap,UD=new WeakMap,WD=new WeakMap,GD=new WeakMap,KD=new WeakMap,qD=new WeakMap,JD=new WeakMap,YD=new WeakMap,XD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,$D=new WeakMap,eO=new WeakMap,tO=new WeakMap,Zle=Gw.find,nO=!0;`find`in[]&&[,].find((function(){nO=!1})),fT({target:`Array`,proto:!0,forced:nO},{find:function(e){return Zle(this,e,arguments.length>1?arguments[1]:void 0)}}),MT(`find`),fT({global:!0},{globalThis:J});var Qle=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];Hv&&(K.fn.css=Hv),Jv&&(K.fn.append=Jv),Ov&&(K.fn.addClass=Ov),kv&&(K.fn.removeClass=kv),Av&&(K.fn.hasClass=Av),Fv&&(K.fn.on=Fv),ay&&(K.fn.focus=ay),jv&&(K.fn.attr=jv),Mv&&(K.fn.removeAttr=Mv),Bv&&(K.fn.hide=Bv),Vv&&(K.fn.show=Vv),zv&&(K.fn.offset=zv),Lv&&(K.fn.width=Lv),Rv&&(K.fn.height=Rv),Xv&&(K.fn.parent=Xv),Zv&&(K.fn.parents=Zv),qv&&(K.fn.is=qv),Nv&&(K.fn.dataset=Nv),Pv&&(K.fn.val=Pv),Kv&&(K.fn.text=Kv),Gv&&(K.fn.html=Gv),$v&&(K.fn.children=$v),ey&&(K.fn.remove=ey),Qv&&(K.fn.find=Qv),Uv&&(K.fn.each=Uv),ty&&(K.fn.empty=ty);var rO,iO,aO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},oO=function(e){return sO(e)&&e.nodeType===1},sO=function(e){var t=aO(e);return!!t&&e instanceof t.Node},cO=function(e){var t=e&&e.anchorNode&&aO(e.anchorNode);return!!t&&e instanceof t.Selection},lO=function(e){return sO(e)&&e.nodeType===3},uO=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},dO=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(sO(r=a)&&r.nodeType===8||oO(a)&&a.childNodes.length===0||oO(a)&&a.getAttribute(`contenteditable`)===`false`)&&(!s||!c);)o>=i.length?(s=!0,o=t-1,n=`backward`):o<0?(c=!0,o=t+1,n=`forward`):(a=i[o],t=o,o+=n===`forward`?1:-1);return[a,t]},$le=function(e,t,n){return qE(dO(e,t,n),1)[0]},eue=function e(t){var n,r,i=``;if(lO(t)&&t.nodeValue)return t.nodeValue;if(oO(t)){try{for(var a=KE(Array.from(t.childNodes)),o=a.next();!o.done;o=a.next())i+=e(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue(`display`);s!==`block`&&s!==`list`&&s!==`table-row`&&t.tagName!==`BR`||(i+=`
`)}return i};function fO(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid===`true`))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],a=i.nodeType;a==3?t(i,e):a!=1&&a!=9&&a!=11||fO(i,t)}}function pO(e){if(e.length===0)return``;var t=e[0];return t.nodeType===rO.ELEMENT_NODE?t.tagName.toLowerCase():``}(iO=rO||={})[iO.ELEMENT_NODE=1]=`ELEMENT_NODE`,iO[iO.TEXT_NODE=3]=`TEXT_NODE`,iO[iO.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,iO[iO.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,iO[iO.COMMENT_NODE=8]=`COMMENT_NODE`,iO[iO.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,iO[iO.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,iO[iO.DOCUMENT_FRAGMENT_NODE=11]=`DOCUMENT_FRAGMENT_NODE`,globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var mO=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),hO=typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var gO=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),tue=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),nue=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),_O=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var vO=!nue&&!tue&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=ZD.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=XD.get(t);return n||(n=new YE,XD.set(t,n)),n},setNewKey:function(e){var t=new YE;XD.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=GD.get(r);if(i==null){if(B.isEditor(r))return n;break}var a=WD.get(r);if(a==null)break;n.unshift(a),r=i}throw Error(`Unable to find the path for Slate node: `+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=X.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return GD.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=X.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[X.findPath(e,t)[0]];return V.get(e,n)},toDOMNode:function(e,t){var n;if(B.isEditor(t))n=KD.get(e);else{var r=X.findKey(e,t);n=JD.get(r)}if(!n)throw Error(`Cannot resolve a DOM node from Slate node: `+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,a=i!==void 0&&i,o=X.toDOMNode(e,e);try{r=oO(t)?t:t.parentElement}catch(e){if(!e.message.includes(`Permission denied to access property "nodeType"`))throw e}return!!r&&r.closest(`[data-slate-editor]`)===o&&(!a||r.isContentEditable||!!r.getAttribute(`data-slate-zero-width`))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=U.isBackward(t),a=X.toDOMPoint(e,n),o=U.isCollapsed(t)?a:X.toDOMPoint(e,r),s=X.getWindow(e).document.createRange(),c=qE(i?o:a,2),l=c[0],u=c[1],d=qE(i?a:o,2),f=d[0],p=d[1],m=!!(oO(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(oO(f)?f:f.parentElement).getAttribute(`data-slate-zero-width`);return s.setStart(l,m?1:u),s.setEnd(f,h?1:p),s},toDOMPoint:function(e,t){var n,r,i,a=qE(B.node(e,t.path),1)[0],o=X.toDOMNode(e,a);B.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll(`[data-slate-string], [data-slate-zero-width]`)),c=0;try{for(var l=KE(s),u=l.next();!u.done;u=l.next()){var d=u.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,m=d.getAttribute(`data-slate-length`),h=c+(m==null?p:parseInt(m,10));if(t.offset<=h){i=[f,Math.min(p,Math.max(0,t.offset-c))];break}c=h}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!i)throw Error(`Cannot resolve a DOM point from Slate point: `+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=oO(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?qD.get(n):null;if(!r)throw Error(`Cannot resolve a Slate node from DOM node: `+n);return r},findEventRange:function(e,t){`nativeEvent`in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);var a,o=X.toSlateNode(e,t.target),s=X.findPath(e,o);if(B.isVoid(e,o)){var c=i.getBoundingClientRect(),l=e.isInline(o)?n-c.left<c.left+c.width-n:r-c.top<c.top+c.height-r,u=B.point(e,s,{edge:l?`start`:`end`}),d=l?B.before(e,u):B.after(e,u);if(d)return B.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)a=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((a=f.createRange()).setStart(p.offsetNode,p.offset),a.setEnd(p.offsetNode,p.offset))}if(!a)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);return X.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,a,o,s,c=n.exactMatch,l=n.suppressThrow;if((cO(t)?t.anchorNode:t.startContainer)&&(cO(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=_O&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=t.collapsed)),r==null||a==null||i==null||o==null)throw Error(`Cannot resolve a Slate range from DOM range: `+t);var u=X.toSlatePoint(e,[r,i],{exactMatch:c,suppressThrow:l});if(!u)return null;var d=s?u:X.toSlatePoint(e,[a,o],{exactMatch:c,suppressThrow:l});if(!d)return null;var f={anchor:u,focus:d};return U.isExpanded(f)&&U.isForward(f)&&oO(a)&&B.void(e,{at:f.focus,mode:`highest`})&&(f=B.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=qE(i?t:function(e){var t,n=qE(e,2),r=n[0],i=n[1];if(oO(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=qE(dO(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;oO(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=$le(r,s,a?`backward`:`forward`)}i=a&&r.textContent!=null?r.textContent.length:0}return[r,i]}(t),2),s=o[0],c=o[1],l=s.parentNode,u=null,d=0;if(l){var f=l.closest(`[data-slate-void="true"]`),p=l.closest(`[data-slate-leaf]`),m=null;if(p){u=p.closest(`[data-slate-node="text"]`);var h=X.getWindow(e).document.createRange();h.setStart(u,0),h.setEnd(s,c);var g=h.cloneContents();JE(JE([],qE(hv(g.querySelectorAll(`[data-slate-zero-width]`)))),qE(hv(g.querySelectorAll(`[contenteditable=false]`)))).forEach((function(e){e.parentNode.removeChild(e)})),d=g.textContent.length,m=u}else f&&((p=f.querySelector(`[data-slate-leaf]`))?(u=p.closest(`[data-slate-node="text"]`),d=(m=p).textContent.length,m.querySelectorAll(`[data-slate-zero-width]`).forEach((function(e){d-=e.textContent.length}))):d=1);m&&d===m.textContent.length&&(l.hasAttribute(`data-slate-zero-width`)||hO&&(r=m.textContent)!=null&&r.endsWith(`
`))&&d--}if(!u){if(a)return null;throw Error(`Cannot resolve a Slate point from DOM point: `+t)}var _=X.toSlateNode(e,u);return{path:X.findPath(e,_),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return B.hasPath(e,n.path)&&B.hasPath(e,r.path)},getNodeType:function(e){return z.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return V.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=B.nodes(e,{universal:!0});try{for(var a=KE(i),o=a.next();!o.done;o=a.next()){var s=qE(o.value,1)[0];z.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=qE(B.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return r==null?null:r[0]},getSelectedTextNode:function(e){var t=qE(B.nodes(e,{match:function(e){return W.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=qE(B.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&qE(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(B.isEnd(e,n.anchor,t)||B.isEnd(e,n.focus,t))},getTextarea:function(e){var t=jD.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return PD.get(e)||null},getHoverbar:function(e){return ID.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!=`number`||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,``).length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,a=X.getTextarea(e).$textArea?.[0].childNodes;if(a)try{for(var o=KE(Array.from(a)),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.nodeType!==3)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var l=B.nodes(e,{match:function(t){return!(!z.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=KE(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];fO(X.toDOMNode(e,p),(function(e,t){var n=K(t);n.attr(`data-slate-string`)||n.attr(`data-slate-zero-width`)||n.attr(`data-w-e-reserve`)||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:`paragraph`,children:[{text:``}]}},isSelectedVoidNode:function(e){var t,n,r=B.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=KE(r),o=a.next();!o.done;o=a.next())o.value,i++}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||U.isExpanded(t))return!1;var n=X.getSelectedNodeByType(e,`paragraph`);if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===``||void 0)},isEmptyPath:function(e,t){var n=B.node(e,t);if(n==null)return!1;var r=qE(n,1)[0].children;return r.length===1&&r[0].text===``}},rue=1,yO={},bO={},iue=Gw.filter;fT({target:`Array`,proto:!0,forced:!hE(`filter`)},{filter:function(e){return iue(this,e,arguments.length>1?arguments[1]:void 0)}});var xO=`
\v\f\r \xA0               \u2028\u2029`,SO=Y(``.replace),CO=`[`+xO+`]`,aue=RegExp(`^`+CO+CO+`*`),oue=RegExp(CO+CO+`*$`),wO=function(e){return function(t){var n=vT(yC(t));return 1&e&&(n=SO(n,aue,``)),2&e&&(n=SO(n,oue,``)),n}},sue={start:wO(1),end:wO(2),trim:wO(3)},cue=bw.PROPER,lue=sue.trim;fT({target:`String`,proto:!0,forced:function(e){return jC((function(){return!!xO[e]()||`​…᠎`[e]()!==`​…᠎`||cue&&xO[e].name!==e}))}(`trim`)},{trim:function(){return lue(this)}});var TO=[],EO={};function uue(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var DO,OO,kO,AO,jO=J.Promise,MO=LC(`species`),NO=function(e){var t=wC(e),n=tw.f;BC&&t&&!t[MO]&&n(t,MO,{configurable:!0,get:function(){return this}})},PO=J.TypeError,FO=LC(`species`),IO=function(e,t){var n,r=GC(e).constructor;return r===void 0||(n=GC(r)[FO])==null?t:function(e){if(Bw(e))return e;throw PO(XC(e)+` is not a constructor`)}(n)},LO=Y([].slice),RO=/(?:ipad|iphone|ipod).*applewebkit/i.test(TC),zO=Sw(J.process)==`process`,BO=J.setImmediate,VO=J.clearImmediate,HO=J.process,UO=J.Dispatch,WO=J.Function,GO=J.MessageChannel,KO=J.String,qO=0,JO={};try{DO=J.location}catch{}var YO=function(e){if(xC(JO,e)){var t=JO[e];delete JO[e],t()}},XO=function(e){return function(){YO(e)}},ZO=function(e){YO(e.data)},QO=function(e){J.postMessage(KO(e),DO.protocol+`//`+DO.host)};BO&&VO||(BO=function(e){var t=LO(arguments,1);return JO[++qO]=function(){jE(CC(e)?e:WO(e),void 0,t)},OO(qO),qO},VO=function(e){delete JO[e]},zO?OO=function(e){HO.nextTick(XO(e))}:UO&&UO.now?OO=function(e){UO.now(XO(e))}:GO&&!RO?(AO=(kO=new GO).port2,kO.port1.onmessage=ZO,OO=kw(AO.postMessage,AO)):J.addEventListener&&CC(J.postMessage)&&!J.importScripts&&DO&&DO.protocol!==`file:`&&!jC(QO)?(OO=QO,J.addEventListener(`message`,ZO,!1)):OO=`onreadystatechange`in UC(`script`)?function(e){CT.appendChild(UC(`script`)).onreadystatechange=function(){CT.removeChild(this),YO(e)}}:function(e){setTimeout(XO(e),0)});var $O,ek,tk,nk,rk,ik,ak,ok,sk={set:BO,clear:VO},due=/ipad|iphone|ipod/i.test(TC)&&J.Pebble!==void 0,fue=/web0s(?!.*chrome)/i.test(TC),pue=tT.f,ck=sk.set,lk=J.MutationObserver||J.WebKitMutationObserver,uk=J.document,dk=J.process,fk=J.Promise,pk=pue(J,`queueMicrotask`),mk=pk&&pk.value;mk||($O=function(){var e,t;for(zO&&(e=dk.domain)&&e.exit();ek;){t=ek.fn,ek=ek.next;try{t()}catch(e){throw ek?nk():tk=void 0,e}}tk=void 0,e&&e.enter()},RO||zO||fue||!lk||!uk?!due&&fk&&fk.resolve?((ak=fk.resolve(void 0)).constructor=fk,ok=kw(ak.then,ak),nk=function(){ok($O)}):zO?nk=function(){dk.nextTick($O)}:(ck=kw(ck,J),nk=function(){ck($O)}):(rk=!0,ik=uk.createTextNode(``),new lk($O).observe(ik,{characterData:!0}),nk=function(){ik.data=rk=!rk}));var hk,gk,_k,vk,yk=mk||function(e){var t={fn:e,next:void 0};tk&&(tk.next=t),ek||(ek=t,nk()),tk=t},mue=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=ZC(t),this.reject=ZC(n)},bk={f:function(e){return new mue(e)}},xk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},hue=typeof window==`object`,Sk=sk.set,gue=LC(`species`),Ck=`Promise`,wk=_w.getterFor(Ck),_ue=_w.set,vue=_w.getterFor(Ck),Tk=jO&&jO.prototype,Ek=jO,Dk=Tk,Ok=J.TypeError,kk=J.document,Ak=J.process,jk=bk.f,yue=jk,bue=!!(kk&&kk.createEvent&&J.dispatchEvent),Mk=CC(J.PromiseRejectionEvent),Nk=!1,Pk=dT(Ck,(function(){var e=sw(Ek),t=e!==String(Ek);if(!t&&AC===66)return!0;if(AC>=51&&/native code/.test(e))return!1;var n=new Ek((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[gue]=r,!(Nk=n.then((function(){}))instanceof r)||!t&&hue&&!Mk})),xue=Pk||!KT((function(e){Ek.all(e).catch((function(){}))})),Fk=function(e){var t;return!(!VC(e)||!CC(t=e.then))&&t},Ik=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;yk((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&Cue(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(Ok(`Promise-chain cycle`)):(s=Fk(o))?qC(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Sue(e)}))}},Lk=function(e,t,n){var r,i;bue?((r=kk.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),J.dispatchEvent(r)):r={promise:t,reason:n},!Mk&&(i=J[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=J.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Sue=function(e){qC(Sk,J,(function(){var t,n=e.facade,r=e.value;if(Rk(e)&&(t=xk((function(){zO?Ak.emit(`unhandledRejection`,r,n):Lk(`unhandledrejection`,n,r)})),e.rejection=zO||Rk(e)?2:1,t.error))throw t.value}))},Rk=function(e){return e.rejection!==1&&!e.parent},Cue=function(e){qC(Sk,J,(function(){var t=e.facade;zO?Ak.emit(`rejectionHandled`,t):Lk(`rejectionhandled`,t,e.value)}))},zk=function(e,t,n){return function(r){e(t,r,n)}},Bk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ik(e,!0))},Vk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ok(`Promise can't be resolved itself`);var r=Fk(t);r?yk((function(){var n={done:!1};try{qC(r,t,zk(Vk,n,e),zk(Bk,n,e))}catch(t){Bk(n,t,e)}})):(e.value=t,e.state=1,Ik(e,!1))}catch(t){Bk({done:!1},t,e)}}};if(Pk&&(Dk=(Ek=function(e){cD(this,Dk),ZC(e),qC(hk,this);var t=wk(this);try{e(zk(Vk,t),zk(Bk,t))}catch(e){Bk(t,e)}}).prototype,(hk=function(e){_ue(this,{type:Ck,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ZE(Dk,{then:function(e,t){var n=vue(this),r=n.reactions,i=jk(IO(this,Ek));return i.ok=!CC(e)||e,i.fail=CC(t)&&t,i.domain=zO?Ak.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Ik(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),gk=function(){var e=new hk,t=wk(e);this.promise=e,this.resolve=zk(Vk,t),this.reject=zk(Bk,t)},bk.f=jk=function(e){return e===Ek||e===_k?new gk(e):yue(e)},CC(jO)&&Tk!==Object.prototype)){vk=Tk.then,Nk||(xw(Tk,`then`,(function(e,t){var n=this;return new Ek((function(e,t){qC(vk,n,e,t)})).then(e,t)}),{unsafe:!0}),xw(Tk,`catch`,Dk.catch,{unsafe:!0}));try{delete Tk.constructor}catch{}sE&&sE(Tk,Dk)}fT({global:!0,wrap:!0,forced:Pk},{Promise:Ek}),oE(Ek,Ck,!1),NO(Ck),_k=wC(Ck),fT({target:Ck,stat:!0,forced:Pk},{reject:function(e){var t=jk(this);return qC(t.reject,void 0,e),t.promise}}),fT({target:Ck,stat:!0,forced:Pk},{resolve:function(e){return function(e,t){if(GC(e),VC(t)&&t.constructor===e)return t;var n=bk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),fT({target:Ck,stat:!0,forced:xue},{all:function(e){var t=this,n=jk(t),r=n.resolve,i=n.reject,a=xk((function(){var n=ZC(t.resolve),a=[],o=0,s=1;sD(e,(function(e){var c=o++,l=!1;s++,qC(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=jk(t),r=n.reject,i=xk((function(){var i=ZC(t.resolve);sD(e,(function(e){qC(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Hk=vE.UNSUPPORTED_Y,wue=Math.min,Uk=[].push,Tue=Y(/./.exec),Wk=Y(Uk),Gk=Y(``.slice);function Kk(e){Promise.resolve().then(e)}function qk(e,t){return z.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=B.isVoid(t,e),s=``;o||(s=a.map((function(e){return qk(e,t)})).join(``));var c=function(e){return EO[e]||uue}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||TO.forEach((function(t){return l=t(e,l)})),typeof c==`string`)return l;var u=c.prefix,d=u===void 0?``:u,f=c.suffix,p=f===void 0?``:f;return d&&(l=d+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(n==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g,` &nbsp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/®/g,`&reg;`).replace(/©/g,`&copy;`).replace(/™/g,`&trade;`)}(r);var i=X.getParentsNodes(t,e).some((function(e){return X.getNodeType(e)===`pre`}));if(i||(r=r.replace(/\r\n|\r|\n/g,`<br>`)),i&&(r=r.replace(/&nbsp;/g,` `)),r===``){var a=X.getParentNode(null,e);if(!a||a.children.length!==0)return r;r=`<br>`}return TO.forEach((function(t){return r=t(e,r)})),r}(e,t)}function Jk(e){return`w-e-element-`+e}NE(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=vT(yC(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!NT(e))return qC(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=qC(DE,d,r))&&!((o=d.lastIndex)>u&&(Wk(c,Gk(r,u,a.index)),a.length>1&&a.index<r.length&&jE(Uk,c,QE(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&Tue(d,``)||Wk(c,``):Wk(c,Gk(r,u)),c.length>i?QE(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:qC(t,this,e,n)}:t,[function(t,n){var i=yC(this),a=t==null?void 0:QC(t,e);return a?qC(a,t,i,n):qC(r,vT(i),t,n)},function(e,i){var a=GC(this),o=vT(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=IO(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(Hk?`g`:`y`),d=new c(Hk?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return LE(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=Hk?0:m;var g,_=LE(d,Hk?Gk(o,m):o);if(_===null||(g=wue(Nw(d.lastIndex+(Hk?m:0)),o.length))===p)m=PE(o,m,l);else{if(Wk(h,Gk(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(Wk(h,_[v]),h.length===f)return h;m=p=g}}return Wk(h,Gk(o,p)),h}]}),!!jC((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),Hk);var Yk=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Xk=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return Yk(r,i)&&Yk(i,r)},Zk=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],Qk=[],$k=[],eA={},Eue=tw.f,Due=cT.f,Oue=_w.enforce,kue=LC(`match`),tA=J.RegExp,nA=tA.prototype,Aue=J.SyntaxError,jue=Y(yT),Mue=Y(nA.exec),rA=Y(``.charAt),iA=Y(``.replace),aA=Y(``.indexOf),Nue=Y(``.slice),oA=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,sA=/a/g,cA=/a/g,lA=new tA(sA)!==sA,uA=vE.MISSED_STICKY,dA=vE.UNSUPPORTED_Y;if(dT(`RegExp`,BC&&(!lA||uA||yE||bE||jC((function(){return cA[kue]=!1,tA(sA)!=sA||tA(cA)==cA||tA(sA,`i`)!=`/a/i`}))))){for(var fA=function(e,t){var n,r,i,a,o,s,c=JC(nA,this),l=NT(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===fA)return e;if((l||JC(nA,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:jue(f))),e=e===void 0?``:vT(e),t=t===void 0?``:vT(t),f=e,yE&&`dotAll`in sA&&(r=!!t&&aA(t,`s`)>-1)&&(t=iA(t,/s/g,``)),n=t,uA&&`sticky`in sA&&(i=!!t&&aA(t,`y`)>-1)&&dA&&(t=iA(t,/y/g,``)),bE&&(a=function(e){for(var t,n=e.length,r=0,i=``,a=[],o={},s=!1,c=!1,l=0,u=``;r<=n;r++){if((t=rA(e,r))===`\\`)t+=rA(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:Mue(oA,Nue(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||xC(o,u))throw new Aue(`Invalid capture group name`);o[u]=!0,a[a.length]=[u,l],c=!1,u=``;continue}c?u+=t:i+=t}return[i,a]}(e),e=a[0],d=a[1]),o=lD(tA(e,t),c?this:nA,fA),(r||i||d.length)&&(s=Oue(o),r&&(s.dotAll=!0,s.raw=fA(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=rA(e,r))===`\\`?i+=t+rA(e,++r):a||t!==`.`?(t===`[`?a=!0:t===`]`&&(a=!1),i+=t):i+=`[\\s\\S]`;return i}(e),n)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{rw(o,`source`,f===``?`(?:)`:f)}catch{}return o},pA=function(e){e in fA||Eue(fA,e,{configurable:!0,get:function(){return tA[e]},set:function(t){tA[e]=t}})},mA=Due(tA),hA=0;mA.length>hA;)pA(mA[hA++]);nA.constructor=fA,fA.prototype=nA,xw(J,`RegExp`,fA)}NO(`RegExp`);var gA=RegExp(`\xA0`,`g`);function _A(e){return e.replace(gA,` `)}function vA(e,t){var n=e.length;if(n){var r=e[n-1];if(W.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function yA(e,t,n){return{type:`paragraph`,children:[{text:K(e).text().replace(/\s+/gm,` `)}]}}function bA(e,t){var n=function(e,t){var n=[];if(e.attr(`data-w-e-is-void`)!=null)return n;var r=e[0].childNodes;return r.length===1&&r[0].nodeName===`BR`?(n.push({text:``}),n):(r.forEach((function(e){if(e.nodeType!==rO.ELEMENT_NODE){if(e.nodeType===rO.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=_A(r),vA(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(vA(n,`
`)||n.push({text:`
`}));var i=SA(K(e),t);Array.isArray(i)?i.forEach((function(e){return n.push(e)})):n.push(i)}})),n)}(e,t),r=function(e){for(var t in eA)if(e[0].matches(t))return eA[t];return yA}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){B.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),$k.forEach((function(n){r=n(e[0],r,t)})))})),r}function xA(e,t){e.parents(`pre`).length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm,` `).replace(/<br>/g,`
`));var n=e[0].textContent||``;n=function(e){return e.replace(/&nbsp;/g,` `).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&reg;/g,`®`).replace(/&copy;/g,`©`).replace(/&trade;/g,`™`).replace(/&quot;/g,`"`)}(n);var r={text:n=_A(n)};return $k.forEach((function(n){r=n(e[0],r,t)})),r}function SA(e,t){Qk.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=K(r(e[0])))}));var n=pO(e);return n===`span`?e.attr(`data-w-e-type`)?bA(e,t):xA(e,t):n===`code`?pO(e.parent())===`pre`?bA(e,t):xA(e,t):Zk.includes(n)?xA(e,t):bA(e,t)}function CA(e,t,n){var r=K(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function wA(e,t){t===void 0&&(t=``);var n=[];t===``&&(t=`<p><br></p>`),t.indexOf(`<`)!==0&&(t=t.split(/\n/).map((function(e){return`<p>`+e+`</p>`})).join(``));var r=K(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=SA(K(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var TA=tw.f,EA=iD.fastKey,DA=_w.set,OA=_w.getterFor;uD(`Set`,(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var i=e((function(e,i){cD(e,a),DA(e,{type:t,index:kT(null),first:void 0,last:void 0,size:0}),BC||(e.size=0),i!=null&&sD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=OA(t),s=function(e,t,n){var r,i,a=o(e),s=c(e,t);return s?s.value=n:(a.last=s={index:i=EA(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),BC?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=EA(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return ZE(a,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&=n.previous.next=void 0,delete t[n.index],n=n.next;e.first=e.last=void 0,BC?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=c(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),BC?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=kw(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),ZE(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,e===0?0:e,t)}}:{add:function(e){return s(this,e=e===0?0:e,e)}}),BC&&TA(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=OA(t),a=OA(r);dE(e,t,(function(e,t){DA(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?t==`keys`?{value:n.key,done:!1}:t==`values`?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?`entries`:`values`,!n,!0),NO(t)}});var kA=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function AA(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):G.insertNodes(e,t,{mode:`highest`})}var jA=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=qE(U.edges(n),2),i=r[0],a=r[1],o=B.void(t,{at:i.path}),s=B.void(t,{at:a.path});if(!U.isCollapsed(n)||o){var c=X.toDOMRange(t,n),l=c.cloneContents(),u=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&e.textContent.trim()!==``&&(u=e)})),s){var d=qE(s,1)[0],f=c.cloneRange(),p=X.toDOMNode(t,d);f.setEndAfter(p),l=f.cloneContents()}if(o&&(u=l.querySelector(`[data-slate-spacer]`)),Array.from(l.querySelectorAll(`[data-slate-zero-width]`)).forEach((function(e){e.textContent=e.getAttribute(`data-slate-zero-width`)===`n`?`
`:``})),lO(u)){var m=u.ownerDocument.createElement(`span`);m.style.whiteSpace=`pre`,m.appendChild(u),l.appendChild(m),u=m}var h=t.getFragment(),g=JSON.stringify(h),_=window.btoa(encodeURIComponent(g));u.setAttribute(`data-slate-fragment`,_),e.setData(`application/x-slate-fragment`,_);var v=l.ownerDocument.createElement(`div`);return v.appendChild(l),v.setAttribute(`hidden`,`true`),l.ownerDocument.body.appendChild(v),e.setData(`text/html`,v.innerHTML),e.setData(`text/plain`,eue(v)),l.ownerDocument.body.removeChild(v),e}}},t.insertData=function(e){var r,i,a=e.getData(`application/x-slate-fragment`);if(a){var o=decodeURIComponent(window.atob(a)),s=JSON.parse(o);t.insertFragment(s)}else{var c=e.getData(`text/plain`),l=e.getData(`text/html`);if(l)t.dangerouslyInsertHtml(l);else if(c){var u=c.split(/\r\n|\r|\n/),d=!1;try{for(var f=KE(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&G.splitNodes(t,{always:!0}),n(m),d=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}},t},MA=function(e){return e!=null},NA={object:!0,function:!0,undefined:!0},PA=/^\s*class[\s{/}]/,FA=Function.prototype.toString,IA=function(e){return!!function(e){if(typeof e!=`function`||!hasOwnProperty.call(e,`length`))return!1;try{if(typeof e.length!=`number`||typeof e.call!=`function`||typeof e.apply!=`function`)return!1}catch{return!1}return!function(e){if(!function(e){return!!MA(e)&&hasOwnProperty.call(NA,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!PA.test(FA.call(e))},LA=function(e){return e!=null},RA=Object.keys,zA=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return RA(LA(e)?Object(e):e)},BA=function(e){if(!LA(e))throw TypeError(`Cannot use null or undefined`);return e},VA=Math.max,HA=function(){var e,t=Object.assign;return typeof t==`function`&&(t(e={foo:`raz`},{bar:`dwa`},{trzy:`trzy`}),e.foo+e.bar+e.trzy===`razdwatrzy`)}()?Object.assign:function(e,t){var n,r,i,a=VA(arguments.length,2);for(e=Object(BA(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)zA(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},UA=Array.prototype.forEach,WA=Object.create,GA=function(e,t){for(var n in e)t[n]=e[n]},KA=function(e){var t=WA(null);return UA.call(arguments,(function(e){LA(e)&&GA(Object(e),t)})),t},qA=`razdwatrzy`,JA=String.prototype.indexOf,YA=typeof qA.contains==`function`&&!0===qA.contains(`dwa`)&&!1===qA.contains(`foo`)?String.prototype.contains:function(e){return JA.call(this,e,arguments[1])>-1},XA=lC((function(e){var t=e.exports=function(e,t){var n,r,i,a,o;return arguments.length<2||typeof e!=`string`?(a=t,t=e,e=null):a=arguments[2],MA(e)?(n=YA.call(e,`c`),r=YA.call(e,`e`),i=YA.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?HA(KA(a),o):o};t.gs=function(e,t,n){var r,i,a,o;return typeof e==`string`?a=arguments[3]:(a=n,n=t,t=e,e=null),MA(t)?IA(t)?MA(n)?IA(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,MA(e)?(r=YA.call(e,`c`),i=YA.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?HA(KA(a),o):o}})),ZA=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},QA=lC((function(e,t){var n,r,i,a,o,s,c,l=Function.prototype.apply,u=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return ZA(t),m.call(this,`__ee__`)?n=this.__ee__:(n=h.value=d(null),f(this,`__ee__`,h),h.value=null),n[e]?typeof n[e]==`object`?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,a;return ZA(t),a=this,n.call(this,e,r=function(){i.call(a,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,a;if(ZA(t),!m.call(this,`__ee__`)||!(n=this.__ee__)[e])return this;if(typeof(r=n[e])==`object`)for(a=0;i=r[a];++a)i!==t&&i.__eeOnceListener__!==t||(r.length===2?n[e]=r[+!a]:r.splice(a,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},a=function(e){var t,n,r,i,a;if(m.call(this,`__ee__`)&&(i=this.__ee__[e]))if(typeof i==`object`){for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)l.call(r,this,a)}else switch(arguments.length){case 1:u.call(i,this);break;case 2:u.call(i,this,arguments[1]);break;case 3:u.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];l.call(i,this,a)}},o={on:n,once:r,off:i,emit:a},s={on:XA(n),once:XA(r),off:XA(i),emit:XA(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function $A(e){var t=eO.get(e);return t??(t=QA(),eO.set(e,t)),t}var ej=new WeakMap;function tj(e,t){var n=ej.get(e);n??(n=new Set,ej.set(e,n)),n.add(t)}function Pue(e){return ej.get(e)||new Set}function Fue(e){ej.set(e,new Set)}function nj(e){var t=X.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function rj(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=nj(e);if(r==null)return t;var i=r.top,a=r.left,o=r.width,s=r.height,c=X.toDOMRange(e,n).getClientRects()[0];if(c==null)return t;c.width;var l=c.height,u={},d=c.top-i,f=c.left-a;if(f>o/2?u.right=o-f+5+`px`:u.left=f+5+`px`,d>s/2)u.bottom=s-d+5+`px`;else{var p=d+l;p<0&&(p=0),u.top=p+5+`px`}return u}function ij(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=z.isElement(t)&&e.isVoid(t),a=z.isElement(t)&&e.isInline(t),o=YD.get(t);if(o==null)return r;var s=o.getBoundingClientRect(),c=s.top,l=s.left,u=s.height,d=s.width;if(i){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(r==null||++n>1e4)break;var i=r.nodeName;if(r.nodeType===1){var a=i.toLowerCase();if(Qle.includes(a)||a===`iframe`||a===`video`)return r;var o=r.children||[],s=o.length;if(s)for(var c=s-1;c>=0;c--)t.push(o[c])}}return null}(o);if(f!=null){var p=f.getBoundingClientRect();c=p.top,u=p.height}}var m=nj(e);if(m==null)return r;var h,g=m.top,_=m.left,v=m.width,y=m.height,b={},x=c-g,S=l-_;if(n===`bar`)return b.left=S+`px`,x>40?b.bottom=y-x+5+`px`:b.top=x+u+5+`px`,b;if(n===`modal`)return i?a?S>(v-d)/2?b.right=v-S+5+`px`:b.left=S+d+5+`px`:b.left=`20px`:b.left=S+`px`,i?((h=x)<0&&(h=0),b.top=h+`px`):x>(y-u)/2?b.bottom=y-x+5+`px`:((h=x+u)<0&&(h=0),b.top=h+5+`px`),b;throw Error(`type '`+n+`' is invalid`)}function aj(e,t){Kk((function(){var n=nj(e);if(n!=null){var r,i=n.top,a=n.left,o=n.width,s=n.height,c=t.offset(),l=c.top,u=c.left,d=t.width(),f=t.height(),p=l-i,m=u-a,h=t.attr(`style`);if(h.indexOf(`top`)>=0&&(r=p+f-s)>0){var g=t.css(`top`),_=parseInt(g.toString())-r;_<0&&(_=0),t.css(`top`,_+`px`)}if(h.indexOf(`bottom`)>=0&&l<0){var v=t.css(`bottom`),y=parseInt(v.toString())-Math.abs(l);t.css(`bottom`,y+`px`)}if(h.indexOf(`left`)>=0&&(r=m+d-o)>0){var b=t.css(`left`),x=parseInt(b.toString())-r;x<0&&(x=0),t.css(`left`,x+`px`)}if(h.indexOf(`right`)>=0&&u<0){var S=t.css(`right`),C=parseInt(S.toString())-Math.abs(u);t.css(`right`,C+`px`)}}}))}var Iue=hE(`slice`),Lue=LC(`species`),oj=J.Array,Rue=Math.max;fT({target:`Array`,proto:!0,forced:!Iue},{slice:function(e,t){var n,r,i,a=$w(this),o=Pw(a),s=nT(e,o),c=nT(t===void 0?o:t,o);if(Fw(a)&&(n=a.constructor,(Bw(n)&&(n===oj||Fw(n.prototype))||VC(n)&&(n=n[Lue])===null)&&(n=void 0),n===oj||n===void 0))return LO(a,s,c);for(r=new(n===void 0?oj:n)(Rue(c-s,0)),i=0;s<c;s++,i++)s in a&&zT(r,i,a[s]);return r.length=i,r}});var zue=tT.f,sj=Y(``.startsWith),Bue=Y(``.slice),Vue=Math.min,cj=FT(`startsWith`);fT({target:`String`,proto:!0,forced:!(!cj&&function(){var e=zue(String.prototype,`startsWith`);return e&&!e.writable}())&&!cj},{startsWith:function(e){var t=vT(yC(this));PT(e);var n=Nw(Vue(arguments.length>1?arguments[1]:void 0,t.length)),r=vT(e);return sj?sj(t,r,n):Bue(t,n,n+r.length)===r}});var lj=Object.assign,uj=Object.defineProperty,Hue=Y([].concat),dj=!lj||jC((function(){if(BC&&lj({b:1},lj(uj({},`a`,{enumerable:!0,get:function(){uj(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),lj({},e)[n]!=7||pT(lj({},t)).join(``)!=r}))?function(e,t){for(var n=bC(e),r=arguments.length,i=1,a=lT.f,o=Qw.f;r>i;)for(var s,c=jw(arguments[i++]),l=a?Hue(pT(c),a(c)):pT(c),u=l.length,d=0;u>d;)s=l[d++],BC&&!qC(o,c,s)||(n[s]=c[s]);return n}:lj;fT({target:`Object`,stat:!0,forced:Object.assign!==dj},{assign:dj});var Uue=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function fj(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach((function(t){var r,i,a=n[t];if(t!==`key`){if(!Uue.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=Zae(o),function(e,t){e.data??={};var n=e.data;n.dataset??={},Object.assign(n.dataset,t)}(e,((r={})[o]=a,r)),delete n[t];return}(function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,t)})(e,(i={},i[t]=a,i)),delete n[t]}}else e.key=a})),i.length>0&&i.forEach((function(e){typeof e!=`string`&&fj(e)}))}var pj=[],mj={};function Wue(e,t,n){return xb(n.isInline(e)?`span`:`div`,null,t)}function hj(e,t){return t===void 0&&(t=!1),xb(`span`,{"data-slate-string":!0},t?e+`
`:e)}function gj(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),xb(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?xb(`br`,null):null)}function _j(e,t,n,r){return WD.set(e,t),GD.set(e,n),z.isElement(e)?function(e,t){var n,r=X.findKey(t,e),i=t.isInline(e),a=B.isVoid(t,e),o=Jk(r.id),s={id:o,key:r.id,"data-slate-node":`element`,"data-slate-inline":i},c=e.type,l=e.children,u=l===void 0?[]:l,d=function(e){return mj[e]||Wue}(c);n=a?null:u.map((function(n,r){return _j(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=qE(qE(V.texts(e),1)[0],1)[0],h=xb(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},_j(m,0,e,t));f=xb(p,{style:{position:`relative`}},f,h),WD.set(m,0),GD.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return pj.forEach((function(r){n=r(e,t)})),n}(e,f)),Kk((function(){var t=uO(o);t!=null&&(JD.set(r,t),YD.set(e,t),qD.set(t,e))})),f}(e,r):function(e,t,n){if(e.text==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=X.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw Error(`Can not get config.decorate`);var a=i([e,X.findPath(n,e)]),o=W.decorations(e,a),s=o.map((function(r,i){var a=function(e,t,n,r,i){t===void 0&&(t=!1);var a=e.text,o=X.findPath(i,n),s=H.parent(o);if(B.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?gj(V.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||B.string(i,s)!==``?a===``?gj():t&&a.slice(-1)===`
`?hj(a,!0):hj(a):gj(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return pj.forEach((function(t){n=t(e,n)})),n}(r,a),xb(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=xb(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return Kk((function(){var t=uO(c);t!=null&&(JD.set(r,t),YD.set(e,t),qD.set(t,e))})),l}(e,n,r)}function Gue(e,t){var n,r=e.$scroll,i=function(e){return`w-e-textarea-`+e}(e.id),a=t.getConfig(),o=a.readOnly,s=a.autoFocus,c=function(e,t){return t===void 0&&(t=!1),tb(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=_j(e,n,t,t);return fj(r),r}));var l=VD.get(e);if(l??=!0,l){var u=function(e,t){return K(`<div
id="`+e+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(i);r.append(u),e.$textArea=u,n=u[0],(f=$y([ab,mb,yb,cb,fb,rb]))(n,c),VD.set(e,!1),HD.set(e,f)}else{var d=UD.get(e),f=HD.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=uO(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=aO(n);p&&ZD.set(t,p)}KD.set(t,n),YD.set(t,n),qD.set(n,t),UD.set(e,c)}}function vj(e){return typeof e==`object`&&!!e&&e.nodeType===1}function yj(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function bj(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return yj(n.overflowY,t)||yj(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function xj(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}function Sj(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,c=typeof o==`function`?o:function(e){return e!==o};if(!vj(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;vj(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&bj(d)&&!bj(document.documentElement)||d!=null&&bj(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),_=g.height,v=g.width,y=g.top,b=g.right,x=g.bottom,S=g.left,C=i===`start`||i===`nearest`?y:i===`end`?x:y+_/2,w=a===`center`?S+v/2:a===`end`?b:S,T=[],E=0;E<u.length;E++){var D=u[E],O=D.getBoundingClientRect(),k=O.height,A=O.width,j=O.top,M=O.right,ee=O.bottom,te=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=j&&x<=ee&&S>=te&&b<=M)return T;var ne=getComputedStyle(D),re=parseInt(ne.borderLeftWidth,10),ie=parseInt(ne.borderTopWidth,10),N=parseInt(ne.borderRightWidth,10),ae=parseInt(ne.borderBottomWidth,10),oe=0,se=0,ce=`offsetWidth`in D?D.offsetWidth-D.clientWidth-re-N:0,le=`offsetHeight`in D?D.offsetHeight-D.clientHeight-ie-ae:0;if(l===D)oe=i===`start`?C:i===`end`?C-p:i===`nearest`?xj(h,h+p,p,ie,ae,h+C,h+C+_,_):C-p/2,se=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:xj(m,m+f,f,re,N,m+w,m+w+v,v),oe=Math.max(0,oe+h),se=Math.max(0,se+m);else{oe=i===`start`?C-j-ie:i===`end`?C-ee+ae+le:i===`nearest`?xj(j,ee,k,ie,ae+le,C,C+_,_):C-(j+k/2)+le/2,se=a===`start`?w-te-re:a===`center`?w-(te+A/2)+ce/2:a===`end`?w-M+N+ce:xj(te,M,A,re,N+ce,w,w+v,v);var ue=D.scrollLeft,de=D.scrollTop;C+=de-(oe=Math.max(0,Math.min(de+oe,D.scrollHeight-k+le))),w+=ue-(se=Math.max(0,Math.min(ue+se,D.scrollWidth-A+ce)))}T.push({el:D,top:oe,left:se})}return T}function Cj(e){return e===Object(e)&&Object.keys(e).length!==0}function wj(e,t){return sO(t)&&X.hasDOMNode(e,t,{editable:!0})}function Tj(e,t){if(e.getConfig().readOnly)return!1;var n=Ej(e,t)&&X.toSlateNode(e,t);return B.isVoid(e,n)}function Ej(e,t){return sO(t)&&X.hasDOMNode(e,t)}function Dj(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),a=X.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var o=a.type!==`None`;if(r||o){var s=KD.get(t),c=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(c=!0),o&&c&&r){var l=X.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(l&&U.equals(l,r)){var u=!0;if(U.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,m=void 0;(m=p[f])&&m.matches(`table`)&&(u=!1),(m=p[f-1])&&m.matches(`table`)&&(u=!1)}}if(u)return}}if(!r||X.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&X.toDOMRange(t,r);if(h){U.isBackward(r)?a.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):a.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest(`[data-slate-spacer]`)){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var _=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Cj(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:Sj(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:Cj(e)?e:{block:`start`,inline:`nearest`}}(t);(function(e,t){t===void 0&&(t=`auto`);var n=`scrollBehavior`in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,a=e.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:t}):(r.scrollTop=i,r.scrollLeft=a)}))})(Sj(e,r),r.behavior)}})(g,{scrollMode:`if-needed`,boundary:i.scroll?s.parentElement:_,block:`end`,behavior:`smooth`}),delete g.getBoundingClientRect}}else a.removeAllRanges();setTimeout((function(){h&&hO&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var Oj=new WeakMap,kj=new WeakMap,Kue={bold:`mod+b`,compose:[`down`,`left`,`right`,`up`,`backspace`,`enter`],moveBackward:`left`,moveForward:`right`,moveWordBackward:`ctrl+left`,moveWordForward:`ctrl+right`,deleteBackward:`shift?+backspace`,deleteForward:`shift?+delete`,extendBackward:`shift+left`,extendForward:`shift+right`,italic:`mod+i`,splitBlock:`shift?+enter`,undo:`mod+z`,tab:`tab`,selectAll:`mod+a`},que={moveLineBackward:`opt+up`,moveLineForward:`opt+down`,moveWordBackward:`opt+left`,moveWordForward:`opt+right`,deleteBackward:[`ctrl+backspace`,`ctrl+h`],deleteForward:[`ctrl+delete`,`ctrl+d`],deleteLineBackward:`cmd+shift?+backspace`,deleteLineForward:[`cmd+shift?+delete`,`ctrl+k`],deleteWordBackward:`opt+shift?+backspace`,deleteWordForward:`opt+shift?+delete`,extendLineBackward:`opt+shift+up`,extendLineForward:`opt+shift+down`,redo:`cmd+shift+z`,transposeCharacter:`ctrl+t`},Jue={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},Aj=function(e){var t=Kue[e],n=que[e],r=Jue[e],i=t&&mx(t),a=n&&mx(n),o=r&&mx(r);return function(e){return!(!i||!i(e))||!!(mO&&a&&a(e))||!(mO||!o||!o(e))}},jj={isBold:Aj(`bold`),isCompose:Aj(`compose`),isMoveBackward:Aj(`moveBackward`),isMoveForward:Aj(`moveForward`),isDeleteBackward:Aj(`deleteBackward`),isDeleteForward:Aj(`deleteForward`),isDeleteLineBackward:Aj(`deleteLineBackward`),isDeleteLineForward:Aj(`deleteLineForward`),isDeleteWordBackward:Aj(`deleteWordBackward`),isDeleteWordForward:Aj(`deleteWordForward`),isExtendBackward:Aj(`extendBackward`),isExtendForward:Aj(`extendForward`),isExtendLineBackward:Aj(`extendLineBackward`),isExtendLineForward:Aj(`extendLineForward`),isItalic:Aj(`italic`),isMoveLineBackward:Aj(`moveLineBackward`),isMoveLineForward:Aj(`moveLineForward`),isMoveWordBackward:Aj(`moveWordBackward`),isMoveWordForward:Aj(`moveWordForward`),isRedo:Aj(`redo`),isSplitBlock:Aj(`splitBlock`),isTransposeCharacter:Aj(`transposeCharacter`),isUndo:Aj(`undo`),isTab:Aj(`tab`),isSelectAll:Aj(`selectAll`)};function Mj(e){e.preventDefault()}var Yue={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(vO&&!i&&wj(n,r.target)){var a=n.selection,o=r.inputType,s=r.dataTransfer||r.data||void 0;if(o!==`insertCompositionText`&&o!==`deleteCompositionText`){if(r.preventDefault(),!o.startsWith(`delete`)||o.startsWith(`deleteBy`)){var c=qE(r.getTargetRanges(),1)[0];if(c){var l=X.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&U.equals(a,l)||G.select(n,l)}}if(a&&U.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;B.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:B.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:B.deleteForward(n);break;case`deleteContentBackward`:B.deleteBackward(n);break;case`deleteEntireSoftLine`:B.deleteBackward(n,{unit:`line`}),B.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:B.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:B.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:B.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:B.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:B.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:B.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:B.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!tO.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&B.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&wj(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||oO(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&sO(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(z.isElement(c)&&!n.isVoid(c))return}gO&&o.getSelection()?.removeAllRanges(),QD.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,hO&&e.target!==r?r.focus():QD.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Ej(n,e.target)&&sO(e.target)){var r=X.toSlateNode(n,e.target),i=X.findPath(n,r);if(B.hasPath(n,i)&&V.get(n,i)===r){var a=B.start(n,i),o=B.end(n,i),s=B.void(n,{at:a}),c=B.void(n,{at:o});if(s&&c&&H.equals(s[1],c[1])){var l=B.range(n,a);G.select(n,l)}}}},compositionstart:function(e,t,n){if(wj(n,e.target)){var r=n.selection;if(r&&U.isExpanded(r)&&(B.deleteFragment(n),Promise.resolve().then((function(){Dj(t,n,!0)}))),r&&U.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;Oj.set(n,a),kj.set(n,i)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(wj(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(_O||hO)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=U.isBackward(i)?i.focus:i.anchor,o=qE(B.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=qE(B.node(n,a.path.slice(0,s+1)),1)[0];if(z.isElement(c)&&((gO||hO)&&c.type===`link`||c.type===`code`)){X.setNewKey(o);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var u=X.getLeftLengthOfMaxLength(n);u<l.length?(X.toDOMRange(n,i).startContainer.textContent=Oj.get(n)||``,u>0&&B.insertText(n,l.slice(0,u)),t.changeViewState()):B.insertText(n,l)}else B.insertText(n,l);gO||setTimeout((function(){var e=n.selection;if(e!=null){var t=kj.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=Oj.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){wj(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&wj(n,r.target)){if(function(e,t){var n=PD.get(e),r=n&&n.getMenus(),i=ID.get(e),a=i&&i.getMenus(),o=GE(GE({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&eoe(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),jj.isTab(r))return Mj(r),void n.handleTab();if(jj.isRedo(r))return Mj(r),void(typeof n.redo==`function`&&n.redo());if(jj.isUndo(r))return Mj(r),void(typeof n.undo==`function`&&n.undo());if(jj.isMoveLineBackward(r))return Mj(r),void G.move(n,{unit:`line`,reverse:!0});if(jj.isMoveLineForward(r))return Mj(r),void G.move(n,{unit:`line`});if(jj.isExtendLineBackward(r))return Mj(r),void G.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(jj.isExtendLineForward(r))return Mj(r),void G.move(n,{unit:`line`,edge:`focus`});if(jj.isMoveBackward(r))return Mj(r),void(i&&U.isCollapsed(i)?G.move(n,{reverse:!0}):G.collapse(n,{edge:`start`}));if(jj.isMoveForward(r))return Mj(r),void(i&&U.isCollapsed(i)?G.move(n):G.collapse(n,{edge:`end`}));if(jj.isMoveWordBackward(r))return Mj(r),i&&U.isExpanded(i)&&G.collapse(n,{edge:`focus`}),void G.move(n,{unit:`word`,reverse:!0});if(jj.isMoveWordForward(r))return Mj(r),i&&U.isExpanded(i)&&G.collapse(n,{edge:`focus`}),void G.move(n,{unit:`word`});if(jj.isSelectAll(r))return Mj(r),void n.selectAll();if(vO){if((_O||gO)&&i&&(jj.isDeleteBackward(r)||jj.isDeleteForward(r))&&U.isCollapsed(i)){var a=V.parent(n,i.anchor.path);if(z.isElement(a)&&B.isVoid(n,a)&&B.isInline(n,a))return r.preventDefault(),void G.delete(n,{unit:`block`})}}else{if(jj.isBold(r)||jj.isItalic(r)||jj.isTransposeCharacter(r))return void Mj(r);if(jj.isSplitBlock(r))return Mj(r),void B.insertBreak(n);if(jj.isDeleteBackward(r))return Mj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n));if(jj.isDeleteForward(r))return Mj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n));if(jj.isDeleteLineBackward(r))return Mj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n,{unit:`line`}));if(jj.isDeleteLineForward(r))return Mj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n,{unit:`line`}));if(jj.isDeleteWordBackward(r))return Mj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n,{unit:`word`}));if(jj.isDeleteWordForward(r))return Mj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!vO&&!n.getConfig().readOnly&&wj(n,e.target)){e.preventDefault();var r=e.key;B.insertText(n,r)}},copy:function(e,t,n){var r=e;if(wj(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&wj(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(U.isExpanded(i))B.deleteFragment(n);else{var o=V.parent(n,i.anchor.path);B.isVoid(n,o)&&G.delete(n)}}},paste:function(e,t,n){tO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&wj(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void tO.set(n,!1);if(!vO||function(e){return e.clipboardData&&e.clipboardData.getData(`text/plain`)!==``&&e.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(Ej(n,e.target)){var r=X.toSlateNode(n,e.target);B.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Ej(n,r.target)&&!n.getConfig().readOnly){var i=X.toSlateNode(n,r.target),a=X.findPath(n,i);if(B.isVoid(n,i)||B.void(n,{at:a,voids:!0})){var o=B.range(n,a);G.select(n,o)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Ej(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Ej(n,r.target)&&i!=null&&!(vO&&gO&&i.files.length>0)){r.preventDefault();var a=n.selection,o=X.findEventRange(n,r);G.select(n,o),t.isDraggingInternally&&=(a&&G.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},Xue=1,Zue=function(){function e(e){var t=this;this.id=Xue++,this.$textArea=null,this.$progressBar=K(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=K(`<div class="w-e-max-length-info"></div>`),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Hy((function(){(function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||i)){var a=X.findDocumentOrShadowRoot(t),o=a.activeElement,s=X.toDOMNode(t,t),c=a.getSelection();if(o===s?(e.latestElement=o,QD.set(t,!0)):QD.delete(t),!c)return G.deselect(t);var l=c.anchorNode,u=c.focusNode,d=wj(t,l)||Tj(t,l),f=wj(t,u)||Tj(t,u);if(d&&f){var p=X.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});G.select(t,p)}else G.deselect(t)}})(t,t.editorInstance)}),100);var n=K(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=K(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=K(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,Kk((function(){var e=t.editorInstance,n=X.getWindow(e);n.document.addEventListener(`selectionchange`,t.onDOMSelectionChange),e.on(`destroyed`,(function(){n.document.removeEventListener(`selectionchange`,t.onDOMSelectionChange)})),r.on(`click`,(function(){return e.hidePanelOrModal()})),e.on(`change`,t.changeViewState.bind(t));var i=e.getConfig().onChange;i&&e.on(`change`,(function(){return i(e)})),t.onFocusAndOnBlur(),e.on(`change`,t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,`editorInstance`,{get:function(){var e=MD.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;t!=null&&(Ty(Yue,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,Hy((function(){r.emit(`scroll`)}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,i=n.onFocus;this.latestEditorSelection=t.selection,t.on(`change`,(function(){e.latestEditorSelection==null&&t.selection!=null?setTimeout((function(){return i&&i(t)})):e.latestEditorSelection!=null&&t.selection==null&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-X.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+`/`+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css(`width`,e+`%`),e>=100&&setTimeout((function(){t.hide(),t.css(`width`,`0`),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;Gue(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var i=t.isEmpty();if(i&&!e.showPlaceholder&&!e.isComposing){if(e.$placeholder==null){var a=K(`<div class="w-e-text-placeholder">`+r+`</div>`);e.$textAreaContainer.append(a),e.$placeholder=a}e.$placeholder.show(),e.showPlaceholder=!0;return}!i&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}}(this,t),Kk((function(){Dj(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function Nj(e){e.removeAttr(`width`),e.removeAttr(`height`),e.removeAttr(`fill`),e.removeAttr(`class`),e.removeAttr(`t`),e.removeAttr(`p-id`);var t=e.children();t.length&&Nj(t)}function Pj(){return K(`<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>`)}function Fj(){return K(`<div class="w-e-bar-divider"></div>`)}function Ij(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=mO?`cmd`:`ctrl`;r=r.replace(`mod`,a)}if(i)r&&(e.attr(`data-tooltip`,r),e.addClass(`w-e-menu-tooltip-v5`),e.addClass(`tooltip-right`));else{var o=r?n+`
`+r:n;e.attr(`data-tooltip`,o),e.addClass(`w-e-menu-tooltip-v5`)}}}NE(`match`,(function(e,t,n){return[function(t){var n=yC(this),r=t==null?void 0:QC(t,e);return r?qC(r,t,n):new RegExp(t)[e](vT(n))},function(e){var r=GC(this),i=vT(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return LE(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=LE(r,i))!==null;){var u=vT(s[0]);c[l]=u,u===``&&(r.lastIndex=PE(i,Nw(r.lastIndex),o)),l++}return l===0?null:c}]}));var Lj=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=K(`<div class="w-e-bar-item"></div>`),this.$button=K(`<button type="button"></button>`),this.disabled=!1,this.menu=t;var i=t.tag,a=t.width;if(i!==`button`)throw Error(`Invalid tag '`+i+`', expected 'button'`);var o=t.title,s=t.hotkey,c=s===void 0?``:s,l=t.iconSvg,u=l===void 0?``:l,d=this.$button;if(u){var f=K(u);Nj(f),d.append(f)}else d.text(o);Ij(d,u,o,c,n),n&&u&&d.append(K(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),Kk((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),Uj(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=Uj(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=Uj(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=Uj(this),t=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r=`disabled`;n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),Que=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return WE(t,e),t.prototype.onButtonClick=function(){},t}(Lj),Rj=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=RD.get(e);t??(t=new Set,RD.set(e,t)),t.add(this),zD.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=zD.get(this);e&&e.emit(`modalOrPanelShow`,this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=zD.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),$ue=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=K(`<div class="w-e-drop-panel"></div>`),n}return WE(t,e),t.prototype.genSelfElem=function(){return null},t}(Rj),ede=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=Pj();i.$button.append(a)}return i}return WE(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(e.getPanelContentElem!=null){var t=Uj(this);if(this.dropPanel==null){var n=new $ue(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var i=this.dropPanel;i.isShow?i.hide():(r=e.getPanelContentElem(t),i.renderContent(r),i.show())}var a=this.dropPanel;if(a.isShow){var o=this.$elem,s=o.offset().left,c=o.parents(`.w-e-bar`);s-c.offset().left>=c.width()/2?a.$elem.css({left:`none`,right:`0`}):a.$elem.css({left:`0`,right:`none`})}}},t}(Lj),tde=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=K(`<div class="w-e-modal"></div>`),r.width=0,n&&(r.width=n);var i=r.$elem;return i.on(`click`,(function(e){return e.stopPropagation()})),i.on(`keyup`,(function(e){e.code===`Escape`&&(r.hide(),t.restoreSelection())})),r}return WE(t,e),t.prototype.genSelfElem=function(){var e=this,t=K(`<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>`),n=zD.get(this);return t.on(`click`,(function(){e.hide(),n?.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr(`style`,``),t&&n.css(`width`,t+`px`),n.css(e)},t}(Rj);function zj(e,t,n){var r=K(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=K(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function Bj(e,t){var n=K(`<div class="button-container"></div>`),r=K(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var nde=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=K(`body`),i.modal=null,i.menu=n,i}return WE(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=Uj(this),t=this.menu.getModalPositionNode(e);return z.isElement(t)?ij(e,t,`modal`):rj(e)},t.prototype.handleModal=function(){var e=Uj(this),t=this.menu;if(this.modal==null){var n=new tde(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else (n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){t===void 0&&(t=!1);var n=Uj(this),r=this.menu;if(r.getModalContentElem!=null){var i=X.getTextarea(n),a=(X.getToolbar(n)?.getConfig()||{}).modalAppendToBody,o=r.getModalContentElem(n);if(e.renderContent(o),a)e.setStyle({left:`0`,right:`0`});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(i.$textAreaContainer)),e.show(),a||aj(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(Lj),rde=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=K(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return WE(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=K(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=K(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=K(`<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>`);o.append(s),o.addClass(`selected`)}o.append(K(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(Rj),ide=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=K(`<div class="w-e-bar-item"></div>`),this.$button=K(`<button type="button" class="select-button"></button>`),this.disabled=!1,this.selectList=null;var i=t.tag,a=t.title,o=t.width,s=t.iconSvg,c=s===void 0?``:s,l=t.hotkey,u=l===void 0?``:l;if(i!==`select`)throw Error(`Invalid tag '`+i+`', expected 'select'`);var d=this.$button;o&&d.css(`width`,o+`px`),d.attr(`data-menu-key`,e),Ij(d,c,a,u,n),this.$elem.append(d),this.menu=t,Kk((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),Uj(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=Uj(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new rde(t,n.selectPanelWidth);var r=this.selectList,i=n.getOptions(t);r.renderList(i),r.appendTo(this.$elem),r.show(),r.$elem.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=K(n).attr(`data-value`);e.onChange(r)}}))}else (r=this.selectList).isShow?r.hide():(i=n.getOptions(t),r.renderList(i),r.show())}},e.prototype.onChange=function(e){var t=Uj(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=Uj(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r=``,i=0;i<n;i++){var a=e[i];if(a.value===t){r=a.text;break}}return r}(t.getOptions(e),n.toString()),i=this.$button,a=Pj();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=Uj(this),t=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(t=!0);var r=`disabled`;t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),Vj=function(){function e(e){this.$elem=K(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=K(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=K(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=K(n);Nj(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=Pj();a.append(s),i.append(a);var c=this.$container;i.append(c);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var i=t.find(`button`),a=i.length;if(a!==0){var o=0;i.each((function(e){K(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),Hj=new WeakMap;function Uj(e){var t=LD.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function Wj(e,t,n){n===void 0&&(n=!1);var r=Hj.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new ede(e,t,n):o?new nde(e,t,n):new Que(e,t,n)}if(i===`select`&&(r=new ide(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return Hj.set(t,r),r}function ade(e,t){var n=e.selection;return n!=null&&!U.isCollapsed(n)&&!X.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))&&!!W.isText(t)}var ode=function(){function e(){var e=this;this.$elem=K(`<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>`),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=yx((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,i=r===void 0?null:r,a=n.menuKeys,o=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&z.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),Kk((function(){var t=e.getEditorInstance(),n=e.$elem;n.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),X.getTextarea(t).$textAreaContainer.append(n),t.on(`change`,e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on(`scroll`,r),t.on(`fullScreen`,r),t.on(`unFullScreen`,r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass(`w-e-bar-show`).addClass(`w-e-bar-hidden`),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass(`w-e-bar-bottom`):e.removeClass(`w-e-bar-bottom`)},e.prototype.show=function(){this.$elem.removeClass(`w-e-bar-hidden`).addClass(`w-e-bar-show`),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;Kk((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if(e!==`|`)t.registerSingleItem(e);else{var r=Fj();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=bO[e];if(i==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof i!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);r=i(),n[e]=r}var a=Wj(e,r);this.hoverbarItems.push(a),LD.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),z.isElement(e)){var r=ij(t,e,`bar`);n.css(r),aj(t,n);return}if(W.isText(e))return r=rj(t),n.css(r),void aj(t,n);throw Error(`hoverbar.setPosition error, current selected node is not elem nor text`)},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],i=function(i){var a=t[i],o=a.match,s=a.menuKeys,c=s===void 0?[]:s,l=o||function(e,t){return X.checkNodeType(t,i)},u=qE(B.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(u!=null)return n=u[0],r=c,`break`};for(var a in t)if(i(a)===`break`)break;return n==null||r.length===0?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=FD.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=e===void 0?{}:e,n=t.text;return n&&n.match==null&&(n.match=ade),t},e.prototype.isSamePath=function(e,t){if(e==null||t==null)return!1;var n=X.findPath(null,e),r=X.findPath(null,t);return H.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function Gj(e,t,n,r){if(WD.set(e,t),GD.set(e,n),z.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return Gj(t,n,e,r)})),B.isVoid(r,e)){var a=qE(qE(V.texts(e),1)[0],1)[0];WD.set(a,0),GD.set(a,e)}}}function sde(e){var t=e.selector,n=t===void 0?``:t,r=e.config,i=r===void 0?{}:r,a=e.content,o=e.html,s=e.plugins,c=s===void 0?[]:s,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];_T.withoutSaving(t,(()=>{B.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];_T.withoutSaving(t,(()=>{B.withoutNormalizing(t,(()=>{for(var e of r.map(y_.inverse).reverse())t.apply(e)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:a}=i,o=a[a.length-1],s=o&&o[o.length-1],c=((e,t)=>!(!t||e.type!==`set_selection`||t.type!==`set_selection`))(e,s),l=_T.isSaving(t),u=_T.isMerging(t);if(l??=((e,t)=>e.type!==`set_selection`||e.properties!=null&&e.newProperties!=null)(e),l){if(u??=o!=null&&(r.length!==0||((e,t)=>e.type===`set_selection`||!(!t||e.type!==`insert_text`||t.type!==`insert_text`||e.offset!==t.offset+t.text.length||!H.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!H.equals(e.path,t.path)))(e,s)||c),o&&u)c&&o.pop(),o.push(e);else{var d=[e];a.push(d)}for(;a.length>100;)a.shift();(e=>e.type!==`set_selection`)(e)&&(i.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,i=t.insertFragment,a=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=X.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=X.getLeftLengthOfMaxLength(t);n<=0||n<V.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(e.length!==1)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(X.getLeftLengthOfMaxLength(t)<V.string(n).length)return;i(e)}else i(e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e)if(t.getConfig().maxLength){var r=X.getLeftLengthOfMaxLength(t);if(!(r<=0)){var i=document.createElement(`div`);i.innerHTML=e,r<Array.from(i.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===rO.TEXT_NODE?e+(t.textContent||``):n===rO.ELEMENT_NODE?kA.has(r.toLowerCase())?e:e+(t.textContent||``):e:e}),``).length||a(e,n)}}else a(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=$A(t);if(r.on(e,n),e===`destroyed`&&tj(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),tj(t,i)}},t.once=function(e,n){$A(t).once(e,n)},t.off=function(e,n){$A(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=$A(t);r.emit.apply(r,JE([e],qE(n))),e===`destroyed`&&(Pue(t).forEach((function(e){return r.off(`destroyed`,e)})),Fue(t))},t}(function(e){var t=e;return t.select=function(e){G.select(t,e)},t.deselect=function(){var n=t.selection,r=X.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&G.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||G.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=$D.get(t);e!=null&&(t.focus(),G.select(t,e))},t.getSelectionPosition=function(){return rj(t)},t.getNodePosition=function(e){return ij(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=qE(U.edges(e),2),r=n[0],i=n[1],a=qE(B.edges(t,[]),2),o=a[0],s=a[1];return!(!S_.equals(r,o)||!S_.equals(i,s))},t.selectAll=function(){var e=B.start(t,[]),n=B.end(t,[]);G.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,a=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,a,o,s,c,l,u,d=[];switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:try{for(var f=KE(B.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=qE(p.value,2),h=m[0],g=m[1],_=X.findKey(t,h);d.push([g,_])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}break;case`insert_node`:case`remove_node`:case`merge_node`:case`split_node`:try{for(var v=KE(B.levels(t,{at:H.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=qE(y.value,2);h=b[0],g=b[1],_=X.findKey(t,h),d.push([g,_])}}catch(e){a={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}break;case`move_node`:try{for(var x=KE(B.levels(t,{at:H.common(H.parent(e.path),H.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=qE(S.value,2);h=C[0],g=C[1],_=X.findKey(t,h),d.push([g,_])}}catch(e){s={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}}i(e);try{for(var w=KE(d),T=w.next();!T.done;T=w.next()){var E=qE(T.value,2);g=E[0],_=E[1],h=qE(B.node(t,g),1)[0],XD.set(h,_)}}catch(e){l={error:e}}finally{try{T&&!T.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if(n!==`line`)return a(n);if(e.selection&&U.isCollapsed(e.selection)){var r=B.above(e,{match:function(t){return B.isBlock(e,t)},at:e.selection});if(r){var i=qE(r,2)[1],o=function(e,t){var n=B.range(e,U.end(t)),r=Array.from(B.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(Xk(e,B.range(e,r[i]),n))return B.range(e,r[i],n);if(r.length<2)return B.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)Xk(e,B.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return B.range(e,r[a],n)}(t,B.range(e,i,e.selection.anchor));U.isCollapsed(o)||G.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&$D.set(t,e),t.emit(`change`),n()},t.handleTab=function(){t.insertText(` `)},t.getHtml=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return qk(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return V.string(e)})).join(`
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:B.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=B.nodes(t,{at:[],universal:!0});try{for(var s=KE(o),c=s.next();!c.done;c=s.next()){var l=qE(c.value,1)[0];if(z.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=Jk(X.findKey(t,l).id);a.push(GE(GE({},l),{id:u}))}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=e===void 0?[]:e;if(n.length>1)return!1;var r=n[0];if(r==null)return!0;if(z.isElement(r)&&r.type===`paragraph`){var i=r.children,a=i===void 0?[]:i;if(a.length>1)return!1;var o=a[0];if(o==null||W.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){G.delete(t,{at:{anchor:B.start(t,[]),focus:B.end(t,[])}}),t.children.length===0&&G.insertNodes(t,[{type:`paragraph`,children:[{text:``}]}])},t.getParentNode=function(e){return X.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e){var r=document.createElement(`div`);r.innerHTML=e;var i=Array.from(r.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===rO.TEXT_NODE||t===rO.ELEMENT_NODE&&!kA.has(n.toLowerCase())})),i.length!==0){var a=t.selection;if(a!=null){var o=null;X.isSelectedEmptyParagraph(t)&&!n&&(o=[a.focus.path[0]]),r.setAttribute(`hidden`,`true`),document.body.appendChild(r);var s=0;i.forEach((function(e){var n=e.nodeType,r=e.nodeName,i=e.textContent,a=i===void 0?``:i;if(n!==rO.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(Zk.includes(r.toLowerCase()))c=!0;else for(var l in eA)if(o.matches(l)){c=!0;break}if(c){var u=SA(K(o),t);Array.isArray(u)?(u.forEach((function(e){return AA(t,e)})),s++):(AA(t,u),s++),X.isSelectedVoidNode(t)&&t.move(1);return}var d=window.getComputedStyle(o).display;X.isSelectedEmptyParagraph(t)||d.indexOf(`inline`)<0&&t.insertBreak(),t.dangerouslyInsertHtml(o.innerHTML,!0)}else t.insertText(`
`);else{if(!a||!a.trim())return;t.insertNode({text:a})}})),s&&o&&X.isEmptyPath(t,o)&&G.removeNodes(t,{at:o}),r.remove()}}}},t.setHtml=function(e){e===void 0&&(e=``);var n=t.isDisabled(),r=t.isFocused(),i=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var a=wA(t,e);if(G.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(B.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in bO)e.push(t);return e},t.getConfig=function(){var e=BD.get(t);if(e==null)throw Error(`Can not get editor config`);return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(n===void 0?{}:n)[e]||{}},t.alert=function(e,n){n===void 0&&(n=`info`);var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=jA(Oie());return t.id=`wangEditor-`+ rue++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),QD.set(t,!0),e){var n=B.end(t,[]);G.select(t,n)}else{var r=$D.get(t);r?G.select(t,r):G.select(t,B.start(t,[]))}},t.isFocused=function(){return!!QD.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),G.deselect(t),QD.set(t,!1)},t.updateView=function(){X.getTextarea(t).changeViewState();var e=X.getToolbar(t);e&&e.changeToolbarState();var n=X.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=X.getTextarea(t);e.destroy(),jD.delete(t),MD.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),PD.delete(t),ND.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),ID.delete(t),FD.delete(r)),t.isDestroyed=!0,t.emit(`destroyed`)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n=`编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能`;n+=`
You has disabled editor scroll, please do this yourself`,console.warn(n);return}var r=K(`#`+e);if(r.length!==0){var i=r[0];if(!X.hasDOMNode(t,i))return n=`Element (found by id is '`+e+`') is not in editor DOM`,n+=`
通过 id '`+e+`' 找到的 element 不在 editor DOM 之内`,void console.error(n,i);var a=X.getTextarea(t),o=a.$textAreaContainer,s=a.$scroll,c=r.offset().top,l=o.offset().top;s[0].scrollBy({top:c-l,behavior:`smooth`})}},t.showProgressBar=function(e){e<1||X.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){RD.get(t)?.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return X.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=X.getToolbar(t);n&&(e=n.$box);var r=X.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);r.addClass(`w-e-full-screen-container`);var i=r.css(`z-index`);r.attr(`data-z-index`,i.toString()),t.isFullScreen=!0,t.emit(`fullScreen`)}},t.unFullScreen=function(){if(t.isFullScreen){var e=X.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass(`w-e-full-screen-container`),t.isFullScreen=!1,t.emit(`unFullScreen`)}),200)}},t.getEditableContainer=function(){return X.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return CA(e,`data-w-e-textarea`,t)}(l,n))throw Error(`Repeated create editor by selector '`+n+`'`);var u=function(e){e===void 0&&(e={});var t=bx(yO),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return Ty(t,(function(e,t){n[t]=GE(GE({},e),i[t]||{})})),delete e.MENU_CONF,GE({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+`:
`+e)}},e)}(i);BD.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=wA(l,o)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:`paragraph`,children:[{text:``}]}]),X.normalizeContent(l),n){var p=new Zue(n);jD.set(l,p),MD.set(p,l),p.changeViewState(),Kk((function(){var e=p.$scroll;e!=null&&e.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,e)}));var m=void 0;Object.keys(f).length>0&&(m=new ode,FD.set(m,l),ID.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return Gj(e,t,l,l)}));var h=u.onCreated,g=u.onDestroyed;return h&&l.on(`created`,(function(){return h(l)})),g&&l.on(`destroyed`,(function(){return g(l)})),Kk((function(){return l.emit(`created`)})),l}var cde=hE(`splice`),lde=J.TypeError,ude=Math.max,dde=Math.min;fT({target:`Array`,proto:!0,forced:!cde},{splice:function(e,t){var n,r,i,a,o,s,c=bC(this),l=Pw(c),u=nT(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=dde(ude(Mw(t),0),l-u)),l+n-r>9007199254740991)throw lde(`Maximum allowed length exceeded`);for(i=Hw(c,r),a=0;a<r;a++)(o=u+a)in c&&zT(i,a,c[o]);if(i.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:delete c[s];for(a=l;a>l-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a<n;a++)c[a+u]=arguments[a+2];return c.length=l-r+n,i}});var fde=function(){function e(e,t){var n=this;this.$toolbar=K(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=yx((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=K(e);if(r.length===0)throw Error(`Cannot find toolbar DOM by selector '`+e+`'`);this.$box=r;var i=this.$toolbar;i.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),r.append(i),Kk((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on(`change`,n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t=``,n=this.$toolbar,r=this.config,i=r.toolbarKeys,a=i===void 0?[]:i,o=r.insertKeys,s=o===void 0?{index:0,keys:[]}:o,c=r.excludeKeys,l=c===void 0?[]:c,u=bx(a);s.keys.length>0&&(typeof s.keys==`string`&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){u.splice(s.index+t,0,e)})));var d=u.filter((function(e){if(typeof e==`string`){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),f=d.length;d.forEach((function(r,i){if(r===`|`){if(i===0||i+1===f||t===`|`)return;var a=Fj();n.append(a),t=r;return}if(typeof r==`string`)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t=`group`}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new Vj(e)}(e),i=e.menuKeys,a=i===void 0?[]:i,o=this.config.excludeKeys,s=o===void 0?[]:o;a.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof Vj,i=this.menus,a=i[e];if(a==null){var o=bO[e];if(o==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof o!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);a=o(),i[e]=a}else console.warn(`Duplicated toolbar menu key '`+e+`'
重复注册了菜单栏 menu '`+e+`'`);var s=Wj(e,a,r);this.toolbarItems.push(s),LD.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=ND.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),pde=bw.EXISTS,mde=tw.f,Kj=Function.prototype,hde=Y(Kj.toString),qj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gde=Y(qj.exec);function Jj(e){var t=e.server,n=t===void 0?``:t,r=e.fieldName,i=r===void 0?``:r,a=e.maxFileSize,o=a===void 0?10485760:a,s=e.maxNumberOfFiles,c=s===void 0?100:s,l=e.meta,u=l===void 0?{}:l,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,m=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,_=e.timeout,v=_===void 0?1e4:_,y=e.onBeforeUpload,b=y===void 0?function(e){return e}:y,x=e.onSuccess,S=x===void 0?function(e,t){}:x,C=e.onError,w=C===void 0?function(e,t,n){console.error(e.name+` upload error`,t,n)}:C,T=e.onProgress,E=T===void 0?function(e){}:T;if(!n)throw Error(`Cannot get upload server address
没有配置上传地址`);if(!i)throw Error(`Cannot get fieldName
没有配置 fieldName`);var D=n;f&&(D=function(e,t){var n=qE(e.split(`#`),2),r=n[0],i=n[1],a=[];Ty(t,(function(e,t){a.push(t+`=`+e)}));var o=a.join(`&`);return r=r.indexOf(`?`)>0?r+`&`+o:r+`?`+o,i?r+`#`+i:r}(D,u));var O=new mS({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(Tse,{endpoint:D,headers:m,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:v});return O.on(`upload-success`,(function(e,t){var n=t.body,r=n===void 0?{}:n;try{S(e,r)}catch(e){console.error(`wangEditor upload file - onSuccess error`,e)}O.removeFile(e.id)})),O.on(`progress`,(function(e){e<1||E(e)})),O.on(`upload-error`,(function(e,t,n){try{w(e,t,n)}catch(e){console.error(`wangEditor upload file - onError error`,e)}O.removeFile(e.id)})),O.on(`restriction-failed`,(function(e,t){try{w(e,t)}catch(e){console.error(`wangEditor upload file - onError error`,e)}O.removeFile(e.id)})),O}function Yj(e){return Yj=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Yj(e)}function _de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){_de(e,t,n[t])}))}return e}function Zj(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Qj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $j(e,t,n){return t&&Qj(e.prototype,t),n&&Qj(e,n),e}function eM(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function tM(e,t){if(t&&(Yj(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return eM(e)}function nM(e){return nM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nM(e)}function rM(e,t){return rM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rM(e,t)}function iM(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rM(e,t)}BC&&!pde&&mde(Kj,`name`,{configurable:!0,get:function(){try{return gde(qj,hde(this))[1]}catch{return``}}});var vde={type:`logger`,log:function(e){this.output(`log`,e)},warn:function(e){this.output(`warn`,e)},error:function(e){this.output(`error`,e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},aM=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zj(this,e),this.init(t,n)}return $j(e,[{key:`init`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||vde,this.options=t,this.debug=t.debug}},{key:`setDebug`,value:function(e){this.debug=e}},{key:`log`,value:function(){var e=[...arguments];return this.forward(e,`log`,``,!0)}},{key:`warn`,value:function(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}},{key:`error`,value:function(){var e=[...arguments];return this.forward(e,`error`,``)}},{key:`deprecate`,value:function(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}},{key:`forward`,value:function(e,t,n,r){return r&&!this.debug?null:(typeof e[0]==`string`&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}},{key:`create`,value:function(t){return new e(this.logger,Xj({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),oM=function(){function e(){Zj(this,e),this.observers={}}return $j(e,[{key:`on`,value:function(e,t){var n=this;return e.split(` `).forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:`off`,value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:`emit`,value:function(e){var t=[...arguments].slice(1);this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,t)})),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach((function(n){n.apply(n,[e].concat(t))}))}}]),e}();function sM(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function cM(e){return e==null?``:``+e}function yde(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function lM(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function uM(e,t,n){var r=lM(e,t,Object);r.obj[r.k]=n}function dM(e,t){var n=lM(e,t),r=n.obj,i=n.k;if(r)return r[i]}function fM(e,t,n){var r=dM(e,n);return r===void 0?dM(t,n):r}function pM(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]):pM(e[r],t[r],n):e[r]=t[r]);return e}function mM(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var bde={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function xde(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return bde[e]})):e}var hM=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function gM(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;a<r.length;++a){if(!i||typeof i[r[a]]==`string`&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,s=r.slice(a,a+o).join(n),c=i[s];c===void 0&&r.length>a+o;)o++,c=i[s=r.slice(a,a+o).join(n)];if(c===void 0)return;if(typeof c==`string`)return c;if(s&&typeof c[s]==`string`)return c[s];var l=r.slice(a+o).join(n);return l?gM(c,l,n):void 0}i=i[r[a]]}return i}}var Sde=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return Zj(this,t),n=tM(this,nM(t).call(this)),hM&&oM.call(eM(n)),n.data=e||{},n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return iM(t,oM),$j(t,[{key:`addNamespaces`,value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:`removeNamespaces`,value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o=[e,t];n&&typeof n!=`string`&&(o=o.concat(n)),n&&typeof n==`string`&&(o=o.concat(i?n.split(i):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`));var s=dM(this.data,o);return s||!a||typeof n!=`string`?s:gM(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:`addResource`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=this.options.keySeparator;a===void 0&&(a=`.`);var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(r=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t),uM(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}},{key:`addResources`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var i in n)typeof n[i]!=`string`&&Object.prototype.toString.apply(n[i])!==`[object Array]`||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit(`added`,e,t,n)}},{key:`addResourceBundle`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(`.`)>-1&&(r=n,n=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t);var s=dM(this.data,o)||{};r?pM(s,n,i):s=Xj({},s,n),uM(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}},{key:`removeResourceBundle`,value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}},{key:`hasResourceBundle`,value:function(e,t){return this.getResource(e,t)!==void 0}},{key:`getResourceBundle`,value:function(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?Xj({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:`getDataByLanguage`,value:function(e){return this.data[e]}},{key:`toJSON`,value:function(){return this.data}}]),t}(),_M={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},vM={},yM=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zj(this,t),n=tM(this,nM(t).call(this)),hM&&oM.call(eM(n)),yde([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,eM(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=aM.create(`translator`),n}return iM(t,oM),$j(t,[{key:`changeLanguage`,value:function(e){e&&(this.language=e)}},{key:`exists`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var n=this.resolve(e,t);return n&&n.res!==void 0}},{key:`extractFromKey`,value:function(e,t){var n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);var r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return typeof i==`string`&&(i=[i]),{key:e,namespaces:i}}},{key:`translate`,value:function(e,n,r){var i=this;if(Yj(n)!==`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||={},e==null)return``;Array.isArray(e)||(e=[String(e)]);var a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,o=this.extractFromKey(e[e.length-1],n),s=o.key,c=o.namespaces,l=c[c.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()===`cimode`)return d?l+(n.nsSeparator||this.options.nsSeparator)+s:s;var f=this.resolve(e,n),p=f&&f.res,m=f&&f.usedKey||s,h=f&&f.exactUsedKey||s,g=Object.prototype.toString.apply(p),_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&p&&typeof p!=`string`&&typeof p!=`boolean`&&typeof p!=`number`&&_.indexOf(g)<0&&(typeof v!=`string`||g!==`[object Array]`)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,p,Xj({},n,{ns:c})):`key '${s} (${this.language})' returned an object instead of string.`;if(a){var b=g===`[object Array]`,x=b?[]:{},S=b?h:m;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var w=`${S}${a}${C}`;x[C]=this.translate(w,Xj({},n,{joinArrays:!1,ns:c})),x[C]===w&&(x[C]=p[C])}p=x}}else if(y&&typeof v==`string`&&g===`[object Array]`)(p=p.join(v))&&(p=this.extendTranslation(p,e,n,r));else{var T=!1,E=!1,D=n.count!==void 0&&typeof n.count!=`string`,O=t.hasDefaultValue(n),k=D?this.pluralResolver.getSuffix(u,n.count):``,A=n[`defaultValue${k}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=A),this.isValidLookup(p)||(E=!0,p=s);var j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,M=O&&A!==p&&this.options.updateMissing;if(E||T||M){if(this.logger.log(M?`updateKey`:`missingKey`,u,l,s,M?A:p),a){var ee=this.resolve(s,Xj({},n,{keySeparator:!1}));ee&&ee.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 te=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&ne&&ne[0])for(var re=0;re<ne.length;re++)te.push(ne[re]);else this.options.saveMissingTo===`all`?te=this.languageUtils.toResolveHierarchy(n.lng||this.language):te.push(n.lng||this.language);var ie=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,M?r:j,M,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,M?r:j,M,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?te.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){ie([e],s+t,n[`defaultValue${t}`]||A)}))})):ie(te,s,A))}p=this.extendTranslation(p,e,n,f,r),E&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(E||T)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:`extendTranslation`,value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Xj({},n,{interpolation:Xj({},this.options.interpolation,n.interpolation)}));var o,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);o=c&&c.length}var l=n.replace&&typeof n.replace!=`string`?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=Xj({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate.apply(a,e.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f=typeof d==`string`?[d]:d;return e!=null&&f&&f.length&&!1!==n.applyPostProcessor&&(e=_M.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Xj({i18nResolved:r},n):n,this)),e}},{key:`resolve`,value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof e==`string`&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;n=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var d=s.count!==void 0&&typeof s.count!=`string`,f=s.context!==void 0&&(typeof s.context==`string`||typeof s.context==`number`)&&s.context!==``,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!vM[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(vM[`${p[0]}-${e}`]=!0,o.logger.warn(`key "${n}" for languages "${p.join(`, `)}" won't get resolved as namespace "${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!!!`)),p.forEach((function(n){if(!o.isValidLookup(t)){i=n;var a,c,u=l,p=[u];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(p,l,n,e,s):(d&&(a=o.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(u+a),f&&p.push(u+=`${o.options.contextSeparator}${s.context}`),d&&p.push(u+=a));c=p.pop();)o.isValidLookup(t)||(r=c,t=o.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:`isValidLookup`,value:function(e){return!(e===void 0||!this.options.returnNull&&e===null||!this.options.returnEmptyString&&e===``)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:`hasDefaultValue`,value:function(e){var t=`defaultValue`;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}]),t}();function bM(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Cde=function(){function e(t){Zj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aM.create(`languageUtils`)}return $j(e,[{key:`getScriptPartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return null;var t=e.split(`-`);return t.length===2?null:(t.pop(),t[t.length-1].toLowerCase()===`x`?null:this.formatLanguageCode(t.join(`-`)))}},{key:`getLanguagePartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return e;var t=e.split(`-`);return this.formatLanguageCode(t[0])}},{key:`formatLanguageCode`,value:function(e){if(typeof e==`string`&&e.indexOf(`-`)>-1){var t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=bM(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=bM(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=bM(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:`isWhitelisted`,value:function(e){return this.logger.deprecate(`languageUtils.isWhitelisted`,`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:`isSupportedCode`,value:function(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:`getBestMatchFromCodes`,value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(e.indexOf(r)===0)return e}))}})),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t):null}},{key:`getFallbackCodes`,value:function(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),typeof e==`string`&&(e=[e]),Object.prototype.toString.apply(e)===`[object Array]`)return e;if(!t)return e.default||[];var n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}},{key:`toResolveHierarchy`,value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return typeof e==`string`&&e.indexOf(`-`)>-1?(this.options.load!==`languageOnly`&&a(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&a(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&a(this.getLanguagePartFromCode(e))):typeof e==`string`&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),wde=[{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`.split(`.`),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}],Tde={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e===0?2:1)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function Ede(){var e={};return wde.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Tde[t.fc]}}))})),e}var Dde=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zj(this,e),this.languageUtils=t,this.options=n,this.logger=aM.create(`pluralResolver`),this.rules=Ede()}return $j(e,[{key:`addRule`,value:function(e,t){this.rules[e]=t}},{key:`getRule`,value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:`needsPlural`,value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:`getPluralFormsOfKey`,value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:`getSuffixes`,value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:`getSuffix`,value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a=`plural`:a===1&&(a=``));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON===`v1`?a===1?``:typeof a==`number`?`_plural_${a.toString()}`:o():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn(`no plural rule found for: ${e}`),``}}]),e}(),Ode=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zj(this,e),this.logger=aM.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return $j(e,[{key:`init`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};var t=e.interpolation;this.escape=t.escape===void 0?xde:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?mM(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?mM(t.suffix):t.suffixEscaped||`}}`,this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||`,`,this.unescapePrefix=t.unescapeSuffix?``:t.unescapePrefix||`-`,this.unescapeSuffix=this.unescapePrefix?``:t.unescapeSuffix||``,this.nestingPrefix=t.nestingPrefix?mM(t.nestingPrefix):t.nestingPrefixEscaped||mM(`$t(`),this.nestingSuffix=t.nestingSuffix?mM(t.nestingSuffix):t.nestingSuffixEscaped||mM(`)`),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||`,`,this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0&&t.alwaysFormat,this.resetRegExp()}},{key:`reset`,value:function(){this.options&&this.init(this.options)}},{key:`resetRegExp`,value:function(){var e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,`g`);var t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,`g`);var n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,`g`)}},{key:`interpolate`,value:function(e,t,n,r){var i,a,o,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,`$$$$`)}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=fM(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,Xj({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(fM(t,c,o),l,n,Xj({},r,t,{interpolationkey:o}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){if((a=u(i[1].trim()))===void 0)if(typeof d==`function`){var n=d(e,i,r);a=typeof n==`string`?n:``}else{if(f){a=i[0];continue}s.logger.warn(`missed to pass in variable ${i[1]} for interpolating ${e}`),a=``}else typeof a==`string`||s.useRawValueToEscape||(a=cM(a));var c=t.safeValue(a);if(e=e.replace(i[0],c),f?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:`nest`,value:function(e,t){var n,r,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Xj({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,`"`);try{o=JSON.parse(i),t&&(o=Xj({},t,o))}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),c=u,l=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&typeof r!=`string`)return r;typeof r!=`string`&&(r=cM(r)),r||=(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),``),l&&(r=c.reduce((function(e,t){return i.format(e,t,a.lng,Xj({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),kde=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Zj(this,t),i=tM(this,nM(t).call(this)),hM&&oM.call(eM(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=aM.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return iM(t,oM),$j(t,[{key:`queueLoad`,value:function(e,t,n,r){var i=this,a=[],o=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s=`${e}|${t}`;!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(i.state[s]===1?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:`loaded`,value:function(e,t,n){var r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){(function(e,t,n,r){var i=lM(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],a[o].push(n)})(n.loaded,[i],a),function(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),n.pending.length!==0||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit(`loaded`,o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:`read`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,c)})):o(null,{})}},{key:`prepareLoading`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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.`),i&&i();typeof e==`string`&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t==`string`&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:`load`,value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:`reload`,value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:`loadOne`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,r=e.split(`|`),i=r[0],a=r[1];this.read(i,a,`read`,void 0,void 0,(function(r,o){r&&t.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,r),!r&&o&&t.logger.log(`${n}loaded namespace ${a} for language ${i}`,o),t.loaded(e,r,o)}))}},{key:`saveMissing`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!`):n!=null&&n!==``&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Xj({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Ade(){return{debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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(e){var t={};if(Yj(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),Yj(e[2])===`object`||Yj(e[3])===`object`){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!1}}}function xM(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.whitelist&&(e.whitelist&&e.whitelist.indexOf(`cimode`)<0&&(e.whitelist=e.whitelist.concat([`cimode`])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e}function SM(){}var CM=new(function(e){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Zj(this,t),e=tM(this,nM(t).call(this)),hM&&oM.call(eM(e)),e.options=xM(n),e.services={},e.logger=aM,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),tM(e,eM(e));setTimeout((function(){e.init(n,r)}),0)}return e}return iM(t,oM),$j(t,[{key:`init`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?typeof e==`function`?new e:e:null}if(typeof t==`function`&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate(`whitelist`,`option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.`),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate(`whitelist`,`options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.`),this.options=Xj({},Ade(),this.options,xM(t)),this.format=this.options.interpolation.format,n||=SM,!this.options.isClone){this.modules.logger?aM.init(r(this.modules.logger),this.options):aM.init(null,this.options);var i=new Cde(this.options);this.store=new Sde(this.options.resources,this.options);var a=this.services;a.logger=aM,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new Dde(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new Ode(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new kde(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,(function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new yM(this.services,this.options),this.translator.on(`*`,(function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&o[0]!==`dev`&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=sM(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn(`init: i18next is already initialized. You should call init just once!`),e.isInitialized=!0,e.options.isClone||e.logger.log(`initialized`,e.options),e.emit(`initialized`,e.options),s.resolve(r),n(t,r)};if(e.languages&&e.options.compatibilityAPI!==`v1`&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:`loadResources`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:SM,r=typeof e==`string`?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()===`cimode`)return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return a(e)})),this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,n)}else n(null)}},{key:`reloadResources`,value:function(e,t,n){var r=sM();return e||=this.languages,t||=this.options.ns,n||=SM,this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:`use`,value:function(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&_M.addPostProcessor(e),e.type===`3rdParty`&&this.modules.external.push(e),this}},{key:`changeLanguage`,value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=sM();this.emit(`languageChanging`,e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var a=typeof i==`string`?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){(function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit(`languageChanged`,i),n.logger.log(`languageChanged`,i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))})(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:`getFixedT`,value:function(e,t,n){var r=this,i=function e(t,i){var a;if(Yj(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=Xj({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var s=r.options.keySeparator||`.`,c=n?`${n}${s}${t}`:t;return r.t(c,a)};return typeof e==`string`?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:`t`,value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:`exists`,value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:`setDefaultNamespace`,value:function(e){this.options.defaultNS=e}},{key:`hasLoadedNamespace`,value:function(e){var t=this,n=arguments.length>1&&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 r=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if(r.toLowerCase()===`cimode`)return!0;var o=function(e,n){var r=t.services.backendConnector.state[`${e}|${n}`];return r===-1||r===2};if(n.precheck){var s=n.precheck(this,o);if(s!==void 0)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))}},{key:`loadNamespaces`,value:function(e,t){var n=this,r=sM();return this.options.ns?(typeof e==`string`&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:`loadLanguages`,value:function(e,t){var n=sM();typeof e==`string`&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:`dir`,value:function(e){return e||=this.languages&&this.languages.length>0?this.languages[0]:this.language,e?`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`.split(`.`).indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?`rtl`:`ltr`:`rtl`}},{key:`createInstance`,value:function(){return new t(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:`cloneInstance`,value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:SM,i=Xj({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=Xj({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new yM(a.services,a.options),a.translator.on(`*`,(function(e){var t=[...arguments].slice(1);a.emit.apply(a,[e].concat(t))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:`toJSON`,value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function wM(e,t){CM.addResourceBundle(e,`translation`,t,!0,!0)}CM.init({lng:`zh-CN`,resources:{}});var Z=CM.t.bind(CM);wM(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),wM(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var jde=Dp?{}.toString:function(){return`[object `+Op(this)+`]`};Dp||pp(Object.prototype,`toString`,jde,{unsafe:!0});var TM=Array.isArray||function(e){return uf(e)==`Array`},EM=function(){},Mde=[],DM=_f(`Reflect`,`construct`),OM=/^\s*(?:class|function)\b/,Nde=lf(OM.exec),Pde=!OM.exec(EM),kM=function(e){if(!hf(e))return!1;try{return DM(EM,Mde,e),!0}catch{return!1}},Fde=!DM||Qd((function(){var e;return kM(kM.call)||!kM(Object)||!kM((function(){e=!0}))||e}))?function(e){if(!hf(e))return!1;switch(Op(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Pde||!!Nde(OM,ep(e))}:kM,Ide=Bf(`species`),AM=Zd.Array,Lde=function(e,t){return new(function(e){var t;return TM(e)&&(t=e.constructor,(Fde(t)&&(t===AM||TM(t.prototype))||gf(t)&&(t=t[Ide])===null)&&(t=void 0)),t===void 0?AM:t}(e))(t===0?0:t)},jM=lf([].push),MM=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Pf(c),h=ff(m),g=gm(l,u),_=_p(h),v=0,y=d||Lde,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:jM(b,f)}else switch(e){case 4:return!1;case 7:jM(b,f)}return a?-1:r||i?i:b}},Rde={forEach:MM(0),map:MM(1),filter:MM(2),some:MM(3),every:MM(4),find:MM(5),findIndex:MM(6),filterReject:MM(7)}.forEach,NM=function(e,t){var n=[][e];return!!n&&Qd((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return Rde(this,e,arguments.length>1?arguments[1]:void 0)},PM=function(e){if(e&&e.forEach!==NM)try{Xf(e,`forEach`,NM)}catch{e.forEach=NM}};for(var FM in Xm)Xm[FM]&&PM(Zd[FM]&&Zd[FM].prototype);PM($m),wM(`en`,{common:{ok:`OK`,delete:`Delete`,enter:`Enter`},blockQuote:{title:`Quote`},codeBlock:{title:`Code block`},color:{color:`Font color`,bgColor:`Back color`,default:`Default color`,clear:`Clear back color`},divider:{title:`Divider`},emotion:{title:`Emotion`},fontSize:{title:`Font size`,default:`Default`},fontFamily:{title:`Font family`,default:`Default`},fullScreen:{title:`Full screen`},header:{title:`Header`,text:`Text`},image:{netImage:`Net image`,delete:`Delete image`,edit:`Edit image`,viewLink:`View link`,src:`Image src`,desc:`Description`,link:`Image link`},indent:{decrease:`Decrease`,increase:`Increase`},justify:{left:`Left`,right:`Right`,center:`Center`,justify:`Justify`},lineHeight:{title:`Line height`,default:`Default`},link:{insert:`Insert link`,text:`Link text`,url:`Link source`,unLink:`Unlink`,edit:`Edit link`,view:`View link`},textStyle:{bold:`Bold`,clear:`Clear styles`,code:`Inline code`,italic:`Italic`,sub:`Sub`,sup:`Sup`,through:`Through`,underline:`Underline`},undo:{undo:`undo`,redo:`Redo`},todo:{todo:`Todo`}}),wM(`zh-CN`,{common:{ok:`确定`,delete:`删除`,enter:`回车`},blockQuote:{title:`引用`},codeBlock:{title:`代码块`},color:{color:`文字颜色`,bgColor:`背景色`,default:`默认颜色`,clear:`清除背景色`},divider:{title:`分割线`},emotion:{title:`表情`},fontSize:{title:`字号`,default:`默认字号`},fontFamily:{title:`字体`,default:`默认字体`},fullScreen:{title:`全屏`},header:{title:`标题`,text:`正文`},image:{netImage:`网络图片`,delete:`删除图片`,edit:`编辑图片`,viewLink:`查看链接`,src:`图片地址`,desc:`图片描述`,link:`图片链接`},indent:{decrease:`减少缩进`,increase:`增加缩进`},justify:{left:`左对齐`,right:`右对齐`,center:`居中对齐`,justify:`两端对齐`},lineHeight:{title:`行高`,default:`默认行高`},link:{insert:`插入链接`,text:`链接文本`,url:`链接地址`,unLink:`取消链接`,edit:`修改链接`,view:`查看链接`},textStyle:{bold:`粗体`,clear:`清除格式`,code:`行内代码`,italic:`斜体`,sub:`下标`,sup:`上标`,through:`删除线`,underline:`下划线`},undo:{undo:`撤销`,redo:`重做`},todo:{todo:`待办`}});var zde={type:`paragraph`,renderElem:function(e,t,n){return xb(`p`,null,t)}},IM=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function LM(e){var t={exports:{}};return e(t,t.exports),t.exports}var RM,zM,BM=function(e){return e&&e.Math==Math&&e},VM=BM(typeof globalThis==`object`&&globalThis)||BM(typeof window==`object`&&window)||BM(typeof self==`object`&&self)||BM(typeof IM==`object`&&IM)||function(){return this}()||Function(`return this`)(),HM=function(e){try{return!!e()}catch{return!0}},UM=!HM((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),WM=Function.prototype.call,GM=WM.bind?WM.bind(WM):function(){return WM.apply(WM,arguments)},KM={}.propertyIsEnumerable,qM=Object.getOwnPropertyDescriptor,JM={f:qM&&!KM.call({1:2},1)?function(e){var t=qM(this,e);return!!t&&t.enumerable}:KM},YM=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XM=Function.prototype,ZM=XM.bind,QM=XM.call,Bde=ZM&&ZM.bind(QM),$M=ZM?function(e){return e&&Bde(QM,e)}:function(e){return e&&function(){return QM.apply(e,arguments)}},Vde=$M({}.toString),Hde=$M(``.slice),eN=function(e){return Hde(Vde(e),8,-1)},tN=VM.Object,Ude=$M(``.split),nN=HM((function(){return!tN(`z`).propertyIsEnumerable(0)}))?function(e){return eN(e)==`String`?Ude(e,``):tN(e)}:tN,Wde=VM.TypeError,rN=function(e){if(e==null)throw Wde(`Can't call method on `+e);return e},iN=function(e){return nN(rN(e))},aN=function(e){return typeof e==`function`},oN=function(e){return typeof e==`object`?e!==null:aN(e)},Gde=function(e){return aN(e)?e:void 0},sN=function(e,t){return arguments.length<2?Gde(VM[e]):VM[e]&&VM[e][t]},cN=$M({}.isPrototypeOf),lN=sN(`navigator`,`userAgent`)||``,uN=VM.process,dN=VM.Deno,fN=uN&&uN.versions||dN&&dN.version,pN=fN&&fN.v8;pN&&(zM=(RM=pN.split(`.`))[0]>0&&RM[0]<4?1:+(RM[0]+RM[1])),!zM&&lN&&(!(RM=lN.match(/Edge\/(\d+)/))||RM[1]>=74)&&(RM=lN.match(/Chrome\/(\d+)/))&&(zM=+RM[1]);var mN=zM,hN=!!Object.getOwnPropertySymbols&&!HM((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&mN&&mN<41})),gN=hN&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Kde=VM.Object,_N=gN?function(e){return typeof e==`symbol`}:function(e){var t=sN(`Symbol`);return aN(t)&&cN(t.prototype,Kde(e))},vN=VM.String,yN=function(e){try{return vN(e)}catch{return`Object`}},bN=VM.TypeError,xN=function(e){if(aN(e))return e;throw bN(yN(e)+` is not a function`)},SN=function(e,t){var n=e[t];return n==null?void 0:xN(n)},CN=VM.TypeError,wN=Object.defineProperty,TN=function(e,t){try{wN(VM,e,{value:t,configurable:!0,writable:!0})}catch{VM[e]=t}return t},EN=VM[`__core-js_shared__`]||TN(`__core-js_shared__`,{}),DN=LM((function(e){(e.exports=function(e,t){return EN[e]||(EN[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),ON=VM.Object,kN=function(e){return ON(rN(e))},AN=$M({}.hasOwnProperty),jN=Object.hasOwn||function(e,t){return AN(kN(e),t)},MN=0,NN=Math.random(),PN=$M(1 .toString),FN=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+PN(++MN+NN,36)},IN=DN(`wks`),LN=VM.Symbol,RN=LN&&LN.for,zN=gN?LN:LN&&LN.withoutSetter||FN,BN=function(e){if(!jN(IN,e)||!hN&&typeof IN[e]!=`string`){var t=`Symbol.`+e;hN&&jN(LN,e)?IN[e]=LN[e]:IN[e]=gN&&RN?RN(t):zN(t)}return IN[e]},VN=VM.TypeError,HN=BN(`toPrimitive`),UN=function(e){var t=function(e,t){if(!oN(e)||_N(e))return e;var n,r=SN(e,HN);if(r){if(t===void 0&&(t=`default`),n=GM(r,e,t),!oN(n)||_N(n))return n;throw VN(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&aN(n=e.toString)&&!oN(r=GM(n,e))||aN(n=e.valueOf)&&!oN(r=GM(n,e))||t!==`string`&&aN(n=e.toString)&&!oN(r=GM(n,e)))return r;throw CN(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return _N(t)?t:t+``},WN=VM.document,GN=oN(WN)&&oN(WN.createElement),KN=function(e){return GN?WN.createElement(e):{}},qN=!UM&&!HM((function(){return Object.defineProperty(KN(`div`),`a`,{get:function(){return 7}}).a!=7})),JN=Object.getOwnPropertyDescriptor,YN={f:UM?JN:function(e,t){if(e=iN(e),t=UN(t),qN)try{return JN(e,t)}catch{}if(jN(e,t))return YM(!GM(JM.f,e,t),e[t])}},XN=VM.String,ZN=VM.TypeError,QN=function(e){if(oN(e))return e;throw ZN(XN(e)+` is not an object`)},$N=VM.TypeError,eP=Object.defineProperty,tP={f:UM?eP:function(e,t,n){if(QN(e),t=UN(t),QN(n),qN)try{return eP(e,t,n)}catch{}if(`get`in n||`set`in n)throw $N(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},nP=UM?function(e,t,n){return tP.f(e,t,YM(1,n))}:function(e,t,n){return e[t]=n,e},rP=$M(Function.toString);aN(EN.inspectSource)||(EN.inspectSource=function(e){return rP(e)});var iP,aP,oP,sP=EN.inspectSource,cP=VM.WeakMap,lP=aN(cP)&&/native code/.test(sP(cP)),uP=DN(`keys`),dP=function(e){return uP[e]||(uP[e]=FN(e))},fP={},pP=VM.TypeError,mP=VM.WeakMap;if(lP||EN.state){var hP=EN.state||=new mP,gP=$M(hP.get),_P=$M(hP.has),vP=$M(hP.set);iP=function(e,t){if(_P(hP,e))throw new pP(`Object already initialized`);return t.facade=e,vP(hP,e,t),t},aP=function(e){return gP(hP,e)||{}},oP=function(e){return _P(hP,e)}}else{var yP=dP(`state`);fP[yP]=!0,iP=function(e,t){if(jN(e,yP))throw new pP(`Object already initialized`);return t.facade=e,nP(e,yP,t),t},aP=function(e){return jN(e,yP)?e[yP]:{}},oP=function(e){return jN(e,yP)}}var bP={set:iP,get:aP,has:oP,enforce:function(e){return oP(e)?aP(e):iP(e,{})},getterFor:function(e){return function(t){var n;if(!oN(t)||(n=aP(t)).type!==e)throw pP(`Incompatible receiver, `+e+` required`);return n}}},xP=Function.prototype,SP=UM&&Object.getOwnPropertyDescriptor,CP=jN(xP,`name`),wP={EXISTS:CP,PROPER:CP&&function(){}.name===`something`,CONFIGURABLE:CP&&(!UM||UM&&SP(xP,`name`).configurable)},TP=LM((function(e){var t=wP.CONFIGURABLE,n=bP.get,r=bP.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;aN(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!jN(a,`name`)||t&&a.name!==d)&&nP(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===VM?l?e[n]=a:TN(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:nP(e,n,a))})(Function.prototype,`toString`,(function(){return aN(this)&&n(this).source||sP(this)}))})),EP=Math.ceil,DP=Math.floor,OP=function(e){var t=+e;return t!=t||t===0?0:(t>0?DP:EP)(t)},kP=Math.max,AP=Math.min,jP=function(e,t){var n=OP(e);return n<0?kP(n+t,0):AP(n,t)},MP=Math.min,NP=function(e){return e>0?MP(OP(e),9007199254740991):0},PP=function(e){return NP(e.length)},FP=function(e){return function(t,n,r){var i,a=iN(t),o=PP(a),s=jP(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},IP={includes:FP(!0),indexOf:FP(!1)},LP=IP.indexOf,RP=$M([].push),zP=function(e,t){var n,r=iN(e),i=0,a=[];for(n in r)!jN(fP,n)&&jN(r,n)&&RP(a,n);for(;t.length>i;)jN(r,n=t[i++])&&(~LP(a,n)||RP(a,n));return a},BP=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],VP=BP.concat(`length`,`prototype`),HP={f:Object.getOwnPropertyNames||function(e){return zP(e,VP)}},UP={f:Object.getOwnPropertySymbols},WP=$M([].concat),GP=sN(`Reflect`,`ownKeys`)||function(e){var t=HP.f(QN(e)),n=UP.f;return n?WP(t,n(e)):t},KP=function(e,t){for(var n=GP(t),r=tP.f,i=YN.f,a=0;a<n.length;a++){var o=n[a];jN(e,o)||r(e,o,i(t,o))}},qP=/#|\.prototype\./,JP=function(e,t){var n=XP[YP(e)];return n==QP||n!=ZP&&(aN(t)?HM(t):!!t)},YP=JP.normalize=function(e){return String(e).replace(qP,`.`).toLowerCase()},XP=JP.data={},ZP=JP.NATIVE=`N`,QP=JP.POLYFILL=`P`,$P=JP,eF=YN.f,tF=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?VM:l?VM[s]||TN(s,{}):(VM[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=eF(n,r))&&o.value:n[r],!$P(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;KP(a,i)}(e.sham||i&&i.sham)&&nP(a,`sham`,!0),TP(n,r,a,e)}},nF=$M($M.bind),rF=Array.isArray||function(e){return eN(e)==`Array`},iF={};iF[BN(`toStringTag`)]=`z`;var aF=String(iF)===`[object z]`,oF=BN(`toStringTag`),sF=VM.Object,cF=eN(function(){return arguments}())==`Arguments`,lF=aF?eN:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=sF(e),oF))==`string`?n:cF?eN(t):(r=eN(t))==`Object`&&aN(t.callee)?`Arguments`:r},uF=function(){},dF=[],fF=sN(`Reflect`,`construct`),pF=/^\s*(?:class|function)\b/,mF=$M(pF.exec),hF=!pF.exec(uF),gF=function(e){if(!aN(e))return!1;try{return fF(uF,dF,e),!0}catch{return!1}},_F=!fF||HM((function(){var e;return gF(gF.call)||!gF(Object)||!gF((function(){e=!0}))||e}))?function(e){if(!aN(e))return!1;switch(lF(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return hF||!!mF(pF,sP(e))}:gF,vF=BN(`species`),yF=VM.Array,bF=function(e,t){return new(function(e){var t;return rF(e)&&(t=e.constructor,(_F(t)&&(t===yF||rF(t.prototype))||oN(t)&&(t=t[vF])===null)&&(t=void 0)),t===void 0?yF:t}(e))(t===0?0:t)},xF=$M([].push),SF=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=kN(c),h=nN(m),g=function(e,t){return xN(e),t===void 0?e:nF?nF(e,t):function(){return e.apply(t,arguments)}}(l,u),_=PP(h),v=0,y=d||bF,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:xF(b,f)}else switch(e){case 4:return!1;case 7:xF(b,f)}return a?-1:r||i?i:b}},CF={forEach:SF(0),map:SF(1),filter:SF(2),some:SF(3),every:SF(4),find:SF(5),findIndex:SF(6),filterReject:SF(7)},wF=BN(`species`),TF=function(e){return mN>=51||!HM((function(){var t=[];return(t.constructor={})[wF]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},EF=CF.filter;tF({target:`Array`,proto:!0,forced:!TF(`filter`)},{filter:function(e){return EF(this,e,arguments.length>1?arguments[1]:void 0)}});var DF=aF?{}.toString:function(){return`[object `+lF(this)+`]`};aF||TP(Object.prototype,`toString`,DF,{unsafe:!0});var OF,qde=VM.String,kF=function(e){if(lF(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return qde(e)},AF=function(){var e=QN(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},jF=VM.RegExp,MF=HM((function(){var e=jF(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Jde=MF||HM((function(){return!jF(`a`,`y`).sticky})),NF={BROKEN_CARET:MF||HM((function(){var e=jF(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Jde,UNSUPPORTED_Y:MF},PF=Object.keys||function(e){return zP(e,BP)},Yde=UM?Object.defineProperties:function(e,t){QN(e);for(var n,r=iN(t),i=PF(t),a=i.length,o=0;a>o;)tP.f(e,n=i[o++],r[n]);return e},Xde=sN(`document`,`documentElement`),FF=dP(`IE_PROTO`),IF=function(){},LF=function(e){return`<script>`+e+`<\/script>`},RF=function(e){e.write(LF(``)),e.close();var t=e.parentWindow.Object;return e=null,t},zF=function(){try{OF=new ActiveXObject(`htmlfile`)}catch{}var e,t;zF=typeof document<`u`?document.domain&&OF?RF(OF):((t=KN(`iframe`)).style.display=`none`,Xde.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(LF(`document.F=Object`)),e.close(),e.F):RF(OF);for(var n=BP.length;n--;)delete zF.prototype[BP[n]];return zF()};fP[FF]=!0;var BF,VF,HF=Object.create||function(e,t){var n;return e===null?n=zF():(IF.prototype=QN(e),n=new IF,IF.prototype=null,n[FF]=e),t===void 0?n:Yde(n,t)},Zde=VM.RegExp,Qde=HM((function(){var e=Zde(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),$de=VM.RegExp,efe=HM((function(){var e=$de(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),tfe=bP.get,nfe=DN(`native-string-replace`,String.prototype.replace),UF=RegExp.prototype.exec,WF=UF,rfe=$M(``.charAt),ife=$M(``.indexOf),afe=$M(``.replace),GF=$M(``.slice),KF=(VF=/b*/g,GM(UF,BF=/a/,`a`),GM(UF,VF,`a`),BF.lastIndex!==0||VF.lastIndex!==0),qF=NF.BROKEN_CARET,JF=/()??/.exec(``)[1]!==void 0;(KF||JF||qF||Qde||efe)&&(WF=function(e){var t,n,r,i,a,o,s,c=this,l=tfe(c),u=kF(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=GM(WF,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=qF&&c.sticky,m=GM(AF,c),h=c.source,g=0,_=u;if(p&&(m=afe(m,`y`,``),ife(m,`g`)===-1&&(m+=`g`),_=GF(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&rfe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),JF&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),KF&&(r=c.lastIndex),i=GM(UF,p?n:c,_),p?i?(i.input=GF(i.input,g),i[0]=GF(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:KF&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),JF&&i&&i.length>1&&GM(nfe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=HF(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var YF=WF;tF({target:`RegExp`,proto:!0,forced:/./.exec!==YF},{exec:YF});var XF=Function.prototype,ZF=XF.apply,ofe=XF.bind,QF=XF.call,$F=typeof Reflect==`object`&&Reflect.apply||(ofe?QF.bind(ZF):function(){return QF.apply(ZF,arguments)}),sfe=BN(`species`),eI=RegExp.prototype,tI=function(e,t,n,r){var i=BN(e),a=!HM((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!HM((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[sfe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=$M(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=$M(e),c=t.exec;return c===YF||c===eI.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));TP(String.prototype,e,c[0]),TP(eI,i,c[1])}r&&nP(eI[i],`sham`,!0)},cfe=$M(``.charAt),nI=$M(``.charCodeAt),lfe=$M(``.slice),ufe=function(e){return function(t,n){var r,i,a=kF(rN(t)),o=OP(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=nI(a,o))<55296||r>56319||o+1===s||(i=nI(a,o+1))<56320||i>57343?e?cfe(a,o):r:e?lfe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),rI=function(e,t,n){return t+(n?ufe(e,t).length:1)},dfe=Math.floor,iI=$M(``.charAt),ffe=$M(``.replace),aI=$M(``.slice),pfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mfe=/\$([$&'`]|\d{1,2})/g,hfe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=mfe;return i!==void 0&&(i=kN(i),c=pfe),ffe(a,c,(function(a,c){var l;switch(iI(c,0)){case`$`:return`$`;case`&`:return e;case"`":return aI(t,0,n);case`'`:return aI(t,o);case`<`:l=i[aI(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=dfe(u/10);return d===0?a:d<=s?r[d-1]===void 0?iI(c,1):r[d-1]+iI(c,1):a}l=r[u-1]}return l===void 0?``:l}))},gfe=VM.TypeError,oI=function(e,t){var n=e.exec;if(aN(n)){var r=GM(n,e,t);return r!==null&&QN(r),r}if(eN(e)===`RegExp`)return GM(YF,e,t);throw gfe(`RegExp#exec called on incompatible receiver`)},sI=BN(`replace`),_fe=Math.max,vfe=Math.min,yfe=$M([].concat),cI=$M([].push),lI=$M(``.indexOf),uI=$M(``.slice),bfe=`a`.replace(/./,`$0`)===`$0`,dI=!!/./[sI]&&/./[sI](`a`,`$0`)===``;tI(`replace`,(function(e,t,n){var r=dI?`$`:`$0`;return[function(e,n){var r=rN(this),i=e==null?void 0:SN(e,sI);return i?GM(i,e,r,n):GM(t,kF(r),e,n)},function(e,i){var a=QN(this),o=kF(e);if(typeof i==`string`&&lI(i,r)===-1&&lI(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=aN(i);c||(i=kF(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=oI(a,o);if(f===null||(cI(d,f),!l))break;kF(f[0])===``&&(a.lastIndex=rI(o,NP(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=kF((f=d[g])[0]),v=_fe(vfe(OP(f.index),o.length),0),y=[],b=1;b<f.length;b++)cI(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=yfe([_],y,v,o);x!==void 0&&cI(S,x);var C=kF($F(i,void 0,S))}else C=hfe(_,o,v,y,x,i);v>=h&&(m+=uI(o,h,v)+C,h=v+_.length)}return m+uI(o,h)}]}),!!HM((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!bfe||dI);var fI=BN(`unscopables`),pI=Array.prototype;pI[fI]??tP.f(pI,fI,{configurable:!0,value:HF(null)});var mI=function(e){pI[fI][e]=!0},xfe=CF.find,hI=!0;`find`in[]&&[,].find((function(){hI=!1})),tF({target:`Array`,proto:!0,forced:hI},{find:function(e){return xfe(this,e,arguments.length>1?arguments[1]:void 0)}}),mI(`find`);var Sfe=BN(`match`),gI=function(e){var t;return oN(e)&&((t=e[Sfe])===void 0?eN(e)==`RegExp`:!!t)},Cfe=VM.TypeError,wfe=BN(`species`),_I=function(e,t,n){var r=UN(t);r in e?tP.f(e,r,YM(0,n)):e[r]=n},Tfe=VM.Array,Efe=Math.max,vI=function(e,t,n){for(var r=PP(e),i=jP(t,r),a=jP(n===void 0?r:n,r),o=Tfe(Efe(a-i,0)),s=0;i<a;i++,s++)_I(o,s,e[i]);return o.length=s,o},yI=NF.UNSUPPORTED_Y,Dfe=Math.min,bI=[].push,Ofe=$M(/./.exec),xI=$M(bI),SI=$M(``.slice);tI(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=kF(rN(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!gI(e))return GM(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=GM(YF,d,r))&&!((o=d.lastIndex)>u&&(xI(c,SI(r,u,a.index)),a.length>1&&a.index<r.length&&$F(bI,c,vI(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&Ofe(d,``)||xI(c,``):xI(c,SI(r,u)),c.length>i?vI(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:GM(t,this,e,n)}:t,[function(t,n){var i=rN(this),a=t==null?void 0:SN(t,e);return a?GM(a,t,i,n):GM(r,kF(i),t,n)},function(e,i){var a=QN(this),o=kF(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=QN(e).constructor;return r===void 0||(n=QN(r)[wfe])==null?t:function(e){if(_F(e))return e;throw Cfe(yN(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(yI?`g`:`y`),d=new c(yI?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return oI(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=yI?0:m;var g,_=oI(d,yI?SI(o,m):o);if(_===null||(g=Dfe(NP(d.lastIndex+(yI?m:0)),o.length))===p)m=rI(o,m,l);else{if(xI(h,SI(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(xI(h,_[v]),h.length===f)return h;m=p=g}}return xI(h,SI(o,p)),h}]}),!!HM((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),yI);var CI=`
\v\f\r \xA0               \u2028\u2029`,wI=$M(``.replace),TI=`[`+CI+`]`,kfe=RegExp(`^`+TI+TI+`*`),Afe=RegExp(TI+TI+`*$`),EI=function(e){return function(t){var n=kF(rN(t));return 1&e&&(n=wI(n,kfe,``)),2&e&&(n=wI(n,Afe,``)),n}},jfe={start:EI(1),end:EI(2),trim:EI(3)},Mfe=wP.PROPER,Nfe=jfe.trim;function DI(e){return K(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function OI(e){return e.length===0?``:e[0].outerHTML}function kI(e){return e.length?e[0].tagName.toLowerCase():``}function AI(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===t&&(n=s[1].trim())}}return n}tF({target:`String`,proto:!0,forced:HM((function(){return!!CI.trim()||Mfe&&CI.trim.name!==`trim`}))},{trim:function(){return Nfe(this)}}),tF({global:!0},{globalThis:VM}),Hv&&(K.fn.css=Hv),Jv&&(K.fn.append=Jv),Yv&&(K.fn.prepend=Yv),Ov&&(K.fn.addClass=Ov),kv&&(K.fn.removeClass=kv),Av&&(K.fn.hasClass=Av),Fv&&(K.fn.on=Fv),Iv&&(K.fn.off=Iv),ay&&(K.fn.focus=ay),jv&&(K.fn.attr=jv),Mv&&(K.fn.removeAttr=Mv),Bv&&(K.fn.hide=Bv),Vv&&(K.fn.show=Vv),Zv&&(K.fn.parents=Zv),Nv&&(K.fn.dataset=Nv),Pv&&(K.fn.val=Pv),Kv&&(K.fn.text=Kv),Gv&&(K.fn.html=Gv),$v&&(K.fn.children=$v),ey&&(K.fn.remove=ey),Qv&&(K.fn.find=Qv),Lv&&(K.fn.width=Lv),Rv&&(K.fn.height=Rv),Wv&&(K.fn.filter=Wv),ty&&(K.fn.empty=ty);var Pfe={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},jI=function(e,t){return jI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jI(e,t)};function MI(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}jI(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var NI=function(){return NI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},NI.apply(this,arguments)};function PI(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function FI(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function II(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function LI(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function RI(e){var t=LI(B.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!z.isElement(n)||n.type===`paragraph`||V.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!W.isText(i[0])&&(G.setNodes(e,{type:`paragraph`}),!0)}var Ffe={renderElems:[zde],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[Pfe],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){RI(r)||t(e)},r.deleteForward=function(e){RI(r)||n(e)},r}},Ife=/"/g,Lfe=$M(``.replace),zI=function(e,t,n,r){var i=kF(rN(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Lfe(kF(r),Ife,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},BI=function(e){return HM((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function VI(e,t){var n=t,r=e,i=r.bold,a=r.italic,o=r.underline;return i&&(n=`<strong>`+n+`</strong>`),r.code&&(n=`<code>`+n+`</code>`),a&&(n=`<em>`+n+`</em>`),o&&(n=`<u>`+n+`</u>`),r.through&&(n=`<s>`+n+`</s>`),r.sub&&(n=`<sub>`+n+`</sub>`),r.sup&&(n=`<sup>`+n+`</sup>`),n}function HI(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}tF({target:`String`,proto:!0,forced:BI(`bold`)},{bold:function(){return zI(this,`b`,``,``)}}),tF({target:`String`,proto:!0,forced:BI(`italics`)},{italics:function(){return zI(this,`i`,``,``)}}),tF({target:`String`,proto:!0,forced:BI(`sub`)},{sub:function(){return zI(this,`sub`,``,``)}}),tF({target:`String`,proto:!0,forced:BI(`sup`)},{sup:function(){return zI(this,`sup`,``,``)}});var UI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},WI=KN(`span`).classList,GI=WI&&WI.constructor&&WI.constructor.prototype,Rfe=GI===Object.prototype?void 0:GI,KI=function(e,t){var n=[][e];return!!n&&HM((function(){n.call(null,t||function(){throw 1},1)}))},zfe=CF.forEach,qI=KI(`forEach`)?[].forEach:function(e){return zfe(this,e,arguments.length>1?arguments[1]:void 0)},JI=function(e){if(e&&e.forEach!==qI)try{nP(e,`forEach`,qI)}catch{e.forEach=qI}};for(var YI in UI)UI[YI]&&JI(VM[YI]&&VM[YI].prototype);function XI(e,t){return e.selection==null||!!LI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]}function Bfe(e,t){Object.keys(t).forEach((function(t){t!==`text`&&B.removeMark(e,t)}))}JI(Rfe),tF({target:`Object`,stat:!0,forced:HM((function(){PF(1)}))},{keys:function(e){return PF(kN(e))}});var ZI=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=B.marks(e);return n?n[t]:!!LI(B.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return XI(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),Vfe=`<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>`,Hfe=`<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>`,Ufe=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Wfe=`<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>`,Gfe=`<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>`,QI=`<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>`,$I=`<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>`,Kfe=`<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>`,qfe=`<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>`,Jfe=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,Yfe=`<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>`,Xfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,Zfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,Qfe=`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,$fe=`<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,epe=`<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,tpe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,npe=`<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>`,rpe=`<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>`,ipe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Vfe,t.hotkey=`mod+b`,t}return MI(t,e),t}(ZI),ape=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=Gfe,t.hotkey=`mod+e`,t}return MI(t,e),t}(ZI),ope=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=Ufe,t.hotkey=`mod+i`,t}return MI(t,e),t}(ZI),spe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Wfe,t.hotkey=`mod+shift+x`,t}return MI(t,e),t}(ZI),cpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Hfe,t.hotkey=`mod+u`,t}return MI(t,e),t}(ZI),lpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sub`,t.marksNeedToRemove=[`sup`],t.title=Z(`textStyle.sub`),t.iconSvg=rpe,t.hotkey=``,t}return MI(t,e),t}(ZI),upe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sup`,t.marksNeedToRemove=[`sub`],t.title=Z(`textStyle.sup`),t.iconSvg=npe,t.hotkey=``,t}return MI(t,e),t}(ZI),dpe=function(){function e(){this.title=Z(`textStyle.clear`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return XI(e)},e.prototype.exec=function(e,t){var n,r,i=B.nodes(e,{match:function(e){return W.isText(e)},universal:!0});try{for(var a=II(i),o=a.next();!o.done;o=a.next())Bfe(e,o.value[0])}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e}(),fpe={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,a=n.underline,o=n.code,s=n.through,c=n.sub,l=n.sup,u=t;return r&&(u=xb(`strong`,null,u)),o&&(u=xb(`code`,null,u)),i&&(u=xb(`em`,null,u)),a&&(u=xb(`u`,null,u)),s&&(u=xb(`s`,null,u)),c&&(u=xb(`sub`,null,u)),l&&(u=xb(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new ipe}},{key:`underline`,factory:function(){return new cpe}},{key:`italic`,factory:function(){return new ope}},{key:`through`,factory:function(){return new spe}},{key:`code`,factory:function(){return new ape}},{key:`sub`,factory:function(){return new lpe}},{key:`sup`,factory:function(){return new upe}},{key:`clearStyle`,factory:function(){return new dpe}}],styleToHtml:function(e,t){if(!W.isText(e))return t;if(DI(t))return VI(e,t);var n=K(t);if(kI(n)===`br`)return VI(e,`<br>`);var r=n.html();return r=VI(e,r),n.html(r),OI(n)},parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t;return HI(r,`b,strong`)&&(i.bold=!0),HI(r,`i,em`)&&(i.italic=!0),HI(r,`u`)&&(i.underline=!0),HI(r,`s,strike`)&&(i.through=!0),HI(r,`sub`)&&(i.sub=!0),HI(r,`sup`)&&(i.sup=!0),HI(r,`code`)&&(i.code=!0),i}};function eL(e){return function(t,n,r){return xb(`h`+e,null,n)}}var ppe={type:`header1`,renderElem:eL(1)},mpe={type:`header2`,renderElem:eL(2)},hpe={type:`header3`,renderElem:eL(3)},gpe={type:`header4`,renderElem:eL(4)},_pe={type:`header5`,renderElem:eL(5)},vpe=wP.PROPER,tL=RegExp.prototype,nL=tL.toString,ype=$M(AF),bpe=HM((function(){return nL.call({source:`a`,flags:`b`})!=`/a/b`})),xpe=vpe&&nL.name!=`toString`;(bpe||xpe)&&TP(RegExp.prototype,`toString`,(function(){var e=QN(this),t=kF(e.source),n=e.flags;return`/`+t+`/`+kF(n===void 0&&cN(tL,e)&&!(`flags`in tL)?ype(e):n)}),{unsafe:!0});var rL,Spe=VM.TypeError,iL=function(e){if(gI(e))throw Spe(`The method doesn't accept regular expressions`);return e},Cpe=BN(`match`),aL=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[Cpe]=!1,`/./`[e](t)}catch{}}return!1},wpe=YN.f,oL=$M(``.startsWith),Tpe=$M(``.slice),Epe=Math.min,sL=aL(`startsWith`);function cL(e){var t=LI(B.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=LI(t,1)[0];return X.getNodeType(n)}function lL(e){return e.selection==null||!LI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function uL(e,t){t&&G.setNodes(e,{type:t})}tF({target:`String`,proto:!0,forced:!(!sL&&(rL=wpe(String.prototype,`startsWith`),rL&&!rL.writable)||sL)},{startsWith:function(e){var t=kF(rN(this));iL(e);var n=NP(Epe(arguments.length>1?arguments[1]:void 0,t.length)),r=kF(e);return oL?oL(t,r,n):Tpe(t,n,n+r.length)===r}});var Dpe=function(){function e(){this.title=Z(`header.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>`,this.tag=`select`,this.width=60}return e.prototype.getOptions=function(e){var t=[{value:`header1`,text:`H1`,styleForRenderMenuList:{"font-size":`32px`,"font-weight":`bold`}},{value:`header2`,text:`H2`,styleForRenderMenuList:{"font-size":`24px`,"font-weight":`bold`}},{value:`header3`,text:`H3`,styleForRenderMenuList:{"font-size":`18px`,"font-weight":`bold`}},{value:`header4`,text:`H4`,styleForRenderMenuList:{"font-size":`16px`,"font-weight":`bold`}},{value:`header5`,text:`H5`,styleForRenderMenuList:{"font-size":`13px`,"font-weight":`bold`}},{value:`paragraph`,text:Z(`header.text`)}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return cL(e)},e.prototype.isDisabled=function(e){return lL(e)},e.prototype.exec=function(e,t){uL(e,t.toString())},e}(),dL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return cL(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return lL(e)},e.prototype.exec=function(e,t){var n=this.type;uL(e,t===n?`paragraph`:n)},e}(),Ope=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return MI(t,e),t}(dL),kpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return MI(t,e),t}(dL),Ape=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return MI(t,e),t}(dL),jpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return MI(t,e),t}(dL),Mpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return MI(t,e),t}(dL),Npe={key:`headerSelect`,factory:function(){return new Dpe}},Ppe={key:`header1`,factory:function(){return new Ope}},Fpe={key:`header2`,factory:function(){return new kpe}},Ipe={key:`header3`,factory:function(){return new Ape}},Lpe={key:`header4`,factory:function(){return new jpe}},Rpe={key:`header5`,factory:function(){return new Mpe}};function fL(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function pL(e){return function(t,n,r){var i=K(t);return(n=n.filter((function(e){return!!W.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var zpe={renderElems:[ppe,mpe,hpe,gpe,_pe],elemsToHtml:[{type:`header1`,elemToHtml:fL(1)},{type:`header2`,elemToHtml:fL(2)},{type:`header3`,elemToHtml:fL(3)},{type:`header4`,elemToHtml:fL(4)},{type:`header5`,elemToHtml:fL(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:pL(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:pL(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:pL(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:pL(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:pL(5)}],menus:[Npe,Ppe,Fpe,Ipe,Lpe,Rpe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=LI(B.nodes(n,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&X.isSelectionAtLineEnd(e,r[1])?G.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},mL=Object.assign,hL=Object.defineProperty,Bpe=$M([].concat),gL=!mL||HM((function(){if(UM&&mL({b:1},mL(hL({},`a`,{enumerable:!0,get:function(){hL(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),mL({},e)[n]!=7||PF(mL({},t)).join(``)!=r}))?function(e,t){for(var n=kN(e),r=arguments.length,i=1,a=UP.f,o=JM.f;r>i;)for(var s,c=nN(arguments[i++]),l=a?Bpe(PF(c),a(c)):PF(c),u=l.length,d=0;u>d;)s=l[d++],UM&&!GM(o,c,s)||(n[s]=c[s]);return n}:mL;function _L(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}tF({target:`Object`,stat:!0,forced:Object.assign!==gL},{assign:gL});var Vpe={selector:`font`,preParseHtml:function(e){var t=K(e);if(kI(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},vL=function(){function e(){this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=B.marks(e);return n&&n[t]?n[t]:``},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return e.selection==null||!!LI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=K(`<ul class="w-e-panel-content-color"></ul>`);n.on(`click`,`li`,(function(n){var r=n.target;if(r!=null&&(n.preventDefault(),e.selection!=null)){var i=K(r).attr(`data-value`);i===`0`?B.removeMark(e,t):B.addMark(e,t,i)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement(`ul`);r.empty();var i=this.getValue(e),a=e.getMenuConfig(t).colors;(a===void 0?[]:a).forEach((function(e){var t=K(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=K(`<li data-value="`+e+`"></li>`);i===e&&n.addClass(`active`),n.append(t),r.append(n)}));var o=``;t===`color`&&(o=Z(`color.default`)),t===`bgColor`&&(o=Z(`color.clear`));var s=K(`
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+o+`
</li>
`);return r.prepend(s),r[0]},e}(),Hpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=Kfe,t.mark=`color`,t}return MI(t,e),t}(vL),Upe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=qfe,t.mark=`bgColor`,t}return MI(t,e),t}(vL),yL=`rgb(0, 0, 0).rgb(38, 38, 38).rgb(89, 89, 89).rgb(140, 140, 140).rgb(191, 191, 191).rgb(217, 217, 217).rgb(233, 233, 233).rgb(245, 245, 245).rgb(250, 250, 250).rgb(255, 255, 255).rgb(225, 60, 57).rgb(231, 95, 51).rgb(235, 144, 58).rgb(245, 219, 77).rgb(114, 192, 64).rgb(89, 191, 192).rgb(66, 144, 247).rgb(54, 88, 226).rgb(106, 57, 201).rgb(216, 68, 147).rgb(251, 233, 230).rgb(252, 237, 225).rgb(252, 239, 212).rgb(252, 251, 207).rgb(231, 246, 213).rgb(218, 244, 240).rgb(217, 237, 250).rgb(224, 232, 250).rgb(237, 225, 248).rgb(246, 226, 234).rgb(255, 163, 158).rgb(255, 187, 150).rgb(255, 213, 145).rgb(255, 251, 143).rgb(183, 235, 143).rgb(135, 232, 222).rgb(145, 213, 255).rgb(173, 198, 255).rgb(211, 173, 247).rgb(255, 173, 210).rgb(255, 77, 79).rgb(255, 122, 69).rgb(255, 169, 64).rgb(255, 236, 61).rgb(115, 209, 61).rgb(54, 207, 201).rgb(64, 169, 255).rgb(89, 126, 247).rgb(146, 84, 222).rgb(247, 89, 171).rgb(207, 19, 34).rgb(212, 56, 13).rgb(212, 107, 8).rgb(212, 177, 6).rgb(56, 158, 13).rgb(8, 151, 156).rgb(9, 109, 217).rgb(29, 57, 196).rgb(83, 29, 171).rgb(196, 29, 127).rgb(130, 0, 20).rgb(135, 20, 0).rgb(135, 56, 0).rgb(97, 71, 0).rgb(19, 82, 0).rgb(0, 71, 79).rgb(0, 58, 140).rgb(6, 17, 120).rgb(34, 7, 94).rgb(120, 6, 80)`.split(`.`),Wpe={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&_L(a,{color:r}),i&&_L(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!W.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((DI(t)||kI(n=K(t))!==`span`)&&(n=K(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),OI(n)):t},preParseHtml:[Vpe],parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t,a=AI(r,`color`);a&&(i.color=a);var o=AI(r,`background-color`);return o||=AI(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Hpe},config:{colors:yL}},{key:`bgColor`,factory:function(){return new Upe},config:{colors:yL}}]},Gpe=/^(?:\w+:)?\/\/(\S+)$/,Kpe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,qpe=/^[^\s\.]+\.\S{2,}$/,Jpe=IP.includes;function bL(e){return e===void 0&&(e=`r`),e+`-`+Ey()}function xL(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function SL(e,t,n,r){return PI(this,void 0,void 0,(function(){var i,a;return FI(this,(function(o){switch(o.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(a=o.sent())==`string`)return t.alert(a,`error`),[2,!1];if(a==null)return[2,!1];o.label=2;case 2:return[2,!0]}}))}))}function CL(e,t,n){return PI(this,void 0,void 0,(function(){var r;return FI(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function wL(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!![`pre`,`code`,`link`].includes(n)||void 0}))}function TL(e,t){return{type:`link`,url:xL(e),children:t?[{text:t}]:[]}}function EL(e,t,n){return PI(this,void 0,void 0,(function(){var r,i,a;return FI(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),wL(e)?[2]:[4,SL(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,CL(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(U.isCollapsed(i)?(e.insertText(` `),a=TL(r,t),G.insertNodes(e,a),e.insertFragment([{text:` `}])):B.string(e,i)===t?(a=TL(r),G.wrapNodes(e,a,{split:!0}),G.collapse(e,{edge:`end`})):(e.deleteFragment(),a=TL(r,t),G.insertNodes(e,a))),[2]}}))}))}tF({target:`Array`,proto:!0},{includes:function(e){return Jpe(this,e,arguments.length>1?arguments[1]:void 0)}}),mI(`includes`);var Ype={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return xb(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},Xpe={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`link`,url:r.attr(`href`)||``,target:r.attr(`target`)||``,children:t}}};function DL(){return bL(`w-e-insert-link`)}var Zpe=function(){function e(){this.title=Z(`link.insert`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=DL(),this.urlInputId=DL(),this.buttonId=DL()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return wL(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,i=n.urlInputId,a=n.buttonId,o=LI(zj(Z(`link.text`),r),2),s=o[0],c=K(o[1]),l=LI(zj(Z(`link.url`),i),2),u=l[0],d=K(l[1]),f=LI(Bj(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=K(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),EL(e,p.find(`#`+r).val(),p.find(`#`+i).val()),e.hidePanelOrModal()})),this.$content=p}var m=this.$content;if(m.empty(),m.append(s),m.append(u),m.append(f),t==null||U.isCollapsed(t))c.val(``);else{var h=B.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function OL(){return bL(`w-e-update-link`)}var Qpe=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=QI,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=OL(),this.buttonId=OL()}return e.prototype.getSelectedLinkElem=function(e){return X.getSelectedNodeByType(e,`link`)??null},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.getModalPositionNode=function(e){return X.getSelectedNodeByType(e,`link`)},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=LI(zj(Z(`link.url`),t),2),i=r[0],a=K(r[1]),o=LI(Bj(n,Z(`common.ok`)),1)[0];if(this.$content==null){var s=K(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=X.getSelectedNodeByType(e,`link`);(function(e,t,n){PI(this,void 0,void 0,(function(){var r,i;return FI(this,(function(a){switch(a.label){case 0:return n?[4,SL(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,CL(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:xL(r)},G.setNodes(e,i,{match:function(e){return X.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?V.string(r):``,s.find(`#`+t).val()),e.hidePanelOrModal()})),this.$content=s}var c=this.$content;c.empty(),c.append(i),c.append(o);var l=this.getValue(e);return a.val(l),setTimeout((function(){a.focus()})),c[0]},e}(),$pe=function(){function e(){this.title=Z(`link.unLink`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||X.getSelectedNodeByType(e,`link`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||G.unwrapNodes(e,{match:function(e){return X.checkNodeType(e,`link`)}})},e}(),eme=function(){function e(){this.title=Z(`link.view`),this.iconSvg=$I,this.tag=`button`}return e.prototype.getSelectedLinkElem=function(e){return X.getSelectedNodeByType(e,`link`)??null},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View link failed, link url is '`+t+`'`);window.open(t,`_blank`)}},e}(),kL={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},tme={renderElems:[Ype],elemsToHtml:[{type:`link`,elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return`<a href="`+r+`" target="`+(i===void 0?`_blank`:i)+`">`+t+`</a>`}}],parseElemsHtml:[Xpe],menus:[{key:`insertLink`,factory:function(){return new Zpe},config:kL},{key:`editLink`,factory:function(){return new Qpe},config:kL},{key:`unLink`,factory:function(){return new $pe}},{key:`viewLink`,factory:function(){return new eme}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(e){return e.type===`link`||t(e)},i.insertData=function(e){var t=e.getData(`text/plain`);if(function(e){if(typeof e!=`string`)return!1;var t=e.match(Gpe);if(!t)return!1;var n=t[1];return!(!n||!Kpe.test(n)&&!qpe.test(n))}(t)){if(!wL(i)){var r=i.selection;r!=null&&EL(i,B.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=LI(e,2),n=t[0],a=t[1];return X.getNodeType(n)===`link`&&V.string(n)===``?G.removeNodes(i,{at:a}):r([n,a])},i}},nme=$M(1 .valueOf),rme=VM.RangeError,ime=VM.RangeError,AL=VM.String,jL=Math.floor,ML=$M((function(e){var t=kF(rN(this)),n=``,r=OP(e);if(r<0||r==1/0)throw rme(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),NL=$M(``.slice),PL=$M(1 .toFixed),FL=function(e,t,n){return t===0?n:t%2==1?FL(e,t-1,n*e):FL(e*e,t/2,n)},IL=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=jL(i/1e7)},LL=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=jL(r/t),r=r%t*1e7},RL=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=AL(e[t]);n=n===``?r:n+ML(`0`,7-r.length)+r}return n};function zL(e,t){return`w-e-image-container-`+X.findKey(e,t).id}tF({target:`Number`,proto:!0,forced:HM((function(){return PL(8e-5,3)!==`0.000`||PL(.9,0)!==`1`||PL(1.255,2)!==`1.25`||PL(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!HM((function(){PL({})}))},{toFixed:function(e){var t,n,r,i,a=nme(this),o=OP(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw ime(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return AL(a);if(a<0&&(c=`-`,a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*FL(2,69,1))-69)<0?a*FL(2,-t,1):a/FL(2,t,1),n*=4503599627370496,(t=52-t)>0){for(IL(s,0,n),r=o;r>=7;)IL(s,1e7,0),r-=7;for(IL(s,FL(10,r,1),0),r=t-1;r>=23;)LL(s,1<<23),r-=23;LL(s,1<<r),IL(s,1,1),LL(s,2),l=RL(s)}else IL(s,0,n),IL(s,1<<-t,0),l=RL(s)+ML(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+ML(`0`,o-i)+l:NL(l,0,i-o)+`.`+NL(l,i-o)):c+l}});var ame={type:`image`,renderElem:function(e,t,n){var r=e,i=r.src,a=r.alt,o=a===void 0?``:a,s=r.href,c=s===void 0?``:s,l=r.style,u=l===void 0?{}:l,d=u.width,f=d===void 0?``:d,p=u.height,m=p===void 0?``:p,h=X.isNodeSelected(n,e),g={};f&&(g.width=`100%`),m&&(g.height=`100%`);var _=xb(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=K(`body`),a=zL(e,t),o=r.width,s=r.height,c=0,l=0,u=0,d=!1,f=null;function p(t){f=function(){var e=K(`#`+a);if(e.length===0)throw Error(`Cannot find image container elem`);return e}(),c=t;var n=f.find(`img`);if(n.length===0)throw Error(`Cannot find image elem`);l=n.width(),u=n.height(),i.on(`mousemove`,m),i.on(`mouseup`,h);var r=X.getHoverbar(e);r&&r.hideAndClean()}var m=Hy((function(e){e.preventDefault();var t=e.clientX,n=l+(d?c-t:t-c),r=n/l*u;f!=null&&(n<=15||r<=15||(f.css(`width`,n+`px`),f.css(`height`,r+`px`)))}),100);function h(n){if(i.off(`mousemove`,m),f!=null){var r=f.width().toFixed(2),a=f.height().toFixed(2),o={style:NI(NI({},t.style),{width:r+`px`,height:a+`px`})};G.setNodes(e,o,{at:X.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),xb(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=K(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,xb(`div`,{className:`w-e-image-dragger left-top`}),xb(`div`,{className:`w-e-image-dragger right-top`}),xb(`div`,{className:`w-e-image-dragger left-bottom`}),xb(`div`,{className:`w-e-image-dragger right-bottom`}))}(n,e,_,{width:f,height:m}):function(e,t,n,r){var i=r.width,a=r.height,o={};return i&&(o.width=i),a&&(o.height=a),xb(`div`,{id:zL(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},ome={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:AI(r,`width`),height:AI(r,`height`)},children:[{text:``}]}}};function BL(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),PI(this,void 0,void 0,(function(){var a,o;return FI(this,(function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,i)]:[3,2];case 1:if(typeof(o=s.sent())==`string`)return t.alert(o,`error`),[2,!1];if(o==null)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function VL(e,t,n){return PI(this,void 0,void 0,(function(){var r;return FI(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function HL(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),PI(this,void 0,void 0,(function(){var i,a,o;return FI(this,(function(s){switch(s.label){case 0:return[4,BL(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,VL(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:xL(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),UL(e)||(G.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function UL(e){var t=e.selection;return t==null||!U.isCollapsed(t)||!!LI(B.nodes(e,{match:function(t){var n=X.getNodeType(t);return n===`code`||n===`pre`||n===`link`||n===`list-item`||!!n.startsWith(`header`)||n===`blockquote`||!!B.isVoid(e,t)},universal:!0}),1)[0]}function WL(){return bL(`w-e-insert-image`)}var sme=function(){function e(){this.title=Z(`image.netImage`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=WL(),this.altInputId=WL(),this.hrefInputId=WL(),this.buttonId=WL()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return UL(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=LI(zj(Z(`image.src`),r),2),c=s[0],l=K(s[1]),u=LI(zj(Z(`image.desc`),i),2),d=u[0],f=K(u[1]),p=LI(zj(Z(`image.link`),a),2),m=p[0],h=K(p[1]),g=LI(Bj(o,Z(`common.ok`)),1)[0];if(this.$content==null){var _=K(`<div></div>`);_.on(`click`,`#`+o,(function(n){n.preventDefault();var o=_.find(`#`+r).val().trim(),s=_.find(`#`+i).val().trim(),c=_.find(`#`+a).val().trim();t.insertImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=_}var v=this.$content;return v.empty(),v.append(c),v.append(d),v.append(m),v.append(g),l.val(``),f.val(``),h.val(``),setTimeout((function(){l.focus()})),v[0]},e.prototype.insertImage=function(e,t,n,r){n===void 0&&(n=``),r===void 0&&(r=``),t&&(e.restoreSelection(),this.isDisabled(e)||HL(e,t,n,r))},e}(),cme=function(){function e(){this.title=Z(`image.delete`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||X.getSelectedNodeByType(e,`image`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||G.removeNodes(e,{match:function(e){return X.checkNodeType(e,`image`)}})},e}();function GL(){return bL(`w-e-edit-image`)}var lme=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=QI,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=GL(),this.altInputId=GL(),this.hrefInputId=GL(),this.buttonId=GL()}return e.prototype.getValue=function(e){return``},e.prototype.getImageNode=function(e){return X.getSelectedNodeByType(e,`image`)},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`image`)==null},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=this.getImageNode(e);if(s==null)throw Error(`Not found selected image node`);var c=LI(zj(Z(`image.src`),r),2),l=c[0],u=K(c[1]),d=LI(zj(Z(`image.desc`),i),2),f=d[0],p=K(d[1]),m=LI(zj(Z(`image.link`),a),2),h=m[0],g=K(m[1]),_=LI(Bj(o,Z(`common.ok`)),1)[0];if(this.$content==null){var v=K(`<div></div>`);v.on(`click`,`#`+o,(function(n){n.preventDefault();var o=v.find(`#`+r).val(),s=v.find(`#`+i).val(),c=v.find(`#`+a).val();t.updateImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;y.empty(),y.append(l),y.append(f),y.append(h),y.append(_);var b=s,x=b.src,S=b.alt,C=S===void 0?``:S,w=b.href,T=w===void 0?``:w;return u.val(x),p.val(C),g.val(T),setTimeout((function(){u.focus()})),y[0]},e.prototype.updateImage=function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),PI(this,void 0,void 0,(function(){var a,o,s,c,l,u;return FI(this,(function(d){switch(d.label){case 0:return[4,BL(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,VL(`editImage`,e,t)]:[2];case 2:return a=d.sent(),(o=X.getSelectedNodeByType(e,`image`))==null||(s=o.style,c={src:a,alt:n,href:r,style:NI(NI({},s===void 0?{}:s),i)},G.setNodes(e,c,{match:function(e){return X.checkNodeType(e,`image`)}}),l=X.getSelectedNodeByType(e,`image`),(u=e.getMenuConfig(`editImage`).onUpdatedImage)&&u(l)),[2]}}))}))}(e,t,n,r,i))},e}(),ume=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=$I,this.tag=`button`}return e.prototype.getValue=function(e){var t=X.getSelectedNodeByType(e,`image`);return t&&t.href||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View image link failed, image.href is '`+t+`'`);window.open(t,`_blank`)}},e}(),KL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return X.getSelectedNodeByType(e,`image`)},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var r=X.getHoverbar(e);r&&r.hideAndClean();var i=n.style,a={style:NI(NI({},i===void 0?{}:i),{width:this.value,height:``})};G.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),dme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return MI(t,e),t}(KL),fme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return MI(t,e),t}(KL),pme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return MI(t,e),t}(KL),qL={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},mme={renderElems:[ame],elemsToHtml:[{type:`image`,elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,a=i===void 0?``:i,o=n.href,s=o===void 0?``:o,c=n.style,l=c===void 0?{}:c,u=l.width,d=u===void 0?``:u,f=l.height,p=f===void 0?``:f,m=``;return d&&(m+=`width: `+d+`;`),p&&(m+=`height: `+p+`;`),`<img src="`+r+`" alt="`+a+`" data-href="`+s+`" style="`+m+`"/>`}}],parseElemsHtml:[ome],menus:[{key:`insertImage`,factory:function(){return new sme},config:qL},{key:`deleteImage`,factory:function(){return new cme}},{key:`editImage`,factory:function(){return new lme},config:qL},{key:`viewImageLink`,factory:function(){return new ume}},{key:`imageWidth30`,factory:function(){return new dme}},{key:`imageWidth50`,factory:function(){return new fme}},{key:`imageWidth100`,factory:function(){return new pme}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return e.type===`image`||t(e)},r.isVoid=function(e){return e.type===`image`||n(e)},r}},hme={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),xb(`div`,{style:{margin:`5px 0`}},xb(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},xb(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=X.findPath(n,e),i={checked:t.target.checked};G.setNodes(n,i,{at:r})}}})),xb(`span`,null,t))}},gme=function(){function e(){this.title=Z(`todo.todo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!!X.getSelectedNodeByType(e,`todo`)},e.prototype.isDisabled=function(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){if(B.isVoid(e,t)&&B.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`table`,`list-item`].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);G.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),_me={renderElems:[hme],elemsToHtml:[{type:`todo`,elemToHtml:function(e,t){return`<div data-w-e-type="todo"><input type="checkbox" disabled `+(e.checked?`checked`:``)+`>`+t+`</div>`}}],preParseHtml:[{selector:`ul.w-e-todo`,preParseHtml:function(e){var t=K(e).find(`li`),n=K(`<div data-w-e-type="todo"></div>`),r=t.find(`input[type]`);return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:`div[data-w-e-type="todo"]`,parseElemHtml:function(e,t,n){var r=K(e);(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=!1;return r.find(`input[type="checkbox"]`).attr(`checked`)!=null&&(i=!0),{type:`todo`,checked:i,children:t}}}],menus:[{key:`todo`,factory:function(){return new gme}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&U.isCollapsed(r)){var i=X.getSelectedNodeByType(e,`todo`);if(i&&V.string(i).length===0)return void G.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},vme={type:`blockquote`,renderElem:function(e,t,n){return xb(`blockquote`,null,t)}},yme={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},bme=function(){function e(){this.title=Z(`blockQuote.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!!X.getSelectedNodeByType(e,`blockquote`)},e.prototype.isDisabled=function(e){return e.selection==null||!LI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||t===`blockquote`},universal:!0,mode:`highest`}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?`paragraph`:`blockquote`;G.setNodes(e,{type:n},{mode:`highest`})}},e}(),xme={key:`blockquote`,factory:function(){return new bme}},Sme=$M([].slice),Cme=TF(`slice`),wme=BN(`species`),JL=VM.Array,Tme=Math.max;tF({target:`Array`,proto:!0,forced:!Cme},{slice:function(e,t){var n,r,i,a=iN(this),o=PP(a),s=jP(e,o),c=jP(t===void 0?o:t,o);if(rF(a)&&(n=a.constructor,(_F(n)&&(n===JL||rF(n.prototype))||oN(n)&&(n=n[wme])===null)&&(n=void 0),n===JL||n===void 0))return Sme(a,s,c);for(r=new(n===void 0?JL:n)(Tme(c-s,0)),i=0;s<c;s++,i++)s in a&&_I(r,i,a[s]);return r.length=i,r}});var Eme={renderElems:[vme],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[yme],menus:[xme],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var a=LI(B.nodes(e,{match:function(e){return X.checkNodeType(e,`blockquote`)},universal:!0}),1)[0];if(!a)return t();var o=a[0],s=X.findPath(e,o),c=B.end(e,s);if(S_.equals(c,i.focus)){var l=V.string(o);if(l&&l.slice(-1)===`
`)return e.deleteBackward(`character`),void G.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
`)},r}},Dme=function(){function e(){this.title=Z(`emotion.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>`,this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!!LI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=K(`<ul class="w-e-panel-content-emotion"></ul>`);t.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=K(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(n==null)return document.createElement(`ul`);n.empty();var r=e.getMenuConfig(`emotion`).emotions;return(r===void 0?[]:r).forEach((function(e){var t=K(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),Ome={menus:[{key:`emotion`,factory:function(){return new Dme},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},kme={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},Ame={selector:`font`,preParseHtml:function(e){var t=K(e);if(kI(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,kme[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},jme=$M(``.indexOf);tF({target:`String`,proto:!0,forced:!aL(`includes`)},{includes:function(e){return!!~jme(kF(rN(this)),kF(iL(e)),arguments.length>1?arguments[1]:void 0)}});var YL,XL,ZL=function(e){return e&&e.Math==Math&&e},QL=ZL(typeof globalThis==`object`&&globalThis)||ZL(typeof window==`object`&&window)||ZL(typeof self==`object`&&self)||ZL(typeof IM==`object`&&IM)||function(){return this}()||Function(`return this`)(),$L=Function.prototype,eR=$L.apply,Mme=$L.bind,tR=$L.call,nR=typeof Reflect==`object`&&Reflect.apply||(Mme?tR.bind(eR):function(){return tR.apply(eR,arguments)}),rR=Function.prototype,iR=rR.bind,aR=rR.call,Nme=iR&&iR.bind(aR),oR=iR?function(e){return e&&Nme(aR,e)}:function(e){return e&&function(){return aR.apply(e,arguments)}},sR=function(e){return typeof e==`function`},cR=function(e){try{return!!e()}catch{return!0}},lR=!cR((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),uR=Function.prototype.call,dR=uR.bind?uR.bind(uR):function(){return uR.apply(uR,arguments)},fR={}.propertyIsEnumerable,pR=Object.getOwnPropertyDescriptor,mR={f:pR&&!fR.call({1:2},1)?function(e){var t=pR(this,e);return!!t&&t.enumerable}:fR},hR=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pme=oR({}.toString),Fme=oR(``.slice),gR=function(e){return Fme(Pme(e),8,-1)},_R=QL.Object,Ime=oR(``.split),vR=cR((function(){return!_R(`z`).propertyIsEnumerable(0)}))?function(e){return gR(e)==`String`?Ime(e,``):_R(e)}:_R,Lme=QL.TypeError,yR=function(e){if(e==null)throw Lme(`Can't call method on `+e);return e},bR=function(e){return vR(yR(e))},xR=function(e){return typeof e==`object`?e!==null:sR(e)},SR={},CR=function(e){return sR(e)?e:void 0},wR=function(e,t){return arguments.length<2?CR(SR[e])||CR(QL[e]):SR[e]&&SR[e][t]||QL[e]&&QL[e][t]},TR=oR({}.isPrototypeOf),ER=wR(`navigator`,`userAgent`)||``,DR=QL.process,OR=QL.Deno,kR=DR&&DR.versions||OR&&OR.version,AR=kR&&kR.v8;AR&&(XL=(YL=AR.split(`.`))[0]>0&&YL[0]<4?1:+(YL[0]+YL[1])),!XL&&ER&&(!(YL=ER.match(/Edge\/(\d+)/))||YL[1]>=74)&&(YL=ER.match(/Chrome\/(\d+)/))&&(XL=+YL[1]);var jR=XL,MR=!!Object.getOwnPropertySymbols&&!cR((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jR&&jR<41})),NR=MR&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Rme=QL.Object,PR=NR?function(e){return typeof e==`symbol`}:function(e){var t=wR(`Symbol`);return sR(t)&&TR(t.prototype,Rme(e))},zme=QL.String,Bme=QL.TypeError,FR=function(e){if(sR(e))return e;throw Bme(function(e){try{return zme(e)}catch{return`Object`}}(e)+` is not a function`)},Vme=QL.TypeError,Hme=Object.defineProperty,IR=QL[`__core-js_shared__`]||function(e,t){try{Hme(QL,e,{value:t,configurable:!0,writable:!0})}catch{QL[e]=t}return t}(`__core-js_shared__`,{}),LR=LM((function(e){(e.exports=function(e,t){return IR[e]||(IR[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ume=QL.Object,RR=function(e){return Ume(yR(e))},Wme=oR({}.hasOwnProperty),zR=Object.hasOwn||function(e,t){return Wme(RR(e),t)},Gme=0,Kme=Math.random(),qme=oR(1 .toString),BR=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+qme(++Gme+Kme,36)},VR=LR(`wks`),HR=QL.Symbol,UR=HR&&HR.for,Jme=NR?HR:HR&&HR.withoutSetter||BR,WR=function(e){if(!zR(VR,e)||!MR&&typeof VR[e]!=`string`){var t=`Symbol.`+e;MR&&zR(HR,e)?VR[e]=HR[e]:VR[e]=NR&&UR?UR(t):Jme(t)}return VR[e]},Yme=QL.TypeError,Xme=WR(`toPrimitive`),GR=function(e){var t=function(e,t){if(!xR(e)||PR(e))return e;var n,r,i=(n=e[Xme])==null?void 0:FR(n);if(i){if(t===void 0&&(t=`default`),r=dR(i,e,t),!xR(r)||PR(r))return r;throw Yme(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&sR(n=e.toString)&&!xR(r=dR(n,e))||sR(n=e.valueOf)&&!xR(r=dR(n,e))||t!==`string`&&sR(n=e.toString)&&!xR(r=dR(n,e)))return r;throw Vme(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return PR(t)?t:t+``},KR=QL.document,Zme=xR(KR)&&xR(KR.createElement),qR=function(e){return Zme?KR.createElement(e):{}},JR=!lR&&!cR((function(){return Object.defineProperty(qR(`div`),`a`,{get:function(){return 7}}).a!=7})),YR=Object.getOwnPropertyDescriptor,XR={f:lR?YR:function(e,t){if(e=bR(e),t=GR(t),JR)try{return YR(e,t)}catch{}if(zR(e,t))return hR(!dR(mR.f,e,t),e[t])}},Qme=/#|\.prototype\./,ZR=function(e,t){var n=ehe[$me(e)];return n==nhe||n!=the&&(sR(t)?cR(t):!!t)},$me=ZR.normalize=function(e){return String(e).replace(Qme,`.`).toLowerCase()},ehe=ZR.data={},the=ZR.NATIVE=`N`,nhe=ZR.POLYFILL=`P`,rhe=ZR,QR=oR(oR.bind),$R=function(e,t){return FR(e),t===void 0?e:QR?QR(e,t):function(){return e.apply(t,arguments)}},ihe=QL.String,ahe=QL.TypeError,ez=function(e){if(xR(e))return e;throw ahe(ihe(e)+` is not an object`)},ohe=QL.TypeError,tz=Object.defineProperty,nz={f:lR?tz:function(e,t,n){if(ez(e),t=GR(t),ez(n),JR)try{return tz(e,t,n)}catch{}if(`get`in n||`set`in n)throw ohe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},rz=lR?function(e,t,n){return nz.f(e,t,hR(1,n))}:function(e,t,n){return e[t]=n,e},she=XR.f,che=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return nR(e,this,arguments)};return t.prototype=e.prototype,t},iz=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?QL:f?QL[u]:(QL[u]||{}).prototype,h=d?SR:SR[u]||rz(SR,u,{})[u],g=h.prototype;for(i in t)n=!rhe(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&zR(m,i),o=h[i],n&&(s=e.noTargetGet?(l=she(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?$R(a,QL):e.wrap&&n?che(a):p&&sR(a)?oR(a):a,(e.sham||a&&a.sham||o&&o.sham)&&rz(c,`sham`,!0),rz(h,i,c),p&&(zR(SR,r=u+`Prototype`)||rz(SR,r,{}),rz(SR[r],i,a),e.real&&g&&!g[i]&&rz(g,i,a)))},az=Array.isArray||function(e){return gR(e)==`Array`},lhe=Math.ceil,uhe=Math.floor,oz=function(e){var t=+e;return t!=t||t===0?0:(t>0?uhe:lhe)(t)},dhe=Math.min,sz=function(e){return(t=e.length)>0?dhe(oz(t),9007199254740991):0;var t},cz=function(e,t,n){var r=GR(t);r in e?nz.f(e,r,hR(0,n)):e[r]=n},lz={};lz[WR(`toStringTag`)]=`z`;var uz=String(lz)===`[object z]`,fhe=WR(`toStringTag`),phe=QL.Object,mhe=gR(function(){return arguments}())==`Arguments`,dz=uz?gR:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=phe(e),fhe))==`string`?n:mhe?gR(t):(r=gR(t))==`Object`&&sR(t.callee)?`Arguments`:r},hhe=oR(Function.toString);sR(IR.inspectSource)||(IR.inspectSource=function(e){return hhe(e)});var fz=IR.inspectSource,pz=function(){},ghe=[],mz=wR(`Reflect`,`construct`),hz=/^\s*(?:class|function)\b/,_he=oR(hz.exec),vhe=!hz.exec(pz),gz=function(e){if(!sR(e))return!1;try{return mz(pz,ghe,e),!0}catch{return!1}},yhe=!mz||cR((function(){var e;return gz(gz.call)||!gz(Object)||!gz((function(){e=!0}))||e}))?function(e){if(!sR(e))return!1;switch(dz(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return vhe||!!_he(hz,fz(e))}:gz,bhe=WR(`species`),_z=QL.Array,vz=function(e,t){return new(function(e){var t;return az(e)&&(t=e.constructor,(yhe(t)&&(t===_z||az(t.prototype))||xR(t)&&(t=t[bhe])===null)&&(t=void 0)),t===void 0?_z:t}(e))(t===0?0:t)},xhe=WR(`species`),yz=WR(`isConcatSpreadable`),bz=QL.TypeError,She=jR>=51||!cR((function(){var e=[];return e[yz]=!1,e.concat()[0]!==e})),Che=jR>=51||!cR((function(){var e=[];return(e.constructor={})[xhe]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),whe=function(e){if(!xR(e))return!1;var t=e[yz];return t===void 0?az(e):!!t};iz({target:`Array`,proto:!0,forced:!She||!Che},{concat:function(e){var t,n,r,i,a,o=RR(this),s=vz(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(whe(a=t===-1?o:arguments[t])){if(c+(i=sz(a))>9007199254740991)throw bz(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&cz(s,c,a[n])}else{if(c>=9007199254740991)throw bz(`Maximum allowed index exceeded`);cz(s,c++,a)}return s.length=c,s}});var xz,The=QL.String,Sz=function(e){if(dz(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return The(e)},Ehe=Math.max,Dhe=Math.min,Cz=function(e,t){var n=oz(e);return n<0?Ehe(n+t,0):Dhe(n,t)},wz=function(e){return function(t,n,r){var i,a=bR(t),o=sz(a),s=Cz(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Ohe={includes:wz(!0),indexOf:wz(!1)},Tz={},khe=Ohe.indexOf,Ez=oR([].push),Dz=function(e,t){var n,r=bR(e),i=0,a=[];for(n in r)!zR(Tz,n)&&zR(r,n)&&Ez(a,n);for(;t.length>i;)zR(r,n=t[i++])&&(~khe(a,n)||Ez(a,n));return a},Oz=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],kz=Object.keys||function(e){return Dz(e,Oz)},Ahe=lR?Object.defineProperties:function(e,t){ez(e);for(var n,r=bR(t),i=kz(t),a=i.length,o=0;a>o;)nz.f(e,n=i[o++],r[n]);return e},jhe=wR(`document`,`documentElement`),Az=LR(`keys`),jz=function(e){return Az[e]||(Az[e]=BR(e))},Mz=jz(`IE_PROTO`),Nz=function(){},Pz=function(e){return`<script>`+e+`<\/script>`},Fz=function(e){e.write(Pz(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Iz=function(){try{xz=new ActiveXObject(`htmlfile`)}catch{}var e,t;Iz=typeof document<`u`?document.domain&&xz?Fz(xz):((t=qR(`iframe`)).style.display=`none`,jhe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Pz(`document.F=Object`)),e.close(),e.F):Fz(xz);for(var n=Oz.length;n--;)delete Iz.prototype[Oz[n]];return Iz()};Tz[Mz]=!0;var Lz,Rz,zz,Bz=Object.create||function(e,t){var n;return e===null?n=Iz():(Nz.prototype=ez(e),n=new Nz,Nz.prototype=null,n[Mz]=e),t===void 0?n:Ahe(n,t)},Mhe=Oz.concat(`length`,`prototype`),Vz={f:Object.getOwnPropertyNames||function(e){return Dz(e,Mhe)}},Nhe=QL.Array,Phe=Math.max,Hz=Vz.f,Uz=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Wz={f:function(e){return Uz&&gR(e)==`Window`?function(e){try{return Hz(e)}catch{return function(e,t,n){for(var r=sz(e),i=Cz(void 0,r),a=Cz(r,r),o=Nhe(Phe(a-i,0)),s=0;i<a;i++,s++)cz(o,s,e[i]);return o.length=s,o}(Uz)}}(e):Hz(bR(e))}},Gz={f:Object.getOwnPropertySymbols},Fhe=oR([].slice),Kz=function(e,t,n,r){r&&r.enumerable?e[t]=n:rz(e,t,n)},qz={f:WR},Ihe=nz.f,Jz=function(e){var t=SR.Symbol||={};zR(t,e)||Ihe(t,e,{value:qz.f(e)})},Lhe=uz?{}.toString:function(){return`[object `+dz(this)+`]`},Rhe=nz.f,Yz=WR(`toStringTag`),Xz=function(e,t,n,r){if(e){var i=n?e:e.prototype;zR(i,Yz)||Rhe(i,Yz,{configurable:!0,value:t}),r&&!uz&&rz(i,`toString`,Lhe)}},Zz=QL.WeakMap,zhe=sR(Zz)&&/native code/.test(fz(Zz)),Qz=QL.TypeError,Bhe=QL.WeakMap;if(zhe||IR.state){var $z=IR.state||=new Bhe,Vhe=oR($z.get),eB=oR($z.has),Hhe=oR($z.set);Lz=function(e,t){if(eB($z,e))throw new Qz(`Object already initialized`);return t.facade=e,Hhe($z,e,t),t},Rz=function(e){return Vhe($z,e)||{}},zz=function(e){return eB($z,e)}}else{var tB=jz(`state`);Tz[tB]=!0,Lz=function(e,t){if(zR(e,tB))throw new Qz(`Object already initialized`);return t.facade=e,rz(e,tB,t),t},Rz=function(e){return zR(e,tB)?e[tB]:{}},zz=function(e){return zR(e,tB)}}var nB={set:Lz,get:Rz,has:zz,enforce:function(e){return zz(e)?Rz(e):Lz(e,{})},getterFor:function(e){return function(t){var n;if(!xR(t)||(n=Rz(t)).type!==e)throw Qz(`Incompatible receiver, `+e+` required`);return n}}},rB=oR([].push),iB=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=RR(c),h=vR(m),g=$R(l,u),_=sz(h),v=0,y=d||vz,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:rB(b,f)}else switch(e){case 4:return!1;case 7:rB(b,f)}return a?-1:r||i?i:b}},aB=[iB(0),iB(1),iB(2),iB(3),iB(4),iB(5),iB(6),iB(7)][0],oB=jz(`hidden`),sB=WR(`toPrimitive`),Uhe=nB.set,cB=nB.getterFor(`Symbol`),lB=Object.prototype,uB=QL.Symbol,dB=uB&&uB.prototype,fB=QL.TypeError,pB=QL.QObject,mB=wR(`JSON`,`stringify`),hB=XR.f,gB=nz.f,_B=Wz.f,Whe=mR.f,vB=oR([].push),yB=LR(`symbols`),bB=LR(`op-symbols`),xB=LR(`string-to-symbol-registry`),SB=LR(`symbol-to-string-registry`),Ghe=LR(`wks`),CB=!pB||!pB.prototype||!pB.prototype.findChild,wB=lR&&cR((function(){return Bz(gB({},`a`,{get:function(){return gB(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=hB(lB,t);r&&delete lB[t],gB(e,t,n),r&&e!==lB&&gB(lB,t,r)}:gB,TB=function(e,t){var n=yB[e]=Bz(dB);return Uhe(n,{type:`Symbol`,tag:e,description:t}),lR||(n.description=t),n},EB=function(e,t,n){e===lB&&EB(bB,t,n),ez(e);var r=GR(t);return ez(n),zR(yB,r)?(n.enumerable?(zR(e,oB)&&e[oB][r]&&(e[oB][r]=!1),n=Bz(n,{enumerable:hR(0,!1)})):(zR(e,oB)||gB(e,oB,hR(1,{})),e[oB][r]=!0),wB(e,r,n)):gB(e,r,n)},DB=function(e,t){ez(e);var n=bR(t);return aB(kz(n).concat(jB(n)),(function(t){lR&&!dR(OB,n,t)||EB(e,t,n[t])})),e},OB=function(e){var t=GR(e),n=dR(Whe,this,t);return!(this===lB&&zR(yB,t)&&!zR(bB,t))&&(!(n||!zR(this,t)||!zR(yB,t)||zR(this,oB)&&this[oB][t])||n)},kB=function(e,t){var n=bR(e),r=GR(t);if(n!==lB||!zR(yB,r)||zR(bB,r)){var i=hB(n,r);return!i||!zR(yB,r)||zR(n,oB)&&n[oB][r]||(i.enumerable=!0),i}},AB=function(e){var t=_B(bR(e)),n=[];return aB(t,(function(e){zR(yB,e)||zR(Tz,e)||vB(n,e)})),n},jB=function(e){var t=e===lB,n=_B(t?bB:bR(e)),r=[];return aB(n,(function(e){!zR(yB,e)||t&&!zR(lB,e)||vB(r,yB[e])})),r};if(MR||(dB=(uB=function(){if(TR(dB,this))throw fB(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Sz(arguments[0]):void 0,t=BR(e),n=function(e){this===lB&&dR(n,bB,e),zR(this,oB)&&zR(this[oB],t)&&(this[oB][t]=!1),wB(this,t,hR(1,e))};return lR&&CB&&wB(lB,t,{configurable:!0,set:n}),TB(t,e)}).prototype,Kz(dB,`toString`,(function(){return cB(this).tag})),Kz(uB,`withoutSetter`,(function(e){return TB(BR(e),e)})),mR.f=OB,nz.f=EB,XR.f=kB,Vz.f=Wz.f=AB,Gz.f=jB,qz.f=function(e){return TB(WR(e),e)},lR&&gB(dB,`description`,{configurable:!0,get:function(){return cB(this).description}})),iz({global:!0,wrap:!0,forced:!MR,sham:!MR},{Symbol:uB}),aB(kz(Ghe),(function(e){Jz(e)})),iz({target:`Symbol`,stat:!0,forced:!MR},{for:function(e){var t=Sz(e);if(zR(xB,t))return xB[t];var n=uB(t);return xB[t]=n,SB[n]=t,n},keyFor:function(e){if(!PR(e))throw fB(e+` is not a symbol`);if(zR(SB,e))return SB[e]},useSetter:function(){CB=!0},useSimple:function(){CB=!1}}),iz({target:`Object`,stat:!0,forced:!MR,sham:!lR},{create:function(e,t){return t===void 0?Bz(e):DB(Bz(e),t)},defineProperty:EB,defineProperties:DB,getOwnPropertyDescriptor:kB}),iz({target:`Object`,stat:!0,forced:!MR},{getOwnPropertyNames:AB,getOwnPropertySymbols:jB}),iz({target:`Object`,stat:!0,forced:cR((function(){Gz.f(1)}))},{getOwnPropertySymbols:function(e){return Gz.f(RR(e))}}),mB&&iz({target:`JSON`,stat:!0,forced:!MR||cR((function(){var e=uB();return mB([e])!=`[null]`||mB({a:e})!=`{}`||mB(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Fhe(arguments),i=t;if((xR(t)||e!==void 0)&&!PR(e))return az(t)||(t=function(e,t){if(sR(i)&&(t=dR(i,this,e,t)),!PR(t))return t}),r[1]=t,nR(mB,null,r)}}),!dB[sB]){var Khe=dB.valueOf;Kz(dB,sB,(function(e){return dR(Khe,this)}))}Xz(uB,`Symbol`),Tz[oB]=!0,Jz(`asyncIterator`),Jz(`hasInstance`),Jz(`isConcatSpreadable`),Jz(`iterator`),Jz(`match`),Jz(`matchAll`),Jz(`replace`),Jz(`search`),Jz(`species`),Jz(`split`),Jz(`toPrimitive`),Jz(`toStringTag`),Jz(`unscopables`),Xz(QL.JSON,`JSON`,!0);var MB,NB,PB,qhe=SR.Symbol,FB={},IB=Function.prototype,Jhe=lR&&Object.getOwnPropertyDescriptor,LB=zR(IB,`name`),Yhe={EXISTS:LB,PROPER:LB&&function(){}.name===`something`,CONFIGURABLE:LB&&(!lR||lR&&Jhe(IB,`name`).configurable)},Xhe=!cR((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),RB=jz(`IE_PROTO`),zB=QL.Object,Zhe=zB.prototype,BB=Xhe?zB.getPrototypeOf:function(e){var t=RR(e);if(zR(t,RB))return t[RB];var n=t.constructor;return sR(n)&&t instanceof n?n.prototype:t instanceof zB?Zhe:null},VB=WR(`iterator`),HB=!1;[].keys&&(`next`in(PB=[].keys())?(NB=BB(BB(PB)))!==Object.prototype&&(MB=NB):HB=!0),MB=MB==null||cR((function(){var e={};return MB[VB].call(e)!==e}))?{}:Bz(MB),sR(MB[VB])||Kz(MB,VB,(function(){return this}));var UB={IteratorPrototype:MB,BUGGY_SAFARI_ITERATORS:HB},Qhe=UB.IteratorPrototype,$he=function(){return this};QL.String,QL.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{oR(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var ege=Yhe.PROPER,WB=UB.BUGGY_SAFARI_ITERATORS,GB=WR(`iterator`),tge=function(){return this},KB=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Bz(Qhe,{next:hR(1,n)}),Xz(e,i,!1,!0),FB[i]=$he})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!WB&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[GB]||p[`@@iterator`]||i&&p[i],h=!WB&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=BB(g.call(new e)))!==Object.prototype&&s.next&&(Xz(s,d,!0,!0),FB[d]=tge),ege&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return dR(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(WB||f||!(l in p))&&Kz(p,l,c[l]);else iz({target:t,proto:!0,forced:WB||f},c);return o&&p[GB]!==h&&Kz(p,GB,h,{name:i}),FB[t]=h,c},nge=nB.set,rge=nB.getterFor(`Array Iterator`);KB(Array,`Array`,(function(e,t){nge(this,{type:`Array Iterator`,target:bR(e),index:0,kind:t})}),(function(){var e=rge(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),FB.Arguments=FB.Array;var qB=WR(`toStringTag`);for(var JB in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var YB=QL[JB],XB=YB&&YB.prototype;XB&&dz(XB)!==qB&&rz(XB,qB,JB),FB[JB]=FB.Array}var ige=qhe;Jz(`asyncDispose`),Jz(`dispose`),Jz(`matcher`),Jz(`metadata`),Jz(`observable`),Jz(`patternMatch`),Jz(`replaceAll`);var ZB=ige,age=oR(``.charAt),QB=oR(``.charCodeAt),oge=oR(``.slice),sge=function(e){return function(t,n){var r,i,a=Sz(yR(t)),o=oz(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=QB(a,o))<55296||r>56319||o+1===s||(i=QB(a,o+1))<56320||i>57343?e?age(a,o):r:e?oge(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),cge=nB.set,lge=nB.getterFor(`String Iterator`);KB(String,`String`,(function(e){cge(this,{type:`String Iterator`,string:Sz(e),index:0})}),(function(){var e,t=lge(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=sge(n,r),t.index+=e.length,{value:e,done:!1})}));var uge=qz.f(`iterator`),$B=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(LM((function(e){function t(n){return typeof ZB==`function`&&typeof uge==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof ZB==`function`&&e.constructor===ZB&&e!==ZB.prototype?`symbol`:typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),dge=wP.EXISTS,fge=tP.f,eV=Function.prototype,pge=$M(eV.toString),tV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mge=$M(tV.exec);UM&&!dge&&fge(eV,`name`,{configurable:!0,get:function(){try{return mge(tV,pge(this))[1]}catch{return``}}});var nV=function(){function e(){this.tag=`select`,this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=B.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!LI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),hge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=Jfe,t.mark=`fontSize`,t}return MI(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=n===void 0?[]:n;t.push({text:Z(`fontSize.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e});else if($B(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(nV),gge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=Yfe,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return MI(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=n===void 0?[]:n;t.push({text:Z(`fontFamily.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if($B(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(nV),_ge={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&_L(a,{fontSize:r}),i&&_L(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!W.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((DI(t)||kI(n=K(t))!==`span`)&&(n=K(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),OI(n)):t},preParseHtml:[Ame],parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=AI(r,`font-size`),c=o.find((function(e){return e.value&&e.value===s}))||o.includes(s);s&&c&&(i.fontSize=s);var l=n.getMenuConfig(`fontFamily`).fontFamilyList,u=l===void 0?[]:l,d=AI(r,`font-family`).replace(/"/g,``),f=u.find((function(e){return e.value&&e.value===d}))||u.includes(d);return d&&f&&(i.fontFamily=d),i},menus:[{key:`fontSize`,factory:function(){return new hge},config:{fontSizeList:[`12px`,{name:`13px`,value:`13px`},`14px`,`15px`,`16px`,`19px`,{name:`22px`,value:`22px`},`24px`,`29px`,`32px`,`40px`,`48px`]}},{key:`fontFamily`,factory:function(){return new gge},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},vge={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=K(e),n=AI(t,`padding-left`);return/\dem/.test(n)&&t.css(`text-indent`,`2em`),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css(`text-indent`,`2em`),t[0]}},rV=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=LI(B.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:LI(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=LI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e}(),yge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.decrease`),t.iconSvg=Xfe,t}return MI(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){G.setNodes(e,{indent:null},{match:function(e){return z.isElement(e)}})},t}(rV),bge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.increase`),t.iconSvg=Zfe,t}return MI(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){G.setNodes(e,{indent:`2em`},{match:function(e){return z.isElement(e)},mode:`highest`})},t}(rV),xge={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.indent,r=t;return n&&_L(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!z.isElement(e))return t;var n=e.indent;if(!n)return t;var r=K(t);return r.css(`text-indent`,n),OI(r)},preParseHtml:[vge],parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=AI(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new bge}},{key:`delIndent`,factory:function(){return new yge}}]},iV=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=LI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||t===`blockquote`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isDisabled=function(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){if(B.isVoid(e,t)&&B.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),Sge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.left`),t.iconSvg=Qfe,t}return MI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`left`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(iV),Cge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.right`),t.iconSvg=$fe,t}return MI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`right`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(iV),wge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.center`),t.iconSvg=epe,t}return MI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`center`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(iV),Tge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.justify`),t.iconSvg=tpe,t}return MI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`justify`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(iV),Ege={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.textAlign,r=t;return n&&_L(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!z.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=K(t);return r.css(`text-align`,n),OI(r)},parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=AI(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new Sge}},{key:`justifyRight`,factory:function(){return new Cge}},{key:`justifyCenter`,factory:function(){return new wge}},{key:`justifyJustify`,factory:function(){return new Tge}}]},Dge=function(){function e(){this.title=Z(`lineHeight.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>`,this.tag=`select`,this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(`lineHeight`).lineHeightList,r=n===void 0?[]:n;t.push({text:Z(`lineHeight.default`),value:``}),r.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=LI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return!!t.startsWith(`header`)||!![`paragraph`,`blockquote`,`list-item`].includes(t)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return t==null?``:z.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){G.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),Oge={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.lineHeight,r=t;return n&&_L(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!z.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=K(t);return r.css(`line-height`,n),OI(r)},parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=AI(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new Dge},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},kge=function(){function e(){this.title=Z(`undo.redo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null},e.prototype.exec=function(e,t){typeof e.redo==`function`&&e.redo()},e}(),Age=function(){function e(){this.title=Z(`undo.undo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null},e.prototype.exec=function(e,t){typeof e.undo==`function`&&e.undo()},e}(),jge={menus:[{key:`redo`,factory:function(){return new kge}},{key:`undo`,factory:function(){return new Age}}]},Mge={type:`divider`,renderElem:function(e,t,n){return tb(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[tb(`hr`)])}},Nge=function(){function e(){this.title=Z(`divider.title`),this.iconSvg=`<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=X.getNodeType(t);return n===`table`||n===`pre`||void 0}))},e.prototype.exec=function(e,t){G.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),aV={renderElems:[Mge],elemsToHtml:[{type:`divider`,elemToHtml:function(e,t){return`<hr/>`}}],parseElemsHtml:[{selector:`hr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`divider`,children:[{text:``}]}}}],menus:[{key:`divider`,factory:function(){return new Nge}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`divider`||t(e)},r.normalizeNode=function(e){var t=LI(e,2),i=t[0],a=t[1];if(X.getNodeType(i)!==`divider`)return n([i,a]);X.isLastNode(r,i)&&G.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]})},r}},oV=CF.map;tF({target:`Array`,proto:!0,forced:!TF(`map`)},{map:function(e){return oV(this,e,arguments.length>1?arguments[1]:void 0)}});var sV=$M([].join),cV=nN!=Object,lV=KI(`join`,`,`);tF({target:`Array`,proto:!0,forced:cV||!lV},{join:function(e){return sV(iN(this),e===void 0?`,`:e)}});var uV=function(){function e(){this.title=Z(`codeBlock.title`),this.iconSvg=`<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>`,this.tag=`button`}return e.prototype.getSelectCodeElem=function(e){var t=X.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=X.getParentNode(e,t);return n==null||X.getNodeType(n)!==`pre`?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return t==null?``:t.language||``},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(e.selection==null)return!0;var t=X.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=X.getNodeType(e);if(t===`pre`||t===`paragraph`)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(t!=null){var n=V.string(t);G.removeNodes(e,{mode:`highest`});var r=n.split(`
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));G.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=B.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=II(a),s=o.next();!s.done;s=o.next()){var c=LI(s.value,1)[0];c&&i.push(V.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}G.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
`)}]}]};G.insertNodes(e,l,{mode:`highest`})},e}(),dV={key:`codeBlock`,factory:function(){return new uV}};tF({target:`String`,proto:!0,forced:BI(`anchor`)},{anchor:function(e){return zI(this,`a`,`name`,e)}}),tI(`match`,(function(e,t,n){return[function(t){var n=rN(this),r=t==null?void 0:SN(t,e);return r?GM(r,t,n):new RegExp(t)[e](kF(n))},function(e){var r=QN(this),i=kF(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return oI(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=oI(r,i))!==null;){var u=kF(s[0]);c[l]=u,u===``&&(r.lastIndex=rI(i,NP(r.lastIndex),o)),l++}return l===0?null:c}]}));var fV={menus:[dV],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var e=X.getSelectedNodeByType(i,`code`);if(e!=null){var n=function(e,t){var n=t.selection;if(n==null)return``;var r=V.string(e),i=n.anchor.offset,a=r.slice(0,i).split(`
`),o=a.length;return o===0?``:a[o-1]}(e,i);if(n){var r=n.match(/^\s+/);if(r!=null&&r[0]!=null){var a=r[0];i.insertText(`
`+a);return}}i.insertText(`
`)}else t()},i.normalizeNode=function(e){var t=LI(e,2),r=t[0],a=t[1],o=X.getNodeType(r);return o===`code`&&a.length<=1&&G.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(X.isLastNode(i,r)&&G.insertNodes(i,X.genEmptyParagraph(),{at:[a[0]+1]}),X.getNodeType(r.children[0])!==`code`&&(G.unwrapNodes(i),G.setNodes(i,{type:`paragraph`},{mode:`highest`}))),n([r,a])},i.insertData=function(e){if(X.getSelectedNodeByType(i,`code`)!=null){var t=e.getData(`text/plain`);B.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return xb(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return xb(`code`,null,t)}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){return`<code>`+t+`</code>`}},{type:`pre`,elemToHtml:function(e,t){return`<pre>`+t+`</pre>`}}],preParseHtml:[{selector:`pre>code`,preParseHtml:function(e){var t=K(e);if(kI(t)!==`code`)return e;var n=t.find(`xmp`);if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:`pre:not([data-w-e-type])>code`,parseElemHtml:function(e,t,n){return{type:`code`,language:``,children:[{text:K(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return X.getNodeType(e)===`code`}))).length===0&&(t=[{type:`code`,language:``,children:[{text:r[0].textContent||``}]}]),{type:`pre`,children:t.filter((function(e){return X.getNodeType(e)===`code`}))}}}]},pV=function(){function e(){this.title=Z(`fullScreen.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>`,this.tag=`button`,this.alwaysEnable=!0}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),mV={menus:[{key:`fullScreen`,factory:function(){return new pV}}]},hV=function(){function e(){this.title=Z(`common.enter`),this.iconSvg=`<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!!U.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];G.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(B.start(e,r))}},e}(),gV=[fpe,Wpe,_ge,xge,Ege,Oge,mme,aV,Ome,tme,fV,Eme,zpe,Ffe,_me,jge,mV,{menus:[{key:`enter`,factory:function(){return new hV}}]}];wM(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),wM(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var _V=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function vV(e){var t={exports:{}};return e(t,t.exports),t.exports}var yV,bV,xV=function(e){return e&&e.Math==Math&&e},SV=xV(typeof globalThis==`object`&&globalThis)||xV(typeof window==`object`&&window)||xV(typeof self==`object`&&self)||xV(typeof _V==`object`&&_V)||function(){return this}()||Function(`return this`)(),CV=Function.prototype,wV=CV.bind,TV=CV.call,EV=wV&&wV.bind(TV),DV=wV?function(e){return e&&EV(TV,e)}:function(e){return e&&function(){return TV.apply(e,arguments)}},OV=function(e){try{return!!e()}catch{return!0}},kV=DV({}.toString),AV=DV(``.slice),jV=function(e){return AV(kV(e),8,-1)},MV=SV.Object,NV=DV(``.split),PV=OV((function(){return!MV(`z`).propertyIsEnumerable(0)}))?function(e){return jV(e)==`String`?NV(e,``):MV(e)}:MV,FV=SV.TypeError,IV=function(e){if(e==null)throw FV(`Can't call method on `+e);return e},LV=function(e){return PV(IV(e))},RV=Object.defineProperty,zV=function(e,t){try{RV(SV,e,{value:t,configurable:!0,writable:!0})}catch{SV[e]=t}return t},BV=SV[`__core-js_shared__`]||zV(`__core-js_shared__`,{}),VV=vV((function(e){(e.exports=function(e,t){return BV[e]||(BV[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),HV=SV.Object,UV=function(e){return HV(IV(e))},WV=DV({}.hasOwnProperty),GV=Object.hasOwn||function(e,t){return WV(UV(e),t)},KV=0,qV=Math.random(),JV=DV(1 .toString),YV=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+JV(++KV+qV,36)},XV=function(e){return typeof e==`function`},ZV=function(e){return XV(e)?e:void 0},QV=function(e,t){return arguments.length<2?ZV(SV[e]):SV[e]&&SV[e][t]},$V=QV(`navigator`,`userAgent`)||``,eH=SV.process,tH=SV.Deno,nH=eH&&eH.versions||tH&&tH.version,rH=nH&&nH.v8;rH&&(bV=(yV=rH.split(`.`))[0]>0&&yV[0]<4?1:+(yV[0]+yV[1])),!bV&&$V&&(!(yV=$V.match(/Edge\/(\d+)/))||yV[1]>=74)&&(yV=$V.match(/Chrome\/(\d+)/))&&(bV=+yV[1]);var iH,aH=bV,oH=!!Object.getOwnPropertySymbols&&!OV((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aH&&aH<41})),sH=oH&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,cH=VV(`wks`),lH=SV.Symbol,uH=lH&&lH.for,dH=sH?lH:lH&&lH.withoutSetter||YV,fH=function(e){if(!GV(cH,e)||!oH&&typeof cH[e]!=`string`){var t=`Symbol.`+e;oH&&GV(lH,e)?cH[e]=lH[e]:cH[e]=sH&&uH?uH(t):dH(t)}return cH[e]},pH=function(e){return typeof e==`object`?e!==null:XV(e)},mH=SV.String,hH=SV.TypeError,gH=function(e){if(pH(e))return e;throw hH(mH(e)+` is not an object`)},_H=!OV((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),vH=SV.document,yH=pH(vH)&&pH(vH.createElement),bH=function(e){return yH?vH.createElement(e):{}},xH=!_H&&!OV((function(){return Object.defineProperty(bH(`div`),`a`,{get:function(){return 7}}).a!=7})),SH=Function.prototype.call,CH=SH.bind?SH.bind(SH):function(){return SH.apply(SH,arguments)},wH=DV({}.isPrototypeOf),TH=SV.Object,EH=sH?function(e){return typeof e==`symbol`}:function(e){var t=QV(`Symbol`);return XV(t)&&wH(t.prototype,TH(e))},DH=SV.String,OH=function(e){try{return DH(e)}catch{return`Object`}},kH=SV.TypeError,AH=function(e){if(XV(e))return e;throw kH(OH(e)+` is not a function`)},jH=function(e,t){var n=e[t];return n==null?void 0:AH(n)},MH=SV.TypeError,NH=SV.TypeError,PH=fH(`toPrimitive`),FH=function(e){var t=function(e,t){if(!pH(e)||EH(e))return e;var n,r=jH(e,PH);if(r){if(t===void 0&&(t=`default`),n=CH(r,e,t),!pH(n)||EH(n))return n;throw NH(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&XV(n=e.toString)&&!pH(r=CH(n,e))||XV(n=e.valueOf)&&!pH(r=CH(n,e))||t!==`string`&&XV(n=e.toString)&&!pH(r=CH(n,e)))return r;throw MH(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return EH(t)?t:t+``},IH=SV.TypeError,LH=Object.defineProperty,RH={f:_H?LH:function(e,t,n){if(gH(e),t=FH(t),gH(n),xH)try{return LH(e,t,n)}catch{}if(`get`in n||`set`in n)throw IH(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},zH=Math.ceil,BH=Math.floor,VH=function(e){var t=+e;return t!=t||t===0?0:(t>0?BH:zH)(t)},HH=Math.max,UH=Math.min,WH=function(e,t){var n=VH(e);return n<0?HH(n+t,0):UH(n,t)},GH=Math.min,KH=function(e){return e>0?GH(VH(e),9007199254740991):0},qH=function(e){return KH(e.length)},JH=function(e){return function(t,n,r){var i,a=LV(t),o=qH(a),s=WH(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},YH={includes:JH(!0),indexOf:JH(!1)},XH={},ZH=YH.indexOf,QH=DV([].push),$H=function(e,t){var n,r=LV(e),i=0,a=[];for(n in r)!GV(XH,n)&&GV(r,n)&&QH(a,n);for(;t.length>i;)GV(r,n=t[i++])&&(~ZH(a,n)||QH(a,n));return a},eU=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],tU=Object.keys||function(e){return $H(e,eU)},nU=_H?Object.defineProperties:function(e,t){gH(e);for(var n,r=LV(t),i=tU(t),a=i.length,o=0;a>o;)RH.f(e,n=i[o++],r[n]);return e},rU=QV(`document`,`documentElement`),iU=VV(`keys`),aU=function(e){return iU[e]||(iU[e]=YV(e))},oU=aU(`IE_PROTO`),sU=function(){},cU=function(e){return`<script>`+e+`<\/script>`},lU=function(e){e.write(cU(``)),e.close();var t=e.parentWindow.Object;return e=null,t},uU=function(){try{iH=new ActiveXObject(`htmlfile`)}catch{}var e,t;uU=typeof document<`u`?document.domain&&iH?lU(iH):((t=bH(`iframe`)).style.display=`none`,rU.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(cU(`document.F=Object`)),e.close(),e.F):lU(iH);for(var n=eU.length;n--;)delete uU.prototype[eU[n]];return uU()};XH[oU]=!0;var dU=Object.create||function(e,t){var n;return e===null?n=uU():(sU.prototype=gH(e),n=new sU,sU.prototype=null,n[oU]=e),t===void 0?n:nU(n,t)},fU=fH(`unscopables`),pU=Array.prototype;pU[fU]??RH.f(pU,fU,{configurable:!0,value:dU(null)});var mU=function(e){pU[fU][e]=!0},hU={},gU=DV(Function.toString);XV(BV.inspectSource)||(BV.inspectSource=function(e){return gU(e)});var _U,vU,yU,bU=BV.inspectSource,xU=SV.WeakMap,SU=XV(xU)&&/native code/.test(bU(xU)),CU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wU=_H?function(e,t,n){return RH.f(e,t,CU(1,n))}:function(e,t,n){return e[t]=n,e},TU=SV.TypeError,EU=SV.WeakMap;if(SU||BV.state){var DU=BV.state||=new EU,OU=DV(DU.get),kU=DV(DU.has),AU=DV(DU.set);_U=function(e,t){if(kU(DU,e))throw new TU(`Object already initialized`);return t.facade=e,AU(DU,e,t),t},vU=function(e){return OU(DU,e)||{}},yU=function(e){return kU(DU,e)}}else{var jU=aU(`state`);XH[jU]=!0,_U=function(e,t){if(GV(e,jU))throw new TU(`Object already initialized`);return t.facade=e,wU(e,jU,t),t},vU=function(e){return GV(e,jU)?e[jU]:{}},yU=function(e){return GV(e,jU)}}var MU,NU,PU,FU={set:_U,get:vU,has:yU,enforce:function(e){return yU(e)?vU(e):_U(e,{})},getterFor:function(e){return function(t){var n;if(!pH(t)||(n=vU(t)).type!==e)throw TU(`Incompatible receiver, `+e+` required`);return n}}},IU={}.propertyIsEnumerable,LU=Object.getOwnPropertyDescriptor,RU={f:LU&&!IU.call({1:2},1)?function(e){var t=LU(this,e);return!!t&&t.enumerable}:IU},zU=Object.getOwnPropertyDescriptor,BU={f:_H?zU:function(e,t){if(e=LV(e),t=FH(t),xH)try{return zU(e,t)}catch{}if(GV(e,t))return CU(!CH(RU.f,e,t),e[t])}},VU=Function.prototype,HU=_H&&Object.getOwnPropertyDescriptor,UU=GV(VU,`name`),WU={EXISTS:UU,PROPER:UU&&function(){}.name===`something`,CONFIGURABLE:UU&&(!_H||_H&&HU(VU,`name`).configurable)},GU=vV((function(e){var t=WU.CONFIGURABLE,n=FU.get,r=FU.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;XV(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!GV(a,`name`)||t&&a.name!==d)&&wU(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===SV?l?e[n]=a:zV(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:wU(e,n,a))})(Function.prototype,`toString`,(function(){return XV(this)&&n(this).source||bU(this)}))})),KU=eU.concat(`length`,`prototype`),qU={f:Object.getOwnPropertyNames||function(e){return $H(e,KU)}},JU={f:Object.getOwnPropertySymbols},YU=DV([].concat),XU=QV(`Reflect`,`ownKeys`)||function(e){var t=qU.f(gH(e)),n=JU.f;return n?YU(t,n(e)):t},ZU=function(e,t){for(var n=XU(t),r=RH.f,i=BU.f,a=0;a<n.length;a++){var o=n[a];GV(e,o)||r(e,o,i(t,o))}},QU=/#|\.prototype\./,$U=function(e,t){var n=tW[eW(e)];return n==rW||n!=nW&&(XV(t)?OV(t):!!t)},eW=$U.normalize=function(e){return String(e).replace(QU,`.`).toLowerCase()},tW=$U.data={},nW=$U.NATIVE=`N`,rW=$U.POLYFILL=`P`,iW=$U,aW=BU.f,oW=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?SV:l?SV[s]||zV(s,{}):(SV[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=aW(n,r))&&o.value:n[r],!iW(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ZU(a,i)}(e.sham||i&&i.sham)&&wU(a,`sham`,!0),GU(n,r,a,e)}},sW=!OV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cW=aU(`IE_PROTO`),lW=SV.Object,uW=lW.prototype,dW=sW?lW.getPrototypeOf:function(e){var t=UV(e);if(GV(t,cW))return t[cW];var n=t.constructor;return XV(n)&&t instanceof n?n.prototype:t instanceof lW?uW:null},fW=fH(`iterator`),pW=!1;[].keys&&(`next`in(PU=[].keys())?(NU=dW(dW(PU)))!==Object.prototype&&(MU=NU):pW=!0),(MU==null||OV((function(){var e={};return MU[fW].call(e)!==e})))&&(MU={}),XV(MU[fW])||GU(MU,fW,(function(){return this}));var mW={IteratorPrototype:MU,BUGGY_SAFARI_ITERATORS:pW},hW=RH.f,gW=fH(`toStringTag`),_W=function(e,t,n){e&&!GV(e=n?e:e.prototype,gW)&&hW(e,gW,{configurable:!0,value:t})},vW=mW.IteratorPrototype,yW=function(){return this},bW=SV.String,xW=SV.TypeError,SW=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=DV(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return gH(n),function(e){if(typeof e==`object`||XV(e))return e;throw xW(`Can't set `+bW(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),CW=WU.PROPER,wW=WU.CONFIGURABLE,TW=mW.IteratorPrototype,EW=mW.BUGGY_SAFARI_ITERATORS,DW=fH(`iterator`),OW=function(){return this},kW=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=dU(vW,{next:CU(1,n)}),_W(e,i,!1),hU[i]=yW})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!EW&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[DW]||p[`@@iterator`]||i&&p[i],h=!EW&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=dW(g.call(new e)))!==Object.prototype&&s.next&&(dW(s)!==TW&&(SW?SW(s,TW):XV(s[DW])||GU(s,DW,OW)),_W(s,d,!0)),CW&&i==`values`&&m&&m.name!==`values`&&(wW?wU(p,`name`,`values`):(f=!0,h=function(){return CH(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(EW||f||!(l in p))&&GU(p,l,c[l]);else oW({target:t,proto:!0,forced:EW||f},c);return p[DW]!==h&&GU(p,DW,h,{name:i}),hU[t]=h,c},AW=FU.set,jW=FU.getterFor(`Array Iterator`),MW=kW(Array,`Array`,(function(e,t){AW(this,{type:`Array Iterator`,target:LV(e),index:0,kind:t})}),(function(){var e=jW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);hU.Arguments=hU.Array,mU(`keys`),mU(`values`),mU(`entries`);var NW={};NW[fH(`toStringTag`)]=`z`;var PW=String(NW)===`[object z]`,FW=fH(`toStringTag`),IW=SV.Object,LW=jV(function(){return arguments}())==`Arguments`,RW=PW?jV:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=IW(e),FW))==`string`?n:LW?jV(t):(r=jV(t))==`Object`&&XV(t.callee)?`Arguments`:r},zW=PW?{}.toString:function(){return`[object `+RW(this)+`]`};PW||GU(Object.prototype,`toString`,zW,{unsafe:!0});var BW=SV.String,VW=function(e){if(RW(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return BW(e)},HW=DV(``.charAt),UW=DV(``.charCodeAt),WW=DV(``.slice),GW=function(e){return function(t,n){var r,i,a=VW(IV(t)),o=VH(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=UW(a,o))<55296||r>56319||o+1===s||(i=UW(a,o+1))<56320||i>57343?e?HW(a,o):r:e?WW(a,o,o+2):i-56320+(r-55296<<10)+65536}},KW={codeAt:GW(!1),charAt:GW(!0)},qW=KW.charAt,JW=FU.set,YW=FU.getterFor(`String Iterator`);kW(String,`String`,(function(e){JW(this,{type:`String Iterator`,string:VW(e),index:0})}),(function(){var e,t=YW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qW(n,r),t.index+=e.length,{value:e,done:!1})}));var XW=function(e,t,n){for(var r in t)GU(e,r,t[r],n);return e},ZW=SV.Array,QW=Math.max,$W=qU.f,eG=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tG={f:function(e){return eG&&jV(e)==`Window`?function(e){try{return $W(e)}catch{return function(e,t,n){for(var r,i,a,o,s=qH(e),c=WH(void 0,s),l=WH(s,s),u=ZW(QW(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=FH(i))in r?RH.f(r,o,CU(0,a)):r[o]=a;return u.length=d,u}(eG)}}(e):$W(LV(e))}},nG=OV((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),rG=Object.isExtensible,iG=OV((function(){rG(1)}))||nG?function(e){return!!pH(e)&&(!nG||jV(e)!=`ArrayBuffer`)&&(!rG||rG(e))}:rG,aG=!OV((function(){return Object.isExtensible(Object.preventExtensions({}))})),oG=vV((function(e){var t=RH.f,n=!1,r=YV(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=qU.f,t=DV([].splice),i={};i[r]=1,e(i).length&&(qU.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},oW({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:tG.f}))},fastKey:function(e,t){if(!pH(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!GV(e,r)){if(!iG(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!GV(e,r)){if(!iG(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return aG&&n&&iG(e)&&!GV(e,r)&&a(e),e}};XH[r]=!0})),sG=DV(DV.bind),cG=function(e,t){return AH(e),t===void 0?e:sG?sG(e,t):function(){return e.apply(t,arguments)}},lG=fH(`iterator`),uG=Array.prototype,dG=fH(`iterator`),fG=function(e){if(e!=null)return jH(e,dG)||jH(e,`@@iterator`)||hU[RW(e)]},pG=SV.TypeError,mG=function(e,t,n){var r,i;gH(e);try{if(!(r=jH(e,`return`))){if(t===`throw`)throw n;return n}r=CH(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return gH(r),n},hG=SV.TypeError,gG=function(e,t){this.stopped=e,this.result=t},_G=gG.prototype,vG=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=cG(t,d),g=function(e){return r&&mG(r,`normal`,e),new gG(!0,e)},_=function(e){return f?(gH(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=fG(e)))throw hG(OH(e)+` is not iterable`);if((u=i)!==void 0&&(hU.Array===u||uG[lG]===u)){for(a=0,o=qH(e);o>a;a++)if((s=_(e[a]))&&wH(_G,s))return s;return new gG(!1)}r=function(e,t){var n=arguments.length<2?fG(e):t;if(AH(n))return gH(CH(n,e));throw pG(OH(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=CH(c,r)).done;){try{s=_(l.value)}catch(e){mG(r,`throw`,e)}if(typeof s==`object`&&s&&wH(_G,s))return s}return new gG(!1)},yG=SV.TypeError,bG=function(e,t){if(wH(t,e))return e;throw yG(`Incorrect invocation`)},xG=fH(`iterator`),SG=!1;try{var CG=0,wG={next:function(){return{done:!!CG++}},return:function(){SG=!0}};wG[xG]=function(){return this},Array.from(wG,(function(){throw 2}))}catch{}var TG=Array.isArray||function(e){return jV(e)==`Array`},EG=function(){},DG=[],OG=QV(`Reflect`,`construct`),kG=/^\s*(?:class|function)\b/,AG=DV(kG.exec),jG=!kG.exec(EG),MG=function(e){if(!XV(e))return!1;try{return OG(EG,DG,e),!0}catch{return!1}},NG=!OG||OV((function(){var e;return MG(MG.call)||!MG(Object)||!MG((function(){e=!0}))||e}))?function(e){if(!XV(e))return!1;switch(RW(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return jG||!!AG(kG,bU(e))}:MG,PG=fH(`species`),FG=SV.Array,IG=function(e,t){return new(function(e){var t;return TG(e)&&(t=e.constructor,(NG(t)&&(t===FG||TG(t.prototype))||pH(t)&&(t=t[PG])===null)&&(t=void 0)),t===void 0?FG:t}(e))(t===0?0:t)},LG=DV([].push),RG=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=UV(c),h=PV(m),g=cG(l,u),_=qH(h),v=0,y=d||IG,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:LG(b,f)}else switch(e){case 4:return!1;case 7:LG(b,f)}return a?-1:r||i?i:b}},zG={forEach:RG(0),map:RG(1),filter:RG(2),some:RG(3),every:RG(4),find:RG(5),findIndex:RG(6),filterReject:RG(7)},BG=oG.getWeakData,VG=FU.set,HG=FU.getterFor,UG=zG.find,WG=zG.findIndex,GG=DV([].splice),KG=0,qG=function(e){return e.frozen||=new JG},JG=function(){this.entries=[]},YG=function(e,t){return UG(e.entries,(function(e){return e[0]===t}))};JG.prototype={get:function(e){var t=YG(this,e);if(t)return t[1]},has:function(e){return!!YG(this,e)},set:function(e,t){var n=YG(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WG(this.entries,(function(t){return t[0]===e}));return~t&&GG(this.entries,t,1),!!~t}};var XG,ZG={getConstructor:function(e,t,n,r){var i=e((function(e,i){bG(e,a),VG(e,{type:t,id:KG++,frozen:void 0}),i!=null&&vG(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=HG(t),s=function(e,t,n){var r=o(e),i=BG(gH(t),!0);return!0===i?qG(r).set(t,n):i[r.id]=n,e};return XW(a,{delete:function(e){var t=o(this);if(!pH(e))return!1;var n=BG(e);return!0===n?qG(t).delete(e):n&&GV(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!pH(e))return!1;var n=BG(e);return!0===n?qG(t).has(e):n&&GV(n,t.id)}}),XW(a,n?{get:function(e){var t=o(this);if(pH(e)){var n=BG(e);return!0===n?qG(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},QG=FU.enforce,$G=!SV.ActiveXObject&&`ActiveXObject`in SV,eK=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},tK=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=SV[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=DV(s[e]);GU(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!pH(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!pH(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!pH(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(iW(e,!XV(o)||!(i||s.forEach&&!OV((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),oG.enable();else if(iW(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=OV((function(){d.has(1)})),m=function(e,t){if(!SG)return!1;var n=!1;try{var r={};r[xG]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&OV((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){bG(e,s);var n=function(e,t,n){var r,i;return SW&&XV(r=t.constructor)&&r!==n&&pH(i=r.prototype)&&i!==n.prototype&&SW(e,i),e}(new o,e,c);return t!=null&&vG(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,oW({global:!0,forced:c!=o},l),_W(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,eK,ZG);if(SU&&$G){XG=ZG.getConstructor(eK,`WeakMap`,!0),oG.enable();var nK=tK.prototype,rK=DV(nK.delete),iK=DV(nK.has),aK=DV(nK.get),oK=DV(nK.set);XW(nK,{delete:function(e){if(pH(e)&&!iG(e)){var t=QG(this);return t.frozen||=new XG,rK(this,e)||t.frozen.delete(e)}return rK(this,e)},has:function(e){if(pH(e)&&!iG(e)){var t=QG(this);return t.frozen||=new XG,iK(this,e)||t.frozen.has(e)}return iK(this,e)},get:function(e){if(pH(e)&&!iG(e)){var t=QG(this);return t.frozen||=new XG,iK(this,e)?aK(this,e):t.frozen.get(e)}return aK(this,e)},set:function(e,t){if(pH(e)&&!iG(e)){var n=QG(this);n.frozen||=new XG,iK(this,e)?oK(this,e,t):n.frozen.set(e,t)}else oK(this,e,t);return this}})}var sK={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cK=bH(`span`).classList,lK=cK&&cK.constructor&&cK.constructor.prototype,uK=lK===Object.prototype?void 0:lK,dK=fH(`iterator`),fK=fH(`toStringTag`),pK=MW.values,mK=function(e,t){if(e){if(e[dK]!==pK)try{wU(e,dK,pK)}catch{e[dK]=pK}if(e[fK]||wU(e,fK,t),sK[t]){for(var n in MW)if(e[n]!==MW[n])try{wU(e,n,MW[n])}catch{e[n]=MW[n]}}}};for(var hK in sK)mK(SV[hK]&&SV[hK].prototype,hK);mK(uK,`DOMTokenList`);var gK=new WeakMap,_K={type:`list-item`,renderElem:function(e,t,n){gK.set(e,n);var r=e,i=r.level,a=i===void 0?0:i,o=r.ordered,s={margin:`5px 0 5px `+20*a+`px`},c=``;c=o!==void 0&&o?function(e,t){var n=t,r=n.type,i=n.level,a=i===void 0?0:i,o=n.ordered,s=o!==void 0&&o;if(!s)return-1;var c=1,l=t,u=X.findPath(e,l);if(u[0]===0)return 1;for(;u[0]>0;){var d=H.previous(u),f=B.node(e,d);if(f==null)break;var p=f[0],m=p.level,h=m===void 0?0:m,g=p.type,_=p.ordered;if(g!==r||h<a)break;if(h===a){if(_!==s)break;c++}l=p,u=d}return c}(n,e)+`.`:function(e){e===void 0&&(e=0);var t=``;switch(e){case 0:t=`•`;break;case 1:t=`◦`;break;default:t=`▪`}return t}(a);var l=function(e){var t,n=e.children||[],r=n.length;if(r===0)return``;for(var i=0;i<r&&!t;i++){var a=n[i];W.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return xb(`div`,{style:s},xb(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),xb(`span`,null,t))}},vK=function(e,t){return vK=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},vK(e,t)};function yK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}vK(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function bK(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function xK(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function SK(e){return B.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var CK=YH.includes;oW({target:`Array`,proto:!0},{includes:function(e){return CK(this,e,arguments.length>1?arguments[1]:void 0)}}),mU(`includes`);var wK,TK,EK=function(){var e=gH(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},DK=SV.RegExp,OK=OV((function(){var e=DK(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),kK=OK||OV((function(){return!DK(`a`,`y`).sticky})),AK={BROKEN_CARET:OK||OV((function(){var e=DK(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:kK,UNSUPPORTED_Y:OK},jK=SV.RegExp,MK=OV((function(){var e=jK(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),NK=SV.RegExp,PK=OV((function(){var e=NK(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),FK=FU.get,IK=VV(`native-string-replace`,String.prototype.replace),LK=RegExp.prototype.exec,RK=LK,zK=DV(``.charAt),BK=DV(``.indexOf),VK=DV(``.replace),HK=DV(``.slice),UK=(TK=/b*/g,CH(LK,wK=/a/,`a`),CH(LK,TK,`a`),wK.lastIndex!==0||TK.lastIndex!==0),WK=AK.BROKEN_CARET,GK=/()??/.exec(``)[1]!==void 0;(UK||GK||WK||MK||PK)&&(RK=function(e){var t,n,r,i,a,o,s,c=this,l=FK(c),u=VW(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=CH(RK,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=WK&&c.sticky,m=CH(EK,c),h=c.source,g=0,_=u;if(p&&(m=VK(m,`y`,``),BK(m,`g`)===-1&&(m+=`g`),_=HK(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&zK(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),GK&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),UK&&(r=c.lastIndex),i=CH(LK,p?n:c,_),p?i?(i.input=HK(i.input,g),i[0]=HK(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:UK&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),GK&&i&&i.length>1&&CH(IK,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=dU(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var KK=RK;oW({target:`RegExp`,proto:!0,forced:/./.exec!==KK},{exec:KK});var qK=function(){function e(){this.type=`list-item`,this.tag=`button`}return e.prototype.getListNode=function(e){var t=this.type;return X.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){var t=this.getListNode(e);if(t==null)return!1;var n=t.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){if(B.isVoid(e,t)&&B.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?G.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):G.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),JK=`<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>`,YK=`<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>`,XK=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Z(`listModule.unOrderedList`),t.iconSvg=JK,t}return yK(t,e),t}(qK),ZK=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Z(`listModule.orderedList`),t.iconSvg=YK,t}return yK(t,e),t}(qK),QK={key:`bulletedList`,factory:function(){return new XK}},$K={key:`numberedList`,factory:function(){return new ZK}},eq=[],tq={type:`list-item`,elemToHtml:function(e,t){var n=``,r=``,i=e.ordered,a=i!==void 0&&i?`ol`:`ul`,o=function(e){var t=gK.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=X.findPath(t,e);if(c[0]===0)return s+1;var l=H.previous(c),u=B.node(t,l);if(!u)return 0;var d=xK(u,1)[0];if(X.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)n+=`<`+a+`>`,eq.push(a);var c=function(e){var t=gK.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=X.findPath(t,e);if(c[0]===t.children.length-1)return s+1;var l=H.next(c),u=B.node(t,l);if(!u)return 0;var d=xK(u,1)[0];if(X.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(c>0)for(s=0;s<c;s++)r+=`</`+eq.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},nq=fH(`species`),rq=zG.filter;oW({target:`Array`,proto:!0,forced:!(aH>=51||!OV((function(){var e=[];return(e.constructor={})[nq]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return rq(this,e,arguments.length>1?arguments[1]:void 0)}});var iq=Function.prototype,aq=iq.apply,oq=iq.bind,sq=iq.call,cq=typeof Reflect==`object`&&Reflect.apply||(oq?sq.bind(aq):function(){return sq.apply(aq,arguments)}),lq=(fH(`species`),RegExp.prototype),uq=KW.charAt,dq=function(e,t,n){return t+(n?uq(e,t).length:1)},fq=Math.floor,pq=DV(``.charAt),mq=DV(``.replace),hq=DV(``.slice),gq=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_q=/\$([$&'`]|\d{1,2})/g,vq=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=_q;return i!==void 0&&(i=UV(i),c=gq),mq(a,c,(function(a,c){var l;switch(pq(c,0)){case`$`:return`$`;case`&`:return e;case"`":return hq(t,0,n);case`'`:return hq(t,o);case`<`:l=i[hq(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=fq(u/10);return d===0?a:d<=s?r[d-1]===void 0?pq(c,1):r[d-1]+pq(c,1):a}l=r[u-1]}return l===void 0?``:l}))},yq=SV.TypeError,bq=function(e,t){var n=e.exec;if(XV(n)){var r=CH(n,e,t);return r!==null&&gH(r),r}if(jV(e)===`RegExp`)return CH(KK,e,t);throw yq(`RegExp#exec called on incompatible receiver`)},xq=fH(`replace`),Sq=Math.max,Pge=Math.min,Fge=DV([].concat),Cq=DV([].push),wq=DV(``.indexOf),Tq=DV(``.slice),Ige=`a`.replace(/./,`$0`)===`$0`,Eq=!!/./[xq]&&/./[xq](`a`,`$0`)===``;(function(e,t,n,r){var i=fH(e),a=!OV((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!OV((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=DV(/./[i]),c=function(e,t,n){var r=Eq?`$`:`$0`;return[function(e,n){var r=IV(this),i=e==null?void 0:jH(e,xq);return i?CH(i,e,r,n):CH(t,VW(r),e,n)},function(e,i){var a=gH(this),o=VW(e);if(typeof i==`string`&&wq(i,r)===-1&&wq(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=XV(i);c||(i=VW(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=bq(a,o);if(f===null||(Cq(d,f),!l))break;VW(f[0])===``&&(a.lastIndex=dq(o,KH(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=VW((f=d[g])[0]),v=Sq(Pge(VH(f.index),o.length),0),y=[],b=1;b<f.length;b++)Cq(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Fge([_],y,v,o);x!==void 0&&Cq(S,x);var C=VW(cq(i,void 0,S))}else C=vq(_,o,v,y,x,i);v>=h&&(m+=Tq(o,h,v)+C,h=v+_.length)}return m+Tq(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=DV(e),c=t.exec;return c===KK||c===lq.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));GU(String.prototype,e,c[0]),GU(lq,i,c[1])}})(`replace`,0,!!OV((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Ige||Eq);var Lge=SV.TypeError,Dq=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&cG(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&TG(c))l=qH(c),u=Dq(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw Lge(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},Rge=Dq;function Oq(e){return e.length?e[0].tagName.toLowerCase():``}oW({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=UV(this),n=qH(t),r=IG(t,0);return r.length=Rge(r,t,t,n,0,e===void 0?1:VH(e)),r}}),mU(`flat`),oW({global:!0},{globalThis:SV}),Jv&&(K.fn.append=Jv),jv&&(K.fn.attr=jv),Xv&&(K.fn.parent=Xv);var zge={renderElems:[_K],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(e){var n=i.selection;if(n!=null)if(U.isExpanded(n))t(e);else{var r=X.getSelectedNodeByType(i,`list-item`);if(r!=null)if(n.focus.offset!==0)t(e);else{var a=r.level,o=a===void 0?0:a;o>0?G.setNodes(i,{level:o-1}):G.setNodes(i,{type:`paragraph`,ordered:void 0,level:void 0})}else t(e)}else t(e)},i.handleTab=function(){var e,t,r,a,o=i.selection;if(o!=null){if(U.isCollapsed(o)){var s=X.getSelectedNodeByType(i,`list-item`);if(s==null)return void n();if(o.focus.offset===0){var c=s.level,l=c===void 0?0:c;G.setNodes(i,{level:l+1});return}}if(U.isExpanded(o)){var u=0,d=!1;try{for(var f=bK(SK(i)),p=f.next();!p.done;p=f.next()){var m=xK(p.value,1)[0];X.getNodeType(m)===`list-item`?u++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||u<=1)return void n();try{for(var h=bK(SK(i)),g=h.next();!g.done;g=h.next()){var _=xK(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,G.setNodes(i,{level:l+1},{at:v})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=xK(e,2),n=t[0],a=t[1],o=X.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||G.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[QK,$K],elemsToHtml:[tq],parseElemsHtml:[{selector:`ul:not([data-w-e-type]),ol:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:`li:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return Oq(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=Oq(n);r===`ul`||r===`ol`;)r=Oq(n=n.parent()),t++;return t-1}(r),children:t}}}]},kq=Xc((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C[`[object Float32Array]`]=C[`[object Float64Array]`]=C[`[object Int8Array]`]=C[`[object Int16Array]`]=C[`[object Int32Array]`]=C[`[object Uint8Array]`]=C[`[object Uint8ClampedArray]`]=C[`[object Uint16Array]`]=C[`[object Uint32Array]`]=!0,C[i]=C[a]=C[y]=C[o]=C[b]=C[s]=C[c]=C[l]=C[u]=C[d]=C[f]=C[m]=C[h]=C[g]=C[v]=!1;var w=typeof Jc==`object`&&Jc&&Jc.Object===Object&&Jc,T=typeof self==`object`&&self&&self.Object===Object&&self,E=w||T||Function(`return this`)(),D=t&&!t.nodeType&&t,O=D&&e&&!e.nodeType&&e,k=O&&O.exports===D,A=k&&w.process,j=function(){try{return A&&A.binding&&A.binding(`util`)}catch{}}(),M=j&&j.isTypedArray;function ee(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function te(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ne(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var re=Array.prototype,ie=Function.prototype,N=Object.prototype,ae=E[`__core-js_shared__`],oe=ie.toString,se=N.hasOwnProperty,ce=function(){var e=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),le=N.toString,ue=RegExp(`^`+oe.call(se).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),de=k?E.Buffer:void 0,fe=E.Symbol,pe=E.Uint8Array,me=N.propertyIsEnumerable,he=re.splice,ge=fe?fe.toStringTag:void 0,_e=Object.getOwnPropertySymbols,ve=de?de.isBuffer:void 0,P=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ye=We(E,`DataView`),be=We(E,`Map`),F=We(E,`Promise`),xe=We(E,`Set`),Se=We(E,`WeakMap`),Ce=We(Object,`create`),we=Je(ye),Te=Je(be),I=Je(F),Ee=Je(xe),De=Je(Se),Oe=fe?fe.prototype:void 0,L=Oe?Oe.valueOf:void 0;function ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Me(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new je;++t<n;)this.add(e[t])}function Ne(e){var t=this.__data__=new Ae(e);this.size=t.size}function Pe(e,t){var n=Ze(e),r=!n&&Xe(e),i=!n&&!r&&Qe(e),a=!n&&!r&&!i&&rt(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!se.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||qe(l,c))||s.push(l);return s}function Fe(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1}function Ie(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:ge&&ge in Object(e)?function(e){var t=se.call(e,ge),n=e[ge];try{e[ge]=void 0;var r=!0}catch{}var i=le.call(e);return r&&(t?e[ge]=n:delete e[ge]),i}(e):function(e){return le.call(e)}(e)}function Le(e){return nt(e)&&Ie(e)==i}function Re(e,t,n,r,l){return e===t||(e==null||t==null||!nt(e)&&!nt(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=Ze(e),x=Ze(t),S=v?a:Ke(e),C=x?a:Ke(t),w=(S=S==i?f:S)==f,T=(C=C==i?f:C)==f,E=S==C;if(E&&Qe(e)){if(!Qe(t))return!1;v=!0,w=!1}if(E&&!w)return p||=new Ne,v||rt(e)?Ve(e,t,n,r,l,p):function(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!a(new pe(e),new pe(t)));case o:case s:case d:return Ye(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=te;case h:var p=1&r;if(f||=ne,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var x=Ve(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(L)return L.call(e)==L.call(t)}return!1}(e,t,S,n,r,l,p);if(!(1&n)){var D=w&&se.call(e,`__wrapped__`),O=T&&se.call(t,`__wrapped__`);if(D||O){var k=D?e.value():e,A=O?t.value():t;return p||=new Ne,l(k,A,n,r,p)}}return E?(p||=new Ne,function(e,t,n,r,i,a){var o=1&n,s=He(e),c=s.length;if(c!=He(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:se.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var m=e[u=s[l]],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||i(m,h,n,r,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!(`constructor`in e)||!(`constructor`in t)||typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,l,p)):!1}(e,t,n,r,Re,l))}function ze(e){return!(!tt(e)||function(e){return!!ce&&ce in e}(e))&&($e(e)?ue:x).test(Je(e))}function Be(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||N,t!==r)return P(e);var t,n,r,i=[];for(var a in Object(e))se.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Ve(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=2&n?new Me:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!ee(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||i(p,e,n,r,a)))return f.push(t);var o}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function He(e){return function(e,t,n){var r=t(e);return Ze(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,it,Ge)}function Ue(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function We(e,t){var n=function(e,t){return e?.[t]}(e,t);return ze(n)?n:void 0}ke.prototype.clear=function(){this.__data__=Ce?Ce(null):{},this.size=0},ke.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},ke.prototype.get=function(e){var t=this.__data__;if(Ce){var r=t[e];return r===n?void 0:r}return se.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return Ce?t[e]!==void 0:se.call(t,e)},ke.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Ce&&t===void 0?n:t,this},Ae.prototype.clear=function(){this.__data__=[],this.size=0},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0)&&(n==t.length-1?t.pop():he.call(t,n,1),--this.size,!0)},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},je.prototype.clear=function(){this.size=0,this.__data__={hash:new ke,map:new(be||Ae),string:new ke}},je.prototype.delete=function(e){var t=Ue(this,e).delete(e);return this.size-=+!!t,t},je.prototype.get=function(e){return Ue(this,e).get(e)},je.prototype.has=function(e){return Ue(this,e).has(e)},je.prototype.set=function(e,t){var n=Ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Me.prototype.add=Me.prototype.push=function(e){return this.__data__.set(e,n),this},Me.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Ae,this.size=0},Ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!be||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new je(r)}return n.set(e,t),this.size=n.size,this};var Ge=_e?function(e){return e==null?[]:(e=Object(e),function(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(_e(e),(function(t){return me.call(e,t)})))}:function(){return[]},Ke=Ie;function qe(e,t){return!!(t??=r)&&(typeof e==`number`||S.test(e))&&e>-1&&e%1==0&&e<t}function Je(e){if(e!=null){try{return oe.call(e)}catch{}try{return e+``}catch{}}return``}function Ye(e,t){return e===t||e!=e&&t!=t}(ye&&Ke(new ye(new ArrayBuffer(1)))!=b||be&&Ke(new be)!=u||F&&Ke(F.resolve())!=p||xe&&Ke(new xe)!=h||Se&&Ke(new Se)!=v)&&(Ke=function(e){var t=Ie(e),n=t==f?e.constructor:void 0,r=n?Je(n):``;if(r)switch(r){case we:return b;case Te:return u;case I:return p;case Ee:return h;case De:return v}return t});var Xe=Le(function(){return arguments}())?Le:function(e){return nt(e)&&se.call(e,`callee`)&&!me.call(e,`callee`)},Ze=Array.isArray,Qe=ve||function(){return!1};function $e(e){if(!tt(e))return!1;var t=Ie(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function et(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function tt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function nt(e){return typeof e==`object`&&!!e}var rt=M?function(e){return function(t){return e(t)}}(M):function(e){return nt(e)&&et(e.length)&&!!C[Ie(e)]};function it(e){return(t=e)!=null&&et(t.length)&&!$e(t)?Pe(e):Be(e);var t}e.exports=function(e,t){return Re(e,t)}}));wM(`en`,{tableModule:{deleteCol:`Delete column`,deleteRow:`Delete row`,deleteTable:`Delete table`,widthAuto:`Width auto`,insertCol:`Insert column`,insertRow:`Insert row`,insertTable:`Insert table`,header:`Header`}}),wM(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var Aq=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function jq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mq,Nq,Pq=function(e){return e&&e.Math==Math&&e},Fq=Pq(typeof globalThis==`object`&&globalThis)||Pq(typeof window==`object`&&window)||Pq(typeof self==`object`&&self)||Pq(typeof Aq==`object`&&Aq)||function(){return this}()||Function(`return this`)(),Iq=function(e){try{return!!e()}catch{return!0}},Lq=!Iq((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Rq=Function.prototype.call,zq=Rq.bind?Rq.bind(Rq):function(){return Rq.apply(Rq,arguments)},Bq={}.propertyIsEnumerable,Vq=Object.getOwnPropertyDescriptor,Bge={f:Vq&&!Bq.call({1:2},1)?function(e){var t=Vq(this,e);return!!t&&t.enumerable}:Bq},Hq=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Uq=Function.prototype,Wq=Uq.bind,Gq=Uq.call,Vge=Wq&&Wq.bind(Gq),Kq=Wq?function(e){return e&&Vge(Gq,e)}:function(e){return e&&function(){return Gq.apply(e,arguments)}},Hge=Kq({}.toString),Uge=Kq(``.slice),qq=function(e){return Uge(Hge(e),8,-1)},Jq=Fq.Object,Wge=Kq(``.split),Yq=Iq((function(){return!Jq(`z`).propertyIsEnumerable(0)}))?function(e){return qq(e)==`String`?Wge(e,``):Jq(e)}:Jq,Gge=Fq.TypeError,Xq=function(e){if(e==null)throw Gge(`Can't call method on `+e);return e},Zq=function(e){return Yq(Xq(e))},Qq=function(e){return typeof e==`function`},$q=function(e){return typeof e==`object`?e!==null:Qq(e)},Kge=function(e){return Qq(e)?e:void 0},eJ=function(e,t){return arguments.length<2?Kge(Fq[e]):Fq[e]&&Fq[e][t]},tJ=Kq({}.isPrototypeOf),nJ=eJ(`navigator`,`userAgent`)||``,rJ=Fq.process,iJ=Fq.Deno,aJ=rJ&&rJ.versions||iJ&&iJ.version,oJ=aJ&&aJ.v8;oJ&&(Nq=(Mq=oJ.split(`.`))[0]>0&&Mq[0]<4?1:+(Mq[0]+Mq[1])),!Nq&&nJ&&(!(Mq=nJ.match(/Edge\/(\d+)/))||Mq[1]>=74)&&(Mq=nJ.match(/Chrome\/(\d+)/))&&(Nq=+Mq[1]);var sJ=Nq,cJ=!!Object.getOwnPropertySymbols&&!Iq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sJ&&sJ<41})),lJ=cJ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,qge=Fq.Object,uJ=lJ?function(e){return typeof e==`symbol`}:function(e){var t=eJ(`Symbol`);return Qq(t)&&tJ(t.prototype,qge(e))},Jge=Fq.String,dJ=function(e){try{return Jge(e)}catch{return`Object`}},Yge=Fq.TypeError,fJ=function(e){if(Qq(e))return e;throw Yge(dJ(e)+` is not a function`)},pJ=function(e,t){var n=e[t];return n==null?void 0:fJ(n)},Xge=Fq.TypeError,Zge=Object.defineProperty,mJ=function(e,t){try{Zge(Fq,e,{value:t,configurable:!0,writable:!0})}catch{Fq[e]=t}return t},hJ=Fq[`__core-js_shared__`]||mJ(`__core-js_shared__`,{}),gJ=jq((function(e){(e.exports=function(e,t){return hJ[e]||(hJ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Qge=Fq.Object,_J=function(e){return Qge(Xq(e))},$ge=Kq({}.hasOwnProperty),vJ=Object.hasOwn||function(e,t){return $ge(_J(e),t)},e_e=0,t_e=Math.random(),n_e=Kq(1 .toString),yJ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+n_e(++e_e+t_e,36)},bJ=gJ(`wks`),xJ=Fq.Symbol,SJ=xJ&&xJ.for,r_e=lJ?xJ:xJ&&xJ.withoutSetter||yJ,CJ=function(e){if(!vJ(bJ,e)||!cJ&&typeof bJ[e]!=`string`){var t=`Symbol.`+e;cJ&&vJ(xJ,e)?bJ[e]=xJ[e]:bJ[e]=lJ&&SJ?SJ(t):r_e(t)}return bJ[e]},i_e=Fq.TypeError,a_e=CJ(`toPrimitive`),wJ=function(e){var t=function(e,t){if(!$q(e)||uJ(e))return e;var n,r=pJ(e,a_e);if(r){if(t===void 0&&(t=`default`),n=zq(r,e,t),!$q(n)||uJ(n))return n;throw i_e(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Qq(n=e.toString)&&!$q(r=zq(n,e))||Qq(n=e.valueOf)&&!$q(r=zq(n,e))||t!==`string`&&Qq(n=e.toString)&&!$q(r=zq(n,e)))return r;throw Xge(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return uJ(t)?t:t+``},TJ=Fq.document,o_e=$q(TJ)&&$q(TJ.createElement),EJ=function(e){return o_e?TJ.createElement(e):{}},DJ=!Lq&&!Iq((function(){return Object.defineProperty(EJ(`div`),`a`,{get:function(){return 7}}).a!=7})),OJ=Object.getOwnPropertyDescriptor,kJ={f:Lq?OJ:function(e,t){if(e=Zq(e),t=wJ(t),DJ)try{return OJ(e,t)}catch{}if(vJ(e,t))return Hq(!zq(Bge.f,e,t),e[t])}},s_e=Fq.String,c_e=Fq.TypeError,AJ=function(e){if($q(e))return e;throw c_e(s_e(e)+` is not an object`)},l_e=Fq.TypeError,jJ=Object.defineProperty,MJ={f:Lq?jJ:function(e,t,n){if(AJ(e),t=wJ(t),AJ(n),DJ)try{return jJ(e,t,n)}catch{}if(`get`in n||`set`in n)throw l_e(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},NJ=Lq?function(e,t,n){return MJ.f(e,t,Hq(1,n))}:function(e,t,n){return e[t]=n,e},u_e=Kq(Function.toString);Qq(hJ.inspectSource)||(hJ.inspectSource=function(e){return u_e(e)});var PJ,FJ,IJ,LJ=hJ.inspectSource,RJ=Fq.WeakMap,d_e=Qq(RJ)&&/native code/.test(LJ(RJ)),zJ=gJ(`keys`),BJ=function(e){return zJ[e]||(zJ[e]=yJ(e))},VJ={},HJ=Fq.TypeError,f_e=Fq.WeakMap;if(d_e||hJ.state){var UJ=hJ.state||=new f_e,p_e=Kq(UJ.get),WJ=Kq(UJ.has),m_e=Kq(UJ.set);PJ=function(e,t){if(WJ(UJ,e))throw new HJ(`Object already initialized`);return t.facade=e,m_e(UJ,e,t),t},FJ=function(e){return p_e(UJ,e)||{}},IJ=function(e){return WJ(UJ,e)}}else{var GJ=BJ(`state`);VJ[GJ]=!0,PJ=function(e,t){if(vJ(e,GJ))throw new HJ(`Object already initialized`);return t.facade=e,NJ(e,GJ,t),t},FJ=function(e){return vJ(e,GJ)?e[GJ]:{}},IJ=function(e){return vJ(e,GJ)}}var KJ={set:PJ,get:FJ,has:IJ,enforce:function(e){return IJ(e)?FJ(e):PJ(e,{})},getterFor:function(e){return function(t){var n;if(!$q(t)||(n=FJ(t)).type!==e)throw HJ(`Incompatible receiver, `+e+` required`);return n}}},qJ=Function.prototype,h_e=Lq&&Object.getOwnPropertyDescriptor,JJ=vJ(qJ,`name`),YJ={EXISTS:JJ,PROPER:JJ&&function(){}.name===`something`,CONFIGURABLE:JJ&&(!Lq||Lq&&h_e(qJ,`name`).configurable)},XJ=jq((function(e){var t=YJ.CONFIGURABLE,n=KJ.get,r=KJ.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;Qq(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!vJ(a,`name`)||t&&a.name!==d)&&NJ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Fq?l?e[n]=a:mJ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:NJ(e,n,a))})(Function.prototype,`toString`,(function(){return Qq(this)&&n(this).source||LJ(this)}))})),g_e=Math.ceil,__e=Math.floor,ZJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?__e:g_e)(t)},v_e=Math.max,y_e=Math.min,QJ=function(e,t){var n=ZJ(e);return n<0?v_e(n+t,0):y_e(n,t)},b_e=Math.min,$J=function(e){return e>0?b_e(ZJ(e),9007199254740991):0},eY=function(e){return $J(e.length)},x_e=function(e){return function(t,n,r){var i,a=Zq(t),o=eY(a),s=QJ(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),tY=Kq([].push),nY=function(e,t){var n,r=Zq(e),i=0,a=[];for(n in r)!vJ(VJ,n)&&vJ(r,n)&&tY(a,n);for(;t.length>i;)vJ(r,n=t[i++])&&(~x_e(a,n)||tY(a,n));return a},rY=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],S_e=rY.concat(`length`,`prototype`),C_e={f:Object.getOwnPropertyNames||function(e){return nY(e,S_e)}},w_e={f:Object.getOwnPropertySymbols},T_e=Kq([].concat),E_e=eJ(`Reflect`,`ownKeys`)||function(e){var t=C_e.f(AJ(e)),n=w_e.f;return n?T_e(t,n(e)):t},D_e=function(e,t){for(var n=E_e(t),r=MJ.f,i=kJ.f,a=0;a<n.length;a++){var o=n[a];vJ(e,o)||r(e,o,i(t,o))}},O_e=/#|\.prototype\./,iY=function(e,t){var n=A_e[k_e(e)];return n==M_e||n!=j_e&&(Qq(t)?Iq(t):!!t)},k_e=iY.normalize=function(e){return String(e).replace(O_e,`.`).toLowerCase()},A_e=iY.data={},j_e=iY.NATIVE=`N`,M_e=iY.POLYFILL=`P`,N_e=iY,P_e=kJ.f,aY=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Fq:l?Fq[s]||mJ(s,{}):(Fq[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=P_e(n,r))&&o.value:n[r],!N_e(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;D_e(a,i)}(e.sham||i&&i.sham)&&NJ(a,`sham`,!0),XJ(n,r,a,e)}},oY={};oY[CJ(`toStringTag`)]=`z`;var sY=String(oY)===`[object z]`,F_e=CJ(`toStringTag`),I_e=Fq.Object,L_e=qq(function(){return arguments}())==`Arguments`,cY=sY?qq:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=I_e(e),F_e))==`string`?n:L_e?qq(t):(r=qq(t))==`Object`&&Qq(t.callee)?`Arguments`:r},R_e=Fq.String,lY=function(e){if(cY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return R_e(e)},z_e=/"/g,B_e=Kq(``.replace);aY({target:`String`,proto:!0,forced:Iq((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=lY(Xq(this)),r=`<a`,(r+=` name="`+B_e(lY(t),z_e,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var uY,dY=function(){var e=AJ(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},fY=Fq.RegExp,pY=Iq((function(){var e=fY(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),V_e=pY||Iq((function(){return!fY(`a`,`y`).sticky})),mY={BROKEN_CARET:pY||Iq((function(){var e=fY(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:V_e,UNSUPPORTED_Y:pY},H_e=Object.keys||function(e){return nY(e,rY)},U_e=Lq?Object.defineProperties:function(e,t){AJ(e);for(var n,r=Zq(t),i=H_e(t),a=i.length,o=0;a>o;)MJ.f(e,n=i[o++],r[n]);return e},W_e=eJ(`document`,`documentElement`),hY=BJ(`IE_PROTO`),gY=function(){},_Y=function(e){return`<script>`+e+`<\/script>`},vY=function(e){e.write(_Y(``)),e.close();var t=e.parentWindow.Object;return e=null,t},yY=function(){try{uY=new ActiveXObject(`htmlfile`)}catch{}var e,t;yY=typeof document<`u`?document.domain&&uY?vY(uY):((t=EJ(`iframe`)).style.display=`none`,W_e.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(_Y(`document.F=Object`)),e.close(),e.F):vY(uY);for(var n=rY.length;n--;)delete yY.prototype[rY[n]];return yY()};VJ[hY]=!0;var bY,xY,SY=Object.create||function(e,t){var n;return e===null?n=yY():(gY.prototype=AJ(e),n=new gY,gY.prototype=null,n[hY]=e),t===void 0?n:U_e(n,t)},G_e=Fq.RegExp,K_e=Iq((function(){var e=G_e(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),q_e=Fq.RegExp,J_e=Iq((function(){var e=q_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Y_e=KJ.get,X_e=gJ(`native-string-replace`,String.prototype.replace),CY=RegExp.prototype.exec,wY=CY,Z_e=Kq(``.charAt),Q_e=Kq(``.indexOf),$_e=Kq(``.replace),TY=Kq(``.slice),EY=(xY=/b*/g,zq(CY,bY=/a/,`a`),zq(CY,xY,`a`),bY.lastIndex!==0||xY.lastIndex!==0),DY=mY.BROKEN_CARET,OY=/()??/.exec(``)[1]!==void 0;(EY||OY||DY||K_e||J_e)&&(wY=function(e){var t,n,r,i,a,o,s,c=this,l=Y_e(c),u=lY(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=zq(wY,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=DY&&c.sticky,m=zq(dY,c),h=c.source,g=0,_=u;if(p&&(m=$_e(m,`y`,``),Q_e(m,`g`)===-1&&(m+=`g`),_=TY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Z_e(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),OY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),EY&&(r=c.lastIndex),i=zq(CY,p?n:c,_),p?i?(i.input=TY(i.input,g),i[0]=TY(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:EY&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),OY&&i&&i.length>1&&zq(X_e,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=SY(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var kY=wY;aY({target:`RegExp`,proto:!0,forced:/./.exec!==kY},{exec:kY});var AY=Array.isArray||function(e){return qq(e)==`Array`},jY=function(){},eve=[],MY=eJ(`Reflect`,`construct`),NY=/^\s*(?:class|function)\b/,tve=Kq(NY.exec),nve=!NY.exec(jY),PY=function(e){if(!Qq(e))return!1;try{return MY(jY,eve,e),!0}catch{return!1}},FY=!MY||Iq((function(){var e;return PY(PY.call)||!PY(Object)||!PY((function(){e=!0}))||e}))?function(e){if(!Qq(e))return!1;switch(cY(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return nve||!!tve(NY,LJ(e))}:PY,IY=function(e,t,n){var r=wJ(t);r in e?MJ.f(e,r,Hq(0,n)):e[r]=n},rve=CJ(`species`),LY=function(e){return sJ>=51||!Iq((function(){var t=[];return(t.constructor={})[rve]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},ive=Kq([].slice),ave=LY(`slice`),ove=CJ(`species`),RY=Fq.Array,sve=Math.max;function zY(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function BY(e){var t=e.selection;if(t==null)return!1;var n=zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=zY(n,2)[1],i=B.start(e,r);if(S_.equals(t.anchor,i))return!0}return!1}function VY(e,t){var n,r,i=B.nodes(e,{at:t,match:function(e){return X.getNodeType(e)===`table`}}),a=!1;try{for(var o=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(i),s=o.next();!s.done;s=o.next())s.value,a=!0}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}aY({target:`Array`,proto:!0,forced:!ave},{slice:function(e,t){var n,r,i,a=Zq(this),o=eY(a),s=QJ(e,o),c=QJ(t===void 0?o:t,o);if(AY(a)&&(n=a.constructor,(FY(n)&&(n===RY||AY(n.prototype))||$q(n)&&(n=n[ove])===null)&&(n=void 0),n===RY||n===void 0))return ive(a,s,c);for(r=new(n===void 0?RY:n)(sve(c-s,0)),i=0;s<c;s++,i++)s in a&&IY(r,i,a[s]);return r.length=i,r}});var HY=Kq(Kq.bind),cve=CJ(`species`),UY=Fq.Array,lve=function(e,t){return new(function(e){var t;return AY(e)&&(t=e.constructor,(FY(t)&&(t===UY||AY(t.prototype))||$q(t)&&(t=t[cve])===null)&&(t=void 0)),t===void 0?UY:t}(e))(t===0?0:t)},WY=Kq([].push),GY=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=_J(c),h=Yq(m),g=function(e,t){return fJ(e),t===void 0?e:HY?HY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=eY(h),v=0,y=d||lve,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:WY(b,f)}else switch(e){case 4:return!1;case 7:WY(b,f)}return a?-1:r||i?i:b}},KY={forEach:GY(0),map:GY(1),filter:GY(2),some:GY(3),every:GY(4),find:GY(5),findIndex:GY(6),filterReject:GY(7)},uve=KY.map;aY({target:`Array`,proto:!0,forced:!LY(`map`)},{map:function(e){return uve(this,e,arguments.length>1?arguments[1]:void 0)}});var dve=sY?{}.toString:function(){return`[object `+cY(this)+`]`};function qY(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function JY(e){return qY(e).every((function(e){return!!e.isHeader}))}sY||XJ(Object.prototype,`toString`,dve,{unsafe:!0});var fve=YJ.PROPER,YY=RegExp.prototype,XY=YY.toString,pve=Kq(dY),mve=Iq((function(){return XY.call({source:`a`,flags:`b`})!=`/a/b`})),hve=fve&&XY.name!=`toString`;(mve||hve)&&XJ(RegExp.prototype,`toString`,(function(){var e=AJ(this),t=lY(e.source),n=e.flags;return`/`+t+`/`+lY(n===void 0&&tJ(YY,e)&&!(`flags`in YY)?pve(e):n)}),{unsafe:!0});var ZY=CJ(`unscopables`),QY=Array.prototype;QY[ZY]??MJ.f(QY,ZY,{configurable:!0,value:SY(null)});var gve=KY.find,$Y=!0;`find`in[]&&[,].find((function(){$Y=!1})),aY({target:`Array`,proto:!0,forced:$Y},{find:function(e){return gve(this,e,arguments.length>1?arguments[1]:void 0)}}),QY[ZY].find=!0;var eX=Function.prototype,tX=eX.apply,_ve=eX.bind,nX=eX.call,rX=typeof Reflect==`object`&&Reflect.apply||(_ve?nX.bind(tX):function(){return nX.apply(tX,arguments)}),vve=CJ(`species`),iX=RegExp.prototype,aX=function(e,t,n,r){var i=CJ(e),a=!Iq((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Iq((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[vve]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Kq(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Kq(e),c=t.exec;return c===kY||c===iX.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));XJ(String.prototype,e,c[0]),XJ(iX,i,c[1])}r&&NJ(iX[i],`sham`,!0)},yve=CJ(`match`),bve=Fq.TypeError,xve=CJ(`species`),Sve=Kq(``.charAt),oX=Kq(``.charCodeAt),Cve=Kq(``.slice),wve=function(e){return function(t,n){var r,i,a=lY(Xq(t)),o=ZJ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=oX(a,o))<55296||r>56319||o+1===s||(i=oX(a,o+1))<56320||i>57343?e?Sve(a,o):r:e?Cve(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),sX=function(e,t,n){return t+(n?wve(e,t).length:1)},Tve=Fq.Array,Eve=Math.max,cX=function(e,t,n){for(var r=eY(e),i=QJ(t,r),a=QJ(n===void 0?r:n,r),o=Tve(Eve(a-i,0)),s=0;i<a;i++,s++)IY(o,s,e[i]);return o.length=s,o},Dve=Fq.TypeError,lX=function(e,t){var n=e.exec;if(Qq(n)){var r=zq(n,e,t);return r!==null&&AJ(r),r}if(qq(e)===`RegExp`)return zq(kY,e,t);throw Dve(`RegExp#exec called on incompatible receiver`)},uX=mY.UNSUPPORTED_Y,Ove=Math.min,dX=[].push,kve=Kq(/./.exec),fX=Kq(dX),pX=Kq(``.slice);aX(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=lY(Xq(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!$q(r=e)||!((i=r[yve])===void 0?qq(r)==`RegExp`:i))return zq(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=zq(kY,p,a))&&!((c=p.lastIndex)>f&&(fX(u,pX(a,f,s.index)),s.length>1&&s.index<a.length&&rX(dX,u,cX(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&kve(p,``)||fX(u,``):fX(u,pX(a,f)),u.length>o?cX(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:zq(t,this,e,n)}:t,[function(t,n){var i=Xq(this),a=t==null?void 0:pJ(t,e);return a?zq(a,t,i,n):zq(r,lY(i),t,n)},function(e,i){var a=AJ(this),o=lY(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=AJ(e).constructor;return r===void 0||(n=AJ(r)[xve])==null?t:function(e){if(FY(e))return e;throw bve(dJ(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(uX?`g`:`y`),d=new c(uX?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return lX(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=uX?0:m;var g,_=lX(d,uX?pX(o,m):o);if(_===null||(g=Ove($J(d.lastIndex+(uX?m:0)),o.length))===p)m=sX(o,m,l);else{if(fX(h,pX(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(fX(h,_[v]),h.length===f)return h;m=p=g}}return fX(h,pX(o,p)),h}]}),!!Iq((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),uX);var mX=`
\v\f\r \xA0               \u2028\u2029`,hX=Kq(``.replace),gX=`[`+mX+`]`,Ave=RegExp(`^`+gX+gX+`*`),jve=RegExp(gX+gX+`*$`),_X=function(e){return function(t){var n=lY(Xq(t));return 1&e&&(n=hX(n,Ave,``)),2&e&&(n=hX(n,jve,``)),n}},Mve={start:_X(1),end:_X(2),trim:_X(3)},Nve=YJ.PROPER,Pve=Mve.trim;function vX(e){return e.length?e[0].tagName.toLowerCase():``}aY({target:`String`,proto:!0,forced:function(e){return Iq((function(){return!!mX[e]()||`​…᠎`[e]()!==`​…᠎`||Nve&&mX[e].name!==e}))}(`trim`)},{trim:function(){return Pve(this)}}),aY({global:!0},{globalThis:Fq}),Jv&&(K.fn.append=Jv),Fv&&(K.fn.on=Fv),ay&&(K.fn.focus=ay),jv&&(K.fn.attr=jv),Pv&&(K.fn.val=Pv),Gv&&(K.fn.html=Gv),Nv&&(K.fn.dataset=Nv),Ov&&(K.fn.addClass=Ov),kv&&(K.fn.removeClass=kv),$v&&(K.fn.children=$v),Uv&&(K.fn.each=Uv),Qv&&(K.fn.find=Qv);var yX=!1,bX=0,xX=0,SX=null,CX=null,wX=K(`body`);function TX(e){yX=!1,CX=null,SX=null,wX.off(`mousemove`,EX),wX.off(`mouseup`,TX)}wX.on(`mousedown`,(function(e){var t=e.target;(t.tagName===`TH`||t.tagName===`TD`)&&t.style.cursor===`col-resize`&&(t.style.cursor=`auto`,e.preventDefault(),yX=!0,bX=e.clientX,xX=t.getBoundingClientRect().width,wX.on(`mousemove`,EX),wX.on(`mouseup`,TX))}));var EX=Hy((function(e){if(yX&&CX!=null&&SX!=null){e.preventDefault();var t=e.clientX,n=xX+(t-bX);(n=Math.floor(100*n)/100)<30&&(n=30),G.setNodes(CX,{width:n.toString()},{at:SX})}}),100),Fve={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||U.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=X.findPath(e,t),o=B.start(e,a),s=B.end(e,a),c=S_.compare(r,s)<=0&&S_.compare(r,o)>=0,l=S_.compare(i,s)<=0&&S_.compare(i,o)>=0;return!!(c&&l&&H.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return xb(`div`,{className:`table-container`,"data-selected":X.isNodeSelected(n,e),on:{mousedown:function(t){if(t.target.tagName===`DIV`&&t.preventDefault(),!n.isDisabled()){var r=X.findPath(n,e),i=B.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},xb(`table`,{width:a,contentEditable:r},xb(`colgroup`,null,qY(e).map((function(e){var t=e.width;return xb(`col`,{width:t===void 0?`auto`:t})}))),xb(`tbody`,null,t)))}},Ive={type:`table-row`,renderElem:function(e,t,n){return xb(`tr`,null,t)}},Lve={type:`table-cell`,renderElem:function(e,t,n){var r=function(e,t){var n=X.getParentNode(e,t);if(n==null)return!1;var r=X.getParentNode(e,n);return r!=null&&qY(r).some((function(e){return e===t}))}(n,e),i=e,a=i.colSpan,o=a===void 0?1:a,s=i.rowSpan,c=s===void 0?1:s,l=i.isHeader;return r?xb(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:Hy((function(t){var r=this.elm;if(r!=null){var i=r.getBoundingClientRect(),a=i.left,o=i.width,s=i.top,c=i.height,l=t.clientX,u=t.clientY;yX||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,CX=n,SX=X.findPath(n,e)):yX||(r.style.cursor=`auto`,CX=null,SX=null))}}),100)}},t):xb(`td`,{colSpan:o,rowSpan:c},t)}},Rve={selector:`table`,preParseHtml:function(e){var t=K(e);if(vX(t)!==`table`)return e;var n=t.find(`tbody`);if(n.length===0)return e;var r=t.find(`tr`);return t.append(r),n.remove(),t[0]}},zve=KY.filter;aY({target:`Array`,proto:!0,forced:!LY(`filter`)},{filter:function(e){return zve(this,e,arguments.length>1?arguments[1]:void 0)}});var Bve=Math.floor,DX=Kq(``.charAt),Vve=Kq(``.replace),OX=Kq(``.slice),Hve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uve=/\$([$&'`]|\d{1,2})/g,Wve=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Uve;return i!==void 0&&(i=_J(i),c=Hve),Vve(a,c,(function(a,c){var l;switch(DX(c,0)){case`$`:return`$`;case`&`:return e;case"`":return OX(t,0,n);case`'`:return OX(t,o);case`<`:l=i[OX(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Bve(u/10);return d===0?a:d<=s?r[d-1]===void 0?DX(c,1):r[d-1]+DX(c,1):a}l=r[u-1]}return l===void 0?``:l}))},kX=CJ(`replace`),Gve=Math.max,Kve=Math.min,qve=Kq([].concat),AX=Kq([].push),jX=Kq(``.indexOf),MX=Kq(``.slice),Jve=`a`.replace(/./,`$0`)===`$0`,NX=!!/./[kX]&&/./[kX](`a`,`$0`)===``;aX(`replace`,(function(e,t,n){var r=NX?`$`:`$0`;return[function(e,n){var r=Xq(this),i=e==null?void 0:pJ(e,kX);return i?zq(i,e,r,n):zq(t,lY(r),e,n)},function(e,i){var a=AJ(this),o=lY(e);if(typeof i==`string`&&jX(i,r)===-1&&jX(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=Qq(i);c||(i=lY(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=lX(a,o);if(f===null||(AX(d,f),!l))break;lY(f[0])===``&&(a.lastIndex=sX(o,$J(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=lY((f=d[g])[0]),v=Gve(Kve(ZJ(f.index),o.length),0),y=[],b=1;b<f.length;b++)AX(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=qve([_],y,v,o);x!==void 0&&AX(S,x);var C=lY(rX(i,void 0,S))}else C=Wve(_,o,v,y,x,i);v>=h&&(m+=MX(o,h,v)+C,h=v+_.length)}return m+MX(o,h)}]}),!!Iq((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Jve||NX);var Yve={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=parseInt(r.attr(`colSpan`)||`1`),a=parseInt(r.attr(`rowSpan`)||`1`),o=r.attr(`width`)||`auto`;return{type:`table-cell`,isHeader:vX(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},Xve={selector:`tr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`table-row`,children:t.filter((function(e){return X.getNodeType(e)===`table-cell`}))}}},Zve={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e),i=`auto`;return function(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===`width`&&(n=s[1].trim())}}return n}(r)===`100%`&&(i=`100%`),r.attr(`width`)===`100%`&&(i=`100%`),{type:`table`,width:i,children:t.filter((function(e){return X.getNodeType(e)===`table-row`}))}}},Qve=function(){function e(){this.title=Z(`tableModule.insertTable`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>`,this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||!!X.getSelectedElems(e).some((function(t){var n=X.getNodeType(t);return n===`pre`||n===`table`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=K(`<div class="w-e-panel-content-table"></div>`),r=K(`<span>0 &times; 0</span>`),i=K(`<table></table>`),a=0;a<10;a++){for(var o=K(`<tr></tr>`),s=0;s<10;s++){var c=K(`<td></td>`);c.attr(`data-x`,s.toString()),c.attr(`data-y`,a.toString()),o.append(c),c.on(`mouseenter`,(function(e){var t=e.target;if(t!=null){var n=K(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){K(e).children().each((function(e){var t=K(e),n=t.dataset(),r=n.x,i=n.y;r<=a&&i<=o?t.addClass(`active`):t.removeClass(`active`)}))}))}})),c.on(`click`,(function(n){n.preventDefault();var r=n.target;if(r!=null){var i=K(r).dataset(),a=i.x,o=i.y;t.insertTable(e,o+1,a+1)}}))}i.append(o)}return n.append(i),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),i=parseInt(n,10);if(r&&i&&!(r<=0||i<=0)){X.isSelectedEmptyParagraph(e)&&G.removeNodes(e,{mode:`highest`});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var i=[],a=0;a<t;a++){var o={type:`table-cell`,children:[{text:``}]};r===0&&(o.isHeader=!0),i.push(o)}n.push({type:`table-row`,children:i})}return{type:`table`,width:`auto`,children:n}}(r,i);G.insertNodes(e,a,{mode:`highest`})}},e}(),$ve=function(){function e(){this.title=Z(`tableModule.deleteTable`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||G.removeNodes(e,{mode:`highest`})},e}(),eye=function(){function e(){this.title=Z(`tableModule.insertRow`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=X.getParentNode(e,r)?.children.length||0;if(a!==0){for(var o={type:`table-row`,children:[]},s=0;s<a;s++)o.children.push({type:`table-cell`,children:[{text:``}]});var c=H.parent(i),l=H.next(c);G.insertNodes(e,o,{at:l})}}},e}(),tye=function(){function e(){this.title=Z(`tableModule.deleteRow`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-row`)},universal:!0}),1)[0],2),r=n[0],i=n[1];(X.getParentNode(e,r)?.children.length||0)<=1?G.removeNodes(e,{mode:`highest`}):G.removeNodes(e,{at:i})}},e}(),PX={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},FX=EJ(`span`).classList,IX=FX&&FX.constructor&&FX.constructor.prototype,nye=IX===Object.prototype?void 0:IX,rye=KY.forEach,LX=function(e,t){var n=[].forEach;return!!n&&Iq((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return rye(this,e,arguments.length>1?arguments[1]:void 0)},RX=function(e){if(e&&e.forEach!==LX)try{NJ(e,`forEach`,LX)}catch{e.forEach=LX}};for(var zX in PX)PX[zX]&&RX(Fq[zX]&&Fq[zX].prototype);RX(nye);var iye=function(){function e(){this.title=Z(`tableModule.insertCol`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=X.getParentNode(e,r);if(a!=null){var o=X.getParentNode(e,a);o!=null&&(o.children||[]).forEach((function(t,n){z.isElement(t)&&(t.children||[]).forEach((function(t){var r=X.findPath(e,t);if(r.length===i.length&&kq(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&JY(o)&&(a.isHeader=!0),G.insertNodes(e,a,{at:r})}}))}))}}},e}(),aye=function(){function e(){this.title=Z(`tableModule.deleteCol`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=X.getParentNode(e,r),o=a?.children.length||0;if(!a||o<=1)G.removeNodes(e,{mode:`highest`});else{var s=X.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){z.isElement(t)&&(t.children||[]).forEach((function(t){var n=X.findPath(e,t);n.length===i.length&&kq(n.slice(-1),i.slice(-1))&&G.removeNodes(e,{at:n})}))}))}}},e}(),oye=function(){function e(){this.title=Z(`tableModule.header`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){var t=X.getSelectedNodeByType(e,`table`);return t!=null&&JY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=X.getSelectedNodeByType(e,`table`);r!=null&&qY(r).forEach((function(t){return G.setNodes(e,{isHeader:n},{at:X.findPath(e,t)})}))}},e}(),sye=function(){function e(){this.title=Z(`tableModule.widthAuto`),this.iconSvg=`<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){var t=X.getSelectedNodeByType(e,`table`);return t!=null&&t.width===`100%`},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};G.setNodes(e,n,{mode:`highest`})}},e}(),cye={renderElems:[Fve,Ive,Lve],elemsToHtml:[{type:`table`,elemToHtml:function(e,t){var n=e.width;return`<table style="width: `+(n===void 0?`auto`:n)+`;"><tbody>`+t+`</tbody></table>`}},{type:`table-row`,elemToHtml:function(e,t){return`<tr>`+t+`</tr>`}},{type:`table-cell`,elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,a=n.rowSpan,o=a===void 0?1:a,s=n.isHeader,c=s!==void 0&&s,l=n.width,u=c?`th`:`td`;return`<`+u+` colSpan="`+i+`" rowSpan="`+o+`" width="`+(l===void 0?`auto`:l)+`">`+t+`</`+u+`>`}}],preParseHtml:[Rve],parseElemsHtml:[Yve,Xve,Zve],menus:[{key:`insertTable`,factory:function(){return new Qve}},{key:`deleteTable`,factory:function(){return new $ve}},{key:`insertTableRow`,factory:function(){return new eye}},{key:`deleteTableRow`,factory:function(){return new tye}},{key:`insertTableCol`,factory:function(){return new iye}},{key:`deleteTableCol`,factory:function(){return new aye}},{key:`tableHeader`,factory:function(){return new oye}},{key:`tableFullWidth`,factory:function(){return new sye}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,a=e.insertData,o=e.handleTab,s=e.selectAll,c=e;return c.insertBreak=function(){X.getSelectedNodeByType(c,`table`)==null?t():c.insertText(`
`)},c.deleteBackward=function(e){if(!BY(c)){var t=c.selection;if(t){var r=B.before(c,t);if(r){var i=VY(c,r),a=VY(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(X.getSelectedNodeByType(c,`table`)){var t=B.above(e);X.checkNodeType(t[0],`table-cell`)&&G.select(e,t[1]);var n=B.next(e);if(n)n[0]&&n[0].text&&(n=B.above(e,{at:n[1]})??n),G.select(e,n[1]);else{var r=c.children||[],i=r.length;if(X.checkNodeType(r[i-1],`table`)){var a=X.genEmptyParagraph();G.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){BY(c)||r(e)},c.normalizeNode=function(e){var t=zY(e,2),n=t[0],r=t[1];if(X.getNodeType(n)!==`table`)return i([n,r]);if(X.isLastNode(c,n)){var a=X.genEmptyParagraph();G.insertNodes(c,a,{at:[r[0]+1]})}},c.insertData=function(e){if(X.getSelectedNodeByType(c,`table`)!=null){var t=e.getData(`text/plain`);t===`
`||/<img[^>]+>/.test(e.getData(`text/html`))?a(e):B.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(e!=null){var t=X.getSelectedNodeByType(c,`table-cell`);if(t!=null){var n=e.anchor,r=e.focus;if(H.equals(n.path.slice(0,3),r.path.slice(0,3)))if(V.string(t).length!==0){var i=X.findPath(c,t),a={anchor:B.start(c,i),focus:B.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};wM(`en`,{videoModule:{delete:`Delete`,uploadVideo:`Upload video`,insertVideo:`Insert video`,videoSrc:`Video source`,videoSrcPlaceHolder:`Video file url, or third-party <iframe>`,videoPoster:`Video poster`,videoPosterPlaceHolder:`Poster image url`,ok:`Ok`,editSize:`Edit size`,width:`Width`,height:`Height`}}),wM(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var BX=function(){return BX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},BX.apply(this,arguments)};function VX(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function HX(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function UX(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function lye(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var WX=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function GX(e){var t={exports:{}};return e(t,t.exports),t.exports}var KX,qX,JX=function(e){return e&&e.Math==Math&&e},Q=JX(typeof globalThis==`object`&&globalThis)||JX(typeof window==`object`&&window)||JX(typeof self==`object`&&self)||JX(typeof WX==`object`&&WX)||function(){return this}()||Function(`return this`)(),YX=function(e){try{return!!e()}catch{return!0}},XX=!YX((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),ZX=Function.prototype.call,QX=ZX.bind?ZX.bind(ZX):function(){return ZX.apply(ZX,arguments)},$X={}.propertyIsEnumerable,eZ=Object.getOwnPropertyDescriptor,uye={f:eZ&&!$X.call({1:2},1)?function(e){var t=eZ(this,e);return!!t&&t.enumerable}:$X},tZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nZ=Function.prototype,rZ=nZ.bind,iZ=nZ.call,dye=rZ&&rZ.bind(iZ),aZ=rZ?function(e){return e&&dye(iZ,e)}:function(e){return e&&function(){return iZ.apply(e,arguments)}},fye=aZ({}.toString),pye=aZ(``.slice),oZ=function(e){return pye(fye(e),8,-1)},sZ=Q.Object,mye=aZ(``.split),cZ=YX((function(){return!sZ(`z`).propertyIsEnumerable(0)}))?function(e){return oZ(e)==`String`?mye(e,``):sZ(e)}:sZ,hye=Q.TypeError,lZ=function(e){if(e==null)throw hye(`Can't call method on `+e);return e},uZ=function(e){return cZ(lZ(e))},dZ=function(e){return typeof e==`function`},fZ=function(e){return typeof e==`object`?e!==null:dZ(e)},gye=function(e){return dZ(e)?e:void 0},pZ=function(e,t){return arguments.length<2?gye(Q[e]):Q[e]&&Q[e][t]},mZ=aZ({}.isPrototypeOf),hZ=pZ(`navigator`,`userAgent`)||``,gZ=Q.process,_Z=Q.Deno,vZ=gZ&&gZ.versions||_Z&&_Z.version,yZ=vZ&&vZ.v8;yZ&&(qX=(KX=yZ.split(`.`))[0]>0&&KX[0]<4?1:+(KX[0]+KX[1])),!qX&&hZ&&(!(KX=hZ.match(/Edge\/(\d+)/))||KX[1]>=74)&&(KX=hZ.match(/Chrome\/(\d+)/))&&(qX=+KX[1]);var bZ=qX,xZ=!!Object.getOwnPropertySymbols&&!YX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bZ&&bZ<41})),SZ=xZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,CZ=Q.Object,wZ=SZ?function(e){return typeof e==`symbol`}:function(e){var t=pZ(`Symbol`);return dZ(t)&&mZ(t.prototype,CZ(e))},_ye=Q.String,TZ=function(e){try{return _ye(e)}catch{return`Object`}},vye=Q.TypeError,EZ=function(e){if(dZ(e))return e;throw vye(TZ(e)+` is not a function`)},DZ=function(e,t){var n=e[t];return n==null?void 0:EZ(n)},yye=Q.TypeError,bye=Object.defineProperty,OZ=function(e,t){try{bye(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},kZ=Q[`__core-js_shared__`]||OZ(`__core-js_shared__`,{}),AZ=GX((function(e){(e.exports=function(e,t){return kZ[e]||(kZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),xye=Q.Object,jZ=function(e){return xye(lZ(e))},Sye=aZ({}.hasOwnProperty),MZ=Object.hasOwn||function(e,t){return Sye(jZ(e),t)},Cye=0,wye=Math.random(),Tye=aZ(1 .toString),NZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Tye(++Cye+wye,36)},PZ=AZ(`wks`),FZ=Q.Symbol,IZ=FZ&&FZ.for,Eye=SZ?FZ:FZ&&FZ.withoutSetter||NZ,LZ=function(e){if(!MZ(PZ,e)||!xZ&&typeof PZ[e]!=`string`){var t=`Symbol.`+e;xZ&&MZ(FZ,e)?PZ[e]=FZ[e]:PZ[e]=SZ&&IZ?IZ(t):Eye(t)}return PZ[e]},Dye=Q.TypeError,Oye=LZ(`toPrimitive`),RZ=function(e){var t=function(e,t){if(!fZ(e)||wZ(e))return e;var n,r=DZ(e,Oye);if(r){if(t===void 0&&(t=`default`),n=QX(r,e,t),!fZ(n)||wZ(n))return n;throw Dye(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&dZ(n=e.toString)&&!fZ(r=QX(n,e))||dZ(n=e.valueOf)&&!fZ(r=QX(n,e))||t!==`string`&&dZ(n=e.toString)&&!fZ(r=QX(n,e)))return r;throw yye(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return wZ(t)?t:t+``},zZ=Q.document,kye=fZ(zZ)&&fZ(zZ.createElement),BZ=function(e){return kye?zZ.createElement(e):{}},VZ=!XX&&!YX((function(){return Object.defineProperty(BZ(`div`),`a`,{get:function(){return 7}}).a!=7})),HZ=Object.getOwnPropertyDescriptor,UZ={f:XX?HZ:function(e,t){if(e=uZ(e),t=RZ(t),VZ)try{return HZ(e,t)}catch{}if(MZ(e,t))return tZ(!QX(uye.f,e,t),e[t])}},Aye=Q.String,jye=Q.TypeError,WZ=function(e){if(fZ(e))return e;throw jye(Aye(e)+` is not an object`)},Mye=Q.TypeError,GZ=Object.defineProperty,KZ={f:XX?GZ:function(e,t,n){if(WZ(e),t=RZ(t),WZ(n),VZ)try{return GZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Mye(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},qZ=XX?function(e,t,n){return KZ.f(e,t,tZ(1,n))}:function(e,t,n){return e[t]=n,e},Nye=aZ(Function.toString);dZ(kZ.inspectSource)||(kZ.inspectSource=function(e){return Nye(e)});var JZ,YZ,XZ,ZZ=kZ.inspectSource,QZ=Q.WeakMap,$Z=dZ(QZ)&&/native code/.test(ZZ(QZ)),eQ=AZ(`keys`),tQ=function(e){return eQ[e]||(eQ[e]=NZ(e))},nQ={},rQ=Q.TypeError,Pye=Q.WeakMap;if($Z||kZ.state){var iQ=kZ.state||=new Pye,Fye=aZ(iQ.get),aQ=aZ(iQ.has),Iye=aZ(iQ.set);JZ=function(e,t){if(aQ(iQ,e))throw new rQ(`Object already initialized`);return t.facade=e,Iye(iQ,e,t),t},YZ=function(e){return Fye(iQ,e)||{}},XZ=function(e){return aQ(iQ,e)}}else{var oQ=tQ(`state`);nQ[oQ]=!0,JZ=function(e,t){if(MZ(e,oQ))throw new rQ(`Object already initialized`);return t.facade=e,qZ(e,oQ,t),t},YZ=function(e){return MZ(e,oQ)?e[oQ]:{}},XZ=function(e){return MZ(e,oQ)}}var sQ={set:JZ,get:YZ,has:XZ,enforce:function(e){return XZ(e)?YZ(e):JZ(e,{})},getterFor:function(e){return function(t){var n;if(!fZ(t)||(n=YZ(t)).type!==e)throw rQ(`Incompatible receiver, `+e+` required`);return n}}},cQ=Function.prototype,Lye=XX&&Object.getOwnPropertyDescriptor,lQ=MZ(cQ,`name`),uQ={EXISTS:lQ,PROPER:lQ&&function(){}.name===`something`,CONFIGURABLE:lQ&&(!XX||XX&&Lye(cQ,`name`).configurable)},dQ=GX((function(e){var t=uQ.CONFIGURABLE,n=sQ.get,r=sQ.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;dZ(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!MZ(a,`name`)||t&&a.name!==d)&&qZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:OZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:qZ(e,n,a))})(Function.prototype,`toString`,(function(){return dZ(this)&&n(this).source||ZZ(this)}))})),Rye=Math.ceil,zye=Math.floor,fQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?zye:Rye)(t)},Bye=Math.max,Vye=Math.min,pQ=function(e,t){var n=fQ(e);return n<0?Bye(n+t,0):Vye(n,t)},Hye=Math.min,mQ=function(e){return e>0?Hye(fQ(e),9007199254740991):0},hQ=function(e){return mQ(e.length)},gQ=function(e){return function(t,n,r){var i,a=uZ(t),o=hQ(a),s=pQ(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},_Q={includes:gQ(!0),indexOf:gQ(!1)},Uye=_Q.indexOf,vQ=aZ([].push),yQ=function(e,t){var n,r=uZ(e),i=0,a=[];for(n in r)!MZ(nQ,n)&&MZ(r,n)&&vQ(a,n);for(;t.length>i;)MZ(r,n=t[i++])&&(~Uye(a,n)||vQ(a,n));return a},bQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Wye=bQ.concat(`length`,`prototype`),xQ={f:Object.getOwnPropertyNames||function(e){return yQ(e,Wye)}},Gye={f:Object.getOwnPropertySymbols},Kye=aZ([].concat),qye=pZ(`Reflect`,`ownKeys`)||function(e){var t=xQ.f(WZ(e)),n=Gye.f;return n?Kye(t,n(e)):t},Jye=function(e,t){for(var n=qye(t),r=KZ.f,i=UZ.f,a=0;a<n.length;a++){var o=n[a];MZ(e,o)||r(e,o,i(t,o))}},Yye=/#|\.prototype\./,SQ=function(e,t){var n=Zye[Xye(e)];return n==$ye||n!=Qye&&(dZ(t)?YX(t):!!t)},Xye=SQ.normalize=function(e){return String(e).replace(Yye,`.`).toLowerCase()},Zye=SQ.data={},Qye=SQ.NATIVE=`N`,$ye=SQ.POLYFILL=`P`,CQ=SQ,ebe=UZ.f,wQ=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Q:l?Q[s]||OZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=ebe(n,r))&&o.value:n[r],!CQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Jye(a,i)}(e.sham||i&&i.sham)&&qZ(a,`sham`,!0),dQ(n,r,a,e)}},TQ={};TQ[LZ(`toStringTag`)]=`z`;var EQ=String(TQ)===`[object z]`,tbe=LZ(`toStringTag`),nbe=Q.Object,rbe=oZ(function(){return arguments}())==`Arguments`,DQ=EQ?oZ:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=nbe(e),tbe))==`string`?n:rbe?oZ(t):(r=oZ(t))==`Object`&&dZ(t.callee)?`Arguments`:r},ibe=Q.String,OQ=function(e){if(DQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ibe(e)},kQ=`
\v\f\r \xA0               \u2028\u2029`,AQ=aZ(``.replace),jQ=`[`+kQ+`]`,abe=RegExp(`^`+jQ+jQ+`*`),obe=RegExp(jQ+jQ+`*$`),MQ=function(e){return function(t){var n=OQ(lZ(t));return 1&e&&(n=AQ(n,abe,``)),2&e&&(n=AQ(n,obe,``)),n}},sbe={start:MQ(1),end:MQ(2),trim:MQ(3)},cbe=uQ.PROPER,lbe=sbe.trim;function NQ(e){return e.length?e[0].tagName.toLowerCase():``}function PQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=K(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}wQ({target:`String`,proto:!0,forced:YX((function(){return!!kQ.trim()||cbe&&kQ.trim.name!==`trim`}))},{trim:function(){return lbe(this)}}),wQ({global:!0},{globalThis:Q}),Jv&&(K.fn.append=Jv),Fv&&(K.fn.on=Fv),ay&&(K.fn.focus=ay),jv&&(K.fn.attr=jv),Pv&&(K.fn.val=Pv),Gv&&(K.fn.html=Gv),Xv&&(K.fn.parent=Xv),Av&&(K.fn.hasClass=Av),ty&&(K.fn.empty=ty);var FQ,ube={type:`video`,renderElem:function(e,t,n){var r,i=e,a=i.src,o=a===void 0?``:a,s=i.poster,c=s===void 0?``:s,l=i.width,u=l===void 0?`auto`:l,d=i.height,f=d===void 0?`auto`:d,p=X.isNodeSelected(n,e);if(o.trim().indexOf(`<iframe `)===0)r=xb(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:PQ(o,u,f)});else{var m=xb(`video`,{poster:c,controls:!0},xb(`source`,{src:o,type:`video/mp4`}),`Sorry, your browser doesn't support embedded videos.
抱歉,浏览器不支持 video 视频`);u!==`auto`&&(m.data.width=u),f!==`auto`&&(m.data.height=f),r=xb(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return tb(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},dbe={type:`video`,elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?``:r,a=n.poster,o=a===void 0?``:a,s=n.width,c=s===void 0?`auto`:s,l=n.height,u=l===void 0?`auto`:l,d=`<div data-w-e-type="video" data-w-e-is-void>
`;return i.trim().indexOf(`<iframe `)===0?d+=PQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
</div>`}},fbe=Object.keys||function(e){return yQ(e,bQ)},pbe=XX?Object.defineProperties:function(e,t){WZ(e);for(var n,r=uZ(t),i=fbe(t),a=i.length,o=0;a>o;)KZ.f(e,n=i[o++],r[n]);return e},IQ=pZ(`document`,`documentElement`),LQ=tQ(`IE_PROTO`),RQ=function(){},zQ=function(e){return`<script>`+e+`<\/script>`},BQ=function(e){e.write(zQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},VQ=function(){try{FQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;VQ=typeof document<`u`?document.domain&&FQ?BQ(FQ):((t=BZ(`iframe`)).style.display=`none`,IQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(zQ(`document.F=Object`)),e.close(),e.F):BQ(FQ);for(var n=bQ.length;n--;)delete VQ.prototype[bQ[n]];return VQ()};nQ[LQ]=!0;var HQ=Object.create||function(e,t){var n;return e===null?n=VQ():(RQ.prototype=WZ(e),n=new RQ,RQ.prototype=null,n[LQ]=e),t===void 0?n:pbe(n,t)},UQ=LZ(`unscopables`),WQ=Array.prototype;WQ[UQ]??KZ.f(WQ,UQ,{configurable:!0,value:HQ(null)});var GQ=function(e){WQ[UQ][e]=!0},mbe=_Q.includes;wQ({target:`Array`,proto:!0},{includes:function(e){return mbe(this,e,arguments.length>1?arguments[1]:void 0)}}),GQ(`includes`);var hbe={selector:`iframe,video,p`,preParseHtml:function(e){var t=K(e),n=t;if(NQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=K(i))}}var o=NQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=K(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},KQ=aZ(aZ.bind),qQ=function(e,t){return EZ(e),t===void 0?e:KQ?KQ(e,t):function(){return e.apply(t,arguments)}},JQ=Array.isArray||function(e){return oZ(e)==`Array`},YQ=function(){},gbe=[],XQ=pZ(`Reflect`,`construct`),ZQ=/^\s*(?:class|function)\b/,_be=aZ(ZQ.exec),vbe=!ZQ.exec(YQ),QQ=function(e){if(!dZ(e))return!1;try{return XQ(YQ,gbe,e),!0}catch{return!1}},$Q=!XQ||YX((function(){var e;return QQ(QQ.call)||!QQ(Object)||!QQ((function(){e=!0}))||e}))?function(e){if(!dZ(e))return!1;switch(DQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return vbe||!!_be(ZQ,ZZ(e))}:QQ,ybe=LZ(`species`),e$=Q.Array,bbe=function(e,t){return new(function(e){var t;return JQ(e)&&(t=e.constructor,($Q(t)&&(t===e$||JQ(t.prototype))||fZ(t)&&(t=t[ybe])===null)&&(t=void 0)),t===void 0?e$:t}(e))(t===0?0:t)},t$=aZ([].push),n$=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=jZ(c),h=cZ(m),g=qQ(l,u),_=hQ(h),v=0,y=d||bbe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:t$(b,f)}else switch(e){case 4:return!1;case 7:t$(b,f)}return a?-1:r||i?i:b}},r$={forEach:n$(0),map:n$(1),filter:n$(2),some:n$(3),every:n$(4),find:n$(5),findIndex:n$(6),filterReject:n$(7)},xbe=r$.find,i$=!0;`find`in[]&&[,].find((function(){i$=!1})),wQ({target:`Array`,proto:!0,forced:i$},{find:function(e){return xbe(this,e,arguments.length>1?arguments[1]:void 0)}}),GQ(`find`);var Sbe=EQ?{}.toString:function(){return`[object `+DQ(this)+`]`};function a$(e,t,n,r){return t===void 0&&(t=``),n===void 0&&(n=`auto`),r===void 0&&(r=`auto`),{type:`video`,src:e,poster:t,width:n,height:r,children:[{text:``}]}}EQ||dQ(Object.prototype,`toString`,Sbe,{unsafe:!0});var o$,s$,Cbe={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=K(e),i=``,a=``,o=`auto`,s=`auto`,c=r.find(`iframe`);if(c.length>0)return o=c.attr(`width`)||`auto`,s=c.attr(`height`)||`auto`,a$(i=c[0].outerHTML,a,o,s);var l=r.find(`video`);return(i=l.attr(`src`)||``)||l.length>0&&(i=l.find(`source`).attr(`src`)||``),o=l.attr(`width`)||`auto`,s=l.attr(`height`)||`auto`,a$(i,a=l.attr(`poster`)||``,o,s)}},c$=function(){var e=WZ(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},l$=Q.RegExp,u$=YX((function(){var e=l$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),wbe=u$||YX((function(){return!l$(`a`,`y`).sticky})),Tbe={BROKEN_CARET:u$||YX((function(){var e=l$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:wbe,UNSUPPORTED_Y:u$},Ebe=Q.RegExp,Dbe=YX((function(){var e=Ebe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Obe=Q.RegExp,kbe=YX((function(){var e=Obe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Abe=sQ.get,jbe=AZ(`native-string-replace`,String.prototype.replace),d$=RegExp.prototype.exec,f$=d$,Mbe=aZ(``.charAt),Nbe=aZ(``.indexOf),Pbe=aZ(``.replace),p$=aZ(``.slice),m$=(s$=/b*/g,QX(d$,o$=/a/,`a`),QX(d$,s$,`a`),o$.lastIndex!==0||s$.lastIndex!==0),h$=Tbe.BROKEN_CARET,g$=/()??/.exec(``)[1]!==void 0;(m$||g$||h$||Dbe||kbe)&&(f$=function(e){var t,n,r,i,a,o,s,c=this,l=Abe(c),u=OQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=QX(f$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=h$&&c.sticky,m=QX(c$,c),h=c.source,g=0,_=u;if(p&&(m=Pbe(m,`y`,``),Nbe(m,`g`)===-1&&(m+=`g`),_=p$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Mbe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),g$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),m$&&(r=c.lastIndex),i=QX(d$,p?n:c,_),p?i?(i.input=p$(i.input,g),i[0]=p$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:m$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),g$&&i&&i.length>1&&QX(jbe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=HQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var _$=f$;wQ({target:`RegExp`,proto:!0,forced:/./.exec!==_$},{exec:_$});var v$=Function.prototype,y$=v$.apply,Fbe=v$.bind,b$=v$.call,x$=typeof Reflect==`object`&&Reflect.apply||(Fbe?b$.bind(y$):function(){return b$.apply(y$,arguments)}),S$=(LZ(`species`),RegExp.prototype),Ibe=aZ(``.charAt),C$=aZ(``.charCodeAt),Lbe=aZ(``.slice),w$=function(e){return function(t,n){var r,i,a=OQ(lZ(t)),o=fQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=C$(a,o))<55296||r>56319||o+1===s||(i=C$(a,o+1))<56320||i>57343?e?Ibe(a,o):r:e?Lbe(a,o,o+2):i-56320+(r-55296<<10)+65536}},T$={codeAt:w$(!1),charAt:w$(!0)},Rbe=T$.charAt,zbe=function(e,t,n){return t+(n?Rbe(e,t).length:1)},Bbe=Math.floor,E$=aZ(``.charAt),Vbe=aZ(``.replace),D$=aZ(``.slice),Hbe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ube=/\$([$&'`]|\d{1,2})/g,Wbe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Ube;return i!==void 0&&(i=jZ(i),c=Hbe),Vbe(a,c,(function(a,c){var l;switch(E$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return D$(t,0,n);case`'`:return D$(t,o);case`<`:l=i[D$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Bbe(u/10);return d===0?a:d<=s?r[d-1]===void 0?E$(c,1):r[d-1]+E$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Gbe=Q.TypeError,Kbe=function(e,t){var n=e.exec;if(dZ(n)){var r=QX(n,e,t);return r!==null&&WZ(r),r}if(oZ(e)===`RegExp`)return QX(_$,e,t);throw Gbe(`RegExp#exec called on incompatible receiver`)},O$=LZ(`replace`),qbe=Math.max,Jbe=Math.min,Ybe=aZ([].concat),k$=aZ([].push),A$=aZ(``.indexOf),j$=aZ(``.slice),Xbe=`a`.replace(/./,`$0`)===`$0`,M$=!!/./[O$]&&/./[O$](`a`,`$0`)===``;function N$(e){return e===void 0&&(e=`r`),e+`-`+Ey()}(function(e,t,n,r){var i=LZ(e),a=!YX((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!YX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=aZ(/./[i]),c=function(e,t,n){var r=M$?`$`:`$0`;return[function(e,n){var r=lZ(this),i=e==null?void 0:DZ(e,O$);return i?QX(i,e,r,n):QX(t,OQ(r),e,n)},function(e,i){var a=WZ(this),o=OQ(e);if(typeof i==`string`&&A$(i,r)===-1&&A$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=dZ(i);c||(i=OQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Kbe(a,o);if(f===null||(k$(d,f),!l))break;OQ(f[0])===``&&(a.lastIndex=zbe(o,mQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=OQ((f=d[g])[0]),v=qbe(Jbe(fQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)k$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Ybe([_],y,v,o);x!==void 0&&k$(S,x);var C=OQ(x$(i,void 0,S))}else C=Wbe(_,o,v,y,x,i);v>=h&&(m+=j$(o,h,v)+C,h=v+_.length)}return m+j$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=aZ(e),c=t.exec;return c===_$||c===S$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));dQ(String.prototype,e,c[0]),dQ(S$,i,c[1])}})(`replace`,0,!!YX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Xbe||M$);var P$=Q.Promise,F$=function(e,t,n){for(var r in t)dQ(e,r,t[r],n);return e},Zbe=Q.String,Qbe=Q.TypeError,I$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=aZ(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return WZ(n),function(e){if(typeof e==`object`||dZ(e))return e;throw Qbe(`Can't set `+Zbe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),$be=KZ.f,L$=LZ(`toStringTag`),R$=function(e,t,n){e&&!MZ(e=n?e:e.prototype,L$)&&$be(e,L$,{configurable:!0,value:t})},z$=LZ(`species`),exe=Q.TypeError,B$=function(e,t){if(mZ(t,e))return e;throw exe(`Incorrect invocation`)},V$={},txe=LZ(`iterator`),nxe=Array.prototype,rxe=LZ(`iterator`),H$=function(e){if(e!=null)return DZ(e,rxe)||DZ(e,`@@iterator`)||V$[DQ(e)]},ixe=Q.TypeError,U$=function(e,t,n){var r,i;WZ(e);try{if(!(r=DZ(e,`return`))){if(t===`throw`)throw n;return n}r=QX(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return WZ(r),n},axe=Q.TypeError,W$=function(e,t){this.stopped=e,this.result=t},G$=W$.prototype,K$=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=qQ(t,d),g=function(e){return r&&U$(r,`normal`,e),new W$(!0,e)},_=function(e){return f?(WZ(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=H$(e)))throw axe(TZ(e)+` is not iterable`);if((u=i)!==void 0&&(V$.Array===u||nxe[txe]===u)){for(a=0,o=hQ(e);o>a;a++)if((s=_(e[a]))&&mZ(G$,s))return s;return new W$(!1)}r=function(e,t){var n=arguments.length<2?H$(e):t;if(EZ(n))return WZ(QX(n,e));throw ixe(TZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=QX(c,r)).done;){try{s=_(l.value)}catch(e){U$(r,`throw`,e)}if(typeof s==`object`&&s&&mZ(G$,s))return s}return new W$(!1)},q$=LZ(`iterator`),J$=!1;try{var oxe=0,Y$={next:function(){return{done:!!oxe++}},return:function(){J$=!0}};Y$[q$]=function(){return this},Array.from(Y$,(function(){throw 2}))}catch{}var X$,Z$,Q$,$$,e1=function(e,t){if(!t&&!J$)return!1;var n=!1;try{var r={};r[q$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},sxe=Q.TypeError,cxe=LZ(`species`),t1=aZ([].slice),n1=/(?:ipad|iphone|ipod).*applewebkit/i.test(hZ),r1=oZ(Q.process)==`process`,i1=Q.setImmediate,a1=Q.clearImmediate,lxe=Q.process,o1=Q.Dispatch,uxe=Q.Function,s1=Q.MessageChannel,dxe=Q.String,c1=0,l1={};try{X$=Q.location}catch{}var u1=function(e){if(MZ(l1,e)){var t=l1[e];delete l1[e],t()}},d1=function(e){return function(){u1(e)}},f1=function(e){u1(e.data)},p1=function(e){Q.postMessage(dxe(e),X$.protocol+`//`+X$.host)};i1&&a1||(i1=function(e){var t=t1(arguments,1);return l1[++c1]=function(){x$(dZ(e)?e:uxe(e),void 0,t)},Z$(c1),c1},a1=function(e){delete l1[e]},r1?Z$=function(e){lxe.nextTick(d1(e))}:o1&&o1.now?Z$=function(e){o1.now(d1(e))}:s1&&!n1?($$=(Q$=new s1).port2,Q$.port1.onmessage=f1,Z$=qQ($$.postMessage,$$)):Q.addEventListener&&dZ(Q.postMessage)&&!Q.importScripts&&X$&&X$.protocol!==`file:`&&!YX(p1)?(Z$=p1,Q.addEventListener(`message`,f1,!1)):Z$=`onreadystatechange`in BZ(`script`)?function(e){IQ.appendChild(BZ(`script`)).onreadystatechange=function(){IQ.removeChild(this),u1(e)}}:function(e){setTimeout(d1(e),0)});var m1,h1,g1,_1,v1,y1,b1,x1,S1={set:i1,clear:a1},fxe=/ipad|iphone|ipod/i.test(hZ)&&Q.Pebble!==void 0,pxe=/web0s(?!.*chrome)/i.test(hZ),mxe=UZ.f,C1=S1.set,w1=Q.MutationObserver||Q.WebKitMutationObserver,T1=Q.document,E1=Q.process,D1=Q.Promise,O1=mxe(Q,`queueMicrotask`),k1=O1&&O1.value;k1||(m1=function(){var e,t;for(r1&&(e=E1.domain)&&e.exit();h1;){t=h1.fn,h1=h1.next;try{t()}catch(e){throw h1?_1():g1=void 0,e}}g1=void 0,e&&e.enter()},n1||r1||pxe||!w1||!T1?!fxe&&D1&&D1.resolve?((b1=D1.resolve(void 0)).constructor=D1,x1=qQ(b1.then,b1),_1=function(){x1(m1)}):r1?_1=function(){E1.nextTick(m1)}:(C1=qQ(C1,Q),_1=function(){C1(m1)}):(v1=!0,y1=T1.createTextNode(``),new w1(m1).observe(y1,{characterData:!0}),_1=function(){y1.data=v1=!v1}));var A1,j1,M1,N1,P1=k1||function(e){var t={fn:e,next:void 0};g1&&(g1.next=t),h1||(h1=t,_1()),g1=t},hxe=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=EZ(t),this.reject=EZ(n)},F1={f:function(e){return new hxe(e)}},I1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},gxe=typeof window==`object`,L1=S1.set,_xe=LZ(`species`),R1=`Promise`,z1=sQ.getterFor(R1),vxe=sQ.set,yxe=sQ.getterFor(R1),B1=P$&&P$.prototype,V1=P$,H1=B1,U1=Q.TypeError,W1=Q.document,G1=Q.process,K1=F1.f,bxe=K1,xxe=!!(W1&&W1.createEvent&&Q.dispatchEvent),q1=dZ(Q.PromiseRejectionEvent),J1=!1,Y1=CQ(R1,(function(){var e=ZZ(V1),t=e!==String(V1);if(!t&&bZ===66)return!0;if(bZ>=51&&/native code/.test(e))return!1;var n=new V1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[_xe]=r,!(J1=n.then((function(){}))instanceof r)||!t&&gxe&&!q1})),Sxe=Y1||!e1((function(e){V1.all(e).catch((function(){}))})),X1=function(e){var t;return!(!fZ(e)||!dZ(t=e.then))&&t},Z1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;P1((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&wxe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(U1(`Promise-chain cycle`)):(s=X1(o))?QX(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Cxe(e)}))}},Q1=function(e,t,n){var r,i;xxe?((r=W1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!q1&&(i=Q[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Q.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Cxe=function(e){QX(L1,Q,(function(){var t,n=e.facade,r=e.value;if($1(e)&&(t=I1((function(){r1?G1.emit(`unhandledRejection`,r,n):Q1(`unhandledrejection`,n,r)})),e.rejection=r1||$1(e)?2:1,t.error))throw t.value}))},$1=function(e){return e.rejection!==1&&!e.parent},wxe=function(e){QX(L1,Q,(function(){var t=e.facade;r1?G1.emit(`rejectionHandled`,t):Q1(`rejectionhandled`,t,e.value)}))},e0=function(e,t,n){return function(r){e(t,r,n)}},t0=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z1(e,!0))},n0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U1(`Promise can't be resolved itself`);var r=X1(t);r?P1((function(){var n={done:!1};try{QX(r,t,e0(n0,n,e),e0(t0,n,e))}catch(t){t0(n,t,e)}})):(e.value=t,e.state=1,Z1(e,!1))}catch(t){t0({done:!1},t,e)}}};if(Y1&&(H1=(V1=function(e){B$(this,H1),EZ(e),QX(A1,this);var t=z1(this);try{e(e0(n0,t),e0(t0,t))}catch(e){t0(t,e)}}).prototype,(A1=function(e){vxe(this,{type:R1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=F$(H1,{then:function(e,t){var n=yxe(this),r=n.reactions,i=K1(function(e,t){var n,r=WZ(e).constructor;return r===void 0||(n=WZ(r)[cxe])==null?t:function(e){if($Q(e))return e;throw sxe(TZ(e)+` is not a constructor`)}(n)}(this,V1));return i.ok=!dZ(e)||e,i.fail=dZ(t)&&t,i.domain=r1?G1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Z1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),j1=function(){var e=new A1,t=z1(e);this.promise=e,this.resolve=e0(n0,t),this.reject=e0(t0,t)},F1.f=K1=function(e){return e===V1||e===M1?new j1(e):bxe(e)},dZ(P$)&&B1!==Object.prototype)){N1=B1.then,J1||(dQ(B1,`then`,(function(e,t){var n=this;return new V1((function(e,t){QX(N1,n,e,t)})).then(e,t)}),{unsafe:!0}),dQ(B1,`catch`,H1.catch,{unsafe:!0}));try{delete B1.constructor}catch{}I$&&I$(B1,H1)}function r0(e,t,n){return n===void 0&&(n=``),VX(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return HX(this,(function(u){switch(u.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig(`insertVideo`),i=r.onInsertedVideo,a=r.checkVideo,o=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=u.sent())==`string`?(e.alert(s,`error`),[2]):s==null?[2]:[4,o(t)];case 2:return(c=u.sent()).trim().indexOf(`<iframe `)!==0&&(c=c.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)),l={type:`video`,src:c,poster:n,children:[{text:``}]},Promise.resolve().then((function(){G.insertNodes(e,l)})),i(l),[2]}}))}))}function i0(){return N$(`w-e-insert-video`)}wQ({global:!0,wrap:!0,forced:Y1},{Promise:V1}),R$(V1,R1,!1),function(e){var t=pZ(`Promise`),n=KZ.f;XX&&t&&!t[z$]&&n(t,z$,{configurable:!0,get:function(){return this}})}(),M1=pZ(R1),wQ({target:R1,stat:!0,forced:Y1},{reject:function(e){var t=K1(this);return QX(t.reject,void 0,e),t.promise}}),wQ({target:R1,stat:!0,forced:Y1},{resolve:function(e){return function(e,t){if(WZ(e),fZ(t)&&t.constructor===e)return t;var n=F1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),wQ({target:R1,stat:!0,forced:Sxe},{all:function(e){var t=this,n=K1(t),r=n.resolve,i=n.reject,a=I1((function(){var n=EZ(t.resolve),a=[],o=0,s=1;K$(e,(function(e){var c=o++,l=!1;s++,QX(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=K1(t),r=n.reject,i=I1((function(){var i=EZ(t.resolve);K$(e,(function(e){QX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Txe=function(){function e(){this.title=Z(`videoModule.insertVideo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=i0(),this.posterInputId=i0(),this.buttonId=i0()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||!!X.getSelectedElems(e).some((function(t){var n=X.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.posterInputId,a=n.buttonId,o=UX(zj(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=UX(zj(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=K(c),p=K(d),m=UX(Bj(a,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var h=K(`<div></div>`);h.on(`click`,`#`+a,(function(n){return VX(t,void 0,void 0,(function(){var t,a;return HX(this,(function(o){switch(o.label){case 0:return n.preventDefault(),t=h.find(`#`+r).val().trim(),a=h.find(`#`+i).val().trim(),[4,r0(e,t,a)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=h}var g=this.$content;return g.empty(),g.append(s),g.append(u),g.append(m),f.val(``),p.val(``),setTimeout((function(){f.focus()})),g[0]},e}(),Exe=aZ([].join),Dxe=cZ!=Object,Oxe=function(e,t){var n=[].join;return!!n&&YX((function(){n.call(null,`,`,1)}))}();wQ({target:`Array`,proto:!0,forced:Dxe||!Oxe},{join:function(e){return Exe(uZ(this),e===void 0?`,`:e)}});var a0,o0,s0,kxe=!YX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),c0=tQ(`IE_PROTO`),l0=Q.Object,Axe=l0.prototype,u0=kxe?l0.getPrototypeOf:function(e){var t=jZ(e);if(MZ(t,c0))return t[c0];var n=t.constructor;return dZ(n)&&t instanceof n?n.prototype:t instanceof l0?Axe:null},d0=LZ(`iterator`),f0=!1;[].keys&&(`next`in(s0=[].keys())?(o0=u0(u0(s0)))!==Object.prototype&&(a0=o0):f0=!0),(a0==null||YX((function(){var e={};return a0[d0].call(e)!==e})))&&(a0={}),dZ(a0[d0])||dQ(a0,d0,(function(){return this}));var p0={IteratorPrototype:a0,BUGGY_SAFARI_ITERATORS:f0},jxe=p0.IteratorPrototype,Mxe=function(){return this},Nxe=uQ.PROPER,Pxe=uQ.CONFIGURABLE,m0=p0.IteratorPrototype,h0=p0.BUGGY_SAFARI_ITERATORS,g0=LZ(`iterator`),Fxe=function(){return this},_0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=HQ(jxe,{next:tZ(1,n)}),R$(e,i,!1),V$[i]=Mxe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!h0&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[g0]||p[`@@iterator`]||i&&p[i],h=!h0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=u0(g.call(new e)))!==Object.prototype&&s.next&&(u0(s)!==m0&&(I$?I$(s,m0):dZ(s[g0])||dQ(s,g0,Fxe)),R$(s,d,!0)),Nxe&&i==`values`&&m&&m.name!==`values`&&(Pxe?qZ(p,`name`,`values`):(f=!0,h=function(){return QX(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(h0||f||!(l in p))&&dQ(p,l,c[l]);else wQ({target:t,proto:!0,forced:h0||f},c);return p[g0]!==h&&dQ(p,g0,h,{name:i}),V$[t]=h,c},Ixe=sQ.set,Lxe=sQ.getterFor(`Array Iterator`),v0=_0(Array,`Array`,(function(e,t){Ixe(this,{type:`Array Iterator`,target:uZ(e),index:0,kind:t})}),(function(){var e=Lxe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);V$.Arguments=V$.Array,GQ(`keys`),GQ(`values`),GQ(`entries`);var Rxe=T$.charAt,zxe=sQ.set,Bxe=sQ.getterFor(`String Iterator`);_0(String,`String`,(function(e){zxe(this,{type:`String Iterator`,string:OQ(e),index:0})}),(function(){var e,t=Bxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Rxe(n,r),t.index+=e.length,{value:e,done:!1})}));var y0=function(e,t,n){var r=RZ(t);r in e?KZ.f(e,r,tZ(0,n)):e[r]=n},Vxe=Q.Array,Hxe=Math.max,b0=xQ.f,x0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Uxe={f:function(e){return x0&&oZ(e)==`Window`?function(e){try{return b0(e)}catch{return function(e,t,n){for(var r=hQ(e),i=pQ(void 0,r),a=pQ(r,r),o=Vxe(Hxe(a-i,0)),s=0;i<a;i++,s++)y0(o,s,e[i]);return o.length=s,o}(x0)}}(e):b0(uZ(e))}},S0=YX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),C0=Object.isExtensible,w0=YX((function(){C0(1)}))||S0?function(e){return!!fZ(e)&&(!S0||oZ(e)!=`ArrayBuffer`)&&(!C0||C0(e))}:C0,Wxe=!YX((function(){return Object.isExtensible(Object.preventExtensions({}))})),T0=GX((function(e){var t=KZ.f,n=!1,r=NZ(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=xQ.f,t=aZ([].splice),i={};i[r]=1,e(i).length&&(xQ.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},wQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Uxe.f}))},fastKey:function(e,t){if(!fZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!MZ(e,r)){if(!w0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!MZ(e,r)){if(!w0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Wxe&&n&&w0(e)&&!MZ(e,r)&&a(e),e}};nQ[r]=!0})),E0=T0.getWeakData,Gxe=sQ.set,Kxe=sQ.getterFor,qxe=r$.find,Jxe=r$.findIndex,Yxe=aZ([].splice),Xxe=0,D0=function(e){return e.frozen||=new O0},O0=function(){this.entries=[]},k0=function(e,t){return qxe(e.entries,(function(e){return e[0]===t}))};O0.prototype={get:function(e){var t=k0(this,e);if(t)return t[1]},has:function(e){return!!k0(this,e)},set:function(e,t){var n=k0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jxe(this.entries,(function(t){return t[0]===e}));return~t&&Yxe(this.entries,t,1),!!~t}};var A0,j0={getConstructor:function(e,t,n,r){var i=e((function(e,i){B$(e,a),Gxe(e,{type:t,id:Xxe++,frozen:void 0}),i!=null&&K$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Kxe(t),s=function(e,t,n){var r=o(e),i=E0(WZ(t),!0);return!0===i?D0(r).set(t,n):i[r.id]=n,e};return F$(a,{delete:function(e){var t=o(this);if(!fZ(e))return!1;var n=E0(e);return!0===n?D0(t).delete(e):n&&MZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!fZ(e))return!1;var n=E0(e);return!0===n?D0(t).has(e):n&&MZ(n,t.id)}}),F$(a,n?{get:function(e){var t=o(this);if(fZ(e)){var n=E0(e);return!0===n?D0(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},M0=sQ.enforce,Zxe=!Q.ActiveXObject&&`ActiveXObject`in Q,N0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Qxe=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Q[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=aZ(s[e]);dQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!fZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!fZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!fZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(CQ(e,!dZ(o)||!(i||s.forEach&&!YX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),T0.enable();else if(CQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=YX((function(){d.has(1)})),m=e1((function(e){new o(e)})),h=!i&&YX((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){B$(e,s);var n=function(e,t,n){var r,i;return I$&&dZ(r=t.constructor)&&r!==n&&fZ(i=r.prototype)&&i!==n.prototype&&I$(e,i),e}(new o,e,c);return t!=null&&K$(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,wQ({global:!0,forced:c!=o},l),R$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,N0,j0);if($Z&&Zxe){A0=j0.getConstructor(N0,`WeakMap`,!0),T0.enable();var P0=Qxe.prototype,F0=aZ(P0.delete),I0=aZ(P0.has),L0=aZ(P0.get),R0=aZ(P0.set);F$(P0,{delete:function(e){if(fZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,F0(this,e)||t.frozen.delete(e)}return F0(this,e)},has:function(e){if(fZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,I0(this,e)||t.frozen.has(e)}return I0(this,e)},get:function(e){if(fZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,I0(this,e)?L0(this,e):t.frozen.get(e)}return L0(this,e)},set:function(e,t){if(fZ(e)&&!w0(e)){var n=M0(this);n.frozen||=new A0,I0(this,e)?R0(this,e,t):n.frozen.set(e,t)}else R0(this,e,t);return this}})}var z0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},B0=BZ(`span`).classList,V0=B0&&B0.constructor&&B0.constructor.prototype,$xe=V0===Object.prototype?void 0:V0,H0=LZ(`iterator`),U0=LZ(`toStringTag`),W0=v0.values,G0=function(e,t){if(e){if(e[H0]!==W0)try{qZ(e,H0,W0)}catch{e[H0]=W0}if(e[U0]||qZ(e,U0,t),z0[t]){for(var n in v0)if(e[n]!==v0[n])try{qZ(e,n,v0[n])}catch{e[n]=v0[n]}}}};for(var K0 in z0)G0(Q[K0]&&Q[K0].prototype,K0);G0($xe,`DOMTokenList`);var eSe=uQ.EXISTS,tSe=KZ.f,q0=Function.prototype,nSe=aZ(q0.toString),J0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rSe=aZ(J0.exec);XX&&!eSe&&tSe(q0,`name`,{configurable:!0,get:function(){try{return rSe(J0,nSe(this))[1]}catch{return``}}});var iSe=LZ(`species`),aSe=bZ>=51||!YX((function(){var e=[];return(e.constructor={})[iSe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),oSe=LZ(`species`),Y0=Q.Array,sSe=Math.max;function X0(e){return e.getMenuConfig(`uploadVideo`)}wQ({target:`Array`,proto:!0,forced:!aSe},{slice:function(e,t){var n,r,i,a=uZ(this),o=hQ(a),s=pQ(e,o),c=pQ(t===void 0?o:t,o);if(JQ(a)&&(n=a.constructor,($Q(n)&&(n===Y0||JQ(n.prototype))||fZ(n)&&(n=n[oSe])===null)&&(n=void 0),n===Y0||n===void 0))return t1(a,s,c);for(r=new(n===void 0?Y0:n)(sSe(c-s,0)),i=0;s<c;s++,i++)s in a&&y0(r,i,a[s]);return r.length=i,r}});var Z0=new WeakMap;function cSe(e,t){return VX(this,void 0,void 0,(function(){var n,r,i,a;return HX(this,(function(o){switch(o.label){case 0:return n=function(e){var t=Z0.get(e);if(t!=null)return t;var n=X0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=Jj(BX(BX({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n){return r0(e,t,n)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){var u=l.url,d=u===void 0?``:u,f=l.poster;r0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),Z0.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}var lSe=function(){function e(){this.title=Z(`videoModule.uploadVideo`),this.iconSvg=`<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n){return r0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=K(`body`),c=K(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;VX(this,void 0,void 0,(function(){var i,a,o,s,c,l;return HX(this,(function(u){switch(u.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=X0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=lye(i),u.label=2;case 2:return[4,o.next()];case 3:return(s=u.sent()).done?[3,8]:(c=s.value,a?[4,a(c,(function(t,n){return r0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,cSe(e,c)];case 6:u.sent(),u.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=u.sent(),n={error:l},[3,15];case 10:return u.trys.push([10,,13,14]),s&&!s.done&&(r=o.return)?[4,r.call(o)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(e,c[0].files)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||!!X.getSelectedElems(e).some((function(t){var n=X.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadVideo`)},e}(),uSe=uQ.PROPER,Q0=RegExp.prototype,$0=Q0.toString,dSe=aZ(c$),fSe=YX((function(){return $0.call({source:`a`,flags:`b`})!=`/a/b`})),pSe=uSe&&$0.name!=`toString`;function e2(){return N$(`w-e-insert-video`)}(fSe||pSe)&&dQ(RegExp.prototype,`toString`,(function(){var e=WZ(this),t=OQ(e.source),n=e.flags;return`/`+t+`/`+OQ(n===void 0&&mZ(Q0,e)&&!(`flags`in Q0)?dSe(e):n)}),{unsafe:!0});var mSe=function(){function e(){this.title=Z(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=e2(),this.heightInputId=e2(),this.buttonId=e2()}return e.prototype.getSelectedVideoNode=function(e){return X.getSelectedNodeByType(e,`video`)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,i=t.buttonId,a=UX(zj(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=K(a[1]),c=UX(zj(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=K(c[1]),d=UX(Bj(i,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var f=K(`<div></div>`);f.on(`click`,`#`+i,(function(t){t.preventDefault();var i=f.find(`#`+n).val().trim(),a=f.find(`#`+r).val().trim(),o=parseInt(i),s=parseInt(a),c=o?o.toString():`auto`,l=s?s.toString():`auto`;e.restoreSelection(),G.setNodes(e,{width:c,height:l},{match:function(e){return X.checkNodeType(e,`video`)}}),e.hidePanelOrModal()})),this.$content=f}var p=this.$content;p.empty(),p.append(o),p.append(l),p.append(d);var m=this.getSelectedVideoNode(e);if(m==null)return p[0];var h=m.width,g=h===void 0?`auto`:h,_=m.height,v=_===void 0?`auto`:_;return s.val(g),u.val(v),setTimeout((function(){s.focus()})),p[0]},e}(),hSe={renderElems:[ube],elemsToHtml:[dbe],preParseHtml:[hbe],parseElemsHtml:[Cbe],menus:[{key:`insertVideo`,factory:function(){return new Txe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new lSe},config:{server:``,fieldName:`wangeditor-uploaded-video`,maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:[`video/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+` upload error`,t,n)}}},{key:`editVideoSize`,factory:function(){return new mSe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`video`||t(e)},r.normalizeNode=function(e){var t=UX(e,2),i=t[0],a=t[1];return X.getNodeType(i)===`video`&&X.isLastNode(r,i)&&G.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};wM(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),wM(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var t2=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function n2(e){var t={exports:{}};return e(t,t.exports),t.exports}var r2,i2,a2=function(e){return e&&e.Math==Math&&e},$=a2(typeof globalThis==`object`&&globalThis)||a2(typeof window==`object`&&window)||a2(typeof self==`object`&&self)||a2(typeof t2==`object`&&t2)||function(){return this}()||Function(`return this`)(),o2=function(e){try{return!!e()}catch{return!0}},s2=!o2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),c2=Function.prototype.call,l2=c2.bind?c2.bind(c2):function(){return c2.apply(c2,arguments)},u2={}.propertyIsEnumerable,d2=Object.getOwnPropertyDescriptor,gSe={f:d2&&!u2.call({1:2},1)?function(e){var t=d2(this,e);return!!t&&t.enumerable}:u2},f2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p2=Function.prototype,m2=p2.bind,h2=p2.call,_Se=m2&&m2.bind(h2),g2=m2?function(e){return e&&_Se(h2,e)}:function(e){return e&&function(){return h2.apply(e,arguments)}},vSe=g2({}.toString),ySe=g2(``.slice),_2=function(e){return ySe(vSe(e),8,-1)},v2=$.Object,bSe=g2(``.split),y2=o2((function(){return!v2(`z`).propertyIsEnumerable(0)}))?function(e){return _2(e)==`String`?bSe(e,``):v2(e)}:v2,xSe=$.TypeError,b2=function(e){if(e==null)throw xSe(`Can't call method on `+e);return e},x2=function(e){return y2(b2(e))},S2=function(e){return typeof e==`function`},C2=function(e){return typeof e==`object`?e!==null:S2(e)},SSe=function(e){return S2(e)?e:void 0},w2=function(e,t){return arguments.length<2?SSe($[e]):$[e]&&$[e][t]},T2=g2({}.isPrototypeOf),E2=w2(`navigator`,`userAgent`)||``,D2=$.process,O2=$.Deno,k2=D2&&D2.versions||O2&&O2.version,A2=k2&&k2.v8;A2&&(i2=(r2=A2.split(`.`))[0]>0&&r2[0]<4?1:+(r2[0]+r2[1])),!i2&&E2&&(!(r2=E2.match(/Edge\/(\d+)/))||r2[1]>=74)&&(r2=E2.match(/Chrome\/(\d+)/))&&(i2=+r2[1]);var j2=i2,M2=!!Object.getOwnPropertySymbols&&!o2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j2&&j2<41})),N2=M2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,CSe=$.Object,P2=N2?function(e){return typeof e==`symbol`}:function(e){var t=w2(`Symbol`);return S2(t)&&T2(t.prototype,CSe(e))},wSe=$.String,F2=function(e){try{return wSe(e)}catch{return`Object`}},TSe=$.TypeError,I2=function(e){if(S2(e))return e;throw TSe(F2(e)+` is not a function`)},L2=function(e,t){var n=e[t];return n==null?void 0:I2(n)},ESe=$.TypeError,DSe=Object.defineProperty,R2=function(e,t){try{DSe($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},z2=$[`__core-js_shared__`]||R2(`__core-js_shared__`,{}),B2=n2((function(e){(e.exports=function(e,t){return z2[e]||(z2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),OSe=$.Object,V2=function(e){return OSe(b2(e))},kSe=g2({}.hasOwnProperty),H2=Object.hasOwn||function(e,t){return kSe(V2(e),t)},ASe=0,jSe=Math.random(),MSe=g2(1 .toString),U2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+MSe(++ASe+jSe,36)},W2=B2(`wks`),G2=$.Symbol,K2=G2&&G2.for,NSe=N2?G2:G2&&G2.withoutSetter||U2,q2=function(e){if(!H2(W2,e)||!M2&&typeof W2[e]!=`string`){var t=`Symbol.`+e;M2&&H2(G2,e)?W2[e]=G2[e]:W2[e]=N2&&K2?K2(t):NSe(t)}return W2[e]},PSe=$.TypeError,FSe=q2(`toPrimitive`),J2=function(e){var t=function(e,t){if(!C2(e)||P2(e))return e;var n,r=L2(e,FSe);if(r){if(t===void 0&&(t=`default`),n=l2(r,e,t),!C2(n)||P2(n))return n;throw PSe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&S2(n=e.toString)&&!C2(r=l2(n,e))||S2(n=e.valueOf)&&!C2(r=l2(n,e))||t!==`string`&&S2(n=e.toString)&&!C2(r=l2(n,e)))return r;throw ESe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return P2(t)?t:t+``},Y2=$.document,ISe=C2(Y2)&&C2(Y2.createElement),X2=function(e){return ISe?Y2.createElement(e):{}},Z2=!s2&&!o2((function(){return Object.defineProperty(X2(`div`),`a`,{get:function(){return 7}}).a!=7})),Q2=Object.getOwnPropertyDescriptor,$2={f:s2?Q2:function(e,t){if(e=x2(e),t=J2(t),Z2)try{return Q2(e,t)}catch{}if(H2(e,t))return f2(!l2(gSe.f,e,t),e[t])}},LSe=$.String,RSe=$.TypeError,e4=function(e){if(C2(e))return e;throw RSe(LSe(e)+` is not an object`)},zSe=$.TypeError,t4=Object.defineProperty,n4={f:s2?t4:function(e,t,n){if(e4(e),t=J2(t),e4(n),Z2)try{return t4(e,t,n)}catch{}if(`get`in n||`set`in n)throw zSe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},r4=s2?function(e,t,n){return n4.f(e,t,f2(1,n))}:function(e,t,n){return e[t]=n,e},BSe=g2(Function.toString);S2(z2.inspectSource)||(z2.inspectSource=function(e){return BSe(e)});var i4,a4,o4,s4=z2.inspectSource,c4=$.WeakMap,l4=S2(c4)&&/native code/.test(s4(c4)),u4=B2(`keys`),d4=function(e){return u4[e]||(u4[e]=U2(e))},f4={},p4=$.TypeError,VSe=$.WeakMap;if(l4||z2.state){var m4=z2.state||=new VSe,HSe=g2(m4.get),h4=g2(m4.has),USe=g2(m4.set);i4=function(e,t){if(h4(m4,e))throw new p4(`Object already initialized`);return t.facade=e,USe(m4,e,t),t},a4=function(e){return HSe(m4,e)||{}},o4=function(e){return h4(m4,e)}}else{var g4=d4(`state`);f4[g4]=!0,i4=function(e,t){if(H2(e,g4))throw new p4(`Object already initialized`);return t.facade=e,r4(e,g4,t),t},a4=function(e){return H2(e,g4)?e[g4]:{}},o4=function(e){return H2(e,g4)}}var _4={set:i4,get:a4,has:o4,enforce:function(e){return o4(e)?a4(e):i4(e,{})},getterFor:function(e){return function(t){var n;if(!C2(t)||(n=a4(t)).type!==e)throw p4(`Incompatible receiver, `+e+` required`);return n}}},v4=Function.prototype,WSe=s2&&Object.getOwnPropertyDescriptor,y4=H2(v4,`name`),b4={EXISTS:y4,PROPER:y4&&function(){}.name===`something`,CONFIGURABLE:y4&&(!s2||s2&&WSe(v4,`name`).configurable)},x4=n2((function(e){var t=b4.CONFIGURABLE,n=_4.get,r=_4.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;S2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!H2(a,`name`)||t&&a.name!==d)&&r4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:R2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:r4(e,n,a))})(Function.prototype,`toString`,(function(){return S2(this)&&n(this).source||s4(this)}))})),GSe=Math.ceil,KSe=Math.floor,S4=function(e){var t=+e;return t!=t||t===0?0:(t>0?KSe:GSe)(t)},qSe=Math.max,JSe=Math.min,C4=function(e,t){var n=S4(e);return n<0?qSe(n+t,0):JSe(n,t)},YSe=Math.min,w4=function(e){return e>0?YSe(S4(e),9007199254740991):0},T4=function(e){return w4(e.length)},XSe=function(e){return function(t,n,r){var i,a=x2(t),o=T4(a),s=C4(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),E4=g2([].push),D4=function(e,t){var n,r=x2(e),i=0,a=[];for(n in r)!H2(f4,n)&&H2(r,n)&&E4(a,n);for(;t.length>i;)H2(r,n=t[i++])&&(~XSe(a,n)||E4(a,n));return a},O4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ZSe=O4.concat(`length`,`prototype`),k4={f:Object.getOwnPropertyNames||function(e){return D4(e,ZSe)}},QSe={f:Object.getOwnPropertySymbols},$Se=g2([].concat),eCe=w2(`Reflect`,`ownKeys`)||function(e){var t=k4.f(e4(e)),n=QSe.f;return n?$Se(t,n(e)):t},tCe=function(e,t){for(var n=eCe(t),r=n4.f,i=$2.f,a=0;a<n.length;a++){var o=n[a];H2(e,o)||r(e,o,i(t,o))}},nCe=/#|\.prototype\./,A4=function(e,t){var n=iCe[rCe(e)];return n==oCe||n!=aCe&&(S2(t)?o2(t):!!t)},rCe=A4.normalize=function(e){return String(e).replace(nCe,`.`).toLowerCase()},iCe=A4.data={},aCe=A4.NATIVE=`N`,oCe=A4.POLYFILL=`P`,j4=A4,sCe=$2.f,M4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||R2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=sCe(n,r))&&o.value:n[r],!j4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;tCe(a,i)}(e.sham||i&&i.sham)&&r4(a,`sham`,!0),x4(n,r,a,e)}},N4=Array.isArray||function(e){return _2(e)==`Array`},P4={};P4[q2(`toStringTag`)]=`z`;var F4=String(P4)===`[object z]`,cCe=q2(`toStringTag`),lCe=$.Object,uCe=_2(function(){return arguments}())==`Arguments`,I4=F4?_2:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=lCe(e),cCe))==`string`?n:uCe?_2(t):(r=_2(t))==`Object`&&S2(t.callee)?`Arguments`:r},L4=function(){},dCe=[],R4=w2(`Reflect`,`construct`),z4=/^\s*(?:class|function)\b/,fCe=g2(z4.exec),pCe=!z4.exec(L4),B4=function(e){if(!S2(e))return!1;try{return R4(L4,dCe,e),!0}catch{return!1}},V4=!R4||o2((function(){var e;return B4(B4.call)||!B4(Object)||!B4((function(){e=!0}))||e}))?function(e){if(!S2(e))return!1;switch(I4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return pCe||!!fCe(z4,s4(e))}:B4,H4=function(e,t,n){var r=J2(t);r in e?n4.f(e,r,f2(0,n)):e[r]=n},mCe=q2(`species`),U4=g2([].slice),hCe=j2>=51||!o2((function(){var e=[];return(e.constructor={})[mCe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),gCe=q2(`species`),W4=$.Array,_Ce=Math.max;M4({target:`Array`,proto:!0,forced:!hCe},{slice:function(e,t){var n,r,i,a=x2(this),o=T4(a),s=C4(e,o),c=C4(t===void 0?o:t,o);if(N4(a)&&(n=a.constructor,(V4(n)&&(n===W4||N4(n.prototype))||C2(n)&&(n=n[gCe])===null)&&(n=void 0),n===W4||n===void 0))return U4(a,s,c);for(r=new(n===void 0?W4:n)(_Ce(c-s,0)),i=0;s<c;s++,i++)s in a&&H4(r,i,a[s]);return r.length=i,r}});var vCe=F4?{}.toString:function(){return`[object `+I4(this)+`]`};F4||x4(Object.prototype,`toString`,vCe,{unsafe:!0});var G4,yCe=$.String,K4=function(e){if(I4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return yCe(e)},q4=function(){var e=e4(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},J4=$.RegExp,Y4=o2((function(){var e=J4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),bCe=Y4||o2((function(){return!J4(`a`,`y`).sticky})),X4={BROKEN_CARET:Y4||o2((function(){var e=J4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:bCe,UNSUPPORTED_Y:Y4},xCe=Object.keys||function(e){return D4(e,O4)},SCe=s2?Object.defineProperties:function(e,t){e4(e);for(var n,r=x2(t),i=xCe(t),a=i.length,o=0;a>o;)n4.f(e,n=i[o++],r[n]);return e},Z4=w2(`document`,`documentElement`),Q4=d4(`IE_PROTO`),$4=function(){},e3=function(e){return`<script>`+e+`<\/script>`},t3=function(e){e.write(e3(``)),e.close();var t=e.parentWindow.Object;return e=null,t},n3=function(){try{G4=new ActiveXObject(`htmlfile`)}catch{}var e,t;n3=typeof document<`u`?document.domain&&G4?t3(G4):((t=X2(`iframe`)).style.display=`none`,Z4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(e3(`document.F=Object`)),e.close(),e.F):t3(G4);for(var n=O4.length;n--;)delete n3.prototype[O4[n]];return n3()};f4[Q4]=!0;var r3,i3,a3=Object.create||function(e,t){var n;return e===null?n=n3():($4.prototype=e4(e),n=new $4,$4.prototype=null,n[Q4]=e),t===void 0?n:SCe(n,t)},CCe=$.RegExp,wCe=o2((function(){var e=CCe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),TCe=$.RegExp,ECe=o2((function(){var e=TCe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),DCe=_4.get,OCe=B2(`native-string-replace`,String.prototype.replace),o3=RegExp.prototype.exec,s3=o3,kCe=g2(``.charAt),ACe=g2(``.indexOf),jCe=g2(``.replace),c3=g2(``.slice),l3=(i3=/b*/g,l2(o3,r3=/a/,`a`),l2(o3,i3,`a`),r3.lastIndex!==0||i3.lastIndex!==0),u3=X4.BROKEN_CARET,d3=/()??/.exec(``)[1]!==void 0;(l3||d3||u3||wCe||ECe)&&(s3=function(e){var t,n,r,i,a,o,s,c=this,l=DCe(c),u=K4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=l2(s3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=u3&&c.sticky,m=l2(q4,c),h=c.source,g=0,_=u;if(p&&(m=jCe(m,`y`,``),ACe(m,`g`)===-1&&(m+=`g`),_=c3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&kCe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),d3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),l3&&(r=c.lastIndex),i=l2(o3,p?n:c,_),p?i?(i.input=c3(i.input,g),i[0]=c3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:l3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),d3&&i&&i.length>1&&l2(OCe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=a3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var f3=s3;M4({target:`RegExp`,proto:!0,forced:/./.exec!==f3},{exec:f3});var p3=Function.prototype,m3=p3.apply,MCe=p3.bind,h3=p3.call,g3=typeof Reflect==`object`&&Reflect.apply||(MCe?h3.bind(m3):function(){return h3.apply(m3,arguments)}),NCe=q2(`species`),_3=RegExp.prototype,PCe=q2(`match`),FCe=$.TypeError,ICe=q2(`species`),v3=function(e,t){var n,r=e4(e).constructor;return r===void 0||(n=e4(r)[ICe])==null?t:function(e){if(V4(e))return e;throw FCe(F2(e)+` is not a constructor`)}(n)},LCe=g2(``.charAt),y3=g2(``.charCodeAt),RCe=g2(``.slice),b3=function(e){return function(t,n){var r,i,a=K4(b2(t)),o=S4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=y3(a,o))<55296||r>56319||o+1===s||(i=y3(a,o+1))<56320||i>57343?e?LCe(a,o):r:e?RCe(a,o,o+2):i-56320+(r-55296<<10)+65536}},x3={codeAt:b3(!1),charAt:b3(!0)},zCe=x3.charAt,BCe=function(e,t,n){return t+(n?zCe(e,t).length:1)},VCe=$.Array,HCe=Math.max,S3=function(e,t,n){for(var r=T4(e),i=C4(t,r),a=C4(n===void 0?r:n,r),o=VCe(HCe(a-i,0)),s=0;i<a;i++,s++)H4(o,s,e[i]);return o.length=s,o},UCe=$.TypeError,C3=function(e,t){var n=e.exec;if(S2(n)){var r=l2(n,e,t);return r!==null&&e4(r),r}if(_2(e)===`RegExp`)return l2(f3,e,t);throw UCe(`RegExp#exec called on incompatible receiver`)},w3=X4.UNSUPPORTED_Y,WCe=Math.min,T3=[].push,GCe=g2(/./.exec),E3=g2(T3),D3=g2(``.slice);(function(e,t,n,r){var i=q2(e),a=!o2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!o2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[NCe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=g2(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=K4(b2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!C2(r=e)||!((i=r[PCe])===void 0?_2(r)==`RegExp`:i))return l2(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=l2(f3,p,a))&&!((c=p.lastIndex)>f&&(E3(u,D3(a,f,s.index)),s.length>1&&s.index<a.length&&g3(T3,u,S3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&GCe(p,``)||E3(u,``):E3(u,D3(a,f)),u.length>o?S3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:l2(t,this,e,n)}:t,[function(t,n){var i=b2(this),a=t==null?void 0:L2(t,e);return a?l2(a,t,i,n):l2(r,K4(i),t,n)},function(e,i){var a=e4(this),o=K4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=v3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(w3?`g`:`y`),d=new c(w3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return C3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=w3?0:m;var g,_=C3(d,w3?D3(o,m):o);if(_===null||(g=WCe(w4(d.lastIndex+(w3?m:0)),o.length))===p)m=BCe(o,m,l);else{if(E3(h,D3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(E3(h,_[v]),h.length===f)return h;m=p=g}}return E3(h,D3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=g2(e),c=t.exec;return c===f3||c===_3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));x4(String.prototype,e,c[0]),x4(_3,i,c[1])}r&&r4(_3[i],`sham`,!0)})(`split`,0,!!o2((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),w3);var O3=function(){return O3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O3.apply(this,arguments)};function k3(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function A3(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function KCe(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var j3=q2(`unscopables`),M3=Array.prototype;M3[j3]??n4.f(M3,j3,{configurable:!0,value:a3(null)});var N3,P3,F3,I3=function(e){M3[j3][e]=!0},L3={},qCe=!o2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),R3=d4(`IE_PROTO`),z3=$.Object,JCe=z3.prototype,B3=qCe?z3.getPrototypeOf:function(e){var t=V2(e);if(H2(t,R3))return t[R3];var n=t.constructor;return S2(n)&&t instanceof n?n.prototype:t instanceof z3?JCe:null},V3=q2(`iterator`),H3=!1;[].keys&&(`next`in(F3=[].keys())?(P3=B3(B3(F3)))!==Object.prototype&&(N3=P3):H3=!0),(N3==null||o2((function(){var e={};return N3[V3].call(e)!==e})))&&(N3={}),S2(N3[V3])||x4(N3,V3,(function(){return this}));var U3={IteratorPrototype:N3,BUGGY_SAFARI_ITERATORS:H3},YCe=n4.f,W3=q2(`toStringTag`),G3=function(e,t,n){e&&!H2(e=n?e:e.prototype,W3)&&YCe(e,W3,{configurable:!0,value:t})},XCe=U3.IteratorPrototype,ZCe=function(){return this},QCe=$.String,$Ce=$.TypeError,K3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=g2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return e4(n),function(e){if(typeof e==`object`||S2(e))return e;throw $Ce(`Can't set `+QCe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ewe=b4.PROPER,twe=b4.CONFIGURABLE,q3=U3.IteratorPrototype,J3=U3.BUGGY_SAFARI_ITERATORS,Y3=q2(`iterator`),nwe=function(){return this},X3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=a3(XCe,{next:f2(1,n)}),G3(e,i,!1),L3[i]=ZCe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!J3&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[Y3]||p[`@@iterator`]||i&&p[i],h=!J3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=B3(g.call(new e)))!==Object.prototype&&s.next&&(B3(s)!==q3&&(K3?K3(s,q3):S2(s[Y3])||x4(s,Y3,nwe)),G3(s,d,!0)),ewe&&i==`values`&&m&&m.name!==`values`&&(twe?r4(p,`name`,`values`):(f=!0,h=function(){return l2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(J3||f||!(l in p))&&x4(p,l,c[l]);else M4({target:t,proto:!0,forced:J3||f},c);return p[Y3]!==h&&x4(p,Y3,h,{name:i}),L3[t]=h,c},rwe=_4.set,iwe=_4.getterFor(`Array Iterator`),Z3=X3(Array,`Array`,(function(e,t){rwe(this,{type:`Array Iterator`,target:x2(e),index:0,kind:t})}),(function(){var e=iwe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);L3.Arguments=L3.Array,I3(`keys`),I3(`values`),I3(`entries`);var awe=x3.charAt,owe=_4.set,swe=_4.getterFor(`String Iterator`);X3(String,`String`,(function(e){owe(this,{type:`String Iterator`,string:K4(e),index:0})}),(function(){var e,t=swe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=awe(n,r),t.index+=e.length,{value:e,done:!1})}));var Q3=function(e,t,n){for(var r in t)x4(e,r,t[r],n);return e},$3=k4.f,e6=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cwe={f:function(e){return e6&&_2(e)==`Window`?function(e){try{return $3(e)}catch{return S3(e6)}}(e):$3(x2(e))}},t6=o2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),n6=Object.isExtensible,r6=o2((function(){n6(1)}))||t6?function(e){return!!C2(e)&&(!t6||_2(e)!=`ArrayBuffer`)&&(!n6||n6(e))}:n6,lwe=!o2((function(){return Object.isExtensible(Object.preventExtensions({}))})),i6=n2((function(e){var t=n4.f,n=!1,r=U2(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=k4.f,t=g2([].splice),i={};i[r]=1,e(i).length&&(k4.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},M4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:cwe.f}))},fastKey:function(e,t){if(!C2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!H2(e,r)){if(!r6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!H2(e,r)){if(!r6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return lwe&&n&&r6(e)&&!H2(e,r)&&a(e),e}};f4[r]=!0})),a6=g2(g2.bind),o6=function(e,t){return I2(e),t===void 0?e:a6?a6(e,t):function(){return e.apply(t,arguments)}},uwe=q2(`iterator`),dwe=Array.prototype,fwe=q2(`iterator`),s6=function(e){if(e!=null)return L2(e,fwe)||L2(e,`@@iterator`)||L3[I4(e)]},pwe=$.TypeError,c6=function(e,t,n){var r,i;e4(e);try{if(!(r=L2(e,`return`))){if(t===`throw`)throw n;return n}r=l2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return e4(r),n},mwe=$.TypeError,l6=function(e,t){this.stopped=e,this.result=t},u6=l6.prototype,d6=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=o6(t,d),g=function(e){return r&&c6(r,`normal`,e),new l6(!0,e)},_=function(e){return f?(e4(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=s6(e)))throw mwe(F2(e)+` is not iterable`);if((u=i)!==void 0&&(L3.Array===u||dwe[uwe]===u)){for(a=0,o=T4(e);o>a;a++)if((s=_(e[a]))&&T2(u6,s))return s;return new l6(!1)}r=function(e,t){var n=arguments.length<2?s6(e):t;if(I2(n))return e4(l2(n,e));throw pwe(F2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=l2(c,r)).done;){try{s=_(l.value)}catch(e){c6(r,`throw`,e)}if(typeof s==`object`&&s&&T2(u6,s))return s}return new l6(!1)},hwe=$.TypeError,f6=function(e,t){if(T2(t,e))return e;throw hwe(`Incorrect invocation`)},p6=q2(`iterator`),m6=!1;try{var gwe=0,h6={next:function(){return{done:!!gwe++}},return:function(){m6=!0}};h6[p6]=function(){return this},Array.from(h6,(function(){throw 2}))}catch{}var g6=function(e,t){if(!t&&!m6)return!1;var n=!1;try{var r={};r[p6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},_we=q2(`species`),_6=$.Array,vwe=function(e,t){return new(function(e){var t;return N4(e)&&(t=e.constructor,(V4(t)&&(t===_6||N4(t.prototype))||C2(t)&&(t=t[_we])===null)&&(t=void 0)),t===void 0?_6:t}(e))(t===0?0:t)},v6=g2([].push),y6=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=V2(c),h=y2(m),g=o6(l,u),_=T4(h),v=0,y=d||vwe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:v6(b,f)}else switch(e){case 4:return!1;case 7:v6(b,f)}return a?-1:r||i?i:b}},b6={forEach:y6(0),map:y6(1),filter:y6(2),some:y6(3),every:y6(4),find:y6(5),findIndex:y6(6),filterReject:y6(7)},x6=i6.getWeakData,ywe=_4.set,bwe=_4.getterFor,xwe=b6.find,Swe=b6.findIndex,Cwe=g2([].splice),wwe=0,S6=function(e){return e.frozen||=new C6},C6=function(){this.entries=[]},w6=function(e,t){return xwe(e.entries,(function(e){return e[0]===t}))};C6.prototype={get:function(e){var t=w6(this,e);if(t)return t[1]},has:function(e){return!!w6(this,e)},set:function(e,t){var n=w6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Swe(this.entries,(function(t){return t[0]===e}));return~t&&Cwe(this.entries,t,1),!!~t}};var T6,E6={getConstructor:function(e,t,n,r){var i=e((function(e,i){f6(e,a),ywe(e,{type:t,id:wwe++,frozen:void 0}),i!=null&&d6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=bwe(t),s=function(e,t,n){var r=o(e),i=x6(e4(t),!0);return!0===i?S6(r).set(t,n):i[r.id]=n,e};return Q3(a,{delete:function(e){var t=o(this);if(!C2(e))return!1;var n=x6(e);return!0===n?S6(t).delete(e):n&&H2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!C2(e))return!1;var n=x6(e);return!0===n?S6(t).has(e):n&&H2(n,t.id)}}),Q3(a,n?{get:function(e){var t=o(this);if(C2(e)){var n=x6(e);return!0===n?S6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},D6=_4.enforce,Twe=!$.ActiveXObject&&`ActiveXObject`in $,O6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ewe=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=$[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=g2(s[e]);x4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!C2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!C2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!C2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(j4(e,!S2(o)||!(i||s.forEach&&!o2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),i6.enable();else if(j4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=o2((function(){d.has(1)})),m=g6((function(e){new o(e)})),h=!i&&o2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){f6(e,s);var n=function(e,t,n){var r,i;return K3&&S2(r=t.constructor)&&r!==n&&C2(i=r.prototype)&&i!==n.prototype&&K3(e,i),e}(new o,e,c);return t!=null&&d6(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,M4({global:!0,forced:c!=o},l),G3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,O6,E6);if(l4&&Twe){T6=E6.getConstructor(O6,`WeakMap`,!0),i6.enable();var k6=Ewe.prototype,A6=g2(k6.delete),j6=g2(k6.has),M6=g2(k6.get),N6=g2(k6.set);Q3(k6,{delete:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,A6(this,e)||t.frozen.delete(e)}return A6(this,e)},has:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,j6(this,e)||t.frozen.has(e)}return j6(this,e)},get:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,j6(this,e)?M6(this,e):t.frozen.get(e)}return M6(this,e)},set:function(e,t){if(C2(e)&&!r6(e)){var n=D6(this);n.frozen||=new T6,j6(this,e)?N6(this,e,t):n.frozen.set(e,t)}else N6(this,e,t);return this}})}var P6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},F6=X2(`span`).classList,I6=F6&&F6.constructor&&F6.constructor.prototype,L6=I6===Object.prototype?void 0:I6,R6=q2(`iterator`),z6=q2(`toStringTag`),B6=Z3.values,V6=function(e,t){if(e){if(e[R6]!==B6)try{r4(e,R6,B6)}catch{e[R6]=B6}if(e[z6]||r4(e,z6,t),P6[t]){for(var n in Z3)if(e[n]!==Z3[n])try{r4(e,n,Z3[n])}catch{e[n]=Z3[n]}}}};for(var H6 in P6)V6($[H6]&&$[H6].prototype,H6);V6(L6,`DOMTokenList`);var U6=function(e,t){var n=[][e];return!!n&&o2((function(){n.call(null,t||function(){throw 1},1)}))},Dwe=b6.forEach,W6=U6(`forEach`)?[].forEach:function(e){return Dwe(this,e,arguments.length>1?arguments[1]:void 0)},G6=function(e){if(e&&e.forEach!==W6)try{r4(e,`forEach`,W6)}catch{e.forEach=W6}};for(var K6 in P6)P6[K6]&&G6($[K6]&&$[K6].prototype);G6(L6);var q6,J6,Y6,X6,Z6=$.Promise,Q6=q2(`species`),$6=/(?:ipad|iphone|ipod).*applewebkit/i.test(E2),e8=_2($.process)==`process`,t8=$.setImmediate,n8=$.clearImmediate,Owe=$.process,r8=$.Dispatch,kwe=$.Function,i8=$.MessageChannel,Awe=$.String,a8=0,o8={};try{q6=$.location}catch{}var s8=function(e){if(H2(o8,e)){var t=o8[e];delete o8[e],t()}},c8=function(e){return function(){s8(e)}},l8=function(e){s8(e.data)},u8=function(e){$.postMessage(Awe(e),q6.protocol+`//`+q6.host)};t8&&n8||(t8=function(e){var t=U4(arguments,1);return o8[++a8]=function(){g3(S2(e)?e:kwe(e),void 0,t)},J6(a8),a8},n8=function(e){delete o8[e]},e8?J6=function(e){Owe.nextTick(c8(e))}:r8&&r8.now?J6=function(e){r8.now(c8(e))}:i8&&!$6?(X6=(Y6=new i8).port2,Y6.port1.onmessage=l8,J6=o6(X6.postMessage,X6)):$.addEventListener&&S2($.postMessage)&&!$.importScripts&&q6&&q6.protocol!==`file:`&&!o2(u8)?(J6=u8,$.addEventListener(`message`,l8,!1)):J6=`onreadystatechange`in X2(`script`)?function(e){Z4.appendChild(X2(`script`)).onreadystatechange=function(){Z4.removeChild(this),s8(e)}}:function(e){setTimeout(c8(e),0)});var d8,f8,p8,m8,h8,g8,_8,v8,y8={set:t8,clear:n8},jwe=/ipad|iphone|ipod/i.test(E2)&&$.Pebble!==void 0,Mwe=/web0s(?!.*chrome)/i.test(E2),Nwe=$2.f,b8=y8.set,x8=$.MutationObserver||$.WebKitMutationObserver,S8=$.document,C8=$.process,w8=$.Promise,T8=Nwe($,`queueMicrotask`),E8=T8&&T8.value;E8||(d8=function(){var e,t;for(e8&&(e=C8.domain)&&e.exit();f8;){t=f8.fn,f8=f8.next;try{t()}catch(e){throw f8?m8():p8=void 0,e}}p8=void 0,e&&e.enter()},$6||e8||Mwe||!x8||!S8?!jwe&&w8&&w8.resolve?((_8=w8.resolve(void 0)).constructor=w8,v8=o6(_8.then,_8),m8=function(){v8(d8)}):e8?m8=function(){C8.nextTick(d8)}:(b8=o6(b8,$),m8=function(){b8(d8)}):(h8=!0,g8=S8.createTextNode(``),new x8(d8).observe(g8,{characterData:!0}),m8=function(){g8.data=h8=!h8}));var D8,O8,k8,A8,j8=E8||function(e){var t={fn:e,next:void 0};p8&&(p8.next=t),f8||(f8=t,m8()),p8=t},Pwe=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=I2(t),this.reject=I2(n)},M8={f:function(e){return new Pwe(e)}},N8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Fwe=typeof window==`object`,P8=y8.set,Iwe=q2(`species`),F8=`Promise`,I8=_4.getterFor(F8),Lwe=_4.set,Rwe=_4.getterFor(F8),L8=Z6&&Z6.prototype,R8=Z6,z8=L8,B8=$.TypeError,V8=$.document,H8=$.process,U8=M8.f,zwe=U8,Bwe=!!(V8&&V8.createEvent&&$.dispatchEvent),W8=S2($.PromiseRejectionEvent),G8=!1,K8=j4(F8,(function(){var e=s4(R8),t=e!==String(R8);if(!t&&j2===66)return!0;if(j2>=51&&/native code/.test(e))return!1;var n=new R8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Iwe]=r,!(G8=n.then((function(){}))instanceof r)||!t&&Fwe&&!W8})),Vwe=K8||!g6((function(e){R8.all(e).catch((function(){}))})),q8=function(e){var t;return!(!C2(e)||!S2(t=e.then))&&t},J8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;j8((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&Uwe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(B8(`Promise-chain cycle`)):(s=q8(o))?l2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Hwe(e)}))}},Y8=function(e,t,n){var r,i;Bwe?((r=V8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!W8&&(i=$[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=$.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Hwe=function(e){l2(P8,$,(function(){var t,n=e.facade,r=e.value;if(X8(e)&&(t=N8((function(){e8?H8.emit(`unhandledRejection`,r,n):Y8(`unhandledrejection`,n,r)})),e.rejection=e8||X8(e)?2:1,t.error))throw t.value}))},X8=function(e){return e.rejection!==1&&!e.parent},Uwe=function(e){l2(P8,$,(function(){var t=e.facade;e8?H8.emit(`rejectionHandled`,t):Y8(`rejectionhandled`,t,e.value)}))},Z8=function(e,t,n){return function(r){e(t,r,n)}},Q8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,J8(e,!0))},$8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B8(`Promise can't be resolved itself`);var r=q8(t);r?j8((function(){var n={done:!1};try{l2(r,t,Z8($8,n,e),Z8(Q8,n,e))}catch(t){Q8(n,t,e)}})):(e.value=t,e.state=1,J8(e,!1))}catch(t){Q8({done:!1},t,e)}}};if(K8&&(z8=(R8=function(e){f6(this,z8),I2(e),l2(D8,this);var t=I8(this);try{e(Z8($8,t),Z8(Q8,t))}catch(e){Q8(t,e)}}).prototype,(D8=function(e){Lwe(this,{type:F8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Q3(z8,{then:function(e,t){var n=Rwe(this),r=n.reactions,i=U8(v3(this,R8));return i.ok=!S2(e)||e,i.fail=S2(t)&&t,i.domain=e8?H8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&J8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),O8=function(){var e=new D8,t=I8(e);this.promise=e,this.resolve=Z8($8,t),this.reject=Z8(Q8,t)},M8.f=U8=function(e){return e===R8||e===k8?new O8(e):zwe(e)},S2(Z6)&&L8!==Object.prototype)){A8=L8.then,G8||(x4(L8,`then`,(function(e,t){var n=this;return new R8((function(e,t){l2(A8,n,e,t)})).then(e,t)}),{unsafe:!0}),x4(L8,`catch`,z8.catch,{unsafe:!0}));try{delete L8.constructor}catch{}K3&&K3(L8,z8)}M4({global:!0,wrap:!0,forced:K8},{Promise:R8}),G3(R8,F8,!1),function(e){var t=w2(`Promise`),n=n4.f;s2&&t&&!t[Q6]&&n(t,Q6,{configurable:!0,get:function(){return this}})}(),k8=w2(F8),M4({target:F8,stat:!0,forced:K8},{reject:function(e){var t=U8(this);return l2(t.reject,void 0,e),t.promise}}),M4({target:F8,stat:!0,forced:K8},{resolve:function(e){return function(e,t){if(e4(e),C2(t)&&t.constructor===e)return t;var n=M8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),M4({target:F8,stat:!0,forced:Vwe},{all:function(e){var t=this,n=U8(t),r=n.resolve,i=n.reject,a=N8((function(){var n=I2(t.resolve),a=[],o=0,s=1;d6(e,(function(e){var c=o++,l=!1;s++,l2(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=U8(t),r=n.reject,i=N8((function(){var i=I2(t.resolve);d6(e,(function(e){l2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Wwe=b4.PROPER,e5=RegExp.prototype,t5=e5.toString,Gwe=g2(q4),Kwe=o2((function(){return t5.call({source:`a`,flags:`b`})!=`/a/b`})),qwe=Wwe&&t5.name!=`toString`;(Kwe||qwe)&&x4(RegExp.prototype,`toString`,(function(){var e=e4(this),t=K4(e.source),n=e.flags;return`/`+t+`/`+K4(n===void 0&&T2(e5,e)&&!(`flags`in e5)?Gwe(e):n)}),{unsafe:!0});var Jwe=b4.EXISTS,Ywe=n4.f,n5=Function.prototype,Xwe=g2(n5.toString),r5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Zwe=g2(r5.exec);s2&&!Jwe&&Ywe(n5,`name`,{configurable:!0,get:function(){try{return Zwe(r5,Xwe(this))[1]}catch{return``}}});var i5=new WeakMap;function a5(e){return e.getMenuConfig(`uploadImage`)}function Qwe(e,t){return k3(this,void 0,void 0,(function(){return A3(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var i=r.result;if(i){var a=i.toString(),o=a.indexOf(`data:image`)===0?``:a;HL(e,a,t.name,o),n(`ok`)}}}))]}))}))}function $we(e,t){return k3(this,void 0,void 0,(function(){var n,r,i,a;return A3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=i5.get(e);if(t!=null)return t;var n=a5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=Jj(O3(O3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return HL(e,t,n,r)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=n===void 0?``:n,i=t.alt,a=i===void 0?``:i,o=t.href;HL(e,r,a,o===void 0?``:o)}));else{var u=l.url,d=u===void 0?``:u,f=l.alt,p=f===void 0?``:f,m=l.href;HL(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),i5.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}function o5(e,t){var n,r;return k3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return A3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=a5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=KCe(i),p.label=2;case 2:return[4,c.next()];case 3:return(l=p.sent()).done?[3,10]:(u=l.value,d=u.size,s&&d<=s?[4,Qwe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return HL(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,$we(e,u)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=c.return)?[4,r.call(c)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var eTe=g2([].join),tTe=y2!=Object,nTe=U6(`join`,`,`);M4({target:`Array`,proto:!0,forced:tTe||!nTe},{join:function(e){return eTe(x2(this),e===void 0?`,`:e)}}),Jv&&(K.fn.append=Jv),Fv&&(K.fn.on=Fv),ey&&(K.fn.remove=ey),Pv&&(K.fn.val=Pv),iy&&(K.fn.click=iy),Bv&&(K.fn.hide=Bv);var rTe=function(){function e(){this.title=Z(`uploadImgModule.uploadImage`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return UL(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadImage`)},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n,r){return HL(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=K(`body`),c=K(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;o5(e,t)}))}},e}(),iTe={menus:[{key:`uploadImage`,factory:function(){return new rTe},config:{server:``,fieldName:`wangeditor-uploaded-image`,maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:[`image/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+`' upload error`,n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(UL(n))t(r);else if(r.getData(`text/plain`))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some((function(e){return function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e.type.split(`/`),1)[0]===`image`}))?o5(e,i):t(r)}},n}};wM(`en`,{highLightModule:{selectLang:`Language`}}),wM(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var s5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function c5(e){var t={exports:{}};return e(t,t.exports),t.exports}var l5,u5,d5=function(e){return e&&e.Math==Math&&e},f5=d5(typeof globalThis==`object`&&globalThis)||d5(typeof window==`object`&&window)||d5(typeof self==`object`&&self)||d5(typeof s5==`object`&&s5)||function(){return this}()||Function(`return this`)(),aTe=Object.defineProperty,p5=function(e,t){try{aTe(f5,e,{value:t,configurable:!0,writable:!0})}catch{f5[e]=t}return t},m5=f5[`__core-js_shared__`]||p5(`__core-js_shared__`,{}),h5=c5((function(e){(e.exports=function(e,t){return m5[e]||(m5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),g5=Function.prototype,_5=g5.bind,v5=g5.call,oTe=_5&&_5.bind(v5),y5=_5?function(e){return e&&oTe(v5,e)}:function(e){return e&&function(){return v5.apply(e,arguments)}},sTe=f5.TypeError,b5=function(e){if(e==null)throw sTe(`Can't call method on `+e);return e},cTe=f5.Object,x5=function(e){return cTe(b5(e))},lTe=y5({}.hasOwnProperty),S5=Object.hasOwn||function(e,t){return lTe(x5(e),t)},uTe=0,dTe=Math.random(),fTe=y5(1 .toString),C5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+fTe(++uTe+dTe,36)},w5=function(e){return typeof e==`function`},pTe=function(e){return w5(e)?e:void 0},T5=function(e,t){return arguments.length<2?pTe(f5[e]):f5[e]&&f5[e][t]},E5=T5(`navigator`,`userAgent`)||``,D5=f5.process,O5=f5.Deno,k5=D5&&D5.versions||O5&&O5.version,A5=k5&&k5.v8;A5&&(u5=(l5=A5.split(`.`))[0]>0&&l5[0]<4?1:+(l5[0]+l5[1])),!u5&&E5&&(!(l5=E5.match(/Edge\/(\d+)/))||l5[1]>=74)&&(l5=E5.match(/Chrome\/(\d+)/))&&(u5=+l5[1]);var j5=u5,M5=function(e){try{return!!e()}catch{return!0}},N5=!!Object.getOwnPropertySymbols&&!M5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j5&&j5<41})),P5=N5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,F5=h5(`wks`),I5=f5.Symbol,L5=I5&&I5.for,mTe=P5?I5:I5&&I5.withoutSetter||C5,R5=function(e){if(!S5(F5,e)||!N5&&typeof F5[e]!=`string`){var t=`Symbol.`+e;N5&&S5(I5,e)?F5[e]=I5[e]:F5[e]=P5&&L5?L5(t):mTe(t)}return F5[e]},z5={};z5[R5(`toStringTag`)]=`z`;var B5=String(z5)===`[object z]`,V5=!M5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),H5=function(e){return typeof e==`object`?e!==null:w5(e)},U5=f5.document,hTe=H5(U5)&&H5(U5.createElement),W5=function(e){return hTe?U5.createElement(e):{}},G5=!V5&&!M5((function(){return Object.defineProperty(W5(`div`),`a`,{get:function(){return 7}}).a!=7})),gTe=f5.String,_Te=f5.TypeError,K5=function(e){if(H5(e))return e;throw _Te(gTe(e)+` is not an object`)},q5=Function.prototype.call,J5=q5.bind?q5.bind(q5):function(){return q5.apply(q5,arguments)},Y5=y5({}.isPrototypeOf),vTe=f5.Object,X5=P5?function(e){return typeof e==`symbol`}:function(e){var t=T5(`Symbol`);return w5(t)&&Y5(t.prototype,vTe(e))},yTe=f5.String,Z5=function(e){try{return yTe(e)}catch{return`Object`}},bTe=f5.TypeError,Q5=function(e){if(w5(e))return e;throw bTe(Z5(e)+` is not a function`)},$5=function(e,t){var n=e[t];return n==null?void 0:Q5(n)},xTe=f5.TypeError,STe=f5.TypeError,CTe=R5(`toPrimitive`),e7=function(e){var t=function(e,t){if(!H5(e)||X5(e))return e;var n,r=$5(e,CTe);if(r){if(t===void 0&&(t=`default`),n=J5(r,e,t),!H5(n)||X5(n))return n;throw STe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&w5(n=e.toString)&&!H5(r=J5(n,e))||w5(n=e.valueOf)&&!H5(r=J5(n,e))||t!==`string`&&w5(n=e.toString)&&!H5(r=J5(n,e)))return r;throw xTe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return X5(t)?t:t+``},wTe=f5.TypeError,t7=Object.defineProperty,n7={f:V5?t7:function(e,t,n){if(K5(e),t=e7(t),K5(n),G5)try{return t7(e,t,n)}catch{}if(`get`in n||`set`in n)throw wTe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},r7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i7=V5?function(e,t,n){return n7.f(e,t,r7(1,n))}:function(e,t,n){return e[t]=n,e},TTe=y5(Function.toString);w5(m5.inspectSource)||(m5.inspectSource=function(e){return TTe(e)});var a7,o7,s7,c7=m5.inspectSource,l7=f5.WeakMap,ETe=w5(l7)&&/native code/.test(c7(l7)),u7=h5(`keys`),d7=function(e){return u7[e]||(u7[e]=C5(e))},f7={},p7=f5.TypeError,DTe=f5.WeakMap;if(ETe||m5.state){var m7=m5.state||=new DTe,OTe=y5(m7.get),h7=y5(m7.has),kTe=y5(m7.set);a7=function(e,t){if(h7(m7,e))throw new p7(`Object already initialized`);return t.facade=e,kTe(m7,e,t),t},o7=function(e){return OTe(m7,e)||{}},s7=function(e){return h7(m7,e)}}else{var g7=d7(`state`);f7[g7]=!0,a7=function(e,t){if(S5(e,g7))throw new p7(`Object already initialized`);return t.facade=e,i7(e,g7,t),t},o7=function(e){return S5(e,g7)?e[g7]:{}},s7=function(e){return S5(e,g7)}}var _7={set:a7,get:o7,has:s7,enforce:function(e){return s7(e)?o7(e):a7(e,{})},getterFor:function(e){return function(t){var n;if(!H5(t)||(n=o7(t)).type!==e)throw p7(`Incompatible receiver, `+e+` required`);return n}}},v7=Function.prototype,ATe=V5&&Object.getOwnPropertyDescriptor,y7=S5(v7,`name`),b7={EXISTS:y7,PROPER:y7&&function(){}.name===`something`,CONFIGURABLE:y7&&(!V5||V5&&ATe(v7,`name`).configurable)},x7=c5((function(e){var t=b7.CONFIGURABLE,n=_7.get,r=_7.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;w5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!S5(a,`name`)||t&&a.name!==d)&&i7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===f5?l?e[n]=a:p5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:i7(e,n,a))})(Function.prototype,`toString`,(function(){return w5(this)&&n(this).source||c7(this)}))})),jTe=y5({}.toString),MTe=y5(``.slice),S7=function(e){return MTe(jTe(e),8,-1)},NTe=R5(`toStringTag`),PTe=f5.Object,FTe=S7(function(){return arguments}())==`Arguments`,C7=B5?S7:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=PTe(e),NTe))==`string`?n:FTe?S7(t):(r=S7(t))==`Object`&&w5(t.callee)?`Arguments`:r},ITe=B5?{}.toString:function(){return`[object `+C7(this)+`]`};B5||x7(Object.prototype,`toString`,ITe,{unsafe:!0});var w7,T7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},E7=W5(`span`).classList,D7=E7&&E7.constructor&&E7.constructor.prototype,LTe=D7===Object.prototype?void 0:D7,O7=y5(y5.bind),k7=f5.Object,RTe=y5(``.split),A7=M5((function(){return!k7(`z`).propertyIsEnumerable(0)}))?function(e){return S7(e)==`String`?RTe(e,``):k7(e)}:k7,zTe=Math.ceil,BTe=Math.floor,j7=function(e){var t=+e;return t!=t||t===0?0:(t>0?BTe:zTe)(t)},VTe=Math.min,M7=function(e){return e>0?VTe(j7(e),9007199254740991):0},N7=function(e){return M7(e.length)},P7=Array.isArray||function(e){return S7(e)==`Array`},F7=function(){},HTe=[],I7=T5(`Reflect`,`construct`),L7=/^\s*(?:class|function)\b/,UTe=y5(L7.exec),WTe=!L7.exec(F7),R7=function(e){if(!w5(e))return!1;try{return I7(F7,HTe,e),!0}catch{return!1}},z7=!I7||M5((function(){var e;return R7(R7.call)||!R7(Object)||!R7((function(){e=!0}))||e}))?function(e){if(!w5(e))return!1;switch(C7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return WTe||!!UTe(L7,c7(e))}:R7,GTe=R5(`species`),B7=f5.Array,KTe=function(e,t){return new(function(e){var t;return P7(e)&&(t=e.constructor,(z7(t)&&(t===B7||P7(t.prototype))||H5(t)&&(t=t[GTe])===null)&&(t=void 0)),t===void 0?B7:t}(e))(t===0?0:t)},V7=y5([].push),H7=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=x5(c),h=A7(m),g=function(e,t){return Q5(e),t===void 0?e:O7?O7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=N7(h),v=0,y=d||KTe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:V7(b,f)}else switch(e){case 4:return!1;case 7:V7(b,f)}return a?-1:r||i?i:b}},qTe=[H7(0),H7(1),H7(2),H7(3),H7(4),H7(5),H7(6),H7(7)][0],U7=(w7=[].forEach)&&M5((function(){w7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return qTe(this,e,arguments.length>1?arguments[1]:void 0)},W7=function(e){if(e&&e.forEach!==U7)try{i7(e,`forEach`,U7)}catch{e.forEach=U7}};for(var G7 in T7)T7[G7]&&W7(f5[G7]&&f5[G7].prototype);W7(LTe);var K7={}.propertyIsEnumerable,q7=Object.getOwnPropertyDescriptor,J7={f:q7&&!K7.call({1:2},1)?function(e){var t=q7(this,e);return!!t&&t.enumerable}:K7},Y7=function(e){return A7(b5(e))},X7=Object.getOwnPropertyDescriptor,Z7={f:V5?X7:function(e,t){if(e=Y7(e),t=e7(t),G5)try{return X7(e,t)}catch{}if(S5(e,t))return r7(!J5(J7.f,e,t),e[t])}},JTe=Math.max,YTe=Math.min,Q7=function(e,t){var n=j7(e);return n<0?JTe(n+t,0):YTe(n,t)},XTe=function(e){return function(t,n,r){var i,a=Y7(t),o=N7(a),s=Q7(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),$7=y5([].push),e9=function(e,t){var n,r=Y7(e),i=0,a=[];for(n in r)!S5(f7,n)&&S5(r,n)&&$7(a,n);for(;t.length>i;)S5(r,n=t[i++])&&(~XTe(a,n)||$7(a,n));return a},t9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ZTe=t9.concat(`length`,`prototype`),QTe={f:Object.getOwnPropertyNames||function(e){return e9(e,ZTe)}},n9={f:Object.getOwnPropertySymbols},$Te=y5([].concat),eEe=T5(`Reflect`,`ownKeys`)||function(e){var t=QTe.f(K5(e)),n=n9.f;return n?$Te(t,n(e)):t},tEe=function(e,t){for(var n=eEe(t),r=n7.f,i=Z7.f,a=0;a<n.length;a++){var o=n[a];S5(e,o)||r(e,o,i(t,o))}},nEe=/#|\.prototype\./,r9=function(e,t){var n=iEe[rEe(e)];return n==oEe||n!=aEe&&(w5(t)?M5(t):!!t)},rEe=r9.normalize=function(e){return String(e).replace(nEe,`.`).toLowerCase()},iEe=r9.data={},aEe=r9.NATIVE=`N`,oEe=r9.POLYFILL=`P`,sEe=r9,cEe=Z7.f,i9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?f5:l?f5[s]||p5(s,{}):(f5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=cEe(n,r))&&o.value:n[r],!sEe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;tEe(a,i)}(e.sham||i&&i.sham)&&i7(a,`sham`,!0),x7(n,r,a,e)}},a9=Object.keys||function(e){return e9(e,t9)},o9=Object.assign,s9=Object.defineProperty,lEe=y5([].concat),c9=!o9||M5((function(){if(V5&&o9({b:1},o9(s9({},`a`,{enumerable:!0,get:function(){s9(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),o9({},e)[n]!=7||a9(o9({},t)).join(``)!=r}))?function(e,t){for(var n=x5(e),r=arguments.length,i=1,a=n9.f,o=J7.f;r>i;)for(var s,c=A7(arguments[i++]),l=a?lEe(a9(c),a(c)):a9(c),u=l.length,d=0;u>d;)s=l[d++],V5&&!J5(o,c,s)||(n[s]=c[s]);return n}:o9;i9({target:`Object`,stat:!0,forced:Object.assign!==c9},{assign:c9});var l9=c5((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++n}),e.__id},clone:function e(t,n){var r,a;switch(n||={},i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,`none`])[1].toLowerCase():`none`},currentScript:function(){if(typeof document>`u`)return null;if(`currentScript`in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r||=i.languages)[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,(function(t,n){n===l&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l!==`Object`||a[o(c)]?l!==`Array`||a[o(c)]||(a[o(c)]=!0,e(c,n,s,a)):(a[o(c)]=!0,e(c,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(n,r,a){var o=i.util.getLanguage(n),s=i.languages[o];n.className=n.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o;var c=n.parentElement;c&&c.nodeName.toLowerCase()===`pre`&&(c.className=c.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o);var l={element:n,language:o,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,i.hooks.run(`before-insert`,l),l.element.innerHTML=l.highlightedCode,i.hooks.run(`after-highlight`,l),i.hooks.run(`complete`,l),a&&a.call(l.element)}if(i.hooks.run(`before-sanity-check`,l),(c=l.element.parentElement)&&c.nodeName.toLowerCase()===`pre`&&!c.hasAttribute(`tabindex`)&&c.setAttribute(`tabindex`,`0`),!l.code)return i.hooks.run(`complete`,l),void(a&&a.call(l.element));if(i.hooks.run(`before-highlight`,l),l.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language));else u(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run(`before-tokenize`,r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||``).length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T,E=1;if(v){if(!(T=o(x,C,e,_)))break;var D=T.index,O=T.index+T[0].length,k=C;for(k+=S.value.length;D>=k;)k+=(S=S.next).value.length;if(C=k-=S.value.length,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(k<O||typeof A.value==`string`);A=A.next)E++,k+=A.value.length;E--,w=e.slice(C,k),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var j=T[0],M=w.slice(0,D),ee=w.slice(D+j.length),te=C+w.length;d&&te>d.reach&&(d.reach=te);var ne=S.prev;if(M&&(ne=l(t,ne,M),C+=M.length),u(t,ne,E),S=l(t,ne,new a(f,g?i.tokenize(j,g):j,y,j)),ee&&l(t,S,ee),E>1){var re={cause:f+`,`+m,reach:te};s(e,t,n,S.prev,C,re),d&&re.reach>d.reach&&(d.reach=re.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach((function(t){r+=e(t,n)})),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()}),!1)),i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute(`data-manual`)&&(i.manual=!0)),!i.manual){var p=document.readyState;p===`loading`||p===`interactive`&&d&&d.defer?document.addEventListener(`DOMContentLoaded`,f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});e.exports&&=t,s5!==void 0&&(s5.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside[`attr-value`].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside[`internal-subset`].inside=t.languages.markup,t.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(t.languages.markup.tag,`addInlined`,{value:function(e,n){var r={};r[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(t.languages.markup.tag,`addAttribute`,{value:function(e,n){t.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,`language-`+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend(`markup`,{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend(`clike`,{"class-name":[t.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript[`class-name`][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined(`script`,`javascript`),t.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<`u`){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},n=`data-src-status`,r=`pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])`,i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add(`before-highlightall`,(function(e){e.selector+=`, `+r})),t.hooks.add(`before-sanity-check`,(function(i){var a=i.element;if(a.matches(r)){i.code=``,a.setAttribute(n,`loading`);var s=a.appendChild(document.createElement(`CODE`));s.textContent=`Loading…`;var c=a.getAttribute(`data-src`),l=i.language;if(l===`none`){var u=(/\.(\w+)$/.exec(c)||[,`none`])[1];l=e[u]||u}o(s,l),o(a,l);var d=t.plugins.autoloader;d&&d.loadLanguages(l);var f=new XMLHttpRequest;f.open(`GET`,c,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?(a.setAttribute(n,`loaded`),s.textContent=f.responseText,t.highlightElement(s)):(a.setAttribute(n,`failed`),f.status>=400?s.textContent=`✖ Error `+f.status+` while fetching file: `+f.statusText:s.textContent=`✖ Error: File does not exist or is empty`))},f.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,i=(e||document).querySelectorAll(r),a=0;n=i[a++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(e,t){var n=e.className;n=n.replace(i,` `)+` language-`+t,e.className=n.replace(/\s+/g,` `).trim()}}()}));(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx},alias:`language-javascript`}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,(function(e){e.language!==`jsx`&&e.language!==`tsx`||s(e.tokens)}))})(Prism),function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go[`class-name`],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,(function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add(`after-tokenize`,(function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)}))}(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{"class-name":[r,{pattern:RegExp(n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:module|import)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,(function(){return n}))+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return`(?:`+t[+n]+`)`}))}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return`(?:`+e+`)`}));return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i=`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,a=`class enum interface record struct`,o=`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,s=`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`;function c(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var l=c(a),u=RegExp(c(i+` `+a+` `+o+` `+s)),d=c(a+` `+o+` `+s),f=c(i+` `+a+` `+s),p=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),m=r(`\\((?:[^()]|<<self>>)*\\)`,2),h=`@?\\b[A-Za-z_]\\w*\\b`,g=t(`<<0>>(?:\\s*<<1>>)?`,[h,p]),_=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[d,g]),v=`\\[\\s*(?:,\\s*)*\\]`,y=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[_,v]),b=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[p,m,v])]),_,v]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},S=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,C=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,w=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[w]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:`character`}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[h,b]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[h]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[l,g]),lookbehind:!0,inside:x},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\bwhere\\s+)<<0>>`,[h]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[y]),lookbehind:!0,inside:x},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[b,f,h]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[h]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[m]),lookbehind:!0,alias:`class-name`,inside:x},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[b,_]),inside:x,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[b]),lookbehind:!0,inside:x,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[h,p]),inside:{function:n(`^<<0>>`,[h]),generic:{pattern:RegExp(p),alias:`class-name`,inside:x}}},"type-list":{pattern:n(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[l,g,h,b,u.source,m,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(b),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var T=C+`|`+S,E=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[T]),D=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),O=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,k=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[_,D]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[O,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[O]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[D]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var A=`:[^}\\r\\n]+`,j=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),M=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[j,A]),ee=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),te=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[ee,A]);function ne(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,A]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:n(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[M]),lookbehind:!0,greedy:!0,inside:ne(M,j)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[te]),lookbehind:!0,greedy:!0,inside:ne(te,ee)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages[`visual-basic`]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:`comment`,greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:`builtin`},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages[`visual-basic`],Prism.languages.vba=Prism.languages[`visual-basic`],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:`tag`},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore(`ruby`,`keyword`,{regex:[{pattern:RegExp(`%r(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)[egimnosux]{0,6}`),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore(`ruby`,`number`,{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(`%[qQiIwWxs]?(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)`),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:`symbol`,inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:`symbol`,inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,(function(){return r})),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach((function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add(`after-tokenize`,(function(e){e.language!==`markdown`&&e.language!==`md`||function e(t){if(t&&typeof t!=`string`)for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i.type===`code`){var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`),c=`language-`+(s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase());o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else e(i.content)}}(e.tokens)})),e.hooks.add(`wrap`,(function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){return e.replace(o,``).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return(t=t.toLowerCase())[0]===`#`?(n=t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e}))}(t.content),u,n);else if(n&&n!==`none`&&e.plugins.autoloader){var d=`md-`+new Date().valueOf()+`-`+Math.floor(0x2386f26fc10000*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend(`clike`,{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore(`groovy`,`string`,{shebang:{pattern:/#!.+/,alias:`comment`}}),Prism.languages.insertBefore(`groovy`,`punctuation`,{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore(`groovy`,`function`,{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:`punctuation`}}),Prism.hooks.add(`wrap`,(function(e){if(e.language===`groovy`&&e.type===`string`){var t=e.content[0];if(t!=`'`){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t===`$`&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,`<`).replace(/&amp;/g,`&`),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t===`/`?`regex`:`gstring`)}}}));var uEe=`comment.prolog.doctype.cdata.punctuation.namespace.property.tag.boolean.number.constant.symbol.deleted.selector.attr-name.string.builtin.inserted.operator.entity.url.string.atrule.attr-value.keyword.function.class-name.regex.important.variable.bold.italic.entity.char`.split(`.`);function u9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+u9(t)}),0)}var d9,dEe=f5.String,f9=function(e){if(C7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return dEe(e)},p9=function(){var e=K5(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},m9=f5.RegExp,h9=M5((function(){var e=m9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),fEe=h9||M5((function(){return!m9(`a`,`y`).sticky})),g9={BROKEN_CARET:h9||M5((function(){var e=m9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:fEe,UNSUPPORTED_Y:h9},pEe=V5?Object.defineProperties:function(e,t){K5(e);for(var n,r=Y7(t),i=a9(t),a=i.length,o=0;a>o;)n7.f(e,n=i[o++],r[n]);return e},mEe=T5(`document`,`documentElement`),_9=d7(`IE_PROTO`),v9=function(){},y9=function(e){return`<script>`+e+`<\/script>`},b9=function(e){e.write(y9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},x9=function(){try{d9=new ActiveXObject(`htmlfile`)}catch{}var e,t;x9=typeof document<`u`?document.domain&&d9?b9(d9):((t=W5(`iframe`)).style.display=`none`,mEe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(y9(`document.F=Object`)),e.close(),e.F):b9(d9);for(var n=t9.length;n--;)delete x9.prototype[t9[n]];return x9()};f7[_9]=!0;var S9,C9,hEe=Object.create||function(e,t){var n;return e===null?n=x9():(v9.prototype=K5(e),n=new v9,v9.prototype=null,n[_9]=e),t===void 0?n:pEe(n,t)},gEe=f5.RegExp,_Ee=M5((function(){var e=gEe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),vEe=f5.RegExp,yEe=M5((function(){var e=vEe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),bEe=_7.get,xEe=h5(`native-string-replace`,String.prototype.replace),w9=RegExp.prototype.exec,T9=w9,SEe=y5(``.charAt),CEe=y5(``.indexOf),wEe=y5(``.replace),E9=y5(``.slice),D9=(C9=/b*/g,J5(w9,S9=/a/,`a`),J5(w9,C9,`a`),S9.lastIndex!==0||C9.lastIndex!==0),O9=g9.BROKEN_CARET,k9=/()??/.exec(``)[1]!==void 0;(D9||k9||O9||_Ee||yEe)&&(T9=function(e){var t,n,r,i,a,o,s,c=this,l=bEe(c),u=f9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=J5(T9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=O9&&c.sticky,m=J5(p9,c),h=c.source,g=0,_=u;if(p&&(m=wEe(m,`y`,``),CEe(m,`g`)===-1&&(m+=`g`),_=E9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&SEe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),k9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),D9&&(r=c.lastIndex),i=J5(w9,p?n:c,_),p?i?(i.input=E9(i.input,g),i[0]=E9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:D9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),k9&&i&&i.length>1&&J5(xEe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=hEe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var A9=T9;i9({target:`RegExp`,proto:!0,forced:/./.exec!==A9},{exec:A9});var j9=Function.prototype,M9=j9.apply,TEe=j9.bind,N9=j9.call,EEe=typeof Reflect==`object`&&Reflect.apply||(TEe?N9.bind(M9):function(){return N9.apply(M9,arguments)}),DEe=R5(`species`),P9=RegExp.prototype,OEe=R5(`match`),kEe=f5.TypeError,AEe=R5(`species`),jEe=y5(``.charAt),F9=y5(``.charCodeAt),MEe=y5(``.slice),NEe=function(e){return function(t,n){var r,i,a=f9(b5(t)),o=j7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=F9(a,o))<55296||r>56319||o+1===s||(i=F9(a,o+1))<56320||i>57343?e?jEe(a,o):r:e?MEe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),PEe=function(e,t,n){return t+(n?NEe(e,t).length:1)},FEe=f5.Array,IEe=Math.max,I9=function(e,t,n){for(var r,i,a,o,s=N7(e),c=Q7(t,s),l=Q7(n===void 0?s:n,s),u=FEe(IEe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=e7(i))in r?n7.f(r,o,r7(0,a)):r[o]=a;return u.length=d,u},LEe=f5.TypeError,L9=function(e,t){var n=e.exec;if(w5(n)){var r=J5(n,e,t);return r!==null&&K5(r),r}if(S7(e)===`RegExp`)return J5(A9,e,t);throw LEe(`RegExp#exec called on incompatible receiver`)},R9=g9.UNSUPPORTED_Y,REe=Math.min,z9=[].push,zEe=y5(/./.exec),B9=y5(z9),V9=y5(``.slice);(function(e,t,n,r){var i=R5(e),a=!M5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!M5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[DEe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=y5(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=f9(b5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!H5(r=e)||!((i=r[OEe])===void 0?S7(r)==`RegExp`:i))return J5(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=J5(A9,p,a))&&!((c=p.lastIndex)>f&&(B9(u,V9(a,f,s.index)),s.length>1&&s.index<a.length&&EEe(z9,u,I9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&zEe(p,``)||B9(u,``):B9(u,V9(a,f)),u.length>o?I9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:J5(t,this,e,n)}:t,[function(t,n){var i=b5(this),a=t==null?void 0:$5(t,e);return a?J5(a,t,i,n):J5(r,f9(i),t,n)},function(e,i){var a=K5(this),o=f9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=K5(e).constructor;return r===void 0||(n=K5(r)[AEe])==null?t:function(e){if(z7(e))return e;throw kEe(Z5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(R9?`g`:`y`),d=new c(R9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return L9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=R9?0:m;var g,_=L9(d,R9?V9(o,m):o);if(_===null||(g=REe(M7(d.lastIndex+(R9?m:0)),o.length))===p)m=PEe(o,m,l);else{if(B9(h,V9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(B9(h,_[v]),h.length===f)return h;m=p=g}}return B9(h,V9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=y5(e),c=t.exec;return c===A9||c===P9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));x7(String.prototype,e,c[0]),x7(P9,i,c[1])}r&&i7(P9[i],`sham`,!0)})(`split`,0,!!M5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),R9),i9({global:!0},{globalThis:f5}),jv&&(K.fn.attr=jv);var BEe=b7.PROPER,H9=RegExp.prototype,U9=H9.toString,VEe=y5(p9),HEe=M5((function(){return U9.call({source:`a`,flags:`b`})!=`/a/b`})),UEe=BEe&&U9.name!=`toString`;(HEe||UEe)&&x7(RegExp.prototype,`toString`,(function(){var e=K5(this),t=f9(e.source),n=e.flags;return`/`+t+`/`+f9(n===void 0&&Y5(H9,e)&&!(`flags`in H9)?VEe(e):n)}),{unsafe:!0});var WEe=function(){function e(){this.title=Z(`highLightModule.selectLang`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>`,this.tag=`select`,this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(`codeSelectLang`).codeLangs,r=n===void 0?[]:n;t.push({text:`plain text`,value:``}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(t==null||!z.isElement(t))return``;var n=t.language.toString(),r=e.getMenuConfig(`codeSelectLang`).codeLangs;return(r===void 0?[]:r).some((function(e){return e.value===n}))?n:``},e.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(this.getSelectCodeElem(e)!=null){var n={language:t.toString()};G.setNodes(e,n,{match:function(e){return X.checkNodeType(e,`code`)}})}},e.prototype.getSelectCodeElem=function(e){var t=X.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=X.getParentNode(e,t);return z.isElement(n)&&n.type===`pre`?t:null},e}(),GEe={renderStyle:function(e,t){var n=e,r=t,i=``;return uEe.forEach((function(e){n[e]&&(i=e)})),i&&function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,{className:t})}(r,i=`token `+i),r},parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t)||X.getNodeType(t)!==`code`)return t;var i=t,a=r.attr(`class`)||``;return a.indexOf(`language-`)===0?i.language=a.split(`-`)[1]||``:i.language=a.toLowerCase(),i},menus:[{key:`codeSelectLang`,factory:function(){return new WEe},config:{codeLangs:[{text:`CSS`,value:`css`},{text:`HTML`,value:`html`},{text:`XML`,value:`xml`},{text:`Javascript`,value:`javascript`},{text:`Typescript`,value:`typescript`},{text:`JSX`,value:`jsx`},{text:`Go`,value:`go`},{text:`PHP`,value:`php`},{text:`C`,value:`c`},{text:`Python`,value:`python`},{text:`Java`,value:`java`},{text:`C++`,value:`cpp`},{text:`C#`,value:`csharp`},{text:`Visual Basic`,value:`visual-basic`},{text:`SQL`,value:`sql`},{text:`Ruby`,value:`ruby`},{text:`Swift`,value:`swift`},{text:`Bash`,value:`bash`},{text:`Lua`,value:`lua`},{text:`Groovy`,value:`groovy`},{text:`Markdown`,value:`markdown`}]}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){var n=e.language,r=n===void 0?``:n;return`<code `+(r?`class="language-`+r+`"`:``)+`>`+t+`</code>`}}]},KEe=/"/g,qEe=y5(``.replace);i9({target:`String`,proto:!0,forced:M5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=f9(b5(this)),r=`<a`,(r+=` name="`+qEe(f9(t),KEe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var W9=function(e){var t,n,r,i=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e,2),a=i[0],o=i[1],s=[],c=function(e){if(!W.isText(e))return null;var t=X.getParentNode(null,e);if(t&&X.getNodeType(t)===`code`){var n=X.getParentNode(null,t);if(n&&X.getNodeType(n)===`pre`)return t}return null}(a);if(c==null)return s;var l=c.language,u=l===void 0?``:l;if(!u)return s;var d=function(e,t){if(!t)return[];var n=l9.languages[t];return n?l9.tokenize(e.text,n):[]}(a,u),f=0;try{for(var p=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),m=p.next();!m.done;m=p.next()){var h=m.value,g=f+u9(h);typeof h!=`string`&&s.push(((r={})[h.type]=!0,r.anchor={path:o,offset:f},r.focus={path:o,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},G9=function(){return G9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G9.apply(this,arguments)},K9=function(){function e(){throw Error(`不能实例化
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=G9(G9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=G9(G9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=G9(G9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=G9(G9({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){(function(e,t){var n=e.key,r=e.factory,i=e.config,a=GE(GE({},i),t||{});if(bO[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);bO[n]=r,function(e,t){t!=null&&(yO[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;mj[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){pj.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;EO[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){TO.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){Qk.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;eA[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){$k.push(e)})(e)},e.registerModule=function(e){q9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function q9(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return K9.registerMenu(e)})),n&&n.forEach((function(e){return K9.registerRenderElem(e)})),r&&K9.registerRenderStyle(r),i&&i.forEach((function(e){return K9.registerElemToHtml(e)})),a&&K9.registerStyleToHtml(a),o&&o.forEach((function(e){return K9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return K9.registerParseElemHtml(e)})),c&&K9.registerParseStyleHtml(c),l&&K9.registerPlugin(l)}gV.forEach((function(e){return q9(e)})),q9(zge),q9(cye),q9(hSe),q9(iTe),q9(GEe);var J9=`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,Y9={link:{menuKeys:[`editLink`,`unLink`,`viewLink`]},image:{menuKeys:[`imageWidth30`,`imageWidth50`,`imageWidth100`,`editImage`,`viewImageLink`,`deleteImage`]},pre:{menuKeys:[`enter`,`codeBlock`,`codeSelectLang`]},table:{menuKeys:[`enter`,`tableHeader`,`tableFullWidth`,`insertTableRow`,`deleteTableRow`,`insertTableCol`,`deleteTableCol`,`deleteTable`]},divider:{menuKeys:[`enter`]},video:{menuKeys:[`enter`,`editVideoSize`]}},JEe={hoverbarKeys:G9(G9({},Y9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};K9.setEditorConfig(G9(G9({},JEe),{decorate:W9}));var YEe={hoverbarKeys:Y9};K9.setSimpleEditorConfig(G9(G9({},YEe),{decorate:W9}));var XEe={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:Z(`editor.more`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>`,menuKeys:[`through`,`code`,`sup`,`sub`,`clearStyle`]},`color`,`bgColor`,`|`,`fontSize`,`fontFamily`,`lineHeight`,`|`,`bulletedList`,`numberedList`,`todo`,{key:`group-justify`,title:Z(`editor.justify`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,menuKeys:[`justifyLeft`,`justifyRight`,`justifyCenter`,`justifyJustify`]},{key:`group-indent`,title:Z(`editor.indent`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,menuKeys:[`indent`,`delIndent`]},`|`,`emotion`,`insertLink`,{key:`group-image`,title:Z(`editor.image`),iconSvg:J9,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:Z(`editor.video`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,menuKeys:[`insertVideo`,`uploadVideo`]},`insertTable`,`codeBlock`,`divider`,`|`,`undo`,`redo`,`|`,`fullScreen`]};K9.setToolbarConfig(XEe);var ZEe={toolbarKeys:[`blockquote`,`header1`,`header2`,`header3`,`|`,`bold`,`underline`,`italic`,`through`,`color`,`bgColor`,`clearStyle`,`|`,`bulletedList`,`numberedList`,`todo`,`justifyLeft`,`justifyRight`,`justifyCenter`,`|`,`insertLink`,{key:`group-image`,title:Z(`editor.image`),iconSvg:J9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function QEe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?``:t,r=e.content,i=r===void 0?[]:r,a=e.html,o=e.config,s=o===void 0?{}:o,c=e.mode,l=(c===void 0?`default`:c)===`simple`?K9.simpleEditorConfig:K9.editorConfig,u=G9(G9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return sde({selector:n,config:G9(G9(G9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:K9.plugins})}function $Ee(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,a=e.mode,o=a===void 0?`default`:a;if(!t)throw Error(`Cannot find 'selector' when create toolbar`);var s=o===`simple`?K9.simpleToolbarConfig:K9.toolbarConfig;return function(e,t){if(e==null)throw Error(`Cannot create toolbar, because editor is null`);var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(e,t){return CA(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new fde(n,GE({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return ND.set(a,e),PD.set(e,a),a}(n,{selector:t,config:G9(G9({},s),i)})}K9.setSimpleToolbarConfig(ZEe);var eDe=Object.defineProperty,tDe=Object.defineProperties,nDe=Object.getOwnPropertyDescriptors,X9=Object.getOwnPropertySymbols,rDe=Object.prototype.hasOwnProperty,iDe=Object.prototype.propertyIsEnumerable,Z9=(e,t,n)=>t in e?eDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aDe=(e,t)=>{for(var n in t||={})rDe.call(t,n)&&Z9(e,n,t[n]);if(X9)for(var n of X9(t))iDe.call(t,n)&&Z9(e,n,t[n]);return e},oDe=(e,t)=>tDe(e,nDe(t));function Q9(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
Please use '@${e}' event instead of props`,t}var $9=(e,t)=>{for(let[n,r]of t)e[n]=r;return e},sDe=oe({props:{mode:{type:String,default:`default`},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:``},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:``}},setup(e,t){let n=k(null),r=ee(null),i=k(``),a=()=>{if(!n.value)return;let a=xe(e.defaultContent);QEe({selector:n.value,mode:e.mode,content:a||[],html:e.defaultHtml||e.modelValue||``,config:oDe(aDe({},e.defaultConfig),{onCreated(n){if(r.value=n,t.emit(`onCreated`,n),e.defaultConfig.onCreated){let e=Q9(`onCreated`);throw Error(e)}},onChange(n){let r=n.getHtml();if(i.value=r,t.emit(`update:modelValue`,r),t.emit(`onChange`,n),e.defaultConfig.onChange){let e=Q9(`onChange`);throw Error(e)}},onDestroyed(n){if(t.emit(`onDestroyed`,n),e.defaultConfig.onDestroyed){let e=Q9(`onDestroyed`);throw Error(e)}},onMaxLength(n){if(t.emit(`onMaxLength`,n),e.defaultConfig.onMaxLength){let e=Q9(`onMaxLength`);throw Error(e)}},onFocus(n){if(t.emit(`onFocus`,n),e.defaultConfig.onFocus){let e=Q9(`onFocus`);throw Error(e)}},onBlur(n){if(t.emit(`onBlur`,n),e.defaultConfig.onBlur){let e=Q9(`onBlur`);throw Error(e)}},customAlert(n,r){if(t.emit(`customAlert`,n,r),e.defaultConfig.customAlert){let e=Q9(`customAlert`);throw Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){let e=Q9(`customPaste`);throw Error(e)}let i;return t.emit(`customPaste`,n,r,e=>{i=e}),i}})})};function o(e){r.value?.setHtml(e)}return S(()=>{a()}),j(()=>e.modelValue,e=>{e!==i.value&&o(e)}),{box:n}}}),cDe={ref:`box`,style:{height:`100%`}};function lDe(e,t,n,r,i,a){return he(),be(`div`,cDe,null,512)}var uDe=$9(sDe,[[`render`,lDe]]),dDe=oe({props:{editor:{type:Object},mode:{type:String,default:`default`},defaultConfig:{type:Object,default:{}}},setup(e){let t=k(null),n=n=>{if(t.value){if(n==null)throw Error(`Not found instance of Editor when create <Toolbar/> component`);X.getToolbar(n)||$Ee({editor:n,selector:t.value||`<div></div>`,mode:e.mode,config:e.defaultConfig})}};return pe(()=>{let{editor:t}=e;t!=null&&n(t)}),{selector:t}}}),fDe={ref:`selector`};function pDe(e,t,n,r,i,a){return he(),be(`div`,fDe,null,512)}var mDe=$9(dDe,[[`render`,pDe]]),hDe={class:`pledge-rich-editor`},gDe=Oe(oe({__name:`PledgeRichTextEditor`,props:{modelValue:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=ee(void 0),o=k(n.modelValue||``);j(()=>n.modelValue,e=>{let t=e||``;if(t===o.value)return;o.value=t;let n=i.value;n!=null&&n.getHtml()!==t&&n.setHtml(t||`<p><br></p>`)}),j(o,e=>{r(`update:modelValue`,e)});let s={excludeKeys:[`uploadImage`,`group-video`,`emotion`]},c={placeholder:`编辑参赛承诺书正文,保存后选手端签署弹窗将展示此处内容…`};function l(e){i.value=e}return b(()=>{let e=i.value;e!=null&&(e.destroy(),i.value=void 0)}),(e,t)=>(he(),be(`div`,hDe,[p(a(mDe),{class:`pledge-rich-editor__toolbar`,editor:i.value,"default-config":s,mode:`default`},null,8,[`editor`]),p(a(uDe),{modelValue:o.value,"onUpdate:modelValue":t[0]||=e=>o.value=e,class:`pledge-rich-editor__editor`,"default-config":c,mode:`default`,onOnCreated:l},null,8,[`modelValue`])]))}}),[[`__scopeId`,`data-v-7f4e69bd`]]),_De={class:`competition-workspace`},vDe={class:`workspace-header`},yDe={class:`workspace-title`},bDe={class:`login-links-stack`},xDe={class:`login-link-label`},SDe=[`href`],CDe={class:`tracks-pane`},wDe={class:`pane-toolbar pane-toolbar--split`},TDe={class:`cell-muted`},EDe={class:`channels-pane`},DDe={class:`pane-toolbar pane-toolbar--split`},ODe={class:`cell-muted`},kDe={class:`cell-muted`},ADe={class:`applications-pane`},jDe={class:`applications-toolbar`},MDe={class:`application-filters`},NDe={class:`application-actions`},PDe={class:`cell-muted`},FDe={class:`cell-muted`},IDe={class:`cell-muted`},LDe={class:`table-pagination`},RDe={class:`form-hint`},zDe={class:`pane-toolbar`},BDe={class:`cell-muted`},VDe={class:`section-block`},HDe={class:`form-hint`},UDe={class:`pane-toolbar`},WDe={class:`cell-muted`},GDe={class:`section-block`},KDe={class:`pane-toolbar pane-toolbar--wrap`},qDe={class:`application-detail`},JDe={class:`application-intro`},YDe={class:`review-summary`},XDe={key:0,class:`text-danger small mt-2 mb-0`},ZDe=Oe(oe({__name:`CompetitionFormView`,setup(t){let i=[{tab:`basic`,label:`基础信息`},{tab:`tracks`,label:`赛道管理`},{tab:`channels`,label:`渠道管理`},{tab:`applications`,label:`报名信息`},{tab:`signupForm`,label:`报名表配置`},{tab:`review`,label:`评审与计分`},{tab:`brand`,label:`品牌与文案`}],o=De(),s=Ee(),c=Ie(),{selectedCompetitionId:l}=Se(c),u=()=>s.name===`admin-competition-new`,d=k(null),f=k(!1),m=k(null),g=k({slug:``,name:``,description:``,status:`draft`,published:!1,signup_open_at:null,signup_close_at:null,pledge_content_html:``,success_notice_enabled:!1,success_notice_message:``}),_=k(Re()),y=k({}),b=k([]),x=k(!1),C=k([]),w=k(!1),E=k([]),O=k(!1),A=k(!1),ee=k(``),te=k(!1),ie=k(!1),ae=k(null),oe=k({page:1,perPage:15,total:0}),se=k({keyword:``,status:`submitted`,track:``,signup_channel_id:void 0}),ce=k(!1),le=k(null),ue=k({track_code:``,title:``,description:``,sort:0,is_enabled:!0}),de=k(!1),fe=k(null),pe=k(!1),ge=k(null),_e=k({channel_name:``,status:`enabled`,shared_secret:``,entry_encryption_enabled:!1,success_callback_url:``,success_callback_type:`web`,mini_program_callback_path:null,mini_program_callback_method:`redirectTo`,remark:null}),ve=k(!1),ye=k(`basic`),xe=k([]),Ce=k([]),Te=k(!1),Oe=k(``),Ge=k(``);function Xe(){return{key:``,weight:1,min:0,max:100}}let et=k([Xe()]),tt=k(!1),nt=k(`signup`),rt=k(``),it=k(!1),at=k(null),st=k(``),ct=k(`[]`),lt=k(``),ut=k(`signup`),dt=k([]),ft=k(`visual`),pt=M(()=>{if(u())return`新建赛事`;let e=i.find(e=>e.tab===ye.value)?.label;return e?`赛事中心 · ${e}`:`赛事中心`}),mt=M(()=>String(d.value??`new`));function ht(e){let t=e&&typeof e==`object`&&!Array.isArray(e)?e.success_notice:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:{};return{enabled:n.enabled===!0,message:typeof n.message==`string`?n.message:``}}function gt(){let e={...y.value},t=g.value.success_notice_enabled,n=g.value.success_notice_message.trim();return t&&n?e.success_notice={enabled:!0,message:n}:delete e.success_notice,Object.keys(e).length>0?e:null}function _t(e){return`${typeof window<`u`?window.location.origin:``}${`/admin/`.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`}let vt=M(()=>{let e=g.value.slug.trim(),t=[];if(e){let n=encodeURIComponent(e);t.push({label:`选手登录`,href:_t(`/c/${n}/login`)}),t.push({label:`评审端入口`,href:_t(`/c/${n}/review`)})}return t.push({label:`管理后台登录`,href:_t(`/admin/login`)}),t.push({label:`赛事工作台(需先登录管理端)`,href:_t(`/admin/competition/workspace`)}),t});j(ft,e=>{e===`json`?yt():bt()});function yt(){ct.value=JSON.stringify(qc(dt.value,ut.value),null,2)}function bt(){try{let e=JSON.parse(ct.value);Array.isArray(e)&&(dt.value=Kc(e,ut.value))}catch{}}j(()=>s.name,e=>{(e===`admin-competition-new`||e===`admin-competition-edit`)&&(ye.value=`basic`)},{immediate:!0}),j(ye,e=>{d.value&&(e===`channels`&&Rt(),e===`applications`&&(Rt(),Yt()),e===`signupForm`&&wt(),e===`review`&&Tt())});function xt(){if(u())return null;let e=s.params.id;if(e!=null&&String(e)!==``){let t=Number(e);if(Number.isFinite(t))return t}let t=l.value;return t&&t>0?t:null}function St(e){if(!e)return null;let t=new Date(e);if(Number.isNaN(t.getTime()))return null;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`}function Ct(e){let t=(e??``).trim();if(!t)return null;let n=t.includes(`T`)?t:t.replace(/^(\d{4}-\d{2}-\d{2})\s+/,`$1T`),r=new Date(n);return Number.isNaN(r.getTime())?null:r.toISOString()}async function wt(){let e=d.value;if(e){Te.value=!0;try{xe.value=await Be(e,`signup`)}catch(e){I.error(e instanceof Error?e.message:`加载报名表列表失败`)}finally{Te.value=!1}}}async function Tt(){let e=d.value;if(e){Te.value=!0;try{Ce.value=await Be(e,`review`)}catch(e){I.error(e instanceof Error?e.message:`加载评审表列表失败`)}finally{Te.value=!1}}}function Et(e){Oe.value=e.scoring_rules_json==null?``:JSON.stringify(e.scoring_rules_json,null,2),Dt()}function Dt(){let e=Oe.value.trim();if(!e){et.value=[Xe()];return}try{let t=JSON.parse(e);if(t&&Array.isArray(t.dimensions)&&t.dimensions.length>0){et.value=t.dimensions.map(e=>({key:String(e.key??``),weight:Number(e.weight)||0,min:e.min==null?0:Number(e.min),max:e.max==null?100:Number(e.max)}));return}}catch{}et.value=[Xe()]}function Ot(){et.value=[...et.value,Xe()]}function kt(e){if(et.value.length<=1){et.value=[Xe()];return}et.value=et.value.filter((t,n)=>n!==e)}function At(e){return{version:1,source:`custom`,dimensions:e.filter(e=>e.key.trim()).map(e=>({key:e.key.trim(),weight:Number(e.weight)||0,min:Number(e.min)||0,max:Number(e.max)||0})),line_total_formula:`weighted_sum`,team_aggregate:{sum:{on:`line_total`},average:{on:`line_total`,denominator:`submitted_review_count`}},constraints:{min_reviewers_for_avg:1},tie_break:`submitted_at_asc`}}function jt(){if(!et.value.filter(e=>e.key.trim()).length){I.warning(`请至少填写一行「维度 key」(须与评审表 number 类字段的 name/key 一致)`);return}let e=At(et.value);Oe.value=JSON.stringify(e,null,2),Ge.value=``}async function Mt(){if(u()){d.value=null,f.value=!1,m.value=null,_.value=Re(),g.value={slug:``,name:``,description:``,status:`draft`,published:!1,signup_open_at:null,signup_close_at:null,pledge_content_html:``,success_notice_enabled:!1,success_notice_message:``},y.value={};return}let e=xt();if(!e){d.value=null,m.value=null,f.value=!0;return}f.value=!1,d.value=e,c.selectCompetition(e);try{let t=await ke(e);m.value=t,g.value={slug:t.slug,name:t.name,description:t.description??``,status:t.status,published:t.published,signup_open_at:St(t.signup_open_at),signup_close_at:St(t.signup_close_at),pledge_content_html:t.pledge_content_html??``,success_notice_enabled:ht(t.settings).enabled,success_notice_message:ht(t.settings).message},y.value=t.settings&&typeof t.settings==`object`&&!Array.isArray(t.settings)?{...t.settings}:{},_.value=ze(t.branding_json),Et(t),await It(),ye.value===`channels`&&await Rt(),ye.value===`applications`&&await Yt(),ye.value===`signupForm`&&await wt(),ye.value===`review`&&await Tt()}catch(e){m.value=null,I.error(e instanceof Error?e.message:`加载赛事详情失败`)}}j(()=>[s.fullPath,l.value],()=>{Mt()});function Nt(){let e=Le(_.value);return{slug:g.value.slug.trim(),name:g.value.name.trim(),description:g.value.description.trim()||null,status:g.value.status,published:g.value.published,signup_open_at:Ct(g.value.signup_open_at),signup_close_at:Ct(g.value.signup_close_at),branding_json:e??null,pledge_content_html:g.value.pledge_content_html?.trim()?g.value.pledge_content_html:null,settings:gt()}}async function Pt(){ve.value=!0;try{let e=Nt();if(!e.slug||!e.name){I.warning(`请填写赛事名称和访问地址`);return}if(g.value.success_notice_enabled&&!g.value.success_notice_message.trim()){I.warning(`请填写报名成功提示语,或关闭该提示`);return}if(s.name===`admin-competition-new`){let t=await Fe(e);d.value=t.id,c.selectCompetition(t.id),await o.replace({name:`admin-competition-workspace`}),await Mt(),I.success(`已创建,请在本页顶部标签切换「赛道 / 报名表」等模块继续配置`);return}d.value?(await L(d.value,e),I.success(`已保存`),await Mt()):I.warning(`无法保存:请先选择一场赛事,或从「新建赛事」进入后再试`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}finally{ve.value=!1}}function Ft(e){if(!d.value){I.warning(`请先保存赛事基础信息`);return}le.value=e?.id??null,ue.value=e?{track_code:e.track_code,title:e.title,description:e.description??``,sort:e.sort,is_enabled:e.is_enabled}:{track_code:``,title:``,description:``,sort:(b.value[b.value.length-1]?.sort??0)+10,is_enabled:!0},ce.value=!0}async function It(){let e=d.value;if(!e){b.value=[];return}x.value=!0;try{b.value=await Me(e)}finally{x.value=!1}}async function Lt(){let e=d.value;if(!e)return;let t={track_code:ue.value.track_code.trim(),title:ue.value.title.trim(),description:ue.value.description.trim()||null,sort:Number(ue.value.sort)||0,is_enabled:ue.value.is_enabled};if(!t.track_code||!t.title){I.warning(`请填写赛道编码与标题`);return}try{le.value?await Ae(e,le.value,t):await je(e,t),ce.value=!1,await It(),I.success(`赛道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存赛道失败`)}}async function Rt(){let e=d.value;if(!e){C.value=[];return}w.value=!0;try{C.value=await Ke(e)}catch(e){C.value=[],I.error(e instanceof Error?e.message:`加载渠道列表失败`)}finally{w.value=!1}}function zt(e){return e===`submitted`?`已提交`:e===`draft`?`草稿`:e||`—`}function Bt(e){return e===`submitted`?`success`:e===`draft`?`info`:`warning`}function Vt(e){if(!e)return`—`;let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function Ht(e){if(e==null||e===``)return`—`;let t=Number(e);return Number.isFinite(t)?t.toFixed(2).replace(/\.?0+$/,``):String(e)}function Ut(e){return!e||e<=0?`—`:e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`}let Wt=[`plan`,`supporting`];function Gt(e){return e===`plan`?`商业计划书`:e===`supporting`?`佐证材料`:e?.trim()||`其他附件`}function Kt(e){let t=Wt.indexOf(e);return t===-1?Wt.length:t}function qt(e){return[...e].sort((e,t)=>{let n=Kt(e.kind)-Kt(t.kind);return n===0?(e.original_name??``).localeCompare(t.original_name??``,`zh-CN`):n})}let Jt=M(()=>{let e=ae.value?.files;return e?.length?qt(e):[]});async function Yt(e=oe.value.page){let t=d.value;if(!t){E.value=[],oe.value.total=0;return}O.value=!0;try{let n=await Ze(t,{page:e,per_page:oe.value.perPage,keyword:se.value.keyword.trim()||void 0,status:se.value.status||void 0,track:se.value.track||void 0,signup_channel_id:se.value.signup_channel_id||void 0});E.value=n.data,oe.value={page:n.meta.current_page,perPage:n.meta.per_page,total:n.meta.total}}catch(e){E.value=[],I.error(e instanceof Error?e.message:`加载报名列表失败`)}finally{O.value=!1}}function Xt(){se.value={keyword:``,status:`submitted`,track:``,signup_channel_id:void 0},Yt(1)}async function Zt(){let e=d.value;if(e){A.value=!0,ee.value=`准备导出…`;try{let t=await ot(e,{keyword:se.value.keyword.trim()||void 0,status:se.value.status||void 0,track:se.value.track||void 0,signup_channel_id:se.value.signup_channel_id||void 0},(e,t)=>{ee.value=`正在下载第 ${e}/${t} 个 ZIP…`});I.success(t.part_count>1?`已下载 ${t.part_count} 个 ZIP(汇总表仅在第 1 个包,每个约 ${t.part_size} 条附件)`:`导出已开始下载`)}catch(e){I.error(e instanceof Error?e.message:`导出失败`)}finally{A.value=!1,ee.value=``}}}async function Qt(e){let t=d.value;if(t){ie.value=!0,te.value=!0,ae.value=null;try{ae.value=await Qe(t,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载报名详情失败`)}finally{te.value=!1}}}async function $t(e,t){let n=d.value,r=ae.value?.id;if(!(!n||!r))try{await $e(n,r,e,t||`附件`)}catch(e){I.error(e instanceof Error?e.message:`下载附件失败`)}}async function en(e){if(!d.value){I.warning(`请先保存赛事基础信息`);return}let t=e;if(e)try{t=await qe(d.value,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载渠道详情失败`);return}fe.value=t?.id??null,ge.value=t??null,_e.value=t?{channel_name:t.channel_name,status:t.status,shared_secret:t.shared_secret??``,entry_encryption_enabled:t.entry_encryption_enabled??!1,success_callback_url:t.success_callback_url??``,success_callback_type:t.success_callback_type??`web`,mini_program_callback_path:t.mini_program_callback_path??null,mini_program_callback_method:t.mini_program_callback_method??`redirectTo`,remark:t.remark}:{channel_name:``,status:`enabled`,shared_secret:``,entry_encryption_enabled:!1,success_callback_url:``,success_callback_type:`web`,mini_program_callback_path:null,mini_program_callback_method:`redirectTo`,remark:null},de.value=!0}async function tn(){let e=ge.value?.encryption_public_key;if(e)try{await navigator.clipboard.writeText(e),I.success(`加密公钥已复制`)}catch{I.error(`复制失败,请手动复制`)}}function nn(){let e=new Uint8Array(32);if(!globalThis.crypto?.getRandomValues){I.error(`当前浏览器不支持安全随机数,请更换浏览器后重试`);return}globalThis.crypto.getRandomValues(e),_e.value.shared_secret=btoa(String.fromCharCode(...e)).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function rn(e){return e===`mini_program`?`小程序`:e===`none`?`不回调`:`URL`}function an(e){return e.success_callback_type===`mini_program`?e.mini_program_callback_path||`—`:e.success_callback_type===`none`?`—`:e.success_callback_url||`—`}async function on(){let e=d.value;if(!e)return;let t={channel_name:_e.value.channel_name.trim(),status:_e.value.status,shared_secret:_e.value.shared_secret.trim(),entry_encryption_enabled:_e.value.entry_encryption_enabled,success_callback_url:_e.value.success_callback_url.trim(),success_callback_type:_e.value.success_callback_type,mini_program_callback_path:_e.value.mini_program_callback_path?.trim()||null,mini_program_callback_method:_e.value.mini_program_callback_method,remark:_e.value.remark?.trim()||null};if(!t.channel_name||!t.shared_secret){I.warning(`请填写渠道名称与共享密钥`);return}if(t.success_callback_type===`web`&&!t.success_callback_url){I.warning(`请填写 URL 回跳地址,或选择不回调`);return}if(t.success_callback_type===`mini_program`&&!t.mini_program_callback_path){I.warning(`请填写小程序页面路径`);return}pe.value=!0;try{fe.value?await Ye(e,fe.value,t):await Je(e,t),de.value=!1,await Rt(),I.success(`渠道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存渠道失败`)}finally{pe.value=!1}}async function sn(e){let t=d.value;if(!t)return;let n=e.status===`enabled`?`disabled`:`enabled`;try{await Ye(t,e.id,{status:n}),await Rt(),I.success(n===`enabled`?`渠道已启用`:`渠道已停用`)}catch(e){I.error(e instanceof Error?e.message:`更新渠道状态失败`)}}async function cn(e){let t=d.value;if(t){try{await we.confirm(`确定删除赛道「${e.title}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await Ne(t,e.id),await It(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}function ln(e,t){if(e?.length)return e.join(`、`);if(!Array.isArray(t))return`—`;let n=t.map(e=>typeof e==`object`&&e&&`label`in e?String(e.label||``):``).filter(Boolean);return n.length?n.join(`、`):`—`}function un(e){if(!d.value){I.warning(`请先选择或创建赛事`);return}nt.value=e,rt.value=e===`signup`?`报名表新版本`:`评审表新版本`,tt.value=!0}async function dn(){let e=d.value;if(!e)return;let t=rt.value.trim();if(!t){I.warning(`请填写版本名称`);return}try{await He(e,{purpose:nt.value,name:t,schema_json:[],is_published:!1}),tt.value=!1,nt.value===`signup`?await wt():await Tt(),I.success(`已创建表单版本`)}catch(e){I.error(e instanceof Error?e.message:`创建失败`)}}async function fn(e){let t=d.value;if(t)try{await Pe(t,{form_schema_id:e}),I.success(`已设为当前报名表`),await Mt(),await wt()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function pn(e){let t=d.value;if(t)try{await Pe(t,{review_form_schema_id:e}),I.success(`已设为当前评审表`),await Mt(),await Tt()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function mn(e,t){let n=d.value;if(n)try{await Ue(n,e.id,{is_published:t}),e.purpose===`signup`?await wt():await Tt()}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}}async function hn(e){let t=d.value;if(t){lt.value=``;try{let n=await Ve(t,e.id);at.value=n.id,st.value=n.name,ut.value=n.purpose,dt.value=Kc(n.schema_json??[],n.purpose),ct.value=JSON.stringify(n.schema_json??[],null,2),ft.value=`visual`}catch(e){I.error(e instanceof Error?e.message:`加载表单详情失败`);return}it.value=!0}}async function gn(){let e=d.value,t=at.value;if(!e||!t)return;lt.value=``;let n=[];if(ft.value===`visual`){let e=ete(dt.value,ut.value);if(e){lt.value=e;return}n=qc(dt.value,ut.value)}else try{let e=JSON.parse(ct.value);if(!Array.isArray(e)){lt.value=`表单定义须为 JSON 数组`;return}n=e}catch{lt.value=`JSON 格式不正确`;return}try{await Ue(e,t,{name:st.value.trim()||void 0,schema_json:n}),it.value=!1,await wt(),await Tt(),I.success(`表单已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function _n(e){let t=d.value;if(t){try{await we.confirm(`确定删除表单版本「${e.name}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await We(t,e.id),e.purpose===`signup`?await wt():await Tt(),await Mt(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}async function vn(){let e=d.value;if(!e)return;Ge.value=``;let t=null,n=Oe.value.trim();if(n)try{if(t=JSON.parse(n),t!==null&&typeof t!=`object`){Ge.value=`计分规则须为 JSON 对象`;return}}catch{Ge.value=`JSON 格式不正确`;return}try{await Pe(e,{scoring_rules_json:t}),I.success(`计分规则已保存(留空表示使用系统默认)`),await Mt()}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function yn(){let e=d.value;if(e)try{await Pe(e,{review_form_schema_id:null}),I.success(`已取消评审表绑定,将使用系统默认评审项`),await Mt(),await Tt()}catch(e){I.error(e instanceof Error?e.message:`操作失败`)}}return S(()=>{Mt()}),(t,i)=>{let s=D(`el-button`),c=D(`el-alert`),l=D(`el-input`),y=D(`el-form-item`),S=D(`el-col`),k=D(`el-switch`),j=D(`el-option`),M=D(`el-select`),Se=D(`el-checkbox`),we=D(`el-date-picker`),I=D(`el-row`),Ee=D(`el-form`),De=D(`el-tab-pane`),L=D(`el-table-column`),ke=D(`el-table`),Ae=D(`el-tag`),je=D(`el-pagination`),Me=D(`el-input-number`),Ne=D(`el-tabs`),Pe=D(`el-descriptions-item`),Fe=D(`el-descriptions`),Ie=D(`el-drawer`),Le=D(`el-dialog`),Re=D(`el-radio-button`),ze=D(`el-radio-group`),Be=h(`loading`);return he(),be(`div`,_De,[F(`div`,vDe,[F(`h2`,yDe,N(pt.value),1),p(s,{class:`workspace-back`,onClick:i[0]||=e=>a(o).push({name:`admin-competitions-list`})},{default:P(()=>[...i[70]||=[r(` 返回赛事列表 `,-1)]]),_:1})]),f.value&&!u()?(he(),v(c,{key:0,title:`请选择赛事`,type:`warning`,closable:!1,"show-icon":``,class:`workspace-alert`},{default:P(()=>[...i[71]||=[r(` 请先在顶部`,-1),F(`strong`,null,`赛事切换`,-1),r(`中选择一场赛事,或从「赛事列表」点击「进入赛事中心」。 `,-1)]]),_:1})):(he(),v(Ne,{key:1,modelValue:ye.value,"onUpdate:modelValue":i[41]||=e=>ye.value=e,type:`border-card`,class:e([`workspace-tabs`,{"workspace-tabs--create":u()}])},{default:P(()=>[p(De,{label:`基础信息`,name:`basic`},{default:P(()=>[p(Ee,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[p(I,{gutter:20},{default:P(()=>[p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`赛事名称`},{default:P(()=>[p(l,{modelValue:g.value.name,"onUpdate:modelValue":i[1]||=e=>g.value.name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`访问地址`},{default:P(()=>[p(l,{modelValue:g.value.slug,"onUpdate:modelValue":i[2]||=e=>g.value.slug=e,autocomplete:`off`},null,8,[`modelValue`]),i[72]||=F(`p`,{class:`form-hint`},`用于选手端网址识别,可使用中文、数字、横线等,请勿含空格。`,-1),F(`div`,bDe,[(he(!0),be(re,null,T(vt.value,(e,t)=>(he(),be(`p`,{key:t,class:`form-hint login-link-preview`},[F(`span`,xDe,N(e.label),1),F(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,class:`login-link-url`},N(e.href),9,SDe)]))),128))])]),_:1})]),_:1}),p(S,{span:24},{default:P(()=>[p(y,{label:`描述`},{default:P(()=>[p(l,{modelValue:g.value.description,"onUpdate:modelValue":i[3]||=e=>g.value.description=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{span:24},{default:P(()=>[p(y,{label:`参赛承诺书`},{default:P(()=>[i[73]||=F(`p`,{class:`form-hint pledge-hint`},` 以下为选手端签署弹窗中的正文(支持富文本)。若留空,将使用系统内置默认条款。 `,-1),(he(),v(gDe,{modelValue:g.value.pledge_content_html,"onUpdate:modelValue":i[4]||=e=>g.value.pledge_content_html=e,key:mt.value},null,8,[`modelValue`]))]),_:1})]),_:1}),p(S,{span:24},{default:P(()=>[p(y,{label:`报名成功提示`},{default:P(()=>[p(k,{modelValue:g.value.success_notice_enabled,"onUpdate:modelValue":i[5]||=e=>g.value.success_notice_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),i[74]||=F(`p`,{class:`form-hint mt-2`},` 开启后,选手提交报名成功会看到自定义提示;关闭时保持系统默认提示。 `,-1),g.value.success_notice_enabled?(he(),v(l,{key:0,modelValue:g.value.success_notice_message,"onUpdate:modelValue":i[6]||=e=>g.value.success_notice_message=e,type:`textarea`,rows:4,maxlength:`1000`,"show-word-limit":``,placeholder:`请输入报名成功后展示给选手的提示语`},null,8,[`modelValue`])):n(``,!0)]),_:1})]),_:1}),p(S,{xs:24,sm:12,md:8},{default:P(()=>[p(y,{label:`状态`},{default:P(()=>[p(M,{modelValue:g.value.status,"onUpdate:modelValue":i[7]||=e=>g.value.status=e,class:`w-100`},{default:P(()=>[p(j,{label:`草稿`,value:`draft`}),p(j,{label:`已发布`,value:`published`}),p(j,{label:`报名进行中`,value:`signup_open`}),p(j,{label:`报名已截止`,value:`signup_closed`}),p(j,{label:`评审中`,value:`reviewing`}),p(j,{label:`已结束`,value:`ended`})]),_:1},8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,sm:12,md:8},{default:P(()=>[p(y,{label:`对外展示`},{default:P(()=>[p(Se,{modelValue:g.value.published,"onUpdate:modelValue":i[8]||=e=>g.value.published=e},{default:P(()=>[...i[75]||=[r(`在选手端展示`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`报名开始`},{default:P(()=>[p(we,{modelValue:g.value.signup_open_at,"onUpdate:modelValue":i[9]||=e=>g.value.signup_open_at=e,type:`datetime`,placeholder:`选择报名开始时间`,format:`YYYY-MM-DD HH:mm`,"value-format":`YYYY-MM-DD HH:mm:ss`,class:`w-100`,clearable:``},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`报名截止`},{default:P(()=>[p(we,{modelValue:g.value.signup_close_at,"onUpdate:modelValue":i[10]||=e=>g.value.signup_close_at=e,type:`datetime`,placeholder:`选择报名截止时间`,format:`YYYY-MM-DD HH:mm`,"value-format":`YYYY-MM-DD HH:mm:ss`,class:`w-100`,clearable:``},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1}),p(y,null,{default:P(()=>[p(s,{"native-type":`button`,type:`primary`,loading:ve.value,onClick:Pt},{default:P(()=>[r(N(ve.value?`保存中…`:`保存基础信息`),1)]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1}),u()?n(``,!0):(he(),v(De,{key:0,label:`赛道管理`,name:`tracks`,lazy:``},{default:P(()=>[ne((he(),be(`div`,CDe,[F(`div`,wDe,[i[77]||=F(`p`,{class:`form-hint pane-toolbar-tip`},`维护本场主题赛道。新建赛事请先保存基础信息。`,-1),p(s,{type:`primary`,onClick:i[11]||=e=>Ft()},{default:P(()=>[...i[76]||=[r(`新增赛道`,-1)]]),_:1})]),p(ke,{data:b.value,stripe:``,border:``,"empty-text":`暂无赛道`,class:`workspace-table`},{default:P(()=>[p(L,{prop:`track_code`,label:`赛道编码`,"min-width":`120`}),p(L,{prop:`title`,label:`标题`,"min-width":`140`}),p(L,{prop:`description`,label:`简介`,"min-width":`180`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,TDe,N(e.description||`—`),1)]),_:1}),p(L,{prop:`sort`,label:`排序`,width:`80`}),p(L,{label:`启用`,width:`80`},{default:P(({row:e})=>[r(N(e.is_enabled?`是`:`否`),1)]),_:1}),p(L,{label:`操作`,width:`140`,fixed:`right`,align:`right`},{default:P(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>Ft(e)},{default:P(()=>[...i[78]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:`danger`,size:`small`,onClick:t=>cn(e)},{default:P(()=>[...i[79]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Be,x.value]])]),_:1})),u()?n(``,!0):(he(),v(De,{key:1,label:`渠道管理`,name:`channels`,lazy:``},{default:P(()=>[ne((he(),be(`div`,EDe,[F(`div`,DDe,[i[82]||=F(`p`,{class:`form-hint pane-toolbar-tip`},` 渠道编码由系统自动生成。共享密钥用于渠道跳转验签,请与渠道方安全同步。 `,-1),F(`div`,null,[p(s,{loading:w.value,onClick:Rt},{default:P(()=>[...i[80]||=[r(` 刷新列表 `,-1)]]),_:1},8,[`loading`]),p(s,{type:`primary`,onClick:i[12]||=e=>en()},{default:P(()=>[...i[81]||=[r(` 新增渠道 `,-1)]]),_:1})])]),p(ke,{data:C.value,stripe:``,border:``,"empty-text":`暂无渠道`,class:`workspace-table`},{default:P(()=>[p(L,{prop:`competition_name`,label:`所属赛事`,"min-width":`160`,"show-overflow-tooltip":``}),p(L,{prop:`channel_code`,label:`渠道编码`,"min-width":`170`}),p(L,{prop:`channel_name`,label:`渠道名称`,"min-width":`140`}),p(L,{label:`状态`,width:`88`},{default:P(({row:e})=>[p(Ae,{type:e.status===`enabled`?`success`:`info`,effect:`plain`},{default:P(()=>[r(N(e.status===`enabled`?`已启用`:`已停用`),1)]),_:2},1032,[`type`])]),_:1}),p(L,{label:`回调类型`,width:`96`},{default:P(({row:e})=>[r(N(rn(e.success_callback_type)),1)]),_:1}),p(L,{label:`回调目标`,"min-width":`240`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,ODe,N(an(e)),1)]),_:1}),p(L,{prop:`remark`,label:`备注`,"min-width":`150`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,kDe,N(e.remark||`—`),1)]),_:1}),p(L,{prop:`created_at`,label:`创建时间`,"min-width":`180`}),p(L,{label:`操作`,width:`150`,fixed:`right`,align:`right`},{default:P(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>en(e)},{default:P(()=>[...i[83]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:e.status===`enabled`?`danger`:`success`,size:`small`,onClick:t=>sn(e)},{default:P(()=>[r(N(e.status===`enabled`?`停用`:`启用`),1)]),_:2},1032,[`type`,`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Be,w.value]])]),_:1})),u()?n(``,!0):(he(),v(De,{key:2,label:`报名信息`,name:`applications`,lazy:``},{default:P(()=>[ne((he(),be(`div`,ADe,[F(`div`,jDe,[F(`div`,MDe,[p(l,{modelValue:se.value.keyword,"onUpdate:modelValue":i[13]||=e=>se.value.keyword=e,placeholder:`搜索项目、姓名、学校、手机号`,clearable:``,class:`application-filter-keyword`,onKeyup:i[14]||=me(e=>Yt(1),[`enter`])},null,8,[`modelValue`]),p(M,{modelValue:se.value.status,"onUpdate:modelValue":i[15]||=e=>se.value.status=e,placeholder:`状态`,clearable:``,teleported:``,class:`application-filter-select`},{default:P(()=>[p(j,{label:`草稿`,value:`draft`}),p(j,{label:`已提交`,value:`submitted`})]),_:1},8,[`modelValue`]),p(M,{modelValue:se.value.track,"onUpdate:modelValue":i[16]||=e=>se.value.track=e,placeholder:`赛道`,clearable:``,teleported:``,class:`application-filter-select`},{default:P(()=>[(he(!0),be(re,null,T(b.value,e=>(he(),v(j,{key:e.track_code,label:e.title,value:e.track_code},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),p(M,{modelValue:se.value.signup_channel_id,"onUpdate:modelValue":i[17]||=e=>se.value.signup_channel_id=e,placeholder:`渠道`,clearable:``,filterable:``,teleported:``,class:`application-filter-select application-filter-channel`},{default:P(()=>[(he(!0),be(re,null,T(C.value,e=>(he(),v(j,{key:e.id,label:`${e.channel_name}(${e.channel_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`])]),F(`div`,NDe,[p(s,{loading:A.value,onClick:Zt},{default:P(()=>[r(N(ee.value||`导出 ZIP`),1)]),_:1},8,[`loading`]),p(s,{onClick:Xt},{default:P(()=>[...i[84]||=[r(`重置`,-1)]]),_:1}),p(s,{type:`primary`,onClick:i[18]||=e=>Yt(1)},{default:P(()=>[...i[85]||=[r(`查询`,-1)]]),_:1})])]),p(ke,{data:E.value,stripe:``,border:``,"empty-text":`暂无报名记录`,class:`workspace-table`},{default:P(()=>[p(L,{prop:`project_code`,label:`项目编号`,width:`120`,"show-overflow-tooltip":``}),p(L,{label:`状态`,width:`92`},{default:P(({row:e})=>[p(Ae,{type:Bt(e.status),effect:`plain`},{default:P(()=>[r(N(zt(e.status)),1)]),_:2},1032,[`type`])]),_:1}),p(L,{prop:`project_name`,label:`项目名称`,"min-width":`180`,"show-overflow-tooltip":``}),p(L,{prop:`player_name`,label:`负责人`,width:`110`,"show-overflow-tooltip":``}),p(L,{prop:`school`,label:`学校`,"min-width":`150`,"show-overflow-tooltip":``}),p(L,{prop:`entry_group`,label:`组别`,width:`100`},{default:P(({row:e})=>[F(`span`,PDe,N(e.entry_group||`—`),1)]),_:1}),p(L,{prop:`track_title`,label:`赛道`,"min-width":`130`,"show-overflow-tooltip":``}),p(L,{label:`渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,FDe,N(e.signup_channel?`${e.signup_channel.channel_name}(${e.signup_channel.channel_code})`:e.signup_channel_code||`—`),1)]),_:1}),p(L,{prop:`contact_mobile`,label:`手机号`,width:`128`}),p(L,{label:`附件`,width:`76`,align:`right`},{default:P(({row:e})=>[r(N(e.files_count),1)]),_:1}),p(L,{label:`评分`,width:`150`},{default:P(({row:e})=>[F(`span`,IDe,N(e.submitted_review_count)+` 人 / 均分 `+N(Ht(e.team_avg)),1)]),_:1}),p(L,{label:`提交时间`,"min-width":`150`},{default:P(({row:e})=>[r(N(Vt(e.submitted_at)),1)]),_:1}),p(L,{label:`操作`,width:`92`,fixed:`right`,align:`right`},{default:P(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>Qt(e)},{default:P(()=>[...i[86]||=[r(`详情`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),F(`div`,LDe,[p(je,{"current-page":oe.value.page,"onUpdate:currentPage":i[19]||=e=>oe.value.page=e,"page-size":oe.value.perPage,"onUpdate:pageSize":i[20]||=e=>oe.value.perPage=e,background:``,layout:`total, sizes, prev, pager, next`,"page-sizes":[10,15,30,50,100],total:oe.value.total,onCurrentChange:Yt,onSizeChange:i[21]||=e=>Yt(1)},null,8,[`current-page`,`page-size`,`total`])])])),[[Be,O.value]])]),_:1})),u()?n(``,!0):(he(),v(De,{key:3,label:`报名表配置`,name:`signupForm`,lazy:``},{default:P(()=>[F(`p`,RDe,[i[87]||=r(` 管理选手报名表字段定义(JSON 数组)。可创建多个版本,设为当前报名表后选手端生效。当前绑定编号:`,-1),F(`strong`,null,N(m.value?.form_schema_id??`未绑定`),1)]),F(`div`,zDe,[p(s,{type:`primary`,disabled:!d.value,onClick:i[22]||=e=>un(`signup`)},{default:P(()=>[...i[88]||=[r(` 新建报名表版本 `,-1)]]),_:1},8,[`disabled`]),p(s,{loading:Te.value,onClick:wt},{default:P(()=>[...i[89]||=[r(`刷新列表`,-1)]]),_:1},8,[`loading`])]),p(ke,{data:xe.value,stripe:``,border:``,"empty-text":`暂无版本,请先新建`,class:`workspace-table`},{default:P(()=>[p(L,{prop:`name`,label:`名称`,"min-width":`120`}),p(L,{prop:`version`,label:`版本`,width:`80`}),p(L,{label:`发布`,width:`72`},{default:P(({row:e})=>[r(N(e.is_published?`是`:`否`),1)]),_:1}),p(L,{label:`当前`,width:`88`},{default:P(({row:e})=>[r(N(e.is_current_signup?`当前`:`—`),1)]),_:1}),p(L,{label:`字段预览`,"min-width":`200`},{default:P(({row:e})=>[F(`span`,BDe,N(ln(e.field_labels,e.schema_json)),1)]),_:1}),p(L,{label:`操作`,width:`260`,fixed:`right`,align:`right`},{default:P(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>fn(e.id)},{default:P(()=>[...i[90]||=[r(`设为当前`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:`primary`,size:`small`,onClick:t=>hn(e)},{default:P(()=>[...i[91]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,size:`small`,onClick:t=>mn(e,!e.is_published)},{default:P(()=>[r(N(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),p(s,{link:``,type:`danger`,size:`small`,onClick:t=>_n(e)},{default:P(()=>[...i[92]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})),u()?n(``,!0):(he(),v(De,{key:4,label:`评审与计分`,name:`review`,lazy:``},{default:P(()=>[F(`div`,VDe,[i[100]||=F(`h3`,{class:`section-title`},`评审打分表`,-1),F(`p`,HDe,[i[93]||=r(` 配置评审端打分项(与报名表独立)。当前绑定编号:`,-1),F(`strong`,null,N(m.value?.review_form_schema_id??`未绑定(系统默认)`),1)]),F(`div`,UDe,[p(s,{type:`primary`,disabled:!d.value,onClick:i[23]||=e=>un(`review`)},{default:P(()=>[...i[94]||=[r(` 新建评审表版本 `,-1)]]),_:1},8,[`disabled`]),p(s,{onClick:yn},{default:P(()=>[...i[95]||=[r(`取消绑定(用默认)`,-1)]]),_:1}),p(s,{loading:Te.value,onClick:Tt},{default:P(()=>[...i[96]||=[r(`刷新列表`,-1)]]),_:1},8,[`loading`])]),p(ke,{data:Ce.value,stripe:``,border:``,"empty-text":`暂无版本`,class:`workspace-table workspace-table--mb`},{default:P(()=>[p(L,{prop:`name`,label:`名称`,"min-width":`120`}),p(L,{prop:`version`,label:`版本`,width:`80`}),p(L,{label:`发布`,width:`72`},{default:P(({row:e})=>[r(N(e.is_published?`是`:`否`),1)]),_:1}),p(L,{label:`当前`,width:`88`},{default:P(({row:e})=>[r(N(e.is_current_review?`当前`:`—`),1)]),_:1}),p(L,{label:`字段预览`,"min-width":`200`},{default:P(({row:e})=>[F(`span`,WDe,N(ln(e.field_labels,e.schema_json)),1)]),_:1}),p(L,{label:`操作`,width:`260`,fixed:`right`,align:`right`},{default:P(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>pn(e.id)},{default:P(()=>[...i[97]||=[r(`设为当前`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:`primary`,size:`small`,onClick:t=>hn(e)},{default:P(()=>[...i[98]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,size:`small`,onClick:t=>mn(e,!e.is_published)},{default:P(()=>[r(N(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),p(s,{link:``,type:`danger`,size:`small`,onClick:t=>_n(e)},{default:P(()=>[...i[99]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),F(`div`,GDe,[i[106]||=F(`h3`,{class:`section-title`},`计分规则`,-1),i[107]||=F(`p`,{class:`form-hint`},` 数据库中按 JSON 对象存储。留空并保存表示使用系统默认规则。多数情况只需填写各评分维度的 key 与权重,再点「生成 JSON」。 `,-1),i[108]||=F(`p`,{class:`subsection-label`},`快捷配置(维度加权求和 → line_total)`,-1),i[109]||=F(`p`,{class:`form-hint`},`「维度 key」须与评审 Schema 里数字打分项的字段名一致。`,-1),p(ke,{data:et.value,border:``,size:`small`,class:`workspace-table workspace-table--mb`},{default:P(()=>[p(L,{label:`维度 key`,"min-width":`160`},{default:P(({row:e})=>[p(l,{modelValue:e.key,"onUpdate:modelValue":t=>e.key=t,size:`small`,placeholder:`如 dim_innovation`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),p(L,{label:`权重`,width:`120`},{default:P(({row:e})=>[p(Me,{modelValue:e.weight,"onUpdate:modelValue":t=>e.weight=t,size:`small`,controls:!1,class:`w-100`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),p(L,{label:`最低分`,width:`110`},{default:P(({row:e})=>[p(Me,{modelValue:e.min,"onUpdate:modelValue":t=>e.min=t,size:`small`,controls:!1,class:`w-100`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),p(L,{label:`最高分`,width:`110`},{default:P(({row:e})=>[p(Me,{modelValue:e.max,"onUpdate:modelValue":t=>e.max=t,size:`small`,controls:!1,class:`w-100`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),p(L,{label:`操作`,width:`88`,align:`right`},{default:P(({$index:e})=>[p(s,{link:``,type:`danger`,size:`small`,onClick:t=>kt(e)},{default:P(()=>[...i[101]||=[r(`删行`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),F(`div`,KDe,[p(s,{onClick:Ot},{default:P(()=>[...i[102]||=[r(`增加一行`,-1)]]),_:1}),p(s,{onClick:Dt},{default:P(()=>[...i[103]||=[r(`从下方 JSON 解析到表格`,-1)]]),_:1}),p(s,{type:`primary`,onClick:jt},{default:P(()=>[...i[104]||=[r(`根据表格生成 JSON`,-1)]]),_:1})]),i[110]||=F(`p`,{class:`subsection-label`},`高级:直接编辑完整规则 JSON`,-1),p(l,{modelValue:Oe.value,"onUpdate:modelValue":i[24]||=e=>Oe.value=e,type:`textarea`,rows:8,class:`json-area`,spellcheck:`false`},null,8,[`modelValue`]),Ge.value?(he(),v(c,{key:0,type:`error`,closable:!1,class:`mt-2`,description:Ge.value},null,8,[`description`])):n(``,!0),p(s,{type:`primary`,class:`mt-2`,onClick:vn},{default:P(()=>[...i[105]||=[r(`保存计分规则`,-1)]]),_:1})])]),_:1})),u()?n(``,!0):(he(),v(De,{key:5,label:`品牌与文案`,name:`brand`,lazy:``},{default:P(()=>[i[112]||=F(`p`,{class:`form-hint`},`按页面分类填写对外展示文案。留空的项不会保存。`,-1),i[113]||=F(`h3`,{class:`section-title`},`整站`,-1),p(Ee,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[p(y,{label:`浏览器标签标题`},{default:P(()=>[p(l,{modelValue:_.value.documentTitle,"onUpdate:modelValue":i[25]||=e=>_.value.documentTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),i[114]||=F(`h3`,{class:`section-title`},`登录页`,-1),p(Ee,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[p(I,{gutter:16},{default:P(()=>[p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`品牌辅助行`},{default:P(()=>[p(l,{modelValue:_.value.login.markLine,"onUpdate:modelValue":i[26]||=e=>_.value.login.markLine=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`主标题`},{default:P(()=>[p(l,{modelValue:_.value.login.headline,"onUpdate:modelValue":i[27]||=e=>_.value.login.headline=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`标语`},{default:P(()=>[p(l,{modelValue:_.value.login.slogan,"onUpdate:modelValue":i[28]||=e=>_.value.login.slogan=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`登录卡片欢迎语`},{default:P(()=>[p(l,{modelValue:_.value.login.cardWelcome,"onUpdate:modelValue":i[29]||=e=>_.value.login.cardWelcome=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{span:24},{default:P(()=>[p(y,{label:`页脚版权`},{default:P(()=>[p(l,{modelValue:_.value.login.footerCopyright,"onUpdate:modelValue":i[30]||=e=>_.value.login.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`标志图网址`},{default:P(()=>[p(l,{modelValue:_.value.login.logoUrl,"onUpdate:modelValue":i[31]||=e=>_.value.login.logoUrl=e,placeholder:`图片网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`网站图标网址`},{default:P(()=>[p(l,{modelValue:_.value.login.faviconUrl,"onUpdate:modelValue":i[32]||=e=>_.value.login.faviconUrl=e,placeholder:`图标网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`主题色(如 #b40010)`},{default:P(()=>[p(l,{modelValue:_.value.login.themePrimary,"onUpdate:modelValue":i[33]||=e=>_.value.login.themePrimary=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),i[115]||=F(`h3`,{class:`section-title`},`报名填报页`,-1),p(Ee,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[p(I,{gutter:16},{default:P(()=>[p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`页面标题`},{default:P(()=>[p(l,{modelValue:_.value.apply.pageTitle,"onUpdate:modelValue":i[34]||=e=>_.value.apply.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`副标题(整页填报说明)`},{default:P(()=>[p(l,{modelValue:_.value.apply.headerSubtitle,"onUpdate:modelValue":i[35]||=e=>_.value.apply.headerSubtitle=e,placeholder:`展示在页面标题下方,可选用`},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),i[116]||=F(`h3`,{class:`section-title`},`评审端`,-1),p(Ee,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[p(I,{gutter:16},{default:P(()=>[p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`页面标题`},{default:P(()=>[p(l,{modelValue:_.value.review.pageTitle,"onUpdate:modelValue":i[36]||=e=>_.value.review.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`页脚版权`},{default:P(()=>[p(l,{modelValue:_.value.review.footerCopyright,"onUpdate:modelValue":i[37]||=e=>_.value.review.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),i[117]||=F(`h3`,{class:`section-title`},`运营后台`,-1),p(Ee,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[p(I,{gutter:16},{default:P(()=>[p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`登录页标题`},{default:P(()=>[p(l,{modelValue:_.value.admin.loginTitle,"onUpdate:modelValue":i[38]||=e=>_.value.admin.loginTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`页脚版权`},{default:P(()=>[p(l,{modelValue:_.value.admin.footerCopyright,"onUpdate:modelValue":i[39]||=e=>_.value.admin.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{xs:24,md:12},{default:P(()=>[p(y,{label:`侧栏产品名称`},{default:P(()=>[p(l,{modelValue:_.value.admin.sidebarProductName,"onUpdate:modelValue":i[40]||=e=>_.value.admin.sidebarProductName=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),p(s,{"native-type":`button`,type:`primary`,class:`mt-compact`,loading:ve.value,onClick:Pt},{default:P(()=>[...i[111]||=[r(`保存(含品牌文案)`,-1)]]),_:1},8,[`loading`])]),_:1}))]),_:1},8,[`modelValue`,`class`])),p(Ie,{modelValue:ie.value,"onUpdate:modelValue":i[42]||=e=>ie.value=e,title:`报名详情`,size:`min(760px, 94vw)`,"destroy-on-close":``},{default:P(()=>[ne((he(),be(`div`,qDe,[ae.value?(he(),be(re,{key:0},[p(Fe,{column:2,border:``,class:`application-detail-section`},{default:P(()=>[p(Pe,{label:`项目编号`},{default:P(()=>[r(N(ae.value.project_code||`—`),1)]),_:1}),p(Pe,{label:`状态`},{default:P(()=>[p(Ae,{type:Bt(ae.value.status),effect:`plain`},{default:P(()=>[r(N(zt(ae.value.status)),1)]),_:1},8,[`type`])]),_:1}),p(Pe,{label:`项目名称`,span:2},{default:P(()=>[r(N(ae.value.project_name||`—`),1)]),_:1}),p(Pe,{label:`负责人`},{default:P(()=>[r(N(ae.value.player_name||`—`),1)]),_:1}),p(Pe,{label:`学校`},{default:P(()=>[r(N(ae.value.school||`—`),1)]),_:1}),p(Pe,{label:`学历`},{default:P(()=>[r(N(ae.value.degree||`—`),1)]),_:1}),p(Pe,{label:`手机号`},{default:P(()=>[r(N(ae.value.contact_mobile||`—`),1)]),_:1}),p(Pe,{label:`邮箱`},{default:P(()=>[r(N(ae.value.contact_email||`—`),1)]),_:1}),p(Pe,{label:`组别`},{default:P(()=>[r(N(ae.value.entry_group||`—`),1)]),_:1}),p(Pe,{label:`企业`},{default:P(()=>[r(N(ae.value.company_name||`—`),1)]),_:1}),p(Pe,{label:`赛道`},{default:P(()=>[r(N(ae.value.track_title||`—`),1)]),_:1}),p(Pe,{label:`所在地`},{default:P(()=>[r(N([ae.value.location_country,ae.value.location_province,ae.value.location_city,ae.value.oversea_country].filter(Boolean).join(` / `)||`—`),1)]),_:1}),p(Pe,{label:`提交时间`},{default:P(()=>[r(N(Vt(ae.value.submitted_at)),1)]),_:1}),p(Pe,{label:`承诺书签署`},{default:P(()=>[r(N(Vt(ae.value.promise_signed_at)),1)]),_:1}),p(Pe,{label:`报名渠道`,span:2},{default:P(()=>[r(N(ae.value.signup_channel?`${ae.value.signup_channel.channel_name}(${ae.value.signup_channel.channel_code})`:ae.value.signup_channel_code||`—`),1)]),_:1})]),_:1}),i[119]||=F(`h3`,{class:`section-title`},`项目简介`,-1),F(`p`,JDe,N(ae.value.intro||`—`),1),i[120]||=F(`h3`,{class:`section-title`},`附件`,-1),p(ke,{data:Jt.value,border:``,"empty-text":`暂无附件`,class:`workspace-table workspace-table--mb`},{default:P(()=>[p(L,{label:`类型`,width:`120`},{default:P(({row:e})=>[r(N(Gt(e.kind)),1)]),_:1}),p(L,{label:`文件名`,"min-width":`220`,"show-overflow-tooltip":``},{default:P(({row:e})=>[r(N(e.original_name||`附件`),1)]),_:1}),p(L,{label:`大小`,width:`100`},{default:P(({row:e})=>[r(N(Ut(e.size)),1)]),_:1}),p(L,{label:`操作`,width:`90`,align:`right`},{default:P(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>$t(e.id,e.original_name)},{default:P(()=>[...i[118]||=[r(` 下载 `,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),i[121]||=F(`h3`,{class:`section-title`},`评审汇总`,-1),F(`div`,YDe,[F(`span`,null,`已评 `+N(ae.value.submitted_review_count)+` 人`,1),F(`span`,null,`总分 `+N(Ht(ae.value.team_sum)),1),F(`span`,null,`均分 `+N(Ht(ae.value.team_avg)),1)]),p(ke,{data:ae.value.review_scores,border:``,"empty-text":`暂无评分`,class:`workspace-table`},{default:P(()=>[p(L,{prop:`reviewer_name`,label:`评审员`,"min-width":`140`},{default:P(({row:e})=>[r(N(e.reviewer_name||`评审员 #${e.reviewer_id}`),1)]),_:1}),p(L,{label:`分数`,width:`100`},{default:P(({row:e})=>[r(N(Ht(e.line_total)),1)]),_:1}),p(L,{label:`更新时间`,"min-width":`160`},{default:P(({row:e})=>[r(N(Vt(e.updated_at)),1)]),_:1})]),_:1},8,[`data`])],64)):n(``,!0)])),[[Be,te.value]])]),_:1},8,[`modelValue`]),p(Le,{modelValue:tt.value,"onUpdate:modelValue":i[45]||=e=>tt.value=e,title:nt.value===`signup`?`新建报名表版本`:`新建评审表版本`,width:`480px`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[p(s,{onClick:i[44]||=e=>tt.value=!1},{default:P(()=>[...i[123]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,onClick:dn},{default:P(()=>[...i[124]||=[r(`创建`,-1)]]),_:1})]),default:P(()=>[p(Ee,{"label-position":`top`},{default:P(()=>[p(y,{label:`版本名称`},{default:P(()=>[p(l,{modelValue:rt.value,"onUpdate:modelValue":i[43]||=e=>rt.value=e,autocomplete:`off`},null,8,[`modelValue`]),i[122]||=F(`p`,{class:`text-muted small mt-2 mb-0`},`将创建空字段列表,保存后可在「编辑」中配置。`,-1)]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),p(Le,{modelValue:it.value,"onUpdate:modelValue":i[51]||=e=>it.value=e,title:`编辑表单定义`,width:`min(960px, 96vw)`,top:`4vh`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[p(s,{onClick:i[50]||=e=>it.value=!1},{default:P(()=>[...i[126]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,onClick:gn},{default:P(()=>[...i[127]||=[r(`保存`,-1)]]),_:1})]),default:P(()=>[p(Ee,{"label-position":`top`},{default:P(()=>[p(y,{label:`版本名称`},{default:P(()=>[p(l,{modelValue:st.value,"onUpdate:modelValue":i[46]||=e=>st.value=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1})]),_:1}),p(Ne,{modelValue:ft.value,"onUpdate:modelValue":i[49]||=e=>ft.value=e},{default:P(()=>[p(De,{label:`可视化设计`,name:`visual`},{default:P(()=>[p(ute,{modelValue:dt.value,"onUpdate:modelValue":i[47]||=e=>dt.value=e,purpose:ut.value},null,8,[`modelValue`,`purpose`])]),_:1}),p(De,{label:`JSON 源码`,name:`json`},{default:P(()=>[i[125]||=F(`p`,{class:`text-muted small mb-2`},` 适合粘贴备份或高级字段;切换回「可视化」时会尽量同步(仅识别常用属性)。 `,-1),p(l,{modelValue:ct.value,"onUpdate:modelValue":i[48]||=e=>ct.value=e,type:`textarea`,rows:16,class:`font-monospace`,spellcheck:`false`,onBlur:bt},null,8,[`modelValue`])]),_:1})]),_:1},8,[`modelValue`]),lt.value?(he(),be(`p`,XDe,N(lt.value),1)):n(``,!0)]),_:1},8,[`modelValue`]),p(Le,{modelValue:de.value,"onUpdate:modelValue":i[62]||=e=>de.value=e,title:fe.value?`编辑渠道`:`新增渠道`,width:`600px`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[p(s,{onClick:i[61]||=e=>de.value=!1},{default:P(()=>[...i[137]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,loading:pe.value,onClick:on},{default:P(()=>[...i[138]||=[r(`保存`,-1)]]),_:1},8,[`loading`])]),default:P(()=>[p(Ee,{"label-position":`top`},{default:P(()=>[fe.value?(he(),v(y,{key:0,label:`渠道编码`},{default:P(()=>[p(l,{"model-value":C.value.find(e=>e.id===fe.value)?.channel_code??``,disabled:``},null,8,[`model-value`])]),_:1})):n(``,!0),p(y,{label:`渠道名称`},{default:P(()=>[p(l,{modelValue:_e.value.channel_name,"onUpdate:modelValue":i[52]||=e=>_e.value.channel_name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),p(y,{label:`共享密钥`},{default:P(()=>[p(l,{modelValue:_e.value.shared_secret,"onUpdate:modelValue":i[53]||=e=>_e.value.shared_secret=e,autocomplete:`off`},{append:P(()=>[p(s,{onClick:nn},{default:P(()=>[...i[128]||=[r(`生成`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),fe.value?(he(),be(re,{key:1},[p(y,{label:`加密算法`},{default:P(()=>[p(l,{"model-value":ge.value?.encryption_algorithm||`—`,readonly:``},null,8,[`model-value`])]),_:1}),p(y,{label:`入口敏感字段加密`},{default:P(()=>[p(k,{modelValue:_e.value.entry_encryption_enabled,"onUpdate:modelValue":i[54]||=e=>_e.value.entry_encryption_enabled=e,"active-text":`启用`,"inactive-text":`关闭`},null,8,[`modelValue`])]),_:1}),p(y,{label:`加密公钥(PEM)`},{default:P(()=>[p(l,{"model-value":ge.value?.encryption_public_key||``,type:`textarea`,rows:8,readonly:``,placeholder:`暂无加密公钥`,class:`channel-public-key`},null,8,[`model-value`]),p(s,{class:`channel-public-key-copy`,disabled:!ge.value?.encryption_public_key,onClick:tn},{default:P(()=>[...i[129]||=[r(` 复制公钥 `,-1)]]),_:1},8,[`disabled`])]),_:1})],64)):n(``,!0),p(y,{label:`报名成功回调`},{default:P(()=>[p(ze,{modelValue:_e.value.success_callback_type,"onUpdate:modelValue":i[55]||=e=>_e.value.success_callback_type=e},{default:P(()=>[p(Re,{value:`none`},{default:P(()=>[...i[130]||=[r(`不回调`,-1)]]),_:1}),p(Re,{value:`web`},{default:P(()=>[...i[131]||=[r(`URL`,-1)]]),_:1}),p(Re,{value:`mini_program`},{default:P(()=>[...i[132]||=[r(`小程序`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),_e.value.success_callback_type===`web`?(he(),v(y,{key:2,label:`成功回跳地址`},{default:P(()=>[p(l,{modelValue:_e.value.success_callback_url,"onUpdate:modelValue":i[56]||=e=>_e.value.success_callback_url=e,autocomplete:`off`,placeholder:`https://example.com/...`},null,8,[`modelValue`])]),_:1})):n(``,!0),_e.value.success_callback_type===`mini_program`?(he(),be(re,{key:3},[p(y,{label:`小程序页面路径`},{default:P(()=>[p(l,{modelValue:_e.value.mini_program_callback_path,"onUpdate:modelValue":i[57]||=e=>_e.value.mini_program_callback_path=e,autocomplete:`off`,placeholder:`/pages/signup/result`},null,8,[`modelValue`]),i[133]||=F(`p`,{class:`form-hint`},` redirectTo、navigateTo、reLaunch 可带查询参数,系统会追加 state、application_id、status、hash 等回调参数;switchTab 只能跳 tabBar 页面,不能携带查询参数。 `,-1)]),_:1}),p(y,{label:`小程序路由方式`},{default:P(()=>[p(M,{modelValue:_e.value.mini_program_callback_method,"onUpdate:modelValue":i[58]||=e=>_e.value.mini_program_callback_method=e,class:`w-100`},{default:P(()=>[p(j,{label:`redirectTo(替换当前页面)`,value:`redirectTo`}),p(j,{label:`navigateTo(打开新页面)`,value:`navigateTo`}),p(j,{label:`reLaunch(重启到指定页)`,value:`reLaunch`}),p(j,{label:`switchTab(返回 tabBar 页面)`,value:`switchTab`})]),_:1},8,[`modelValue`])]),_:1})],64)):n(``,!0),_e.value.success_callback_type===`none`?(he(),v(y,{key:4,label:`回调说明`},{default:P(()=>[...i[134]||=[F(`p`,{class:`form-hint mb-0`},`选择不回调时,选手提交成功后只展示系统报名成功提示。`,-1)]]),_:1})):n(``,!0),p(y,{label:`备注`},{default:P(()=>[p(l,{modelValue:_e.value.remark,"onUpdate:modelValue":i[59]||=e=>_e.value.remark=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1}),p(y,{label:`状态`},{default:P(()=>[p(ze,{modelValue:_e.value.status,"onUpdate:modelValue":i[60]||=e=>_e.value.status=e},{default:P(()=>[p(Re,{value:`enabled`},{default:P(()=>[...i[135]||=[r(`启用`,-1)]]),_:1}),p(Re,{value:`disabled`},{default:P(()=>[...i[136]||=[r(`停用`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),p(Le,{modelValue:ce.value,"onUpdate:modelValue":i[69]||=e=>ce.value=e,title:le.value?`编辑赛道`:`新增赛道`,width:`520px`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[p(s,{onClick:i[68]||=e=>ce.value=!1},{default:P(()=>[...i[140]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,onClick:Lt},{default:P(()=>[...i[141]||=[r(`保存`,-1)]]),_:1})]),default:P(()=>[p(Ee,{"label-position":`top`},{default:P(()=>[p(y,{label:`赛道编码`},{default:P(()=>[p(l,{modelValue:ue.value.track_code,"onUpdate:modelValue":i[63]||=e=>ue.value.track_code=e,disabled:!!le.value,autocomplete:`off`},null,8,[`modelValue`,`disabled`])]),_:1}),p(y,{label:`标题`},{default:P(()=>[p(l,{modelValue:ue.value.title,"onUpdate:modelValue":i[64]||=e=>ue.value.title=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),p(y,{label:`简介`},{default:P(()=>[p(l,{modelValue:ue.value.description,"onUpdate:modelValue":i[65]||=e=>ue.value.description=e,type:`textarea`,rows:2},null,8,[`modelValue`])]),_:1}),p(I,{gutter:16},{default:P(()=>[p(S,{span:12},{default:P(()=>[p(y,{label:`排序`},{default:P(()=>[p(Me,{modelValue:ue.value.sort,"onUpdate:modelValue":i[66]||=e=>ue.value.sort=e,step:1,"controls-position":`right`,style:{width:`100%`}},null,8,[`modelValue`])]),_:1})]),_:1}),p(S,{span:12},{default:P(()=>[p(y,{label:`状态`},{default:P(()=>[p(Se,{modelValue:ue.value.is_enabled,"onUpdate:modelValue":i[67]||=e=>ue.value.is_enabled=e},{default:P(()=>[...i[139]||=[r(`启用`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`])])}}}),[[`__scopeId`,`data-v-696d4b28`]]);export{ZDe as default};