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.

99 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{$ as e,$t as t,A as n,At as r,C as i,Dt as a,G as o,Gt as s,H as c,Ht as l,J as u,Jt as d,L as f,Lt as p,Mt as m,Nt as h,O as g,Ot as _,Pt as v,Q as y,Qt as b,Rt as x,S,St as C,T as w,Ut as T,Wt as E,X as D,Xt as O,Yt as ee,Zt as k,_ as A,a as j,an as M,cn as te,ct as N,dn as ne,en as re,f as ie,gt as ae,h as oe,in as se,jt as ce,k as P,kt as le,ln as ue,lt as de,m as fe,on as pe,ot as me,rn as he,rt as ge,s as _e,sn as ve,st as ye,un as be,vt as F,w as xe,x as Se,xt as Ce,zt as we}from"./vue.runtime.esm-bundler-Dt_AyShc.js";import{C as Te,a as Ee,f as De,h as I,m as L,p as Oe,s as ke}from"./index-DDrON-pi.js";import{t as Ae}from"./_plugin-vue_export-helper-CXTkFu_Z.js";import{c as je,i as Me,l as Ne,n as Pe,o as Fe,r as Ie,s as Le,t as Re}from"./competitions-BARz4gh0.js";import{t as ze}from"./adminCompetition-BASh_Kak.js";import{a as Be,d as Ve,i as He,n as Ue,r as We,t as Ge}from"./competitionBranding-DkUvLGz5.js";import{n as Ke,r as qe,t as Je}from"./datetimeShanghai-F85iiY-2.js";import{n as Ye}from"./downloadFeedback-1jP7ztN9.js";import{a as Xe}from"./signupOptionCodes-DKd6kBUW.js";import{n as Ze}from"./publicSourceChannels-BnvzNnJp.js";import{i as Qe,n as $e,r as et,t as tt}from"./signupChannels-BHuqtPWR.js";import{a as nt,n as rt,o as it,r as at,s as ot,t as st}from"./applications-CFeKcP9D.js";import{a as ct,n as lt,t as ut}from"./schemaAdminColumns-FUOi0JjE.js";import{t as eee}from"./AudienceSessionsPane-CDegbh3W.js";import{t as dt}from"./AudienceRegistrationsPane-B79KVgV_.js";import{i as ft,n as pt,r as mt,t as ht}from"./competitionAdmins-CK3jnM3f.js";async function gt(e,t){let{data:n}=await ke.get(`/competitions/${e}/form-schemas`,{params:t?{purpose:t}:{}}),r=n;return{data:r.data??[],signupFieldRegistry:r.meta?.signup_field_registry}}async function tee(e,t){let{data:n}=await ke.get(`/competitions/${e}/form-schemas/${t}`),r=n?.data??n;if(!r||typeof r!=`object`||!(`id`in r))throw Error(`表单详情无效`);return r}async function nee(e,t){let{data:n}=await ke.post(`/competitions/${e}/form-schemas`,t);return n}async function _t(e,t,n){let{data:r}=await ke.patch(`/competitions/${e}/form-schemas/${t}`,n);return r}async function ree(e,t){await ke.delete(`/competitions/${e}/form-schemas/${t}`)}var vt=`commitment_accepted`,yt=`commitment_promise`,bt={scalar_field_keys:[`player_name`,`school`,`degree`,`contact_email`,`contact_mobile`,`company_name`,`project_name`,`track`,`location_country`,`location_province`,`location_city`,`oversea_country`,`event_location`,`team_members`,`intro`,`recommend`],file_field_keys:[...[`plan`,`supporting`]],commitment_field_key:vt,scalar_type_hints:{player_name:[`text`],school:[`text`],degree:[`select`],contact_email:[`email`,`text`],contact_mobile:[`tel`,`text`],company_name:[`text`],project_name:[`text`],track:[`select`],location_country:[`select`],location_province:[`select`,`text`],location_city:[`select`,`text`],oversea_country:[`text`],event_location:[`select`,`text`],team_members:[`text`,`textarea`],intro:[`textarea`,`text`],recommend:[`text`,`textarea`]},generic_scalar_types:[`text`,`textarea`,`email`,`tel`,`select`,`number`,`date`],all_supported_form_keys:[]};bt.all_supported_form_keys=[...bt.scalar_field_keys,...bt.file_field_keys,bt.commitment_field_key];var xt=bt;function St(e){e&&Array.isArray(e.scalar_field_keys)&&(xt=e)}function Ct(e){let t=xt;return t.scalar_type_hints[e]??t.generic_scalar_types}function wt(e,t){let n=e.trim(),r=t.trim();if(!n)return`存在未填写「字段 key」的项(须与 applications 表列名一致)`;let i=xt;if(n===i.commitment_field_key)return r===`checkbox`||r===`commitment_promise`?null:`参赛承诺书字段须为 checkbox 类型`;if(i.file_field_keys.includes(n))return r===`file`?null:`附件字段「${n}」须为 file 类型`;if(!i.scalar_field_keys.includes(n))return i.generic_scalar_types.includes(r)?null:`自定义字段「${n}」类型须为:${i.generic_scalar_types.join(` / `)}`;let a=Ct(n);return!r||!a.includes(r)?`字段「${n}」类型须为:${a.join(` / `)}`:null}function Tt(e){Object.getOwnPropertySymbols(e).forEach(t=>{Fi[t]=e[t]})}function Et(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Bi}}function Dt(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=Bi){return e&&(s?(e.helper(ti),e.helper(Gt(e.inSSR,l))):e.helper(Wt(e.inSSR,l)),o&&e.helper(pi)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function Ot(e,t=Bi){return{type:17,loc:t,elements:e}}function kt(e,t=Bi){return{type:15,loc:t,properties:e}}function At(e,t){return{type:16,loc:Bi,key:O(e)?jt(e,!0):e,value:t}}function jt(e,t=!1,n=Bi,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:O(e)?jt(e,!1,t):e}}function Nt(e,t=Bi){return{type:8,loc:t,children:e}}function Pt(e,t=[],n=Bi){return{type:14,loc:n,callee:e,arguments:t}}function Ft(e,t=void 0,n=!1,r=!1,i=Bi){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function It(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Bi}}function Lt(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Bi}}function Rt(e){return{type:21,body:e,loc:Bi}}function zt(e){return{type:22,elements:e,loc:Bi}}function Bt(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Bi}}function Vt(e,t){return{type:24,left:e,right:t,loc:Bi}}function Ht(e){return{type:25,expressions:e,loc:Bi}}function Ut(e){return{type:26,returns:e,loc:Bi}}function Wt(e,t){return e||t?ii:ai}function Gt(e,t){return e||t?ni:ri}function Kt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Wt(r,e.isComponent)),t(ti),t(Gt(r,e.isComponent)))}function qt(e){return e>=97&&e<=122||e>=65&&e<=90}function Jt(e){return e===32||e===10||e===9||e===12||e===13}function Yt(e){return e===47||e===62||Jt(e)}function Xt(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Zt(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Qt(e,t){let n=Zt(`MODE`,t),r=Zt(e,t);return n===3?r===!0:r!==!1}function $t(e,t,n,...r){return Qt(e,t)}function en(e,t,n,...r){if(Zt(e,t)===`suppress-warning`)return;let{message:i,link:a}=Ki[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 tn(e){throw e}function nn(e){}function rn(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 an(e,t,n=!1,r=[],i=Object.create(null)){}function on(e,t,n){return!1}function sn(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 cn(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 ln(e,t){for(let n of e.params)for(let e of mn(n))t(e)}function un(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 mn(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else dn(e)?fn(e,!0,t):e.type===`SwitchStatement`&&pn(e,!0,t)}function dn(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function fn(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 mn(e.id))n(t)}function pn(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 mn(t.id))n(e);un(r,n)}}function mn(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`?mn(n.argument,t):mn(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&mn(e,t)});break;case`RestElement`:mn(e.argument,t);break;case`AssignmentPattern`:mn(e.left,t);break}return t}function hn(e){return Qi.includes(e.type)?hn(e.expression):e}function gn(e){switch(e){case`Teleport`:case`teleport`:return Zr;case`Suspense`:case`suspense`:return Qr;case`KeepAlive`:case`keep-alive`:return $r;case`BaseTransition`:case`base-transition`:return ei}}function _n(e,t,n=t.length){return vn({offset:e.offset,line:e.line,column:e.column},t,n)}function vn(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 yn(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function bn(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)&&(O(t)?i.name===t:t.test(i.name)))return i}}function xn(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)&&Sn(a.arg,t))return a}}function Sn(e,t){return!!(e&&$i(e)&&e.content===t)}function Cn(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function wn(e){return e.type===5||e.type===2}function Tn(e){return e.type===7&&e.name===`pre`}function En(e){return e.type===7&&e.name===`slot`}function Dn(e){return e.type===1&&e.tagType===3}function On(e){return e.type===1&&e.tagType===2}function kn(e,t=[]){if(e&&!O(e)&&e.type===14){let n=e.callee;if(!O(n)&&pa.has(n))return kn(e.arguments[0],t.concat(e))}return[e,t]}function An(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!O(i)&&i.type===14){let e=kn(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||O(i))r=kt([t]);else if(i.type===14){let e=i.arguments[0];!O(e)&&e.type===15?jn(t,e)||e.properties.unshift(t):i.callee===Ci?r=Pt(n.helper(vi),[kt([t]),i]):i.arguments.unshift(kt([t])),!r&&(r=i)}else i.type===15?(jn(t,i)||i.properties.unshift(t),r=i):(r=Pt(n.helper(vi),[kt([t]),i]),o&&o.callee===Si&&(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 jn(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 Nn(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&&(Nn(r.arg,t)||Nn(r.exp,t)))return!0}return e.children.some(e=>Nn(e,t));case 11:return Nn(e.source,t)?!0:e.children.some(e=>Nn(e,t));case 9:return e.branches.some(e=>Nn(e,t));case 10:return Nn(e.condition,t)?!0:e.children.some(e=>Nn(e,t));case 4:return!e.isStatic&&ta(e.content)&&!!t[e.content];case 8:return e.children.some(e=>E(e)&&Nn(e,t));case 5:case 12:return Nn(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Pn(e){return e.type===14&&e.callee===Ni?e.arguments[1].returns:e}function Fn(e){for(let t=0;t<e.length;t++)if(!Jt(e.charCodeAt(t)))return!1;return!0}function In(e){return e.type===2&&Fn(e.content)||e.type===12&&In(e.content)}function Ln(e){return e.type===3||In(e)}function Rn(e){let t=e.loc,n=e.content,r=n.match(ma);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return nr(e,!1,Qn(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(Aa,``).trim(),l=i.indexOf(c),u=c.match(ka);if(u){c=c.replace(ka,``).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 zn(e,t){return va.slice(e,t)}function Bn(e){Oa.inSFCRoot&&(ya.innerLoc=Qn(e+1,e+1)),Zn(ya);let{tag:t,ns:n}=ya;n===0&&ga.isPreTag(t)&&wa++,ga.isVoidTag(t)?Hn(ya,e):(Da.unshift(ya),(n===1||n===2)&&(Oa.inXML=!0)),ya=null}function Vn(e,t,n){{let t=Da[0]&&Da[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=ga.decodeEntities(e,!1))}let r=Da[0]||_a,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,er(i.loc,n)):r.children.push({type:2,content:e,loc:Qn(t,n)})}function Hn(e,t,n=!1){n?er(e.loc,Wn(t,60)):er(e.loc,Un(t,62)+1),Oa.inSFCRoot&&(e.children.length?e.innerLoc.end=h({},e.children[e.children.length-1].loc.end):e.innerLoc.end=h({},e.innerLoc.start),e.innerLoc.source=zn(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Ta||(r===`slot`?e.tagType=2:Gn(e)?e.tagType=3:Kn(e)&&(e.tagType=1)),Oa.inRCDATA||(e.children=Jn(a)),i===0&&ga.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&ga.isPreTag(r)&&wa--,Ea===e&&(Ta=Oa.inVPre=!1,Ea=null),Oa.inXML&&(Da[0]?Da[0].ns:ga.ns)===0&&(Oa.inXML=!1);{let t=e.props;if(!Oa.inSFCRoot&&Qt(`COMPILER_NATIVE_TEMPLATE`,ga)&&e.tag===`template`&&!Gn(e)){let t=Da[0]||_a,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&&$t(`COMPILER_INLINE_TEMPLATE`,ga,n.loc)&&e.children.length&&(n.value={type:2,content:zn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Un(e,t){let n=e;for(;va.charCodeAt(n)!==t&&n<va.length-1;)n++;return n}function Wn(e,t){let n=e;for(;va.charCodeAt(n)!==t&&n>=0;)n--;return n}function Gn({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&ja.has(t[e].name))return!0}return!1}function Kn({tag:e,props:t}){if(ga.isCustomElement(e))return!1;if(e===`component`||qn(e.charCodeAt(0))||gn(e)||ga.isBuiltInComponent&&ga.isBuiltInComponent(e)||ga.isNativeTag&&!ga.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:`)||$t(`COMPILER_IS_ON_ELEMENT`,ga,n.loc)))return!0}else if(n.name===`bind`&&Sn(n.arg,`is`)&&$t(`COMPILER_IS_ON_ELEMENT`,ga,n.loc))return!0}return!1}function qn(e){return e>64&&e<91}function Jn(e){let t=ga.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(wa)i.content=i.content.replace(Ma,`
`);else if(Fn(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&&Yn(i.content)))?(n=!0,e[r]=null):i.content=` `}else t&&(i.content=Xn(i.content))}return n?e.filter(Boolean):e}function Yn(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Xn(e){let t=``,n=!1;for(let r=0;r<e.length;r++)Jt(e.charCodeAt(r))?n||=(t+=` `,!0):(t+=e[r],n=!1);return t}function Zn(e){(Da[0]||_a).children.push(e)}function Qn(e,t){return{start:Oa.getPos(e),end:t==null?t:Oa.getPos(t),source:t==null?t:zn(e,t)}}function $n(e){return Qn(e.start.offset,e.end.offset)}function er(e,t){e.end=Oa.getPos(t),e.source=zn(e.start.offset,t)}function tr(e){let t={type:6,name:e.rawName,nameLoc:Qn(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 nr(e,t=!1,n,r=0,i=0){return jt(e,t,n,r)}function rr(e,t,n){ga.onError(rn(e,Qn(t,t),void 0,n))}function ir(){Oa.reset(),ya=null,ba=null,xa=``,Sa=-1,Ca=-1,Da.length=0}function ar(e,t){if(ir(),va=e,ga=h({},ha),t){let e;for(e in t)t[e]!=null&&(ga[e]=t[e])}Oa.mode=ga.parseMode===`html`?1:ga.parseMode===`sfc`?2:0,Oa.inXML=ga.ns===1||ga.ns===2;let n=t&&t.delimiters;n&&(Oa.delimiterOpen=Xt(n[0]),Oa.delimiterClose=Xt(n[1]));let r=_a=Et([],e);return Oa.parse(va),r.loc=Qn(0,e.length),r.children=Jn(r.children),_a=null,r}function or(e,t){cr(e,void 0,t,!!sr(e))}function sr(e){let t=e.children.filter(e=>e.type!==3);return t.length===1&&t[0].type===1&&!On(t[0])?t[0]:null}function cr(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:lr(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)&&dr(s,n)>=2){let t=fr(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:lr(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++,cr(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)cr(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;t<s.branches.length;t++)cr(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&&x(e.codegenNode.children))e.codegenNode.children=c(Ot(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!x(e.codegenNode.children)&&e.codegenNode.children.type===15){let t=l(e.codegenNode,`default`);t&&(t.returns=c(Ot(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&&!x(t.codegenNode.children)&&t.codegenNode.children.type===15){let n=bn(e,`slot`,!0),r=n&&n.arg&&l(t.codegenNode,n.arg);r&&(r.returns=c(Ot(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&&!x(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 lr(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=dr(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=lr(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=lr(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(ti),t.removeHelper(Gt(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Wt(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 lr(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(O(r)||k(r))continue;let i=lr(r,t);if(i===0)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}function ur(e,t){if(e.type===14&&!O(e.callee)&&Na.has(e.callee)){let n=e.arguments[0];if(n.type===4)return lr(n,t);if(n.type===14)return ur(n,t)}return 0}function dr(e,t){let n=3,r=fr(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=lr(i,t);if(o===0)return o;o<n&&(n=o);let s;if(s=a.type===4?lr(a,t):a.type===14?ur(a,t):0,s===0)return s;s<n&&(n=s)}}return n}function fr(e){let t=e.codegenNode;if(t.type===13)return t.props}function pr(e,{filename:t=``,prefixIdentifiers:n=!1,hoistStatic:i=!1,hmr:a=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:l=null,isBuiltInComponent:u=r,isCustomElement:d=r,expressionPlugins:f=[],scopeId:p=null,slotted:h=!0,ssr:g=!1,inSSR:v=!1,ssrCssVars:y=``,bindingMetadata:b=_,inline:x=!1,isTS:S=!1,onError:C=tn,onWarn:w=nn,compatConfig:T}){let E=t.replace(/\?.*$/,``).match(/([^/\\]+)\.\w+$/),D={filename:t,selfName:E&&m(ce(E[1])),prefixIdentifiers:n,hoistStatic:i,hmr:a,cacheHandlers:o,nodeTransforms:s,directiveTransforms:c,transformHoist:l,isBuiltInComponent:u,isCustomElement:d,expressionPlugins:f,scopeId:p,slotted:h,ssr:g,inSSR:v,ssrCssVars:y,bindingMetadata:b,inline:x,isTS:S,onError:C,onWarn:w,compatConfig:T,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`_${Fi[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:r,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){O(e)&&(e=jt(e)),D.hoists.push(e);let t=jt(`_hoisted_${D.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=Lt(D.cached.length,e,t,n);return D.cached.push(r),r}};return D.filters=new Set,D}function mr(e,t){let n=pr(e,t);_r(e,n),t.hoistStatic&&or(e,n),t.ssr||hr(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 hr(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=sr(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&Kt(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=Dt(t,n(Xr),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function gr(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let i=e.children[n];O(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,_r(i,t))}}function _r(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&&(x(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(oi);break;case 5:t.ssr||t.helper(_i);break;case 9:for(let n=0;n<e.branches.length;n++)_r(e.branches[n],t);break;case 10:case 11:case 1:case 0:gr(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function vr(e,t){let n=O(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(En))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 iee(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`_${Fi[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 yr(e,t={}){let n=iee(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(aee(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(Fa).join(`, `)} } = _Vue
`,-1),c())),e.components.length&&(br(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(br(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),br(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?Cr(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 aee(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 { ${[ii,ai,oi,si,ci].filter(e=>u.includes(e)).map(Fa).join(`, `)} } = _Vue
`,-1)),oee(e.hoists,t),a(),i(`return `)}function br(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?fi:t===`component`?li:di);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 oee(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} = `),Cr(a,t),r())}t.pure=!1}function xr(e,t){let n=e.length>3||!1;t.push(`[`),n&&t.indent(),Sr(e,t,n),n&&t.deindent(),t.push(`]`)}function Sr(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;o<e.length;o++){let s=e[o];O(s)?i(s,-3):x(s)?xr(s,t):Cr(s,t),o<e.length-1&&(n?(r&&i(`,`),a()):r&&i(`, `))}}function Cr(e,t){if(O(e)){t.push(e,-3);return}if(k(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Cr(e.codegenNode,t);break;case 2:see(e,t);break;case 4:wr(e,t);break;case 5:cee(e,t);break;case 12:Cr(e.codegenNode,t);break;case 8:Tr(e,t);break;case 3:uee(e,t);break;case 13:dee(e,t);break;case 14:pee(e,t);break;case 15:mee(e,t);break;case 17:hee(e,t);break;case 18:gee(e,t);break;case 19:_ee(e,t);break;case 20:vee(e,t);break;case 21:Sr(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 see(e,t){t.push(JSON.stringify(e.content),-3,e)}function wr(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function cee(e,t){let{push:n,helper:r,pure:i}=t;i&&n(Pa),n(`${r(_i)}(`),Cr(e.content,t),n(`)`)}function Tr(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];O(r)?t.push(r,-3):Cr(r,t)}}function lee(e,t){let{push:n}=t;e.type===8?(n(`[`),Tr(e,t),n(`]`)):e.isStatic?n(ta(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}function uee(e,t){let{push:n,helper:r,pure:i}=t;i&&n(Pa),n(`${r(oi)}(${JSON.stringify(e.content)})`,-3,e)}function dee(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(pi)+`(`),d&&n(`(${r(ti)}(${f?`true`:``}), `),i&&n(Pa),n(r(d?Gt(t.inSSR,p):Wt(t.inSSR,p))+`(`,-2,e),Sr(fee([a,o,s,m,l]),t),n(`)`),d&&n(`)`),u&&(n(`, `),Cr(u,t),n(`)`))}function fee(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(e=>e||`null`)}function pee(e,t){let{push:n,helper:r,pure:i}=t,a=O(e.callee)?e.callee:r(e.callee);i&&n(Pa),n(a+`(`,-2,e),Sr(e.arguments,t),n(`)`)}function mee(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];lee(r,t),n(`: `),Cr(i,t),e<o.length-1&&(n(`,`),a())}s&&i(),n(s?`}`:` }`)}function hee(e,t){xr(e.elements,t)}function gee(e,t){let{push:n,indent:r,deindent:i}=t,{params:a,returns:o,body:s,newline:c,isSlot:l}=e;l&&n(`_${Fi[Ai]}(`),n(`(`,-2,e),x(a)?Sr(a,t):a&&Cr(a,t),n(`) => `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),x(o)?xr(o,t):Cr(o,t)):s&&Cr(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function _ee(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=!ta(n.content);e&&o(`(`),wr(n,t),e&&o(`)`)}else o(`(`),Cr(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),Cr(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,Cr(i,t),u||t.indentLevel--,a&&c(!0)}function vee(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(Di)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),Cr(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(Di)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function Er(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function Dr(e){return O(e)?e:e.type===4?e.content:e.children.map(Dr).join(``)}function Or(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(rn(28,t.loc)),t.exp=jt(`true`,!1,r)}if(t.name===`if`){let i=kr(e,t),a={type:9,loc:$n(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&&Ln(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(rn(30,e.loc)),n.removeNode();let i=kr(e,t);o.branches.push(i);let a=r&&r(o,i,!1);_r(i,n),a&&a(),n.currentNode=null}else n.onError(rn(30,e.loc));break}}}function kr(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!bn(e,`for`)?e.children:[e],userKey:xn(e,`key`),isTemplateIf:n}}function Ar(e,t,n){return e.condition?It(e.condition,jr(e,t,n),Pt(n.helper(oi),[`""`,`true`])):jr(e,t,n)}function jr(e,t,n){let{helper:r}=n,i=At(`key`,jt(`${t}`,!1,Bi,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 An(e,i,n),e}else return Dt(n,r(Xr),kt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=Pn(e);return t.type===13&&Kt(t,n),An(t,i,n),e}}function yee(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 Mr(e,t,n,r){if(!t.exp){n.onError(rn(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(rn(32,t.loc));return}Nr(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:Dn(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function Nr(e,t){e.finalized||=!0}function Pr({value:e,key:t,index:n},r=[]){return Fr([e,t,n,...r])}function Fr(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||jt(`_`.repeat(t+1),!1))}function Ir(e,t,n=Ha){t.helper(Ai);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=bn(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!$i(e)&&(s=!0),a.push(At(e||jt(`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(!Dn(i)||!(m=bn(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(rn(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=jt(`default`,!0),exp:v,loc:y}=m,b;$i(_)?b=_?_.content:`default`:s=!0;let x=bn(i,`for`),S=n(v,x,h,g),C,w;if(C=bn(i,`if`))s=!0,o.push(It(C.exp,Lr(_,S,p++),za));else if(w=bn(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],Ln(i)););if(i&&Dn(i)&&bn(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?It(w.exp,Lr(_,S,p++),za):Lr(_,S,p++)}else t.onError(rn(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Nr(e,t),o.push(Pt(t.helper(mi),[e.source,Ft(Pr(e),Lr(_,S),!0)]))):t.onError(rn(32,x.loc))}else{if(b){if(f.has(b)){t.onError(rn(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(At(_,S))}}if(!c){let e=(e,r)=>{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),At(`default`,a)};l?d.length&&!d.every(In)&&(u?t.onError(rn(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:Rr(e.children)?3:1,h=kt(a.concat(At(`_`,jt(m+``,!1))),i);return o.length&&(h=Pt(t.helper(gi),[h,Ot(o)])),{slots:h,hasDynamicSlots:s}}function Lr(e,t,n){let r=[At(`name`,e),At(`fn`,t)];return n!=null&&r.push(At(`key`,jt(String(n),!0))),kt(r)}function Rr(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||Rr(n.children))return!0;break;case 9:if(Rr(n.branches))return!0;break;case 10:case 11:if(Rr(n.children))return!0;break}}return!1}function zr(e,t,n=!1){let{tag:r}=e,i=Ur(r),a=xn(e,`is`,!1,!0);if(a)if(i||Qt(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&jt(a.value.content,!0):(e=a.exp,e||=jt(`is`,!1,a.arg.loc)),e)return Pt(t.helper(ui),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=gn(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(li),t.components.add(r),Mn(r,`component`))}function Br(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:c,children:l}=e,u=[],f=[],p=[],m=l.length>0,h=!1,g=0,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=[],w=e=>{u.length&&(f.push(kt(Vr(u),c)),u=[]),e&&f.push(e)},T=()=>{t.scopes.vFor>0&&u.push(At(jt(`ref_for`,!0),jt(`true`)))},E=({key:e,value:n})=>{if($i(e)){let a=e.content,o=s(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!d(a)&&(b=!0),o&&d(a)&&(S=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&lr(n,t)>0)return;a===`ref`?_=!0:a===`class`?v=!0:a===`style`?y=!0:a!==`key`&&!C.includes(a)&&C.push(a),r&&(a===`class`||a===`style`)&&!C.includes(a)&&C.push(a)}else x=!0};for(let i=0;i<n.length;i++){let s=n[i];if(s.type===6){let{loc:e,name:n,nameLoc:r,value:i}=s;if(n===`ref`&&(_=!0,T()),n===`is`&&(Ur(o)||i&&i.content.startsWith(`vue:`)||Qt(`COMPILER_IS_ON_ELEMENT`,t)))continue;u.push(At(jt(n,!0,r),jt(i?i.content:``,!0,i?i.loc:e)))}else{let{name:n,arg:i,exp:l,loc:d,modifiers:_}=s,v=n===`bind`,y=n===`on`;if(n===`slot`){r||t.onError(rn(40,d));continue}if(n===`once`||n===`memo`||n===`is`||v&&Sn(i,`is`)&&(Ur(o)||Qt(`COMPILER_IS_ON_ELEMENT`,t))||y&&a)continue;if((v&&Sn(i,`key`)||y&&m&&Sn(i,`vue:before-update`))&&(h=!0),v&&Sn(i,`ref`)&&T(),!i&&(v||y)){if(x=!0,l)if(v){if(w(),Qt(`COMPILER_V_BIND_OBJECT_ORDER`,t)){f.unshift(l);continue}T(),w(),f.push(l)}else w({type:14,loc:d,callee:t.helper(Ci),arguments:r?[l]:[l,`true`]});else t.onError(rn(v?34:35,d));continue}v&&_.some(e=>e.content===`prop`)&&(g|=32);let b=t.directiveTransforms[n];if(b){let{props:n,needRuntime:r}=b(s,e,t);!a&&n.forEach(E),y&&i&&!$i(i)?w(kt(n,c)):u.push(...n),r&&(p.push(s),k(r)&&Ua.set(s,r))}else we(n)||(p.push(s),m&&(h=!0))}}let D;if(f.length?(w(),D=f.length>1?Pt(t.helper(vi),f,c):f[0]):u.length&&(D=kt(Vr(u),c)),x?g|=16:(v&&!r&&(g|=2),y&&!r&&(g|=4),C.length&&(g|=8),b&&(g|=32)),!h&&(g===0||g===32)&&(_||S||p.length>0)&&(g|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<D.properties.length;t++){let i=D.properties[t].key;$i(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=D.properties[e],a=D.properties[n];r?D=Pt(t.helper(xi),[D]):(i&&!$i(i.value)&&(i.value=Pt(t.helper(yi),[i.value])),a&&(y||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=Pt(t.helper(bi),[a.value])));break;case 14:break;default:D=Pt(t.helper(xi),[Pt(t.helper(Si),[D])]);break}return{props:D,directives:p,patchFlag:g,dynamicPropNames:C,shouldUseBlock:h}}function Vr(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`||s(a))&&bee(o,i):(t.set(a,i),n.push(i))}return n}function bee(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ot([e.value,t.value],e.loc)}function Hr(e,t){let n=[],r=Ua.get(e);r?n.push(t.helperString(r)):(t.helper(di),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=jt(`true`,!1,i);n.push(kt(e.modifiers.map(e=>At(e,t)),i))}return Ot(n,e.loc)}function xee(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 Ur(e){return e===`component`||e===`Component`}function Wr(e,t){let n=`"default"`,r,i=[];for(let t=0;t<e.props.length;t++){let r=e.props[t];r.type===6?r.value&&(r.name===`name`?n=JSON.stringify(r.value.content):(r.name=ce(r.name),i.push(r))):r.name===`bind`&&Sn(r.arg,`name`)?r.exp?n=r.exp:r.arg&&r.arg.type===4&&(n=r.exp=jt(ce(r.arg.content),!1,r.arg.loc)):(r.name===`bind`&&r.arg&&$i(r.arg)&&(r.arg.content=ce(r.arg.content)),i.push(r))}if(i.length>0){let{props:n,directives:a}=Br(e,t,i,!1,!1);r=n,a.length&&t.onError(rn(36,a[0].loc))}return{slotName:n,slotProps:r}}function Gr(e=[]){return{props:e}}function Kr(e,t){if(e.type===4)qr(e,t);else for(let n=0;n<e.children.length;n++){let r=e.children[n];typeof r==`object`&&(r.type===4?qr(r,t):r.type===8?Kr(e,t):r.type===5&&Kr(r.content,t))}}function qr(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||!$a.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=See(m,h[p],t);e.content=m,e.ast=void 0}}function See(e,t,n){n.helper(fi);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 Jr(e){return[[ro,Za,La,no,Ra,...[eo],...[],Ga,Wa,Ba,Ya],{on:Ka,bind:qa,model:Qa}]}function Yr(e,t={}){let n=t.onError||tn,r=t.mode===`module`;t.prefixIdentifiers===!0?n(rn(48)):r&&n(rn(49)),t.cacheHandlers&&n(rn(50)),t.scopeId&&!r&&n(rn(51));let i=h({},t,{prefixIdentifiers:!1}),a=O(e)?ar(e,i):e,[o,s]=Jr();return mr(a,h({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:h({},s,t.directiveTransforms||{})})),yr(a,i)}var 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,Pa,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=te((()=>{p(),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=Symbol(``),li=Symbol(``),ui=Symbol(``),di=Symbol(``),fi=Symbol(``),pi=Symbol(``),mi=Symbol(``),hi=Symbol(``),gi=Symbol(``),_i=Symbol(``),vi=Symbol(``),yi=Symbol(``),bi=Symbol(``),xi=Symbol(``),Si=Symbol(``),Ci=Symbol(``),wi=Symbol(``),Ti=Symbol(``),Ei=Symbol(``),Di=Symbol(``),Oi=Symbol(``),ki=Symbol(``),Ai=Symbol(``),ji=Symbol(``),Mi=Symbol(``),Ni=Symbol(``),Pi=Symbol(``),Fi={[Xr]:`Fragment`,[Zr]:`Teleport`,[Qr]:`Suspense`,[$r]:`KeepAlive`,[ei]:`BaseTransition`,[ti]:`openBlock`,[ni]:`createBlock`,[ri]:`createElementBlock`,[ii]:`createVNode`,[ai]:`createElementVNode`,[oi]:`createCommentVNode`,[si]:`createTextVNode`,[ci]:`createStaticVNode`,[li]:`resolveComponent`,[ui]:`resolveDynamicComponent`,[di]:`resolveDirective`,[fi]:`resolveFilter`,[pi]:`withDirectives`,[mi]:`renderList`,[hi]:`renderSlot`,[gi]:`createSlots`,[_i]:`toDisplayString`,[vi]:`mergeProps`,[yi]:`normalizeClass`,[bi]:`normalizeStyle`,[xi]:`normalizeProps`,[Si]:`guardReactiveProps`,[Ci]:`toHandlers`,[wi]:`camelize`,[Ti]:`capitalize`,[Ei]:`toHandlerKey`,[Di]:`setBlockTracking`,[Oi]:`pushScopeId`,[ki]:`popScopeId`,[Ai]:`withCtx`,[ji]:`unref`,[Mi]:`isRef`,[Ni]:`withMemo`,[Pi]:`isMemoSame`},Ii={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},Li={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`},Ri={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},zi={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`},Bi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},Vi=new Uint8Array([123,123]),Hi=new Uint8Array([125,125]),Ui={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])},Wi=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=Vi,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=Vi,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?Yt(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||Jt(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===Ui.TitleEnd||this.currentSequence===Ui.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===Ui.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ui.Cdata.length&&(this.state=28,this.currentSequence=Ui.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===Ui.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):qt(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){Yt(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Yt(e)){let t=this.buffer.slice(this.sectionStart,this.index);t!==`template`&&this.enterRCDATA(Xt(`</`+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){Jt(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=qt(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||Jt(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):Jt(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):Jt(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||Yt(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||Yt(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||Yt(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||Yt(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||Yt(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)):Jt(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):Jt(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){Jt(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=Ui.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===Ui.ScriptEnd[3]?this.startSpecial(Ui.ScriptEnd,4):e===Ui.StyleEnd[3]?this.startSpecial(Ui.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Ui.TitleEnd[3]?this.startSpecial(Ui.TitleEnd,4):e===Ui.TextareaEnd[3]?this.startSpecial(Ui.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===Ui.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){}},Gi={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`},Ki={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`}},qi={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__`},Ji={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:``},Yi=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Xi=e=>e&&(e.type===`ObjectProperty`||e.type===`ObjectMethod`)&&!e.computed,Zi=(e,t)=>Xi(t)&&t.key===e,Qi=[`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`],$i=e=>e.type===4&&e.isStatic,ea=/^$|^\d|[^\$\w\xA0-\uFFFF]/,ta=e=>!ea.test(e),na=/[A-Za-z_$\xA0-\uFFFF]/,ra=/[\.\?\w$\xA0-\uFFFF]/,ia=/\s+[.[]\s*|\s*[.[]\s+/g,aa=e=>e.type===4?e.content:e.loc.source,oa=e=>{let t=aa(e).trim().replace(ia,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?na:ra).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},sa=r,ca=oa,la=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,ua=e=>la.test(aa(e)),da=r,fa=ua,pa=new Set([xi,Si]),ma=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ha={parseMode:`base`,ns:0,delimiters:[`{{`,`}}`],getNamespace:()=>0,isVoidTag:le,isPreTag:le,isIgnoreNewlineTag:le,isCustomElement:le,onError:tn,onWarn:nn,comments:!1,prefixIdentifiers:!1},ga=ha,_a=null,va=``,ya=null,ba=null,xa=``,Sa=-1,Ca=-1,wa=0,Ta=!1,Ea=null,Da=[],Oa=new Wi(Da,{onerr:rr,ontext(e,t){Vn(zn(e,t),e,t)},ontextentity(e,t,n){Vn(e,t,n)},oninterpolation(e,t){if(Ta)return Vn(zn(e,t),e,t);let n=e+Oa.delimiterOpen.length,r=t-Oa.delimiterClose.length;for(;Jt(va.charCodeAt(n));)n++;for(;Jt(va.charCodeAt(r-1));)r--;let i=zn(n,r);i.includes(`&`)&&(i=ga.decodeEntities(i,!1)),Zn({type:5,content:nr(i,!1,Qn(n,r)),loc:Qn(e,t)})},onopentagname(e,t){let n=zn(e,t);ya={type:1,tag:n,ns:ga.getNamespace(n,Da[0],ga.ns),tagType:0,props:[],children:[],loc:Qn(e-1,t),codegenNode:void 0}},onopentagend(e){Bn(e)},onclosetag(e,t){let n=zn(e,t);if(!ga.isVoidTag(n)){let r=!1;for(let e=0;e<Da.length;e++)if(Da[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&rr(24,Da[0].loc.start.offset);for(let n=0;n<=e;n++)Hn(Da.shift(),t,n<e);break}r||rr(23,Wn(e,60))}},onselfclosingtag(e){let t=ya.tag;ya.isSelfClosing=!0,Bn(e),Da[0]&&Da[0].tag===t&&Hn(Da.shift(),e)},onattribname(e,t){ba={type:6,name:zn(e,t),nameLoc:Qn(e,t),value:void 0,loc:Qn(e)}},ondirname(e,t){let n=zn(e,t),r=n===`.`||n===`:`?`bind`:n===`@`?`on`:n===`#`?`slot`:n.slice(2);if(!Ta&&r===``&&rr(26,e),Ta||r===``)ba={type:6,name:n,nameLoc:Qn(e,t),value:void 0,loc:Qn(e)};else if(ba={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n===`.`?[jt(`prop`)]:[],loc:Qn(e)},r===`pre`){Ta=Oa.inVPre=!0,Ea=ya;let e=ya.props;for(let t=0;t<e.length;t++)e[t].type===7&&(e[t]=tr(e[t]))}},ondirarg(e,t){if(e===t)return;let n=zn(e,t);if(Ta&&!Tn(ba))ba.name+=n,er(ba.nameLoc,t);else{let r=n[0]!==`[`;ba.arg=nr(r?n:n.slice(1,-1),r,Qn(e,t),r?3:0)}},ondirmodifier(e,t){let n=zn(e,t);if(Ta&&!Tn(ba))ba.name+=`.`+n,er(ba.nameLoc,t);else if(ba.name===`slot`){let e=ba.arg;e&&(e.content+=`.`+n,er(e.loc,t))}else{let r=jt(n,!0,Qn(e,t));ba.modifiers.push(r)}},onattribdata(e,t){xa+=zn(e,t),Sa<0&&(Sa=e),Ca=t},onattribentity(e,t,n){xa+=e,Sa<0&&(Sa=t),Ca=n},onattribnameend(e){let t=ba.loc.start.offset,n=zn(t,e);ba.type===7&&(ba.rawName=n),ya.props.some(e=>(e.type===7?e.rawName:e.name)===n)&&rr(2,t)},onattribend(e,t){if(ya&&ba){if(er(ba.loc,t),e!==0)if(xa.includes(`&`)&&(xa=ga.decodeEntities(xa,!0)),ba.type===6)ba.name===`class`&&(xa=Xn(xa).trim()),e===1&&!xa&&rr(13,t),ba.value={type:2,content:xa,loc:e===1?Qn(Sa,Ca):Qn(Sa-1,Ca+1)},Oa.inSFCRoot&&ya.tag===`template`&&ba.name===`lang`&&xa&&xa!==`html`&&Oa.enterRCDATA(Xt(`</template`),0);else{ba.exp=nr(xa,!1,Qn(Sa,Ca),0,0),ba.name===`for`&&(ba.forParseResult=Rn(ba.exp));let e=-1;ba.name===`bind`&&(e=ba.modifiers.findIndex(e=>e.content===`sync`))>-1&&$t(`COMPILER_V_BIND_SYNC`,ga,ba.loc,ba.arg.loc.source)&&(ba.name=`model`,ba.modifiers.splice(e,1))}(ba.type!==7||ba.name!==`pre`)&&ya.props.push(ba)}xa=``,Sa=Ca=-1},oncomment(e,t){ga.comments&&Zn({type:3,content:zn(e,t),loc:Qn(e-4,t+3)})},onend(){let e=va.length;for(let t=0;t<Da.length;t++)Hn(Da[t],e-1),rr(24,Da[t].loc.start.offset)},oncdata(e,t){Da[0].ns===0?rr(1,e-9):Vn(zn(e,t),e,t)},onprocessinginstruction(e){(Da[0]?Da[0].ns:ga.ns)===0&&rr(21,e-1)}}),ka=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Aa=/^\(|\)$/g,ja=new Set([`if`,`else`,`else-if`,`for`,`slot`]),Ma=/\r\n/g,Na=new Set([yi,bi,xi,Si]),Pa=`/*@__PURE__*/`,Fa=e=>`${Fi[e]}: _${Fi[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`),Ia=(e,t)=>{if(e.type===5)e.content=Er(e.content,t);else if(e.type===1){let n=bn(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=Er(e,t,i.name===`slot`)),r&&r.type===4&&!r.isStatic&&(i.arg=Er(r,t))}}}},La=vr(/^(?:if|else|else-if)$/,(e,t,n)=>Or(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=Ar(t,o,n);else{let r=yee(e.codegenNode);r.alternate=Ar(t,o+e.branches.length-1,n)}}})),Ra=vr(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Mr(e,t,n,t=>{let a=Pt(r(mi),[t.source]),o=Dn(e),s=bn(e,`memo`),c=xn(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?jt(c.value.content,!0):void 0:c.exp),u=c&&l?At(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=Dt(n,r(Xr),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=On(e)?e:o&&e.children.length===1&&On(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&u&&An(c,u,n)):p?c=Dt(n,r(Xr),u?kt([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&u&&An(c,u,n),c.isBlock!==!d&&(c.isBlock?(i(ti),i(Gt(n.inSSR,c.isComponent))):i(Wt(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(r(ti),r(Gt(n.inSSR,c.isComponent))):r(Wt(n.inSSR,c.isComponent))),s){let e=Ft(Pr(t.parseResult,[jt(`_cached`)]));e.body=Rt([Nt([`const _memo = (`,s.exp,`)`]),Nt([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(Pi)}(_cached, _memo)) return _cached`]),Nt([`const _item = `,c]),jt(`_item.memo = _memo`),jt(`return _item`)]),a.arguments.push(e,jt(`_cache`),jt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Ft(Pr(t.parseResult),c,!0))}})}),za=jt(`undefined`,!1),Ba=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=bn(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Va=(e,t)=>{let n;if(Dn(e)&&e.props.some(En)&&(n=bn(e,`for`))){let e=n.forParseResult;if(e){Nr(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)=>Ft(e,n,!1,!0,n.length?n[0].loc:r),Ua=new WeakMap,Wa=(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?zr(e,t):`"${n}"`,o=E(a)&&a.callee===ui,s,c,l=0,u,d,f,p=o||a===Zr||a===Qr||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=Br(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?Ot(r.map(e=>Hr(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===$r&&(p=!0,l|=1024),i&&a!==Zr&&a!==$r){let{slots:n,hasDynamicSlots:r}=Ir(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==Zr){let n=e.children[0],r=n.type,i=r===5||r===8;i&&lr(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=xee(d)),e.codegenNode=Dt(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)},Ga=(e,t)=>{if(On(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=Wr(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=Ft([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=Pt(t.helper(hi),o,r)}},Ka=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(rn(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=jt(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?pe(ce(e)):`on:${e}`,!0,o.loc)}else s=Nt([`${n.helperString(Ei)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(Ei)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let e=ca(c),t=!(e||fa(c)),n=c.content.includes(`;`);(t||l&&e)&&(c=Nt([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,c,n?`}`:`)`]))}let u={props:[At(s,c||jt(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},qa=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=ce(a.content):a.content=`${n.helperString(wi)}(${a.content})`:(a.children.unshift(`${n.helperString(wi)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&Ja(a,`.`),r.some(e=>e.content===`attr`)&&Ja(a,`^`)),{props:[At(a,o)]}},Ja=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},Ya=(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(wn(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(wn(a))r||=n[e]=Nt([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(wn(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&lr(r,t)===0&&i.push(`1`),n[e]={type:12,content:r,loc:r.loc,codegenNode:Pt(t.helper(si),i)}}}}},Xa=new WeakSet,Za=(e,t)=>{if(e.type===1&&bn(e,`once`,!0))return Xa.has(e)||t.inVOnce||t.inSSR?void 0:(Xa.add(e),t.inVOnce=!0,t.helper(Di),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Qa=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(rn(41,e.loc)),Gr();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(rn(44,r.loc)),Gr();if(s===`literal-const`||s===`setup-const`)return n.onError(rn(45,r.loc)),Gr();if(!o.trim()||!ca(r))return n.onError(rn(42,r.loc)),Gr();let c=i||jt(`modelValue`,!0),l=i?$i(i)?`onUpdate:${ce(i.content)}`:Nt([`"onUpdate:" + `,i]):`onUpdate:modelValue`,u;u=Nt([`${n.isTS?`($event: any)`:`$event`} => ((`,r,`) = $event)`]);let d=[At(c,e.exp),At(l,u)];if(e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(ta(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?$i(i)?`${i.content}Modifiers`:Nt([i,` + "Modifiers"`]):`modelModifiers`;d.push(At(n,jt(`{ ${t} }`,!1,e.loc,2)))}return Gr(d)},$a=/[\w).+\-_$\]]/,eo=(e,t)=>{Qt(`COMPILER_FILTERS`,t)&&(e.type===5?Kr(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&Kr(e.exp,t)}))},to=new WeakSet,no=(e,t)=>{if(e.type===1){let n=bn(e,`memo`);return!n||to.has(e)||t.inSSR?void 0:(to.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Kt(r,t),e.codegenNode=Pt(t.helper(Ni),[n.exp,Ft(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},ro=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(rn(53,e.loc)),n.exp=jt(``,!0,e.loc);else{let t=ce(e.content);(na.test(t[0])||t[0]===`-`)&&(n.exp=jt(t,!1,e.loc))}}}},io={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`},ao=()=>({props:[]})})),Cee=ue({BASE_TRANSITION:()=>ei,BindingTypes:()=>io,CAMELIZE:()=>wi,CAPITALIZE:()=>Ti,CREATE_BLOCK:()=>ni,CREATE_COMMENT:()=>oi,CREATE_ELEMENT_BLOCK:()=>ri,CREATE_ELEMENT_VNODE:()=>ai,CREATE_SLOTS:()=>gi,CREATE_STATIC:()=>ci,CREATE_TEXT:()=>si,CREATE_VNODE:()=>ii,CompilerDeprecationTypes:()=>Gi,ConstantTypes:()=>zi,DOMDirectiveTransforms:()=>Ro,DOMErrorCodes:()=>Co,DOMErrorMessages:()=>wo,DOMNodeTransforms:()=>Lo,ElementTypes:()=>Ri,ErrorCodes:()=>qi,FRAGMENT:()=>Xr,GUARD_REACTIVE_PROPS:()=>Si,IS_MEMO_SAME:()=>Pi,IS_REF:()=>Mi,KEEP_ALIVE:()=>$r,MERGE_PROPS:()=>vi,NORMALIZE_CLASS:()=>yi,NORMALIZE_PROPS:()=>xi,NORMALIZE_STYLE:()=>bi,Namespaces:()=>Ii,NodeTypes:()=>Li,OPEN_BLOCK:()=>ti,POP_SCOPE_ID:()=>ki,PUSH_SCOPE_ID:()=>Oi,RENDER_LIST:()=>mi,RENDER_SLOT:()=>hi,RESOLVE_COMPONENT:()=>li,RESOLVE_DIRECTIVE:()=>di,RESOLVE_DYNAMIC_COMPONENT:()=>ui,RESOLVE_FILTER:()=>fi,SET_BLOCK_TRACKING:()=>Di,SUSPENSE:()=>Qr,TELEPORT:()=>Zr,TO_DISPLAY_STRING:()=>_i,TO_HANDLERS:()=>Ci,TO_HANDLER_KEY:()=>Ei,TRANSITION:()=>_o,TRANSITION_GROUP:()=>vo,TS_NODE_TYPES:()=>Qi,UNREF:()=>ji,V_MODEL_CHECKBOX:()=>lo,V_MODEL_DYNAMIC:()=>po,V_MODEL_RADIO:()=>co,V_MODEL_SELECT:()=>fo,V_MODEL_TEXT:()=>uo,V_ON_WITH_KEYS:()=>ho,V_ON_WITH_MODIFIERS:()=>mo,V_SHOW:()=>go,WITH_CTX:()=>Ai,WITH_DIRECTIVES:()=>pi,WITH_MEMO:()=>Ni,advancePositionWithClone:()=>_n,advancePositionWithMutation:()=>vn,assert:()=>yn,baseCompile:()=>Yr,baseParse:()=>ar,buildDirectiveArgs:()=>Hr,buildProps:()=>Br,buildSlots:()=>Ir,checkCompatEnabled:()=>$t,compile:()=>Tee,convertToBlock:()=>Kt,createArrayExpression:()=>Ot,createAssignmentExpression:()=>Vt,createBlockStatement:()=>Rt,createCacheExpression:()=>Lt,createCallExpression:()=>Pt,createCompilerError:()=>rn,createCompoundExpression:()=>Nt,createConditionalExpression:()=>It,createDOMCompilerError:()=>so,createForLoopParams:()=>Pr,createFunctionExpression:()=>Ft,createIfStatement:()=>Bt,createInterpolation:()=>Mt,createObjectExpression:()=>kt,createObjectProperty:()=>At,createReturnStatement:()=>Ut,createRoot:()=>Et,createSequenceExpression:()=>Ht,createSimpleExpression:()=>jt,createStructuralDirectiveTransform:()=>vr,createTemplateLiteral:()=>zt,createTransformContext:()=>pr,createVNodeCall:()=>Dt,errorMessages:()=>Ji,extractIdentifiers:()=>mn,findDir:()=>bn,findProp:()=>xn,forAliasRE:()=>ma,generate:()=>yr,generateCodeFrame:()=>v,getBaseTransformPreset:()=>Jr,getConstantType:()=>lr,getMemoedVNodeCall:()=>Pn,getVNodeBlockHelper:()=>Gt,getVNodeHelper:()=>Wt,hasDynamicKeyVBind:()=>Cn,hasScopeRef:()=>Nn,helperNameMap:()=>Fi,injectProp:()=>An,isAllWhitespace:()=>Fn,isCommentOrWhitespace:()=>Ln,isCoreComponent:()=>gn,isFnExpression:()=>fa,isFnExpressionBrowser:()=>ua,isFnExpressionNode:()=>da,isFunctionType:()=>Yi,isInDestructureAssignment:()=>sn,isInNewExpression:()=>cn,isMemberExpression:()=>ca,isMemberExpressionBrowser:()=>oa,isMemberExpressionNode:()=>sa,isReferencedIdentifier:()=>on,isSimpleIdentifier:()=>ta,isSlotOutlet:()=>On,isStaticArgOf:()=>Sn,isStaticExp:()=>$i,isStaticProperty:()=>Xi,isStaticPropertyKey:()=>Zi,isTemplateNode:()=>Dn,isText:()=>wn,isVPre:()=>Tn,isVSlot:()=>En,isWhitespaceText:()=>In,locStub:()=>Bi,noopDirectiveTransform:()=>ao,parse:()=>Eee,parserOptions:()=>bo,processExpression:()=>Er,processFor:()=>Mr,processIf:()=>Or,processSlotOutlet:()=>Wr,registerRuntimeHelpers:()=>Tt,resolveComponentType:()=>zr,stringifyExpression:()=>Dr,toValidAssetId:()=>Mn,trackSlotScopes:()=>Ba,trackVForSlotScopes:()=>Va,transform:()=>mr,transformBind:()=>qa,transformElement:()=>Wa,transformExpression:()=>Ia,transformModel:()=>Qa,transformOn:()=>Ka,transformStyle:()=>xo,transformVBindShorthand:()=>ro,traverseNode:()=>_r,unwrapTSNode:()=>hn,validFirstIdentCharRE:()=>na,walkBlockDeclarations:()=>un,walkFunctionParams:()=>ln,walkIdentifiers:()=>an,warnDeprecation:()=>en});function wee(e,t=!1){return yo||=document.createElement(`div`),t?(yo.innerHTML=`<div foo="${e.replace(/"/g,`&quot;`)}">`,yo.children[0].getAttribute(`foo`)):(yo.innerHTML=e,yo.textContent)}function so(e,t){return rn(e,t,void 0)}function Tee(e,t={}){return Yr(e,h({},bo,t,{nodeTransforms:[Io,...Lo,...t.nodeTransforms||[]],directiveTransforms:h({},Ro,t.directiveTransforms||{}),transformHoist:null}))}function Eee(e,t={}){return ar(e,h({},bo,t))}var co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo=te((()=>{oo(),oo(),p(),co=Symbol(``),lo=Symbol(``),uo=Symbol(``),fo=Symbol(``),po=Symbol(``),mo=Symbol(``),ho=Symbol(``),go=Symbol(``),_o=Symbol(``),vo=Symbol(``),Tt({[co]:`vModelRadio`,[lo]:`vModelCheckbox`,[uo]:`vModelText`,[fo]:`vModelSelect`,[po]:`vModelDynamic`,[mo]:`withModifiers`,[ho]:`withKeys`,[go]:`vShow`,[_o]:`Transition`,[vo]:`TransitionGroup`}),bo={parseMode:`html`,isVoidTag:b,isNativeTag:e=>l(e)||ee(e)||T(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:wee,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return _o;if(e===`TransitionGroup`||e===`transition-group`)return vo},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}},xo=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:jt(`style`,!0,t.loc),exp:So(t.value.content,t.loc),modifiers:[],loc:t.loc})})},So=(e,t)=>{let n=he(e);return jt(JSON.stringify(n),!1,t,3)},Co={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__`},wo={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.`},To=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(so(54,i)),t.children.length&&(n.onError(so(55,i)),t.children.length=0),{props:[At(jt(`innerHTML`,!0,i),r||jt(``,!0))]}},Eo=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(so(56,i)),t.children.length&&(n.onError(so(57,i)),t.children.length=0),{props:[At(jt(`textContent`,!0),r?lr(r,n)>0?r:Pt(n.helperString(_i),[r],i):jt(``,!0))]}},Do=(e,t,n)=>{let r=Qa(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(so(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=uo,s=!1;if(i===`input`||a){let r=xn(t,`type`);if(r){if(r.type===7)o=po;else if(r.value)switch(r.value.content){case`radio`:o=co;break;case`checkbox`:o=lo;break;case`file`:s=!0,n.onError(so(60,e.loc));break;default:break}}else Cn(t)&&(o=po)}else i===`select`&&(o=fo);s||(r.needRuntime=n.helper(o))}else n.onError(so(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Oo=t(`passive,once,capture`),ko=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),Ao=t(`left,right`),jo=t(`onkeyup,onkeydown,onkeypress`),Mo=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;s<t.length;s++){let c=t[s].content;c===`native`&&$t(`COMPILER_V_ON_NATIVE`,n,r)||Oo(c)?o.push(c):Ao(c)?$i(e)?jo(e.content.toLowerCase())?i.push(c):a.push(c):(i.push(c),a.push(c)):ko(c)?a.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},No=(e,t)=>$i(e)&&e.content.toLowerCase()===`onclick`?jt(t,!0):e.type===4?e:Nt([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),Po=(e,t,n)=>Ka(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}=Mo(i,r,n,e.loc);if(s.includes(`right`)&&(i=No(i,`onContextmenu`)),s.includes(`middle`)&&(i=No(i,`onMouseup`)),s.length&&(a=Pt(n.helper(mo),[a,JSON.stringify(s)])),o.length&&(!$i(i)||jo(i.content.toLowerCase()))&&(a=Pt(n.helper(ho),[a,JSON.stringify(o)])),c.length){let e=c.map(m).join(``);i=$i(i)?jt(`${i.content}${e}`,!0):Nt([`(`,i,`) + "${e}"`])}return{props:[At(i,a)]}}),Fo=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(so(62,i)),{props:[],needRuntime:n.helper(go)}},Io=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},Lo=[xo,...[]],Ro={cloak:ao,html:To,text:Eo,model:Do,on:Po,show:Fo}})),Bo=ve((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(zo(),be(Cee)),n=(j(),be(_e)),r=(p(),be(se));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])})})),Vo=ve(((e,t)=>{t.exports=Bo()})),Ho=ue({MultiDrag:()=>Fee,Sortable:()=>ks,Swap:()=>Nee,default:()=>ks});function Uo(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 Wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Uo(Object(n),!0).forEach(function(t){Ko(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(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 Ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(){return qo=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},qo.apply(this,arguments)}function Jo(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 Yo(e,t){if(e==null)return{};var n=Jo(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 Xo(e){return Zo(e)||Qo(e)||$o(e)||Dee()}function Zo(e){if(Array.isArray(e))return es(e)}function Qo(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function $o(e,t){if(e){if(typeof e==`string`)return es(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 es(e,t)}}function es(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 Dee(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ts(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function ns(e,t,n){e.addEventListener(t,n,!Ys&&tc)}function rs(e,t,n){e.removeEventListener(t,n,!Ys&&tc)}function is(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 Oee(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function as(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&is(e,t):is(e,t))||r&&e===n)return e;if(e===n)break}while(e=Oee(e))}return null}function os(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(nc,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(nc,` `))}function ss(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 cs(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=ss(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 ls(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 us(){return document.scrollingElement||document.documentElement}function ds(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==us()?(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,!Ys))do if(i&&i.getBoundingClientRect&&(ss(i,`transform`)!==`none`||n&&ss(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(ss(i,`border-top-width`)),s-=f.left+parseInt(ss(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=cs(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 fs(e,t,n){for(var r=_s(e,!0),i=ds(e)[t];r;){var a=ds(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===us())break;r=_s(r,!1)}return!1}function ps(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==ks.ghost&&(r||o[a]!==ks.dragged)&&as(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function ms(e,t){for(var n=e.lastElementChild;n&&(n===ks.ghost||ss(n,`display`)===`none`||t&&!is(n,t));)n=n.previousElementSibling;return n||null}function hs(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==ks.clone&&(!t||is(e,t))&&n++;return n}function gs(e){var t=0,n=0,r=us();if(e)do{var i=cs(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 kee(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 _s(e,t){if(!e||!e.getBoundingClientRect)return us();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=ss(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 us();if(r||t)return n;r=!0}}while(n=n.parentNode);return us()}function Aee(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function vs(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 ys(e,t){return function(){if(!rc){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),rc=setTimeout(function(){rc=void 0},t)}}}function jee(){clearTimeout(rc),rc=void 0}function bs(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function xs(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 Ss(e,t){ss(e,`position`,`absolute`),ss(e,`top`,t.top),ss(e,`left`,t.left),ss(e,`width`,t.width),ss(e,`height`,t.height)}function Cs(e){ss(e,`position`,``),ss(e,`top`,``),ss(e,`left`,``),ss(e,`width`,``),ss(e,`height`,``)}function ws(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(ss(t,`display`)===`none`||t===ks.ghost)){e.push({target:t,rect:ds(t)});var n=Wo({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=cs(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(kee(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=ds(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=cs(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&vs(c,s)&&!vs(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Es(u,c,l,r.options)),vs(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){ss(e,`transition`,``),ss(e,`transform`,``);var i=cs(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,ss(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=Ts(e),ss(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),ss(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){ss(e,`transition`,``),ss(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function Ts(e){return e.offsetWidth}function Es(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 Ds(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[ic],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ys&&!Xs?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=Wo(Wo({},m),sc.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function Os(e){Ds(Wo({putSortable:Sc,cloneEl:hc,targetEl:R,rootEl:fc,oldIndex:_c,oldDraggableIndex:yc,newIndex:vc,newDraggableIndex:bc},e))}function ks(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=qo({},t),e[ic]=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 qc(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:ks.supportPointer!==!1&&`PointerEvent`in window&&!Qs,emptyInsertThreshold:5};for(var r in sc.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Xc(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Gc,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ns(e,`pointerdown`,this._onTapStart):(ns(e,`mousedown`,this._onTapStart),ns(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(ns(e,`dragover`,this),ns(e,`dragenter`,this)),Tc.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),qo(this,ws())}function As(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function js(e,t,n,r,i,a,o,s){var c,l=e[ic],u=l.options.onMove,d;return window.CustomEvent&&!Ys&&!Xs?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||ds(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Ms(e){e.draggable=!1}function Ns(){Bc=!1}function Ps(e,t,n){var r=ds(ps(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 Fs(e,t,n){var r=ds(ms(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 Is(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&&Lc<l*i){if(!Fc&&(Pc===1?c>u+l*a/2:c<d-l*a/2)&&(Fc=!0),Fc)f=!0;else if(Pc===1?c<u+Lc:c>d-Lc)return-Pc}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Ls(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Ls(e){return hs(R)<hs(e)?1:-1}function Rs(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 zs(e){Vc.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&Vc.push(r)}}function Bs(e){return setTimeout(e,0)}function Vs(e){return clearTimeout(e)}function Mee(){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?ns(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?ns(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?ns(document,`touchmove`,this._handleFallbackAutoScroll):ns(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?rs(document,`dragover`,this._handleAutoScroll):(rs(document,`pointermove`,this._handleFallbackAutoScroll),rs(document,`touchmove`,this._handleFallbackAutoScroll),rs(document,`mousemove`,this._handleFallbackAutoScroll)),Us(),Hs(),jee()},nulling:function(){sl=rl=nl=il=cl=al=ol=null,tl.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(sl=e,t||this.options.forceAutoScrollFallback||Xs||Ys||Qs){ll(e,this.options,a,t);var o=_s(a,!0);il&&(!cl||r!==al||i!==ol)&&(cl&&Us(),cl=setInterval(function(){var a=_s(document.elementFromPoint(r,i),!0);a!==o&&(o=a,Hs()),ll(e,n.options,a,t)},10),al=r,ol=i)}else{if(!this.options.bubbleScroll||_s(a,!0)===us()){Hs();return}ll(e,this.options,_s(a,!1),!1)}}},qo(e,{pluginName:`scroll`,initializeByDefault:!0})}function Hs(){tl.forEach(function(e){clearInterval(e.pid)}),tl=[]}function Us(){clearInterval(cl)}function Ws(){}function Gs(){}function Nee(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){dl=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=dl;r(n)===!1?dl=null:(os(n,c.swapClass,!0),dl=n),l&&l!==dl&&os(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;dl&&os(dl,a.swapClass,!1),dl&&(a.swap||n&&n.options.swap)&&r!==dl&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Pee(r,dl),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){dl=null}},qo(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:dl}}})}function Pee(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=hs(e),a=hs(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function Fee(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.supportPointer?ns(document,`pointerup`,this._deselectMultiDrag):(ns(document,`mouseup`,this._deselectMultiDrag),ns(document,`touchend`,this._deselectMultiDrag)),ns(document,`keydown`,this._checkKeyDown),ns(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,setData:function(t,n){var r=``;fl.length&&hl===e?fl.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){yl=e.dragEl},delayEnded:function(){this.isMultiDrag=~fl.indexOf(yl)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<fl.length;r++)pl.push(xs(fl[r])),pl[r].sortableIndex=fl[r].sortableIndex,pl[r].draggable=!1,pl[r].style[`will-change`]=``,os(pl[r],this.options.selectedClass,!1),fl[r]===yl&&os(pl[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||fl.length&&hl===t&&(Ks(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Ks(!1,n),pl.forEach(function(e){ss(e,`display`,``)}),t(),xl=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(pl.forEach(function(e){ss(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),xl=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&hl&&hl.multiDrag._deselectMultiDrag(),fl.forEach(function(e){e.sortableIndex=hs(e)}),fl=fl.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),vl=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){fl.forEach(function(e){e!==yl&&ss(e,`position`,`absolute`)});var r=ds(yl,!1,!0,!0);fl.forEach(function(e){e!==yl&&Ss(e,r)}),_l=!0,gl=!0}n.animateAll(function(){_l=!1,gl=!1,t.options.animation&&fl.forEach(function(e){Cs(e)}),t.options.sort&&qs()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;_l&&~fl.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;fl.length>1&&(fl.forEach(function(e){r.addAnimationState({target:e,rect:_l?ds(e):i}),Cs(e),e.fromRect=i,t.removeAnimationState(e)}),_l=!1,Iee(!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(),gl=!1,s.animation&&fl.length>1&&(_l||!n&&!i.options.sort&&!o)){var c=ds(yl,!1,!0,!0);fl.forEach(function(e){e!==yl&&(Ss(e,c),a.appendChild(e))}),_l=!0}if(!n)if(_l||qs(),fl.length>1){var l=xl;i._showClone(t),i.options.animation&&!xl&&l&&pl.forEach(function(e){i.addAnimationState({target:e,rect:bl}),e.fromRect=bl,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(fl.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){bl=qo({},t);var i=cs(yl,!0);bl.top-=i.f,bl.left-=i.e}},dragOverAnimationComplete:function(){_l&&(_l=!1,qs())},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(!vl)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),os(yl,l.selectedClass,!~fl.indexOf(yl)),~fl.indexOf(yl))fl.splice(fl.indexOf(yl),1),ml=null,Ds({sortable:i,rootEl:n,name:`deselect`,targetEl:yl,originalEvt:t});else{if(fl.push(yl),Ds({sortable:i,rootEl:n,name:`select`,targetEl:yl,originalEvt:t}),t.shiftKey&&ml&&i.el.contains(ml)){var d=hs(ml),f=hs(yl);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~fl.indexOf(u[m])||(os(u[m],l.selectedClass,!0),fl.push(u[m]),Ds({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvt:t}))}}else ml=yl;hl=c}if(vl&&this.isMultiDrag){if(_l=!1,(r[ic].options.sort||r!==n)&&fl.length>1){var h=ds(yl),g=hs(yl,`:not(.`+this.options.selectedClass+`)`);if(!gl&&l.animation&&(yl.thisAnimationDuration=null),c.captureAnimationState(),!gl&&(l.animation&&(yl.fromRect=h,fl.forEach(function(e){if(e.thisAnimationDuration=null,e!==yl){var t=_l?ds(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),qs(),fl.forEach(function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++}),o===hs(yl))){var _=!1;fl.forEach(function(e){if(e.sortableIndex!==hs(e)){_=!0;return}}),_&&a(`update`)}fl.forEach(function(e){Cs(e)}),c.animateAll()}hl=c}(n===r||s&&s.lastPutMode!==`clone`)&&pl.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=vl=!1,pl.length=0},destroyGlobal:function(){this._deselectMultiDrag(),rs(document,`pointerup`,this._deselectMultiDrag),rs(document,`mouseup`,this._deselectMultiDrag),rs(document,`touchend`,this._deselectMultiDrag),rs(document,`keydown`,this._checkKeyDown),rs(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(vl!==void 0&&vl)&&hl===this.sortable&&!(e&&as(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;fl.length;){var t=fl[0];os(t,this.options.selectedClass,!1),fl.shift(),Ds({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)}},qo(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[ic];!t||!t.options.multiDrag||~fl.indexOf(e)||(hl&&hl!==t&&(hl.multiDrag._deselectMultiDrag(),hl=t),os(e,t.options.selectedClass,!0),fl.push(e))},deselect:function(e){var t=e.parentNode[ic],n=fl.indexOf(e);!t||!t.options.multiDrag||!~n||(os(e,t.options.selectedClass,!1),fl.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return fl.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=_l&&r!==yl?-1:_l?hs(r,`:not(.`+e.options.selectedClass+`)`):hs(r);n.push({multiDragElement:r,index:i})}),{items:Xo(fl),clones:[].concat(pl),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 Iee(e,t){fl.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Ks(e,t){pl.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function qs(){fl.forEach(function(e){e!==yl&&e.parentNode&&e.parentNode.removeChild(e)})}var Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,R,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,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl=te((()=>{Js=`1.14.0`,Ys=ts(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Xs=ts(/Edge/i),Zs=ts(/firefox/i),Qs=ts(/safari/i)&&!ts(/chrome/i)&&!ts(/android/i),$s=ts(/iP(ad|od|hone)/i),ec=ts(/chrome/i)&&ts(/android/i),tc={capture:!1,passive:!1},nc=/\s+/g,ic=`Sortable`+new Date().getTime(),ac=[],oc={initializeByDefault:!0},sc={mount:function(e){for(var t in oc)oc.hasOwnProperty(t)&&!(t in e)&&(e[t]=oc[t]);ac.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),ac.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;ac.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Wo({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Wo({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in ac.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,qo(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 ac.forEach(function(r){typeof r.eventProperties==`function`&&qo(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return ac.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},cc=[`evt`],lc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Yo(n,cc);sc.pluginEvent.bind(ks)(e,t,Wo({dragEl:R,parentEl:uc,ghostEl:dc,rootEl:fc,nextEl:pc,lastDownEl:mc,cloneEl:hc,cloneHidden:gc,dragStarted:Mc,putSortable:Sc,activeSortable:ks.active,originalEvent:r,oldIndex:_c,oldDraggableIndex:yc,newIndex:vc,newDraggableIndex:bc,hideGhostForTarget:Zc,unhideGhostForTarget:Qc,cloneNowHidden:function(){gc=!0},cloneNowShown:function(){gc=!1},dispatchSortableEvent:function(e){Os({sortable:t,name:e,originalEvent:r})}},i))},Cc=!1,wc=!1,Tc=[],Fc=!1,Ic=!1,zc=[],Bc=!1,Vc=[],Hc=typeof document<`u`,Uc=$s,Wc=Xs||Ys?`cssFloat`:`float`,Gc=Hc&&!ec&&!$s&&`draggable`in document.createElement(`div`),Kc=function(){if(Hc){if(Ys)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),qc=function(e,t){var n=ss(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=ps(e,0,t),a=ps(e,1,t),o=i&&ss(i),s=a&&ss(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+ds(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ds(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[Wc]===`none`||a&&n[Wc]===`none`&&c+l>r)?`vertical`:`horizontal`},Jc=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},Yc=function(e,t){var n;return Tc.some(function(r){var i=r[ic].options.emptyInsertThreshold;if(!(!i||ms(r))){var a=ds(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},Xc=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},Zc=function(){!Kc&&dc&&ss(dc,`display`,`none`)},Qc=function(){!Kc&&dc&&ss(dc,`display`,``)},Hc&&document.addEventListener(`click`,function(e){if(wc)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wc=!1,!1},!0),$c=function(e){if(R){e=e.touches?e.touches[0]:e;var t=Yc(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[ic]._onDragOver(n)}}},el=function(e){R&&R.parentNode[ic]._isOutsideThisEl(e.target)},ks.prototype={constructor:ks,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Nc=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(zs(n),!R&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Qs&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=as(s,r.draggable,n,!1),!(s&&s.animated)&&mc!==s)){if(_c=hs(s),yc=hs(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){Os({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),lc(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=as(c,r.trim(),n,!1),r)return Os({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),lc(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!as(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=ds(n);if(fc=i,R=n,uc=R.parentNode,pc=R.nextSibling,mc=n,xc=a.group,ks.dragged=R,Ec={target:R,clientX:(t||e).clientX,clientY:(t||e).clientY},Ac=Ec.clientX-c.left,jc=Ec.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,R.style[`will-change`]=`all`,s=function(){if(lc(`delayEnded`,r,{evt:e}),ks.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Zs&&r.nativeDraggable&&(R.draggable=!0),r._triggerDragStart(e,t),Os({sortable:r,name:`choose`,originalEvent:e}),os(R,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){ls(R,e.trim(),Ms)}),ns(o,`dragover`,$c),ns(o,`mousemove`,$c),ns(o,`touchmove`,$c),ns(o,`mouseup`,r._onDrop),ns(o,`touchend`,r._onDrop),ns(o,`touchcancel`,r._onDrop),Zs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),lc(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Xs||Ys))){if(ks.eventCanceled){this._onDrop();return}ns(o,`mouseup`,r._disableDelayedDrag),ns(o,`touchend`,r._disableDelayedDrag),ns(o,`touchcancel`,r._disableDelayedDrag),ns(o,`mousemove`,r._delayedDragTouchMoveHandler),ns(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&ns(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&&Ms(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;rs(e,`mouseup`,this._disableDelayedDrag),rs(e,`touchend`,this._disableDelayedDrag),rs(e,`touchcancel`,this._disableDelayedDrag),rs(e,`mousemove`,this._delayedDragTouchMoveHandler),rs(e,`touchmove`,this._delayedDragTouchMoveHandler),rs(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?ns(document,`pointermove`,this._onTouchMove):t?ns(document,`touchmove`,this._onTouchMove):ns(document,`mousemove`,this._onTouchMove):(ns(R,`dragend`,this),ns(fc,`dragstart`,this._onDragStart));try{document.selection?Bs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Cc=!1,fc&&R){lc(`dragStarted`,this,{evt:t}),this.nativeDraggable&&ns(document,`dragover`,el);var n=this.options;!e&&os(R,n.dragClass,!1),os(R,n.ghostClass,!0),ks.active=this,e&&this._appendGhost(),Os({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Dc){this._lastX=Dc.clientX,this._lastY=Dc.clientY,Zc();for(var e=document.elementFromPoint(Dc.clientX,Dc.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Dc.clientX,Dc.clientY),e!==t);)t=e;if(R.parentNode[ic]._isOutsideThisEl(e),t)do{if(t[ic]){var n=void 0;if(n=t[ic]._onDragOver({clientX:Dc.clientX,clientY:Dc.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Qc()}},_onTouchMove:function(e){if(Ec){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=dc&&cs(dc,!0),o=dc&&a&&a.a,s=dc&&a&&a.d,c=Uc&&Rc&&gs(Rc),l=(i.clientX-Ec.clientX+r.x)/(o||1)+(c?c[0]-zc[0]:0)/(o||1),u=(i.clientY-Ec.clientY+r.y)/(s||1)+(c?c[1]-zc[1]:0)/(s||1);if(!ks.active&&!Cc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(dc){a?(a.e+=l-(Oc||0),a.f+=u-(kc||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})`;ss(dc,`webkitTransform`,d),ss(dc,`mozTransform`,d),ss(dc,`msTransform`,d),ss(dc,`transform`,d),Oc=l,kc=u,Dc=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!dc){var e=this.options.fallbackOnBody?document.body:fc,t=ds(R,!0,Uc,!0,e),n=this.options;if(Uc){for(Rc=e;ss(Rc,`position`)===`static`&&ss(Rc,`transform`)===`none`&&Rc!==document;)Rc=Rc.parentNode;Rc!==document.body&&Rc!==document.documentElement?(Rc===document&&(Rc=us()),t.top+=Rc.scrollTop,t.left+=Rc.scrollLeft):Rc=us(),zc=gs(Rc)}dc=R.cloneNode(!0),os(dc,n.ghostClass,!1),os(dc,n.fallbackClass,!0),os(dc,n.dragClass,!0),ss(dc,`transition`,``),ss(dc,`transform`,``),ss(dc,`box-sizing`,`border-box`),ss(dc,`margin`,0),ss(dc,`top`,t.top),ss(dc,`left`,t.left),ss(dc,`width`,t.width),ss(dc,`height`,t.height),ss(dc,`opacity`,`0.8`),ss(dc,`position`,Uc?`absolute`:`fixed`),ss(dc,`zIndex`,`100000`),ss(dc,`pointerEvents`,`none`),ks.ghost=dc,e.appendChild(dc),ss(dc,`transform-origin`,Ac/parseInt(dc.style.width)*100+`% `+jc/parseInt(dc.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(lc(`dragStart`,this,{evt:e}),ks.eventCanceled){this._onDrop();return}lc(`setupClone`,this),ks.eventCanceled||(hc=xs(R),hc.draggable=!1,hc.style[`will-change`]=``,this._hideClone(),os(hc,this.options.chosenClass,!1),ks.clone=hc),n.cloneId=Bs(function(){lc(`clone`,n),!ks.eventCanceled&&(n.options.removeCloneOnHide||fc.insertBefore(hc,R),n._hideClone(),Os({sortable:n,name:`clone`}))}),!t&&os(R,i.dragClass,!0),t?(wc=!0,n._loopId=setInterval(n._emulateDragOver,50)):(rs(document,`mouseup`,n._onDrop),rs(document,`touchend`,n._onDrop),rs(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,R)),ns(document,`drop`,n),ss(R,`transform`,`translateZ(0)`)),Cc=!0,n._dragStartId=Bs(n._dragStarted.bind(n,t,e)),ns(document,`selectstart`,n),Mc=!0,Qs&&ss(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=ks.active,l=xc===s,u=o.sort,d=Sc||c,f,p=this,m=!1;if(Bc)return;function h(o,s){lc(o,p,Wo({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 js(fc,t,R,r,n,ds(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&&(os(R,Sc?Sc.options.ghostClass:c.options.ghostClass,!1),os(R,o.ghostClass,!0)),Sc!==p&&p!==ks.active?Sc=p:p===ks.active&&Sc&&(Sc=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)&&(Nc=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(R.parentNode[ic]._isOutsideThisEl(e.target),!r&&$c(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){vc=hs(R),bc=hs(R,o.draggable),Os({sortable:p,name:`change`,toEl:t,newIndex:vc,newDraggableIndex:bc,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=as(n,o.draggable,t,!0),h(`dragOver`),ks.eventCanceled)return m;if(R.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(wc=!1,c&&!o.disabled&&(l?u||(a=uc!==fc):Sc===this||(this.lastPutMode=xc.checkPull(this,c,R,e))&&s.checkPut(this,c,R,e))){if(f=this._getDirection(e,n)===`vertical`,r=ds(R),h(`dragOverValid`),ks.eventCanceled)return m;if(a)return uc=fc,g(),this._hideClone(),h(`revert`),ks.eventCanceled||(pc?fc.insertBefore(R,pc):fc.appendChild(R)),_(!0);var y=ms(t,o.draggable);if(!y||Fs(e,f,this)&&!y.animated){if(y===R)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=ds(n)),js(fc,t,R,r,n,i,e,!!n)!==!1)return g(),t.appendChild(R),uc=t,v(),_(!0)}else if(y&&Ps(e,f,this)){var b=ps(t,0,o,!0);if(b===R)return _(!1);if(n=b,i=ds(n),js(fc,t,R,r,n,i,e,!1)!==!1)return g(),t.insertBefore(R,b),uc=t,v(),_(!0)}else if(n.parentNode===t){i=ds(n);var x=0,S,C=R.parentNode!==t,w=!Jc(R.animated&&R.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=fs(n,`top`,`top`)||fs(R,`top`,`top`),D=E?E.scrollTop:void 0;Nc!==n&&(S=i[T],Fc=!1,Ic=!w&&o.invertSwap||C),x=Is(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Ic,Nc===n);var O;if(x!==0){var ee=hs(R);do ee-=x,O=uc.children[ee];while(O&&(ss(O,`display`)===`none`||O===dc))}if(x===0||O===n)return _(!1);Nc=n,Pc=x;var k=n.nextElementSibling,A=!1;A=x===1;var j=js(fc,t,R,r,n,i,e,A);if(j!==!1)return(j===1||j===-1)&&(A=j===1),Bc=!0,setTimeout(Ns,30),g(),A&&!k?t.appendChild(R):n.parentNode.insertBefore(R,A?k:n),E&&bs(E,0,D-E.scrollTop),uc=R.parentNode,S!==void 0&&!Ic&&(Lc=Math.abs(S-ds(n)[T])),v(),_(!0)}if(t.contains(R))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){rs(document,`mousemove`,this._onTouchMove),rs(document,`touchmove`,this._onTouchMove),rs(document,`pointermove`,this._onTouchMove),rs(document,`dragover`,$c),rs(document,`mousemove`,$c),rs(document,`touchmove`,$c)},_offUpEvents:function(){var e=this.el.ownerDocument;rs(e,`mouseup`,this._onDrop),rs(e,`touchend`,this._onDrop),rs(e,`pointerup`,this._onDrop),rs(e,`touchcancel`,this._onDrop),rs(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(vc=hs(R),bc=hs(R,n.draggable),lc(`drop`,this,{evt:e}),uc=R&&R.parentNode,vc=hs(R),bc=hs(R,n.draggable),ks.eventCanceled){this._nulling();return}Cc=!1,Ic=!1,Fc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vs(this.cloneId),Vs(this._dragStartId),this.nativeDraggable&&(rs(document,`drop`,this),rs(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Qs&&ss(document.body,`user-select`,``),ss(R,`transform`,``),e&&(Mc&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),dc&&dc.parentNode&&dc.parentNode.removeChild(dc),(fc===uc||Sc&&Sc.lastPutMode!==`clone`)&&hc&&hc.parentNode&&hc.parentNode.removeChild(hc),R&&(this.nativeDraggable&&rs(R,`dragend`,this),Ms(R),R.style[`will-change`]=``,Mc&&!Cc&&os(R,Sc?Sc.options.ghostClass:this.options.ghostClass,!1),os(R,this.options.chosenClass,!1),Os({sortable:this,name:`unchoose`,toEl:uc,newIndex:null,newDraggableIndex:null,originalEvent:e}),fc===uc?vc!==_c&&vc>=0&&(Os({sortable:this,name:`update`,toEl:uc,originalEvent:e}),Os({sortable:this,name:`sort`,toEl:uc,originalEvent:e})):(vc>=0&&(Os({rootEl:uc,name:`add`,toEl:uc,fromEl:fc,originalEvent:e}),Os({sortable:this,name:`remove`,toEl:uc,originalEvent:e}),Os({rootEl:uc,name:`sort`,toEl:uc,fromEl:fc,originalEvent:e}),Os({sortable:this,name:`sort`,toEl:uc,originalEvent:e})),Sc&&Sc.save()),ks.active&&((vc==null||vc===-1)&&(vc=_c,bc=yc),Os({sortable:this,name:`end`,toEl:uc,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){lc(`nulling`,this),fc=R=uc=dc=pc=hc=mc=gc=Ec=Dc=Mc=vc=bc=_c=yc=Nc=Pc=Sc=xc=ks.dragged=ks.ghost=ks.clone=ks.active=null,Vc.forEach(function(e){e.checked=!0}),Vc.length=Oc=kc=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:R&&(this._onDragOver(e),As(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],as(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Rs(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];as(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 as(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=sc.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&Xc(n)},destroy:function(){lc(`destroy`,this);var e=this.el;e[ic]=null,rs(e,`mousedown`,this._onTapStart),rs(e,`touchstart`,this._onTapStart),rs(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(rs(e,`dragover`,this),rs(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),Tc.splice(Tc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!gc){if(lc(`hideClone`,this),ks.eventCanceled)return;ss(hc,`display`,`none`),this.options.removeCloneOnHide&&hc.parentNode&&hc.parentNode.removeChild(hc),gc=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(gc){if(lc(`showClone`,this),ks.eventCanceled)return;R.parentNode==fc&&!this.options.group.revertClone?fc.insertBefore(hc,R):pc?fc.insertBefore(hc,pc):fc.appendChild(hc),this.options.group.revertClone&&this.animate(R,hc),ss(hc,`display`,``),gc=!1}}},Hc&&ns(document,`touchmove`,function(e){(ks.active||Cc)&&e.cancelable&&e.preventDefault()}),ks.utils={on:ns,off:rs,css:ss,find:ls,is:function(e,t){return!!as(e,t,e,!1)},extend:Aee,throttle:ys,closest:as,toggleClass:os,clone:xs,index:hs,nextTick:Bs,cancelNextTick:Vs,detectDirection:qc,getChild:ps},ks.get=function(e){return e[ic]},ks.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&&(ks.utils=Wo(Wo({},ks.utils),e.utils)),sc.mount(e)})},ks.create=function(e,t){return new ks(e,t)},ks.version=Js,tl=[],il=!1,ll=ys(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=us(),l=!1,u;rl!==n&&(rl=n,Hs(),nl=t.scroll,u=t.scrollFn,nl===!0&&(nl=_s(n,!0)));var d=0,f=nl;do{var p=f,m=ds(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=ss(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),ee=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!tl[d])for(var k=0;k<=d;k++)tl[k]||(tl[k]={});(tl[d].vx!=O||tl[d].vy!=ee||tl[d].el!==p)&&(tl[d].el=p,tl[d].vx=O,tl[d].vy=ee,clearInterval(tl[d].pid),(O!=0||ee!=0)&&(l=!0,tl[d].pid=setInterval(function(){r&&this.layer===0&&ks.active._onTouchMove(sl);var t=tl[this.layer].vy?tl[this.layer].vy*s:0,n=tl[this.layer].vx?tl[this.layer].vx*s:0;typeof u==`function`&&u.call(ks.dragged.parentNode[ic],n,t,e,sl,tl[this.layer].el)!==`continue`||bs(tl[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=_s(f,!1)));il=l}},30),ul=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}))}},Ws.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=ps(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:ul},qo(Ws,{pluginName:`revertOnSpill`}),Gs.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ul},qo(Gs,{pluginName:`removeOnSpill`}),fl=[],pl=[],gl=!1,_l=!1,vl=!1,ks.mount(new Mee),ks.mount(Gs,Ws)})),Lee=ne(ve(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(Vo(),(Sl(),be(Ho))):typeof define==`function`&&define.amd?define([,`sortablejs`],r):typeof e==`object`?e.vuedraggable=r(Vo(),(Sl(),be(Ho))):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),ee=[],k=1;k<C.length;k++)ee.push(g(C[k]));var A=C.groups;if(m){var j=[D].concat(ee,O,p);A!==void 0&&j.push(A);var M=String(r.apply(void 0,j))}else M=b(D,p,O,ee,A,r);O>=T&&(w+=p.slice(T,O)+M,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),ee=t==`Array`&&E.entries||D,k,A,j;if(ee&&(k=a(ee.call(new e)),m!==Object.prototype&&k.next&&(!d&&a(k)!==m&&(o?o(k,m):typeof k[g]!=`function`&&c(k,g,b)),s(k,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(A={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(j in A)(h||T||!(j in E))&&l(E,j,A[j]);else r({target:t,proto:!0,forced:h||T},A);return A}}),"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`),ee=n(`5692`),k=n(`f772`),A=n(`d012`),j=n(`90e3`),M=n(`b622`),te=n(`e538`),N=n(`746f`),ne=n(`d44e`),re=n(`69f3`),ie=n(`b727`).forEach,ae=k(`hidden`),oe=`Symbol`,se=`prototype`,ce=M(`toPrimitive`),P=re.set,le=re.getterFor(oe),ue=Object[se],de=i.Symbol,fe=a(`JSON`,`stringify`),pe=w.f,me=T.f,he=S.f,ge=E.f,_e=ee(`symbols`),ve=ee(`op-symbols`),ye=ee(`string-to-symbol-registry`),be=ee(`symbol-to-string-registry`),F=ee(`wks`),xe=i.QObject,Se=!xe||!xe[se]||!xe[se].findChild,Ce=s&&u(function(){return y(me({},`a`,{get:function(){return me(this,`a`,{value:7}).a}})).a!=7})?function(e,t,n){var r=pe(ue,t);r&&delete ue[t],me(e,t,n),r&&e!==ue&&me(ue,t,r)}:me,we=function(e,t){var n=_e[e]=y(de[se]);return P(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 de},Ee=function(e,t,n){e===ue&&Ee(ve,t,n),m(e);var r=_(t,!0);return m(n),d(_e,r)?(n.enumerable?(d(e,ae)&&e[ae][r]&&(e[ae][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,ae)||me(e,ae,v(1,{})),e[ae][r]=!0),Ce(e,r,n)):me(e,r,n)},De=function(e,t){m(e);var n=g(t);return ie(b(n).concat(Ae(n)),function(t){(!s||L.call(n,t))&&Ee(e,t,n[t])}),e},I=function(e,t){return t===void 0?y(e):De(y(e),t)},L=function(e){var t=_(e,!0),n=ge.call(this,t);return this===ue&&d(_e,t)&&!d(ve,t)?!1:n||!d(this,t)||!d(_e,t)||d(this,ae)&&this[ae][t]?n:!0},Oe=function(e,t){var n=g(e),r=_(t,!0);if(!(n===ue&&d(_e,r)&&!d(ve,r))){var i=pe(n,r);return i&&d(_e,r)&&!(d(n,ae)&&n[ae][r])&&(i.enumerable=!0),i}},ke=function(e){var t=he(g(e)),n=[];return ie(t,function(e){!d(_e,e)&&!d(A,e)&&n.push(e)}),n},Ae=function(e){var t=e===ue,n=he(t?ve:g(e)),r=[];return ie(n,function(e){d(_e,e)&&(!t||d(ue,e))&&r.push(_e[e])}),r};c||(de=function(){if(this instanceof de)throw TypeError(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=j(e),n=function(e){this===ue&&n.call(ve,e),d(this,ae)&&d(this[ae],t)&&(this[ae][t]=!1),Ce(this,t,v(1,e))};return s&&Se&&Ce(ue,t,{configurable:!0,set:n}),we(t,e)},O(de[se],`toString`,function(){return le(this).tag}),O(de,`withoutSetter`,function(e){return we(j(e),e)}),E.f=L,T.f=Ee,w.f=Oe,x.f=S.f=ke,C.f=Ae,te.f=function(e){return we(M(e),e)},s&&(me(de[se],`description`,{configurable:!0,get:function(){return le(this).description}}),o||O(ue,`propertyIsEnumerable`,L,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:de}),ie(b(F),function(e){N(e)}),r({target:oe,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ye,t))return ye[t];var n=de(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:I,defineProperty:Ee,defineProperties:De,getOwnPropertyDescriptor:Oe}),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))}}),fe&&r({target:`JSON`,stat:!0,forced:!c||u(function(){var e=de();return fe([e])!=`[null]`||fe({a:e})!=`{}`||fe(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,fe.apply(null,r)}}),de[se][ce]||D(de[se],ce,de[se].valueOf),ne(de,oe),A[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`],ee=[`Move`],k=[ee,D,O].flatMap(function(e){return e}).map(function(e){return`on${e}`}),A={manage:ee,manageAndEmit:D,emit:O};function j(e){return k.indexOf(e)!==-1}n(`caad`),n(`2ca0`);var M=`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 M.includes(e)}function N(e){return[`transition-group`,`TransitionGroup`].includes(e)}function ne(e){return[`id`,`class`,`role`,`style`].includes(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`)}function re(e){return e.reduce(function(e,t){var n=m(t,2),r=n[0];return e[r]=n[1],e},{})}function ie(e){var t=e.$attrs,n=e.componentData,r=n===void 0?{}:n;return c(c({},re(Object.entries(t).filter(function(e){var t=m(e,2),n=t[0];return t[1],ne(n)}))),r)}function ae(e){var t=e.$attrs,n=e.callBackBuilder,r=re(oe(t));Object.entries(n).forEach(function(e){var t=m(e,2),n=t[0],i=t[1];A[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],!ne(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],!j(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 P(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),e}var le=function(e){return e.el},ue=function(e,t){return e.__draggable_context=t},de=function(e){return e.__draggable_context},fe=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 P(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){ue(le(e),{element:t[n],index:n})})}},{key:`getUnderlyingVm`,value:function(e){return de(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=de(a);if(o)return o.index;if(r===0)return 0;var s=le(n[0]);return e<v(i).findIndex(function(e){return e===s})?0:r}},{key:`_isRootComponent`,get:function(){return this.externalComponent||this.rootTransition}}]),e}(),pe=n(`8bbf`);function me(e,t){var n=e[t];return n?n():[]}function he(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],a=m([`header`,`footer`].map(function(e){return me(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 ge(e){var t=N(e),n=!te(e)&&!t;return{transition:t,externalComponent:n,tag:n?(0,pe.resolveComponent)(e):t?pe.TransitionGroup:e}}function _e(e){var t=e.$slots,n=e.tag,r=e.realList,i=e.getKey;return new fe({nodes:he({$slots:t,realList:r,getKey:i}),root:ge(n),realList:r})}function ve(e,t){var n=this;(0,pe.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),ve.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(A.manageAndEmit),v(A.emit)).map(function(e){return e.toLowerCase()})));t.default=(0,pe.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=_e({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=o;var s=ie({$attrs:t,componentData:r});return o.render(pe.h,s)}catch(e){return this.error=!0,(0,pe.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 ve.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,pe.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),Ree=[{value:`text`,label:`单行文本`},{value:`email`,label:`邮箱`},{value:`tel`,label:`手机/电话`},{value:`textarea`,label:`多行文本`},{value:`number`,label:`数字`},{value:`select`,label:`下拉选择`},{value:`checkbox`,label:`勾选确认(通用)`},{value:yt,label:`签署承诺书`},{value:`file`,label:`文件上传`},{value:`date`,label:`日期`}],zee=[{value:`text`,label:`单行文本`},{value:`email`,label:`邮箱`},{value:`tel`,label:`手机/电话`},{value:`textarea`,label:`多行文本`},{value:`select`,label:`下拉选择`}],Bee=[{value:`number`,label:`数字(打分维度)`},{value:`textarea`,label:`多行文本(评语等)`},{value:`text`,label:`单行文本`}],Cl=[{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 wl(){return globalThis.crypto?.randomUUID?.()??`f_${Date.now()}_${Math.random().toString(36).slice(2)}`}function Tl(e,t,n){let r=n??(e===`review`?`number`:`text`);return{__uid:wl(),key:e===`review`?`dim_${t+1}`:`field_${t+1}`,type:r,label:e===`review`?`评分维度 ${t+1}`:`字段 ${t+1}`,required:e!==`review`,list:e!==`review`,filter:!1,titleSupplement:``,placeholder:``,placeholderEn:``,help:``,helpEn:``,labelEn:``,options:[],prefillFrom:``,requiredWhenField:``,requiredWhenValuesLines:``,fileExtensionsLines:``,fileMaxCount:``}}function El(e){return Array.isArray(e)?e.map(e=>{if(typeof e==`object`&&e&&`label`in e&&`value`in e){let t=String(e.label_i18n?.en??``).trim();return{label:String(e.label),value:String(e.value),...t?{labelEn:t}:{}}}return typeof e==`string`?{label:e,value:e}:null}).filter(e=>e!=null&&e.label!==``):[]}function Dl(e,t){return Array.isArray(e)?e.map((e,n)=>{if(typeof e!=`object`||!e)return Tl(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`?yt: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:wl(),key:i,type:o,label:String(r.label??`字段 ${n+1}`),labelEn:r.label_i18n!=null&&typeof r.label_i18n==`object`?String(r.label_i18n.en??``):``,required:!!r.required,list:r.list===!0,filter:r.filter===!0,titleSupplement:r.title_supplement==null?``:String(r.title_supplement),placeholder:r.placeholder==null?``:String(r.placeholder),placeholderEn:r.placeholder_i18n!=null&&typeof r.placeholder_i18n==`object`?String(r.placeholder_i18n.en??``):``,help:r.help==null?``:String(r.help),helpEn:r.help_i18n!=null&&typeof r.help_i18n==`object`?String(r.help_i18n.en??``):``,options:o===`select`?El(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)):``})()}}):[Tl(t,0)]}function Ol(e,t){return e.map(e=>{let n=e.type===yt,r={key:n?`commitment_accepted`:e.key.trim(),type:n?`checkbox`:e.type,label:e.label.trim(),required:e.required};if(e.list&&(r.list=!0),e.filter&&(r.filter=!0),e.labelEn?.trim()&&(r.label_i18n={en:e.labelEn.trim()}),e.placeholder?.trim()&&(r.placeholder=e.placeholder.trim()),e.placeholderEn?.trim()&&(r.placeholder_i18n={en:e.placeholderEn.trim()}),e.help?.trim()&&(r.help=e.help.trim()),e.helpEn?.trim()&&(r.help_i18n={en:e.helpEn.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!==``).map(e=>{let t={label:e.label,value:e.value};return e.labelEn?.trim()&&(t.label_i18n={en:e.labelEn.trim()}),t})),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 Vee(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`||t===`audience`){let n=r.type===`commitment_promise`?`checkbox`:r.type;if(t===`signup`){let t=wt(r.type===`commitment_promise`?`commitment_accepted`:e,n);if(t)return t}}if(t===`signup`&&r.type!==`commitment_promise`&&r.requiredWhenField?.trim()&&!r.requiredWhenValuesLines?.trim())return`字段「${e}」填写了条件必填依赖,但未填写「当取值」列表`}return null}var Hee={class:`schema-builder__palette`},Uee=[`onClick`],Wee={class:`schema-builder__canvas`},Gee={class:`schema-builder__pane-title`},Kee=[`onClick`],kl={class:`preview-field-body`},Al={class:`preview-label`},jl={key:0,class:`preview-required`},Ml={key:1,class:`preview-supplement`},Nl={key:4,class:`preview-pledge`},Pl={key:5,class:`preview-upload`},Fl={key:7,class:`preview-help`},qee={key:0,class:`preview-empty`},Jee={class:`schema-builder__props`},Yee={class:`schema-builder__pane-title`},Xee={class:`prop-stack`},Zee={key:0},Qee={key:1},$ee={key:2},ete={class:`prop-switches`},tte={key:3},nte={class:`cond-hint`},rte={key:4},ite={key:5},ate={key:6},ote={key:7},ste={class:`prop-actions`},cte={key:1,class:`preview-empty`},Il=Ae(n({__name:`FormSchemaVisualEditor`,props:f({purpose:{},fill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=ge(e,`modelValue`),r=F(``),o=Se(()=>t.purpose===`review`?Bee:t.purpose===`audience`?zee:Ree),s=Se(()=>t.purpose===`audience`?`观众报名表`:t.purpose===`review`?`评审表`:`模板表单`),c=Se(()=>n.value.find(e=>e.__uid===r.value)??null),l=Se(()=>n.value.findIndex(e=>e.__uid===r.value));me(n,e=>{if(e.length===0){r.value=``;return}e.some(e=>e.__uid===r.value)||(r.value=e[0].__uid)},{immediate:!0});function d(e){return o.value.find(t=>t.value===e)?.label??e}function f(e){let t=new Set(n.value.map(e=>e.key)),r=n.value.length+1,i=`${e}_${r}`;for(;t.has(i);)r+=1,i=`${e}_${r}`;return i}function p(e){let i=Tl(t.purpose,n.value.length,e);i.key=f(t.purpose===`review`?`dim`:`field`),i.label=d(e),m(i),n.value=[...n.value,i],r.value=i.__uid}function m(e){e.type===`commitment_promise`?(e.key=`commitment_accepted`,e.options=[],e.prefillFrom=``,e.requiredWhenField=``,e.requiredWhenValuesLines=``,(!e.label.trim()||e.label===d(`commitment_promise`))&&(e.label=`本人已阅读并同意《参赛承诺书》的全部内容`),e.required=!0,e.list=!1,e.filter=!1):e.type!==`select`&&(e.options=[]),e.type===`file`&&(e.prefillFrom=``)}function h(e){m(e)}function _(e){r.value=e}function v(){let e=l.value,t=n.value[e];if(!t)return;let i={...t,__uid:globalThis.crypto?.randomUUID?.()??`f_${Date.now()}`,key:t.type===`commitment_promise`?`commitment_accepted`:`${t.key}_copy`,label:`${t.label}(副本)`,options:t.options?.map(e=>({...e}))},a=[...n.value];a.splice(e+1,0,i),n.value=a,r.value=i.__uid}function b(){if(n.value.length<=1)return;let e=l.value;if(e<0)return;let t=n.value.filter((t,n)=>n!==e);n.value=t,r.value=t[Math.min(e,t.length-1)]?.__uid??``}function x(e){let t=l.value;if(t<0)return;let r=Math.min(Math.max(1,e),n.value.length)-1;if(r===t)return;let i=[...n.value],[a]=i.splice(t,1);i.splice(r,0,a),n.value=i}function C(e){return(e??[]).map(e=>[e.label,e.value,e.labelEn??``].filter((e,t)=>t<2||e).join(`|`)).join(`
`)}function T(e,t){e.options=t.split(`
`).map(e=>{let t=e.split(`|`).map(e=>e.trim());if(t.every(e=>e===``))return null;if(t.length===1)return{label:t[0],value:t[0]};let n=t[0]||t[1],r=t[1]||n,i=t[2]||``;return n||r?{label:n,value:r,...i?{labelEn:i}:{}}:null}).filter(e=>e!=null)}function E(e){return Cl.find(t=>t.value===e)?.label??`不设置预填`}function O(e){return e.placeholder?.trim()||`请填写${e.label||`此项`}`}return(t,d)=>{let f=y(`el-input`),m=y(`el-option`),ee=y(`el-select`),k=y(`el-checkbox`),j=y(`el-input-number`),te=y(`el-switch`),ne=y(`el-button`);return u(),w(`div`,{class:re([`schema-builder`,{"schema-builder--fill":e.fill}])},[S(`aside`,Hee,[d[21]||=S(`div`,{class:`schema-builder__pane-title`},`组件`,-1),d[22]||=S(`p`,{class:`schema-builder__hint`},`点击添加到表单末尾,中间画布可拖拽排序。`,-1),(u(!0),w(A,null,D(o.value,e=>(u(),w(`button`,{key:e.value,type:`button`,class:`palette-item`,onClick:t=>p(e.value)},M(e.label),9,Uee))),128))]),S(`section`,Wee,[S(`div`,Gee,M(s.value),1),P(a(Lee.default),{modelValue:n.value,"onUpdate:modelValue":d[0]||=e=>n.value=e,"item-key":`__uid`,handle:`.preview-drag`,animation:200,tag:`div`,class:`preview-list`},{item:N(({element:e})=>[S(`div`,{class:re([`preview-field`,{"is-selected":e.__uid===r.value}]),onClick:t=>_(e.__uid)},[d[23]||=S(`span`,{class:`preview-drag`,title:`拖动排序`},`⠿`,-1),S(`div`,kl,[S(`label`,Al,[e.required?(u(),w(`span`,jl,`*`)):xe(``,!0),g(` `+M(e.label||`未命名字段`)+` `,1),e.titleSupplement?(u(),w(`span`,Ml,M(e.titleSupplement),1)):xe(``,!0)]),[`text`,`email`,`tel`,`number`,`date`].includes(e.type)?(u(),i(f,{key:0,placeholder:O(e),type:e.type===`number`?`number`:`text`,disabled:``},null,8,[`placeholder`,`type`])):e.type===`textarea`?(u(),i(f,{key:1,type:`textarea`,rows:3,placeholder:O(e),disabled:``},null,8,[`placeholder`])):e.type===`select`?(u(),i(ee,{key:2,class:`w-100`,placeholder:e.placeholder||`请选择`,disabled:``},{default:N(()=>[(u(!0),w(A,null,D(e.options??[],e=>(u(),i(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:2},1032,[`placeholder`])):e.type===`checkbox`?(u(),i(k,{key:3,disabled:``},{default:N(()=>[g(M(e.label||`勾选确认`),1)]),_:2},1024)):e.type===a(`commitment_promise`)?(u(),w(`div`,Nl,` 查看并签署承诺书 `)):e.type===`file`?(u(),w(`div`,Pl,`选择文件`)):(u(),i(f,{key:6,placeholder:O(e),disabled:``},null,8,[`placeholder`])),e.help?(u(),w(`p`,Fl,M(e.help),1)):xe(``,!0)])],10,Kee)]),_:1},8,[`modelValue`]),n.value.length===0?(u(),w(`p`,qee,`从左侧选择组件,开始搭建表单`)):xe(``,!0)]),S(`aside`,Jee,[S(`div`,Yee,M(c.value?`更新字段`:`字段属性`),1),c.value?(u(),w(A,{key:0},[S(`div`,Xee,[S(`div`,null,[d[24]||=S(`div`,{class:`field-label`},`字段类型`,-1),P(ee,{modelValue:c.value.type,"onUpdate:modelValue":d[1]||=e=>c.value.type=e,class:`w-100`,onChange:d[2]||=e=>h(c.value)},{default:N(()=>[(u(!0),w(A,null,D(o.value,e=>(u(),i(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`])]),S(`div`,null,[d[25]||=S(`div`,{class:`field-label`},`字段名称`,-1),P(f,{modelValue:c.value.label,"onUpdate:modelValue":d[3]||=e=>c.value.label=e,placeholder:`如:姓名`},null,8,[`modelValue`])]),e.purpose===`review`?xe(``,!0):(u(),w(`div`,Zee,[d[26]||=S(`div`,{class:`field-label`},`英文名称`,-1),P(f,{modelValue:c.value.labelEn,"onUpdate:modelValue":d[4]||=e=>c.value.labelEn=e,placeholder:`Full Name`},null,8,[`modelValue`])])),S(`div`,null,[d[27]||=S(`div`,{class:`field-label`},`字段标识`,-1),P(f,{modelValue:c.value.key,"onUpdate:modelValue":d[5]||=e=>c.value.key=e,disabled:c.value.type===a(yt),placeholder:`如 player_name`},null,8,[`modelValue`,`disabled`])]),S(`div`,null,[d[28]||=S(`div`,{class:`field-label`},`标题补充`,-1),P(f,{modelValue:c.value.titleSupplement,"onUpdate:modelValue":d[6]||=e=>c.value.titleSupplement=e,placeholder:`可选,展示在标题后`},null,8,[`modelValue`])]),S(`div`,null,[d[29]||=S(`div`,{class:`field-label`},`帮助文字`,-1),P(f,{modelValue:c.value.help,"onUpdate:modelValue":d[7]||=e=>c.value.help=e,placeholder:`请输入…`},null,8,[`modelValue`])]),e.purpose===`review`?xe(``,!0):(u(),w(`div`,Qee,[d[30]||=S(`div`,{class:`field-label`},`英文帮助文字`,-1),P(f,{modelValue:c.value.helpEn,"onUpdate:modelValue":d[8]||=e=>c.value.helpEn=e,placeholder:`可选`},null,8,[`modelValue`])])),S(`div`,null,[d[31]||=S(`div`,{class:`field-label`},`占位提示`,-1),P(f,{modelValue:c.value.placeholder,"onUpdate:modelValue":d[9]||=e=>c.value.placeholder=e,placeholder:`可选`},null,8,[`modelValue`])]),e.purpose===`review`?xe(``,!0):(u(),w(`div`,$ee,[d[32]||=S(`div`,{class:`field-label`},`英文占位提示`,-1),P(f,{modelValue:c.value.placeholderEn,"onUpdate:modelValue":d[10]||=e=>c.value.placeholderEn=e,placeholder:`可选`},null,8,[`modelValue`])])),S(`div`,null,[d[33]||=S(`div`,{class:`field-label`},`排序`,-1),P(j,{"model-value":l.value+1,min:1,max:Math.max(n.value.length,1),step:1,"controls-position":`right`,class:`w-100`,onChange:d[11]||=e=>x(Number(e||1))},null,8,[`model-value`,`max`])]),S(`div`,null,[d[34]||=S(`div`,{class:`field-label`},`校验规则`,-1),S(`div`,ete,[P(te,{modelValue:c.value.required,"onUpdate:modelValue":d[12]||=e=>c.value.required=e,"active-text":`必填`},null,8,[`modelValue`]),e.purpose===`review`?xe(``,!0):(u(),i(te,{key:0,modelValue:c.value.list,"onUpdate:modelValue":d[13]||=e=>c.value.list=e,"active-text":`列表展示`},null,8,[`modelValue`])),e.purpose===`review`?xe(``,!0):(u(),i(te,{key:1,modelValue:c.value.filter,"onUpdate:modelValue":d[14]||=e=>c.value.filter=e,"active-text":`可筛选`},null,8,[`modelValue`]))])]),e.purpose===`signup`&&c.value.type!==`file`&&c.value.type!==a(`commitment_promise`)?(u(),w(`div`,tte,[d[35]||=S(`div`,{class:`field-label`},`预填对照`,-1),P(ee,{modelValue:c.value.prefillFrom,"onUpdate:modelValue":d[15]||=e=>c.value.prefillFrom=e,class:`w-100`},{default:N(()=>[(u(!0),w(A,null,D(a(Cl),e=>(u(),i(m,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),S(`p`,nte,` 仅空值时按「`+M(c.value.key||`字段标识`)+` ← `+M(E(c.value.prefillFrom))+`」补入。 `,1)])):xe(``,!0),e.purpose===`signup`&&c.value.type===`file`?(u(),w(`div`,rte,[d[36]||=S(`div`,{class:`field-label`},`文件格式限制`,-1),P(f,{modelValue:c.value.fileExtensionsLines,"onUpdate:modelValue":d[16]||=e=>c.value.fileExtensionsLines=e,type:`textarea`,rows:2,placeholder:`每行一个扩展名,如 pdf`},null,8,[`modelValue`])])):xe(``,!0),e.purpose===`signup`&&c.value.type===`file`?(u(),w(`div`,ite,[d[37]||=S(`div`,{class:`field-label`},`最多上传文件数`,-1),P(f,{modelValue:c.value.fileMaxCount,"onUpdate:modelValue":d[17]||=e=>c.value.fileMaxCount=e,placeholder:`不填则不限制`,inputmode:`numeric`},null,8,[`modelValue`])])):xe(``,!0),c.value.type===`select`?(u(),w(`div`,ate,[d[38]||=S(`div`,{class:`field-label`},`选项`,-1),P(f,{type:`textarea`,rows:5,"model-value":C(c.value.options),placeholder:`每行:本科|bachelor|Bachelor’s Degree`,onInput:d[18]||=e=>T(c.value,e)},null,8,[`model-value`])])):xe(``,!0),e.purpose===`signup`&&c.value.type!==a(`commitment_promise`)?(u(),w(`div`,ote,[d[39]||=S(`div`,{class:`field-label`},`条件必填`,-1),P(f,{modelValue:c.value.requiredWhenField,"onUpdate:modelValue":d[19]||=e=>c.value.requiredWhenField=e,class:`mb-2`,placeholder:`依赖字段标识,如 location_country`},null,8,[`modelValue`]),P(f,{modelValue:c.value.requiredWhenValuesLines,"onUpdate:modelValue":d[20]||=e=>c.value.requiredWhenValuesLines=e,type:`textarea`,rows:3,placeholder:`依赖取值,每行一个编码,例如:
overseas`},null,8,[`modelValue`])])):xe(``,!0)]),S(`div`,ste,[P(ne,{type:`primary`,onClick:v},{default:N(()=>[...d[40]||=[g(`复制`,-1)]]),_:1}),P(ne,{type:`danger`,disabled:n.value.length<=1,onClick:b},{default:N(()=>[...d[41]||=[g(`删除`,-1)]]),_:1},8,[`disabled`])])],64)):(u(),w(`p`,cte,`在中间画布点选一个字段后,在此编辑属性。`))])],2)}}}),[[`__scopeId`,`data-v-9970f865`]]),lte={class:`schema-inline`},ute={class:`form-hint`},dte={class:`schema-inline__toolbar`},fte={class:`schema-inline__actions`},pte={key:1},mte={key:2,class:`text-danger small mt-2 mb-0`},hte={class:`cell-muted`},Ll=Ae(n({__name:`SchemaInlineEditorPane`,props:f({purpose:{},schemas:{},boundId:{},boundHint:{},busy:{type:Boolean}},{editorId:{required:!0},editorIdModifiers:{},editorName:{required:!0},editorNameModifiers:{},items:{required:!0},itemsModifiers:{},editorTab:{required:!0},editorTabModifiers:{},jsonText:{required:!0},jsonTextModifiers:{},error:{required:!0},errorModifiers:{}}),emits:f([`create`,`refresh`,`save`,`bind`,`publish`,`remove`,`select`,`jsonBlur`],[`update:editorId`,`update:editorName`,`update:items`,`update:editorTab`,`update:jsonText`,`update:error`]),setup(e,{emit:t}){let n=e,r=ge(e,`editorId`),o=ge(e,`editorName`),s=ge(e,`items`),c=ge(e,`editorTab`),l=ge(e,`jsonText`),d=ge(e,`error`),f=t;function p(e){return n.purpose===`signup`?e.is_current_signup:n.purpose===`audience`?!!e.is_current_audience:e.is_current_review}function m(e){return`${e.name}(v${e.version}${p(e)?` · 当前`:``})`}function h(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(`、`):`—`}let _=n.purpose===`audience`?`新建观众报名表`:n.purpose===`review`?`新建评审表`:`新建报名表`,v=n.purpose===`audience`?`设为当前观众表`:`设为当前报名表`;return(t,n)=>{let b=y(`el-option`),x=y(`el-select`),C=y(`el-input`),T=y(`el-radio-button`),E=y(`el-radio-group`),O=y(`el-button`),ee=y(`el-empty`),k=y(`el-table-column`),j=y(`el-table`),te=y(`el-collapse-item`),ne=y(`el-collapse`);return u(),w(`div`,lte,[S(`p`,ute,[g(M(e.boundHint)+` 当前绑定编号:`,1),S(`strong`,null,M(e.boundId??`未绑定`),1)]),S(`div`,dte,[P(x,{"model-value":r.value??void 0,class:`schema-inline__version`,placeholder:`请选择表单版本`,disabled:!e.schemas.length,onChange:n[0]||=e=>f(`select`,e)},{default:N(()=>[(u(!0),w(A,null,D(e.schemas,e=>(u(),i(b,{key:e.id,label:m(e),value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`model-value`,`disabled`]),P(C,{modelValue:o.value,"onUpdate:modelValue":n[1]||=e=>o.value=e,class:`schema-inline__name`,placeholder:`版本名称`,autocomplete:`off`},null,8,[`modelValue`]),P(E,{modelValue:c.value,"onUpdate:modelValue":n[2]||=e=>c.value=e,class:`schema-inline__mode`},{default:N(()=>[P(T,{value:`visual`},{default:N(()=>[...n[10]||=[g(`可视化设计`,-1)]]),_:1}),P(T,{value:`json`},{default:N(()=>[...n[11]||=[g(`JSON 源码`,-1)]]),_:1})]),_:1},8,[`modelValue`]),S(`div`,fte,[P(O,{type:`primary`,disabled:!r.value,onClick:n[3]||=e=>f(`save`)},{default:N(()=>[...n[12]||=[g(`保存`,-1)]]),_:1},8,[`disabled`]),P(O,{disabled:!r.value,onClick:n[4]||=e=>r.value&&f(`bind`,r.value)},{default:N(()=>[g(M(a(v)),1)]),_:1},8,[`disabled`]),P(O,{type:`primary`,plain:``,onClick:n[5]||=e=>f(`create`)},{default:N(()=>[g(M(a(_)),1)]),_:1}),P(O,{loading:e.busy,onClick:n[6]||=e=>f(`refresh`)},{default:N(()=>[...n[13]||=[g(`刷新`,-1)]]),_:1},8,[`loading`])])]),r.value?(u(),w(A,{key:0},[c.value===`visual`?(u(),i(Il,{key:0,modelValue:s.value,"onUpdate:modelValue":n[7]||=e=>s.value=e,purpose:e.purpose,fill:``},null,8,[`modelValue`,`purpose`])):(u(),w(`div`,pte,[n[14]||=S(`p`,{class:`text-muted small mb-2`},`适合粘贴备份或高级字段;切回可视化时会尽量同步(仅识别常用属性)。`,-1),P(C,{modelValue:l.value,"onUpdate:modelValue":n[8]||=e=>l.value=e,type:`textarea`,rows:18,class:`font-monospace`,spellcheck:`false`,onBlur:n[9]||=e=>f(`jsonBlur`)},null,8,[`modelValue`])])),d.value?(u(),w(`p`,mte,M(d.value),1)):xe(``,!0)],64)):(u(),i(ee,{key:1,description:`还没有表单版本,请先新建`,"image-size":72})),P(ne,{class:`schema-inline__history`},{default:N(()=>[P(te,{title:`历史版本`,name:`history`},{default:N(()=>[P(j,{data:e.schemas,stripe:``,border:``,"empty-text":`暂无版本`,class:`workspace-table`},{default:N(()=>[P(k,{prop:`name`,label:`名称`,"min-width":`120`}),P(k,{prop:`version`,label:`版本`,width:`80`}),P(k,{label:`发布`,width:`72`},{default:N(({row:e})=>[g(M(e.is_published?`是`:`否`),1)]),_:1}),P(k,{label:`当前`,width:`88`},{default:N(({row:e})=>[g(M(p(e)?`当前`:`—`),1)]),_:1}),P(k,{label:`字段预览`,"min-width":`200`},{default:N(({row:e})=>[S(`span`,hte,M(h(e.field_labels,e.schema_json)),1)]),_:1}),P(k,{label:`操作`,width:`220`,fixed:`right`,align:`right`},{default:N(({row:e})=>[P(O,{link:``,type:`primary`,size:`small`,onClick:t=>f(`select`,e.id)},{default:N(()=>[...n[15]||=[g(`打开`,-1)]]),_:1},8,[`onClick`]),P(O,{link:``,type:`primary`,size:`small`,onClick:t=>f(`bind`,e.id)},{default:N(()=>[...n[16]||=[g(`设为当前`,-1)]]),_:1},8,[`onClick`]),P(O,{link:``,size:`small`,onClick:t=>f(`publish`,e,!e.is_published)},{default:N(()=>[g(M(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),P(O,{link:``,type:`danger`,size:`small`,onClick:t=>f(`remove`,e)},{default:N(()=>[...n[17]||=[g(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})]),_:1})])}}}),[[`__scopeId`,`data-v-7ab72a72`]]),Rl=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Bl(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vl,Hl,Ul=function(e){return e&&e.Math==Math&&e},Wl=Ul(typeof globalThis==`object`&&globalThis)||Ul(typeof window==`object`&&window)||Ul(typeof self==`object`&&self)||Ul(typeof Rl==`object`&&Rl)||function(){return this}()||Function(`return this`)(),Gl=Function.prototype,Kl=Gl.apply,ql=Gl.bind,Jl=Gl.call,Yl=typeof Reflect==`object`&&Reflect.apply||(ql?Jl.bind(Kl):function(){return Jl.apply(Kl,arguments)}),Xl=Function.prototype,Zl=Xl.bind,Ql=Xl.call,$l=Zl&&Zl.bind(Ql),eu=Zl?function(e){return e&&$l(Ql,e)}:function(e){return e&&function(){return Ql.apply(e,arguments)}},tu=function(e){return typeof e==`function`},nu=function(e){try{return!!e()}catch{return!0}},ru=!nu((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),iu=Function.prototype.call,au=iu.bind?iu.bind(iu):function(){return iu.apply(iu,arguments)},ou={}.propertyIsEnumerable,su=Object.getOwnPropertyDescriptor,cu={f:su&&!ou.call({1:2},1)?function(e){var t=su(this,e);return!!t&&t.enumerable}:ou},lu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uu=eu({}.toString),gte=eu(``.slice),du=function(e){return gte(uu(e),8,-1)},fu=Wl.Object,_te=eu(``.split),pu=nu((function(){return!fu(`z`).propertyIsEnumerable(0)}))?function(e){return du(e)==`String`?_te(e,``):fu(e)}:fu,vte=Wl.TypeError,mu=function(e){if(e==null)throw vte(`Can't call method on `+e);return e},hu=function(e){return pu(mu(e))},gu=function(e){return typeof e==`object`?e!==null:tu(e)},_u={},vu=function(e){return tu(e)?e:void 0},yu=function(e,t){return arguments.length<2?vu(_u[e])||vu(Wl[e]):_u[e]&&_u[e][t]||Wl[e]&&Wl[e][t]},bu=eu({}.isPrototypeOf),xu=yu(`navigator`,`userAgent`)||``,Su=Wl.process,Cu=Wl.Deno,wu=Su&&Su.versions||Cu&&Cu.version,Tu=wu&&wu.v8;Tu&&(Hl=(Vl=Tu.split(`.`))[0]>0&&Vl[0]<4?1:+(Vl[0]+Vl[1])),!Hl&&xu&&(!(Vl=xu.match(/Edge\/(\d+)/))||Vl[1]>=74)&&(Vl=xu.match(/Chrome\/(\d+)/))&&(Hl=+Vl[1]);var Eu,Du=Hl,Ou=!!Object.getOwnPropertySymbols&&!nu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Du&&Du<41})),ku=Ou&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,yte=Wl.Object,Au=ku?function(e){return typeof e==`symbol`}:function(e){var t=yu(`Symbol`);return tu(t)&&bu(t.prototype,yte(e))},bte=Wl.String,ju=function(e){try{return bte(e)}catch{return`Object`}},xte=Wl.TypeError,Mu=function(e){if(tu(e))return e;throw xte(ju(e)+` is not a function`)},Nu=function(e,t){var n=e[t];return n==null?void 0:Mu(n)},Ste=Wl.TypeError,Cte=Object.defineProperty,Pu=Wl[`__core-js_shared__`]||function(e,t){try{Cte(Wl,e,{value:t,configurable:!0,writable:!0})}catch{Wl[e]=t}return t}(`__core-js_shared__`,{}),Fu=Bl((function(e){(e.exports=function(e,t){return Pu[e]||(Pu[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),wte=Wl.Object,Iu=function(e){return wte(mu(e))},Tte=eu({}.hasOwnProperty),Lu=Object.hasOwn||function(e,t){return Tte(Iu(e),t)},Ete=0,Dte=Math.random(),Ote=eu(1 .toString),Ru=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Ote(++Ete+Dte,36)},zu=Fu(`wks`),Bu=Wl.Symbol,Vu=Bu&&Bu.for,kte=ku?Bu:Bu&&Bu.withoutSetter||Ru,Hu=function(e){if(!Lu(zu,e)||!Ou&&typeof zu[e]!=`string`){var t=`Symbol.`+e;Ou&&Lu(Bu,e)?zu[e]=Bu[e]:zu[e]=ku&&Vu?Vu(t):kte(t)}return zu[e]},Ate=Wl.TypeError,jte=Hu(`toPrimitive`),Mte=function(e,t){if(!gu(e)||Au(e))return e;var n,r=Nu(e,jte);if(r){if(t===void 0&&(t=`default`),n=au(r,e,t),!gu(n)||Au(n))return n;throw Ate(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&tu(n=e.toString)&&!gu(r=au(n,e))||tu(n=e.valueOf)&&!gu(r=au(n,e))||t!==`string`&&tu(n=e.toString)&&!gu(r=au(n,e)))return r;throw Ste(`Can't convert object to primitive value`)}(e,t)},Uu=function(e){var t=Mte(e,`string`);return Au(t)?t:t+``},Wu=Wl.document,Nte=gu(Wu)&&gu(Wu.createElement),Gu=function(e){return Nte?Wu.createElement(e):{}},Ku=!ru&&!nu((function(){return Object.defineProperty(Gu(`div`),`a`,{get:function(){return 7}}).a!=7})),qu=Object.getOwnPropertyDescriptor,Ju={f:ru?qu:function(e,t){if(e=hu(e),t=Uu(t),Ku)try{return qu(e,t)}catch{}if(Lu(e,t))return lu(!au(cu.f,e,t),e[t])}},Pte=/#|\.prototype\./,Yu=function(e,t){var n=Ite[Fte(e)];return n==Xu||n!=Lte&&(tu(t)?nu(t):!!t)},Fte=Yu.normalize=function(e){return String(e).replace(Pte,`.`).toLowerCase()},Ite=Yu.data={},Lte=Yu.NATIVE=`N`,Xu=Yu.POLYFILL=`P`,Zu=Yu,Qu=eu(eu.bind),$u=function(e,t){return Mu(e),t===void 0?e:Qu?Qu(e,t):function(){return e.apply(t,arguments)}},ed=Wl.String,td=Wl.TypeError,nd=function(e){if(gu(e))return e;throw td(ed(e)+` is not an object`)},rd=Wl.TypeError,id=Object.defineProperty,ad={f:ru?id:function(e,t,n){if(nd(e),t=Uu(t),nd(n),Ku)try{return id(e,t,n)}catch{}if(`get`in n||`set`in n)throw rd(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},od=ru?function(e,t,n){return ad.f(e,t,lu(1,n))}:function(e,t,n){return e[t]=n,e},sd=Ju.f,cd=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 Yl(e,this,arguments)};return t.prototype=e.prototype,t},ld=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?Wl:f?Wl[u]:(Wl[u]||{}).prototype,h=d?_u:_u[u]||od(_u,u,{})[u],g=h.prototype;for(i in t)n=!Zu(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&Lu(m,i),o=h[i],n&&(s=e.noTargetGet?(l=sd(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?$u(a,Wl):e.wrap&&n?cd(a):p&&tu(a)?eu(a):a,(e.sham||a&&a.sham||o&&o.sham)&&od(c,`sham`,!0),od(h,i,c),p&&(Lu(_u,r=u+`Prototype`)||od(_u,r,{}),od(_u[r],i,a),e.real&&g&&!g[i]&&od(g,i,a)))},ud=Fu(`keys`),dd=function(e){return ud[e]||(ud[e]=Ru(e))},fd=!nu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),pd=dd(`IE_PROTO`),md=Wl.Object,hd=md.prototype,gd=fd?md.getPrototypeOf:function(e){var t=Iu(e);if(Lu(t,pd))return t[pd];var n=t.constructor;return tu(n)&&t instanceof n?n.prototype:t instanceof md?hd:null},_d=Wl.String,vd=Wl.TypeError,yd=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=eu(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return nd(n),function(e){if(typeof e==`object`||tu(e))return e;throw vd(`Can't set `+_d(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),bd=Math.ceil,xd=Math.floor,Sd=function(e){var t=+e;return t!=t||t===0?0:(t>0?xd:bd)(t)},Cd=Math.max,wd=Math.min,Td=function(e,t){var n=Sd(e);return n<0?Cd(n+t,0):wd(n,t)},Ed=Math.min,Dd=function(e){return(t=e.length)>0?Ed(Sd(t),9007199254740991):0;var t},Od=function(e){return function(t,n,r){var i,a=hu(t),o=Dd(a),s=Td(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}},kd={includes:Od(!0),indexOf:Od(!1)},Ad={},jd=kd.indexOf,Md=eu([].push),Nd=function(e,t){var n,r=hu(e),i=0,a=[];for(n in r)!Lu(Ad,n)&&Lu(r,n)&&Md(a,n);for(;t.length>i;)Lu(r,n=t[i++])&&(~jd(a,n)||Md(a,n));return a},Pd=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Fd=Pd.concat(`length`,`prototype`),Id={f:Object.getOwnPropertyNames||function(e){return Nd(e,Fd)}},Ld={f:Object.getOwnPropertySymbols},Rd=eu([].concat),zd=yu(`Reflect`,`ownKeys`)||function(e){var t=Id.f(nd(e)),n=Ld.f;return n?Rd(t,n(e)):t},Bd=Object.keys||function(e){return Nd(e,Pd)},Vd=ru?Object.defineProperties:function(e,t){nd(e);for(var n,r=hu(t),i=Bd(t),a=i.length,o=0;a>o;)ad.f(e,n=i[o++],r[n]);return e},Hd=yu(`document`,`documentElement`),Ud=dd(`IE_PROTO`),Wd=function(){},Gd=function(e){return`<script>`+e+`<\/script>`},Kd=function(e){e.write(Gd(``)),e.close();var t=e.parentWindow.Object;return e=null,t},qd=function(){try{Eu=new ActiveXObject(`htmlfile`)}catch{}var e,t;qd=typeof document<`u`?document.domain&&Eu?Kd(Eu):((t=Gu(`iframe`)).style.display=`none`,Hd.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Gd(`document.F=Object`)),e.close(),e.F):Kd(Eu);for(var n=Pd.length;n--;)delete qd.prototype[Pd[n]];return qd()};Ad[Ud]=!0;var Jd=Object.create||function(e,t){var n;return e===null?n=qd():(Wd.prototype=nd(e),n=new Wd,Wd.prototype=null,n[Ud]=e),t===void 0?n:Vd(n,t)},Yd=function(e,t,n){var r=Uu(t);r in e?ad.f(e,r,lu(0,n)):e[r]=n},Rte=Wl.Array,zte=Math.max,Xd=function(e,t,n){for(var r=Dd(e),i=Td(t,r),a=Td(n===void 0?r:n,r),o=Rte(zte(a-i,0)),s=0;i<a;i++,s++)Yd(o,s,e[i]);return o.length=s,o},Bte=eu(``.replace),Vte=eu(``.split),Hte=eu([].join),Zd=String(Error(`zxcasd`).stack),Qd=/\n\s*at [^:]*:[^\n]*/,Ute=Qd.test(Zd),Wte=/@[^\n]*\n/.test(Zd)&&!/zxcasd/.test(Zd),Gte=function(e,t){if(typeof e!=`string`)return e;if(Ute)for(;t--;)e=Bte(e,Qd,``);else if(Wte)return Hte(Xd(Vte(e,`
`),t),`
`);return e},Kte=function(e,t){gu(t)&&`cause`in t&&od(e,`cause`,t.cause)},$d={},qte=Hu(`iterator`),Jte=Array.prototype,ef={};ef[Hu(`toStringTag`)]=`z`;var tf=String(ef)===`[object z]`,Yte=Hu(`toStringTag`),Xte=Wl.Object,Zte=du(function(){return arguments}())==`Arguments`,nf=tf?du: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=Xte(e),Yte))==`string`?n:Zte?du(t):(r=du(t))==`Object`&&tu(t.callee)?`Arguments`:r},Qte=Hu(`iterator`),rf=function(e){if(e!=null)return Nu(e,Qte)||Nu(e,`@@iterator`)||$d[nf(e)]},$te=Wl.TypeError,af=function(e,t,n){var r,i;nd(e);try{if(!(r=Nu(e,`return`))){if(t===`throw`)throw n;return n}r=au(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return nd(r),n},ene=Wl.TypeError,of=function(e,t){this.stopped=e,this.result=t},sf=of.prototype,tne=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=$u(t,u),h=function(e){return r&&af(r,`normal`,e),new of(!0,e)},g=function(e){return d?(nd(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=rf(e)))throw ene(ju(e)+` is not iterable`);if(function(e){return e!==void 0&&($d.Array===e||Jte[qte]===e)}(i)){for(a=0,o=Dd(e);o>a;a++)if((s=g(e[a]))&&bu(sf,s))return s;return new of(!1)}r=function(e,t){var n=arguments.length<2?rf(e):t;if(Mu(n))return nd(au(n,e));throw $te(ju(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=au(c,r)).done;){try{s=g(l.value)}catch(e){af(r,`throw`,e)}if(typeof s==`object`&&s&&bu(sf,s))return s}return new of(!1)},nne=Wl.String,cf=function(e){if(nf(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return nne(e)},rne=function(e,t){return e===void 0?arguments.length<2?``:t:cf(e)},ine=!nu((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,lu(1,7)),e.stack!==7)})),ane=Hu(`toStringTag`),lf=Wl.Error,one=[].push,uf=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=bu(df,this);yd?n=yd(new lf(void 0),i?gd(this):df):(n=i?this:Jd(df),od(n,ane,`Error`)),od(n,`message`,rne(t,``)),ine&&od(n,`stack`,Gte(n.stack,1)),Kte(n,r);var a=[];return tne(e,one,{that:a}),od(n,`errors`,a),n};yd?yd(uf,lf):function(e,t){for(var n=zd(t),r=ad.f,i=Ju.f,a=0;a<n.length;a++){var o=n[a];Lu(e,o)||r(e,o,i(t,o))}}(uf,lf);var df=uf.prototype=Jd(lf.prototype,{constructor:lu(1,uf),message:lu(1,``),name:lu(1,`AggregateError`)});ld({global:!0},{AggregateError:uf});var sne=eu(Function.toString);tu(Pu.inspectSource)||(Pu.inspectSource=function(e){return sne(e)});var ff,pf,mf,hf=Pu.inspectSource,gf=Wl.WeakMap,cne=tu(gf)&&/native code/.test(hf(gf)),_f=Wl.TypeError,lne=Wl.WeakMap;if(cne||Pu.state){var vf=Pu.state||=new lne,une=eu(vf.get),yf=eu(vf.has),dne=eu(vf.set);ff=function(e,t){if(yf(vf,e))throw new _f(`Object already initialized`);return t.facade=e,dne(vf,e,t),t},pf=function(e){return une(vf,e)||{}},mf=function(e){return yf(vf,e)}}else{var bf=dd(`state`);Ad[bf]=!0,ff=function(e,t){if(Lu(e,bf))throw new _f(`Object already initialized`);return t.facade=e,od(e,bf,t),t},pf=function(e){return Lu(e,bf)?e[bf]:{}},mf=function(e){return Lu(e,bf)}}var xf,Sf,Cf,wf={set:ff,get:pf,has:mf,enforce:function(e){return mf(e)?pf(e):ff(e,{})},getterFor:function(e){return function(t){var n;if(!gu(t)||(n=pf(t)).type!==e)throw _f(`Incompatible receiver, `+e+` required`);return n}}},Tf=Function.prototype,fne=ru&&Object.getOwnPropertyDescriptor,Ef=Lu(Tf,`name`),pne={EXISTS:Ef,PROPER:Ef&&function(){}.name===`something`,CONFIGURABLE:Ef&&(!ru||ru&&fne(Tf,`name`).configurable)},Df=function(e,t,n,r){r&&r.enumerable?e[t]=n:od(e,t,n)},Of=Hu(`iterator`),kf=!1;[].keys&&(`next`in(Cf=[].keys())?(Sf=gd(gd(Cf)))!==Object.prototype&&(xf=Sf):kf=!0),xf=xf==null||nu((function(){var e={};return xf[Of].call(e)!==e}))?{}:Jd(xf),tu(xf[Of])||Df(xf,Of,(function(){return this}));var Af={IteratorPrototype:xf,BUGGY_SAFARI_ITERATORS:kf},mne=tf?{}.toString:function(){return`[object `+nf(this)+`]`},hne=ad.f,jf=Hu(`toStringTag`),Mf=function(e,t,n,r){if(e){var i=n?e:e.prototype;Lu(i,jf)||hne(i,jf,{configurable:!0,value:t}),r&&!tf&&od(i,`toString`,mne)}},gne=Af.IteratorPrototype,_ne=function(){return this},vne=pne.PROPER,Nf=Af.BUGGY_SAFARI_ITERATORS,Pf=Hu(`iterator`),yne=function(){return this},Ff=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Jd(gne,{next:lu(+!r,n)}),Mf(e,i,!1,!0),$d[i]=_ne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Nf&&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[Pf]||p[`@@iterator`]||i&&p[i],h=!Nf&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=gd(g.call(new e)))!==Object.prototype&&s.next&&(Mf(s,d,!0,!0),$d[d]=yne),vne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return au(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Nf||f||!(l in p))&&Df(p,l,c[l]);else ld({target:t,proto:!0,forced:Nf||f},c);return o&&p[Pf]!==h&&Df(p,Pf,h,{name:i}),$d[t]=h,c},bne=wf.set,xne=wf.getterFor(`Array Iterator`);Ff(Array,`Array`,(function(e,t){bne(this,{type:`Array Iterator`,target:hu(e),index:0,kind:t})}),(function(){var e=xne(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`),$d.Arguments=$d.Array;var Sne=eu(``.charAt),If=eu(``.charCodeAt),Cne=eu(``.slice),Lf=function(e){return function(t,n){var r,i,a=cf(mu(t)),o=Sd(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=If(a,o))<55296||r>56319||o+1===s||(i=If(a,o+1))<56320||i>57343?e?Sne(a,o):r:e?Cne(a,o,o+2):i-56320+(r-55296<<10)+65536}},wne={codeAt:Lf(!1),charAt:Lf(!0)}.charAt,Tne=wf.set,Ene=wf.getterFor(`String Iterator`);Ff(String,`String`,(function(e){Tne(this,{type:`String Iterator`,string:cf(e),index:0})}),(function(){var e,t=Ene(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wne(n,r),t.index+=e.length,{value:e,done:!1})}));var Dne=_u.AggregateError,Rf=Hu(`toStringTag`);for(var zf 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 Bf=Wl[zf],Vf=Bf&&Bf.prototype;Vf&&nf(Vf)!==Rf&&od(Vf,Rf,zf),$d[zf]=$d.Array}var Hf,Uf,One=Dne,Wf=function(e){return e&&e.Math==Math&&e},Gf=Wf(typeof globalThis==`object`&&globalThis)||Wf(typeof window==`object`&&window)||Wf(typeof self==`object`&&self)||Wf(typeof Rl==`object`&&Rl)||function(){return this}()||Function(`return this`)(),Kf=function(e){try{return!!e()}catch{return!0}},qf=!Kf((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Jf=Function.prototype.call,Yf=Jf.bind?Jf.bind(Jf):function(){return Jf.apply(Jf,arguments)},Xf={}.propertyIsEnumerable,Zf=Object.getOwnPropertyDescriptor,kne={f:Zf&&!Xf.call({1:2},1)?function(e){var t=Zf(this,e);return!!t&&t.enumerable}:Xf},Qf=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$f=Function.prototype,ep=$f.bind,tp=$f.call,Ane=ep&&ep.bind(tp),np=ep?function(e){return e&&Ane(tp,e)}:function(e){return e&&function(){return tp.apply(e,arguments)}},jne=np({}.toString),Mne=np(``.slice),rp=function(e){return Mne(jne(e),8,-1)},ip=Gf.Object,Nne=np(``.split),ap=Kf((function(){return!ip(`z`).propertyIsEnumerable(0)}))?function(e){return rp(e)==`String`?Nne(e,``):ip(e)}:ip,Pne=Gf.TypeError,op=function(e){if(e==null)throw Pne(`Can't call method on `+e);return e},sp=function(e){return ap(op(e))},cp=function(e){return typeof e==`function`},lp=function(e){return typeof e==`object`?e!==null:cp(e)},Fne=function(e){return cp(e)?e:void 0},up=function(e,t){return arguments.length<2?Fne(Gf[e]):Gf[e]&&Gf[e][t]},dp=np({}.isPrototypeOf),fp=up(`navigator`,`userAgent`)||``,pp=Gf.process,mp=Gf.Deno,hp=pp&&pp.versions||mp&&mp.version,gp=hp&&hp.v8;gp&&(Uf=(Hf=gp.split(`.`))[0]>0&&Hf[0]<4?1:+(Hf[0]+Hf[1])),!Uf&&fp&&(!(Hf=fp.match(/Edge\/(\d+)/))||Hf[1]>=74)&&(Hf=fp.match(/Chrome\/(\d+)/))&&(Uf=+Hf[1]);var _p=Uf,vp=!!Object.getOwnPropertySymbols&&!Kf((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_p&&_p<41})),yp=vp&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ine=Gf.Object,bp=yp?function(e){return typeof e==`symbol`}:function(e){var t=up(`Symbol`);return cp(t)&&dp(t.prototype,Ine(e))},Lne=Gf.String,xp=function(e){try{return Lne(e)}catch{return`Object`}},Rne=Gf.TypeError,Sp=function(e){if(cp(e))return e;throw Rne(xp(e)+` is not a function`)},Cp=function(e,t){var n=e[t];return n==null?void 0:Sp(n)},zne=Gf.TypeError,Bne=Object.defineProperty,wp=function(e,t){try{Bne(Gf,e,{value:t,configurable:!0,writable:!0})}catch{Gf[e]=t}return t},Tp=Gf[`__core-js_shared__`]||wp(`__core-js_shared__`,{}),Ep=Bl((function(e){(e.exports=function(e,t){return Tp[e]||(Tp[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Vne=Gf.Object,Dp=function(e){return Vne(op(e))},Hne=np({}.hasOwnProperty),Op=Object.hasOwn||function(e,t){return Hne(Dp(e),t)},Une=0,Wne=Math.random(),Gne=np(1 .toString),kp=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Gne(++Une+Wne,36)},Ap=Ep(`wks`),jp=Gf.Symbol,Mp=jp&&jp.for,Kne=yp?jp:jp&&jp.withoutSetter||kp,Np=function(e){if(!Op(Ap,e)||!vp&&typeof Ap[e]!=`string`){var t=`Symbol.`+e;vp&&Op(jp,e)?Ap[e]=jp[e]:Ap[e]=yp&&Mp?Mp(t):Kne(t)}return Ap[e]},qne=Gf.TypeError,Jne=Np(`toPrimitive`),Yne=function(e,t){if(!lp(e)||bp(e))return e;var n,r=Cp(e,Jne);if(r){if(t===void 0&&(t=`default`),n=Yf(r,e,t),!lp(n)||bp(n))return n;throw qne(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&cp(n=e.toString)&&!lp(r=Yf(n,e))||cp(n=e.valueOf)&&!lp(r=Yf(n,e))||t!==`string`&&cp(n=e.toString)&&!lp(r=Yf(n,e)))return r;throw zne(`Can't convert object to primitive value`)}(e,t)},Pp=function(e){var t=Yne(e,`string`);return bp(t)?t:t+``},Fp=Gf.document,Xne=lp(Fp)&&lp(Fp.createElement),Ip=function(e){return Xne?Fp.createElement(e):{}},Lp=!qf&&!Kf((function(){return Object.defineProperty(Ip(`div`),`a`,{get:function(){return 7}}).a!=7})),Rp=Object.getOwnPropertyDescriptor,zp={f:qf?Rp:function(e,t){if(e=sp(e),t=Pp(t),Lp)try{return Rp(e,t)}catch{}if(Op(e,t))return Qf(!Yf(kne.f,e,t),e[t])}},Zne=Gf.String,Qne=Gf.TypeError,Bp=function(e){if(lp(e))return e;throw Qne(Zne(e)+` is not an object`)},$ne=Gf.TypeError,Vp=Object.defineProperty,Hp={f:qf?Vp:function(e,t,n){if(Bp(e),t=Pp(t),Bp(n),Lp)try{return Vp(e,t,n)}catch{}if(`get`in n||`set`in n)throw $ne(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Up=qf?function(e,t,n){return Hp.f(e,t,Qf(1,n))}:function(e,t,n){return e[t]=n,e},ere=np(Function.toString);cp(Tp.inspectSource)||(Tp.inspectSource=function(e){return ere(e)});var Wp,Gp,Kp,qp=Tp.inspectSource,Jp=Gf.WeakMap,tre=cp(Jp)&&/native code/.test(qp(Jp)),Yp=Ep(`keys`),Xp=function(e){return Yp[e]||(Yp[e]=kp(e))},Zp={},Qp=Gf.TypeError,nre=Gf.WeakMap;if(tre||Tp.state){var $p=Tp.state||=new nre,rre=np($p.get),em=np($p.has),ire=np($p.set);Wp=function(e,t){if(em($p,e))throw new Qp(`Object already initialized`);return t.facade=e,ire($p,e,t),t},Gp=function(e){return rre($p,e)||{}},Kp=function(e){return em($p,e)}}else{var tm=Xp(`state`);Zp[tm]=!0,Wp=function(e,t){if(Op(e,tm))throw new Qp(`Object already initialized`);return t.facade=e,Up(e,tm,t),t},Gp=function(e){return Op(e,tm)?e[tm]:{}},Kp=function(e){return Op(e,tm)}}var nm={set:Wp,get:Gp,has:Kp,enforce:function(e){return Kp(e)?Gp(e):Wp(e,{})},getterFor:function(e){return function(t){var n;if(!lp(t)||(n=Gp(t)).type!==e)throw Qp(`Incompatible receiver, `+e+` required`);return n}}},rm=Function.prototype,are=qf&&Object.getOwnPropertyDescriptor,im=Op(rm,`name`),am={EXISTS:im,PROPER:im&&function(){}.name===`something`,CONFIGURABLE:im&&(!qf||qf&&are(rm,`name`).configurable)},om=Bl((function(e){var t=am.CONFIGURABLE,n=nm.get,r=nm.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;cp(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Op(a,`name`)||t&&a.name!==d)&&Up(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Gf?l?e[n]=a:wp(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Up(e,n,a))})(Function.prototype,`toString`,(function(){return cp(this)&&n(this).source||qp(this)}))})),ore=Math.ceil,sre=Math.floor,sm=function(e){var t=+e;return t!=t||t===0?0:(t>0?sre:ore)(t)},cre=Math.max,lre=Math.min,cm=function(e,t){var n=sm(e);return n<0?cre(n+t,0):lre(n,t)},ure=Math.min,lm=function(e){return e>0?ure(sm(e),9007199254740991):0},um=function(e){return lm(e.length)},dm=function(e){return function(t,n,r){var i,a=sp(t),o=um(a),s=cm(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}},dre={includes:dm(!0),indexOf:dm(!1)}.indexOf,fm=np([].push),pm=function(e,t){var n,r=sp(e),i=0,a=[];for(n in r)!Op(Zp,n)&&Op(r,n)&&fm(a,n);for(;t.length>i;)Op(r,n=t[i++])&&(~dre(a,n)||fm(a,n));return a},mm=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],fre=mm.concat(`length`,`prototype`),pre={f:Object.getOwnPropertyNames||function(e){return pm(e,fre)}},mre={f:Object.getOwnPropertySymbols},hre=np([].concat),gre=up(`Reflect`,`ownKeys`)||function(e){var t=pre.f(Bp(e)),n=mre.f;return n?hre(t,n(e)):t},hm=function(e,t){for(var n=gre(t),r=Hp.f,i=zp.f,a=0;a<n.length;a++){var o=n[a];Op(e,o)||r(e,o,i(t,o))}},_re=/#|\.prototype\./,gm=function(e,t){var n=_m[vre(e)];return n==bre||n!=yre&&(cp(t)?Kf(t):!!t)},vre=gm.normalize=function(e){return String(e).replace(_re,`.`).toLowerCase()},_m=gm.data={},yre=gm.NATIVE=`N`,bre=gm.POLYFILL=`P`,vm=gm,ym=zp.f,bm=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Gf:l?Gf[s]||wp(s,{}):(Gf[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=ym(n,r))&&o.value:n[r],!vm(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;hm(a,i)}(e.sham||i&&i.sham)&&Up(a,`sham`,!0),om(n,r,a,e)}},xm={};xm[Np(`toStringTag`)]=`z`;var Sm,Cm=String(xm)===`[object z]`,xre=Np(`toStringTag`),Sre=Gf.Object,Cre=rp(function(){return arguments}())==`Arguments`,wm=Cm?rp: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=Sre(e),xre))==`string`?n:Cre?rp(t):(r=rp(t))==`Object`&&cp(t.callee)?`Arguments`:r},Tm=Gf.String,Em=function(e){if(wm(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Tm(e)},wre=function(){var e=Bp(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},Dm=Gf.RegExp,Om=Kf((function(){var e=Dm(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Tre=Om||Kf((function(){return!Dm(`a`,`y`).sticky})),Ere={BROKEN_CARET:Om||Kf((function(){var e=Dm(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Tre,UNSUPPORTED_Y:Om},Dre=Object.keys||function(e){return pm(e,mm)},Ore=qf?Object.defineProperties:function(e,t){Bp(e);for(var n,r=sp(t),i=Dre(t),a=i.length,o=0;a>o;)Hp.f(e,n=i[o++],r[n]);return e},kre=up(`document`,`documentElement`),km=Xp(`IE_PROTO`),Am=function(){},jm=function(e){return`<script>`+e+`<\/script>`},Mm=function(e){e.write(jm(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Nm=function(){try{Sm=new ActiveXObject(`htmlfile`)}catch{}var e,t;Nm=typeof document<`u`?document.domain&&Sm?Mm(Sm):((t=Ip(`iframe`)).style.display=`none`,kre.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(jm(`document.F=Object`)),e.close(),e.F):Mm(Sm);for(var n=mm.length;n--;)delete Nm.prototype[mm[n]];return Nm()};Zp[km]=!0;var Pm,Fm,Im=Object.create||function(e,t){var n;return e===null?n=Nm():(Am.prototype=Bp(e),n=new Am,Am.prototype=null,n[km]=e),t===void 0?n:Ore(n,t)},Are=Gf.RegExp,jre=Kf((function(){var e=Are(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Mre=Gf.RegExp,Nre=Kf((function(){var e=Mre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Pre=nm.get,Fre=Ep(`native-string-replace`,String.prototype.replace),Lm=RegExp.prototype.exec,Rm=Lm,Ire=np(``.charAt),zm=np(``.indexOf),Bm=np(``.replace),Vm=np(``.slice),Hm=(Fm=/b*/g,Yf(Lm,Pm=/a/,`a`),Yf(Lm,Fm,`a`),Pm.lastIndex!==0||Fm.lastIndex!==0),Um=Ere.BROKEN_CARET,Wm=/()??/.exec(``)[1]!==void 0;(Hm||Wm||Um||jre||Nre)&&(Rm=function(e){var t,n,r,i,a,o,s,c=this,l=Pre(c),u=Em(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Yf(Rm,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Um&&c.sticky,m=Yf(wre,c),h=c.source,g=0,_=u;if(p&&(m=Bm(m,`y`,``),zm(m,`g`)===-1&&(m+=`g`),_=Vm(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Ire(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Wm&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),Hm&&(r=c.lastIndex),i=Yf(Lm,p?n:c,_),p?i?(i.input=Vm(i.input,g),i[0]=Vm(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Hm&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Wm&&i&&i.length>1&&Yf(Fre,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=Im(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Gm=Rm;bm({target:`RegExp`,proto:!0,forced:/./.exec!==Gm},{exec:Gm});var Km=Np(`species`),qm=RegExp.prototype,Lre=np(``.charAt),Jm=np(``.charCodeAt),Rre=np(``.slice),Ym=function(e){return function(t,n){var r,i,a=Em(op(t)),o=sm(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Jm(a,o))<55296||r>56319||o+1===s||(i=Jm(a,o+1))<56320||i>57343?e?Lre(a,o):r:e?Rre(a,o,o+2):i-56320+(r-55296<<10)+65536}},Xm={codeAt:Ym(!1),charAt:Ym(!0)},zre=Xm.charAt,Bre=function(e,t,n){return t+(n?zre(e,t).length:1)},Vre=Gf.TypeError,Zm=function(e,t){var n=e.exec;if(cp(n)){var r=Yf(n,e,t);return r!==null&&Bp(r),r}if(rp(e)===`RegExp`)return Yf(Gm,e,t);throw Vre(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Np(e),a=!Kf((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Kf((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Km]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=np(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=np(e),c=t.exec;return c===Gm||c===qm.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));om(String.prototype,e,c[0]),om(qm,i,c[1])}r&&Up(qm[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=op(this),r=t==null?void 0:Cp(t,e);return r?Yf(r,t,n):new RegExp(t)[e](Em(n))},function(e){var r=Bp(this),i=Em(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return Zm(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=Zm(r,i))!==null;){var u=Em(s[0]);c[l]=u,u===``&&(r.lastIndex=Bre(i,lm(r.lastIndex),o)),l++}return l===0?null:c}]})),bm({global:!0},{globalThis:Gf});var Hre=!Kf((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qm=Xp(`IE_PROTO`),$m=Gf.Object,Ure=$m.prototype,eh=Hre?$m.getPrototypeOf:function(e){var t=Dp(e);if(Op(t,Qm))return t[Qm];var n=t.constructor;return cp(n)&&t instanceof n?n.prototype:t instanceof $m?Ure:null},Wre=Gf.String,Gre=Gf.TypeError,th=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=np(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Bp(n),function(e){if(typeof e==`object`||cp(e))return e;throw Gre(`Can't set `+Wre(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Kre=Gf.Array,qre=Math.max,Jre=np(``.replace),Yre=np(``.split),Xre=np([].join),nh=String(Error(`zxcasd`).stack),rh=/\n\s*at [^:]*:[^\n]*/,Zre=rh.test(nh),Qre=/@[^\n]*\n/.test(nh)&&!/zxcasd/.test(nh),$re=function(e,t){if(typeof e!=`string`)return e;if(Zre)for(;t--;)e=Jre(e,rh,``);else if(Qre)return Xre(function(e,t,n){for(var r,i,a,o,s=um(e),c=cm(t,s),l=cm(n===void 0?s:n,s),u=Kre(qre(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=Pp(i))in r?Hp.f(r,o,Qf(0,a)):r[o]=a;return u.length=d,u}(Yre(e,`
`),t),`
`);return e},eie=function(e,t){lp(t)&&`cause`in t&&Up(e,`cause`,t.cause)},ih=np(np.bind),ah=function(e,t){return Sp(e),t===void 0?e:ih?ih(e,t):function(){return e.apply(t,arguments)}},oh={},tie=Np(`iterator`),nie=Array.prototype,rie=Np(`iterator`),sh=function(e){if(e!=null)return Cp(e,rie)||Cp(e,`@@iterator`)||oh[wm(e)]},iie=Gf.TypeError,ch=function(e,t,n){var r,i;Bp(e);try{if(!(r=Cp(e,`return`))){if(t===`throw`)throw n;return n}r=Yf(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Bp(r),n},lh=Gf.TypeError,uh=function(e,t){this.stopped=e,this.result=t},dh=uh.prototype,fh=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=ah(t,u),h=function(e){return r&&ch(r,`normal`,e),new uh(!0,e)},g=function(e){return d?(Bp(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=sh(e)))throw lh(xp(e)+` is not iterable`);if(function(e){return e!==void 0&&(oh.Array===e||nie[tie]===e)}(i)){for(a=0,o=um(e);o>a;a++)if((s=g(e[a]))&&dp(dh,s))return s;return new uh(!1)}r=function(e,t){var n=arguments.length<2?sh(e):t;if(Sp(n))return Bp(Yf(n,e));throw iie(xp(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Yf(c,r)).done;){try{s=g(l.value)}catch(e){ch(r,`throw`,e)}if(typeof s==`object`&&s&&dp(dh,s))return s}return new uh(!1)},ph=function(e,t){return e===void 0?arguments.length<2?``:t:Em(e)},mh=!Kf((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,Qf(1,7)),e.stack!==7)})),hh=Np(`toStringTag`),gh=Gf.Error,_h=[].push,vh=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=dp(yh,this);th?n=th(new gh(void 0),i?eh(this):yh):(n=i?this:Im(yh),Up(n,hh,`Error`)),Up(n,`message`,ph(t,``)),mh&&Up(n,`stack`,$re(n.stack,1)),eie(n,r);var a=[];return fh(e,_h,{that:a}),Up(n,`errors`,a),n};th?th(vh,gh):hm(vh,gh);var yh=vh.prototype=Im(gh.prototype,{constructor:Qf(1,vh),message:Qf(1,``),name:Qf(1,`AggregateError`)});bm({global:!0},{AggregateError:vh});var bh=Np(`unscopables`),xh=Array.prototype;xh[bh]??Hp.f(xh,bh,{configurable:!0,value:Im(null)});var Sh,Ch,wh,Th=function(e){xh[bh][e]=!0},Eh=Np(`iterator`),Dh=!1;[].keys&&(`next`in(wh=[].keys())?(Ch=eh(eh(wh)))!==Object.prototype&&(Sh=Ch):Dh=!0),(Sh==null||Kf((function(){var e={};return Sh[Eh].call(e)!==e})))&&(Sh={}),cp(Sh[Eh])||om(Sh,Eh,(function(){return this}));var Oh={IteratorPrototype:Sh,BUGGY_SAFARI_ITERATORS:Dh},aie=Hp.f,kh=Np(`toStringTag`),Ah=function(e,t,n){e&&!Op(e=n?e:e.prototype,kh)&&aie(e,kh,{configurable:!0,value:t})},oie=Oh.IteratorPrototype,sie=function(){return this},cie=am.PROPER,lie=am.CONFIGURABLE,jh=Oh.IteratorPrototype,Mh=Oh.BUGGY_SAFARI_ITERATORS,Nh=Np(`iterator`),uie=function(){return this},Ph=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Im(oie,{next:Qf(+!r,n)}),Ah(e,i,!1),oh[i]=sie})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Mh&&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[Nh]||p[`@@iterator`]||i&&p[i],h=!Mh&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=eh(g.call(new e)))!==Object.prototype&&s.next&&(eh(s)!==jh&&(th?th(s,jh):cp(s[Nh])||om(s,Nh,uie)),Ah(s,d,!0)),cie&&i==`values`&&m&&m.name!==`values`&&(lie?Up(p,`name`,`values`):(f=!0,h=function(){return Yf(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Mh||f||!(l in p))&&om(p,l,c[l]);else bm({target:t,proto:!0,forced:Mh||f},c);return p[Nh]!==h&&om(p,Nh,h,{name:i}),oh[t]=h,c},die=nm.set,fie=nm.getterFor(`Array Iterator`),Fh=Ph(Array,`Array`,(function(e,t){die(this,{type:`Array Iterator`,target:sp(e),index:0,kind:t})}),(function(){var e=fie(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`);oh.Arguments=oh.Array,Th(`keys`),Th(`values`),Th(`entries`);var pie=Xm.charAt,mie=nm.set,hie=nm.getterFor(`String Iterator`);Ph(String,`String`,(function(e){mie(this,{type:`String Iterator`,string:Em(e),index:0})}),(function(){var e,t=hie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pie(n,r),t.index+=e.length,{value:e,done:!1})}));var Ih,Lh={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},Rh=Ip(`span`).classList,zh=Rh&&Rh.constructor&&Rh.constructor.prototype,Bh=zh===Object.prototype?void 0:zh,Vh=Np(`iterator`),Hh=Np(`toStringTag`),Uh=Fh.values,Wh=function(e,t){if(e){if(e[Vh]!==Uh)try{Up(e,Vh,Uh)}catch{e[Vh]=Uh}if(e[Hh]||Up(e,Hh,t),Lh[t]){for(var n in Fh)if(e[n]!==Fh[n])try{Up(e,n,Fh[n])}catch{e[n]=Fh[n]}}}};for(var Gh in Lh)Wh(Gf[Gh]&&Gf[Gh].prototype,Gh);Wh(Bh,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),Kh(),qh()):global&&(Ih=global.navigator)!=null&&Ih.userAgent.match(`QQBrowser`)&&(Kh(),qh());function Kh(){typeof globalThis>`u`&&(window.globalThis=window)}function qh(){One===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var Jh,Yh=Array.isArray||function(e){return du(e)==`Array`},Xh=function(){},gie=[],Zh=yu(`Reflect`,`construct`),Qh=/^\s*(?:class|function)\b/,_ie=eu(Qh.exec),vie=!Qh.exec(Xh),$h=function(e){if(!tu(e))return!1;try{return Zh(Xh,gie,e),!0}catch{return!1}},yie=!Zh||nu((function(){var e;return $h($h.call)||!$h(Object)||!$h((function(){e=!0}))||e}))?function(e){if(!tu(e))return!1;switch(nf(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return vie||!!_ie(Qh,hf(e))}:$h,bie=Hu(`species`),eg=Wl.Array,tg=function(e,t){return new(function(e){var t;return Yh(e)&&(t=e.constructor,(yie(t)&&(t===eg||Yh(t.prototype))||gu(t)&&(t=t[bie])===null)&&(t=void 0)),t===void 0?eg:t}(e))(t===0?0:t)},xie=Hu(`species`),ng=Hu(`isConcatSpreadable`),rg=Wl.TypeError,Sie=Du>=51||!nu((function(){var e=[];return e[ng]=!1,e.concat()[0]!==e})),Cie=(Jh=`concat`,Du>=51||!nu((function(){var e=[];return(e.constructor={})[xie]=function(){return{foo:1}},e[Jh](Boolean).foo!==1}))),wie=function(e){if(!gu(e))return!1;var t=e[ng];return t===void 0?Yh(e):!!t};ld({target:`Array`,proto:!0,forced:!Sie||!Cie},{concat:function(e){var t,n,r,i,a,o=Iu(this),s=tg(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(wie(a=t===-1?o:arguments[t])){if(c+(i=Dd(a))>9007199254740991)throw rg(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Yd(s,c,a[n])}else{if(c>=9007199254740991)throw rg(`Maximum allowed index exceeded`);Yd(s,c++,a)}return s.length=c,s}});var ig=Id.f,ag=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],og={f:function(e){return ag&&du(e)==`Window`?function(e){try{return ig(e)}catch{return Xd(ag)}}(e):ig(hu(e))}},Tie=eu([].slice),sg={f:Hu},Eie=ad.f,cg=function(e){var t=_u.Symbol||={};Lu(t,e)||Eie(t,e,{value:sg.f(e)})},lg=eu([].push),ug=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=Iu(c),h=pu(m),g=$u(l,u),_=Dd(h),v=0,y=d||tg,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}},dg={forEach:ug(0),map:ug(1),filter:ug(2),some:ug(3),every:ug(4),find:ug(5),findIndex:ug(6),filterReject:ug(7)}.forEach,fg=dd(`hidden`),pg=Hu(`toPrimitive`),Die=wf.set,mg=wf.getterFor(`Symbol`),hg=Object.prototype,gg=Wl.Symbol,_g=gg&&gg.prototype,vg=Wl.TypeError,yg=Wl.QObject,bg=yu(`JSON`,`stringify`),xg=Ju.f,Sg=ad.f,Cg=og.f,wg=cu.f,Tg=eu([].push),Eg=Fu(`symbols`),Dg=Fu(`op-symbols`),Og=Fu(`string-to-symbol-registry`),kg=Fu(`symbol-to-string-registry`),Ag=Fu(`wks`),jg=!yg||!yg.prototype||!yg.prototype.findChild,Mg=ru&&nu((function(){return Jd(Sg({},`a`,{get:function(){return Sg(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=xg(hg,t);r&&delete hg[t],Sg(e,t,n),r&&e!==hg&&Sg(hg,t,r)}:Sg,Ng=function(e,t){var n=Eg[e]=Jd(_g);return Die(n,{type:`Symbol`,tag:e,description:t}),ru||(n.description=t),n},Pg=function(e,t,n){e===hg&&Pg(Dg,t,n),nd(e);var r=Uu(t);return nd(n),Lu(Eg,r)?(n.enumerable?(Lu(e,fg)&&e[fg][r]&&(e[fg][r]=!1),n=Jd(n,{enumerable:lu(0,!1)})):(Lu(e,fg)||Sg(e,fg,lu(1,{})),e[fg][r]=!0),Mg(e,r,n)):Sg(e,r,n)},Fg=function(e,t){nd(e);var n=hu(t);return dg(Bd(n).concat(zg(n)),(function(t){ru&&!au(Ig,n,t)||Pg(e,t,n[t])})),e},Ig=function(e){var t=Uu(e),n=au(wg,this,t);return!(this===hg&&Lu(Eg,t)&&!Lu(Dg,t))&&(!(n||!Lu(this,t)||!Lu(Eg,t)||Lu(this,fg)&&this[fg][t])||n)},Lg=function(e,t){var n=hu(e),r=Uu(t);if(n!==hg||!Lu(Eg,r)||Lu(Dg,r)){var i=xg(n,r);return!i||!Lu(Eg,r)||Lu(n,fg)&&n[fg][r]||(i.enumerable=!0),i}},Rg=function(e){var t=Cg(hu(e)),n=[];return dg(t,(function(e){Lu(Eg,e)||Lu(Ad,e)||Tg(n,e)})),n},zg=function(e){var t=e===hg,n=Cg(t?Dg:hu(e)),r=[];return dg(n,(function(e){!Lu(Eg,e)||t&&!Lu(hg,e)||Tg(r,Eg[e])})),r};if(Ou||(_g=(gg=function(){if(bu(_g,this))throw vg(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?cf(arguments[0]):void 0,t=Ru(e),n=function(e){this===hg&&au(n,Dg,e),Lu(this,fg)&&Lu(this[fg],t)&&(this[fg][t]=!1),Mg(this,t,lu(1,e))};return ru&&jg&&Mg(hg,t,{configurable:!0,set:n}),Ng(t,e)}).prototype,Df(_g,`toString`,(function(){return mg(this).tag})),Df(gg,`withoutSetter`,(function(e){return Ng(Ru(e),e)})),cu.f=Ig,ad.f=Pg,Ju.f=Lg,Id.f=og.f=Rg,Ld.f=zg,sg.f=function(e){return Ng(Hu(e),e)},ru&&Sg(_g,`description`,{configurable:!0,get:function(){return mg(this).description}})),ld({global:!0,wrap:!0,forced:!Ou,sham:!Ou},{Symbol:gg}),dg(Bd(Ag),(function(e){cg(e)})),ld({target:`Symbol`,stat:!0,forced:!Ou},{for:function(e){var t=cf(e);if(Lu(Og,t))return Og[t];var n=gg(t);return Og[t]=n,kg[n]=t,n},keyFor:function(e){if(!Au(e))throw vg(e+` is not a symbol`);if(Lu(kg,e))return kg[e]},useSetter:function(){jg=!0},useSimple:function(){jg=!1}}),ld({target:`Object`,stat:!0,forced:!Ou,sham:!ru},{create:function(e,t){return t===void 0?Jd(e):Fg(Jd(e),t)},defineProperty:Pg,defineProperties:Fg,getOwnPropertyDescriptor:Lg}),ld({target:`Object`,stat:!0,forced:!Ou},{getOwnPropertyNames:Rg,getOwnPropertySymbols:zg}),ld({target:`Object`,stat:!0,forced:nu((function(){Ld.f(1)}))},{getOwnPropertySymbols:function(e){return Ld.f(Iu(e))}}),bg&&ld({target:`JSON`,stat:!0,forced:!Ou||nu((function(){var e=gg();return bg([e])!=`[null]`||bg({a:e})!=`{}`||bg(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Tie(arguments),i=t;if((gu(t)||e!==void 0)&&!Au(e))return Yh(t)||(t=function(e,t){if(tu(i)&&(t=au(i,this,e,t)),!Au(t))return t}),r[1]=t,Yl(bg,null,r)}}),!_g[pg]){var Bg=_g.valueOf;Df(_g,pg,(function(e){return au(Bg,this)}))}Mf(gg,`Symbol`),Ad[fg]=!0,cg(`asyncIterator`),cg(`hasInstance`),cg(`isConcatSpreadable`),cg(`iterator`),cg(`match`),cg(`matchAll`),cg(`replace`),cg(`search`),cg(`species`),cg(`split`),cg(`toPrimitive`),cg(`toStringTag`),cg(`unscopables`),Mf(Wl.JSON,`JSON`,!0);var Vg=_u.Symbol;cg(`asyncDispose`),cg(`dispose`),cg(`matcher`),cg(`metadata`),cg(`observable`),cg(`patternMatch`),cg(`replaceAll`);var Hg=Vg,Ug=sg.f(`iterator`),Wg=zl(Bl((function(e){function t(n){return typeof Hg==`function`&&typeof Ug==`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 Hg==`function`&&e.constructor===Hg&&e!==Hg.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}))),Gg=zp.f,Kg=Kf((function(){Gg(1)}));if(bm({target:`Object`,stat:!0,forced:!qf||Kg,sham:!qf},{getOwnPropertyDescriptor:function(e,t){return Gg(sp(e),t)}}),(typeof global>`u`?`undefined`:Wg(global))===`object`){var qg=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!qg.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 Jg(e){return Object.prototype.toString.call(e)===`[object Object]`}function Yg(e){var t,n;return!1!==Jg(e)&&((t=e.constructor)===void 0||!1!==Jg(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function Xg(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 Zg(e){return!!e&&!!e[M_]}function Qg(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)===Mie}(e)||Array.isArray(e)||!!e[j_]||!!e.constructor[j_]||r_(e)||i_(e))}function $g(e,t,n){n===void 0&&(n=!1),e_(e)===0?(n?Object.keys:N_)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function e_(e){var t=e[M_];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:r_(e)?2:i_(e)?3:0}function t_(e,t){return e_(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function n_(e,t,n){var r=e_(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function r_(e){return Aie&&e instanceof Map}function i_(e){return jie&&e instanceof Set}function a_(e){return e.o||e.t}function o_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nie(e);delete t[M_];for(var n=N_(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 s_(e,t){return t===void 0&&(t=!1),l_(e)||Zg(e)||!Qg(e)||(e_(e)>1&&(e.set=e.add=e.clear=e.delete=c_),Object.freeze(e),t&&$g(e,(function(e,t){return s_(t,!0)}),!0)),e}function c_(){Xg(2)}function l_(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function u_(e){var t=Pie[e];return t||Xg(18,e),t}function d_(){return D_}function f_(e,t){t&&(u_(`Patches`),e.u=[],e.s=[],e.v=t)}function p_(e){m_(e),e.p.forEach(Oie),e.p=null}function m_(e){e===D_&&(D_=e.l)}function h_(e){return D_={p:[],l:D_,h:e,m:!0,_:0}}function Oie(e){var t=e[M_];t.i===0||t.i===1?t.j():t.O=!0}function g_(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||u_(`ES5`).S(t,e,r),r?(n[M_].P&&(p_(t),Xg(4)),Qg(e)&&(e=__(t,e),t.l||y_(t,e)),t.u&&u_(`Patches`).M(n[M_],e,t.u,t.s)):e=__(t,n,[]),p_(t),t.u&&t.v(t.u,t.s),e===A_?void 0:e}function __(e,t,n){if(l_(t))return t;var r=t[M_];if(!r)return $g(t,(function(i,a){return v_(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return y_(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=o_(r.k):r.o;$g(r.i===3?new Set(i):i,(function(t,a){return v_(e,r,i,t,a,n)})),y_(e,i,!1),n&&e.u&&u_(`Patches`).R(r,n,e.u,e.s)}return r.o}function v_(e,t,n,r,i,a){if(Zg(i)){var o=__(e,i,a&&t&&t.i!==3&&!t_(t.D,r)?a.concat(r):void 0);if(n_(n,r,o),!Zg(o))return;e.m=!1}if(Qg(i)&&!l_(i)){if(!e.h.F&&e._<1)return;__(e,i),t&&t.A.l||y_(e,i)}}function y_(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&s_(t,n)}function b_(e,t){var n=e[M_];return(n?a_(n):e)[t]}function x_(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 S_(e){e.P||(e.P=!0,e.l&&S_(e.l))}function C_(e){e.o||=o_(e.t)}function w_(e,t,n){var r=r_(t)?u_(`MapSet`).N(t,n):i_(t)?u_(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:d_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=P_;n&&(i=[r],a=F_);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):u_(`ES5`).J(t,n);return(n?n.A:d_()).p.push(r),r}function kie(e){return Zg(e)||Xg(22,e),function e(t){if(!Qg(t))return t;var n,r=t[M_],i=e_(t);if(r){if(!r.P&&(r.i<4||!u_(`ES5`).K(r)))return r.t;r.I=!0,n=T_(t,i),r.I=!1}else n=T_(t,i);return $g(n,(function(t,i){r&&function(e,t){return e_(e)===2?e.get(t):e[t]}(r.t,t)===i||n_(n,t,e(i))})),i===3?new Set(n):n}(e)}function T_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return o_(e)}var E_,D_,O_=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Aie=typeof Map<`u`,jie=typeof Set<`u`,k_=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,A_=O_?Symbol.for(`immer-nothing`):((E_={})[`immer-nothing`]=!0,E_),j_=O_?Symbol.for(`immer-draftable`):`__$immer_draftable`,M_=O_?Symbol.for(`immer-state`):`__$immer_state`,Mie=``+Object.prototype.constructor,N_=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Nie=Object.getOwnPropertyDescriptors||function(e){var t={};return N_(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Pie={},P_={get:function(e,t){if(t===M_)return e;var n=a_(e);if(!t_(n,t))return function(e,t,n){var r=x_(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||!Qg(r)?r:r===b_(e.t,t)?(C_(e),e.o[t]=w_(e.A.h,r,e)):r},has:function(e,t){return t in a_(e)},ownKeys:function(e){return Reflect.ownKeys(a_(e))},set:function(e,t,n){var r=x_(a_(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=b_(a_(e),t),a=i?.[M_];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||t_(e.t,t)))return!0;C_(e),S_(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 b_(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,C_(e),S_(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=a_(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Xg(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xg(12)}},F_={};$g(P_,(function(e,t){F_[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),F_.deleteProperty=function(e,t){return P_.deleteProperty.call(this,e[0],t)},F_.set=function(e,t,n){return P_.set.call(this,e[0],t,n,e[0])};var I_=new(function(){function e(e){var t=this;this.g=k_,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`&&Xg(6),r!==void 0&&typeof r!=`function`&&Xg(7),Qg(e)){var s=h_(t),c=w_(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?p_(s):m_(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return f_(s,r),g_(e,s)}),(function(e){throw p_(s),e})):(f_(s,r),g_(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===A_?void 0:(o===void 0&&(o=e),t.F&&s_(o,!0),o);Xg(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){Qg(e)||Xg(8),Zg(e)&&(e=kie(e));var t=h_(this),n=w_(this,e,void 0);return n[M_].C=!0,m_(t),n},t.finishDraft=function(e,t){var n=(e&&e[M_]).A;return f_(n,t),g_(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!k_&&Xg(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=u_(`Patches`).$;return Zg(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),L_=I_.produce;I_.produceWithPatches.bind(I_),I_.setAutoFreeze.bind(I_),I_.setUseProxies.bind(I_),I_.applyPatches.bind(I_);var R_=I_.createDraft.bind(I_),z_=I_.finishDraft.bind(I_);function B_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V_=new WeakMap,H_=new WeakMap,U_=new WeakMap,W_=new WeakMap,G_=new WeakMap,K_=new WeakMap;function q_(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 J_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?q_(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of B.pathRefs(e))dae.transform(n,t);for(var r of B.pointRefs(e))fae.transform(r,t);for(var i of B.rangeRefs(e))mae.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=V_.get(e)||[],l=Iie(t);for(var u of c)s(H.transform(u,t));for(var d of l)s(d);V_.set(e,o),G.transform(e,t),e.operations.push(t),B.normalize(e),t.type===`set_selection`&&(e.marks=null),H_.get(e)||(H_.set(e,!0),Promise.resolve().then((()=>{H_.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=J_(J_({},B.marks(e)||{}),{},{[t]:n}),H_.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=J_({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=J_({},B.marks(e)||{});delete r[t],e.marks=r,H_.get(e)||e.onChange()}}};return e},Iie=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 Y_(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 X_,Z_=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Vie(e):e,i=X_.None,a=X_.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=$ie(c,l);if([i,a]=n?[a,u]:[u,i],$_(i,X_.ZWJ)&&$_(a,X_.ExtPict)&&!rae(n?e.substring(0,o):e.substring(0,e.length-o))||$_(i,X_.RI)&&$_(a,X_.RI)&&!(s=s===null?!!n||aae(e.substring(0,e.length-o)):!s)||i!==X_.None&&a!==X_.None&&tae(i,a))break;o+=c.length}return o||1},Lie=/\s/,Rie=/[\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]/,zie=/['\u2018\u2019]/,Q_=(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)]},Bie=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Lie.test(t))return!1;if(zie.test(t)){var[i,a]=Q_(n,Z_(n,r),r);if(e(i,a,r))return!0}return!Rie.test(t)},Vie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Uie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Hie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Hie=e=>e>=55296&&e<=56319,Uie=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`})(X_||={});var Wie=/^(?:[\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])$/,Gie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Kie=/^(?:[\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])$/,qie=/^[\u1100-\u115F\uA960-\uA97C]$/,Jie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Yie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Xie=/^[\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]$/,Zie=/^[\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]$/,Qie=/^(?:[\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])$/,$ie=(e,t)=>{var n=X_.Any;return e.search(Wie)!==-1&&(n|=X_.Extend),t===8205&&(n|=X_.ZWJ),t>=127462&&t<=127487&&(n|=X_.RI),e.search(Gie)!==-1&&(n|=X_.Prepend),e.search(Kie)!==-1&&(n|=X_.SpacingMark),e.search(qie)!==-1&&(n|=X_.L),e.search(Jie)!==-1&&(n|=X_.V),e.search(Yie)!==-1&&(n|=X_.T),e.search(Xie)!==-1&&(n|=X_.LV),e.search(Zie)!==-1&&(n|=X_.LVT),e.search(Qie)!==-1&&(n|=X_.ExtPict),n};function $_(e,t){return(e&t)!=0}var eae=[[X_.L,X_.L|X_.V|X_.LV|X_.LVT],[X_.LV|X_.V,X_.V|X_.T],[X_.LVT|X_.T,X_.T],[X_.Any,X_.Extend|X_.ZWJ],[X_.Any,X_.SpacingMark],[X_.Prepend,X_.Any],[X_.ZWJ,X_.ExtPict],[X_.RI,X_.RI]];function tae(e,t){return eae.findIndex((n=>$_(e,n[0])&&$_(t,n[1])))===-1}var nae=/(?:[\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$/,rae=e=>e.search(nae)!==-1,iae=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,aae=e=>{var t=e.match(iae);return t!==null&&t[0].length/2%2==1},ev=e=>Yg(e)&&V.isNodeList(e.children)&&!B.isEditor(e),z={isAncestor:e=>Yg(e)&&V.isNodeList(e.children),isElement:ev,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 ev(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},oae=[`text`],sae=[`text`];function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rv=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,nv(nv({},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,nv(nv({},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(!Yg(e))return!1;var t=rv.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||Yg(e.marks))&&(e.selection===null||U.isRange(e.selection))&&V.isNodeList(e.children)&&sv.isOperationList(e.operations);return rv.set(e,n),n},isEnd(e,t,n){var r=B.end(e,n);return uv.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=U_.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=B.start(e,n);return uv.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 Y_(i,oae)}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 Y_(s,sae)},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(cae.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=>V_.get(e)||[];if(B.isNormalizing(e)){if(t){var r=Array.from(V.nodes(e),(e=>{var[,t]=e;return t}));V_.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)),uv.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=W_.get(e);return t||(t=new Set,W_.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=G_.get(e);return t||(t=new Set,G_.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=Q_(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`?Z_(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=Z_(e,t),[a,o]=Q_(e,i,t);if(Bie(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=K_.get(e);return t||(t=new Set,K_.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){U_.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,nv(nv({},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)}},cae={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(H.isPath)},lae=[`children`],uae=[`text`],iv=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)?Y_(e,lae):Y_(e,uae),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 L_({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=iv.get(e);if(t!==void 0)return t;var n=e.every((e=>V.isNode(e)));return iv.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 av(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 ov(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?av(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sv={isNodeOperation:e=>sv.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!Yg(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)&&Yg(e.properties);case`move_node`:return H.isPath(e.path)&&H.isPath(e.newPath);case`set_node`:return H.isPath(e.path)&&Yg(e.properties)&&Yg(e.newProperties);case`set_selection`:return e.properties===null&&U.isRange(e.newProperties)||e.newProperties===null&&U.isRange(e.properties)||Yg(e.properties)&&Yg(e.newProperties);case`split_node`:return H.isPath(e.path)&&typeof e.position==`number`&&Yg(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>sv.isOperation(e))),isSelectionOperation:e=>sv.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>sv.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return ov(ov({},e),{},{type:`remove_node`});case`insert_text`:return ov(ov({},e),{},{type:`remove_text`});case`merge_node`:return ov(ov({},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 ov(ov({},e),{},{path:t,newPath:n});var r=H.transform(n,e),i=H.transform(H.next(n),e);return ov(ov({},e),{},{path:r,newPath:i});case`remove_node`:return ov(ov({},e),{},{type:`insert_node`});case`remove_text`:return ov(ov({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return ov(ov({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return ov(ov({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return ov(ov({},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 L_(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])}}}))}},dae={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 cv(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 lv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uv={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)=>uv.compare(e,t)===1,isBefore:(e,t)=>uv.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&H.equals(e.path,t.path),isPoint:e=>Yg(e)&&typeof e.offset==`number`&&H.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L_(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,lv(lv({},n),{},{affinity:`forward`})))}else e.path=H.transform(i,t,n)}}))}},fae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=uv.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},pae=[`anchor`,`focus`];function dv(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)=>uv.equals(e.anchor,t.anchor)&&uv.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 uv.isBefore(n,i)&&uv.isAfter(r,a)}var[o,s]=U.edges(e),c=!1,l=!1;return uv.isPoint(t)?(c=uv.compare(t,o)>=0,l=uv.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=Y_(e,pae),[r,i]=U.edges(e),[a,o]=U.edges(t),s=uv.isBefore(r,a)?a:r,c=uv.isBefore(i,o)?i:o;return uv.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(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 uv.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return uv.equals(t,n)},isExpanded:e=>!U.isCollapsed(e),isForward:e=>!U.isBackward(e),isRange:e=>Yg(e)&&uv.isPoint(e.anchor)&&uv.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 L_(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=uv.transform(e.anchor,t,{affinity:r}),c=uv.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},mae={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()}}},fv=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Yg(r)&&Yg(i)){if(!fv(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},hae=[`text`],gae=[`anchor`,`focus`];function pv(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 mv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(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 Y_(e,hae)}return fv(n?r(e):e,n?r(t):t)},isText:e=>Yg(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=[mv({},e)];for(var r of t){var i=Y_(r,gae),[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=mv(mv({},f),{},{text:f.text.slice(h)}),f=mv(mv({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=mv(mv({},f),{},{text:f.text.slice(0,g)}),f=mv(mv({},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 hv(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 gv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _ae={transform(e,t){e.children=R_(e.children);var n=e.selection&&R_(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]=uv.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]=uv.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]=uv.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),ee=T[T.length-1];O.children.splice(ee,1);var k=H.transform(T,n),A=V.get(e,H.parent(k)),j=k[k.length-1];if(A.children.splice(j,0,D),t)for(var[M,te]of U.points(t))t[te]=uv.transform(M,n);break;case`remove_node`:var{path:N}=n,ne=N[N.length-1];if(V.parent(e,N).children.splice(ne,1),t)for(var[re,ie]of U.points(t)){var ae=uv.transform(re,n);if(t!=null&&ae!=null)t[ie]=ae;else{var oe=void 0,se=void 0;for(var[ce,P]of V.texts(e)){if(H.compare(P,N)!==-1){se=[ce,P];break}oe=[ce,P]}var le=!1;oe&&se&&(le=H.equals(se[1],N)?!H.hasPrevious(se[1]):H.common(oe[1],N).length<H.common(se[1],N).length),oe&&!le?(re.path=oe[1],re.offset=oe[0].text.length):se?(re.path=se[1],re.offset=0):t=null}}break;case`remove_text`:var{path:ue,offset:de,text:fe}=n;if(fe.length===0)break;var pe=V.leaf(e,ue);if(pe.text=pe.text.slice(0,de)+pe.text.slice(de+fe.length),t)for(var[me,he]of U.points(t))t[he]=uv.transform(me,n);break;case`set_node`:var{path:ge,properties:_e,newProperties:ve}=n;if(ge.length===0)throw Error(`Cannot set properties on the root node!`);var ye=V.get(e,ge);for(var be in ve){if(be===`children`||be===`text`)throw Error(`Cannot set the "${be}" property of nodes!`);var F=ve[be];F==null?delete ye[be]:ye[be]=F}for(var xe in _e)ve.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=gv({},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:Ee,properties:De}=n;if(Te.length===0)throw Error(`Cannot apply a "split_node" operation at path [${Te}] because the root node cannot be split.`);var I,L=V.get(e,Te),Oe=V.parent(e,Te),ke=Te[Te.length-1];if(W.isText(L)){var Ae=L.text.slice(0,Ee),je=L.text.slice(Ee);L.text=Ae,I=gv(gv({},De),{},{text:je})}else{var Me=L.children.slice(0,Ee),Ne=L.children.slice(Ee);L.children=Me,I=gv(gv({},De),{},{children:Ne})}if(Oe.children.splice(ke+1,0,I),t)for(var[Pe,Fe]of U.points(t))t[Fe]=uv.transform(Pe,n)}return t})(e,n,t)}finally{e.children=z_(e.children),e.selection=n?Zg(n)?z_(n):n:null}}},vae=[`text`],yae=[`children`];function _v(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 vv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_v(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bae={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(uv.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)?bv(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)&&yv(e,t)}),C=S&&B.pathRef(e,S[1]);if(W.isText(f)&&W.isText(m)){var w=Y_(f,vae);_=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=Y_(f,yae),_=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)?bv(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)?bv(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)?bv(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=xae(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 ee=v.current||B.end(e,[]);G.select(e,ee)}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)?bv(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)?bv(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=vv(vv({},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}}}}))}},yv=(e,t)=>{if(z.isElement(t)){var n=t;return!!B.isVoid(e,t)||n.children.length===1&&yv(e,n.children[0])}return!B.isEditor(t)},xae=(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()},bv=(e,t)=>{var[n]=B.node(e,t);return e=>e===n};function xv(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 Sv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sae={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`]:Sv(Sv({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!uv.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!uv.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})}}},Cae={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),uv.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,[]);uv.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)})),ee=B.pointRef(e,p),k=B.pointRef(e,m);if(!v&&!y){var A=ee.current,[j]=B.leaf(e,A),{path:M}=A,{offset:te}=p,N=j.text.slice(te);N.length>0&&e.apply({type:`remove_text`,path:M,offset:te,text:N})}for(var ne of O){var re=ne.unref();G.removeNodes(e,{at:re,voids:a})}if(!b){var ie=k.current,[ae]=B.leaf(e,ie),{path:oe}=ie,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&&_&&k.current&&ee.current&&G.mergeNodes(e,{at:k.current,hanging:!0,voids:a});var P=n?ee.unref()||k.unref():k.unref()||ee.unref();t.at==null&&P&&G.select(e,P)}}}))},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,ee=B.isStart(e,a,O),k=B.isEnd(e,a,O),A=B.pathRef(e,f?H.next(u):u),j=B.pathRef(e,k?H.next(O):O),M=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,!ee||ee&&k?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:M.unref(),voids:i}),G.insertNodes(e,S,{at:A.current,match:t=>B.isBlock(e,t),mode:`lowest`,voids:i}),G.insertNodes(e,C,{at:j.current,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),!n.at){var N=C.length>0?H.previous(j.current):S.length>0?H.previous(A.current):H.previous(te.current),ne=B.end(e,N);G.select(e,ne)}te.unref(),A.unref(),j.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 Cv(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 wv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cv(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G=wv(wv(wv(wv({},_ae),bae),Sae),Cae),Tv=`[object Map]`,Ev=`[object Set]`,wae=/^\[object .+?Constructor\]$/,Tae=/^(?:0|[1-9]\d*)$/,Eae=`[\\ud800-\\udfff]`,Dv=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Ov=`\\ud83c[\\udffb-\\udfff]`,kv=`[^\\ud800-\\udfff]`,Av=`(?:\\ud83c[\\udde6-\\uddff]){2}`,jv=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Mv=`(?:`+Dv+`|`+Ov+`)?`,Dae=`[\\ufe0e\\ufe0f]?`+Mv+(`(?:\\u200d(?:`+[kv,Av,jv].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Mv+`)*`),Oae=`(?:`+[kv+Dv+`?`,Dv,Av,jv,Eae].join(`|`)+`)`,kae=RegExp(Ov+`(?=`+Ov+`)|`+Oae+Dae,`g`),Aae=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),jae=typeof Rl==`object`&&Rl&&Rl.Object===Object&&Rl,Mae=typeof self==`object`&&self&&self.Object===Object&&self,Nv=jae||Mae||Function(`return this`)();function Nae(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 Pae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Fae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Iae(e){return function(e){return Aae.test(e)}(e)?function(e){return e.match(kae)||[]}(e):function(e){return e.split(``)}(e)}var Pv,Fv,Lae=Function.prototype,Iv=Object.prototype,Lv=Nv[`__core-js_shared__`],Rv=function(){var e=/[^.]+$/.exec(Lv&&Lv.keys&&Lv.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),zv=Lae.toString,Bv=Iv.hasOwnProperty,Vv=Iv.toString,Rae=RegExp(`^`+zv.call(Bv).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Hv=Nv.Symbol,Uv=Hv?Hv.iterator:void 0,zae=Iv.propertyIsEnumerable,Bae=(Pv=Object.keys,Fv=Object,function(e){return Pv(Fv(e))}),Wv=Yv(Nv,`DataView`),Gv=Yv(Nv,`Map`),Kv=Yv(Nv,`Promise`),qv=Yv(Nv,`Set`),Jv=Yv(Nv,`WeakMap`),Vae=Zv(Wv),Hae=Zv(Gv),Uae=Zv(Kv),Wae=Zv(qv),Gae=Zv(Jv);function Kae(e,t){var n=Qv(e)||function(e){return function(e){return ny(e)&&$v(e)}(e)&&Bv.call(e,`callee`)&&(!zae.call(e,`callee`)||Vv.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&&!Bv.call(e,a)||i&&(a==`length`||Yae(a,r))||n.push(a);return n}function qae(e){return!ty(e)||function(e){return!!Rv&&Rv in e}(e)?!1:(ey(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?Rae:wae).test(Zv(e))}function Jae(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Iv,t!==r)return Bae(e);var t,n,r,i=[];for(var a in Object(e))Bv.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Yv(e,t){var n=function(e,t){return e?.[t]}(e,t);return qae(n)?n:void 0}var Xv=function(e){return Vv.call(e)};function Yae(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Tae.test(e))&&e>-1&&e%1==0&&e<t}function Zv(e){if(e!=null){try{return zv.call(e)}catch{}try{return e+``}catch{}}return``}(Wv&&Xv(new Wv(new ArrayBuffer(1)))!=`[object DataView]`||Gv&&Xv(new Gv)!=Tv||Kv&&Xv(Kv.resolve())!=`[object Promise]`||qv&&Xv(new qv)!=Ev||Jv&&Xv(new Jv)!=`[object WeakMap]`)&&(Xv=function(e){var t=Vv.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?Zv(n):void 0;if(r)switch(r){case Vae:return`[object DataView]`;case Hae:return Tv;case Uae:return`[object Promise]`;case Wae:return Ev;case Gae:return`[object WeakMap]`}return t});var Qv=Array.isArray;function $v(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!ey(e)}function ey(e){var t=ty(e)?Vv.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function ty(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ny(e){return!!e&&typeof e==`object`}function Xae(e){return e?Nae(e,function(e){return $v(e)?Kae(e):Jae(e)}(e)):[]}var ry=function(e){if(!e)return[];if($v(e))return function(e){return typeof e==`string`||!Qv(e)&&ny(e)&&Vv.call(e)==`[object String]`}(e)?Iae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(Uv&&e[Uv])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Uv]());var t=Xv(e);return(t==Tv?Pae:t==Ev?Fae:Xae)(e)};function iy(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function ay(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:iy(t[n])&&iy(e[n])&&Object.keys(t[n]).length>0&&ay(e[n],t[n])}))}var oy={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 sy(){var e=typeof document<`u`?document:{};return ay(e,oy),e}var Zae={document:oy,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 cy(){var e=typeof window<`u`?window:{};return ay(e,Zae),e}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ly(e)}function uy(e,t){return uy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uy(e,t)}function dy(){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 fy(e,t,n){return fy=dy()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&uy(i,n.prototype),i},fy.apply(null,arguments)}function py(e){var t=typeof Map==`function`?new Map:void 0;return py=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 fy(e,arguments,ly(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),uy(n,e)},py(e)}var my=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}(py(Array));function hy(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,hy(e)):t.push(e)})),t}function gy(e,t){return Array.prototype.filter.call(e,t)}function K(e,t){var n=cy(),r=sy(),i=[];if(!t&&e instanceof my)return e;if(!e)return new my(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 my)return e;i=e}return new my(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 _y(){var e=hy([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function vy(){var e=hy([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function yy(){var e=hy([...arguments].map((function(e){return e.split(` `)})));return gy(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function by(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 xy(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Sy(){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 Cy(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 wy(){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 Ty(){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 Ey(){var e=cy();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Dy(){var e=cy();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function Oy(){if(this.length>0){var e=cy(),t=sy(),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 ky(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function Ay(){for(var e=cy(),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 jy(e,t){var n,r=cy();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 My(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function Ny(e){return K(gy(this,e))}function Py(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 Fy(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 Iy(e){var t,n,r=cy(),i=sy(),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 my){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function Ly(){for(var e,t=sy(),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 my)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function Ry(e){var t,n,r=sy();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 my)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 zy(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 By(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 Vy(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 Hy(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 Uy(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Wy(){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=my.prototype;var Gy=`resize scroll`.split(` `);function Ky(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)Gy.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 qy=Ky(`click`),Jy=Ky(`focus`),Yy=`[object GeneratorFunction]`,Xy=/^(?:0|[1-9]\d*)$/;function Zy(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Qy=Object.prototype,$y=Qy.hasOwnProperty,eb=Qy.toString,tb=Qy.propertyIsEnumerable,nb=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function rb(e,t){var n=ub(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&db(e)}(e)&&$y.call(e,`callee`)&&(!tb.call(e,`callee`)||eb.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&&!$y.call(e,a)||i&&(a==`length`||lb(a,r))||n.push(a);return n}var ib,ab,ob=(ib=function(e,t){return e&&sb(e,t,fb)},function(e,t){if(e==null)return e;if(!db(e))return ib(e,t);for(var n=e.length,r=ab?n:-1,i=Object(e);(ab?r--:++r<n)&&!1!==t(i[r],r,i););return e}),sb=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 cb(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Qy,t!==r)return nb(e);var t,n,r,i=[];for(var a in Object(e))$y.call(e,a)&&a!=`constructor`&&i.push(a);return i}function lb(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Xy.test(e))&&e>-1&&e%1==0&&e<t}var ub=Array.isArray;function db(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)?eb.call(e):``;return t==`[object Function]`||t==Yy}(e)}function fb(e){return db(e)?rb(e):cb(e)}function pb(e){return e}var mb=function(e,t){return(ub(e)?Zy:ob)(e,typeof t==`function`?t:pb)},hb=(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},gb=/^\s+|\s+$/g,_b=/^[-+]0x[0-9a-f]+$/i,vb=/^0b[01]+$/i,yb=/^0o[0-7]+$/i,bb=parseInt,xb=typeof Rl==`object`&&Rl&&Rl.Object===Object&&Rl,Sb=typeof self==`object`&&self&&self.Object===Object&&self,Cb=xb||Sb||Function(`return this`)(),wb=Object.prototype.toString,Tb=Math.max,Eb=Math.min,Db=function(){return Cb.Date.now()};function Ob(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=Db();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Eb(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=Db(),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=Ab(t)||0,kb(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Tb(Ab(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:_(Db())},v}function kb(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ab(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&wb.call(e)==`[object Symbol]`}(e))return NaN;if(kb(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=kb(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(gb,``);var n=vb.test(e);return n||yb.test(e)?bb(e.slice(2),n?2:8):_b.test(e)?NaN:+e}var jb=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return kb(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ob(e,t,{leading:r,maxWait:t,trailing:i})},Mb={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 Nb(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 Pb=Array.isArray;function Fb(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function Ib(e){return e===void 0}function Lb(e){return e!==void 0}var Rb=Nb(``,{},[],void 0,void 0);function zb(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function Bb(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 Vb=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function Hb(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?Mb:t;for(let t of Vb)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 Nb(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;Lb(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)Ib(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=Lb(s)&&Lb(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](Rb,e);if(Pb(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else Fb(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;Lb(g)&&((i=g.create)==null||i.call(g,Rb,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(Lb(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;Lb(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)}Ib(t.text)?Lb(h)&&Lb(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]:zb(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):zb(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):zb(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):zb(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=Bb(t,p,h)),c=a[y.key],Ib(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):Lb(g)?(Lb(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):Lb(h)?l(m,h,0,h.length-1):Lb(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(Lb(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)),zb(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 Ub(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&&Ub(n,t[e].children,t[e].sel)}}function Wb(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(Pb(t)?r=t:Fb(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),Pb(n)?r=n:Fb(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)Fb(r[a])&&(r[a]=Nb(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]!==`#`||Ub(o,r,e),Nb(e,o,r,i,void 0)}function Gb(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 Kb={create:Gb,update:Gb};function qb(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 Jb={create:qb,update:qb},Yb=/[A-Z]/g;function Xb(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(Yb,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(Yb,`-$&`).toLowerCase(),a[r]))}var Zb={create:Xb,update:Xb};function Qb(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++)Qb(e[r],t,n)}function $b(e,t){let n=e.type,r=t.data.on;r&&r[n]&&Qb(r[n],t,e)}function ex(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){$b(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 tx={create:ex,update:ex,destroy:ex};function nx(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 rx={create:nx,update:nx},ix=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,ax=!1;function ox(e,t,n){(function(e){ix((function(){ix(e)}))})((function(){e[t]=n}))}function sx(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]||ox(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var cx={pre:function(){ax=!1},create:sx,update:sx,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;ax||=(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 lx(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?lx(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(Nb(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function ux(e,t,...n){let r=lx(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Wb(e,t,r[0].text):Wb(e,t,r)}ux||={};var dx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,px=`\\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`,Qae=`[\\ud800-\\udfff]`,mx=`[`+px+`]`,hx=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,gx=`\\d+`,$ae=`[\\u2700-\\u27bf]`,_x=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,vx=`[^\\ud800-\\udfff`+px+gx+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,yx=`\\ud83c[\\udffb-\\udfff]`,bx=`[^\\ud800-\\udfff]`,xx=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Sx=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Cx=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,wx=`(?:`+_x+`|`+vx+`)`,eoe=`(?:`+Cx+`|`+vx+`)`,Tx=`(?:`+hx+`|`+yx+`)?`,Ex=`[\\ufe0e\\ufe0f]?`+Tx+(`(?:\\u200d(?:`+[bx,xx,Sx].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Tx+`)*`),toe=`(?:`+[$ae,xx,Sx].join(`|`)+`)`+Ex,noe=`(?:`+[bx+hx+`?`,hx,xx,Sx,Qae].join(`|`)+`)`,roe=RegExp(`['’]`,`g`),ioe=RegExp(hx,`g`),aoe=RegExp(yx+`(?=`+yx+`)|`+noe+Ex,`g`),ooe=RegExp([Cx+`?`+_x+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[mx,Cx,`$`].join(`|`)+`)`,eoe+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[mx,Cx+wx,`$`].join(`|`)+`)`,Cx+`?`+wx+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,Cx+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,gx,toe].join(`|`),`g`),soe=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),coe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,loe=typeof Rl==`object`&&Rl&&Rl.Object===Object&&Rl,uoe=typeof self==`object`&&self&&self.Object===Object&&self,doe=loe||uoe||Function(`return this`)(),Dx,foe=(Dx={À:`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 Dx?.[e]});function Ox(e){return soe.test(e)}function poe(e){return Ox(e)?function(e){return e.match(aoe)||[]}(e):function(e){return e.split(``)}(e)}var moe=Object.prototype.toString,kx=doe.Symbol,Ax=kx?kx.prototype:void 0,jx=Ax?Ax.toString:void 0;function hoe(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&moe.call(e)==`[object Symbol]`}(e))return jx?jx.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function goe(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 Mx(e){return e==null?``:hoe(e)}for(var Nx,_oe=(Nx=function(e,t,n){return t=t.toLowerCase(),e+(n?voe(Mx(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=Mx(e),(t=n?void 0:t)===void 0?function(e){return coe.test(e)}(e)?function(e){return e.match(ooe)||[]}(e):function(e){return e.match(dx)||[]}(e):e.match(t)||[]}(function(e){return(e=Mx(e))&&e.replace(fx,foe).replace(ioe,``)}(e).replace(roe,``)),Nx,``)}),Px,voe=(Px=`toUpperCase`,function(e){var t=Ox(e=Mx(e))?poe(e):void 0,n=t?t[0]:e.charAt(0),r=t?goe(t,1).join(``):e.slice(1);return n[Px]()+r}),yoe=_oe,boe=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Fx={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},Ix={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:boe?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},Lx={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},Rx=1;Rx<20;Rx++)Lx[`f`+Rx]=111+Rx;function zx(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 Fx)r[Fx[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=Bx(f),h=Fx[m];if(f.length>1&&!h&&!Ix[f]&&!Lx[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=xoe(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 xoe(e){return e=Bx(e),Lx[e]||e.toUpperCase().charCodeAt(0)}function Bx(e){return e=e.toLowerCase(),e=Ix[e]||e}var Soe=zx,Vx=function(e,t){return zx(e,{byKey:!0},t)},Coe=/^\s+|\s+$/g,woe=/^[-+]0x[0-9a-f]+$/i,Toe=/^0b[01]+$/i,Eoe=/^0o[0-7]+$/i,Doe=parseInt,Ooe=typeof Rl==`object`&&Rl&&Rl.Object===Object&&Rl,koe=typeof self==`object`&&self&&self.Object===Object&&self,Aoe=Ooe||koe||Function(`return this`)(),joe=Object.prototype.toString,Moe=Math.max,Noe=Math.min,Hx=function(){return Aoe.Date.now()};function Ux(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Wx(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&joe.call(e)==`[object Symbol]`}(e))return NaN;if(Ux(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Ux(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Coe,``);var n=Toe.test(e);return n||Eoe.test(e)?Doe(e.slice(2),n?2:8):woe.test(e)?NaN:+e}var Gx,Kx=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?Noe(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=Wx(t)||0,Ux(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Moe(Wx(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},qx=Bl((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]`,ee=/\w*$/,k=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,j={};j[i]=j[`[object Array]`]=j[v]=j[y]=j[a]=j[o]=j[b]=j[x]=j[S]=j[C]=j[w]=j[l]=j[u]=j[d]=j[p]=j[m]=j[h]=j[g]=j[T]=j[E]=j[D]=j[O]=!0,j[`[object Error]`]=j[s]=j[_]=!1;var M=typeof Rl==`object`&&Rl&&Rl.Object===Object&&Rl,te=typeof self==`object`&&self&&self.Object===Object&&self,N=M||te||Function(`return this`)(),ne=t&&!t.nodeType&&t,re=ne&&e&&!e.nodeType&&e,ie=re&&re.exports===ne;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 P(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function le(e,t){return function(n){return e(t(n))}}function ue(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var de=Array.prototype,fe=Function.prototype,pe=Object.prototype,me=N[`__core-js_shared__`],he=function(){var e=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ge=fe.toString,_e=pe.hasOwnProperty,ve=pe.toString,ye=RegExp(`^`+ge.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=ie?N.Buffer:void 0,F=N.Symbol,xe=N.Uint8Array,Se=le(Object.getPrototypeOf,Object),Ce=Object.create,we=pe.propertyIsEnumerable,Te=de.splice,Ee=Object.getOwnPropertySymbols,De=be?be.isBuffer:void 0,I=le(Object.keys,Object),L=Qe(N,`DataView`),Oe=Qe(N,`Map`),ke=Qe(N,`Promise`),Ae=Qe(N,`Set`),je=Qe(N,`WeakMap`),Me=Qe(Object,`create`),Ne=rt(L),Pe=rt(Oe),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)&&_e.call(e,`callee`)&&(!we.call(e,`callee`)||ve.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&&!_e.call(e,o)||a&&(o==`length`||tt(o,r))||n.push(o);return n}function Ge(e,t,n){var r=e[t];_e.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,_,k){var A;if(r&&(A=_?r(e,f,_,k):r(e)),A!==void 0)return A;if(!lt(e))return e;var M=at(e);if(M){if(A=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&_e.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,A)}else{var te=et(e),N=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||N&&!_){if(ce(e))return _?e:{};if(A=function(e){return typeof e.constructor!=`function`||nt(e)?{}:(t=Se(e),lt(t)?Ce(t):{});var t}(N?{}:e),!t)return function(e,t){return Xe(e,$e(e),t)}(e,function(e,t){return e&&Xe(t,ut(t),e)}(A,e))}else{if(!j[te])return _?e:{};A=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(P(e),!0):P(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,ee.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return se(t?n(ue(e),!0):ue(e),oe,new e.constructor)}(e,r,n);case g:return function(e){return ze?Object(ze.call(e)):{}}(e)}}(e,te,qe,t)}}k||=new Ue;var ne=k.get(e);if(ne)return ne;if(k.set(e,A),!M)var re=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););}(re||e,(function(i,a){re&&(i=e[a=i]),Ge(A,a,qe(i,t,n,r,a,e,k))})),A}function Je(e){return!(!lt(e)||function(e){return!!he&&he in e}(e))&&(ct(e)||ce(e)?ye:k).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 _e.call(t,e)?t[e]:void 0},Be.prototype.has=function(e){var t=this.__data__;return Me?t[e]!==void 0:_e.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(Oe||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(!Oe||r.length<199)return r.push([e,t]),this;n=this.__data__=new He(r)}return n.set(e,t),this};var $e=Ee?le(Ee,Object):function(){return[]},et=function(e){return ve.call(e)};function tt(e,t){return!!(t??=r)&&(typeof e==`number`||A.test(e))&&e>-1&&e%1==0&&e<t}function nt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||pe)}function rt(e){if(e!=null){try{return ge.call(e)}catch{}try{return e+``}catch{}}return``}function it(e,t){return e===t||e!=e&&t!=t}(L&&et(new L(new ArrayBuffer(1)))!=y||Oe&&et(new Oe)!=l||ke&&et(ke.resolve())!=f||Ae&&et(new Ae)!=m||je&&et(new je)!=_)&&(et=function(e){var t=ve.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=De||function(){return!1};function ct(e){var t=lt(e)?ve.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 I(e);var t=[];for(var n in Object(e))_e.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return qe(e,!0,!0)}}));function Jx(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Poe=0;function Foe(e){return`__private_`+ Poe+++`_`+e}function Ioe(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 Yx(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=Ioe(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var Xx=(Gx=Foe(`apply`),class{constructor(e){Object.defineProperty(this,Gx,{value:Loe}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(Jx(this,Gx)[Gx],this):Jx(this,Gx)[Gx](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 Yx(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 Yx(n,t)}});function Loe(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 Zx=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:Roe}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},Qx=e=>crypto.getRandomValues(new Uint8Array(e)),$x=(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}}},zoe={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)=>$x(e,t,Qx),customRandom:$x,urlAlphabet:Roe,random:Qx},eS=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 tS(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}tS.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 Boe=/[\/\+\.]/,Voe=function(e,t){function n(t){var n=function(e,t,n){var r=new tS(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,Boe);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},Hoe=0;function Uoe(e){return`__private_`+ Hoe+++`_`+e}var nS=Uoe(`publish`),rS=class{constructor(){Object.defineProperty(this,nS,{value:Woe}),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,nS)[nS](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function Woe(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}rS.VERSION=`2.0.3`;var iS=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)}},aS={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 oS(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var Goe=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 sS(e){return e<10?`0${e}`:e.toString()}var cS=function(){let e=new Date;return`${sS(e.getHours())}:${sS(e.getMinutes())}:${sS(e.getSeconds())}`},lS={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${cS()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${cS()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${cS()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${cS()}]`,...e)}}},Koe={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}`}}},uS=zoe,dS,fS;function q(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var qoe=0;function pS(e){return`__private_`+ qoe+++`_`+e}var{nanoid:Joe}=uS,{justErrorsLogger:Yoe,debugLogger:Xoe}=lS,mS=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 Zoe=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},hS=pS(`plugins`),gS=pS(`storeUnsubscribe`),_S=pS(`emitter`),vS=pS(`preProcessors`),yS=pS(`uploaders`),bS=pS(`postProcessors`),xS=pS(`checkRestrictions`),SS=pS(`checkMinNumberOfFiles`),CS=pS(`checkRequiredMetaFieldsOnFile`),wS=pS(`checkRequiredMetaFields`),TS=pS(`showOrLogErrorAndThrow`),ES=pS(`assertNewUploadAllowed`),DS=pS(`checkAndCreateFileStateObject`),OS=pS(`startIfAutoProceed`),kS=pS(`addListeners`),AS=pS(`updateOnlineStatus`),jS=pS(`createUpload`),MS=pS(`getUpload`),NS=pS(`removeUpload`),PS=pS(`runUpload`);dS=Symbol.for(`uppy test: getPlugins`),fS=Symbol.for(`uppy test: createUpload`);var FS=class{constructor(e){Object.defineProperty(this,PS,{value:use}),Object.defineProperty(this,NS,{value:lse}),Object.defineProperty(this,MS,{value:cse}),Object.defineProperty(this,jS,{value:sse}),Object.defineProperty(this,kS,{value:ose}),Object.defineProperty(this,OS,{value:ase}),Object.defineProperty(this,DS,{value:ise}),Object.defineProperty(this,ES,{value:rse}),Object.defineProperty(this,TS,{value:nse}),Object.defineProperty(this,wS,{value:tse}),Object.defineProperty(this,CS,{value:ese}),Object.defineProperty(this,SS,{value:$oe}),Object.defineProperty(this,xS,{value:Qoe}),Object.defineProperty(this,hS,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,gS,{writable:!0,value:void 0}),Object.defineProperty(this,_S,{writable:!0,value:Zx()}),Object.defineProperty(this,vS,{writable:!0,value:new Set}),Object.defineProperty(this,yS,{writable:!0,value:new Set}),Object.defineProperty(this,bS,{writable:!0,value:new Set}),Object.defineProperty(this,AS,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Koe;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 rS,logger:Yoe,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=Xoe),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=jb(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Goe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),q(this,gS)[gS]=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,kS)[kS]()}emit(e){var t=[...arguments].slice(1);q(this,_S)[_S].emit(e,...t)}on(e,t){return q(this,_S)[_S].on(e,t),this}once(e,t){return q(this,_S)[_S].once(e,t),this}off(e,t){return q(this,_S)[_S].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 Xx([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,vS)[vS].add(e)}removePreProcessor(e){return q(this,vS)[vS].delete(e)}addPostProcessor(e){q(this,bS)[bS].add(e)}removePostProcessor(e){return q(this,bS)[bS].delete(e)}addUploader(e){q(this,yS)[yS].add(e)}removeUploader(e){return q(this,yS)[yS].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,xS)[xS](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,ES)[ES](e);let{files:t}=this.getState(),n=q(this,DS)[DS](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,OS)[OS](),n.id}addFiles(e){q(this,ES)[ES]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=q(this,DS)[DS](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,OS)[OS](),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,jS)[jS](t,{forceAllowNewUpload:!0});return q(this,PS)[PS](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,jS)[jS]([e],{forceAllowNewUpload:!0});return q(this,PS)[PS](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,hS)[hS]?q(this,hS)[hS][n.type].push(n):q(this,hS)[hS][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(q(this,hS)[hS])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[dS](e){return q(this,hS)[hS][e]}iteratePlugins(e){Object.values(q(this,hS)[hS]).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,hS)[hS][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,gS)[gS](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,q(this,AS)[AS]),window.removeEventListener(`offline`,q(this,AS)[AS]))}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,PS)[PS](e):(q(this,NS)[NS](e),Promise.reject(Error(`Nonexistent upload`)))}[fS](){return q(this,jS)[jS](...arguments)}addResultData(e,t){if(!q(this,MS)[MS](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,hS)[hS].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,SS)[SS](t),q(this,wS)[wS](t)})).catch((e=>{q(this,TS)[TS](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,jS)[jS](r);return q(this,PS)[PS](i)})).catch((e=>{q(this,TS)[TS](e,{showInformer:!1})})))}};function Qoe(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 mS(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&Voe(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new mS(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 mS(this.i18n(`exceedsSize`,{size:eS(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new mS(this.i18n(`exceedsSize`,{size:eS(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new mS(this.i18n(`inferiorSize`,{size:eS(r)}))}function $oe(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new mS(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function ese(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 mS(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),q(this,TS)[TS](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function tse(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return q(this,CS)[CS](t)}));if(t.length)throw new Zoe(t,`${this.i18n(`missingRequiredMetaField`)}`)}function nse(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 rse(e){let{allowNewUpload:t}=this.getState();!1===t&&q(this,TS)[TS](new mS(this.i18n(`noMoreFilesAllowed`)),{file:e})}function ise(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?iS(e.name).extension?.toLowerCase():null;return t&&t in aS?aS[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=iS(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${oS(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${oS(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 mS(this.i18n(`noDuplicates`,{fileName:r}));q(this,TS)[TS](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,TS)[TS](new mS(`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,xS)[xS](l,t)}catch(e){q(this,TS)[TS](e,{file:l})}return l}function ase(){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 ose(){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,TS)[TS](e,{throwErr:!1})}else q(this,TS)[TS](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,bS)[bS].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,CS)[CS](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,q(this,AS)[AS]),window.addEventListener(`offline`,q(this,AS)[AS]),setTimeout(q(this,AS)[AS],3e3))}function sse(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=Joe();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 cse(e){let{currentUploads:t}=this.getState();return t[e]}function lse(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function use(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...q(this,vS)[vS],...q(this,yS)[yS],...q(this,bS)[bS]];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,NS)[NS](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,NS)[NS](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}FS.VERSION=`2.1.3`;var IS=FS,dse=Bl((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,k(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),A(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}k(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++)M(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?ee:O,a):e.removeEventListener(t,a?ee: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 ee(e){this.l[e.type+!0](r.event?r.event(e):e)}function k(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=N),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=j(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 A(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 j(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 M(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||M(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 N(e,t,n){return this.constructor(e,n)}function ne(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],k(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),A(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){ne(t,n,e)},t.isValidElement=a,t.options=r,t.render=ne,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}})),fse=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},LS=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 Xx([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 RS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var pse=0;function mse(e){return`__private_`+ pse+++`_`+e}var{render:zS}=dse,BS=mse(`updateUI`),hse=class e extends LS{constructor(){super(...arguments),Object.defineProperty(this,BS,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=fse(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return RS(this,BS)[BS]=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)&&(zS(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),zS(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=RS(this,BS))[BS])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:gse}=lS,VS=IS,_se=IS,vse=hse,yse=LS,bse=gse;VS.Uppy=_se,VS.UIPlugin=vse,VS.BasePlugin=yse,VS.debugLogger=bse;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}},US=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new HS(e)}))},xse=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},WS,GS,KS,qS,JS,Sse=xse;function YS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Cse=0;function XS(e){return`__private_`+ Cse+++`_`+e}async function ZS(e){if(e.status===401)throw new Sse;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 QS=(GS=XS(`getPostResponseFunc`),KS=XS(`getUrl`),qS=XS(`errorHandler`),JS=WS=class e{constructor(e,t){Object.defineProperty(this,qS,{value:Tse}),Object.defineProperty(this,KS,{value:wse}),Object.defineProperty(this,GS,{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(YS(this,KS)[KS](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=>US(YS(this,KS)[KS](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(YS(this,GS)[GS](t)).then(ZS).catch(YS(this,qS)[qS](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>US(YS(this,KS)[KS](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(YS(this,GS)[GS](n)).then(ZS).catch(YS(this,qS)[qS](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>US(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(YS(this,GS)[GS](n)).then(ZS).catch(YS(this,qS)[qS](r,e))}},WS.VERSION=`2.0.4`,WS.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${WS.VERSION}`},JS);function wse(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Tse(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${YS(this,KS)[KS](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Ese={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()}))},$S,eC,tC,nC,rC,iC,aC;function oC(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 sC(e){return`__private_`+ Dse+++`_`+e}var Ose=($S=sC(`queued`),eC=sC(`emitter`),tC=sC(`isOpen`),nC=sC(`socket`),rC=sC(`handleMessage`),iC=Symbol.for(`uppy test: getSocket`),aC=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,$S,{writable:!0,value:[]}),Object.defineProperty(this,eC,{writable:!0,value:Zx()}),Object.defineProperty(this,tC,{writable:!0,value:!1}),Object.defineProperty(this,nC,{writable:!0,value:void 0}),Object.defineProperty(this,rC,{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 oC(this,tC)[tC]}[iC](){return oC(this,nC)[nC]}[aC](){return oC(this,$S)[$S]}open(){oC(this,nC)[nC]=new WebSocket(this.opts.target),oC(this,nC)[nC].onopen=()=>{for(oC(this,tC)[tC]=!0;oC(this,$S)[$S].length>0&&oC(this,tC)[tC];){let e=oC(this,$S)[$S].shift();this.send(e.action,e.payload)}},oC(this,nC)[nC].onclose=()=>{oC(this,tC)[tC]=!1},oC(this,nC)[nC].onmessage=oC(this,rC)[rC]}close(){var e;(e=oC(this,nC)[nC])==null||e.close()}send(e,t){oC(this,tC)[tC]?oC(this,nC)[nC].send(JSON.stringify({action:e,payload:t})):oC(this,$S)[$S].push({action:e,payload:t})}on(e,t){oC(this,eC)[eC].on(e,t)}emit(e,t){oC(this,eC)[eC].emit(e,t)}once(e,t){oC(this,eC)[eC].once(e,t)}}),kse={RequestClient:QS,Provider:class extends QS{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||Ese}},SearchProvider:class extends QS{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},cC,lC,Ase=jb((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 uC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var jse=0;function dC(e){return`__private_`+ jse+++`_`+e}var fC=(cC=dC(`emitter`),lC=dC(`events`),class{constructor(e){Object.defineProperty(this,cC,{writable:!0,value:void 0}),Object.defineProperty(this,lC,{writable:!0,value:[]}),uC(this,cC)[cC]=e}on(e,t){return uC(this,lC)[lC].push([e,t]),uC(this,cC)[cC].on(e,t)}remove(){for(let[e,t]of uC(this,lC)[lC].splice(0))uC(this,cC)[cC].off(e,t)}});function pC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Mse=0;function mC(e){return`__private_`+ Mse+++`_`+e}var hC=mC(`aliveTimer`),gC=mC(`isDone`),_C=mC(`onTimedOut`),vC=mC(`timeout`),yC=class{constructor(e,t){Object.defineProperty(this,hC,{writable:!0,value:void 0}),Object.defineProperty(this,gC,{writable:!0,value:!1}),Object.defineProperty(this,_C,{writable:!0,value:void 0}),Object.defineProperty(this,vC,{writable:!0,value:void 0}),pC(this,vC)[vC]=e,pC(this,_C)[_C]=t}progress(){pC(this,gC)[gC]||pC(this,vC)[vC]>0&&(clearTimeout(pC(this,hC)[hC]),pC(this,hC)[hC]=setTimeout(pC(this,_C)[_C],pC(this,vC)[vC]))}done(){pC(this,gC)[gC]||(clearTimeout(pC(this,hC)[hC]),pC(this,hC)[hC]=null,pC(this,gC)[gC]=!0)}};function bC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Nse=0;function xC(e){return`__private_`+ Nse+++`_`+e}function Pse(){return Error(`Cancelled`)}var SC=xC(`activeRequests`),CC=xC(`queuedHandlers`),wC=xC(`call`),TC=xC(`queueNext`),EC=xC(`next`),DC=xC(`queue`),OC=xC(`dequeue`);function Fse(e){bC(this,SC)[SC]+=1;let t,n=!1;try{t=e()}catch(e){throw--bC(this,SC)[SC],e}return{abort:()=>{n||(n=!0,--bC(this,SC)[SC],t(),bC(this,TC)[TC]())},done:()=>{n||(n=!0,--bC(this,SC)[SC],bC(this,TC)[TC]())}}}function Ise(){queueMicrotask((()=>bC(this,EC)[EC]()))}function Lse(){if(bC(this,SC)[SC]>=this.limit||bC(this,CC)[CC].length===0)return;let e=bC(this,CC)[CC].shift(),t=bC(this,wC)[wC](e.fn);e.abort=t.abort,e.done=t.done}function Rse(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{bC(this,OC)[OC](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=bC(this,CC)[CC].findIndex((e=>n.priority>e.priority));return r===-1?bC(this,CC)[CC].push(n):bC(this,CC)[CC].splice(r,0,n),n}function zse(e){let t=bC(this,CC)[CC].indexOf(e);t!==-1&&bC(this,CC)[CC].splice(t,1)}var Bse={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,OC,{value:zse}),Object.defineProperty(this,DC,{value:Rse}),Object.defineProperty(this,EC,{value:Lse}),Object.defineProperty(this,TC,{value:Ise}),Object.defineProperty(this,wC,{value:Fse}),Object.defineProperty(this,SC,{writable:!0,value:0}),Object.defineProperty(this,CC,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return bC(this,SC)[SC]<this.limit?bC(this,wC)[wC](e):bC(this,DC)[DC](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=Pse()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},kC,AC,jC=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},Vse={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:Hse}=uS,{Provider:Use,RequestClient:Wse,Socket:Gse}=kse,{RateLimitedQueue:Kse,internalRateLimitedQueue:MC}=Bse;function NC(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})),jC(e)?(n=new HS(n,e),n):(n.request=e,n)}function PC(e){return e.data.slice(0,e.data.size,e.meta.type)}var qse=(AC=kC=class extends LS{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=Vse;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 jC(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),MC in this.opts?this.requests=this.opts[MC]:this.requests=new Kse(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=PC(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=PC(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 fC(this.uppy);let o=new yC(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=Hse();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=NC(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=NC(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?Use:Wse)(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 Gse({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 fC(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=>Ase(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 yC(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[MC]||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)}},kC.VERSION=`2.0.6`,AC),FC=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function IC(e){var t={exports:{}};return e(t,t.exports),t.exports}var LC,RC,zC=function(e){return e&&e.Math==Math&&e},J=zC(typeof globalThis==`object`&&globalThis)||zC(typeof window==`object`&&window)||zC(typeof self==`object`&&self)||zC(typeof FC==`object`&&FC)||function(){return this}()||Function(`return this`)(),Jse=Object.defineProperty,BC=function(e,t){try{Jse(J,e,{value:t,configurable:!0,writable:!0})}catch{J[e]=t}return t},VC=J[`__core-js_shared__`]||BC(`__core-js_shared__`,{}),HC=IC((function(e){(e.exports=function(e,t){return VC[e]||(VC[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),UC=Function.prototype,WC=UC.bind,GC=UC.call,Yse=WC&&WC.bind(GC),Y=WC?function(e){return e&&Yse(GC,e)}:function(e){return e&&function(){return GC.apply(e,arguments)}},Xse=J.TypeError,KC=function(e){if(e==null)throw Xse(`Can't call method on `+e);return e},Zse=J.Object,qC=function(e){return Zse(KC(e))},Qse=Y({}.hasOwnProperty),JC=Object.hasOwn||function(e,t){return Qse(qC(e),t)},$se=0,ece=Math.random(),tce=Y(1 .toString),YC=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+tce(++$se+ece,36)},XC=function(e){return typeof e==`function`},nce=function(e){return XC(e)?e:void 0},ZC=function(e,t){return arguments.length<2?nce(J[e]):J[e]&&J[e][t]},QC=ZC(`navigator`,`userAgent`)||``,$C=J.process,ew=J.Deno,tw=$C&&$C.versions||ew&&ew.version,nw=tw&&tw.v8;nw&&(RC=(LC=nw.split(`.`))[0]>0&&LC[0]<4?1:+(LC[0]+LC[1])),!RC&&QC&&(!(LC=QC.match(/Edge\/(\d+)/))||LC[1]>=74)&&(LC=QC.match(/Chrome\/(\d+)/))&&(RC=+LC[1]);var rw=RC,iw=function(e){try{return!!e()}catch{return!0}},aw=!!Object.getOwnPropertySymbols&&!iw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rw&&rw<41})),ow=aw&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,sw=HC(`wks`),cw=J.Symbol,lw=cw&&cw.for,rce=ow?cw:cw&&cw.withoutSetter||YC,uw=function(e){if(!JC(sw,e)||!aw&&typeof sw[e]!=`string`){var t=`Symbol.`+e;aw&&JC(cw,e)?sw[e]=cw[e]:sw[e]=ow&&lw?lw(t):rce(t)}return sw[e]},dw={};dw[uw(`toStringTag`)]=`z`;var fw=String(dw)===`[object z]`,pw=!iw((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),mw=function(e){return typeof e==`object`?e!==null:XC(e)},hw=J.document,ice=mw(hw)&&mw(hw.createElement),gw=function(e){return ice?hw.createElement(e):{}},_w=!pw&&!iw((function(){return Object.defineProperty(gw(`div`),`a`,{get:function(){return 7}}).a!=7})),ace=J.String,oce=J.TypeError,vw=function(e){if(mw(e))return e;throw oce(ace(e)+` is not an object`)},yw=Function.prototype.call,bw=yw.bind?yw.bind(yw):function(){return yw.apply(yw,arguments)},xw=Y({}.isPrototypeOf),sce=J.Object,Sw=ow?function(e){return typeof e==`symbol`}:function(e){var t=ZC(`Symbol`);return XC(t)&&xw(t.prototype,sce(e))},cce=J.String,Cw=function(e){try{return cce(e)}catch{return`Object`}},lce=J.TypeError,ww=function(e){if(XC(e))return e;throw lce(Cw(e)+` is not a function`)},Tw=function(e,t){var n=e[t];return n==null?void 0:ww(n)},uce=J.TypeError,dce=J.TypeError,fce=uw(`toPrimitive`),Ew=function(e){var t=function(e,t){if(!mw(e)||Sw(e))return e;var n,r=Tw(e,fce);if(r){if(t===void 0&&(t=`default`),n=bw(r,e,t),!mw(n)||Sw(n))return n;throw dce(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&XC(n=e.toString)&&!mw(r=bw(n,e))||XC(n=e.valueOf)&&!mw(r=bw(n,e))||t!==`string`&&XC(n=e.toString)&&!mw(r=bw(n,e)))return r;throw uce(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Sw(t)?t:t+``},pce=J.TypeError,Dw=Object.defineProperty,Ow={f:pw?Dw:function(e,t,n){if(vw(e),t=Ew(t),vw(n),_w)try{return Dw(e,t,n)}catch{}if(`get`in n||`set`in n)throw pce(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},kw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Aw=pw?function(e,t,n){return Ow.f(e,t,kw(1,n))}:function(e,t,n){return e[t]=n,e},mce=Y(Function.toString);XC(VC.inspectSource)||(VC.inspectSource=function(e){return mce(e)});var jw,Mw,Nw,Pw=VC.inspectSource,Fw=J.WeakMap,Iw=XC(Fw)&&/native code/.test(Pw(Fw)),Lw=HC(`keys`),Rw=function(e){return Lw[e]||(Lw[e]=YC(e))},zw={},Bw=J.TypeError,hce=J.WeakMap;if(Iw||VC.state){var Vw=VC.state||=new hce,gce=Y(Vw.get),Hw=Y(Vw.has),_ce=Y(Vw.set);jw=function(e,t){if(Hw(Vw,e))throw new Bw(`Object already initialized`);return t.facade=e,_ce(Vw,e,t),t},Mw=function(e){return gce(Vw,e)||{}},Nw=function(e){return Hw(Vw,e)}}else{var Uw=Rw(`state`);zw[Uw]=!0,jw=function(e,t){if(JC(e,Uw))throw new Bw(`Object already initialized`);return t.facade=e,Aw(e,Uw,t),t},Mw=function(e){return JC(e,Uw)?e[Uw]:{}},Nw=function(e){return JC(e,Uw)}}var Ww={set:jw,get:Mw,has:Nw,enforce:function(e){return Nw(e)?Mw(e):jw(e,{})},getterFor:function(e){return function(t){var n;if(!mw(t)||(n=Mw(t)).type!==e)throw Bw(`Incompatible receiver, `+e+` required`);return n}}},Gw=Function.prototype,vce=pw&&Object.getOwnPropertyDescriptor,Kw=JC(Gw,`name`),qw={EXISTS:Kw,PROPER:Kw&&function(){}.name===`something`,CONFIGURABLE:Kw&&(!pw||pw&&vce(Gw,`name`).configurable)},Jw=IC((function(e){var t=qw.CONFIGURABLE,n=Ww.get,r=Ww.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;XC(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!JC(a,`name`)||t&&a.name!==d)&&Aw(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===J?l?e[n]=a:BC(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Aw(e,n,a))})(Function.prototype,`toString`,(function(){return XC(this)&&n(this).source||Pw(this)}))})),yce=Y({}.toString),bce=Y(``.slice),Yw=function(e){return bce(yce(e),8,-1)},xce=uw(`toStringTag`),Sce=J.Object,Cce=Yw(function(){return arguments}())==`Arguments`,Xw=fw?Yw: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=Sce(e),xce))==`string`?n:Cce?Yw(t):(r=Yw(t))==`Object`&&XC(t.callee)?`Arguments`:r},wce=fw?{}.toString:function(){return`[object `+Xw(this)+`]`};fw||Jw(Object.prototype,`toString`,wce,{unsafe:!0});var Zw={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},Qw=gw(`span`).classList,$w=Qw&&Qw.constructor&&Qw.constructor.prototype,eT=$w===Object.prototype?void 0:$w,tT=Y(Y.bind),nT=function(e,t){return ww(e),t===void 0?e:tT?tT(e,t):function(){return e.apply(t,arguments)}},rT=J.Object,Tce=Y(``.split),iT=iw((function(){return!rT(`z`).propertyIsEnumerable(0)}))?function(e){return Yw(e)==`String`?Tce(e,``):rT(e)}:rT,Ece=Math.ceil,Dce=Math.floor,aT=function(e){var t=+e;return t!=t||t===0?0:(t>0?Dce:Ece)(t)},Oce=Math.min,oT=function(e){return e>0?Oce(aT(e),9007199254740991):0},sT=function(e){return oT(e.length)},cT=Array.isArray||function(e){return Yw(e)==`Array`},lT=function(){},kce=[],uT=ZC(`Reflect`,`construct`),dT=/^\s*(?:class|function)\b/,Ace=Y(dT.exec),jce=!dT.exec(lT),fT=function(e){if(!XC(e))return!1;try{return uT(lT,kce,e),!0}catch{return!1}},pT=!uT||iw((function(){var e;return fT(fT.call)||!fT(Object)||!fT((function(){e=!0}))||e}))?function(e){if(!XC(e))return!1;switch(Xw(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return jce||!!Ace(dT,Pw(e))}:fT,Mce=uw(`species`),mT=J.Array,hT=function(e,t){return new(function(e){var t;return cT(e)&&(t=e.constructor,(pT(t)&&(t===mT||cT(t.prototype))||mw(t)&&(t=t[Mce])===null)&&(t=void 0)),t===void 0?mT:t}(e))(t===0?0:t)},gT=Y([].push),_T=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=qC(c),h=iT(m),g=nT(l,u),_=sT(h),v=0,y=d||hT,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:gT(b,f)}else switch(e){case 4:return!1;case 7:gT(b,f)}return a?-1:r||i?i:b}},vT={forEach:_T(0),map:_T(1),filter:_T(2),some:_T(3),every:_T(4),find:_T(5),findIndex:_T(6),filterReject:_T(7)},yT=function(e,t){var n=[][e];return!!n&&iw((function(){n.call(null,t||function(){throw 1},1)}))},Nce=vT.forEach,bT=yT(`forEach`)?[].forEach:function(e){return Nce(this,e,arguments.length>1?arguments[1]:void 0)},xT=function(e){if(e&&e.forEach!==bT)try{Aw(e,`forEach`,bT)}catch{e.forEach=bT}};for(var ST in Zw)Zw[ST]&&xT(J[ST]&&J[ST].prototype);xT(eT);var CT={}.propertyIsEnumerable,wT=Object.getOwnPropertyDescriptor,TT={f:wT&&!CT.call({1:2},1)?function(e){var t=wT(this,e);return!!t&&t.enumerable}:CT},ET=function(e){return iT(KC(e))},DT=Object.getOwnPropertyDescriptor,OT={f:pw?DT:function(e,t){if(e=ET(e),t=Ew(t),_w)try{return DT(e,t)}catch{}if(JC(e,t))return kw(!bw(TT.f,e,t),e[t])}},Pce=Math.max,Fce=Math.min,kT=function(e,t){var n=aT(e);return n<0?Pce(n+t,0):Fce(n,t)},AT=function(e){return function(t,n,r){var i,a=ET(t),o=sT(a),s=kT(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}},jT={includes:AT(!0),indexOf:AT(!1)},Ice=jT.indexOf,MT=Y([].push),NT=function(e,t){var n,r=ET(e),i=0,a=[];for(n in r)!JC(zw,n)&&JC(r,n)&&MT(a,n);for(;t.length>i;)JC(r,n=t[i++])&&(~Ice(a,n)||MT(a,n));return a},PT=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Lce=PT.concat(`length`,`prototype`),FT={f:Object.getOwnPropertyNames||function(e){return NT(e,Lce)}},IT={f:Object.getOwnPropertySymbols},Rce=Y([].concat),zce=ZC(`Reflect`,`ownKeys`)||function(e){var t=FT.f(vw(e)),n=IT.f;return n?Rce(t,n(e)):t},Bce=function(e,t){for(var n=zce(t),r=Ow.f,i=OT.f,a=0;a<n.length;a++){var o=n[a];JC(e,o)||r(e,o,i(t,o))}},Vce=/#|\.prototype\./,LT=function(e,t){var n=Uce[Hce(e)];return n==Gce||n!=Wce&&(XC(t)?iw(t):!!t)},Hce=LT.normalize=function(e){return String(e).replace(Vce,`.`).toLowerCase()},Uce=LT.data={},Wce=LT.NATIVE=`N`,Gce=LT.POLYFILL=`P`,RT=LT,Kce=OT.f,zT=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]||BC(s,{}):(J[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Kce(n,r))&&o.value:n[r],!RT(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Bce(a,i)}(e.sham||i&&i.sham)&&Aw(a,`sham`,!0),Jw(n,r,a,e)}},BT=Object.keys||function(e){return NT(e,PT)},qce=iw((function(){BT(1)}));function VT(e){return Object.prototype.toString.call(e)===`[object Object]`}zT({target:`Object`,stat:!0,forced:qce},{keys:function(e){return BT(qC(e))}});var Jce={isHistory(e){return!1!==VT(t=e)&&((n=t.constructor)===void 0||!1!==VT(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||sv.isOperationList(e.redos[0]))&&(e.undos.length===0||sv.isOperationList(e.undos[0]));var t,n,r}},HT=new WeakMap,UT=new WeakMap,WT={isHistoryEditor:e=>Jce.isHistory(e.history)&&B.isEditor(e),isMerging:e=>UT.get(e),isSaving:e=>HT.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=WT.isMerging(e);UT.set(e,!1),t(),UT.set(e,n)},withoutSaving(e,t){var n=WT.isSaving(e);HT.set(e,!1),t(),HT.set(e,n)}},Yce=J.String,GT=function(e){if(Xw(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Yce(e)},KT=function(){var e=vw(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},Xce=qw.PROPER,qT=RegExp.prototype,JT=qT.toString,Zce=Y(KT),Qce=iw((function(){return JT.call({source:`a`,flags:`b`})!=`/a/b`})),$ce=Xce&&JT.name!=`toString`;(Qce||$ce)&&Jw(RegExp.prototype,`toString`,(function(){var e=vw(this),t=GT(e.source),n=e.flags;return`/`+t+`/`+GT(n===void 0&&xw(qT,e)&&!(`flags`in qT)?Zce(e):n)}),{unsafe:!0});var YT,ele=pw?Object.defineProperties:function(e,t){vw(e);for(var n,r=ET(t),i=BT(t),a=i.length,o=0;a>o;)Ow.f(e,n=i[o++],r[n]);return e},XT=ZC(`document`,`documentElement`),ZT=Rw(`IE_PROTO`),QT=function(){},$T=function(e){return`<script>`+e+`<\/script>`},eE=function(e){e.write($T(``)),e.close();var t=e.parentWindow.Object;return e=null,t},tE=function(){try{YT=new ActiveXObject(`htmlfile`)}catch{}var e,t;tE=typeof document<`u`?document.domain&&YT?eE(YT):((t=gw(`iframe`)).style.display=`none`,XT.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write($T(`document.F=Object`)),e.close(),e.F):eE(YT);for(var n=PT.length;n--;)delete tE.prototype[PT[n]];return tE()};zw[ZT]=!0;var nE=Object.create||function(e,t){var n;return e===null?n=tE():(QT.prototype=vw(e),n=new QT,QT.prototype=null,n[ZT]=e),t===void 0?n:ele(n,t)},rE=uw(`unscopables`),iE=Array.prototype;iE[rE]??Ow.f(iE,rE,{configurable:!0,value:nE(null)});var aE=function(e){iE[rE][e]=!0},tle=jT.includes;zT({target:`Array`,proto:!0},{includes:function(e){return tle(this,e,arguments.length>1?arguments[1]:void 0)}}),aE(`includes`);var nle=uw(`match`),oE=function(e){var t;return mw(e)&&((t=e[nle])===void 0?Yw(e)==`RegExp`:!!t)},rle=J.TypeError,sE=function(e){if(oE(e))throw rle(`The method doesn't accept regular expressions`);return e},ile=uw(`match`),cE=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[ile]=!1,`/./`[e](t)}catch{}}return!1},ale=Y(``.indexOf);zT({target:`String`,proto:!0,forced:!cE(`includes`)},{includes:function(e){return!!~ale(GT(KC(this)),GT(sE(e)),arguments.length>1?arguments[1]:void 0)}});var ole=/"/g,sle=Y(``.replace);zT({target:`String`,proto:!0,forced:iw((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=GT(KC(this)),r=`<a`,(r+=` name="`+sle(GT(t),ole,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var lE=function(e,t,n){var r,i;vw(e);try{if(!(r=Tw(e,`return`))){if(t===`throw`)throw n;return n}r=bw(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return vw(r),n},cle=function(e,t,n,r){try{return r?t(vw(n)[0],n[1]):t(n)}catch(t){lE(e,`throw`,t)}},uE={},lle=uw(`iterator`),ule=Array.prototype,dE=function(e){return e!==void 0&&(uE.Array===e||ule[lle]===e)},fE=function(e,t,n){var r=Ew(t);r in e?Ow.f(e,r,kw(0,n)):e[r]=n},dle=uw(`iterator`),pE=function(e){if(e!=null)return Tw(e,dle)||Tw(e,`@@iterator`)||uE[Xw(e)]},fle=J.TypeError,mE=function(e,t){var n=arguments.length<2?pE(e):t;if(ww(n))return vw(bw(n,e));throw fle(Cw(e)+` is not iterable`)},hE=J.Array,gE=uw(`iterator`),_E=!1;try{var ple=0,vE={next:function(){return{done:!!ple++}},return:function(){_E=!0}};vE[gE]=function(){return this},Array.from(vE,(function(){throw 2}))}catch{}var yE=function(e,t){if(!t&&!_E)return!1;var n=!1;try{var r={};r[gE]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};zT({target:`Array`,stat:!0,forced:!yE((function(e){Array.from(e)}))},{from:function(e){var t=qC(e),n=pT(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=nT(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=pE(t),p=0;if(!f||this==hE&&dE(f))for(o=sT(t),s=n?new this(o):hE(o);o>p;p++)d=a?i(t[p],p):t[p],fE(s,p,d);else for(u=(l=mE(t,f)).next,s=n?new this:[];!(c=bw(u,l)).done;p++)d=a?cle(l,i,[c.value,p],!0):c.value,fE(s,p,d);return s.length=p,s}});var bE,xE,SE,mle=Y(``.charAt),CE=Y(``.charCodeAt),hle=Y(``.slice),wE=function(e){return function(t,n){var r,i,a=GT(KC(t)),o=aT(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=CE(a,o))<55296||r>56319||o+1===s||(i=CE(a,o+1))<56320||i>57343?e?mle(a,o):r:e?hle(a,o,o+2):i-56320+(r-55296<<10)+65536}},TE={codeAt:wE(!1),charAt:wE(!0)},gle=!iw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),EE=Rw(`IE_PROTO`),DE=J.Object,_le=DE.prototype,OE=gle?DE.getPrototypeOf:function(e){var t=qC(e);if(JC(t,EE))return t[EE];var n=t.constructor;return XC(n)&&t instanceof n?n.prototype:t instanceof DE?_le:null},kE=uw(`iterator`),AE=!1;[].keys&&(`next`in(SE=[].keys())?(xE=OE(OE(SE)))!==Object.prototype&&(bE=xE):AE=!0),(bE==null||iw((function(){var e={};return bE[kE].call(e)!==e})))&&(bE={}),XC(bE[kE])||Jw(bE,kE,(function(){return this}));var jE={IteratorPrototype:bE,BUGGY_SAFARI_ITERATORS:AE},vle=Ow.f,ME=uw(`toStringTag`),NE=function(e,t,n){e&&!JC(e=n?e:e.prototype,ME)&&vle(e,ME,{configurable:!0,value:t})},yle=jE.IteratorPrototype,ble=function(){return this},xle=J.String,Sle=J.TypeError,PE=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 vw(n),function(e){if(typeof e==`object`||XC(e))return e;throw Sle(`Can't set `+xle(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Cle=qw.PROPER,wle=qw.CONFIGURABLE,FE=jE.IteratorPrototype,IE=jE.BUGGY_SAFARI_ITERATORS,LE=uw(`iterator`),Tle=function(){return this},RE=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=nE(yle,{next:kw(1,n)}),NE(e,i,!1),uE[i]=ble})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!IE&&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[LE]||p[`@@iterator`]||i&&p[i],h=!IE&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=OE(g.call(new e)))!==Object.prototype&&s.next&&(OE(s)!==FE&&(PE?PE(s,FE):XC(s[LE])||Jw(s,LE,Tle)),NE(s,d,!0)),Cle&&i==`values`&&m&&m.name!==`values`&&(wle?Aw(p,`name`,`values`):(f=!0,h=function(){return bw(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(IE||f||!(l in p))&&Jw(p,l,c[l]);else zT({target:t,proto:!0,forced:IE||f},c);return p[LE]!==h&&Jw(p,LE,h,{name:i}),uE[t]=h,c},Ele=TE.charAt,Dle=Ww.set,Ole=Ww.getterFor(`String Iterator`);RE(String,`String`,(function(e){Dle(this,{type:`String Iterator`,string:GT(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=Ele(n,r),t.index+=e.length,{value:e,done:!1})}));var zE,kle=OT.f,BE=Y(``.endsWith),Ale=Y(``.slice),jle=Math.min,VE=cE(`endsWith`);zT({target:`String`,proto:!0,forced:!!(VE||(zE=kle(String.prototype,`endsWith`),!zE||zE.writable))&&!VE},{endsWith:function(e){var t=GT(KC(this));sE(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:jle(oT(n),r),a=GT(e);return BE?BE(t,a,i):Ale(t,i-a.length,i)===a}});var Mle=Y([].join),Nle=iT!=Object,Ple=yT(`join`,`,`);zT({target:`Array`,proto:!0,forced:Nle||!Ple},{join:function(e){return Mle(ET(this),e===void 0?`,`:e)}});var Fle=uw(`species`),HE=function(e){return rw>=51||!iw((function(){var t=[];return(t.constructor={})[Fle]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Ile=vT.map;zT({target:`Array`,proto:!0,forced:!HE(`map`)},{map:function(e){return Ile(this,e,arguments.length>1?arguments[1]:void 0)}});var UE=J.RegExp,WE=iw((function(){var e=UE(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Lle=WE||iw((function(){return!UE(`a`,`y`).sticky})),GE={BROKEN_CARET:WE||iw((function(){var e=UE(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Lle,UNSUPPORTED_Y:WE},Rle=J.RegExp,KE=iw((function(){var e=Rle(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),zle=J.RegExp,qE=iw((function(){var e=zle(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Ble=Ww.get,Vle=HC(`native-string-replace`,String.prototype.replace),JE=RegExp.prototype.exec,YE=JE,Hle=Y(``.charAt),Ule=Y(``.indexOf),Wle=Y(``.replace),XE=Y(``.slice),ZE=function(){var e=/a/,t=/b*/g;return bw(JE,e,`a`),bw(JE,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),QE=GE.BROKEN_CARET,$E=/()??/.exec(``)[1]!==void 0;(ZE||$E||QE||KE||qE)&&(YE=function(e){var t,n,r,i,a,o,s,c=this,l=Ble(c),u=GT(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=bw(YE,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=QE&&c.sticky,m=bw(KT,c),h=c.source,g=0,_=u;if(p&&(m=Wle(m,`y`,``),Ule(m,`g`)===-1&&(m+=`g`),_=XE(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Hle(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),$E&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),ZE&&(r=c.lastIndex),i=bw(JE,p?n:c,_),p?i?(i.input=XE(i.input,g),i[0]=XE(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:ZE&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),$E&&i&&i.length>1&&bw(Vle,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=nE(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var eD=YE;zT({target:`RegExp`,proto:!0,forced:/./.exec!==eD},{exec:eD});var tD=Function.prototype,nD=tD.apply,Gle=tD.bind,rD=tD.call,iD=typeof Reflect==`object`&&Reflect.apply||(Gle?rD.bind(nD):function(){return rD.apply(nD,arguments)}),Kle=uw(`species`),aD=RegExp.prototype,oD=function(e,t,n,r){var i=uw(e),a=!iw((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!iw((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Kle]=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===eD||c===aD.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Jw(String.prototype,e,c[0]),Jw(aD,i,c[1])}r&&Aw(aD[i],`sham`,!0)},qle=TE.charAt,sD=function(e,t,n){return t+(n?qle(e,t).length:1)},Jle=Math.floor,cD=Y(``.charAt),Yle=Y(``.replace),lD=Y(``.slice),Xle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Zle=/\$([$&'`]|\d{1,2})/g,Qle=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Zle;return i!==void 0&&(i=qC(i),c=Xle),Yle(a,c,(function(a,c){var l;switch(cD(c,0)){case`$`:return`$`;case`&`:return e;case"`":return lD(t,0,n);case`'`:return lD(t,o);case`<`:l=i[lD(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Jle(u/10);return d===0?a:d<=s?r[d-1]===void 0?cD(c,1):r[d-1]+cD(c,1):a}l=r[u-1]}return l===void 0?``:l}))},$le=J.TypeError,uD=function(e,t){var n=e.exec;if(XC(n)){var r=bw(n,e,t);return r!==null&&vw(r),r}if(Yw(e)===`RegExp`)return bw(eD,e,t);throw $le(`RegExp#exec called on incompatible receiver`)},dD=uw(`replace`),eue=Math.max,tue=Math.min,nue=Y([].concat),fD=Y([].push),pD=Y(``.indexOf),mD=Y(``.slice),rue=`a`.replace(/./,`$0`)===`$0`,hD=!!/./[dD]&&/./[dD](`a`,`$0`)===``;oD(`replace`,(function(e,t,n){var r=hD?`$`:`$0`;return[function(e,n){var r=KC(this),i=e==null?void 0:Tw(e,dD);return i?bw(i,e,r,n):bw(t,GT(r),e,n)},function(e,i){var a=vw(this),o=GT(e);if(typeof i==`string`&&pD(i,r)===-1&&pD(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=XC(i);c||(i=GT(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=uD(a,o);if(f===null||(fD(d,f),!l))break;GT(f[0])===``&&(a.lastIndex=sD(o,oT(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=GT((f=d[g])[0]),v=eue(tue(aT(f.index),o.length),0),y=[],b=1;b<f.length;b++)fD(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=nue([_],y,v,o);x!==void 0&&fD(S,x);var C=GT(iD(i,void 0,S))}else C=Qle(_,o,v,y,x,i);v>=h&&(m+=mD(o,h,v)+C,h=v+_.length)}return m+mD(o,h)}]}),!!iw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!rue||hD);var gD=function(e,t){return gD=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])},gD(e,t)};function _D(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}gD(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vD=function(){return vD=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},vD.apply(this,arguments)};function yD(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 bD(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 xD(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var iue=0,SD=function(){this.id=``+ iue++},aue=Ww.set,CD=Ww.getterFor(`Array Iterator`),wD=RE(Array,`Array`,(function(e,t){aue(this,{type:`Array Iterator`,target:ET(e),index:0,kind:t})}),(function(){var e=CD(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`);uE.Arguments=uE.Array,aE(`keys`),aE(`values`),aE(`entries`);var TD=function(e,t,n){for(var r in t)Jw(e,r,t[r],n);return e},oue=J.Array,ED=Math.max,DD=function(e,t,n){for(var r=sT(e),i=kT(t,r),a=kT(n===void 0?r:n,r),o=oue(ED(a-i,0)),s=0;i<a;i++,s++)fE(o,s,e[i]);return o.length=s,o},OD=FT.f,kD=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sue={f:function(e){return kD&&Yw(e)==`Window`?function(e){try{return OD(e)}catch{return DD(kD)}}(e):OD(ET(e))}},AD=iw((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),jD=Object.isExtensible,MD=iw((function(){jD(1)}))||AD?function(e){return!!mw(e)&&(!AD||Yw(e)!=`ArrayBuffer`)&&(!jD||jD(e))}:jD,cue=!iw((function(){return Object.isExtensible(Object.preventExtensions({}))})),ND=IC((function(e){var t=Ow.f,n=!1,r=YC(`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=FT.f,t=Y([].splice),i={};i[r]=1,e(i).length&&(FT.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},zT({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:sue.f}))},fastKey:function(e,t){if(!mw(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!JC(e,r)){if(!MD(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!JC(e,r)){if(!MD(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return cue&&n&&MD(e)&&!JC(e,r)&&a(e),e}};zw[r]=!0})),PD=J.TypeError,FD=function(e,t){this.stopped=e,this.result=t},ID=FD.prototype,LD=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=nT(t,u),h=function(e){return r&&lE(r,`normal`,e),new FD(!0,e)},g=function(e){return d?(vw(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=pE(e)))throw PD(Cw(e)+` is not iterable`);if(dE(i)){for(a=0,o=sT(e);o>a;a++)if((s=g(e[a]))&&xw(ID,s))return s;return new FD(!1)}r=mE(e,i)}for(c=r.next;!(l=bw(c,r)).done;){try{s=g(l.value)}catch(e){lE(r,`throw`,e)}if(typeof s==`object`&&s&&xw(ID,s))return s}return new FD(!1)},RD=J.TypeError,zD=function(e,t){if(xw(t,e))return e;throw RD(`Incorrect invocation`)},BD=function(e,t,n){var r,i;return PE&&XC(r=t.constructor)&&r!==n&&mw(i=r.prototype)&&i!==n.prototype&&PE(e,i),e},VD=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]);Jw(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!mw(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!mw(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!mw(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(RT(e,!XC(o)||!(i||s.forEach&&!iw((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),ND.enable();else if(RT(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=iw((function(){d.has(1)})),m=yE((function(e){new o(e)})),h=!i&&iw((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){zD(e,s);var n=BD(new o,e,c);return t!=null&&LD(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,zT({global:!0,forced:c!=o},l),NE(c,e),i||n.setStrong(c,e,r),c},HD=ND.getWeakData,lue=Ww.set,uue=Ww.getterFor,due=vT.find,fue=vT.findIndex,pue=Y([].splice),mue=0,UD=function(e){return e.frozen||=new WD},WD=function(){this.entries=[]},GD=function(e,t){return due(e.entries,(function(e){return e[0]===t}))};WD.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=fue(this.entries,(function(t){return t[0]===e}));return~t&&pue(this.entries,t,1),!!~t}};var KD,qD={getConstructor:function(e,t,n,r){var i=e((function(e,i){zD(e,a),lue(e,{type:t,id:mue++,frozen:void 0}),i!=null&&LD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=uue(t),s=function(e,t,n){var r=o(e),i=HD(vw(t),!0);return!0===i?UD(r).set(t,n):i[r.id]=n,e};return TD(a,{delete:function(e){var t=o(this);if(!mw(e))return!1;var n=HD(e);return!0===n?UD(t).delete(e):n&&JC(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!mw(e))return!1;var n=HD(e);return!0===n?UD(t).has(e):n&&JC(n,t.id)}}),TD(a,n?{get:function(e){var t=o(this);if(mw(e)){var n=HD(e);return!0===n?UD(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}},JD=Ww.enforce,hue=!J.ActiveXObject&&`ActiveXObject`in J,YD=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},XD=VD(`WeakMap`,YD,qD);if(Iw&&hue){KD=qD.getConstructor(YD,`WeakMap`,!0),ND.enable();var ZD=XD.prototype,QD=Y(ZD.delete),$D=Y(ZD.has),eO=Y(ZD.get),tO=Y(ZD.set);TD(ZD,{delete:function(e){if(mw(e)&&!MD(e)){var t=JD(this);return t.frozen||=new KD,QD(this,e)||t.frozen.delete(e)}return QD(this,e)},has:function(e){if(mw(e)&&!MD(e)){var t=JD(this);return t.frozen||=new KD,$D(this,e)||t.frozen.has(e)}return $D(this,e)},get:function(e){if(mw(e)&&!MD(e)){var t=JD(this);return t.frozen||=new KD,$D(this,e)?eO(this,e):t.frozen.get(e)}return eO(this,e)},set:function(e,t){if(mw(e)&&!MD(e)){var n=JD(this);n.frozen||=new KD,$D(this,e)?tO(this,e,t):n.frozen.set(e,t)}else tO(this,e,t);return this}})}var nO=uw(`iterator`),rO=uw(`toStringTag`),iO=wD.values,aO=function(e,t){if(e){if(e[nO]!==iO)try{Aw(e,nO,iO)}catch{e[nO]=iO}if(e[rO]||Aw(e,rO,t),Zw[t]){for(var n in wD)if(e[n]!==wD[n])try{Aw(e,n,wD[n])}catch{e[n]=wD[n]}}}};for(var oO in Zw)aO(J[oO]&&J[oO].prototype,oO);aO(eT,`DOMTokenList`);var sO=new WeakMap,cO=new WeakMap,lO=new WeakMap,uO=new WeakMap,dO=new WeakMap,fO=new WeakMap,pO=new WeakMap,mO=new WeakMap,hO=new WeakMap,gO=new WeakMap,_O=new WeakMap,vO=new WeakMap,yO=new WeakMap,bO=new WeakMap,xO=new WeakMap,SO=new WeakMap,CO=new WeakMap,wO=new WeakMap,TO=new WeakMap,EO=new WeakMap,DO=new WeakMap,OO=new WeakMap,kO=new WeakMap,AO=new WeakMap,jO=new WeakMap,gue=vT.find,MO=!0;`find`in[]&&[,].find((function(){MO=!1})),zT({target:`Array`,proto:!0,forced:MO},{find:function(e){return gue(this,e,arguments.length>1?arguments[1]:void 0)}}),aE(`find`),zT({global:!0},{globalThis:J});var _ue=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];jy&&(K.fn.css=jy),Ly&&(K.fn.append=Ly),_y&&(K.fn.addClass=_y),vy&&(K.fn.removeClass=vy),yy&&(K.fn.hasClass=yy),wy&&(K.fn.on=wy),Jy&&(K.fn.focus=Jy),by&&(K.fn.attr=by),xy&&(K.fn.removeAttr=xy),ky&&(K.fn.hide=ky),Ay&&(K.fn.show=Ay),Oy&&(K.fn.offset=Oy),Ey&&(K.fn.width=Ey),Dy&&(K.fn.height=Dy),zy&&(K.fn.parent=zy),By&&(K.fn.parents=By),Iy&&(K.fn.is=Iy),Sy&&(K.fn.dataset=Sy),Cy&&(K.fn.val=Cy),Fy&&(K.fn.text=Fy),Py&&(K.fn.html=Py),Hy&&(K.fn.children=Hy),Uy&&(K.fn.remove=Uy),Vy&&(K.fn.find=Vy),My&&(K.fn.each=My),Wy&&(K.fn.empty=Wy);var NO,PO,FO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},IO=function(e){return LO(e)&&e.nodeType===1},LO=function(e){var t=FO(e);return!!t&&e instanceof t.Node},RO=function(e){var t=e&&e.anchorNode&&FO(e.anchorNode);return!!t&&e instanceof t.Selection},zO=function(e){return LO(e)&&e.nodeType===3},BO=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},VO=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(LO(r=a)&&r.nodeType===8||IO(a)&&a.childNodes.length===0||IO(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]},HO=function(e,t,n){return bD(VO(e,t,n),1)[0]},UO=function e(t){var n,r,i=``;if(zO(t)&&t.nodeValue)return t.nodeValue;if(IO(t)){try{for(var a=yD(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 WO(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||WO(i,t)}}function GO(e){if(e.length===0)return``;var t=e[0];return t.nodeType===NO.ELEMENT_NODE?t.tagName.toLowerCase():``}(PO=NO||={})[PO.ELEMENT_NODE=1]=`ELEMENT_NODE`,PO[PO.TEXT_NODE=3]=`TEXT_NODE`,PO[PO.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,PO[PO.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,PO[PO.COMMENT_NODE=8]=`COMMENT_NODE`,PO[PO.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,PO[PO.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,PO[PO.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 KO=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),qO=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 JO=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),YO=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),XO=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ZO=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var QO=!XO&&!YO&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=DO.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=EO.get(t);return n||(n=new SD,EO.set(t,n)),n},setNewKey:function(e){var t=new SD;EO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=xO.get(r);if(i==null){if(B.isEditor(r))return n;break}var a=bO.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 xO.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=SO.get(e);else{var r=X.findKey(e,t);n=wO.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=IO(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=bD(i?o:a,2),l=c[0],u=c[1],d=bD(i?a:o,2),f=d[0],p=d[1],m=!!(IO(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(IO(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=bD(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=yD(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=IO(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?CO.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((RO(t)?t.anchorNode:t.startContainer)&&(RO(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=ZO&&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)&&IO(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=bD(i?t:function(e){var t,n=bD(e,2),r=n[0],i=n[1];if(IO(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=bD(VO(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;IO(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=HO(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();xD(xD([],bD(ry(g.querySelectorAll(`[data-slate-zero-width]`)))),bD(ry(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`)||qO&&(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=yD(i),o=a.next();!o.done;o=a.next()){var s=bD(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=bD(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=bD(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=bD(B.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&bD(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=sO.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return uO.get(e)||null},getHoverbar:function(e){return fO.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=yD(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=yD(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];WO(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=yD(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=bD(n,1)[0].children;return r.length===1&&r[0].text===``}},$O=1,ek={},tk={},vue=vT.filter;zT({target:`Array`,proto:!0,forced:!HE(`filter`)},{filter:function(e){return vue(this,e,arguments.length>1?arguments[1]:void 0)}});var nk=`
\v\f\r \xA0               \u2028\u2029`,rk=Y(``.replace),ik=`[`+nk+`]`,yue=RegExp(`^`+ik+ik+`*`),bue=RegExp(ik+ik+`*$`),ak=function(e){return function(t){var n=GT(KC(t));return 1&e&&(n=rk(n,yue,``)),2&e&&(n=rk(n,bue,``)),n}},xue={start:ak(1),end:ak(2),trim:ak(3)},Sue=qw.PROPER,Cue=xue.trim;zT({target:`String`,proto:!0,forced:function(e){return iw((function(){return!!nk[e]()||`​…᠎`[e]()!==`​…᠎`||Sue&&nk[e].name!==e}))}(`trim`)},{trim:function(){return Cue(this)}});var ok=[],sk={};function wue(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var ck,lk,uk,dk,fk=J.Promise,pk=uw(`species`),mk=function(e){var t=ZC(e),n=Ow.f;pw&&t&&!t[pk]&&n(t,pk,{configurable:!0,get:function(){return this}})},Tue=J.TypeError,Eue=uw(`species`),hk=function(e,t){var n,r=vw(e).constructor;return r===void 0||(n=vw(r)[Eue])==null?t:function(e){if(pT(e))return e;throw Tue(Cw(e)+` is not a constructor`)}(n)},gk=Y([].slice),_k=/(?:ipad|iphone|ipod).*applewebkit/i.test(QC),vk=Yw(J.process)==`process`,yk=J.setImmediate,bk=J.clearImmediate,Due=J.process,xk=J.Dispatch,Oue=J.Function,Sk=J.MessageChannel,kue=J.String,Ck=0,wk={};try{ck=J.location}catch{}var Tk=function(e){if(JC(wk,e)){var t=wk[e];delete wk[e],t()}},Ek=function(e){return function(){Tk(e)}},Dk=function(e){Tk(e.data)},Ok=function(e){J.postMessage(kue(e),ck.protocol+`//`+ck.host)};yk&&bk||(yk=function(e){var t=gk(arguments,1);return wk[++Ck]=function(){iD(XC(e)?e:Oue(e),void 0,t)},lk(Ck),Ck},bk=function(e){delete wk[e]},vk?lk=function(e){Due.nextTick(Ek(e))}:xk&&xk.now?lk=function(e){xk.now(Ek(e))}:Sk&&!_k?(dk=(uk=new Sk).port2,uk.port1.onmessage=Dk,lk=nT(dk.postMessage,dk)):J.addEventListener&&XC(J.postMessage)&&!J.importScripts&&ck&&ck.protocol!==`file:`&&!iw(Ok)?(lk=Ok,J.addEventListener(`message`,Dk,!1)):lk=`onreadystatechange`in gw(`script`)?function(e){XT.appendChild(gw(`script`)).onreadystatechange=function(){XT.removeChild(this),Tk(e)}}:function(e){setTimeout(Ek(e),0)});var kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk={set:yk,clear:bk},Aue=/ipad|iphone|ipod/i.test(QC)&&J.Pebble!==void 0,jue=/web0s(?!.*chrome)/i.test(QC),Mue=OT.f,Rk=Lk.set,zk=J.MutationObserver||J.WebKitMutationObserver,Bk=J.document,Vk=J.process,Hk=J.Promise,Uk=Mue(J,`queueMicrotask`),Wk=Uk&&Uk.value;Wk||(kk=function(){var e,t;for(vk&&(e=Vk.domain)&&e.exit();Ak;){t=Ak.fn,Ak=Ak.next;try{t()}catch(e){throw Ak?Mk():jk=void 0,e}}jk=void 0,e&&e.enter()},_k||vk||jue||!zk||!Bk?!Aue&&Hk&&Hk.resolve?((Fk=Hk.resolve(void 0)).constructor=Hk,Ik=nT(Fk.then,Fk),Mk=function(){Ik(kk)}):vk?Mk=function(){Vk.nextTick(kk)}:(Rk=nT(Rk,J),Mk=function(){Rk(kk)}):(Nk=!0,Pk=Bk.createTextNode(``),new zk(kk).observe(Pk,{characterData:!0}),Mk=function(){Pk.data=Nk=!Nk}));var Gk,Kk,qk,Jk,Yk=Wk||function(e){var t={fn:e,next:void 0};jk&&(jk.next=t),Ak||(Ak=t,Mk()),jk=t},Nue=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=ww(t),this.reject=ww(n)},Xk={f:function(e){return new Nue(e)}},Zk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Pue=typeof window==`object`,Qk=Lk.set,Fue=uw(`species`),$k=`Promise`,eA=Ww.getterFor($k),Iue=Ww.set,Lue=Ww.getterFor($k),tA=fk&&fk.prototype,nA=fk,rA=tA,iA=J.TypeError,aA=J.document,oA=J.process,sA=Xk.f,Rue=sA,zue=!!(aA&&aA.createEvent&&J.dispatchEvent),cA=XC(J.PromiseRejectionEvent),lA=!1,uA=RT($k,(function(){var e=Pw(nA),t=e!==String(nA);if(!t&&rw===66)return!0;if(rw>=51&&/native code/.test(e))return!1;var n=new nA((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Fue]=r,!(lA=n.then((function(){}))instanceof r)||!t&&Pue&&!cA})),dA=uA||!yE((function(e){nA.all(e).catch((function(){}))})),fA=function(e){var t;return!(!mw(e)||!XC(t=e.then))&&t},pA=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&&_A(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(iA(`Promise-chain cycle`)):(s=fA(o))?bw(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hA(e)}))}},mA=function(e,t,n){var r,i;zue?((r=aA.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),J.dispatchEvent(r)):r={promise:t,reason:n},!cA&&(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)},hA=function(e){bw(Qk,J,(function(){var t,n=e.facade,r=e.value;if(gA(e)&&(t=Zk((function(){vk?oA.emit(`unhandledRejection`,r,n):mA(`unhandledrejection`,n,r)})),e.rejection=vk||gA(e)?2:1,t.error))throw t.value}))},gA=function(e){return e.rejection!==1&&!e.parent},_A=function(e){bw(Qk,J,(function(){var t=e.facade;vk?oA.emit(`rejectionHandled`,t):mA(`rejectionhandled`,t,e.value)}))},vA=function(e,t,n){return function(r){e(t,r,n)}},yA=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pA(e,!0))},bA=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw iA(`Promise can't be resolved itself`);var r=fA(t);r?Yk((function(){var n={done:!1};try{bw(r,t,vA(bA,n,e),vA(yA,n,e))}catch(t){yA(n,t,e)}})):(e.value=t,e.state=1,pA(e,!1))}catch(t){yA({done:!1},t,e)}}};if(uA&&(rA=(nA=function(e){zD(this,rA),ww(e),bw(Gk,this);var t=eA(this);try{e(vA(bA,t),vA(yA,t))}catch(e){yA(t,e)}}).prototype,(Gk=function(e){Iue(this,{type:$k,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=TD(rA,{then:function(e,t){var n=Lue(this),r=n.reactions,i=sA(hk(this,nA));return i.ok=!XC(e)||e,i.fail=XC(t)&&t,i.domain=vk?oA.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&pA(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),Kk=function(){var e=new Gk,t=eA(e);this.promise=e,this.resolve=vA(bA,t),this.reject=vA(yA,t)},Xk.f=sA=function(e){return e===nA||e===qk?new Kk(e):Rue(e)},XC(fk)&&tA!==Object.prototype)){Jk=tA.then,lA||(Jw(tA,`then`,(function(e,t){var n=this;return new nA((function(e,t){bw(Jk,n,e,t)})).then(e,t)}),{unsafe:!0}),Jw(tA,`catch`,rA.catch,{unsafe:!0}));try{delete tA.constructor}catch{}PE&&PE(tA,rA)}zT({global:!0,wrap:!0,forced:uA},{Promise:nA}),NE(nA,$k,!1),mk($k),qk=ZC($k),zT({target:$k,stat:!0,forced:uA},{reject:function(e){var t=sA(this);return bw(t.reject,void 0,e),t.promise}}),zT({target:$k,stat:!0,forced:uA},{resolve:function(e){return function(e,t){if(vw(e),mw(t)&&t.constructor===e)return t;var n=Xk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),zT({target:$k,stat:!0,forced:dA},{all:function(e){var t=this,n=sA(t),r=n.resolve,i=n.reject,a=Zk((function(){var n=ww(t.resolve),a=[],o=0,s=1;LD(e,(function(e){var c=o++,l=!1;s++,bw(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=sA(t),r=n.reject,i=Zk((function(){var i=ww(t.resolve);LD(e,(function(e){bw(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var xA=GE.UNSUPPORTED_Y,SA=Math.min,CA=[].push,wA=Y(/./.exec),TA=Y(CA),EA=Y(``.slice);function DA(e){Promise.resolve().then(e)}function OA(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 OA(e,t)})).join(``));var c=function(e){return sk[e]||wue}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||ok.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 ok.forEach((function(t){return r=t(e,r)})),r}(e,t)}function kA(e){return`w-e-element-`+e}oD(`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=GT(KC(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!oE(e))return bw(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=bw(eD,d,r))&&!((o=d.lastIndex)>u&&(TA(c,EA(r,u,a.index)),a.length>1&&a.index<r.length&&iD(CA,c,DD(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&wA(d,``)||TA(c,``):TA(c,EA(r,u)),c.length>i?DD(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:bw(t,this,e,n)}:t,[function(t,n){var i=KC(this),a=t==null?void 0:Tw(t,e);return a?bw(a,t,i,n):bw(r,GT(i),t,n)},function(e,i){var a=vw(this),o=GT(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=hk(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(xA?`g`:`y`),d=new c(xA?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return uD(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=xA?0:m;var g,_=uD(d,xA?EA(o,m):o);if(_===null||(g=SA(oT(d.lastIndex+(xA?m:0)),o.length))===p)m=sD(o,m,l);else{if(TA(h,EA(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(TA(h,_[v]),h.length===f)return h;m=p=g}}return TA(h,EA(o,p)),h}]}),!!iw((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`})),xA);var AA=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},jA=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return AA(r,i)&&AA(i,r)},MA=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],NA=[],PA=[],FA={},IA=Ow.f,LA=FT.f,RA=Ww.enforce,zA=uw(`match`),BA=J.RegExp,VA=BA.prototype,HA=J.SyntaxError,UA=Y(KT),WA=Y(VA.exec),GA=Y(``.charAt),KA=Y(``.replace),qA=Y(``.indexOf),JA=Y(``.slice),YA=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,XA=/a/g,ZA=/a/g,QA=new BA(XA)!==XA,$A=GE.MISSED_STICKY,ej=GE.UNSUPPORTED_Y;if(RT(`RegExp`,pw&&(!QA||$A||KE||qE||iw((function(){return ZA[zA]=!1,BA(XA)!=XA||BA(ZA)==ZA||BA(XA,`i`)!=`/a/i`}))))){for(var tj=function(e,t){var n,r,i,a,o,s,c=xw(VA,this),l=oE(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===tj)return e;if((l||xw(VA,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:UA(f))),e=e===void 0?``:GT(e),t=t===void 0?``:GT(t),f=e,KE&&`dotAll`in XA&&(r=!!t&&qA(t,`s`)>-1)&&(t=KA(t,/s/g,``)),n=t,$A&&`sticky`in XA&&(i=!!t&&qA(t,`y`)>-1)&&ej&&(t=KA(t,/y/g,``)),qE&&(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=GA(e,r))===`\\`)t+=GA(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:WA(YA,JA(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||JC(o,u))throw new HA(`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=BD(BA(e,t),c?this:VA,tj),(r||i||d.length)&&(s=RA(o),r&&(s.dotAll=!0,s.raw=tj(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=GA(e,r))===`\\`?i+=t+GA(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{Aw(o,`source`,f===``?`(?:)`:f)}catch{}return o},Bue=function(e){e in tj||IA(tj,e,{configurable:!0,get:function(){return BA[e]},set:function(t){BA[e]=t}})},nj=LA(BA),rj=0;nj.length>rj;)Bue(nj[rj++]);VA.constructor=tj,tj.prototype=VA,Jw(J,`RegExp`,tj)}mk(`RegExp`);var Vue=RegExp(`\xA0`,`g`);function ij(e){return e.replace(Vue,` `)}function aj(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 Hue(e,t,n){return{type:`paragraph`,children:[{text:K(e).text().replace(/\s+/gm,` `)}]}}function oj(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!==NO.ELEMENT_NODE){if(e.nodeType===NO.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=ij(r),aj(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(aj(n,`
`)||n.push({text:`
`}));var i=cj(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 FA)if(e[0].matches(t))return FA[t];return Hue}(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,` `)}]),PA.forEach((function(n){r=n(e[0],r,t)})))})),r}function sj(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=ij(n)};return PA.forEach((function(n){r=n(e[0],r,t)})),r}function cj(e,t){NA.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=K(r(e[0])))}));var n=GO(e);return n===`span`?e.attr(`data-w-e-type`)?oj(e,t):sj(e,t):n===`code`?GO(e.parent())===`pre`?oj(e,t):sj(e,t):MA.includes(n)?sj(e,t):oj(e,t)}function lj(e,t,n){var r=K(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function uj(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=cj(K(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Uue=Ow.f,dj=ND.fastKey,fj=Ww.set,pj=Ww.getterFor;VD(`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){zD(e,a),fj(e,{type:t,index:nE(null),first:void 0,last:void 0,size:0}),pw||(e.size=0),i!=null&&LD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=pj(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=dj(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),pw?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=dj(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return TD(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,pw?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),pw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=nT(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)}}),TD(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)}}),pw&&Uue(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=pj(t),a=pj(r);RE(e,t,(function(e,t){fj(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),mk(t)}});var mj=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function hj(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):G.insertNodes(e,t,{mode:`highest`})}var Wue=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=bD(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=bD(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`?`
`:``})),zO(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`,UO(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=yD(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},gj=function(e){return e!=null},Gue={object:!0,function:!0,undefined:!0},Kue=/^\s*class[\s{/}]/,que=Function.prototype.toString,_j=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!!gj(e)&&hasOwnProperty.call(Gue,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!Kue.test(que.call(e))},vj=function(e){return e!=null},Jue=Object.keys,Yue=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return Jue(vj(e)?Object(e):e)},Xue=function(e){if(!vj(e))throw TypeError(`Cannot use null or undefined`);return e},Zue=Math.max,yj=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=Zue(arguments.length,2);for(e=Object(Xue(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)Yue(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},Que=Array.prototype.forEach,$ue=Object.create,ede=function(e,t){for(var n in e)t[n]=e[n]},bj=function(e){var t=$ue(null);return Que.call(arguments,(function(e){vj(e)&&ede(Object(e),t)})),t},xj=`razdwatrzy`,tde=String.prototype.indexOf,Sj=typeof xj.contains==`function`&&!0===xj.contains(`dwa`)&&!1===xj.contains(`foo`)?String.prototype.contains:function(e){return tde.call(this,e,arguments[1])>-1},Cj=IC((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],gj(e)?(n=Sj.call(e,`c`),r=Sj.call(e,`e`),i=Sj.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?yj(bj(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),gj(t)?_j(t)?gj(n)?_j(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,gj(e)?(r=Sj.call(e,`c`),i=Sj.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?yj(bj(a),o):o}})),wj=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},nde=IC((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 wj(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 wj(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(wj(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:Cj(n),once:Cj(r),off:Cj(i),emit:Cj(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function Tj(e){var t=AO.get(e);return t??(t=nde(),AO.set(e,t)),t}var Ej=new WeakMap;function Dj(e,t){var n=Ej.get(e);n??(n=new Set,Ej.set(e,n)),n.add(t)}function rde(e){return Ej.get(e)||new Set}function ide(e){Ej.set(e,new Set)}function Oj(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 kj(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=Oj(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 Aj(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=TO.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(_ue.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=Oj(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 jj(e,t){DA((function(){var n=Oj(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 ade=HE(`slice`),ode=uw(`species`),Mj=J.Array,sde=Math.max;zT({target:`Array`,proto:!0,forced:!ade},{slice:function(e,t){var n,r,i,a=ET(this),o=sT(a),s=kT(e,o),c=kT(t===void 0?o:t,o);if(cT(a)&&(n=a.constructor,(pT(n)&&(n===Mj||cT(n.prototype))||mw(n)&&(n=n[ode])===null)&&(n=void 0),n===Mj||n===void 0))return gk(a,s,c);for(r=new(n===void 0?Mj:n)(sde(c-s,0)),i=0;s<c;s++,i++)s in a&&fE(r,i,a[s]);return r.length=i,r}});var cde=OT.f,Nj=Y(``.startsWith),lde=Y(``.slice),ude=Math.min,Pj=cE(`startsWith`);zT({target:`String`,proto:!0,forced:!(!Pj&&function(){var e=cde(String.prototype,`startsWith`);return e&&!e.writable}())&&!Pj},{startsWith:function(e){var t=GT(KC(this));sE(e);var n=oT(ude(arguments.length>1?arguments[1]:void 0,t.length)),r=GT(e);return Nj?Nj(t,r,n):lde(t,n,n+r.length)===r}});var Fj=Object.assign,Ij=Object.defineProperty,dde=Y([].concat),Lj=!Fj||iw((function(){if(pw&&Fj({b:1},Fj(Ij({},`a`,{enumerable:!0,get:function(){Ij(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})),Fj({},e)[n]!=7||BT(Fj({},t)).join(``)!=r}))?function(e,t){for(var n=qC(e),r=arguments.length,i=1,a=IT.f,o=TT.f;r>i;)for(var s,c=iT(arguments[i++]),l=a?dde(BT(c),a(c)):BT(c),u=l.length,d=0;u>d;)s=l[d++],pw&&!bw(o,c,s)||(n[s]=c[s]);return n}:Fj;zT({target:`Object`,stat:!0,forced:Object.assign!==Lj},{assign:Lj});var fde=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function Rj(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(!fde.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=yoe(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`&&Rj(e)}))}var zj=[],Bj={};function pde(e,t,n){return ux(n.isInline(e)?`span`:`div`,null,t)}function Vj(e,t){return t===void 0&&(t=!1),ux(`span`,{"data-slate-string":!0},t?e+`
`:e)}function Hj(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),ux(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?ux(`br`,null):null)}function Uj(e,t,n,r){return bO.set(e,t),xO.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=kA(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 Bj[e]||pde}(c);n=a?null:u.map((function(n,r){return Uj(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=bD(bD(V.texts(e),1)[0],1)[0],h=ux(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},Uj(m,0,e,t));f=ux(p,{style:{position:`relative`}},f,h),bO.set(m,0),xO.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return zj.forEach((function(r){n=r(e,t)})),n}(e,f)),DA((function(){var t=BO(o);t!=null&&(wO.set(r,t),TO.set(e,t),CO.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)?Hj(V.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||B.string(i,s)!==``?a===``?Hj():t&&a.slice(-1)===`
`?Vj(a,!0):Vj(a):Hj(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return zj.forEach((function(t){n=t(e,n)})),n}(r,a),ux(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=ux(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return DA((function(){var t=BO(c);t!=null&&(wO.set(r,t),TO.set(e,t),CO.set(t,e))})),l}(e,n,r)}function mde(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),Wb(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=Uj(e,n,t,t);return Rj(r),r}));var l=_O.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=Hb([Jb,rx,cx,Zb,tx,Kb]))(n,c),_O.set(e,!1),vO.set(e,f)}else{var d=yO.get(e),f=vO.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=BO(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=FO(n);p&&DO.set(t,p)}SO.set(t,n),TO.set(t,n),CO.set(n,t),yO.set(e,c)}}function Wj(e){return typeof e==`object`&&!!e&&e.nodeType===1}function Gj(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function Kj(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Gj(n.overflowY,t)||Gj(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 qj(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 Jj(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(!Wj(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;Wj(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&Kj(d)&&!Kj(document.documentElement)||d!=null&&Kj(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(),ee=O.height,k=O.width,A=O.top,j=O.right,M=O.bottom,te=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=A&&x<=M&&S>=te&&b<=j)return T;var N=getComputedStyle(D),ne=parseInt(N.borderLeftWidth,10),re=parseInt(N.borderTopWidth,10),ie=parseInt(N.borderRightWidth,10),ae=parseInt(N.borderBottomWidth,10),oe=0,se=0,ce=`offsetWidth`in D?D.offsetWidth-D.clientWidth-ne-ie:0,P=`offsetHeight`in D?D.offsetHeight-D.clientHeight-re-ae:0;if(l===D)oe=i===`start`?C:i===`end`?C-p:i===`nearest`?qj(h,h+p,p,re,ae,h+C,h+C+_,_):C-p/2,se=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:qj(m,m+f,f,ne,ie,m+w,m+w+v,v),oe=Math.max(0,oe+h),se=Math.max(0,se+m);else{oe=i===`start`?C-A-re:i===`end`?C-M+ae+P:i===`nearest`?qj(A,M,ee,re,ae+P,C,C+_,_):C-(A+ee/2)+P/2,se=a===`start`?w-te-ne:a===`center`?w-(te+k/2)+ce/2:a===`end`?w-j+ie+ce:qj(te,j,k,ne,ie+ce,w,w+v,v);var le=D.scrollLeft,ue=D.scrollTop;C+=ue-(oe=Math.max(0,Math.min(ue+oe,D.scrollHeight-ee+P))),w+=le-(se=Math.max(0,Math.min(le+se,D.scrollWidth-k+ce)))}T.push({el:D,top:oe,left:se})}return T}function Yj(e){return e===Object(e)&&Object.keys(e).length!==0}function Xj(e,t){return LO(t)&&X.hasDOMNode(e,t,{editable:!0})}function Zj(e,t){if(e.getConfig().readOnly)return!1;var n=Qj(e,t)&&X.toSlateNode(e,t);return B.isVoid(e,n)}function Qj(e,t){return LO(t)&&X.hasDOMNode(e,t)}function $j(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=SO.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(Yj(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:Jj(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:Yj(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)}))})(Jj(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&&qO&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var eM=new WeakMap,tM=new WeakMap,hde={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`},gde={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`},_de={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},nM=function(e){var t=hde[e],n=gde[e],r=_de[e],i=t&&Vx(t),a=n&&Vx(n),o=r&&Vx(r);return function(e){return!(!i||!i(e))||!!(KO&&a&&a(e))||!(KO||!o||!o(e))}},rM={isBold:nM(`bold`),isCompose:nM(`compose`),isMoveBackward:nM(`moveBackward`),isMoveForward:nM(`moveForward`),isDeleteBackward:nM(`deleteBackward`),isDeleteForward:nM(`deleteForward`),isDeleteLineBackward:nM(`deleteLineBackward`),isDeleteLineForward:nM(`deleteLineForward`),isDeleteWordBackward:nM(`deleteWordBackward`),isDeleteWordForward:nM(`deleteWordForward`),isExtendBackward:nM(`extendBackward`),isExtendForward:nM(`extendForward`),isExtendLineBackward:nM(`extendLineBackward`),isExtendLineForward:nM(`extendLineForward`),isItalic:nM(`italic`),isMoveLineBackward:nM(`moveLineBackward`),isMoveLineForward:nM(`moveLineForward`),isMoveWordBackward:nM(`moveWordBackward`),isMoveWordForward:nM(`moveWordForward`),isRedo:nM(`redo`),isSplitBlock:nM(`splitBlock`),isTransposeCharacter:nM(`transposeCharacter`),isUndo:nM(`undo`),isTab:nM(`tab`),isSelectAll:nM(`selectAll`)};function iM(e){e.preventDefault()}var vde={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(QO&&!i&&Xj(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=bD(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`&&!jO.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&&Xj(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||IO(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&LO(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(z.isElement(c)&&!n.isVoid(c))return}JO&&o.getSelection()?.removeAllRanges(),OO.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,qO&&e.target!==r?r.focus():OO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Qj(n,e.target)&&LO(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(Xj(n,e.target)){var r=n.selection;if(r&&U.isExpanded(r)&&(B.deleteFragment(n),Promise.resolve().then((function(){$j(t,n,!0)}))),r&&U.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;eM.set(n,a),tM.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(Xj(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(ZO||qO)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=U.isBackward(i)?i.focus:i.anchor,o=bD(B.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=bD(B.node(n,a.path.slice(0,s+1)),1)[0];if(z.isElement(c)&&((JO||qO)&&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=eM.get(n)||``,u>0&&B.insertText(n,l.slice(0,u)),t.changeViewState()):B.insertText(n,l)}else B.insertText(n,l);JO||setTimeout((function(){var e=n.selection;if(e!=null){var t=tM.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=eM.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){Xj(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Xj(n,r.target)){if(function(e,t){var n=uO.get(e),r=n&&n.getMenus(),i=fO.get(e),a=i&&i.getMenus(),o=vD(vD({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&Soe(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),rM.isTab(r))return iM(r),void n.handleTab();if(rM.isRedo(r))return iM(r),void(typeof n.redo==`function`&&n.redo());if(rM.isUndo(r))return iM(r),void(typeof n.undo==`function`&&n.undo());if(rM.isMoveLineBackward(r))return iM(r),void G.move(n,{unit:`line`,reverse:!0});if(rM.isMoveLineForward(r))return iM(r),void G.move(n,{unit:`line`});if(rM.isExtendLineBackward(r))return iM(r),void G.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(rM.isExtendLineForward(r))return iM(r),void G.move(n,{unit:`line`,edge:`focus`});if(rM.isMoveBackward(r))return iM(r),void(i&&U.isCollapsed(i)?G.move(n,{reverse:!0}):G.collapse(n,{edge:`start`}));if(rM.isMoveForward(r))return iM(r),void(i&&U.isCollapsed(i)?G.move(n):G.collapse(n,{edge:`end`}));if(rM.isMoveWordBackward(r))return iM(r),i&&U.isExpanded(i)&&G.collapse(n,{edge:`focus`}),void G.move(n,{unit:`word`,reverse:!0});if(rM.isMoveWordForward(r))return iM(r),i&&U.isExpanded(i)&&G.collapse(n,{edge:`focus`}),void G.move(n,{unit:`word`});if(rM.isSelectAll(r))return iM(r),void n.selectAll();if(QO){if((ZO||JO)&&i&&(rM.isDeleteBackward(r)||rM.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(rM.isBold(r)||rM.isItalic(r)||rM.isTransposeCharacter(r))return void iM(r);if(rM.isSplitBlock(r))return iM(r),void B.insertBreak(n);if(rM.isDeleteBackward(r))return iM(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n));if(rM.isDeleteForward(r))return iM(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n));if(rM.isDeleteLineBackward(r))return iM(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n,{unit:`line`}));if(rM.isDeleteLineForward(r))return iM(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n,{unit:`line`}));if(rM.isDeleteWordBackward(r))return iM(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n,{unit:`word`}));if(rM.isDeleteWordForward(r))return iM(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!QO&&!n.getConfig().readOnly&&Xj(n,e.target)){e.preventDefault();var r=e.key;B.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Xj(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&&Xj(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){jO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Xj(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void jO.set(n,!1);if(!QO||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(Qj(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(Qj(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&&Qj(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Qj(n,r.target)&&i!=null&&!(QO&&JO&&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()}}},yde=1,bde=function(){function e(e){var t=this;this.id=yde++,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=jb((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,OO.set(t,!0)):OO.delete(t),!c)return G.deselect(t);var l=c.anchorNode,u=c.focusNode,d=Xj(t,l)||Zj(t,l),f=Xj(t,u)||Zj(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,DA((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=cO.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&&(mb(vde,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,jb((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;mde(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),DA((function(){$j(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function aM(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&&aM(t)}function oM(){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 sM(){return K(`<div class="w-e-bar-divider"></div>`)}function cM(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=KO?`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`)}}}oD(`match`,(function(e,t,n){return[function(t){var n=KC(this),r=t==null?void 0:Tw(t,e);return r?bw(r,t,n):new RegExp(t)[e](GT(n))},function(e){var r=vw(this),i=GT(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return uD(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=uD(r,i))!==null;){var u=GT(s[0]);c[l]=u,u===``&&(r.lastIndex=sD(i,oT(r.lastIndex),o)),l++}return l===0?null:c}]}));var lM=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);aM(f),d.append(f)}else d.text(o);cM(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),DA((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),hM(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=hM(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=hM(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=hM(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}(),xde=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return _D(t,e),t.prototype.onButtonClick=function(){},t}(lM),uM=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=mO.get(e);t??(t=new Set,mO.set(e,t)),t.add(this),hO.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=hO.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=hO.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),Sde=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 _D(t,e),t.prototype.genSelfElem=function(){return null},t}(uM),Cde=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=oM();i.$button.append(a)}return i}return _D(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=hM(this);if(this.dropPanel==null){var n=new Sde(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}(lM),wde=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 _D(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=hO.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}(uM);function dM(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 fM(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 Tde=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 _D(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=hM(this),t=this.menu.getModalPositionNode(e);return z.isElement(t)?Aj(e,t,`modal`):kj(e)},t.prototype.handleModal=function(){var e=hM(this),t=this.menu;if(this.modal==null){var n=new wde(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=hM(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||jj(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(lM),Ede=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 _D(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}(uM),Dde=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),cM(d,c,a,u,n),this.$elem.append(d),this.menu=t,DA((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),hM(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=hM(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Ede(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=hM(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=hM(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=oM();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=hM(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}(),pM=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);aM(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=oM();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}(),mM=new WeakMap;function hM(e){var t=pO.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function gM(e,t,n){n===void 0&&(n=!1);var r=mM.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new Cde(e,t,n):o?new Tde(e,t,n):new xde(e,t,n)}if(i===`select`&&(r=new Dde(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return mM.set(t,r),r}function Ode(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 kde=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=Kx((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),DA((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;DA((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=sM();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=tk[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=gM(e,r);this.hoverbarItems.push(a),pO.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=Aj(t,e,`bar`);n.css(r),jj(t,n);return}if(W.isText(e))return r=kj(t),n.css(r),void jj(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=bD(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=dO.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=Ode),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 _M(e,t,n,r){if(bO.set(e,t),xO.set(e,n),z.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return _M(t,n,e,r)})),B.isVoid(r,e)){var a=bD(bD(V.texts(e),1)[0],1)[0];bO.set(a,0),xO.set(a,e)}}}function Ade(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];WT.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];WT.withoutSaving(t,(()=>{B.withoutNormalizing(t,(()=>{for(var e of r.map(sv.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=WT.isSaving(t),u=WT.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===NO.TEXT_NODE?e+(t.textContent||``):n===NO.ELEMENT_NODE?mj.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=Tj(t);if(r.on(e,n),e===`destroyed`&&Dj(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),Dj(t,i)}},t.once=function(e,n){Tj(t).once(e,n)},t.off=function(e,n){Tj(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=Tj(t);r.emit.apply(r,xD([e],bD(n))),e===`destroyed`&&(rde(t).forEach((function(e){return r.off(`destroyed`,e)})),ide(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=kO.get(t);e!=null&&(t.focus(),G.select(t,e))},t.getSelectionPosition=function(){return kj(t)},t.getNodePosition=function(e){return Aj(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=bD(U.edges(e),2),r=n[0],i=n[1],a=bD(B.edges(t,[]),2),o=a[0],s=a[1];return!(!uv.equals(r,o)||!uv.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=yD(B.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=bD(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=yD(B.levels(t,{at:H.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=bD(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=yD(B.levels(t,{at:H.common(H.parent(e.path),H.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=bD(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=yD(d),T=w.next();!T.done;T=w.next()){var E=bD(T.value,2);g=E[0],_=E[1],h=bD(B.node(t,g),1)[0],EO.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=bD(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(jA(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;)jA(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&&kO.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 OA(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=yD(o),c=s.next();!c.done;c=s.next()){var l=bD(c.value,1)[0];if(z.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=kA(X.findKey(t,l).id);a.push(vD(vD({},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===NO.TEXT_NODE||t===NO.ELEMENT_NODE&&!mj.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!==NO.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(MA.includes(r.toLowerCase()))c=!0;else for(var l in FA)if(o.matches(l)){c=!0;break}if(c){var u=cj(K(o),t);Array.isArray(u)?(u.forEach((function(e){return hj(t,e)})),s++):(hj(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=uj(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 tk)e.push(t);return e},t.getConfig=function(){var e=gO.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=Wue(Fie());return t.id=`wangEditor-`+ $O++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),OO.set(t,!0),e){var n=B.end(t,[]);G.select(t,n)}else{var r=kO.get(t);r?G.select(t,r):G.select(t,B.start(t,[]))}},t.isFocused=function(){return!!OO.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),G.deselect(t),OO.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(),sO.delete(t),cO.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),uO.delete(t),lO.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),fO.delete(t),dO.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(){mO.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 lj(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=qx(ek),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return mb(t,(function(e,t){n[t]=vD(vD({},e),i[t]||{})})),delete e.MENU_CONF,vD({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);gO.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=uj(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 bde(n);sO.set(l,p),cO.set(p,l),p.changeViewState(),DA((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 kde,dO.set(m,l),fO.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return _M(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)})),DA((function(){return l.emit(`created`)})),l}var jde=HE(`splice`),Mde=J.TypeError,Nde=Math.max,Pde=Math.min;zT({target:`Array`,proto:!0,forced:!jde},{splice:function(e,t){var n,r,i,a,o,s,c=qC(this),l=sT(c),u=kT(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=Pde(Nde(aT(t),0),l-u)),l+n-r>9007199254740991)throw Mde(`Maximum allowed length exceeded`);for(i=hT(c,r),a=0;a<r;a++)(o=u+a)in c&&fE(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=Kx((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),DA((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=qx(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=sM();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 pM(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 pM,i=this.menus,a=i[e];if(a==null){var o=tk[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=gM(e,a,r);this.toolbarItems.push(s),pO.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=lO.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}(),Ide=qw.EXISTS,Lde=Ow.f,vM=Function.prototype,Rde=Y(vM.toString),yM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zde=Y(yM.exec);function bM(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=bD(e.split(`#`),2),r=n[0],i=n[1],a=[];mb(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 VS({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(qse,{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 xM(e){return xM=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},xM(e)}function Bde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(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){Bde(e,t,n[t])}))}return e}function CM(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function wM(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 TM(e,t,n){return t&&wM(e.prototype,t),n&&wM(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 DM(e,t){if(t&&(xM(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 OM(e){return OM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},OM(e)}function kM(e,t){return kM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kM(e,t)}function AM(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&&kM(e,t)}pw&&!Ide&&Lde(vM,`name`,{configurable:!0,get:function(){try{return zde(yM,Rde(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)}},jM=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};CM(this,e),this.init(t,n)}return TM(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,SM({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),MM=function(){function e(){CM(this,e),this.observers={}}return TM(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 NM(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function PM(e){return e==null?``:``+e}function Hde(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function FM(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 IM(e,t,n){var r=FM(e,t,Object);r.obj[r.k]=n}function LM(e,t){var n=FM(e,t),r=n.obj,i=n.k;if(r)return r[i]}function RM(e,t,n){var r=LM(e,n);return r===void 0?LM(t,n):r}function zM(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]):zM(e[r],t[r],n):e[r]=t[r]);return e}function BM(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var Ude={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function Wde(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return Ude[e]})):e}var VM=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function HM(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?HM(c,l,n):void 0}i=i[r[a]]}return i}}var Gde=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return CM(this,t),n=DM(this,OM(t).call(this)),VM&&MM.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 AM(t,MM),TM(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=LM(this.data,o);return s||!a||typeof n!=`string`?s:HM(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),IM(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=LM(this.data,o)||{};r?zM(s,n,i):s=SM({},s,n),IM(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`?SM({},{},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}(),UM={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}},WM={},GM=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return CM(this,t),n=DM(this,OM(t).call(this)),VM&&MM.call(EM(n)),Hde([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,EM(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=jM.create(`translator`),n}return AM(t,MM),TM(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(xM(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,SM({},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,SM({},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),ee=D?this.pluralResolver.getSuffix(u,n.count):``,k=n[`defaultValue${ee}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=k),this.isValidLookup(p)||(E=!0,p=s);var A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,j=O&&k!==p&&this.options.updateMissing;if(E||T||j){if(this.logger.log(j?`updateKey`:`missingKey`,u,l,s,j?k:p),a){var M=this.resolve(s,SM({},n,{keySeparator:!1}));M&&M.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=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&N&&N[0])for(var ne=0;ne<N.length;ne++)te.push(N[ne]);else this.options.saveMissingTo===`all`?te=this.languageUtils.toResolveHierarchy(n.lng||this.language):te.push(n.lng||this.language);var re=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,j?r:A,j,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,j?r:A,j,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){re([e],s+t,n[`defaultValue${t}`]||k)}))})):re(te,s,k))}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(SM({},n,{interpolation:SM({},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=SM({},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=UM.handle(f,e,t,this.options&&this.options.postProcessPassResolved?SM({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,!WM[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(WM[`${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 KM(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Kde=function(){function e(t){CM(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jM.create(`languageUtils`)}return TM(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]=KM(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]=KM(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=KM(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}(),qde=[{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}],Jde={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 Yde(){var e={};return qde.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Jde[t.fc]}}))})),e}var Xde=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};CM(this,e),this.languageUtils=t,this.options=n,this.logger=jM.create(`pluralResolver`),this.rules=Yde()}return TM(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}(),Zde=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};CM(this,e),this.logger=jM.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return TM(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?Wde:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?BM(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?BM(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?BM(t.nestingPrefix):t.nestingPrefixEscaped||BM(`$t(`),this.nestingSuffix=t.nestingSuffix?BM(t.nestingSuffix):t.nestingSuffixEscaped||BM(`)`),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=RM(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,SM({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(RM(t,c,o),l,n,SM({},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=PM(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=SM({},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=SM({},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=PM(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,SM({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Qde=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return CM(this,t),i=DM(this,OM(t).call(this)),VM&&MM.call(EM(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=jM.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return AM(t,MM),TM(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=FM(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,SM({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function $de(){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(xM(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),xM(e[2])===`object`||xM(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 qM(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 JM(){}var YM=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(CM(this,t),e=DM(this,OM(t).call(this)),VM&&MM.call(EM(e)),e.options=qM(n),e.services={},e.logger=jM,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),DM(e,EM(e));setTimeout((function(){e.init(n,r)}),0)}return e}return AM(t,MM),TM(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=SM({},$de(),this.options,qM(t)),this.format=this.options.interpolation.format,n||=JM,!this.options.isClone){this.modules.logger?jM.init(r(this.modules.logger),this.options):jM.init(null,this.options);var i=new Kde(this.options);this.store=new Gde(this.options.resources,this.options);var a=this.services;a.logger=jM,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new Xde(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new Zde(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Qde(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 GM(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=NM(),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]:JM,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=NM();return e||=this.languages,t||=this.options.ns,n||=JM,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`&&UM.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=NM();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(xM(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=SM({},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=NM();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=NM();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]:JM,i=SM({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=SM({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new GM(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 XM(e,t){YM.addResourceBundle(e,`translation`,t,!0,!0)}YM.init({lng:`zh-CN`,resources:{}});var Z=YM.t.bind(YM);XM(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),XM(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var efe=Cm?{}.toString:function(){return`[object `+wm(this)+`]`};Cm||om(Object.prototype,`toString`,efe,{unsafe:!0});var ZM=Array.isArray||function(e){return rp(e)==`Array`},QM=function(){},tfe=[],$M=up(`Reflect`,`construct`),eN=/^\s*(?:class|function)\b/,nfe=np(eN.exec),rfe=!eN.exec(QM),tN=function(e){if(!cp(e))return!1;try{return $M(QM,tfe,e),!0}catch{return!1}},ife=!$M||Kf((function(){var e;return tN(tN.call)||!tN(Object)||!tN((function(){e=!0}))||e}))?function(e){if(!cp(e))return!1;switch(wm(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return rfe||!!nfe(eN,qp(e))}:tN,afe=Np(`species`),nN=Gf.Array,ofe=function(e,t){return new(function(e){var t;return ZM(e)&&(t=e.constructor,(ife(t)&&(t===nN||ZM(t.prototype))||lp(t)&&(t=t[afe])===null)&&(t=void 0)),t===void 0?nN:t}(e))(t===0?0:t)},rN=np([].push),iN=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=Dp(c),h=ap(m),g=ah(l,u),_=um(h),v=0,y=d||ofe,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:rN(b,f)}else switch(e){case 4:return!1;case 7:rN(b,f)}return a?-1:r||i?i:b}},sfe={forEach:iN(0),map:iN(1),filter:iN(2),some:iN(3),every:iN(4),find:iN(5),findIndex:iN(6),filterReject:iN(7)}.forEach,aN=function(e,t){var n=[][e];return!!n&&Kf((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return sfe(this,e,arguments.length>1?arguments[1]:void 0)},oN=function(e){if(e&&e.forEach!==aN)try{Up(e,`forEach`,aN)}catch{e.forEach=aN}};for(var sN in Lh)Lh[sN]&&oN(Gf[sN]&&Gf[sN].prototype);oN(Bh),XM(`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`}}),XM(`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 cfe={type:`paragraph`,renderElem:function(e,t,n){return ux(`p`,null,t)}},cN=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function lN(e){var t={exports:{}};return e(t,t.exports),t.exports}var uN,dN,fN=function(e){return e&&e.Math==Math&&e},pN=fN(typeof globalThis==`object`&&globalThis)||fN(typeof window==`object`&&window)||fN(typeof self==`object`&&self)||fN(typeof cN==`object`&&cN)||function(){return this}()||Function(`return this`)(),mN=function(e){try{return!!e()}catch{return!0}},hN=!mN((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),gN=Function.prototype.call,_N=gN.bind?gN.bind(gN):function(){return gN.apply(gN,arguments)},vN={}.propertyIsEnumerable,yN=Object.getOwnPropertyDescriptor,bN={f:yN&&!vN.call({1:2},1)?function(e){var t=yN(this,e);return!!t&&t.enumerable}:vN},xN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SN=Function.prototype,CN=SN.bind,wN=SN.call,TN=CN&&CN.bind(wN),EN=CN?function(e){return e&&TN(wN,e)}:function(e){return e&&function(){return wN.apply(e,arguments)}},DN=EN({}.toString),ON=EN(``.slice),kN=function(e){return ON(DN(e),8,-1)},AN=pN.Object,jN=EN(``.split),MN=mN((function(){return!AN(`z`).propertyIsEnumerable(0)}))?function(e){return kN(e)==`String`?jN(e,``):AN(e)}:AN,NN=pN.TypeError,PN=function(e){if(e==null)throw NN(`Can't call method on `+e);return e},FN=function(e){return MN(PN(e))},IN=function(e){return typeof e==`function`},LN=function(e){return typeof e==`object`?e!==null:IN(e)},RN=function(e){return IN(e)?e:void 0},zN=function(e,t){return arguments.length<2?RN(pN[e]):pN[e]&&pN[e][t]},BN=EN({}.isPrototypeOf),VN=zN(`navigator`,`userAgent`)||``,HN=pN.process,UN=pN.Deno,WN=HN&&HN.versions||UN&&UN.version,GN=WN&&WN.v8;GN&&(dN=(uN=GN.split(`.`))[0]>0&&uN[0]<4?1:+(uN[0]+uN[1])),!dN&&VN&&(!(uN=VN.match(/Edge\/(\d+)/))||uN[1]>=74)&&(uN=VN.match(/Chrome\/(\d+)/))&&(dN=+uN[1]);var KN=dN,qN=!!Object.getOwnPropertySymbols&&!mN((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KN&&KN<41})),JN=qN&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,YN=pN.Object,XN=JN?function(e){return typeof e==`symbol`}:function(e){var t=zN(`Symbol`);return IN(t)&&BN(t.prototype,YN(e))},ZN=pN.String,QN=function(e){try{return ZN(e)}catch{return`Object`}},$N=pN.TypeError,eP=function(e){if(IN(e))return e;throw $N(QN(e)+` is not a function`)},tP=function(e,t){var n=e[t];return n==null?void 0:eP(n)},nP=pN.TypeError,rP=Object.defineProperty,iP=function(e,t){try{rP(pN,e,{value:t,configurable:!0,writable:!0})}catch{pN[e]=t}return t},aP=pN[`__core-js_shared__`]||iP(`__core-js_shared__`,{}),oP=lN((function(e){(e.exports=function(e,t){return aP[e]||(aP[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),sP=pN.Object,cP=function(e){return sP(PN(e))},lP=EN({}.hasOwnProperty),uP=Object.hasOwn||function(e,t){return lP(cP(e),t)},dP=0,fP=Math.random(),pP=EN(1 .toString),mP=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+pP(++dP+fP,36)},hP=oP(`wks`),gP=pN.Symbol,_P=gP&&gP.for,vP=JN?gP:gP&&gP.withoutSetter||mP,yP=function(e){if(!uP(hP,e)||!qN&&typeof hP[e]!=`string`){var t=`Symbol.`+e;qN&&uP(gP,e)?hP[e]=gP[e]:hP[e]=JN&&_P?_P(t):vP(t)}return hP[e]},bP=pN.TypeError,xP=yP(`toPrimitive`),SP=function(e){var t=function(e,t){if(!LN(e)||XN(e))return e;var n,r=tP(e,xP);if(r){if(t===void 0&&(t=`default`),n=_N(r,e,t),!LN(n)||XN(n))return n;throw bP(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&IN(n=e.toString)&&!LN(r=_N(n,e))||IN(n=e.valueOf)&&!LN(r=_N(n,e))||t!==`string`&&IN(n=e.toString)&&!LN(r=_N(n,e)))return r;throw nP(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return XN(t)?t:t+``},CP=pN.document,wP=LN(CP)&&LN(CP.createElement),TP=function(e){return wP?CP.createElement(e):{}},EP=!hN&&!mN((function(){return Object.defineProperty(TP(`div`),`a`,{get:function(){return 7}}).a!=7})),DP=Object.getOwnPropertyDescriptor,OP={f:hN?DP:function(e,t){if(e=FN(e),t=SP(t),EP)try{return DP(e,t)}catch{}if(uP(e,t))return xN(!_N(bN.f,e,t),e[t])}},kP=pN.String,AP=pN.TypeError,jP=function(e){if(LN(e))return e;throw AP(kP(e)+` is not an object`)},MP=pN.TypeError,NP=Object.defineProperty,PP={f:hN?NP:function(e,t,n){if(jP(e),t=SP(t),jP(n),EP)try{return NP(e,t,n)}catch{}if(`get`in n||`set`in n)throw MP(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},FP=hN?function(e,t,n){return PP.f(e,t,xN(1,n))}:function(e,t,n){return e[t]=n,e},IP=EN(Function.toString);IN(aP.inspectSource)||(aP.inspectSource=function(e){return IP(e)});var LP,RP,zP,BP=aP.inspectSource,VP=pN.WeakMap,HP=IN(VP)&&/native code/.test(BP(VP)),UP=oP(`keys`),WP=function(e){return UP[e]||(UP[e]=mP(e))},GP={},KP=pN.TypeError,qP=pN.WeakMap;if(HP||aP.state){var JP=aP.state||=new qP,YP=EN(JP.get),XP=EN(JP.has),ZP=EN(JP.set);LP=function(e,t){if(XP(JP,e))throw new KP(`Object already initialized`);return t.facade=e,ZP(JP,e,t),t},RP=function(e){return YP(JP,e)||{}},zP=function(e){return XP(JP,e)}}else{var QP=WP(`state`);GP[QP]=!0,LP=function(e,t){if(uP(e,QP))throw new KP(`Object already initialized`);return t.facade=e,FP(e,QP,t),t},RP=function(e){return uP(e,QP)?e[QP]:{}},zP=function(e){return uP(e,QP)}}var $P={set:LP,get:RP,has:zP,enforce:function(e){return zP(e)?RP(e):LP(e,{})},getterFor:function(e){return function(t){var n;if(!LN(t)||(n=RP(t)).type!==e)throw KP(`Incompatible receiver, `+e+` required`);return n}}},eF=Function.prototype,tF=hN&&Object.getOwnPropertyDescriptor,nF=uP(eF,`name`),rF={EXISTS:nF,PROPER:nF&&function(){}.name===`something`,CONFIGURABLE:nF&&(!hN||hN&&tF(eF,`name`).configurable)},iF=lN((function(e){var t=rF.CONFIGURABLE,n=$P.get,r=$P.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;IN(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!uP(a,`name`)||t&&a.name!==d)&&FP(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===pN?l?e[n]=a:iP(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:FP(e,n,a))})(Function.prototype,`toString`,(function(){return IN(this)&&n(this).source||BP(this)}))})),aF=Math.ceil,oF=Math.floor,sF=function(e){var t=+e;return t!=t||t===0?0:(t>0?oF:aF)(t)},cF=Math.max,lF=Math.min,uF=function(e,t){var n=sF(e);return n<0?cF(n+t,0):lF(n,t)},dF=Math.min,fF=function(e){return e>0?dF(sF(e),9007199254740991):0},pF=function(e){return fF(e.length)},mF=function(e){return function(t,n,r){var i,a=FN(t),o=pF(a),s=uF(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}},hF={includes:mF(!0),indexOf:mF(!1)},gF=hF.indexOf,_F=EN([].push),vF=function(e,t){var n,r=FN(e),i=0,a=[];for(n in r)!uP(GP,n)&&uP(r,n)&&_F(a,n);for(;t.length>i;)uP(r,n=t[i++])&&(~gF(a,n)||_F(a,n));return a},yF=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],bF=yF.concat(`length`,`prototype`),xF={f:Object.getOwnPropertyNames||function(e){return vF(e,bF)}},SF={f:Object.getOwnPropertySymbols},CF=EN([].concat),wF=zN(`Reflect`,`ownKeys`)||function(e){var t=xF.f(jP(e)),n=SF.f;return n?CF(t,n(e)):t},lfe=function(e,t){for(var n=wF(t),r=PP.f,i=OP.f,a=0;a<n.length;a++){var o=n[a];uP(e,o)||r(e,o,i(t,o))}},ufe=/#|\.prototype\./,TF=function(e,t){var n=ffe[dfe(e)];return n==mfe||n!=pfe&&(IN(t)?mN(t):!!t)},dfe=TF.normalize=function(e){return String(e).replace(ufe,`.`).toLowerCase()},ffe=TF.data={},pfe=TF.NATIVE=`N`,mfe=TF.POLYFILL=`P`,hfe=TF,gfe=OP.f,EF=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?pN:l?pN[s]||iP(s,{}):(pN[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=gfe(n,r))&&o.value:n[r],!hfe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;lfe(a,i)}(e.sham||i&&i.sham)&&FP(a,`sham`,!0),iF(n,r,a,e)}},DF=EN(EN.bind),OF=Array.isArray||function(e){return kN(e)==`Array`},kF={};kF[yP(`toStringTag`)]=`z`;var AF=String(kF)===`[object z]`,_fe=yP(`toStringTag`),vfe=pN.Object,yfe=kN(function(){return arguments}())==`Arguments`,jF=AF?kN: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=vfe(e),_fe))==`string`?n:yfe?kN(t):(r=kN(t))==`Object`&&IN(t.callee)?`Arguments`:r},MF=function(){},bfe=[],NF=zN(`Reflect`,`construct`),PF=/^\s*(?:class|function)\b/,xfe=EN(PF.exec),Sfe=!PF.exec(MF),FF=function(e){if(!IN(e))return!1;try{return NF(MF,bfe,e),!0}catch{return!1}},IF=!NF||mN((function(){var e;return FF(FF.call)||!FF(Object)||!FF((function(){e=!0}))||e}))?function(e){if(!IN(e))return!1;switch(jF(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Sfe||!!xfe(PF,BP(e))}:FF,Cfe=yP(`species`),LF=pN.Array,wfe=function(e,t){return new(function(e){var t;return OF(e)&&(t=e.constructor,(IF(t)&&(t===LF||OF(t.prototype))||LN(t)&&(t=t[Cfe])===null)&&(t=void 0)),t===void 0?LF:t}(e))(t===0?0:t)},RF=EN([].push),zF=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=cP(c),h=MN(m),g=function(e,t){return eP(e),t===void 0?e:DF?DF(e,t):function(){return e.apply(t,arguments)}}(l,u),_=pF(h),v=0,y=d||wfe,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:RF(b,f)}else switch(e){case 4:return!1;case 7:RF(b,f)}return a?-1:r||i?i:b}},BF={forEach:zF(0),map:zF(1),filter:zF(2),some:zF(3),every:zF(4),find:zF(5),findIndex:zF(6),filterReject:zF(7)},Tfe=yP(`species`),VF=function(e){return KN>=51||!mN((function(){var t=[];return(t.constructor={})[Tfe]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Efe=BF.filter;EF({target:`Array`,proto:!0,forced:!VF(`filter`)},{filter:function(e){return Efe(this,e,arguments.length>1?arguments[1]:void 0)}});var Dfe=AF?{}.toString:function(){return`[object `+jF(this)+`]`};AF||iF(Object.prototype,`toString`,Dfe,{unsafe:!0});var HF,Ofe=pN.String,UF=function(e){if(jF(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ofe(e)},WF=function(){var e=jP(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},GF=pN.RegExp,KF=mN((function(){var e=GF(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),kfe=KF||mN((function(){return!GF(`a`,`y`).sticky})),qF={BROKEN_CARET:KF||mN((function(){var e=GF(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:kfe,UNSUPPORTED_Y:KF},JF=Object.keys||function(e){return vF(e,yF)},Afe=hN?Object.defineProperties:function(e,t){jP(e);for(var n,r=FN(t),i=JF(t),a=i.length,o=0;a>o;)PP.f(e,n=i[o++],r[n]);return e},jfe=zN(`document`,`documentElement`),YF=WP(`IE_PROTO`),XF=function(){},ZF=function(e){return`<script>`+e+`<\/script>`},QF=function(e){e.write(ZF(``)),e.close();var t=e.parentWindow.Object;return e=null,t},$F=function(){try{HF=new ActiveXObject(`htmlfile`)}catch{}var e,t;$F=typeof document<`u`?document.domain&&HF?QF(HF):((t=TP(`iframe`)).style.display=`none`,jfe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(ZF(`document.F=Object`)),e.close(),e.F):QF(HF);for(var n=yF.length;n--;)delete $F.prototype[yF[n]];return $F()};GP[YF]=!0;var eI,tI,nI=Object.create||function(e,t){var n;return e===null?n=$F():(XF.prototype=jP(e),n=new XF,XF.prototype=null,n[YF]=e),t===void 0?n:Afe(n,t)},Mfe=pN.RegExp,Nfe=mN((function(){var e=Mfe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Pfe=pN.RegExp,Ffe=mN((function(){var e=Pfe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Ife=$P.get,Lfe=oP(`native-string-replace`,String.prototype.replace),rI=RegExp.prototype.exec,iI=rI,Rfe=EN(``.charAt),zfe=EN(``.indexOf),Bfe=EN(``.replace),aI=EN(``.slice),oI=(tI=/b*/g,_N(rI,eI=/a/,`a`),_N(rI,tI,`a`),eI.lastIndex!==0||tI.lastIndex!==0),sI=qF.BROKEN_CARET,cI=/()??/.exec(``)[1]!==void 0;(oI||cI||sI||Nfe||Ffe)&&(iI=function(e){var t,n,r,i,a,o,s,c=this,l=Ife(c),u=UF(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=_N(iI,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=sI&&c.sticky,m=_N(WF,c),h=c.source,g=0,_=u;if(p&&(m=Bfe(m,`y`,``),zfe(m,`g`)===-1&&(m+=`g`),_=aI(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Rfe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),cI&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),oI&&(r=c.lastIndex),i=_N(rI,p?n:c,_),p?i?(i.input=aI(i.input,g),i[0]=aI(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:oI&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),cI&&i&&i.length>1&&_N(Lfe,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=nI(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var lI=iI;EF({target:`RegExp`,proto:!0,forced:/./.exec!==lI},{exec:lI});var uI=Function.prototype,dI=uI.apply,Vfe=uI.bind,fI=uI.call,pI=typeof Reflect==`object`&&Reflect.apply||(Vfe?fI.bind(dI):function(){return fI.apply(dI,arguments)}),Hfe=yP(`species`),mI=RegExp.prototype,hI=function(e,t,n,r){var i=yP(e),a=!mN((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!mN((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Hfe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=EN(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=EN(e),c=t.exec;return c===lI||c===mI.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));iF(String.prototype,e,c[0]),iF(mI,i,c[1])}r&&FP(mI[i],`sham`,!0)},Ufe=EN(``.charAt),gI=EN(``.charCodeAt),Wfe=EN(``.slice),Gfe=function(e){return function(t,n){var r,i,a=UF(PN(t)),o=sF(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=gI(a,o))<55296||r>56319||o+1===s||(i=gI(a,o+1))<56320||i>57343?e?Ufe(a,o):r:e?Wfe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),_I=function(e,t,n){return t+(n?Gfe(e,t).length:1)},Kfe=Math.floor,vI=EN(``.charAt),qfe=EN(``.replace),yI=EN(``.slice),Jfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yfe=/\$([$&'`]|\d{1,2})/g,Xfe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Yfe;return i!==void 0&&(i=cP(i),c=Jfe),qfe(a,c,(function(a,c){var l;switch(vI(c,0)){case`$`:return`$`;case`&`:return e;case"`":return yI(t,0,n);case`'`:return yI(t,o);case`<`:l=i[yI(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Kfe(u/10);return d===0?a:d<=s?r[d-1]===void 0?vI(c,1):r[d-1]+vI(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Zfe=pN.TypeError,bI=function(e,t){var n=e.exec;if(IN(n)){var r=_N(n,e,t);return r!==null&&jP(r),r}if(kN(e)===`RegExp`)return _N(lI,e,t);throw Zfe(`RegExp#exec called on incompatible receiver`)},xI=yP(`replace`),Qfe=Math.max,$fe=Math.min,epe=EN([].concat),SI=EN([].push),CI=EN(``.indexOf),wI=EN(``.slice),tpe=`a`.replace(/./,`$0`)===`$0`,TI=!!/./[xI]&&/./[xI](`a`,`$0`)===``;hI(`replace`,(function(e,t,n){var r=TI?`$`:`$0`;return[function(e,n){var r=PN(this),i=e==null?void 0:tP(e,xI);return i?_N(i,e,r,n):_N(t,UF(r),e,n)},function(e,i){var a=jP(this),o=UF(e);if(typeof i==`string`&&CI(i,r)===-1&&CI(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=IN(i);c||(i=UF(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=bI(a,o);if(f===null||(SI(d,f),!l))break;UF(f[0])===``&&(a.lastIndex=_I(o,fF(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=UF((f=d[g])[0]),v=Qfe($fe(sF(f.index),o.length),0),y=[],b=1;b<f.length;b++)SI(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=epe([_],y,v,o);x!==void 0&&SI(S,x);var C=UF(pI(i,void 0,S))}else C=Xfe(_,o,v,y,x,i);v>=h&&(m+=wI(o,h,v)+C,h=v+_.length)}return m+wI(o,h)}]}),!!mN((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!tpe||TI);var EI=yP(`unscopables`),DI=Array.prototype;DI[EI]??PP.f(DI,EI,{configurable:!0,value:nI(null)});var OI=function(e){DI[EI][e]=!0},npe=BF.find,kI=!0;`find`in[]&&[,].find((function(){kI=!1})),EF({target:`Array`,proto:!0,forced:kI},{find:function(e){return npe(this,e,arguments.length>1?arguments[1]:void 0)}}),OI(`find`);var rpe=yP(`match`),AI=function(e){var t;return LN(e)&&((t=e[rpe])===void 0?kN(e)==`RegExp`:!!t)},ipe=pN.TypeError,ape=yP(`species`),jI=function(e,t,n){var r=SP(t);r in e?PP.f(e,r,xN(0,n)):e[r]=n},ope=pN.Array,spe=Math.max,MI=function(e,t,n){for(var r=pF(e),i=uF(t,r),a=uF(n===void 0?r:n,r),o=ope(spe(a-i,0)),s=0;i<a;i++,s++)jI(o,s,e[i]);return o.length=s,o},NI=qF.UNSUPPORTED_Y,cpe=Math.min,PI=[].push,lpe=EN(/./.exec),FI=EN(PI),II=EN(``.slice);hI(`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=UF(PN(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!AI(e))return _N(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=_N(lI,d,r))&&!((o=d.lastIndex)>u&&(FI(c,II(r,u,a.index)),a.length>1&&a.index<r.length&&pI(PI,c,MI(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&lpe(d,``)||FI(c,``):FI(c,II(r,u)),c.length>i?MI(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:_N(t,this,e,n)}:t,[function(t,n){var i=PN(this),a=t==null?void 0:tP(t,e);return a?_N(a,t,i,n):_N(r,UF(i),t,n)},function(e,i){var a=jP(this),o=UF(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=jP(e).constructor;return r===void 0||(n=jP(r)[ape])==null?t:function(e){if(IF(e))return e;throw ipe(QN(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(NI?`g`:`y`),d=new c(NI?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return bI(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=NI?0:m;var g,_=bI(d,NI?II(o,m):o);if(_===null||(g=cpe(fF(d.lastIndex+(NI?m:0)),o.length))===p)m=_I(o,m,l);else{if(FI(h,II(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(FI(h,_[v]),h.length===f)return h;m=p=g}}return FI(h,II(o,p)),h}]}),!!mN((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`})),NI);var LI=`
\v\f\r \xA0               \u2028\u2029`,RI=EN(``.replace),zI=`[`+LI+`]`,upe=RegExp(`^`+zI+zI+`*`),dpe=RegExp(zI+zI+`*$`),BI=function(e){return function(t){var n=UF(PN(t));return 1&e&&(n=RI(n,upe,``)),2&e&&(n=RI(n,dpe,``)),n}},fpe={start:BI(1),end:BI(2),trim:BI(3)},ppe=rF.PROPER,mpe=fpe.trim;function VI(e){return K(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function HI(e){return e.length===0?``:e[0].outerHTML}function UI(e){return e.length?e[0].tagName.toLowerCase():``}function WI(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}EF({target:`String`,proto:!0,forced:mN((function(){return!!LI.trim()||ppe&&LI.trim.name!==`trim`}))},{trim:function(){return mpe(this)}}),EF({global:!0},{globalThis:pN}),jy&&(K.fn.css=jy),Ly&&(K.fn.append=Ly),Ry&&(K.fn.prepend=Ry),_y&&(K.fn.addClass=_y),vy&&(K.fn.removeClass=vy),yy&&(K.fn.hasClass=yy),wy&&(K.fn.on=wy),Ty&&(K.fn.off=Ty),Jy&&(K.fn.focus=Jy),by&&(K.fn.attr=by),xy&&(K.fn.removeAttr=xy),ky&&(K.fn.hide=ky),Ay&&(K.fn.show=Ay),By&&(K.fn.parents=By),Sy&&(K.fn.dataset=Sy),Cy&&(K.fn.val=Cy),Fy&&(K.fn.text=Fy),Py&&(K.fn.html=Py),Hy&&(K.fn.children=Hy),Uy&&(K.fn.remove=Uy),Vy&&(K.fn.find=Vy),Ey&&(K.fn.width=Ey),Dy&&(K.fn.height=Dy),Ny&&(K.fn.filter=Ny),Wy&&(K.fn.empty=Wy);var hpe={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}}},GI=function(e,t){return GI=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])},GI(e,t)};function KI(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}GI(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qI=function(){return qI=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},qI.apply(this,arguments)};function JI(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 YI(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 XI(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 ZI(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 QI(e){var t=ZI(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 gpe={renderElems:[cfe],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[hpe],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){QI(r)||t(e)},r.deleteForward=function(e){QI(r)||n(e)},r}},_pe=/"/g,vpe=EN(``.replace),$I=function(e,t,n,r){var i=UF(PN(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+vpe(UF(r),_pe,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},eL=function(e){return mN((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function tL(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 nL(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}EF({target:`String`,proto:!0,forced:eL(`bold`)},{bold:function(){return $I(this,`b`,``,``)}}),EF({target:`String`,proto:!0,forced:eL(`italics`)},{italics:function(){return $I(this,`i`,``,``)}}),EF({target:`String`,proto:!0,forced:eL(`sub`)},{sub:function(){return $I(this,`sub`,``,``)}}),EF({target:`String`,proto:!0,forced:eL(`sup`)},{sup:function(){return $I(this,`sup`,``,``)}});var rL={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},iL=TP(`span`).classList,aL=iL&&iL.constructor&&iL.constructor.prototype,ype=aL===Object.prototype?void 0:aL,oL=function(e,t){var n=[][e];return!!n&&mN((function(){n.call(null,t||function(){throw 1},1)}))},bpe=BF.forEach,sL=oL(`forEach`)?[].forEach:function(e){return bpe(this,e,arguments.length>1?arguments[1]:void 0)},cL=function(e){if(e&&e.forEach!==sL)try{FP(e,`forEach`,sL)}catch{e.forEach=sL}};for(var lL in rL)rL[lL]&&cL(pN[lL]&&pN[lL].prototype);function uL(e,t){return e.selection==null||!!ZI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]}function xpe(e,t){Object.keys(t).forEach((function(t){t!==`text`&&B.removeMark(e,t)}))}cL(ype),EF({target:`Object`,stat:!0,forced:mN((function(){JF(1)}))},{keys:function(e){return JF(cP(e))}});var dL=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]:!!ZI(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 uL(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}(),Spe=`<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>`,Cpe=`<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>`,wpe=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Tpe=`<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>`,Epe=`<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>`,fL=`<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>`,pL=`<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>`,Dpe=`<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>`,Ope=`<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>`,kpe=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,Ape=`<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>`,jpe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,Mpe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,Npe=`<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>`,Ppe=`<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>`,Fpe=`<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>`,Ipe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,Lpe=`<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>`,zpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Spe,t.hotkey=`mod+b`,t}return KI(t,e),t}(dL),Bpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=Epe,t.hotkey=`mod+e`,t}return KI(t,e),t}(dL),Vpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=wpe,t.hotkey=`mod+i`,t}return KI(t,e),t}(dL),Hpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Tpe,t.hotkey=`mod+shift+x`,t}return KI(t,e),t}(dL),Upe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Cpe,t.hotkey=`mod+u`,t}return KI(t,e),t}(dL),Wpe=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 KI(t,e),t}(dL),Gpe=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=Lpe,t.hotkey=``,t}return KI(t,e),t}(dL),Kpe=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 uL(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=XI(i),o=a.next();!o.done;o=a.next())xpe(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}(),qpe={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=ux(`strong`,null,u)),o&&(u=ux(`code`,null,u)),i&&(u=ux(`em`,null,u)),a&&(u=ux(`u`,null,u)),s&&(u=ux(`s`,null,u)),c&&(u=ux(`sub`,null,u)),l&&(u=ux(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new zpe}},{key:`underline`,factory:function(){return new Upe}},{key:`italic`,factory:function(){return new Vpe}},{key:`through`,factory:function(){return new Hpe}},{key:`code`,factory:function(){return new Bpe}},{key:`sub`,factory:function(){return new Wpe}},{key:`sup`,factory:function(){return new Gpe}},{key:`clearStyle`,factory:function(){return new Kpe}}],styleToHtml:function(e,t){if(!W.isText(e))return t;if(VI(t))return tL(e,t);var n=K(t);if(UI(n)===`br`)return tL(e,`<br>`);var r=n.html();return r=tL(e,r),n.html(r),HI(n)},parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t;return nL(r,`b,strong`)&&(i.bold=!0),nL(r,`i,em`)&&(i.italic=!0),nL(r,`u`)&&(i.underline=!0),nL(r,`s,strike`)&&(i.through=!0),nL(r,`sub`)&&(i.sub=!0),nL(r,`sup`)&&(i.sup=!0),nL(r,`code`)&&(i.code=!0),i}};function mL(e){return function(t,n,r){return ux(`h`+e,null,n)}}var Jpe={type:`header1`,renderElem:mL(1)},Ype={type:`header2`,renderElem:mL(2)},Xpe={type:`header3`,renderElem:mL(3)},Zpe={type:`header4`,renderElem:mL(4)},Qpe={type:`header5`,renderElem:mL(5)},$pe=rF.PROPER,hL=RegExp.prototype,gL=hL.toString,eme=EN(WF),tme=mN((function(){return gL.call({source:`a`,flags:`b`})!=`/a/b`})),nme=$pe&&gL.name!=`toString`;(tme||nme)&&iF(RegExp.prototype,`toString`,(function(){var e=jP(this),t=UF(e.source),n=e.flags;return`/`+t+`/`+UF(n===void 0&&BN(hL,e)&&!(`flags`in hL)?eme(e):n)}),{unsafe:!0});var _L,rme=pN.TypeError,vL=function(e){if(AI(e))throw rme(`The method doesn't accept regular expressions`);return e},ime=yP(`match`),yL=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[ime]=!1,`/./`[e](t)}catch{}}return!1},ame=OP.f,bL=EN(``.startsWith),ome=EN(``.slice),sme=Math.min,xL=yL(`startsWith`);function SL(e){var t=ZI(B.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=ZI(t,1)[0];return X.getNodeType(n)}function CL(e){return e.selection==null||!ZI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function wL(e,t){t&&G.setNodes(e,{type:t})}EF({target:`String`,proto:!0,forced:!(!xL&&(_L=ame(String.prototype,`startsWith`),_L&&!_L.writable)||xL)},{startsWith:function(e){var t=UF(PN(this));vL(e);var n=fF(sme(arguments.length>1?arguments[1]:void 0,t.length)),r=UF(e);return bL?bL(t,r,n):ome(t,n,n+r.length)===r}});var cme=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 SL(e)},e.prototype.isDisabled=function(e){return CL(e)},e.prototype.exec=function(e,t){wL(e,t.toString())},e}(),TL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return SL(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return CL(e)},e.prototype.exec=function(e,t){var n=this.type;wL(e,t===n?`paragraph`:n)},e}(),lme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return KI(t,e),t}(TL),ume=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return KI(t,e),t}(TL),dme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return KI(t,e),t}(TL),fme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return KI(t,e),t}(TL),pme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return KI(t,e),t}(TL),mme={key:`headerSelect`,factory:function(){return new cme}},hme={key:`header1`,factory:function(){return new lme}},gme={key:`header2`,factory:function(){return new ume}},_me={key:`header3`,factory:function(){return new dme}},vme={key:`header4`,factory:function(){return new fme}},yme={key:`header5`,factory:function(){return new pme}};function EL(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function DL(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 bme={renderElems:[Jpe,Ype,Xpe,Zpe,Qpe],elemsToHtml:[{type:`header1`,elemToHtml:EL(1)},{type:`header2`,elemToHtml:EL(2)},{type:`header3`,elemToHtml:EL(3)},{type:`header4`,elemToHtml:EL(4)},{type:`header5`,elemToHtml:EL(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:DL(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:DL(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:DL(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:DL(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:DL(5)}],menus:[mme,hme,gme,_me,vme,yme],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=ZI(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}},OL=Object.assign,kL=Object.defineProperty,xme=EN([].concat),AL=!OL||mN((function(){if(hN&&OL({b:1},OL(kL({},`a`,{enumerable:!0,get:function(){kL(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})),OL({},e)[n]!=7||JF(OL({},t)).join(``)!=r}))?function(e,t){for(var n=cP(e),r=arguments.length,i=1,a=SF.f,o=bN.f;r>i;)for(var s,c=MN(arguments[i++]),l=a?xme(JF(c),a(c)):JF(c),u=l.length,d=0;u>d;)s=l[d++],hN&&!_N(o,c,s)||(n[s]=c[s]);return n}:OL;function jL(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}EF({target:`Object`,stat:!0,forced:Object.assign!==AL},{assign:AL});var Sme={selector:`font`,preParseHtml:function(e){var t=K(e);if(UI(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},ML=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||!!ZI(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}(),Cme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=Dpe,t.mark=`color`,t}return KI(t,e),t}(ML),wme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=Ope,t.mark=`bgColor`,t}return KI(t,e),t}(ML),NL=`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(`.`),Tme={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&jL(a,{color:r}),i&&jL(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?((VI(t)||UI(n=K(t))!==`span`)&&(n=K(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),HI(n)):t},preParseHtml:[Sme],parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t,a=WI(r,`color`);a&&(i.color=a);var o=WI(r,`background-color`);return o||=WI(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Cme},config:{colors:NL}},{key:`bgColor`,factory:function(){return new wme},config:{colors:NL}}]},Eme=/^(?:\w+:)?\/\/(\S+)$/,Dme=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ome=/^[^\s\.]+\.\S{2,}$/,kme=hF.includes;function PL(e){return e===void 0&&(e=`r`),e+`-`+hb()}function FL(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function IL(e,t,n,r){return JI(this,void 0,void 0,(function(){var i,a;return YI(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 LL(e,t,n){return JI(this,void 0,void 0,(function(){var r;return YI(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 RL(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 zL(e,t){return{type:`link`,url:FL(e),children:t?[{text:t}]:[]}}function BL(e,t,n){return JI(this,void 0,void 0,(function(){var r,i,a;return YI(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),RL(e)?[2]:[4,IL(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,LL(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(U.isCollapsed(i)?(e.insertText(` `),a=zL(r,t),G.insertNodes(e,a),e.insertFragment([{text:` `}])):B.string(e,i)===t?(a=zL(r),G.wrapNodes(e,a,{split:!0}),G.collapse(e,{edge:`end`})):(e.deleteFragment(),a=zL(r,t),G.insertNodes(e,a))),[2]}}))}))}EF({target:`Array`,proto:!0},{includes:function(e){return kme(this,e,arguments.length>1?arguments[1]:void 0)}}),OI(`includes`);var Ame={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return ux(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},jme={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 VL(){return PL(`w-e-insert-link`)}var Mme=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=VL(),this.urlInputId=VL(),this.buttonId=VL()}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 RL(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=ZI(dM(Z(`link.text`),r),2),s=o[0],c=K(o[1]),l=ZI(dM(Z(`link.url`),i),2),u=l[0],d=K(l[1]),f=ZI(fM(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=K(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),BL(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 HL(){return PL(`w-e-update-link`)}var Nme=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=fL,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=HL(),this.buttonId=HL()}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=ZI(dM(Z(`link.url`),t),2),i=r[0],a=K(r[1]),o=ZI(fM(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){JI(this,void 0,void 0,(function(){var r,i;return YI(this,(function(a){switch(a.label){case 0:return n?[4,IL(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,LL(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:FL(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}(),Pme=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}(),Fme=function(){function e(){this.title=Z(`link.view`),this.iconSvg=pL,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}(),UL={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Ime={renderElems:[Ame],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:[jme],menus:[{key:`insertLink`,factory:function(){return new Mme},config:UL},{key:`editLink`,factory:function(){return new Nme},config:UL},{key:`unLink`,factory:function(){return new Pme}},{key:`viewLink`,factory:function(){return new Fme}}],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(Eme);if(!t)return!1;var n=t[1];return!(!n||!Dme.test(n)&&!Ome.test(n))}(t)){if(!RL(i)){var r=i.selection;r!=null&&BL(i,B.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=ZI(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}},Lme=EN(1 .valueOf),Rme=pN.RangeError,zme=pN.RangeError,WL=pN.String,GL=Math.floor,KL=EN((function(e){var t=UF(PN(this)),n=``,r=sF(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})),qL=EN(``.slice),JL=EN(1 .toFixed),YL=function(e,t,n){return t===0?n:t%2==1?YL(e,t-1,n*e):YL(e*e,t/2,n)},XL=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=GL(i/1e7)},ZL=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=GL(r/t),r=r%t*1e7},QL=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=WL(e[t]);n=n===``?r:n+KL(`0`,7-r.length)+r}return n};function $L(e,t){return`w-e-image-container-`+X.findKey(e,t).id}EF({target:`Number`,proto:!0,forced:mN((function(){return JL(8e-5,3)!==`0.000`||JL(.9,0)!==`1`||JL(1.255,2)!==`1.25`||JL(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!mN((function(){JL({})}))},{toFixed:function(e){var t,n,r,i,a=Lme(this),o=sF(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw zme(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return WL(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*YL(2,69,1))-69)<0?a*YL(2,-t,1):a/YL(2,t,1),n*=4503599627370496,(t=52-t)>0){for(XL(s,0,n),r=o;r>=7;)XL(s,1e7,0),r-=7;for(XL(s,YL(10,r,1),0),r=t-1;r>=23;)ZL(s,1<<23),r-=23;ZL(s,1<<r),XL(s,1,1),ZL(s,2),l=QL(s)}else XL(s,0,n),XL(s,1<<-t,0),l=QL(s)+KL(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+KL(`0`,o-i)+l:qL(l,0,i-o)+`.`+qL(l,i-o)):c+l}});var eR={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 _=ux(`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=$L(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=jb((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:qI(qI({},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),ux(`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,ux(`div`,{className:`w-e-image-dragger left-top`}),ux(`div`,{className:`w-e-image-dragger right-top`}),ux(`div`,{className:`w-e-image-dragger left-bottom`}),ux(`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),ux(`div`,{id:$L(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},Bme={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:WI(r,`width`),height:WI(r,`height`)},children:[{text:``}]}}};function tR(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),JI(this,void 0,void 0,(function(){var a,o;return YI(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 nR(e,t,n){return JI(this,void 0,void 0,(function(){var r;return YI(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 rR(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),JI(this,void 0,void 0,(function(){var i,a,o;return YI(this,(function(s){switch(s.label){case 0:return[4,tR(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,nR(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:FL(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),iR(e)||(G.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function iR(e){var t=e.selection;return t==null||!U.isCollapsed(t)||!!ZI(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 aR(){return PL(`w-e-insert-image`)}var Vme=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=aR(),this.altInputId=aR(),this.hrefInputId=aR(),this.buttonId=aR()}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 iR(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=ZI(dM(Z(`image.src`),r),2),c=s[0],l=K(s[1]),u=ZI(dM(Z(`image.desc`),i),2),d=u[0],f=K(u[1]),p=ZI(dM(Z(`image.link`),a),2),m=p[0],h=K(p[1]),g=ZI(fM(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)||rR(e,t,n,r))},e}(),Hme=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 oR(){return PL(`w-e-edit-image`)}var Ume=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=fL,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=oR(),this.altInputId=oR(),this.hrefInputId=oR(),this.buttonId=oR()}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=ZI(dM(Z(`image.src`),r),2),l=c[0],u=K(c[1]),d=ZI(dM(Z(`image.desc`),i),2),f=d[0],p=K(d[1]),m=ZI(dM(Z(`image.link`),a),2),h=m[0],g=K(m[1]),_=ZI(fM(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={}),JI(this,void 0,void 0,(function(){var a,o,s,c,l,u;return YI(this,(function(d){switch(d.label){case 0:return[4,tR(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,nR(`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:qI(qI({},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}(),Wme=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=pL,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}(),sR=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:qI(qI({},i===void 0?{}:i),{width:this.value,height:``})};G.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),Gme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return KI(t,e),t}(sR),Kme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return KI(t,e),t}(sR),qme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return KI(t,e),t}(sR),cR={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Jme={renderElems:[eR],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:[Bme],menus:[{key:`insertImage`,factory:function(){return new Vme},config:cR},{key:`deleteImage`,factory:function(){return new Hme}},{key:`editImage`,factory:function(){return new Ume},config:cR},{key:`viewImageLink`,factory:function(){return new Wme}},{key:`imageWidth30`,factory:function(){return new Gme}},{key:`imageWidth50`,factory:function(){return new Kme}},{key:`imageWidth100`,factory:function(){return new qme}}],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}},Yme={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),ux(`div`,{style:{margin:`5px 0`}},ux(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},ux(`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})}}})),ux(`span`,null,t))}},Xme=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}(),Zme={renderElems:[Yme],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 Xme}}],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}},Qme={type:`blockquote`,renderElem:function(e,t,n){return ux(`blockquote`,null,t)}},$me={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}}},ehe=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||!ZI(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}(),the={key:`blockquote`,factory:function(){return new ehe}},nhe=EN([].slice),rhe=VF(`slice`),ihe=yP(`species`),lR=pN.Array,ahe=Math.max;EF({target:`Array`,proto:!0,forced:!rhe},{slice:function(e,t){var n,r,i,a=FN(this),o=pF(a),s=uF(e,o),c=uF(t===void 0?o:t,o);if(OF(a)&&(n=a.constructor,(IF(n)&&(n===lR||OF(n.prototype))||LN(n)&&(n=n[ihe])===null)&&(n=void 0),n===lR||n===void 0))return nhe(a,s,c);for(r=new(n===void 0?lR:n)(ahe(c-s,0)),i=0;s<c;s++,i++)s in a&&jI(r,i,a[s]);return r.length=i,r}});var ohe={renderElems:[Qme],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[$me],menus:[the],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=ZI(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(uv.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}},she=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||!!ZI(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}(),che={menus:[{key:`emotion`,factory:function(){return new she},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},lhe={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},uhe={selector:`font`,preParseHtml:function(e){var t=K(e);if(UI(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,lhe[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},dhe=EN(``.indexOf);EF({target:`String`,proto:!0,forced:!yL(`includes`)},{includes:function(e){return!!~dhe(UF(PN(this)),UF(vL(e)),arguments.length>1?arguments[1]:void 0)}});var uR,dR,fR=function(e){return e&&e.Math==Math&&e},pR=fR(typeof globalThis==`object`&&globalThis)||fR(typeof window==`object`&&window)||fR(typeof self==`object`&&self)||fR(typeof cN==`object`&&cN)||function(){return this}()||Function(`return this`)(),mR=Function.prototype,hR=mR.apply,fhe=mR.bind,gR=mR.call,_R=typeof Reflect==`object`&&Reflect.apply||(fhe?gR.bind(hR):function(){return gR.apply(hR,arguments)}),vR=Function.prototype,yR=vR.bind,bR=vR.call,phe=yR&&yR.bind(bR),xR=yR?function(e){return e&&phe(bR,e)}:function(e){return e&&function(){return bR.apply(e,arguments)}},SR=function(e){return typeof e==`function`},CR=function(e){try{return!!e()}catch{return!0}},wR=!CR((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),TR=Function.prototype.call,ER=TR.bind?TR.bind(TR):function(){return TR.apply(TR,arguments)},DR={}.propertyIsEnumerable,OR=Object.getOwnPropertyDescriptor,kR={f:OR&&!DR.call({1:2},1)?function(e){var t=OR(this,e);return!!t&&t.enumerable}:DR},AR=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mhe=xR({}.toString),hhe=xR(``.slice),jR=function(e){return hhe(mhe(e),8,-1)},MR=pR.Object,ghe=xR(``.split),NR=CR((function(){return!MR(`z`).propertyIsEnumerable(0)}))?function(e){return jR(e)==`String`?ghe(e,``):MR(e)}:MR,_he=pR.TypeError,PR=function(e){if(e==null)throw _he(`Can't call method on `+e);return e},FR=function(e){return NR(PR(e))},IR=function(e){return typeof e==`object`?e!==null:SR(e)},LR={},RR=function(e){return SR(e)?e:void 0},zR=function(e,t){return arguments.length<2?RR(LR[e])||RR(pR[e]):LR[e]&&LR[e][t]||pR[e]&&pR[e][t]},BR=xR({}.isPrototypeOf),VR=zR(`navigator`,`userAgent`)||``,HR=pR.process,UR=pR.Deno,WR=HR&&HR.versions||UR&&UR.version,GR=WR&&WR.v8;GR&&(dR=(uR=GR.split(`.`))[0]>0&&uR[0]<4?1:+(uR[0]+uR[1])),!dR&&VR&&(!(uR=VR.match(/Edge\/(\d+)/))||uR[1]>=74)&&(uR=VR.match(/Chrome\/(\d+)/))&&(dR=+uR[1]);var KR=dR,qR=!!Object.getOwnPropertySymbols&&!CR((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KR&&KR<41})),JR=qR&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,vhe=pR.Object,YR=JR?function(e){return typeof e==`symbol`}:function(e){var t=zR(`Symbol`);return SR(t)&&BR(t.prototype,vhe(e))},yhe=pR.String,bhe=pR.TypeError,XR=function(e){if(SR(e))return e;throw bhe(function(e){try{return yhe(e)}catch{return`Object`}}(e)+` is not a function`)},xhe=pR.TypeError,She=Object.defineProperty,ZR=pR[`__core-js_shared__`]||function(e,t){try{She(pR,e,{value:t,configurable:!0,writable:!0})}catch{pR[e]=t}return t}(`__core-js_shared__`,{}),QR=lN((function(e){(e.exports=function(e,t){return ZR[e]||(ZR[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Che=pR.Object,$R=function(e){return Che(PR(e))},whe=xR({}.hasOwnProperty),ez=Object.hasOwn||function(e,t){return whe($R(e),t)},The=0,Ehe=Math.random(),Dhe=xR(1 .toString),tz=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Dhe(++The+Ehe,36)},nz=QR(`wks`),rz=pR.Symbol,iz=rz&&rz.for,Ohe=JR?rz:rz&&rz.withoutSetter||tz,az=function(e){if(!ez(nz,e)||!qR&&typeof nz[e]!=`string`){var t=`Symbol.`+e;qR&&ez(rz,e)?nz[e]=rz[e]:nz[e]=JR&&iz?iz(t):Ohe(t)}return nz[e]},khe=pR.TypeError,Ahe=az(`toPrimitive`),oz=function(e){var t=function(e,t){if(!IR(e)||YR(e))return e;var n,r,i=(n=e[Ahe])==null?void 0:XR(n);if(i){if(t===void 0&&(t=`default`),r=ER(i,e,t),!IR(r)||YR(r))return r;throw khe(`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)&&!IR(r=ER(n,e))||SR(n=e.valueOf)&&!IR(r=ER(n,e))||t!==`string`&&SR(n=e.toString)&&!IR(r=ER(n,e)))return r;throw xhe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return YR(t)?t:t+``},sz=pR.document,jhe=IR(sz)&&IR(sz.createElement),cz=function(e){return jhe?sz.createElement(e):{}},lz=!wR&&!CR((function(){return Object.defineProperty(cz(`div`),`a`,{get:function(){return 7}}).a!=7})),uz=Object.getOwnPropertyDescriptor,dz={f:wR?uz:function(e,t){if(e=FR(e),t=oz(t),lz)try{return uz(e,t)}catch{}if(ez(e,t))return AR(!ER(kR.f,e,t),e[t])}},Mhe=/#|\.prototype\./,fz=function(e,t){var n=Phe[Nhe(e)];return n==Ihe||n!=Fhe&&(SR(t)?CR(t):!!t)},Nhe=fz.normalize=function(e){return String(e).replace(Mhe,`.`).toLowerCase()},Phe=fz.data={},Fhe=fz.NATIVE=`N`,Ihe=fz.POLYFILL=`P`,Lhe=fz,pz=xR(xR.bind),mz=function(e,t){return XR(e),t===void 0?e:pz?pz(e,t):function(){return e.apply(t,arguments)}},Rhe=pR.String,zhe=pR.TypeError,hz=function(e){if(IR(e))return e;throw zhe(Rhe(e)+` is not an object`)},Bhe=pR.TypeError,gz=Object.defineProperty,_z={f:wR?gz:function(e,t,n){if(hz(e),t=oz(t),hz(n),lz)try{return gz(e,t,n)}catch{}if(`get`in n||`set`in n)throw Bhe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},vz=wR?function(e,t,n){return _z.f(e,t,AR(1,n))}:function(e,t,n){return e[t]=n,e},Vhe=dz.f,Hhe=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 _R(e,this,arguments)};return t.prototype=e.prototype,t},yz=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?pR:f?pR[u]:(pR[u]||{}).prototype,h=d?LR:LR[u]||vz(LR,u,{})[u],g=h.prototype;for(i in t)n=!Lhe(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&ez(m,i),o=h[i],n&&(s=e.noTargetGet?(l=Vhe(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?mz(a,pR):e.wrap&&n?Hhe(a):p&&SR(a)?xR(a):a,(e.sham||a&&a.sham||o&&o.sham)&&vz(c,`sham`,!0),vz(h,i,c),p&&(ez(LR,r=u+`Prototype`)||vz(LR,r,{}),vz(LR[r],i,a),e.real&&g&&!g[i]&&vz(g,i,a)))},bz=Array.isArray||function(e){return jR(e)==`Array`},Uhe=Math.ceil,Whe=Math.floor,xz=function(e){var t=+e;return t!=t||t===0?0:(t>0?Whe:Uhe)(t)},Ghe=Math.min,Sz=function(e){return(t=e.length)>0?Ghe(xz(t),9007199254740991):0;var t},Cz=function(e,t,n){var r=oz(t);r in e?_z.f(e,r,AR(0,n)):e[r]=n},wz={};wz[az(`toStringTag`)]=`z`;var Tz=String(wz)===`[object z]`,Khe=az(`toStringTag`),qhe=pR.Object,Jhe=jR(function(){return arguments}())==`Arguments`,Ez=Tz?jR: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=qhe(e),Khe))==`string`?n:Jhe?jR(t):(r=jR(t))==`Object`&&SR(t.callee)?`Arguments`:r},Yhe=xR(Function.toString);SR(ZR.inspectSource)||(ZR.inspectSource=function(e){return Yhe(e)});var Dz=ZR.inspectSource,Oz=function(){},Xhe=[],kz=zR(`Reflect`,`construct`),Az=/^\s*(?:class|function)\b/,Zhe=xR(Az.exec),Qhe=!Az.exec(Oz),jz=function(e){if(!SR(e))return!1;try{return kz(Oz,Xhe,e),!0}catch{return!1}},$he=!kz||CR((function(){var e;return jz(jz.call)||!jz(Object)||!jz((function(){e=!0}))||e}))?function(e){if(!SR(e))return!1;switch(Ez(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Qhe||!!Zhe(Az,Dz(e))}:jz,ege=az(`species`),Mz=pR.Array,Nz=function(e,t){return new(function(e){var t;return bz(e)&&(t=e.constructor,($he(t)&&(t===Mz||bz(t.prototype))||IR(t)&&(t=t[ege])===null)&&(t=void 0)),t===void 0?Mz:t}(e))(t===0?0:t)},tge=az(`species`),Pz=az(`isConcatSpreadable`),Fz=pR.TypeError,nge=KR>=51||!CR((function(){var e=[];return e[Pz]=!1,e.concat()[0]!==e})),rge=KR>=51||!CR((function(){var e=[];return(e.constructor={})[tge]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),ige=function(e){if(!IR(e))return!1;var t=e[Pz];return t===void 0?bz(e):!!t};yz({target:`Array`,proto:!0,forced:!nge||!rge},{concat:function(e){var t,n,r,i,a,o=$R(this),s=Nz(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(ige(a=t===-1?o:arguments[t])){if(c+(i=Sz(a))>9007199254740991)throw Fz(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Cz(s,c,a[n])}else{if(c>=9007199254740991)throw Fz(`Maximum allowed index exceeded`);Cz(s,c++,a)}return s.length=c,s}});var Iz,age=pR.String,Lz=function(e){if(Ez(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return age(e)},oge=Math.max,sge=Math.min,Rz=function(e,t){var n=xz(e);return n<0?oge(n+t,0):sge(n,t)},zz=function(e){return function(t,n,r){var i,a=FR(t),o=Sz(a),s=Rz(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}},cge={includes:zz(!0),indexOf:zz(!1)},Bz={},lge=cge.indexOf,Vz=xR([].push),Hz=function(e,t){var n,r=FR(e),i=0,a=[];for(n in r)!ez(Bz,n)&&ez(r,n)&&Vz(a,n);for(;t.length>i;)ez(r,n=t[i++])&&(~lge(a,n)||Vz(a,n));return a},Uz=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Wz=Object.keys||function(e){return Hz(e,Uz)},uge=wR?Object.defineProperties:function(e,t){hz(e);for(var n,r=FR(t),i=Wz(t),a=i.length,o=0;a>o;)_z.f(e,n=i[o++],r[n]);return e},dge=zR(`document`,`documentElement`),Gz=QR(`keys`),Kz=function(e){return Gz[e]||(Gz[e]=tz(e))},qz=Kz(`IE_PROTO`),Jz=function(){},Yz=function(e){return`<script>`+e+`<\/script>`},Xz=function(e){e.write(Yz(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Zz=function(){try{Iz=new ActiveXObject(`htmlfile`)}catch{}var e,t;Zz=typeof document<`u`?document.domain&&Iz?Xz(Iz):((t=cz(`iframe`)).style.display=`none`,dge.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Yz(`document.F=Object`)),e.close(),e.F):Xz(Iz);for(var n=Uz.length;n--;)delete Zz.prototype[Uz[n]];return Zz()};Bz[qz]=!0;var Qz,$z,eB,tB=Object.create||function(e,t){var n;return e===null?n=Zz():(Jz.prototype=hz(e),n=new Jz,Jz.prototype=null,n[qz]=e),t===void 0?n:uge(n,t)},fge=Uz.concat(`length`,`prototype`),nB={f:Object.getOwnPropertyNames||function(e){return Hz(e,fge)}},pge=pR.Array,mge=Math.max,rB=nB.f,iB=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aB={f:function(e){return iB&&jR(e)==`Window`?function(e){try{return rB(e)}catch{return function(e,t,n){for(var r=Sz(e),i=Rz(void 0,r),a=Rz(r,r),o=pge(mge(a-i,0)),s=0;i<a;i++,s++)Cz(o,s,e[i]);return o.length=s,o}(iB)}}(e):rB(FR(e))}},oB={f:Object.getOwnPropertySymbols},hge=xR([].slice),sB=function(e,t,n,r){r&&r.enumerable?e[t]=n:vz(e,t,n)},cB={f:az},gge=_z.f,lB=function(e){var t=LR.Symbol||={};ez(t,e)||gge(t,e,{value:cB.f(e)})},_ge=Tz?{}.toString:function(){return`[object `+Ez(this)+`]`},vge=_z.f,uB=az(`toStringTag`),dB=function(e,t,n,r){if(e){var i=n?e:e.prototype;ez(i,uB)||vge(i,uB,{configurable:!0,value:t}),r&&!Tz&&vz(i,`toString`,_ge)}},fB=pR.WeakMap,yge=SR(fB)&&/native code/.test(Dz(fB)),pB=pR.TypeError,bge=pR.WeakMap;if(yge||ZR.state){var mB=ZR.state||=new bge,xge=xR(mB.get),hB=xR(mB.has),Sge=xR(mB.set);Qz=function(e,t){if(hB(mB,e))throw new pB(`Object already initialized`);return t.facade=e,Sge(mB,e,t),t},$z=function(e){return xge(mB,e)||{}},eB=function(e){return hB(mB,e)}}else{var gB=Kz(`state`);Bz[gB]=!0,Qz=function(e,t){if(ez(e,gB))throw new pB(`Object already initialized`);return t.facade=e,vz(e,gB,t),t},$z=function(e){return ez(e,gB)?e[gB]:{}},eB=function(e){return ez(e,gB)}}var _B={set:Qz,get:$z,has:eB,enforce:function(e){return eB(e)?$z(e):Qz(e,{})},getterFor:function(e){return function(t){var n;if(!IR(t)||(n=$z(t)).type!==e)throw pB(`Incompatible receiver, `+e+` required`);return n}}},vB=xR([].push),yB=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=$R(c),h=NR(m),g=mz(l,u),_=Sz(h),v=0,y=d||Nz,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:vB(b,f)}else switch(e){case 4:return!1;case 7:vB(b,f)}return a?-1:r||i?i:b}},bB=[yB(0),yB(1),yB(2),yB(3),yB(4),yB(5),yB(6),yB(7)][0],xB=Kz(`hidden`),SB=az(`toPrimitive`),Cge=_B.set,CB=_B.getterFor(`Symbol`),wB=Object.prototype,TB=pR.Symbol,EB=TB&&TB.prototype,DB=pR.TypeError,OB=pR.QObject,kB=zR(`JSON`,`stringify`),AB=dz.f,jB=_z.f,MB=aB.f,wge=kR.f,NB=xR([].push),PB=QR(`symbols`),FB=QR(`op-symbols`),IB=QR(`string-to-symbol-registry`),LB=QR(`symbol-to-string-registry`),Tge=QR(`wks`),RB=!OB||!OB.prototype||!OB.prototype.findChild,zB=wR&&CR((function(){return tB(jB({},`a`,{get:function(){return jB(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=AB(wB,t);r&&delete wB[t],jB(e,t,n),r&&e!==wB&&jB(wB,t,r)}:jB,BB=function(e,t){var n=PB[e]=tB(EB);return Cge(n,{type:`Symbol`,tag:e,description:t}),wR||(n.description=t),n},VB=function(e,t,n){e===wB&&VB(FB,t,n),hz(e);var r=oz(t);return hz(n),ez(PB,r)?(n.enumerable?(ez(e,xB)&&e[xB][r]&&(e[xB][r]=!1),n=tB(n,{enumerable:AR(0,!1)})):(ez(e,xB)||jB(e,xB,AR(1,{})),e[xB][r]=!0),zB(e,r,n)):jB(e,r,n)},HB=function(e,t){hz(e);var n=FR(t);return bB(Wz(n).concat(KB(n)),(function(t){wR&&!ER(UB,n,t)||VB(e,t,n[t])})),e},UB=function(e){var t=oz(e),n=ER(wge,this,t);return!(this===wB&&ez(PB,t)&&!ez(FB,t))&&(!(n||!ez(this,t)||!ez(PB,t)||ez(this,xB)&&this[xB][t])||n)},WB=function(e,t){var n=FR(e),r=oz(t);if(n!==wB||!ez(PB,r)||ez(FB,r)){var i=AB(n,r);return!i||!ez(PB,r)||ez(n,xB)&&n[xB][r]||(i.enumerable=!0),i}},GB=function(e){var t=MB(FR(e)),n=[];return bB(t,(function(e){ez(PB,e)||ez(Bz,e)||NB(n,e)})),n},KB=function(e){var t=e===wB,n=MB(t?FB:FR(e)),r=[];return bB(n,(function(e){!ez(PB,e)||t&&!ez(wB,e)||NB(r,PB[e])})),r};if(qR||(EB=(TB=function(){if(BR(EB,this))throw DB(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Lz(arguments[0]):void 0,t=tz(e),n=function(e){this===wB&&ER(n,FB,e),ez(this,xB)&&ez(this[xB],t)&&(this[xB][t]=!1),zB(this,t,AR(1,e))};return wR&&RB&&zB(wB,t,{configurable:!0,set:n}),BB(t,e)}).prototype,sB(EB,`toString`,(function(){return CB(this).tag})),sB(TB,`withoutSetter`,(function(e){return BB(tz(e),e)})),kR.f=UB,_z.f=VB,dz.f=WB,nB.f=aB.f=GB,oB.f=KB,cB.f=function(e){return BB(az(e),e)},wR&&jB(EB,`description`,{configurable:!0,get:function(){return CB(this).description}})),yz({global:!0,wrap:!0,forced:!qR,sham:!qR},{Symbol:TB}),bB(Wz(Tge),(function(e){lB(e)})),yz({target:`Symbol`,stat:!0,forced:!qR},{for:function(e){var t=Lz(e);if(ez(IB,t))return IB[t];var n=TB(t);return IB[t]=n,LB[n]=t,n},keyFor:function(e){if(!YR(e))throw DB(e+` is not a symbol`);if(ez(LB,e))return LB[e]},useSetter:function(){RB=!0},useSimple:function(){RB=!1}}),yz({target:`Object`,stat:!0,forced:!qR,sham:!wR},{create:function(e,t){return t===void 0?tB(e):HB(tB(e),t)},defineProperty:VB,defineProperties:HB,getOwnPropertyDescriptor:WB}),yz({target:`Object`,stat:!0,forced:!qR},{getOwnPropertyNames:GB,getOwnPropertySymbols:KB}),yz({target:`Object`,stat:!0,forced:CR((function(){oB.f(1)}))},{getOwnPropertySymbols:function(e){return oB.f($R(e))}}),kB&&yz({target:`JSON`,stat:!0,forced:!qR||CR((function(){var e=TB();return kB([e])!=`[null]`||kB({a:e})!=`{}`||kB(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=hge(arguments),i=t;if((IR(t)||e!==void 0)&&!YR(e))return bz(t)||(t=function(e,t){if(SR(i)&&(t=ER(i,this,e,t)),!YR(t))return t}),r[1]=t,_R(kB,null,r)}}),!EB[SB]){var Ege=EB.valueOf;sB(EB,SB,(function(e){return ER(Ege,this)}))}dB(TB,`Symbol`),Bz[xB]=!0,lB(`asyncIterator`),lB(`hasInstance`),lB(`isConcatSpreadable`),lB(`iterator`),lB(`match`),lB(`matchAll`),lB(`replace`),lB(`search`),lB(`species`),lB(`split`),lB(`toPrimitive`),lB(`toStringTag`),lB(`unscopables`),dB(pR.JSON,`JSON`,!0);var qB,JB,YB,Dge=LR.Symbol,XB={},ZB=Function.prototype,Oge=wR&&Object.getOwnPropertyDescriptor,QB=ez(ZB,`name`),kge={EXISTS:QB,PROPER:QB&&function(){}.name===`something`,CONFIGURABLE:QB&&(!wR||wR&&Oge(ZB,`name`).configurable)},Age=!CR((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$B=Kz(`IE_PROTO`),eV=pR.Object,jge=eV.prototype,tV=Age?eV.getPrototypeOf:function(e){var t=$R(e);if(ez(t,$B))return t[$B];var n=t.constructor;return SR(n)&&t instanceof n?n.prototype:t instanceof eV?jge:null},nV=az(`iterator`),rV=!1;[].keys&&(`next`in(YB=[].keys())?(JB=tV(tV(YB)))!==Object.prototype&&(qB=JB):rV=!0),qB=qB==null||CR((function(){var e={};return qB[nV].call(e)!==e}))?{}:tB(qB),SR(qB[nV])||sB(qB,nV,(function(){return this}));var iV={IteratorPrototype:qB,BUGGY_SAFARI_ITERATORS:rV},Mge=iV.IteratorPrototype,Nge=function(){return this};pR.String,pR.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{xR(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var Pge=kge.PROPER,aV=iV.BUGGY_SAFARI_ITERATORS,oV=az(`iterator`),Fge=function(){return this},sV=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=tB(Mge,{next:AR(1,n)}),dB(e,i,!1,!0),XB[i]=Nge})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!aV&&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[oV]||p[`@@iterator`]||i&&p[i],h=!aV&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=tV(g.call(new e)))!==Object.prototype&&s.next&&(dB(s,d,!0,!0),XB[d]=Fge),Pge&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return ER(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(aV||f||!(l in p))&&sB(p,l,c[l]);else yz({target:t,proto:!0,forced:aV||f},c);return o&&p[oV]!==h&&sB(p,oV,h,{name:i}),XB[t]=h,c},Ige=_B.set,Lge=_B.getterFor(`Array Iterator`);sV(Array,`Array`,(function(e,t){Ige(this,{type:`Array Iterator`,target:FR(e),index:0,kind:t})}),(function(){var e=Lge(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`),XB.Arguments=XB.Array;var cV=az(`toStringTag`);for(var lV 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 uV=pR[lV],dV=uV&&uV.prototype;dV&&Ez(dV)!==cV&&vz(dV,cV,lV),XB[lV]=XB.Array}var Rge=Dge;lB(`asyncDispose`),lB(`dispose`),lB(`matcher`),lB(`metadata`),lB(`observable`),lB(`patternMatch`),lB(`replaceAll`);var fV=Rge,zge=xR(``.charAt),pV=xR(``.charCodeAt),Bge=xR(``.slice),Vge=function(e){return function(t,n){var r,i,a=Lz(PR(t)),o=xz(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=pV(a,o))<55296||r>56319||o+1===s||(i=pV(a,o+1))<56320||i>57343?e?zge(a,o):r:e?Bge(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),Hge=_B.set,Uge=_B.getterFor(`String Iterator`);sV(String,`String`,(function(e){Hge(this,{type:`String Iterator`,string:Lz(e),index:0})}),(function(){var e,t=Uge(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Vge(n,r),t.index+=e.length,{value:e,done:!1})}));var Wge=cB.f(`iterator`),mV=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(lN((function(e){function t(n){return typeof fV==`function`&&typeof Wge==`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 fV==`function`&&e.constructor===fV&&e!==fV.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}))),Gge=rF.EXISTS,Kge=PP.f,hV=Function.prototype,qge=EN(hV.toString),gV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Jge=EN(gV.exec);hN&&!Gge&&Kge(hV,`name`,{configurable:!0,get:function(){try{return Jge(gV,qge(this))[1]}catch{return``}}});var _V=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,!!ZI(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}(),Yge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=kpe,t.mark=`fontSize`,t}return KI(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(mV(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}(_V),Xge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=Ape,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return KI(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(mV(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}(_V),vV={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&jL(a,{fontSize:r}),i&&jL(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?((VI(t)||UI(n=K(t))!==`span`)&&(n=K(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),HI(n)):t},preParseHtml:[uhe],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=WI(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=WI(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 Yge},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 Xge},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},yV={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=K(e),n=WI(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]}},bV=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=ZI(B.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:ZI(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=ZI(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}(),xV=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.decrease`),t.iconSvg=jpe,t}return KI(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}(bV),SV=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.increase`),t.iconSvg=Mpe,t}return KI(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}(bV),CV={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.indent,r=t;return n&&jL(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),HI(r)},preParseHtml:[yV],parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=WI(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new SV}},{key:`delIndent`,factory:function(){return new xV}}]},wV=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=ZI(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}(),TV=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.left`),t.iconSvg=Npe,t}return KI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`left`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(wV),EV=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.right`),t.iconSvg=Ppe,t}return KI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`right`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(wV),DV=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.center`),t.iconSvg=Fpe,t}return KI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`center`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(wV),OV=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.justify`),t.iconSvg=Ipe,t}return KI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`justify`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(wV),kV={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.textAlign,r=t;return n&&jL(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),HI(r)},parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=WI(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new TV}},{key:`justifyRight`,factory:function(){return new EV}},{key:`justifyCenter`,factory:function(){return new DV}},{key:`justifyJustify`,factory:function(){return new OV}}]},AV=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=ZI(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}(),jV={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.lineHeight,r=t;return n&&jL(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),HI(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=WI(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new AV},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},MV=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}(),NV=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}(),PV={menus:[{key:`redo`,factory:function(){return new MV}},{key:`undo`,factory:function(){return new NV}}]},FV={type:`divider`,renderElem:function(e,t,n){return Wb(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Wb(`hr`)])}},IV=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}(),LV={renderElems:[FV],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 IV}}],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=ZI(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}},RV=BF.map;EF({target:`Array`,proto:!0,forced:!VF(`map`)},{map:function(e){return RV(this,e,arguments.length>1?arguments[1]:void 0)}});var zV=EN([].join),BV=MN!=Object,VV=oL(`join`,`,`);EF({target:`Array`,proto:!0,forced:BV||!VV},{join:function(e){return zV(FN(this),e===void 0?`,`:e)}});var HV=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=XI(a),s=o.next();!s.done;s=o.next()){var c=ZI(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}(),UV={key:`codeBlock`,factory:function(){return new HV}};EF({target:`String`,proto:!0,forced:eL(`anchor`)},{anchor:function(e){return $I(this,`a`,`name`,e)}}),hI(`match`,(function(e,t,n){return[function(t){var n=PN(this),r=t==null?void 0:tP(t,e);return r?_N(r,t,n):new RegExp(t)[e](UF(n))},function(e){var r=jP(this),i=UF(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return bI(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=bI(r,i))!==null;){var u=UF(s[0]);c[l]=u,u===``&&(r.lastIndex=_I(i,fF(r.lastIndex),o)),l++}return l===0?null:c}]}));var WV={menus:[UV],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=ZI(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 ux(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return ux(`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(UI(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`}))}}}]},GV=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}(),KV={menus:[{key:`fullScreen`,factory:function(){return new GV}}]},qV=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}(),JV=[qpe,Tme,vV,CV,kV,jV,Jme,LV,che,Ime,WV,ohe,bme,gpe,Zme,PV,KV,{menus:[{key:`enter`,factory:function(){return new qV}}]}];XM(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),XM(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var YV=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function XV(e){var t={exports:{}};return e(t,t.exports),t.exports}var ZV,QV,$V=function(e){return e&&e.Math==Math&&e},eH=$V(typeof globalThis==`object`&&globalThis)||$V(typeof window==`object`&&window)||$V(typeof self==`object`&&self)||$V(typeof YV==`object`&&YV)||function(){return this}()||Function(`return this`)(),tH=Function.prototype,nH=tH.bind,rH=tH.call,iH=nH&&nH.bind(rH),aH=nH?function(e){return e&&iH(rH,e)}:function(e){return e&&function(){return rH.apply(e,arguments)}},oH=function(e){try{return!!e()}catch{return!0}},sH=aH({}.toString),cH=aH(``.slice),lH=function(e){return cH(sH(e),8,-1)},uH=eH.Object,dH=aH(``.split),fH=oH((function(){return!uH(`z`).propertyIsEnumerable(0)}))?function(e){return lH(e)==`String`?dH(e,``):uH(e)}:uH,pH=eH.TypeError,mH=function(e){if(e==null)throw pH(`Can't call method on `+e);return e},hH=function(e){return fH(mH(e))},gH=Object.defineProperty,_H=function(e,t){try{gH(eH,e,{value:t,configurable:!0,writable:!0})}catch{eH[e]=t}return t},vH=eH[`__core-js_shared__`]||_H(`__core-js_shared__`,{}),yH=XV((function(e){(e.exports=function(e,t){return vH[e]||(vH[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),bH=eH.Object,xH=function(e){return bH(mH(e))},SH=aH({}.hasOwnProperty),CH=Object.hasOwn||function(e,t){return SH(xH(e),t)},wH=0,TH=Math.random(),EH=aH(1 .toString),DH=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+EH(++wH+TH,36)},OH=function(e){return typeof e==`function`},kH=function(e){return OH(e)?e:void 0},AH=function(e,t){return arguments.length<2?kH(eH[e]):eH[e]&&eH[e][t]},jH=AH(`navigator`,`userAgent`)||``,MH=eH.process,NH=eH.Deno,PH=MH&&MH.versions||NH&&NH.version,FH=PH&&PH.v8;FH&&(QV=(ZV=FH.split(`.`))[0]>0&&ZV[0]<4?1:+(ZV[0]+ZV[1])),!QV&&jH&&(!(ZV=jH.match(/Edge\/(\d+)/))||ZV[1]>=74)&&(ZV=jH.match(/Chrome\/(\d+)/))&&(QV=+ZV[1]);var IH,LH=QV,RH=!!Object.getOwnPropertySymbols&&!oH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&LH&&LH<41})),zH=RH&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,BH=yH(`wks`),VH=eH.Symbol,HH=VH&&VH.for,UH=zH?VH:VH&&VH.withoutSetter||DH,WH=function(e){if(!CH(BH,e)||!RH&&typeof BH[e]!=`string`){var t=`Symbol.`+e;RH&&CH(VH,e)?BH[e]=VH[e]:BH[e]=zH&&HH?HH(t):UH(t)}return BH[e]},GH=function(e){return typeof e==`object`?e!==null:OH(e)},KH=eH.String,qH=eH.TypeError,JH=function(e){if(GH(e))return e;throw qH(KH(e)+` is not an object`)},YH=!oH((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),XH=eH.document,ZH=GH(XH)&&GH(XH.createElement),QH=function(e){return ZH?XH.createElement(e):{}},$H=!YH&&!oH((function(){return Object.defineProperty(QH(`div`),`a`,{get:function(){return 7}}).a!=7})),eU=Function.prototype.call,tU=eU.bind?eU.bind(eU):function(){return eU.apply(eU,arguments)},nU=aH({}.isPrototypeOf),rU=eH.Object,iU=zH?function(e){return typeof e==`symbol`}:function(e){var t=AH(`Symbol`);return OH(t)&&nU(t.prototype,rU(e))},aU=eH.String,oU=function(e){try{return aU(e)}catch{return`Object`}},sU=eH.TypeError,cU=function(e){if(OH(e))return e;throw sU(oU(e)+` is not a function`)},lU=function(e,t){var n=e[t];return n==null?void 0:cU(n)},uU=eH.TypeError,dU=eH.TypeError,fU=WH(`toPrimitive`),pU=function(e){var t=function(e,t){if(!GH(e)||iU(e))return e;var n,r=lU(e,fU);if(r){if(t===void 0&&(t=`default`),n=tU(r,e,t),!GH(n)||iU(n))return n;throw dU(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&OH(n=e.toString)&&!GH(r=tU(n,e))||OH(n=e.valueOf)&&!GH(r=tU(n,e))||t!==`string`&&OH(n=e.toString)&&!GH(r=tU(n,e)))return r;throw uU(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return iU(t)?t:t+``},mU=eH.TypeError,hU=Object.defineProperty,gU={f:YH?hU:function(e,t,n){if(JH(e),t=pU(t),JH(n),$H)try{return hU(e,t,n)}catch{}if(`get`in n||`set`in n)throw mU(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},_U=Math.ceil,vU=Math.floor,yU=function(e){var t=+e;return t!=t||t===0?0:(t>0?vU:_U)(t)},bU=Math.max,xU=Math.min,SU=function(e,t){var n=yU(e);return n<0?bU(n+t,0):xU(n,t)},CU=Math.min,wU=function(e){return e>0?CU(yU(e),9007199254740991):0},TU=function(e){return wU(e.length)},EU=function(e){return function(t,n,r){var i,a=hH(t),o=TU(a),s=SU(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}},DU={includes:EU(!0),indexOf:EU(!1)},OU={},kU=DU.indexOf,AU=aH([].push),jU=function(e,t){var n,r=hH(e),i=0,a=[];for(n in r)!CH(OU,n)&&CH(r,n)&&AU(a,n);for(;t.length>i;)CH(r,n=t[i++])&&(~kU(a,n)||AU(a,n));return a},MU=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],NU=Object.keys||function(e){return jU(e,MU)},PU=YH?Object.defineProperties:function(e,t){JH(e);for(var n,r=hH(t),i=NU(t),a=i.length,o=0;a>o;)gU.f(e,n=i[o++],r[n]);return e},FU=AH(`document`,`documentElement`),IU=yH(`keys`),LU=function(e){return IU[e]||(IU[e]=DH(e))},RU=LU(`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{IH=new ActiveXObject(`htmlfile`)}catch{}var e,t;HU=typeof document<`u`?document.domain&&IH?VU(IH):((t=QH(`iframe`)).style.display=`none`,FU.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(BU(`document.F=Object`)),e.close(),e.F):VU(IH);for(var n=MU.length;n--;)delete HU.prototype[MU[n]];return HU()};OU[RU]=!0;var UU=Object.create||function(e,t){var n;return e===null?n=HU():(zU.prototype=JH(e),n=new zU,zU.prototype=null,n[RU]=e),t===void 0?n:PU(n,t)},WU=WH(`unscopables`),GU=Array.prototype;GU[WU]??gU.f(GU,WU,{configurable:!0,value:UU(null)});var KU=function(e){GU[WU][e]=!0},qU={},JU=aH(Function.toString);OH(vH.inspectSource)||(vH.inspectSource=function(e){return JU(e)});var YU,XU,ZU,QU=vH.inspectSource,$U=eH.WeakMap,eW=OH($U)&&/native code/.test(QU($U)),tW=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nW=YH?function(e,t,n){return gU.f(e,t,tW(1,n))}:function(e,t,n){return e[t]=n,e},rW=eH.TypeError,iW=eH.WeakMap;if(eW||vH.state){var aW=vH.state||=new iW,oW=aH(aW.get),sW=aH(aW.has),cW=aH(aW.set);YU=function(e,t){if(sW(aW,e))throw new rW(`Object already initialized`);return t.facade=e,cW(aW,e,t),t},XU=function(e){return oW(aW,e)||{}},ZU=function(e){return sW(aW,e)}}else{var lW=LU(`state`);OU[lW]=!0,YU=function(e,t){if(CH(e,lW))throw new rW(`Object already initialized`);return t.facade=e,nW(e,lW,t),t},XU=function(e){return CH(e,lW)?e[lW]:{}},ZU=function(e){return CH(e,lW)}}var uW,dW,fW,pW={set:YU,get:XU,has:ZU,enforce:function(e){return ZU(e)?XU(e):YU(e,{})},getterFor:function(e){return function(t){var n;if(!GH(t)||(n=XU(t)).type!==e)throw rW(`Incompatible receiver, `+e+` required`);return n}}},mW={}.propertyIsEnumerable,hW=Object.getOwnPropertyDescriptor,gW={f:hW&&!mW.call({1:2},1)?function(e){var t=hW(this,e);return!!t&&t.enumerable}:mW},_W=Object.getOwnPropertyDescriptor,vW={f:YH?_W:function(e,t){if(e=hH(e),t=pU(t),$H)try{return _W(e,t)}catch{}if(CH(e,t))return tW(!tU(gW.f,e,t),e[t])}},yW=Function.prototype,bW=YH&&Object.getOwnPropertyDescriptor,xW=CH(yW,`name`),SW={EXISTS:xW,PROPER:xW&&function(){}.name===`something`,CONFIGURABLE:xW&&(!YH||YH&&bW(yW,`name`).configurable)},CW=XV((function(e){var t=SW.CONFIGURABLE,n=pW.get,r=pW.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;OH(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!CH(a,`name`)||t&&a.name!==d)&&nW(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===eH?l?e[n]=a:_H(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:nW(e,n,a))})(Function.prototype,`toString`,(function(){return OH(this)&&n(this).source||QU(this)}))})),wW=MU.concat(`length`,`prototype`),TW={f:Object.getOwnPropertyNames||function(e){return jU(e,wW)}},EW={f:Object.getOwnPropertySymbols},DW=aH([].concat),OW=AH(`Reflect`,`ownKeys`)||function(e){var t=TW.f(JH(e)),n=EW.f;return n?DW(t,n(e)):t},kW=function(e,t){for(var n=OW(t),r=gU.f,i=vW.f,a=0;a<n.length;a++){var o=n[a];CH(e,o)||r(e,o,i(t,o))}},AW=/#|\.prototype\./,jW=function(e,t){var n=NW[MW(e)];return n==FW||n!=PW&&(OH(t)?oH(t):!!t)},MW=jW.normalize=function(e){return String(e).replace(AW,`.`).toLowerCase()},NW=jW.data={},PW=jW.NATIVE=`N`,FW=jW.POLYFILL=`P`,IW=jW,LW=vW.f,RW=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?eH:l?eH[s]||_H(s,{}):(eH[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=LW(n,r))&&o.value:n[r],!IW(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;kW(a,i)}(e.sham||i&&i.sham)&&nW(a,`sham`,!0),CW(n,r,a,e)}},zW=!oH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),BW=LU(`IE_PROTO`),VW=eH.Object,HW=VW.prototype,UW=zW?VW.getPrototypeOf:function(e){var t=xH(e);if(CH(t,BW))return t[BW];var n=t.constructor;return OH(n)&&t instanceof n?n.prototype:t instanceof VW?HW:null},WW=WH(`iterator`),GW=!1;[].keys&&(`next`in(fW=[].keys())?(dW=UW(UW(fW)))!==Object.prototype&&(uW=dW):GW=!0),(uW==null||oH((function(){var e={};return uW[WW].call(e)!==e})))&&(uW={}),OH(uW[WW])||CW(uW,WW,(function(){return this}));var KW={IteratorPrototype:uW,BUGGY_SAFARI_ITERATORS:GW},qW=gU.f,JW=WH(`toStringTag`),YW=function(e,t,n){e&&!CH(e=n?e:e.prototype,JW)&&qW(e,JW,{configurable:!0,value:t})},XW=KW.IteratorPrototype,ZW=function(){return this},QW=eH.String,$W=eH.TypeError,eG=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=aH(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return JH(n),function(e){if(typeof e==`object`||OH(e))return e;throw $W(`Can't set `+QW(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tG=SW.PROPER,nG=SW.CONFIGURABLE,rG=KW.IteratorPrototype,iG=KW.BUGGY_SAFARI_ITERATORS,aG=WH(`iterator`),oG=function(){return this},sG=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=UU(XW,{next:tW(1,n)}),YW(e,i,!1),qU[i]=ZW})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!iG&&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[aG]||p[`@@iterator`]||i&&p[i],h=!iG&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=UW(g.call(new e)))!==Object.prototype&&s.next&&(UW(s)!==rG&&(eG?eG(s,rG):OH(s[aG])||CW(s,aG,oG)),YW(s,d,!0)),tG&&i==`values`&&m&&m.name!==`values`&&(nG?nW(p,`name`,`values`):(f=!0,h=function(){return tU(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(iG||f||!(l in p))&&CW(p,l,c[l]);else RW({target:t,proto:!0,forced:iG||f},c);return p[aG]!==h&&CW(p,aG,h,{name:i}),qU[t]=h,c},cG=pW.set,lG=pW.getterFor(`Array Iterator`),uG=sG(Array,`Array`,(function(e,t){cG(this,{type:`Array Iterator`,target:hH(e),index:0,kind:t})}),(function(){var e=lG(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`);qU.Arguments=qU.Array,KU(`keys`),KU(`values`),KU(`entries`);var dG={};dG[WH(`toStringTag`)]=`z`;var fG=String(dG)===`[object z]`,pG=WH(`toStringTag`),mG=eH.Object,hG=lH(function(){return arguments}())==`Arguments`,gG=fG?lH: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=mG(e),pG))==`string`?n:hG?lH(t):(r=lH(t))==`Object`&&OH(t.callee)?`Arguments`:r},_G=fG?{}.toString:function(){return`[object `+gG(this)+`]`};fG||CW(Object.prototype,`toString`,_G,{unsafe:!0});var vG=eH.String,yG=function(e){if(gG(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return vG(e)},bG=aH(``.charAt),xG=aH(``.charCodeAt),SG=aH(``.slice),CG=function(e){return function(t,n){var r,i,a=yG(mH(t)),o=yU(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=xG(a,o))<55296||r>56319||o+1===s||(i=xG(a,o+1))<56320||i>57343?e?bG(a,o):r:e?SG(a,o,o+2):i-56320+(r-55296<<10)+65536}},wG={codeAt:CG(!1),charAt:CG(!0)},TG=wG.charAt,EG=pW.set,DG=pW.getterFor(`String Iterator`);sG(String,`String`,(function(e){EG(this,{type:`String Iterator`,string:yG(e),index:0})}),(function(){var e,t=DG(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=TG(n,r),t.index+=e.length,{value:e,done:!1})}));var OG=function(e,t,n){for(var r in t)CW(e,r,t[r],n);return e},kG=eH.Array,AG=Math.max,jG=TW.f,MG=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NG={f:function(e){return MG&&lH(e)==`Window`?function(e){try{return jG(e)}catch{return function(e,t,n){for(var r,i,a,o,s=TU(e),c=SU(void 0,s),l=SU(s,s),u=kG(AG(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=pU(i))in r?gU.f(r,o,tW(0,a)):r[o]=a;return u.length=d,u}(MG)}}(e):jG(hH(e))}},PG=oH((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),FG=Object.isExtensible,IG=oH((function(){FG(1)}))||PG?function(e){return!!GH(e)&&(!PG||lH(e)!=`ArrayBuffer`)&&(!FG||FG(e))}:FG,LG=!oH((function(){return Object.isExtensible(Object.preventExtensions({}))})),RG=XV((function(e){var t=gU.f,n=!1,r=DH(`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=TW.f,t=aH([].splice),i={};i[r]=1,e(i).length&&(TW.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},RW({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:NG.f}))},fastKey:function(e,t){if(!GH(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!CH(e,r)){if(!IG(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!CH(e,r)){if(!IG(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return LG&&n&&IG(e)&&!CH(e,r)&&a(e),e}};OU[r]=!0})),zG=aH(aH.bind),BG=function(e,t){return cU(e),t===void 0?e:zG?zG(e,t):function(){return e.apply(t,arguments)}},VG=WH(`iterator`),HG=Array.prototype,UG=WH(`iterator`),WG=function(e){if(e!=null)return lU(e,UG)||lU(e,`@@iterator`)||qU[gG(e)]},GG=eH.TypeError,KG=function(e,t,n){var r,i;JH(e);try{if(!(r=lU(e,`return`))){if(t===`throw`)throw n;return n}r=tU(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return JH(r),n},qG=eH.TypeError,JG=function(e,t){this.stopped=e,this.result=t},YG=JG.prototype,XG=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=BG(t,d),g=function(e){return r&&KG(r,`normal`,e),new JG(!0,e)},_=function(e){return f?(JH(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=WG(e)))throw qG(oU(e)+` is not iterable`);if((u=i)!==void 0&&(qU.Array===u||HG[VG]===u)){for(a=0,o=TU(e);o>a;a++)if((s=_(e[a]))&&nU(YG,s))return s;return new JG(!1)}r=function(e,t){var n=arguments.length<2?WG(e):t;if(cU(n))return JH(tU(n,e));throw GG(oU(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=tU(c,r)).done;){try{s=_(l.value)}catch(e){KG(r,`throw`,e)}if(typeof s==`object`&&s&&nU(YG,s))return s}return new JG(!1)},ZG=eH.TypeError,QG=function(e,t){if(nU(t,e))return e;throw ZG(`Incorrect invocation`)},$G=WH(`iterator`),eK=!1;try{var tK=0,nK={next:function(){return{done:!!tK++}},return:function(){eK=!0}};nK[$G]=function(){return this},Array.from(nK,(function(){throw 2}))}catch{}var rK=Array.isArray||function(e){return lH(e)==`Array`},iK=function(){},aK=[],oK=AH(`Reflect`,`construct`),sK=/^\s*(?:class|function)\b/,cK=aH(sK.exec),lK=!sK.exec(iK),uK=function(e){if(!OH(e))return!1;try{return oK(iK,aK,e),!0}catch{return!1}},dK=!oK||oH((function(){var e;return uK(uK.call)||!uK(Object)||!uK((function(){e=!0}))||e}))?function(e){if(!OH(e))return!1;switch(gG(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return lK||!!cK(sK,QU(e))}:uK,fK=WH(`species`),pK=eH.Array,mK=function(e,t){return new(function(e){var t;return rK(e)&&(t=e.constructor,(dK(t)&&(t===pK||rK(t.prototype))||GH(t)&&(t=t[fK])===null)&&(t=void 0)),t===void 0?pK:t}(e))(t===0?0:t)},hK=aH([].push),gK=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=xH(c),h=fH(m),g=BG(l,u),_=TU(h),v=0,y=d||mK,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:hK(b,f)}else switch(e){case 4:return!1;case 7:hK(b,f)}return a?-1:r||i?i:b}},_K={forEach:gK(0),map:gK(1),filter:gK(2),some:gK(3),every:gK(4),find:gK(5),findIndex:gK(6),filterReject:gK(7)},vK=RG.getWeakData,yK=pW.set,bK=pW.getterFor,xK=_K.find,SK=_K.findIndex,CK=aH([].splice),wK=0,TK=function(e){return e.frozen||=new EK},EK=function(){this.entries=[]},DK=function(e,t){return xK(e.entries,(function(e){return e[0]===t}))};EK.prototype={get:function(e){var t=DK(this,e);if(t)return t[1]},has:function(e){return!!DK(this,e)},set:function(e,t){var n=DK(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=SK(this.entries,(function(t){return t[0]===e}));return~t&&CK(this.entries,t,1),!!~t}};var OK,kK={getConstructor:function(e,t,n,r){var i=e((function(e,i){QG(e,a),yK(e,{type:t,id:wK++,frozen:void 0}),i!=null&&XG(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=bK(t),s=function(e,t,n){var r=o(e),i=vK(JH(t),!0);return!0===i?TK(r).set(t,n):i[r.id]=n,e};return OG(a,{delete:function(e){var t=o(this);if(!GH(e))return!1;var n=vK(e);return!0===n?TK(t).delete(e):n&&CH(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!GH(e))return!1;var n=vK(e);return!0===n?TK(t).has(e):n&&CH(n,t.id)}}),OG(a,n?{get:function(e){var t=o(this);if(GH(e)){var n=vK(e);return!0===n?TK(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}},AK=pW.enforce,jK=!eH.ActiveXObject&&`ActiveXObject`in eH,MK=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},NK=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=eH[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=aH(s[e]);CW(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!GH(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!GH(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!GH(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(IW(e,!OH(o)||!(i||s.forEach&&!oH((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),RG.enable();else if(IW(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=oH((function(){d.has(1)})),m=function(e,t){if(!eK)return!1;var n=!1;try{var r={};r[$G]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&oH((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){QG(e,s);var n=function(e,t,n){var r,i;return eG&&OH(r=t.constructor)&&r!==n&&GH(i=r.prototype)&&i!==n.prototype&&eG(e,i),e}(new o,e,c);return t!=null&&XG(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,RW({global:!0,forced:c!=o},l),YW(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,MK,kK);if(eW&&jK){OK=kK.getConstructor(MK,`WeakMap`,!0),RG.enable();var PK=NK.prototype,FK=aH(PK.delete),IK=aH(PK.has),LK=aH(PK.get),RK=aH(PK.set);OG(PK,{delete:function(e){if(GH(e)&&!IG(e)){var t=AK(this);return t.frozen||=new OK,FK(this,e)||t.frozen.delete(e)}return FK(this,e)},has:function(e){if(GH(e)&&!IG(e)){var t=AK(this);return t.frozen||=new OK,IK(this,e)||t.frozen.has(e)}return IK(this,e)},get:function(e){if(GH(e)&&!IG(e)){var t=AK(this);return t.frozen||=new OK,IK(this,e)?LK(this,e):t.frozen.get(e)}return LK(this,e)},set:function(e,t){if(GH(e)&&!IG(e)){var n=AK(this);n.frozen||=new OK,IK(this,e)?RK(this,e,t):n.frozen.set(e,t)}else RK(this,e,t);return this}})}var zK={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},BK=QH(`span`).classList,VK=BK&&BK.constructor&&BK.constructor.prototype,HK=VK===Object.prototype?void 0:VK,UK=WH(`iterator`),WK=WH(`toStringTag`),GK=uG.values,KK=function(e,t){if(e){if(e[UK]!==GK)try{nW(e,UK,GK)}catch{e[UK]=GK}if(e[WK]||nW(e,WK,t),zK[t]){for(var n in uG)if(e[n]!==uG[n])try{nW(e,n,uG[n])}catch{e[n]=uG[n]}}}};for(var qK in zK)KK(eH[qK]&&eH[qK].prototype,qK);KK(HK,`DOMTokenList`);var JK=new WeakMap,YK={type:`list-item`,renderElem:function(e,t,n){JK.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 ux(`div`,{style:s},ux(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),ux(`span`,null,t))}},XK=function(e,t){return XK=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])},XK(e,t)};function ZK(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}XK(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function QK(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 $K(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 eq(e){return B.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var tq=DU.includes;RW({target:`Array`,proto:!0},{includes:function(e){return tq(this,e,arguments.length>1?arguments[1]:void 0)}}),KU(`includes`);var nq,rq,iq=function(){var e=JH(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},aq=eH.RegExp,oq=oH((function(){var e=aq(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Zge=oq||oH((function(){return!aq(`a`,`y`).sticky})),Qge={BROKEN_CARET:oq||oH((function(){var e=aq(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Zge,UNSUPPORTED_Y:oq},$ge=eH.RegExp,e_e=oH((function(){var e=$ge(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),t_e=eH.RegExp,n_e=oH((function(){var e=t_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),r_e=pW.get,i_e=yH(`native-string-replace`,String.prototype.replace),sq=RegExp.prototype.exec,cq=sq,a_e=aH(``.charAt),o_e=aH(``.indexOf),s_e=aH(``.replace),lq=aH(``.slice),uq=(rq=/b*/g,tU(sq,nq=/a/,`a`),tU(sq,rq,`a`),nq.lastIndex!==0||rq.lastIndex!==0),dq=Qge.BROKEN_CARET,fq=/()??/.exec(``)[1]!==void 0;(uq||fq||dq||e_e||n_e)&&(cq=function(e){var t,n,r,i,a,o,s,c=this,l=r_e(c),u=yG(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=tU(cq,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=dq&&c.sticky,m=tU(iq,c),h=c.source,g=0,_=u;if(p&&(m=s_e(m,`y`,``),o_e(m,`g`)===-1&&(m+=`g`),_=lq(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&a_e(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),fq&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),uq&&(r=c.lastIndex),i=tU(sq,p?n:c,_),p?i?(i.input=lq(i.input,g),i[0]=lq(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:uq&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),fq&&i&&i.length>1&&tU(i_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=UU(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var pq=cq;RW({target:`RegExp`,proto:!0,forced:/./.exec!==pq},{exec:pq});var mq=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}(),c_e=`<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>`,l_e=`<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>`,u_e=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Z(`listModule.unOrderedList`),t.iconSvg=c_e,t}return ZK(t,e),t}(mq),d_e=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Z(`listModule.orderedList`),t.iconSvg=l_e,t}return ZK(t,e),t}(mq),f_e={key:`bulletedList`,factory:function(){return new u_e}},p_e={key:`numberedList`,factory:function(){return new d_e}},hq=[],m_e={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=JK.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=$K(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+`>`,hq.push(a);var c=function(e){var t=JK.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=$K(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+=`</`+hq.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},h_e=WH(`species`),g_e=_K.filter;RW({target:`Array`,proto:!0,forced:!(LH>=51||!oH((function(){var e=[];return(e.constructor={})[h_e]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return g_e(this,e,arguments.length>1?arguments[1]:void 0)}});var gq=Function.prototype,_q=gq.apply,__e=gq.bind,vq=gq.call,v_e=typeof Reflect==`object`&&Reflect.apply||(__e?vq.bind(_q):function(){return vq.apply(_q,arguments)}),yq=(WH(`species`),RegExp.prototype),y_e=wG.charAt,b_e=function(e,t,n){return t+(n?y_e(e,t).length:1)},x_e=Math.floor,bq=aH(``.charAt),S_e=aH(``.replace),xq=aH(``.slice),C_e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,w_e=/\$([$&'`]|\d{1,2})/g,T_e=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=w_e;return i!==void 0&&(i=xH(i),c=C_e),S_e(a,c,(function(a,c){var l;switch(bq(c,0)){case`$`:return`$`;case`&`:return e;case"`":return xq(t,0,n);case`'`:return xq(t,o);case`<`:l=i[xq(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=x_e(u/10);return d===0?a:d<=s?r[d-1]===void 0?bq(c,1):r[d-1]+bq(c,1):a}l=r[u-1]}return l===void 0?``:l}))},E_e=eH.TypeError,D_e=function(e,t){var n=e.exec;if(OH(n)){var r=tU(n,e,t);return r!==null&&JH(r),r}if(lH(e)===`RegExp`)return tU(pq,e,t);throw E_e(`RegExp#exec called on incompatible receiver`)},Sq=WH(`replace`),O_e=Math.max,k_e=Math.min,A_e=aH([].concat),Cq=aH([].push),wq=aH(``.indexOf),Tq=aH(``.slice),j_e=`a`.replace(/./,`$0`)===`$0`,Eq=!!/./[Sq]&&/./[Sq](`a`,`$0`)===``;(function(e,t,n,r){var i=WH(e),a=!oH((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!oH((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=aH(/./[i]),c=function(e,t,n){var r=Eq?`$`:`$0`;return[function(e,n){var r=mH(this),i=e==null?void 0:lU(e,Sq);return i?tU(i,e,r,n):tU(t,yG(r),e,n)},function(e,i){var a=JH(this),o=yG(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=OH(i);c||(i=yG(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=D_e(a,o);if(f===null||(Cq(d,f),!l))break;yG(f[0])===``&&(a.lastIndex=b_e(o,wU(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=yG((f=d[g])[0]),v=O_e(k_e(yU(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=A_e([_],y,v,o);x!==void 0&&Cq(S,x);var C=yG(v_e(i,void 0,S))}else C=T_e(_,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=aH(e),c=t.exec;return c===pq||c===yq.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));CW(String.prototype,e,c[0]),CW(yq,i,c[1])}})(`replace`,0,!!oH((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!j_e||Eq);var M_e=eH.TypeError,Dq=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&BG(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&rK(c))l=TU(c),u=Dq(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw M_e(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},N_e=Dq;function Oq(e){return e.length?e[0].tagName.toLowerCase():``}RW({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=xH(this),n=TU(t),r=mK(t,0);return r.length=N_e(r,t,t,n,0,e===void 0?1:yU(e)),r}}),KU(`flat`),RW({global:!0},{globalThis:eH}),Ly&&(K.fn.append=Ly),by&&(K.fn.attr=by),zy&&(K.fn.parent=zy);var P_e={renderElems:[YK],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=QK(eq(i)),p=f.next();!p.done;p=f.next()){var m=$K(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=QK(eq(i)),g=h.next();!g.done;g=h.next()){var _=$K(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=$K(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:[f_e,p_e],elemsToHtml:[m_e],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=Bl((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 Rl==`object`&&Rl&&Rl.Object===Object&&Rl,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,ee=O&&O.exports===D,k=ee&&w.process,A=function(){try{return k&&k.binding&&k.binding(`util`)}catch{}}(),j=A&&A.isTypedArray;function M(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 N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ne=Array.prototype,re=Function.prototype,ie=Object.prototype,ae=E[`__core-js_shared__`],oe=re.toString,se=ie.hasOwnProperty,ce=function(){var e=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),P=ie.toString,le=RegExp(`^`+oe.call(se).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ue=ee?E.Buffer:void 0,de=E.Symbol,fe=E.Uint8Array,pe=ie.propertyIsEnumerable,me=ne.splice,he=de?de.toStringTag:void 0,ge=Object.getOwnPropertySymbols,_e=ue?ue.isBuffer:void 0,ve=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),Ee=Je(F),De=Je(xe),I=Je(Se),L=de?de.prototype:void 0,Oe=L?L.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]`:he&&he in Object(e)?function(e){var t=se.call(e,he),n=e[he];try{e[he]=void 0;var r=!0}catch{}var i=P.call(e);return r&&(t?e[he]=n:delete e[he]),i}(e):function(e){return P.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 fe(e),new fe(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||=N,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(Oe)return Oe.call(e)==Oe.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 ee=D?e.value():e,k=O?t.value():t;return p||=new Ne,l(ee,k,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)?le:x).test(Je(e))}function Be(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ie,t!==r)return ve(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(!M(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():me.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=ge?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}(ge(e),(function(t){return pe.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 Ee:return p;case De:return h;case I:return v}return t});var Xe=Le(function(){return arguments}())?Le:function(e){return nt(e)&&se.call(e,`callee`)&&!pe.call(e,`callee`)},Ze=Array.isArray,Qe=_e||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=j?function(e){return function(t){return e(t)}}(j):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)}}));XM(`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`}}),XM(`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,F_e={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,I_e=Wq&&Wq.bind(Gq),Kq=Wq?function(e){return e&&I_e(Gq,e)}:function(e){return e&&function(){return Gq.apply(e,arguments)}},L_e=Kq({}.toString),R_e=Kq(``.slice),qq=function(e){return R_e(L_e(e),8,-1)},Jq=Fq.Object,z_e=Kq(``.split),Yq=Iq((function(){return!Jq(`z`).propertyIsEnumerable(0)}))?function(e){return qq(e)==`String`?z_e(e,``):Jq(e)}:Jq,B_e=Fq.TypeError,Xq=function(e){if(e==null)throw B_e(`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)},V_e=function(e){return Qq(e)?e:void 0},eJ=function(e,t){return arguments.length<2?V_e(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`,H_e=Fq.Object,uJ=lJ?function(e){return typeof e==`symbol`}:function(e){var t=eJ(`Symbol`);return Qq(t)&&tJ(t.prototype,H_e(e))},U_e=Fq.String,dJ=function(e){try{return U_e(e)}catch{return`Object`}},W_e=Fq.TypeError,fJ=function(e){if(Qq(e))return e;throw W_e(dJ(e)+` is not a function`)},pJ=function(e,t){var n=e[t];return n==null?void 0:fJ(n)},G_e=Fq.TypeError,K_e=Object.defineProperty,mJ=function(e,t){try{K_e(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)`})})),q_e=Fq.Object,_J=function(e){return q_e(Xq(e))},J_e=Kq({}.hasOwnProperty),vJ=Object.hasOwn||function(e,t){return J_e(_J(e),t)},Y_e=0,X_e=Math.random(),Z_e=Kq(1 .toString),yJ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Z_e(++Y_e+X_e,36)},bJ=gJ(`wks`),xJ=Fq.Symbol,SJ=xJ&&xJ.for,Q_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):Q_e(t)}return bJ[e]},$_e=Fq.TypeError,eve=CJ(`toPrimitive`),wJ=function(e){var t=function(e,t){if(!$q(e)||uJ(e))return e;var n,r=pJ(e,eve);if(r){if(t===void 0&&(t=`default`),n=zq(r,e,t),!$q(n)||uJ(n))return n;throw $_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 G_e(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return uJ(t)?t:t+``},TJ=Fq.document,tve=$q(TJ)&&$q(TJ.createElement),EJ=function(e){return tve?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(F_e.f,e,t),e[t])}},nve=Fq.String,rve=Fq.TypeError,AJ=function(e){if($q(e))return e;throw rve(nve(e)+` is not an object`)},ive=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 ive(`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},ave=Kq(Function.toString);Qq(hJ.inspectSource)||(hJ.inspectSource=function(e){return ave(e)});var PJ,FJ,IJ,LJ=hJ.inspectSource,RJ=Fq.WeakMap,ove=Qq(RJ)&&/native code/.test(LJ(RJ)),zJ=gJ(`keys`),BJ=function(e){return zJ[e]||(zJ[e]=yJ(e))},VJ={},HJ=Fq.TypeError,sve=Fq.WeakMap;if(ove||hJ.state){var UJ=hJ.state||=new sve,cve=Kq(UJ.get),WJ=Kq(UJ.has),lve=Kq(UJ.set);PJ=function(e,t){if(WJ(UJ,e))throw new HJ(`Object already initialized`);return t.facade=e,lve(UJ,e,t),t},FJ=function(e){return cve(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,uve=Lq&&Object.getOwnPropertyDescriptor,JJ=vJ(qJ,`name`),YJ={EXISTS:JJ,PROPER:JJ&&function(){}.name===`something`,CONFIGURABLE:JJ&&(!Lq||Lq&&uve(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)}))})),dve=Math.ceil,fve=Math.floor,ZJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?fve:dve)(t)},pve=Math.max,mve=Math.min,QJ=function(e,t){var n=ZJ(e);return n<0?pve(n+t,0):mve(n,t)},hve=Math.min,$J=function(e){return e>0?hve(ZJ(e),9007199254740991):0},eY=function(e){return $J(e.length)},gve=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++])&&(~gve(a,n)||tY(a,n));return a},rY=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],_ve=rY.concat(`length`,`prototype`),vve={f:Object.getOwnPropertyNames||function(e){return nY(e,_ve)}},yve={f:Object.getOwnPropertySymbols},bve=Kq([].concat),xve=eJ(`Reflect`,`ownKeys`)||function(e){var t=vve.f(AJ(e)),n=yve.f;return n?bve(t,n(e)):t},Sve=function(e,t){for(var n=xve(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))}},Cve=/#|\.prototype\./,iY=function(e,t){var n=Tve[wve(e)];return n==Dve||n!=Eve&&(Qq(t)?Iq(t):!!t)},wve=iY.normalize=function(e){return String(e).replace(Cve,`.`).toLowerCase()},Tve=iY.data={},Eve=iY.NATIVE=`N`,Dve=iY.POLYFILL=`P`,Ove=iY,kve=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=kve(n,r))&&o.value:n[r],!Ove(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Sve(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]`,Ave=CJ(`toStringTag`),jve=Fq.Object,Mve=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=jve(e),Ave))==`string`?n:Mve?qq(t):(r=qq(t))==`Object`&&Qq(t.callee)?`Arguments`:r},Nve=Fq.String,lY=function(e){if(cY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Nve(e)},Pve=/"/g,Fve=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="`+Fve(lY(t),Pve,`&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})),Ive=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:Ive,UNSUPPORTED_Y:pY},Lve=Object.keys||function(e){return nY(e,rY)},Rve=Lq?Object.defineProperties:function(e,t){AJ(e);for(var n,r=Zq(t),i=Lve(t),a=i.length,o=0;a>o;)MJ.f(e,n=i[o++],r[n]);return e},zve=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`,zve.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:Rve(n,t)},Bve=Fq.RegExp,Vve=Iq((function(){var e=Bve(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Hve=Fq.RegExp,Uve=Iq((function(){var e=Hve(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Wve=KJ.get,Gve=gJ(`native-string-replace`,String.prototype.replace),CY=RegExp.prototype.exec,wY=CY,Kve=Kq(``.charAt),qve=Kq(``.indexOf),Jve=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||Vve||Uve)&&(wY=function(e){var t,n,r,i,a,o,s,c=this,l=Wve(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=Jve(m,`y`,``),qve(m,`g`)===-1&&(m+=`g`),_=TY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Kve(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(Gve,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(){},Yve=[],MY=eJ(`Reflect`,`construct`),NY=/^\s*(?:class|function)\b/,Xve=Kq(NY.exec),Zve=!NY.exec(jY),PY=function(e){if(!Qq(e))return!1;try{return MY(jY,Yve,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 Zve||!!Xve(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},Qve=CJ(`species`),LY=function(e){return sJ>=51||!Iq((function(){var t=[];return(t.constructor={})[Qve]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},$ve=Kq([].slice),eye=LY(`slice`),tye=CJ(`species`),RY=Fq.Array,nye=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(uv.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:!eye},{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[tye])===null)&&(n=void 0),n===RY||n===void 0))return $ve(a,s,c);for(r=new(n===void 0?RY:n)(nye(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),rye=CJ(`species`),UY=Fq.Array,iye=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[rye])===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||iye,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)},aye=KY.map;aY({target:`Array`,proto:!0,forced:!LY(`map`)},{map:function(e){return aye(this,e,arguments.length>1?arguments[1]:void 0)}});var oye=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`,oye,{unsafe:!0});var sye=YJ.PROPER,YY=RegExp.prototype,XY=YY.toString,cye=Kq(dY),lye=Iq((function(){return XY.call({source:`a`,flags:`b`})!=`/a/b`})),uye=sye&&XY.name!=`toString`;(lye||uye)&&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)?cye(e):n)}),{unsafe:!0});var ZY=CJ(`unscopables`),QY=Array.prototype;QY[ZY]??MJ.f(QY,ZY,{configurable:!0,value:SY(null)});var dye=KY.find,$Y=!0;`find`in[]&&[,].find((function(){$Y=!1})),aY({target:`Array`,proto:!0,forced:$Y},{find:function(e){return dye(this,e,arguments.length>1?arguments[1]:void 0)}}),QY[ZY].find=!0;var eX=Function.prototype,tX=eX.apply,fye=eX.bind,nX=eX.call,rX=typeof Reflect==`object`&&Reflect.apply||(fye?nX.bind(tX):function(){return nX.apply(tX,arguments)}),pye=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[pye]=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)},mye=CJ(`match`),hye=Fq.TypeError,gye=CJ(`species`),_ye=Kq(``.charAt),oX=Kq(``.charCodeAt),vye=Kq(``.slice),yye=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?_ye(a,o):r:e?vye(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),sX=function(e,t,n){return t+(n?yye(e,t).length:1)},bye=Fq.Array,xye=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=bye(xye(a-i,0)),s=0;i<a;i++,s++)IY(o,s,e[i]);return o.length=s,o},Sye=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 Sye(`RegExp#exec called on incompatible receiver`)},uX=mY.UNSUPPORTED_Y,Cye=Math.min,dX=[].push,wye=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[mye])===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&&wye(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)[gye])==null?t:function(e){if(FY(e))return e;throw hye(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=Cye($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+`]`,Tye=RegExp(`^`+gX+gX+`*`),Eye=RegExp(gX+gX+`*$`),_X=function(e){return function(t){var n=lY(Xq(t));return 1&e&&(n=hX(n,Tye,``)),2&e&&(n=hX(n,Eye,``)),n}},Dye={start:_X(1),end:_X(2),trim:_X(3)},Oye=YJ.PROPER,kye=Dye.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]()!==`​…᠎`||Oye&&mX[e].name!==e}))}(`trim`)},{trim:function(){return kye(this)}}),aY({global:!0},{globalThis:Fq}),Ly&&(K.fn.append=Ly),wy&&(K.fn.on=wy),Jy&&(K.fn.focus=Jy),by&&(K.fn.attr=by),Cy&&(K.fn.val=Cy),Py&&(K.fn.html=Py),Sy&&(K.fn.dataset=Sy),_y&&(K.fn.addClass=_y),vy&&(K.fn.removeClass=vy),Hy&&(K.fn.children=Hy),My&&(K.fn.each=My),Vy&&(K.fn.find=Vy);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=jb((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),Aye={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=uv.compare(r,s)<=0&&uv.compare(r,o)>=0,l=uv.compare(i,s)<=0&&uv.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 ux(`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)}}}},ux(`table`,{width:a,contentEditable:r},ux(`colgroup`,null,qY(e).map((function(e){var t=e.width;return ux(`col`,{width:t===void 0?`auto`:t})}))),ux(`tbody`,null,t)))}},jye={type:`table-row`,renderElem:function(e,t,n){return ux(`tr`,null,t)}},Mye={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?ux(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:jb((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):ux(`td`,{colSpan:o,rowSpan:c},t)}},Nye={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]}},Pye=KY.filter;aY({target:`Array`,proto:!0,forced:!LY(`filter`)},{filter:function(e){return Pye(this,e,arguments.length>1?arguments[1]:void 0)}});var Fye=Math.floor,DX=Kq(``.charAt),Iye=Kq(``.replace),OX=Kq(``.slice),Lye=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Rye=/\$([$&'`]|\d{1,2})/g,zye=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Rye;return i!==void 0&&(i=_J(i),c=Lye),Iye(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=Fye(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`),Bye=Math.max,Vye=Math.min,Hye=Kq([].concat),AX=Kq([].push),jX=Kq(``.indexOf),MX=Kq(``.slice),Uye=`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=Bye(Vye(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=Hye([_],y,v,o);x!==void 0&&AX(S,x);var C=lY(rX(i,void 0,S))}else C=zye(_,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`}))||!Uye||NX);var Wye={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}}},Gye={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`}))}}},Kye={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`}))}}},qye=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}(),Jye=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}(),Yye=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}(),Xye=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,Zye=IX===Object.prototype?void 0:IX,Qye=KY.forEach,LX=function(e,t){var n=[].forEach;return!!n&&Iq((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return Qye(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(Zye);var $ye=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}(),ebe=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}(),tbe=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}(),nbe=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}(),rbe={renderElems:[Aye,jye,Mye],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:[Nye],parseElemsHtml:[Wye,Gye,Kye],menus:[{key:`insertTable`,factory:function(){return new qye}},{key:`deleteTable`,factory:function(){return new Jye}},{key:`insertTableRow`,factory:function(){return new Yye}},{key:`deleteTableRow`,factory:function(){return new Xye}},{key:`insertTableCol`,factory:function(){return new $ye}},{key:`deleteTableCol`,factory:function(){return new ebe}},{key:`tableHeader`,factory:function(){return new tbe}},{key:`tableFullWidth`,factory:function(){return new nbe}}],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}};XM(`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`}}),XM(`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 ibe(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,abe={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,obe=rZ&&rZ.bind(iZ),aZ=rZ?function(e){return e&&obe(iZ,e)}:function(e){return e&&function(){return iZ.apply(e,arguments)}},sbe=aZ({}.toString),cbe=aZ(``.slice),oZ=function(e){return cbe(sbe(e),8,-1)},sZ=Q.Object,lbe=aZ(``.split),cZ=YX((function(){return!sZ(`z`).propertyIsEnumerable(0)}))?function(e){return oZ(e)==`String`?lbe(e,``):sZ(e)}:sZ,ube=Q.TypeError,lZ=function(e){if(e==null)throw ube(`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)},dbe=function(e){return dZ(e)?e:void 0},pZ=function(e,t){return arguments.length<2?dbe(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`,fbe=Q.Object,CZ=SZ?function(e){return typeof e==`symbol`}:function(e){var t=pZ(`Symbol`);return dZ(t)&&mZ(t.prototype,fbe(e))},pbe=Q.String,wZ=function(e){try{return pbe(e)}catch{return`Object`}},mbe=Q.TypeError,TZ=function(e){if(dZ(e))return e;throw mbe(wZ(e)+` is not a function`)},EZ=function(e,t){var n=e[t];return n==null?void 0:TZ(n)},hbe=Q.TypeError,gbe=Object.defineProperty,DZ=function(e,t){try{gbe(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},OZ=Q[`__core-js_shared__`]||DZ(`__core-js_shared__`,{}),kZ=GX((function(e){(e.exports=function(e,t){return OZ[e]||(OZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),_be=Q.Object,AZ=function(e){return _be(lZ(e))},vbe=aZ({}.hasOwnProperty),jZ=Object.hasOwn||function(e,t){return vbe(AZ(e),t)},ybe=0,bbe=Math.random(),xbe=aZ(1 .toString),MZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+xbe(++ybe+bbe,36)},NZ=kZ(`wks`),PZ=Q.Symbol,FZ=PZ&&PZ.for,Sbe=SZ?PZ:PZ&&PZ.withoutSetter||MZ,IZ=function(e){if(!jZ(NZ,e)||!xZ&&typeof NZ[e]!=`string`){var t=`Symbol.`+e;xZ&&jZ(PZ,e)?NZ[e]=PZ[e]:NZ[e]=SZ&&FZ?FZ(t):Sbe(t)}return NZ[e]},Cbe=Q.TypeError,wbe=IZ(`toPrimitive`),LZ=function(e){var t=function(e,t){if(!fZ(e)||CZ(e))return e;var n,r=EZ(e,wbe);if(r){if(t===void 0&&(t=`default`),n=QX(r,e,t),!fZ(n)||CZ(n))return n;throw Cbe(`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 hbe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return CZ(t)?t:t+``},RZ=Q.document,Tbe=fZ(RZ)&&fZ(RZ.createElement),zZ=function(e){return Tbe?RZ.createElement(e):{}},BZ=!XX&&!YX((function(){return Object.defineProperty(zZ(`div`),`a`,{get:function(){return 7}}).a!=7})),VZ=Object.getOwnPropertyDescriptor,HZ={f:XX?VZ:function(e,t){if(e=uZ(e),t=LZ(t),BZ)try{return VZ(e,t)}catch{}if(jZ(e,t))return tZ(!QX(abe.f,e,t),e[t])}},Ebe=Q.String,Dbe=Q.TypeError,UZ=function(e){if(fZ(e))return e;throw Dbe(Ebe(e)+` is not an object`)},Obe=Q.TypeError,WZ=Object.defineProperty,GZ={f:XX?WZ:function(e,t,n){if(UZ(e),t=LZ(t),UZ(n),BZ)try{return WZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Obe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},KZ=XX?function(e,t,n){return GZ.f(e,t,tZ(1,n))}:function(e,t,n){return e[t]=n,e},kbe=aZ(Function.toString);dZ(OZ.inspectSource)||(OZ.inspectSource=function(e){return kbe(e)});var qZ,JZ,YZ,XZ=OZ.inspectSource,ZZ=Q.WeakMap,QZ=dZ(ZZ)&&/native code/.test(XZ(ZZ)),$Z=kZ(`keys`),eQ=function(e){return $Z[e]||($Z[e]=MZ(e))},tQ={},nQ=Q.TypeError,Abe=Q.WeakMap;if(QZ||OZ.state){var rQ=OZ.state||=new Abe,jbe=aZ(rQ.get),iQ=aZ(rQ.has),Mbe=aZ(rQ.set);qZ=function(e,t){if(iQ(rQ,e))throw new nQ(`Object already initialized`);return t.facade=e,Mbe(rQ,e,t),t},JZ=function(e){return jbe(rQ,e)||{}},YZ=function(e){return iQ(rQ,e)}}else{var aQ=eQ(`state`);tQ[aQ]=!0,qZ=function(e,t){if(jZ(e,aQ))throw new nQ(`Object already initialized`);return t.facade=e,KZ(e,aQ,t),t},JZ=function(e){return jZ(e,aQ)?e[aQ]:{}},YZ=function(e){return jZ(e,aQ)}}var oQ={set:qZ,get:JZ,has:YZ,enforce:function(e){return YZ(e)?JZ(e):qZ(e,{})},getterFor:function(e){return function(t){var n;if(!fZ(t)||(n=JZ(t)).type!==e)throw nQ(`Incompatible receiver, `+e+` required`);return n}}},sQ=Function.prototype,Nbe=XX&&Object.getOwnPropertyDescriptor,cQ=jZ(sQ,`name`),lQ={EXISTS:cQ,PROPER:cQ&&function(){}.name===`something`,CONFIGURABLE:cQ&&(!XX||XX&&Nbe(sQ,`name`).configurable)},uQ=GX((function(e){var t=lQ.CONFIGURABLE,n=oQ.get,r=oQ.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`)+`]`),(!jZ(a,`name`)||t&&a.name!==d)&&KZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:DZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:KZ(e,n,a))})(Function.prototype,`toString`,(function(){return dZ(this)&&n(this).source||XZ(this)}))})),Pbe=Math.ceil,Fbe=Math.floor,dQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?Fbe:Pbe)(t)},Ibe=Math.max,Lbe=Math.min,fQ=function(e,t){var n=dQ(e);return n<0?Ibe(n+t,0):Lbe(n,t)},Rbe=Math.min,pQ=function(e){return e>0?Rbe(dQ(e),9007199254740991):0},mQ=function(e){return pQ(e.length)},hQ=function(e){return function(t,n,r){var i,a=uZ(t),o=mQ(a),s=fQ(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}},gQ={includes:hQ(!0),indexOf:hQ(!1)},zbe=gQ.indexOf,_Q=aZ([].push),vQ=function(e,t){var n,r=uZ(e),i=0,a=[];for(n in r)!jZ(tQ,n)&&jZ(r,n)&&_Q(a,n);for(;t.length>i;)jZ(r,n=t[i++])&&(~zbe(a,n)||_Q(a,n));return a},yQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Bbe=yQ.concat(`length`,`prototype`),bQ={f:Object.getOwnPropertyNames||function(e){return vQ(e,Bbe)}},Vbe={f:Object.getOwnPropertySymbols},Hbe=aZ([].concat),Ube=pZ(`Reflect`,`ownKeys`)||function(e){var t=bQ.f(UZ(e)),n=Vbe.f;return n?Hbe(t,n(e)):t},Wbe=function(e,t){for(var n=Ube(t),r=GZ.f,i=HZ.f,a=0;a<n.length;a++){var o=n[a];jZ(e,o)||r(e,o,i(t,o))}},Gbe=/#|\.prototype\./,xQ=function(e,t){var n=qbe[Kbe(e)];return n==Ybe||n!=Jbe&&(dZ(t)?YX(t):!!t)},Kbe=xQ.normalize=function(e){return String(e).replace(Gbe,`.`).toLowerCase()},qbe=xQ.data={},Jbe=xQ.NATIVE=`N`,Ybe=xQ.POLYFILL=`P`,SQ=xQ,Xbe=HZ.f,CQ=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]||DZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Xbe(n,r))&&o.value:n[r],!SQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Wbe(a,i)}(e.sham||i&&i.sham)&&KZ(a,`sham`,!0),uQ(n,r,a,e)}},wQ={};wQ[IZ(`toStringTag`)]=`z`;var TQ=String(wQ)===`[object z]`,Zbe=IZ(`toStringTag`),Qbe=Q.Object,$be=oZ(function(){return arguments}())==`Arguments`,EQ=TQ?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=Qbe(e),Zbe))==`string`?n:$be?oZ(t):(r=oZ(t))==`Object`&&dZ(t.callee)?`Arguments`:r},exe=Q.String,DQ=function(e){if(EQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return exe(e)},OQ=`
\v\f\r \xA0               \u2028\u2029`,kQ=aZ(``.replace),AQ=`[`+OQ+`]`,txe=RegExp(`^`+AQ+AQ+`*`),nxe=RegExp(AQ+AQ+`*$`),jQ=function(e){return function(t){var n=DQ(lZ(t));return 1&e&&(n=kQ(n,txe,``)),2&e&&(n=kQ(n,nxe,``)),n}},rxe={start:jQ(1),end:jQ(2),trim:jQ(3)},ixe=lQ.PROPER,axe=rxe.trim;function MQ(e){return e.length?e[0].tagName.toLowerCase():``}function NQ(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}CQ({target:`String`,proto:!0,forced:YX((function(){return!!OQ.trim()||ixe&&OQ.trim.name!==`trim`}))},{trim:function(){return axe(this)}}),CQ({global:!0},{globalThis:Q}),Ly&&(K.fn.append=Ly),wy&&(K.fn.on=wy),Jy&&(K.fn.focus=Jy),by&&(K.fn.attr=by),Cy&&(K.fn.val=Cy),Py&&(K.fn.html=Py),zy&&(K.fn.parent=zy),yy&&(K.fn.hasClass=yy),Wy&&(K.fn.empty=Wy);var PQ,oxe={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=ux(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:NQ(o,u,f)});else{var m=ux(`video`,{poster:c,controls:!0},ux(`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=ux(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return Wb(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},sxe={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+=NQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
</div>`}},cxe=Object.keys||function(e){return vQ(e,yQ)},lxe=XX?Object.defineProperties:function(e,t){UZ(e);for(var n,r=uZ(t),i=cxe(t),a=i.length,o=0;a>o;)GZ.f(e,n=i[o++],r[n]);return e},FQ=pZ(`document`,`documentElement`),IQ=eQ(`IE_PROTO`),LQ=function(){},RQ=function(e){return`<script>`+e+`<\/script>`},zQ=function(e){e.write(RQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},BQ=function(){try{PQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;BQ=typeof document<`u`?document.domain&&PQ?zQ(PQ):((t=zZ(`iframe`)).style.display=`none`,FQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(RQ(`document.F=Object`)),e.close(),e.F):zQ(PQ);for(var n=yQ.length;n--;)delete BQ.prototype[yQ[n]];return BQ()};tQ[IQ]=!0;var VQ=Object.create||function(e,t){var n;return e===null?n=BQ():(LQ.prototype=UZ(e),n=new LQ,LQ.prototype=null,n[IQ]=e),t===void 0?n:lxe(n,t)},HQ=IZ(`unscopables`),UQ=Array.prototype;UQ[HQ]??GZ.f(UQ,HQ,{configurable:!0,value:VQ(null)});var WQ=function(e){UQ[HQ][e]=!0},uxe=gQ.includes;CQ({target:`Array`,proto:!0},{includes:function(e){return uxe(this,e,arguments.length>1?arguments[1]:void 0)}}),WQ(`includes`);var dxe={selector:`iframe,video,p`,preParseHtml:function(e){var t=K(e),n=t;if(MQ(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=MQ(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]}},GQ=aZ(aZ.bind),KQ=function(e,t){return TZ(e),t===void 0?e:GQ?GQ(e,t):function(){return e.apply(t,arguments)}},qQ=Array.isArray||function(e){return oZ(e)==`Array`},JQ=function(){},fxe=[],YQ=pZ(`Reflect`,`construct`),XQ=/^\s*(?:class|function)\b/,pxe=aZ(XQ.exec),mxe=!XQ.exec(JQ),ZQ=function(e){if(!dZ(e))return!1;try{return YQ(JQ,fxe,e),!0}catch{return!1}},QQ=!YQ||YX((function(){var e;return ZQ(ZQ.call)||!ZQ(Object)||!ZQ((function(){e=!0}))||e}))?function(e){if(!dZ(e))return!1;switch(EQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return mxe||!!pxe(XQ,XZ(e))}:ZQ,hxe=IZ(`species`),$Q=Q.Array,gxe=function(e,t){return new(function(e){var t;return qQ(e)&&(t=e.constructor,(QQ(t)&&(t===$Q||qQ(t.prototype))||fZ(t)&&(t=t[hxe])===null)&&(t=void 0)),t===void 0?$Q:t}(e))(t===0?0:t)},e$=aZ([].push),t$=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=AZ(c),h=cZ(m),g=KQ(l,u),_=mQ(h),v=0,y=d||gxe,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:e$(b,f)}else switch(e){case 4:return!1;case 7:e$(b,f)}return a?-1:r||i?i:b}},n$={forEach:t$(0),map:t$(1),filter:t$(2),some:t$(3),every:t$(4),find:t$(5),findIndex:t$(6),filterReject:t$(7)},_xe=n$.find,r$=!0;`find`in[]&&[,].find((function(){r$=!1})),CQ({target:`Array`,proto:!0,forced:r$},{find:function(e){return _xe(this,e,arguments.length>1?arguments[1]:void 0)}}),WQ(`find`);var vxe=TQ?{}.toString:function(){return`[object `+EQ(this)+`]`};function i$(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:``}]}}TQ||uQ(Object.prototype,`toString`,vxe,{unsafe:!0});var a$,o$,yxe={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`,i$(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`,i$(i,a=l.attr(`poster`)||``,o,s)}},s$=function(){var e=UZ(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},c$=Q.RegExp,l$=YX((function(){var e=c$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),bxe=l$||YX((function(){return!c$(`a`,`y`).sticky})),xxe={BROKEN_CARET:l$||YX((function(){var e=c$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:bxe,UNSUPPORTED_Y:l$},Sxe=Q.RegExp,Cxe=YX((function(){var e=Sxe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),wxe=Q.RegExp,Txe=YX((function(){var e=wxe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Exe=oQ.get,Dxe=kZ(`native-string-replace`,String.prototype.replace),u$=RegExp.prototype.exec,d$=u$,Oxe=aZ(``.charAt),kxe=aZ(``.indexOf),Axe=aZ(``.replace),f$=aZ(``.slice),p$=(o$=/b*/g,QX(u$,a$=/a/,`a`),QX(u$,o$,`a`),a$.lastIndex!==0||o$.lastIndex!==0),m$=xxe.BROKEN_CARET,h$=/()??/.exec(``)[1]!==void 0;(p$||h$||m$||Cxe||Txe)&&(d$=function(e){var t,n,r,i,a,o,s,c=this,l=Exe(c),u=DQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=QX(d$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=m$&&c.sticky,m=QX(s$,c),h=c.source,g=0,_=u;if(p&&(m=Axe(m,`y`,``),kxe(m,`g`)===-1&&(m+=`g`),_=f$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Oxe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),h$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),p$&&(r=c.lastIndex),i=QX(u$,p?n:c,_),p?i?(i.input=f$(i.input,g),i[0]=f$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:p$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),h$&&i&&i.length>1&&QX(Dxe,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=VQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var g$=d$;CQ({target:`RegExp`,proto:!0,forced:/./.exec!==g$},{exec:g$});var _$=Function.prototype,v$=_$.apply,jxe=_$.bind,y$=_$.call,b$=typeof Reflect==`object`&&Reflect.apply||(jxe?y$.bind(v$):function(){return y$.apply(v$,arguments)}),x$=(IZ(`species`),RegExp.prototype),Mxe=aZ(``.charAt),S$=aZ(``.charCodeAt),Nxe=aZ(``.slice),C$=function(e){return function(t,n){var r,i,a=DQ(lZ(t)),o=dQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=S$(a,o))<55296||r>56319||o+1===s||(i=S$(a,o+1))<56320||i>57343?e?Mxe(a,o):r:e?Nxe(a,o,o+2):i-56320+(r-55296<<10)+65536}},w$={codeAt:C$(!1),charAt:C$(!0)},Pxe=w$.charAt,Fxe=function(e,t,n){return t+(n?Pxe(e,t).length:1)},Ixe=Math.floor,T$=aZ(``.charAt),Lxe=aZ(``.replace),E$=aZ(``.slice),Rxe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zxe=/\$([$&'`]|\d{1,2})/g,Bxe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=zxe;return i!==void 0&&(i=AZ(i),c=Rxe),Lxe(a,c,(function(a,c){var l;switch(T$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return E$(t,0,n);case`'`:return E$(t,o);case`<`:l=i[E$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Ixe(u/10);return d===0?a:d<=s?r[d-1]===void 0?T$(c,1):r[d-1]+T$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Vxe=Q.TypeError,Hxe=function(e,t){var n=e.exec;if(dZ(n)){var r=QX(n,e,t);return r!==null&&UZ(r),r}if(oZ(e)===`RegExp`)return QX(g$,e,t);throw Vxe(`RegExp#exec called on incompatible receiver`)},D$=IZ(`replace`),Uxe=Math.max,Wxe=Math.min,Gxe=aZ([].concat),O$=aZ([].push),k$=aZ(``.indexOf),A$=aZ(``.slice),Kxe=`a`.replace(/./,`$0`)===`$0`,j$=!!/./[D$]&&/./[D$](`a`,`$0`)===``;function M$(e){return e===void 0&&(e=`r`),e+`-`+hb()}(function(e,t,n,r){var i=IZ(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=j$?`$`:`$0`;return[function(e,n){var r=lZ(this),i=e==null?void 0:EZ(e,D$);return i?QX(i,e,r,n):QX(t,DQ(r),e,n)},function(e,i){var a=UZ(this),o=DQ(e);if(typeof i==`string`&&k$(i,r)===-1&&k$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=dZ(i);c||(i=DQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Hxe(a,o);if(f===null||(O$(d,f),!l))break;DQ(f[0])===``&&(a.lastIndex=Fxe(o,pQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=DQ((f=d[g])[0]),v=Uxe(Wxe(dQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)O$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Gxe([_],y,v,o);x!==void 0&&O$(S,x);var C=DQ(b$(i,void 0,S))}else C=Bxe(_,o,v,y,x,i);v>=h&&(m+=A$(o,h,v)+C,h=v+_.length)}return m+A$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=aZ(e),c=t.exec;return c===g$||c===x$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));uQ(String.prototype,e,c[0]),uQ(x$,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`}))||!Kxe||j$);var N$=Q.Promise,P$=function(e,t,n){for(var r in t)uQ(e,r,t[r],n);return e},qxe=Q.String,Jxe=Q.TypeError,F$=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 UZ(n),function(e){if(typeof e==`object`||dZ(e))return e;throw Jxe(`Can't set `+qxe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Yxe=GZ.f,I$=IZ(`toStringTag`),L$=function(e,t,n){e&&!jZ(e=n?e:e.prototype,I$)&&Yxe(e,I$,{configurable:!0,value:t})},R$=IZ(`species`),Xxe=Q.TypeError,z$=function(e,t){if(mZ(t,e))return e;throw Xxe(`Incorrect invocation`)},B$={},Zxe=IZ(`iterator`),Qxe=Array.prototype,$xe=IZ(`iterator`),V$=function(e){if(e!=null)return EZ(e,$xe)||EZ(e,`@@iterator`)||B$[EQ(e)]},eSe=Q.TypeError,H$=function(e,t,n){var r,i;UZ(e);try{if(!(r=EZ(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 UZ(r),n},tSe=Q.TypeError,U$=function(e,t){this.stopped=e,this.result=t},W$=U$.prototype,G$=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=KQ(t,d),g=function(e){return r&&H$(r,`normal`,e),new U$(!0,e)},_=function(e){return f?(UZ(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=V$(e)))throw tSe(wZ(e)+` is not iterable`);if((u=i)!==void 0&&(B$.Array===u||Qxe[Zxe]===u)){for(a=0,o=mQ(e);o>a;a++)if((s=_(e[a]))&&mZ(W$,s))return s;return new U$(!1)}r=function(e,t){var n=arguments.length<2?V$(e):t;if(TZ(n))return UZ(QX(n,e));throw eSe(wZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=QX(c,r)).done;){try{s=_(l.value)}catch(e){H$(r,`throw`,e)}if(typeof s==`object`&&s&&mZ(W$,s))return s}return new U$(!1)},K$=IZ(`iterator`),q$=!1;try{var nSe=0,J$={next:function(){return{done:!!nSe++}},return:function(){q$=!0}};J$[K$]=function(){return this},Array.from(J$,(function(){throw 2}))}catch{}var Y$,X$,Z$,Q$,$$=function(e,t){if(!t&&!q$)return!1;var n=!1;try{var r={};r[K$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},rSe=Q.TypeError,iSe=IZ(`species`),e1=aZ([].slice),t1=/(?:ipad|iphone|ipod).*applewebkit/i.test(hZ),n1=oZ(Q.process)==`process`,r1=Q.setImmediate,i1=Q.clearImmediate,aSe=Q.process,a1=Q.Dispatch,oSe=Q.Function,o1=Q.MessageChannel,sSe=Q.String,s1=0,c1={};try{Y$=Q.location}catch{}var l1=function(e){if(jZ(c1,e)){var t=c1[e];delete c1[e],t()}},u1=function(e){return function(){l1(e)}},d1=function(e){l1(e.data)},f1=function(e){Q.postMessage(sSe(e),Y$.protocol+`//`+Y$.host)};r1&&i1||(r1=function(e){var t=e1(arguments,1);return c1[++s1]=function(){b$(dZ(e)?e:oSe(e),void 0,t)},X$(s1),s1},i1=function(e){delete c1[e]},n1?X$=function(e){aSe.nextTick(u1(e))}:a1&&a1.now?X$=function(e){a1.now(u1(e))}:o1&&!t1?(Q$=(Z$=new o1).port2,Z$.port1.onmessage=d1,X$=KQ(Q$.postMessage,Q$)):Q.addEventListener&&dZ(Q.postMessage)&&!Q.importScripts&&Y$&&Y$.protocol!==`file:`&&!YX(f1)?(X$=f1,Q.addEventListener(`message`,d1,!1)):X$=`onreadystatechange`in zZ(`script`)?function(e){FQ.appendChild(zZ(`script`)).onreadystatechange=function(){FQ.removeChild(this),l1(e)}}:function(e){setTimeout(u1(e),0)});var p1,m1,h1,g1,_1,v1,y1,b1,x1={set:r1,clear:i1},cSe=/ipad|iphone|ipod/i.test(hZ)&&Q.Pebble!==void 0,lSe=/web0s(?!.*chrome)/i.test(hZ),uSe=HZ.f,S1=x1.set,C1=Q.MutationObserver||Q.WebKitMutationObserver,w1=Q.document,T1=Q.process,E1=Q.Promise,D1=uSe(Q,`queueMicrotask`),O1=D1&&D1.value;O1||(p1=function(){var e,t;for(n1&&(e=T1.domain)&&e.exit();m1;){t=m1.fn,m1=m1.next;try{t()}catch(e){throw m1?g1():h1=void 0,e}}h1=void 0,e&&e.enter()},t1||n1||lSe||!C1||!w1?!cSe&&E1&&E1.resolve?((y1=E1.resolve(void 0)).constructor=E1,b1=KQ(y1.then,y1),g1=function(){b1(p1)}):n1?g1=function(){T1.nextTick(p1)}:(S1=KQ(S1,Q),g1=function(){S1(p1)}):(_1=!0,v1=w1.createTextNode(``),new C1(p1).observe(v1,{characterData:!0}),g1=function(){v1.data=_1=!_1}));var k1,A1,j1,M1,N1=O1||function(e){var t={fn:e,next:void 0};h1&&(h1.next=t),m1||(m1=t,g1()),h1=t},dSe=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=TZ(t),this.reject=TZ(n)},P1={f:function(e){return new dSe(e)}},F1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},fSe=typeof window==`object`,I1=x1.set,pSe=IZ(`species`),L1=`Promise`,R1=oQ.getterFor(L1),mSe=oQ.set,hSe=oQ.getterFor(L1),z1=N$&&N$.prototype,B1=N$,V1=z1,H1=Q.TypeError,U1=Q.document,W1=Q.process,G1=P1.f,gSe=G1,_Se=!!(U1&&U1.createEvent&&Q.dispatchEvent),K1=dZ(Q.PromiseRejectionEvent),q1=!1,J1=SQ(L1,(function(){var e=XZ(B1),t=e!==String(B1);if(!t&&bZ===66)return!0;if(bZ>=51&&/native code/.test(e))return!1;var n=new B1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[pSe]=r,!(q1=n.then((function(){}))instanceof r)||!t&&fSe&&!K1})),vSe=J1||!$$((function(e){B1.all(e).catch((function(){}))})),Y1=function(e){var t;return!(!fZ(e)||!dZ(t=e.then))&&t},X1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;N1((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&&bSe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(H1(`Promise-chain cycle`)):(s=Y1(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&&ySe(e)}))}},Z1=function(e,t,n){var r,i;_Se?((r=U1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!K1&&(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)},ySe=function(e){QX(I1,Q,(function(){var t,n=e.facade,r=e.value;if(Q1(e)&&(t=F1((function(){n1?W1.emit(`unhandledRejection`,r,n):Z1(`unhandledrejection`,n,r)})),e.rejection=n1||Q1(e)?2:1,t.error))throw t.value}))},Q1=function(e){return e.rejection!==1&&!e.parent},bSe=function(e){QX(I1,Q,(function(){var t=e.facade;n1?W1.emit(`rejectionHandled`,t):Z1(`rejectionhandled`,t,e.value)}))},$1=function(e,t,n){return function(r){e(t,r,n)}},e0=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X1(e,!0))},t0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H1(`Promise can't be resolved itself`);var r=Y1(t);r?N1((function(){var n={done:!1};try{QX(r,t,$1(t0,n,e),$1(e0,n,e))}catch(t){e0(n,t,e)}})):(e.value=t,e.state=1,X1(e,!1))}catch(t){e0({done:!1},t,e)}}};if(J1&&(V1=(B1=function(e){z$(this,V1),TZ(e),QX(k1,this);var t=R1(this);try{e($1(t0,t),$1(e0,t))}catch(e){e0(t,e)}}).prototype,(k1=function(e){mSe(this,{type:L1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=P$(V1,{then:function(e,t){var n=hSe(this),r=n.reactions,i=G1(function(e,t){var n,r=UZ(e).constructor;return r===void 0||(n=UZ(r)[iSe])==null?t:function(e){if(QQ(e))return e;throw rSe(wZ(e)+` is not a constructor`)}(n)}(this,B1));return i.ok=!dZ(e)||e,i.fail=dZ(t)&&t,i.domain=n1?W1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&X1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),A1=function(){var e=new k1,t=R1(e);this.promise=e,this.resolve=$1(t0,t),this.reject=$1(e0,t)},P1.f=G1=function(e){return e===B1||e===j1?new A1(e):gSe(e)},dZ(N$)&&z1!==Object.prototype)){M1=z1.then,q1||(uQ(z1,`then`,(function(e,t){var n=this;return new B1((function(e,t){QX(M1,n,e,t)})).then(e,t)}),{unsafe:!0}),uQ(z1,`catch`,V1.catch,{unsafe:!0}));try{delete z1.constructor}catch{}F$&&F$(z1,V1)}function n0(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 r0(){return M$(`w-e-insert-video`)}CQ({global:!0,wrap:!0,forced:J1},{Promise:B1}),L$(B1,L1,!1),function(e){var t=pZ(`Promise`),n=GZ.f;XX&&t&&!t[R$]&&n(t,R$,{configurable:!0,get:function(){return this}})}(),j1=pZ(L1),CQ({target:L1,stat:!0,forced:J1},{reject:function(e){var t=G1(this);return QX(t.reject,void 0,e),t.promise}}),CQ({target:L1,stat:!0,forced:J1},{resolve:function(e){return function(e,t){if(UZ(e),fZ(t)&&t.constructor===e)return t;var n=P1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),CQ({target:L1,stat:!0,forced:vSe},{all:function(e){var t=this,n=G1(t),r=n.resolve,i=n.reject,a=F1((function(){var n=TZ(t.resolve),a=[],o=0,s=1;G$(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=G1(t),r=n.reject,i=F1((function(){var i=TZ(t.resolve);G$(e,(function(e){QX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var xSe=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=r0(),this.posterInputId=r0(),this.buttonId=r0()}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(dM(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=UX(dM(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=K(c),p=K(d),m=UX(fM(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,n0(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}(),SSe=aZ([].join),CSe=cZ!=Object,wSe=function(e,t){var n=[].join;return!!n&&YX((function(){n.call(null,`,`,1)}))}();CQ({target:`Array`,proto:!0,forced:CSe||!wSe},{join:function(e){return SSe(uZ(this),e===void 0?`,`:e)}});var i0,a0,o0,TSe=!YX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),s0=eQ(`IE_PROTO`),c0=Q.Object,ESe=c0.prototype,l0=TSe?c0.getPrototypeOf:function(e){var t=AZ(e);if(jZ(t,s0))return t[s0];var n=t.constructor;return dZ(n)&&t instanceof n?n.prototype:t instanceof c0?ESe:null},u0=IZ(`iterator`),d0=!1;[].keys&&(`next`in(o0=[].keys())?(a0=l0(l0(o0)))!==Object.prototype&&(i0=a0):d0=!0),(i0==null||YX((function(){var e={};return i0[u0].call(e)!==e})))&&(i0={}),dZ(i0[u0])||uQ(i0,u0,(function(){return this}));var f0={IteratorPrototype:i0,BUGGY_SAFARI_ITERATORS:d0},DSe=f0.IteratorPrototype,OSe=function(){return this},kSe=lQ.PROPER,ASe=lQ.CONFIGURABLE,p0=f0.IteratorPrototype,m0=f0.BUGGY_SAFARI_ITERATORS,h0=IZ(`iterator`),jSe=function(){return this},g0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=VQ(DSe,{next:tZ(1,n)}),L$(e,i,!1),B$[i]=OSe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!m0&&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[h0]||p[`@@iterator`]||i&&p[i],h=!m0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=l0(g.call(new e)))!==Object.prototype&&s.next&&(l0(s)!==p0&&(F$?F$(s,p0):dZ(s[h0])||uQ(s,h0,jSe)),L$(s,d,!0)),kSe&&i==`values`&&m&&m.name!==`values`&&(ASe?KZ(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)(m0||f||!(l in p))&&uQ(p,l,c[l]);else CQ({target:t,proto:!0,forced:m0||f},c);return p[h0]!==h&&uQ(p,h0,h,{name:i}),B$[t]=h,c},MSe=oQ.set,NSe=oQ.getterFor(`Array Iterator`),_0=g0(Array,`Array`,(function(e,t){MSe(this,{type:`Array Iterator`,target:uZ(e),index:0,kind:t})}),(function(){var e=NSe(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`);B$.Arguments=B$.Array,WQ(`keys`),WQ(`values`),WQ(`entries`);var PSe=w$.charAt,FSe=oQ.set,ISe=oQ.getterFor(`String Iterator`);g0(String,`String`,(function(e){FSe(this,{type:`String Iterator`,string:DQ(e),index:0})}),(function(){var e,t=ISe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=PSe(n,r),t.index+=e.length,{value:e,done:!1})}));var v0=function(e,t,n){var r=LZ(t);r in e?GZ.f(e,r,tZ(0,n)):e[r]=n},LSe=Q.Array,RSe=Math.max,y0=bQ.f,b0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zSe={f:function(e){return b0&&oZ(e)==`Window`?function(e){try{return y0(e)}catch{return function(e,t,n){for(var r=mQ(e),i=fQ(void 0,r),a=fQ(r,r),o=LSe(RSe(a-i,0)),s=0;i<a;i++,s++)v0(o,s,e[i]);return o.length=s,o}(b0)}}(e):y0(uZ(e))}},x0=YX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),S0=Object.isExtensible,C0=YX((function(){S0(1)}))||x0?function(e){return!!fZ(e)&&(!x0||oZ(e)!=`ArrayBuffer`)&&(!S0||S0(e))}:S0,BSe=!YX((function(){return Object.isExtensible(Object.preventExtensions({}))})),w0=GX((function(e){var t=GZ.f,n=!1,r=MZ(`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=bQ.f,t=aZ([].splice),i={};i[r]=1,e(i).length&&(bQ.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},CQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:zSe.f}))},fastKey:function(e,t){if(!fZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!jZ(e,r)){if(!C0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!jZ(e,r)){if(!C0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return BSe&&n&&C0(e)&&!jZ(e,r)&&a(e),e}};tQ[r]=!0})),T0=w0.getWeakData,VSe=oQ.set,HSe=oQ.getterFor,USe=n$.find,WSe=n$.findIndex,GSe=aZ([].splice),KSe=0,E0=function(e){return e.frozen||=new D0},D0=function(){this.entries=[]},O0=function(e,t){return USe(e.entries,(function(e){return e[0]===t}))};D0.prototype={get:function(e){var t=O0(this,e);if(t)return t[1]},has:function(e){return!!O0(this,e)},set:function(e,t){var n=O0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WSe(this.entries,(function(t){return t[0]===e}));return~t&&GSe(this.entries,t,1),!!~t}};var k0,A0={getConstructor:function(e,t,n,r){var i=e((function(e,i){z$(e,a),VSe(e,{type:t,id:KSe++,frozen:void 0}),i!=null&&G$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=HSe(t),s=function(e,t,n){var r=o(e),i=T0(UZ(t),!0);return!0===i?E0(r).set(t,n):i[r.id]=n,e};return P$(a,{delete:function(e){var t=o(this);if(!fZ(e))return!1;var n=T0(e);return!0===n?E0(t).delete(e):n&&jZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!fZ(e))return!1;var n=T0(e);return!0===n?E0(t).has(e):n&&jZ(n,t.id)}}),P$(a,n?{get:function(e){var t=o(this);if(fZ(e)){var n=T0(e);return!0===n?E0(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}},j0=oQ.enforce,qSe=!Q.ActiveXObject&&`ActiveXObject`in Q,M0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},JSe=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]);uQ(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(SQ(e,!dZ(o)||!(i||s.forEach&&!YX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),w0.enable();else if(SQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=YX((function(){d.has(1)})),m=$$((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){z$(e,s);var n=function(e,t,n){var r,i;return F$&&dZ(r=t.constructor)&&r!==n&&fZ(i=r.prototype)&&i!==n.prototype&&F$(e,i),e}(new o,e,c);return t!=null&&G$(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,CQ({global:!0,forced:c!=o},l),L$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,M0,A0);if(QZ&&qSe){k0=A0.getConstructor(M0,`WeakMap`,!0),w0.enable();var N0=JSe.prototype,P0=aZ(N0.delete),F0=aZ(N0.has),I0=aZ(N0.get),L0=aZ(N0.set);P$(N0,{delete:function(e){if(fZ(e)&&!C0(e)){var t=j0(this);return t.frozen||=new k0,P0(this,e)||t.frozen.delete(e)}return P0(this,e)},has:function(e){if(fZ(e)&&!C0(e)){var t=j0(this);return t.frozen||=new k0,F0(this,e)||t.frozen.has(e)}return F0(this,e)},get:function(e){if(fZ(e)&&!C0(e)){var t=j0(this);return t.frozen||=new k0,F0(this,e)?I0(this,e):t.frozen.get(e)}return I0(this,e)},set:function(e,t){if(fZ(e)&&!C0(e)){var n=j0(this);n.frozen||=new k0,F0(this,e)?L0(this,e,t):n.frozen.set(e,t)}else L0(this,e,t);return this}})}var R0={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},z0=zZ(`span`).classList,B0=z0&&z0.constructor&&z0.constructor.prototype,YSe=B0===Object.prototype?void 0:B0,V0=IZ(`iterator`),H0=IZ(`toStringTag`),U0=_0.values,W0=function(e,t){if(e){if(e[V0]!==U0)try{KZ(e,V0,U0)}catch{e[V0]=U0}if(e[H0]||KZ(e,H0,t),R0[t]){for(var n in _0)if(e[n]!==_0[n])try{KZ(e,n,_0[n])}catch{e[n]=_0[n]}}}};for(var G0 in R0)W0(Q[G0]&&Q[G0].prototype,G0);W0(YSe,`DOMTokenList`);var XSe=lQ.EXISTS,ZSe=GZ.f,K0=Function.prototype,QSe=aZ(K0.toString),q0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$Se=aZ(q0.exec);XX&&!XSe&&ZSe(K0,`name`,{configurable:!0,get:function(){try{return $Se(q0,QSe(this))[1]}catch{return``}}});var eCe=IZ(`species`),tCe=bZ>=51||!YX((function(){var e=[];return(e.constructor={})[eCe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),nCe=IZ(`species`),J0=Q.Array,rCe=Math.max;function Y0(e){return e.getMenuConfig(`uploadVideo`)}CQ({target:`Array`,proto:!0,forced:!tCe},{slice:function(e,t){var n,r,i,a=uZ(this),o=mQ(a),s=fQ(e,o),c=fQ(t===void 0?o:t,o);if(qQ(a)&&(n=a.constructor,(QQ(n)&&(n===J0||qQ(n.prototype))||fZ(n)&&(n=n[nCe])===null)&&(n=void 0),n===J0||n===void 0))return e1(a,s,c);for(r=new(n===void 0?J0:n)(rCe(c-s,0)),i=0;s<c;s++,i++)s in a&&v0(r,i,a[s]);return r.length=i,r}});var X0=new WeakMap;function iCe(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=X0.get(e);if(t!=null)return t;var n=Y0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=bM(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 n0(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;n0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),X0.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 aCe=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 n0(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=Y0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=ibe(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 n0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,iCe(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}(),oCe=lQ.PROPER,Z0=RegExp.prototype,Q0=Z0.toString,sCe=aZ(s$),cCe=YX((function(){return Q0.call({source:`a`,flags:`b`})!=`/a/b`})),lCe=oCe&&Q0.name!=`toString`;function $0(){return M$(`w-e-insert-video`)}(cCe||lCe)&&uQ(RegExp.prototype,`toString`,(function(){var e=UZ(this),t=DQ(e.source),n=e.flags;return`/`+t+`/`+DQ(n===void 0&&mZ(Z0,e)&&!(`flags`in Z0)?sCe(e):n)}),{unsafe:!0});var uCe=function(){function e(){this.title=Z(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=$0(),this.heightInputId=$0(),this.buttonId=$0()}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(dM(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=K(a[1]),c=UX(dM(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=K(c[1]),d=UX(fM(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}(),dCe={renderElems:[oxe],elemsToHtml:[sxe],preParseHtml:[dxe],parseElemsHtml:[yxe],menus:[{key:`insertVideo`,factory:function(){return new xSe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new aCe},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 uCe}}],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}};XM(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),XM(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var e2=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t2(e){var t={exports:{}};return e(t,t.exports),t.exports}var n2,r2,i2=function(e){return e&&e.Math==Math&&e},$=i2(typeof globalThis==`object`&&globalThis)||i2(typeof window==`object`&&window)||i2(typeof self==`object`&&self)||i2(typeof e2==`object`&&e2)||function(){return this}()||Function(`return this`)(),a2=function(e){try{return!!e()}catch{return!0}},o2=!a2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),s2=Function.prototype.call,c2=s2.bind?s2.bind(s2):function(){return s2.apply(s2,arguments)},l2={}.propertyIsEnumerable,u2=Object.getOwnPropertyDescriptor,fCe={f:u2&&!l2.call({1:2},1)?function(e){var t=u2(this,e);return!!t&&t.enumerable}:l2},d2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f2=Function.prototype,p2=f2.bind,m2=f2.call,pCe=p2&&p2.bind(m2),h2=p2?function(e){return e&&pCe(m2,e)}:function(e){return e&&function(){return m2.apply(e,arguments)}},mCe=h2({}.toString),hCe=h2(``.slice),g2=function(e){return hCe(mCe(e),8,-1)},_2=$.Object,gCe=h2(``.split),v2=a2((function(){return!_2(`z`).propertyIsEnumerable(0)}))?function(e){return g2(e)==`String`?gCe(e,``):_2(e)}:_2,_Ce=$.TypeError,y2=function(e){if(e==null)throw _Ce(`Can't call method on `+e);return e},b2=function(e){return v2(y2(e))},x2=function(e){return typeof e==`function`},S2=function(e){return typeof e==`object`?e!==null:x2(e)},vCe=function(e){return x2(e)?e:void 0},C2=function(e,t){return arguments.length<2?vCe($[e]):$[e]&&$[e][t]},w2=h2({}.isPrototypeOf),T2=C2(`navigator`,`userAgent`)||``,E2=$.process,D2=$.Deno,O2=E2&&E2.versions||D2&&D2.version,k2=O2&&O2.v8;k2&&(r2=(n2=k2.split(`.`))[0]>0&&n2[0]<4?1:+(n2[0]+n2[1])),!r2&&T2&&(!(n2=T2.match(/Edge\/(\d+)/))||n2[1]>=74)&&(n2=T2.match(/Chrome\/(\d+)/))&&(r2=+n2[1]);var A2=r2,j2=!!Object.getOwnPropertySymbols&&!a2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A2&&A2<41})),M2=j2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,yCe=$.Object,N2=M2?function(e){return typeof e==`symbol`}:function(e){var t=C2(`Symbol`);return x2(t)&&w2(t.prototype,yCe(e))},bCe=$.String,P2=function(e){try{return bCe(e)}catch{return`Object`}},xCe=$.TypeError,F2=function(e){if(x2(e))return e;throw xCe(P2(e)+` is not a function`)},I2=function(e,t){var n=e[t];return n==null?void 0:F2(n)},SCe=$.TypeError,CCe=Object.defineProperty,L2=function(e,t){try{CCe($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},R2=$[`__core-js_shared__`]||L2(`__core-js_shared__`,{}),z2=t2((function(e){(e.exports=function(e,t){return R2[e]||(R2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),wCe=$.Object,B2=function(e){return wCe(y2(e))},TCe=h2({}.hasOwnProperty),V2=Object.hasOwn||function(e,t){return TCe(B2(e),t)},ECe=0,DCe=Math.random(),OCe=h2(1 .toString),H2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+OCe(++ECe+DCe,36)},U2=z2(`wks`),W2=$.Symbol,G2=W2&&W2.for,kCe=M2?W2:W2&&W2.withoutSetter||H2,K2=function(e){if(!V2(U2,e)||!j2&&typeof U2[e]!=`string`){var t=`Symbol.`+e;j2&&V2(W2,e)?U2[e]=W2[e]:U2[e]=M2&&G2?G2(t):kCe(t)}return U2[e]},ACe=$.TypeError,jCe=K2(`toPrimitive`),q2=function(e){var t=function(e,t){if(!S2(e)||N2(e))return e;var n,r=I2(e,jCe);if(r){if(t===void 0&&(t=`default`),n=c2(r,e,t),!S2(n)||N2(n))return n;throw ACe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&x2(n=e.toString)&&!S2(r=c2(n,e))||x2(n=e.valueOf)&&!S2(r=c2(n,e))||t!==`string`&&x2(n=e.toString)&&!S2(r=c2(n,e)))return r;throw SCe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return N2(t)?t:t+``},J2=$.document,MCe=S2(J2)&&S2(J2.createElement),Y2=function(e){return MCe?J2.createElement(e):{}},X2=!o2&&!a2((function(){return Object.defineProperty(Y2(`div`),`a`,{get:function(){return 7}}).a!=7})),Z2=Object.getOwnPropertyDescriptor,Q2={f:o2?Z2:function(e,t){if(e=b2(e),t=q2(t),X2)try{return Z2(e,t)}catch{}if(V2(e,t))return d2(!c2(fCe.f,e,t),e[t])}},NCe=$.String,PCe=$.TypeError,$2=function(e){if(S2(e))return e;throw PCe(NCe(e)+` is not an object`)},FCe=$.TypeError,e4=Object.defineProperty,t4={f:o2?e4:function(e,t,n){if($2(e),t=q2(t),$2(n),X2)try{return e4(e,t,n)}catch{}if(`get`in n||`set`in n)throw FCe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},n4=o2?function(e,t,n){return t4.f(e,t,d2(1,n))}:function(e,t,n){return e[t]=n,e},ICe=h2(Function.toString);x2(R2.inspectSource)||(R2.inspectSource=function(e){return ICe(e)});var r4,i4,a4,o4=R2.inspectSource,s4=$.WeakMap,c4=x2(s4)&&/native code/.test(o4(s4)),l4=z2(`keys`),u4=function(e){return l4[e]||(l4[e]=H2(e))},d4={},f4=$.TypeError,LCe=$.WeakMap;if(c4||R2.state){var p4=R2.state||=new LCe,RCe=h2(p4.get),m4=h2(p4.has),zCe=h2(p4.set);r4=function(e,t){if(m4(p4,e))throw new f4(`Object already initialized`);return t.facade=e,zCe(p4,e,t),t},i4=function(e){return RCe(p4,e)||{}},a4=function(e){return m4(p4,e)}}else{var h4=u4(`state`);d4[h4]=!0,r4=function(e,t){if(V2(e,h4))throw new f4(`Object already initialized`);return t.facade=e,n4(e,h4,t),t},i4=function(e){return V2(e,h4)?e[h4]:{}},a4=function(e){return V2(e,h4)}}var g4={set:r4,get:i4,has:a4,enforce:function(e){return a4(e)?i4(e):r4(e,{})},getterFor:function(e){return function(t){var n;if(!S2(t)||(n=i4(t)).type!==e)throw f4(`Incompatible receiver, `+e+` required`);return n}}},_4=Function.prototype,BCe=o2&&Object.getOwnPropertyDescriptor,v4=V2(_4,`name`),y4={EXISTS:v4,PROPER:v4&&function(){}.name===`something`,CONFIGURABLE:v4&&(!o2||o2&&BCe(_4,`name`).configurable)},b4=t2((function(e){var t=y4.CONFIGURABLE,n=g4.get,r=g4.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;x2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!V2(a,`name`)||t&&a.name!==d)&&n4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:L2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:n4(e,n,a))})(Function.prototype,`toString`,(function(){return x2(this)&&n(this).source||o4(this)}))})),VCe=Math.ceil,HCe=Math.floor,x4=function(e){var t=+e;return t!=t||t===0?0:(t>0?HCe:VCe)(t)},UCe=Math.max,WCe=Math.min,S4=function(e,t){var n=x4(e);return n<0?UCe(n+t,0):WCe(n,t)},GCe=Math.min,C4=function(e){return e>0?GCe(x4(e),9007199254740991):0},w4=function(e){return C4(e.length)},KCe=function(e){return function(t,n,r){var i,a=b2(t),o=w4(a),s=S4(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),T4=h2([].push),E4=function(e,t){var n,r=b2(e),i=0,a=[];for(n in r)!V2(d4,n)&&V2(r,n)&&T4(a,n);for(;t.length>i;)V2(r,n=t[i++])&&(~KCe(a,n)||T4(a,n));return a},D4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],qCe=D4.concat(`length`,`prototype`),O4={f:Object.getOwnPropertyNames||function(e){return E4(e,qCe)}},JCe={f:Object.getOwnPropertySymbols},YCe=h2([].concat),XCe=C2(`Reflect`,`ownKeys`)||function(e){var t=O4.f($2(e)),n=JCe.f;return n?YCe(t,n(e)):t},ZCe=function(e,t){for(var n=XCe(t),r=t4.f,i=Q2.f,a=0;a<n.length;a++){var o=n[a];V2(e,o)||r(e,o,i(t,o))}},QCe=/#|\.prototype\./,k4=function(e,t){var n=ewe[$Ce(e)];return n==nwe||n!=twe&&(x2(t)?a2(t):!!t)},$Ce=k4.normalize=function(e){return String(e).replace(QCe,`.`).toLowerCase()},ewe=k4.data={},twe=k4.NATIVE=`N`,nwe=k4.POLYFILL=`P`,A4=k4,rwe=Q2.f,j4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||L2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=rwe(n,r))&&o.value:n[r],!A4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ZCe(a,i)}(e.sham||i&&i.sham)&&n4(a,`sham`,!0),b4(n,r,a,e)}},M4=Array.isArray||function(e){return g2(e)==`Array`},N4={};N4[K2(`toStringTag`)]=`z`;var P4=String(N4)===`[object z]`,iwe=K2(`toStringTag`),awe=$.Object,owe=g2(function(){return arguments}())==`Arguments`,F4=P4?g2: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=awe(e),iwe))==`string`?n:owe?g2(t):(r=g2(t))==`Object`&&x2(t.callee)?`Arguments`:r},I4=function(){},swe=[],L4=C2(`Reflect`,`construct`),R4=/^\s*(?:class|function)\b/,cwe=h2(R4.exec),lwe=!R4.exec(I4),z4=function(e){if(!x2(e))return!1;try{return L4(I4,swe,e),!0}catch{return!1}},B4=!L4||a2((function(){var e;return z4(z4.call)||!z4(Object)||!z4((function(){e=!0}))||e}))?function(e){if(!x2(e))return!1;switch(F4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return lwe||!!cwe(R4,o4(e))}:z4,V4=function(e,t,n){var r=q2(t);r in e?t4.f(e,r,d2(0,n)):e[r]=n},uwe=K2(`species`),H4=h2([].slice),dwe=A2>=51||!a2((function(){var e=[];return(e.constructor={})[uwe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),fwe=K2(`species`),U4=$.Array,pwe=Math.max;j4({target:`Array`,proto:!0,forced:!dwe},{slice:function(e,t){var n,r,i,a=b2(this),o=w4(a),s=S4(e,o),c=S4(t===void 0?o:t,o);if(M4(a)&&(n=a.constructor,(B4(n)&&(n===U4||M4(n.prototype))||S2(n)&&(n=n[fwe])===null)&&(n=void 0),n===U4||n===void 0))return H4(a,s,c);for(r=new(n===void 0?U4:n)(pwe(c-s,0)),i=0;s<c;s++,i++)s in a&&V4(r,i,a[s]);return r.length=i,r}});var mwe=P4?{}.toString:function(){return`[object `+F4(this)+`]`};P4||b4(Object.prototype,`toString`,mwe,{unsafe:!0});var W4,hwe=$.String,G4=function(e){if(F4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return hwe(e)},K4=function(){var e=$2(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},q4=$.RegExp,J4=a2((function(){var e=q4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),gwe=J4||a2((function(){return!q4(`a`,`y`).sticky})),Y4={BROKEN_CARET:J4||a2((function(){var e=q4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:gwe,UNSUPPORTED_Y:J4},_we=Object.keys||function(e){return E4(e,D4)},vwe=o2?Object.defineProperties:function(e,t){$2(e);for(var n,r=b2(t),i=_we(t),a=i.length,o=0;a>o;)t4.f(e,n=i[o++],r[n]);return e},X4=C2(`document`,`documentElement`),Z4=u4(`IE_PROTO`),Q4=function(){},$4=function(e){return`<script>`+e+`<\/script>`},e3=function(e){e.write($4(``)),e.close();var t=e.parentWindow.Object;return e=null,t},t3=function(){try{W4=new ActiveXObject(`htmlfile`)}catch{}var e,t;t3=typeof document<`u`?document.domain&&W4?e3(W4):((t=Y2(`iframe`)).style.display=`none`,X4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write($4(`document.F=Object`)),e.close(),e.F):e3(W4);for(var n=D4.length;n--;)delete t3.prototype[D4[n]];return t3()};d4[Z4]=!0;var n3,r3,i3=Object.create||function(e,t){var n;return e===null?n=t3():(Q4.prototype=$2(e),n=new Q4,Q4.prototype=null,n[Z4]=e),t===void 0?n:vwe(n,t)},ywe=$.RegExp,bwe=a2((function(){var e=ywe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),xwe=$.RegExp,Swe=a2((function(){var e=xwe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Cwe=g4.get,wwe=z2(`native-string-replace`,String.prototype.replace),a3=RegExp.prototype.exec,o3=a3,Twe=h2(``.charAt),Ewe=h2(``.indexOf),Dwe=h2(``.replace),s3=h2(``.slice),c3=(r3=/b*/g,c2(a3,n3=/a/,`a`),c2(a3,r3,`a`),n3.lastIndex!==0||r3.lastIndex!==0),l3=Y4.BROKEN_CARET,u3=/()??/.exec(``)[1]!==void 0;(c3||u3||l3||bwe||Swe)&&(o3=function(e){var t,n,r,i,a,o,s,c=this,l=Cwe(c),u=G4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=c2(o3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=l3&&c.sticky,m=c2(K4,c),h=c.source,g=0,_=u;if(p&&(m=Dwe(m,`y`,``),Ewe(m,`g`)===-1&&(m+=`g`),_=s3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Twe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),u3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),c3&&(r=c.lastIndex),i=c2(a3,p?n:c,_),p?i?(i.input=s3(i.input,g),i[0]=s3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:c3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),u3&&i&&i.length>1&&c2(wwe,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=i3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var d3=o3;j4({target:`RegExp`,proto:!0,forced:/./.exec!==d3},{exec:d3});var f3=Function.prototype,p3=f3.apply,Owe=f3.bind,m3=f3.call,h3=typeof Reflect==`object`&&Reflect.apply||(Owe?m3.bind(p3):function(){return m3.apply(p3,arguments)}),kwe=K2(`species`),g3=RegExp.prototype,Awe=K2(`match`),jwe=$.TypeError,Mwe=K2(`species`),_3=function(e,t){var n,r=$2(e).constructor;return r===void 0||(n=$2(r)[Mwe])==null?t:function(e){if(B4(e))return e;throw jwe(P2(e)+` is not a constructor`)}(n)},Nwe=h2(``.charAt),v3=h2(``.charCodeAt),Pwe=h2(``.slice),y3=function(e){return function(t,n){var r,i,a=G4(y2(t)),o=x4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=v3(a,o))<55296||r>56319||o+1===s||(i=v3(a,o+1))<56320||i>57343?e?Nwe(a,o):r:e?Pwe(a,o,o+2):i-56320+(r-55296<<10)+65536}},b3={codeAt:y3(!1),charAt:y3(!0)},Fwe=b3.charAt,Iwe=function(e,t,n){return t+(n?Fwe(e,t).length:1)},Lwe=$.Array,Rwe=Math.max,x3=function(e,t,n){for(var r=w4(e),i=S4(t,r),a=S4(n===void 0?r:n,r),o=Lwe(Rwe(a-i,0)),s=0;i<a;i++,s++)V4(o,s,e[i]);return o.length=s,o},zwe=$.TypeError,S3=function(e,t){var n=e.exec;if(x2(n)){var r=c2(n,e,t);return r!==null&&$2(r),r}if(g2(e)===`RegExp`)return c2(d3,e,t);throw zwe(`RegExp#exec called on incompatible receiver`)},C3=Y4.UNSUPPORTED_Y,Bwe=Math.min,w3=[].push,Vwe=h2(/./.exec),T3=h2(w3),E3=h2(``.slice);(function(e,t,n,r){var i=K2(e),a=!a2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!a2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[kwe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=h2(/./[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=G4(y2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!S2(r=e)||!((i=r[Awe])===void 0?g2(r)==`RegExp`:i))return c2(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=c2(d3,p,a))&&!((c=p.lastIndex)>f&&(T3(u,E3(a,f,s.index)),s.length>1&&s.index<a.length&&h3(w3,u,x3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&Vwe(p,``)||T3(u,``):T3(u,E3(a,f)),u.length>o?x3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:c2(t,this,e,n)}:t,[function(t,n){var i=y2(this),a=t==null?void 0:I2(t,e);return a?c2(a,t,i,n):c2(r,G4(i),t,n)},function(e,i){var a=$2(this),o=G4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=_3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(C3?`g`:`y`),d=new c(C3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return S3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=C3?0:m;var g,_=S3(d,C3?E3(o,m):o);if(_===null||(g=Bwe(C4(d.lastIndex+(C3?m:0)),o.length))===p)m=Iwe(o,m,l);else{if(T3(h,E3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(T3(h,_[v]),h.length===f)return h;m=p=g}}return T3(h,E3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=h2(e),c=t.exec;return c===d3||c===g3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));b4(String.prototype,e,c[0]),b4(g3,i,c[1])}r&&n4(g3[i],`sham`,!0)})(`split`,0,!!a2((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`})),C3);var D3=function(){return D3=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},D3.apply(this,arguments)};function O3(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 k3(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 Hwe(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 A3=K2(`unscopables`),j3=Array.prototype;j3[A3]??t4.f(j3,A3,{configurable:!0,value:i3(null)});var M3,N3,P3,F3=function(e){j3[A3][e]=!0},I3={},Uwe=!a2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),L3=u4(`IE_PROTO`),R3=$.Object,Wwe=R3.prototype,z3=Uwe?R3.getPrototypeOf:function(e){var t=B2(e);if(V2(t,L3))return t[L3];var n=t.constructor;return x2(n)&&t instanceof n?n.prototype:t instanceof R3?Wwe:null},B3=K2(`iterator`),V3=!1;[].keys&&(`next`in(P3=[].keys())?(N3=z3(z3(P3)))!==Object.prototype&&(M3=N3):V3=!0),(M3==null||a2((function(){var e={};return M3[B3].call(e)!==e})))&&(M3={}),x2(M3[B3])||b4(M3,B3,(function(){return this}));var H3={IteratorPrototype:M3,BUGGY_SAFARI_ITERATORS:V3},Gwe=t4.f,U3=K2(`toStringTag`),W3=function(e,t,n){e&&!V2(e=n?e:e.prototype,U3)&&Gwe(e,U3,{configurable:!0,value:t})},Kwe=H3.IteratorPrototype,qwe=function(){return this},Jwe=$.String,Ywe=$.TypeError,G3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=h2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return $2(n),function(e){if(typeof e==`object`||x2(e))return e;throw Ywe(`Can't set `+Jwe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Xwe=y4.PROPER,Zwe=y4.CONFIGURABLE,K3=H3.IteratorPrototype,q3=H3.BUGGY_SAFARI_ITERATORS,J3=K2(`iterator`),Qwe=function(){return this},Y3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=i3(Kwe,{next:d2(1,n)}),W3(e,i,!1),I3[i]=qwe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!q3&&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[J3]||p[`@@iterator`]||i&&p[i],h=!q3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=z3(g.call(new e)))!==Object.prototype&&s.next&&(z3(s)!==K3&&(G3?G3(s,K3):x2(s[J3])||b4(s,J3,Qwe)),W3(s,d,!0)),Xwe&&i==`values`&&m&&m.name!==`values`&&(Zwe?n4(p,`name`,`values`):(f=!0,h=function(){return c2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(q3||f||!(l in p))&&b4(p,l,c[l]);else j4({target:t,proto:!0,forced:q3||f},c);return p[J3]!==h&&b4(p,J3,h,{name:i}),I3[t]=h,c},$we=g4.set,eTe=g4.getterFor(`Array Iterator`),X3=Y3(Array,`Array`,(function(e,t){$we(this,{type:`Array Iterator`,target:b2(e),index:0,kind:t})}),(function(){var e=eTe(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`);I3.Arguments=I3.Array,F3(`keys`),F3(`values`),F3(`entries`);var tTe=b3.charAt,nTe=g4.set,rTe=g4.getterFor(`String Iterator`);Y3(String,`String`,(function(e){nTe(this,{type:`String Iterator`,string:G4(e),index:0})}),(function(){var e,t=rTe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tTe(n,r),t.index+=e.length,{value:e,done:!1})}));var Z3=function(e,t,n){for(var r in t)b4(e,r,t[r],n);return e},Q3=O4.f,$3=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iTe={f:function(e){return $3&&g2(e)==`Window`?function(e){try{return Q3(e)}catch{return x3($3)}}(e):Q3(b2(e))}},e6=a2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),t6=Object.isExtensible,n6=a2((function(){t6(1)}))||e6?function(e){return!!S2(e)&&(!e6||g2(e)!=`ArrayBuffer`)&&(!t6||t6(e))}:t6,aTe=!a2((function(){return Object.isExtensible(Object.preventExtensions({}))})),r6=t2((function(e){var t=t4.f,n=!1,r=H2(`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=O4.f,t=h2([].splice),i={};i[r]=1,e(i).length&&(O4.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},j4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:iTe.f}))},fastKey:function(e,t){if(!S2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!V2(e,r)){if(!n6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!V2(e,r)){if(!n6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return aTe&&n&&n6(e)&&!V2(e,r)&&a(e),e}};d4[r]=!0})),i6=h2(h2.bind),a6=function(e,t){return F2(e),t===void 0?e:i6?i6(e,t):function(){return e.apply(t,arguments)}},oTe=K2(`iterator`),sTe=Array.prototype,cTe=K2(`iterator`),o6=function(e){if(e!=null)return I2(e,cTe)||I2(e,`@@iterator`)||I3[F4(e)]},lTe=$.TypeError,s6=function(e,t,n){var r,i;$2(e);try{if(!(r=I2(e,`return`))){if(t===`throw`)throw n;return n}r=c2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return $2(r),n},uTe=$.TypeError,c6=function(e,t){this.stopped=e,this.result=t},l6=c6.prototype,u6=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=a6(t,d),g=function(e){return r&&s6(r,`normal`,e),new c6(!0,e)},_=function(e){return f?($2(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=o6(e)))throw uTe(P2(e)+` is not iterable`);if((u=i)!==void 0&&(I3.Array===u||sTe[oTe]===u)){for(a=0,o=w4(e);o>a;a++)if((s=_(e[a]))&&w2(l6,s))return s;return new c6(!1)}r=function(e,t){var n=arguments.length<2?o6(e):t;if(F2(n))return $2(c2(n,e));throw lTe(P2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=c2(c,r)).done;){try{s=_(l.value)}catch(e){s6(r,`throw`,e)}if(typeof s==`object`&&s&&w2(l6,s))return s}return new c6(!1)},dTe=$.TypeError,d6=function(e,t){if(w2(t,e))return e;throw dTe(`Incorrect invocation`)},f6=K2(`iterator`),p6=!1;try{var fTe=0,m6={next:function(){return{done:!!fTe++}},return:function(){p6=!0}};m6[f6]=function(){return this},Array.from(m6,(function(){throw 2}))}catch{}var h6=function(e,t){if(!t&&!p6)return!1;var n=!1;try{var r={};r[f6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},pTe=K2(`species`),g6=$.Array,mTe=function(e,t){return new(function(e){var t;return M4(e)&&(t=e.constructor,(B4(t)&&(t===g6||M4(t.prototype))||S2(t)&&(t=t[pTe])===null)&&(t=void 0)),t===void 0?g6:t}(e))(t===0?0:t)},_6=h2([].push),v6=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=B2(c),h=v2(m),g=a6(l,u),_=w4(h),v=0,y=d||mTe,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:_6(b,f)}else switch(e){case 4:return!1;case 7:_6(b,f)}return a?-1:r||i?i:b}},y6={forEach:v6(0),map:v6(1),filter:v6(2),some:v6(3),every:v6(4),find:v6(5),findIndex:v6(6),filterReject:v6(7)},b6=r6.getWeakData,hTe=g4.set,gTe=g4.getterFor,_Te=y6.find,vTe=y6.findIndex,yTe=h2([].splice),bTe=0,x6=function(e){return e.frozen||=new S6},S6=function(){this.entries=[]},C6=function(e,t){return _Te(e.entries,(function(e){return e[0]===t}))};S6.prototype={get:function(e){var t=C6(this,e);if(t)return t[1]},has:function(e){return!!C6(this,e)},set:function(e,t){var n=C6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vTe(this.entries,(function(t){return t[0]===e}));return~t&&yTe(this.entries,t,1),!!~t}};var w6,T6={getConstructor:function(e,t,n,r){var i=e((function(e,i){d6(e,a),hTe(e,{type:t,id:bTe++,frozen:void 0}),i!=null&&u6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=gTe(t),s=function(e,t,n){var r=o(e),i=b6($2(t),!0);return!0===i?x6(r).set(t,n):i[r.id]=n,e};return Z3(a,{delete:function(e){var t=o(this);if(!S2(e))return!1;var n=b6(e);return!0===n?x6(t).delete(e):n&&V2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!S2(e))return!1;var n=b6(e);return!0===n?x6(t).has(e):n&&V2(n,t.id)}}),Z3(a,n?{get:function(e){var t=o(this);if(S2(e)){var n=b6(e);return!0===n?x6(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}},E6=g4.enforce,xTe=!$.ActiveXObject&&`ActiveXObject`in $,D6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},STe=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=h2(s[e]);b4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!S2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!S2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!S2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(A4(e,!x2(o)||!(i||s.forEach&&!a2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),r6.enable();else if(A4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=a2((function(){d.has(1)})),m=h6((function(e){new o(e)})),h=!i&&a2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){d6(e,s);var n=function(e,t,n){var r,i;return G3&&x2(r=t.constructor)&&r!==n&&S2(i=r.prototype)&&i!==n.prototype&&G3(e,i),e}(new o,e,c);return t!=null&&u6(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,j4({global:!0,forced:c!=o},l),W3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,D6,T6);if(c4&&xTe){w6=T6.getConstructor(D6,`WeakMap`,!0),r6.enable();var O6=STe.prototype,k6=h2(O6.delete),A6=h2(O6.has),j6=h2(O6.get),M6=h2(O6.set);Z3(O6,{delete:function(e){if(S2(e)&&!n6(e)){var t=E6(this);return t.frozen||=new w6,k6(this,e)||t.frozen.delete(e)}return k6(this,e)},has:function(e){if(S2(e)&&!n6(e)){var t=E6(this);return t.frozen||=new w6,A6(this,e)||t.frozen.has(e)}return A6(this,e)},get:function(e){if(S2(e)&&!n6(e)){var t=E6(this);return t.frozen||=new w6,A6(this,e)?j6(this,e):t.frozen.get(e)}return j6(this,e)},set:function(e,t){if(S2(e)&&!n6(e)){var n=E6(this);n.frozen||=new w6,A6(this,e)?M6(this,e,t):n.frozen.set(e,t)}else M6(this,e,t);return this}})}var N6={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},P6=Y2(`span`).classList,F6=P6&&P6.constructor&&P6.constructor.prototype,I6=F6===Object.prototype?void 0:F6,L6=K2(`iterator`),R6=K2(`toStringTag`),z6=X3.values,B6=function(e,t){if(e){if(e[L6]!==z6)try{n4(e,L6,z6)}catch{e[L6]=z6}if(e[R6]||n4(e,R6,t),N6[t]){for(var n in X3)if(e[n]!==X3[n])try{n4(e,n,X3[n])}catch{e[n]=X3[n]}}}};for(var V6 in N6)B6($[V6]&&$[V6].prototype,V6);B6(I6,`DOMTokenList`);var H6=function(e,t){var n=[][e];return!!n&&a2((function(){n.call(null,t||function(){throw 1},1)}))},CTe=y6.forEach,U6=H6(`forEach`)?[].forEach:function(e){return CTe(this,e,arguments.length>1?arguments[1]:void 0)},W6=function(e){if(e&&e.forEach!==U6)try{n4(e,`forEach`,U6)}catch{e.forEach=U6}};for(var G6 in N6)N6[G6]&&W6($[G6]&&$[G6].prototype);W6(I6);var K6,q6,J6,Y6,X6=$.Promise,Z6=K2(`species`),Q6=/(?:ipad|iphone|ipod).*applewebkit/i.test(T2),$6=g2($.process)==`process`,e8=$.setImmediate,t8=$.clearImmediate,wTe=$.process,n8=$.Dispatch,TTe=$.Function,r8=$.MessageChannel,ETe=$.String,i8=0,a8={};try{K6=$.location}catch{}var o8=function(e){if(V2(a8,e)){var t=a8[e];delete a8[e],t()}},s8=function(e){return function(){o8(e)}},c8=function(e){o8(e.data)},l8=function(e){$.postMessage(ETe(e),K6.protocol+`//`+K6.host)};e8&&t8||(e8=function(e){var t=H4(arguments,1);return a8[++i8]=function(){h3(x2(e)?e:TTe(e),void 0,t)},q6(i8),i8},t8=function(e){delete a8[e]},$6?q6=function(e){wTe.nextTick(s8(e))}:n8&&n8.now?q6=function(e){n8.now(s8(e))}:r8&&!Q6?(Y6=(J6=new r8).port2,J6.port1.onmessage=c8,q6=a6(Y6.postMessage,Y6)):$.addEventListener&&x2($.postMessage)&&!$.importScripts&&K6&&K6.protocol!==`file:`&&!a2(l8)?(q6=l8,$.addEventListener(`message`,c8,!1)):q6=`onreadystatechange`in Y2(`script`)?function(e){X4.appendChild(Y2(`script`)).onreadystatechange=function(){X4.removeChild(this),o8(e)}}:function(e){setTimeout(s8(e),0)});var u8,d8,f8,p8,m8,h8,g8,_8,v8={set:e8,clear:t8},DTe=/ipad|iphone|ipod/i.test(T2)&&$.Pebble!==void 0,OTe=/web0s(?!.*chrome)/i.test(T2),kTe=Q2.f,y8=v8.set,b8=$.MutationObserver||$.WebKitMutationObserver,x8=$.document,S8=$.process,C8=$.Promise,w8=kTe($,`queueMicrotask`),T8=w8&&w8.value;T8||(u8=function(){var e,t;for($6&&(e=S8.domain)&&e.exit();d8;){t=d8.fn,d8=d8.next;try{t()}catch(e){throw d8?p8():f8=void 0,e}}f8=void 0,e&&e.enter()},Q6||$6||OTe||!b8||!x8?!DTe&&C8&&C8.resolve?((g8=C8.resolve(void 0)).constructor=C8,_8=a6(g8.then,g8),p8=function(){_8(u8)}):$6?p8=function(){S8.nextTick(u8)}:(y8=a6(y8,$),p8=function(){y8(u8)}):(m8=!0,h8=x8.createTextNode(``),new b8(u8).observe(h8,{characterData:!0}),p8=function(){h8.data=m8=!m8}));var E8,D8,O8,k8,A8=T8||function(e){var t={fn:e,next:void 0};f8&&(f8.next=t),d8||(d8=t,p8()),f8=t},ATe=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=F2(t),this.reject=F2(n)},j8={f:function(e){return new ATe(e)}},M8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jTe=typeof window==`object`,N8=v8.set,MTe=K2(`species`),P8=`Promise`,F8=g4.getterFor(P8),NTe=g4.set,PTe=g4.getterFor(P8),I8=X6&&X6.prototype,L8=X6,R8=I8,z8=$.TypeError,B8=$.document,V8=$.process,H8=j8.f,FTe=H8,ITe=!!(B8&&B8.createEvent&&$.dispatchEvent),U8=x2($.PromiseRejectionEvent),W8=!1,G8=A4(P8,(function(){var e=o4(L8),t=e!==String(L8);if(!t&&A2===66)return!0;if(A2>=51&&/native code/.test(e))return!1;var n=new L8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[MTe]=r,!(W8=n.then((function(){}))instanceof r)||!t&&jTe&&!U8})),LTe=G8||!h6((function(e){L8.all(e).catch((function(){}))})),K8=function(e){var t;return!(!S2(e)||!x2(t=e.then))&&t},q8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;A8((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&&zTe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(z8(`Promise-chain cycle`)):(s=K8(o))?c2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&RTe(e)}))}},J8=function(e,t,n){var r,i;ITe?((r=B8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!U8&&(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)},RTe=function(e){c2(N8,$,(function(){var t,n=e.facade,r=e.value;if(Y8(e)&&(t=M8((function(){$6?V8.emit(`unhandledRejection`,r,n):J8(`unhandledrejection`,n,r)})),e.rejection=$6||Y8(e)?2:1,t.error))throw t.value}))},Y8=function(e){return e.rejection!==1&&!e.parent},zTe=function(e){c2(N8,$,(function(){var t=e.facade;$6?V8.emit(`rejectionHandled`,t):J8(`rejectionhandled`,t,e.value)}))},X8=function(e,t,n){return function(r){e(t,r,n)}},Z8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q8(e,!0))},Q8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z8(`Promise can't be resolved itself`);var r=K8(t);r?A8((function(){var n={done:!1};try{c2(r,t,X8(Q8,n,e),X8(Z8,n,e))}catch(t){Z8(n,t,e)}})):(e.value=t,e.state=1,q8(e,!1))}catch(t){Z8({done:!1},t,e)}}};if(G8&&(R8=(L8=function(e){d6(this,R8),F2(e),c2(E8,this);var t=F8(this);try{e(X8(Q8,t),X8(Z8,t))}catch(e){Z8(t,e)}}).prototype,(E8=function(e){NTe(this,{type:P8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Z3(R8,{then:function(e,t){var n=PTe(this),r=n.reactions,i=H8(_3(this,L8));return i.ok=!x2(e)||e,i.fail=x2(t)&&t,i.domain=$6?V8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&q8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),D8=function(){var e=new E8,t=F8(e);this.promise=e,this.resolve=X8(Q8,t),this.reject=X8(Z8,t)},j8.f=H8=function(e){return e===L8||e===O8?new D8(e):FTe(e)},x2(X6)&&I8!==Object.prototype)){k8=I8.then,W8||(b4(I8,`then`,(function(e,t){var n=this;return new L8((function(e,t){c2(k8,n,e,t)})).then(e,t)}),{unsafe:!0}),b4(I8,`catch`,R8.catch,{unsafe:!0}));try{delete I8.constructor}catch{}G3&&G3(I8,R8)}j4({global:!0,wrap:!0,forced:G8},{Promise:L8}),W3(L8,P8,!1),function(e){var t=C2(`Promise`),n=t4.f;o2&&t&&!t[Z6]&&n(t,Z6,{configurable:!0,get:function(){return this}})}(),O8=C2(P8),j4({target:P8,stat:!0,forced:G8},{reject:function(e){var t=H8(this);return c2(t.reject,void 0,e),t.promise}}),j4({target:P8,stat:!0,forced:G8},{resolve:function(e){return function(e,t){if($2(e),S2(t)&&t.constructor===e)return t;var n=j8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),j4({target:P8,stat:!0,forced:LTe},{all:function(e){var t=this,n=H8(t),r=n.resolve,i=n.reject,a=M8((function(){var n=F2(t.resolve),a=[],o=0,s=1;u6(e,(function(e){var c=o++,l=!1;s++,c2(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=H8(t),r=n.reject,i=M8((function(){var i=F2(t.resolve);u6(e,(function(e){c2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var BTe=y4.PROPER,$8=RegExp.prototype,e5=$8.toString,VTe=h2(K4),HTe=a2((function(){return e5.call({source:`a`,flags:`b`})!=`/a/b`})),UTe=BTe&&e5.name!=`toString`;(HTe||UTe)&&b4(RegExp.prototype,`toString`,(function(){var e=$2(this),t=G4(e.source),n=e.flags;return`/`+t+`/`+G4(n===void 0&&w2($8,e)&&!(`flags`in $8)?VTe(e):n)}),{unsafe:!0});var WTe=y4.EXISTS,GTe=t4.f,t5=Function.prototype,KTe=h2(t5.toString),n5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,qTe=h2(n5.exec);o2&&!WTe&&GTe(t5,`name`,{configurable:!0,get:function(){try{return qTe(n5,KTe(this))[1]}catch{return``}}});var r5=new WeakMap;function i5(e){return e.getMenuConfig(`uploadImage`)}function JTe(e,t){return O3(this,void 0,void 0,(function(){return k3(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;rR(e,a,t.name,o),n(`ok`)}}}))]}))}))}function YTe(e,t){return O3(this,void 0,void 0,(function(){var n,r,i,a;return k3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=r5.get(e);if(t!=null)return t;var n=i5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=bM(D3(D3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return rR(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;rR(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;rR(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),r5.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 a5(e,t){var n,r;return O3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return k3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=i5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=Hwe(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,JTe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return rR(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,YTe(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 XTe=h2([].join),ZTe=v2!=Object,QTe=H6(`join`,`,`);j4({target:`Array`,proto:!0,forced:ZTe||!QTe},{join:function(e){return XTe(b2(this),e===void 0?`,`:e)}}),Ly&&(K.fn.append=Ly),wy&&(K.fn.on=wy),Uy&&(K.fn.remove=Uy),Cy&&(K.fn.val=Cy),qy&&(K.fn.click=qy),ky&&(K.fn.hide=ky);var $Te=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 iR(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 rR(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;a5(e,t)}))}},e}(),eEe={menus:[{key:`uploadImage`,factory:function(){return new $Te},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(iR(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`}))?a5(e,i):t(r)}},n}};XM(`en`,{highLightModule:{selectLang:`Language`}}),XM(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var o5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function s5(e){var t={exports:{}};return e(t,t.exports),t.exports}var c5,l5,u5=function(e){return e&&e.Math==Math&&e},d5=u5(typeof globalThis==`object`&&globalThis)||u5(typeof window==`object`&&window)||u5(typeof self==`object`&&self)||u5(typeof o5==`object`&&o5)||function(){return this}()||Function(`return this`)(),tEe=Object.defineProperty,f5=function(e,t){try{tEe(d5,e,{value:t,configurable:!0,writable:!0})}catch{d5[e]=t}return t},p5=d5[`__core-js_shared__`]||f5(`__core-js_shared__`,{}),m5=s5((function(e){(e.exports=function(e,t){return p5[e]||(p5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),h5=Function.prototype,g5=h5.bind,_5=h5.call,nEe=g5&&g5.bind(_5),v5=g5?function(e){return e&&nEe(_5,e)}:function(e){return e&&function(){return _5.apply(e,arguments)}},rEe=d5.TypeError,y5=function(e){if(e==null)throw rEe(`Can't call method on `+e);return e},iEe=d5.Object,b5=function(e){return iEe(y5(e))},aEe=v5({}.hasOwnProperty),x5=Object.hasOwn||function(e,t){return aEe(b5(e),t)},oEe=0,sEe=Math.random(),cEe=v5(1 .toString),S5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+cEe(++oEe+sEe,36)},C5=function(e){return typeof e==`function`},lEe=function(e){return C5(e)?e:void 0},w5=function(e,t){return arguments.length<2?lEe(d5[e]):d5[e]&&d5[e][t]},T5=w5(`navigator`,`userAgent`)||``,E5=d5.process,D5=d5.Deno,O5=E5&&E5.versions||D5&&D5.version,k5=O5&&O5.v8;k5&&(l5=(c5=k5.split(`.`))[0]>0&&c5[0]<4?1:+(c5[0]+c5[1])),!l5&&T5&&(!(c5=T5.match(/Edge\/(\d+)/))||c5[1]>=74)&&(c5=T5.match(/Chrome\/(\d+)/))&&(l5=+c5[1]);var A5=l5,j5=function(e){try{return!!e()}catch{return!0}},M5=!!Object.getOwnPropertySymbols&&!j5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A5&&A5<41})),N5=M5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,P5=m5(`wks`),F5=d5.Symbol,I5=F5&&F5.for,uEe=N5?F5:F5&&F5.withoutSetter||S5,L5=function(e){if(!x5(P5,e)||!M5&&typeof P5[e]!=`string`){var t=`Symbol.`+e;M5&&x5(F5,e)?P5[e]=F5[e]:P5[e]=N5&&I5?I5(t):uEe(t)}return P5[e]},R5={};R5[L5(`toStringTag`)]=`z`;var z5=String(R5)===`[object z]`,B5=!j5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),V5=function(e){return typeof e==`object`?e!==null:C5(e)},H5=d5.document,dEe=V5(H5)&&V5(H5.createElement),U5=function(e){return dEe?H5.createElement(e):{}},W5=!B5&&!j5((function(){return Object.defineProperty(U5(`div`),`a`,{get:function(){return 7}}).a!=7})),fEe=d5.String,pEe=d5.TypeError,G5=function(e){if(V5(e))return e;throw pEe(fEe(e)+` is not an object`)},K5=Function.prototype.call,q5=K5.bind?K5.bind(K5):function(){return K5.apply(K5,arguments)},J5=v5({}.isPrototypeOf),mEe=d5.Object,Y5=N5?function(e){return typeof e==`symbol`}:function(e){var t=w5(`Symbol`);return C5(t)&&J5(t.prototype,mEe(e))},hEe=d5.String,X5=function(e){try{return hEe(e)}catch{return`Object`}},gEe=d5.TypeError,Z5=function(e){if(C5(e))return e;throw gEe(X5(e)+` is not a function`)},Q5=function(e,t){var n=e[t];return n==null?void 0:Z5(n)},_Ee=d5.TypeError,vEe=d5.TypeError,yEe=L5(`toPrimitive`),$5=function(e){var t=function(e,t){if(!V5(e)||Y5(e))return e;var n,r=Q5(e,yEe);if(r){if(t===void 0&&(t=`default`),n=q5(r,e,t),!V5(n)||Y5(n))return n;throw vEe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&C5(n=e.toString)&&!V5(r=q5(n,e))||C5(n=e.valueOf)&&!V5(r=q5(n,e))||t!==`string`&&C5(n=e.toString)&&!V5(r=q5(n,e)))return r;throw _Ee(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Y5(t)?t:t+``},bEe=d5.TypeError,e7=Object.defineProperty,t7={f:B5?e7:function(e,t,n){if(G5(e),t=$5(t),G5(n),W5)try{return e7(e,t,n)}catch{}if(`get`in n||`set`in n)throw bEe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},n7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},r7=B5?function(e,t,n){return t7.f(e,t,n7(1,n))}:function(e,t,n){return e[t]=n,e},xEe=v5(Function.toString);C5(p5.inspectSource)||(p5.inspectSource=function(e){return xEe(e)});var i7,a7,o7,s7=p5.inspectSource,c7=d5.WeakMap,SEe=C5(c7)&&/native code/.test(s7(c7)),l7=m5(`keys`),u7=function(e){return l7[e]||(l7[e]=S5(e))},d7={},f7=d5.TypeError,CEe=d5.WeakMap;if(SEe||p5.state){var p7=p5.state||=new CEe,wEe=v5(p7.get),m7=v5(p7.has),TEe=v5(p7.set);i7=function(e,t){if(m7(p7,e))throw new f7(`Object already initialized`);return t.facade=e,TEe(p7,e,t),t},a7=function(e){return wEe(p7,e)||{}},o7=function(e){return m7(p7,e)}}else{var h7=u7(`state`);d7[h7]=!0,i7=function(e,t){if(x5(e,h7))throw new f7(`Object already initialized`);return t.facade=e,r7(e,h7,t),t},a7=function(e){return x5(e,h7)?e[h7]:{}},o7=function(e){return x5(e,h7)}}var g7={set:i7,get:a7,has:o7,enforce:function(e){return o7(e)?a7(e):i7(e,{})},getterFor:function(e){return function(t){var n;if(!V5(t)||(n=a7(t)).type!==e)throw f7(`Incompatible receiver, `+e+` required`);return n}}},_7=Function.prototype,EEe=B5&&Object.getOwnPropertyDescriptor,v7=x5(_7,`name`),y7={EXISTS:v7,PROPER:v7&&function(){}.name===`something`,CONFIGURABLE:v7&&(!B5||B5&&EEe(_7,`name`).configurable)},b7=s5((function(e){var t=y7.CONFIGURABLE,n=g7.get,r=g7.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;C5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!x5(a,`name`)||t&&a.name!==d)&&r7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===d5?l?e[n]=a:f5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:r7(e,n,a))})(Function.prototype,`toString`,(function(){return C5(this)&&n(this).source||s7(this)}))})),DEe=v5({}.toString),OEe=v5(``.slice),x7=function(e){return OEe(DEe(e),8,-1)},kEe=L5(`toStringTag`),AEe=d5.Object,jEe=x7(function(){return arguments}())==`Arguments`,S7=z5?x7: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=AEe(e),kEe))==`string`?n:jEe?x7(t):(r=x7(t))==`Object`&&C5(t.callee)?`Arguments`:r},MEe=z5?{}.toString:function(){return`[object `+S7(this)+`]`};z5||b7(Object.prototype,`toString`,MEe,{unsafe:!0});var C7,w7={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},T7=U5(`span`).classList,E7=T7&&T7.constructor&&T7.constructor.prototype,NEe=E7===Object.prototype?void 0:E7,D7=v5(v5.bind),O7=d5.Object,PEe=v5(``.split),k7=j5((function(){return!O7(`z`).propertyIsEnumerable(0)}))?function(e){return x7(e)==`String`?PEe(e,``):O7(e)}:O7,FEe=Math.ceil,IEe=Math.floor,A7=function(e){var t=+e;return t!=t||t===0?0:(t>0?IEe:FEe)(t)},LEe=Math.min,j7=function(e){return e>0?LEe(A7(e),9007199254740991):0},M7=function(e){return j7(e.length)},N7=Array.isArray||function(e){return x7(e)==`Array`},P7=function(){},REe=[],F7=w5(`Reflect`,`construct`),I7=/^\s*(?:class|function)\b/,zEe=v5(I7.exec),BEe=!I7.exec(P7),L7=function(e){if(!C5(e))return!1;try{return F7(P7,REe,e),!0}catch{return!1}},R7=!F7||j5((function(){var e;return L7(L7.call)||!L7(Object)||!L7((function(){e=!0}))||e}))?function(e){if(!C5(e))return!1;switch(S7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return BEe||!!zEe(I7,s7(e))}:L7,VEe=L5(`species`),z7=d5.Array,HEe=function(e,t){return new(function(e){var t;return N7(e)&&(t=e.constructor,(R7(t)&&(t===z7||N7(t.prototype))||V5(t)&&(t=t[VEe])===null)&&(t=void 0)),t===void 0?z7:t}(e))(t===0?0:t)},B7=v5([].push),V7=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=b5(c),h=k7(m),g=function(e,t){return Z5(e),t===void 0?e:D7?D7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=M7(h),v=0,y=d||HEe,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:B7(b,f)}else switch(e){case 4:return!1;case 7:B7(b,f)}return a?-1:r||i?i:b}},UEe=[V7(0),V7(1),V7(2),V7(3),V7(4),V7(5),V7(6),V7(7)][0],H7=(C7=[].forEach)&&j5((function(){C7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return UEe(this,e,arguments.length>1?arguments[1]:void 0)},U7=function(e){if(e&&e.forEach!==H7)try{r7(e,`forEach`,H7)}catch{e.forEach=H7}};for(var W7 in w7)w7[W7]&&U7(d5[W7]&&d5[W7].prototype);U7(NEe);var G7={}.propertyIsEnumerable,K7=Object.getOwnPropertyDescriptor,q7={f:K7&&!G7.call({1:2},1)?function(e){var t=K7(this,e);return!!t&&t.enumerable}:G7},J7=function(e){return k7(y5(e))},Y7=Object.getOwnPropertyDescriptor,X7={f:B5?Y7:function(e,t){if(e=J7(e),t=$5(t),W5)try{return Y7(e,t)}catch{}if(x5(e,t))return n7(!q5(q7.f,e,t),e[t])}},WEe=Math.max,GEe=Math.min,Z7=function(e,t){var n=A7(e);return n<0?WEe(n+t,0):GEe(n,t)},KEe=function(e){return function(t,n,r){var i,a=J7(t),o=M7(a),s=Z7(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),Q7=v5([].push),$7=function(e,t){var n,r=J7(e),i=0,a=[];for(n in r)!x5(d7,n)&&x5(r,n)&&Q7(a,n);for(;t.length>i;)x5(r,n=t[i++])&&(~KEe(a,n)||Q7(a,n));return a},e9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],qEe=e9.concat(`length`,`prototype`),JEe={f:Object.getOwnPropertyNames||function(e){return $7(e,qEe)}},t9={f:Object.getOwnPropertySymbols},YEe=v5([].concat),XEe=w5(`Reflect`,`ownKeys`)||function(e){var t=JEe.f(G5(e)),n=t9.f;return n?YEe(t,n(e)):t},ZEe=function(e,t){for(var n=XEe(t),r=t7.f,i=X7.f,a=0;a<n.length;a++){var o=n[a];x5(e,o)||r(e,o,i(t,o))}},QEe=/#|\.prototype\./,n9=function(e,t){var n=eDe[$Ee(e)];return n==nDe||n!=tDe&&(C5(t)?j5(t):!!t)},$Ee=n9.normalize=function(e){return String(e).replace(QEe,`.`).toLowerCase()},eDe=n9.data={},tDe=n9.NATIVE=`N`,nDe=n9.POLYFILL=`P`,rDe=n9,iDe=X7.f,r9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?d5:l?d5[s]||f5(s,{}):(d5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=iDe(n,r))&&o.value:n[r],!rDe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ZEe(a,i)}(e.sham||i&&i.sham)&&r7(a,`sham`,!0),b7(n,r,a,e)}},i9=Object.keys||function(e){return $7(e,e9)},a9=Object.assign,o9=Object.defineProperty,aDe=v5([].concat),s9=!a9||j5((function(){if(B5&&a9({b:1},a9(o9({},`a`,{enumerable:!0,get:function(){o9(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})),a9({},e)[n]!=7||i9(a9({},t)).join(``)!=r}))?function(e,t){for(var n=b5(e),r=arguments.length,i=1,a=t9.f,o=q7.f;r>i;)for(var s,c=k7(arguments[i++]),l=a?aDe(i9(c),a(c)):i9(c),u=l.length,d=0;u>d;)s=l[d++],B5&&!q5(o,c,s)||(n[s]=c[s]);return n}:a9;r9({target:`Object`,stat:!0,forced:Object.assign!==s9},{assign:s9});var c9=s5((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,ee=C;for(ee+=S.value.length;D>=ee;)ee+=(S=S.next).value.length;if(C=ee-=S.value.length,S.value instanceof a)continue;for(var k=S;k!==t.tail&&(ee<O||typeof k.value==`string`);k=k.next)E++,ee+=k.value.length;E--,w=e.slice(C,ee),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var A=T[0],j=w.slice(0,D),M=w.slice(D+A.length),te=C+w.length;d&&te>d.reach&&(d.reach=te);var N=S.prev;if(j&&(N=l(t,N,j),C+=j.length),u(t,N,E),S=l(t,N,new a(f,g?i.tokenize(A,g):A,y,A)),M&&l(t,S,M),E>1){var ne={cause:f+`,`+m,reach:te};s(e,t,n,S.prev,C,ne),d&&ne.reach>d.reach&&(d.reach=ne.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,o5!==void 0&&(o5.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`,ee=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,ee]),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 k=`:[^}\\r\\n]+`,A=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),j=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[A,k]),M=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),te=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[M,k]);function N(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,k]),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>>|[^\\\\{"])*"`,[j]),lookbehind:!0,greedy:!0,inside:N(j,A)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[te]),lookbehind:!0,greedy:!0,inside:N(te,M)}]})}(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 oDe=`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 l9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+l9(t)}),0)}var u9,sDe=d5.String,d9=function(e){if(S7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return sDe(e)},f9=function(){var e=G5(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},p9=d5.RegExp,m9=j5((function(){var e=p9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),cDe=m9||j5((function(){return!p9(`a`,`y`).sticky})),h9={BROKEN_CARET:m9||j5((function(){var e=p9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:cDe,UNSUPPORTED_Y:m9},lDe=B5?Object.defineProperties:function(e,t){G5(e);for(var n,r=J7(t),i=i9(t),a=i.length,o=0;a>o;)t7.f(e,n=i[o++],r[n]);return e},uDe=w5(`document`,`documentElement`),g9=u7(`IE_PROTO`),_9=function(){},v9=function(e){return`<script>`+e+`<\/script>`},y9=function(e){e.write(v9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},b9=function(){try{u9=new ActiveXObject(`htmlfile`)}catch{}var e,t;b9=typeof document<`u`?document.domain&&u9?y9(u9):((t=U5(`iframe`)).style.display=`none`,uDe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(v9(`document.F=Object`)),e.close(),e.F):y9(u9);for(var n=e9.length;n--;)delete b9.prototype[e9[n]];return b9()};d7[g9]=!0;var x9,S9,dDe=Object.create||function(e,t){var n;return e===null?n=b9():(_9.prototype=G5(e),n=new _9,_9.prototype=null,n[g9]=e),t===void 0?n:lDe(n,t)},fDe=d5.RegExp,pDe=j5((function(){var e=fDe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),mDe=d5.RegExp,hDe=j5((function(){var e=mDe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),gDe=g7.get,_De=m5(`native-string-replace`,String.prototype.replace),C9=RegExp.prototype.exec,w9=C9,vDe=v5(``.charAt),yDe=v5(``.indexOf),bDe=v5(``.replace),T9=v5(``.slice),E9=(S9=/b*/g,q5(C9,x9=/a/,`a`),q5(C9,S9,`a`),x9.lastIndex!==0||S9.lastIndex!==0),D9=h9.BROKEN_CARET,O9=/()??/.exec(``)[1]!==void 0;(E9||O9||D9||pDe||hDe)&&(w9=function(e){var t,n,r,i,a,o,s,c=this,l=gDe(c),u=d9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=q5(w9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=D9&&c.sticky,m=q5(f9,c),h=c.source,g=0,_=u;if(p&&(m=bDe(m,`y`,``),yDe(m,`g`)===-1&&(m+=`g`),_=T9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&vDe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),O9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),E9&&(r=c.lastIndex),i=q5(C9,p?n:c,_),p?i?(i.input=T9(i.input,g),i[0]=T9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:E9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),O9&&i&&i.length>1&&q5(_De,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=dDe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var k9=w9;r9({target:`RegExp`,proto:!0,forced:/./.exec!==k9},{exec:k9});var A9=Function.prototype,j9=A9.apply,xDe=A9.bind,M9=A9.call,SDe=typeof Reflect==`object`&&Reflect.apply||(xDe?M9.bind(j9):function(){return M9.apply(j9,arguments)}),CDe=L5(`species`),N9=RegExp.prototype,wDe=L5(`match`),TDe=d5.TypeError,EDe=L5(`species`),DDe=v5(``.charAt),P9=v5(``.charCodeAt),ODe=v5(``.slice),kDe=function(e){return function(t,n){var r,i,a=d9(y5(t)),o=A7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=P9(a,o))<55296||r>56319||o+1===s||(i=P9(a,o+1))<56320||i>57343?e?DDe(a,o):r:e?ODe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),ADe=function(e,t,n){return t+(n?kDe(e,t).length:1)},jDe=d5.Array,MDe=Math.max,F9=function(e,t,n){for(var r,i,a,o,s=M7(e),c=Z7(t,s),l=Z7(n===void 0?s:n,s),u=jDe(MDe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=$5(i))in r?t7.f(r,o,n7(0,a)):r[o]=a;return u.length=d,u},NDe=d5.TypeError,I9=function(e,t){var n=e.exec;if(C5(n)){var r=q5(n,e,t);return r!==null&&G5(r),r}if(x7(e)===`RegExp`)return q5(k9,e,t);throw NDe(`RegExp#exec called on incompatible receiver`)},L9=h9.UNSUPPORTED_Y,PDe=Math.min,R9=[].push,FDe=v5(/./.exec),z9=v5(R9),B9=v5(``.slice);(function(e,t,n,r){var i=L5(e),a=!j5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!j5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[CDe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=v5(/./[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=d9(y5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!V5(r=e)||!((i=r[wDe])===void 0?x7(r)==`RegExp`:i))return q5(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=q5(k9,p,a))&&!((c=p.lastIndex)>f&&(z9(u,B9(a,f,s.index)),s.length>1&&s.index<a.length&&SDe(R9,u,F9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&FDe(p,``)||z9(u,``):z9(u,B9(a,f)),u.length>o?F9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:q5(t,this,e,n)}:t,[function(t,n){var i=y5(this),a=t==null?void 0:Q5(t,e);return a?q5(a,t,i,n):q5(r,d9(i),t,n)},function(e,i){var a=G5(this),o=d9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=G5(e).constructor;return r===void 0||(n=G5(r)[EDe])==null?t:function(e){if(R7(e))return e;throw TDe(X5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(L9?`g`:`y`),d=new c(L9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return I9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=L9?0:m;var g,_=I9(d,L9?B9(o,m):o);if(_===null||(g=PDe(j7(d.lastIndex+(L9?m:0)),o.length))===p)m=ADe(o,m,l);else{if(z9(h,B9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(z9(h,_[v]),h.length===f)return h;m=p=g}}return z9(h,B9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=v5(e),c=t.exec;return c===k9||c===N9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));b7(String.prototype,e,c[0]),b7(N9,i,c[1])}r&&r7(N9[i],`sham`,!0)})(`split`,0,!!j5((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`})),L9),r9({global:!0},{globalThis:d5}),by&&(K.fn.attr=by);var IDe=y7.PROPER,V9=RegExp.prototype,H9=V9.toString,LDe=v5(f9),RDe=j5((function(){return H9.call({source:`a`,flags:`b`})!=`/a/b`})),zDe=IDe&&H9.name!=`toString`;(RDe||zDe)&&b7(RegExp.prototype,`toString`,(function(){var e=G5(this),t=d9(e.source),n=e.flags;return`/`+t+`/`+d9(n===void 0&&J5(V9,e)&&!(`flags`in V9)?LDe(e):n)}),{unsafe:!0});var BDe=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}(),VDe={renderStyle:function(e,t){var n=e,r=t,i=``;return oDe.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 BDe},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>`}}]},HDe=/"/g,UDe=v5(``.replace);r9({target:`String`,proto:!0,forced:j5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=d9(y5(this)),r=`<a`,(r+=` name="`+UDe(d9(t),HDe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var U9=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=c9.languages[t];return n?c9.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+l9(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},W9=function(){return W9=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},W9.apply(this,arguments)},G9=function(){function e(){throw Error(`不能实例化
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=W9(W9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=W9(W9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=W9(W9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=W9(W9({},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=vD(vD({},i),t||{});if(tk[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);tk[n]=r,function(e,t){t!=null&&(ek[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;Bj[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){zj.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;sk[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){ok.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){NA.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;FA[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){PA.push(e)})(e)},e.registerModule=function(e){K9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function K9(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 G9.registerMenu(e)})),n&&n.forEach((function(e){return G9.registerRenderElem(e)})),r&&G9.registerRenderStyle(r),i&&i.forEach((function(e){return G9.registerElemToHtml(e)})),a&&G9.registerStyleToHtml(a),o&&o.forEach((function(e){return G9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return G9.registerParseElemHtml(e)})),c&&G9.registerParseStyleHtml(c),l&&G9.registerPlugin(l)}JV.forEach((function(e){return K9(e)})),K9(P_e),K9(rbe),K9(dCe),K9(eEe),K9(VDe);var q9=`<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>`,J9={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`]}},WDe={hoverbarKeys:W9(W9({},J9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};G9.setEditorConfig(W9(W9({},WDe),{decorate:U9}));var GDe={hoverbarKeys:J9};G9.setSimpleEditorConfig(W9(W9({},GDe),{decorate:U9}));var KDe={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:q9,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`]};G9.setToolbarConfig(KDe);var qDe={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:q9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function JDe(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`?G9.simpleEditorConfig:G9.editorConfig,u=W9(W9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return Ade({selector:n,config:W9(W9(W9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:G9.plugins})}function YDe(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`?G9.simpleToolbarConfig:G9.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 lj(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Fde(n,vD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return lO.set(a,e),uO.set(e,a),a}(n,{selector:t,config:W9(W9({},s),i)})}G9.setSimpleToolbarConfig(qDe);var XDe=Object.defineProperty,ZDe=Object.defineProperties,QDe=Object.getOwnPropertyDescriptors,Y9=Object.getOwnPropertySymbols,$De=Object.prototype.hasOwnProperty,eOe=Object.prototype.propertyIsEnumerable,X9=(e,t,n)=>t in e?XDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tOe=(e,t)=>{for(var n in t||={})$De.call(t,n)&&X9(e,n,t[n]);if(Y9)for(var n of Y9(t))eOe.call(t,n)&&X9(e,n,t[n]);return e},nOe=(e,t)=>ZDe(e,QDe(t));function Z9(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 Q9=(e,t)=>{for(let[n,r]of t)e[n]=r;return e},rOe=n({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=F(null),r=Ce(null),i=F(``),a=()=>{if(!n.value)return;let a=C(e.defaultContent);JDe({selector:n.value,mode:e.mode,content:a||[],html:e.defaultHtml||e.modelValue||``,config:nOe(tOe({},e.defaultConfig),{onCreated(n){if(r.value=n,t.emit(`onCreated`,n),e.defaultConfig.onCreated){let e=Z9(`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=Z9(`onChange`);throw Error(e)}},onDestroyed(n){if(t.emit(`onDestroyed`,n),e.defaultConfig.onDestroyed){let e=Z9(`onDestroyed`);throw Error(e)}},onMaxLength(n){if(t.emit(`onMaxLength`,n),e.defaultConfig.onMaxLength){let e=Z9(`onMaxLength`);throw Error(e)}},onFocus(n){if(t.emit(`onFocus`,n),e.defaultConfig.onFocus){let e=Z9(`onFocus`);throw Error(e)}},onBlur(n){if(t.emit(`onBlur`,n),e.defaultConfig.onBlur){let e=Z9(`onBlur`);throw Error(e)}},customAlert(n,r){if(t.emit(`customAlert`,n,r),e.defaultConfig.customAlert){let e=Z9(`customAlert`);throw Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){let e=Z9(`customPaste`);throw Error(e)}let i;return t.emit(`customPaste`,n,r,e=>{i=e}),i}})})};function s(e){r.value?.setHtml(e)}return o(()=>{a()}),me(()=>e.modelValue,e=>{e!==i.value&&s(e)}),{box:n}}}),iOe={ref:`box`,style:{height:`100%`}};function aOe(e,t,n,r,i,a){return u(),w(`div`,iOe,null,512)}var oOe=Q9(rOe,[[`render`,aOe]]),sOe=n({props:{editor:{type:Object},mode:{type:String,default:`default`},defaultConfig:{type:Object,default:{}}},setup(e){let t=F(null),n=n=>{if(t.value){if(n==null)throw Error(`Not found instance of Editor when create <Toolbar/> component`);X.getToolbar(n)||YDe({editor:n,selector:t.value||`<div></div>`,mode:e.mode,config:e.defaultConfig})}};return ye(()=>{let{editor:t}=e;t!=null&&n(t)}),{selector:t}}}),cOe={ref:`selector`};function lOe(e,t,n,r,i,a){return u(),w(`div`,cOe,null,512)}var uOe=Q9(sOe,[[`render`,lOe]]),dOe={class:`pledge-rich-editor`},fOe={class:`pledge-rich-editor__color-bar`},pOe=[`value`],mOe=[`onKeydown`],$9=Ae(n({__name:`PledgeRichTextEditor`,props:{modelValue:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=Ce(void 0),o=F(n.modelValue||``),s=F(`#109bd3`),l=[`#000000`,`#333333`,`#666666`,`#999999`,`#109bd3`,`#087db4`,`#c20f18`,`#d94e1f`,`#e8a317`,`#2e7d32`,`#1565c0`,`#6a1b9a`,`#ffffff`];me(()=>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>`)}),me(o,e=>{r(`update:modelValue`,e)});let d={excludeKeys:[`uploadImage`,`group-video`,`emotion`]},f={placeholder:`编辑参赛承诺书正文,保存后选手端签署弹窗将展示此处内容…`,MENU_CONF:{color:{colors:l},bgColor:{colors:l}}};function p(e){i.value=e}function m(e){let t=e.trim(),n=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(t);if(!n)return null;let r=n[1];return r.length===3&&(r=r.split(``).map(e=>e+e).join(``)),`#${r.toLowerCase()}`}function h(e){let t=i.value;if(t==null)return;let n=m(e);n&&(s.value=n,t.focus(),t.addMark(`color`,n))}function g(e){let t=e.target;h(t.value)}function _(){let e=m(s.value);e&&h(e)}return c(()=>{let e=i.value;e!=null&&(e.destroy(),i.value=void 0)}),(e,t)=>(u(),w(`div`,dOe,[P(a(uOe),{class:`pledge-rich-editor__toolbar`,editor:i.value,"default-config":d,mode:`default`},null,8,[`editor`]),S(`div`,fOe,[t[2]||=S(`span`,{class:`pledge-rich-editor__color-label`},`自定义文字颜色`,-1),S(`input`,{class:`pledge-rich-editor__color-picker`,type:`color`,value:m(s.value)||`#109bd3`,title:`取色器`,onInput:g},null,40,pOe),de(S(`input`,{"onUpdate:modelValue":t[0]||=e=>s.value=e,class:`pledge-rich-editor__color-hex`,type:`text`,maxlength:`7`,placeholder:`#109bd3`,spellcheck:`false`,onKeydown:fe(oe(_,[`prevent`]),[`enter`])},null,40,mOe),[[ie,s.value]]),S(`button`,{type:`button`,class:`pledge-rich-editor__color-apply`,onClick:_},` 应用到选中文字 `),t[3]||=S(`span`,{class:`pledge-rich-editor__color-hint`},`可填任意色号,如 #109bd3`,-1)]),P(a(oOe),{modelValue:o.value,"onUpdate:modelValue":t[1]||=e=>o.value=e,class:`pledge-rich-editor__editor`,"default-config":f,mode:`default`,onOnCreated:p},null,8,[`modelValue`])]))}}),[[`__scopeId`,`data-v-1dbc36a2`]]),hOe={class:`tracks-pane`},gOe={class:`pane-toolbar pane-toolbar--split`},_Oe={class:`toolbar`,style:{"margin-bottom":`12px`}},vOe={class:`d-flex justify-content-end mt-3`},yOe=n({__name:`CompetitionAdminsPane`,props:{competitionId:{}},setup(t){let n=t,r=F(!1),i=F([]),s=ae({page:1,perPage:15,total:0}),c=F(``),l=F(!1),d=F(`create`),f=F(!1),p=F(null),m=F(),h=ae({username:``,name:``,password:``,status:`active`}),_={username:[{required:!0,message:`请填写账号`,trigger:`blur`}],name:[{required:!0,message:`请填写姓名`,trigger:`blur`}],password:[{validator:(e,t,n)=>{if(d.value===`create`&&!String(t||``).trim()){n(Error(`请填写密码`));return}n()},trigger:`blur`}]};async function v(e=s.page){r.value=!0,s.page=e;try{let e=await mt(n.competitionId,{page:s.page,per_page:s.perPage,keyword:c.value.trim()||void 0});i.value=e.data,s.total=e.meta.total}catch(e){I.error(e instanceof Error?e.message:`加载失败`)}finally{r.value=!1}}function b(){d.value=`create`,p.value=null,h.username=``,h.name=``,h.password=``,h.status=`active`,l.value=!0}function x(e){d.value=`edit`,p.value=e.id,h.username=e.username,h.name=e.name,h.password=``,h.status=e.status,l.value=!0}async function C(){if(await m.value?.validate().catch(()=>!1)){f.value=!0;try{let e={username:h.username.trim(),name:h.name.trim(),status:h.status};h.password?.trim()&&(e.password=h.password.trim()),d.value===`create`?(await ht(n.competitionId,{...e,password:(h.password??``).trim()}),I.success(`已创建`)):p.value&&(await ft(n.competitionId,p.value,e),I.success(`已保存`)),l.value=!1,await v(s.page)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}finally{f.value=!1}}}async function T(e){try{await L.confirm(`确定删除赛事管理员「${e.name}」吗?`,`确认删除`,{type:`warning`}),await pt(n.competitionId,e.id),I.success(`已删除`),await v(s.page)}catch{}}return me(()=>n.competitionId,()=>void v(1)),o(()=>void v(1)),(t,n)=>{let o=y(`el-button`),p=y(`el-input`),E=y(`el-table-column`),D=y(`el-tag`),O=y(`el-table`),ee=y(`el-pagination`),k=y(`el-form-item`),A=y(`el-option`),j=y(`el-select`),te=y(`el-form`),ne=y(`el-dialog`),re=e(`loading`);return de((u(),w(`div`,hOe,[S(`div`,gOe,[n[12]||=S(`p`,{class:`form-hint pane-toolbar-tip`},` 为本场赛事创建独立管理员。他们可登录赛事管理与观众信息管理后台,不能进入平台管理后台。 `,-1),P(o,{type:`primary`,onClick:b},{default:N(()=>[...n[11]||=[g(`新增管理员`,-1)]]),_:1})]),S(`div`,_Oe,[P(p,{modelValue:c.value,"onUpdate:modelValue":n[0]||=e=>c.value=e,placeholder:`搜索账号、姓名`,clearable:``,style:{"max-width":`280px`},onKeyup:n[1]||=fe(e=>v(1),[`enter`])},null,8,[`modelValue`]),P(o,{type:`primary`,onClick:n[2]||=e=>v(1)},{default:N(()=>[...n[13]||=[g(`查询`,-1)]]),_:1})]),P(O,{data:i.value,stripe:``,border:``,"empty-text":`暂无赛事管理员`,class:`workspace-table`},{default:N(()=>[P(E,{prop:`username`,label:`账号`,"min-width":`140`}),P(E,{prop:`name`,label:`姓名`,width:`140`}),P(E,{label:`状态`,width:`100`},{default:N(({row:e})=>[P(D,{type:e.status===`active`?`success`:`info`,effect:`plain`},{default:N(()=>[g(M(e.status===`active`?`启用`:`停用`),1)]),_:2},1032,[`type`])]),_:1}),P(E,{label:`最近登录`,"min-width":`170`},{default:N(({row:e})=>[g(M(a(Je)(e.last_login_at)||`—`),1)]),_:1}),P(E,{label:`操作`,width:`140`,fixed:`right`,align:`right`},{default:N(({row:e})=>[P(o,{link:``,type:`primary`,size:`small`,onClick:t=>x(e)},{default:N(()=>[...n[14]||=[g(`编辑`,-1)]]),_:1},8,[`onClick`]),P(o,{link:``,type:`danger`,size:`small`,onClick:t=>T(e)},{default:N(()=>[...n[15]||=[g(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),S(`div`,vOe,[P(ee,{"current-page":s.page,"onUpdate:currentPage":n[3]||=e=>s.page=e,"page-size":s.perPage,"onUpdate:pageSize":n[4]||=e=>s.perPage=e,layout:`total, prev, pager, next`,total:s.total,onCurrentChange:v},null,8,[`current-page`,`page-size`,`total`])]),P(ne,{modelValue:l.value,"onUpdate:modelValue":n[10]||=e=>l.value=e,title:d.value===`create`?`新增赛事管理员`:`编辑赛事管理员`,width:`min(480px, 92vw)`,"destroy-on-close":``,"align-center":``},{footer:N(()=>[P(o,{onClick:n[9]||=e=>l.value=!1},{default:N(()=>[...n[16]||=[g(`取消`,-1)]]),_:1}),P(o,{type:`primary`,loading:f.value,onClick:C},{default:N(()=>[...n[17]||=[g(`保存`,-1)]]),_:1},8,[`loading`])]),default:N(()=>[P(te,{ref_key:`formRef`,ref:m,model:h,rules:_,"label-position":`top`},{default:N(()=>[P(k,{label:`账号`,prop:`username`},{default:N(()=>[P(p,{modelValue:h.username,"onUpdate:modelValue":n[5]||=e=>h.username=e,modelModifiers:{trim:!0},autocomplete:`off`},null,8,[`modelValue`])]),_:1}),P(k,{label:`姓名`,prop:`name`},{default:N(()=>[P(p,{modelValue:h.name,"onUpdate:modelValue":n[6]||=e=>h.name=e,modelModifiers:{trim:!0}},null,8,[`modelValue`])]),_:1}),P(k,{label:d.value===`create`?`密码`:`新密码(留空不改)`,prop:`password`},{default:N(()=>[P(p,{modelValue:h.password,"onUpdate:modelValue":n[7]||=e=>h.password=e,type:`password`,"show-password":``,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1},8,[`label`]),P(k,{label:`状态`},{default:N(()=>[P(j,{modelValue:h.status,"onUpdate:modelValue":n[8]||=e=>h.status=e,style:{width:`100%`}},{default:N(()=>[P(A,{label:`启用`,value:`active`}),P(A,{label:`停用`,value:`disabled`})]),_:1},8,[`modelValue`])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`modelValue`,`title`])])),[[re,r.value]])}}}),bOe={class:`competition-workspace`},xOe={class:`workspace-header`},SOe={class:`workspace-title`},COe={class:`login-links-stack`},wOe={class:`login-link-label`},TOe=[`href`],EOe={class:`tracks-pane`},DOe={class:`pane-toolbar pane-toolbar--split`},OOe={class:`cell-muted`},kOe={class:`channels-pane`},AOe={class:`pane-toolbar pane-toolbar--split`},jOe={class:`cell-muted`},MOe={class:`cell-muted`},NOe={class:`applications-pane`},POe={class:`applications-toolbar`},FOe={class:`application-filters`},IOe={class:`application-actions`},LOe={key:0,class:`export-selected-count`},ROe={key:0,class:`applications-selection-hint`},zOe={class:`cell-muted`},BOe={class:`cell-muted`},VOe={class:`cell-muted`},HOe={class:`cell-muted`},UOe={class:`cell-muted`},WOe={class:`cell-muted`},GOe={class:`cell-muted`},KOe={class:`table-pagination`},qOe={class:`section-block`},JOe={class:`form-hint`},YOe={class:`pane-toolbar`},XOe={class:`cell-muted`},ZOe={class:`section-block`},QOe={class:`pane-toolbar pane-toolbar--wrap`},$Oe={class:`pane-toolbar pane-toolbar--wrap`},eke={class:`d-flex gap-2`},tke={class:`application-detail`},nke={key:0,class:`mb-3 d-flex justify-content-end`},rke={class:`application-intro`},ike={class:`review-summary`},ake={class:`schema-builder-dialog__meta`},oke={key:1},ske={key:2,class:`text-danger small mt-2 mb-0`},cke={class:`pane-toolbar pane-toolbar--split mb-2`},lke={class:`form-hint pane-toolbar-tip`},uke=Ae(n({__name:`CompetitionFormView`,setup(t){let n=[{tab:`basic`,label:`基础信息`},{tab:`tracks`,label:`赛道管理`},{tab:`channels`,label:`渠道管理`},{tab:`applications`,label:`报名信息`},{tab:`audienceSessions`,label:`观众场次`},{tab:`audienceRegistrations`,label:`观众报名`},{tab:`competitionAdmins`,label:`赛事管理员`},{tab:`signupForm`,label:`报名表配置`},{tab:`audienceForm`,label:`观众报名表`},{tab:`review`,label:`评审与计分`},{tab:`brand`,label:`品牌与文案`}],r=Oe(),s=De(),c=ze(),l=Ee(),{selectedCompetitionId:d}=Te(c),f=Se(()=>(l.user?.username??``).trim()===`superadmin`),p=F(!1),m=()=>s.name===`admin-competition-new`,h=F(null),_=F(!1),v=F(null),b=F({slug:``,name:``,description:``,status:`draft`,published:!1,signup_open_at:null,signup_close_at:null,pledge_title:``,pledge_title_en:``,pledge_subtitle:``,pledge_subtitle_en:``,pledge_content_html:``,pledge_content_html_en:``,success_notice_enabled:!1,success_notice_message:``,review_portal_enabled:!0,review_portal_message:``,post_close_file_edit_enabled:!1,post_close_file_edit_mobiles:``}),x=F(Be()),C=F(He()),T=F(`zh`);function E(){x.value.login.consultLines.push({label:``,text:``})}function O(e){x.value.login.consultLines.splice(e,1)}function ee(){x.value.login.showConsult=!0,x.value.login.consultLines=Ve()}function k(){C.value.login.consultLines.push({label:``,text:``})}function j(e){C.value.login.consultLines.splice(e,1)}let te=F({}),ne=F([]),ie=F(!1),ae=F([]),oe=F(!1),se=F([]),ce=F(!1),le=F([]),ue=F([]),pe=F(!1),he=F(!1),ge=F(``),_e=F(!1),ve=F(!1),ye=F(null),be=F({page:1,perPage:15,total:0}),Ce=F({keyword:``,status:`submitted`,track:``,review_eligible:!0,signup_channel_id:void 0,public_source_channel_id:void 0,signup_locale:``}),we=F({}),ke=F([]),Ae=F([]),Je=Se(()=>ct(ke.value,lt)),ft=Se(()=>ct(Ae.value,ut)),pt=F([]),mt=F(!1),ht=F(!1),vt=F(null),yt=F({track_code:``,title:``,title_en:``,description:``,description_en:``,sort:0,is_enabled:!0,scoring_sheet_title:``,scoring_items:[]});function bt(e=1){return{key:``,sort:e,category:`通用指标`,title:``,criteria:``,max_score:0}}let xt=Se(()=>yt.value.scoring_items.reduce((e,t)=>e+(Number(t.max_score)||0),0)),Ct=F(!1),wt=F(null),Tt=F(!1),Et=F(null),Dt=F({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}),Ot=F(!1),kt=F(`basic`),At=F([]),jt=F([]),Mt=F([]),Nt=F(!1),Pt=F(``),Ft=F(``);function It(){return{key:``,weight:1,min:0,max:100}}let Lt=F([It()]),Rt=F(!1),zt=F(`signup`),Bt=F(``),Vt=F(!1),Ht=F(null),Ut=F(``),Wt=F(`[]`),Gt=F(``),Kt=F(`signup`),qt=F([]),Jt=F(`visual`),Yt=Se(()=>{if(m())return`新建赛事`;let e=n.find(e=>e.tab===kt.value)?.label;return e?`赛事中心 · ${e}`:`赛事中心`}),Xt=Se(()=>String(h.value??`new`));function Zt(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 Qt(e){let t=e&&typeof e==`object`&&!Array.isArray(e)?e.review_portal:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:null;return n?{enabled:n.enabled!==!1&&n.enabled!==0&&n.enabled!==`0`,message:typeof n.message==`string`?n.message:``}:{enabled:!0,message:``}}function $t(e){let t=e&&typeof e==`object`&&!Array.isArray(e)?e.post_close_file_edit:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:null;if(!n)return{enabled:!1,user_mobiles:[]};let r=(Array.isArray(n.user_mobiles)?n.user_mobiles:[]).map(e=>String(e??``).replace(/\s+/g,``).trim()).filter(e=>/^1[3-9]\d{9}$/.test(e));return{enabled:n.enabled===!0||n.enabled===1||n.enabled===`1`,user_mobiles:[...new Set(r)]}}function en(e){let t=e.split(/[\n,,;;\s]+/).map(e=>e.replace(/\s+/g,``).trim()).filter(Boolean);return[...new Set(t)]}function tn(){let e={...te.value},t=b.value.success_notice_enabled,n=b.value.success_notice_message.trim();t&&n?e.success_notice={enabled:!0,message:n}:delete e.success_notice,e.review_portal={enabled:b.value.review_portal_enabled!==!1,message:b.value.review_portal_message.trim()};let r=en(b.value.post_close_file_edit_mobiles);return b.value.post_close_file_edit_enabled?e.post_close_file_edit={enabled:!0,user_mobiles:r}:e.post_close_file_edit={enabled:!1,user_mobiles:[]},Object.keys(e).length>0?e:null}function nn(e){return`${typeof window<`u`?window.location.origin:``}${`/admin/`.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`}let rn=Se(()=>{let e=b.value.slug.trim(),t=[];if(e){let n=encodeURIComponent(e);t.push({label:`选手登录`,href:nn(`/c/${n}/login`)}),t.push({label:`选手登录(英文)`,href:`${nn(`/c/${n}/login`)}?lang=en`}),t.push({label:`观众报名`,href:nn(`/c/${n}/audience/login`)}),t.push({label:`观众报名(英文)`,href:`${nn(`/c/${n}/audience/login`)}?lang=en`}),t.push({label:`现场核销`,href:nn(`/c/${n}/checkin`)}),t.push({label:`观众信息管理`,href:nn(`/c/${n}/audience-manage/login`)}),t.push({label:`评审端入口`,href:nn(`/c/${n}/review`)}),t.push({label:`赛事管理登录`,href:nn(`/c/${n}/manage/login`)})}return t.push({label:`管理后台登录`,href:nn(`/admin/login`)}),t.push({label:`赛事工作台(需先登录管理端)`,href:nn(`/admin/competition/workspace`)}),t});me(Jt,e=>{e===`json`?an():on()});function an(){Wt.value=JSON.stringify(Ol(qt.value,Kt.value),null,2)}function on(){try{let e=JSON.parse(Wt.value);Array.isArray(e)&&(qt.value=Dl(e,Kt.value))}catch{}}me(()=>s.name,e=>{(e===`admin-competition-new`||e===`admin-competition-edit`)&&(kt.value=`basic`)},{immediate:!0}),me(kt,e=>{h.value&&(e===`channels`&&On(),e===`applications`&&(On(),kn(),Bn()),e===`signupForm`&&un().then(()=>fr(`signup`)),e===`audienceForm`&&fn().then(()=>fr(`audience`)),e===`review`&&dn())});function sn(){if(m())return null;let e=s.params.id;if(e!=null&&String(e)!==``){let t=Number(e);if(Number.isFinite(t))return t}let t=d.value;return t&&t>0?t:null}function cn(e){return qe(e)}function ln(e){return Ke(e)}async function un(){let e=h.value;if(e){Nt.value=!0;try{let t=await gt(e,`signup`);At.value=t.data,t.signupFieldRegistry&&St(t.signupFieldRegistry)}catch(e){I.error(e instanceof Error?e.message:`加载报名表列表失败`)}finally{Nt.value=!1}}}async function dn(){let e=h.value;if(e){Nt.value=!0;try{jt.value=(await gt(e,`review`)).data}catch(e){I.error(e instanceof Error?e.message:`加载评审表列表失败`)}finally{Nt.value=!1}}}async function fn(){let e=h.value;if(e){Nt.value=!0;try{Mt.value=(await gt(e,`audience`)).data}catch(e){I.error(e instanceof Error?e.message:`加载观众报名表列表失败`)}finally{Nt.value=!1}}}function pn(e){Pt.value=e.scoring_rules_json==null?``:JSON.stringify(e.scoring_rules_json,null,2),mn()}function mn(){let e=Pt.value.trim();if(!e){Lt.value=[It()];return}try{let t=JSON.parse(e);if(t&&Array.isArray(t.dimensions)&&t.dimensions.length>0){Lt.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{}Lt.value=[It()]}function hn(){Lt.value=[...Lt.value,It()]}function gn(e){if(Lt.value.length<=1){Lt.value=[It()];return}Lt.value=Lt.value.filter((t,n)=>n!==e)}function _n(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 vn(){if(!Lt.value.filter(e=>e.key.trim()).length){I.warning(`请至少填写一行「维度 key」(须与评审表 number 类字段的 name/key 一致)`);return}let e=_n(Lt.value);Pt.value=JSON.stringify(e,null,2),Ft.value=``}async function yn(){if(m()){h.value=null,_.value=!1,v.value=null,x.value=Be(),b.value={slug:``,name:``,description:``,status:`draft`,published:!1,signup_open_at:null,signup_close_at:null,pledge_title:``,pledge_title_en:``,pledge_subtitle:``,pledge_subtitle_en:``,pledge_content_html:``,pledge_content_html_en:``,success_notice_enabled:!1,success_notice_message:``,review_portal_enabled:!0,review_portal_message:``,post_close_file_edit_enabled:!1,post_close_file_edit_mobiles:``},te.value={};return}let e=sn();if(!e){h.value=null,v.value=null,_.value=!0;return}_.value=!1,h.value=e,c.selectCompetition(e);try{let t=await Me(e);v.value=t,b.value={slug:t.slug,name:t.name,description:t.description??``,status:t.status,published:t.published,signup_open_at:cn(t.signup_open_at),signup_close_at:cn(t.signup_close_at),pledge_title:t.pledge_title??``,pledge_title_en:t.pledge_title_en??``,pledge_subtitle:t.pledge_subtitle??``,pledge_subtitle_en:t.pledge_subtitle_en??``,pledge_content_html:t.pledge_content_html??``,pledge_content_html_en:t.pledge_content_html_en??``,success_notice_enabled:Zt(t.settings).enabled,success_notice_message:Zt(t.settings).message,review_portal_enabled:Qt(t.settings).enabled,review_portal_message:Qt(t.settings).message,post_close_file_edit_enabled:$t(t.settings).enabled,post_close_file_edit_mobiles:$t(t.settings).user_mobiles.join(`
`)},te.value=t.settings&&typeof t.settings==`object`&&!Array.isArray(t.settings)?{...t.settings}:{},x.value=Ue(t.branding_json),C.value=Ge(t.branding_json),pn(t),await En(),kt.value===`channels`&&await On(),kt.value===`applications`&&await Bn(),kt.value===`signupForm`&&(await un(),await fr(`signup`)),kt.value===`audienceForm`&&(await fn(),await fr(`audience`)),kt.value===`review`&&await dn()}catch(e){v.value=null,I.error(e instanceof Error?e.message:`加载赛事详情失败`)}}me(()=>[s.fullPath,d.value],()=>{yn()});function bn(){let e=We(x.value,C.value);return{slug:b.value.slug.trim(),name:b.value.name.trim(),description:b.value.description.trim()||null,status:b.value.status,published:b.value.published,signup_open_at:ln(b.value.signup_open_at),signup_close_at:ln(b.value.signup_close_at),branding_json:e??null,pledge_title:b.value.pledge_title?.trim()?b.value.pledge_title.trim():null,pledge_title_en:b.value.pledge_title_en?.trim()?b.value.pledge_title_en.trim():null,pledge_subtitle:b.value.pledge_subtitle?.trim()?b.value.pledge_subtitle.trim():null,pledge_subtitle_en:b.value.pledge_subtitle_en?.trim()?b.value.pledge_subtitle_en.trim():null,pledge_content_html:b.value.pledge_content_html?.trim()?b.value.pledge_content_html:null,pledge_content_html_en:b.value.pledge_content_html_en?.trim()?b.value.pledge_content_html_en:null,settings:tn()}}async function xn(){Ot.value=!0;try{let e=bn();if(!e.slug||!e.name){I.warning(`请填写赛事名称和访问地址`);return}if(b.value.success_notice_enabled&&!b.value.success_notice_message.trim()){I.warning(`请填写报名成功提示语,或关闭该提示`);return}if(!b.value.review_portal_enabled&&!b.value.review_portal_message.trim()){I.warning(`关闭评审后,请填写评审端说明文字`);return}if(b.value.post_close_file_edit_enabled){let e=en(b.value.post_close_file_edit_mobiles);if(e.length===0){I.warning(`开启截止后补传附件后,请至少填写一个登录手机号`);return}let t=e.find(e=>!/^1[3-9]\d{9}$/.test(e));if(t){I.warning(`手机号格式无效:${t}`);return}}if(s.name===`admin-competition-new`){let t=await Re(e);h.value=t.id,c.selectCompetition(t.id),await r.replace({name:`admin-competition-workspace`}),await yn(),I.success(`已创建,请在本页顶部标签切换「赛道 / 报名表」等模块继续配置`);return}h.value?(await je(h.value,e),I.success(`已保存`),await yn()):I.warning(`无法保存:请先选择一场赛事,或从「新建赛事」进入后再试`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}finally{Ot.value=!1}}function Sn(e){if(!h.value){I.warning(`请先保存赛事基础信息`);return}vt.value=e?.id??null;let t=e?.scoring_sheet_json,n=t&&Array.isArray(t.items)&&t.items.length?t.items.map((e,t)=>({key:String(e.key??``),sort:Number(e.sort)||t+1,category:String(e.category??``),title:String(e.title??``),criteria:String(e.criteria??``),max_score:Number(e.max_score)||0})):[bt(1)];yt.value=e?{track_code:e.track_code,title:e.title,title_en:e.title_en??``,description:e.description??``,description_en:e.description_en??``,sort:e.sort,is_enabled:e.is_enabled,scoring_sheet_title:String(t?.title??``),scoring_items:n}:{track_code:``,title:``,title_en:``,description:``,description_en:``,sort:(ne.value[ne.value.length-1]?.sort??0)+10,is_enabled:!0,scoring_sheet_title:``,scoring_items:[bt(1)]},ht.value=!0}function Cn(){let e=(yt.value.scoring_items[yt.value.scoring_items.length-1]?.sort??0)+1;yt.value.scoring_items=[...yt.value.scoring_items,bt(e)]}function wn(e){if(yt.value.scoring_items.length<=1){yt.value.scoring_items=[bt(1)];return}yt.value.scoring_items=yt.value.scoring_items.filter((t,n)=>n!==e)}function Tn(){yt.value.scoring_sheet_title=``,yt.value.scoring_items=[]}async function En(){let e=h.value;if(!e){ne.value=[];return}ie.value=!0;try{ne.value=await Fe(e)}finally{ie.value=!1}}async function Dn(){let e=h.value;if(!e)return;let t={track_code:yt.value.track_code.trim(),title:yt.value.title.trim(),title_en:yt.value.title_en.trim()||null,description:yt.value.description.trim()||null,description_en:yt.value.description_en.trim()||null,sort:Number(yt.value.sort)||0,is_enabled:yt.value.is_enabled};if(!t.track_code||!t.title){I.warning(`请填写赛道编码与标题`);return}let n=yt.value.scoring_items.map((e,t)=>({key:e.key.trim(),sort:Number(e.sort)||t+1,category:e.category.trim(),title:e.title.trim(),criteria:e.criteria.trim(),max_score:Number(e.max_score)||0})).filter(e=>e.key||e.title||e.category);if(n.length===0)t.scoring_sheet_json=null;else{let e=n.reduce((e,t)=>e+t.max_score,0);if(Math.abs(e-100)>1e-4){I.warning(`打分表各项分值之和须为 100,当前为 ${e}`);return}t.scoring_sheet_json={version:1,title:yt.value.scoring_sheet_title.trim()||`评分表(${t.title})`,full_score:100,items:n}}try{vt.value?await Ne(e,vt.value,t):await Pe(e,t),ht.value=!1,await En(),I.success(`赛道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存赛道失败`)}}async function On(){let e=h.value;if(!e){ae.value=[];return}oe.value=!0;try{ae.value=await et(e)}catch(e){ae.value=[],I.error(e instanceof Error?e.message:`加载渠道列表失败`)}finally{oe.value=!1}}async function kn(){ce.value=!0;try{se.value=await Ze()}catch(e){se.value=[],I.error(e instanceof Error?e.message:`加载用户渠道列表失败`)}finally{ce.value=!1}}function An(e){return e===`submitted`?`已提交`:e===`draft`?`草稿`:e||`—`}function jn(e){return e===`submitted`?`success`:e===`draft`?`info`:`warning`}function Mn(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 Nn(e){if(e==null||e===``)return`—`;let t=Number(e);return Number.isFinite(t)?t.toFixed(2).replace(/\.?0+$/,``):String(e)}function Pn(e){return!e||e<=0?`—`:e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`}let Fn=[`plan`,`supporting`];function In(e){return e===`plan`?`商业计划书`:e===`supporting`?`佐证材料`:e?.trim()||`其他附件`}function Ln(e){let t=Fn.indexOf(e);return t===-1?Fn.length:t}function Rn(e){return[...e].sort((e,t)=>{let n=Ln(e.kind)-Ln(t.kind);return n===0?(e.original_name??``).localeCompare(t.original_name??``,`zh-CN`):n})}let zn=Se(()=>{let e=ye.value?.files;return e?.length?Rn(e):[]});async function Bn(e=be.value.page){let t=h.value;if(!t){le.value=[],be.value.total=0;return}pe.value=!0;try{let n=await it(t,{page:e,per_page:be.value.perPage,keyword:Ce.value.keyword.trim()||void 0,status:Ce.value.status||void 0,track:Ce.value.track||void 0,review_eligible:Ce.value.review_eligible,signup_channel_id:Ce.value.signup_channel_id||void 0,public_source_channel_id:Ce.value.public_source_channel_id||void 0,signup_locale:Ce.value.signup_locale||void 0,...Object.fromEntries(Object.entries(we.value).filter(([,e])=>String(e??``).trim()!==``))});le.value=n.data,ke.value=n.schema_list_fields??[],Ae.value=n.schema_filter_fields??[],be.value={page:n.meta.current_page,perPage:n.meta.per_page,total:n.meta.total}}catch(e){le.value=[],I.error(e instanceof Error?e.message:`加载报名列表失败`)}finally{pe.value=!1}}function Vn(){Ce.value={keyword:``,status:`submitted`,track:``,review_eligible:!0,signup_channel_id:void 0,public_source_channel_id:void 0,signup_locale:``},we.value={},Bn(1)}async function Hn(e,t){let n=h.value;if(n&&t!==(e.review_eligible!==!1)){pt.value=[...pt.value,e.id];try{let r=await ot(n,e.id,t);e.review_eligible=r.review_eligible,ye.value?.id===e.id&&(ye.value.review_eligible=r.review_eligible),I.success(t?`已设为参与评审`:`已设为不参与评审`)}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}finally{pt.value=pt.value.filter(t=>t!==e.id)}}}async function Un(e){let t=h.value,n=ye.value;if(!(!t||!n)&&e!==(n.review_eligible!==!1)){mt.value=!0;try{let r=await ot(t,n.id,e);n.review_eligible=r.review_eligible;let i=le.value.find(e=>e.id===n.id);i&&(i.review_eligible=r.review_eligible),I.success(e?`已设为参与评审`:`已设为不参与评审`)}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}finally{mt.value=!1}}}async function Wn(e){let t=h.value;if(t){if(e===`selected`&&ue.value.length===0){I.warning(`请先勾选要导出附件的项目`);return}he.value=!0,ge.value=`准备导出…`;try{let n=await rt(t,{mode:e,keyword:Ce.value.keyword.trim()||void 0,status:Ce.value.status||void 0,track:Ce.value.track||void 0,review_eligible:Ce.value.review_eligible,signup_channel_id:Ce.value.signup_channel_id||void 0,public_source_channel_id:Ce.value.public_source_channel_id||void 0,signup_locale:Ce.value.signup_locale||void 0,...Object.fromEntries(Object.entries(we.value).filter(([,e])=>String(e??``).trim()!==``)),application_ids:e===`selected`?ue.value.map(e=>e.id):void 0},(t,n)=>{if(e===`xlsx`){ge.value=`正在下载表格…`;return}ge.value=`正在下载第 ${t}/${n} 个 ZIP…`});e===`xlsx`?I.success(`已导出 ${n.total} 条报名记录表格`):e===`selected`?I.success(n.part_count>1?`已下载 ${n.part_count} 个 ZIP(含全部筛选表格与 ${ue.value.length} 个所选项目附件)`:`已导出表格及 ${ue.value.length} 个所选项目附件`):n.part_count>1?I.success(`已下载 ${n.part_count} 个 ZIP(汇总表仅在第 1 个包,每个约 ${n.part_size} 条项目附件)`):I.success(`导出已开始下载`)}catch(e){I.error(e instanceof Error?e.message:`导出失败`)}finally{he.value=!1,ge.value=``}}}function Gn(e){ue.value=e}async function Kn(e){let t=h.value;if(t){ve.value=!0,_e.value=!0,ye.value=null;try{ye.value=await at(t,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载报名详情失败`)}finally{_e.value=!1}}}let qn=F(null);async function Jn(e,t,n){let r=h.value,i=ye.value?.id;if(!(!r||!i)){if(Ye()||qn.value!=null){I.warning(`附件正在下载中,请勿重复点击`);return}qn.value=e;try{await st(r,i,e,t||`附件`,{size:n})}catch(e){I.error(e instanceof Error?e.message:`下载附件失败`)}finally{qn.value=null}}}async function Yn(){let e=h.value,t=ye.value?.id;if(!(!e||!t||!f.value)){p.value=!0;try{let n=await nt(e,t),r=nn(`/c/${encodeURIComponent(n.competition_slug)}/impersonate-entry?token=${encodeURIComponent(n.token)}`);if(!window.open(r,`_blank`,`noopener,noreferrer`)){I.warning(`浏览器拦截了新窗口,请允许弹窗后重试`);return}I.success(`已打开选手端(管理员代登,约 30 分钟有效)`)}catch(e){I.error(e instanceof Error?e.message:`进入选手端失败`)}finally{p.value=!1}}}async function Xn(e){if(!h.value){I.warning(`请先保存赛事基础信息`);return}let t=e;if(e)try{t=await $e(h.value,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载渠道详情失败`);return}wt.value=t?.id??null,Et.value=t??null,Dt.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},Ct.value=!0}async function Zn(){let e=Et.value?.encryption_public_key;if(e)try{await navigator.clipboard.writeText(e),I.success(`加密公钥已复制`)}catch{I.error(`复制失败,请手动复制`)}}function Qn(){let e=new Uint8Array(32);if(!globalThis.crypto?.getRandomValues){I.error(`当前浏览器不支持安全随机数,请更换浏览器后重试`);return}globalThis.crypto.getRandomValues(e),Dt.value.shared_secret=btoa(String.fromCharCode(...e)).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function $n(e){return e===`mini_program`?`小程序`:e===`none`?`不回调`:`URL`}function er(e){return e.success_callback_type===`mini_program`?e.mini_program_callback_path||`—`:e.success_callback_type===`none`?`—`:e.success_callback_url||`—`}async function tr(){let e=h.value;if(!e)return;let t={channel_name:Dt.value.channel_name.trim(),status:Dt.value.status,shared_secret:Dt.value.shared_secret.trim(),entry_encryption_enabled:Dt.value.entry_encryption_enabled,success_callback_url:Dt.value.success_callback_url.trim(),success_callback_type:Dt.value.success_callback_type,mini_program_callback_path:Dt.value.mini_program_callback_path?.trim()||null,mini_program_callback_method:Dt.value.mini_program_callback_method,remark:Dt.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}Tt.value=!0;try{wt.value?await Qe(e,wt.value,t):await tt(e,t),Ct.value=!1,await On(),I.success(`渠道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存渠道失败`)}finally{Tt.value=!1}}async function nr(e){let t=h.value;if(!t)return;let n=e.status===`enabled`?`disabled`:`enabled`;try{await Qe(t,e.id,{status:n}),await On(),I.success(n===`enabled`?`渠道已启用`:`渠道已停用`)}catch(e){I.error(e instanceof Error?e.message:`更新渠道状态失败`)}}async function rr(e){let t=h.value;if(t){try{await L.confirm(`确定删除赛道「${e.title}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await Ie(t,e.id),await En(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}function ir(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 ar(e){if(!h.value){I.warning(`请先选择或创建赛事`);return}zt.value=e,Bt.value=e===`signup`?`报名表新版本`:e===`audience`?`观众报名表新版本`:`评审表新版本`,Rt.value=!0}async function or(){let e=h.value;if(!e)return;let t=Bt.value.trim();if(!t){I.warning(`请填写版本名称`);return}try{let n=await nee(e,{purpose:zt.value,name:t,schema_json:[],is_published:!1});Rt.value=!1;let r=n&&typeof n==`object`&&`id`in n?n:n?.data??null;zt.value===`signup`?await un():zt.value===`audience`?await fn():await dn(),I.success(`已创建表单版本`),r?.id&&zt.value!==`review`?await dr(r):zt.value===`signup`?await fr(`signup`):zt.value===`audience`&&await fr(`audience`)}catch(e){I.error(e instanceof Error?e.message:`创建失败`)}}async function sr(e){let t=h.value;if(t)try{await Le(t,{form_schema_id:e}),I.success(`已设为当前报名表`),await yn(),await un()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function cr(e){let t=h.value;if(t)try{await Le(t,{review_form_schema_id:e}),I.success(`已设为当前评审表`),await yn(),await dn()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function lr(e){let t=h.value;if(t)try{await Le(t,{audience_form_schema_id:e}),I.success(`已设为当前观众报名表`),await yn(),await fn()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function ur(e,t){let n=h.value;if(n)try{await _t(n,e.id,{is_published:t}),e.purpose===`signup`?await un():e.purpose===`audience`?await fn():await dn()}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}}async function dr(e){let t=h.value;if(!t)return!1;Gt.value=``;try{let n=await tee(t,e.id);return n.signup_field_registry&&St(n.signup_field_registry),Ht.value=n.id,Ut.value=n.name,Kt.value=n.purpose,qt.value=Dl(n.schema_json??[],n.purpose),Wt.value=JSON.stringify(n.schema_json??[],null,2),Jt.value=`visual`,!0}catch(e){return I.error(e instanceof Error?e.message:`加载表单详情失败`),!1}}async function fr(e){let t=e===`signup`?At.value:Mt.value,n=e===`signup`?t.find(e=>e.is_current_signup):t.find(e=>e.is_current_audience),r=Ht.value&&t.find(e=>e.id===Ht.value)||n||t[0];if(!r){Ht.value=null,Ut.value=``,Kt.value=e,qt.value=[],Wt.value=`[]`;return}Ht.value===r.id&&Kt.value===e||await dr(r)}async function pr(e){let t=At.value.find(t=>t.id===e)??Mt.value.find(t=>t.id===e);t&&await dr(t)}async function mr(e){await dr(e)&&e.purpose===`review`&&(Vt.value=!0)}async function hr(){let e=h.value,t=Ht.value;if(!e||!t)return;Gt.value=``;let n=[];if(Jt.value===`visual`){let e=Vee(qt.value,Kt.value);if(e){Gt.value=e;return}n=Ol(qt.value,Kt.value)}else try{let e=JSON.parse(Wt.value);if(!Array.isArray(e)){Gt.value=`表单定义须为 JSON 数组`;return}n=e}catch{Gt.value=`JSON 格式不正确`;return}try{await _t(e,t,{name:Ut.value.trim()||void 0,schema_json:n}),Vt.value&&=!1,await un(),await fn(),await dn(),I.success(`表单已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function gr(e){let t=h.value;if(t){try{await L.confirm(`确定删除表单版本「${e.name}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await ree(t,e.id),Ht.value===e.id&&(Ht.value=null),e.purpose===`signup`?(await un(),kt.value===`signupForm`&&await fr(`signup`)):e.purpose===`audience`?(await fn(),kt.value===`audienceForm`&&await fr(`audience`)):await dn(),await yn(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}async function _r(){let e=h.value;if(!e)return;Ft.value=``;let t=null,n=Pt.value.trim();if(n)try{if(t=JSON.parse(n),t!==null&&typeof t!=`object`){Ft.value=`计分规则须为 JSON 对象`;return}}catch{Ft.value=`JSON 格式不正确`;return}try{await Le(e,{scoring_rules_json:t}),I.success(`计分规则已保存(留空表示使用系统默认)`),await yn()}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function vr(){let e=h.value;if(e)try{await Le(e,{review_form_schema_id:null}),I.success(`已取消评审表绑定,将使用系统默认评审项`),await yn(),await dn()}catch(e){I.error(e instanceof Error?e.message:`操作失败`)}}return o(()=>{yn()}),(t,n)=>{let o=y(`el-button`),s=y(`el-alert`),c=y(`el-input`),l=y(`el-form-item`),d=y(`el-col`),te=y(`el-switch`),me=y(`el-option`),F=y(`el-select`),Se=y(`el-checkbox`),Te=y(`el-date-picker`),Ee=y(`el-row`),De=y(`el-form`),I=y(`el-tab-pane`),L=y(`el-table-column`),Oe=y(`el-tag`),ke=y(`el-table`),Ae=y(`el-dropdown-item`),je=y(`el-dropdown-menu`),Me=y(`el-dropdown`),Ne=y(`el-pagination`),Pe=y(`el-input-number`),Fe=y(`el-radio-button`),Ie=y(`el-radio-group`),Le=y(`el-tabs`),Re=y(`el-descriptions-item`),ze=y(`el-descriptions`),Be=y(`el-drawer`),Ve=y(`el-dialog`),He=y(`el-divider`),Ue=e(`loading`);return u(),w(`div`,bOe,[S(`div`,xOe,[S(`h2`,SOe,M(Yt.value),1),P(o,{class:`workspace-back`,onClick:n[0]||=e=>a(r).push({name:`admin-competitions-list`})},{default:N(()=>[...n[111]||=[g(` 返回赛事列表 `,-1)]]),_:1})]),_.value&&!m()?(u(),i(s,{key:0,title:`请选择赛事`,type:`warning`,closable:!1,"show-icon":``,class:`workspace-alert`},{default:N(()=>[...n[112]||=[g(` 请先在顶部`,-1),S(`strong`,null,`赛事切换`,-1),g(`中选择一场赛事,或从「赛事列表」点击「进入赛事中心」。 `,-1)]]),_:1})):(u(),i(Le,{key:1,modelValue:kt.value,"onUpdate:modelValue":n[78]||=e=>kt.value=e,type:`border-card`,class:re([`workspace-tabs`,{"workspace-tabs--create":m()}])},{default:N(()=>[P(I,{label:`基础信息`,name:`basic`},{default:N(()=>[P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:20},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`赛事名称`},{default:N(()=>[P(c,{modelValue:b.value.name,"onUpdate:modelValue":n[1]||=e=>b.value.name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`访问地址`},{default:N(()=>[P(c,{modelValue:b.value.slug,"onUpdate:modelValue":n[2]||=e=>b.value.slug=e,autocomplete:`off`},null,8,[`modelValue`]),n[113]||=S(`p`,{class:`form-hint`},`用于选手端网址识别,可使用中文、数字、横线等,请勿含空格。`,-1),S(`div`,COe,[(u(!0),w(A,null,D(rn.value,(e,t)=>(u(),w(`p`,{key:t,class:`form-hint login-link-preview`},[S(`span`,wOe,M(e.label),1),S(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,class:`login-link-url`},M(e.href),9,TOe)]))),128))])]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`描述`},{default:N(()=>[P(c,{modelValue:b.value.description,"onUpdate:modelValue":n[3]||=e=>b.value.description=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`参赛承诺书`},{default:N(()=>[n[114]||=S(`p`,{class:`form-hint pledge-hint`},[g(` 以下为选手端签署弹窗顶部的标题、副标题与正文。标题可用 `),S(`code`,null,M(`{name}`)),g(` 插入赛事名称;任一项留空则使用系统默认文案。 `)],-1),P(c,{modelValue:b.value.pledge_title,"onUpdate:modelValue":n[4]||=e=>b.value.pledge_title=e,class:`pledge-heading-input`,maxlength:`200`,"show-word-limit":``,placeholder:`默认:{name}赛事承诺书`},null,8,[`modelValue`]),P(c,{modelValue:b.value.pledge_subtitle,"onUpdate:modelValue":n[5]||=e=>b.value.pledge_subtitle=e,class:`pledge-heading-input`,maxlength:`500`,"show-word-limit":``,placeholder:`默认:请完整阅读以下 4 项承诺,确认无误后在下方签名。`},null,8,[`modelValue`]),(u(),i($9,{modelValue:b.value.pledge_content_html,"onUpdate:modelValue":n[6]||=e=>b.value.pledge_content_html=e,key:Xt.value},null,8,[`modelValue`]))]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`参赛承诺书(英文)`},{default:N(()=>[n[115]||=S(`p`,{class:`form-hint pledge-hint`},` 英文报名端签署弹窗标题、副标题与正文。留空则使用系统英文默认文案。 `,-1),P(c,{modelValue:b.value.pledge_title_en,"onUpdate:modelValue":n[7]||=e=>b.value.pledge_title_en=e,class:`pledge-heading-input`,maxlength:`200`,"show-word-limit":``,placeholder:`Default: {name} Declaration`},null,8,[`modelValue`]),P(c,{modelValue:b.value.pledge_subtitle_en,"onUpdate:modelValue":n[8]||=e=>b.value.pledge_subtitle_en=e,class:`pledge-heading-input`,maxlength:`500`,"show-word-limit":``,placeholder:`Default: Please read all four sections carefully and sign below to confirm.`},null,8,[`modelValue`]),(u(),i($9,{modelValue:b.value.pledge_content_html_en,"onUpdate:modelValue":n[9]||=e=>b.value.pledge_content_html_en=e,key:Xt.value+`-en`},null,8,[`modelValue`]))]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`报名成功提示`},{default:N(()=>[P(te,{modelValue:b.value.success_notice_enabled,"onUpdate:modelValue":n[10]||=e=>b.value.success_notice_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),n[116]||=S(`p`,{class:`form-hint mt-2`},` 开启后,选手提交报名成功会看到自定义提示;关闭时保持系统默认提示。 `,-1),b.value.success_notice_enabled?(u(),i(c,{key:0,modelValue:b.value.success_notice_message,"onUpdate:modelValue":n[11]||=e=>b.value.success_notice_message=e,type:`textarea`,rows:4,maxlength:`1000`,"show-word-limit":``,placeholder:`请输入报名成功后展示给选手的提示语`},null,8,[`modelValue`])):xe(``,!0)]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`是否开启评审`},{default:N(()=>[P(te,{modelValue:b.value.review_portal_enabled,"onUpdate:modelValue":n[12]||=e=>b.value.review_portal_enabled=e,"active-text":`是`,"inactive-text":`否`},null,8,[`modelValue`]),n[117]||=S(`p`,{class:`form-hint mt-2`},` 关闭后,评审员无法登录评审端;已登录的评审员将退回登录页,并看到下方说明文字。仅影响评审端,不影响选手端与管理端。 `,-1),P(c,{modelValue:b.value.review_portal_message,"onUpdate:modelValue":n[13]||=e=>b.value.review_portal_message=e,type:`textarea`,rows:4,maxlength:`2000`,"show-word-limit":``,placeholder:`请输入关闭评审时展示给评审员的说明文字`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`截止后补传附件`},{default:N(()=>[P(te,{modelValue:b.value.post_close_file_edit_enabled,"onUpdate:modelValue":n[14]||=e=>b.value.post_close_file_edit_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),n[118]||=S(`p`,{class:`form-hint mt-2`},` 开启后,报名截止后仅白名单内登录手机号可上传/删除附件;其他报名信息仍不可修改,且无需再次提交。若项目已有评委评审/打分,仍不可改附件。 `,-1),b.value.post_close_file_edit_enabled?(u(),i(c,{key:0,modelValue:b.value.post_close_file_edit_mobiles,"onUpdate:modelValue":n[15]||=e=>b.value.post_close_file_edit_mobiles=e,type:`textarea`,rows:4,maxlength:`2000`,"show-word-limit":``,placeholder:`每行一个登录手机号,也可用逗号分隔,例如:
13800138000
13900139000`},null,8,[`modelValue`])):xe(``,!0)]),_:1})]),_:1}),P(d,{xs:24,sm:12,md:8},{default:N(()=>[P(l,{label:`状态`},{default:N(()=>[P(F,{modelValue:b.value.status,"onUpdate:modelValue":n[16]||=e=>b.value.status=e,class:`w-100`},{default:N(()=>[P(me,{label:`草稿`,value:`draft`}),P(me,{label:`已发布`,value:`published`}),P(me,{label:`报名进行中`,value:`signup_open`}),P(me,{label:`报名已截止`,value:`signup_closed`}),P(me,{label:`评审中`,value:`reviewing`}),P(me,{label:`已结束`,value:`ended`})]),_:1},8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,sm:12,md:8},{default:N(()=>[P(l,{label:`对外展示`},{default:N(()=>[P(Se,{modelValue:b.value.published,"onUpdate:modelValue":n[17]||=e=>b.value.published=e},{default:N(()=>[...n[119]||=[g(`在选手端展示`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`报名开始`},{default:N(()=>[P(Te,{modelValue:b.value.signup_open_at,"onUpdate:modelValue":n[18]||=e=>b.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(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`报名截止`},{default:N(()=>[P(Te,{modelValue:b.value.signup_close_at,"onUpdate:modelValue":n[19]||=e=>b.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(l,null,{default:N(()=>[P(o,{"native-type":`button`,type:`primary`,loading:Ot.value,onClick:xn},{default:N(()=>[g(M(Ot.value?`保存中…`:`保存基础信息`),1)]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1}),m()?xe(``,!0):(u(),i(I,{key:0,label:`赛道管理`,name:`tracks`,lazy:``},{default:N(()=>[de((u(),w(`div`,EOe,[S(`div`,DOe,[n[121]||=S(`p`,{class:`form-hint pane-toolbar-tip`},` 维护本场主题赛道与打分表(满分 100)。未配置打分表的赛道禁止评审。新建赛事请先保存基础信息。 `,-1),P(o,{type:`primary`,onClick:n[20]||=e=>Sn()},{default:N(()=>[...n[120]||=[g(`新增赛道`,-1)]]),_:1})]),P(ke,{data:ne.value,stripe:``,border:``,"empty-text":`暂无赛道`,class:`workspace-table`},{default:N(()=>[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:N(({row:e})=>[S(`span`,OOe,M(e.description||`—`),1)]),_:1}),P(L,{label:`打分表`,width:`100`},{default:N(({row:e})=>[P(Oe,{type:e.scoring_sheet_configured?`success`:`danger`,effect:`plain`,size:`small`},{default:N(()=>[g(M(e.scoring_sheet_configured?`已配置`:`未配置`),1)]),_:2},1032,[`type`])]),_:1}),P(L,{prop:`sort`,label:`排序`,width:`80`}),P(L,{label:`启用`,width:`80`},{default:N(({row:e})=>[g(M(e.is_enabled?`是`:`否`),1)]),_:1}),P(L,{label:`操作`,width:`140`,fixed:`right`,align:`right`},{default:N(({row:e})=>[P(o,{link:``,type:`primary`,size:`small`,onClick:t=>Sn(e)},{default:N(()=>[...n[122]||=[g(`编辑`,-1)]]),_:1},8,[`onClick`]),P(o,{link:``,type:`danger`,size:`small`,onClick:t=>rr(e)},{default:N(()=>[...n[123]||=[g(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Ue,ie.value]])]),_:1})),m()?xe(``,!0):(u(),i(I,{key:1,label:`观众场次`,name:`audienceSessions`,lazy:``},{default:N(()=>[h.value?(u(),i(eee,{key:0,"competition-id":h.value},null,8,[`competition-id`])):xe(``,!0)]),_:1})),m()?xe(``,!0):(u(),i(I,{key:2,label:`观众报名`,name:`audienceRegistrations`,lazy:``},{default:N(()=>[h.value?(u(),i(dt,{key:0,"competition-id":h.value},null,8,[`competition-id`])):xe(``,!0)]),_:1})),m()?xe(``,!0):(u(),i(I,{key:3,label:`赛事管理员`,name:`competitionAdmins`,lazy:``},{default:N(()=>[h.value?(u(),i(yOe,{key:0,"competition-id":h.value},null,8,[`competition-id`])):xe(``,!0)]),_:1})),m()?xe(``,!0):(u(),i(I,{key:4,label:`渠道管理`,name:`channels`,lazy:``},{default:N(()=>[de((u(),w(`div`,kOe,[S(`div`,AOe,[n[126]||=S(`p`,{class:`form-hint pane-toolbar-tip`},` 渠道编码由系统自动生成。共享密钥用于渠道跳转验签,请与渠道方安全同步。 `,-1),S(`div`,null,[P(o,{loading:oe.value,onClick:On},{default:N(()=>[...n[124]||=[g(` 刷新列表 `,-1)]]),_:1},8,[`loading`]),P(o,{type:`primary`,onClick:n[21]||=e=>Xn()},{default:N(()=>[...n[125]||=[g(` 新增渠道 `,-1)]]),_:1})])]),P(ke,{data:ae.value,stripe:``,border:``,"empty-text":`暂无渠道`,class:`workspace-table`},{default:N(()=>[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:N(({row:e})=>[P(Oe,{type:e.status===`enabled`?`success`:`info`,effect:`plain`},{default:N(()=>[g(M(e.status===`enabled`?`已启用`:`已停用`),1)]),_:2},1032,[`type`])]),_:1}),P(L,{label:`回调类型`,width:`96`},{default:N(({row:e})=>[g(M($n(e.success_callback_type)),1)]),_:1}),P(L,{label:`回调目标`,"min-width":`240`,"show-overflow-tooltip":``},{default:N(({row:e})=>[S(`span`,jOe,M(er(e)),1)]),_:1}),P(L,{prop:`remark`,label:`备注`,"min-width":`150`,"show-overflow-tooltip":``},{default:N(({row:e})=>[S(`span`,MOe,M(e.remark||`—`),1)]),_:1}),P(L,{prop:`created_at`,label:`创建时间`,"min-width":`180`}),P(L,{label:`操作`,width:`150`,fixed:`right`,align:`right`},{default:N(({row:e})=>[P(o,{link:``,type:`primary`,size:`small`,onClick:t=>Xn(e)},{default:N(()=>[...n[127]||=[g(`编辑`,-1)]]),_:1},8,[`onClick`]),P(o,{link:``,type:e.status===`enabled`?`danger`:`success`,size:`small`,onClick:t=>nr(e)},{default:N(()=>[g(M(e.status===`enabled`?`停用`:`启用`),1)]),_:2},1032,[`type`,`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Ue,oe.value]])]),_:1})),m()?xe(``,!0):(u(),i(I,{key:5,label:`报名信息`,name:`applications`,lazy:``},{default:N(()=>[de((u(),w(`div`,NOe,[S(`div`,POe,[S(`div`,FOe,[P(c,{modelValue:Ce.value.keyword,"onUpdate:modelValue":n[22]||=e=>Ce.value.keyword=e,placeholder:`搜索项目、姓名、学校、手机号、推荐方`,clearable:``,class:`application-filter-keyword`,onKeyup:n[23]||=fe(e=>Bn(1),[`enter`])},null,8,[`modelValue`]),P(F,{modelValue:Ce.value.status,"onUpdate:modelValue":n[24]||=e=>Ce.value.status=e,placeholder:`状态`,clearable:``,teleported:``,class:`application-filter-select`},{default:N(()=>[P(me,{label:`草稿`,value:`draft`}),P(me,{label:`已提交`,value:`submitted`})]),_:1},8,[`modelValue`]),P(F,{modelValue:Ce.value.track,"onUpdate:modelValue":n[25]||=e=>Ce.value.track=e,placeholder:`赛道`,clearable:``,teleported:``,class:`application-filter-select`},{default:N(()=>[(u(!0),w(A,null,D(ne.value,e=>(u(),i(me,{key:e.track_code,label:e.title,value:e.track_code},null,8,[`label`,`value`]))),128)),ne.value.some(e=>e.track_code===a(`other`))?xe(``,!0):(u(),i(me,{key:0,label:`其他`,value:a(Xe)},null,8,[`value`]))]),_:1},8,[`modelValue`]),P(F,{modelValue:Ce.value.signup_locale,"onUpdate:modelValue":n[26]||=e=>Ce.value.signup_locale=e,placeholder:`填报语言`,clearable:``,teleported:``,class:`application-filter-select`},{default:N(()=>[P(me,{label:`中文填报`,value:`zh-CN`}),P(me,{label:`英文填报`,value:`en`})]),_:1},8,[`modelValue`]),(u(!0),w(A,null,D(ft.value,e=>(u(),i(F,{key:`filter-${e.key}`,modelValue:we.value[e.key],"onUpdate:modelValue":t=>we.value[e.key]=t,placeholder:e.label,clearable:``,teleported:``,class:`application-filter-select`},{default:N(()=>[(u(!0),w(A,null,D(e.options??[],e=>(u(),i(me,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`placeholder`]))),128)),P(F,{modelValue:Ce.value.review_eligible,"onUpdate:modelValue":n[27]||=e=>Ce.value.review_eligible=e,placeholder:`是否参与评审`,clearable:``,teleported:``,class:`application-filter-select`},{default:N(()=>[P(me,{label:`参与评审`,value:!0}),P(me,{label:`不参与评审`,value:!1})]),_:1},8,[`modelValue`]),P(F,{modelValue:Ce.value.signup_channel_id,"onUpdate:modelValue":n[28]||=e=>Ce.value.signup_channel_id=e,placeholder:`报名渠道`,clearable:``,filterable:``,teleported:``,class:`application-filter-select application-filter-channel`},{default:N(()=>[(u(!0),w(A,null,D(ae.value,e=>(u(),i(me,{key:e.id,label:`${e.channel_name}(${e.channel_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),P(F,{modelValue:Ce.value.public_source_channel_id,"onUpdate:modelValue":n[29]||=e=>Ce.value.public_source_channel_id=e,placeholder:`用户渠道`,clearable:``,filterable:``,teleported:``,loading:ce.value,class:`application-filter-select application-filter-channel`},{default:N(()=>[(u(!0),w(A,null,D(se.value,e=>(u(),i(me,{key:e.id,label:`${e.source_name}(${e.source_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`loading`])]),S(`div`,IOe,[P(Me,{trigger:`click`,onCommand:Wn},{dropdown:N(()=>[P(je,null,{default:N(()=>[P(Ae,{command:`xlsx`},{default:N(()=>[...n[129]||=[g(`仅导出表格`,-1)]]),_:1}),P(Ae,{command:`selected`},{default:N(()=>[n[130]||=g(` 导出表格 + 所选项目附件 `,-1),ue.value.length?(u(),w(`span`,LOe,` (已选 `+M(ue.value.length)+`) `,1)):xe(``,!0)]),_:1}),P(Ae,{command:`all`},{default:N(()=>[...n[131]||=[g(`导出表格 + 全部项目附件`,-1)]]),_:1})]),_:1})]),default:N(()=>[P(o,{loading:he.value},{default:N(()=>[g(M(ge.value||`导出`)+` `,1),n[128]||=S(`span`,{class:`export-dropdown-caret`},`▾`,-1)]),_:1},8,[`loading`])]),_:1}),P(o,{onClick:Vn},{default:N(()=>[...n[132]||=[g(`重置`,-1)]]),_:1}),P(o,{type:`primary`,onClick:n[30]||=e=>Bn(1)},{default:N(()=>[...n[133]||=[g(`查询`,-1)]]),_:1})])]),ue.value.length?(u(),w(`p`,ROe,` 已选择 `+M(ue.value.length)+` 个项目,可使用「导出表格 + 所选项目附件」 `,1)):xe(``,!0),P(ke,{data:le.value,"row-key":`id`,stripe:``,border:``,"empty-text":`暂无报名记录`,class:`workspace-table`,onSelectionChange:Gn},{default:N(()=>[P(L,{type:`selection`,width:`48`,fixed:`left`,"reserve-selection":``}),P(L,{label:`填报语言`,width:`110`},{default:N(({row:e})=>[P(Oe,{type:e.signup_locale===`en`?`warning`:``,effect:`plain`},{default:N(()=>[g(M(e.signup_locale_label||`中文填报`),1)]),_:2},1032,[`type`])]),_:1}),P(L,{prop:`project_code`,label:`项目编号`,width:`120`,"show-overflow-tooltip":``}),P(L,{label:`状态`,width:`92`},{default:N(({row:e})=>[P(Oe,{type:jn(e.status),effect:`plain`},{default:N(()=>[g(M(An(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:`event_location`,label:`意向参赛地点`,width:`110`},{default:N(({row:e})=>[S(`span`,zOe,M(e.event_location_label||e.event_location||`—`),1)]),_:1}),P(L,{prop:`track_title`,label:`赛道`,"min-width":`130`,"show-overflow-tooltip":``}),(u(!0),w(A,null,D(Je.value,e=>(u(),i(L,{key:`col-${e.key}`,label:e.label,"min-width":`120`,"show-overflow-tooltip":``},{default:N(({row:t})=>[g(M(t.schema_display?.[e.key]||`—`),1)]),_:2},1032,[`label`]))),128)),P(L,{label:`报名渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:N(({row:e})=>[S(`span`,BOe,M(e.signup_channel?`${e.signup_channel.channel_name}(${e.signup_channel.channel_code})`:e.signup_channel_code||`—`),1)]),_:1}),P(L,{prop:`recommend`,label:`推荐方`,"min-width":`130`,"show-overflow-tooltip":``},{default:N(({row:e})=>[S(`span`,VOe,M(e.recommend||`—`),1)]),_:1}),P(L,{prop:`contact_mobile`,label:`手机号`,width:`128`}),P(L,{label:`提交人`,width:`110`,"show-overflow-tooltip":``},{default:N(({row:e})=>[S(`span`,HOe,M(e.submitter_name||e.submitter_mobile||`—`),1)]),_:1}),P(L,{prop:`submitter_mobile`,label:`提交人手机号`,width:`128`},{default:N(({row:e})=>[S(`span`,UOe,M(e.submitter_mobile||`—`),1)]),_:1}),P(L,{label:`用户渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:N(({row:e})=>[S(`span`,WOe,M(e.public_source_channel?`${e.public_source_channel.source_name}(${e.public_source_channel.source_code})`:e.public_source_code||`—`),1)]),_:1}),P(L,{label:`附件`,width:`76`,align:`right`},{default:N(({row:e})=>[g(M(e.files_count),1)]),_:1}),P(L,{label:`评分`,width:`150`},{default:N(({row:e})=>[S(`span`,GOe,M(e.submitted_review_count)+` 人 / 均分 `+M(Nn(e.team_avg)),1)]),_:1}),P(L,{label:`是否参与评审`,width:`130`,align:`center`},{default:N(({row:e})=>[P(te,{"model-value":e.review_eligible!==!1,loading:pt.value.includes(e.id),"inline-prompt":``,"active-text":`是`,"inactive-text":`否`,onChange:t=>void Hn(e,t===!0)},null,8,[`model-value`,`loading`,`onChange`])]),_:1}),P(L,{label:`提交时间`,"min-width":`150`},{default:N(({row:e})=>[g(M(Mn(e.submitted_at)),1)]),_:1}),P(L,{label:`操作`,width:`92`,fixed:`right`,align:`right`},{default:N(({row:e})=>[P(o,{link:``,type:`primary`,size:`small`,onClick:t=>Kn(e)},{default:N(()=>[...n[134]||=[g(`详情`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),S(`div`,KOe,[P(Ne,{"current-page":be.value.page,"onUpdate:currentPage":n[31]||=e=>be.value.page=e,"page-size":be.value.perPage,"onUpdate:pageSize":n[32]||=e=>be.value.perPage=e,background:``,layout:`total, sizes, prev, pager, next`,"page-sizes":[10,15,30,50,100],total:be.value.total,onCurrentChange:Bn,onSizeChange:n[33]||=e=>Bn(1)},null,8,[`current-page`,`page-size`,`total`])])])),[[Ue,pe.value]])]),_:1})),m()?xe(``,!0):(u(),i(I,{key:6,label:`报名表配置`,name:`signupForm`,lazy:``},{default:N(()=>[kt.value===`signupForm`?(u(),i(Ll,{key:0,purpose:`signup`,schemas:At.value,"bound-id":v.value?.form_schema_id,"bound-hint":`打开本页即可编辑当前报名表:左侧选组件,中间预览,右侧改中英标签。保存后点「设为当前报名表」才会在选手端生效。`,busy:Nt.value,"editor-id":Ht.value,"onUpdate:editorId":n[34]||=e=>Ht.value=e,"editor-name":Ut.value,"onUpdate:editorName":n[35]||=e=>Ut.value=e,items:qt.value,"onUpdate:items":n[36]||=e=>qt.value=e,"editor-tab":Jt.value,"onUpdate:editorTab":n[37]||=e=>Jt.value=e,"json-text":Wt.value,"onUpdate:jsonText":n[38]||=e=>Wt.value=e,error:Gt.value,"onUpdate:error":n[39]||=e=>Gt.value=e,onCreate:n[40]||=e=>ar(`signup`),onRefresh:n[41]||=e=>un().then(()=>fr(`signup`)),onSave:hr,onBind:sr,onPublish:ur,onRemove:gr,onSelect:pr,onJsonBlur:on},null,8,[`schemas`,`bound-id`,`busy`,`editor-id`,`editor-name`,`items`,`editor-tab`,`json-text`,`error`])):xe(``,!0)]),_:1})),m()?xe(``,!0):(u(),i(I,{key:7,label:`观众报名表`,name:`audienceForm`,lazy:``},{default:N(()=>[kt.value===`audienceForm`?(u(),i(Ll,{key:0,purpose:`audience`,schemas:Mt.value,"bound-id":v.value?.audience_form_schema_id,"bound-hint":`打开本页即可编辑当前观众报名表。设为当前后观众端按该版本动态渲染;未绑定则使用默认五项。`,busy:Nt.value,"editor-id":Ht.value,"onUpdate:editorId":n[42]||=e=>Ht.value=e,"editor-name":Ut.value,"onUpdate:editorName":n[43]||=e=>Ut.value=e,items:qt.value,"onUpdate:items":n[44]||=e=>qt.value=e,"editor-tab":Jt.value,"onUpdate:editorTab":n[45]||=e=>Jt.value=e,"json-text":Wt.value,"onUpdate:jsonText":n[46]||=e=>Wt.value=e,error:Gt.value,"onUpdate:error":n[47]||=e=>Gt.value=e,onCreate:n[48]||=e=>ar(`audience`),onRefresh:n[49]||=e=>fn().then(()=>fr(`audience`)),onSave:hr,onBind:lr,onPublish:ur,onRemove:gr,onSelect:pr,onJsonBlur:on},null,8,[`schemas`,`bound-id`,`busy`,`editor-id`,`editor-name`,`items`,`editor-tab`,`json-text`,`error`])):xe(``,!0)]),_:1})),m()?xe(``,!0):(u(),i(I,{key:8,label:`评审与计分`,name:`review`,lazy:``},{default:N(()=>[S(`div`,qOe,[n[142]||=S(`h3`,{class:`section-title`},`评审打分表`,-1),S(`p`,JOe,[n[135]||=g(` 配置评审端打分项(与报名表独立)。当前绑定编号:`,-1),S(`strong`,null,M(v.value?.review_form_schema_id??`未绑定(系统默认)`),1)]),S(`div`,YOe,[P(o,{type:`primary`,disabled:!h.value,onClick:n[50]||=e=>ar(`review`)},{default:N(()=>[...n[136]||=[g(` 新建评审表版本 `,-1)]]),_:1},8,[`disabled`]),P(o,{onClick:vr},{default:N(()=>[...n[137]||=[g(`取消绑定(用默认)`,-1)]]),_:1}),P(o,{loading:Nt.value,onClick:dn},{default:N(()=>[...n[138]||=[g(`刷新列表`,-1)]]),_:1},8,[`loading`])]),P(ke,{data:jt.value,stripe:``,border:``,"empty-text":`暂无版本`,class:`workspace-table workspace-table--mb`},{default:N(()=>[P(L,{prop:`name`,label:`名称`,"min-width":`120`}),P(L,{prop:`version`,label:`版本`,width:`80`}),P(L,{label:`发布`,width:`72`},{default:N(({row:e})=>[g(M(e.is_published?`是`:`否`),1)]),_:1}),P(L,{label:`当前`,width:`88`},{default:N(({row:e})=>[g(M(e.is_current_review?`当前`:`—`),1)]),_:1}),P(L,{label:`字段预览`,"min-width":`200`},{default:N(({row:e})=>[S(`span`,XOe,M(ir(e.field_labels,e.schema_json)),1)]),_:1}),P(L,{label:`操作`,width:`260`,fixed:`right`,align:`right`},{default:N(({row:e})=>[P(o,{link:``,type:`primary`,size:`small`,onClick:t=>cr(e.id)},{default:N(()=>[...n[139]||=[g(`设为当前`,-1)]]),_:1},8,[`onClick`]),P(o,{link:``,type:`primary`,size:`small`,onClick:t=>mr(e)},{default:N(()=>[...n[140]||=[g(`编辑`,-1)]]),_:1},8,[`onClick`]),P(o,{link:``,size:`small`,onClick:t=>ur(e,!e.is_published)},{default:N(()=>[g(M(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),P(o,{link:``,type:`danger`,size:`small`,onClick:t=>gr(e)},{default:N(()=>[...n[141]||=[g(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),S(`div`,ZOe,[n[148]||=S(`h3`,{class:`section-title`},`计分规则`,-1),n[149]||=S(`p`,{class:`form-hint`},` 数据库中按 JSON 对象存储。留空并保存表示使用系统默认规则。多数情况只需填写各评分维度的 key 与权重,再点「生成 JSON」。 `,-1),n[150]||=S(`p`,{class:`subsection-label`},`快捷配置(维度加权求和 → line_total)`,-1),n[151]||=S(`p`,{class:`form-hint`},`「维度 key」须与评审 Schema 里数字打分项的字段名一致。`,-1),P(ke,{data:Lt.value,border:``,size:`small`,class:`workspace-table workspace-table--mb`},{default:N(()=>[P(L,{label:`维度 key`,"min-width":`160`},{default:N(({row:e})=>[P(c,{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:N(({row:e})=>[P(Pe,{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:N(({row:e})=>[P(Pe,{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:N(({row:e})=>[P(Pe,{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:N(({$index:e})=>[P(o,{link:``,type:`danger`,size:`small`,onClick:t=>gn(e)},{default:N(()=>[...n[143]||=[g(`删行`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),S(`div`,QOe,[P(o,{onClick:hn},{default:N(()=>[...n[144]||=[g(`增加一行`,-1)]]),_:1}),P(o,{onClick:mn},{default:N(()=>[...n[145]||=[g(`从下方 JSON 解析到表格`,-1)]]),_:1}),P(o,{type:`primary`,onClick:vn},{default:N(()=>[...n[146]||=[g(`根据表格生成 JSON`,-1)]]),_:1})]),n[152]||=S(`p`,{class:`subsection-label`},`高级:直接编辑完整规则 JSON`,-1),P(c,{modelValue:Pt.value,"onUpdate:modelValue":n[51]||=e=>Pt.value=e,type:`textarea`,rows:8,class:`json-area`,spellcheck:`false`},null,8,[`modelValue`]),Ft.value?(u(),i(s,{key:0,type:`error`,closable:!1,class:`mt-2`,description:Ft.value},null,8,[`description`])):xe(``,!0),P(o,{type:`primary`,class:`mt-2`,onClick:_r},{default:N(()=>[...n[147]||=[g(`保存计分规则`,-1)]]),_:1})])]),_:1})),m()?xe(``,!0):(u(),i(I,{key:9,label:`品牌与文案`,name:`brand`,lazy:``},{default:N(()=>[S(`div`,$Oe,[P(Ie,{modelValue:T.value,"onUpdate:modelValue":n[52]||=e=>T.value=e},{default:N(()=>[P(Fe,{value:`zh`},{default:N(()=>[...n[153]||=[g(`中文对外文案`,-1)]]),_:1}),P(Fe,{value:`en`},{default:N(()=>[...n[154]||=[g(`英文登录 / 报名页`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),n[171]||=S(`p`,{class:`form-hint`},` 英文登录页的主标题、欢迎语、页脚在「英文登录 / 报名页」里配置。Logo、主题色与中文共用。改完请点下方保存。 `,-1),T.value===`zh`?(u(),w(A,{key:0},[n[159]||=S(`h3`,{class:`section-title`},`整站`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(l,{label:`浏览器标签标题`},{default:N(()=>[P(c,{modelValue:x.value.documentTitle,"onUpdate:modelValue":n[53]||=e=>x.value.documentTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),n[160]||=S(`h3`,{class:`section-title`},`登录页`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:16},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`品牌辅助行`},{default:N(()=>[P(c,{modelValue:x.value.login.markLine,"onUpdate:modelValue":n[54]||=e=>x.value.login.markLine=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`主标题`},{default:N(()=>[P(c,{modelValue:x.value.login.headline,"onUpdate:modelValue":n[55]||=e=>x.value.login.headline=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`标语`},{default:N(()=>[P(c,{modelValue:x.value.login.slogan,"onUpdate:modelValue":n[56]||=e=>x.value.login.slogan=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`登录卡片欢迎语`},{default:N(()=>[P(c,{modelValue:x.value.login.cardWelcome,"onUpdate:modelValue":n[57]||=e=>x.value.login.cardWelcome=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`页脚版权`},{default:N(()=>[P(c,{modelValue:x.value.login.footerCopyright,"onUpdate:modelValue":n[58]||=e=>x.value.login.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`标志图网址`},{default:N(()=>[P(c,{modelValue:x.value.login.logoUrl,"onUpdate:modelValue":n[59]||=e=>x.value.login.logoUrl=e,placeholder:`图片网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`网站图标网址`},{default:N(()=>[P(c,{modelValue:x.value.login.faviconUrl,"onUpdate:modelValue":n[60]||=e=>x.value.login.faviconUrl=e,placeholder:`图标网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`主题色(如 #109bd3)`},{default:N(()=>[P(c,{modelValue:x.value.login.themePrimary,"onUpdate:modelValue":n[61]||=e=>x.value.login.themePrimary=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`登录/报名页咨询信息`},{default:N(()=>[P(te,{modelValue:x.value.login.showConsult,"onUpdate:modelValue":n[62]||=e=>x.value.login.showConsult=e,"active-text":`显示`,"inactive-text":`隐藏`},null,8,[`modelValue`]),n[155]||=S(`p`,{class:`form-hint mb-0 mt-1`},` 名称与内容均可改,不限于「参赛咨询 / 技术咨询」。可增删行;内容中的电话会自动变成可拨打链接。全部留空则不展示。英文登录页的咨询名称可在「英文登录 / 报名页」单独填写。 `,-1)]),_:1})]),_:1}),x.value.login.showConsult?(u(),i(d,{key:0,span:24},{default:N(()=>[(u(!0),w(A,null,D(x.value.login.consultLines,(e,t)=>(u(),w(`div`,{key:t,class:`d-flex flex-wrap gap-2 mb-2 align-items-center`},[P(c,{modelValue:e.label,"onUpdate:modelValue":t=>e.label=t,placeholder:`名称,如 参赛咨询`,style:{"max-width":`180px`}},null,8,[`modelValue`,`onUpdate:modelValue`]),P(c,{modelValue:e.text,"onUpdate:modelValue":t=>e.text=t,placeholder:`内容,多个电话用顿号分隔`,class:`flex-grow-1`},null,8,[`modelValue`,`onUpdate:modelValue`]),P(o,{link:``,type:`danger`,onClick:e=>O(t)},{default:N(()=>[...n[156]||=[g(`删除`,-1)]]),_:1},8,[`onClick`])]))),128)),S(`div`,eke,[P(o,{onClick:E},{default:N(()=>[...n[157]||=[g(`增加一行`,-1)]]),_:1}),P(o,{onClick:ee},{default:N(()=>[...n[158]||=[g(`恢复默认两行`,-1)]]),_:1})])]),_:1})):xe(``,!0)]),_:1})]),_:1}),n[161]||=S(`h3`,{class:`section-title`},`报名填报页`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:16},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`页面标题`},{default:N(()=>[P(c,{modelValue:x.value.apply.pageTitle,"onUpdate:modelValue":n[63]||=e=>x.value.apply.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`副标题(整页填报说明)`},{default:N(()=>[P(c,{modelValue:x.value.apply.headerSubtitle,"onUpdate:modelValue":n[64]||=e=>x.value.apply.headerSubtitle=e,placeholder:`展示在页面标题下方,可选用`},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),n[162]||=S(`h3`,{class:`section-title`},`评审端`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:16},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`页面标题`},{default:N(()=>[P(c,{modelValue:x.value.review.pageTitle,"onUpdate:modelValue":n[65]||=e=>x.value.review.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`页脚版权`},{default:N(()=>[P(c,{modelValue:x.value.review.footerCopyright,"onUpdate:modelValue":n[66]||=e=>x.value.review.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),n[163]||=S(`h3`,{class:`section-title`},`运营后台`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:16},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`登录页标题`},{default:N(()=>[P(c,{modelValue:x.value.admin.loginTitle,"onUpdate:modelValue":n[67]||=e=>x.value.admin.loginTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`页脚版权`},{default:N(()=>[P(c,{modelValue:x.value.admin.footerCopyright,"onUpdate:modelValue":n[68]||=e=>x.value.admin.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`侧栏产品名称`},{default:N(()=>[P(c,{modelValue:x.value.admin.sidebarProductName,"onUpdate:modelValue":n[69]||=e=>x.value.admin.sidebarProductName=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1})],64)):(u(),w(A,{key:1},[n[167]||=S(`h3`,{class:`section-title`},`英文登录页`,-1),n[168]||=S(`p`,{class:`form-hint`},`仅覆盖英文端对应项;留空则沿用中文文案。Logo、主题色、网站图标与中文登录页共用。`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:16},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`浏览器标签标题`},{default:N(()=>[P(c,{modelValue:C.value.documentTitle,"onUpdate:modelValue":n[70]||=e=>C.value.documentTitle=e,placeholder:`English browser title`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`登录主标题`},{default:N(()=>[P(c,{modelValue:C.value.login.headline,"onUpdate:modelValue":n[71]||=e=>C.value.login.headline=e,placeholder:`Main headline`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`品牌辅助行`},{default:N(()=>[P(c,{modelValue:C.value.login.markLine,"onUpdate:modelValue":n[72]||=e=>C.value.login.markLine=e,placeholder:`Brand line above the title`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`标语`},{default:N(()=>[P(c,{modelValue:C.value.login.slogan,"onUpdate:modelValue":n[73]||=e=>C.value.login.slogan=e,placeholder:`Slogan under the title`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`登录卡片欢迎语`},{default:N(()=>[P(c,{modelValue:C.value.login.cardWelcome,"onUpdate:modelValue":n[74]||=e=>C.value.login.cardWelcome=e,placeholder:`Welcome text on the form card`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`页脚版权`},{default:N(()=>[P(c,{modelValue:C.value.login.footerCopyright,"onUpdate:modelValue":n[75]||=e=>C.value.login.footerCopyright=e,placeholder:`Footer copyright`},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{span:24},{default:N(()=>[P(l,{label:`咨询信息(英文名称)`},{default:N(()=>[n[166]||=S(`p`,{class:`form-hint mb-2 mt-0`},` 留空则英文登录页沿用中文咨询行。填写后只替换英文端展示名称/内容。 `,-1),(u(!0),w(A,null,D(C.value.login.consultLines,(e,t)=>(u(),w(`div`,{key:t,class:`d-flex flex-wrap gap-2 mb-2 align-items-center`},[P(c,{modelValue:e.label,"onUpdate:modelValue":t=>e.label=t,placeholder:`Label, e.g. Registration`,style:{"max-width":`180px`}},null,8,[`modelValue`,`onUpdate:modelValue`]),P(c,{modelValue:e.text,"onUpdate:modelValue":t=>e.text=t,placeholder:`Phone numbers`,class:`flex-grow-1`},null,8,[`modelValue`,`onUpdate:modelValue`]),P(o,{link:``,type:`danger`,onClick:e=>j(t)},{default:N(()=>[...n[164]||=[g(`删除`,-1)]]),_:1},8,[`onClick`])]))),128)),P(o,{onClick:k},{default:N(()=>[...n[165]||=[g(`增加一行`,-1)]]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),n[169]||=S(`h3`,{class:`section-title`},`英文报名填报页`,-1),P(De,{"label-position":`top`,class:`workspace-form`},{default:N(()=>[P(Ee,{gutter:16},{default:N(()=>[P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`报名页标题`},{default:N(()=>[P(c,{modelValue:C.value.apply.pageTitle,"onUpdate:modelValue":n[76]||=e=>C.value.apply.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{xs:24,md:12},{default:N(()=>[P(l,{label:`报名页副标题`},{default:N(()=>[P(c,{modelValue:C.value.apply.headerSubtitle,"onUpdate:modelValue":n[77]||=e=>C.value.apply.headerSubtitle=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1})],64)),P(o,{"native-type":`button`,type:`primary`,class:`mt-compact`,loading:Ot.value,onClick:xn},{default:N(()=>[...n[170]||=[g(`保存(含品牌文案)`,-1)]]),_:1},8,[`loading`])]),_:1}))]),_:1},8,[`modelValue`,`class`])),P(Be,{modelValue:ve.value,"onUpdate:modelValue":n[80]||=e=>ve.value=e,title:`报名详情`,size:`min(760px, 94vw)`,"destroy-on-close":``},{default:N(()=>[de((u(),w(`div`,tke,[ye.value?(u(),w(A,{key:0},[f.value?(u(),w(`div`,nke,[P(o,{type:`warning`,plain:``,loading:p.value,onClick:Yn},{default:N(()=>[...n[172]||=[g(` 进入选手端 `,-1)]]),_:1},8,[`loading`])])):xe(``,!0),P(ze,{column:2,border:``,class:`application-detail-section`},{default:N(()=>[P(Re,{label:`项目编号`},{default:N(()=>[g(M(ye.value.project_code||`—`),1)]),_:1}),P(Re,{label:`状态`},{default:N(()=>[P(Oe,{type:jn(ye.value.status),effect:`plain`},{default:N(()=>[g(M(An(ye.value.status)),1)]),_:1},8,[`type`])]),_:1}),P(Re,{label:`项目名称`,span:2},{default:N(()=>[g(M(ye.value.project_name||`—`),1)]),_:1}),P(Re,{label:`负责人`},{default:N(()=>[g(M(ye.value.player_name||`—`),1)]),_:1}),P(Re,{label:`学校`},{default:N(()=>[g(M(ye.value.school||`—`),1)]),_:1}),P(Re,{label:`学历`},{default:N(()=>[g(M(ye.value.degree_label||ye.value.degree||`—`),1)]),_:1}),P(Re,{label:`手机号`},{default:N(()=>[g(M(ye.value.contact_mobile||`—`),1)]),_:1}),P(Re,{label:`邮箱`},{default:N(()=>[g(M(ye.value.contact_email||`—`),1)]),_:1}),P(Re,{label:`意向参赛地点`},{default:N(()=>[g(M(ye.value.event_location_label||ye.value.event_location||`—`),1)]),_:1}),P(Re,{label:`企业`},{default:N(()=>[g(M(ye.value.company_name||`—`),1)]),_:1}),P(Re,{label:`赛道`},{default:N(()=>[g(M(ye.value.track_title||`—`),1)]),_:1}),P(Re,{label:`填报语言`},{default:N(()=>[g(M(ye.value.signup_locale_label||`中文填报`),1)]),_:1}),P(Re,{label:`团队成员`,span:2},{default:N(()=>[g(M(ye.value.team_members||`—`),1)]),_:1}),P(Re,{label:`所在地`},{default:N(()=>[g(M(ye.value.location_label||[ye.value.location_country_label||ye.value.location_country,ye.value.location_province,ye.value.location_city,ye.value.oversea_country].filter(Boolean).join(` / `)||`—`),1)]),_:1}),P(Re,{label:`提交时间`},{default:N(()=>[g(M(Mn(ye.value.submitted_at)),1)]),_:1}),P(Re,{label:`承诺书签署`},{default:N(()=>[g(M(Mn(ye.value.promise_signed_at)),1)]),_:1}),P(Re,{label:`报名渠道`,span:2},{default:N(()=>[g(M(ye.value.signup_channel?`${ye.value.signup_channel.channel_name}(${ye.value.signup_channel.channel_code})`:ye.value.signup_channel_code||`—`),1)]),_:1}),(u(!0),w(A,null,D(ye.value.schema_fields??[],e=>(u(),i(Re,{key:e.key,label:e.label},{default:N(()=>[g(M(e.value||`—`),1)]),_:2},1032,[`label`]))),128)),P(Re,{label:`推荐方`,span:2},{default:N(()=>[g(M(ye.value.recommend||`—`),1)]),_:1}),P(Re,{label:`是否参与评审`,span:2},{default:N(()=>[P(te,{"model-value":ye.value.review_eligible!==!1,loading:mt.value,"inline-prompt":``,"active-text":`是`,"inactive-text":`否`,onChange:n[79]||=e=>void Un(e===!0)},null,8,[`model-value`,`loading`]),n[173]||=S(`span`,{class:`cell-muted ms-2`},`否:不出现在评审端`,-1)]),_:1})]),_:1}),n[174]||=S(`h3`,{class:`section-title`},`项目简介`,-1),S(`p`,rke,M(ye.value.intro||`—`),1),n[175]||=S(`h3`,{class:`section-title`},`附件`,-1),P(ke,{data:zn.value,border:``,"empty-text":`暂无附件`,class:`workspace-table workspace-table--mb`},{default:N(()=>[P(L,{label:`类型`,width:`120`},{default:N(({row:e})=>[g(M(In(e.kind)),1)]),_:1}),P(L,{label:`文件名`,"min-width":`220`,"show-overflow-tooltip":``},{default:N(({row:e})=>[g(M(e.original_name||`附件`),1)]),_:1}),P(L,{label:`大小`,width:`100`},{default:N(({row:e})=>[g(M(Pn(e.size)),1)]),_:1}),P(L,{label:`操作`,width:`90`,align:`right`},{default:N(({row:e})=>[P(o,{link:``,type:`primary`,size:`small`,loading:qn.value===e.id,disabled:qn.value!=null,onClick:t=>Jn(e.id,e.original_name,e.size)},{default:N(()=>[g(M(qn.value===e.id?`下载中…`:`下载`),1)]),_:2},1032,[`loading`,`disabled`,`onClick`])]),_:1})]),_:1},8,[`data`]),n[176]||=S(`h3`,{class:`section-title`},`评审汇总`,-1),S(`div`,ike,[S(`span`,null,`已评 `+M(ye.value.submitted_review_count)+` 人`,1),S(`span`,null,`总分 `+M(Nn(ye.value.team_sum)),1),S(`span`,null,`均分 `+M(Nn(ye.value.team_avg)),1)]),P(ke,{data:ye.value.review_scores,border:``,"empty-text":`暂无评分`,class:`workspace-table`},{default:N(()=>[P(L,{prop:`reviewer_name`,label:`评审员`,"min-width":`120`},{default:N(({row:e})=>[g(M(e.reviewer_name||`评审员 #${e.reviewer_id}`),1)]),_:1}),P(L,{label:`项目得分`,width:`100`},{default:N(({row:e})=>[g(M(Nn(e.line_total)),1)]),_:1}),P(L,{label:`更新时间`,"min-width":`160`},{default:N(({row:e})=>[g(M(Mn(e.updated_at)),1)]),_:1})]),_:1},8,[`data`])],64)):xe(``,!0)])),[[Ue,_e.value]])]),_:1},8,[`modelValue`]),P(Ve,{modelValue:Rt.value,"onUpdate:modelValue":n[83]||=e=>Rt.value=e,title:zt.value===`signup`?`新建报名表版本`:zt.value===`audience`?`新建观众报名表版本`:`新建评审表版本`,width:`480px`,"destroy-on-close":``,"align-center":``},{footer:N(()=>[P(o,{onClick:n[82]||=e=>Rt.value=!1},{default:N(()=>[...n[178]||=[g(`取消`,-1)]]),_:1}),P(o,{type:`primary`,onClick:or},{default:N(()=>[...n[179]||=[g(`创建`,-1)]]),_:1})]),default:N(()=>[P(De,{"label-position":`top`},{default:N(()=>[P(l,{label:`版本名称`},{default:N(()=>[P(c,{modelValue:Bt.value,"onUpdate:modelValue":n[81]||=e=>Bt.value=e,autocomplete:`off`},null,8,[`modelValue`]),n[177]||=S(`p`,{class:`text-muted small mt-2 mb-0`},`将创建空字段列表,保存后可在「编辑」中配置。`,-1)]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),P(Ve,{modelValue:Vt.value,"onUpdate:modelValue":n[89]||=e=>Vt.value=e,class:`schema-builder-dialog`,title:Kt.value===`signup`?`编辑报名表单`:Kt.value===`audience`?`编辑观众报名表`:`编辑评审表`,width:`96vw`,top:`2vh`,"destroy-on-close":``,"align-center":``},{footer:N(()=>[P(o,{onClick:n[88]||=e=>Vt.value=!1},{default:N(()=>[...n[183]||=[g(`取消`,-1)]]),_:1}),P(o,{type:`primary`,onClick:hr},{default:N(()=>[...n[184]||=[g(`完成并关闭`,-1)]]),_:1})]),default:N(()=>[S(`div`,ake,[P(c,{modelValue:Ut.value,"onUpdate:modelValue":n[84]||=e=>Ut.value=e,class:`schema-builder-dialog__name`,placeholder:`版本名称`,autocomplete:`off`},null,8,[`modelValue`]),P(Ie,{modelValue:Jt.value,"onUpdate:modelValue":n[85]||=e=>Jt.value=e,class:`schema-builder-dialog__mode`},{default:N(()=>[P(Fe,{value:`visual`},{default:N(()=>[...n[180]||=[g(`可视化设计`,-1)]]),_:1}),P(Fe,{value:`json`},{default:N(()=>[...n[181]||=[g(`JSON 源码`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),Jt.value===`visual`?(u(),i(Il,{key:0,modelValue:qt.value,"onUpdate:modelValue":n[86]||=e=>qt.value=e,purpose:Kt.value},null,8,[`modelValue`,`purpose`])):(u(),w(`div`,oke,[n[182]||=S(`p`,{class:`text-muted small mb-2`},` 适合粘贴备份或高级字段;切回可视化时会尽量同步(仅识别常用属性)。 `,-1),P(c,{modelValue:Wt.value,"onUpdate:modelValue":n[87]||=e=>Wt.value=e,type:`textarea`,rows:18,class:`font-monospace`,spellcheck:`false`,onBlur:on},null,8,[`modelValue`])])),Gt.value?(u(),w(`p`,ske,M(Gt.value),1)):xe(``,!0)]),_:1},8,[`modelValue`,`title`]),P(Ve,{modelValue:Ct.value,"onUpdate:modelValue":n[100]||=e=>Ct.value=e,title:wt.value?`编辑渠道`:`新增渠道`,width:`600px`,"destroy-on-close":``,"align-center":``},{footer:N(()=>[P(o,{onClick:n[99]||=e=>Ct.value=!1},{default:N(()=>[...n[194]||=[g(`取消`,-1)]]),_:1}),P(o,{type:`primary`,loading:Tt.value,onClick:tr},{default:N(()=>[...n[195]||=[g(`保存`,-1)]]),_:1},8,[`loading`])]),default:N(()=>[P(De,{"label-position":`top`},{default:N(()=>[wt.value?(u(),i(l,{key:0,label:`渠道编码`},{default:N(()=>[P(c,{"model-value":ae.value.find(e=>e.id===wt.value)?.channel_code??``,disabled:``},null,8,[`model-value`])]),_:1})):xe(``,!0),P(l,{label:`渠道名称`},{default:N(()=>[P(c,{modelValue:Dt.value.channel_name,"onUpdate:modelValue":n[90]||=e=>Dt.value.channel_name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),P(l,{label:`共享密钥`},{default:N(()=>[P(c,{modelValue:Dt.value.shared_secret,"onUpdate:modelValue":n[91]||=e=>Dt.value.shared_secret=e,autocomplete:`off`},{append:N(()=>[P(o,{onClick:Qn},{default:N(()=>[...n[185]||=[g(`生成`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),wt.value?(u(),w(A,{key:1},[P(l,{label:`加密算法`},{default:N(()=>[P(c,{"model-value":Et.value?.encryption_algorithm||`—`,readonly:``},null,8,[`model-value`])]),_:1}),P(l,{label:`入口敏感字段加密`},{default:N(()=>[P(te,{modelValue:Dt.value.entry_encryption_enabled,"onUpdate:modelValue":n[92]||=e=>Dt.value.entry_encryption_enabled=e,"active-text":`启用`,"inactive-text":`关闭`},null,8,[`modelValue`])]),_:1}),P(l,{label:`加密公钥(PEM)`},{default:N(()=>[P(c,{"model-value":Et.value?.encryption_public_key||``,type:`textarea`,rows:8,readonly:``,placeholder:`暂无加密公钥`,class:`channel-public-key`},null,8,[`model-value`]),P(o,{class:`channel-public-key-copy`,disabled:!Et.value?.encryption_public_key,onClick:Zn},{default:N(()=>[...n[186]||=[g(` 复制公钥 `,-1)]]),_:1},8,[`disabled`])]),_:1})],64)):xe(``,!0),P(l,{label:`报名成功回调`},{default:N(()=>[P(Ie,{modelValue:Dt.value.success_callback_type,"onUpdate:modelValue":n[93]||=e=>Dt.value.success_callback_type=e},{default:N(()=>[P(Fe,{value:`none`},{default:N(()=>[...n[187]||=[g(`不回调`,-1)]]),_:1}),P(Fe,{value:`web`},{default:N(()=>[...n[188]||=[g(`URL`,-1)]]),_:1}),P(Fe,{value:`mini_program`},{default:N(()=>[...n[189]||=[g(`小程序`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),Dt.value.success_callback_type===`web`?(u(),i(l,{key:2,label:`成功回跳地址`},{default:N(()=>[P(c,{modelValue:Dt.value.success_callback_url,"onUpdate:modelValue":n[94]||=e=>Dt.value.success_callback_url=e,autocomplete:`off`,placeholder:`https://example.com/...`},null,8,[`modelValue`])]),_:1})):xe(``,!0),Dt.value.success_callback_type===`mini_program`?(u(),w(A,{key:3},[P(l,{label:`小程序页面路径`},{default:N(()=>[P(c,{modelValue:Dt.value.mini_program_callback_path,"onUpdate:modelValue":n[95]||=e=>Dt.value.mini_program_callback_path=e,autocomplete:`off`,placeholder:`/pages/signup/result`},null,8,[`modelValue`]),n[190]||=S(`p`,{class:`form-hint`},` redirectTo、navigateTo、reLaunch 可带查询参数,系统会追加 state、application_id、status、hash 等回调参数;switchTab 只能跳 tabBar 页面,不能携带查询参数。 `,-1)]),_:1}),P(l,{label:`小程序路由方式`},{default:N(()=>[P(F,{modelValue:Dt.value.mini_program_callback_method,"onUpdate:modelValue":n[96]||=e=>Dt.value.mini_program_callback_method=e,class:`w-100`},{default:N(()=>[P(me,{label:`redirectTo(替换当前页面)`,value:`redirectTo`}),P(me,{label:`navigateTo(打开新页面)`,value:`navigateTo`}),P(me,{label:`reLaunch(重启到指定页)`,value:`reLaunch`}),P(me,{label:`switchTab(返回 tabBar 页面)`,value:`switchTab`})]),_:1},8,[`modelValue`])]),_:1})],64)):xe(``,!0),Dt.value.success_callback_type===`none`?(u(),i(l,{key:4,label:`回调说明`},{default:N(()=>[...n[191]||=[S(`p`,{class:`form-hint mb-0`},`选择不回调时,选手提交成功后只展示系统报名成功提示。`,-1)]]),_:1})):xe(``,!0),P(l,{label:`备注`},{default:N(()=>[P(c,{modelValue:Dt.value.remark,"onUpdate:modelValue":n[97]||=e=>Dt.value.remark=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1}),P(l,{label:`状态`},{default:N(()=>[P(Ie,{modelValue:Dt.value.status,"onUpdate:modelValue":n[98]||=e=>Dt.value.status=e},{default:N(()=>[P(Fe,{value:`enabled`},{default:N(()=>[...n[192]||=[g(`启用`,-1)]]),_:1}),P(Fe,{value:`disabled`},{default:N(()=>[...n[193]||=[g(`停用`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),P(Ve,{modelValue:ht.value,"onUpdate:modelValue":n[110]||=e=>ht.value=e,title:vt.value?`编辑赛道`:`新增赛道`,width:`920px`,"destroy-on-close":``,"align-center":``,class:`track-scoring-dialog`},{footer:N(()=>[P(o,{onClick:n[109]||=e=>ht.value=!1},{default:N(()=>[...n[203]||=[g(`取消`,-1)]]),_:1}),P(o,{type:`primary`,onClick:Dn},{default:N(()=>[...n[204]||=[g(`保存`,-1)]]),_:1})]),default:N(()=>[P(De,{"label-position":`top`},{default:N(()=>[P(l,{label:`赛道编码`},{default:N(()=>[P(c,{modelValue:yt.value.track_code,"onUpdate:modelValue":n[101]||=e=>yt.value.track_code=e,disabled:!!vt.value,autocomplete:`off`},null,8,[`modelValue`,`disabled`])]),_:1}),P(l,{label:`标题`},{default:N(()=>[P(c,{modelValue:yt.value.title,"onUpdate:modelValue":n[102]||=e=>yt.value.title=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),P(l,{label:`英文标题`},{default:N(()=>[P(c,{modelValue:yt.value.title_en,"onUpdate:modelValue":n[103]||=e=>yt.value.title_en=e,autocomplete:`off`,placeholder:`Track title in English`},null,8,[`modelValue`])]),_:1}),P(l,{label:`简介`},{default:N(()=>[P(c,{modelValue:yt.value.description,"onUpdate:modelValue":n[104]||=e=>yt.value.description=e,type:`textarea`,rows:2},null,8,[`modelValue`])]),_:1}),P(l,{label:`英文简介`},{default:N(()=>[P(c,{modelValue:yt.value.description_en,"onUpdate:modelValue":n[105]||=e=>yt.value.description_en=e,type:`textarea`,rows:2,placeholder:`Track description in English`},null,8,[`modelValue`])]),_:1}),P(Ee,{gutter:16},{default:N(()=>[P(d,{span:12},{default:N(()=>[P(l,{label:`排序`},{default:N(()=>[P(Pe,{modelValue:yt.value.sort,"onUpdate:modelValue":n[106]||=e=>yt.value.sort=e,step:1,"controls-position":`right`,style:{width:`100%`}},null,8,[`modelValue`])]),_:1})]),_:1}),P(d,{span:12},{default:N(()=>[P(l,{label:`状态`},{default:N(()=>[P(Se,{modelValue:yt.value.is_enabled,"onUpdate:modelValue":n[107]||=e=>yt.value.is_enabled=e},{default:N(()=>[...n[196]||=[g(`启用`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1}),P(He,{"content-position":`left`},{default:N(()=>[...n[197]||=[g(`打分表(满分 100,未配置则禁止评审)`,-1)]]),_:1}),P(l,{label:`评分表标题`},{default:N(()=>[P(c,{modelValue:yt.value.scoring_sheet_title,"onUpdate:modelValue":n[108]||=e=>yt.value.scoring_sheet_title=e,placeholder:`如:…初复赛评分表(某某赛道)`,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),S(`div`,cke,[S(`p`,lke,[n[198]||=g(` 当前分值合计: `,-1),S(`strong`,{class:re(Math.abs(xt.value-100)<1e-4?`text-ok`:`text-bad`)},M(xt.value),3),n[199]||=g(` / 100 `,-1)]),S(`div`,null,[P(o,{size:`small`,onClick:Tn},{default:N(()=>[...n[200]||=[g(`清空打分表`,-1)]]),_:1}),P(o,{size:`small`,type:`primary`,onClick:Cn},{default:N(()=>[...n[201]||=[g(`新增指标`,-1)]]),_:1})])]),P(ke,{data:yt.value.scoring_items,border:``,size:`small`,class:`workspace-table`},{default:N(()=>[P(L,{label:`序号`,width:`72`},{default:N(({row:e})=>[P(Pe,{modelValue:e.sort,"onUpdate:modelValue":t=>e.sort=t,min:1,step:1,"controls-position":`right`,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),P(L,{label:`指标分类`,"min-width":`110`},{default:N(({row:e})=>[P(c,{modelValue:e.category,"onUpdate:modelValue":t=>e.category=t,size:`small`,placeholder:`通用/特色`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),P(L,{label:`评审指标`,"min-width":`120`},{default:N(({row:e})=>[P(c,{modelValue:e.title,"onUpdate:modelValue":t=>e.title=t,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),P(L,{label:`key`,"min-width":`120`},{default:N(({row:e})=>[P(c,{modelValue:e.key,"onUpdate:modelValue":t=>e.key=t,size:`small`,placeholder:`英文字段名`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),P(L,{label:`核心评审要素`,"min-width":`180`},{default:N(({row:e})=>[P(c,{modelValue:e.criteria,"onUpdate:modelValue":t=>e.criteria=t,type:`textarea`,rows:2,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),P(L,{label:`分值`,width:`100`},{default:N(({row:e})=>[P(Pe,{modelValue:e.max_score,"onUpdate:modelValue":t=>e.max_score=t,min:0,max:100,step:1,"controls-position":`right`,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),P(L,{label:``,width:`64`,align:`center`},{default:N(({$index:e})=>[P(o,{link:``,type:`danger`,size:`small`,onClick:t=>wn(e)},{default:N(()=>[...n[202]||=[g(`删`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})]),_:1},8,[`modelValue`,`title`])])}}}),[[`__scopeId`,`data-v-5e9f5059`]]);export{uke as default};