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{$t as e,At as t,C as n,D as r,Dt as i,Et as a,Ht as o,I as s,It as c,Jt as l,Lt as u,Mt as d,Nt as f,O as p,Ot as m,Q as h,Qt as g,Rt as _,S as v,T as y,Ut as b,V as x,Vt as S,W as C,Wt as w,Xt as T,Y as E,Yt as D,Z as O,Zt as ee,_ as k,_t as A,a as j,an as te,at as M,bt as ne,cn as re,ct as ie,f as ae,h as oe,ht as se,in as N,jt as ce,k as le,kt as ue,ln as de,m as fe,nn as pe,nt as me,on as he,ot as ge,q as P,qt as _e,rn as ve,s as ye,sn as be,st as F,un as xe,w as Se,x as Ce,xt as we}from"./vue.runtime.esm-bundler-CACvpnko.js";import{C as Te,a as Ee,f as De,h as I,m as L,p as Oe,s as R}from"./index-D5exsJys.js";import{t as ke}from"./_plugin-vue_export-helper-CXTkFu_Z.js";import{a as Ae,c as je,d as Me,i as Ne,l as Pe,n as Fe,r as Ie,s as Le,t as Re,u as ze}from"./competitions-Cv_Vb4Fy.js";import{t as Be}from"./adminCompetition-D_kJwSx5.js";import{f as Ve,i as He,m as Ue,n as We,o as Ge,r as Ke,s as qe}from"./competitionBranding-CAjogVRl.js";import{n as Je,r as Ye,t as Xe}from"./datetimeShanghai-F85iiY-2.js";import{n as Ze}from"./downloadFeedback-HV11t-9m.js";import{a as Qe}from"./signupOptionCodes-CvTkOKn_.js";import{n as $e}from"./publicSourceChannels-DXk_gQ-o.js";import{a as et,n as tt,o as nt,r as rt,s as it,t as at}from"./applications-AYtK0hKj.js";import{a as ot,n as st,t as ct}from"./schemaAdminColumns-D9uCX5IN.js";import{t as lt}from"./AudienceSessionsPane-CevhlB4D.js";import{t as eee}from"./AudienceRegistrationsPane-DhkJO1qV.js";import{i as ut,n as dt,r as ft,t as pt}from"./competitionAdmins-CEFNkWBF.js";async function mt(e,t){let{data:n}=await R.get(`/competitions/${e}/form-schemas`,{params:t?{purpose:t}:{}}),r=n;return{data:r.data??[],signupFieldRegistry:r.meta?.signup_field_registry}}async function ht(e,t){let{data:n}=await R.get(`/competitions/${e}/form-schemas/${t}`),r=n?.data??n;if(!r||typeof r!=`object`||!(`id`in r))throw Error(`表单详情无效`);return r}async function tee(e,t){let{data:n}=await R.post(`/competitions/${e}/form-schemas`,t);return n}async function gt(e,t,n){let{data:r}=await R.patch(`/competitions/${e}/form-schemas/${t}`,n);return r}async function nee(e,t){await R.delete(`/competitions/${e}/form-schemas/${t}`)}var _t=`commitment_accepted`,vt=`commitment_promise`,yt={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:_t,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:[]};yt.all_supported_form_keys=[...yt.scalar_field_keys,...yt.file_field_keys,yt.commitment_field_key];var bt=yt;function xt(e){e&&Array.isArray(e.scalar_field_keys)&&(bt=e)}function St(e){let t=bt;return t.scalar_type_hints[e]??t.generic_scalar_types}function Ct(e,t){let n=e.trim(),r=t.trim();if(!n)return`存在未填写「字段 key」的项(须与 applications 表列名一致)`;let i=bt;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=St(n);return!r||!a.includes(r)?`字段「${n}」类型须为:${a.join(` / `)}`:null}function wt(e){let t=e?.data??e;if(!t||typeof t!=`object`||!(`id`in t))throw Error(`渠道响应格式无效`);return t}async function ree(e){let{data:t}=await R.get(`/competitions/${e}/signup-channels`),n=t?.data??t;if(!Array.isArray(n))throw Error(`渠道列表响应格式无效`);return n}async function iee(e,t){let{data:n}=await R.get(`/competitions/${e}/signup-channels/${t}`);return wt(n)}async function aee(e,t){let{data:n}=await R.post(`/competitions/${e}/signup-channels`,t);return wt(n)}async function Tt(e,t,n){let{data:r}=await R.put(`/competitions/${e}/signup-channels/${t}`,n);return wt(r)}function Et(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ri[t]=e[t]})}function Dt(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ui}}function Ot(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=Ui){return e&&(s?(e.helper(ii),e.helper(Kt(e.inSSR,l))):e.helper(Gt(e.inSSR,l)),o&&e.helper(gi)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function kt(e,t=Ui){return{type:17,loc:t,elements:e}}function At(e,t=Ui){return{type:15,loc:t,properties:e}}function jt(e,t){return{type:16,loc:Ui,key:D(e)?Mt(e,!0):e,value:t}}function Mt(e,t=!1,n=Ui,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Nt(e,t){return{type:5,loc:t,content:D(e)?Mt(e,!1,t):e}}function Pt(e,t=Ui){return{type:8,loc:t,children:e}}function Ft(e,t=[],n=Ui){return{type:14,loc:n,callee:e,arguments:t}}function It(e,t=void 0,n=!1,r=!1,i=Ui){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Lt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ui}}function Rt(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Ui}}function zt(e){return{type:21,body:e,loc:Ui}}function Bt(e){return{type:22,elements:e,loc:Ui}}function Vt(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Ui}}function Ht(e,t){return{type:24,left:e,right:t,loc:Ui}}function Ut(e){return{type:25,expressions:e,loc:Ui}}function Wt(e){return{type:26,returns:e,loc:Ui}}function Gt(e,t){return e||t?si:ci}function Kt(e,t){return e||t?ai:oi}function qt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Gt(r,e.isComponent)),t(ii),t(Kt(r,e.isComponent)))}function Jt(e){return e>=97&&e<=122||e>=65&&e<=90}function Yt(e){return e===32||e===10||e===9||e===12||e===13}function Xt(e){return e===47||e===62||Yt(e)}function Zt(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Qt(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function $t(e,t){let n=Qt(`MODE`,t),r=Qt(e,t);return n===3?r===!0:r!==!1}function en(e,t,n,...r){return $t(e,t)}function tn(e,t,n,...r){if(Qt(e,t)===`suppress-warning`)return;let{message:i,link:a}=Yi[e],o=`(deprecation ${e}) ${typeof i==`function`?i(...r):i}${a?`
Details: ${a}`:``}`,s=SyntaxError(o);s.code=e,n&&(s.loc=n),t.onWarn(s)}function nn(e){throw e}function rn(e){}function an(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 on(e,t,n=!1,r=[],i=Object.create(null)){}function sn(e,t,n){return!1}function cn(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 ln(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 un(e,t){for(let n of e.params)for(let e of hn(n))t(e)}function dn(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 hn(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else fn(e)?pn(e,!0,t):e.type===`SwitchStatement`&&mn(e,!0,t)}function fn(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function pn(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 hn(e.id))n(t)}function mn(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 hn(t.id))n(e);dn(r,n)}}function hn(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`?hn(n.argument,t):hn(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&hn(e,t)});break;case`RestElement`:hn(e.argument,t);break;case`AssignmentPattern`:hn(e.left,t);break}return t}function gn(e){return ta.includes(e.type)?gn(e.expression):e}function _n(e){switch(e){case`Teleport`:case`teleport`:return ei;case`Suspense`:case`suspense`:return ti;case`KeepAlive`:case`keep-alive`:return ni;case`BaseTransition`:case`base-transition`:return ri}}function vn(e,t,n=t.length){return yn({offset:e.offset,line:e.line,column:e.column},t,n)}function yn(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 bn(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function xn(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)&&(D(t)?i.name===t:t.test(i.name)))return i}}function Sn(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)&&Cn(a.arg,t))return a}}function Cn(e,t){return!!(e&&na(e)&&e.content===t)}function wn(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function Tn(e){return e.type===5||e.type===2}function En(e){return e.type===7&&e.name===`pre`}function Dn(e){return e.type===7&&e.name===`slot`}function On(e){return e.type===1&&e.tagType===3}function kn(e){return e.type===1&&e.tagType===2}function An(e,t=[]){if(e&&!D(e)&&e.type===14){let n=e.callee;if(!D(n)&&ga.has(n))return An(e.arguments[0],t.concat(e))}return[e,t]}function jn(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!D(i)&&i.type===14){let e=An(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||D(i))r=At([t]);else if(i.type===14){let e=i.arguments[0];!D(e)&&e.type===15?Mn(t,e)||e.properties.unshift(t):i.callee===Ei?r=Ft(n.helper(xi),[At([t]),i]):i.arguments.unshift(At([t])),!r&&(r=i)}else i.type===15?(Mn(t,i)||i.properties.unshift(t),r=i):(r=Ft(n.helper(xi),[At([t]),i]),o&&o.callee===Ti&&(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 Mn(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 Nn(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function Pn(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&&(Pn(r.arg,t)||Pn(r.exp,t)))return!0}return e.children.some(e=>Pn(e,t));case 11:return Pn(e.source,t)?!0:e.children.some(e=>Pn(e,t));case 9:return e.branches.some(e=>Pn(e,t));case 10:return Pn(e.condition,t)?!0:e.children.some(e=>Pn(e,t));case 4:return!e.isStatic&&ia(e.content)&&!!t[e.content];case 8:return e.children.some(e=>b(e)&&Pn(e,t));case 5:case 12:return Pn(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Fn(e){return e.type===14&&e.callee===Ii?e.arguments[1].returns:e}function In(e){for(let t=0;t<e.length;t++)if(!Yt(e.charCodeAt(t)))return!1;return!0}function Ln(e){return e.type===2&&In(e.content)||e.type===12&&Ln(e.content)}function Rn(e){return e.type===3||Ln(e)}function zn(e){let t=e.loc,n=e.content,r=n.match(_a);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return rr(e,!1,$n(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(Na,``).trim(),l=i.indexOf(c),u=c.match(Ma);if(u){c=c.replace(Ma,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function Bn(e,t){return xa.slice(e,t)}function Vn(e){ja.inSFCRoot&&(Sa.innerLoc=$n(e+1,e+1)),Qn(Sa);let{tag:t,ns:n}=Sa;n===0&&ya.isPreTag(t)&&Da++,ya.isVoidTag(t)?Un(Sa,e):(Aa.unshift(Sa),(n===1||n===2)&&(ja.inXML=!0)),Sa=null}function Hn(e,t,n){{let t=Aa[0]&&Aa[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=ya.decodeEntities(e,!1))}let r=Aa[0]||ba,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,tr(i.loc,n)):r.children.push({type:2,content:e,loc:$n(t,n)})}function Un(e,t,n=!1){n?tr(e.loc,Gn(t,60)):tr(e.loc,Wn(t,62)+1),ja.inSFCRoot&&(e.children.length?e.innerLoc.end=d({},e.children[e.children.length-1].loc.end):e.innerLoc.end=d({},e.innerLoc.start),e.innerLoc.source=Bn(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Oa||(r===`slot`?e.tagType=2:Kn(e)?e.tagType=3:qn(e)&&(e.tagType=1)),ja.inRCDATA||(e.children=Yn(a)),i===0&&ya.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&ya.isPreTag(r)&&Da--,ka===e&&(Oa=ja.inVPre=!1,ka=null),ja.inXML&&(Aa[0]?Aa[0].ns:ya.ns)===0&&(ja.inXML=!1);{let t=e.props;if(!ja.inSFCRoot&&$t(`COMPILER_NATIVE_TEMPLATE`,ya)&&e.tag===`template`&&!Kn(e)){let t=Aa[0]||ba,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&&en(`COMPILER_INLINE_TEMPLATE`,ya,n.loc)&&e.children.length&&(n.value={type:2,content:Bn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Wn(e,t){let n=e;for(;xa.charCodeAt(n)!==t&&n<xa.length-1;)n++;return n}function Gn(e,t){let n=e;for(;xa.charCodeAt(n)!==t&&n>=0;)n--;return n}function Kn({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&Pa.has(t[e].name))return!0}return!1}function qn({tag:e,props:t}){if(ya.isCustomElement(e))return!1;if(e===`component`||Jn(e.charCodeAt(0))||_n(e)||ya.isBuiltInComponent&&ya.isBuiltInComponent(e)||ya.isNativeTag&&!ya.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:`)||en(`COMPILER_IS_ON_ELEMENT`,ya,n.loc)))return!0}else if(n.name===`bind`&&Cn(n.arg,`is`)&&en(`COMPILER_IS_ON_ELEMENT`,ya,n.loc))return!0}return!1}function Jn(e){return e>64&&e<91}function Yn(e){let t=ya.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(Da)i.content=i.content.replace(Fa,`
`);else if(In(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&&Xn(i.content)))?(n=!0,e[r]=null):i.content=` `}else t&&(i.content=Zn(i.content))}return n?e.filter(Boolean):e}function Xn(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Zn(e){let t=``,n=!1;for(let r=0;r<e.length;r++)Yt(e.charCodeAt(r))?n||=(t+=` `,!0):(t+=e[r],n=!1);return t}function Qn(e){(Aa[0]||ba).children.push(e)}function $n(e,t){return{start:ja.getPos(e),end:t==null?t:ja.getPos(t),source:t==null?t:Bn(e,t)}}function er(e){return $n(e.start.offset,e.end.offset)}function tr(e,t){e.end=ja.getPos(t),e.source=Bn(e.start.offset,t)}function nr(e){let t={type:6,name:e.rawName,nameLoc:$n(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 rr(e,t=!1,n,r=0,i=0){return Mt(e,t,n,r)}function ir(e,t,n){ya.onError(an(e,$n(t,t),void 0,n))}function ar(){ja.reset(),Sa=null,Ca=null,wa=``,Ta=-1,Ea=-1,Aa.length=0}function or(e,t){if(ar(),xa=e,ya=d({},va),t){let e;for(e in t)t[e]!=null&&(ya[e]=t[e])}ja.mode=ya.parseMode===`html`?1:ya.parseMode===`sfc`?2:0,ja.inXML=ya.ns===1||ya.ns===2;let n=t&&t.delimiters;n&&(ja.delimiterOpen=Zt(n[0]),ja.delimiterClose=Zt(n[1]));let r=ba=Dt([],e);return ja.parse(xa),r.loc=$n(0,e.length),r.children=Yn(r.children),ba=null,r}function sr(e,t){lr(e,void 0,t,!!cr(e))}function cr(e){let t=e.children.filter(e=>e.type!==3);return t.length===1&&t[0].type===1&&!kn(t[0])?t[0]:null}function lr(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:ur(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)&&fr(s,n)>=2){let t=pr(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:ur(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++,lr(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)lr(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;t<s.branches.length;t++)lr(s.branches[t],e,n,s.branches[t].children.length===1,i)}let s=!1;if(o.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&u(e.codegenNode.children))e.codegenNode.children=c(kt(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!u(e.codegenNode.children)&&e.codegenNode.children.type===15){let t=l(e.codegenNode,`default`);t&&(t.returns=c(kt(t.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!u(t.codegenNode.children)&&t.codegenNode.children.type===15){let n=xn(e,`slot`,!0),r=n&&n.arg&&l(t.codegenNode,n.arg);r&&(r.returns=c(kt(r.returns)),s=!0)}}if(!s)for(let e of o)e.codegenNode=n.cache(e.codegenNode);function c(e){let t=n.cache(e);return t.needArraySpread=!0,t}function l(e,t){if(e.children&&!u(e.children)&&e.children.type===15){let n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function ur(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=fr(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=ur(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=ur(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(ii),t.removeHelper(Kt(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Gt(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 ur(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(D(r)||T(r))continue;let i=ur(r,t);if(i===0)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}function dr(e,t){if(e.type===14&&!D(e.callee)&&Ia.has(e.callee)){let n=e.arguments[0];if(n.type===4)return ur(n,t);if(n.type===14)return dr(n,t)}return 0}function fr(e,t){let n=3,r=pr(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=ur(i,t);if(o===0)return o;o<n&&(n=o);let s;if(s=a.type===4?ur(a,t):a.type===14?dr(a,t):0,s===0)return s;s<n&&(n=s)}}return n}function pr(e){let t=e.codegenNode;if(t.type===13)return t.props}function mr(e,{filename:n=``,prefixIdentifiers:r=!1,hoistStatic:a=!1,hmr:o=!1,cacheHandlers:s=!1,nodeTransforms:c=[],directiveTransforms:l={},transformHoist:u=null,isBuiltInComponent:d=ue,isCustomElement:f=ue,expressionPlugins:p=[],scopeId:m=null,slotted:h=!0,ssr:g=!1,inSSR:_=!1,ssrCssVars:v=``,bindingMetadata:y=i,inline:b=!1,isTS:x=!1,onError:S=nn,onWarn:C=rn,compatConfig:w}){let T=n.replace(/\?.*$/,``).match(/([^/\\]+)\.\w+$/),E={filename:n,selfName:T&&ce(t(T[1])),prefixIdentifiers:r,hoistStatic:a,hmr:o,cacheHandlers:s,nodeTransforms:c,directiveTransforms:l,transformHoist:u,isBuiltInComponent:d,isCustomElement:f,expressionPlugins:p,scopeId:m,slotted:h,ssr:g,inSSR:_,ssrCssVars:v,bindingMetadata:y,inline:b,isTS:x,onError:S,onWarn:C,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){let t=E.helpers.get(e);if(t){let n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString(e){return`_${Ri[E.helper(e)]}`},replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){let t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;!e||e===E.currentNode?(E.currentNode=null,E.onNodeRemoved()):E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:ue,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){D(e)&&(e=Mt(e)),E.hoists.push(e);let t=Mt(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=Rt(E.cached.length,e,t,n);return E.cached.push(r),r}};return E.filters=new Set,E}function hr(e,t){let n=mr(e,t);vr(e,n),t.hoistStatic&&sr(e,n),t.ssr||gr(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 gr(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=cr(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&qt(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=Ot(t,n($r),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function _r(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let i=e.children[n];D(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,vr(i,t))}}function vr(e,t){t.currentNode=e;let{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){let a=n[i](e,t);if(a&&(u(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(li);break;case 5:t.ssr||t.helper(bi);break;case 9:for(let n=0;n<e.branches.length;n++)vr(e.branches[n],t);break;case 10:case 11:case 1:case 0:_r(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function yr(e,t){let n=D(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(Dn))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 br(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`_${Ri[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 xr(e,t={}){let n=br(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(Sr(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(Ra).join(`, `)} } = _Vue
`,-1),c())),e.components.length&&(Cr(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Cr(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),Cr(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?Er(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 Sr(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 { ${[si,ci,li,ui,di].filter(e=>u.includes(e)).map(Ra).join(`, `)} } = _Vue
`,-1)),oee(e.hoists,t),a(),i(`return `)}function Cr(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?hi:t===`component`?fi:mi);for(let n=0;n<e.length;n++){let s=e[n],c=s.endsWith(`__self`);c&&(s=s.slice(0,-6)),r(`const ${Nn(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} = `),Er(a,t),r())}t.pure=!1}function wr(e,t){let n=e.length>3||!1;t.push(`[`),n&&t.indent(),Tr(e,t,n),n&&t.deindent(),t.push(`]`)}function Tr(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;o<e.length;o++){let s=e[o];D(s)?i(s,-3):u(s)?wr(s,t):Er(s,t),o<e.length-1&&(n?(r&&i(`,`),a()):r&&i(`, `))}}function Er(e,t){if(D(e)){t.push(e,-3);return}if(T(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Er(e.codegenNode,t);break;case 2:see(e,t);break;case 4:Dr(e,t);break;case 5:cee(e,t);break;case 12:Er(e.codegenNode,t);break;case 8:Or(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:kr(e,t);break;case 21:Tr(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 Dr(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(La),n(`${r(bi)}(`),Er(e.content,t),n(`)`)}function Or(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];D(r)?t.push(r,-3):Er(r,t)}}function lee(e,t){let{push:n}=t;e.type===8?(n(`[`),Or(e,t),n(`]`)):e.isStatic?n(ia(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(La),n(`${r(li)}(${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(gi)+`(`),d&&n(`(${r(ii)}(${f?`true`:``}), `),i&&n(La),n(r(d?Kt(t.inSSR,p):Gt(t.inSSR,p))+`(`,-2,e),Tr(fee([a,o,s,m,l]),t),n(`)`),d&&n(`)`),u&&(n(`, `),Er(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=D(e.callee)?e.callee:r(e.callee);i&&n(La),n(a+`(`,-2,e),Tr(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(`: `),Er(i,t),e<o.length-1&&(n(`,`),a())}s&&i(),n(s?`}`:` }`)}function hee(e,t){wr(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(`_${Ri[Ni]}(`),n(`(`,-2,e),u(a)?Tr(a,t):a&&Er(a,t),n(`) => `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),u(o)?wr(o,t):Er(o,t)):s&&Er(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=!ia(n.content);e&&o(`(`),Dr(n,t),e&&o(`)`)}else o(`(`),Er(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),Er(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,Er(i,t),u||t.indentLevel--,a&&c(!0)}function kr(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(Ai)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),Er(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(Ai)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function Ar(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function jr(e){return D(e)?e:e.type===4?e.content:e.children.map(jr).join(``)}function Mr(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(an(28,t.loc)),t.exp=Mt(`true`,!1,r)}if(t.name===`if`){let i=Nr(e,t),a={type:9,loc:er(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&&Rn(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(an(30,e.loc)),n.removeNode();let i=Nr(e,t);o.branches.push(i);let a=r&&r(o,i,!1);vr(i,n),a&&a(),n.currentNode=null}else n.onError(an(30,e.loc));break}}}function Nr(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!xn(e,`for`)?e.children:[e],userKey:Sn(e,`key`),isTemplateIf:n}}function Pr(e,t,n){return e.condition?Lt(e.condition,Fr(e,t,n),Ft(n.helper(li),[`""`,`true`])):Fr(e,t,n)}function Fr(e,t,n){let{helper:r}=n,i=jt(`key`,Mt(`${t}`,!1,Ui,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 jn(e,i,n),e}else return Ot(n,r($r),At([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=Fn(e);return t.type===13&&qt(t,n),jn(t,i,n),e}}function vee(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 Ir(e,t,n,r){if(!t.exp){n.onError(an(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(an(32,t.loc));return}Lr(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:On(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function Lr(e,t){e.finalized||=!0}function Rr({value:e,key:t,index:n},r=[]){return yee([e,t,n,...r])}function yee(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||Mt(`_`.repeat(t+1),!1))}function zr(e,t,n=Ga){t.helper(Ni);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=xn(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!na(e)&&(s=!0),a.push(jt(e||Mt(`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(!On(i)||!(m=xn(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(an(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=Mt(`default`,!0),exp:v,loc:y}=m,b;na(_)?b=_?_.content:`default`:s=!0;let x=xn(i,`for`),S=n(v,x,h,g),C,w;if(C=xn(i,`if`))s=!0,o.push(Lt(C.exp,Br(_,S,p++),Ha));else if(w=xn(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],Rn(i)););if(i&&On(i)&&xn(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?Lt(w.exp,Br(_,S,p++),Ha):Br(_,S,p++)}else t.onError(an(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Lr(e,t),o.push(Ft(t.helper(_i),[e.source,It(Rr(e),Br(_,S),!0)]))):t.onError(an(32,x.loc))}else{if(b){if(f.has(b)){t.onError(an(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(jt(_,S))}}if(!c){let e=(e,r)=>{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),jt(`default`,a)};l?d.length&&!d.every(Ln)&&(u?t.onError(an(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:Vr(e.children)?3:1,h=At(a.concat(jt(`_`,Mt(m+``,!1))),i);return o.length&&(h=Ft(t.helper(yi),[h,kt(o)])),{slots:h,hasDynamicSlots:s}}function Br(e,t,n){let r=[jt(`name`,e),jt(`fn`,t)];return n!=null&&r.push(jt(`key`,Mt(String(n),!0))),At(r)}function Vr(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||Vr(n.children))return!0;break;case 9:if(Vr(n.branches))return!0;break;case 10:case 11:if(Vr(n.children))return!0;break}}return!1}function Hr(e,t,n=!1){let{tag:r}=e,i=Kr(r),a=Sn(e,`is`,!1,!0);if(a)if(i||$t(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&&Mt(a.value.content,!0):(e=a.exp,e||=Mt(`is`,!1,a.arg.loc)),e)return Ft(t.helper(pi),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=_n(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(fi),t.components.add(r),Nn(r,`component`))}function Ur(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,v=!1,y=!1,b=!1,x=!1,S=[],C=e=>{l.length&&(u.push(At(Wr(l),s)),l=[]),e&&u.push(e)},E=()=>{t.scopes.vFor>0&&l.push(jt(Mt(`ref_for`,!0),Mt(`true`)))},D=({key:e,value:n})=>{if(na(e)){let a=e.content,o=w(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!_e(a)&&(y=!0),o&&_e(a)&&(x=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&ur(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?v=!0:a!==`key`&&!S.includes(a)&&S.push(a),r&&(a===`class`||a===`style`)&&!S.includes(a)&&S.push(a)}else b=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c;if(n===`ref`&&(h=!0,E()),n===`is`&&(Kr(o)||i&&i.content.startsWith(`vue:`)||$t(`COMPILER_IS_ON_ELEMENT`,t)))continue;l.push(jt(Mt(n,!0,r),Mt(i?i.content:``,!0,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:v}=c,y=n===`bind`,x=n===`on`;if(n===`slot`){r||t.onError(an(40,g));continue}if(n===`once`||n===`memo`||n===`is`||y&&Cn(i,`is`)&&(Kr(o)||$t(`COMPILER_IS_ON_ELEMENT`,t))||x&&a)continue;if((y&&Cn(i,`key`)||x&&f&&Cn(i,`vue:before-update`))&&(p=!0),y&&Cn(i,`ref`)&&E(),!i&&(y||x)){if(b=!0,h)if(y){if(C(),$t(`COMPILER_V_BIND_OBJECT_ORDER`,t)){u.unshift(h);continue}E(),C(),u.push(h)}else C({type:14,loc:g,callee:t.helper(Ei),arguments:r?[h]:[h,`true`]});else t.onError(an(y?34:35,g));continue}y&&v.some(e=>e.content===`prop`)&&(m|=32);let S=t.directiveTransforms[n];if(S){let{props:n,needRuntime:r}=S(c,e,t);!a&&n.forEach(D),x&&i&&!na(i)?C(At(n,s)):l.push(...n),r&&(d.push(c),T(r)&&Ka.set(c,r))}else _(n)||(d.push(c),f&&(p=!0))}}let O;if(u.length?(C(),O=u.length>1?Ft(t.helper(xi),u,s):u[0]):l.length&&(O=At(Wr(l),s)),b?m|=16:(g&&!r&&(m|=2),v&&!r&&(m|=4),S.length&&(m|=8),y&&(m|=32)),!p&&(m===0||m===32)&&(h||x||d.length>0)&&(m|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<O.properties.length;t++){let i=O.properties[t].key;na(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=O.properties[e],a=O.properties[n];r?O=Ft(t.helper(wi),[O]):(i&&!na(i.value)&&(i.value=Ft(t.helper(Si),[i.value])),a&&(v||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=Ft(t.helper(Ci),[a.value])));break;case 14:break;default:O=Ft(t.helper(wi),[Ft(t.helper(Ti),[O])]);break}return{props:O,directives:d,patchFlag:m,dynamicPropNames:S,shouldUseBlock:p}}function Wr(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`||w(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=kt([e.value,t.value],e.loc)}function Gr(e,t){let n=[],r=Ka.get(e);r?n.push(t.helperString(r)):(t.helper(mi),t.directives.add(e.name),n.push(Nn(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=Mt(`true`,!1,i);n.push(At(e.modifiers.map(e=>jt(e,t)),i))}return kt(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 Kr(e){return e===`component`||e===`Component`}function qr(e,n){let r=`"default"`,i,a=[];for(let n=0;n<e.props.length;n++){let i=e.props[n];i.type===6?i.value&&(i.name===`name`?r=JSON.stringify(i.value.content):(i.name=t(i.name),a.push(i))):i.name===`bind`&&Cn(i.arg,`name`)?i.exp?r=i.exp:i.arg&&i.arg.type===4&&(r=i.exp=Mt(t(i.arg.content),!1,i.arg.loc)):(i.name===`bind`&&i.arg&&na(i.arg)&&(i.arg.content=t(i.arg.content)),a.push(i))}if(a.length>0){let{props:t,directives:r}=Ur(e,n,a,!1,!1);i=t,r.length&&n.onError(an(36,r[0].loc))}return{slotName:r,slotProps:i}}function Jr(e=[]){return{props:e}}function Yr(e,t){if(e.type===4)Xr(e,t);else for(let n=0;n<e.children.length;n++){let r=e.children[n];typeof r==`object`&&(r.type===4?Xr(r,t):r.type===8?Yr(e,t):r.type===5&&Yr(r.content,t))}}function Xr(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||!no.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(hi);let r=t.indexOf(`(`);if(r<0)return n.filters.add(t),`${Nn(t,`filter`)}(${e})`;{let i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${Nn(i,`filter`)}(${e}${a===`)`?a:`,`+a}`}}function Zr(e){return[[oo,eo,Ba,ao,Va,...[ro],...[],Ja,qa,Ua,Qa],{on:Ya,bind:Xa,model:to}]}function Qr(e,t={}){let n=t.onError||nn,r=t.mode===`module`;t.prefixIdentifiers===!0?n(an(48)):r&&n(an(49)),t.cacheHandlers&&n(an(50)),t.scopeId&&!r&&n(an(51));let i=d({},t,{prefixIdentifiers:!1}),a=D(e)?or(e,i):e,[o,s]=Zr();return hr(a,d({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:d({},s,t.directiveTransforms||{})})),xr(a,i)}var $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,so,co,lo=be((()=>{c(),$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=Symbol(``),Ii=Symbol(``),Li=Symbol(``),Ri={[$r]:`Fragment`,[ei]:`Teleport`,[ti]:`Suspense`,[ni]:`KeepAlive`,[ri]:`BaseTransition`,[ii]:`openBlock`,[ai]:`createBlock`,[oi]:`createElementBlock`,[si]:`createVNode`,[ci]:`createElementVNode`,[li]:`createCommentVNode`,[ui]:`createTextVNode`,[di]:`createStaticVNode`,[fi]:`resolveComponent`,[pi]:`resolveDynamicComponent`,[mi]:`resolveDirective`,[hi]:`resolveFilter`,[gi]:`withDirectives`,[_i]:`renderList`,[vi]:`renderSlot`,[yi]:`createSlots`,[bi]:`toDisplayString`,[xi]:`mergeProps`,[Si]:`normalizeClass`,[Ci]:`normalizeStyle`,[wi]:`normalizeProps`,[Ti]:`guardReactiveProps`,[Ei]:`toHandlers`,[Di]:`camelize`,[Oi]:`capitalize`,[ki]:`toHandlerKey`,[Ai]:`setBlockTracking`,[ji]:`pushScopeId`,[Mi]:`popScopeId`,[Ni]:`withCtx`,[Pi]:`unref`,[Fi]:`isRef`,[Ii]:`withMemo`,[Li]:`isMemoSame`},zi={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},Bi={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`},Vi={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},Hi={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`},Ui={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},Wi=new Uint8Array([123,123]),Gi=new Uint8Array([125,125]),Ki={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])},qi=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=Wi,this.delimiterClose=Gi,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=Wi,this.delimiterClose=Gi}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?Xt(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||Yt(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===Ki.TitleEnd||this.currentSequence===Ki.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===Ki.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ki.Cdata.length&&(this.state=28,this.currentSequence=Ki.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===Ki.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):Jt(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){Xt(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Xt(e)){let t=this.buffer.slice(this.sectionStart,this.index);t!==`template`&&this.enterRCDATA(Zt(`</`+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){Yt(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Jt(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||Yt(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):Yt(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):Yt(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||Xt(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||Xt(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||Xt(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||Xt(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||Xt(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)):Yt(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):Yt(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){Yt(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=Ki.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===Ki.ScriptEnd[3]?this.startSpecial(Ki.ScriptEnd,4):e===Ki.StyleEnd[3]?this.startSpecial(Ki.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Ki.TitleEnd[3]?this.startSpecial(Ki.TitleEnd,4):e===Ki.TextareaEnd[3]?this.startSpecial(Ki.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===Ki.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){}},Ji={COMPILER_IS_ON_ELEMENT:`COMPILER_IS_ON_ELEMENT`,COMPILER_V_BIND_SYNC:`COMPILER_V_BIND_SYNC`,COMPILER_V_BIND_OBJECT_ORDER:`COMPILER_V_BIND_OBJECT_ORDER`,COMPILER_V_ON_NATIVE:`COMPILER_V_ON_NATIVE`,COMPILER_V_IF_V_FOR_PRECEDENCE:`COMPILER_V_IF_V_FOR_PRECEDENCE`,COMPILER_NATIVE_TEMPLATE:`COMPILER_NATIVE_TEMPLATE`,COMPILER_INLINE_TEMPLATE:`COMPILER_INLINE_TEMPLATE`,COMPILER_FILTERS:`COMPILER_FILTERS`},Yi={COMPILER_IS_ON_ELEMENT:{message:`Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`,link:`https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-model.html`},COMPILER_V_BIND_OBJECT_ORDER:{message:`v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-bind.html`},COMPILER_V_ON_NATIVE:{message:`.native modifier for v-on has been removed as is no longer necessary.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:`v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`},COMPILER_NATIVE_TEMPLATE:{message:`<template> with no special directives will render as a native template element instead of its inner content in Vue 3.`},COMPILER_INLINE_TEMPLATE:{message:`"inline-template" has been removed in Vue 3.`,link:`https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`},COMPILER_FILTERS:{message:`filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`,link:`https://v3-migration.vuejs.org/breaking-changes/filters.html`}},Xi={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__`},Zi={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:``},Qi=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),$i=e=>e&&(e.type===`ObjectProperty`||e.type===`ObjectMethod`)&&!e.computed,ea=(e,t)=>$i(t)&&t.key===e,ta=[`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`],na=e=>e.type===4&&e.isStatic,ra=/^$|^\d|[^\$\w\xA0-\uFFFF]/,ia=e=>!ra.test(e),aa=/[A-Za-z_$\xA0-\uFFFF]/,oa=/[\.\?\w$\xA0-\uFFFF]/,sa=/\s+[.[]\s*|\s*[.[]\s+/g,ca=e=>e.type===4?e.content:e.loc.source,la=e=>{let t=ca(e).trim().replace(sa,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?aa:oa).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},ua=ue,da=la,fa=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,pa=e=>fa.test(ca(e)),ma=ue,ha=pa,ga=new Set([wi,Ti]),_a=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,va={parseMode:`base`,ns:0,delimiters:[`{{`,`}}`],getNamespace:()=>0,isVoidTag:m,isPreTag:m,isIgnoreNewlineTag:m,isCustomElement:m,onError:nn,onWarn:rn,comments:!1,prefixIdentifiers:!1},ya=va,ba=null,xa=``,Sa=null,Ca=null,wa=``,Ta=-1,Ea=-1,Da=0,Oa=!1,ka=null,Aa=[],ja=new qi(Aa,{onerr:ir,ontext(e,t){Hn(Bn(e,t),e,t)},ontextentity(e,t,n){Hn(e,t,n)},oninterpolation(e,t){if(Oa)return Hn(Bn(e,t),e,t);let n=e+ja.delimiterOpen.length,r=t-ja.delimiterClose.length;for(;Yt(xa.charCodeAt(n));)n++;for(;Yt(xa.charCodeAt(r-1));)r--;let i=Bn(n,r);i.includes(`&`)&&(i=ya.decodeEntities(i,!1)),Qn({type:5,content:rr(i,!1,$n(n,r)),loc:$n(e,t)})},onopentagname(e,t){let n=Bn(e,t);Sa={type:1,tag:n,ns:ya.getNamespace(n,Aa[0],ya.ns),tagType:0,props:[],children:[],loc:$n(e-1,t),codegenNode:void 0}},onopentagend(e){Vn(e)},onclosetag(e,t){let n=Bn(e,t);if(!ya.isVoidTag(n)){let r=!1;for(let e=0;e<Aa.length;e++)if(Aa[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&ir(24,Aa[0].loc.start.offset);for(let n=0;n<=e;n++)Un(Aa.shift(),t,n<e);break}r||ir(23,Gn(e,60))}},onselfclosingtag(e){let t=Sa.tag;Sa.isSelfClosing=!0,Vn(e),Aa[0]&&Aa[0].tag===t&&Un(Aa.shift(),e)},onattribname(e,t){Ca={type:6,name:Bn(e,t),nameLoc:$n(e,t),value:void 0,loc:$n(e)}},ondirname(e,t){let n=Bn(e,t),r=n===`.`||n===`:`?`bind`:n===`@`?`on`:n===`#`?`slot`:n.slice(2);if(!Oa&&r===``&&ir(26,e),Oa||r===``)Ca={type:6,name:n,nameLoc:$n(e,t),value:void 0,loc:$n(e)};else if(Ca={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n===`.`?[Mt(`prop`)]:[],loc:$n(e)},r===`pre`){Oa=ja.inVPre=!0,ka=Sa;let e=Sa.props;for(let t=0;t<e.length;t++)e[t].type===7&&(e[t]=nr(e[t]))}},ondirarg(e,t){if(e===t)return;let n=Bn(e,t);if(Oa&&!En(Ca))Ca.name+=n,tr(Ca.nameLoc,t);else{let r=n[0]!==`[`;Ca.arg=rr(r?n:n.slice(1,-1),r,$n(e,t),r?3:0)}},ondirmodifier(e,t){let n=Bn(e,t);if(Oa&&!En(Ca))Ca.name+=`.`+n,tr(Ca.nameLoc,t);else if(Ca.name===`slot`){let e=Ca.arg;e&&(e.content+=`.`+n,tr(e.loc,t))}else{let r=Mt(n,!0,$n(e,t));Ca.modifiers.push(r)}},onattribdata(e,t){wa+=Bn(e,t),Ta<0&&(Ta=e),Ea=t},onattribentity(e,t,n){wa+=e,Ta<0&&(Ta=t),Ea=n},onattribnameend(e){let t=Ca.loc.start.offset,n=Bn(t,e);Ca.type===7&&(Ca.rawName=n),Sa.props.some(e=>(e.type===7?e.rawName:e.name)===n)&&ir(2,t)},onattribend(e,t){if(Sa&&Ca){if(tr(Ca.loc,t),e!==0)if(wa.includes(`&`)&&(wa=ya.decodeEntities(wa,!0)),Ca.type===6)Ca.name===`class`&&(wa=Zn(wa).trim()),e===1&&!wa&&ir(13,t),Ca.value={type:2,content:wa,loc:e===1?$n(Ta,Ea):$n(Ta-1,Ea+1)},ja.inSFCRoot&&Sa.tag===`template`&&Ca.name===`lang`&&wa&&wa!==`html`&&ja.enterRCDATA(Zt(`</template`),0);else{Ca.exp=rr(wa,!1,$n(Ta,Ea),0,0),Ca.name===`for`&&(Ca.forParseResult=zn(Ca.exp));let e=-1;Ca.name===`bind`&&(e=Ca.modifiers.findIndex(e=>e.content===`sync`))>-1&&en(`COMPILER_V_BIND_SYNC`,ya,Ca.loc,Ca.arg.loc.source)&&(Ca.name=`model`,Ca.modifiers.splice(e,1))}(Ca.type!==7||Ca.name!==`pre`)&&Sa.props.push(Ca)}wa=``,Ta=Ea=-1},oncomment(e,t){ya.comments&&Qn({type:3,content:Bn(e,t),loc:$n(e-4,t+3)})},onend(){let e=xa.length;for(let t=0;t<Aa.length;t++)Un(Aa[t],e-1),ir(24,Aa[t].loc.start.offset)},oncdata(e,t){Aa[0].ns===0?ir(1,e-9):Hn(Bn(e,t),e,t)},onprocessinginstruction(e){(Aa[0]?Aa[0].ns:ya.ns)===0&&ir(21,e-1)}}),Ma=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Na=/^\(|\)$/g,Pa=new Set([`if`,`else`,`else-if`,`for`,`slot`]),Fa=/\r\n/g,Ia=new Set([Si,Ci,wi,Ti]),La=`/*@__PURE__*/`,Ra=e=>`${Ri[e]}: _${Ri[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`),za=(e,t)=>{if(e.type===5)e.content=Ar(e.content,t);else if(e.type===1){let n=xn(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=Ar(e,t,i.name===`slot`)),r&&r.type===4&&!r.isStatic&&(i.arg=Ar(r,t))}}}},Ba=yr(/^(?:if|else|else-if)$/,(e,t,n)=>Mr(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=Pr(t,o,n);else{let r=vee(e.codegenNode);r.alternate=Pr(t,o+e.branches.length-1,n)}}})),Va=yr(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Ir(e,t,n,t=>{let a=Ft(r(_i),[t.source]),o=On(e),s=xn(e,`memo`),c=Sn(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?Mt(c.value.content,!0):void 0:c.exp),u=c&&l?jt(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=Ot(n,r($r),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=kn(e)?e:o&&e.children.length===1&&kn(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&u&&jn(c,u,n)):p?c=Ot(n,r($r),u?At([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&u&&jn(c,u,n),c.isBlock!==!d&&(c.isBlock?(i(ii),i(Kt(n.inSSR,c.isComponent))):i(Gt(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(r(ii),r(Kt(n.inSSR,c.isComponent))):r(Gt(n.inSSR,c.isComponent))),s){let e=It(Rr(t.parseResult,[Mt(`_cached`)]));e.body=zt([Pt([`const _memo = (`,s.exp,`)`]),Pt([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(Li)}(_cached, _memo)) return _cached`]),Pt([`const _item = `,c]),Mt(`_item.memo = _memo`),Mt(`return _item`)]),a.arguments.push(e,Mt(`_cache`),Mt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(It(Rr(t.parseResult),c,!0))}})}),Ha=Mt(`undefined`,!1),Ua=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=xn(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Wa=(e,t)=>{let n;if(On(e)&&e.props.some(Dn)&&(n=xn(e,`for`))){let e=n.forParseResult;if(e){Lr(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)}}}},Ga=(e,t,n,r)=>It(e,n,!1,!0,n.length?n[0].loc:r),Ka=new WeakMap,qa=(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?Hr(e,t):`"${n}"`,o=b(a)&&a.callee===pi,s,c,l=0,u,d,f,p=o||a===ei||a===ti||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=Ur(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?kt(r.map(e=>Gr(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===ni&&(p=!0,l|=1024),i&&a!==ei&&a!==ni){let{slots:n,hasDynamicSlots:r}=zr(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==ei){let n=e.children[0],r=n.type,i=r===5||r===8;i&&ur(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=xee(d)),e.codegenNode=Ot(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)},Ja=(e,t)=>{if(kn(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=qr(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=It([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=Ft(t.helper(vi),o,r)}},Ya=(e,n,r,i)=>{let{loc:a,modifiers:o,arg:s}=e;!e.exp&&!o.length&&r.onError(an(35,a));let c;if(s.type===4)if(s.isStatic){let e=s.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),c=Mt(n.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?te(t(e)):`on:${e}`,!0,s.loc)}else c=Pt([`${r.helperString(ki)}(`,s,`)`]);else c=s,c.children.unshift(`${r.helperString(ki)}(`),c.children.push(`)`);let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=r.cacheHandlers&&!l&&!r.inVOnce;if(l){let e=da(l),t=!(e||ha(l)),n=l.content.includes(`;`);(t||u&&e)&&(l=Pt([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,l,n?`}`:`)`]))}let d={props:[jt(c,l||Mt(`() => {}`,!1,a))]};return i&&(d=i(d)),u&&(d.props[0].value=r.cache(d.props[0].value)),d.props.forEach(e=>e.key.isHandlerKey=!0),d},Xa=(e,n,r)=>{let{modifiers:i,loc:a}=e,o=e.arg,{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),o.type===4?o.isStatic||(o.content=o.content?`${o.content} || ""`:`""`):(o.children.unshift(`(`),o.children.push(`) || ""`)),i.some(e=>e.content===`camel`)&&(o.type===4?o.isStatic?o.content=t(o.content):o.content=`${r.helperString(Di)}(${o.content})`:(o.children.unshift(`${r.helperString(Di)}(`),o.children.push(`)`))),r.inSSR||(i.some(e=>e.content===`prop`)&&Za(o,`.`),i.some(e=>e.content===`attr`)&&Za(o,`^`)),{props:[jt(o,s)]}},Za=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},Qa=(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(Tn(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(Tn(a))r||=n[e]=Pt([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(Tn(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&ur(r,t)===0&&i.push(`1`),n[e]={type:12,content:r,loc:r.loc,codegenNode:Ft(t.helper(ui),i)}}}}},$a=new WeakSet,eo=(e,t)=>{if(e.type===1&&xn(e,`once`,!0))return $a.has(e)||t.inVOnce||t.inSSR?void 0:($a.add(e),t.inVOnce=!0,t.helper(Ai),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},to=(e,n,r)=>{let{exp:i,arg:a}=e;if(!i)return r.onError(an(41,e.loc)),Jr();let o=i.loc.source.trim(),s=i.type===4?i.content:o,c=r.bindingMetadata[o];if(c===`props`||c===`props-aliased`)return r.onError(an(44,i.loc)),Jr();if(c===`literal-const`||c===`setup-const`)return r.onError(an(45,i.loc)),Jr();if(!s.trim()||!da(i))return r.onError(an(42,i.loc)),Jr();let l=a||Mt(`modelValue`,!0),u=a?na(a)?`onUpdate:${t(a.content)}`:Pt([`"onUpdate:" + `,a]):`onUpdate:modelValue`,d;d=Pt([`${r.isTS?`($event: any)`:`$event`} => ((`,i,`) = $event)`]);let f=[jt(l,e.exp),jt(u,d)];if(e.modifiers.length&&n.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(ia(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=a?na(a)?`${a.content}Modifiers`:Pt([a,` + "Modifiers"`]):`modelModifiers`;f.push(jt(n,Mt(`{ ${t} }`,!1,e.loc,2)))}return Jr(f)},no=/[\w).+\-_$\]]/,ro=(e,t)=>{$t(`COMPILER_FILTERS`,t)&&(e.type===5?Yr(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&Yr(e.exp,t)}))},io=new WeakSet,ao=(e,t)=>{if(e.type===1){let n=xn(e,`memo`);return!n||io.has(e)||t.inSSR?void 0:(io.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&qt(r,t),e.codegenNode=Ft(t.helper(Ii),[n.exp,It(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},oo=(e,n)=>{if(e.type===1){for(let r of e.props)if(r.type===7&&r.name===`bind`&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){let e=r.arg;if(e.type!==4||!e.isStatic)n.onError(an(53,e.loc)),r.exp=Mt(``,!0,e.loc);else{let n=t(e.content);(aa.test(n[0])||n[0]===`-`)&&(r.exp=Mt(n,!1,e.loc))}}}},so={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`},co=()=>({props:[]})})),uo=re({BASE_TRANSITION:()=>ri,BindingTypes:()=>so,CAMELIZE:()=>Di,CAPITALIZE:()=>Oi,CREATE_BLOCK:()=>ai,CREATE_COMMENT:()=>li,CREATE_ELEMENT_BLOCK:()=>oi,CREATE_ELEMENT_VNODE:()=>ci,CREATE_SLOTS:()=>yi,CREATE_STATIC:()=>di,CREATE_TEXT:()=>ui,CREATE_VNODE:()=>si,CompilerDeprecationTypes:()=>Ji,ConstantTypes:()=>Hi,DOMDirectiveTransforms:()=>Go,DOMErrorCodes:()=>Ao,DOMErrorMessages:()=>jo,DOMNodeTransforms:()=>Wo,ElementTypes:()=>Vi,ErrorCodes:()=>Xi,FRAGMENT:()=>$r,GUARD_REACTIVE_PROPS:()=>Ti,IS_MEMO_SAME:()=>Li,IS_REF:()=>Fi,KEEP_ALIVE:()=>ni,MERGE_PROPS:()=>xi,NORMALIZE_CLASS:()=>Si,NORMALIZE_PROPS:()=>wi,NORMALIZE_STYLE:()=>Ci,Namespaces:()=>zi,NodeTypes:()=>Bi,OPEN_BLOCK:()=>ii,POP_SCOPE_ID:()=>Mi,PUSH_SCOPE_ID:()=>ji,RENDER_LIST:()=>_i,RENDER_SLOT:()=>vi,RESOLVE_COMPONENT:()=>fi,RESOLVE_DIRECTIVE:()=>mi,RESOLVE_DYNAMIC_COMPONENT:()=>pi,RESOLVE_FILTER:()=>hi,SET_BLOCK_TRACKING:()=>Ai,SUSPENSE:()=>ti,TELEPORT:()=>ei,TO_DISPLAY_STRING:()=>bi,TO_HANDLERS:()=>Ei,TO_HANDLER_KEY:()=>ki,TRANSITION:()=>wo,TRANSITION_GROUP:()=>To,TS_NODE_TYPES:()=>ta,UNREF:()=>Pi,V_MODEL_CHECKBOX:()=>_o,V_MODEL_DYNAMIC:()=>bo,V_MODEL_RADIO:()=>go,V_MODEL_SELECT:()=>yo,V_MODEL_TEXT:()=>vo,V_ON_WITH_KEYS:()=>So,V_ON_WITH_MODIFIERS:()=>xo,V_SHOW:()=>Co,WITH_CTX:()=>Ni,WITH_DIRECTIVES:()=>gi,WITH_MEMO:()=>Ii,advancePositionWithClone:()=>vn,advancePositionWithMutation:()=>yn,assert:()=>bn,baseCompile:()=>Qr,baseParse:()=>or,buildDirectiveArgs:()=>Gr,buildProps:()=>Ur,buildSlots:()=>zr,checkCompatEnabled:()=>en,compile:()=>mo,convertToBlock:()=>qt,createArrayExpression:()=>kt,createAssignmentExpression:()=>Ht,createBlockStatement:()=>zt,createCacheExpression:()=>Rt,createCallExpression:()=>Ft,createCompilerError:()=>an,createCompoundExpression:()=>Pt,createConditionalExpression:()=>Lt,createDOMCompilerError:()=>po,createForLoopParams:()=>Rr,createFunctionExpression:()=>It,createIfStatement:()=>Vt,createInterpolation:()=>Nt,createObjectExpression:()=>At,createObjectProperty:()=>jt,createReturnStatement:()=>Wt,createRoot:()=>Dt,createSequenceExpression:()=>Ut,createSimpleExpression:()=>Mt,createStructuralDirectiveTransform:()=>yr,createTemplateLiteral:()=>Bt,createTransformContext:()=>mr,createVNodeCall:()=>Ot,errorMessages:()=>Zi,extractIdentifiers:()=>hn,findDir:()=>xn,findProp:()=>Sn,forAliasRE:()=>_a,generate:()=>xr,generateCodeFrame:()=>f,getBaseTransformPreset:()=>Zr,getConstantType:()=>ur,getMemoedVNodeCall:()=>Fn,getVNodeBlockHelper:()=>Kt,getVNodeHelper:()=>Gt,hasDynamicKeyVBind:()=>wn,hasScopeRef:()=>Pn,helperNameMap:()=>Ri,injectProp:()=>jn,isAllWhitespace:()=>In,isCommentOrWhitespace:()=>Rn,isCoreComponent:()=>_n,isFnExpression:()=>ha,isFnExpressionBrowser:()=>pa,isFnExpressionNode:()=>ma,isFunctionType:()=>Qi,isInDestructureAssignment:()=>cn,isInNewExpression:()=>ln,isMemberExpression:()=>da,isMemberExpressionBrowser:()=>la,isMemberExpressionNode:()=>ua,isReferencedIdentifier:()=>sn,isSimpleIdentifier:()=>ia,isSlotOutlet:()=>kn,isStaticArgOf:()=>Cn,isStaticExp:()=>na,isStaticProperty:()=>$i,isStaticPropertyKey:()=>ea,isTemplateNode:()=>On,isText:()=>Tn,isVPre:()=>En,isVSlot:()=>Dn,isWhitespaceText:()=>Ln,locStub:()=>Ui,noopDirectiveTransform:()=>co,parse:()=>ho,parserOptions:()=>Do,processExpression:()=>Ar,processFor:()=>Ir,processIf:()=>Mr,processSlotOutlet:()=>qr,registerRuntimeHelpers:()=>Et,resolveComponentType:()=>Hr,stringifyExpression:()=>jr,toValidAssetId:()=>Nn,trackSlotScopes:()=>Ua,trackVForSlotScopes:()=>Wa,transform:()=>hr,transformBind:()=>Xa,transformElement:()=>qa,transformExpression:()=>za,transformModel:()=>to,transformOn:()=>Ya,transformStyle:()=>Oo,transformVBindShorthand:()=>oo,traverseNode:()=>vr,unwrapTSNode:()=>gn,validFirstIdentCharRE:()=>aa,walkBlockDeclarations:()=>dn,walkFunctionParams:()=>un,walkIdentifiers:()=>on,warnDeprecation:()=>tn});function fo(e,t=!1){return Eo||=document.createElement(`div`),t?(Eo.innerHTML=`<div foo="${e.replace(/"/g,`&quot;`)}">`,Eo.children[0].getAttribute(`foo`)):(Eo.innerHTML=e,Eo.textContent)}function po(e,t){return an(e,t,void 0)}function mo(e,t={}){return Qr(e,d({},Do,t,{nodeTransforms:[Uo,...Wo,...t.nodeTransforms||[]],directiveTransforms:d({},Go,t.directiveTransforms||{}),transformHoist:null}))}function ho(e,t={}){return or(e,d({},Do,t))}var go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko=be((()=>{lo(),lo(),c(),go=Symbol(``),_o=Symbol(``),vo=Symbol(``),yo=Symbol(``),bo=Symbol(``),xo=Symbol(``),So=Symbol(``),Co=Symbol(``),wo=Symbol(``),To=Symbol(``),Et({[go]:`vModelRadio`,[_o]:`vModelCheckbox`,[vo]:`vModelText`,[yo]:`vModelSelect`,[bo]:`vModelDynamic`,[xo]:`withModifiers`,[So]:`withKeys`,[Co]:`vShow`,[wo]:`Transition`,[To]:`TransitionGroup`}),Do={parseMode:`html`,isVoidTag:ee,isNativeTag:e=>S(e)||l(e)||o(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:fo,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return wo;if(e===`TransitionGroup`||e===`transition-group`)return To},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}},Oo=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:Mt(`style`,!0,t.loc),exp:ko(t.value.content,t.loc),modifiers:[],loc:t.loc})})},ko=(e,t)=>{let n=pe(e);return Mt(JSON.stringify(n),!1,t,3)},Ao={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__`},jo={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.`},Mo=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(po(54,i)),t.children.length&&(n.onError(po(55,i)),t.children.length=0),{props:[jt(Mt(`innerHTML`,!0,i),r||Mt(``,!0))]}},No=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(po(56,i)),t.children.length&&(n.onError(po(57,i)),t.children.length=0),{props:[jt(Mt(`textContent`,!0),r?ur(r,n)>0?r:Ft(n.helperString(bi),[r],i):Mt(``,!0))]}},Po=(e,t,n)=>{let r=to(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(po(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=vo,s=!1;if(i===`input`||a){let r=Sn(t,`type`);if(r){if(r.type===7)o=bo;else if(r.value)switch(r.value.content){case`radio`:o=go;break;case`checkbox`:o=_o;break;case`file`:s=!0,n.onError(po(60,e.loc));break;default:break}}else wn(t)&&(o=bo)}else i===`select`&&(o=yo);s||(r.needRuntime=n.helper(o))}else n.onError(po(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Fo=g(`passive,once,capture`),Io=g(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),Lo=g(`left,right`),Ro=g(`onkeyup,onkeydown,onkeypress`),zo=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;s<t.length;s++){let c=t[s].content;c===`native`&&en(`COMPILER_V_ON_NATIVE`,n,r)||Fo(c)?o.push(c):Lo(c)?na(e)?Ro(e.content.toLowerCase())?i.push(c):a.push(c):(i.push(c),a.push(c)):Io(c)?a.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},Bo=(e,t)=>na(e)&&e.content.toLowerCase()===`onclick`?Mt(t,!0):e.type===4?e:Pt([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),Vo=(e,t,n)=>Ya(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=zo(i,r,n,e.loc);if(s.includes(`right`)&&(i=Bo(i,`onContextmenu`)),s.includes(`middle`)&&(i=Bo(i,`onMouseup`)),s.length&&(a=Ft(n.helper(xo),[a,JSON.stringify(s)])),o.length&&(!na(i)||Ro(i.content.toLowerCase()))&&(a=Ft(n.helper(So),[a,JSON.stringify(o)])),c.length){let e=c.map(ce).join(``);i=na(i)?Mt(`${i.content}${e}`,!0):Pt([`(`,i,`) + "${e}"`])}return{props:[jt(i,a)]}}),Ho=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(po(62,i)),{props:[],needRuntime:n.helper(Co)}},Uo=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},Wo=[Oo,...[]],Go={cloak:co,html:Mo,text:No,model:Po,on:Vo,show:Ho}})),qo=he((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=(Ko(),de(uo)),n=(j(),de(ye)),r=(c(),de(ve));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])})})),Jo=he(((e,t)=>{t.exports=qo()})),Yo=re({MultiDrag:()=>Uee,Sortable:()=>Ms,Swap:()=>Vee,default:()=>Ms});function Xo(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xo(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qo(e){"@babel/helpers - typeof";return Qo=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},Qo(e)}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 es(){return es=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},es.apply(this,arguments)}function ts(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 ns(e,t){if(e==null)return{};var n=ts(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 rs(e){return is(e)||as(e)||Cee(e)||wee()}function is(e){if(Array.isArray(e))return os(e)}function as(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Cee(e,t){if(e){if(typeof e==`string`)return os(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 os(e,t)}}function os(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 wee(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ss(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function cs(e,t,n){e.addEventListener(t,n,!Ws&&Xs)}function ls(e,t,n){e.removeEventListener(t,n,!Ws&&Xs)}function us(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 Tee(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ds(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&us(e,t):us(e,t))||r&&e===n)return e;if(e===n)break}while(e=Tee(e))}return null}function fs(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(Zs,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(Zs,` `))}function ps(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 ms(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=ps(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 hs(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 gs(){return document.scrollingElement||document.documentElement}function _s(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==gs()?(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,!Ws))do if(i&&i.getBoundingClientRect&&(ps(i,`transform`)!==`none`||n&&ps(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(ps(i,`border-top-width`)),s-=f.left+parseInt(ps(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=ms(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 vs(e,t,n){for(var r=Cs(e,!0),i=_s(e)[t];r;){var a=_s(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===gs())break;r=Cs(r,!1)}return!1}function ys(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==Ms.ghost&&(r||o[a]!==Ms.dragged)&&ds(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function bs(e,t){for(var n=e.lastElementChild;n&&(n===Ms.ghost||ps(n,`display`)===`none`||t&&!us(n,t));)n=n.previousElementSibling;return n||null}function xs(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==Ms.clone&&(!t||us(e,t))&&n++;return n}function Ss(e){var t=0,n=0,r=gs();if(e)do{var i=ms(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 Eee(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 Cs(e,t){if(!e||!e.getBoundingClientRect)return gs();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=ps(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 gs();if(r||t)return n;r=!0}}while(n=n.parentNode);return gs()}function Dee(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ws(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 Ts(e,t){return function(){if(!Qs){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Qs=setTimeout(function(){Qs=void 0},t)}}}function Oee(){clearTimeout(Qs),Qs=void 0}function Es(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ds(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 Os(e,t){ps(e,`position`,`absolute`),ps(e,`top`,t.top),ps(e,`left`,t.left),ps(e,`width`,t.width),ps(e,`height`,t.height)}function ks(e){ps(e,`position`,``),ps(e,`top`,``),ps(e,`left`,``),ps(e,`width`,``),ps(e,`height`,``)}function kee(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(ps(t,`display`)===`none`||t===Ms.ghost)){e.push({target:t,rect:_s(t)});var n=Zo({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=ms(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(Eee(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=_s(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=ms(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&ws(c,s)&&!ws(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=jee(u,c,l,r.options)),ws(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){ps(e,`transition`,``),ps(e,`transform`,``);var i=ms(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,ps(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=Aee(e),ps(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),ps(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){ps(e,`transition`,``),ps(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function Aee(e){return e.offsetWidth}function jee(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 As(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[$s],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ws&&!Gs?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=Zo(Zo({},m),nc.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function js(e){As(Zo({putSortable:_c,cloneEl:uc,targetEl:z,rootEl:sc,oldIndex:fc,oldDraggableIndex:mc,newIndex:pc,newDraggableIndex:hc},e))}function Ms(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=es({},t),e[$s]=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 Hc(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:Ms.supportPointer!==!1&&`PointerEvent`in window&&!qs,emptyInsertThreshold:5};for(var r in nc.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Gc(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:Bc,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?cs(e,`pointerdown`,this._onTapStart):(cs(e,`mousedown`,this._onTapStart),cs(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(cs(e,`dragover`,this),cs(e,`dragenter`,this)),bc.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),es(this,kee())}function Mee(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function Ns(e,t,n,r,i,a,o,s){var c,l=e[$s],u=l.options.onMove,d;return window.CustomEvent&&!Ws&&!Gs?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||_s(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Ps(e){e.draggable=!1}function Nee(){Fc=!1}function Pee(e,t,n){var r=_s(ys(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 Fee(e,t,n){var r=_s(bs(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 Iee(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&&Mc<l*i){if(!Ac&&(kc===1?c>u+l*a/2:c<d-l*a/2)&&(Ac=!0),Ac)f=!0;else if(kc===1?c<u+Mc:c>d-Mc)return-kc}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Lee(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Lee(e){return xs(z)<xs(e)?1:-1}function Ree(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 zee(e){Ic.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&Ic.push(r)}}function Fs(e){return setTimeout(e,0)}function Is(e){return clearTimeout(e)}function Bee(){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?cs(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?cs(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?cs(document,`touchmove`,this._handleFallbackAutoScroll):cs(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ls(document,`dragover`,this._handleAutoScroll):(ls(document,`pointermove`,this._handleFallbackAutoScroll),ls(document,`touchmove`,this._handleFallbackAutoScroll),ls(document,`mousemove`,this._handleFallbackAutoScroll)),Rs(),Ls(),Oee()},nulling:function(){nl=Qc=Zc=$c=rl=el=tl=null,Xc.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(nl=e,t||this.options.forceAutoScrollFallback||Gs||Ws||qs){il(e,this.options,a,t);var o=Cs(a,!0);$c&&(!rl||r!==el||i!==tl)&&(rl&&Rs(),rl=setInterval(function(){var a=Cs(document.elementFromPoint(r,i),!0);a!==o&&(o=a,Ls()),il(e,n.options,a,t)},10),el=r,tl=i)}else{if(!this.options.bubbleScroll||Cs(a,!0)===gs()){Ls();return}il(e,this.options,Cs(a,!1),!1)}}},es(e,{pluginName:`scroll`,initializeByDefault:!0})}function Ls(){Xc.forEach(function(e){clearInterval(e.pid)}),Xc=[]}function Rs(){clearInterval(rl)}function zs(){}function Bs(){}function Vee(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){ol=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=ol;r(n)===!1?ol=null:(fs(n,c.swapClass,!0),ol=n),l&&l!==ol&&fs(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;ol&&fs(ol,a.swapClass,!1),ol&&(a.swap||n&&n.options.swap)&&r!==ol&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Hee(r,ol),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){ol=null}},es(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:ol}}})}function Hee(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=xs(e),a=xs(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function Uee(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.supportPointer?cs(document,`pointerup`,this._deselectMultiDrag):(cs(document,`mouseup`,this._deselectMultiDrag),cs(document,`touchend`,this._deselectMultiDrag)),cs(document,`keydown`,this._checkKeyDown),cs(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,setData:function(t,n){var r=``;sl.length&&ul===e?sl.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){ml=e.dragEl},delayEnded:function(){this.isMultiDrag=~sl.indexOf(ml)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<sl.length;r++)cl.push(Ds(sl[r])),cl[r].sortableIndex=sl[r].sortableIndex,cl[r].draggable=!1,cl[r].style[`will-change`]=``,fs(cl[r],this.options.selectedClass,!1),sl[r]===ml&&fs(cl[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||sl.length&&ul===t&&(Vs(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Vs(!1,n),cl.forEach(function(e){ps(e,`display`,``)}),t(),gl=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(cl.forEach(function(e){ps(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),gl=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&ul&&ul.multiDrag._deselectMultiDrag(),sl.forEach(function(e){e.sortableIndex=xs(e)}),sl=sl.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),pl=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){sl.forEach(function(e){e!==ml&&ps(e,`position`,`absolute`)});var r=_s(ml,!1,!0,!0);sl.forEach(function(e){e!==ml&&Os(e,r)}),fl=!0,dl=!0}n.animateAll(function(){fl=!1,dl=!1,t.options.animation&&sl.forEach(function(e){ks(e)}),t.options.sort&&Hs()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;fl&&~sl.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;sl.length>1&&(sl.forEach(function(e){r.addAnimationState({target:e,rect:fl?_s(e):i}),ks(e),e.fromRect=i,t.removeAnimationState(e)}),fl=!1,Wee(!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(),dl=!1,s.animation&&sl.length>1&&(fl||!n&&!i.options.sort&&!o)){var c=_s(ml,!1,!0,!0);sl.forEach(function(e){e!==ml&&(Os(e,c),a.appendChild(e))}),fl=!0}if(!n)if(fl||Hs(),sl.length>1){var l=gl;i._showClone(t),i.options.animation&&!gl&&l&&cl.forEach(function(e){i.addAnimationState({target:e,rect:hl}),e.fromRect=hl,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(sl.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){hl=es({},t);var i=ms(ml,!0);hl.top-=i.f,hl.left-=i.e}},dragOverAnimationComplete:function(){fl&&(fl=!1,Hs())},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(!pl)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),fs(ml,l.selectedClass,!~sl.indexOf(ml)),~sl.indexOf(ml))sl.splice(sl.indexOf(ml),1),ll=null,As({sortable:i,rootEl:n,name:`deselect`,targetEl:ml,originalEvt:t});else{if(sl.push(ml),As({sortable:i,rootEl:n,name:`select`,targetEl:ml,originalEvt:t}),t.shiftKey&&ll&&i.el.contains(ll)){var d=xs(ll),f=xs(ml);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~sl.indexOf(u[m])||(fs(u[m],l.selectedClass,!0),sl.push(u[m]),As({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvt:t}))}}else ll=ml;ul=c}if(pl&&this.isMultiDrag){if(fl=!1,(r[$s].options.sort||r!==n)&&sl.length>1){var h=_s(ml),g=xs(ml,`:not(.`+this.options.selectedClass+`)`);if(!dl&&l.animation&&(ml.thisAnimationDuration=null),c.captureAnimationState(),!dl&&(l.animation&&(ml.fromRect=h,sl.forEach(function(e){if(e.thisAnimationDuration=null,e!==ml){var t=fl?_s(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),Hs(),sl.forEach(function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++}),o===xs(ml))){var _=!1;sl.forEach(function(e){if(e.sortableIndex!==xs(e)){_=!0;return}}),_&&a(`update`)}sl.forEach(function(e){ks(e)}),c.animateAll()}ul=c}(n===r||s&&s.lastPutMode!==`clone`)&&cl.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=pl=!1,cl.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ls(document,`pointerup`,this._deselectMultiDrag),ls(document,`mouseup`,this._deselectMultiDrag),ls(document,`touchend`,this._deselectMultiDrag),ls(document,`keydown`,this._checkKeyDown),ls(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(pl!==void 0&&pl)&&ul===this.sortable&&!(e&&ds(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;sl.length;){var t=sl[0];fs(t,this.options.selectedClass,!1),sl.shift(),As({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)}},es(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[$s];!t||!t.options.multiDrag||~sl.indexOf(e)||(ul&&ul!==t&&(ul.multiDrag._deselectMultiDrag(),ul=t),fs(e,t.options.selectedClass,!0),sl.push(e))},deselect:function(e){var t=e.parentNode[$s],n=sl.indexOf(e);!t||!t.options.multiDrag||!~n||(fs(e,t.options.selectedClass,!1),sl.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return sl.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=fl&&r!==ml?-1:fl?xs(r,`:not(.`+e.options.selectedClass+`)`):xs(r);n.push({multiDragElement:r,index:i})}),{items:rs(sl),clones:[].concat(cl),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 Wee(e,t){sl.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Vs(e,t){cl.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Hs(){sl.forEach(function(e){e!==ml&&e.parentNode&&e.parentNode.removeChild(e)})}var Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,z,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,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=be((()=>{Us=`1.14.0`,Ws=ss(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Gs=ss(/Edge/i),Ks=ss(/firefox/i),qs=ss(/safari/i)&&!ss(/chrome/i)&&!ss(/android/i),Js=ss(/iP(ad|od|hone)/i),Ys=ss(/chrome/i)&&ss(/android/i),Xs={capture:!1,passive:!1},Zs=/\s+/g,$s=`Sortable`+new Date().getTime(),ec=[],tc={initializeByDefault:!0},nc={mount:function(e){for(var t in tc)tc.hasOwnProperty(t)&&!(t in e)&&(e[t]=tc[t]);ec.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),ec.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;ec.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Zo({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Zo({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in ec.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,es(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 ec.forEach(function(r){typeof r.eventProperties==`function`&&es(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return ec.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},rc=[`evt`],ic=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=ns(n,rc);nc.pluginEvent.bind(Ms)(e,t,Zo({dragEl:z,parentEl:ac,ghostEl:oc,rootEl:sc,nextEl:cc,lastDownEl:lc,cloneEl:uc,cloneHidden:dc,dragStarted:Dc,putSortable:_c,activeSortable:Ms.active,originalEvent:r,oldIndex:fc,oldDraggableIndex:mc,newIndex:pc,newDraggableIndex:hc,hideGhostForTarget:Kc,unhideGhostForTarget:qc,cloneNowHidden:function(){dc=!0},cloneNowShown:function(){dc=!1},dispatchSortableEvent:function(e){js({sortable:t,name:e,originalEvent:r})}},i))},vc=!1,yc=!1,bc=[],Ac=!1,jc=!1,Pc=[],Fc=!1,Ic=[],Lc=typeof document<`u`,Rc=Js,zc=Gs||Ws?`cssFloat`:`float`,Bc=Lc&&!Ys&&!Js&&`draggable`in document.createElement(`div`),Vc=function(){if(Lc){if(Ws)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),Hc=function(e,t){var n=ps(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=ys(e,0,t),a=ys(e,1,t),o=i&&ps(i),s=a&&ps(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+_s(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+_s(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[zc]===`none`||a&&n[zc]===`none`&&c+l>r)?`vertical`:`horizontal`},Uc=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},Wc=function(e,t){var n;return bc.some(function(r){var i=r[$s].options.emptyInsertThreshold;if(!(!i||bs(r))){var a=_s(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},Gc=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||Qo(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},Kc=function(){!Vc&&oc&&ps(oc,`display`,`none`)},qc=function(){!Vc&&oc&&ps(oc,`display`,``)},Lc&&document.addEventListener(`click`,function(e){if(yc)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),yc=!1,!1},!0),Jc=function(e){if(z){e=e.touches?e.touches[0]:e;var t=Wc(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[$s]._onDragOver(n)}}},Yc=function(e){z&&z.parentNode[$s]._isOutsideThisEl(e.target)},Ms.prototype={constructor:Ms,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Oc=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,z):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(zee(n),!z&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&qs&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=ds(s,r.draggable,n,!1),!(s&&s.animated)&&lc!==s)){if(fc=xs(s),mc=xs(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){js({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),ic(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=ds(c,r.trim(),n,!1),r)return js({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),ic(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!ds(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&&!z&&n.parentNode===i){var c=_s(n);if(sc=i,z=n,ac=z.parentNode,cc=z.nextSibling,lc=n,gc=a.group,Ms.dragged=z,xc={target:z,clientX:(t||e).clientX,clientY:(t||e).clientY},Tc=xc.clientX-c.left,Ec=xc.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,z.style[`will-change`]=`all`,s=function(){if(ic(`delayEnded`,r,{evt:e}),Ms.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ks&&r.nativeDraggable&&(z.draggable=!0),r._triggerDragStart(e,t),js({sortable:r,name:`choose`,originalEvent:e}),fs(z,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){hs(z,e.trim(),Ps)}),cs(o,`dragover`,Jc),cs(o,`mousemove`,Jc),cs(o,`touchmove`,Jc),cs(o,`mouseup`,r._onDrop),cs(o,`touchend`,r._onDrop),cs(o,`touchcancel`,r._onDrop),Ks&&this.nativeDraggable&&(this.options.touchStartThreshold=4,z.draggable=!0),ic(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Gs||Ws))){if(Ms.eventCanceled){this._onDrop();return}cs(o,`mouseup`,r._disableDelayedDrag),cs(o,`touchend`,r._disableDelayedDrag),cs(o,`touchcancel`,r._disableDelayedDrag),cs(o,`mousemove`,r._delayedDragTouchMoveHandler),cs(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&cs(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(){z&&Ps(z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ls(e,`mouseup`,this._disableDelayedDrag),ls(e,`touchend`,this._disableDelayedDrag),ls(e,`touchcancel`,this._disableDelayedDrag),ls(e,`mousemove`,this._delayedDragTouchMoveHandler),ls(e,`touchmove`,this._delayedDragTouchMoveHandler),ls(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?cs(document,`pointermove`,this._onTouchMove):t?cs(document,`touchmove`,this._onTouchMove):cs(document,`mousemove`,this._onTouchMove):(cs(z,`dragend`,this),cs(sc,`dragstart`,this._onDragStart));try{document.selection?Fs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(vc=!1,sc&&z){ic(`dragStarted`,this,{evt:t}),this.nativeDraggable&&cs(document,`dragover`,Yc);var n=this.options;!e&&fs(z,n.dragClass,!1),fs(z,n.ghostClass,!0),Ms.active=this,e&&this._appendGhost(),js({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Sc){this._lastX=Sc.clientX,this._lastY=Sc.clientY,Kc();for(var e=document.elementFromPoint(Sc.clientX,Sc.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Sc.clientX,Sc.clientY),e!==t);)t=e;if(z.parentNode[$s]._isOutsideThisEl(e),t)do{if(t[$s]){var n=void 0;if(n=t[$s]._onDragOver({clientX:Sc.clientX,clientY:Sc.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);qc()}},_onTouchMove:function(e){if(xc){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=oc&&ms(oc,!0),o=oc&&a&&a.a,s=oc&&a&&a.d,c=Rc&&Nc&&Ss(Nc),l=(i.clientX-xc.clientX+r.x)/(o||1)+(c?c[0]-Pc[0]:0)/(o||1),u=(i.clientY-xc.clientY+r.y)/(s||1)+(c?c[1]-Pc[1]:0)/(s||1);if(!Ms.active&&!vc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(oc){a?(a.e+=l-(Cc||0),a.f+=u-(wc||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})`;ps(oc,`webkitTransform`,d),ps(oc,`mozTransform`,d),ps(oc,`msTransform`,d),ps(oc,`transform`,d),Cc=l,wc=u,Sc=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!oc){var e=this.options.fallbackOnBody?document.body:sc,t=_s(z,!0,Rc,!0,e),n=this.options;if(Rc){for(Nc=e;ps(Nc,`position`)===`static`&&ps(Nc,`transform`)===`none`&&Nc!==document;)Nc=Nc.parentNode;Nc!==document.body&&Nc!==document.documentElement?(Nc===document&&(Nc=gs()),t.top+=Nc.scrollTop,t.left+=Nc.scrollLeft):Nc=gs(),Pc=Ss(Nc)}oc=z.cloneNode(!0),fs(oc,n.ghostClass,!1),fs(oc,n.fallbackClass,!0),fs(oc,n.dragClass,!0),ps(oc,`transition`,``),ps(oc,`transform`,``),ps(oc,`box-sizing`,`border-box`),ps(oc,`margin`,0),ps(oc,`top`,t.top),ps(oc,`left`,t.left),ps(oc,`width`,t.width),ps(oc,`height`,t.height),ps(oc,`opacity`,`0.8`),ps(oc,`position`,Rc?`absolute`:`fixed`),ps(oc,`zIndex`,`100000`),ps(oc,`pointerEvents`,`none`),Ms.ghost=oc,e.appendChild(oc),ps(oc,`transform-origin`,Tc/parseInt(oc.style.width)*100+`% `+Ec/parseInt(oc.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(ic(`dragStart`,this,{evt:e}),Ms.eventCanceled){this._onDrop();return}ic(`setupClone`,this),Ms.eventCanceled||(uc=Ds(z),uc.draggable=!1,uc.style[`will-change`]=``,this._hideClone(),fs(uc,this.options.chosenClass,!1),Ms.clone=uc),n.cloneId=Fs(function(){ic(`clone`,n),!Ms.eventCanceled&&(n.options.removeCloneOnHide||sc.insertBefore(uc,z),n._hideClone(),js({sortable:n,name:`clone`}))}),!t&&fs(z,i.dragClass,!0),t?(yc=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ls(document,`mouseup`,n._onDrop),ls(document,`touchend`,n._onDrop),ls(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,z)),cs(document,`drop`,n),ps(z,`transform`,`translateZ(0)`)),vc=!0,n._dragStartId=Fs(n._dragStarted.bind(n,t,e)),cs(document,`selectstart`,n),Dc=!0,qs&&ps(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=Ms.active,l=gc===s,u=o.sort,d=_c||c,f,p=this,m=!1;if(Fc)return;function h(o,s){ic(o,p,Zo({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 Ns(sc,t,z,r,n,_s(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&&(fs(z,_c?_c.options.ghostClass:c.options.ghostClass,!1),fs(z,o.ghostClass,!0)),_c!==p&&p!==Ms.active?_c=p:p===Ms.active&&_c&&(_c=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===z&&!z.animated||n===t&&!n.animated)&&(Oc=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(z.parentNode[$s]._isOutsideThisEl(e.target),!r&&Jc(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){pc=xs(z),hc=xs(z,o.draggable),js({sortable:p,name:`change`,toEl:t,newIndex:pc,newDraggableIndex:hc,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ds(n,o.draggable,t,!0),h(`dragOver`),Ms.eventCanceled)return m;if(z.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(yc=!1,c&&!o.disabled&&(l?u||(a=ac!==sc):_c===this||(this.lastPutMode=gc.checkPull(this,c,z,e))&&s.checkPut(this,c,z,e))){if(f=this._getDirection(e,n)===`vertical`,r=_s(z),h(`dragOverValid`),Ms.eventCanceled)return m;if(a)return ac=sc,g(),this._hideClone(),h(`revert`),Ms.eventCanceled||(cc?sc.insertBefore(z,cc):sc.appendChild(z)),_(!0);var y=bs(t,o.draggable);if(!y||Fee(e,f,this)&&!y.animated){if(y===z)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=_s(n)),Ns(sc,t,z,r,n,i,e,!!n)!==!1)return g(),t.appendChild(z),ac=t,v(),_(!0)}else if(y&&Pee(e,f,this)){var b=ys(t,0,o,!0);if(b===z)return _(!1);if(n=b,i=_s(n),Ns(sc,t,z,r,n,i,e,!1)!==!1)return g(),t.insertBefore(z,b),ac=t,v(),_(!0)}else if(n.parentNode===t){i=_s(n);var x=0,S,C=z.parentNode!==t,w=!Uc(z.animated&&z.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=vs(n,`top`,`top`)||vs(z,`top`,`top`),D=E?E.scrollTop:void 0;Oc!==n&&(S=i[T],Ac=!1,jc=!w&&o.invertSwap||C),x=Iee(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,jc,Oc===n);var O;if(x!==0){var ee=xs(z);do ee-=x,O=ac.children[ee];while(O&&(ps(O,`display`)===`none`||O===oc))}if(x===0||O===n)return _(!1);Oc=n,kc=x;var k=n.nextElementSibling,A=!1;A=x===1;var j=Ns(sc,t,z,r,n,i,e,A);if(j!==!1)return(j===1||j===-1)&&(A=j===1),Fc=!0,setTimeout(Nee,30),g(),A&&!k?t.appendChild(z):n.parentNode.insertBefore(z,A?k:n),E&&Es(E,0,D-E.scrollTop),ac=z.parentNode,S!==void 0&&!jc&&(Mc=Math.abs(S-_s(n)[T])),v(),_(!0)}if(t.contains(z))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ls(document,`mousemove`,this._onTouchMove),ls(document,`touchmove`,this._onTouchMove),ls(document,`pointermove`,this._onTouchMove),ls(document,`dragover`,Jc),ls(document,`mousemove`,Jc),ls(document,`touchmove`,Jc)},_offUpEvents:function(){var e=this.el.ownerDocument;ls(e,`mouseup`,this._onDrop),ls(e,`touchend`,this._onDrop),ls(e,`pointerup`,this._onDrop),ls(e,`touchcancel`,this._onDrop),ls(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(pc=xs(z),hc=xs(z,n.draggable),ic(`drop`,this,{evt:e}),ac=z&&z.parentNode,pc=xs(z),hc=xs(z,n.draggable),Ms.eventCanceled){this._nulling();return}vc=!1,jc=!1,Ac=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Is(this.cloneId),Is(this._dragStartId),this.nativeDraggable&&(ls(document,`drop`,this),ls(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),qs&&ps(document.body,`user-select`,``),ps(z,`transform`,``),e&&(Dc&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),oc&&oc.parentNode&&oc.parentNode.removeChild(oc),(sc===ac||_c&&_c.lastPutMode!==`clone`)&&uc&&uc.parentNode&&uc.parentNode.removeChild(uc),z&&(this.nativeDraggable&&ls(z,`dragend`,this),Ps(z),z.style[`will-change`]=``,Dc&&!vc&&fs(z,_c?_c.options.ghostClass:this.options.ghostClass,!1),fs(z,this.options.chosenClass,!1),js({sortable:this,name:`unchoose`,toEl:ac,newIndex:null,newDraggableIndex:null,originalEvent:e}),sc===ac?pc!==fc&&pc>=0&&(js({sortable:this,name:`update`,toEl:ac,originalEvent:e}),js({sortable:this,name:`sort`,toEl:ac,originalEvent:e})):(pc>=0&&(js({rootEl:ac,name:`add`,toEl:ac,fromEl:sc,originalEvent:e}),js({sortable:this,name:`remove`,toEl:ac,originalEvent:e}),js({rootEl:ac,name:`sort`,toEl:ac,fromEl:sc,originalEvent:e}),js({sortable:this,name:`sort`,toEl:ac,originalEvent:e})),_c&&_c.save()),Ms.active&&((pc==null||pc===-1)&&(pc=fc,hc=mc),js({sortable:this,name:`end`,toEl:ac,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ic(`nulling`,this),sc=z=ac=oc=cc=uc=lc=dc=xc=Sc=Dc=pc=hc=fc=mc=Oc=kc=_c=gc=Ms.dragged=Ms.ghost=Ms.clone=Ms.active=null,Ic.forEach(function(e){e.checked=!0}),Ic.length=Cc=wc=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:z&&(this._onDragOver(e),Mee(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],ds(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Ree(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];ds(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 ds(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=nc.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&Gc(n)},destroy:function(){ic(`destroy`,this);var e=this.el;e[$s]=null,ls(e,`mousedown`,this._onTapStart),ls(e,`touchstart`,this._onTapStart),ls(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(ls(e,`dragover`,this),ls(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),bc.splice(bc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!dc){if(ic(`hideClone`,this),Ms.eventCanceled)return;ps(uc,`display`,`none`),this.options.removeCloneOnHide&&uc.parentNode&&uc.parentNode.removeChild(uc),dc=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(dc){if(ic(`showClone`,this),Ms.eventCanceled)return;z.parentNode==sc&&!this.options.group.revertClone?sc.insertBefore(uc,z):cc?sc.insertBefore(uc,cc):sc.appendChild(uc),this.options.group.revertClone&&this.animate(z,uc),ps(uc,`display`,``),dc=!1}}},Lc&&cs(document,`touchmove`,function(e){(Ms.active||vc)&&e.cancelable&&e.preventDefault()}),Ms.utils={on:cs,off:ls,css:ps,find:hs,is:function(e,t){return!!ds(e,t,e,!1)},extend:Dee,throttle:Ts,closest:ds,toggleClass:fs,clone:Ds,index:xs,nextTick:Fs,cancelNextTick:Is,detectDirection:Hc,getChild:ys},Ms.get=function(e){return e[$s]},Ms.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&&(Ms.utils=Zo(Zo({},Ms.utils),e.utils)),nc.mount(e)})},Ms.create=function(e,t){return new Ms(e,t)},Ms.version=Us,Xc=[],$c=!1,il=Ts(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=gs(),l=!1,u;Qc!==n&&(Qc=n,Ls(),Zc=t.scroll,u=t.scrollFn,Zc===!0&&(Zc=Cs(n,!0)));var d=0,f=Zc;do{var p=f,m=_s(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=ps(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(!Xc[d])for(var k=0;k<=d;k++)Xc[k]||(Xc[k]={});(Xc[d].vx!=O||Xc[d].vy!=ee||Xc[d].el!==p)&&(Xc[d].el=p,Xc[d].vx=O,Xc[d].vy=ee,clearInterval(Xc[d].pid),(O!=0||ee!=0)&&(l=!0,Xc[d].pid=setInterval(function(){r&&this.layer===0&&Ms.active._onTouchMove(nl);var t=Xc[this.layer].vy?Xc[this.layer].vy*s:0,n=Xc[this.layer].vx?Xc[this.layer].vx*s:0;typeof u==`function`&&u.call(Ms.dragged.parentNode[$s],n,t,e,nl,Xc[this.layer].el)!==`continue`||Es(Xc[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Cs(f,!1)));$c=l}},30),al=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}))}},zs.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=ys(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:al},es(zs,{pluginName:`revertOnSpill`}),Bs.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:al},es(Bs,{pluginName:`removeOnSpill`}),sl=[],cl=[],dl=!1,fl=!1,pl=!1,Ms.mount(new Bee),Ms.mount(Bs,zs)})),Gee=xe(he(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(Jo(),(_l(),de(Yo))):typeof define==`function`&&define.amd?define([,`sortablejs`],r):typeof e==`object`?e.vuedraggable=r(Jo(),(_l(),de(Yo))):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 te=String(r.apply(void 0,j))}else te=b(D,p,O,ee,A,r);O>=T&&(w+=p.slice(T,O)+te,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`),te=n(`b622`),M=n(`e538`),ne=n(`746f`),re=n(`d44e`),ie=n(`69f3`),ae=n(`b727`).forEach,oe=k(`hidden`),se=`Symbol`,N=`prototype`,ce=te(`toPrimitive`),le=ie.set,ue=ie.getterFor(se),de=Object[N],fe=i.Symbol,pe=a(`JSON`,`stringify`),me=w.f,he=T.f,ge=S.f,P=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[N]||!xe[N].findChild,Ce=s&&u(function(){return y(he({},`a`,{get:function(){return he(this,`a`,{value:7}).a}})).a!=7})?function(e,t,n){var r=me(de,t);r&&delete de[t],he(e,t,n),r&&e!==de&&he(de,t,r)}:he,we=function(e,t){var n=_e[e]=y(fe[N]);return le(n,{type:se,tag:e,description:t}),s||(n.description=t),n},Te=l?function(e){return typeof e==`symbol`}:function(e){return Object(e)instanceof fe},Ee=function(e,t,n){e===de&&Ee(ve,t,n),m(e);var r=_(t,!0);return m(n),d(_e,r)?(n.enumerable?(d(e,oe)&&e[oe][r]&&(e[oe][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,oe)||he(e,oe,v(1,{})),e[oe][r]=!0),Ce(e,r,n)):he(e,r,n)},De=function(e,t){m(e);var n=g(t);return ae(b(n).concat(ke(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=P.call(this,t);return this===de&&d(_e,t)&&!d(ve,t)?!1:n||!d(this,t)||!d(_e,t)||d(this,oe)&&this[oe][t]?n:!0},Oe=function(e,t){var n=g(e),r=_(t,!0);if(!(n===de&&d(_e,r)&&!d(ve,r))){var i=me(n,r);return i&&d(_e,r)&&!(d(n,oe)&&n[oe][r])&&(i.enumerable=!0),i}},R=function(e){var t=ge(g(e)),n=[];return ae(t,function(e){!d(_e,e)&&!d(A,e)&&n.push(e)}),n},ke=function(e){var t=e===de,n=ge(t?ve:g(e)),r=[];return ae(n,function(e){d(_e,e)&&(!t||d(de,e))&&r.push(_e[e])}),r};c||(fe=function(){if(this instanceof fe)throw TypeError(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=j(e),n=function(e){this===de&&n.call(ve,e),d(this,oe)&&d(this[oe],t)&&(this[oe][t]=!1),Ce(this,t,v(1,e))};return s&&Se&&Ce(de,t,{configurable:!0,set:n}),we(t,e)},O(fe[N],`toString`,function(){return ue(this).tag}),O(fe,`withoutSetter`,function(e){return we(j(e),e)}),E.f=L,T.f=Ee,w.f=Oe,x.f=S.f=R,C.f=ke,M.f=function(e){return we(te(e),e)},s&&(he(fe[N],`description`,{configurable:!0,get:function(){return ue(this).description}}),o||O(de,`propertyIsEnumerable`,L,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:fe}),ae(b(F),function(e){ne(e)}),r({target:se,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ye,t))return ye[t];var n=fe(t);return ye[t]=n,be[n]=t,n},keyFor:function(e){if(!Te(e))throw TypeError(e+` is not a symbol`);if(d(be,e))return be[e]},useSetter:function(){Se=!0},useSimple:function(){Se=!1}}),r({target:`Object`,stat:!0,forced:!c,sham:!s},{create:I,defineProperty:Ee,defineProperties:De,getOwnPropertyDescriptor:Oe}),r({target:`Object`,stat:!0,forced:!c},{getOwnPropertyNames:R,getOwnPropertySymbols:ke}),r({target:`Object`,stat:!0,forced:u(function(){C.f(1)})},{getOwnPropertySymbols:function(e){return C.f(h(e))}}),pe&&r({target:`JSON`,stat:!0,forced:!c||u(function(){var e=fe();return pe([e])!=`[null]`||pe({a:e})!=`{}`||pe(Object(e))!=`{}`})},{stringify:function(e,t,n){for(var r=[e],i=1,a;arguments.length>i;)r.push(arguments[i++]);if(a=t,!(!p(t)&&e===void 0||Te(e)))return f(t)||(t=function(e,t){if(typeof a==`function`&&(t=a.call(this,e,t)),!Te(t))return t}),r[1]=t,pe.apply(null,r)}}),fe[N][ce]||D(fe[N],ce,fe[N].valueOf),re(fe,se),A[oe]=!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 te=`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 M(e){return te.includes(e)}function ne(e){return[`transition-group`,`TransitionGroup`].includes(e)}function re(e){return[`id`,`class`,`role`,`style`].includes(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`)}function ie(e){return e.reduce(function(e,t){var n=m(t,2),r=n[0];return e[r]=n[1],e},{})}function ae(e){var t=e.$attrs,n=e.componentData,r=n===void 0?{}:n;return c(c({},ie(Object.entries(t).filter(function(e){var t=m(e,2),n=t[0];return t[1],re(n)}))),r)}function oe(e){var t=e.$attrs,n=e.callBackBuilder,r=ie(se(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 se(e){return Object.entries(e).filter(function(e){var t=m(e,2),n=t[0];return t[1],!re(n)}).map(function(e){var t=m(e,2),n=t[0],r=t[1];return[E(n),r]}).filter(function(e){var t=m(e,2),n=t[0];return t[1],!j(n)})}n(`c740`);function N(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),e}var ue=function(e){return e.el},de=function(e,t){return e.__draggable_context=t},fe=function(e){return e.__draggable_context},pe=function(){function e(t){var n=t.nodes,r=n.header,i=n.default,a=n.footer,o=t.root,s=t.realList;N(this,e),this.defaultNodes=i,this.children=[].concat(v(r),v(i),v(a)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return le(e,[{key:`render`,value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:`updated`,value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){de(ue(e),{element:t[n],index:n})})}},{key:`getUnderlyingVm`,value:function(e){return fe(e)}},{key:`getVmIndexFromDomIndex`,value:function(e,t){var n=this.defaultNodes,r=n.length,i=t.children,a=i.item(e);if(a===null)return r;var o=fe(a);if(o)return o.index;if(r===0)return 0;var s=ue(n[0]);return e<v(i).findIndex(function(e){return e===s})?0:r}},{key:`_isRootComponent`,get:function(){return this.externalComponent||this.rootTransition}}]),e}(),me=n(`8bbf`);function he(e,t){var n=e[t];return n?n():[]}function ge(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],a=m([`header`,`footer`].map(function(e){return he(t,e)}),2),o=a[0],s=a[1],l=t.item;if(!l)throw Error(`draggable element must have an item slot`);var u=i.flatMap(function(e,t){return l({element:e,index:t}).map(function(t){return t.key=r(e),t.props=c(c({},t.props||{}),{},{"data-draggable":!0}),t})});if(u.length!==i.length)throw Error(`Item slot must have only one child`);return{header:o,footer:s,default:u}}function P(e){var t=ne(e),n=!M(e)&&!t;return{transition:t,externalComponent:n,tag:n?(0,me.resolveComponent)(e):t?me.TransitionGroup:e}}function _e(e){var t=e.$slots,n=e.tag,r=e.realList,i=e.getKey;return new pe({nodes:ge({$slots:t,realList:r,getKey:i}),root:P(n),realList:r})}function ve(e,t){var n=this;(0,me.nextTick)(function(){return n.$emit(e.toLowerCase(),t)})}function ye(e){var t=this;return function(n,r){if(t.realList!==null)return t[`onDrag${e}`](n,r)}}function be(e){var t=this,n=ye.call(this,e);return function(r,i){n.call(t,r,i),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,me.defineComponent)({name:`draggable`,inheritAttrs:!1,props:xe,emits:Se,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,i=this.realList,a=this.getKey,o=_e({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=o;var s=ae({$attrs:t,componentData:r});return o.render(me.h,s)}catch(e){return this.error=!0,(0,me.h)(`pre`,{style:{color:`red`}},e.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&C.a.error(`modelValue and list props are mutually exclusive! Please set one or another.`)},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=oe({$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&&se(e).forEach(function(e){var n=m(e,2),r=n[0],i=n[1];t.option(r,i)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;(0,me.nextTick)(function(){return t.$emit(`change`,e)})},alterList:function(e){if(this.list){e(this.list);return}var t=v(this.modelValue);e(t),this.$emit(`update:modelValue`,t)},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,v(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};return t!==n&&i?c(c({},r.getUnderlyingVm(n)||{}),a):a},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),F=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(t!==void 0){x(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(S(this.$el,e.item,e.oldIndex),e.pullMode===`clone`){x(e.clone);return}var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var i={element:r,oldIndex:n};this.emitChanges({removed:i})},onDragUpdate:function(e){x(e.item),S(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=v(t.to.children).filter(function(e){return e.style.display!==`none`}),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return n.indexOf(F)!==-1||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var i=this.getRelatedContextFromMoveEvent(e),a=this.computeFutureIndex(i,e),o=c(c({},this.context),{},{futureIndex:a});return n(c(c({},e),{},{relatedContext:i,draggedContext:o}),t)},onDragEnd:function(){F=null}}})}),fb6a:(function(e,t,n){var r=n(`23e7`),i=n(`861d`),a=n(`e8b5`),o=n(`23cb`),s=n(`50c4`),c=n(`fc6a`),l=n(`8418`),u=n(`b622`),d=n(`1dde`),f=n(`ae40`),p=d(`slice`),m=f(`slice`,{ACCESSORS:!0,0:0,1:2}),h=u(`species`),g=[].slice,_=Math.max;r({target:`Array`,proto:!0,forced:!p||!m},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),f,p,m;if(a(n)&&(f=n.constructor,typeof f==`function`&&(f===Array||a(f.prototype))?f=void 0:i(f)&&(f=f[h],f===null&&(f=void 0)),f===Array||f===void 0))return g.call(n,u,d);for(p=new(f===void 0?Array:f)(_(d-u,0)),m=0;u<d;u++,m++)u in n&&l(p,m,n[u]);return p.length=m,p}})}),fc6a:(function(e,t,n){var r=n(`44ad`),i=n(`1d80`);e.exports=function(e){return r(i(e))}}),fdbc:(function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(e,t,n){e.exports=n(`4930`)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})}).default})}))(),1),Kee=[{value:`text`,label:`单行文本`},{value:`email`,label:`邮箱`},{value:`tel`,label:`手机/电话`},{value:`textarea`,label:`多行文本`},{value:`number`,label:`数字`},{value:`select`,label:`下拉选择`},{value:`checkbox`,label:`勾选确认(通用)`},{value:vt,label:`签署承诺书`},{value:`file`,label:`文件上传`},{value:`date`,label:`日期`}],qee=[{value:`text`,label:`单行文本`},{value:`email`,label:`邮箱`},{value:`tel`,label:`手机/电话`},{value:`textarea`,label:`多行文本`},{value:`select`,label:`下拉选择`}],Jee=[{value:`number`,label:`数字(打分维度)`},{value:`textarea`,label:`多行文本(评语等)`},{value:`text`,label:`单行文本`}],vl=[{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 yl(){return globalThis.crypto?.randomUUID?.()??`f_${Date.now()}_${Math.random().toString(36).slice(2)}`}function bl(e,t,n){let r=n??(e===`review`?`number`:`text`);return{__uid:yl(),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 Yee(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 xl(e,t){return Array.isArray(e)?e.map((e,n)=>{if(typeof e!=`object`||!e)return bl(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`?vt: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:yl(),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`?Yee(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)):``})()}}):[bl(t,0)]}function Sl(e,t){return e.map(e=>{let n=e.type===vt,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 Cl(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=Ct(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 wl={class:`schema-builder__palette`},Tl=[`onClick`],El={class:`schema-builder__canvas`},Dl={class:`schema-builder__pane-title`},Ol=[`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`},Il={key:0,class:`preview-empty`},Ll={class:`schema-builder__props`},Rl={class:`schema-builder__pane-title`},zl={class:`prop-stack`},Bl={key:0},Vl={key:1},Hl={key:2},Ul={class:`prop-switches`},Wl={key:3},Xee={class:`cond-hint`},Zee={key:4},Qee={key:5},$ee={key:6},ete={key:7},tte={class:`prop-actions`},nte={key:1,class:`preview-empty`},Gl=ke(le({__name:`FormSchemaVisualEditor`,props:s({purpose:{},fill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){let i=t,o=me(t,`modelValue`),s=A(``),c=Ce(()=>i.purpose===`review`?Jee:i.purpose===`audience`?qee:Kee),l=Ce(()=>i.purpose===`audience`?`观众报名表`:i.purpose===`review`?`评审表`:`模板表单`),u=Ce(()=>o.value.find(e=>e.__uid===s.value)??null),d=Ce(()=>o.value.findIndex(e=>e.__uid===s.value));M(o,e=>{if(e.length===0){s.value=``;return}e.some(e=>e.__uid===s.value)||(s.value=e[0].__uid)},{immediate:!0});function f(e){return c.value.find(t=>t.value===e)?.label??e}function m(e){let t=new Set(o.value.map(e=>e.key)),n=o.value.length+1,r=`${e}_${n}`;for(;t.has(r);)n+=1,r=`${e}_${n}`;return r}function h(e){let t=bl(i.purpose,o.value.length,e);t.key=m(i.purpose===`review`?`dim`:`field`),t.label=f(e),g(t),o.value=[...o.value,t],s.value=t.__uid}function g(e){e.type===`commitment_promise`?(e.key=`commitment_accepted`,e.options=[],e.prefillFrom=``,e.requiredWhenField=``,e.requiredWhenValuesLines=``,(!e.label.trim()||e.label===f(`commitment_promise`))&&(e.label=`本人已阅读并同意《参赛承诺书》的全部内容`),e.required=!0,e.list=!1,e.filter=!1):e.type!==`select`&&(e.options=[]),e.type===`file`&&(e.prefillFrom=``)}function _(e){g(e)}function b(e){s.value=e}function x(){let e=d.value,t=o.value[e];if(!t)return;let n={...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}))},r=[...o.value];r.splice(e+1,0,n),o.value=r,s.value=n.__uid}function S(){if(o.value.length<=1)return;let e=d.value;if(e<0)return;let t=o.value.filter((t,n)=>n!==e);o.value=t,s.value=t[Math.min(e,t.length-1)]?.__uid??``}function C(e){let t=d.value;if(t<0)return;let n=Math.min(Math.max(1,e),o.value.length)-1;if(n===t)return;let r=[...o.value],[i]=r.splice(t,1);r.splice(n,0,i),o.value=r}function w(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 D(e){return vl.find(t=>t.value===e)?.label??`不设置预填`}function ee(e){return e.placeholder?.trim()||`请填写${e.label||`此项`}`}return(i,f)=>{let m=O(`el-input`),g=O(`el-option`),A=O(`el-select`),j=O(`el-checkbox`),te=O(`el-input-number`),M=O(`el-switch`),ne=O(`el-button`);return P(),y(`div`,{class:e([`schema-builder`,{"schema-builder--fill":t.fill}])},[v(`aside`,wl,[f[21]||=v(`div`,{class:`schema-builder__pane-title`},`组件`,-1),f[22]||=v(`p`,{class:`schema-builder__hint`},`点击添加到表单末尾,中间画布可拖拽排序。`,-1),(P(!0),y(k,null,E(c.value,e=>(P(),y(`button`,{key:e.value,type:`button`,class:`palette-item`,onClick:t=>h(e.value)},N(e.label),9,Tl))),128))]),v(`section`,El,[v(`div`,Dl,N(l.value),1),p(a(Gee.default),{modelValue:o.value,"onUpdate:modelValue":f[0]||=e=>o.value=e,"item-key":`__uid`,handle:`.preview-drag`,animation:200,tag:`div`,class:`preview-list`},{item:F(({element:t})=>[v(`div`,{class:e([`preview-field`,{"is-selected":t.__uid===s.value}]),onClick:e=>b(t.__uid)},[f[23]||=v(`span`,{class:`preview-drag`,title:`拖动排序`},`⠿`,-1),v(`div`,kl,[v(`label`,Al,[t.required?(P(),y(`span`,jl,`*`)):Se(``,!0),r(` `+N(t.label||`未命名字段`)+` `,1),t.titleSupplement?(P(),y(`span`,Ml,N(t.titleSupplement),1)):Se(``,!0)]),[`text`,`email`,`tel`,`number`,`date`].includes(t.type)?(P(),n(m,{key:0,placeholder:ee(t),type:t.type===`number`?`number`:`text`,disabled:``},null,8,[`placeholder`,`type`])):t.type===`textarea`?(P(),n(m,{key:1,type:`textarea`,rows:3,placeholder:ee(t),disabled:``},null,8,[`placeholder`])):t.type===`select`?(P(),n(A,{key:2,class:`w-100`,placeholder:t.placeholder||`请选择`,disabled:``},{default:F(()=>[(P(!0),y(k,null,E(t.options??[],e=>(P(),n(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:2},1032,[`placeholder`])):t.type===`checkbox`?(P(),n(j,{key:3,disabled:``},{default:F(()=>[r(N(t.label||`勾选确认`),1)]),_:2},1024)):t.type===a(`commitment_promise`)?(P(),y(`div`,Nl,` 查看并签署承诺书 `)):t.type===`file`?(P(),y(`div`,Pl,`选择文件`)):(P(),n(m,{key:6,placeholder:ee(t),disabled:``},null,8,[`placeholder`])),t.help?(P(),y(`p`,Fl,N(t.help),1)):Se(``,!0)])],10,Ol)]),_:1},8,[`modelValue`]),o.value.length===0?(P(),y(`p`,Il,`从左侧选择组件,开始搭建表单`)):Se(``,!0)]),v(`aside`,Ll,[v(`div`,Rl,N(u.value?`更新字段`:`字段属性`),1),u.value?(P(),y(k,{key:0},[v(`div`,zl,[v(`div`,null,[f[24]||=v(`div`,{class:`field-label`},`字段类型`,-1),p(A,{modelValue:u.value.type,"onUpdate:modelValue":f[1]||=e=>u.value.type=e,class:`w-100`,onChange:f[2]||=e=>_(u.value)},{default:F(()=>[(P(!0),y(k,null,E(c.value,e=>(P(),n(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`])]),v(`div`,null,[f[25]||=v(`div`,{class:`field-label`},`字段名称`,-1),p(m,{modelValue:u.value.label,"onUpdate:modelValue":f[3]||=e=>u.value.label=e,placeholder:`如:姓名`},null,8,[`modelValue`])]),t.purpose===`review`?Se(``,!0):(P(),y(`div`,Bl,[f[26]||=v(`div`,{class:`field-label`},`英文名称`,-1),p(m,{modelValue:u.value.labelEn,"onUpdate:modelValue":f[4]||=e=>u.value.labelEn=e,placeholder:`Full Name`},null,8,[`modelValue`])])),v(`div`,null,[f[27]||=v(`div`,{class:`field-label`},`字段标识`,-1),p(m,{modelValue:u.value.key,"onUpdate:modelValue":f[5]||=e=>u.value.key=e,disabled:u.value.type===a(vt),placeholder:`如 player_name`},null,8,[`modelValue`,`disabled`])]),v(`div`,null,[f[28]||=v(`div`,{class:`field-label`},`标题补充`,-1),p(m,{modelValue:u.value.titleSupplement,"onUpdate:modelValue":f[6]||=e=>u.value.titleSupplement=e,placeholder:`可选,展示在标题后`},null,8,[`modelValue`])]),v(`div`,null,[f[29]||=v(`div`,{class:`field-label`},`帮助文字`,-1),p(m,{modelValue:u.value.help,"onUpdate:modelValue":f[7]||=e=>u.value.help=e,placeholder:`请输入…`},null,8,[`modelValue`])]),t.purpose===`review`?Se(``,!0):(P(),y(`div`,Vl,[f[30]||=v(`div`,{class:`field-label`},`英文帮助文字`,-1),p(m,{modelValue:u.value.helpEn,"onUpdate:modelValue":f[8]||=e=>u.value.helpEn=e,placeholder:`可选`},null,8,[`modelValue`])])),v(`div`,null,[f[31]||=v(`div`,{class:`field-label`},`占位提示`,-1),p(m,{modelValue:u.value.placeholder,"onUpdate:modelValue":f[9]||=e=>u.value.placeholder=e,placeholder:`可选`},null,8,[`modelValue`])]),t.purpose===`review`?Se(``,!0):(P(),y(`div`,Hl,[f[32]||=v(`div`,{class:`field-label`},`英文占位提示`,-1),p(m,{modelValue:u.value.placeholderEn,"onUpdate:modelValue":f[10]||=e=>u.value.placeholderEn=e,placeholder:`可选`},null,8,[`modelValue`])])),v(`div`,null,[f[33]||=v(`div`,{class:`field-label`},`排序`,-1),p(te,{"model-value":d.value+1,min:1,max:Math.max(o.value.length,1),step:1,"controls-position":`right`,class:`w-100`,onChange:f[11]||=e=>C(Number(e||1))},null,8,[`model-value`,`max`])]),v(`div`,null,[f[34]||=v(`div`,{class:`field-label`},`校验规则`,-1),v(`div`,Ul,[p(M,{modelValue:u.value.required,"onUpdate:modelValue":f[12]||=e=>u.value.required=e,"active-text":`必填`},null,8,[`modelValue`]),t.purpose===`review`?Se(``,!0):(P(),n(M,{key:0,modelValue:u.value.list,"onUpdate:modelValue":f[13]||=e=>u.value.list=e,"active-text":`列表展示`},null,8,[`modelValue`])),t.purpose===`review`?Se(``,!0):(P(),n(M,{key:1,modelValue:u.value.filter,"onUpdate:modelValue":f[14]||=e=>u.value.filter=e,"active-text":`可筛选`},null,8,[`modelValue`]))])]),t.purpose===`signup`&&u.value.type!==`file`&&u.value.type!==a(`commitment_promise`)?(P(),y(`div`,Wl,[f[35]||=v(`div`,{class:`field-label`},`预填对照`,-1),p(A,{modelValue:u.value.prefillFrom,"onUpdate:modelValue":f[15]||=e=>u.value.prefillFrom=e,class:`w-100`},{default:F(()=>[(P(!0),y(k,null,E(a(vl),e=>(P(),n(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),v(`p`,Xee,` 仅空值时按「`+N(u.value.key||`字段标识`)+` ← `+N(D(u.value.prefillFrom))+`」补入。 `,1)])):Se(``,!0),t.purpose===`signup`&&u.value.type===`file`?(P(),y(`div`,Zee,[f[36]||=v(`div`,{class:`field-label`},`文件格式限制`,-1),p(m,{modelValue:u.value.fileExtensionsLines,"onUpdate:modelValue":f[16]||=e=>u.value.fileExtensionsLines=e,type:`textarea`,rows:2,placeholder:`每行一个扩展名,如 pdf`},null,8,[`modelValue`])])):Se(``,!0),t.purpose===`signup`&&u.value.type===`file`?(P(),y(`div`,Qee,[f[37]||=v(`div`,{class:`field-label`},`最多上传文件数`,-1),p(m,{modelValue:u.value.fileMaxCount,"onUpdate:modelValue":f[17]||=e=>u.value.fileMaxCount=e,placeholder:`不填则不限制`,inputmode:`numeric`},null,8,[`modelValue`])])):Se(``,!0),u.value.type===`select`?(P(),y(`div`,$ee,[f[38]||=v(`div`,{class:`field-label`},`选项`,-1),p(m,{type:`textarea`,rows:5,"model-value":w(u.value.options),placeholder:`每行:本科|bachelor|Bachelor’s Degree`,onInput:f[18]||=e=>T(u.value,e)},null,8,[`model-value`])])):Se(``,!0),t.purpose===`signup`&&u.value.type!==a(`commitment_promise`)?(P(),y(`div`,ete,[f[39]||=v(`div`,{class:`field-label`},`条件必填`,-1),p(m,{modelValue:u.value.requiredWhenField,"onUpdate:modelValue":f[19]||=e=>u.value.requiredWhenField=e,class:`mb-2`,placeholder:`依赖字段标识,如 location_country`},null,8,[`modelValue`]),p(m,{modelValue:u.value.requiredWhenValuesLines,"onUpdate:modelValue":f[20]||=e=>u.value.requiredWhenValuesLines=e,type:`textarea`,rows:3,placeholder:`依赖取值,每行一个编码,例如:
overseas`},null,8,[`modelValue`])])):Se(``,!0)]),v(`div`,tte,[p(ne,{type:`primary`,onClick:x},{default:F(()=>[...f[40]||=[r(`复制`,-1)]]),_:1}),p(ne,{type:`danger`,disabled:o.value.length<=1,onClick:S},{default:F(()=>[...f[41]||=[r(`删除`,-1)]]),_:1},8,[`disabled`])])],64)):(P(),y(`p`,nte,`在中间画布点选一个字段后,在此编辑属性。`))])],2)}}}),[[`__scopeId`,`data-v-9970f865`]]),rte={class:`schema-inline`},ite={class:`form-hint`},ate={class:`schema-inline__toolbar`},ote={class:`schema-inline__actions`},ste={key:1},cte={key:2,class:`text-danger small mt-2 mb-0`},lte={class:`cell-muted`},Kl=ke(le({__name:`SchemaInlineEditorPane`,props:s({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:s([`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 i=e,o=me(e,`editorId`),s=me(e,`editorName`),c=me(e,`items`),l=me(e,`editorTab`),u=me(e,`jsonText`),d=me(e,`error`),f=t;function m(e){return i.purpose===`signup`?e.is_current_signup:i.purpose===`audience`?!!e.is_current_audience:e.is_current_review}function h(e){return`${e.name}(v${e.version}${m(e)?` · 当前`:``})`}function g(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 _=i.purpose===`audience`?`新建观众报名表`:i.purpose===`review`?`新建评审表`:`新建报名表`,b=i.purpose===`audience`?`设为当前观众表`:`设为当前报名表`;return(t,i)=>{let x=O(`el-option`),S=O(`el-select`),C=O(`el-input`),w=O(`el-radio-button`),T=O(`el-radio-group`),D=O(`el-button`),ee=O(`el-empty`),A=O(`el-table-column`),j=O(`el-table`),te=O(`el-collapse-item`),M=O(`el-collapse`);return P(),y(`div`,rte,[v(`p`,ite,[r(N(e.boundHint)+` 当前绑定编号:`,1),v(`strong`,null,N(e.boundId??`未绑定`),1)]),v(`div`,ate,[p(S,{"model-value":o.value??void 0,class:`schema-inline__version`,placeholder:`请选择表单版本`,disabled:!e.schemas.length,onChange:i[0]||=e=>f(`select`,e)},{default:F(()=>[(P(!0),y(k,null,E(e.schemas,e=>(P(),n(x,{key:e.id,label:h(e),value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`model-value`,`disabled`]),p(C,{modelValue:s.value,"onUpdate:modelValue":i[1]||=e=>s.value=e,class:`schema-inline__name`,placeholder:`版本名称`,autocomplete:`off`},null,8,[`modelValue`]),p(T,{modelValue:l.value,"onUpdate:modelValue":i[2]||=e=>l.value=e,class:`schema-inline__mode`},{default:F(()=>[p(w,{value:`visual`},{default:F(()=>[...i[10]||=[r(`可视化设计`,-1)]]),_:1}),p(w,{value:`json`},{default:F(()=>[...i[11]||=[r(`JSON 源码`,-1)]]),_:1})]),_:1},8,[`modelValue`]),v(`div`,ote,[p(D,{type:`primary`,disabled:!o.value,onClick:i[3]||=e=>f(`save`)},{default:F(()=>[...i[12]||=[r(`保存`,-1)]]),_:1},8,[`disabled`]),p(D,{disabled:!o.value,onClick:i[4]||=e=>o.value&&f(`bind`,o.value)},{default:F(()=>[r(N(a(b)),1)]),_:1},8,[`disabled`]),p(D,{type:`primary`,plain:``,onClick:i[5]||=e=>f(`create`)},{default:F(()=>[r(N(a(_)),1)]),_:1}),p(D,{loading:e.busy,onClick:i[6]||=e=>f(`refresh`)},{default:F(()=>[...i[13]||=[r(`刷新`,-1)]]),_:1},8,[`loading`])])]),o.value?(P(),y(k,{key:0},[l.value===`visual`?(P(),n(Gl,{key:0,modelValue:c.value,"onUpdate:modelValue":i[7]||=e=>c.value=e,purpose:e.purpose,fill:``},null,8,[`modelValue`,`purpose`])):(P(),y(`div`,ste,[i[14]||=v(`p`,{class:`text-muted small mb-2`},`适合粘贴备份或高级字段;切回可视化时会尽量同步(仅识别常用属性)。`,-1),p(C,{modelValue:u.value,"onUpdate:modelValue":i[8]||=e=>u.value=e,type:`textarea`,rows:18,class:`font-monospace`,spellcheck:`false`,onBlur:i[9]||=e=>f(`jsonBlur`)},null,8,[`modelValue`])])),d.value?(P(),y(`p`,cte,N(d.value),1)):Se(``,!0)],64)):(P(),n(ee,{key:1,description:`还没有表单版本,请先新建`,"image-size":72})),p(M,{class:`schema-inline__history`},{default:F(()=>[p(te,{title:`历史版本`,name:`history`},{default:F(()=>[p(j,{data:e.schemas,stripe:``,border:``,"empty-text":`暂无版本`,class:`workspace-table`},{default:F(()=>[p(A,{prop:`name`,label:`名称`,"min-width":`120`}),p(A,{prop:`version`,label:`版本`,width:`80`}),p(A,{label:`发布`,width:`72`},{default:F(({row:e})=>[r(N(e.is_published?`是`:`否`),1)]),_:1}),p(A,{label:`当前`,width:`88`},{default:F(({row:e})=>[r(N(m(e)?`当前`:`—`),1)]),_:1}),p(A,{label:`字段预览`,"min-width":`200`},{default:F(({row:e})=>[v(`span`,lte,N(g(e.field_labels,e.schema_json)),1)]),_:1}),p(A,{label:`操作`,width:`220`,fixed:`right`,align:`right`},{default:F(({row:e})=>[p(D,{link:``,type:`primary`,size:`small`,onClick:t=>f(`select`,e.id)},{default:F(()=>[...i[15]||=[r(`打开`,-1)]]),_:1},8,[`onClick`]),p(D,{link:``,type:`primary`,size:`small`,onClick:t=>f(`bind`,e.id)},{default:F(()=>[...i[16]||=[r(`设为当前`,-1)]]),_:1},8,[`onClick`]),p(D,{link:``,size:`small`,onClick:t=>f(`publish`,e,!e.is_published)},{default:F(()=>[r(N(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),p(D,{link:``,type:`danger`,size:`small`,onClick:t=>f(`remove`,e)},{default:F(()=>[...i[17]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})]),_:1})])}}}),[[`__scopeId`,`data-v-7ab72a72`]]),ql=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function ute(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Jl(e){var t={exports:{}};return e(t,t.exports),t.exports}var Yl,Xl,Zl=function(e){return e&&e.Math==Math&&e},Ql=Zl(typeof globalThis==`object`&&globalThis)||Zl(typeof window==`object`&&window)||Zl(typeof self==`object`&&self)||Zl(typeof ql==`object`&&ql)||function(){return this}()||Function(`return this`)(),$l=Function.prototype,eu=$l.apply,dte=$l.bind,tu=$l.call,nu=typeof Reflect==`object`&&Reflect.apply||(dte?tu.bind(eu):function(){return tu.apply(eu,arguments)}),ru=Function.prototype,iu=ru.bind,au=ru.call,fte=iu&&iu.bind(au),ou=iu?function(e){return e&&fte(au,e)}:function(e){return e&&function(){return au.apply(e,arguments)}},su=function(e){return typeof e==`function`},cu=function(e){try{return!!e()}catch{return!0}},lu=!cu((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),uu=Function.prototype.call,du=uu.bind?uu.bind(uu):function(){return uu.apply(uu,arguments)},fu={}.propertyIsEnumerable,pu=Object.getOwnPropertyDescriptor,mu={f:pu&&!fu.call({1:2},1)?function(e){var t=pu(this,e);return!!t&&t.enumerable}:fu},hu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pte=ou({}.toString),mte=ou(``.slice),gu=function(e){return mte(pte(e),8,-1)},_u=Ql.Object,hte=ou(``.split),vu=cu((function(){return!_u(`z`).propertyIsEnumerable(0)}))?function(e){return gu(e)==`String`?hte(e,``):_u(e)}:_u,gte=Ql.TypeError,yu=function(e){if(e==null)throw gte(`Can't call method on `+e);return e},bu=function(e){return vu(yu(e))},xu=function(e){return typeof e==`object`?e!==null:su(e)},Su={},Cu=function(e){return su(e)?e:void 0},wu=function(e,t){return arguments.length<2?Cu(Su[e])||Cu(Ql[e]):Su[e]&&Su[e][t]||Ql[e]&&Ql[e][t]},Tu=ou({}.isPrototypeOf),Eu=wu(`navigator`,`userAgent`)||``,Du=Ql.process,Ou=Ql.Deno,ku=Du&&Du.versions||Ou&&Ou.version,Au=ku&&ku.v8;Au&&(Xl=(Yl=Au.split(`.`))[0]>0&&Yl[0]<4?1:+(Yl[0]+Yl[1])),!Xl&&Eu&&(!(Yl=Eu.match(/Edge\/(\d+)/))||Yl[1]>=74)&&(Yl=Eu.match(/Chrome\/(\d+)/))&&(Xl=+Yl[1]);var ju,Mu=Xl,Nu=!!Object.getOwnPropertySymbols&&!cu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mu&&Mu<41})),Pu=Nu&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,_te=Ql.Object,Fu=Pu?function(e){return typeof e==`symbol`}:function(e){var t=wu(`Symbol`);return su(t)&&Tu(t.prototype,_te(e))},vte=Ql.String,Iu=function(e){try{return vte(e)}catch{return`Object`}},yte=Ql.TypeError,Lu=function(e){if(su(e))return e;throw yte(Iu(e)+` is not a function`)},Ru=function(e,t){var n=e[t];return n==null?void 0:Lu(n)},bte=Ql.TypeError,xte=Object.defineProperty,zu=Ql[`__core-js_shared__`]||function(e,t){try{xte(Ql,e,{value:t,configurable:!0,writable:!0})}catch{Ql[e]=t}return t}(`__core-js_shared__`,{}),Bu=Jl((function(e){(e.exports=function(e,t){return zu[e]||(zu[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ste=Ql.Object,Vu=function(e){return Ste(yu(e))},Cte=ou({}.hasOwnProperty),Hu=Object.hasOwn||function(e,t){return Cte(Vu(e),t)},wte=0,Tte=Math.random(),Ete=ou(1 .toString),Uu=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Ete(++wte+Tte,36)},Wu=Bu(`wks`),Gu=Ql.Symbol,Ku=Gu&&Gu.for,Dte=Pu?Gu:Gu&&Gu.withoutSetter||Uu,qu=function(e){if(!Hu(Wu,e)||!Nu&&typeof Wu[e]!=`string`){var t=`Symbol.`+e;Nu&&Hu(Gu,e)?Wu[e]=Gu[e]:Wu[e]=Pu&&Ku?Ku(t):Dte(t)}return Wu[e]},Ote=Ql.TypeError,kte=qu(`toPrimitive`),Ate=function(e,t){if(!xu(e)||Fu(e))return e;var n,r=Ru(e,kte);if(r){if(t===void 0&&(t=`default`),n=du(r,e,t),!xu(n)||Fu(n))return n;throw Ote(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&su(n=e.toString)&&!xu(r=du(n,e))||su(n=e.valueOf)&&!xu(r=du(n,e))||t!==`string`&&su(n=e.toString)&&!xu(r=du(n,e)))return r;throw bte(`Can't convert object to primitive value`)}(e,t)},Ju=function(e){var t=Ate(e,`string`);return Fu(t)?t:t+``},Yu=Ql.document,Xu=xu(Yu)&&xu(Yu.createElement),Zu=function(e){return Xu?Yu.createElement(e):{}},Qu=!lu&&!cu((function(){return Object.defineProperty(Zu(`div`),`a`,{get:function(){return 7}}).a!=7})),$u=Object.getOwnPropertyDescriptor,ed={f:lu?$u:function(e,t){if(e=bu(e),t=Ju(t),Qu)try{return $u(e,t)}catch{}if(Hu(e,t))return hu(!du(mu.f,e,t),e[t])}},jte=/#|\.prototype\./,td=function(e,t){var n=Nte[Mte(e)];return n==Fte||n!=Pte&&(su(t)?cu(t):!!t)},Mte=td.normalize=function(e){return String(e).replace(jte,`.`).toLowerCase()},Nte=td.data={},Pte=td.NATIVE=`N`,Fte=td.POLYFILL=`P`,Ite=td,nd=ou(ou.bind),rd=function(e,t){return Lu(e),t===void 0?e:nd?nd(e,t):function(){return e.apply(t,arguments)}},Lte=Ql.String,Rte=Ql.TypeError,id=function(e){if(xu(e))return e;throw Rte(Lte(e)+` is not an object`)},ad=Ql.TypeError,od=Object.defineProperty,sd={f:lu?od:function(e,t,n){if(id(e),t=Ju(t),id(n),Qu)try{return od(e,t,n)}catch{}if(`get`in n||`set`in n)throw ad(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},cd=lu?function(e,t,n){return sd.f(e,t,hu(1,n))}:function(e,t,n){return e[t]=n,e},zte=ed.f,Bte=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 nu(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?Ql:f?Ql[u]:(Ql[u]||{}).prototype,h=d?Su:Su[u]||cd(Su,u,{})[u],g=h.prototype;for(i in t)n=!Ite(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&Hu(m,i),o=h[i],n&&(s=e.noTargetGet?(l=zte(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?rd(a,Ql):e.wrap&&n?Bte(a):p&&su(a)?ou(a):a,(e.sham||a&&a.sham||o&&o.sham)&&cd(c,`sham`,!0),cd(h,i,c),p&&(Hu(Su,r=u+`Prototype`)||cd(Su,r,{}),cd(Su[r],i,a),e.real&&g&&!g[i]&&cd(g,i,a)))},ud=Bu(`keys`),dd=function(e){return ud[e]||(ud[e]=Uu(e))},Vte=!cu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),fd=dd(`IE_PROTO`),pd=Ql.Object,Hte=pd.prototype,md=Vte?pd.getPrototypeOf:function(e){var t=Vu(e);if(Hu(t,fd))return t[fd];var n=t.constructor;return su(n)&&t instanceof n?n.prototype:t instanceof pd?Hte:null},Ute=Ql.String,Wte=Ql.TypeError,hd=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=ou(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return id(n),function(e){if(typeof e==`object`||su(e))return e;throw Wte(`Can't set `+Ute(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Gte=Math.ceil,Kte=Math.floor,gd=function(e){var t=+e;return t!=t||t===0?0:(t>0?Kte:Gte)(t)},_d=Math.max,vd=Math.min,yd=function(e,t){var n=gd(e);return n<0?_d(n+t,0):vd(n,t)},bd=Math.min,xd=function(e){return(t=e.length)>0?bd(gd(t),9007199254740991):0;var t},Sd=function(e){return function(t,n,r){var i,a=bu(t),o=xd(a),s=yd(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}},Cd={includes:Sd(!0),indexOf:Sd(!1)},wd={},Td=Cd.indexOf,Ed=ou([].push),Dd=function(e,t){var n,r=bu(e),i=0,a=[];for(n in r)!Hu(wd,n)&&Hu(r,n)&&Ed(a,n);for(;t.length>i;)Hu(r,n=t[i++])&&(~Td(a,n)||Ed(a,n));return a},Od=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],qte=Od.concat(`length`,`prototype`),kd={f:Object.getOwnPropertyNames||function(e){return Dd(e,qte)}},Ad={f:Object.getOwnPropertySymbols},Jte=ou([].concat),Yte=wu(`Reflect`,`ownKeys`)||function(e){var t=kd.f(id(e)),n=Ad.f;return n?Jte(t,n(e)):t},jd=Object.keys||function(e){return Dd(e,Od)},Xte=lu?Object.defineProperties:function(e,t){id(e);for(var n,r=bu(t),i=jd(t),a=i.length,o=0;a>o;)sd.f(e,n=i[o++],r[n]);return e},Zte=wu(`document`,`documentElement`),Md=dd(`IE_PROTO`),Nd=function(){},Pd=function(e){return`<script>`+e+`<\/script>`},Fd=function(e){e.write(Pd(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Id=function(){try{ju=new ActiveXObject(`htmlfile`)}catch{}var e,t;Id=typeof document<`u`?document.domain&&ju?Fd(ju):((t=Zu(`iframe`)).style.display=`none`,Zte.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Pd(`document.F=Object`)),e.close(),e.F):Fd(ju);for(var n=Od.length;n--;)delete Id.prototype[Od[n]];return Id()};wd[Md]=!0;var Ld=Object.create||function(e,t){var n;return e===null?n=Id():(Nd.prototype=id(e),n=new Nd,Nd.prototype=null,n[Md]=e),t===void 0?n:Xte(n,t)},Rd=function(e,t,n){var r=Ju(t);r in e?sd.f(e,r,hu(0,n)):e[r]=n},Qte=Ql.Array,$te=Math.max,zd=function(e,t,n){for(var r=xd(e),i=yd(t,r),a=yd(n===void 0?r:n,r),o=Qte($te(a-i,0)),s=0;i<a;i++,s++)Rd(o,s,e[i]);return o.length=s,o},ene=ou(``.replace),tne=ou(``.split),nne=ou([].join),Bd=String(Error(`zxcasd`).stack),Vd=/\n\s*at [^:]*:[^\n]*/,rne=Vd.test(Bd),ine=/@[^\n]*\n/.test(Bd)&&!/zxcasd/.test(Bd),ane=function(e,t){if(typeof e!=`string`)return e;if(rne)for(;t--;)e=ene(e,Vd,``);else if(ine)return nne(zd(tne(e,`
`),t),`
`);return e},one=function(e,t){xu(t)&&`cause`in t&&cd(e,`cause`,t.cause)},Hd={},sne=qu(`iterator`),cne=Array.prototype,Ud={};Ud[qu(`toStringTag`)]=`z`;var Wd=String(Ud)===`[object z]`,lne=qu(`toStringTag`),une=Ql.Object,dne=gu(function(){return arguments}())==`Arguments`,Gd=Wd?gu: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=une(e),lne))==`string`?n:dne?gu(t):(r=gu(t))==`Object`&&su(t.callee)?`Arguments`:r},fne=qu(`iterator`),Kd=function(e){if(e!=null)return Ru(e,fne)||Ru(e,`@@iterator`)||Hd[Gd(e)]},pne=Ql.TypeError,qd=function(e,t,n){var r,i;id(e);try{if(!(r=Ru(e,`return`))){if(t===`throw`)throw n;return n}r=du(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return id(r),n},mne=Ql.TypeError,Jd=function(e,t){this.stopped=e,this.result=t},Yd=Jd.prototype,hne=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=rd(t,u),h=function(e){return r&&qd(r,`normal`,e),new Jd(!0,e)},g=function(e){return d?(id(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=Kd(e)))throw mne(Iu(e)+` is not iterable`);if(function(e){return e!==void 0&&(Hd.Array===e||cne[sne]===e)}(i)){for(a=0,o=xd(e);o>a;a++)if((s=g(e[a]))&&Tu(Yd,s))return s;return new Jd(!1)}r=function(e,t){var n=arguments.length<2?Kd(e):t;if(Lu(n))return id(du(n,e));throw pne(Iu(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=du(c,r)).done;){try{s=g(l.value)}catch(e){qd(r,`throw`,e)}if(typeof s==`object`&&s&&Tu(Yd,s))return s}return new Jd(!1)},gne=Ql.String,Xd=function(e){if(Gd(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return gne(e)},_ne=function(e,t){return e===void 0?arguments.length<2?``:t:Xd(e)},vne=!cu((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,hu(1,7)),e.stack!==7)})),Zd=qu(`toStringTag`),Qd=Ql.Error,$d=[].push,ef=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Tu(tf,this);hd?n=hd(new Qd(void 0),i?md(this):tf):(n=i?this:Ld(tf),cd(n,Zd,`Error`)),cd(n,`message`,_ne(t,``)),vne&&cd(n,`stack`,ane(n.stack,1)),one(n,r);var a=[];return hne(e,$d,{that:a}),cd(n,`errors`,a),n};hd?hd(ef,Qd):function(e,t){for(var n=Yte(t),r=sd.f,i=ed.f,a=0;a<n.length;a++){var o=n[a];Hu(e,o)||r(e,o,i(t,o))}}(ef,Qd);var tf=ef.prototype=Ld(Qd.prototype,{constructor:hu(1,ef),message:hu(1,``),name:hu(1,`AggregateError`)});ld({global:!0},{AggregateError:ef});var nf=ou(Function.toString);su(zu.inspectSource)||(zu.inspectSource=function(e){return nf(e)});var rf,af,of,sf=zu.inspectSource,cf=Ql.WeakMap,lf=su(cf)&&/native code/.test(sf(cf)),uf=Ql.TypeError,df=Ql.WeakMap;if(lf||zu.state){var ff=zu.state||=new df,pf=ou(ff.get),mf=ou(ff.has),hf=ou(ff.set);rf=function(e,t){if(mf(ff,e))throw new uf(`Object already initialized`);return t.facade=e,hf(ff,e,t),t},af=function(e){return pf(ff,e)||{}},of=function(e){return mf(ff,e)}}else{var gf=dd(`state`);wd[gf]=!0,rf=function(e,t){if(Hu(e,gf))throw new uf(`Object already initialized`);return t.facade=e,cd(e,gf,t),t},af=function(e){return Hu(e,gf)?e[gf]:{}},of=function(e){return Hu(e,gf)}}var _f,vf,yf,bf={set:rf,get:af,has:of,enforce:function(e){return of(e)?af(e):rf(e,{})},getterFor:function(e){return function(t){var n;if(!xu(t)||(n=af(t)).type!==e)throw uf(`Incompatible receiver, `+e+` required`);return n}}},xf=Function.prototype,Sf=lu&&Object.getOwnPropertyDescriptor,Cf=Hu(xf,`name`),yne={EXISTS:Cf,PROPER:Cf&&function(){}.name===`something`,CONFIGURABLE:Cf&&(!lu||lu&&Sf(xf,`name`).configurable)},wf=function(e,t,n,r){r&&r.enumerable?e[t]=n:cd(e,t,n)},Tf=qu(`iterator`),Ef=!1;[].keys&&(`next`in(yf=[].keys())?(vf=md(md(yf)))!==Object.prototype&&(_f=vf):Ef=!0),_f=_f==null||cu((function(){var e={};return _f[Tf].call(e)!==e}))?{}:Ld(_f),su(_f[Tf])||wf(_f,Tf,(function(){return this}));var Df={IteratorPrototype:_f,BUGGY_SAFARI_ITERATORS:Ef},bne=Wd?{}.toString:function(){return`[object `+Gd(this)+`]`},xne=sd.f,Of=qu(`toStringTag`),kf=function(e,t,n,r){if(e){var i=n?e:e.prototype;Hu(i,Of)||xne(i,Of,{configurable:!0,value:t}),r&&!Wd&&cd(i,`toString`,bne)}},Sne=Df.IteratorPrototype,Cne=function(){return this},wne=yne.PROPER,Af=Df.BUGGY_SAFARI_ITERATORS,jf=qu(`iterator`),Tne=function(){return this},Mf=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Ld(Sne,{next:hu(+!r,n)}),kf(e,i,!1,!0),Hd[i]=Cne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Af&&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[jf]||p[`@@iterator`]||i&&p[i],h=!Af&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=md(g.call(new e)))!==Object.prototype&&s.next&&(kf(s,d,!0,!0),Hd[d]=Tne),wne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return du(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Af||f||!(l in p))&&wf(p,l,c[l]);else ld({target:t,proto:!0,forced:Af||f},c);return o&&p[jf]!==h&&wf(p,jf,h,{name:i}),Hd[t]=h,c},Ene=bf.set,Dne=bf.getterFor(`Array Iterator`);Mf(Array,`Array`,(function(e,t){Ene(this,{type:`Array Iterator`,target:bu(e),index:0,kind:t})}),(function(){var e=Dne(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`),Hd.Arguments=Hd.Array;var One=ou(``.charAt),Nf=ou(``.charCodeAt),kne=ou(``.slice),Pf=function(e){return function(t,n){var r,i,a=Xd(yu(t)),o=gd(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Nf(a,o))<55296||r>56319||o+1===s||(i=Nf(a,o+1))<56320||i>57343?e?One(a,o):r:e?kne(a,o,o+2):i-56320+(r-55296<<10)+65536}},Ane={codeAt:Pf(!1),charAt:Pf(!0)}.charAt,jne=bf.set,Mne=bf.getterFor(`String Iterator`);Mf(String,`String`,(function(e){jne(this,{type:`String Iterator`,string:Xd(e),index:0})}),(function(){var e,t=Mne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ane(n,r),t.index+=e.length,{value:e,done:!1})}));var Nne=Su.AggregateError,Ff=qu(`toStringTag`);for(var If 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 Lf=Ql[If],Rf=Lf&&Lf.prototype;Rf&&Gd(Rf)!==Ff&&cd(Rf,Ff,If),Hd[If]=Hd.Array}var zf,Bf,Pne=Nne,Vf=function(e){return e&&e.Math==Math&&e},Hf=Vf(typeof globalThis==`object`&&globalThis)||Vf(typeof window==`object`&&window)||Vf(typeof self==`object`&&self)||Vf(typeof ql==`object`&&ql)||function(){return this}()||Function(`return this`)(),Uf=function(e){try{return!!e()}catch{return!0}},Wf=!Uf((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Gf=Function.prototype.call,Kf=Gf.bind?Gf.bind(Gf):function(){return Gf.apply(Gf,arguments)},qf={}.propertyIsEnumerable,Jf=Object.getOwnPropertyDescriptor,Fne={f:Jf&&!qf.call({1:2},1)?function(e){var t=Jf(this,e);return!!t&&t.enumerable}:qf},Yf=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xf=Function.prototype,Zf=Xf.bind,Qf=Xf.call,Ine=Zf&&Zf.bind(Qf),$f=Zf?function(e){return e&&Ine(Qf,e)}:function(e){return e&&function(){return Qf.apply(e,arguments)}},Lne=$f({}.toString),Rne=$f(``.slice),ep=function(e){return Rne(Lne(e),8,-1)},tp=Hf.Object,zne=$f(``.split),np=Uf((function(){return!tp(`z`).propertyIsEnumerable(0)}))?function(e){return ep(e)==`String`?zne(e,``):tp(e)}:tp,Bne=Hf.TypeError,rp=function(e){if(e==null)throw Bne(`Can't call method on `+e);return e},ip=function(e){return np(rp(e))},ap=function(e){return typeof e==`function`},op=function(e){return typeof e==`object`?e!==null:ap(e)},Vne=function(e){return ap(e)?e:void 0},sp=function(e,t){return arguments.length<2?Vne(Hf[e]):Hf[e]&&Hf[e][t]},cp=$f({}.isPrototypeOf),lp=sp(`navigator`,`userAgent`)||``,up=Hf.process,dp=Hf.Deno,fp=up&&up.versions||dp&&dp.version,pp=fp&&fp.v8;pp&&(Bf=(zf=pp.split(`.`))[0]>0&&zf[0]<4?1:+(zf[0]+zf[1])),!Bf&&lp&&(!(zf=lp.match(/Edge\/(\d+)/))||zf[1]>=74)&&(zf=lp.match(/Chrome\/(\d+)/))&&(Bf=+zf[1]);var mp=Bf,hp=!!Object.getOwnPropertySymbols&&!Uf((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&mp&&mp<41})),gp=hp&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Hne=Hf.Object,_p=gp?function(e){return typeof e==`symbol`}:function(e){var t=sp(`Symbol`);return ap(t)&&cp(t.prototype,Hne(e))},Une=Hf.String,vp=function(e){try{return Une(e)}catch{return`Object`}},Wne=Hf.TypeError,yp=function(e){if(ap(e))return e;throw Wne(vp(e)+` is not a function`)},bp=function(e,t){var n=e[t];return n==null?void 0:yp(n)},Gne=Hf.TypeError,Kne=Object.defineProperty,xp=function(e,t){try{Kne(Hf,e,{value:t,configurable:!0,writable:!0})}catch{Hf[e]=t}return t},Sp=Hf[`__core-js_shared__`]||xp(`__core-js_shared__`,{}),Cp=Jl((function(e){(e.exports=function(e,t){return Sp[e]||(Sp[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),qne=Hf.Object,wp=function(e){return qne(rp(e))},Jne=$f({}.hasOwnProperty),Tp=Object.hasOwn||function(e,t){return Jne(wp(e),t)},Yne=0,Xne=Math.random(),Zne=$f(1 .toString),Ep=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Zne(++Yne+Xne,36)},Dp=Cp(`wks`),Op=Hf.Symbol,kp=Op&&Op.for,Qne=gp?Op:Op&&Op.withoutSetter||Ep,Ap=function(e){if(!Tp(Dp,e)||!hp&&typeof Dp[e]!=`string`){var t=`Symbol.`+e;hp&&Tp(Op,e)?Dp[e]=Op[e]:Dp[e]=gp&&kp?kp(t):Qne(t)}return Dp[e]},$ne=Hf.TypeError,ere=Ap(`toPrimitive`),tre=function(e,t){if(!op(e)||_p(e))return e;var n,r=bp(e,ere);if(r){if(t===void 0&&(t=`default`),n=Kf(r,e,t),!op(n)||_p(n))return n;throw $ne(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ap(n=e.toString)&&!op(r=Kf(n,e))||ap(n=e.valueOf)&&!op(r=Kf(n,e))||t!==`string`&&ap(n=e.toString)&&!op(r=Kf(n,e)))return r;throw Gne(`Can't convert object to primitive value`)}(e,t)},jp=function(e){var t=tre(e,`string`);return _p(t)?t:t+``},Mp=Hf.document,nre=op(Mp)&&op(Mp.createElement),Np=function(e){return nre?Mp.createElement(e):{}},Pp=!Wf&&!Uf((function(){return Object.defineProperty(Np(`div`),`a`,{get:function(){return 7}}).a!=7})),Fp=Object.getOwnPropertyDescriptor,Ip={f:Wf?Fp:function(e,t){if(e=ip(e),t=jp(t),Pp)try{return Fp(e,t)}catch{}if(Tp(e,t))return Yf(!Kf(Fne.f,e,t),e[t])}},rre=Hf.String,ire=Hf.TypeError,Lp=function(e){if(op(e))return e;throw ire(rre(e)+` is not an object`)},are=Hf.TypeError,Rp=Object.defineProperty,zp={f:Wf?Rp:function(e,t,n){if(Lp(e),t=jp(t),Lp(n),Pp)try{return Rp(e,t,n)}catch{}if(`get`in n||`set`in n)throw are(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Bp=Wf?function(e,t,n){return zp.f(e,t,Yf(1,n))}:function(e,t,n){return e[t]=n,e},Vp=$f(Function.toString);ap(Sp.inspectSource)||(Sp.inspectSource=function(e){return Vp(e)});var Hp,Up,Wp,Gp=Sp.inspectSource,Kp=Hf.WeakMap,qp=ap(Kp)&&/native code/.test(Gp(Kp)),Jp=Cp(`keys`),Yp=function(e){return Jp[e]||(Jp[e]=Ep(e))},Xp={},Zp=Hf.TypeError,Qp=Hf.WeakMap;if(qp||Sp.state){var $p=Sp.state||=new Qp,em=$f($p.get),tm=$f($p.has),nm=$f($p.set);Hp=function(e,t){if(tm($p,e))throw new Zp(`Object already initialized`);return t.facade=e,nm($p,e,t),t},Up=function(e){return em($p,e)||{}},Wp=function(e){return tm($p,e)}}else{var rm=Yp(`state`);Xp[rm]=!0,Hp=function(e,t){if(Tp(e,rm))throw new Zp(`Object already initialized`);return t.facade=e,Bp(e,rm,t),t},Up=function(e){return Tp(e,rm)?e[rm]:{}},Wp=function(e){return Tp(e,rm)}}var im={set:Hp,get:Up,has:Wp,enforce:function(e){return Wp(e)?Up(e):Hp(e,{})},getterFor:function(e){return function(t){var n;if(!op(t)||(n=Up(t)).type!==e)throw Zp(`Incompatible receiver, `+e+` required`);return n}}},am=Function.prototype,om=Wf&&Object.getOwnPropertyDescriptor,sm=Tp(am,`name`),cm={EXISTS:sm,PROPER:sm&&function(){}.name===`something`,CONFIGURABLE:sm&&(!Wf||Wf&&om(am,`name`).configurable)},lm=Jl((function(e){var t=cm.CONFIGURABLE,n=im.get,r=im.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;ap(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Tp(a,`name`)||t&&a.name!==d)&&Bp(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Hf?l?e[n]=a:xp(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Bp(e,n,a))})(Function.prototype,`toString`,(function(){return ap(this)&&n(this).source||Gp(this)}))})),um=Math.ceil,dm=Math.floor,fm=function(e){var t=+e;return t!=t||t===0?0:(t>0?dm:um)(t)},pm=Math.max,mm=Math.min,hm=function(e,t){var n=fm(e);return n<0?pm(n+t,0):mm(n,t)},gm=Math.min,_m=function(e){return e>0?gm(fm(e),9007199254740991):0},vm=function(e){return _m(e.length)},ym=function(e){return function(t,n,r){var i,a=ip(t),o=vm(a),s=hm(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}},bm={includes:ym(!0),indexOf:ym(!1)}.indexOf,xm=$f([].push),Sm=function(e,t){var n,r=ip(e),i=0,a=[];for(n in r)!Tp(Xp,n)&&Tp(r,n)&&xm(a,n);for(;t.length>i;)Tp(r,n=t[i++])&&(~bm(a,n)||xm(a,n));return a},Cm=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],wm=Cm.concat(`length`,`prototype`),Tm={f:Object.getOwnPropertyNames||function(e){return Sm(e,wm)}},Em={f:Object.getOwnPropertySymbols},Dm=$f([].concat),Om=sp(`Reflect`,`ownKeys`)||function(e){var t=Tm.f(Lp(e)),n=Em.f;return n?Dm(t,n(e)):t},km=function(e,t){for(var n=Om(t),r=zp.f,i=Ip.f,a=0;a<n.length;a++){var o=n[a];Tp(e,o)||r(e,o,i(t,o))}},Am=/#|\.prototype\./,jm=function(e,t){var n=Nm[Mm(e)];return n==Fm||n!=Pm&&(ap(t)?Uf(t):!!t)},Mm=jm.normalize=function(e){return String(e).replace(Am,`.`).toLowerCase()},Nm=jm.data={},Pm=jm.NATIVE=`N`,Fm=jm.POLYFILL=`P`,Im=jm,Lm=Ip.f,Rm=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Hf:l?Hf[s]||xp(s,{}):(Hf[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Lm(n,r))&&o.value:n[r],!Im(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;km(a,i)}(e.sham||i&&i.sham)&&Bp(a,`sham`,!0),lm(n,r,a,e)}},zm={};zm[Ap(`toStringTag`)]=`z`;var Bm,Vm=String(zm)===`[object z]`,Hm=Ap(`toStringTag`),Um=Hf.Object,Wm=ep(function(){return arguments}())==`Arguments`,Gm=Vm?ep: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=Um(e),Hm))==`string`?n:Wm?ep(t):(r=ep(t))==`Object`&&ap(t.callee)?`Arguments`:r},Km=Hf.String,qm=function(e){if(Gm(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Km(e)},Jm=function(){var e=Lp(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},Ym=Hf.RegExp,Xm=Uf((function(){var e=Ym(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),ore=Xm||Uf((function(){return!Ym(`a`,`y`).sticky})),sre={BROKEN_CARET:Xm||Uf((function(){var e=Ym(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:ore,UNSUPPORTED_Y:Xm},cre=Object.keys||function(e){return Sm(e,Cm)},lre=Wf?Object.defineProperties:function(e,t){Lp(e);for(var n,r=ip(t),i=cre(t),a=i.length,o=0;a>o;)zp.f(e,n=i[o++],r[n]);return e},ure=sp(`document`,`documentElement`),Zm=Yp(`IE_PROTO`),Qm=function(){},$m=function(e){return`<script>`+e+`<\/script>`},eh=function(e){e.write($m(``)),e.close();var t=e.parentWindow.Object;return e=null,t},th=function(){try{Bm=new ActiveXObject(`htmlfile`)}catch{}var e,t;th=typeof document<`u`?document.domain&&Bm?eh(Bm):((t=Np(`iframe`)).style.display=`none`,ure.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write($m(`document.F=Object`)),e.close(),e.F):eh(Bm);for(var n=Cm.length;n--;)delete th.prototype[Cm[n]];return th()};Xp[Zm]=!0;var nh,rh,ih=Object.create||function(e,t){var n;return e===null?n=th():(Qm.prototype=Lp(e),n=new Qm,Qm.prototype=null,n[Zm]=e),t===void 0?n:lre(n,t)},dre=Hf.RegExp,fre=Uf((function(){var e=dre(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),pre=Hf.RegExp,mre=Uf((function(){var e=pre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),hre=im.get,gre=Cp(`native-string-replace`,String.prototype.replace),ah=RegExp.prototype.exec,oh=ah,_re=$f(``.charAt),vre=$f(``.indexOf),yre=$f(``.replace),sh=$f(``.slice),ch=(rh=/b*/g,Kf(ah,nh=/a/,`a`),Kf(ah,rh,`a`),nh.lastIndex!==0||rh.lastIndex!==0),lh=sre.BROKEN_CARET,uh=/()??/.exec(``)[1]!==void 0;(ch||uh||lh||fre||mre)&&(oh=function(e){var t,n,r,i,a,o,s,c=this,l=hre(c),u=qm(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Kf(oh,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=lh&&c.sticky,m=Kf(Jm,c),h=c.source,g=0,_=u;if(p&&(m=yre(m,`y`,``),vre(m,`g`)===-1&&(m+=`g`),_=sh(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&_re(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),uh&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),ch&&(r=c.lastIndex),i=Kf(ah,p?n:c,_),p?i?(i.input=sh(i.input,g),i[0]=sh(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:ch&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),uh&&i&&i.length>1&&Kf(gre,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=ih(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var dh=oh;Rm({target:`RegExp`,proto:!0,forced:/./.exec!==dh},{exec:dh});var bre=Ap(`species`),fh=RegExp.prototype,xre=$f(``.charAt),ph=$f(``.charCodeAt),Sre=$f(``.slice),mh=function(e){return function(t,n){var r,i,a=qm(rp(t)),o=fm(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=ph(a,o))<55296||r>56319||o+1===s||(i=ph(a,o+1))<56320||i>57343?e?xre(a,o):r:e?Sre(a,o,o+2):i-56320+(r-55296<<10)+65536}},hh={codeAt:mh(!1),charAt:mh(!0)},Cre=hh.charAt,wre=function(e,t,n){return t+(n?Cre(e,t).length:1)},Tre=Hf.TypeError,gh=function(e,t){var n=e.exec;if(ap(n)){var r=Kf(n,e,t);return r!==null&&Lp(r),r}if(ep(e)===`RegExp`)return Kf(dh,e,t);throw Tre(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Ap(e),a=!Uf((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Uf((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[bre]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=$f(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=$f(e),c=t.exec;return c===dh||c===fh.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));lm(String.prototype,e,c[0]),lm(fh,i,c[1])}r&&Bp(fh[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=rp(this),r=t==null?void 0:bp(t,e);return r?Kf(r,t,n):new RegExp(t)[e](qm(n))},function(e){var r=Lp(this),i=qm(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return gh(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=gh(r,i))!==null;){var u=qm(s[0]);c[l]=u,u===``&&(r.lastIndex=wre(i,_m(r.lastIndex),o)),l++}return l===0?null:c}]})),Rm({global:!0},{globalThis:Hf});var Ere=!Uf((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_h=Yp(`IE_PROTO`),vh=Hf.Object,Dre=vh.prototype,yh=Ere?vh.getPrototypeOf:function(e){var t=wp(e);if(Tp(t,_h))return t[_h];var n=t.constructor;return ap(n)&&t instanceof n?n.prototype:t instanceof vh?Dre:null},Ore=Hf.String,kre=Hf.TypeError,bh=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=$f(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Lp(n),function(e){if(typeof e==`object`||ap(e))return e;throw kre(`Can't set `+Ore(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Are=Hf.Array,jre=Math.max,Mre=$f(``.replace),Nre=$f(``.split),Pre=$f([].join),xh=String(Error(`zxcasd`).stack),Sh=/\n\s*at [^:]*:[^\n]*/,Fre=Sh.test(xh),Ire=/@[^\n]*\n/.test(xh)&&!/zxcasd/.test(xh),Lre=function(e,t){if(typeof e!=`string`)return e;if(Fre)for(;t--;)e=Mre(e,Sh,``);else if(Ire)return Pre(function(e,t,n){for(var r,i,a,o,s=vm(e),c=hm(t,s),l=hm(n===void 0?s:n,s),u=Are(jre(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=jp(i))in r?zp.f(r,o,Yf(0,a)):r[o]=a;return u.length=d,u}(Nre(e,`
`),t),`
`);return e},Rre=function(e,t){op(t)&&`cause`in t&&Bp(e,`cause`,t.cause)},Ch=$f($f.bind),wh=function(e,t){return yp(e),t===void 0?e:Ch?Ch(e,t):function(){return e.apply(t,arguments)}},Th={},zre=Ap(`iterator`),Bre=Array.prototype,Vre=Ap(`iterator`),Eh=function(e){if(e!=null)return bp(e,Vre)||bp(e,`@@iterator`)||Th[Gm(e)]},Hre=Hf.TypeError,Dh=function(e,t,n){var r,i;Lp(e);try{if(!(r=bp(e,`return`))){if(t===`throw`)throw n;return n}r=Kf(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Lp(r),n},Ure=Hf.TypeError,Oh=function(e,t){this.stopped=e,this.result=t},kh=Oh.prototype,Wre=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=wh(t,u),h=function(e){return r&&Dh(r,`normal`,e),new Oh(!0,e)},g=function(e){return d?(Lp(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=Eh(e)))throw Ure(vp(e)+` is not iterable`);if(function(e){return e!==void 0&&(Th.Array===e||Bre[zre]===e)}(i)){for(a=0,o=vm(e);o>a;a++)if((s=g(e[a]))&&cp(kh,s))return s;return new Oh(!1)}r=function(e,t){var n=arguments.length<2?Eh(e):t;if(yp(n))return Lp(Kf(n,e));throw Hre(vp(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Kf(c,r)).done;){try{s=g(l.value)}catch(e){Dh(r,`throw`,e)}if(typeof s==`object`&&s&&cp(kh,s))return s}return new Oh(!1)},Gre=function(e,t){return e===void 0?arguments.length<2?``:t:qm(e)},Kre=!Uf((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,Yf(1,7)),e.stack!==7)})),qre=Ap(`toStringTag`),Ah=Hf.Error,Jre=[].push,jh=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=cp(Mh,this);bh?n=bh(new Ah(void 0),i?yh(this):Mh):(n=i?this:ih(Mh),Bp(n,qre,`Error`)),Bp(n,`message`,Gre(t,``)),Kre&&Bp(n,`stack`,Lre(n.stack,1)),Rre(n,r);var a=[];return Wre(e,Jre,{that:a}),Bp(n,`errors`,a),n};bh?bh(jh,Ah):km(jh,Ah);var Mh=jh.prototype=ih(Ah.prototype,{constructor:Yf(1,jh),message:Yf(1,``),name:Yf(1,`AggregateError`)});Rm({global:!0},{AggregateError:jh});var Nh=Ap(`unscopables`),Ph=Array.prototype;Ph[Nh]??zp.f(Ph,Nh,{configurable:!0,value:ih(null)});var Fh,Ih,Lh,Rh=function(e){Ph[Nh][e]=!0},zh=Ap(`iterator`),Bh=!1;[].keys&&(`next`in(Lh=[].keys())?(Ih=yh(yh(Lh)))!==Object.prototype&&(Fh=Ih):Bh=!0),(Fh==null||Uf((function(){var e={};return Fh[zh].call(e)!==e})))&&(Fh={}),ap(Fh[zh])||lm(Fh,zh,(function(){return this}));var Vh={IteratorPrototype:Fh,BUGGY_SAFARI_ITERATORS:Bh},Yre=zp.f,Hh=Ap(`toStringTag`),Uh=function(e,t,n){e&&!Tp(e=n?e:e.prototype,Hh)&&Yre(e,Hh,{configurable:!0,value:t})},Xre=Vh.IteratorPrototype,Zre=function(){return this},Qre=cm.PROPER,$re=cm.CONFIGURABLE,Wh=Vh.IteratorPrototype,Gh=Vh.BUGGY_SAFARI_ITERATORS,Kh=Ap(`iterator`),eie=function(){return this},qh=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=ih(Xre,{next:Yf(+!r,n)}),Uh(e,i,!1),Th[i]=Zre})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Gh&&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[Kh]||p[`@@iterator`]||i&&p[i],h=!Gh&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=yh(g.call(new e)))!==Object.prototype&&s.next&&(yh(s)!==Wh&&(bh?bh(s,Wh):ap(s[Kh])||lm(s,Kh,eie)),Uh(s,d,!0)),Qre&&i==`values`&&m&&m.name!==`values`&&($re?Bp(p,`name`,`values`):(f=!0,h=function(){return Kf(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Gh||f||!(l in p))&&lm(p,l,c[l]);else Rm({target:t,proto:!0,forced:Gh||f},c);return p[Kh]!==h&&lm(p,Kh,h,{name:i}),Th[t]=h,c},tie=im.set,nie=im.getterFor(`Array Iterator`),Jh=qh(Array,`Array`,(function(e,t){tie(this,{type:`Array Iterator`,target:ip(e),index:0,kind:t})}),(function(){var e=nie(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`);Th.Arguments=Th.Array,Rh(`keys`),Rh(`values`),Rh(`entries`);var rie=hh.charAt,iie=im.set,aie=im.getterFor(`String Iterator`);qh(String,`String`,(function(e){iie(this,{type:`String Iterator`,string:qm(e),index:0})}),(function(){var e,t=aie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=rie(n,r),t.index+=e.length,{value:e,done:!1})}));var Yh,Xh={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},Zh=Np(`span`).classList,Qh=Zh&&Zh.constructor&&Zh.constructor.prototype,$h=Qh===Object.prototype?void 0:Qh,eg=Ap(`iterator`),tg=Ap(`toStringTag`),ng=Jh.values,rg=function(e,t){if(e){if(e[eg]!==ng)try{Bp(e,eg,ng)}catch{e[eg]=ng}if(e[tg]||Bp(e,tg,t),Xh[t]){for(var n in Jh)if(e[n]!==Jh[n])try{Bp(e,n,Jh[n])}catch{e[n]=Jh[n]}}}};for(var ig in Xh)rg(Hf[ig]&&Hf[ig].prototype,ig);rg($h,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),ag(),og()):global&&(Yh=global.navigator)!=null&&Yh.userAgent.match(`QQBrowser`)&&(ag(),og());function ag(){typeof globalThis>`u`&&(window.globalThis=window)}function og(){Pne===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var sg,cg=Array.isArray||function(e){return gu(e)==`Array`},lg=function(){},oie=[],ug=wu(`Reflect`,`construct`),dg=/^\s*(?:class|function)\b/,sie=ou(dg.exec),cie=!dg.exec(lg),fg=function(e){if(!su(e))return!1;try{return ug(lg,oie,e),!0}catch{return!1}},lie=!ug||cu((function(){var e;return fg(fg.call)||!fg(Object)||!fg((function(){e=!0}))||e}))?function(e){if(!su(e))return!1;switch(Gd(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return cie||!!sie(dg,sf(e))}:fg,uie=qu(`species`),pg=Ql.Array,mg=function(e,t){return new(function(e){var t;return cg(e)&&(t=e.constructor,(lie(t)&&(t===pg||cg(t.prototype))||xu(t)&&(t=t[uie])===null)&&(t=void 0)),t===void 0?pg:t}(e))(t===0?0:t)},die=qu(`species`),hg=qu(`isConcatSpreadable`),gg=Ql.TypeError,fie=Mu>=51||!cu((function(){var e=[];return e[hg]=!1,e.concat()[0]!==e})),pie=(sg=`concat`,Mu>=51||!cu((function(){var e=[];return(e.constructor={})[die]=function(){return{foo:1}},e[sg](Boolean).foo!==1}))),mie=function(e){if(!xu(e))return!1;var t=e[hg];return t===void 0?cg(e):!!t};ld({target:`Array`,proto:!0,forced:!fie||!pie},{concat:function(e){var t,n,r,i,a,o=Vu(this),s=mg(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(mie(a=t===-1?o:arguments[t])){if(c+(i=xd(a))>9007199254740991)throw gg(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Rd(s,c,a[n])}else{if(c>=9007199254740991)throw gg(`Maximum allowed index exceeded`);Rd(s,c++,a)}return s.length=c,s}});var _g=kd.f,vg=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yg={f:function(e){return vg&&gu(e)==`Window`?function(e){try{return _g(e)}catch{return zd(vg)}}(e):_g(bu(e))}},hie=ou([].slice),bg={f:qu},gie=sd.f,xg=function(e){var t=Su.Symbol||={};Hu(t,e)||gie(t,e,{value:bg.f(e)})},Sg=ou([].push),Cg=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=Vu(c),h=vu(m),g=rd(l,u),_=xd(h),v=0,y=d||mg,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:Sg(b,f)}else switch(e){case 4:return!1;case 7:Sg(b,f)}return a?-1:r||i?i:b}},wg={forEach:Cg(0),map:Cg(1),filter:Cg(2),some:Cg(3),every:Cg(4),find:Cg(5),findIndex:Cg(6),filterReject:Cg(7)}.forEach,Tg=dd(`hidden`),Eg=qu(`toPrimitive`),_ie=bf.set,Dg=bf.getterFor(`Symbol`),Og=Object.prototype,kg=Ql.Symbol,Ag=kg&&kg.prototype,jg=Ql.TypeError,Mg=Ql.QObject,Ng=wu(`JSON`,`stringify`),Pg=ed.f,Fg=sd.f,Ig=yg.f,vie=mu.f,Lg=ou([].push),Rg=Bu(`symbols`),zg=Bu(`op-symbols`),Bg=Bu(`string-to-symbol-registry`),Vg=Bu(`symbol-to-string-registry`),yie=Bu(`wks`),Hg=!Mg||!Mg.prototype||!Mg.prototype.findChild,Ug=lu&&cu((function(){return Ld(Fg({},`a`,{get:function(){return Fg(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Pg(Og,t);r&&delete Og[t],Fg(e,t,n),r&&e!==Og&&Fg(Og,t,r)}:Fg,Wg=function(e,t){var n=Rg[e]=Ld(Ag);return _ie(n,{type:`Symbol`,tag:e,description:t}),lu||(n.description=t),n},Gg=function(e,t,n){e===Og&&Gg(zg,t,n),id(e);var r=Ju(t);return id(n),Hu(Rg,r)?(n.enumerable?(Hu(e,Tg)&&e[Tg][r]&&(e[Tg][r]=!1),n=Ld(n,{enumerable:hu(0,!1)})):(Hu(e,Tg)||Fg(e,Tg,hu(1,{})),e[Tg][r]=!0),Ug(e,r,n)):Fg(e,r,n)},Kg=function(e,t){id(e);var n=bu(t);return wg(jd(n).concat(Xg(n)),(function(t){lu&&!du(qg,n,t)||Gg(e,t,n[t])})),e},qg=function(e){var t=Ju(e),n=du(vie,this,t);return!(this===Og&&Hu(Rg,t)&&!Hu(zg,t))&&(!(n||!Hu(this,t)||!Hu(Rg,t)||Hu(this,Tg)&&this[Tg][t])||n)},Jg=function(e,t){var n=bu(e),r=Ju(t);if(n!==Og||!Hu(Rg,r)||Hu(zg,r)){var i=Pg(n,r);return!i||!Hu(Rg,r)||Hu(n,Tg)&&n[Tg][r]||(i.enumerable=!0),i}},Yg=function(e){var t=Ig(bu(e)),n=[];return wg(t,(function(e){Hu(Rg,e)||Hu(wd,e)||Lg(n,e)})),n},Xg=function(e){var t=e===Og,n=Ig(t?zg:bu(e)),r=[];return wg(n,(function(e){!Hu(Rg,e)||t&&!Hu(Og,e)||Lg(r,Rg[e])})),r};if(Nu||(Ag=(kg=function(){if(Tu(Ag,this))throw jg(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Xd(arguments[0]):void 0,t=Uu(e),n=function(e){this===Og&&du(n,zg,e),Hu(this,Tg)&&Hu(this[Tg],t)&&(this[Tg][t]=!1),Ug(this,t,hu(1,e))};return lu&&Hg&&Ug(Og,t,{configurable:!0,set:n}),Wg(t,e)}).prototype,wf(Ag,`toString`,(function(){return Dg(this).tag})),wf(kg,`withoutSetter`,(function(e){return Wg(Uu(e),e)})),mu.f=qg,sd.f=Gg,ed.f=Jg,kd.f=yg.f=Yg,Ad.f=Xg,bg.f=function(e){return Wg(qu(e),e)},lu&&Fg(Ag,`description`,{configurable:!0,get:function(){return Dg(this).description}})),ld({global:!0,wrap:!0,forced:!Nu,sham:!Nu},{Symbol:kg}),wg(jd(yie),(function(e){xg(e)})),ld({target:`Symbol`,stat:!0,forced:!Nu},{for:function(e){var t=Xd(e);if(Hu(Bg,t))return Bg[t];var n=kg(t);return Bg[t]=n,Vg[n]=t,n},keyFor:function(e){if(!Fu(e))throw jg(e+` is not a symbol`);if(Hu(Vg,e))return Vg[e]},useSetter:function(){Hg=!0},useSimple:function(){Hg=!1}}),ld({target:`Object`,stat:!0,forced:!Nu,sham:!lu},{create:function(e,t){return t===void 0?Ld(e):Kg(Ld(e),t)},defineProperty:Gg,defineProperties:Kg,getOwnPropertyDescriptor:Jg}),ld({target:`Object`,stat:!0,forced:!Nu},{getOwnPropertyNames:Yg,getOwnPropertySymbols:Xg}),ld({target:`Object`,stat:!0,forced:cu((function(){Ad.f(1)}))},{getOwnPropertySymbols:function(e){return Ad.f(Vu(e))}}),Ng&&ld({target:`JSON`,stat:!0,forced:!Nu||cu((function(){var e=kg();return Ng([e])!=`[null]`||Ng({a:e})!=`{}`||Ng(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=hie(arguments),i=t;if((xu(t)||e!==void 0)&&!Fu(e))return cg(t)||(t=function(e,t){if(su(i)&&(t=du(i,this,e,t)),!Fu(t))return t}),r[1]=t,nu(Ng,null,r)}}),!Ag[Eg]){var bie=Ag.valueOf;wf(Ag,Eg,(function(e){return du(bie,this)}))}kf(kg,`Symbol`),wd[Tg]=!0,xg(`asyncIterator`),xg(`hasInstance`),xg(`isConcatSpreadable`),xg(`iterator`),xg(`match`),xg(`matchAll`),xg(`replace`),xg(`search`),xg(`species`),xg(`split`),xg(`toPrimitive`),xg(`toStringTag`),xg(`unscopables`),kf(Ql.JSON,`JSON`,!0);var xie=Su.Symbol;xg(`asyncDispose`),xg(`dispose`),xg(`matcher`),xg(`metadata`),xg(`observable`),xg(`patternMatch`),xg(`replaceAll`);var Zg=xie,Sie=bg.f(`iterator`),Cie=ute(Jl((function(e){function t(n){return typeof Zg==`function`&&typeof Sie==`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 Zg==`function`&&e.constructor===Zg&&e!==Zg.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}))),Qg=Ip.f,wie=Uf((function(){Qg(1)}));if(Rm({target:`Object`,stat:!0,forced:!Wf||wie,sham:!Wf},{getOwnPropertyDescriptor:function(e,t){return Qg(ip(e),t)}}),(typeof global>`u`?`undefined`:Cie(global))===`object`){var Tie=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!Tie.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 $g(e){return Object.prototype.toString.call(e)===`[object Object]`}function e_(e){var t,n;return!1!==$g(e)&&((t=e.constructor)===void 0||!1!==$g(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function t_(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 n_(e){return!!e&&!!e[I_]}function r_(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)===jie}(e)||Array.isArray(e)||!!e[F_]||!!e.constructor[F_]||c_(e)||l_(e))}function i_(e,t,n){n===void 0&&(n=!1),a_(e)===0?(n?Object.keys:L_)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function a_(e){var t=e[I_];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c_(e)?2:l_(e)?3:0}function o_(e,t){return a_(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s_(e,t,n){var r=a_(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function c_(e){return kie&&e instanceof Map}function l_(e){return Aie&&e instanceof Set}function u_(e){return e.o||e.t}function d_(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Mie(e);delete t[I_];for(var n=L_(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 f_(e,t){return t===void 0&&(t=!1),p_(e)||n_(e)||!r_(e)||(a_(e)>1&&(e.set=e.add=e.clear=e.delete=Eie),Object.freeze(e),t&&i_(e,(function(e,t){return f_(t,!0)}),!0)),e}function Eie(){t_(2)}function p_(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function m_(e){var t=Nie[e];return t||t_(18,e),t}function h_(){return j_}function g_(e,t){t&&(m_(`Patches`),e.u=[],e.s=[],e.v=t)}function __(e){v_(e),e.p.forEach(Die),e.p=null}function v_(e){e===j_&&(j_=e.l)}function y_(e){return j_={p:[],l:j_,h:e,m:!0,_:0}}function Die(e){var t=e[I_];t.i===0||t.i===1?t.j():t.O=!0}function b_(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||m_(`ES5`).S(t,e,r),r?(n[I_].P&&(__(t),t_(4)),r_(e)&&(e=x_(t,e),t.l||C_(t,e)),t.u&&m_(`Patches`).M(n[I_],e,t.u,t.s)):e=x_(t,n,[]),__(t),t.u&&t.v(t.u,t.s),e===P_?void 0:e}function x_(e,t,n){if(p_(t))return t;var r=t[I_];if(!r)return i_(t,(function(i,a){return S_(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return C_(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=d_(r.k):r.o;i_(r.i===3?new Set(i):i,(function(t,a){return S_(e,r,i,t,a,n)})),C_(e,i,!1),n&&e.u&&m_(`Patches`).R(r,n,e.u,e.s)}return r.o}function S_(e,t,n,r,i,a){if(n_(i)){var o=x_(e,i,a&&t&&t.i!==3&&!o_(t.D,r)?a.concat(r):void 0);if(s_(n,r,o),!n_(o))return;e.m=!1}if(r_(i)&&!p_(i)){if(!e.h.F&&e._<1)return;x_(e,i),t&&t.A.l||C_(e,i)}}function C_(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&f_(t,n)}function w_(e,t){var n=e[I_];return(n?u_(n):e)[t]}function T_(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 E_(e){e.P||(e.P=!0,e.l&&E_(e.l))}function D_(e){e.o||=d_(e.t)}function O_(e,t,n){var r=c_(t)?m_(`MapSet`).N(t,n):l_(t)?m_(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:h_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=R_;n&&(i=[r],a=z_);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):m_(`ES5`).J(t,n);return(n?n.A:h_()).p.push(r),r}function Oie(e){return n_(e)||t_(22,e),function e(t){if(!r_(t))return t;var n,r=t[I_],i=a_(t);if(r){if(!r.P&&(r.i<4||!m_(`ES5`).K(r)))return r.t;r.I=!0,n=k_(t,i),r.I=!1}else n=k_(t,i);return i_(n,(function(t,i){r&&function(e,t){return a_(e)===2?e.get(t):e[t]}(r.t,t)===i||s_(n,t,e(i))})),i===3?new Set(n):n}(e)}function k_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return d_(e)}var A_,j_,M_=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,kie=typeof Map<`u`,Aie=typeof Set<`u`,N_=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,P_=M_?Symbol.for(`immer-nothing`):((A_={})[`immer-nothing`]=!0,A_),F_=M_?Symbol.for(`immer-draftable`):`__$immer_draftable`,I_=M_?Symbol.for(`immer-state`):`__$immer_state`,jie=``+Object.prototype.constructor,L_=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Mie=Object.getOwnPropertyDescriptors||function(e){var t={};return L_(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Nie={},R_={get:function(e,t){if(t===I_)return e;var n=u_(e);if(!o_(n,t))return function(e,t,n){var r=T_(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||!r_(r)?r:r===w_(e.t,t)?(D_(e),e.o[t]=O_(e.A.h,r,e)):r},has:function(e,t){return t in u_(e)},ownKeys:function(e){return Reflect.ownKeys(u_(e))},set:function(e,t,n){var r=T_(u_(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=w_(u_(e),t),a=i?.[I_];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||o_(e.t,t)))return!0;D_(e),E_(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 w_(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,D_(e),E_(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=u_(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){t_(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){t_(12)}},z_={};i_(R_,(function(e,t){z_[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),z_.deleteProperty=function(e,t){return R_.deleteProperty.call(this,e[0],t)},z_.set=function(e,t,n){return R_.set.call(this,e[0],t,n,e[0])};var B_=new(function(){function e(e){var t=this;this.g=N_,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`&&t_(6),r!==void 0&&typeof r!=`function`&&t_(7),r_(e)){var s=y_(t),c=O_(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?__(s):v_(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return g_(s,r),b_(e,s)}),(function(e){throw __(s),e})):(g_(s,r),b_(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===P_?void 0:(o===void 0&&(o=e),t.F&&f_(o,!0),o);t_(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){r_(e)||t_(8),n_(e)&&(e=Oie(e));var t=y_(this),n=O_(this,e,void 0);return n[I_].C=!0,v_(t),n},t.finishDraft=function(e,t){var n=(e&&e[I_]).A;return g_(n,t),b_(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!N_&&t_(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=m_(`Patches`).$;return n_(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),V_=B_.produce;B_.produceWithPatches.bind(B_),B_.setAutoFreeze.bind(B_),B_.setUseProxies.bind(B_),B_.applyPatches.bind(B_);var H_=B_.createDraft.bind(B_),U_=B_.finishDraft.bind(B_);function W_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G_=new WeakMap,K_=new WeakMap,q_=new WeakMap,J_=new WeakMap,Y_=new WeakMap,X_=new WeakMap;function Z_(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 Q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Z_(Object(n),!0).forEach((function(t){W_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of V.pathRefs(e))uae.transform(n,t);for(var r of V.pointRefs(e))dae.transform(r,t);for(var i of V.rangeRefs(e))pae.transform(i,t);var a=new Set,o=[],s=e=>{if(e){var t=e.join(`,`);a.has(t)||(a.add(t),o.push(e))}},c=G_.get(e)||[],l=Fie(t);for(var u of c)s(U.transform(u,t));for(var d of l)s(d);G_.set(e,o),K.transform(e,t),e.operations.push(t),V.normalize(e),t.type===`set_selection`&&(e.marks=null),K_.get(e)||(K_.set(e,!0),Promise.resolve().then((()=>{K_.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(W.isExpanded(r)?K.setNodes(e,{[t]:n},{match:G.isText,split:!0}):(e.marks=Q_(Q_({},V.marks(e)||{}),{},{[t]:n}),K_.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&W.isCollapsed(n)&&K.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&W.isCollapsed(n)&&K.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&W.isExpanded(n)&&K.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?H.fragment(e,t):[]},insertBreak:()=>{K.splitNodes(e,{always:!0})},insertFragment:t=>{K.insertFragment(e,t)},insertNode:t=>{K.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Q_({text:t},r);K.insertNodes(e,i)}else K.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!G.isText(n))if(B.isElement(n)&&n.children.length===0)K.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!V.isEditor(n)&&B.isElement(n)&&(e.isInline(n)||n.children.length===0||G.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=H.get(e,r);if(!G.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(G.isText(c)||B.isElement(c)&&e.isInline(c))===i?B.isElement(c)?e.isInline(c)&&(l!=null&&G.isText(l)?u&&(K.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(K.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&G.isText(l)&&(G.equals(c,l,{loose:!0})?(K.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(K.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(K.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(K.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(W.isExpanded(n))K.unsetNodes(e,t,{match:G.isText,split:!0});else{var r=Q_({},V.marks(e)||{});delete r[t],e.marks=r,K_.get(e)||e.onChange()}}};return e},Fie=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return U.levels(t);case`insert_node`:var{node:n,path:r}=e,i=U.levels(r),a=G.isText(n)?[]:Array.from(H.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...U.ancestors(o),U.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(U.equals(s,c))return[];var l=[],u=[];for(var d of U.ancestors(s)){var f=U.transform(d,e);l.push(f)}for(var p of U.ancestors(c)){var m=U.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[...U.ancestors(v)];case`split_node`:var{path:y}=e;return[...U.levels(y),U.next(y)];default:return[]}};function $_(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 ev,tv=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Bie(e):e,i=ev.None,a=ev.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=Qie(c,l);if([i,a]=n?[a,u]:[u,i],rv(i,ev.ZWJ)&&rv(a,ev.ExtPict)&&!nae(n?e.substring(0,o):e.substring(0,e.length-o))||rv(i,ev.RI)&&rv(a,ev.RI)&&!(s=s===null?!!n||iae(e.substring(0,e.length-o)):!s)||i!==ev.None&&a!==ev.None&&eae(i,a))break;o+=c.length}return o||1},Iie=/\s/,Lie=/[\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]/,Rie=/['\u2018\u2019]/,nv=(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)]},zie=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Iie.test(t))return!1;if(Rie.test(t)){var[i,a]=nv(n,tv(n,r),r);if(e(i,a,r))return!0}return!Lie.test(t)},Bie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Hie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Vie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Vie=e=>e>=55296&&e<=56319,Hie=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`})(ev||={});var Uie=/^(?:[\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])$/,Wie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Gie=/^(?:[\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])$/,Kie=/^[\u1100-\u115F\uA960-\uA97C]$/,qie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Jie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Yie=/^[\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]$/,Xie=/^[\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]$/,Zie=/^(?:[\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])$/,Qie=(e,t)=>{var n=ev.Any;return e.search(Uie)!==-1&&(n|=ev.Extend),t===8205&&(n|=ev.ZWJ),t>=127462&&t<=127487&&(n|=ev.RI),e.search(Wie)!==-1&&(n|=ev.Prepend),e.search(Gie)!==-1&&(n|=ev.SpacingMark),e.search(Kie)!==-1&&(n|=ev.L),e.search(qie)!==-1&&(n|=ev.V),e.search(Jie)!==-1&&(n|=ev.T),e.search(Yie)!==-1&&(n|=ev.LV),e.search(Xie)!==-1&&(n|=ev.LVT),e.search(Zie)!==-1&&(n|=ev.ExtPict),n};function rv(e,t){return(e&t)!=0}var $ie=[[ev.L,ev.L|ev.V|ev.LV|ev.LVT],[ev.LV|ev.V,ev.V|ev.T],[ev.LVT|ev.T,ev.T],[ev.Any,ev.Extend|ev.ZWJ],[ev.Any,ev.SpacingMark],[ev.Prepend,ev.Any],[ev.ZWJ,ev.ExtPict],[ev.RI,ev.RI]];function eae(e,t){return $ie.findIndex((n=>rv(e,n[0])&&rv(t,n[1])))===-1}var tae=/(?:[\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$/,nae=e=>e.search(tae)!==-1,rae=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,iae=e=>{var t=e.match(rae);return t!==null&&t[0].length/2%2==1},iv=e=>e_(e)&&H.isNodeList(e.children)&&!V.isEditor(e),B={isAncestor:e=>e_(e)&&H.isNodeList(e.children),isElement:iv,isElementList:e=>Array.isArray(e)&&e.every((e=>B.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 iv(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},aae=[`text`],oae=[`text`];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){W_(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=new WeakMap,V={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=V.path(e,r),o=n===`lowest`;for(var[s,c]of V.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!G.isText(s)&&!U.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:V.point(e,t,{edge:`end`}),focus:V.end(e,[])},{distance:a=1}=r,o=0;for(var s of V.positions(e,ov(ov({},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:V.start(e,[]),focus:V.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of V.positions(e,ov(ov({},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)=>[V.start(e,t),V.end(e,t)],end:(e,t)=>V.point(e,t,{edge:`end`}),first(e,t){var n=V.path(e,t,{edge:`start`});return V.node(e,n)},fragment(e,t){var n=V.range(e,t);return H.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>V.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>G.isText(t)||V.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>G.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)=>B.isElement(t)&&!e.isInline(t),isEditor(e){if(!e_(e))return!1;var t=sv.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||e_(e.marks))&&(e.selection===null||W.isRange(e.selection))&&H.isNodeList(e.children)&&dv.isOperationList(e.operations);return sv.set(e,n),n},isEnd(e,t,n){var r=V.end(e,n);return mv.equals(t,r)},isEdge:(e,t,n)=>V.isStart(e,t,n)||V.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&G.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>B.isElement(t)&&e.isInline(t),isNormalizing(e){var t=q_.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=V.start(e,n);return mv.equals(t,r)},isVoid:(e,t)=>B.isElement(t)&&e.isVoid(t),last(e,t){var n=V.path(e,t,{edge:`end`});return V.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.path(e,t,n);return[H.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=V.path(e,n);for(var[c,l]of H.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&V.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(W.isExpanded(n)){var[r]=V.nodes(e,{match:G.isText});if(r){var[i]=r;return $_(i,aae)}return{}}var{anchor:a}=n,{path:o}=a,[s]=V.leaf(e,o);if(a.offset===0){var c=V.previous(e,{at:o,match:G.isText}),l=V.above(e,{match:t=>V.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;U.isAncestor(f,d)&&(s=u)}}return $_(s,oae)},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=V.after(e,a,{voids:r});if(o){var[,s]=V.last(e,[]),c=[o.path,s];if(U.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(U.isPath(a)){var[l]=V.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=V.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=V.path(e,t,n);return[H.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(sae.isSpan(n))c=n[0],l=n[1];else{var u=V.path(e,n,{edge:`start`}),d=V.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=H.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&V.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&U.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&&!_&&G.isText(h))return}}r===`lowest`&&f&&(i?m.push(f):yield f),i&&(yield*m)}},normalize(e){var{force:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e=>G_.get(e)||[];if(V.isNormalizing(e)){if(t){var r=Array.from(H.nodes(e),(e=>{var[,t]=e;return t}));G_.set(e,r)}n(e).length!==0&&V.withoutNormalizing(e,(()=>{for(var t of n(e))if(H.has(e,t)){var r=V.node(e,t),[i,a]=r;B.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(H.has(e,c)){var l=V.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.path(e,t,n),i=U.parent(r);return V.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(U.isPath(t)){if(r===`start`){var[,i]=H.first(e,t);t=i}else if(r===`end`){var[,a]=H.last(e,t);t=a}}return W.isRange(t)&&(t=r===`start`?W.start(t):r===`end`?W.end(t):U.common(t.anchor.path,t.focus.path)),mv.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>H.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 V.pathRefs(e).delete(r),r.current=null,t}};return V.pathRefs(e).add(r),r},pathRefs(e){var t=J_.get(e);return t||(t=new Set,J_.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(U.isPath(t)){var r;if(n===`end`){var[,i]=H.last(e,t);r=i}else{var[,a]=H.first(e,t);r=a}var o=H.get(e,r);if(!G.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(W.isRange(t)){var[s,c]=W.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 V.pointRefs(e).delete(r),r.current=null,t}};return V.pointRefs(e).add(r),r},pointRefs(e){var t=Y_.get(e);return t||(t=new Set,Y_.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=V.range(e,t),[o,s]=W.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of V.nodes(e,{at:t,reverse:r,voids:i})){if(B.isElement(m)){if(!i&&e.isVoid(m)){yield V.start(e,h);continue}if(e.isInline(m))continue;if(V.hasInlines(e,m)){var g=U.isAncestor(h,s.path)?s:V.end(e,h),_=U.isAncestor(h,o.path)?o:V.start(e,h);u=V.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(G.isText(m)){var v=U.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=nv(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`?tv(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=tv(e,t),[a,o]=nv(e,i,t);if(zie(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=V.before(e,a,{voids:r});if(o){var[,s]=V.first(e,[]),c=[o.path,s];if(U.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(U.isPath(a)){var[l]=V.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=V.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>W.isRange(t)&&!n?t:{anchor:V.start(e,t),focus:V.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 V.rangeRefs(e).delete(r),r.current=null,t}};return V.rangeRefs(e).add(r),r},rangeRefs(e){var t=X_.get(e);return t||(t=new Set,X_.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){q_.set(e,t)},start:(e,t)=>V.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.range(e,t),[i,a]=W.edges(r),o=``;for(var[s,c]of V.nodes(e,{at:r,match:G.isText,voids:n})){var l=s.text;U.equals(c,a.path)&&(l=l.slice(0,a.offset)),U.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]=W.edges(t);if(r.offset!==0||i.offset!==0||W.isCollapsed(t))return t;var a=V.above(e,{at:i,match:t=>V.isBlock(e,t)}),o=a?a[1]:[],s={anchor:V.start(e,[]),focus:i},c=!0;for(var[l,u]of V.nodes(e,{at:s,match:G.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||U.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 V.above(e,ov(ov({},t),{},{match:t=>V.isVoid(e,t)}))},withoutNormalizing(e,t){var n=V.isNormalizing(e);V.setNormalizing(e,!1);try{t()}finally{V.setNormalizing(e,n)}V.normalize(e)}},sae={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(U.isPath)},cae=[`children`],lae=[`text`],cv=new WeakMap,H={ancestor(e,t){var n=H.get(e,t);if(G.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 U.ancestors(t,n))yield[H.ancestor(e,r),r]},child(e,t){if(G.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=H.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[H.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=U.common(t,n);return[H.get(e,r),r]},descendant(e,t){var n=H.get(e,t);if(V.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 H.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 H.nodes(e,t))B.isElement(n)&&(yield[n,r])},extractProps:e=>B.isAncestor(e)?$_(e,cae):$_(e,lae),first(e,t){for(var n=t.slice(),r=H.get(e,n);r&&!G.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(G.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return V_({children:e.children},(e=>{var[n,r]=W.edges(t);for(var[,i]of H.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!W.includes(t,n)}})){if(!W.includes(t,i)){var a=H.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(U.equals(i,r.path)){var s=H.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(U.equals(i,n.path)){var c=H.leaf(e,i);c.text=c.text.slice(n.offset)}}V.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(G.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(G.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>G.isText(e)||B.isElement(e)||V.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=cv.get(e);if(t!==void 0)return t;var n=e.every((e=>H.isNode(e)));return cv.set(e,n),n},last(e,t){for(var n=t.slice(),r=H.get(e,n);r&&!G.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=H.get(e,t);if(!G.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 U.levels(t,n))yield[H.get(e,r),r]},matches:(e,t)=>B.isElement(e)&&B.isElementProps(t)&&B.matches(e,t)||G.isText(e)&&G.isTextProps(t)&&G.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?U.isBefore(s,a):U.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||G.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=U.next(s);if(H.has(e,l)){s=l,c=H.get(e,s);continue}}r&&s[s.length-1]!==0?(s=U.previous(s),c=H.get(e,s)):(s=U.parent(s),c=H.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;U.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=H.get(e,s)}},parent(e,t){var n=U.parent(t),r=H.get(e,n);if(G.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>G.isText(e)?e.text:e.children.map(H.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of H.nodes(e,t))G.isText(n)&&(yield[n,r])}};function lv(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 uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lv(Object(n),!0).forEach((function(t){W_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dv={isNodeOperation:e=>dv.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!e_(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return U.isPath(e.path)&&H.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&U.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&U.isPath(e.path)&&e_(e.properties);case`move_node`:return U.isPath(e.path)&&U.isPath(e.newPath);case`set_node`:return U.isPath(e.path)&&e_(e.properties)&&e_(e.newProperties);case`set_selection`:return e.properties===null&&W.isRange(e.newProperties)||e.newProperties===null&&W.isRange(e.properties)||e_(e.properties)&&e_(e.newProperties);case`split_node`:return U.isPath(e.path)&&typeof e.position==`number`&&e_(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>dv.isOperation(e))),isSelectionOperation:e=>dv.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>dv.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return uv(uv({},e),{},{type:`remove_node`});case`insert_text`:return uv(uv({},e),{},{type:`remove_text`});case`merge_node`:return uv(uv({},e),{},{type:`split_node`,path:U.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(U.equals(t,n))return e;if(U.isSibling(n,t))return uv(uv({},e),{},{path:t,newPath:n});var r=U.transform(n,e),i=U.transform(U.next(n),e);return uv(uv({},e),{},{path:r,newPath:i});case`remove_node`:return uv(uv({},e),{},{type:`insert_node`});case`remove_text`:return uv(uv({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return uv(uv({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return uv(uv({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return uv(uv({},e),{},{type:`merge_node`,path:U.next(e.path)})}}},U={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=U.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 U.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return U.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 U.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)=>U.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&U.compare(e,t)===0,isBefore:(e,t)=>U.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&U.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&U.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&U.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&U.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]&&U.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(!U.isAncestor(t,e)&&!U.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 V_(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;(U.equals(a,r)||U.endsBefore(a,r)||U.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(U.equals(o,r)||U.isAncestor(o,r))return null;U.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;U.equals(s,r)||U.endsBefore(s,r)?--r[s.length-1]:U.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(U.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else U.endsBefore(l,r)?r[l.length-1]+=1:U.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(U.equals(d,f))return;if(U.isAncestor(d,r)||U.equals(d,r)){var p=f.slice();return U.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}U.isSibling(d,f)&&(U.isAncestor(f,r)||U.equals(f,r))?U.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:U.endsBefore(f,r)||U.equals(f,r)||U.isAncestor(f,r)?(U.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):U.endsBefore(d,r)&&(U.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},uae={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()}}};function fv(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 pv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fv(Object(n),!0).forEach((function(t){W_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mv={compare(e,t){var n=U.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:+(e.offset>t.offset):n},isAfter:(e,t)=>mv.compare(e,t)===1,isBefore:(e,t)=>mv.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&U.equals(e.path,t.path),isPoint:e=>e_(e)&&typeof e.offset==`number`&&U.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V_(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=U.transform(i,t,n);break;case`insert_text`:U.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:U.equals(t.path,i)&&(e.offset+=t.position),e.path=U.transform(i,t,n);break;case`remove_text`:U.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(U.equals(t.path,i)||U.isAncestor(t.path,i))return null;e.path=U.transform(i,t,n);break;case`split_node`:if(U.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=U.transform(i,t,pv(pv({},n),{},{affinity:`forward`})))}else e.path=U.transform(i,t,n)}}))}},dae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=mv.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},fae=[`anchor`,`focus`];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}var W={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return W.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=W.edges(e);return t},equals:(e,t)=>mv.equals(e.anchor,t.anchor)&&mv.equals(e.focus,t.focus),includes(e,t){if(W.isRange(t)){if(W.includes(e,t.anchor)||W.includes(e,t.focus))return!0;var[n,r]=W.edges(e),[i,a]=W.edges(t);return mv.isBefore(n,i)&&mv.isAfter(r,a)}var[o,s]=W.edges(e),c=!1,l=!1;return mv.isPoint(t)?(c=mv.compare(t,o)>=0,l=mv.compare(t,s)<=0):(c=U.compare(t,o.path)>=0,l=U.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=$_(e,fae),[r,i]=W.edges(e),[a,o]=W.edges(t),s=mv.isBefore(r,a)?a:r,c=mv.isBefore(i,o)?i:o;return mv.isBefore(c,s)?null:function(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){W_(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}({anchor:s,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return mv.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return mv.equals(t,n)},isExpanded:e=>!W.isCollapsed(e),isForward:e=>!W.isBackward(e),isRange:e=>e_(e)&&mv.isPoint(e.anchor)&&mv.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=W.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V_(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=W.isCollapsed(e);W.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?W.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=mv.transform(e.anchor,t,{affinity:r}),c=mv.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},pae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=W.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},gv=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(e_(r)&&e_(i)){if(!gv(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},mae=[`text`],hae=[`anchor`,`focus`];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){W_(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 G={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return $_(e,mae)}return gv(n?r(e):e,n?r(t):t)},isText:e=>e_(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>G.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=[vv({},e)];for(var r of t){var i=$_(r,hae),[a,o]=W.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=vv(vv({},f),{},{text:f.text.slice(h)}),f=vv(vv({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=vv(vv({},f),{},{text:f.text.slice(0,g)}),f=vv(vv({},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 yv(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 bv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yv(Object(n),!0).forEach((function(t){W_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gae={transform(e,t){e.children=H_(e.children);var n=e.selection&&H_(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=H.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 W.points(t))t[c]=mv.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=H.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 W.points(t))t[g]=mv.transform(h,n);break;case`merge_node`:var{path:_}=n,v=H.get(e,_),y=U.previous(_),b=H.get(e,y),x=H.parent(e,_),S=_[_.length-1];if(G.isText(v)&&G.isText(b))b.text+=v.text;else{if(G.isText(v)||G.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 W.points(t))t[w]=mv.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(U.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=H.get(e,T),O=H.parent(e,T),ee=T[T.length-1];O.children.splice(ee,1);var k=U.transform(T,n),A=H.get(e,U.parent(k)),j=k[k.length-1];if(A.children.splice(j,0,D),t)for(var[te,M]of W.points(t))t[M]=mv.transform(te,n);break;case`remove_node`:var{path:ne}=n,re=ne[ne.length-1];if(H.parent(e,ne).children.splice(re,1),t)for(var[ie,ae]of W.points(t)){var oe=mv.transform(ie,n);if(t!=null&&oe!=null)t[ae]=oe;else{var se=void 0,N=void 0;for(var[ce,le]of H.texts(e)){if(U.compare(le,ne)!==-1){N=[ce,le];break}se=[ce,le]}var ue=!1;se&&N&&(ue=U.equals(N[1],ne)?!U.hasPrevious(N[1]):U.common(se[1],ne).length<U.common(N[1],ne).length),se&&!ue?(ie.path=se[1],ie.offset=se[0].text.length):N?(ie.path=N[1],ie.offset=0):t=null}}break;case`remove_text`:var{path:de,offset:fe,text:pe}=n;if(pe.length===0)break;var me=H.leaf(e,de);if(me.text=me.text.slice(0,fe)+me.text.slice(fe+pe.length),t)for(var[he,ge]of W.points(t))t[ge]=mv.transform(he,n);break;case`set_node`:var{path:P,properties:_e,newProperties:ve}=n;if(P.length===0)throw Error(`Cannot set properties on the root node!`);var ye=H.get(e,P);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(!W.isRange(Se))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(Se)} when there is no current selection.`);t=bv({},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=H.get(e,Te),Oe=H.parent(e,Te),R=Te[Te.length-1];if(G.isText(L)){var ke=L.text.slice(0,Ee),Ae=L.text.slice(Ee);L.text=ke,I=bv(bv({},De),{},{text:Ae})}else{var je=L.children.slice(0,Ee),Me=L.children.slice(Ee);L.children=je,I=bv(bv({},De),{},{children:Me})}if(Oe.children.splice(R+1,0,I),t)for(var[Ne,Pe]of W.points(t))t[Pe]=mv.transform(Ne,n)}return t})(e,n,t)}finally{e.children=U_(e.children),e.selection=n?n_(n)?U_(n):n:null}}},_ae=[`text`],vae=[`children`];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){W_(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 yae={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(H.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?V.end(e,[]):[0],c=!0),c??=!1,W.isRange(o))if(r||(o=V.unhangRange(e,o)),W.isCollapsed(o))o=o.anchor;else{var[,u]=W.edges(o),d=V.pointRef(e,u);K.delete(e,{at:o}),o=d.unref()}if(mv.isPoint(o)){s??=G.isText(l)?e=>G.isText(e):e.isInline(l)?t=>G.isText(t)||V.isInline(e,t):t=>V.isBlock(e,t);var[f]=V.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=V.pathRef(e,p),h=V.isEnd(e,o,p);K.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?U.next(g):g}var _=U.parent(o),v=o[o.length-1];if(i||!V.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=U.next(o)}if(o=U.previous(o),c){var x=V.end(e,o);x&&K.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=U.isPath(n)?wv(e,n):t=>V.isBlock(e,t),n){var o=V.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return V.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]=V.node(e,U.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=U.next(u);K.moveNodes(e,{at:c,to:p,voids:i}),K.removeNodes(e,{at:u,voids:i})}else if(d===0)K.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=U.next(u);K.moveNodes(e,{at:c,to:m,voids:i})}else{var h=U.next(c),g=U.next(u);K.splitNodes(e,{at:h,voids:i}),K.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.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(U.isPath(r)){var[s]=V.parent(e,r);n=e=>s.children.includes(e)}else n=t=>V.isBlock(e,t);if(!i&&W.isRange(r)&&(r=V.unhangRange(e,r)),W.isRange(r))if(W.isCollapsed(r))r=r.anchor;else{var[,c]=W.edges(r),l=V.pointRef(e,c);K.delete(e,{at:r}),r=l.unref(),t.at??K.select(e,r)}var[u]=V.nodes(e,{at:r,match:n,voids:a,mode:o}),d=V.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=U.next(h),y=U.common(p,h),b=U.isSibling(p,h),x=Array.from(V.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=V.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&Cv(e,t)}),C=S&&V.pathRef(e,S[1]);if(G.isText(f)&&G.isText(m)){var w=$_(f,_ae);_=m.text.length,g=w}else{if(!B.isElement(f)||!B.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=$_(f,vae),_=m.children.length,g=w}b||K.moveNodes(e,{at:p,to:v,voids:a}),C&&K.removeNodes(e,{at:C.current,voids:a}),B.isElement(m)&&V.isEmpty(e,m)||G.isText(m)&&m.text===``&&h[h.length-1]!==0?K.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){V.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=U.isPath(r)?wv(e,r):t=>V.isBlock(e,t);var s=V.pathRef(e,n),c=V.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return V.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&U.isSibling(d,u)&&U.isAfter(d,u)&&(s.current=U.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=U.isPath(a)?wv(e,a):t=>V.isBlock(e,t),!n&&W.isRange(a)&&(a=V.unhangRange(e,a));var s=V.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return V.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=V.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]:{};V.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??=U.isPath(i)?wv(e,i):t=>V.isBlock(e,t),!a&&W.isRange(i)&&(i=V.unhangRange(e,i)),s&&W.isRange(i)){if(W.isCollapsed(i)&&V.leaf(e,i.anchor)[0].text.length>0)return;var l=V.rangeRef(e,i,{affinity:`inward`}),[u,d]=W.edges(i),f=o===`lowest`?`lowest`:`highest`,p=V.isEnd(e,d,d.path);K.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=V.isStart(e,u,u.path);K.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??K.select(e,i)}for(var[h,g]of V.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]:{};V.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=>V.isBlock(e,t),W.isRange(a)&&(a=bae(e,a)),U.isPath(a)){var c=a,l=V.point(e,c),[u]=V.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=V.pointRef(e,a,{affinity:`backward`}),[f]=V.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=V.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(B.isElement(m)&&e.isInline(m)){var g=V.after(e,h);if(!g){var _=U.next(h);K.insertNodes(e,{text:``},{at:_,voids:r}),g=V.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=V.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 V.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&V.isVoid(e,C))break;var E=d.current,D=V.isEnd(e,E,w);if(s||!d||!V.isEdge(e,E,w)){T=!0;var O=H.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||V.end(e,[]);K.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;K.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=U.isPath(a)?wv(e,a):t=>V.isBlock(e,t),U.isPath(a)&&(a=V.range(e,a));var s=W.isRange(a)?V.rangeRef(e,a):null,c=V.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return V.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=V.node(e,n),o=V.range(e,n);r&&s&&(o=W.intersection(s.current,o)),K.liftNodes(e,{at:o,match:e=>B.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]:{};V.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=U.isPath(s)?wv(e,s):e.isInline(t)?t=>V.isInline(e,t)||G.isText(t):t=>V.isBlock(e,t),i&&W.isRange(s)){var[c,l]=W.edges(s),u=V.rangeRef(e,s,{affinity:`inward`});K.splitNodes(e,{at:l,match:o,voids:a}),K.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??K.select(e,s)}for(var[,d]of Array.from(V.nodes(e,{at:s,match:e.isInline(t)?t=>V.isBlock(e,t):e=>V.isEditor(e),mode:`lowest`,voids:a}))){var f=W.isRange(s)?W.intersection(s,V.range(e,d)):s;if(f){var p=Array.from(V.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=U.equals(i,o)?U.parent(i):U.common(i,o),c=V.range(e,i,o),[l]=V.node(e,s),u=s.length+1,d=U.next(o.slice(0,u)),f=Sv(Sv({},t),{},{children:[]});K.insertNodes(e,f,{at:d,voids:a}),K.moveNodes(e,{at:c,match:e=>B.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},Cv=(e,t)=>{if(B.isElement(t)){var n=t;return!!V.isVoid(e,t)||n.children.length===1&&Cv(e,n.children[0])}return!V.isEditor(t)},bae=(e,t)=>{if(W.isCollapsed(t))return t.anchor;var[,n]=W.edges(t),r=V.pointRef(e,n);return K.delete(e,{at:t}),r.unref()},wv=(e,t)=>{var[n]=V.node(e,t);return e=>e===n};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 Ev(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){W_(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 xae={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)K.select(e,n.anchor);else if(t===`focus`)K.select(e,n.focus);else if(t===`start`){var[r]=W.edges(n);K.select(e,r)}else if(t===`end`){var[,i]=W.edges(n);K.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=W.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=W.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?V.before(e,s,l):V.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?V.before(e,c,l):V.after(e,c,l);f&&(u.focus=f)}K.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=V.range(e,t),n)K.setSelection(e,t);else{if(!W.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=W.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=W.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;K.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:Ev(Ev({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!mv.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!mv.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})}}},Sae={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.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(W.isRange(o)&&W.isCollapsed(o)&&(o=o.anchor),mv.isPoint(o)){var c=V.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?V.before(e,o,u)||V.start(e,[]):V.after(e,o,u)||V.end(e,[])},s=!0}}if(U.isPath(o))K.removeNodes(e,{at:o,voids:a});else if(!W.isCollapsed(o)){if(!s){var[,d]=W.edges(o),f=V.end(e,[]);mv.equals(d,f)||(o=V.unhangRange(e,o,{voids:a}))}var[p,m]=W.edges(o),h=V.above(e,{match:t=>V.isBlock(e,t),at:p,voids:a}),g=V.above(e,{match:t=>V.isBlock(e,t),at:m,voids:a}),_=h&&g&&!U.equals(h[1],g[1]),v=U.equals(p.path,m.path),y=a?null:V.void(e,{at:p,mode:`highest`}),b=a?null:V.void(e,{at:m,mode:`highest`});if(y){var x=V.before(e,p);x&&h&&U.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=V.after(e,m);S&&g&&U.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of V.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&U.compare(D,C)===0||(!a&&V.isVoid(e,E)||!U.isCommon(D,p.path)&&!U.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return V.pathRef(e,n)})),ee=V.pointRef(e,p),k=V.pointRef(e,m);if(!v&&!y){var A=ee.current,[j]=V.leaf(e,A),{path:te}=A,{offset:M}=p,ne=j.text.slice(M);ne.length>0&&e.apply({type:`remove_text`,path:te,offset:M,text:ne})}for(var re of O){var ie=re.unref();K.removeNodes(e,{at:ie,voids:a})}if(!b){var ae=k.current,[oe]=V.leaf(e,ae),{path:se}=ae,N=v?p.offset:0,ce=oe.text.slice(N,m.offset);ce.length>0&&e.apply({type:`remove_text`,path:se,offset:N,text:ce})}!v&&_&&k.current&&ee.current&&K.mergeNodes(e,{at:k.current,hanging:!0,voids:a});var le=n?ee.unref()||k.unref():k.unref()||ee.unref();t.at==null&&le&&K.select(e,le)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(W.isRange(a))if(r||(a=V.unhangRange(e,a)),W.isCollapsed(a))a=a.anchor;else{var[,o]=W.edges(a);if(!i&&V.void(e,{at:o}))return;var s=V.pointRef(e,o);K.delete(e,{at:a}),a=s.unref()}else U.isPath(a)&&(a=V.start(e,a));if(i||!V.void(e,{at:a})){var c=V.above(e,{at:a,match:t=>V.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;V.isEnd(e,a,l)?a=V.after(e,l):V.isStart(e,a,l)&&(a=V.before(e,l))}var[,u]=V.above(e,{match:t=>V.isBlock(e,t),at:a,voids:i}),d=V.isStart(e,a,u),f=V.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=H.first({children:t},[]),[,_]=H.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&U.isAncestor(r,g)&&B.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&U.isAncestor(r,_)&&B.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of H.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)B.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=V.nodes(e,{at:a,match:t=>G.isText(t)||V.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,ee=V.isStart(e,a,O),k=V.isEnd(e,a,O),A=V.pathRef(e,f?U.next(u):u),j=V.pathRef(e,k?U.next(O):O),te=V.pathRef(e,u);K.splitNodes(e,{at:a,match:t=>T?V.isBlock(e,t):G.isText(t)||V.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var M=V.pathRef(e,!ee||ee&&k?U.next(O):O);if(K.insertNodes(e,x,{at:M.current,match:t=>G.isText(t)||V.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&K.delete(e,{at:te.unref(),voids:i}),K.insertNodes(e,S,{at:A.current,match:t=>V.isBlock(e,t),mode:`lowest`,voids:i}),K.insertNodes(e,C,{at:j.current,match:t=>G.isText(t)||V.isInline(e,t),mode:`highest`,voids:i}),!n.at){var ne=C.length>0?U.previous(j.current):S.length>0?U.previous(A.current):U.previous(M.current),re=V.end(e,ne);K.select(e,re)}M.unref(),A.unref(),j.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(U.isPath(i)&&(i=V.range(e,i)),W.isRange(i))if(W.isCollapsed(i))i=i.anchor;else{var a=W.end(i);if(!r&&V.void(e,{at:a}))return;var o=V.pointRef(e,a);K.delete(e,{at:i,voids:r}),i=o.unref(),K.setSelection(e,{anchor:i,focus:i})}if(r||!V.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 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}function Ov(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){W_(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}var K=Ov(Ov(Ov(Ov({},gae),yae),xae),Sae),kv=`[object Map]`,Av=`[object Set]`,Cae=/^\[object .+?Constructor\]$/,wae=/^(?:0|[1-9]\d*)$/,Tae=`[\\ud800-\\udfff]`,jv=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Mv=`\\ud83c[\\udffb-\\udfff]`,Nv=`[^\\ud800-\\udfff]`,Pv=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Fv=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Iv=`(?:`+jv+`|`+Mv+`)?`,Eae=`[\\ufe0e\\ufe0f]?`+Iv+(`(?:\\u200d(?:`+[Nv,Pv,Fv].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Iv+`)*`),Dae=`(?:`+[Nv+jv+`?`,jv,Pv,Fv,Tae].join(`|`)+`)`,Oae=RegExp(Mv+`(?=`+Mv+`)|`+Dae+Eae,`g`),kae=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),Aae=typeof ql==`object`&&ql&&ql.Object===Object&&ql,jae=typeof self==`object`&&self&&self.Object===Object&&self,Lv=Aae||jae||Function(`return this`)();function Mae(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 Nae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Pae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Fae(e){return function(e){return kae.test(e)}(e)?function(e){return e.match(Oae)||[]}(e):function(e){return e.split(``)}(e)}var Rv,zv,Iae=Function.prototype,Bv=Object.prototype,Vv=Lv[`__core-js_shared__`],Hv=function(){var e=/[^.]+$/.exec(Vv&&Vv.keys&&Vv.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Uv=Iae.toString,Wv=Bv.hasOwnProperty,Gv=Bv.toString,Lae=RegExp(`^`+Uv.call(Wv).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Kv=Lv.Symbol,qv=Kv?Kv.iterator:void 0,Rae=Bv.propertyIsEnumerable,zae=(Rv=Object.keys,zv=Object,function(e){return Rv(zv(e))}),Jv=ry(Lv,`DataView`),Yv=ry(Lv,`Map`),Xv=ry(Lv,`Promise`),Zv=ry(Lv,`Set`),Qv=ry(Lv,`WeakMap`),Bae=ay(Jv),Vae=ay(Yv),Hae=ay(Xv),$v=ay(Zv),ey=ay(Qv);function ty(e,t){var n=oy(e)||function(e){return function(e){return uy(e)&&sy(e)}(e)&&Wv.call(e,`callee`)&&(!Rae.call(e,`callee`)||Gv.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&&!Wv.call(e,a)||i&&(a==`length`||Wae(a,r))||n.push(a);return n}function ny(e){return!ly(e)||function(e){return!!Hv&&Hv in e}(e)?!1:(cy(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?Lae:Cae).test(ay(e))}function Uae(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Bv,t!==r)return zae(e);var t,n,r,i=[];for(var a in Object(e))Wv.call(e,a)&&a!=`constructor`&&i.push(a);return i}function ry(e,t){var n=function(e,t){return e?.[t]}(e,t);return ny(n)?n:void 0}var iy=function(e){return Gv.call(e)};function Wae(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||wae.test(e))&&e>-1&&e%1==0&&e<t}function ay(e){if(e!=null){try{return Uv.call(e)}catch{}try{return e+``}catch{}}return``}(Jv&&iy(new Jv(new ArrayBuffer(1)))!=`[object DataView]`||Yv&&iy(new Yv)!=kv||Xv&&iy(Xv.resolve())!=`[object Promise]`||Zv&&iy(new Zv)!=Av||Qv&&iy(new Qv)!=`[object WeakMap]`)&&(iy=function(e){var t=Gv.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?ay(n):void 0;if(r)switch(r){case Bae:return`[object DataView]`;case Vae:return kv;case Hae:return`[object Promise]`;case $v:return Av;case ey:return`[object WeakMap]`}return t});var oy=Array.isArray;function sy(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!cy(e)}function cy(e){var t=ly(e)?Gv.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function ly(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function uy(e){return!!e&&typeof e==`object`}function Gae(e){return e?Mae(e,function(e){return sy(e)?ty(e):Uae(e)}(e)):[]}var dy=function(e){if(!e)return[];if(sy(e))return function(e){return typeof e==`string`||!oy(e)&&uy(e)&&Gv.call(e)==`[object String]`}(e)?Fae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(qv&&e[qv])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qv]());var t=iy(e);return(t==kv?Nae:t==Av?Pae:Gae)(e)};function fy(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function py(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:fy(t[n])&&fy(e[n])&&Object.keys(t[n]).length>0&&py(e[n],t[n])}))}var my={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 hy(){var e=typeof document<`u`?document:{};return py(e,my),e}var Kae={document:my,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 gy(){var e=typeof window<`u`?window:{};return py(e,Kae),e}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_y(e)}function vy(e,t){return vy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vy(e,t)}function qae(){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 yy(e,t,n){return yy=qae()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&vy(i,n.prototype),i},yy.apply(null,arguments)}function by(e){var t=typeof Map==`function`?new Map:void 0;return by=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 yy(e,arguments,_y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),vy(n,e)},by(e)}var xy=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}(by(Array));function Sy(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Sy(e)):t.push(e)})),t}function Cy(e,t){return Array.prototype.filter.call(e,t)}function q(e,t){var n=gy(),r=hy(),i=[];if(!t&&e instanceof xy)return e;if(!e)return new xy(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 xy)return e;i=e}return new xy(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 wy(){var e=Sy([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function Ty(){var e=Sy([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function Ey(){var e=Sy([...arguments].map((function(e){return e.split(` `)})));return Cy(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function Dy(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 Oy(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ky(){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 Ay(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 jy(){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),q(t).is(n))r.apply(t,i);else for(var a=q(t).parents(),o=0;o<a.length;o+=1)q(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 My(){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 Ny(){var e=gy();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Py(){var e=gy();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function Fy(){if(this.length>0){var e=gy(),t=hy(),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 Iy(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function Ly(){for(var e=gy(),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 Ry(e,t){var n,r=gy();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 zy(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function By(e){return q(Cy(this,e))}function Vy(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 Hy(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 Uy(e){var t,n,r=gy(),i=hy(),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=q(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 xy){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function Wy(){for(var e,t=hy(),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 xy)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function Gy(e){var t,n,r=hy();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 xy)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 Ky(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?q(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return q(t)}function qy(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?q(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return q(t)}function Jy(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 q(t)}function Yy(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&&!q(r[i]).is(e)||t.push(r[i]);return q(t)}function Xy(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Zy(){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}q.fn=xy.prototype;var Jae=`resize scroll`.split(` `);function Qy(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)Jae.indexOf(e)<0&&(e in this[n]?this[n][e]():q(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(t))}}var $y=Qy(`click`),eb=Qy(`focus`),Yae=`[object GeneratorFunction]`,Xae=/^(?:0|[1-9]\d*)$/;function Zae(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var tb=Object.prototype,nb=tb.hasOwnProperty,rb=tb.toString,Qae=tb.propertyIsEnumerable,$ae=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function eoe(e,t){var n=ob(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&sb(e)}(e)&&nb.call(e,`callee`)&&(!Qae.call(e,`callee`)||rb.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&&!nb.call(e,a)||i&&(a==`length`||ioe(a,r))||n.push(a);return n}var ib,ab,toe=(ib=function(e,t){return e&&noe(e,t,aoe)},function(e,t){if(e==null)return e;if(!sb(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}),noe=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 roe(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||tb,t!==r)return $ae(e);var t,n,r,i=[];for(var a in Object(e))nb.call(e,a)&&a!=`constructor`&&i.push(a);return i}function ioe(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Xae.test(e))&&e>-1&&e%1==0&&e<t}var ob=Array.isArray;function sb(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)?rb.call(e):``;return t==`[object Function]`||t==Yae}(e)}function aoe(e){return sb(e)?eoe(e):roe(e)}function ooe(e){return e}var cb=function(e,t){return(ob(e)?Zae:toe)(e,typeof t==`function`?t:ooe)},lb=(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},soe=/^\s+|\s+$/g,coe=/^[-+]0x[0-9a-f]+$/i,loe=/^0b[01]+$/i,uoe=/^0o[0-7]+$/i,doe=parseInt,foe=typeof ql==`object`&&ql&&ql.Object===Object&&ql,poe=typeof self==`object`&&self&&self.Object===Object&&self,moe=foe||poe||Function(`return this`)(),hoe=Object.prototype.toString,goe=Math.max,_oe=Math.min,ub=function(){return moe.Date.now()};function voe(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=ub();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?_oe(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=ub(),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=fb(t)||0,db(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?goe(fb(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:_(ub())},v}function db(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function fb(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&hoe.call(e)==`[object Symbol]`}(e))return NaN;if(db(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=db(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(soe,``);var n=loe.test(e);return n||uoe.test(e)?doe(e.slice(2),n?2:8):coe.test(e)?NaN:+e}var pb=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return db(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),voe(e,t,{leading:r,maxWait:t,trailing:i})},yoe={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 mb(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 hb=Array.isArray;function gb(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function _b(e){return e===void 0}function vb(e){return e!==void 0}var yb=mb(``,{},[],void 0,void 0);function bb(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function boe(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 xoe=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function Soe(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?yoe:t;for(let t of xoe)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 mb(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;vb(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)_b(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=vb(s)&&vb(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](yb,e);if(hb(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else gb(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;vb(g)&&((i=g.create)==null||i.call(g,yb,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(vb(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;vb(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)}_b(t.text)?vb(h)&&vb(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]:bb(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):bb(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):bb(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):bb(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=boe(t,p,h)),c=a[y.key],_b(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):vb(g)?(vb(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):vb(h)?l(m,h,0,h.length-1):vb(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(vb(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)),bb(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 xb(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&&xb(n,t[e].children,t[e].sel)}}function Sb(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(hb(t)?r=t:gb(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),hb(n)?r=n:gb(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)gb(r[a])&&(r[a]=mb(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]!==`#`||xb(o,r,e),mb(e,o,r,i,void 0)}function Cb(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 wb={create:Cb,update:Cb};function Tb(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 Eb={create:Tb,update:Tb},Db=/[A-Z]/g;function Ob(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(Db,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(Db,`-$&`).toLowerCase(),a[r]))}var Coe={create:Ob,update:Ob};function kb(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++)kb(e[r],t,n)}function woe(e,t){let n=e.type,r=t.data.on;r&&r[n]&&kb(r[n],t,e)}function Ab(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){woe(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 Toe={create:Ab,update:Ab,destroy:Ab};function jb(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 Eoe={create:jb,update:jb},Mb=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,Nb=!1;function Doe(e,t,n){(function(e){Mb((function(){Mb(e)}))})((function(){e[t]=n}))}function Pb(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]||Doe(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var Fb={pre:function(){Nb=!1},create:Pb,update:Pb,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;Nb||=(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 Ib(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?Ib(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(mb(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Lb(e,t,...n){let r=Ib(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Sb(e,t,r[0].text):Sb(e,t,r)}Lb||={};var Ooe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,koe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rb=`\\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`,Aoe=`[\\ud800-\\udfff]`,zb=`[`+Rb+`]`,Bb=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Vb=`\\d+`,joe=`[\\u2700-\\u27bf]`,Hb=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,Ub=`[^\\ud800-\\udfff`+Rb+Vb+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Wb=`\\ud83c[\\udffb-\\udfff]`,Gb=`[^\\ud800-\\udfff]`,Kb=`(?:\\ud83c[\\udde6-\\uddff]){2}`,qb=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Jb=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Yb=`(?:`+Hb+`|`+Ub+`)`,Moe=`(?:`+Jb+`|`+Ub+`)`,Xb=`(?:`+Bb+`|`+Wb+`)?`,Zb=`[\\ufe0e\\ufe0f]?`+Xb+(`(?:\\u200d(?:`+[Gb,Kb,qb].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Xb+`)*`),Noe=`(?:`+[joe,Kb,qb].join(`|`)+`)`+Zb,Poe=`(?:`+[Gb+Bb+`?`,Bb,Kb,qb,Aoe].join(`|`)+`)`,Foe=RegExp(`['’]`,`g`),Qb=RegExp(Bb,`g`),$b=RegExp(Wb+`(?=`+Wb+`)|`+Poe+Zb,`g`),ex=RegExp([Jb+`?`+Hb+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[zb,Jb,`$`].join(`|`)+`)`,Moe+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[zb,Jb+Yb,`$`].join(`|`)+`)`,Jb+`?`+Yb+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,Jb+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,Vb,Noe].join(`|`),`g`),tx=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),nx=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ioe=typeof ql==`object`&&ql&&ql.Object===Object&&ql,Loe=typeof self==`object`&&self&&self.Object===Object&&self,Roe=Ioe||Loe||Function(`return this`)(),rx,zoe=(rx={À:`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 rx?.[e]});function ix(e){return tx.test(e)}function Boe(e){return ix(e)?function(e){return e.match($b)||[]}(e):function(e){return e.split(``)}(e)}var Voe=Object.prototype.toString,ax=Roe.Symbol,ox=ax?ax.prototype:void 0,sx=ox?ox.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)&&Voe.call(e)==`[object Symbol]`}(e))return sx?sx.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Uoe(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 cx(e){return e==null?``:Hoe(e)}for(var lx,Woe=(lx=function(e,t,n){return t=t.toLowerCase(),e+(n?Goe(cx(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=cx(e),(t=n?void 0:t)===void 0?function(e){return nx.test(e)}(e)?function(e){return e.match(ex)||[]}(e):function(e){return e.match(Ooe)||[]}(e):e.match(t)||[]}(function(e){return(e=cx(e))&&e.replace(koe,zoe).replace(Qb,``)}(e).replace(Foe,``)),lx,``)}),ux,Goe=(ux=`toUpperCase`,function(e){var t=ix(e=cx(e))?Boe(e):void 0,n=t?t[0]:e.charAt(0),r=t?Uoe(t,1).join(``):e.slice(1);return n[ux]()+r}),Koe=Woe,qoe=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),dx={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},fx={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:qoe?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},px={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},mx=1;mx<20;mx++)px[`f`+mx]=111+mx;function hx(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 dx)r[dx[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=gx(f),h=dx[m];if(f.length>1&&!h&&!fx[f]&&!px[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=Joe(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 Joe(e){return e=gx(e),px[e]||e.toUpperCase().charCodeAt(0)}function gx(e){return e=e.toLowerCase(),e=fx[e]||e}var Yoe=hx,_x=function(e,t){return hx(e,{byKey:!0},t)},Xoe=/^\s+|\s+$/g,Zoe=/^[-+]0x[0-9a-f]+$/i,Qoe=/^0b[01]+$/i,$oe=/^0o[0-7]+$/i,ese=parseInt,tse=typeof ql==`object`&&ql&&ql.Object===Object&&ql,nse=typeof self==`object`&&self&&self.Object===Object&&self,rse=tse||nse||Function(`return this`)(),ise=Object.prototype.toString,ase=Math.max,ose=Math.min,vx=function(){return rse.Date.now()};function yx(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function bx(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&ise.call(e)==`[object Symbol]`}(e))return NaN;if(yx(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=yx(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Xoe,``);var n=Qoe.test(e);return n||$oe.test(e)?ese(e.slice(2),n?2:8):Zoe.test(e)?NaN:+e}var xx,Sx=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=vx();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?ose(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=vx(),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=bx(t)||0,yx(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?ase(bx(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:_(vx())},v},Cx=Jl((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 te=typeof ql==`object`&&ql&&ql.Object===Object&&ql,M=typeof self==`object`&&self&&self.Object===Object&&self,ne=te||M||Function(`return this`)(),re=t&&!t.nodeType&&t,ie=re&&e&&!e.nodeType&&e,ae=ie&&ie.exports===re;function oe(e,t){return e.set(t[0],t[1]),e}function se(e,t){return e.add(t),e}function N(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function ce(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function le(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ue(e,t){return function(n){return e(t(n))}}function de(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var fe=Array.prototype,pe=Function.prototype,me=Object.prototype,he=ne[`__core-js_shared__`],ge=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),P=pe.toString,_e=me.hasOwnProperty,ve=me.toString,ye=RegExp(`^`+P.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=ae?ne.Buffer:void 0,F=ne.Symbol,xe=ne.Uint8Array,Se=ue(Object.getPrototypeOf,Object),Ce=Object.create,we=me.propertyIsEnumerable,Te=fe.splice,Ee=Object.getOwnPropertySymbols,De=be?be.isBuffer:void 0,I=ue(Object.keys,Object),L=Ze(ne,`DataView`),Oe=Ze(ne,`Map`),R=Ze(ne,`Promise`),ke=Ze(ne,`Set`),Ae=Ze(ne,`WeakMap`),je=Ze(Object,`create`),Me=nt(L),Ne=nt(Oe),Pe=nt(R),Fe=nt(ke),Ie=nt(Ae),Le=F?F.prototype:void 0,Re=Le?Le.valueOf:void 0;function ze(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 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){this.__data__=new Be(e)}function Ue(e,t){var n=it(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&at(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`||et(o,r))||n.push(o);return n}function We(e,t,n){var r=e[t];_e.call(e,t)&&rt(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function Ge(e,t){for(var n=e.length;n--;)if(rt(e[n][0],t))return n;return-1}function Ke(e,t,n,r,f,_,k){var A;if(r&&(A=_?r(e,f,_,k):r(e)),A!==void 0)return A;if(!ct(e))return e;var te=it(e);if(te){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 M=$e(e),ne=M==s||M==c;if(ot(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(M==d||M==i||ne&&!_){if(ce(e))return _?e:{};if(A=function(e){return typeof e.constructor!=`function`||tt(e)?{}:(t=Se(e),ct(t)?Ce(t):{});var t}(ne?{}:e),!t)return function(e,t){return Ye(e,Qe(e),t)}(e,function(e,t){return e&&Ye(t,lt(t),e)}(A,e))}else{if(!j[M])return _?e:{};A=function(e,t,n,r){var i=e.constructor;switch(t){case v:return Je(e);case a:case o:return new i(+e);case y:return function(e,t){var n=t?Je(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?Je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return N(t?n(le(e),!0):le(e),oe,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 N(t?n(de(e),!0):de(e),se,new e.constructor)}(e,r,n);case g:return function(e){return Re?Object(Re.call(e)):{}}(e)}}(e,M,Ke,t)}}k||=new He;var re=k.get(e);if(re)return re;if(k.set(e,A),!te)var ie=n?function(e){return function(e,t,n){var r=t(e);return it(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,lt,Qe)}(e):lt(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(ie||e,(function(i,a){ie&&(i=e[a=i]),We(A,a,Ke(i,t,n,r,a,e,k))})),A}function qe(e){return!(!ct(e)||function(e){return!!ge&&ge in e}(e))&&(st(e)||ce(e)?ye:k).test(nt(e))}function Je(e){var t=new e.constructor(e.byteLength);return new xe(t).set(new xe(e)),t}function Ye(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;We(n,o,s===void 0?e[o]:s)}return n}function Xe(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 Ze(e,t){var n=function(e,t){return e?.[t]}(e,t);return qe(n)?n:void 0}ze.prototype.clear=function(){this.__data__=je?je(null):{}},ze.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ze.prototype.get=function(e){var t=this.__data__;if(je){var r=t[e];return r===n?void 0:r}return _e.call(t,e)?t[e]:void 0},ze.prototype.has=function(e){var t=this.__data__;return je?t[e]!==void 0:_e.call(t,e)},ze.prototype.set=function(e,t){return this.__data__[e]=je&&t===void 0?n:t,this},Be.prototype.clear=function(){this.__data__=[]},Be.prototype.delete=function(e){var t=this.__data__,n=Ge(t,e);return!(n<0)&&(n==t.length-1?t.pop():Te.call(t,n,1),!0)},Be.prototype.get=function(e){var t=this.__data__,n=Ge(t,e);return n<0?void 0:t[n][1]},Be.prototype.has=function(e){return Ge(this.__data__,e)>-1},Be.prototype.set=function(e,t){var n=this.__data__,r=Ge(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ve.prototype.clear=function(){this.__data__={hash:new ze,map:new(Oe||Be),string:new ze}},Ve.prototype.delete=function(e){return Xe(this,e).delete(e)},Ve.prototype.get=function(e){return Xe(this,e).get(e)},Ve.prototype.has=function(e){return Xe(this,e).has(e)},Ve.prototype.set=function(e,t){return Xe(this,e).set(e,t),this},He.prototype.clear=function(){this.__data__=new Be},He.prototype.delete=function(e){return this.__data__.delete(e)},He.prototype.get=function(e){return this.__data__.get(e)},He.prototype.has=function(e){return this.__data__.has(e)},He.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Be){var r=n.__data__;if(!Oe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ve(r)}return n.set(e,t),this};var Qe=Ee?ue(Ee,Object):function(){return[]},$e=function(e){return ve.call(e)};function et(e,t){return!!(t??=r)&&(typeof e==`number`||A.test(e))&&e>-1&&e%1==0&&e<t}function tt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}function nt(e){if(e!=null){try{return P.call(e)}catch{}try{return e+``}catch{}}return``}function rt(e,t){return e===t||e!=e&&t!=t}(L&&$e(new L(new ArrayBuffer(1)))!=y||Oe&&$e(new Oe)!=l||R&&$e(R.resolve())!=f||ke&&$e(new ke)!=m||Ae&&$e(new Ae)!=_)&&($e=function(e){var t=ve.call(e),n=t==d?e.constructor:void 0,r=n?nt(n):void 0;if(r)switch(r){case Me:return y;case Ne:return l;case Pe:return f;case Fe:return m;case Ie:return _}return t});var it=Array.isArray;function at(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}(e.length)&&!st(e)}var ot=De||function(){return!1};function st(e){var t=ct(e)?ve.call(e):``;return t==s||t==c}function ct(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function lt(e){return at(e)?Ue(e):function(e){if(!tt(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 Ke(e,!0,!0)}}));function wx(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Tx=0;function Ex(e){return`__private_`+ Tx+++`_`+e}function Dx(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 Ox(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=Dx(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var kx=(xx=Ex(`apply`),class{constructor(e){Object.defineProperty(this,xx,{value:Ax}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(wx(this,xx)[xx],this):wx(this,xx)[xx](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 Ox(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 Ox(n,t)}});function Ax(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 jx=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:Mx}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},Nx=e=>crypto.getRandomValues(new Uint8Array(e)),Px=(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}}},Fx={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)=>Px(e,t,Nx),customRandom:Px,urlAlphabet:Mx,random:Nx},Ix=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 Lx(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}Lx.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 sse=/[\/\+\.]/,cse=function(e,t){function n(t){var n=function(e,t,n){var r=new Lx(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,sse);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},lse=0;function use(e){return`__private_`+ lse+++`_`+e}var Rx=use(`publish`),zx=class{constructor(){Object.defineProperty(this,Rx,{value:dse}),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,Rx)[Rx](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function dse(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}zx.VERSION=`2.0.3`;var Bx=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)}},Vx={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 Hx(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var fse=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 Ux(e){return e<10?`0${e}`:e.toString()}var Wx=function(){let e=new Date;return`${Ux(e.getHours())}:${Ux(e.getMinutes())}:${Ux(e.getSeconds())}`},Gx={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Wx()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${Wx()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${Wx()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Wx()}]`,...e)}}},pse={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}`}}},Kx=Fx,qx,Jx;function J(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 Yx(e){return`__private_`+ mse+++`_`+e}var{nanoid:hse}=Kx,{justErrorsLogger:gse,debugLogger:_se}=Gx,Xx=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 vse=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},Zx=Yx(`plugins`),Qx=Yx(`storeUnsubscribe`),$x=Yx(`emitter`),eS=Yx(`preProcessors`),tS=Yx(`uploaders`),nS=Yx(`postProcessors`),rS=Yx(`checkRestrictions`),iS=Yx(`checkMinNumberOfFiles`),aS=Yx(`checkRequiredMetaFieldsOnFile`),oS=Yx(`checkRequiredMetaFields`),sS=Yx(`showOrLogErrorAndThrow`),cS=Yx(`assertNewUploadAllowed`),lS=Yx(`checkAndCreateFileStateObject`),uS=Yx(`startIfAutoProceed`),dS=Yx(`addListeners`),fS=Yx(`updateOnlineStatus`),pS=Yx(`createUpload`),mS=Yx(`getUpload`),hS=Yx(`removeUpload`),gS=Yx(`runUpload`);qx=Symbol.for(`uppy test: getPlugins`),Jx=Symbol.for(`uppy test: createUpload`);var _S=class{constructor(e){Object.defineProperty(this,gS,{value:jse}),Object.defineProperty(this,hS,{value:Ase}),Object.defineProperty(this,mS,{value:kse}),Object.defineProperty(this,pS,{value:Ose}),Object.defineProperty(this,dS,{value:Dse}),Object.defineProperty(this,uS,{value:Ese}),Object.defineProperty(this,lS,{value:Tse}),Object.defineProperty(this,cS,{value:wse}),Object.defineProperty(this,sS,{value:Cse}),Object.defineProperty(this,oS,{value:Sse}),Object.defineProperty(this,aS,{value:xse}),Object.defineProperty(this,iS,{value:bse}),Object.defineProperty(this,rS,{value:yse}),Object.defineProperty(this,Zx,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Qx,{writable:!0,value:void 0}),Object.defineProperty(this,$x,{writable:!0,value:jx()}),Object.defineProperty(this,eS,{writable:!0,value:new Set}),Object.defineProperty(this,tS,{writable:!0,value:new Set}),Object.defineProperty(this,nS,{writable:!0,value:new Set}),Object.defineProperty(this,fS,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=pse;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 zx,logger:gse,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=_se),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=pb(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:fse(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),J(this,Qx)[Qx]=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),J(this,dS)[dS]()}emit(e){var t=[...arguments].slice(1);J(this,$x)[$x].emit(e,...t)}on(e,t){return J(this,$x)[$x].on(e,t),this}once(e,t){return J(this,$x)[$x].once(e,t),this}off(e,t){return J(this,$x)[$x].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 kx([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){J(this,eS)[eS].add(e)}removePreProcessor(e){return J(this,eS)[eS].delete(e)}addPostProcessor(e){J(this,nS)[nS].add(e)}removePostProcessor(e){return J(this,nS)[nS].delete(e)}addUploader(e){J(this,tS)[tS].add(e)}removeUploader(e){return J(this,tS)[tS].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 J(this,rS)[rS](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){J(this,cS)[cS](e);let{files:t}=this.getState(),n=J(this,lS)[lS](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}`),J(this,uS)[uS](),n.id}addFiles(e){J(this,cS)[cS]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=J(this,lS)[lS](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&&J(this,uS)[uS](),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=J(this,pS)[pS](t,{forceAllowNewUpload:!0});return J(this,gS)[gS](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=J(this,pS)[pS]([e],{forceAllowNewUpload:!0});return J(this,gS)[gS](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 J(this,Zx)[Zx]?J(this,Zx)[Zx][n.type].push(n):J(this,Zx)[Zx][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(J(this,Zx)[Zx])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[qx](e){return J(this,Zx)[Zx][e]}iteratePlugins(e){Object.values(J(this,Zx)[Zx]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=J(this,Zx)[Zx][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(),J(this,Qx)[Qx](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,J(this,fS)[fS]),window.removeEventListener(`offline`,J(this,fS)[fS]))}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]?J(this,gS)[gS](e):(J(this,hS)[hS](e),Promise.reject(Error(`Nonexistent upload`)))}[Jx](){return J(this,pS)[pS](...arguments)}addResultData(e,t){if(!J(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=J(this,Zx)[Zx].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((()=>{J(this,iS)[iS](t),J(this,oS)[oS](t)})).catch((e=>{J(this,sS)[sS](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=J(this,pS)[pS](r);return J(this,gS)[gS](i)})).catch((e=>{J(this,sS)[sS](e,{showInformer:!1})})))}};function yse(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 Xx(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&cse(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new Xx(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 Xx(this.i18n(`exceedsSize`,{size:Ix(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Xx(this.i18n(`exceedsSize`,{size:Ix(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Xx(this.i18n(`inferiorSize`,{size:Ix(r)}))}function bse(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Xx(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function xse(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 Xx(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),J(this,sS)[sS](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function Sse(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return J(this,aS)[aS](t)}));if(t.length)throw new vse(t,`${this.i18n(`missingRequiredMetaField`)}`)}function Cse(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 wse(e){let{allowNewUpload:t}=this.getState();!1===t&&J(this,sS)[sS](new Xx(this.i18n(`noMoreFilesAllowed`)),{file:e})}function Tse(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?Bx(e.name).extension?.toLowerCase():null;return t&&t in Vx?Vx[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=Bx(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${Hx(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${Hx(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 Xx(this.i18n(`noDuplicates`,{fileName:r}));J(this,sS)[sS](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?J(this,sS)[sS](new Xx(`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]));J(this,rS)[rS](l,t)}catch(e){J(this,sS)[sS](e,{file:l})}return l}function Ese(){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 Dse(){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}),J(this,sS)[sS](e,{throwErr:!1})}else J(this,sS)[sS](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:J(this,nS)[nS].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&&J(this,aS)[aS](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,J(this,fS)[fS]),window.addEventListener(`offline`,J(this,fS)[fS]),setTimeout(J(this,fS)[fS],3e3))}function Ose(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=hse();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 kse(e){let{currentUploads:t}=this.getState();return t[e]}function Ase(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function jse(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...J(this,eS)[eS],...J(this,tS)[tS],...J(this,nS)[nS]];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),J(this,hS)[hS](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),J(this,hS)[hS](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}_S.VERSION=`2.1.3`;var vS=_S,Mse=Jl((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)),M(S[f],S[f]));if(x)for(f=0;f<x.length;f++)te(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=ne),x&&x.sub(d),d.props=b,d.state||={},d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,T.getDerivedStateFromProps(b,d.__s))),m=d.props,h=d.state,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,S),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===n.__v){d.props=b,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,S),d.componentDidUpdate!=null&&d.__h.push((function(){d.componentDidUpdate(m,h,g)}))}d.context=S,d.props=b,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=p(p({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===_&&u.key==null?u.props.children:u,C(e,Array.isArray(w)?w:[w],t,n,i,a,o,s,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=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 te(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function M(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||te(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]&&M(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function ne(e,t,n){return this.constructor(e,n)}function re(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],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){re(t,n,e)},t.isValidElement=a,t.options=r,t.render=re,t.toChildArray=function e(t,n){return n||=[],t==null||typeof t==`boolean`||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Nse=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},yS=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 kx([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 bS(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 Fse(e){return`__private_`+ Pse+++`_`+e}var{render:xS}=Mse,SS=Fse(`updateUI`),Ise=class e extends yS{constructor(){super(...arguments),Object.defineProperty(this,SS,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Nse(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return bS(this,SS)[SS]=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)&&(xS(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),xS(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=bS(this,SS))[SS])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Lse}=Gx,CS=vS,Rse=vS,zse=Ise,Bse=yS,Vse=Lse;CS.Uppy=Rse,CS.UIPlugin=zse,CS.BasePlugin=Bse,CS.debugLogger=Vse;var wS=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}},TS=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new wS(e)}))},Hse=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},ES,DS,OS,kS,AS,Use=Hse;function jS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Wse=0;function MS(e){return`__private_`+ Wse+++`_`+e}async function NS(e){if(e.status===401)throw new Use;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 PS=(DS=MS(`getPostResponseFunc`),OS=MS(`getUrl`),kS=MS(`errorHandler`),AS=ES=class e{constructor(e,t){Object.defineProperty(this,kS,{value:Kse}),Object.defineProperty(this,OS,{value:Gse}),Object.defineProperty(this,DS,{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(jS(this,OS)[OS](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=>TS(jS(this,OS)[OS](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(jS(this,DS)[DS](t)).then(NS).catch(jS(this,kS)[kS](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>TS(jS(this,OS)[OS](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(jS(this,DS)[DS](n)).then(NS).catch(jS(this,kS)[kS](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>TS(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(jS(this,DS)[DS](n)).then(NS).catch(jS(this,kS)[kS](r,e))}},ES.VERSION=`2.0.4`,ES.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${ES.VERSION}`},AS);function Gse(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Kse(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${jS(this,OS)[OS](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var qse={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()}))},FS,IS,LS,RS,zS,BS,VS;function HS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var US=0;function WS(e){return`__private_`+ US+++`_`+e}var GS=(FS=WS(`queued`),IS=WS(`emitter`),LS=WS(`isOpen`),RS=WS(`socket`),zS=WS(`handleMessage`),BS=Symbol.for(`uppy test: getSocket`),VS=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,FS,{writable:!0,value:[]}),Object.defineProperty(this,IS,{writable:!0,value:jx()}),Object.defineProperty(this,LS,{writable:!0,value:!1}),Object.defineProperty(this,RS,{writable:!0,value:void 0}),Object.defineProperty(this,zS,{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 HS(this,LS)[LS]}[BS](){return HS(this,RS)[RS]}[VS](){return HS(this,FS)[FS]}open(){HS(this,RS)[RS]=new WebSocket(this.opts.target),HS(this,RS)[RS].onopen=()=>{for(HS(this,LS)[LS]=!0;HS(this,FS)[FS].length>0&&HS(this,LS)[LS];){let e=HS(this,FS)[FS].shift();this.send(e.action,e.payload)}},HS(this,RS)[RS].onclose=()=>{HS(this,LS)[LS]=!1},HS(this,RS)[RS].onmessage=HS(this,zS)[zS]}close(){var e;(e=HS(this,RS)[RS])==null||e.close()}send(e,t){HS(this,LS)[LS]?HS(this,RS)[RS].send(JSON.stringify({action:e,payload:t})):HS(this,FS)[FS].push({action:e,payload:t})}on(e,t){HS(this,IS)[IS].on(e,t)}emit(e,t){HS(this,IS)[IS].emit(e,t)}once(e,t){HS(this,IS)[IS].once(e,t)}}),KS={RequestClient:PS,Provider:class extends PS{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||qse}},SearchProvider:class extends PS{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:GS},qS,JS,YS=pb((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 XS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var ZS=0;function QS(e){return`__private_`+ ZS+++`_`+e}var $S=(qS=QS(`emitter`),JS=QS(`events`),class{constructor(e){Object.defineProperty(this,qS,{writable:!0,value:void 0}),Object.defineProperty(this,JS,{writable:!0,value:[]}),XS(this,qS)[qS]=e}on(e,t){return XS(this,JS)[JS].push([e,t]),XS(this,qS)[qS].on(e,t)}remove(){for(let[e,t]of XS(this,JS)[JS].splice(0))XS(this,qS)[qS].off(e,t)}});function eC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var tC=0;function nC(e){return`__private_`+ tC+++`_`+e}var rC=nC(`aliveTimer`),iC=nC(`isDone`),aC=nC(`onTimedOut`),oC=nC(`timeout`),sC=class{constructor(e,t){Object.defineProperty(this,rC,{writable:!0,value:void 0}),Object.defineProperty(this,iC,{writable:!0,value:!1}),Object.defineProperty(this,aC,{writable:!0,value:void 0}),Object.defineProperty(this,oC,{writable:!0,value:void 0}),eC(this,oC)[oC]=e,eC(this,aC)[aC]=t}progress(){eC(this,iC)[iC]||eC(this,oC)[oC]>0&&(clearTimeout(eC(this,rC)[rC]),eC(this,rC)[rC]=setTimeout(eC(this,aC)[aC],eC(this,oC)[oC]))}done(){eC(this,iC)[iC]||(clearTimeout(eC(this,rC)[rC]),eC(this,rC)[rC]=null,eC(this,iC)[iC]=!0)}};function cC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var lC=0;function uC(e){return`__private_`+ lC+++`_`+e}function dC(){return Error(`Cancelled`)}var fC=uC(`activeRequests`),pC=uC(`queuedHandlers`),mC=uC(`call`),hC=uC(`queueNext`),gC=uC(`next`),_C=uC(`queue`),vC=uC(`dequeue`);function yC(e){cC(this,fC)[fC]+=1;let t,n=!1;try{t=e()}catch(e){throw--cC(this,fC)[fC],e}return{abort:()=>{n||(n=!0,--cC(this,fC)[fC],t(),cC(this,hC)[hC]())},done:()=>{n||(n=!0,--cC(this,fC)[fC],cC(this,hC)[hC]())}}}function bC(){queueMicrotask((()=>cC(this,gC)[gC]()))}function xC(){if(cC(this,fC)[fC]>=this.limit||cC(this,pC)[pC].length===0)return;let e=cC(this,pC)[pC].shift(),t=cC(this,mC)[mC](e.fn);e.abort=t.abort,e.done=t.done}function SC(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{cC(this,vC)[vC](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=cC(this,pC)[pC].findIndex((e=>n.priority>e.priority));return r===-1?cC(this,pC)[pC].push(n):cC(this,pC)[pC].splice(r,0,n),n}function CC(e){let t=cC(this,pC)[pC].indexOf(e);t!==-1&&cC(this,pC)[pC].splice(t,1)}var wC={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,vC,{value:CC}),Object.defineProperty(this,_C,{value:SC}),Object.defineProperty(this,gC,{value:xC}),Object.defineProperty(this,hC,{value:bC}),Object.defineProperty(this,mC,{value:yC}),Object.defineProperty(this,fC,{writable:!0,value:0}),Object.defineProperty(this,pC,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return cC(this,fC)[fC]<this.limit?cC(this,mC)[mC](e):cC(this,_C)[_C](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=dC()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},TC,EC,DC=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},OC={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:kC}=Kx,{Provider:AC,RequestClient:jC,Socket:MC}=KS,{RateLimitedQueue:NC,internalRateLimitedQueue:PC}=wC;function FC(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})),DC(e)?(n=new wS(n,e),n):(n.request=e,n)}function IC(e){return e.data.slice(0,e.data.size,e.meta.type)}var LC=(EC=TC=class extends yS{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=OC;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 DC(t)&&(n=new wS(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),PC in this.opts?this.requests=this.opts[PC]:this.requests=new NC(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=IC(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=IC(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 $S(this.uppy);let o=new sC(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=kC();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=FC(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=FC(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?AC:jC)(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 MC({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 $S(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=>YS(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 sC(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[PC]||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)}},TC.VERSION=`2.0.6`,EC),RC=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function zC(e){var t={exports:{}};return e(t,t.exports),t.exports}var BC,VC,HC=function(e){return e&&e.Math==Math&&e},Y=HC(typeof globalThis==`object`&&globalThis)||HC(typeof window==`object`&&window)||HC(typeof self==`object`&&self)||HC(typeof RC==`object`&&RC)||function(){return this}()||Function(`return this`)(),UC=Object.defineProperty,WC=function(e,t){try{UC(Y,e,{value:t,configurable:!0,writable:!0})}catch{Y[e]=t}return t},GC=Y[`__core-js_shared__`]||WC(`__core-js_shared__`,{}),KC=zC((function(e){(e.exports=function(e,t){return GC[e]||(GC[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),qC=Function.prototype,JC=qC.bind,YC=qC.call,Jse=JC&&JC.bind(YC),XC=JC?function(e){return e&&Jse(YC,e)}:function(e){return e&&function(){return YC.apply(e,arguments)}},Yse=Y.TypeError,ZC=function(e){if(e==null)throw Yse(`Can't call method on `+e);return e},Xse=Y.Object,QC=function(e){return Xse(ZC(e))},Zse=XC({}.hasOwnProperty),$C=Object.hasOwn||function(e,t){return Zse(QC(e),t)},Qse=0,$se=Math.random(),ece=XC(1 .toString),ew=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+ece(++Qse+$se,36)},tw=function(e){return typeof e==`function`},tce=function(e){return tw(e)?e:void 0},nw=function(e,t){return arguments.length<2?tce(Y[e]):Y[e]&&Y[e][t]},rw=nw(`navigator`,`userAgent`)||``,iw=Y.process,aw=Y.Deno,ow=iw&&iw.versions||aw&&aw.version,sw=ow&&ow.v8;sw&&(VC=(BC=sw.split(`.`))[0]>0&&BC[0]<4?1:+(BC[0]+BC[1])),!VC&&rw&&(!(BC=rw.match(/Edge\/(\d+)/))||BC[1]>=74)&&(BC=rw.match(/Chrome\/(\d+)/))&&(VC=+BC[1]);var cw=VC,lw=function(e){try{return!!e()}catch{return!0}},uw=!!Object.getOwnPropertySymbols&&!lw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cw&&cw<41})),dw=uw&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,fw=KC(`wks`),pw=Y.Symbol,mw=pw&&pw.for,nce=dw?pw:pw&&pw.withoutSetter||ew,hw=function(e){if(!$C(fw,e)||!uw&&typeof fw[e]!=`string`){var t=`Symbol.`+e;uw&&$C(pw,e)?fw[e]=pw[e]:fw[e]=dw&&mw?mw(t):nce(t)}return fw[e]},gw={};gw[hw(`toStringTag`)]=`z`;var _w=String(gw)===`[object z]`,vw=!lw((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),yw=function(e){return typeof e==`object`?e!==null:tw(e)},bw=Y.document,rce=yw(bw)&&yw(bw.createElement),xw=function(e){return rce?bw.createElement(e):{}},Sw=!vw&&!lw((function(){return Object.defineProperty(xw(`div`),`a`,{get:function(){return 7}}).a!=7})),ice=Y.String,ace=Y.TypeError,Cw=function(e){if(yw(e))return e;throw ace(ice(e)+` is not an object`)},ww=Function.prototype.call,Tw=ww.bind?ww.bind(ww):function(){return ww.apply(ww,arguments)},Ew=XC({}.isPrototypeOf),oce=Y.Object,Dw=dw?function(e){return typeof e==`symbol`}:function(e){var t=nw(`Symbol`);return tw(t)&&Ew(t.prototype,oce(e))},sce=Y.String,Ow=function(e){try{return sce(e)}catch{return`Object`}},cce=Y.TypeError,kw=function(e){if(tw(e))return e;throw cce(Ow(e)+` is not a function`)},Aw=function(e,t){var n=e[t];return n==null?void 0:kw(n)},lce=Y.TypeError,uce=Y.TypeError,dce=hw(`toPrimitive`),jw=function(e){var t=function(e,t){if(!yw(e)||Dw(e))return e;var n,r=Aw(e,dce);if(r){if(t===void 0&&(t=`default`),n=Tw(r,e,t),!yw(n)||Dw(n))return n;throw uce(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&tw(n=e.toString)&&!yw(r=Tw(n,e))||tw(n=e.valueOf)&&!yw(r=Tw(n,e))||t!==`string`&&tw(n=e.toString)&&!yw(r=Tw(n,e)))return r;throw lce(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Dw(t)?t:t+``},fce=Y.TypeError,Mw=Object.defineProperty,Nw={f:vw?Mw:function(e,t,n){if(Cw(e),t=jw(t),Cw(n),Sw)try{return Mw(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}},Pw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Fw=vw?function(e,t,n){return Nw.f(e,t,Pw(1,n))}:function(e,t,n){return e[t]=n,e},pce=XC(Function.toString);tw(GC.inspectSource)||(GC.inspectSource=function(e){return pce(e)});var Iw,Lw,Rw,zw=GC.inspectSource,Bw=Y.WeakMap,Vw=tw(Bw)&&/native code/.test(zw(Bw)),Hw=KC(`keys`),Uw=function(e){return Hw[e]||(Hw[e]=ew(e))},Ww={},Gw=Y.TypeError,mce=Y.WeakMap;if(Vw||GC.state){var Kw=GC.state||=new mce,hce=XC(Kw.get),qw=XC(Kw.has),gce=XC(Kw.set);Iw=function(e,t){if(qw(Kw,e))throw new Gw(`Object already initialized`);return t.facade=e,gce(Kw,e,t),t},Lw=function(e){return hce(Kw,e)||{}},Rw=function(e){return qw(Kw,e)}}else{var Jw=Uw(`state`);Ww[Jw]=!0,Iw=function(e,t){if($C(e,Jw))throw new Gw(`Object already initialized`);return t.facade=e,Fw(e,Jw,t),t},Lw=function(e){return $C(e,Jw)?e[Jw]:{}},Rw=function(e){return $C(e,Jw)}}var Yw={set:Iw,get:Lw,has:Rw,enforce:function(e){return Rw(e)?Lw(e):Iw(e,{})},getterFor:function(e){return function(t){var n;if(!yw(t)||(n=Lw(t)).type!==e)throw Gw(`Incompatible receiver, `+e+` required`);return n}}},Xw=Function.prototype,_ce=vw&&Object.getOwnPropertyDescriptor,Zw=$C(Xw,`name`),Qw={EXISTS:Zw,PROPER:Zw&&function(){}.name===`something`,CONFIGURABLE:Zw&&(!vw||vw&&_ce(Xw,`name`).configurable)},$w=zC((function(e){var t=Qw.CONFIGURABLE,n=Yw.get,r=Yw.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;tw(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!$C(a,`name`)||t&&a.name!==d)&&Fw(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Y?l?e[n]=a:WC(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Fw(e,n,a))})(Function.prototype,`toString`,(function(){return tw(this)&&n(this).source||zw(this)}))})),vce=XC({}.toString),yce=XC(``.slice),eT=function(e){return yce(vce(e),8,-1)},bce=hw(`toStringTag`),xce=Y.Object,Sce=eT(function(){return arguments}())==`Arguments`,tT=_w?eT: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=xce(e),bce))==`string`?n:Sce?eT(t):(r=eT(t))==`Object`&&tw(t.callee)?`Arguments`:r},Cce=_w?{}.toString:function(){return`[object `+tT(this)+`]`};_w||$w(Object.prototype,`toString`,Cce,{unsafe:!0});var nT={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},rT=xw(`span`).classList,iT=rT&&rT.constructor&&rT.constructor.prototype,aT=iT===Object.prototype?void 0:iT,oT=XC(XC.bind),sT=function(e,t){return kw(e),t===void 0?e:oT?oT(e,t):function(){return e.apply(t,arguments)}},cT=Y.Object,wce=XC(``.split),lT=lw((function(){return!cT(`z`).propertyIsEnumerable(0)}))?function(e){return eT(e)==`String`?wce(e,``):cT(e)}:cT,Tce=Math.ceil,Ece=Math.floor,uT=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ece:Tce)(t)},Dce=Math.min,dT=function(e){return e>0?Dce(uT(e),9007199254740991):0},fT=function(e){return dT(e.length)},pT=Array.isArray||function(e){return eT(e)==`Array`},mT=function(){},Oce=[],hT=nw(`Reflect`,`construct`),gT=/^\s*(?:class|function)\b/,kce=XC(gT.exec),Ace=!gT.exec(mT),_T=function(e){if(!tw(e))return!1;try{return hT(mT,Oce,e),!0}catch{return!1}},vT=!hT||lw((function(){var e;return _T(_T.call)||!_T(Object)||!_T((function(){e=!0}))||e}))?function(e){if(!tw(e))return!1;switch(tT(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Ace||!!kce(gT,zw(e))}:_T,jce=hw(`species`),yT=Y.Array,bT=function(e,t){return new(function(e){var t;return pT(e)&&(t=e.constructor,(vT(t)&&(t===yT||pT(t.prototype))||yw(t)&&(t=t[jce])===null)&&(t=void 0)),t===void 0?yT:t}(e))(t===0?0:t)},xT=XC([].push),ST=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=lT(m),g=sT(l,u),_=fT(h),v=0,y=d||bT,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:xT(b,f)}else switch(e){case 4:return!1;case 7:xT(b,f)}return a?-1:r||i?i:b}},CT={forEach:ST(0),map:ST(1),filter:ST(2),some:ST(3),every:ST(4),find:ST(5),findIndex:ST(6),filterReject:ST(7)},wT=function(e,t){var n=[][e];return!!n&&lw((function(){n.call(null,t||function(){throw 1},1)}))},Mce=CT.forEach,TT=wT(`forEach`)?[].forEach:function(e){return Mce(this,e,arguments.length>1?arguments[1]:void 0)},ET=function(e){if(e&&e.forEach!==TT)try{Fw(e,`forEach`,TT)}catch{e.forEach=TT}};for(var DT in nT)nT[DT]&&ET(Y[DT]&&Y[DT].prototype);ET(aT);var OT={}.propertyIsEnumerable,kT=Object.getOwnPropertyDescriptor,AT={f:kT&&!OT.call({1:2},1)?function(e){var t=kT(this,e);return!!t&&t.enumerable}:OT},jT=function(e){return lT(ZC(e))},MT=Object.getOwnPropertyDescriptor,NT={f:vw?MT:function(e,t){if(e=jT(e),t=jw(t),Sw)try{return MT(e,t)}catch{}if($C(e,t))return Pw(!Tw(AT.f,e,t),e[t])}},Nce=Math.max,Pce=Math.min,PT=function(e,t){var n=uT(e);return n<0?Nce(n+t,0):Pce(n,t)},FT=function(e){return function(t,n,r){var i,a=jT(t),o=fT(a),s=PT(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},IT={includes:FT(!0),indexOf:FT(!1)},Fce=IT.indexOf,LT=XC([].push),RT=function(e,t){var n,r=jT(e),i=0,a=[];for(n in r)!$C(Ww,n)&&$C(r,n)&&LT(a,n);for(;t.length>i;)$C(r,n=t[i++])&&(~Fce(a,n)||LT(a,n));return a},zT=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Ice=zT.concat(`length`,`prototype`),BT={f:Object.getOwnPropertyNames||function(e){return RT(e,Ice)}},VT={f:Object.getOwnPropertySymbols},Lce=XC([].concat),Rce=nw(`Reflect`,`ownKeys`)||function(e){var t=BT.f(Cw(e)),n=VT.f;return n?Lce(t,n(e)):t},zce=function(e,t){for(var n=Rce(t),r=Nw.f,i=NT.f,a=0;a<n.length;a++){var o=n[a];$C(e,o)||r(e,o,i(t,o))}},Bce=/#|\.prototype\./,HT=function(e,t){var n=Hce[Vce(e)];return n==Wce||n!=Uce&&(tw(t)?lw(t):!!t)},Vce=HT.normalize=function(e){return String(e).replace(Bce,`.`).toLowerCase()},Hce=HT.data={},Uce=HT.NATIVE=`N`,Wce=HT.POLYFILL=`P`,UT=HT,Gce=NT.f,WT=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Y:l?Y[s]||WC(s,{}):(Y[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Gce(n,r))&&o.value:n[r],!UT(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;zce(a,i)}(e.sham||i&&i.sham)&&Fw(a,`sham`,!0),$w(n,r,a,e)}},GT=Object.keys||function(e){return RT(e,zT)},Kce=lw((function(){GT(1)}));function KT(e){return Object.prototype.toString.call(e)===`[object Object]`}WT({target:`Object`,stat:!0,forced:Kce},{keys:function(e){return GT(QC(e))}});var qce={isHistory(e){return!1!==KT(t=e)&&((n=t.constructor)===void 0||!1!==KT(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||dv.isOperationList(e.redos[0]))&&(e.undos.length===0||dv.isOperationList(e.undos[0]));var t,n,r}},qT=new WeakMap,JT=new WeakMap,YT={isHistoryEditor:e=>qce.isHistory(e.history)&&V.isEditor(e),isMerging:e=>JT.get(e),isSaving:e=>qT.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=YT.isMerging(e);JT.set(e,!1),t(),JT.set(e,n)},withoutSaving(e,t){var n=YT.isSaving(e);qT.set(e,!1),t(),qT.set(e,n)}},Jce=Y.String,XT=function(e){if(tT(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Jce(e)},ZT=function(){var e=Cw(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},Yce=Qw.PROPER,QT=RegExp.prototype,$T=QT.toString,Xce=XC(ZT),Zce=lw((function(){return $T.call({source:`a`,flags:`b`})!=`/a/b`})),Qce=Yce&&$T.name!=`toString`;(Zce||Qce)&&$w(RegExp.prototype,`toString`,(function(){var e=Cw(this),t=XT(e.source),n=e.flags;return`/`+t+`/`+XT(n===void 0&&Ew(QT,e)&&!(`flags`in QT)?Xce(e):n)}),{unsafe:!0});var eE,$ce=vw?Object.defineProperties:function(e,t){Cw(e);for(var n,r=jT(t),i=GT(t),a=i.length,o=0;a>o;)Nw.f(e,n=i[o++],r[n]);return e},tE=nw(`document`,`documentElement`),nE=Uw(`IE_PROTO`),rE=function(){},iE=function(e){return`<script>`+e+`<\/script>`},aE=function(e){e.write(iE(``)),e.close();var t=e.parentWindow.Object;return e=null,t},oE=function(){try{eE=new ActiveXObject(`htmlfile`)}catch{}var e,t;oE=typeof document<`u`?document.domain&&eE?aE(eE):((t=xw(`iframe`)).style.display=`none`,tE.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(iE(`document.F=Object`)),e.close(),e.F):aE(eE);for(var n=zT.length;n--;)delete oE.prototype[zT[n]];return oE()};Ww[nE]=!0;var sE=Object.create||function(e,t){var n;return e===null?n=oE():(rE.prototype=Cw(e),n=new rE,rE.prototype=null,n[nE]=e),t===void 0?n:$ce(n,t)},cE=hw(`unscopables`),lE=Array.prototype;lE[cE]??Nw.f(lE,cE,{configurable:!0,value:sE(null)});var uE=function(e){lE[cE][e]=!0},ele=IT.includes;WT({target:`Array`,proto:!0},{includes:function(e){return ele(this,e,arguments.length>1?arguments[1]:void 0)}}),uE(`includes`);var tle=hw(`match`),dE=function(e){var t;return yw(e)&&((t=e[tle])===void 0?eT(e)==`RegExp`:!!t)},nle=Y.TypeError,fE=function(e){if(dE(e))throw nle(`The method doesn't accept regular expressions`);return e},rle=hw(`match`),pE=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[rle]=!1,`/./`[e](t)}catch{}}return!1},ile=XC(``.indexOf);WT({target:`String`,proto:!0,forced:!pE(`includes`)},{includes:function(e){return!!~ile(XT(ZC(this)),XT(fE(e)),arguments.length>1?arguments[1]:void 0)}});var ale=/"/g,ole=XC(``.replace);WT({target:`String`,proto:!0,forced:lw((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=XT(ZC(this)),r=`<a`,(r+=` name="`+ole(XT(t),ale,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var mE=function(e,t,n){var r,i;Cw(e);try{if(!(r=Aw(e,`return`))){if(t===`throw`)throw n;return n}r=Tw(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Cw(r),n},sle=function(e,t,n,r){try{return r?t(Cw(n)[0],n[1]):t(n)}catch(t){mE(e,`throw`,t)}},hE={},cle=hw(`iterator`),lle=Array.prototype,gE=function(e){return e!==void 0&&(hE.Array===e||lle[cle]===e)},_E=function(e,t,n){var r=jw(t);r in e?Nw.f(e,r,Pw(0,n)):e[r]=n},ule=hw(`iterator`),vE=function(e){if(e!=null)return Aw(e,ule)||Aw(e,`@@iterator`)||hE[tT(e)]},dle=Y.TypeError,yE=function(e,t){var n=arguments.length<2?vE(e):t;if(kw(n))return Cw(Tw(n,e));throw dle(Ow(e)+` is not iterable`)},bE=Y.Array,xE=hw(`iterator`),SE=!1;try{var fle=0,CE={next:function(){return{done:!!fle++}},return:function(){SE=!0}};CE[xE]=function(){return this},Array.from(CE,(function(){throw 2}))}catch{}var wE=function(e,t){if(!t&&!SE)return!1;var n=!1;try{var r={};r[xE]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};WT({target:`Array`,stat:!0,forced:!wE((function(e){Array.from(e)}))},{from:function(e){var t=QC(e),n=vT(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=sT(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=vE(t),p=0;if(!f||this==bE&&gE(f))for(o=fT(t),s=n?new this(o):bE(o);o>p;p++)d=a?i(t[p],p):t[p],_E(s,p,d);else for(u=(l=yE(t,f)).next,s=n?new this:[];!(c=Tw(u,l)).done;p++)d=a?sle(l,i,[c.value,p],!0):c.value,_E(s,p,d);return s.length=p,s}});var TE,EE,DE,ple=XC(``.charAt),OE=XC(``.charCodeAt),mle=XC(``.slice),kE=function(e){return function(t,n){var r,i,a=XT(ZC(t)),o=uT(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=OE(a,o))<55296||r>56319||o+1===s||(i=OE(a,o+1))<56320||i>57343?e?ple(a,o):r:e?mle(a,o,o+2):i-56320+(r-55296<<10)+65536}},AE={codeAt:kE(!1),charAt:kE(!0)},hle=!lw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jE=Uw(`IE_PROTO`),ME=Y.Object,gle=ME.prototype,NE=hle?ME.getPrototypeOf:function(e){var t=QC(e);if($C(t,jE))return t[jE];var n=t.constructor;return tw(n)&&t instanceof n?n.prototype:t instanceof ME?gle:null},PE=hw(`iterator`),FE=!1;[].keys&&(`next`in(DE=[].keys())?(EE=NE(NE(DE)))!==Object.prototype&&(TE=EE):FE=!0),(TE==null||lw((function(){var e={};return TE[PE].call(e)!==e})))&&(TE={}),tw(TE[PE])||$w(TE,PE,(function(){return this}));var IE={IteratorPrototype:TE,BUGGY_SAFARI_ITERATORS:FE},_le=Nw.f,LE=hw(`toStringTag`),RE=function(e,t,n){e&&!$C(e=n?e:e.prototype,LE)&&_le(e,LE,{configurable:!0,value:t})},vle=IE.IteratorPrototype,yle=function(){return this},ble=Y.String,xle=Y.TypeError,zE=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=XC(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Cw(n),function(e){if(typeof e==`object`||tw(e))return e;throw xle(`Can't set `+ble(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Sle=Qw.PROPER,Cle=Qw.CONFIGURABLE,BE=IE.IteratorPrototype,VE=IE.BUGGY_SAFARI_ITERATORS,HE=hw(`iterator`),wle=function(){return this},UE=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=sE(vle,{next:Pw(1,n)}),RE(e,i,!1),hE[i]=yle})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!VE&&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[HE]||p[`@@iterator`]||i&&p[i],h=!VE&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=NE(g.call(new e)))!==Object.prototype&&s.next&&(NE(s)!==BE&&(zE?zE(s,BE):tw(s[HE])||$w(s,HE,wle)),RE(s,d,!0)),Sle&&i==`values`&&m&&m.name!==`values`&&(Cle?Fw(p,`name`,`values`):(f=!0,h=function(){return Tw(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(VE||f||!(l in p))&&$w(p,l,c[l]);else WT({target:t,proto:!0,forced:VE||f},c);return p[HE]!==h&&$w(p,HE,h,{name:i}),hE[t]=h,c},Tle=AE.charAt,Ele=Yw.set,Dle=Yw.getterFor(`String Iterator`);UE(String,`String`,(function(e){Ele(this,{type:`String Iterator`,string:XT(e),index:0})}),(function(){var e,t=Dle(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Tle(n,r),t.index+=e.length,{value:e,done:!1})}));var WE,Ole=NT.f,GE=XC(``.endsWith),kle=XC(``.slice),Ale=Math.min,KE=pE(`endsWith`);WT({target:`String`,proto:!0,forced:!!(KE||(WE=Ole(String.prototype,`endsWith`),!WE||WE.writable))&&!KE},{endsWith:function(e){var t=XT(ZC(this));fE(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:Ale(dT(n),r),a=XT(e);return GE?GE(t,a,i):kle(t,i-a.length,i)===a}});var jle=XC([].join),Mle=lT!=Object,Nle=wT(`join`,`,`);WT({target:`Array`,proto:!0,forced:Mle||!Nle},{join:function(e){return jle(jT(this),e===void 0?`,`:e)}});var Ple=hw(`species`),qE=function(e){return cw>=51||!lw((function(){var t=[];return(t.constructor={})[Ple]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Fle=CT.map;WT({target:`Array`,proto:!0,forced:!qE(`map`)},{map:function(e){return Fle(this,e,arguments.length>1?arguments[1]:void 0)}});var JE=Y.RegExp,YE=lw((function(){var e=JE(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Ile=YE||lw((function(){return!JE(`a`,`y`).sticky})),XE={BROKEN_CARET:YE||lw((function(){var e=JE(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Ile,UNSUPPORTED_Y:YE},Lle=Y.RegExp,ZE=lw((function(){var e=Lle(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Rle=Y.RegExp,QE=lw((function(){var e=Rle(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),zle=Yw.get,Ble=KC(`native-string-replace`,String.prototype.replace),$E=RegExp.prototype.exec,eD=$E,Vle=XC(``.charAt),Hle=XC(``.indexOf),Ule=XC(``.replace),tD=XC(``.slice),nD=function(){var e=/a/,t=/b*/g;return Tw($E,e,`a`),Tw($E,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),rD=XE.BROKEN_CARET,iD=/()??/.exec(``)[1]!==void 0;(nD||iD||rD||ZE||QE)&&(eD=function(e){var t,n,r,i,a,o,s,c=this,l=zle(c),u=XT(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Tw(eD,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=rD&&c.sticky,m=Tw(ZT,c),h=c.source,g=0,_=u;if(p&&(m=Ule(m,`y`,``),Hle(m,`g`)===-1&&(m+=`g`),_=tD(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Vle(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),iD&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),nD&&(r=c.lastIndex),i=Tw($E,p?n:c,_),p?i?(i.input=tD(i.input,g),i[0]=tD(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:nD&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),iD&&i&&i.length>1&&Tw(Ble,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=sE(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var aD=eD;WT({target:`RegExp`,proto:!0,forced:/./.exec!==aD},{exec:aD});var oD=Function.prototype,sD=oD.apply,Wle=oD.bind,cD=oD.call,lD=typeof Reflect==`object`&&Reflect.apply||(Wle?cD.bind(sD):function(){return cD.apply(sD,arguments)}),Gle=hw(`species`),uD=RegExp.prototype,dD=function(e,t,n,r){var i=hw(e),a=!lw((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!lw((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Gle]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=XC(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=XC(e),c=t.exec;return c===aD||c===uD.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));$w(String.prototype,e,c[0]),$w(uD,i,c[1])}r&&Fw(uD[i],`sham`,!0)},Kle=AE.charAt,fD=function(e,t,n){return t+(n?Kle(e,t).length:1)},qle=Math.floor,pD=XC(``.charAt),Jle=XC(``.replace),mD=XC(``.slice),Yle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Xle=/\$([$&'`]|\d{1,2})/g,Zle=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Xle;return i!==void 0&&(i=QC(i),c=Yle),Jle(a,c,(function(a,c){var l;switch(pD(c,0)){case`$`:return`$`;case`&`:return e;case"`":return mD(t,0,n);case`'`:return mD(t,o);case`<`:l=i[mD(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=qle(u/10);return d===0?a:d<=s?r[d-1]===void 0?pD(c,1):r[d-1]+pD(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Qle=Y.TypeError,hD=function(e,t){var n=e.exec;if(tw(n)){var r=Tw(n,e,t);return r!==null&&Cw(r),r}if(eT(e)===`RegExp`)return Tw(aD,e,t);throw Qle(`RegExp#exec called on incompatible receiver`)},gD=hw(`replace`),$le=Math.max,eue=Math.min,tue=XC([].concat),_D=XC([].push),vD=XC(``.indexOf),yD=XC(``.slice),nue=`a`.replace(/./,`$0`)===`$0`,bD=!!/./[gD]&&/./[gD](`a`,`$0`)===``;dD(`replace`,(function(e,t,n){var r=bD?`$`:`$0`;return[function(e,n){var r=ZC(this),i=e==null?void 0:Aw(e,gD);return i?Tw(i,e,r,n):Tw(t,XT(r),e,n)},function(e,i){var a=Cw(this),o=XT(e);if(typeof i==`string`&&vD(i,r)===-1&&vD(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=tw(i);c||(i=XT(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=hD(a,o);if(f===null||(_D(d,f),!l))break;XT(f[0])===``&&(a.lastIndex=fD(o,dT(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=XT((f=d[g])[0]),v=$le(eue(uT(f.index),o.length),0),y=[],b=1;b<f.length;b++)_D(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=tue([_],y,v,o);x!==void 0&&_D(S,x);var C=XT(lD(i,void 0,S))}else C=Zle(_,o,v,y,x,i);v>=h&&(m+=yD(o,h,v)+C,h=v+_.length)}return m+yD(o,h)}]}),!!lw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!nue||bD);var xD=function(e,t){return xD=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])},xD(e,t)};function SD(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}xD(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var CD=function(){return CD=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},CD.apply(this,arguments)};function wD(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 TD(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 ED(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var rue=0,DD=function(){this.id=``+ rue++},iue=Yw.set,aue=Yw.getterFor(`Array Iterator`),OD=UE(Array,`Array`,(function(e,t){iue(this,{type:`Array Iterator`,target:jT(e),index:0,kind:t})}),(function(){var e=aue(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`);hE.Arguments=hE.Array,uE(`keys`),uE(`values`),uE(`entries`);var kD=function(e,t,n){for(var r in t)$w(e,r,t[r],n);return e},oue=Y.Array,sue=Math.max,AD=function(e,t,n){for(var r=fT(e),i=PT(t,r),a=PT(n===void 0?r:n,r),o=oue(sue(a-i,0)),s=0;i<a;i++,s++)_E(o,s,e[i]);return o.length=s,o},jD=BT.f,MD=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cue={f:function(e){return MD&&eT(e)==`Window`?function(e){try{return jD(e)}catch{return AD(MD)}}(e):jD(jT(e))}},ND=lw((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),PD=Object.isExtensible,FD=lw((function(){PD(1)}))||ND?function(e){return!!yw(e)&&(!ND||eT(e)!=`ArrayBuffer`)&&(!PD||PD(e))}:PD,lue=!lw((function(){return Object.isExtensible(Object.preventExtensions({}))})),ID=zC((function(e){var t=Nw.f,n=!1,r=ew(`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=BT.f,t=XC([].splice),i={};i[r]=1,e(i).length&&(BT.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},WT({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:cue.f}))},fastKey:function(e,t){if(!yw(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!$C(e,r)){if(!FD(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!$C(e,r)){if(!FD(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return lue&&n&&FD(e)&&!$C(e,r)&&a(e),e}};Ww[r]=!0})),uue=Y.TypeError,LD=function(e,t){this.stopped=e,this.result=t},RD=LD.prototype,zD=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=sT(t,u),h=function(e){return r&&mE(r,`normal`,e),new LD(!0,e)},g=function(e){return d?(Cw(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=vE(e)))throw uue(Ow(e)+` is not iterable`);if(gE(i)){for(a=0,o=fT(e);o>a;a++)if((s=g(e[a]))&&Ew(RD,s))return s;return new LD(!1)}r=yE(e,i)}for(c=r.next;!(l=Tw(c,r)).done;){try{s=g(l.value)}catch(e){mE(r,`throw`,e)}if(typeof s==`object`&&s&&Ew(RD,s))return s}return new LD(!1)},due=Y.TypeError,BD=function(e,t){if(Ew(t,e))return e;throw due(`Incorrect invocation`)},VD=function(e,t,n){var r,i;return zE&&tw(r=t.constructor)&&r!==n&&yw(i=r.prototype)&&i!==n.prototype&&zE(e,i),e},HD=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Y[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=XC(s[e]);$w(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!yw(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!yw(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!yw(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(UT(e,!tw(o)||!(i||s.forEach&&!lw((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),ID.enable();else if(UT(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=lw((function(){d.has(1)})),m=wE((function(e){new o(e)})),h=!i&&lw((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){BD(e,s);var n=VD(new o,e,c);return t!=null&&zD(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,WT({global:!0,forced:c!=o},l),RE(c,e),i||n.setStrong(c,e,r),c},UD=ID.getWeakData,fue=Yw.set,WD=Yw.getterFor,GD=CT.find,KD=CT.findIndex,pue=XC([].splice),mue=0,qD=function(e){return e.frozen||=new JD},JD=function(){this.entries=[]},YD=function(e,t){return GD(e.entries,(function(e){return e[0]===t}))};JD.prototype={get:function(e){var t=YD(this,e);if(t)return t[1]},has:function(e){return!!YD(this,e)},set:function(e,t){var n=YD(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=KD(this.entries,(function(t){return t[0]===e}));return~t&&pue(this.entries,t,1),!!~t}};var XD,ZD={getConstructor:function(e,t,n,r){var i=e((function(e,i){BD(e,a),fue(e,{type:t,id:mue++,frozen:void 0}),i!=null&&zD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=WD(t),s=function(e,t,n){var r=o(e),i=UD(Cw(t),!0);return!0===i?qD(r).set(t,n):i[r.id]=n,e};return kD(a,{delete:function(e){var t=o(this);if(!yw(e))return!1;var n=UD(e);return!0===n?qD(t).delete(e):n&&$C(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!yw(e))return!1;var n=UD(e);return!0===n?qD(t).has(e):n&&$C(n,t.id)}}),kD(a,n?{get:function(e){var t=o(this);if(yw(e)){var n=UD(e);return!0===n?qD(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}},QD=Yw.enforce,hue=!Y.ActiveXObject&&`ActiveXObject`in Y,$D=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gue=HD(`WeakMap`,$D,ZD);if(Vw&&hue){XD=ZD.getConstructor($D,`WeakMap`,!0),ID.enable();var eO=gue.prototype,tO=XC(eO.delete),nO=XC(eO.has),rO=XC(eO.get),iO=XC(eO.set);kD(eO,{delete:function(e){if(yw(e)&&!FD(e)){var t=QD(this);return t.frozen||=new XD,tO(this,e)||t.frozen.delete(e)}return tO(this,e)},has:function(e){if(yw(e)&&!FD(e)){var t=QD(this);return t.frozen||=new XD,nO(this,e)||t.frozen.has(e)}return nO(this,e)},get:function(e){if(yw(e)&&!FD(e)){var t=QD(this);return t.frozen||=new XD,nO(this,e)?rO(this,e):t.frozen.get(e)}return rO(this,e)},set:function(e,t){if(yw(e)&&!FD(e)){var n=QD(this);n.frozen||=new XD,nO(this,e)?iO(this,e,t):n.frozen.set(e,t)}else iO(this,e,t);return this}})}var aO=hw(`iterator`),oO=hw(`toStringTag`),sO=OD.values,cO=function(e,t){if(e){if(e[aO]!==sO)try{Fw(e,aO,sO)}catch{e[aO]=sO}if(e[oO]||Fw(e,oO,t),nT[t]){for(var n in OD)if(e[n]!==OD[n])try{Fw(e,n,OD[n])}catch{e[n]=OD[n]}}}};for(var lO in nT)cO(Y[lO]&&Y[lO].prototype,lO);cO(aT,`DOMTokenList`);var 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,MO=new WeakMap,NO=new WeakMap,PO=new WeakMap,_ue=CT.find,FO=!0;`find`in[]&&[,].find((function(){FO=!1})),WT({target:`Array`,proto:!0,forced:FO},{find:function(e){return _ue(this,e,arguments.length>1?arguments[1]:void 0)}}),uE(`find`),WT({global:!0},{globalThis:Y});var vue=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];Ry&&(q.fn.css=Ry),Wy&&(q.fn.append=Wy),wy&&(q.fn.addClass=wy),Ty&&(q.fn.removeClass=Ty),Ey&&(q.fn.hasClass=Ey),jy&&(q.fn.on=jy),eb&&(q.fn.focus=eb),Dy&&(q.fn.attr=Dy),Oy&&(q.fn.removeAttr=Oy),Iy&&(q.fn.hide=Iy),Ly&&(q.fn.show=Ly),Fy&&(q.fn.offset=Fy),Ny&&(q.fn.width=Ny),Py&&(q.fn.height=Py),Ky&&(q.fn.parent=Ky),qy&&(q.fn.parents=qy),Uy&&(q.fn.is=Uy),ky&&(q.fn.dataset=ky),Ay&&(q.fn.val=Ay),Hy&&(q.fn.text=Hy),Vy&&(q.fn.html=Vy),Yy&&(q.fn.children=Yy),Xy&&(q.fn.remove=Xy),Jy&&(q.fn.find=Jy),zy&&(q.fn.each=zy),Zy&&(q.fn.empty=Zy);var IO,LO,RO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},zO=function(e){return BO(e)&&e.nodeType===1},BO=function(e){var t=RO(e);return!!t&&e instanceof t.Node},VO=function(e){var t=e&&e.anchorNode&&RO(e.anchorNode);return!!t&&e instanceof t.Selection},HO=function(e){return BO(e)&&e.nodeType===3},UO=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},WO=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(BO(r=a)&&r.nodeType===8||zO(a)&&a.childNodes.length===0||zO(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]},yue=function(e,t,n){return TD(WO(e,t,n),1)[0]},bue=function e(t){var n,r,i=``;if(HO(t)&&t.nodeValue)return t.nodeValue;if(zO(t)){try{for(var a=wD(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 GO(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||GO(i,t)}}function KO(e){if(e.length===0)return``;var t=e[0];return t.nodeType===IO.ELEMENT_NODE?t.tagName.toLowerCase():``}(LO=IO||={})[LO.ELEMENT_NODE=1]=`ELEMENT_NODE`,LO[LO.TEXT_NODE=3]=`TEXT_NODE`,LO[LO.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,LO[LO.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,LO[LO.COMMENT_NODE=8]=`COMMENT_NODE`,LO[LO.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,LO[LO.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,LO[LO.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 qO=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),JO=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 YO=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),xue=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Sue=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),XO=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var ZO=!Sue&&!xue&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=AO.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=kO.get(t);return n||(n=new DD,kO.set(t,n)),n},setNewKey:function(e){var t=new DD;kO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=wO.get(r);if(i==null){if(V.isEditor(r))return n;break}var a=CO.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 wO.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 H.get(e,n)},toDOMNode:function(e,t){var n;if(V.isEditor(t))n=TO.get(e);else{var r=X.findKey(e,t);n=DO.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=zO(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=W.isBackward(t),a=X.toDOMPoint(e,n),o=W.isCollapsed(t)?a:X.toDOMPoint(e,r),s=X.getWindow(e).document.createRange(),c=TD(i?o:a,2),l=c[0],u=c[1],d=TD(i?a:o,2),f=d[0],p=d[1],m=!!(zO(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(zO(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=TD(V.node(e,t.path),1)[0],o=X.toDOMNode(e,a);V.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=wD(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=zO(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?EO.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(V.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=V.point(e,s,{edge:l?`start`:`end`}),d=l?V.before(e,u):V.after(e,u);if(d)return V.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((VO(t)?t.anchorNode:t.startContainer)&&(VO(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=XO&&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 W.isExpanded(f)&&W.isForward(f)&&zO(a)&&V.void(e,{at:f.focus,mode:`highest`})&&(f=V.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=TD(i?t:function(e){var t,n=TD(e,2),r=n[0],i=n[1];if(zO(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=TD(WO(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;zO(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=yue(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();ED(ED([],TD(dy(g.querySelectorAll(`[data-slate-zero-width]`)))),TD(dy(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`)||JO&&(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 V.hasPath(e,n.path)&&V.hasPath(e,r.path)},getNodeType:function(e){return B.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return H.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=V.nodes(e,{universal:!0});try{for(var a=wD(i),o=a.next();!o.done;o=a.next()){var s=TD(o.value,1)[0];B.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=TD(V.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=TD(V.nodes(e,{match:function(e){return G.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=TD(V.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&TD(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(V.isEnd(e,n.anchor,t)||V.isEnd(e,n.focus,t))},getTextarea:function(e){var t=uO.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return pO.get(e)||null},getHoverbar:function(e){return hO.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=wD(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=V.nodes(e,{match:function(t){return!(!B.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=wD(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];GO(X.toDOMNode(e,p),(function(e,t){var n=q(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=V.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=wD(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||W.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=V.node(e,t);if(n==null)return!1;var r=TD(n,1)[0].children;return r.length===1&&r[0].text===``}},Cue=1,QO={},$O={},ek=CT.filter;WT({target:`Array`,proto:!0,forced:!qE(`filter`)},{filter:function(e){return ek(this,e,arguments.length>1?arguments[1]:void 0)}});var tk=`
\v\f\r \xA0               \u2028\u2029`,nk=XC(``.replace),rk=`[`+tk+`]`,ik=RegExp(`^`+rk+rk+`*`),ak=RegExp(rk+rk+`*$`),ok=function(e){return function(t){var n=XT(ZC(t));return 1&e&&(n=nk(n,ik,``)),2&e&&(n=nk(n,ak,``)),n}},sk={start:ok(1),end:ok(2),trim:ok(3)},ck=Qw.PROPER,lk=sk.trim;WT({target:`String`,proto:!0,forced:function(e){return lw((function(){return!!tk[e]()||`​…᠎`[e]()!==`​…᠎`||ck&&tk[e].name!==e}))}(`trim`)},{trim:function(){return lk(this)}});var uk=[],dk={};function fk(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var pk,mk,hk,gk,_k=Y.Promise,vk=hw(`species`),yk=function(e){var t=nw(e),n=Nw.f;vw&&t&&!t[vk]&&n(t,vk,{configurable:!0,get:function(){return this}})},wue=Y.TypeError,Tue=hw(`species`),bk=function(e,t){var n,r=Cw(e).constructor;return r===void 0||(n=Cw(r)[Tue])==null?t:function(e){if(vT(e))return e;throw wue(Ow(e)+` is not a constructor`)}(n)},xk=XC([].slice),Sk=/(?:ipad|iphone|ipod).*applewebkit/i.test(rw),Ck=eT(Y.process)==`process`,wk=Y.setImmediate,Tk=Y.clearImmediate,Eue=Y.process,Ek=Y.Dispatch,Due=Y.Function,Dk=Y.MessageChannel,Oue=Y.String,Ok=0,kk={};try{pk=Y.location}catch{}var Ak=function(e){if($C(kk,e)){var t=kk[e];delete kk[e],t()}},jk=function(e){return function(){Ak(e)}},Mk=function(e){Ak(e.data)},Nk=function(e){Y.postMessage(Oue(e),pk.protocol+`//`+pk.host)};wk&&Tk||(wk=function(e){var t=xk(arguments,1);return kk[++Ok]=function(){lD(tw(e)?e:Due(e),void 0,t)},mk(Ok),Ok},Tk=function(e){delete kk[e]},Ck?mk=function(e){Eue.nextTick(jk(e))}:Ek&&Ek.now?mk=function(e){Ek.now(jk(e))}:Dk&&!Sk?(gk=(hk=new Dk).port2,hk.port1.onmessage=Mk,mk=sT(gk.postMessage,gk)):Y.addEventListener&&tw(Y.postMessage)&&!Y.importScripts&&pk&&pk.protocol!==`file:`&&!lw(Nk)?(mk=Nk,Y.addEventListener(`message`,Mk,!1)):mk=`onreadystatechange`in xw(`script`)?function(e){tE.appendChild(xw(`script`)).onreadystatechange=function(){tE.removeChild(this),Ak(e)}}:function(e){setTimeout(jk(e),0)});var Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk={set:wk,clear:Tk},kue=/ipad|iphone|ipod/i.test(rw)&&Y.Pebble!==void 0,Aue=/web0s(?!.*chrome)/i.test(rw),jue=NT.f,Uk=Hk.set,Wk=Y.MutationObserver||Y.WebKitMutationObserver,Gk=Y.document,Kk=Y.process,qk=Y.Promise,Jk=jue(Y,`queueMicrotask`),Yk=Jk&&Jk.value;Yk||(Pk=function(){var e,t;for(Ck&&(e=Kk.domain)&&e.exit();Fk;){t=Fk.fn,Fk=Fk.next;try{t()}catch(e){throw Fk?Lk():Ik=void 0,e}}Ik=void 0,e&&e.enter()},Sk||Ck||Aue||!Wk||!Gk?!kue&&qk&&qk.resolve?((Bk=qk.resolve(void 0)).constructor=qk,Vk=sT(Bk.then,Bk),Lk=function(){Vk(Pk)}):Ck?Lk=function(){Kk.nextTick(Pk)}:(Uk=sT(Uk,Y),Lk=function(){Uk(Pk)}):(Rk=!0,zk=Gk.createTextNode(``),new Wk(Pk).observe(zk,{characterData:!0}),Lk=function(){zk.data=Rk=!Rk}));var Xk,Zk,Qk,$k,eA=Yk||function(e){var t={fn:e,next:void 0};Ik&&(Ik.next=t),Fk||(Fk=t,Lk()),Ik=t},Mue=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=kw(t),this.reject=kw(n)},tA={f:function(e){return new Mue(e)}},nA=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Nue=typeof window==`object`,rA=Hk.set,Pue=hw(`species`),iA=`Promise`,aA=Yw.getterFor(iA),Fue=Yw.set,Iue=Yw.getterFor(iA),oA=_k&&_k.prototype,sA=_k,cA=oA,lA=Y.TypeError,uA=Y.document,dA=Y.process,fA=tA.f,Lue=fA,Rue=!!(uA&&uA.createEvent&&Y.dispatchEvent),pA=tw(Y.PromiseRejectionEvent),mA=!1,hA=UT(iA,(function(){var e=zw(sA),t=e!==String(sA);if(!t&&cw===66)return!0;if(cw>=51&&/native code/.test(e))return!1;var n=new sA((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Pue]=r,!(mA=n.then((function(){}))instanceof r)||!t&&Nue&&!pA})),zue=hA||!wE((function(e){sA.all(e).catch((function(){}))})),gA=function(e){var t;return!(!yw(e)||!tw(t=e.then))&&t},_A=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;eA((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&&Vue(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(lA(`Promise-chain cycle`)):(s=gA(o))?Tw(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bue(e)}))}},vA=function(e,t,n){var r,i;Rue?((r=uA.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Y.dispatchEvent(r)):r={promise:t,reason:n},!pA&&(i=Y[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Y.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Bue=function(e){Tw(rA,Y,(function(){var t,n=e.facade,r=e.value;if(yA(e)&&(t=nA((function(){Ck?dA.emit(`unhandledRejection`,r,n):vA(`unhandledrejection`,n,r)})),e.rejection=Ck||yA(e)?2:1,t.error))throw t.value}))},yA=function(e){return e.rejection!==1&&!e.parent},Vue=function(e){Tw(rA,Y,(function(){var t=e.facade;Ck?dA.emit(`rejectionHandled`,t):vA(`rejectionhandled`,t,e.value)}))},bA=function(e,t,n){return function(r){e(t,r,n)}},xA=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,_A(e,!0))},SA=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw lA(`Promise can't be resolved itself`);var r=gA(t);r?eA((function(){var n={done:!1};try{Tw(r,t,bA(SA,n,e),bA(xA,n,e))}catch(t){xA(n,t,e)}})):(e.value=t,e.state=1,_A(e,!1))}catch(t){xA({done:!1},t,e)}}};if(hA&&(cA=(sA=function(e){BD(this,cA),kw(e),Tw(Xk,this);var t=aA(this);try{e(bA(SA,t),bA(xA,t))}catch(e){xA(t,e)}}).prototype,(Xk=function(e){Fue(this,{type:iA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=kD(cA,{then:function(e,t){var n=Iue(this),r=n.reactions,i=fA(bk(this,sA));return i.ok=!tw(e)||e,i.fail=tw(t)&&t,i.domain=Ck?dA.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&_A(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),Zk=function(){var e=new Xk,t=aA(e);this.promise=e,this.resolve=bA(SA,t),this.reject=bA(xA,t)},tA.f=fA=function(e){return e===sA||e===Qk?new Zk(e):Lue(e)},tw(_k)&&oA!==Object.prototype)){$k=oA.then,mA||($w(oA,`then`,(function(e,t){var n=this;return new sA((function(e,t){Tw($k,n,e,t)})).then(e,t)}),{unsafe:!0}),$w(oA,`catch`,cA.catch,{unsafe:!0}));try{delete oA.constructor}catch{}zE&&zE(oA,cA)}WT({global:!0,wrap:!0,forced:hA},{Promise:sA}),RE(sA,iA,!1),yk(iA),Qk=nw(iA),WT({target:iA,stat:!0,forced:hA},{reject:function(e){var t=fA(this);return Tw(t.reject,void 0,e),t.promise}}),WT({target:iA,stat:!0,forced:hA},{resolve:function(e){return function(e,t){if(Cw(e),yw(t)&&t.constructor===e)return t;var n=tA.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),WT({target:iA,stat:!0,forced:zue},{all:function(e){var t=this,n=fA(t),r=n.resolve,i=n.reject,a=nA((function(){var n=kw(t.resolve),a=[],o=0,s=1;zD(e,(function(e){var c=o++,l=!1;s++,Tw(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=fA(t),r=n.reject,i=nA((function(){var i=kw(t.resolve);zD(e,(function(e){Tw(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var CA=XE.UNSUPPORTED_Y,wA=Math.min,TA=[].push,EA=XC(/./.exec),DA=XC(TA),OA=XC(``.slice);function kA(e){Promise.resolve().then(e)}function AA(e,t){return B.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=V.isVoid(t,e),s=``;o||(s=a.map((function(e){return AA(e,t)})).join(``));var c=function(e){return dk[e]||fk}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||uk.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 uk.forEach((function(t){return r=t(e,r)})),r}(e,t)}function jA(e){return`w-e-element-`+e}dD(`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=XT(ZC(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!dE(e))return Tw(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=Tw(aD,d,r))&&!((o=d.lastIndex)>u&&(DA(c,OA(r,u,a.index)),a.length>1&&a.index<r.length&&lD(TA,c,AD(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&EA(d,``)||DA(c,``):DA(c,OA(r,u)),c.length>i?AD(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Tw(t,this,e,n)}:t,[function(t,n){var i=ZC(this),a=t==null?void 0:Aw(t,e);return a?Tw(a,t,i,n):Tw(r,XT(i),t,n)},function(e,i){var a=Cw(this),o=XT(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=bk(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(CA?`g`:`y`),d=new c(CA?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return hD(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=CA?0:m;var g,_=hD(d,CA?OA(o,m):o);if(_===null||(g=wA(dT(d.lastIndex+(CA?m:0)),o.length))===p)m=fD(o,m,l);else{if(DA(h,OA(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(DA(h,_[v]),h.length===f)return h;m=p=g}}return DA(h,OA(o,p)),h}]}),!!lw((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`})),CA);var MA=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},NA=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return MA(r,i)&&MA(i,r)},PA=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],FA=[],IA=[],LA={},RA=Nw.f,zA=BT.f,BA=Yw.enforce,VA=hw(`match`),HA=Y.RegExp,UA=HA.prototype,WA=Y.SyntaxError,GA=XC(ZT),KA=XC(UA.exec),qA=XC(``.charAt),JA=XC(``.replace),YA=XC(``.indexOf),XA=XC(``.slice),ZA=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,QA=/a/g,$A=/a/g,ej=new HA(QA)!==QA,tj=XE.MISSED_STICKY,nj=XE.UNSUPPORTED_Y;if(UT(`RegExp`,vw&&(!ej||tj||ZE||QE||lw((function(){return $A[VA]=!1,HA(QA)!=QA||HA($A)==$A||HA(QA,`i`)!=`/a/i`}))))){for(var rj=function(e,t){var n,r,i,a,o,s,c=Ew(UA,this),l=dE(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===rj)return e;if((l||Ew(UA,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:GA(f))),e=e===void 0?``:XT(e),t=t===void 0?``:XT(t),f=e,ZE&&`dotAll`in QA&&(r=!!t&&YA(t,`s`)>-1)&&(t=JA(t,/s/g,``)),n=t,tj&&`sticky`in QA&&(i=!!t&&YA(t,`y`)>-1)&&nj&&(t=JA(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=qA(e,r))===`\\`)t+=qA(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:KA(ZA,XA(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||$C(o,u))throw new WA(`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=VD(HA(e,t),c?this:UA,rj),(r||i||d.length)&&(s=BA(o),r&&(s.dotAll=!0,s.raw=rj(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=qA(e,r))===`\\`?i+=t+qA(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{Fw(o,`source`,f===``?`(?:)`:f)}catch{}return o},ij=function(e){e in rj||RA(rj,e,{configurable:!0,get:function(){return HA[e]},set:function(t){HA[e]=t}})},aj=zA(HA),oj=0;aj.length>oj;)ij(aj[oj++]);UA.constructor=rj,rj.prototype=UA,$w(Y,`RegExp`,rj)}yk(`RegExp`);var sj=RegExp(`\xA0`,`g`);function cj(e){return e.replace(sj,` `)}function lj(e,t){var n=e.length;if(n){var r=e[n-1];if(G.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:q(e).text().replace(/\s+/gm,` `)}]}}function uj(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!==IO.ELEMENT_NODE){if(e.nodeType===IO.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=cj(r),lj(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(lj(n,`
`)||n.push({text:`
`}));var i=fj(q(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 LA)if(e[0].matches(t))return LA[t];return Hue}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){V.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),IA.forEach((function(n){r=n(e[0],r,t)})))})),r}function dj(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=cj(n)};return IA.forEach((function(n){r=n(e[0],r,t)})),r}function fj(e,t){FA.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=q(r(e[0])))}));var n=KO(e);return n===`span`?e.attr(`data-w-e-type`)?uj(e,t):dj(e,t):n===`code`?KO(e.parent())===`pre`?uj(e,t):dj(e,t):PA.includes(n)?dj(e,t):uj(e,t)}function pj(e,t,n){var r=q(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function mj(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=q(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=fj(q(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Uue=Nw.f,hj=ID.fastKey,gj=Yw.set,_j=Yw.getterFor;HD(`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){BD(e,a),gj(e,{type:t,index:sE(null),first:void 0,last:void 0,size:0}),vw||(e.size=0),i!=null&&zD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=_j(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=hj(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),vw?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=hj(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return kD(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,vw?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),vw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=sT(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)}}),kD(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)}}),vw&&Uue(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=_j(t),a=_j(r);UE(e,t,(function(e,t){gj(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),yk(t)}});var vj=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function yj(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):K.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=TD(W.edges(n),2),i=r[0],a=r[1],o=V.void(t,{at:i.path}),s=V.void(t,{at:a.path});if(!W.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=TD(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`?`
`:``})),HO(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`,bue(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=wD(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&K.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},bj=function(e){return e!=null},Gue={object:!0,function:!0,undefined:!0},Kue=/^\s*class[\s{/}]/,que=Function.prototype.toString,xj=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!!bj(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))},Sj=function(e){return e!=null},Jue=Object.keys,Yue=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return Jue(Sj(e)?Object(e):e)},Xue=function(e){if(!Sj(e))throw TypeError(`Cannot use null or undefined`);return e},Zue=Math.max,Cj=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]},wj=function(e){var t=$ue(null);return Que.call(arguments,(function(e){Sj(e)&&ede(Object(e),t)})),t},Tj=`razdwatrzy`,tde=String.prototype.indexOf,Ej=typeof Tj.contains==`function`&&!0===Tj.contains(`dwa`)&&!1===Tj.contains(`foo`)?String.prototype.contains:function(e){return tde.call(this,e,arguments[1])>-1},Dj=zC((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],bj(e)?(n=Ej.call(e,`c`),r=Ej.call(e,`e`),i=Ej.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?Cj(wj(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),bj(t)?xj(t)?bj(n)?xj(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,bj(e)?(r=Ej.call(e,`c`),i=Ej.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?Cj(wj(a),o):o}})),Oj=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},nde=zC((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 Oj(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 Oj(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(Oj(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:Dj(n),once:Dj(r),off:Dj(i),emit:Dj(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function kj(e){var t=NO.get(e);return t??(t=nde(),NO.set(e,t)),t}var Aj=new WeakMap;function jj(e,t){var n=Aj.get(e);n??(n=new Set,Aj.set(e,n)),n.add(t)}function rde(e){return Aj.get(e)||new Set}function ide(e){Aj.set(e,new Set)}function Mj(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 Nj(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=Mj(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 Pj(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=B.isElement(t)&&e.isVoid(t),a=B.isElement(t)&&e.isInline(t),o=OO.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(vue.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=Mj(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 Fj(e,t){kA((function(){var n=Mj(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=qE(`slice`),ode=hw(`species`),Ij=Y.Array,sde=Math.max;WT({target:`Array`,proto:!0,forced:!ade},{slice:function(e,t){var n,r,i,a=jT(this),o=fT(a),s=PT(e,o),c=PT(t===void 0?o:t,o);if(pT(a)&&(n=a.constructor,(vT(n)&&(n===Ij||pT(n.prototype))||yw(n)&&(n=n[ode])===null)&&(n=void 0),n===Ij||n===void 0))return xk(a,s,c);for(r=new(n===void 0?Ij:n)(sde(c-s,0)),i=0;s<c;s++,i++)s in a&&_E(r,i,a[s]);return r.length=i,r}});var cde=NT.f,Lj=XC(``.startsWith),lde=XC(``.slice),ude=Math.min,Rj=pE(`startsWith`);WT({target:`String`,proto:!0,forced:!(!Rj&&function(){var e=cde(String.prototype,`startsWith`);return e&&!e.writable}())&&!Rj},{startsWith:function(e){var t=XT(ZC(this));fE(e);var n=dT(ude(arguments.length>1?arguments[1]:void 0,t.length)),r=XT(e);return Lj?Lj(t,r,n):lde(t,n,n+r.length)===r}});var zj=Object.assign,Bj=Object.defineProperty,dde=XC([].concat),Vj=!zj||lw((function(){if(vw&&zj({b:1},zj(Bj({},`a`,{enumerable:!0,get:function(){Bj(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})),zj({},e)[n]!=7||GT(zj({},t)).join(``)!=r}))?function(e,t){for(var n=QC(e),r=arguments.length,i=1,a=VT.f,o=AT.f;r>i;)for(var s,c=lT(arguments[i++]),l=a?dde(GT(c),a(c)):GT(c),u=l.length,d=0;u>d;)s=l[d++],vw&&!Tw(o,c,s)||(n[s]=c[s]);return n}:zj;WT({target:`Object`,stat:!0,forced:Object.assign!==Vj},{assign:Vj});var fde=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function Hj(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=Koe(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`&&Hj(e)}))}var Uj=[],Wj={};function pde(e,t,n){return Lb(n.isInline(e)?`span`:`div`,null,t)}function Gj(e,t){return t===void 0&&(t=!1),Lb(`span`,{"data-slate-string":!0},t?e+`
`:e)}function Kj(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Lb(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?Lb(`br`,null):null)}function qj(e,t,n,r){return CO.set(e,t),wO.set(e,n),B.isElement(e)?function(e,t){var n,r=X.findKey(t,e),i=t.isInline(e),a=V.isVoid(t,e),o=jA(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 Wj[e]||pde}(c);n=a?null:u.map((function(n,r){return qj(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=TD(TD(H.texts(e),1)[0],1)[0],h=Lb(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},qj(m,0,e,t));f=Lb(p,{style:{position:`relative`}},f,h),CO.set(m,0),wO.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return Uj.forEach((function(r){n=r(e,t)})),n}(e,f)),kA((function(){var t=UO(o);t!=null&&(DO.set(r,t),OO.set(e,t),EO.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=G.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=U.parent(o);if(V.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?Kj(H.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||V.string(i,s)!==``?a===``?Kj():t&&a.slice(-1)===`
`?Gj(a,!0):Gj(a):Kj(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return Uj.forEach((function(t){n=t(e,n)})),n}(r,a),Lb(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=Lb(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return kA((function(){var t=UO(c);t!=null&&(DO.set(r,t),OO.set(e,t),EO.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),Sb(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=qj(e,n,t,t);return Hj(r),r}));var l=bO.get(e);if(l??=!0,l){var u=function(e,t){return q(`<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=Soe([Eb,Eoe,Fb,Coe,Toe,wb]))(n,c),bO.set(e,!1),xO.set(e,f)}else{var d=SO.get(e),f=xO.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=UO(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=RO(n);p&&AO.set(t,p)}TO.set(t,n),OO.set(t,n),EO.set(n,t),SO.set(e,c)}}function Jj(e){return typeof e==`object`&&!!e&&e.nodeType===1}function Yj(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function Xj(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Yj(n.overflowY,t)||Yj(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Zj(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 Qj(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(!Jj(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;Jj(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&Xj(d)&&!Xj(document.documentElement)||d!=null&&Xj(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,te=O.bottom,M=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=A&&x<=te&&S>=M&&b<=j)return T;var ne=getComputedStyle(D),re=parseInt(ne.borderLeftWidth,10),ie=parseInt(ne.borderTopWidth,10),ae=parseInt(ne.borderRightWidth,10),oe=parseInt(ne.borderBottomWidth,10),se=0,N=0,ce=`offsetWidth`in D?D.offsetWidth-D.clientWidth-re-ae:0,le=`offsetHeight`in D?D.offsetHeight-D.clientHeight-ie-oe:0;if(l===D)se=i===`start`?C:i===`end`?C-p:i===`nearest`?Zj(h,h+p,p,ie,oe,h+C,h+C+_,_):C-p/2,N=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:Zj(m,m+f,f,re,ae,m+w,m+w+v,v),se=Math.max(0,se+h),N=Math.max(0,N+m);else{se=i===`start`?C-A-ie:i===`end`?C-te+oe+le:i===`nearest`?Zj(A,te,ee,ie,oe+le,C,C+_,_):C-(A+ee/2)+le/2,N=a===`start`?w-M-re:a===`center`?w-(M+k/2)+ce/2:a===`end`?w-j+ae+ce:Zj(M,j,k,re,ae+ce,w,w+v,v);var ue=D.scrollLeft,de=D.scrollTop;C+=de-(se=Math.max(0,Math.min(de+se,D.scrollHeight-ee+le))),w+=ue-(N=Math.max(0,Math.min(ue+N,D.scrollWidth-k+ce)))}T.push({el:D,top:se,left:N})}return T}function $j(e){return e===Object(e)&&Object.keys(e).length!==0}function eM(e,t){return BO(t)&&X.hasDOMNode(e,t,{editable:!0})}function tM(e,t){if(e.getConfig().readOnly)return!1;var n=nM(e,t)&&X.toSlateNode(e,t);return V.isVoid(e,n)}function nM(e,t){return BO(t)&&X.hasDOMNode(e,t)}function rM(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=TO.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&&W.equals(l,r)){var u=!0;if(W.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){W.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($j(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:Qj(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:$j(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)}))})(Qj(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&&JO&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var iM=new WeakMap,aM=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`]},oM=function(e){var t=hde[e],n=gde[e],r=_de[e],i=t&&_x(t),a=n&&_x(n),o=r&&_x(r);return function(e){return!(!i||!i(e))||!!(qO&&a&&a(e))||!(qO||!o||!o(e))}},sM={isBold:oM(`bold`),isCompose:oM(`compose`),isMoveBackward:oM(`moveBackward`),isMoveForward:oM(`moveForward`),isDeleteBackward:oM(`deleteBackward`),isDeleteForward:oM(`deleteForward`),isDeleteLineBackward:oM(`deleteLineBackward`),isDeleteLineForward:oM(`deleteLineForward`),isDeleteWordBackward:oM(`deleteWordBackward`),isDeleteWordForward:oM(`deleteWordForward`),isExtendBackward:oM(`extendBackward`),isExtendForward:oM(`extendForward`),isExtendLineBackward:oM(`extendLineBackward`),isExtendLineForward:oM(`extendLineForward`),isItalic:oM(`italic`),isMoveLineBackward:oM(`moveLineBackward`),isMoveLineForward:oM(`moveLineForward`),isMoveWordBackward:oM(`moveWordBackward`),isMoveWordForward:oM(`moveWordForward`),isRedo:oM(`redo`),isSplitBlock:oM(`splitBlock`),isTransposeCharacter:oM(`transposeCharacter`),isUndo:oM(`undo`),isTab:oM(`tab`),isSelectAll:oM(`selectAll`)};function cM(e){e.preventDefault()}var vde={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(ZO&&!i&&eM(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=TD(r.getTargetRanges(),1)[0];if(c){var l=X.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&W.equals(a,l)||K.select(n,l)}}if(a&&W.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;V.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:V.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:V.deleteForward(n);break;case`deleteContentBackward`:V.deleteBackward(n);break;case`deleteEntireSoftLine`:V.deleteBackward(n,{unit:`line`}),V.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:V.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:V.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:V.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:V.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:V.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:V.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:V.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!PO.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&V.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&eM(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||zO(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&BO(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(B.isElement(c)&&!n.isVoid(c))return}YO&&o.getSelection()?.removeAllRanges(),jO.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,JO&&e.target!==r?r.focus():jO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&nM(n,e.target)&&BO(e.target)){var r=X.toSlateNode(n,e.target),i=X.findPath(n,r);if(V.hasPath(n,i)&&H.get(n,i)===r){var a=V.start(n,i),o=V.end(n,i),s=V.void(n,{at:a}),c=V.void(n,{at:o});if(s&&c&&U.equals(s[1],c[1])){var l=V.range(n,a);K.select(n,l)}}}},compositionstart:function(e,t,n){if(eM(n,e.target)){var r=n.selection;if(r&&W.isExpanded(r)&&(V.deleteFragment(n),Promise.resolve().then((function(){rM(t,n,!0)}))),r&&W.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;iM.set(n,a),aM.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(eM(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(XO||JO)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=W.isBackward(i)?i.focus:i.anchor,o=TD(V.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=TD(V.node(n,a.path.slice(0,s+1)),1)[0];if(B.isElement(c)&&((YO||JO)&&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=iM.get(n)||``,u>0&&V.insertText(n,l.slice(0,u)),t.changeViewState()):V.insertText(n,l)}else V.insertText(n,l);YO||setTimeout((function(){var e=n.selection;if(e!=null){var t=aM.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=iM.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){eM(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&eM(n,r.target)){if(function(e,t){var n=pO.get(e),r=n&&n.getMenus(),i=hO.get(e),a=i&&i.getMenus(),o=CD(CD({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&Yoe(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),sM.isTab(r))return cM(r),void n.handleTab();if(sM.isRedo(r))return cM(r),void(typeof n.redo==`function`&&n.redo());if(sM.isUndo(r))return cM(r),void(typeof n.undo==`function`&&n.undo());if(sM.isMoveLineBackward(r))return cM(r),void K.move(n,{unit:`line`,reverse:!0});if(sM.isMoveLineForward(r))return cM(r),void K.move(n,{unit:`line`});if(sM.isExtendLineBackward(r))return cM(r),void K.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(sM.isExtendLineForward(r))return cM(r),void K.move(n,{unit:`line`,edge:`focus`});if(sM.isMoveBackward(r))return cM(r),void(i&&W.isCollapsed(i)?K.move(n,{reverse:!0}):K.collapse(n,{edge:`start`}));if(sM.isMoveForward(r))return cM(r),void(i&&W.isCollapsed(i)?K.move(n):K.collapse(n,{edge:`end`}));if(sM.isMoveWordBackward(r))return cM(r),i&&W.isExpanded(i)&&K.collapse(n,{edge:`focus`}),void K.move(n,{unit:`word`,reverse:!0});if(sM.isMoveWordForward(r))return cM(r),i&&W.isExpanded(i)&&K.collapse(n,{edge:`focus`}),void K.move(n,{unit:`word`});if(sM.isSelectAll(r))return cM(r),void n.selectAll();if(ZO){if((XO||YO)&&i&&(sM.isDeleteBackward(r)||sM.isDeleteForward(r))&&W.isCollapsed(i)){var a=H.parent(n,i.anchor.path);if(B.isElement(a)&&V.isVoid(n,a)&&V.isInline(n,a))return r.preventDefault(),void K.delete(n,{unit:`block`})}}else{if(sM.isBold(r)||sM.isItalic(r)||sM.isTransposeCharacter(r))return void cM(r);if(sM.isSplitBlock(r))return cM(r),void V.insertBreak(n);if(sM.isDeleteBackward(r))return cM(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`backward`}):V.deleteBackward(n));if(sM.isDeleteForward(r))return cM(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`forward`}):V.deleteForward(n));if(sM.isDeleteLineBackward(r))return cM(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`backward`}):V.deleteBackward(n,{unit:`line`}));if(sM.isDeleteLineForward(r))return cM(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`forward`}):V.deleteForward(n,{unit:`line`}));if(sM.isDeleteWordBackward(r))return cM(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`backward`}):V.deleteBackward(n,{unit:`word`}));if(sM.isDeleteWordForward(r))return cM(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`forward`}):V.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!ZO&&!n.getConfig().readOnly&&eM(n,e.target)){e.preventDefault();var r=e.key;V.insertText(n,r)}},copy:function(e,t,n){var r=e;if(eM(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&&eM(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(W.isExpanded(i))V.deleteFragment(n);else{var o=H.parent(n,i.anchor.path);V.isVoid(n,o)&&K.delete(n)}}},paste:function(e,t,n){PO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&eM(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void PO.set(n,!1);if(!ZO||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(nM(n,e.target)){var r=X.toSlateNode(n,e.target);V.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(nM(n,r.target)&&!n.getConfig().readOnly){var i=X.toSlateNode(n,r.target),a=X.findPath(n,i);if(V.isVoid(n,i)||V.void(n,{at:a,voids:!0})){var o=V.range(n,a);K.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&&nM(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&nM(n,r.target)&&i!=null&&!(ZO&&YO&&i.files.length>0)){r.preventDefault();var a=n.selection,o=X.findEventRange(n,r);K.select(n,o),t.isDraggingInternally&&=(a&&K.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=q(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=q(`<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=pb((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,jO.set(t,!0)):jO.delete(t),!c)return K.deselect(t);var l=c.anchorNode,u=c.focusNode,d=eM(t,l)||tM(t,l),f=eM(t,u)||tM(t,u);if(d&&f){var p=X.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});K.select(t,p)}else K.deselect(t)}})(t,t.editorInstance)}),100);var n=q(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=q(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=q(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,kA((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=dO.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&&(cb(vde,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,pb((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=q(`<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),kA((function(){rM(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function lM(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&&lM(t)}function uM(){return q(`<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 dM(){return q(`<div class="w-e-bar-divider"></div>`)}function fM(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=qO?`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`)}}}dD(`match`,(function(e,t,n){return[function(t){var n=ZC(this),r=t==null?void 0:Aw(t,e);return r?Tw(r,t,n):new RegExp(t)[e](XT(n))},function(e){var r=Cw(this),i=XT(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return hD(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=hD(r,i))!==null;){var u=XT(s[0]);c[l]=u,u===``&&(r.lastIndex=fD(i,dT(r.lastIndex),o)),l++}return l===0?null:c}]}));var pM=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=q(`<div class="w-e-bar-item"></div>`),this.$button=q(`<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=q(u);lM(f),d.append(f)}else d.text(o);fM(d,u,o,c,n),n&&u&&d.append(q(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),kA((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),yM(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=yM(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=yM(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=yM(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 SD(t,e),t.prototype.onButtonClick=function(){},t}(pM),mM=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=_O.get(e);t??(t=new Set,_O.set(e,t)),t.add(this),vO.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=vO.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=vO.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=q(`<div class="w-e-drop-panel"></div>`),n}return SD(t,e),t.prototype.genSelfElem=function(){return null},t}(mM),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=uM();i.$button.append(a)}return i}return SD(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=yM(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}(pM),wde=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=q(`<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 SD(t,e),t.prototype.genSelfElem=function(){var e=this,t=q(`<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=vO.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}(mM);function hM(e,t,n){var r=q(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=q(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function gM(e,t){var n=q(`<div class="button-container"></div>`),r=q(`<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=q(`body`),i.modal=null,i.menu=n,i}return SD(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=yM(this),t=this.menu.getModalPositionNode(e);return B.isElement(t)?Pj(e,t,`modal`):Nj(e)},t.prototype.handleModal=function(){var e=yM(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=yM(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||Fj(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(pM),Ede=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=q(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return SD(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=q(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=q(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=q(`<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(q(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(mM),Dde=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=q(`<div class="w-e-bar-item"></div>`),this.$button=q(`<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),fM(d,c,a,u,n),this.$elem.append(d),this.menu=t,kA((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),yM(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=yM(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=q(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=yM(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=yM(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=uM();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=yM(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}(),_M=function(){function e(e){this.$elem=q(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=q(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=q(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=q(n);lM(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=uM();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){q(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),vM=new WeakMap;function yM(e){var t=gO.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function bM(e,t,n){n===void 0&&(n=!1);var r=vM.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 vM.set(t,r),r}function Ode(e,t){var n=e.selection;return n!=null&&!W.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}))&&!!G.isText(t)}var kde=function(){function e(){var e=this;this.$elem=q(`<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=Sx((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&&B.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),kA((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;kA((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=dM();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=$O[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=bM(e,r);this.hoverbarItems.push(a),gO.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),B.isElement(e)){var r=Pj(t,e,`bar`);n.css(r),Fj(t,n);return}if(G.isText(e))return r=Nj(t),n.css(r),void Fj(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=TD(V.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=mO.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 U.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function xM(e,t,n,r){if(CO.set(e,t),wO.set(e,n),B.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return xM(t,n,e,r)})),V.isVoid(r,e)){var a=TD(TD(H.texts(e),1)[0],1)[0];CO.set(a,0),wO.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];YT.withoutSaving(t,(()=>{V.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];YT.withoutSaving(t,(()=>{V.withoutNormalizing(t,(()=>{for(var e of r.map(dv.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=YT.isSaving(t),u=YT.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||!U.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!U.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<H.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)<H.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===IO.TEXT_NODE?e+(t.textContent||``):n===IO.ELEMENT_NODE?vj.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=kj(t);if(r.on(e,n),e===`destroyed`&&jj(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),jj(t,i)}},t.once=function(e,n){kj(t).once(e,n)},t.off=function(e,n){kj(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=kj(t);r.emit.apply(r,ED([e],TD(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){K.select(t,e)},t.deselect=function(){var n=t.selection,r=X.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&K.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||K.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=MO.get(t);e!=null&&(t.focus(),K.select(t,e))},t.getSelectionPosition=function(){return Nj(t)},t.getNodePosition=function(e){return Pj(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=TD(W.edges(e),2),r=n[0],i=n[1],a=TD(V.edges(t,[]),2),o=a[0],s=a[1];return!(!mv.equals(r,o)||!mv.equals(i,s))},t.selectAll=function(){var e=V.start(t,[]),n=V.end(t,[]);K.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=wD(V.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=TD(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=wD(V.levels(t,{at:U.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=TD(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=wD(V.levels(t,{at:U.common(U.parent(e.path),U.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=TD(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=wD(d),T=w.next();!T.done;T=w.next()){var E=TD(T.value,2);g=E[0],_=E[1],h=TD(V.node(t,g),1)[0],kO.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&&W.isCollapsed(e.selection)){var r=V.above(e,{match:function(t){return V.isBlock(e,t)},at:e.selection});if(r){var i=TD(r,2)[1],o=function(e,t){var n=V.range(e,W.end(t)),r=Array.from(V.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(NA(e,V.range(e,r[i]),n))return V.range(e,r[i],n);if(r.length<2)return V.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)NA(e,V.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return V.range(e,r[a],n)}(t,V.range(e,i,e.selection.anchor));W.isCollapsed(o)||K.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&MO.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 AA(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return H.string(e)})).join(`
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:V.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=V.nodes(t,{at:[],universal:!0});try{for(var s=wD(o),c=s.next();!c.done;c=s.next()){var l=TD(c.value,1)[0];if(B.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=jA(X.findKey(t,l).id);a.push(CD(CD({},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(B.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||G.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){K.delete(t,{at:{anchor:V.start(t,[]),focus:V.end(t,[])}}),t.children.length===0&&K.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===IO.TEXT_NODE||t===IO.ELEMENT_NODE&&!vj.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!==IO.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(PA.includes(r.toLowerCase()))c=!0;else for(var l in LA)if(o.matches(l)){c=!0;break}if(c){var u=fj(q(o),t);Array.isArray(u)?(u.forEach((function(e){return yj(t,e)})),s++):(yj(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)&&K.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=mj(t,e);if(K.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(V.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in $O)e.push(t);return e},t.getConfig=function(){var e=yO.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(Pie());return t.id=`wangEditor-`+ Cue++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),jO.set(t,!0),e){var n=V.end(t,[]);K.select(t,n)}else{var r=MO.get(t);r?K.select(t,r):K.select(t,V.start(t,[]))}},t.isFocused=function(){return!!jO.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),K.deselect(t),jO.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(),uO.delete(t),dO.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),pO.delete(t),fO.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),hO.delete(t),mO.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=q(`#`+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(){_O.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 pj(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=Cx(QO),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return cb(t,(function(e,t){n[t]=CD(CD({},e),i[t]||{})})),delete e.MENU_CONF,CD({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);yO.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=mj(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);uO.set(l,p),dO.set(p,l),p.changeViewState(),kA((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,mO.set(m,l),hO.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return xM(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)})),kA((function(){return l.emit(`created`)})),l}var jde=qE(`splice`),Mde=Y.TypeError,Nde=Math.max,Pde=Math.min;WT({target:`Array`,proto:!0,forced:!jde},{splice:function(e,t){var n,r,i,a,o,s,c=QC(this),l=fT(c),u=PT(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=Pde(Nde(uT(t),0),l-u)),l+n-r>9007199254740991)throw Mde(`Maximum allowed length exceeded`);for(i=bT(c,r),a=0;a<r;a++)(o=u+a)in c&&_E(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=q(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Sx((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=q(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),kA((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=Cx(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=dM();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 _M(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 _M,i=this.menus,a=i[e];if(a==null){var o=$O[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=bM(e,a,r);this.toolbarItems.push(s),gO.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=fO.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=Nw.f,SM=Function.prototype,Rde=XC(SM.toString),CM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zde=XC(CM.exec);function wM(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=TD(e.split(`#`),2),r=n[0],i=n[1],a=[];cb(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 CS({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(LC,{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 TM(e){return TM=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},TM(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 EM(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 DM(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function OM(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 kM(e,t,n){return t&&OM(e.prototype,t),n&&OM(e,n),e}function AM(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function jM(e,t){if(t&&(TM(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return AM(e)}function MM(e){return MM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},MM(e)}function NM(e,t){return NM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},NM(e,t)}function PM(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&&NM(e,t)}vw&&!Ide&&Lde(SM,`name`,{configurable:!0,get:function(){try{return zde(CM,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)}},FM=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};DM(this,e),this.init(t,n)}return kM(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,EM({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),IM=function(){function e(){DM(this,e),this.observers={}}return kM(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 LM(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function RM(e){return e==null?``:``+e}function Hde(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function zM(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 BM(e,t,n){var r=zM(e,t,Object);r.obj[r.k]=n}function VM(e,t){var n=zM(e,t),r=n.obj,i=n.k;if(r)return r[i]}function HM(e,t,n){var r=VM(e,n);return r===void 0?VM(t,n):r}function UM(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]):UM(e[r],t[r],n):e[r]=t[r]);return e}function WM(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 GM=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function KM(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?KM(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 DM(this,t),n=jM(this,MM(t).call(this)),GM&&IM.call(AM(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 PM(t,IM),kM(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=VM(this.data,o);return s||!a||typeof n!=`string`?s:KM(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),BM(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=VM(this.data,o)||{};r?UM(s,n,i):s=EM({},s,n),BM(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`?EM({},{},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}(),qM={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}},JM={},YM=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return DM(this,t),n=jM(this,MM(t).call(this)),GM&&IM.call(AM(n)),Hde([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,AM(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=FM.create(`translator`),n}return PM(t,IM),kM(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(TM(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,EM({},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,EM({},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 te=this.resolve(s,EM({},n,{keySeparator:!1}));te&&te.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 M=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&ne&&ne[0])for(var re=0;re<ne.length;re++)M.push(ne[re]);else this.options.saveMissingTo===`all`?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);var ie=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?M.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){ie([e],s+t,n[`defaultValue${t}`]||k)}))})):ie(M,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(EM({},n,{interpolation:EM({},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=EM({},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=qM.handle(f,e,t,this.options&&this.options.postProcessPassResolved?EM({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,!JM[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(JM[`${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 XM(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Kde=function(){function e(t){DM(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=FM.create(`languageUtils`)}return kM(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]=XM(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]=XM(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=XM(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]:{};DM(this,e),this.languageUtils=t,this.options=n,this.logger=FM.create(`pluralResolver`),this.rules=Yde()}return kM(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]:{};DM(this,e),this.logger=FM.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return kM(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?WM(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?WM(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?WM(t.nestingPrefix):t.nestingPrefixEscaped||WM(`$t(`),this.nestingSuffix=t.nestingSuffix?WM(t.nestingSuffix):t.nestingSuffixEscaped||WM(`)`),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=HM(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,EM({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(HM(t,c,o),l,n,EM({},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=RM(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=EM({},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=EM({},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=RM(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,EM({},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 DM(this,t),i=jM(this,MM(t).call(this)),GM&&IM.call(AM(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=FM.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return PM(t,IM),kM(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=zM(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,EM({},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(TM(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),TM(e[2])===`object`||TM(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 ZM(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 QM(){}var $M=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(DM(this,t),e=jM(this,MM(t).call(this)),GM&&IM.call(AM(e)),e.options=ZM(n),e.services={},e.logger=FM,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),jM(e,AM(e));setTimeout((function(){e.init(n,r)}),0)}return e}return PM(t,IM),kM(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=EM({},$de(),this.options,ZM(t)),this.format=this.options.interpolation.format,n||=QM,!this.options.isClone){this.modules.logger?FM.init(r(this.modules.logger),this.options):FM.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=FM,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 YM(this.services,this.options),this.translator.on(`*`,(function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&o[0]!==`dev`&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=LM(),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]:QM,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=LM();return e||=this.languages,t||=this.options.ns,n||=QM,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`&&qM.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=LM();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(TM(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=EM({},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=LM();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=LM();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]:QM,i=EM({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=EM({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new YM(a.services,a.options),a.translator.on(`*`,(function(e){var t=[...arguments].slice(1);a.emit.apply(a,[e].concat(t))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:`toJSON`,value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function eN(e,t){$M.addResourceBundle(e,`translation`,t,!0,!0)}$M.init({lng:`zh-CN`,resources:{}});var Z=$M.t.bind($M);eN(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),eN(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var efe=Vm?{}.toString:function(){return`[object `+Gm(this)+`]`};Vm||lm(Object.prototype,`toString`,efe,{unsafe:!0});var tN=Array.isArray||function(e){return ep(e)==`Array`},nN=function(){},tfe=[],rN=sp(`Reflect`,`construct`),iN=/^\s*(?:class|function)\b/,nfe=$f(iN.exec),rfe=!iN.exec(nN),aN=function(e){if(!ap(e))return!1;try{return rN(nN,tfe,e),!0}catch{return!1}},ife=!rN||Uf((function(){var e;return aN(aN.call)||!aN(Object)||!aN((function(){e=!0}))||e}))?function(e){if(!ap(e))return!1;switch(Gm(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return rfe||!!nfe(iN,Gp(e))}:aN,afe=Ap(`species`),oN=Hf.Array,ofe=function(e,t){return new(function(e){var t;return tN(e)&&(t=e.constructor,(ife(t)&&(t===oN||tN(t.prototype))||op(t)&&(t=t[afe])===null)&&(t=void 0)),t===void 0?oN:t}(e))(t===0?0:t)},sN=$f([].push),cN=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=wp(c),h=np(m),g=wh(l,u),_=vm(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:sN(b,f)}else switch(e){case 4:return!1;case 7:sN(b,f)}return a?-1:r||i?i:b}},sfe={forEach:cN(0),map:cN(1),filter:cN(2),some:cN(3),every:cN(4),find:cN(5),findIndex:cN(6),filterReject:cN(7)}.forEach,lN=function(e,t){var n=[][e];return!!n&&Uf((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return sfe(this,e,arguments.length>1?arguments[1]:void 0)},uN=function(e){if(e&&e.forEach!==lN)try{Bp(e,`forEach`,lN)}catch{e.forEach=lN}};for(var dN in Xh)Xh[dN]&&uN(Hf[dN]&&Hf[dN].prototype);uN($h),eN(`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`}}),eN(`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 Lb(`p`,null,t)}},fN=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function pN(e){var t={exports:{}};return e(t,t.exports),t.exports}var mN,hN,gN=function(e){return e&&e.Math==Math&&e},_N=gN(typeof globalThis==`object`&&globalThis)||gN(typeof window==`object`&&window)||gN(typeof self==`object`&&self)||gN(typeof fN==`object`&&fN)||function(){return this}()||Function(`return this`)(),vN=function(e){try{return!!e()}catch{return!0}},yN=!vN((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),bN=Function.prototype.call,xN=bN.bind?bN.bind(bN):function(){return bN.apply(bN,arguments)},SN={}.propertyIsEnumerable,CN=Object.getOwnPropertyDescriptor,wN={f:CN&&!SN.call({1:2},1)?function(e){var t=CN(this,e);return!!t&&t.enumerable}:SN},TN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EN=Function.prototype,DN=EN.bind,ON=EN.call,lfe=DN&&DN.bind(ON),kN=DN?function(e){return e&&lfe(ON,e)}:function(e){return e&&function(){return ON.apply(e,arguments)}},ufe=kN({}.toString),dfe=kN(``.slice),AN=function(e){return dfe(ufe(e),8,-1)},jN=_N.Object,ffe=kN(``.split),MN=vN((function(){return!jN(`z`).propertyIsEnumerable(0)}))?function(e){return AN(e)==`String`?ffe(e,``):jN(e)}:jN,pfe=_N.TypeError,NN=function(e){if(e==null)throw pfe(`Can't call method on `+e);return e},PN=function(e){return MN(NN(e))},FN=function(e){return typeof e==`function`},IN=function(e){return typeof e==`object`?e!==null:FN(e)},LN=function(e){return FN(e)?e:void 0},RN=function(e,t){return arguments.length<2?LN(_N[e]):_N[e]&&_N[e][t]},zN=kN({}.isPrototypeOf),BN=RN(`navigator`,`userAgent`)||``,VN=_N.process,HN=_N.Deno,UN=VN&&VN.versions||HN&&HN.version,WN=UN&&UN.v8;WN&&(hN=(mN=WN.split(`.`))[0]>0&&mN[0]<4?1:+(mN[0]+mN[1])),!hN&&BN&&(!(mN=BN.match(/Edge\/(\d+)/))||mN[1]>=74)&&(mN=BN.match(/Chrome\/(\d+)/))&&(hN=+mN[1]);var GN=hN,KN=!!Object.getOwnPropertySymbols&&!vN((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&GN&&GN<41})),qN=KN&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,JN=_N.Object,YN=qN?function(e){return typeof e==`symbol`}:function(e){var t=RN(`Symbol`);return FN(t)&&zN(t.prototype,JN(e))},XN=_N.String,ZN=function(e){try{return XN(e)}catch{return`Object`}},QN=_N.TypeError,$N=function(e){if(FN(e))return e;throw QN(ZN(e)+` is not a function`)},eP=function(e,t){var n=e[t];return n==null?void 0:$N(n)},tP=_N.TypeError,nP=Object.defineProperty,rP=function(e,t){try{nP(_N,e,{value:t,configurable:!0,writable:!0})}catch{_N[e]=t}return t},iP=_N[`__core-js_shared__`]||rP(`__core-js_shared__`,{}),aP=pN((function(e){(e.exports=function(e,t){return iP[e]||(iP[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),oP=_N.Object,sP=function(e){return oP(NN(e))},cP=kN({}.hasOwnProperty),lP=Object.hasOwn||function(e,t){return cP(sP(e),t)},uP=0,dP=Math.random(),fP=kN(1 .toString),pP=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+fP(++uP+dP,36)},mP=aP(`wks`),hP=_N.Symbol,gP=hP&&hP.for,_P=qN?hP:hP&&hP.withoutSetter||pP,vP=function(e){if(!lP(mP,e)||!KN&&typeof mP[e]!=`string`){var t=`Symbol.`+e;KN&&lP(hP,e)?mP[e]=hP[e]:mP[e]=qN&&gP?gP(t):_P(t)}return mP[e]},yP=_N.TypeError,bP=vP(`toPrimitive`),xP=function(e){var t=function(e,t){if(!IN(e)||YN(e))return e;var n,r=eP(e,bP);if(r){if(t===void 0&&(t=`default`),n=xN(r,e,t),!IN(n)||YN(n))return n;throw yP(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&FN(n=e.toString)&&!IN(r=xN(n,e))||FN(n=e.valueOf)&&!IN(r=xN(n,e))||t!==`string`&&FN(n=e.toString)&&!IN(r=xN(n,e)))return r;throw tP(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return YN(t)?t:t+``},SP=_N.document,CP=IN(SP)&&IN(SP.createElement),wP=function(e){return CP?SP.createElement(e):{}},TP=!yN&&!vN((function(){return Object.defineProperty(wP(`div`),`a`,{get:function(){return 7}}).a!=7})),EP=Object.getOwnPropertyDescriptor,DP={f:yN?EP:function(e,t){if(e=PN(e),t=xP(t),TP)try{return EP(e,t)}catch{}if(lP(e,t))return TN(!xN(wN.f,e,t),e[t])}},OP=_N.String,kP=_N.TypeError,AP=function(e){if(IN(e))return e;throw kP(OP(e)+` is not an object`)},jP=_N.TypeError,MP=Object.defineProperty,NP={f:yN?MP:function(e,t,n){if(AP(e),t=xP(t),AP(n),TP)try{return MP(e,t,n)}catch{}if(`get`in n||`set`in n)throw jP(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},PP=yN?function(e,t,n){return NP.f(e,t,TN(1,n))}:function(e,t,n){return e[t]=n,e},FP=kN(Function.toString);FN(iP.inspectSource)||(iP.inspectSource=function(e){return FP(e)});var IP,LP,RP,zP=iP.inspectSource,BP=_N.WeakMap,VP=FN(BP)&&/native code/.test(zP(BP)),HP=aP(`keys`),UP=function(e){return HP[e]||(HP[e]=pP(e))},WP={},GP=_N.TypeError,KP=_N.WeakMap;if(VP||iP.state){var qP=iP.state||=new KP,JP=kN(qP.get),YP=kN(qP.has),XP=kN(qP.set);IP=function(e,t){if(YP(qP,e))throw new GP(`Object already initialized`);return t.facade=e,XP(qP,e,t),t},LP=function(e){return JP(qP,e)||{}},RP=function(e){return YP(qP,e)}}else{var ZP=UP(`state`);WP[ZP]=!0,IP=function(e,t){if(lP(e,ZP))throw new GP(`Object already initialized`);return t.facade=e,PP(e,ZP,t),t},LP=function(e){return lP(e,ZP)?e[ZP]:{}},RP=function(e){return lP(e,ZP)}}var QP={set:IP,get:LP,has:RP,enforce:function(e){return RP(e)?LP(e):IP(e,{})},getterFor:function(e){return function(t){var n;if(!IN(t)||(n=LP(t)).type!==e)throw GP(`Incompatible receiver, `+e+` required`);return n}}},$P=Function.prototype,eF=yN&&Object.getOwnPropertyDescriptor,tF=lP($P,`name`),nF={EXISTS:tF,PROPER:tF&&function(){}.name===`something`,CONFIGURABLE:tF&&(!yN||yN&&eF($P,`name`).configurable)},rF=pN((function(e){var t=nF.CONFIGURABLE,n=QP.get,r=QP.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;FN(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!lP(a,`name`)||t&&a.name!==d)&&PP(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===_N?l?e[n]=a:rP(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:PP(e,n,a))})(Function.prototype,`toString`,(function(){return FN(this)&&n(this).source||zP(this)}))})),iF=Math.ceil,aF=Math.floor,oF=function(e){var t=+e;return t!=t||t===0?0:(t>0?aF:iF)(t)},sF=Math.max,cF=Math.min,lF=function(e,t){var n=oF(e);return n<0?sF(n+t,0):cF(n,t)},uF=Math.min,dF=function(e){return e>0?uF(oF(e),9007199254740991):0},fF=function(e){return dF(e.length)},pF=function(e){return function(t,n,r){var i,a=PN(t),o=fF(a),s=lF(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}},mF={includes:pF(!0),indexOf:pF(!1)},hF=mF.indexOf,gF=kN([].push),_F=function(e,t){var n,r=PN(e),i=0,a=[];for(n in r)!lP(WP,n)&&lP(r,n)&&gF(a,n);for(;t.length>i;)lP(r,n=t[i++])&&(~hF(a,n)||gF(a,n));return a},vF=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],yF=vF.concat(`length`,`prototype`),bF={f:Object.getOwnPropertyNames||function(e){return _F(e,yF)}},xF={f:Object.getOwnPropertySymbols},SF=kN([].concat),CF=RN(`Reflect`,`ownKeys`)||function(e){var t=bF.f(AP(e)),n=xF.f;return n?SF(t,n(e)):t},wF=function(e,t){for(var n=CF(t),r=NP.f,i=DP.f,a=0;a<n.length;a++){var o=n[a];lP(e,o)||r(e,o,i(t,o))}},TF=/#|\.prototype\./,EF=function(e,t){var n=hfe[mfe(e)];return n==_fe||n!=gfe&&(FN(t)?vN(t):!!t)},mfe=EF.normalize=function(e){return String(e).replace(TF,`.`).toLowerCase()},hfe=EF.data={},gfe=EF.NATIVE=`N`,_fe=EF.POLYFILL=`P`,vfe=EF,yfe=DP.f,DF=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?_N:l?_N[s]||rP(s,{}):(_N[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=yfe(n,r))&&o.value:n[r],!vfe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;wF(a,i)}(e.sham||i&&i.sham)&&PP(a,`sham`,!0),rF(n,r,a,e)}},OF=kN(kN.bind),kF=Array.isArray||function(e){return AN(e)==`Array`},AF={};AF[vP(`toStringTag`)]=`z`;var jF=String(AF)===`[object z]`,bfe=vP(`toStringTag`),xfe=_N.Object,Sfe=AN(function(){return arguments}())==`Arguments`,MF=jF?AN: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=xfe(e),bfe))==`string`?n:Sfe?AN(t):(r=AN(t))==`Object`&&FN(t.callee)?`Arguments`:r},NF=function(){},Cfe=[],PF=RN(`Reflect`,`construct`),FF=/^\s*(?:class|function)\b/,wfe=kN(FF.exec),Tfe=!FF.exec(NF),IF=function(e){if(!FN(e))return!1;try{return PF(NF,Cfe,e),!0}catch{return!1}},LF=!PF||vN((function(){var e;return IF(IF.call)||!IF(Object)||!IF((function(){e=!0}))||e}))?function(e){if(!FN(e))return!1;switch(MF(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Tfe||!!wfe(FF,zP(e))}:IF,Efe=vP(`species`),RF=_N.Array,Dfe=function(e,t){return new(function(e){var t;return kF(e)&&(t=e.constructor,(LF(t)&&(t===RF||kF(t.prototype))||IN(t)&&(t=t[Efe])===null)&&(t=void 0)),t===void 0?RF:t}(e))(t===0?0:t)},zF=kN([].push),BF=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=sP(c),h=MN(m),g=function(e,t){return $N(e),t===void 0?e:OF?OF(e,t):function(){return e.apply(t,arguments)}}(l,u),_=fF(h),v=0,y=d||Dfe,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:zF(b,f)}else switch(e){case 4:return!1;case 7:zF(b,f)}return a?-1:r||i?i:b}},VF={forEach:BF(0),map:BF(1),filter:BF(2),some:BF(3),every:BF(4),find:BF(5),findIndex:BF(6),filterReject:BF(7)},Ofe=vP(`species`),HF=function(e){return GN>=51||!vN((function(){var t=[];return(t.constructor={})[Ofe]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},kfe=VF.filter;DF({target:`Array`,proto:!0,forced:!HF(`filter`)},{filter:function(e){return kfe(this,e,arguments.length>1?arguments[1]:void 0)}});var Afe=jF?{}.toString:function(){return`[object `+MF(this)+`]`};jF||rF(Object.prototype,`toString`,Afe,{unsafe:!0});var UF,jfe=_N.String,WF=function(e){if(MF(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return jfe(e)},GF=function(){var e=AP(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},KF=_N.RegExp,qF=vN((function(){var e=KF(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Mfe=qF||vN((function(){return!KF(`a`,`y`).sticky})),JF={BROKEN_CARET:qF||vN((function(){var e=KF(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Mfe,UNSUPPORTED_Y:qF},YF=Object.keys||function(e){return _F(e,vF)},Nfe=yN?Object.defineProperties:function(e,t){AP(e);for(var n,r=PN(t),i=YF(t),a=i.length,o=0;a>o;)NP.f(e,n=i[o++],r[n]);return e},Pfe=RN(`document`,`documentElement`),XF=UP(`IE_PROTO`),ZF=function(){},QF=function(e){return`<script>`+e+`<\/script>`},$F=function(e){e.write(QF(``)),e.close();var t=e.parentWindow.Object;return e=null,t},eI=function(){try{UF=new ActiveXObject(`htmlfile`)}catch{}var e,t;eI=typeof document<`u`?document.domain&&UF?$F(UF):((t=wP(`iframe`)).style.display=`none`,Pfe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(QF(`document.F=Object`)),e.close(),e.F):$F(UF);for(var n=vF.length;n--;)delete eI.prototype[vF[n]];return eI()};WP[XF]=!0;var tI,nI,rI=Object.create||function(e,t){var n;return e===null?n=eI():(ZF.prototype=AP(e),n=new ZF,ZF.prototype=null,n[XF]=e),t===void 0?n:Nfe(n,t)},Ffe=_N.RegExp,Ife=vN((function(){var e=Ffe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Lfe=_N.RegExp,Rfe=vN((function(){var e=Lfe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),zfe=QP.get,Bfe=aP(`native-string-replace`,String.prototype.replace),iI=RegExp.prototype.exec,aI=iI,Vfe=kN(``.charAt),Hfe=kN(``.indexOf),Ufe=kN(``.replace),oI=kN(``.slice),sI=(nI=/b*/g,xN(iI,tI=/a/,`a`),xN(iI,nI,`a`),tI.lastIndex!==0||nI.lastIndex!==0),cI=JF.BROKEN_CARET,lI=/()??/.exec(``)[1]!==void 0;(sI||lI||cI||Ife||Rfe)&&(aI=function(e){var t,n,r,i,a,o,s,c=this,l=zfe(c),u=WF(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=xN(aI,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=cI&&c.sticky,m=xN(GF,c),h=c.source,g=0,_=u;if(p&&(m=Ufe(m,`y`,``),Hfe(m,`g`)===-1&&(m+=`g`),_=oI(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Vfe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),lI&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),sI&&(r=c.lastIndex),i=xN(iI,p?n:c,_),p?i?(i.input=oI(i.input,g),i[0]=oI(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:sI&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),lI&&i&&i.length>1&&xN(Bfe,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=rI(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var uI=aI;DF({target:`RegExp`,proto:!0,forced:/./.exec!==uI},{exec:uI});var dI=Function.prototype,fI=dI.apply,Wfe=dI.bind,pI=dI.call,mI=typeof Reflect==`object`&&Reflect.apply||(Wfe?pI.bind(fI):function(){return pI.apply(fI,arguments)}),Gfe=vP(`species`),hI=RegExp.prototype,gI=function(e,t,n,r){var i=vP(e),a=!vN((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!vN((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Gfe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=kN(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=kN(e),c=t.exec;return c===uI||c===hI.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));rF(String.prototype,e,c[0]),rF(hI,i,c[1])}r&&PP(hI[i],`sham`,!0)},Kfe=kN(``.charAt),_I=kN(``.charCodeAt),qfe=kN(``.slice),Jfe=function(e){return function(t,n){var r,i,a=WF(NN(t)),o=oF(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=_I(a,o))<55296||r>56319||o+1===s||(i=_I(a,o+1))<56320||i>57343?e?Kfe(a,o):r:e?qfe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),vI=function(e,t,n){return t+(n?Jfe(e,t).length:1)},Yfe=Math.floor,yI=kN(``.charAt),Xfe=kN(``.replace),bI=kN(``.slice),Zfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qfe=/\$([$&'`]|\d{1,2})/g,$fe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Qfe;return i!==void 0&&(i=sP(i),c=Zfe),Xfe(a,c,(function(a,c){var l;switch(yI(c,0)){case`$`:return`$`;case`&`:return e;case"`":return bI(t,0,n);case`'`:return bI(t,o);case`<`:l=i[bI(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Yfe(u/10);return d===0?a:d<=s?r[d-1]===void 0?yI(c,1):r[d-1]+yI(c,1):a}l=r[u-1]}return l===void 0?``:l}))},epe=_N.TypeError,xI=function(e,t){var n=e.exec;if(FN(n)){var r=xN(n,e,t);return r!==null&&AP(r),r}if(AN(e)===`RegExp`)return xN(uI,e,t);throw epe(`RegExp#exec called on incompatible receiver`)},SI=vP(`replace`),tpe=Math.max,npe=Math.min,rpe=kN([].concat),CI=kN([].push),wI=kN(``.indexOf),TI=kN(``.slice),ipe=`a`.replace(/./,`$0`)===`$0`,EI=!!/./[SI]&&/./[SI](`a`,`$0`)===``;gI(`replace`,(function(e,t,n){var r=EI?`$`:`$0`;return[function(e,n){var r=NN(this),i=e==null?void 0:eP(e,SI);return i?xN(i,e,r,n):xN(t,WF(r),e,n)},function(e,i){var a=AP(this),o=WF(e);if(typeof i==`string`&&wI(i,r)===-1&&wI(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=FN(i);c||(i=WF(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=xI(a,o);if(f===null||(CI(d,f),!l))break;WF(f[0])===``&&(a.lastIndex=vI(o,dF(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=WF((f=d[g])[0]),v=tpe(npe(oF(f.index),o.length),0),y=[],b=1;b<f.length;b++)CI(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=rpe([_],y,v,o);x!==void 0&&CI(S,x);var C=WF(mI(i,void 0,S))}else C=$fe(_,o,v,y,x,i);v>=h&&(m+=TI(o,h,v)+C,h=v+_.length)}return m+TI(o,h)}]}),!!vN((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!ipe||EI);var DI=vP(`unscopables`),OI=Array.prototype;OI[DI]??NP.f(OI,DI,{configurable:!0,value:rI(null)});var kI=function(e){OI[DI][e]=!0},ape=VF.find,AI=!0;`find`in[]&&[,].find((function(){AI=!1})),DF({target:`Array`,proto:!0,forced:AI},{find:function(e){return ape(this,e,arguments.length>1?arguments[1]:void 0)}}),kI(`find`);var ope=vP(`match`),jI=function(e){var t;return IN(e)&&((t=e[ope])===void 0?AN(e)==`RegExp`:!!t)},spe=_N.TypeError,cpe=vP(`species`),MI=function(e,t,n){var r=xP(t);r in e?NP.f(e,r,TN(0,n)):e[r]=n},lpe=_N.Array,upe=Math.max,NI=function(e,t,n){for(var r=fF(e),i=lF(t,r),a=lF(n===void 0?r:n,r),o=lpe(upe(a-i,0)),s=0;i<a;i++,s++)MI(o,s,e[i]);return o.length=s,o},PI=JF.UNSUPPORTED_Y,dpe=Math.min,FI=[].push,fpe=kN(/./.exec),II=kN(FI),LI=kN(``.slice);gI(`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=WF(NN(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!jI(e))return xN(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=xN(uI,d,r))&&!((o=d.lastIndex)>u&&(II(c,LI(r,u,a.index)),a.length>1&&a.index<r.length&&mI(FI,c,NI(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&fpe(d,``)||II(c,``):II(c,LI(r,u)),c.length>i?NI(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:xN(t,this,e,n)}:t,[function(t,n){var i=NN(this),a=t==null?void 0:eP(t,e);return a?xN(a,t,i,n):xN(r,WF(i),t,n)},function(e,i){var a=AP(this),o=WF(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=AP(e).constructor;return r===void 0||(n=AP(r)[cpe])==null?t:function(e){if(LF(e))return e;throw spe(ZN(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(PI?`g`:`y`),d=new c(PI?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return xI(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=PI?0:m;var g,_=xI(d,PI?LI(o,m):o);if(_===null||(g=dpe(dF(d.lastIndex+(PI?m:0)),o.length))===p)m=vI(o,m,l);else{if(II(h,LI(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(II(h,_[v]),h.length===f)return h;m=p=g}}return II(h,LI(o,p)),h}]}),!!vN((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`})),PI);var RI=`
\v\f\r \xA0               \u2028\u2029`,zI=kN(``.replace),BI=`[`+RI+`]`,ppe=RegExp(`^`+BI+BI+`*`),mpe=RegExp(BI+BI+`*$`),VI=function(e){return function(t){var n=WF(NN(t));return 1&e&&(n=zI(n,ppe,``)),2&e&&(n=zI(n,mpe,``)),n}},hpe={start:VI(1),end:VI(2),trim:VI(3)},gpe=nF.PROPER,_pe=hpe.trim;function HI(e){return q(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function UI(e){return e.length===0?``:e[0].outerHTML}function WI(e){return e.length?e[0].tagName.toLowerCase():``}function GI(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}DF({target:`String`,proto:!0,forced:vN((function(){return!!RI.trim()||gpe&&RI.trim.name!==`trim`}))},{trim:function(){return _pe(this)}}),DF({global:!0},{globalThis:_N}),Ry&&(q.fn.css=Ry),Wy&&(q.fn.append=Wy),Gy&&(q.fn.prepend=Gy),wy&&(q.fn.addClass=wy),Ty&&(q.fn.removeClass=Ty),Ey&&(q.fn.hasClass=Ey),jy&&(q.fn.on=jy),My&&(q.fn.off=My),eb&&(q.fn.focus=eb),Dy&&(q.fn.attr=Dy),Oy&&(q.fn.removeAttr=Oy),Iy&&(q.fn.hide=Iy),Ly&&(q.fn.show=Ly),qy&&(q.fn.parents=qy),ky&&(q.fn.dataset=ky),Ay&&(q.fn.val=Ay),Hy&&(q.fn.text=Hy),Vy&&(q.fn.html=Vy),Yy&&(q.fn.children=Yy),Xy&&(q.fn.remove=Xy),Jy&&(q.fn.find=Jy),Ny&&(q.fn.width=Ny),Py&&(q.fn.height=Py),By&&(q.fn.filter=By),Zy&&(q.fn.empty=Zy);var vpe={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);return(t=t.filter((function(e){return!!G.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},KI=function(e,t){return KI=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])},KI(e,t)};function qI(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}KI(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var JI=function(){return JI=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},JI.apply(this,arguments)};function YI(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 XI(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 ZI(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 QI(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 $I(e){var t=QI(V.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!B.isElement(n)||n.type===`paragraph`||H.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!G.isText(i[0])&&(K.setNodes(e,{type:`paragraph`}),!0)}var ype={renderElems:[cfe],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[vpe],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){$I(r)||t(e)},r.deleteForward=function(e){$I(r)||n(e)},r}},bpe=/"/g,xpe=kN(``.replace),eL=function(e,t,n,r){var i=WF(NN(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+xpe(WF(r),bpe,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},tL=function(e){return vN((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function nL(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 rL(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}DF({target:`String`,proto:!0,forced:tL(`bold`)},{bold:function(){return eL(this,`b`,``,``)}}),DF({target:`String`,proto:!0,forced:tL(`italics`)},{italics:function(){return eL(this,`i`,``,``)}}),DF({target:`String`,proto:!0,forced:tL(`sub`)},{sub:function(){return eL(this,`sub`,``,``)}}),DF({target:`String`,proto:!0,forced:tL(`sup`)},{sup:function(){return eL(this,`sup`,``,``)}});var iL={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},aL=wP(`span`).classList,oL=aL&&aL.constructor&&aL.constructor.prototype,Spe=oL===Object.prototype?void 0:oL,sL=function(e,t){var n=[][e];return!!n&&vN((function(){n.call(null,t||function(){throw 1},1)}))},Cpe=VF.forEach,cL=sL(`forEach`)?[].forEach:function(e){return Cpe(this,e,arguments.length>1?arguments[1]:void 0)},lL=function(e){if(e&&e.forEach!==cL)try{PP(e,`forEach`,cL)}catch{e.forEach=cL}};for(var uL in iL)iL[uL]&&lL(_N[uL]&&_N[uL].prototype);function dL(e,t){return e.selection==null||!!QI(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.isVoid(e,t)},universal:!0}),1)[0]}function wpe(e,t){Object.keys(t).forEach((function(t){t!==`text`&&V.removeMark(e,t)}))}lL(Spe),DF({target:`Object`,stat:!0,forced:vN((function(){YF(1)}))},{keys:function(e){return YF(sP(e))}});var fL=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=V.marks(e);return n?n[t]:!!QI(V.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 dL(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}(),Tpe=`<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>`,Epe=`<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>`,Dpe=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Ope=`<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>`,kpe=`<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>`,pL=`<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>`,mL=`<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>`,Ape=`<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>`,jpe=`<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>`,Mpe=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,Npe=`<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>`,Ppe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,Fpe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,Ipe=`<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>`,Lpe=`<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>`,Rpe=`<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>`,zpe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,Bpe=`<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>`,Vpe=`<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>`,Hpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Tpe,t.hotkey=`mod+b`,t}return qI(t,e),t}(fL),Upe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=kpe,t.hotkey=`mod+e`,t}return qI(t,e),t}(fL),Wpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=Dpe,t.hotkey=`mod+i`,t}return qI(t,e),t}(fL),Gpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Ope,t.hotkey=`mod+shift+x`,t}return qI(t,e),t}(fL),Kpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Epe,t.hotkey=`mod+u`,t}return qI(t,e),t}(fL),qpe=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=Vpe,t.hotkey=``,t}return qI(t,e),t}(fL),Jpe=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=Bpe,t.hotkey=``,t}return qI(t,e),t}(fL),Ype=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 dL(e)},e.prototype.exec=function(e,t){var n,r,i=V.nodes(e,{match:function(e){return G.isText(e)},universal:!0});try{for(var a=ZI(i),o=a.next();!o.done;o=a.next())wpe(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}(),Xpe={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=Lb(`strong`,null,u)),o&&(u=Lb(`code`,null,u)),i&&(u=Lb(`em`,null,u)),a&&(u=Lb(`u`,null,u)),s&&(u=Lb(`s`,null,u)),c&&(u=Lb(`sub`,null,u)),l&&(u=Lb(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new Hpe}},{key:`underline`,factory:function(){return new Kpe}},{key:`italic`,factory:function(){return new Wpe}},{key:`through`,factory:function(){return new Gpe}},{key:`code`,factory:function(){return new Upe}},{key:`sub`,factory:function(){return new qpe}},{key:`sup`,factory:function(){return new Jpe}},{key:`clearStyle`,factory:function(){return new Ype}}],styleToHtml:function(e,t){if(!G.isText(e))return t;if(HI(t))return nL(e,t);var n=q(t);if(WI(n)===`br`)return nL(e,`<br>`);var r=n.html();return r=nL(e,r),n.html(r),UI(n)},parseStyleHtml:function(e,t,n){var r=q(e);if(!G.isText(t))return t;var i=t;return rL(r,`b,strong`)&&(i.bold=!0),rL(r,`i,em`)&&(i.italic=!0),rL(r,`u`)&&(i.underline=!0),rL(r,`s,strike`)&&(i.through=!0),rL(r,`sub`)&&(i.sub=!0),rL(r,`sup`)&&(i.sup=!0),rL(r,`code`)&&(i.code=!0),i}};function hL(e){return function(t,n,r){return Lb(`h`+e,null,n)}}var Zpe={type:`header1`,renderElem:hL(1)},Qpe={type:`header2`,renderElem:hL(2)},$pe={type:`header3`,renderElem:hL(3)},eme={type:`header4`,renderElem:hL(4)},tme={type:`header5`,renderElem:hL(5)},nme=nF.PROPER,gL=RegExp.prototype,_L=gL.toString,rme=kN(GF),ime=vN((function(){return _L.call({source:`a`,flags:`b`})!=`/a/b`})),ame=nme&&_L.name!=`toString`;(ime||ame)&&rF(RegExp.prototype,`toString`,(function(){var e=AP(this),t=WF(e.source),n=e.flags;return`/`+t+`/`+WF(n===void 0&&zN(gL,e)&&!(`flags`in gL)?rme(e):n)}),{unsafe:!0});var vL,ome=_N.TypeError,yL=function(e){if(jI(e))throw ome(`The method doesn't accept regular expressions`);return e},sme=vP(`match`),bL=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[sme]=!1,`/./`[e](t)}catch{}}return!1},cme=DP.f,xL=kN(``.startsWith),lme=kN(``.slice),ume=Math.min,SL=bL(`startsWith`);function CL(e){var t=QI(V.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=QI(t,1)[0];return X.getNodeType(n)}function wL(e){return e.selection==null||!QI(V.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function TL(e,t){t&&K.setNodes(e,{type:t})}DF({target:`String`,proto:!0,forced:!(!SL&&(vL=cme(String.prototype,`startsWith`),vL&&!vL.writable)||SL)},{startsWith:function(e){var t=WF(NN(this));yL(e);var n=dF(ume(arguments.length>1?arguments[1]:void 0,t.length)),r=WF(e);return xL?xL(t,r,n):lme(t,n,n+r.length)===r}});var dme=function(){function e(){this.title=Z(`header.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>`,this.tag=`select`,this.width=60}return e.prototype.getOptions=function(e){var t=[{value:`header1`,text:`H1`,styleForRenderMenuList:{"font-size":`32px`,"font-weight":`bold`}},{value:`header2`,text:`H2`,styleForRenderMenuList:{"font-size":`24px`,"font-weight":`bold`}},{value:`header3`,text:`H3`,styleForRenderMenuList:{"font-size":`18px`,"font-weight":`bold`}},{value:`header4`,text:`H4`,styleForRenderMenuList:{"font-size":`16px`,"font-weight":`bold`}},{value:`header5`,text:`H5`,styleForRenderMenuList:{"font-size":`13px`,"font-weight":`bold`}},{value:`paragraph`,text:Z(`header.text`)}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return CL(e)},e.prototype.isDisabled=function(e){return wL(e)},e.prototype.exec=function(e,t){TL(e,t.toString())},e}(),EL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return CL(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return wL(e)},e.prototype.exec=function(e,t){var n=this.type;TL(e,t===n?`paragraph`:n)},e}(),fme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return qI(t,e),t}(EL),pme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return qI(t,e),t}(EL),mme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return qI(t,e),t}(EL),hme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return qI(t,e),t}(EL),gme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return qI(t,e),t}(EL),_me={key:`headerSelect`,factory:function(){return new dme}},vme={key:`header1`,factory:function(){return new fme}},yme={key:`header2`,factory:function(){return new pme}},bme={key:`header3`,factory:function(){return new mme}},xme={key:`header4`,factory:function(){return new hme}},Sme={key:`header5`,factory:function(){return new gme}};function DL(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function OL(e){return function(t,n,r){var i=q(t);return(n=n.filter((function(e){return!!G.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Cme={renderElems:[Zpe,Qpe,$pe,eme,tme],elemsToHtml:[{type:`header1`,elemToHtml:DL(1)},{type:`header2`,elemToHtml:DL(2)},{type:`header3`,elemToHtml:DL(3)},{type:`header4`,elemToHtml:DL(4)},{type:`header5`,elemToHtml:DL(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:OL(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:OL(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:OL(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:OL(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:OL(5)}],menus:[_me,vme,yme,bme,xme,Sme],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=QI(V.nodes(n,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&X.isSelectionAtLineEnd(e,r[1])?K.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},kL=Object.assign,AL=Object.defineProperty,wme=kN([].concat),jL=!kL||vN((function(){if(yN&&kL({b:1},kL(AL({},`a`,{enumerable:!0,get:function(){AL(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})),kL({},e)[n]!=7||YF(kL({},t)).join(``)!=r}))?function(e,t){for(var n=sP(e),r=arguments.length,i=1,a=xF.f,o=wN.f;r>i;)for(var s,c=MN(arguments[i++]),l=a?wme(YF(c),a(c)):YF(c),u=l.length,d=0;u>d;)s=l[d++],yN&&!xN(o,c,s)||(n[s]=c[s]);return n}:kL;function ML(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}DF({target:`Object`,stat:!0,forced:Object.assign!==jL},{assign:jL});var Tme={selector:`font`,preParseHtml:function(e){var t=q(e);if(WI(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},NL=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=V.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||!!QI(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=q(`<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=q(r).attr(`data-value`);i===`0`?V.removeMark(e,t):V.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=q(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=q(`<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=q(`
<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}(),Eme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=Ape,t.mark=`color`,t}return qI(t,e),t}(NL),Dme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=jpe,t.mark=`bgColor`,t}return qI(t,e),t}(NL),PL=`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(`.`),Ome={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&ML(a,{color:r}),i&&ML(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!G.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((HI(t)||WI(n=q(t))!==`span`)&&(n=q(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),UI(n)):t},preParseHtml:[Tme],parseStyleHtml:function(e,t,n){var r=q(e);if(!G.isText(t))return t;var i=t,a=GI(r,`color`);a&&(i.color=a);var o=GI(r,`background-color`);return o||=GI(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Eme},config:{colors:PL}},{key:`bgColor`,factory:function(){return new Dme},config:{colors:PL}}]},kme=/^(?:\w+:)?\/\/(\S+)$/,Ame=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,jme=/^[^\s\.]+\.\S{2,}$/,Mme=mF.includes;function FL(e){return e===void 0&&(e=`r`),e+`-`+lb()}function IL(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function LL(e,t,n,r){return YI(this,void 0,void 0,(function(){var i,a;return XI(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 RL(e,t,n){return YI(this,void 0,void 0,(function(){var r;return XI(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 zL(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 BL(e,t){return{type:`link`,url:IL(e),children:t?[{text:t}]:[]}}function VL(e,t,n){return YI(this,void 0,void 0,(function(){var r,i,a;return XI(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),zL(e)?[2]:[4,LL(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,RL(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(W.isCollapsed(i)?(e.insertText(` `),a=BL(r,t),K.insertNodes(e,a),e.insertFragment([{text:` `}])):V.string(e,i)===t?(a=BL(r),K.wrapNodes(e,a,{split:!0}),K.collapse(e,{edge:`end`})):(e.deleteFragment(),a=BL(r,t),K.insertNodes(e,a))),[2]}}))}))}DF({target:`Array`,proto:!0},{includes:function(e){return Mme(this,e,arguments.length>1?arguments[1]:void 0)}}),kI(`includes`);var Nme={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return Lb(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},Pme={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);return(t=t.filter((function(e){return!!G.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 HL(){return FL(`w-e-insert-link`)}var Fme=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=HL(),this.urlInputId=HL(),this.buttonId=HL()}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 zL(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=QI(hM(Z(`link.text`),r),2),s=o[0],c=q(o[1]),l=QI(hM(Z(`link.url`),i),2),u=l[0],d=q(l[1]),f=QI(gM(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=q(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),VL(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||W.isCollapsed(t))c.val(``);else{var h=V.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function UL(){return FL(`w-e-update-link`)}var Ime=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=pL,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=UL(),this.buttonId=UL()}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=QI(hM(Z(`link.url`),t),2),i=r[0],a=q(r[1]),o=QI(gM(n,Z(`common.ok`)),1)[0];if(this.$content==null){var s=q(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=X.getSelectedNodeByType(e,`link`);(function(e,t,n){YI(this,void 0,void 0,(function(){var r,i;return XI(this,(function(a){switch(a.label){case 0:return n?[4,LL(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,RL(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:IL(r)},K.setNodes(e,i,{match:function(e){return X.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?H.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}(),Lme=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)||K.unwrapNodes(e,{match:function(e){return X.checkNodeType(e,`link`)}})},e}(),Rme=function(){function e(){this.title=Z(`link.view`),this.iconSvg=mL,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}(),WL={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},zme={renderElems:[Nme],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:[Pme],menus:[{key:`insertLink`,factory:function(){return new Fme},config:WL},{key:`editLink`,factory:function(){return new Ime},config:WL},{key:`unLink`,factory:function(){return new Lme}},{key:`viewLink`,factory:function(){return new Rme}}],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(kme);if(!t)return!1;var n=t[1];return!(!n||!Ame.test(n)&&!jme.test(n))}(t)){if(!zL(i)){var r=i.selection;r!=null&&VL(i,V.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=QI(e,2),n=t[0],a=t[1];return X.getNodeType(n)===`link`&&H.string(n)===``?K.removeNodes(i,{at:a}):r([n,a])},i}},Bme=kN(1 .valueOf),Vme=_N.RangeError,Hme=_N.RangeError,GL=_N.String,KL=Math.floor,qL=kN((function(e){var t=WF(NN(this)),n=``,r=oF(e);if(r<0||r==1/0)throw Vme(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),JL=kN(``.slice),YL=kN(1 .toFixed),XL=function(e,t,n){return t===0?n:t%2==1?XL(e,t-1,n*e):XL(e*e,t/2,n)},ZL=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=KL(i/1e7)},QL=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=KL(r/t),r=r%t*1e7},$L=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=GL(e[t]);n=n===``?r:n+qL(`0`,7-r.length)+r}return n};function eR(e,t){return`w-e-image-container-`+X.findKey(e,t).id}DF({target:`Number`,proto:!0,forced:vN((function(){return YL(8e-5,3)!==`0.000`||YL(.9,0)!==`1`||YL(1.255,2)!==`1.25`||YL(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!vN((function(){YL({})}))},{toFixed:function(e){var t,n,r,i,a=Bme(this),o=oF(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw Hme(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return GL(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*XL(2,69,1))-69)<0?a*XL(2,-t,1):a/XL(2,t,1),n*=4503599627370496,(t=52-t)>0){for(ZL(s,0,n),r=o;r>=7;)ZL(s,1e7,0),r-=7;for(ZL(s,XL(10,r,1),0),r=t-1;r>=23;)QL(s,1<<23),r-=23;QL(s,1<<r),ZL(s,1,1),QL(s,2),l=$L(s)}else ZL(s,0,n),ZL(s,1<<-t,0),l=$L(s)+qL(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+qL(`0`,o-i)+l:JL(l,0,i-o)+`.`+JL(l,i-o)):c+l}});var Ume={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 _=Lb(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=q(`body`),a=eR(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=q(`#`+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=pb((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:JI(JI({},t.style),{width:r+`px`,height:a+`px`})};K.setNodes(e,o,{at:X.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),Lb(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=q(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,Lb(`div`,{className:`w-e-image-dragger left-top`}),Lb(`div`,{className:`w-e-image-dragger right-top`}),Lb(`div`,{className:`w-e-image-dragger left-bottom`}),Lb(`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),Lb(`div`,{id:eR(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},Wme={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:GI(r,`width`),height:GI(r,`height`)},children:[{text:``}]}}};function tR(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),YI(this,void 0,void 0,(function(){var a,o;return XI(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 YI(this,void 0,void 0,(function(){var r;return XI(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=``),YI(this,void 0,void 0,(function(){var i,a,o;return XI(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:IL(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),iR(e)||(K.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function iR(e){var t=e.selection;return t==null||!W.isCollapsed(t)||!!QI(V.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`||!!V.isVoid(e,t)},universal:!0}),1)[0]}function aR(){return FL(`w-e-insert-image`)}var Gme=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=QI(hM(Z(`image.src`),r),2),c=s[0],l=q(s[1]),u=QI(hM(Z(`image.desc`),i),2),d=u[0],f=q(u[1]),p=QI(hM(Z(`image.link`),a),2),m=p[0],h=q(p[1]),g=QI(gM(o,Z(`common.ok`)),1)[0];if(this.$content==null){var _=q(`<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}(),Kme=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)||K.removeNodes(e,{match:function(e){return X.checkNodeType(e,`image`)}})},e}();function oR(){return FL(`w-e-edit-image`)}var qme=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=pL,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||!W.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=QI(hM(Z(`image.src`),r),2),l=c[0],u=q(c[1]),d=QI(hM(Z(`image.desc`),i),2),f=d[0],p=q(d[1]),m=QI(hM(Z(`image.link`),a),2),h=m[0],g=q(m[1]),_=QI(gM(o,Z(`common.ok`)),1)[0];if(this.$content==null){var v=q(`<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={}),YI(this,void 0,void 0,(function(){var a,o,s,c,l,u;return XI(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:JI(JI({},s===void 0?{}:s),i)},K.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}(),Jme=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=mL,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:JI(JI({},i===void 0?{}:i),{width:this.value,height:``})};K.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),Yme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return qI(t,e),t}(sR),Xme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return qI(t,e),t}(sR),Zme=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return qI(t,e),t}(sR),cR={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Qme={renderElems:[Ume],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:[Wme],menus:[{key:`insertImage`,factory:function(){return new Gme},config:cR},{key:`deleteImage`,factory:function(){return new Kme}},{key:`editImage`,factory:function(){return new qme},config:cR},{key:`viewImageLink`,factory:function(){return new Jme}},{key:`imageWidth30`,factory:function(){return new Yme}},{key:`imageWidth50`,factory:function(){return new Xme}},{key:`imageWidth100`,factory:function(){return new Zme}}],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}},$me={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),Lb(`div`,{style:{margin:`5px 0`}},Lb(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},Lb(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=X.findPath(n,e),i={checked:t.target.checked};K.setNodes(n,i,{at:r})}}})),Lb(`span`,null,t))}},ehe=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(V.isVoid(e,t)&&V.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);K.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),the={renderElems:[$me],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=q(e).find(`li`),n=q(`<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=q(e);(t=t.filter((function(e){return!!G.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 ehe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&W.isCollapsed(r)){var i=X.getSelectedNodeByType(e,`todo`);if(i&&H.string(i).length===0)return void K.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},nhe={type:`blockquote`,renderElem:function(e,t,n){return Lb(`blockquote`,null,t)}},rhe={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);return(t=t.filter((function(e){return!!G.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},ihe=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||!QI(V.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`;K.setNodes(e,{type:n},{mode:`highest`})}},e}(),ahe={key:`blockquote`,factory:function(){return new ihe}},ohe=kN([].slice),she=HF(`slice`),che=vP(`species`),lR=_N.Array,lhe=Math.max;DF({target:`Array`,proto:!0,forced:!she},{slice:function(e,t){var n,r,i,a=PN(this),o=fF(a),s=lF(e,o),c=lF(t===void 0?o:t,o);if(kF(a)&&(n=a.constructor,(LF(n)&&(n===lR||kF(n.prototype))||IN(n)&&(n=n[che])===null)&&(n=void 0),n===lR||n===void 0))return ohe(a,s,c);for(r=new(n===void 0?lR:n)(lhe(c-s,0)),i=0;s<c;s++,i++)s in a&&MI(r,i,a[s]);return r.length=i,r}});var uhe={renderElems:[nhe],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[rhe],menus:[ahe],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=QI(V.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=V.end(e,s);if(mv.equals(c,i.focus)){var l=H.string(o);if(l&&l.slice(-1)===`
`)return e.deleteBackward(`character`),void K.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
`)},r}},dhe=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||!!QI(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=q(`<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=q(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=q(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),fhe={menus:[{key:`emotion`,factory:function(){return new dhe},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},phe={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},mhe={selector:`font`,preParseHtml:function(e){var t=q(e);if(WI(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,phe[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},hhe=kN(``.indexOf);DF({target:`String`,proto:!0,forced:!bL(`includes`)},{includes:function(e){return!!~hhe(WF(NN(this)),WF(yL(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 fN==`object`&&fN)||function(){return this}()||Function(`return this`)(),mR=Function.prototype,hR=mR.apply,ghe=mR.bind,gR=mR.call,_R=typeof Reflect==`object`&&Reflect.apply||(ghe?gR.bind(hR):function(){return gR.apply(hR,arguments)}),vR=Function.prototype,yR=vR.bind,bR=vR.call,_he=yR&&yR.bind(bR),xR=yR?function(e){return e&&_he(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}},vhe=xR({}.toString),yhe=xR(``.slice),jR=function(e){return yhe(vhe(e),8,-1)},MR=pR.Object,bhe=xR(``.split),NR=CR((function(){return!MR(`z`).propertyIsEnumerable(0)}))?function(e){return jR(e)==`String`?bhe(e,``):MR(e)}:MR,xhe=pR.TypeError,PR=function(e){if(e==null)throw xhe(`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`,She=pR.Object,YR=JR?function(e){return typeof e==`symbol`}:function(e){var t=zR(`Symbol`);return SR(t)&&BR(t.prototype,She(e))},Che=pR.String,whe=pR.TypeError,XR=function(e){if(SR(e))return e;throw whe(function(e){try{return Che(e)}catch{return`Object`}}(e)+` is not a function`)},The=pR.TypeError,Ehe=Object.defineProperty,ZR=pR[`__core-js_shared__`]||function(e,t){try{Ehe(pR,e,{value:t,configurable:!0,writable:!0})}catch{pR[e]=t}return t}(`__core-js_shared__`,{}),QR=pN((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)`})})),Dhe=pR.Object,$R=function(e){return Dhe(PR(e))},Ohe=xR({}.hasOwnProperty),ez=Object.hasOwn||function(e,t){return Ohe($R(e),t)},khe=0,Ahe=Math.random(),jhe=xR(1 .toString),tz=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+jhe(++khe+Ahe,36)},nz=QR(`wks`),rz=pR.Symbol,iz=rz&&rz.for,Mhe=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):Mhe(t)}return nz[e]},Nhe=pR.TypeError,Phe=az(`toPrimitive`),oz=function(e){var t=function(e,t){if(!IR(e)||YR(e))return e;var n,r,i=(n=e[Phe])==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 Nhe(`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 The(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return YR(t)?t:t+``},sz=pR.document,Fhe=IR(sz)&&IR(sz.createElement),cz=function(e){return Fhe?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])}},Ihe=/#|\.prototype\./,fz=function(e,t){var n=Rhe[Lhe(e)];return n==Bhe||n!=zhe&&(SR(t)?CR(t):!!t)},Lhe=fz.normalize=function(e){return String(e).replace(Ihe,`.`).toLowerCase()},Rhe=fz.data={},zhe=fz.NATIVE=`N`,Bhe=fz.POLYFILL=`P`,Vhe=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)}},Hhe=pR.String,Uhe=pR.TypeError,hz=function(e){if(IR(e))return e;throw Uhe(Hhe(e)+` is not an object`)},Whe=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 Whe(`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},Ghe=dz.f,Khe=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=!Vhe(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&ez(m,i),o=h[i],n&&(s=e.noTargetGet?(l=Ghe(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?Khe(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`},qhe=Math.ceil,Jhe=Math.floor,xz=function(e){var t=+e;return t!=t||t===0?0:(t>0?Jhe:qhe)(t)},Yhe=Math.min,Sz=function(e){return(t=e.length)>0?Yhe(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]`,Xhe=az(`toStringTag`),Zhe=pR.Object,Qhe=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=Zhe(e),Xhe))==`string`?n:Qhe?jR(t):(r=jR(t))==`Object`&&SR(t.callee)?`Arguments`:r},$he=xR(Function.toString);SR(ZR.inspectSource)||(ZR.inspectSource=function(e){return $he(e)});var Dz=ZR.inspectSource,Oz=function(){},ege=[],kz=zR(`Reflect`,`construct`),Az=/^\s*(?:class|function)\b/,tge=xR(Az.exec),nge=!Az.exec(Oz),jz=function(e){if(!SR(e))return!1;try{return kz(Oz,ege,e),!0}catch{return!1}},rge=!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 nge||!!tge(Az,Dz(e))}:jz,ige=az(`species`),Mz=pR.Array,Nz=function(e,t){return new(function(e){var t;return bz(e)&&(t=e.constructor,(rge(t)&&(t===Mz||bz(t.prototype))||IR(t)&&(t=t[ige])===null)&&(t=void 0)),t===void 0?Mz:t}(e))(t===0?0:t)},age=az(`species`),Pz=az(`isConcatSpreadable`),Fz=pR.TypeError,oge=KR>=51||!CR((function(){var e=[];return e[Pz]=!1,e.concat()[0]!==e})),sge=KR>=51||!CR((function(){var e=[];return(e.constructor={})[age]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),cge=function(e){if(!IR(e))return!1;var t=e[Pz];return t===void 0?bz(e):!!t};yz({target:`Array`,proto:!0,forced:!oge||!sge},{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(cge(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,lge=pR.String,Lz=function(e){if(Ez(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return lge(e)},uge=Math.max,dge=Math.min,Rz=function(e,t){var n=xz(e);return n<0?uge(n+t,0):dge(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}},fge={includes:zz(!0),indexOf:zz(!1)},Bz={},pge=fge.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++])&&(~pge(a,n)||Vz(a,n));return a},Uz=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Wz=Object.keys||function(e){return Hz(e,Uz)},mge=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},hge=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`,hge.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:mge(n,t)},gge=Uz.concat(`length`,`prototype`),nB={f:Object.getOwnPropertyNames||function(e){return Hz(e,gge)}},_ge=pR.Array,vge=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=_ge(vge(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},yge=xR([].slice),sB=function(e,t,n,r){r&&r.enumerable?e[t]=n:vz(e,t,n)},cB={f:az},bge=_z.f,lB=function(e){var t=LR.Symbol||={};ez(t,e)||bge(t,e,{value:cB.f(e)})},xge=Tz?{}.toString:function(){return`[object `+Ez(this)+`]`},Sge=_z.f,uB=az(`toStringTag`),dB=function(e,t,n,r){if(e){var i=n?e:e.prototype;ez(i,uB)||Sge(i,uB,{configurable:!0,value:t}),r&&!Tz&&vz(i,`toString`,xge)}},fB=pR.WeakMap,Cge=SR(fB)&&/native code/.test(Dz(fB)),pB=pR.TypeError,wge=pR.WeakMap;if(Cge||ZR.state){var mB=ZR.state||=new wge,Tge=xR(mB.get),hB=xR(mB.has),Ege=xR(mB.set);Qz=function(e,t){if(hB(mB,e))throw new pB(`Object already initialized`);return t.facade=e,Ege(mB,e,t),t},$z=function(e){return Tge(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`),Dge=_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,Oge=kR.f,NB=xR([].push),PB=QR(`symbols`),FB=QR(`op-symbols`),IB=QR(`string-to-symbol-registry`),LB=QR(`symbol-to-string-registry`),kge=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 Dge(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(Oge,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(kge),(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=yge(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 Age=EB.valueOf;sB(EB,SB,(function(e){return ER(Age,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,jge=LR.Symbol,XB={},ZB=Function.prototype,Mge=wR&&Object.getOwnPropertyDescriptor,QB=ez(ZB,`name`),Nge={EXISTS:QB,PROPER:QB&&function(){}.name===`something`,CONFIGURABLE:QB&&(!wR||wR&&Mge(ZB,`name`).configurable)},Pge=!CR((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$B=Kz(`IE_PROTO`),eV=pR.Object,Fge=eV.prototype,tV=Pge?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?Fge: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},Ige=iV.IteratorPrototype,Lge=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 Rge=Nge.PROPER,aV=iV.BUGGY_SAFARI_ITERATORS,oV=az(`iterator`),zge=function(){return this},sV=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=tB(Ige,{next:AR(1,n)}),dB(e,i,!1,!0),XB[i]=Lge})(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]=zge),Rge&&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},Bge=_B.set,Vge=_B.getterFor(`Array Iterator`);sV(Array,`Array`,(function(e,t){Bge(this,{type:`Array Iterator`,target:FR(e),index:0,kind:t})}),(function(){var e=Vge(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 Hge=jge;lB(`asyncDispose`),lB(`dispose`),lB(`matcher`),lB(`metadata`),lB(`observable`),lB(`patternMatch`),lB(`replaceAll`);var fV=Hge,Uge=xR(``.charAt),pV=xR(``.charCodeAt),Wge=xR(``.slice),Gge=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?Uge(a,o):r:e?Wge(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),Kge=_B.set,qge=_B.getterFor(`String Iterator`);sV(String,`String`,(function(e){Kge(this,{type:`String Iterator`,string:Lz(e),index:0})}),(function(){var e,t=qge(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gge(n,r),t.index+=e.length,{value:e,done:!1})}));var Jge=cB.f(`iterator`),mV=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(pN((function(e){function t(n){return typeof fV==`function`&&typeof Jge==`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}))),Yge=nF.EXISTS,Xge=NP.f,hV=Function.prototype,Zge=kN(hV.toString),gV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Qge=kN(gV.exec);yN&&!Yge&&Xge(hV,`name`,{configurable:!0,get:function(){try{return Qge(gV,Zge(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=V.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!QI(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.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}(),$ge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=Mpe,t.mark=`fontSize`,t}return qI(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),e_e=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=Npe,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return qI(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&&ML(a,{fontSize:r}),i&&ML(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!G.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((HI(t)||WI(n=q(t))!==`span`)&&(n=q(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),UI(n)):t},preParseHtml:[mhe],parseStyleHtml:function(e,t,n){var r=q(e);if(!G.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=GI(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=GI(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 $ge},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 e_e},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=q(e),n=GI(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=QI(V.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:QI(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=QI(V.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=Ppe,t}return qI(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){K.setNodes(e,{indent:null},{match:function(e){return B.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=Fpe,t}return qI(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){K.setNodes(e,{indent:`2em`},{match:function(e){return B.isElement(e)},mode:`highest`})},t}(bV),CV={renderStyle:function(e,t){if(!B.isElement(e))return t;var n=e.indent,r=t;return n&&ML(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!B.isElement(e))return t;var n=e.indent;if(!n)return t;var r=q(t);return r.css(`text-indent`,n),UI(r)},preParseHtml:[yV],parseStyleHtml:function(e,t,n){var r=q(e);if(!B.isElement(t))return t;var i=t,a=GI(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=QI(V.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(V.isVoid(e,t)&&V.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=Ipe,t}return qI(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`left`},{match:function(t){return B.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=Lpe,t}return qI(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`right`},{match:function(t){return B.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=Rpe,t}return qI(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`center`},{match:function(t){return B.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=zpe,t}return qI(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`justify`},{match:function(t){return B.isElement(t)&&!e.isInline(t)}})},t}(wV),kV={renderStyle:function(e,t){if(!B.isElement(e))return t;var n=e.textAlign,r=t;return n&&ML(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!B.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=q(t);return r.css(`text-align`,n),UI(r)},parseStyleHtml:function(e,t,n){var r=q(e);if(!B.isElement(t))return t;var i=t,a=GI(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=QI(V.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?``:B.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){K.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),jV={renderStyle:function(e,t){if(!B.isElement(e))return t;var n=e.lineHeight,r=t;return n&&ML(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!B.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=q(t);return r.css(`line-height`,n),UI(r)},parseStyleHtml:function(e,t,n){var r=q(e);if(!B.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=GI(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 Sb(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Sb(`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){K.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=QI(e,2),i=t[0],a=t[1];if(X.getNodeType(i)!==`divider`)return n([i,a]);X.isLastNode(r,i)&&K.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]})},r}},RV=VF.map;DF({target:`Array`,proto:!0,forced:!HF(`map`)},{map:function(e){return RV(this,e,arguments.length>1?arguments[1]:void 0)}});var zV=kN([].join),BV=MN!=Object,VV=sL(`join`,`,`);DF({target:`Array`,proto:!0,forced:BV||!VV},{join:function(e){return zV(PN(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=H.string(t);K.removeNodes(e,{mode:`highest`});var r=n.split(`
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));K.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=V.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=ZI(a),s=o.next();!s.done;s=o.next()){var c=QI(s.value,1)[0];c&&i.push(H.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}K.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
`)}]}]};K.insertNodes(e,l,{mode:`highest`})},e}(),UV={key:`codeBlock`,factory:function(){return new HV}};DF({target:`String`,proto:!0,forced:tL(`anchor`)},{anchor:function(e){return eL(this,`a`,`name`,e)}}),gI(`match`,(function(e,t,n){return[function(t){var n=NN(this),r=t==null?void 0:eP(t,e);return r?xN(r,t,n):new RegExp(t)[e](WF(n))},function(e){var r=AP(this),i=WF(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return xI(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=xI(r,i))!==null;){var u=WF(s[0]);c[l]=u,u===``&&(r.lastIndex=vI(i,dF(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=H.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=QI(e,2),r=t[0],a=t[1],o=X.getNodeType(r);return o===`code`&&a.length<=1&&K.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(X.isLastNode(i,r)&&K.insertNodes(i,X.genEmptyParagraph(),{at:[a[0]+1]}),X.getNodeType(r.children[0])!==`code`&&(K.unwrapNodes(i),K.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`);V.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return Lb(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return Lb(`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=q(e);if(WI(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:q(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(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||!!W.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];K.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(V.start(e,r))}},e}(),JV=[Xpe,Ome,vV,CV,kV,jV,Qme,LV,fhe,zme,WV,uhe,Cme,ype,the,PV,KV,{menus:[{key:`enter`,factory:function(){return new qV}}]}];eN(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),eN(`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=U.previous(u),f=V.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];G.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return Lb(`div`,{style:s},Lb(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),Lb(`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 V.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,t_e=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},iq=eH.RegExp,aq=oH((function(){var e=iq(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),n_e=aq||oH((function(){return!iq(`a`,`y`).sticky})),r_e={BROKEN_CARET:aq||oH((function(){var e=iq(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:n_e,UNSUPPORTED_Y:aq},i_e=eH.RegExp,a_e=oH((function(){var e=i_e(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),o_e=eH.RegExp,s_e=oH((function(){var e=o_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),c_e=pW.get,l_e=yH(`native-string-replace`,String.prototype.replace),oq=RegExp.prototype.exec,sq=oq,u_e=aH(``.charAt),d_e=aH(``.indexOf),f_e=aH(``.replace),cq=aH(``.slice),lq=(rq=/b*/g,tU(oq,nq=/a/,`a`),tU(oq,rq,`a`),nq.lastIndex!==0||rq.lastIndex!==0),uq=r_e.BROKEN_CARET,dq=/()??/.exec(``)[1]!==void 0;(lq||dq||uq||a_e||s_e)&&(sq=function(e){var t,n,r,i,a,o,s,c=this,l=c_e(c),u=yG(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=tU(sq,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=uq&&c.sticky,m=tU(t_e,c),h=c.source,g=0,_=u;if(p&&(m=f_e(m,`y`,``),d_e(m,`g`)===-1&&(m+=`g`),_=cq(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&u_e(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),dq&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),lq&&(r=c.lastIndex),i=tU(oq,p?n:c,_),p?i?(i.input=cq(i.input,g),i[0]=cq(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:lq&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),dq&&i&&i.length>1&&tU(l_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 fq=sq;RW({target:`RegExp`,proto:!0,forced:/./.exec!==fq},{exec:fq});var pq=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(V.isVoid(e,t)&&V.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)?K.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):K.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),p_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>`,m_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>`,h_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=p_e,t}return ZK(t,e),t}(pq),g_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=m_e,t}return ZK(t,e),t}(pq),__e={key:`bulletedList`,factory:function(){return new h_e}},v_e={key:`numberedList`,factory:function(){return new g_e}},mq=[],y_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=U.previous(c),u=V.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+`>`,mq.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=U.next(c),u=V.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+=`</`+mq.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},b_e=WH(`species`),x_e=_K.filter;RW({target:`Array`,proto:!0,forced:!(LH>=51||!oH((function(){var e=[];return(e.constructor={})[b_e]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return x_e(this,e,arguments.length>1?arguments[1]:void 0)}});var hq=Function.prototype,gq=hq.apply,S_e=hq.bind,_q=hq.call,C_e=typeof Reflect==`object`&&Reflect.apply||(S_e?_q.bind(gq):function(){return _q.apply(gq,arguments)}),vq=(WH(`species`),RegExp.prototype),w_e=wG.charAt,T_e=function(e,t,n){return t+(n?w_e(e,t).length:1)},E_e=Math.floor,yq=aH(``.charAt),D_e=aH(``.replace),bq=aH(``.slice),O_e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,k_e=/\$([$&'`]|\d{1,2})/g,A_e=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=k_e;return i!==void 0&&(i=xH(i),c=O_e),D_e(a,c,(function(a,c){var l;switch(yq(c,0)){case`$`:return`$`;case`&`:return e;case"`":return bq(t,0,n);case`'`:return bq(t,o);case`<`:l=i[bq(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=E_e(u/10);return d===0?a:d<=s?r[d-1]===void 0?yq(c,1):r[d-1]+yq(c,1):a}l=r[u-1]}return l===void 0?``:l}))},j_e=eH.TypeError,M_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(fq,e,t);throw j_e(`RegExp#exec called on incompatible receiver`)},xq=WH(`replace`),N_e=Math.max,P_e=Math.min,F_e=aH([].concat),Sq=aH([].push),Cq=aH(``.indexOf),wq=aH(``.slice),I_e=`a`.replace(/./,`$0`)===`$0`,Tq=!!/./[xq]&&/./[xq](`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=Tq?`$`:`$0`;return[function(e,n){var r=mH(this),i=e==null?void 0:lU(e,xq);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`&&Cq(i,r)===-1&&Cq(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=M_e(a,o);if(f===null||(Sq(d,f),!l))break;yG(f[0])===``&&(a.lastIndex=T_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=N_e(P_e(yU(f.index),o.length),0),y=[],b=1;b<f.length;b++)Sq(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=F_e([_],y,v,o);x!==void 0&&Sq(S,x);var C=yG(C_e(i,void 0,S))}else C=A_e(_,o,v,y,x,i);v>=h&&(m+=wq(o,h,v)+C,h=v+_.length)}return m+wq(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=aH(e),c=t.exec;return c===fq||c===vq.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(vq,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`}))||!I_e||Tq);var L_e=eH.TypeError,Eq=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=Eq(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw L_e(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},R_e=Eq;function Dq(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=R_e(r,t,t,n,0,e===void 0?1:yU(e)),r}}),KU(`flat`),RW({global:!0},{globalThis:eH}),Wy&&(q.fn.append=Wy),Dy&&(q.fn.attr=Dy),Ky&&(q.fn.parent=Ky);var z_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(W.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?K.setNodes(i,{level:o-1}):K.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(W.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;K.setNodes(i,{level:l+1});return}}if(W.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,K.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`||K.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[__e,v_e],elemsToHtml:[y_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=q(e);return(t=t.filter((function(e){return!!G.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return Dq(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=Dq(n);r===`ul`||r===`ol`;)r=Dq(n=n.parent()),t++;return t-1}(r),children:t}}}]},Oq=Jl((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 ql==`object`&&ql&&ql.Object===Object&&ql,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 te(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 M(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ne(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var re=Array.prototype,ie=Function.prototype,ae=Object.prototype,oe=E[`__core-js_shared__`],se=ie.toString,N=ae.hasOwnProperty,ce=function(){var e=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),le=ae.toString,ue=RegExp(`^`+se.call(N).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),de=ee?E.Buffer:void 0,fe=E.Symbol,pe=E.Uint8Array,me=ae.propertyIsEnumerable,he=re.splice,ge=fe?fe.toStringTag:void 0,P=Object.getOwnPropertySymbols,_e=de?de.isBuffer:void 0,ve=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ye=Ue(E,`DataView`),be=Ue(E,`Map`),F=Ue(E,`Promise`),xe=Ue(E,`Set`),Se=Ue(E,`WeakMap`),Ce=Ue(Object,`create`),we=qe(ye),Te=qe(be),Ee=qe(F),De=qe(xe),I=qe(Se),L=fe?fe.prototype:void 0,Oe=L?L.valueOf:void 0;function R(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 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.__data__=new Ae;++t<n;)this.add(e[t])}function Me(e){var t=this.__data__=new ke(e);this.size=t.size}function Ne(e,t){var n=Xe(e),r=!n&&Ye(e),i=!n&&!r&&Ze(e),a=!n&&!r&&!i&&nt(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&&!N.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ke(l,c))||s.push(l);return s}function Pe(e,t){for(var n=e.length;n--;)if(Je(e[n][0],t))return n;return-1}function Fe(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:ge&&ge in Object(e)?function(e){var t=N.call(e,ge),n=e[ge];try{e[ge]=void 0;var r=!0}catch{}var i=le.call(e);return r&&(t?e[ge]=n:delete e[ge]),i}(e):function(e){return le.call(e)}(e)}function Ie(e){return tt(e)&&Fe(e)==i}function Le(e,t,n,r,l){return e===t||(e==null||t==null||!tt(e)&&!tt(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=Xe(e),x=Xe(t),S=v?a:Ge(e),C=x?a:Ge(t),w=(S=S==i?f:S)==f,T=(C=C==i?f:C)==f,E=S==C;if(E&&Ze(e)){if(!Ze(t))return!1;v=!0,w=!1}if(E&&!w)return p||=new Me,v||nt(e)?Be(e,t,n,r,l,p):function(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!a(new pe(e),new pe(t)));case o:case s:case d:return Je(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=M;case h:var p=1&r;if(f||=ne,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var x=Be(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&&N.call(e,`__wrapped__`),O=T&&N.call(t,`__wrapped__`);if(D||O){var ee=D?e.value():e,k=O?t.value():t;return p||=new Me,l(ee,k,n,r,p)}}return E?(p||=new Me,function(e,t,n,r,i,a){var o=1&n,s=Ve(e),c=s.length;if(c!=Ve(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:N.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,Le,l))}function Re(e){return!(!et(e)||function(e){return!!ce&&ce in e}(e))&&(Qe(e)?ue:x).test(qe(e))}function ze(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ae,t!==r)return ve(e);var t,n,r,i=[];for(var a in Object(e))N.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Be(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 je: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(!te(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 Ve(e){return function(e,t,n){var r=t(e);return Xe(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,rt,We)}function He(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 Ue(e,t){var n=function(e,t){return e?.[t]}(e,t);return Re(n)?n:void 0}R.prototype.clear=function(){this.__data__=Ce?Ce(null):{},this.size=0},R.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},R.prototype.get=function(e){var t=this.__data__;if(Ce){var r=t[e];return r===n?void 0:r}return N.call(t,e)?t[e]:void 0},R.prototype.has=function(e){var t=this.__data__;return Ce?t[e]!==void 0:N.call(t,e)},R.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Ce&&t===void 0?n:t,this},ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=Pe(t,e);return!(n<0)&&(n==t.length-1?t.pop():he.call(t,n,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,n=Pe(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Pe(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Pe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new R,map:new(be||ke),string:new R}},Ae.prototype.delete=function(e){var t=He(this,e).delete(e);return this.size-=+!!t,t},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){var n=He(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},je.prototype.add=je.prototype.push=function(e){return this.__data__.set(e,n),this},je.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.clear=function(){this.__data__=new ke,this.size=0},Me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Me.prototype.get=function(e){return this.__data__.get(e)},Me.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!be||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ae(r)}return n.set(e,t),this.size=n.size,this};var We=P?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}(P(e),(function(t){return me.call(e,t)})))}:function(){return[]},Ge=Fe;function Ke(e,t){return!!(t??=r)&&(typeof e==`number`||S.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){if(e!=null){try{return se.call(e)}catch{}try{return e+``}catch{}}return``}function Je(e,t){return e===t||e!=e&&t!=t}(ye&&Ge(new ye(new ArrayBuffer(1)))!=b||be&&Ge(new be)!=u||F&&Ge(F.resolve())!=p||xe&&Ge(new xe)!=h||Se&&Ge(new Se)!=v)&&(Ge=function(e){var t=Fe(e),n=t==f?e.constructor:void 0,r=n?qe(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 Ye=Ie(function(){return arguments}())?Ie:function(e){return tt(e)&&N.call(e,`callee`)&&!me.call(e,`callee`)},Xe=Array.isArray,Ze=_e||function(){return!1};function Qe(e){if(!et(e))return!1;var t=Fe(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function $e(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function et(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function tt(e){return typeof e==`object`&&!!e}var nt=j?function(e){return function(t){return e(t)}}(j):function(e){return tt(e)&&$e(e.length)&&!!C[Fe(e)]};function rt(e){return(t=e)!=null&&$e(t.length)&&!Qe(t)?Ne(e):ze(e);var t}e.exports=function(e,t){return Le(e,t)}}));eN(`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`}}),eN(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var kq=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Aq(e){var t={exports:{}};return e(t,t.exports),t.exports}var jq,Mq,Nq=function(e){return e&&e.Math==Math&&e},Pq=Nq(typeof globalThis==`object`&&globalThis)||Nq(typeof window==`object`&&window)||Nq(typeof self==`object`&&self)||Nq(typeof kq==`object`&&kq)||function(){return this}()||Function(`return this`)(),Fq=function(e){try{return!!e()}catch{return!0}},Iq=!Fq((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Lq=Function.prototype.call,Rq=Lq.bind?Lq.bind(Lq):function(){return Lq.apply(Lq,arguments)},zq={}.propertyIsEnumerable,Bq=Object.getOwnPropertyDescriptor,B_e={f:Bq&&!zq.call({1:2},1)?function(e){var t=Bq(this,e);return!!t&&t.enumerable}:zq},Vq=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Hq=Function.prototype,Uq=Hq.bind,Wq=Hq.call,V_e=Uq&&Uq.bind(Wq),Gq=Uq?function(e){return e&&V_e(Wq,e)}:function(e){return e&&function(){return Wq.apply(e,arguments)}},H_e=Gq({}.toString),U_e=Gq(``.slice),Kq=function(e){return U_e(H_e(e),8,-1)},qq=Pq.Object,W_e=Gq(``.split),Jq=Fq((function(){return!qq(`z`).propertyIsEnumerable(0)}))?function(e){return Kq(e)==`String`?W_e(e,``):qq(e)}:qq,G_e=Pq.TypeError,Yq=function(e){if(e==null)throw G_e(`Can't call method on `+e);return e},Xq=function(e){return Jq(Yq(e))},Zq=function(e){return typeof e==`function`},Qq=function(e){return typeof e==`object`?e!==null:Zq(e)},K_e=function(e){return Zq(e)?e:void 0},$q=function(e,t){return arguments.length<2?K_e(Pq[e]):Pq[e]&&Pq[e][t]},eJ=Gq({}.isPrototypeOf),tJ=$q(`navigator`,`userAgent`)||``,nJ=Pq.process,rJ=Pq.Deno,iJ=nJ&&nJ.versions||rJ&&rJ.version,aJ=iJ&&iJ.v8;aJ&&(Mq=(jq=aJ.split(`.`))[0]>0&&jq[0]<4?1:+(jq[0]+jq[1])),!Mq&&tJ&&(!(jq=tJ.match(/Edge\/(\d+)/))||jq[1]>=74)&&(jq=tJ.match(/Chrome\/(\d+)/))&&(Mq=+jq[1]);var oJ=Mq,sJ=!!Object.getOwnPropertySymbols&&!Fq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oJ&&oJ<41})),cJ=sJ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,q_e=Pq.Object,lJ=cJ?function(e){return typeof e==`symbol`}:function(e){var t=$q(`Symbol`);return Zq(t)&&eJ(t.prototype,q_e(e))},J_e=Pq.String,uJ=function(e){try{return J_e(e)}catch{return`Object`}},Y_e=Pq.TypeError,dJ=function(e){if(Zq(e))return e;throw Y_e(uJ(e)+` is not a function`)},fJ=function(e,t){var n=e[t];return n==null?void 0:dJ(n)},X_e=Pq.TypeError,Z_e=Object.defineProperty,pJ=function(e,t){try{Z_e(Pq,e,{value:t,configurable:!0,writable:!0})}catch{Pq[e]=t}return t},mJ=Pq[`__core-js_shared__`]||pJ(`__core-js_shared__`,{}),hJ=Aq((function(e){(e.exports=function(e,t){return mJ[e]||(mJ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Q_e=Pq.Object,gJ=function(e){return Q_e(Yq(e))},$_e=Gq({}.hasOwnProperty),_J=Object.hasOwn||function(e,t){return $_e(gJ(e),t)},eve=0,tve=Math.random(),nve=Gq(1 .toString),vJ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+nve(++eve+tve,36)},yJ=hJ(`wks`),bJ=Pq.Symbol,xJ=bJ&&bJ.for,rve=cJ?bJ:bJ&&bJ.withoutSetter||vJ,SJ=function(e){if(!_J(yJ,e)||!sJ&&typeof yJ[e]!=`string`){var t=`Symbol.`+e;sJ&&_J(bJ,e)?yJ[e]=bJ[e]:yJ[e]=cJ&&xJ?xJ(t):rve(t)}return yJ[e]},ive=Pq.TypeError,ave=SJ(`toPrimitive`),CJ=function(e){var t=function(e,t){if(!Qq(e)||lJ(e))return e;var n,r=fJ(e,ave);if(r){if(t===void 0&&(t=`default`),n=Rq(r,e,t),!Qq(n)||lJ(n))return n;throw ive(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Zq(n=e.toString)&&!Qq(r=Rq(n,e))||Zq(n=e.valueOf)&&!Qq(r=Rq(n,e))||t!==`string`&&Zq(n=e.toString)&&!Qq(r=Rq(n,e)))return r;throw X_e(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return lJ(t)?t:t+``},wJ=Pq.document,ove=Qq(wJ)&&Qq(wJ.createElement),TJ=function(e){return ove?wJ.createElement(e):{}},EJ=!Iq&&!Fq((function(){return Object.defineProperty(TJ(`div`),`a`,{get:function(){return 7}}).a!=7})),DJ=Object.getOwnPropertyDescriptor,OJ={f:Iq?DJ:function(e,t){if(e=Xq(e),t=CJ(t),EJ)try{return DJ(e,t)}catch{}if(_J(e,t))return Vq(!Rq(B_e.f,e,t),e[t])}},sve=Pq.String,cve=Pq.TypeError,kJ=function(e){if(Qq(e))return e;throw cve(sve(e)+` is not an object`)},lve=Pq.TypeError,AJ=Object.defineProperty,jJ={f:Iq?AJ:function(e,t,n){if(kJ(e),t=CJ(t),kJ(n),EJ)try{return AJ(e,t,n)}catch{}if(`get`in n||`set`in n)throw lve(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},MJ=Iq?function(e,t,n){return jJ.f(e,t,Vq(1,n))}:function(e,t,n){return e[t]=n,e},uve=Gq(Function.toString);Zq(mJ.inspectSource)||(mJ.inspectSource=function(e){return uve(e)});var NJ,PJ,FJ,IJ=mJ.inspectSource,LJ=Pq.WeakMap,dve=Zq(LJ)&&/native code/.test(IJ(LJ)),RJ=hJ(`keys`),zJ=function(e){return RJ[e]||(RJ[e]=vJ(e))},BJ={},VJ=Pq.TypeError,fve=Pq.WeakMap;if(dve||mJ.state){var HJ=mJ.state||=new fve,pve=Gq(HJ.get),UJ=Gq(HJ.has),mve=Gq(HJ.set);NJ=function(e,t){if(UJ(HJ,e))throw new VJ(`Object already initialized`);return t.facade=e,mve(HJ,e,t),t},PJ=function(e){return pve(HJ,e)||{}},FJ=function(e){return UJ(HJ,e)}}else{var WJ=zJ(`state`);BJ[WJ]=!0,NJ=function(e,t){if(_J(e,WJ))throw new VJ(`Object already initialized`);return t.facade=e,MJ(e,WJ,t),t},PJ=function(e){return _J(e,WJ)?e[WJ]:{}},FJ=function(e){return _J(e,WJ)}}var GJ={set:NJ,get:PJ,has:FJ,enforce:function(e){return FJ(e)?PJ(e):NJ(e,{})},getterFor:function(e){return function(t){var n;if(!Qq(t)||(n=PJ(t)).type!==e)throw VJ(`Incompatible receiver, `+e+` required`);return n}}},KJ=Function.prototype,hve=Iq&&Object.getOwnPropertyDescriptor,qJ=_J(KJ,`name`),JJ={EXISTS:qJ,PROPER:qJ&&function(){}.name===`something`,CONFIGURABLE:qJ&&(!Iq||Iq&&hve(KJ,`name`).configurable)},YJ=Aq((function(e){var t=JJ.CONFIGURABLE,n=GJ.get,r=GJ.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;Zq(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!_J(a,`name`)||t&&a.name!==d)&&MJ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Pq?l?e[n]=a:pJ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:MJ(e,n,a))})(Function.prototype,`toString`,(function(){return Zq(this)&&n(this).source||IJ(this)}))})),gve=Math.ceil,_ve=Math.floor,XJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?_ve:gve)(t)},vve=Math.max,yve=Math.min,ZJ=function(e,t){var n=XJ(e);return n<0?vve(n+t,0):yve(n,t)},bve=Math.min,QJ=function(e){return e>0?bve(XJ(e),9007199254740991):0},$J=function(e){return QJ(e.length)},xve=function(e){return function(t,n,r){var i,a=Xq(t),o=$J(a),s=ZJ(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),eY=Gq([].push),tY=function(e,t){var n,r=Xq(e),i=0,a=[];for(n in r)!_J(BJ,n)&&_J(r,n)&&eY(a,n);for(;t.length>i;)_J(r,n=t[i++])&&(~xve(a,n)||eY(a,n));return a},nY=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Sve=nY.concat(`length`,`prototype`),Cve={f:Object.getOwnPropertyNames||function(e){return tY(e,Sve)}},wve={f:Object.getOwnPropertySymbols},Tve=Gq([].concat),Eve=$q(`Reflect`,`ownKeys`)||function(e){var t=Cve.f(kJ(e)),n=wve.f;return n?Tve(t,n(e)):t},Dve=function(e,t){for(var n=Eve(t),r=jJ.f,i=OJ.f,a=0;a<n.length;a++){var o=n[a];_J(e,o)||r(e,o,i(t,o))}},Ove=/#|\.prototype\./,rY=function(e,t){var n=Ave[kve(e)];return n==Mve||n!=jve&&(Zq(t)?Fq(t):!!t)},kve=rY.normalize=function(e){return String(e).replace(Ove,`.`).toLowerCase()},Ave=rY.data={},jve=rY.NATIVE=`N`,Mve=rY.POLYFILL=`P`,Nve=rY,Pve=OJ.f,iY=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Pq:l?Pq[s]||pJ(s,{}):(Pq[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Pve(n,r))&&o.value:n[r],!Nve(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Dve(a,i)}(e.sham||i&&i.sham)&&MJ(a,`sham`,!0),YJ(n,r,a,e)}},aY={};aY[SJ(`toStringTag`)]=`z`;var oY=String(aY)===`[object z]`,Fve=SJ(`toStringTag`),Ive=Pq.Object,Lve=Kq(function(){return arguments}())==`Arguments`,sY=oY?Kq: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=Ive(e),Fve))==`string`?n:Lve?Kq(t):(r=Kq(t))==`Object`&&Zq(t.callee)?`Arguments`:r},Rve=Pq.String,cY=function(e){if(sY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Rve(e)},zve=/"/g,Bve=Gq(``.replace);iY({target:`String`,proto:!0,forced:Fq((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=cY(Yq(this)),r=`<a`,(r+=` name="`+Bve(cY(t),zve,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var lY,uY=function(){var e=kJ(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},dY=Pq.RegExp,fY=Fq((function(){var e=dY(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Vve=fY||Fq((function(){return!dY(`a`,`y`).sticky})),pY={BROKEN_CARET:fY||Fq((function(){var e=dY(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Vve,UNSUPPORTED_Y:fY},Hve=Object.keys||function(e){return tY(e,nY)},Uve=Iq?Object.defineProperties:function(e,t){kJ(e);for(var n,r=Xq(t),i=Hve(t),a=i.length,o=0;a>o;)jJ.f(e,n=i[o++],r[n]);return e},Wve=$q(`document`,`documentElement`),mY=zJ(`IE_PROTO`),hY=function(){},gY=function(e){return`<script>`+e+`<\/script>`},_Y=function(e){e.write(gY(``)),e.close();var t=e.parentWindow.Object;return e=null,t},vY=function(){try{lY=new ActiveXObject(`htmlfile`)}catch{}var e,t;vY=typeof document<`u`?document.domain&&lY?_Y(lY):((t=TJ(`iframe`)).style.display=`none`,Wve.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(gY(`document.F=Object`)),e.close(),e.F):_Y(lY);for(var n=nY.length;n--;)delete vY.prototype[nY[n]];return vY()};BJ[mY]=!0;var yY,bY,xY=Object.create||function(e,t){var n;return e===null?n=vY():(hY.prototype=kJ(e),n=new hY,hY.prototype=null,n[mY]=e),t===void 0?n:Uve(n,t)},Gve=Pq.RegExp,Kve=Fq((function(){var e=Gve(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),qve=Pq.RegExp,Jve=Fq((function(){var e=qve(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Yve=GJ.get,Xve=hJ(`native-string-replace`,String.prototype.replace),SY=RegExp.prototype.exec,CY=SY,Zve=Gq(``.charAt),Qve=Gq(``.indexOf),$ve=Gq(``.replace),wY=Gq(``.slice),TY=(bY=/b*/g,Rq(SY,yY=/a/,`a`),Rq(SY,bY,`a`),yY.lastIndex!==0||bY.lastIndex!==0),EY=pY.BROKEN_CARET,DY=/()??/.exec(``)[1]!==void 0;(TY||DY||EY||Kve||Jve)&&(CY=function(e){var t,n,r,i,a,o,s,c=this,l=Yve(c),u=cY(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Rq(CY,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=EY&&c.sticky,m=Rq(uY,c),h=c.source,g=0,_=u;if(p&&(m=$ve(m,`y`,``),Qve(m,`g`)===-1&&(m+=`g`),_=wY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Zve(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),DY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),TY&&(r=c.lastIndex),i=Rq(SY,p?n:c,_),p?i?(i.input=wY(i.input,g),i[0]=wY(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:TY&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),DY&&i&&i.length>1&&Rq(Xve,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=xY(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var OY=CY;iY({target:`RegExp`,proto:!0,forced:/./.exec!==OY},{exec:OY});var kY=Array.isArray||function(e){return Kq(e)==`Array`},AY=function(){},eye=[],jY=$q(`Reflect`,`construct`),MY=/^\s*(?:class|function)\b/,tye=Gq(MY.exec),nye=!MY.exec(AY),NY=function(e){if(!Zq(e))return!1;try{return jY(AY,eye,e),!0}catch{return!1}},PY=!jY||Fq((function(){var e;return NY(NY.call)||!NY(Object)||!NY((function(){e=!0}))||e}))?function(e){if(!Zq(e))return!1;switch(sY(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return nye||!!tye(MY,IJ(e))}:NY,FY=function(e,t,n){var r=CJ(t);r in e?jJ.f(e,r,Vq(0,n)):e[r]=n},rye=SJ(`species`),IY=function(e){return oJ>=51||!Fq((function(){var t=[];return(t.constructor={})[rye]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},iye=Gq([].slice),aye=IY(`slice`),oye=SJ(`species`),LY=Pq.Array,sye=Math.max;function RY(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 zY(e){var t=e.selection;if(t==null)return!1;var n=RY(V.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=RY(n,2)[1],i=V.start(e,r);if(mv.equals(t.anchor,i))return!0}return!1}function BY(e,t){var n,r,i=V.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}iY({target:`Array`,proto:!0,forced:!aye},{slice:function(e,t){var n,r,i,a=Xq(this),o=$J(a),s=ZJ(e,o),c=ZJ(t===void 0?o:t,o);if(kY(a)&&(n=a.constructor,(PY(n)&&(n===LY||kY(n.prototype))||Qq(n)&&(n=n[oye])===null)&&(n=void 0),n===LY||n===void 0))return iye(a,s,c);for(r=new(n===void 0?LY:n)(sye(c-s,0)),i=0;s<c;s++,i++)s in a&&FY(r,i,a[s]);return r.length=i,r}});var VY=Gq(Gq.bind),cye=SJ(`species`),HY=Pq.Array,lye=function(e,t){return new(function(e){var t;return kY(e)&&(t=e.constructor,(PY(t)&&(t===HY||kY(t.prototype))||Qq(t)&&(t=t[cye])===null)&&(t=void 0)),t===void 0?HY:t}(e))(t===0?0:t)},UY=Gq([].push),WY=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=gJ(c),h=Jq(m),g=function(e,t){return dJ(e),t===void 0?e:VY?VY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=$J(h),v=0,y=d||lye,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:UY(b,f)}else switch(e){case 4:return!1;case 7:UY(b,f)}return a?-1:r||i?i:b}},GY={forEach:WY(0),map:WY(1),filter:WY(2),some:WY(3),every:WY(4),find:WY(5),findIndex:WY(6),filterReject:WY(7)},uye=GY.map;iY({target:`Array`,proto:!0,forced:!IY(`map`)},{map:function(e){return uye(this,e,arguments.length>1?arguments[1]:void 0)}});var dye=oY?{}.toString:function(){return`[object `+sY(this)+`]`};function KY(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function qY(e){return KY(e).every((function(e){return!!e.isHeader}))}oY||YJ(Object.prototype,`toString`,dye,{unsafe:!0});var fye=JJ.PROPER,JY=RegExp.prototype,YY=JY.toString,pye=Gq(uY),mye=Fq((function(){return YY.call({source:`a`,flags:`b`})!=`/a/b`})),hye=fye&&YY.name!=`toString`;(mye||hye)&&YJ(RegExp.prototype,`toString`,(function(){var e=kJ(this),t=cY(e.source),n=e.flags;return`/`+t+`/`+cY(n===void 0&&eJ(JY,e)&&!(`flags`in JY)?pye(e):n)}),{unsafe:!0});var XY=SJ(`unscopables`),ZY=Array.prototype;ZY[XY]??jJ.f(ZY,XY,{configurable:!0,value:xY(null)});var gye=GY.find,QY=!0;`find`in[]&&[,].find((function(){QY=!1})),iY({target:`Array`,proto:!0,forced:QY},{find:function(e){return gye(this,e,arguments.length>1?arguments[1]:void 0)}}),ZY[XY].find=!0;var $Y=Function.prototype,eX=$Y.apply,_ye=$Y.bind,tX=$Y.call,nX=typeof Reflect==`object`&&Reflect.apply||(_ye?tX.bind(eX):function(){return tX.apply(eX,arguments)}),vye=SJ(`species`),rX=RegExp.prototype,iX=function(e,t,n,r){var i=SJ(e),a=!Fq((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Fq((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[vye]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Gq(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Gq(e),c=t.exec;return c===OY||c===rX.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));YJ(String.prototype,e,c[0]),YJ(rX,i,c[1])}r&&MJ(rX[i],`sham`,!0)},yye=SJ(`match`),bye=Pq.TypeError,xye=SJ(`species`),Sye=Gq(``.charAt),aX=Gq(``.charCodeAt),Cye=Gq(``.slice),wye=function(e){return function(t,n){var r,i,a=cY(Yq(t)),o=XJ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=aX(a,o))<55296||r>56319||o+1===s||(i=aX(a,o+1))<56320||i>57343?e?Sye(a,o):r:e?Cye(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),oX=function(e,t,n){return t+(n?wye(e,t).length:1)},Tye=Pq.Array,Eye=Math.max,sX=function(e,t,n){for(var r=$J(e),i=ZJ(t,r),a=ZJ(n===void 0?r:n,r),o=Tye(Eye(a-i,0)),s=0;i<a;i++,s++)FY(o,s,e[i]);return o.length=s,o},Dye=Pq.TypeError,cX=function(e,t){var n=e.exec;if(Zq(n)){var r=Rq(n,e,t);return r!==null&&kJ(r),r}if(Kq(e)===`RegExp`)return Rq(OY,e,t);throw Dye(`RegExp#exec called on incompatible receiver`)},lX=pY.UNSUPPORTED_Y,Oye=Math.min,uX=[].push,kye=Gq(/./.exec),dX=Gq(uX),fX=Gq(``.slice);iX(`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=cY(Yq(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!Qq(r=e)||!((i=r[yye])===void 0?Kq(r)==`RegExp`:i))return Rq(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=Rq(OY,p,a))&&!((c=p.lastIndex)>f&&(dX(u,fX(a,f,s.index)),s.length>1&&s.index<a.length&&nX(uX,u,sX(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&kye(p,``)||dX(u,``):dX(u,fX(a,f)),u.length>o?sX(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Rq(t,this,e,n)}:t,[function(t,n){var i=Yq(this),a=t==null?void 0:fJ(t,e);return a?Rq(a,t,i,n):Rq(r,cY(i),t,n)},function(e,i){var a=kJ(this),o=cY(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=kJ(e).constructor;return r===void 0||(n=kJ(r)[xye])==null?t:function(e){if(PY(e))return e;throw bye(uJ(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(lX?`g`:`y`),d=new c(lX?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return cX(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=lX?0:m;var g,_=cX(d,lX?fX(o,m):o);if(_===null||(g=Oye(QJ(d.lastIndex+(lX?m:0)),o.length))===p)m=oX(o,m,l);else{if(dX(h,fX(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(dX(h,_[v]),h.length===f)return h;m=p=g}}return dX(h,fX(o,p)),h}]}),!!Fq((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`})),lX);var pX=`
\v\f\r \xA0               \u2028\u2029`,mX=Gq(``.replace),hX=`[`+pX+`]`,Aye=RegExp(`^`+hX+hX+`*`),jye=RegExp(hX+hX+`*$`),gX=function(e){return function(t){var n=cY(Yq(t));return 1&e&&(n=mX(n,Aye,``)),2&e&&(n=mX(n,jye,``)),n}},Mye={start:gX(1),end:gX(2),trim:gX(3)},Nye=JJ.PROPER,Pye=Mye.trim;function _X(e){return e.length?e[0].tagName.toLowerCase():``}iY({target:`String`,proto:!0,forced:function(e){return Fq((function(){return!!pX[e]()||`​…᠎`[e]()!==`​…᠎`||Nye&&pX[e].name!==e}))}(`trim`)},{trim:function(){return Pye(this)}}),iY({global:!0},{globalThis:Pq}),Wy&&(q.fn.append=Wy),jy&&(q.fn.on=jy),eb&&(q.fn.focus=eb),Dy&&(q.fn.attr=Dy),Ay&&(q.fn.val=Ay),Vy&&(q.fn.html=Vy),ky&&(q.fn.dataset=ky),wy&&(q.fn.addClass=wy),Ty&&(q.fn.removeClass=Ty),Yy&&(q.fn.children=Yy),zy&&(q.fn.each=zy),Jy&&(q.fn.find=Jy);var vX=!1,yX=0,bX=0,xX=null,SX=null,CX=q(`body`);function wX(e){vX=!1,SX=null,xX=null,CX.off(`mousemove`,TX),CX.off(`mouseup`,wX)}CX.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(),vX=!0,yX=e.clientX,bX=t.getBoundingClientRect().width,CX.on(`mousemove`,TX),CX.on(`mouseup`,wX))}));var TX=pb((function(e){if(vX&&SX!=null&&xX!=null){e.preventDefault();var t=e.clientX,n=bX+(t-yX);(n=Math.floor(100*n)/100)<30&&(n=30),K.setNodes(SX,{width:n.toString()},{at:xX})}}),100),Fye={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||W.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=X.findPath(e,t),o=V.start(e,a),s=V.end(e,a),c=mv.compare(r,s)<=0&&mv.compare(r,o)>=0,l=mv.compare(i,s)<=0&&mv.compare(i,o)>=0;return!!(c&&l&&U.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return Lb(`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=V.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},Lb(`table`,{width:a,contentEditable:r},Lb(`colgroup`,null,KY(e).map((function(e){var t=e.width;return Lb(`col`,{width:t===void 0?`auto`:t})}))),Lb(`tbody`,null,t)))}},Iye={type:`table-row`,renderElem:function(e,t,n){return Lb(`tr`,null,t)}},Lye={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&&KY(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?Lb(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:pb((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;vX||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,SX=n,xX=X.findPath(n,e)):vX||(r.style.cursor=`auto`,SX=null,xX=null))}}),100)}},t):Lb(`td`,{colSpan:o,rowSpan:c},t)}},Rye={selector:`table`,preParseHtml:function(e){var t=q(e);if(_X(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]}},zye=GY.filter;iY({target:`Array`,proto:!0,forced:!IY(`filter`)},{filter:function(e){return zye(this,e,arguments.length>1?arguments[1]:void 0)}});var Bye=Math.floor,EX=Gq(``.charAt),Vye=Gq(``.replace),DX=Gq(``.slice),Hye=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uye=/\$([$&'`]|\d{1,2})/g,Wye=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Uye;return i!==void 0&&(i=gJ(i),c=Hye),Vye(a,c,(function(a,c){var l;switch(EX(c,0)){case`$`:return`$`;case`&`:return e;case"`":return DX(t,0,n);case`'`:return DX(t,o);case`<`:l=i[DX(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Bye(u/10);return d===0?a:d<=s?r[d-1]===void 0?EX(c,1):r[d-1]+EX(c,1):a}l=r[u-1]}return l===void 0?``:l}))},OX=SJ(`replace`),Gye=Math.max,Kye=Math.min,qye=Gq([].concat),kX=Gq([].push),AX=Gq(``.indexOf),jX=Gq(``.slice),Jye=`a`.replace(/./,`$0`)===`$0`,MX=!!/./[OX]&&/./[OX](`a`,`$0`)===``;iX(`replace`,(function(e,t,n){var r=MX?`$`:`$0`;return[function(e,n){var r=Yq(this),i=e==null?void 0:fJ(e,OX);return i?Rq(i,e,r,n):Rq(t,cY(r),e,n)},function(e,i){var a=kJ(this),o=cY(e);if(typeof i==`string`&&AX(i,r)===-1&&AX(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=Zq(i);c||(i=cY(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=cX(a,o);if(f===null||(kX(d,f),!l))break;cY(f[0])===``&&(a.lastIndex=oX(o,QJ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=cY((f=d[g])[0]),v=Gye(Kye(XJ(f.index),o.length),0),y=[],b=1;b<f.length;b++)kX(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=qye([_],y,v,o);x!==void 0&&kX(S,x);var C=cY(nX(i,void 0,S))}else C=Wye(_,o,v,y,x,i);v>=h&&(m+=jX(o,h,v)+C,h=v+_.length)}return m+jX(o,h)}]}),!!Fq((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Jye||MX);var Yye={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);(t=t.filter((function(e){return!!G.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:_X(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},Xye={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`}))}}},Zye={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(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||!W.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=q(`<div class="w-e-panel-content-table"></div>`),r=q(`<span>0 &times; 0</span>`),i=q(`<table></table>`),a=0;a<10;a++){for(var o=q(`<tr></tr>`),s=0;s<10;s++){var c=q(`<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=q(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){q(e).children().each((function(e){var t=q(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=q(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)&&K.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);K.insertNodes(e,a,{mode:`highest`})}},e}(),$ye=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)||K.removeNodes(e,{mode:`highest`})},e}(),ebe=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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=U.parent(i),l=U.next(c);K.insertNodes(e,o,{at:l})}}},e}(),tbe=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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?K.removeNodes(e,{mode:`highest`}):K.removeNodes(e,{at:i})}},e}(),NX={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},PX=TJ(`span`).classList,FX=PX&&PX.constructor&&PX.constructor.prototype,nbe=FX===Object.prototype?void 0:FX,rbe=GY.forEach,IX=function(e,t){var n=[].forEach;return!!n&&Fq((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return rbe(this,e,arguments.length>1?arguments[1]:void 0)},LX=function(e){if(e&&e.forEach!==IX)try{MJ(e,`forEach`,IX)}catch{e.forEach=IX}};for(var RX in NX)NX[RX]&&LX(Pq[RX]&&Pq[RX].prototype);LX(nbe);var ibe=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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){B.isElement(t)&&(t.children||[]).forEach((function(t){var r=X.findPath(e,t);if(r.length===i.length&&Oq(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&qY(o)&&(a.isHeader=!0),K.insertNodes(e,a,{at:r})}}))}))}}},e}(),abe=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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)K.removeNodes(e,{mode:`highest`});else{var s=X.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){B.isElement(t)&&(t.children||[]).forEach((function(t){var n=X.findPath(e,t);n.length===i.length&&Oq(n.slice(-1),i.slice(-1))&&K.removeNodes(e,{at:n})}))}))}}},e}(),obe=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&&qY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!W.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&&KY(r).forEach((function(t){return K.setNodes(e,{isHeader:n},{at:X.findPath(e,t)})}))}},e}(),sbe=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};K.setNodes(e,n,{mode:`highest`})}},e}(),cbe={renderElems:[Fye,Iye,Lye],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:[Rye],parseElemsHtml:[Yye,Xye,Zye],menus:[{key:`insertTable`,factory:function(){return new Qye}},{key:`deleteTable`,factory:function(){return new $ye}},{key:`insertTableRow`,factory:function(){return new ebe}},{key:`deleteTableRow`,factory:function(){return new tbe}},{key:`insertTableCol`,factory:function(){return new ibe}},{key:`deleteTableCol`,factory:function(){return new abe}},{key:`tableHeader`,factory:function(){return new obe}},{key:`tableFullWidth`,factory:function(){return new sbe}}],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(!zY(c)){var t=c.selection;if(t){var r=V.before(c,t);if(r){var i=BY(c,r),a=BY(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(X.getSelectedNodeByType(c,`table`)){var t=V.above(e);X.checkNodeType(t[0],`table-cell`)&&K.select(e,t[1]);var n=V.next(e);if(n)n[0]&&n[0].text&&(n=V.above(e,{at:n[1]})??n),K.select(e,n[1]);else{var r=c.children||[],i=r.length;if(X.checkNodeType(r[i-1],`table`)){var a=X.genEmptyParagraph();K.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){zY(c)||r(e)},c.normalizeNode=function(e){var t=RY(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();K.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):V.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(U.equals(n.path.slice(0,3),r.path.slice(0,3)))if(H.string(t).length!==0){var i=X.findPath(c,t),a={anchor:V.start(c,i),focus:V.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};eN(`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`}}),eN(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var zX=function(){return zX=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},zX.apply(this,arguments)};function BX(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 VX(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 HX(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 lbe(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 UX=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function WX(e){var t={exports:{}};return e(t,t.exports),t.exports}var GX,KX,qX=function(e){return e&&e.Math==Math&&e},Q=qX(typeof globalThis==`object`&&globalThis)||qX(typeof window==`object`&&window)||qX(typeof self==`object`&&self)||qX(typeof UX==`object`&&UX)||function(){return this}()||Function(`return this`)(),JX=function(e){try{return!!e()}catch{return!0}},YX=!JX((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),XX=Function.prototype.call,ZX=XX.bind?XX.bind(XX):function(){return XX.apply(XX,arguments)},QX={}.propertyIsEnumerable,$X=Object.getOwnPropertyDescriptor,ube={f:$X&&!QX.call({1:2},1)?function(e){var t=$X(this,e);return!!t&&t.enumerable}:QX},eZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tZ=Function.prototype,nZ=tZ.bind,rZ=tZ.call,dbe=nZ&&nZ.bind(rZ),iZ=nZ?function(e){return e&&dbe(rZ,e)}:function(e){return e&&function(){return rZ.apply(e,arguments)}},fbe=iZ({}.toString),pbe=iZ(``.slice),aZ=function(e){return pbe(fbe(e),8,-1)},oZ=Q.Object,mbe=iZ(``.split),sZ=JX((function(){return!oZ(`z`).propertyIsEnumerable(0)}))?function(e){return aZ(e)==`String`?mbe(e,``):oZ(e)}:oZ,hbe=Q.TypeError,cZ=function(e){if(e==null)throw hbe(`Can't call method on `+e);return e},lZ=function(e){return sZ(cZ(e))},uZ=function(e){return typeof e==`function`},dZ=function(e){return typeof e==`object`?e!==null:uZ(e)},gbe=function(e){return uZ(e)?e:void 0},fZ=function(e,t){return arguments.length<2?gbe(Q[e]):Q[e]&&Q[e][t]},pZ=iZ({}.isPrototypeOf),mZ=fZ(`navigator`,`userAgent`)||``,hZ=Q.process,gZ=Q.Deno,_Z=hZ&&hZ.versions||gZ&&gZ.version,vZ=_Z&&_Z.v8;vZ&&(KX=(GX=vZ.split(`.`))[0]>0&&GX[0]<4?1:+(GX[0]+GX[1])),!KX&&mZ&&(!(GX=mZ.match(/Edge\/(\d+)/))||GX[1]>=74)&&(GX=mZ.match(/Chrome\/(\d+)/))&&(KX=+GX[1]);var yZ=KX,bZ=!!Object.getOwnPropertySymbols&&!JX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yZ&&yZ<41})),xZ=bZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,_be=Q.Object,SZ=xZ?function(e){return typeof e==`symbol`}:function(e){var t=fZ(`Symbol`);return uZ(t)&&pZ(t.prototype,_be(e))},vbe=Q.String,CZ=function(e){try{return vbe(e)}catch{return`Object`}},ybe=Q.TypeError,wZ=function(e){if(uZ(e))return e;throw ybe(CZ(e)+` is not a function`)},TZ=function(e,t){var n=e[t];return n==null?void 0:wZ(n)},EZ=Q.TypeError,bbe=Object.defineProperty,DZ=function(e,t){try{bbe(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},OZ=Q[`__core-js_shared__`]||DZ(`__core-js_shared__`,{}),kZ=WX((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)`})})),xbe=Q.Object,AZ=function(e){return xbe(cZ(e))},Sbe=iZ({}.hasOwnProperty),jZ=Object.hasOwn||function(e,t){return Sbe(AZ(e),t)},Cbe=0,wbe=Math.random(),Tbe=iZ(1 .toString),MZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Tbe(++Cbe+wbe,36)},NZ=kZ(`wks`),PZ=Q.Symbol,FZ=PZ&&PZ.for,Ebe=xZ?PZ:PZ&&PZ.withoutSetter||MZ,IZ=function(e){if(!jZ(NZ,e)||!bZ&&typeof NZ[e]!=`string`){var t=`Symbol.`+e;bZ&&jZ(PZ,e)?NZ[e]=PZ[e]:NZ[e]=xZ&&FZ?FZ(t):Ebe(t)}return NZ[e]},Dbe=Q.TypeError,Obe=IZ(`toPrimitive`),LZ=function(e){var t=function(e,t){if(!dZ(e)||SZ(e))return e;var n,r=TZ(e,Obe);if(r){if(t===void 0&&(t=`default`),n=ZX(r,e,t),!dZ(n)||SZ(n))return n;throw Dbe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&uZ(n=e.toString)&&!dZ(r=ZX(n,e))||uZ(n=e.valueOf)&&!dZ(r=ZX(n,e))||t!==`string`&&uZ(n=e.toString)&&!dZ(r=ZX(n,e)))return r;throw EZ(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return SZ(t)?t:t+``},RZ=Q.document,kbe=dZ(RZ)&&dZ(RZ.createElement),zZ=function(e){return kbe?RZ.createElement(e):{}},BZ=!YX&&!JX((function(){return Object.defineProperty(zZ(`div`),`a`,{get:function(){return 7}}).a!=7})),VZ=Object.getOwnPropertyDescriptor,HZ={f:YX?VZ:function(e,t){if(e=lZ(e),t=LZ(t),BZ)try{return VZ(e,t)}catch{}if(jZ(e,t))return eZ(!ZX(ube.f,e,t),e[t])}},Abe=Q.String,jbe=Q.TypeError,UZ=function(e){if(dZ(e))return e;throw jbe(Abe(e)+` is not an object`)},Mbe=Q.TypeError,WZ=Object.defineProperty,GZ={f:YX?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 Mbe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},KZ=YX?function(e,t,n){return GZ.f(e,t,eZ(1,n))}:function(e,t,n){return e[t]=n,e},Nbe=iZ(Function.toString);uZ(OZ.inspectSource)||(OZ.inspectSource=function(e){return Nbe(e)});var qZ,JZ,YZ,XZ=OZ.inspectSource,ZZ=Q.WeakMap,QZ=uZ(ZZ)&&/native code/.test(XZ(ZZ)),$Z=kZ(`keys`),eQ=function(e){return $Z[e]||($Z[e]=MZ(e))},tQ={},nQ=Q.TypeError,Pbe=Q.WeakMap;if(QZ||OZ.state){var rQ=OZ.state||=new Pbe,Fbe=iZ(rQ.get),iQ=iZ(rQ.has),Ibe=iZ(rQ.set);qZ=function(e,t){if(iQ(rQ,e))throw new nQ(`Object already initialized`);return t.facade=e,Ibe(rQ,e,t),t},JZ=function(e){return Fbe(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(!dZ(t)||(n=JZ(t)).type!==e)throw nQ(`Incompatible receiver, `+e+` required`);return n}}},sQ=Function.prototype,Lbe=YX&&Object.getOwnPropertyDescriptor,cQ=jZ(sQ,`name`),lQ={EXISTS:cQ,PROPER:cQ&&function(){}.name===`something`,CONFIGURABLE:cQ&&(!YX||YX&&Lbe(sQ,`name`).configurable)},uQ=WX((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;uZ(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 uZ(this)&&n(this).source||XZ(this)}))})),Rbe=Math.ceil,zbe=Math.floor,dQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?zbe:Rbe)(t)},Bbe=Math.max,Vbe=Math.min,fQ=function(e,t){var n=dQ(e);return n<0?Bbe(n+t,0):Vbe(n,t)},Hbe=Math.min,pQ=function(e){return e>0?Hbe(dQ(e),9007199254740991):0},mQ=function(e){return pQ(e.length)},hQ=function(e){return function(t,n,r){var i,a=lZ(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)},Ube=gQ.indexOf,_Q=iZ([].push),vQ=function(e,t){var n,r=lZ(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++])&&(~Ube(a,n)||_Q(a,n));return a},yQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Wbe=yQ.concat(`length`,`prototype`),bQ={f:Object.getOwnPropertyNames||function(e){return vQ(e,Wbe)}},Gbe={f:Object.getOwnPropertySymbols},Kbe=iZ([].concat),qbe=fZ(`Reflect`,`ownKeys`)||function(e){var t=bQ.f(UZ(e)),n=Gbe.f;return n?Kbe(t,n(e)):t},Jbe=function(e,t){for(var n=qbe(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))}},Ybe=/#|\.prototype\./,xQ=function(e,t){var n=Zbe[Xbe(e)];return n==$be||n!=Qbe&&(uZ(t)?JX(t):!!t)},Xbe=xQ.normalize=function(e){return String(e).replace(Ybe,`.`).toLowerCase()},Zbe=xQ.data={},Qbe=xQ.NATIVE=`N`,$be=xQ.POLYFILL=`P`,SQ=xQ,exe=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=exe(n,r))&&o.value:n[r],!SQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Jbe(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]`,txe=IZ(`toStringTag`),nxe=Q.Object,rxe=aZ(function(){return arguments}())==`Arguments`,EQ=TQ?aZ: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=nxe(e),txe))==`string`?n:rxe?aZ(t):(r=aZ(t))==`Object`&&uZ(t.callee)?`Arguments`:r},ixe=Q.String,DQ=function(e){if(EQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ixe(e)},OQ=`
\v\f\r \xA0               \u2028\u2029`,kQ=iZ(``.replace),AQ=`[`+OQ+`]`,axe=RegExp(`^`+AQ+AQ+`*`),oxe=RegExp(AQ+AQ+`*$`),jQ=function(e){return function(t){var n=DQ(cZ(t));return 1&e&&(n=kQ(n,axe,``)),2&e&&(n=kQ(n,oxe,``)),n}},sxe={start:jQ(1),end:jQ(2),trim:jQ(3)},cxe=lQ.PROPER,lxe=sxe.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=q(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}CQ({target:`String`,proto:!0,forced:JX((function(){return!!OQ.trim()||cxe&&OQ.trim.name!==`trim`}))},{trim:function(){return lxe(this)}}),CQ({global:!0},{globalThis:Q}),Wy&&(q.fn.append=Wy),jy&&(q.fn.on=jy),eb&&(q.fn.focus=eb),Dy&&(q.fn.attr=Dy),Ay&&(q.fn.val=Ay),Vy&&(q.fn.html=Vy),Ky&&(q.fn.parent=Ky),Ey&&(q.fn.hasClass=Ey),Zy&&(q.fn.empty=Zy);var PQ,uxe={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=Lb(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:NQ(o,u,f)});else{var m=Lb(`video`,{poster:c,controls:!0},Lb(`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=Lb(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return Sb(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},dxe={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>`}},fxe=Object.keys||function(e){return vQ(e,yQ)},pxe=YX?Object.defineProperties:function(e,t){UZ(e);for(var n,r=lZ(t),i=fxe(t),a=i.length,o=0;a>o;)GZ.f(e,n=i[o++],r[n]);return e},FQ=fZ(`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:pxe(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},mxe=gQ.includes;CQ({target:`Array`,proto:!0},{includes:function(e){return mxe(this,e,arguments.length>1?arguments[1]:void 0)}}),WQ(`includes`);var hxe={selector:`iframe,video,p`,preParseHtml:function(e){var t=q(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=q(i))}}var o=MQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=q(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},GQ=iZ(iZ.bind),KQ=function(e,t){return wZ(e),t===void 0?e:GQ?GQ(e,t):function(){return e.apply(t,arguments)}},qQ=Array.isArray||function(e){return aZ(e)==`Array`},JQ=function(){},gxe=[],YQ=fZ(`Reflect`,`construct`),XQ=/^\s*(?:class|function)\b/,_xe=iZ(XQ.exec),vxe=!XQ.exec(JQ),ZQ=function(e){if(!uZ(e))return!1;try{return YQ(JQ,gxe,e),!0}catch{return!1}},QQ=!YQ||JX((function(){var e;return ZQ(ZQ.call)||!ZQ(Object)||!ZQ((function(){e=!0}))||e}))?function(e){if(!uZ(e))return!1;switch(EQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return vxe||!!_xe(XQ,XZ(e))}:ZQ,yxe=IZ(`species`),$Q=Q.Array,bxe=function(e,t){return new(function(e){var t;return qQ(e)&&(t=e.constructor,(QQ(t)&&(t===$Q||qQ(t.prototype))||dZ(t)&&(t=t[yxe])===null)&&(t=void 0)),t===void 0?$Q:t}(e))(t===0?0:t)},e$=iZ([].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=sZ(m),g=KQ(l,u),_=mQ(h),v=0,y=d||bxe,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)},xxe=n$.find,r$=!0;`find`in[]&&[,].find((function(){r$=!1})),CQ({target:`Array`,proto:!0,forced:r$},{find:function(e){return xxe(this,e,arguments.length>1?arguments[1]:void 0)}}),WQ(`find`);var Sxe=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`,Sxe,{unsafe:!0});var a$,o$,Cxe={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=q(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$=JX((function(){var e=c$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),wxe=l$||JX((function(){return!c$(`a`,`y`).sticky})),Txe={BROKEN_CARET:l$||JX((function(){var e=c$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:wxe,UNSUPPORTED_Y:l$},Exe=Q.RegExp,Dxe=JX((function(){var e=Exe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Oxe=Q.RegExp,kxe=JX((function(){var e=Oxe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Axe=oQ.get,jxe=kZ(`native-string-replace`,String.prototype.replace),u$=RegExp.prototype.exec,d$=u$,Mxe=iZ(``.charAt),Nxe=iZ(``.indexOf),Pxe=iZ(``.replace),f$=iZ(``.slice),p$=(o$=/b*/g,ZX(u$,a$=/a/,`a`),ZX(u$,o$,`a`),a$.lastIndex!==0||o$.lastIndex!==0),m$=Txe.BROKEN_CARET,h$=/()??/.exec(``)[1]!==void 0;(p$||h$||m$||Dxe||kxe)&&(d$=function(e){var t,n,r,i,a,o,s,c=this,l=Axe(c),u=DQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ZX(d$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=m$&&c.sticky,m=ZX(s$,c),h=c.source,g=0,_=u;if(p&&(m=Pxe(m,`y`,``),Nxe(m,`g`)===-1&&(m+=`g`),_=f$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Mxe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),h$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),p$&&(r=c.lastIndex),i=ZX(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&&ZX(jxe,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,Fxe=_$.bind,y$=_$.call,b$=typeof Reflect==`object`&&Reflect.apply||(Fxe?y$.bind(v$):function(){return y$.apply(v$,arguments)}),x$=(IZ(`species`),RegExp.prototype),Ixe=iZ(``.charAt),S$=iZ(``.charCodeAt),Lxe=iZ(``.slice),C$=function(e){return function(t,n){var r,i,a=DQ(cZ(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?Ixe(a,o):r:e?Lxe(a,o,o+2):i-56320+(r-55296<<10)+65536}},w$={codeAt:C$(!1),charAt:C$(!0)},Rxe=w$.charAt,zxe=function(e,t,n){return t+(n?Rxe(e,t).length:1)},Bxe=Math.floor,T$=iZ(``.charAt),Vxe=iZ(``.replace),E$=iZ(``.slice),Hxe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uxe=/\$([$&'`]|\d{1,2})/g,Wxe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Uxe;return i!==void 0&&(i=AZ(i),c=Hxe),Vxe(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=Bxe(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}))},Gxe=Q.TypeError,Kxe=function(e,t){var n=e.exec;if(uZ(n)){var r=ZX(n,e,t);return r!==null&&UZ(r),r}if(aZ(e)===`RegExp`)return ZX(g$,e,t);throw Gxe(`RegExp#exec called on incompatible receiver`)},D$=IZ(`replace`),qxe=Math.max,Jxe=Math.min,Yxe=iZ([].concat),O$=iZ([].push),k$=iZ(``.indexOf),A$=iZ(``.slice),Xxe=`a`.replace(/./,`$0`)===`$0`,j$=!!/./[D$]&&/./[D$](`a`,`$0`)===``;function M$(e){return e===void 0&&(e=`r`),e+`-`+lb()}(function(e,t,n,r){var i=IZ(e),a=!JX((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!JX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=iZ(/./[i]),c=function(e,t,n){var r=j$?`$`:`$0`;return[function(e,n){var r=cZ(this),i=e==null?void 0:TZ(e,D$);return i?ZX(i,e,r,n):ZX(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=uZ(i);c||(i=DQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Kxe(a,o);if(f===null||(O$(d,f),!l))break;DQ(f[0])===``&&(a.lastIndex=zxe(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=qxe(Jxe(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=Yxe([_],y,v,o);x!==void 0&&O$(S,x);var C=DQ(b$(i,void 0,S))}else C=Wxe(_,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=iZ(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,!!JX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Xxe||j$);var N$=Q.Promise,P$=function(e,t,n){for(var r in t)uQ(e,r,t[r],n);return e},Zxe=Q.String,Qxe=Q.TypeError,F$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=iZ(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`||uZ(e))return e;throw Qxe(`Can't set `+Zxe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),$xe=GZ.f,I$=IZ(`toStringTag`),L$=function(e,t,n){e&&!jZ(e=n?e:e.prototype,I$)&&$xe(e,I$,{configurable:!0,value:t})},R$=IZ(`species`),eSe=Q.TypeError,z$=function(e,t){if(pZ(t,e))return e;throw eSe(`Incorrect invocation`)},B$={},tSe=IZ(`iterator`),nSe=Array.prototype,rSe=IZ(`iterator`),V$=function(e){if(e!=null)return TZ(e,rSe)||TZ(e,`@@iterator`)||B$[EQ(e)]},iSe=Q.TypeError,H$=function(e,t,n){var r,i;UZ(e);try{if(!(r=TZ(e,`return`))){if(t===`throw`)throw n;return n}r=ZX(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return UZ(r),n},aSe=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 aSe(CZ(e)+` is not iterable`);if((u=i)!==void 0&&(B$.Array===u||nSe[tSe]===u)){for(a=0,o=mQ(e);o>a;a++)if((s=_(e[a]))&&pZ(W$,s))return s;return new U$(!1)}r=function(e,t){var n=arguments.length<2?V$(e):t;if(wZ(n))return UZ(ZX(n,e));throw iSe(CZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ZX(c,r)).done;){try{s=_(l.value)}catch(e){H$(r,`throw`,e)}if(typeof s==`object`&&s&&pZ(W$,s))return s}return new U$(!1)},K$=IZ(`iterator`),q$=!1;try{var oSe=0,J$={next:function(){return{done:!!oSe++}},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},sSe=Q.TypeError,cSe=IZ(`species`),e1=iZ([].slice),t1=/(?:ipad|iphone|ipod).*applewebkit/i.test(mZ),n1=aZ(Q.process)==`process`,r1=Q.setImmediate,i1=Q.clearImmediate,lSe=Q.process,a1=Q.Dispatch,uSe=Q.Function,o1=Q.MessageChannel,dSe=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(dSe(e),Y$.protocol+`//`+Y$.host)};r1&&i1||(r1=function(e){var t=e1(arguments,1);return c1[++s1]=function(){b$(uZ(e)?e:uSe(e),void 0,t)},X$(s1),s1},i1=function(e){delete c1[e]},n1?X$=function(e){lSe.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&&uZ(Q.postMessage)&&!Q.importScripts&&Y$&&Y$.protocol!==`file:`&&!JX(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},fSe=/ipad|iphone|ipod/i.test(mZ)&&Q.Pebble!==void 0,pSe=/web0s(?!.*chrome)/i.test(mZ),mSe=HZ.f,S1=x1.set,C1=Q.MutationObserver||Q.WebKitMutationObserver,w1=Q.document,T1=Q.process,E1=Q.Promise,D1=mSe(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||pSe||!C1||!w1?!fSe&&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},hSe=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=wZ(t),this.reject=wZ(n)},P1={f:function(e){return new hSe(e)}},F1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},gSe=typeof window==`object`,I1=x1.set,_Se=IZ(`species`),L1=`Promise`,R1=oQ.getterFor(L1),vSe=oQ.set,ySe=oQ.getterFor(L1),z1=N$&&N$.prototype,B1=N$,V1=z1,H1=Q.TypeError,U1=Q.document,W1=Q.process,G1=P1.f,bSe=G1,xSe=!!(U1&&U1.createEvent&&Q.dispatchEvent),K1=uZ(Q.PromiseRejectionEvent),q1=!1,J1=SQ(L1,(function(){var e=XZ(B1),t=e!==String(B1);if(!t&&yZ===66)return!0;if(yZ>=51&&/native code/.test(e))return!1;var n=new B1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[_Se]=r,!(q1=n.then((function(){}))instanceof r)||!t&&gSe&&!K1})),SSe=J1||!$$((function(e){B1.all(e).catch((function(){}))})),Y1=function(e){var t;return!(!dZ(e)||!uZ(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&&wSe(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))?ZX(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&CSe(e)}))}},Z1=function(e,t,n){var r,i;xSe?((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)},CSe=function(e){ZX(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},wSe=function(e){ZX(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{ZX(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),wZ(e),ZX(k1,this);var t=R1(this);try{e($1(t0,t),$1(e0,t))}catch(e){e0(t,e)}}).prototype,(k1=function(e){vSe(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=ySe(this),r=n.reactions,i=G1(function(e,t){var n,r=UZ(e).constructor;return r===void 0||(n=UZ(r)[cSe])==null?t:function(e){if(QQ(e))return e;throw sSe(CZ(e)+` is not a constructor`)}(n)}(this,B1));return i.ok=!uZ(e)||e,i.fail=uZ(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):bSe(e)},uZ(N$)&&z1!==Object.prototype)){M1=z1.then,q1||(uQ(z1,`then`,(function(e,t){var n=this;return new B1((function(e,t){ZX(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=``),BX(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return VX(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(){K.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=fZ(`Promise`),n=GZ.f;YX&&t&&!t[R$]&&n(t,R$,{configurable:!0,get:function(){return this}})}(),j1=fZ(L1),CQ({target:L1,stat:!0,forced:J1},{reject:function(e){var t=G1(this);return ZX(t.reject,void 0,e),t.promise}}),CQ({target:L1,stat:!0,forced:J1},{resolve:function(e){return function(e,t){if(UZ(e),dZ(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:SSe},{all:function(e){var t=this,n=G1(t),r=n.resolve,i=n.reject,a=F1((function(){var n=wZ(t.resolve),a=[],o=0,s=1;G$(e,(function(e){var c=o++,l=!1;s++,ZX(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=wZ(t.resolve);G$(e,(function(e){ZX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var TSe=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||!W.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=HX(hM(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=HX(hM(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=q(c),p=q(d),m=HX(gM(a,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var h=q(`<div></div>`);h.on(`click`,`#`+a,(function(n){return BX(t,void 0,void 0,(function(){var t,a;return VX(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}(),ESe=iZ([].join),DSe=sZ!=Object,OSe=function(e,t){var n=[].join;return!!n&&JX((function(){n.call(null,`,`,1)}))}();CQ({target:`Array`,proto:!0,forced:DSe||!OSe},{join:function(e){return ESe(lZ(this),e===void 0?`,`:e)}});var i0,a0,o0,kSe=!JX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),s0=eQ(`IE_PROTO`),c0=Q.Object,ASe=c0.prototype,l0=kSe?c0.getPrototypeOf:function(e){var t=AZ(e);if(jZ(t,s0))return t[s0];var n=t.constructor;return uZ(n)&&t instanceof n?n.prototype:t instanceof c0?ASe:null},u0=IZ(`iterator`),d0=!1;[].keys&&(`next`in(o0=[].keys())?(a0=l0(l0(o0)))!==Object.prototype&&(i0=a0):d0=!0),(i0==null||JX((function(){var e={};return i0[u0].call(e)!==e})))&&(i0={}),uZ(i0[u0])||uQ(i0,u0,(function(){return this}));var f0={IteratorPrototype:i0,BUGGY_SAFARI_ITERATORS:d0},jSe=f0.IteratorPrototype,MSe=function(){return this},NSe=lQ.PROPER,PSe=lQ.CONFIGURABLE,p0=f0.IteratorPrototype,m0=f0.BUGGY_SAFARI_ITERATORS,h0=IZ(`iterator`),FSe=function(){return this},g0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=VQ(jSe,{next:eZ(1,n)}),L$(e,i,!1),B$[i]=MSe})(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):uZ(s[h0])||uQ(s,h0,FSe)),L$(s,d,!0)),NSe&&i==`values`&&m&&m.name!==`values`&&(PSe?KZ(p,`name`,`values`):(f=!0,h=function(){return ZX(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},ISe=oQ.set,LSe=oQ.getterFor(`Array Iterator`),_0=g0(Array,`Array`,(function(e,t){ISe(this,{type:`Array Iterator`,target:lZ(e),index:0,kind:t})}),(function(){var e=LSe(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 RSe=w$.charAt,zSe=oQ.set,BSe=oQ.getterFor(`String Iterator`);g0(String,`String`,(function(e){zSe(this,{type:`String Iterator`,string:DQ(e),index:0})}),(function(){var e,t=BSe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=RSe(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,eZ(0,n)):e[r]=n},VSe=Q.Array,HSe=Math.max,y0=bQ.f,b0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],USe={f:function(e){return b0&&aZ(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=VSe(HSe(a-i,0)),s=0;i<a;i++,s++)v0(o,s,e[i]);return o.length=s,o}(b0)}}(e):y0(lZ(e))}},x0=JX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),S0=Object.isExtensible,C0=JX((function(){S0(1)}))||x0?function(e){return!!dZ(e)&&(!x0||aZ(e)!=`ArrayBuffer`)&&(!S0||S0(e))}:S0,WSe=!JX((function(){return Object.isExtensible(Object.preventExtensions({}))})),w0=WX((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=iZ([].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:USe.f}))},fastKey:function(e,t){if(!dZ(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 WSe&&n&&C0(e)&&!jZ(e,r)&&a(e),e}};tQ[r]=!0})),T0=w0.getWeakData,GSe=oQ.set,KSe=oQ.getterFor,qSe=n$.find,JSe=n$.findIndex,YSe=iZ([].splice),XSe=0,E0=function(e){return e.frozen||=new D0},D0=function(){this.entries=[]},O0=function(e,t){return qSe(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=JSe(this.entries,(function(t){return t[0]===e}));return~t&&YSe(this.entries,t,1),!!~t}};var k0,A0={getConstructor:function(e,t,n,r){var i=e((function(e,i){z$(e,a),GSe(e,{type:t,id:XSe++,frozen:void 0}),i!=null&&G$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=KSe(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(!dZ(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(!dZ(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(dZ(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,ZSe=!Q.ActiveXObject&&`ActiveXObject`in Q,M0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},QSe=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=iZ(s[e]);uQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!dZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!dZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!dZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(SQ(e,!uZ(o)||!(i||s.forEach&&!JX((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=JX((function(){d.has(1)})),m=$$((function(e){new o(e)})),h=!i&&JX((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$&&uZ(r=t.constructor)&&r!==n&&dZ(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&&ZSe){k0=A0.getConstructor(M0,`WeakMap`,!0),w0.enable();var N0=QSe.prototype,P0=iZ(N0.delete),F0=iZ(N0.has),I0=iZ(N0.get),L0=iZ(N0.set);P$(N0,{delete:function(e){if(dZ(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(dZ(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(dZ(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(dZ(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,$Se=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($Se,`DOMTokenList`);var eCe=lQ.EXISTS,tCe=GZ.f,K0=Function.prototype,nCe=iZ(K0.toString),q0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rCe=iZ(q0.exec);YX&&!eCe&&tCe(K0,`name`,{configurable:!0,get:function(){try{return rCe(q0,nCe(this))[1]}catch{return``}}});var iCe=IZ(`species`),aCe=yZ>=51||!JX((function(){var e=[];return(e.constructor={})[iCe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),oCe=IZ(`species`),J0=Q.Array,sCe=Math.max;function Y0(e){return e.getMenuConfig(`uploadVideo`)}CQ({target:`Array`,proto:!0,forced:!aCe},{slice:function(e,t){var n,r,i,a=lZ(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))||dZ(n)&&(n=n[oCe])===null)&&(n=void 0),n===J0||n===void 0))return e1(a,s,c);for(r=new(n===void 0?J0:n)(sCe(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 cCe(e,t){return BX(this,void 0,void 0,(function(){var n,r,i,a;return VX(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=wM(zX(zX({},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 lCe=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=q(`body`),c=q(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;BX(this,void 0,void 0,(function(){var i,a,o,s,c,l;return VX(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=lbe(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,cCe(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||!W.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}(),uCe=lQ.PROPER,Z0=RegExp.prototype,Q0=Z0.toString,dCe=iZ(s$),fCe=JX((function(){return Q0.call({source:`a`,flags:`b`})!=`/a/b`})),pCe=uCe&&Q0.name!=`toString`;function $0(){return M$(`w-e-insert-video`)}(fCe||pCe)&&uQ(RegExp.prototype,`toString`,(function(){var e=UZ(this),t=DQ(e.source),n=e.flags;return`/`+t+`/`+DQ(n===void 0&&pZ(Z0,e)&&!(`flags`in Z0)?dCe(e):n)}),{unsafe:!0});var mCe=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=HX(hM(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=q(a[1]),c=HX(hM(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=q(c[1]),d=HX(gM(i,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var f=q(`<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(),K.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}(),hCe={renderElems:[uxe],elemsToHtml:[dxe],preParseHtml:[hxe],parseElemsHtml:[Cxe],menus:[{key:`insertVideo`,factory:function(){return new TSe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new lCe},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 mCe}}],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=HX(e,2),i=t[0],a=t[1];return X.getNodeType(i)===`video`&&X.isLastNode(r,i)&&K.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};eN(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),eN(`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,gCe={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,_Ce=p2&&p2.bind(m2),h2=p2?function(e){return e&&_Ce(m2,e)}:function(e){return e&&function(){return m2.apply(e,arguments)}},vCe=h2({}.toString),yCe=h2(``.slice),g2=function(e){return yCe(vCe(e),8,-1)},_2=$.Object,bCe=h2(``.split),v2=a2((function(){return!_2(`z`).propertyIsEnumerable(0)}))?function(e){return g2(e)==`String`?bCe(e,``):_2(e)}:_2,xCe=$.TypeError,y2=function(e){if(e==null)throw xCe(`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)},SCe=function(e){return x2(e)?e:void 0},C2=function(e,t){return arguments.length<2?SCe($[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`,CCe=$.Object,N2=M2?function(e){return typeof e==`symbol`}:function(e){var t=C2(`Symbol`);return x2(t)&&w2(t.prototype,CCe(e))},wCe=$.String,P2=function(e){try{return wCe(e)}catch{return`Object`}},TCe=$.TypeError,F2=function(e){if(x2(e))return e;throw TCe(P2(e)+` is not a function`)},I2=function(e,t){var n=e[t];return n==null?void 0:F2(n)},ECe=$.TypeError,DCe=Object.defineProperty,L2=function(e,t){try{DCe($,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)`})})),OCe=$.Object,B2=function(e){return OCe(y2(e))},kCe=h2({}.hasOwnProperty),V2=Object.hasOwn||function(e,t){return kCe(B2(e),t)},ACe=0,jCe=Math.random(),MCe=h2(1 .toString),H2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+MCe(++ACe+jCe,36)},U2=z2(`wks`),W2=$.Symbol,G2=W2&&W2.for,NCe=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):NCe(t)}return U2[e]},PCe=$.TypeError,FCe=K2(`toPrimitive`),q2=function(e){var t=function(e,t){if(!S2(e)||N2(e))return e;var n,r=I2(e,FCe);if(r){if(t===void 0&&(t=`default`),n=c2(r,e,t),!S2(n)||N2(n))return n;throw PCe(`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 ECe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return N2(t)?t:t+``},J2=$.document,ICe=S2(J2)&&S2(J2.createElement),Y2=function(e){return ICe?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(gCe.f,e,t),e[t])}},LCe=$.String,RCe=$.TypeError,$2=function(e){if(S2(e))return e;throw RCe(LCe(e)+` is not an object`)},zCe=$.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 zCe(`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},BCe=h2(Function.toString);x2(R2.inspectSource)||(R2.inspectSource=function(e){return BCe(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,VCe=$.WeakMap;if(c4||R2.state){var p4=R2.state||=new VCe,HCe=h2(p4.get),m4=h2(p4.has),UCe=h2(p4.set);r4=function(e,t){if(m4(p4,e))throw new f4(`Object already initialized`);return t.facade=e,UCe(p4,e,t),t},i4=function(e){return HCe(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,WCe=o2&&Object.getOwnPropertyDescriptor,v4=V2(_4,`name`),y4={EXISTS:v4,PROPER:v4&&function(){}.name===`something`,CONFIGURABLE:v4&&(!o2||o2&&WCe(_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)}))})),GCe=Math.ceil,KCe=Math.floor,x4=function(e){var t=+e;return t!=t||t===0?0:(t>0?KCe:GCe)(t)},qCe=Math.max,JCe=Math.min,S4=function(e,t){var n=x4(e);return n<0?qCe(n+t,0):JCe(n,t)},YCe=Math.min,C4=function(e){return e>0?YCe(x4(e),9007199254740991):0},w4=function(e){return C4(e.length)},XCe=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++])&&(~XCe(a,n)||T4(a,n));return a},D4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ZCe=D4.concat(`length`,`prototype`),O4={f:Object.getOwnPropertyNames||function(e){return E4(e,ZCe)}},QCe={f:Object.getOwnPropertySymbols},$Ce=h2([].concat),ewe=C2(`Reflect`,`ownKeys`)||function(e){var t=O4.f($2(e)),n=QCe.f;return n?$Ce(t,n(e)):t},twe=function(e,t){for(var n=ewe(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))}},nwe=/#|\.prototype\./,k4=function(e,t){var n=iwe[rwe(e)];return n==owe||n!=awe&&(x2(t)?a2(t):!!t)},rwe=k4.normalize=function(e){return String(e).replace(nwe,`.`).toLowerCase()},iwe=k4.data={},awe=k4.NATIVE=`N`,owe=k4.POLYFILL=`P`,A4=k4,swe=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=swe(n,r))&&o.value:n[r],!A4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;twe(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]`,cwe=K2(`toStringTag`),lwe=$.Object,uwe=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=lwe(e),cwe))==`string`?n:uwe?g2(t):(r=g2(t))==`Object`&&x2(t.callee)?`Arguments`:r},I4=function(){},dwe=[],L4=C2(`Reflect`,`construct`),R4=/^\s*(?:class|function)\b/,fwe=h2(R4.exec),pwe=!R4.exec(I4),z4=function(e){if(!x2(e))return!1;try{return L4(I4,dwe,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 pwe||!!fwe(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},mwe=K2(`species`),H4=h2([].slice),hwe=A2>=51||!a2((function(){var e=[];return(e.constructor={})[mwe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),gwe=K2(`species`),U4=$.Array,_we=Math.max;j4({target:`Array`,proto:!0,forced:!hwe},{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[gwe])===null)&&(n=void 0),n===U4||n===void 0))return H4(a,s,c);for(r=new(n===void 0?U4:n)(_we(c-s,0)),i=0;s<c;s++,i++)s in a&&V4(r,i,a[s]);return r.length=i,r}});var vwe=P4?{}.toString:function(){return`[object `+F4(this)+`]`};P4||b4(Object.prototype,`toString`,vwe,{unsafe:!0});var W4,ywe=$.String,G4=function(e){if(F4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ywe(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})),bwe=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:bwe,UNSUPPORTED_Y:J4},xwe=Object.keys||function(e){return E4(e,D4)},Swe=o2?Object.defineProperties:function(e,t){$2(e);for(var n,r=b2(t),i=xwe(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:Swe(n,t)},Cwe=$.RegExp,wwe=a2((function(){var e=Cwe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Twe=$.RegExp,Ewe=a2((function(){var e=Twe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Dwe=g4.get,Owe=z2(`native-string-replace`,String.prototype.replace),a3=RegExp.prototype.exec,o3=a3,kwe=h2(``.charAt),Awe=h2(``.indexOf),jwe=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||wwe||Ewe)&&(o3=function(e){var t,n,r,i,a,o,s,c=this,l=Dwe(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=jwe(m,`y`,``),Awe(m,`g`)===-1&&(m+=`g`),_=s3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&kwe(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(Owe,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,Mwe=f3.bind,m3=f3.call,h3=typeof Reflect==`object`&&Reflect.apply||(Mwe?m3.bind(p3):function(){return m3.apply(p3,arguments)}),Nwe=K2(`species`),g3=RegExp.prototype,Pwe=K2(`match`),Fwe=$.TypeError,Iwe=K2(`species`),_3=function(e,t){var n,r=$2(e).constructor;return r===void 0||(n=$2(r)[Iwe])==null?t:function(e){if(B4(e))return e;throw Fwe(P2(e)+` is not a constructor`)}(n)},Lwe=h2(``.charAt),v3=h2(``.charCodeAt),Rwe=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?Lwe(a,o):r:e?Rwe(a,o,o+2):i-56320+(r-55296<<10)+65536}},b3={codeAt:y3(!1),charAt:y3(!0)},zwe=b3.charAt,Bwe=function(e,t,n){return t+(n?zwe(e,t).length:1)},Vwe=$.Array,Hwe=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=Vwe(Hwe(a-i,0)),s=0;i<a;i++,s++)V4(o,s,e[i]);return o.length=s,o},Uwe=$.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 Uwe(`RegExp#exec called on incompatible receiver`)},C3=Y4.UNSUPPORTED_Y,Wwe=Math.min,w3=[].push,Gwe=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[Nwe]=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[Pwe])===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&&Gwe(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=Wwe(C4(d.lastIndex+(C3?m:0)),o.length))===p)m=Bwe(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 Kwe(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={},qwe=!a2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),L3=u4(`IE_PROTO`),R3=$.Object,Jwe=R3.prototype,z3=qwe?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?Jwe: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},Ywe=t4.f,U3=K2(`toStringTag`),W3=function(e,t,n){e&&!V2(e=n?e:e.prototype,U3)&&Ywe(e,U3,{configurable:!0,value:t})},Xwe=H3.IteratorPrototype,Zwe=function(){return this},Qwe=$.String,$we=$.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 $we(`Can't set `+Qwe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),eTe=y4.PROPER,tTe=y4.CONFIGURABLE,K3=H3.IteratorPrototype,q3=H3.BUGGY_SAFARI_ITERATORS,J3=K2(`iterator`),nTe=function(){return this},Y3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=i3(Xwe,{next:d2(1,n)}),W3(e,i,!1),I3[i]=Zwe})(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,nTe)),W3(s,d,!0)),eTe&&i==`values`&&m&&m.name!==`values`&&(tTe?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},rTe=g4.set,iTe=g4.getterFor(`Array Iterator`),X3=Y3(Array,`Array`,(function(e,t){rTe(this,{type:`Array Iterator`,target:b2(e),index:0,kind:t})}),(function(){var e=iTe(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 aTe=b3.charAt,oTe=g4.set,sTe=g4.getterFor(`String Iterator`);Y3(String,`String`,(function(e){oTe(this,{type:`String Iterator`,string:G4(e),index:0})}),(function(){var e,t=sTe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=aTe(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):[],cTe={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,lTe=!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:cTe.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 lTe&&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)}},uTe=K2(`iterator`),dTe=Array.prototype,fTe=K2(`iterator`),o6=function(e){if(e!=null)return I2(e,fTe)||I2(e,`@@iterator`)||I3[F4(e)]},pTe=$.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},mTe=$.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 mTe(P2(e)+` is not iterable`);if((u=i)!==void 0&&(I3.Array===u||dTe[uTe]===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 pTe(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)},hTe=$.TypeError,d6=function(e,t){if(w2(t,e))return e;throw hTe(`Incorrect invocation`)},f6=K2(`iterator`),p6=!1;try{var gTe=0,m6={next:function(){return{done:!!gTe++}},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},_Te=K2(`species`),g6=$.Array,vTe=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[_Te])===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||vTe,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,yTe=g4.set,bTe=g4.getterFor,xTe=y6.find,STe=y6.findIndex,CTe=h2([].splice),wTe=0,x6=function(e){return e.frozen||=new S6},S6=function(){this.entries=[]},C6=function(e,t){return xTe(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=STe(this.entries,(function(t){return t[0]===e}));return~t&&CTe(this.entries,t,1),!!~t}};var w6,T6={getConstructor:function(e,t,n,r){var i=e((function(e,i){d6(e,a),yTe(e,{type:t,id:wTe++,frozen:void 0}),i!=null&&u6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=bTe(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,TTe=!$.ActiveXObject&&`ActiveXObject`in $,D6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ETe=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&&TTe){w6=T6.getConstructor(D6,`WeakMap`,!0),r6.enable();var O6=ETe.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)}))},DTe=y6.forEach,U6=H6(`forEach`)?[].forEach:function(e){return DTe(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,OTe=$.process,n8=$.Dispatch,kTe=$.Function,r8=$.MessageChannel,ATe=$.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(ATe(e),K6.protocol+`//`+K6.host)};e8&&t8||(e8=function(e){var t=H4(arguments,1);return a8[++i8]=function(){h3(x2(e)?e:kTe(e),void 0,t)},q6(i8),i8},t8=function(e){delete a8[e]},$6?q6=function(e){OTe.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},jTe=/ipad|iphone|ipod/i.test(T2)&&$.Pebble!==void 0,MTe=/web0s(?!.*chrome)/i.test(T2),NTe=Q2.f,y8=v8.set,b8=$.MutationObserver||$.WebKitMutationObserver,x8=$.document,S8=$.process,C8=$.Promise,w8=NTe($,`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||MTe||!b8||!x8?!jTe&&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},PTe=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 PTe(e)}},M8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},FTe=typeof window==`object`,N8=v8.set,ITe=K2(`species`),P8=`Promise`,F8=g4.getterFor(P8),LTe=g4.set,RTe=g4.getterFor(P8),I8=X6&&X6.prototype,L8=X6,R8=I8,z8=$.TypeError,B8=$.document,V8=$.process,H8=j8.f,zTe=H8,BTe=!!(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={})[ITe]=r,!(W8=n.then((function(){}))instanceof r)||!t&&FTe&&!U8})),VTe=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&&UTe(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&&HTe(e)}))}},J8=function(e,t,n){var r,i;BTe?((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)},HTe=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},UTe=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){LTe(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=RTe(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):zTe(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:VTe},{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 WTe=y4.PROPER,$8=RegExp.prototype,e5=$8.toString,GTe=h2(K4),KTe=a2((function(){return e5.call({source:`a`,flags:`b`})!=`/a/b`})),qTe=WTe&&e5.name!=`toString`;(KTe||qTe)&&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)?GTe(e):n)}),{unsafe:!0});var JTe=y4.EXISTS,YTe=t4.f,t5=Function.prototype,XTe=h2(t5.toString),n5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ZTe=h2(n5.exec);o2&&!JTe&&YTe(t5,`name`,{configurable:!0,get:function(){try{return ZTe(n5,XTe(this))[1]}catch{return``}}});var r5=new WeakMap;function i5(e){return e.getMenuConfig(`uploadImage`)}function QTe(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 $Te(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=wM(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=Kwe(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,QTe(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,$Te(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 eEe=h2([].join),tEe=v2!=Object,nEe=H6(`join`,`,`);j4({target:`Array`,proto:!0,forced:tEe||!nEe},{join:function(e){return eEe(b2(this),e===void 0?`,`:e)}}),Wy&&(q.fn.append=Wy),jy&&(q.fn.on=jy),Xy&&(q.fn.remove=Xy),Ay&&(q.fn.val=Ay),$y&&(q.fn.click=$y),Iy&&(q.fn.hide=Iy);var rEe=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=q(`body`),c=q(`<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}(),iEe={menus:[{key:`uploadImage`,factory:function(){return new rEe},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}};eN(`en`,{highLightModule:{selectLang:`Language`}}),eN(`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`)(),aEe=Object.defineProperty,f5=function(e,t){try{aEe(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,oEe=g5&&g5.bind(_5),v5=g5?function(e){return e&&oEe(_5,e)}:function(e){return e&&function(){return _5.apply(e,arguments)}},sEe=d5.TypeError,y5=function(e){if(e==null)throw sEe(`Can't call method on `+e);return e},cEe=d5.Object,b5=function(e){return cEe(y5(e))},lEe=v5({}.hasOwnProperty),x5=Object.hasOwn||function(e,t){return lEe(b5(e),t)},uEe=0,dEe=Math.random(),fEe=v5(1 .toString),S5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+fEe(++uEe+dEe,36)},C5=function(e){return typeof e==`function`},pEe=function(e){return C5(e)?e:void 0},w5=function(e,t){return arguments.length<2?pEe(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,mEe=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):mEe(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,hEe=V5(H5)&&V5(H5.createElement),U5=function(e){return hEe?H5.createElement(e):{}},W5=!B5&&!j5((function(){return Object.defineProperty(U5(`div`),`a`,{get:function(){return 7}}).a!=7})),gEe=d5.String,_Ee=d5.TypeError,G5=function(e){if(V5(e))return e;throw _Ee(gEe(e)+` is not an object`)},K5=Function.prototype.call,q5=K5.bind?K5.bind(K5):function(){return K5.apply(K5,arguments)},J5=v5({}.isPrototypeOf),vEe=d5.Object,Y5=N5?function(e){return typeof e==`symbol`}:function(e){var t=w5(`Symbol`);return C5(t)&&J5(t.prototype,vEe(e))},yEe=d5.String,X5=function(e){try{return yEe(e)}catch{return`Object`}},bEe=d5.TypeError,Z5=function(e){if(C5(e))return e;throw bEe(X5(e)+` is not a function`)},Q5=function(e,t){var n=e[t];return n==null?void 0:Z5(n)},xEe=d5.TypeError,SEe=d5.TypeError,CEe=L5(`toPrimitive`),$5=function(e){var t=function(e,t){if(!V5(e)||Y5(e))return e;var n,r=Q5(e,CEe);if(r){if(t===void 0&&(t=`default`),n=q5(r,e,t),!V5(n)||Y5(n))return n;throw SEe(`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 xEe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Y5(t)?t:t+``},wEe=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 wEe(`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},TEe=v5(Function.toString);C5(p5.inspectSource)||(p5.inspectSource=function(e){return TEe(e)});var i7,a7,o7,s7=p5.inspectSource,c7=d5.WeakMap,EEe=C5(c7)&&/native code/.test(s7(c7)),l7=m5(`keys`),u7=function(e){return l7[e]||(l7[e]=S5(e))},d7={},f7=d5.TypeError,DEe=d5.WeakMap;if(EEe||p5.state){var p7=p5.state||=new DEe,OEe=v5(p7.get),m7=v5(p7.has),kEe=v5(p7.set);i7=function(e,t){if(m7(p7,e))throw new f7(`Object already initialized`);return t.facade=e,kEe(p7,e,t),t},a7=function(e){return OEe(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,AEe=B5&&Object.getOwnPropertyDescriptor,v7=x5(_7,`name`),y7={EXISTS:v7,PROPER:v7&&function(){}.name===`something`,CONFIGURABLE:v7&&(!B5||B5&&AEe(_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)}))})),jEe=v5({}.toString),MEe=v5(``.slice),x7=function(e){return MEe(jEe(e),8,-1)},NEe=L5(`toStringTag`),PEe=d5.Object,FEe=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=PEe(e),NEe))==`string`?n:FEe?x7(t):(r=x7(t))==`Object`&&C5(t.callee)?`Arguments`:r},IEe=z5?{}.toString:function(){return`[object `+S7(this)+`]`};z5||b7(Object.prototype,`toString`,IEe,{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,LEe=E7===Object.prototype?void 0:E7,D7=v5(v5.bind),O7=d5.Object,REe=v5(``.split),k7=j5((function(){return!O7(`z`).propertyIsEnumerable(0)}))?function(e){return x7(e)==`String`?REe(e,``):O7(e)}:O7,zEe=Math.ceil,BEe=Math.floor,A7=function(e){var t=+e;return t!=t||t===0?0:(t>0?BEe:zEe)(t)},VEe=Math.min,j7=function(e){return e>0?VEe(A7(e),9007199254740991):0},M7=function(e){return j7(e.length)},N7=Array.isArray||function(e){return x7(e)==`Array`},P7=function(){},HEe=[],F7=w5(`Reflect`,`construct`),I7=/^\s*(?:class|function)\b/,UEe=v5(I7.exec),WEe=!I7.exec(P7),L7=function(e){if(!C5(e))return!1;try{return F7(P7,HEe,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 WEe||!!UEe(I7,s7(e))}:L7,GEe=L5(`species`),z7=d5.Array,KEe=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[GEe])===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||KEe,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}},qEe=[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 qEe(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(LEe);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])}},JEe=Math.max,YEe=Math.min,Z7=function(e,t){var n=A7(e);return n<0?JEe(n+t,0):YEe(n,t)},XEe=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++])&&(~XEe(a,n)||Q7(a,n));return a},e9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ZEe=e9.concat(`length`,`prototype`),QEe={f:Object.getOwnPropertyNames||function(e){return $7(e,ZEe)}},t9={f:Object.getOwnPropertySymbols},$Ee=v5([].concat),eDe=w5(`Reflect`,`ownKeys`)||function(e){var t=QEe.f(G5(e)),n=t9.f;return n?$Ee(t,n(e)):t},tDe=function(e,t){for(var n=eDe(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))}},nDe=/#|\.prototype\./,n9=function(e,t){var n=iDe[rDe(e)];return n==oDe||n!=aDe&&(C5(t)?j5(t):!!t)},rDe=n9.normalize=function(e){return String(e).replace(nDe,`.`).toLowerCase()},iDe=n9.data={},aDe=n9.NATIVE=`N`,oDe=n9.POLYFILL=`P`,sDe=n9,cDe=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=cDe(n,r))&&o.value:n[r],!sDe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;tDe(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,lDe=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?lDe(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),te=w.slice(D+A.length),M=C+w.length;d&&M>d.reach&&(d.reach=M);var ne=S.prev;if(j&&(ne=l(t,ne,j),C+=j.length),u(t,ne,E),S=l(t,ne,new a(f,g?i.tokenize(A,g):A,y,A)),te&&l(t,S,te),E>1){var re={cause:f+`,`+m,reach:M};s(e,t,n,S.prev,C,re),d&&re.reach>d.reach&&(d.reach=re.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach((function(t){r+=e(t,n)})),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()}),!1)),i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute(`data-manual`)&&(i.manual=!0)),!i.manual){var p=document.readyState;p===`loading`||p===`interactive`&&d&&d.defer?document.addEventListener(`DOMContentLoaded`,f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});e.exports&&=t,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]),te=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),M=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[te,k]);function ne(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:ne(j,A)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[M]),lookbehind:!0,greedy:!0,inside:ne(M,te)}]})}(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 uDe=`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,dDe=d5.String,d9=function(e){if(S7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return dDe(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})),fDe=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:fDe,UNSUPPORTED_Y:m9},pDe=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},mDe=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`,mDe.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,hDe=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:pDe(n,t)},gDe=d5.RegExp,_De=j5((function(){var e=gDe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),vDe=d5.RegExp,yDe=j5((function(){var e=vDe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),bDe=g7.get,xDe=m5(`native-string-replace`,String.prototype.replace),C9=RegExp.prototype.exec,w9=C9,SDe=v5(``.charAt),CDe=v5(``.indexOf),wDe=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||_De||yDe)&&(w9=function(e){var t,n,r,i,a,o,s,c=this,l=bDe(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=wDe(m,`y`,``),CDe(m,`g`)===-1&&(m+=`g`),_=T9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&SDe(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(xDe,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=hDe(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,TDe=A9.bind,M9=A9.call,EDe=typeof Reflect==`object`&&Reflect.apply||(TDe?M9.bind(j9):function(){return M9.apply(j9,arguments)}),DDe=L5(`species`),N9=RegExp.prototype,ODe=L5(`match`),kDe=d5.TypeError,ADe=L5(`species`),jDe=v5(``.charAt),P9=v5(``.charCodeAt),MDe=v5(``.slice),NDe=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?jDe(a,o):r:e?MDe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),PDe=function(e,t,n){return t+(n?NDe(e,t).length:1)},FDe=d5.Array,IDe=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=FDe(IDe(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},LDe=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 LDe(`RegExp#exec called on incompatible receiver`)},L9=h9.UNSUPPORTED_Y,RDe=Math.min,R9=[].push,zDe=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[DDe]=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[ODe])===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&&EDe(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&&zDe(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)[ADe])==null?t:function(e){if(R7(e))return e;throw kDe(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=RDe(j7(d.lastIndex+(L9?m:0)),o.length))===p)m=PDe(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}),Dy&&(q.fn.attr=Dy);var BDe=y7.PROPER,V9=RegExp.prototype,H9=V9.toString,VDe=v5(f9),HDe=j5((function(){return H9.call({source:`a`,flags:`b`})!=`/a/b`})),UDe=BDe&&H9.name!=`toString`;(HDe||UDe)&&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)?VDe(e):n)}),{unsafe:!0});var WDe=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||!B.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()};K.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 B.isElement(n)&&n.type===`pre`?t:null},e}(),GDe={renderStyle:function(e,t){var n=e,r=t,i=``;return uDe.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=q(e);if(!B.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 WDe},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>`}}]},KDe=/"/g,qDe=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="`+qDe(d9(t),KDe,`&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(!G.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=CD(CD({},i),t||{});if($O[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);$O[n]=r,function(e,t){t!=null&&(QO[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;Wj[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){Uj.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;dk[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){uk.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){FA.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;LA[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){IA.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(z_e),K9(cbe),K9(hCe),K9(iEe),K9(GDe);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`]}},JDe={hoverbarKeys:W9(W9({},J9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};G9.setEditorConfig(W9(W9({},JDe),{decorate:U9}));var YDe={hoverbarKeys:J9};G9.setSimpleEditorConfig(W9(W9({},YDe),{decorate:U9}));var XDe={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(XDe);var ZDe={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 QDe(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 $De(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 pj(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Fde(n,CD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return fO.set(a,e),pO.set(e,a),a}(n,{selector:t,config:W9(W9({},s),i)})}G9.setSimpleToolbarConfig(ZDe);var eOe=Object.defineProperty,tOe=Object.defineProperties,nOe=Object.getOwnPropertyDescriptors,Y9=Object.getOwnPropertySymbols,rOe=Object.prototype.hasOwnProperty,iOe=Object.prototype.propertyIsEnumerable,X9=(e,t,n)=>t in e?eOe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aOe=(e,t)=>{for(var n in t||={})rOe.call(t,n)&&X9(e,n,t[n]);if(Y9)for(var n of Y9(t))iOe.call(t,n)&&X9(e,n,t[n]);return e},oOe=(e,t)=>tOe(e,nOe(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},sOe=le({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=A(null),r=ne(null),i=A(``),a=()=>{if(!n.value)return;let a=we(e.defaultContent);QDe({selector:n.value,mode:e.mode,content:a||[],html:e.defaultHtml||e.modelValue||``,config:oOe(aOe({},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 o(e){r.value?.setHtml(e)}return C(()=>{a()}),M(()=>e.modelValue,e=>{e!==i.value&&o(e)}),{box:n}}}),cOe={ref:`box`,style:{height:`100%`}};function lOe(e,t,n,r,i,a){return P(),y(`div`,cOe,null,512)}var uOe=Q9(sOe,[[`render`,lOe]]),dOe=le({props:{editor:{type:Object},mode:{type:String,default:`default`},defaultConfig:{type:Object,default:{}}},setup(e){let t=A(null),n=n=>{if(t.value){if(n==null)throw Error(`Not found instance of Editor when create <Toolbar/> component`);X.getToolbar(n)||$De({editor:n,selector:t.value||`<div></div>`,mode:e.mode,config:e.defaultConfig})}};return ge(()=>{let{editor:t}=e;t!=null&&n(t)}),{selector:t}}}),fOe={ref:`selector`};function pOe(e,t,n,r,i,a){return P(),y(`div`,fOe,null,512)}var mOe=Q9(dOe,[[`render`,pOe]]),hOe={class:`pledge-rich-editor`},gOe={class:`pledge-rich-editor__color-bar`},_Oe=[`value`],vOe=[`onKeydown`],$9=ke(le({__name:`PledgeRichTextEditor`,props:{modelValue:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=ne(void 0),o=A(n.modelValue||``),s=A(`#109bd3`),c=[`#000000`,`#333333`,`#666666`,`#999999`,`#109bd3`,`#087db4`,`#c20f18`,`#d94e1f`,`#e8a317`,`#2e7d32`,`#1565c0`,`#6a1b9a`,`#ffffff`];M(()=>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>`)}),M(o,e=>{r(`update:modelValue`,e)});let l={excludeKeys:[`uploadImage`,`group-video`,`emotion`]},u={placeholder:`编辑参赛承诺书正文,保存后选手端签署弹窗将展示此处内容…`,MENU_CONF:{color:{colors:c},bgColor:{colors:c}}};function d(e){i.value=e}function f(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 m(e){let t=i.value;if(t==null)return;let n=f(e);n&&(s.value=n,t.focus(),t.addMark(`color`,n))}function h(e){let t=e.target;m(t.value)}function g(){let e=f(s.value);e&&m(e)}return x(()=>{let e=i.value;e!=null&&(e.destroy(),i.value=void 0)}),(e,t)=>(P(),y(`div`,hOe,[p(a(mOe),{class:`pledge-rich-editor__toolbar`,editor:i.value,"default-config":l,mode:`default`},null,8,[`editor`]),v(`div`,gOe,[t[2]||=v(`span`,{class:`pledge-rich-editor__color-label`},`自定义文字颜色`,-1),v(`input`,{class:`pledge-rich-editor__color-picker`,type:`color`,value:f(s.value)||`#109bd3`,title:`取色器`,onInput:h},null,40,_Oe),ie(v(`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(g,[`prevent`]),[`enter`])},null,40,vOe),[[ae,s.value]]),v(`button`,{type:`button`,class:`pledge-rich-editor__color-apply`,onClick:g},` 应用到选中文字 `),t[3]||=v(`span`,{class:`pledge-rich-editor__color-hint`},`可填任意色号,如 #109bd3`,-1)]),p(a(uOe),{modelValue:o.value,"onUpdate:modelValue":t[1]||=e=>o.value=e,class:`pledge-rich-editor__editor`,"default-config":u,mode:`default`,onOnCreated:d},null,8,[`modelValue`])]))}}),[[`__scopeId`,`data-v-1dbc36a2`]]),yOe={class:`tracks-pane`},bOe={class:`pane-toolbar pane-toolbar--split`},xOe={class:`toolbar`,style:{"margin-bottom":`12px`}},SOe={class:`d-flex justify-content-end mt-3`},COe=le({__name:`CompetitionAdminsPane`,props:{competitionId:{}},setup(e){let t=e,n=A(!1),i=A([]),o=se({page:1,perPage:15,total:0}),s=A(``),c=A(!1),l=A(`create`),u=A(!1),d=A(null),f=A(),m=se({username:``,name:``,password:``,status:`active`}),g={username:[{required:!0,message:`请填写账号`,trigger:`blur`}],name:[{required:!0,message:`请填写姓名`,trigger:`blur`}],password:[{validator:(e,t,n)=>{if(l.value===`create`&&!String(t||``).trim()){n(Error(`请填写密码`));return}n()},trigger:`blur`}]};async function _(e=o.page){n.value=!0,o.page=e;try{let e=await ft(t.competitionId,{page:o.page,per_page:o.perPage,keyword:s.value.trim()||void 0});i.value=e.data,o.total=e.meta.total}catch(e){I.error(e instanceof Error?e.message:`加载失败`)}finally{n.value=!1}}function b(){l.value=`create`,d.value=null,m.username=``,m.name=``,m.password=``,m.status=`active`,c.value=!0}function x(e){l.value=`edit`,d.value=e.id,m.username=e.username,m.name=e.name,m.password=``,m.status=e.status,c.value=!0}async function S(){if(await f.value?.validate().catch(()=>!1)){u.value=!0;try{let e={username:m.username.trim(),name:m.name.trim(),status:m.status};m.password?.trim()&&(e.password=m.password.trim()),l.value===`create`?(await pt(t.competitionId,{...e,password:(m.password??``).trim()}),I.success(`已创建`)):d.value&&(await ut(t.competitionId,d.value,e),I.success(`已保存`)),c.value=!1,await _(o.page)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}finally{u.value=!1}}}async function w(e){try{await L.confirm(`确定删除赛事管理员「${e.name}」吗?`,`确认删除`,{type:`warning`}),await dt(t.competitionId,e.id),I.success(`已删除`),await _(o.page)}catch{}}return M(()=>t.competitionId,()=>void _(1)),C(()=>void _(1)),(e,t)=>{let d=O(`el-button`),C=O(`el-input`),T=O(`el-table-column`),E=O(`el-tag`),D=O(`el-table`),ee=O(`el-pagination`),k=O(`el-form-item`),A=O(`el-option`),j=O(`el-select`),te=O(`el-form`),M=O(`el-dialog`),ne=h(`loading`);return ie((P(),y(`div`,yOe,[v(`div`,bOe,[t[12]||=v(`p`,{class:`form-hint pane-toolbar-tip`},` 为本场赛事创建独立管理员。他们可登录赛事管理与观众信息管理后台,不能进入平台管理后台。 `,-1),p(d,{type:`primary`,onClick:b},{default:F(()=>[...t[11]||=[r(`新增管理员`,-1)]]),_:1})]),v(`div`,xOe,[p(C,{modelValue:s.value,"onUpdate:modelValue":t[0]||=e=>s.value=e,placeholder:`搜索账号、姓名`,clearable:``,style:{"max-width":`280px`},onKeyup:t[1]||=fe(e=>_(1),[`enter`])},null,8,[`modelValue`]),p(d,{type:`primary`,onClick:t[2]||=e=>_(1)},{default:F(()=>[...t[13]||=[r(`查询`,-1)]]),_:1})]),p(D,{data:i.value,stripe:``,border:``,"empty-text":`暂无赛事管理员`,class:`workspace-table`},{default:F(()=>[p(T,{prop:`username`,label:`账号`,"min-width":`140`}),p(T,{prop:`name`,label:`姓名`,width:`140`}),p(T,{label:`状态`,width:`100`},{default:F(({row:e})=>[p(E,{type:e.status===`active`?`success`:`info`,effect:`plain`},{default:F(()=>[r(N(e.status===`active`?`启用`:`停用`),1)]),_:2},1032,[`type`])]),_:1}),p(T,{label:`最近登录`,"min-width":`170`},{default:F(({row:e})=>[r(N(a(Xe)(e.last_login_at)||`—`),1)]),_:1}),p(T,{label:`操作`,width:`140`,fixed:`right`,align:`right`},{default:F(({row:e})=>[p(d,{link:``,type:`primary`,size:`small`,onClick:t=>x(e)},{default:F(()=>[...t[14]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(d,{link:``,type:`danger`,size:`small`,onClick:t=>w(e)},{default:F(()=>[...t[15]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),v(`div`,SOe,[p(ee,{"current-page":o.page,"onUpdate:currentPage":t[3]||=e=>o.page=e,"page-size":o.perPage,"onUpdate:pageSize":t[4]||=e=>o.perPage=e,layout:`total, prev, pager, next`,total:o.total,onCurrentChange:_},null,8,[`current-page`,`page-size`,`total`])]),p(M,{modelValue:c.value,"onUpdate:modelValue":t[10]||=e=>c.value=e,title:l.value===`create`?`新增赛事管理员`:`编辑赛事管理员`,width:`min(480px, 92vw)`,"destroy-on-close":``,"align-center":``},{footer:F(()=>[p(d,{onClick:t[9]||=e=>c.value=!1},{default:F(()=>[...t[16]||=[r(`取消`,-1)]]),_:1}),p(d,{type:`primary`,loading:u.value,onClick:S},{default:F(()=>[...t[17]||=[r(`保存`,-1)]]),_:1},8,[`loading`])]),default:F(()=>[p(te,{ref_key:`formRef`,ref:f,model:m,rules:g,"label-position":`top`},{default:F(()=>[p(k,{label:`账号`,prop:`username`},{default:F(()=>[p(C,{modelValue:m.username,"onUpdate:modelValue":t[5]||=e=>m.username=e,modelModifiers:{trim:!0},autocomplete:`off`},null,8,[`modelValue`])]),_:1}),p(k,{label:`姓名`,prop:`name`},{default:F(()=>[p(C,{modelValue:m.name,"onUpdate:modelValue":t[6]||=e=>m.name=e,modelModifiers:{trim:!0}},null,8,[`modelValue`])]),_:1}),p(k,{label:l.value===`create`?`密码`:`新密码(留空不改)`,prop:`password`},{default:F(()=>[p(C,{modelValue:m.password,"onUpdate:modelValue":t[7]||=e=>m.password=e,type:`password`,"show-password":``,autocomplete:`new-password`},null,8,[`modelValue`])]),_:1},8,[`label`]),p(k,{label:`状态`},{default:F(()=>[p(j,{modelValue:m.status,"onUpdate:modelValue":t[8]||=e=>m.status=e,style:{width:`100%`}},{default:F(()=>[p(A,{label:`启用`,value:`active`}),p(A,{label:`停用`,value:`disabled`})]),_:1},8,[`modelValue`])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`modelValue`,`title`])])),[[ne,n.value]])}}}),wOe={class:`competition-workspace`},TOe={class:`workspace-header`},EOe={class:`workspace-title`},DOe={class:`login-links-stack`},OOe={class:`login-link-label`},kOe=[`href`],AOe={class:`tracks-pane`},jOe={class:`pane-toolbar pane-toolbar--split`},MOe={class:`cell-muted`},NOe={class:`channels-pane`},POe={class:`pane-toolbar pane-toolbar--split`},FOe={class:`cell-muted`},IOe={class:`cell-muted`},LOe={class:`applications-pane`},ROe={class:`applications-toolbar`},zOe={class:`application-filters`},BOe={class:`application-actions`},VOe={key:0,class:`export-selected-count`},HOe={key:0,class:`applications-selection-hint`},UOe={class:`cell-muted`},WOe={class:`cell-muted`},GOe={class:`cell-muted`},KOe={class:`cell-muted`},qOe={class:`cell-muted`},JOe={class:`cell-muted`},YOe={class:`cell-muted`},XOe={class:`table-pagination`},ZOe={class:`section-block`},QOe={class:`form-hint`},$Oe={class:`pane-toolbar`},eke={class:`cell-muted`},tke={class:`section-block`},nke={class:`pane-toolbar pane-toolbar--wrap`},rke={class:`pane-toolbar pane-toolbar--wrap`},ike={class:`brand-logo-upload`},ake=[`src`],oke={class:`brand-logo-upload__actions`},ske={class:`d-flex flex-wrap gap-2 align-items-center`},cke={class:`d-flex gap-2`},lke={class:`application-detail`},uke={key:0,class:`mb-3 d-flex justify-content-end`},dke={class:`application-intro`},fke={class:`review-summary`},pke={class:`schema-builder-dialog__meta`},mke={key:1},hke={key:2,class:`text-danger small mt-2 mb-0`},gke={class:`pane-toolbar pane-toolbar--split mb-2`},_ke={class:`form-hint pane-toolbar-tip`},vke=ke(le({__name:`CompetitionFormView`,setup(t){let i=[{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:`品牌与文案`}],o=Oe(),s=De(),c=Be(),l=Ee(),{selectedCompetitionId:u}=Te(c),d=Ce(()=>(l.user?.username??``).trim()===`superadmin`),f=A(!1),m=()=>s.name===`admin-competition-new`,g=A(null),_=A(!1),b=A(null),x=A({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:``}),S=A(qe()),w=A(Ge()),T=A(`zh`),D=A(!1),ee=Ce(()=>Ve(S.value.login.logoUrl));function j(){S.value.login.consultLines.push({label:``,text:``})}function te(e){S.value.login.consultLines.splice(e,1)}function ne(){S.value.login.showConsult=!0,S.value.login.consultLines=Ue()}async function re(e){let t=g.value;if(!t){I.warning(`请先保存赛事后再上传 Logo`);return}D.value=!0;try{let n=await Me(t,e.file);S.value.login.logoUrl=n,e.onSuccess?.({url:n}),I.success(`Logo 已上传,登录页与各端口顶栏立即生效`)}catch(e){let t=e instanceof Error?e.message:`Logo 上传失败`;I.error(t)}finally{D.value=!1}}async function ae(){let e=g.value;if(!e){S.value.login.logoUrl=``;return}D.value=!0;try{await Ie(e),S.value.login.logoUrl=``,I.success(`已恢复默认标志图`)}catch(e){I.error(e instanceof Error?e.message:`清除 Logo 失败`)}finally{D.value=!1}}function oe(){w.value.login.consultLines.push({label:``,text:``})}function se(e){w.value.login.consultLines.splice(e,1)}let ce=A({}),le=A([]),ue=A(!1),de=A([]),pe=A(!1),me=A([]),he=A(!1),ge=A([]),_e=A([]),ve=A(!1),ye=A(!1),be=A(``),xe=A(!1),we=A(!1),R=A(null),ke=A({page:1,perPage:15,total:0}),Xe=A({keyword:``,status:`submitted`,track:``,review_eligible:!0,signup_channel_id:void 0,public_source_channel_id:void 0,signup_locale:``}),ut=A({}),dt=A([]),ft=A([]),pt=Ce(()=>ot(dt.value,st)),_t=Ce(()=>ot(ft.value,ct)),vt=A([]),yt=A(!1),bt=A(!1),St=A(null),Ct=A({track_code:``,title:``,title_en:``,description:``,description_en:``,sort:0,is_enabled:!0,scoring_sheet_title:``,scoring_items:[]});function wt(e=1){return{key:``,sort:e,category:`通用指标`,title:``,criteria:``,max_score:0}}let Et=Ce(()=>Ct.value.scoring_items.reduce((e,t)=>e+(Number(t.max_score)||0),0)),Dt=A(!1),Ot=A(null),kt=A(!1),At=A(null),jt=A({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}),Mt=A(!1),Nt=A(`basic`),Pt=A([]),Ft=A([]),It=A([]),Lt=A(!1),Rt=A(``),zt=A(``);function Bt(){return{key:``,weight:1,min:0,max:100}}let Vt=A([Bt()]),Ht=A(!1),Ut=A(`signup`),Wt=A(``),Gt=A(!1),Kt=A(null),qt=A(``),Jt=A(`[]`),Yt=A(``),Xt=A(`signup`),Zt=A([]),Qt=A(`visual`),$t=Ce(()=>{if(m())return`新建赛事`;let e=i.find(e=>e.tab===Nt.value)?.label;return e?`赛事中心 · ${e}`:`赛事中心`}),en=Ce(()=>String(g.value??`new`));function tn(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 nn(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 rn(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 an(e){let t=e.split(/[\n,,;;\s]+/).map(e=>e.replace(/\s+/g,``).trim()).filter(Boolean);return[...new Set(t)]}function on(){let e={...ce.value},t=x.value.success_notice_enabled,n=x.value.success_notice_message.trim();t&&n?e.success_notice={enabled:!0,message:n}:delete e.success_notice,e.review_portal={enabled:x.value.review_portal_enabled!==!1,message:x.value.review_portal_message.trim()};let r=an(x.value.post_close_file_edit_mobiles);return x.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 sn(e){return`${typeof window<`u`?window.location.origin:``}${`/admin/`.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`}let cn=Ce(()=>{let e=x.value.slug.trim(),t=[];if(e){let n=encodeURIComponent(e);t.push({label:`选手登录`,href:sn(`/c/${n}/login`)}),t.push({label:`选手登录(英文)`,href:`${sn(`/c/${n}/login`)}?lang=en`}),t.push({label:`观众报名`,href:sn(`/c/${n}/audience/login`)}),t.push({label:`观众报名(英文)`,href:`${sn(`/c/${n}/audience/login`)}?lang=en`}),t.push({label:`现场核销`,href:sn(`/c/${n}/checkin`)}),t.push({label:`观众信息管理`,href:sn(`/c/${n}/audience-manage/login`)}),t.push({label:`评审端入口`,href:sn(`/c/${n}/review`)}),t.push({label:`赛事管理登录`,href:sn(`/c/${n}/manage/login`)})}return t.push({label:`管理后台登录`,href:sn(`/admin/login`)}),t.push({label:`赛事工作台(需先登录管理端)`,href:sn(`/admin/competition/workspace`)}),t});M(Qt,e=>{e===`json`?ln():un()});function ln(){Jt.value=JSON.stringify(Sl(Zt.value,Xt.value),null,2)}function un(){try{let e=JSON.parse(Jt.value);Array.isArray(e)&&(Zt.value=xl(e,Xt.value))}catch{}}M(()=>s.name,e=>{(e===`admin-competition-new`||e===`admin-competition-edit`)&&(Nt.value=`basic`)},{immediate:!0}),M(Nt,e=>{g.value&&(e===`channels`&&Mn(),e===`applications`&&(Mn(),Nn(),Wn()),e===`signupForm`&&mn().then(()=>gr(`signup`)),e===`audienceForm`&&gn().then(()=>gr(`audience`)),e===`review`&&hn())});function dn(){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=u.value;return t&&t>0?t:null}function fn(e){return Ye(e)}function pn(e){return Je(e)}async function mn(){let e=g.value;if(e){Lt.value=!0;try{let t=await mt(e,`signup`);Pt.value=t.data,t.signupFieldRegistry&&xt(t.signupFieldRegistry)}catch(e){I.error(e instanceof Error?e.message:`加载报名表列表失败`)}finally{Lt.value=!1}}}async function hn(){let e=g.value;if(e){Lt.value=!0;try{Ft.value=(await mt(e,`review`)).data}catch(e){I.error(e instanceof Error?e.message:`加载评审表列表失败`)}finally{Lt.value=!1}}}async function gn(){let e=g.value;if(e){Lt.value=!0;try{It.value=(await mt(e,`audience`)).data}catch(e){I.error(e instanceof Error?e.message:`加载观众报名表列表失败`)}finally{Lt.value=!1}}}function _n(e){Rt.value=e.scoring_rules_json==null?``:JSON.stringify(e.scoring_rules_json,null,2),vn()}function vn(){let e=Rt.value.trim();if(!e){Vt.value=[Bt()];return}try{let t=JSON.parse(e);if(t&&Array.isArray(t.dimensions)&&t.dimensions.length>0){Vt.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{}Vt.value=[Bt()]}function yn(){Vt.value=[...Vt.value,Bt()]}function bn(e){if(Vt.value.length<=1){Vt.value=[Bt()];return}Vt.value=Vt.value.filter((t,n)=>n!==e)}function xn(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 Sn(){if(!Vt.value.filter(e=>e.key.trim()).length){I.warning(`请至少填写一行「维度 key」(须与评审表 number 类字段的 name/key 一致)`);return}let e=xn(Vt.value);Rt.value=JSON.stringify(e,null,2),zt.value=``}async function Cn(){if(m()){g.value=null,_.value=!1,b.value=null,S.value=qe(),x.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:``},ce.value={};return}let e=dn();if(!e){g.value=null,b.value=null,_.value=!0;return}_.value=!1,g.value=e,c.selectCompetition(e);try{let t=await Ae(e);b.value=t,x.value={slug:t.slug,name:t.name,description:t.description??``,status:t.status,published:t.published,signup_open_at:fn(t.signup_open_at),signup_close_at:fn(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:tn(t.settings).enabled,success_notice_message:tn(t.settings).message,review_portal_enabled:nn(t.settings).enabled,review_portal_message:nn(t.settings).message,post_close_file_edit_enabled:rn(t.settings).enabled,post_close_file_edit_mobiles:rn(t.settings).user_mobiles.join(`
`)},ce.value=t.settings&&typeof t.settings==`object`&&!Array.isArray(t.settings)?{...t.settings}:{},S.value=Ke(t.branding_json),w.value=We(t.branding_json),_n(t),await An(),Nt.value===`channels`&&await Mn(),Nt.value===`applications`&&await Wn(),Nt.value===`signupForm`&&(await mn(),await gr(`signup`)),Nt.value===`audienceForm`&&(await gn(),await gr(`audience`)),Nt.value===`review`&&await hn()}catch(e){b.value=null,I.error(e instanceof Error?e.message:`加载赛事详情失败`)}}M(()=>[s.fullPath,u.value],()=>{Cn()});function wn(){let e=He(S.value,w.value);return{slug:x.value.slug.trim(),name:x.value.name.trim(),description:x.value.description.trim()||null,status:x.value.status,published:x.value.published,signup_open_at:pn(x.value.signup_open_at),signup_close_at:pn(x.value.signup_close_at),branding_json:e??null,pledge_title:x.value.pledge_title?.trim()?x.value.pledge_title.trim():null,pledge_title_en:x.value.pledge_title_en?.trim()?x.value.pledge_title_en.trim():null,pledge_subtitle:x.value.pledge_subtitle?.trim()?x.value.pledge_subtitle.trim():null,pledge_subtitle_en:x.value.pledge_subtitle_en?.trim()?x.value.pledge_subtitle_en.trim():null,pledge_content_html:x.value.pledge_content_html?.trim()?x.value.pledge_content_html:null,pledge_content_html_en:x.value.pledge_content_html_en?.trim()?x.value.pledge_content_html_en:null,settings:on()}}async function Tn(){Mt.value=!0;try{let e=wn();if(!e.slug||!e.name){I.warning(`请填写赛事名称和访问地址`);return}if(x.value.success_notice_enabled&&!x.value.success_notice_message.trim()){I.warning(`请填写报名成功提示语,或关闭该提示`);return}if(!x.value.review_portal_enabled&&!x.value.review_portal_message.trim()){I.warning(`关闭评审后,请填写评审端说明文字`);return}if(x.value.post_close_file_edit_enabled){let e=an(x.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);g.value=t.id,c.selectCompetition(t.id),await o.replace({name:`admin-competition-workspace`}),await Cn(),I.success(`已创建,请在本页顶部标签切换「赛道 / 报名表」等模块继续配置`);return}g.value?(await Pe(g.value,e),I.success(`已保存`),await Cn()):I.warning(`无法保存:请先选择一场赛事,或从「新建赛事」进入后再试`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}finally{Mt.value=!1}}function En(e){if(!g.value){I.warning(`请先保存赛事基础信息`);return}St.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})):[wt(1)];Ct.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:(le.value[le.value.length-1]?.sort??0)+10,is_enabled:!0,scoring_sheet_title:``,scoring_items:[wt(1)]},bt.value=!0}function Dn(){let e=(Ct.value.scoring_items[Ct.value.scoring_items.length-1]?.sort??0)+1;Ct.value.scoring_items=[...Ct.value.scoring_items,wt(e)]}function On(e){if(Ct.value.scoring_items.length<=1){Ct.value.scoring_items=[wt(1)];return}Ct.value.scoring_items=Ct.value.scoring_items.filter((t,n)=>n!==e)}function kn(){Ct.value.scoring_sheet_title=``,Ct.value.scoring_items=[]}async function An(){let e=g.value;if(!e){le.value=[];return}ue.value=!0;try{le.value=await Le(e)}finally{ue.value=!1}}async function jn(){let e=g.value;if(!e)return;let t={track_code:Ct.value.track_code.trim(),title:Ct.value.title.trim(),title_en:Ct.value.title_en.trim()||null,description:Ct.value.description.trim()||null,description_en:Ct.value.description_en.trim()||null,sort:Number(Ct.value.sort)||0,is_enabled:Ct.value.is_enabled};if(!t.track_code||!t.title){I.warning(`请填写赛道编码与标题`);return}let n=Ct.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:Ct.value.scoring_sheet_title.trim()||`评分表(${t.title})`,full_score:100,items:n}}try{St.value?await ze(e,St.value,t):await Fe(e,t),bt.value=!1,await An(),I.success(`赛道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存赛道失败`)}}async function Mn(){let e=g.value;if(!e){de.value=[];return}pe.value=!0;try{de.value=await ree(e)}catch(e){de.value=[],I.error(e instanceof Error?e.message:`加载渠道列表失败`)}finally{pe.value=!1}}async function Nn(){he.value=!0;try{me.value=await $e()}catch(e){me.value=[],I.error(e instanceof Error?e.message:`加载用户渠道列表失败`)}finally{he.value=!1}}function Pn(e){return e===`submitted`?`已提交`:e===`draft`?`草稿`:e||`—`}function Fn(e){return e===`submitted`?`success`:e===`draft`?`info`:`warning`}function In(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 Ln(e){if(e==null||e===``)return`—`;let t=Number(e);return Number.isFinite(t)?t.toFixed(2).replace(/\.?0+$/,``):String(e)}function Rn(e){return!e||e<=0?`—`:e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`}let zn=[`plan`,`supporting`];function Bn(e){return e===`plan`?`商业计划书`:e===`supporting`?`佐证材料`:e?.trim()||`其他附件`}function Vn(e){let t=zn.indexOf(e);return t===-1?zn.length:t}function Hn(e){return[...e].sort((e,t)=>{let n=Vn(e.kind)-Vn(t.kind);return n===0?(e.original_name??``).localeCompare(t.original_name??``,`zh-CN`):n})}let Un=Ce(()=>{let e=R.value?.files;return e?.length?Hn(e):[]});async function Wn(e=ke.value.page){let t=g.value;if(!t){ge.value=[],ke.value.total=0;return}ve.value=!0;try{let n=await nt(t,{page:e,per_page:ke.value.perPage,keyword:Xe.value.keyword.trim()||void 0,status:Xe.value.status||void 0,track:Xe.value.track||void 0,review_eligible:Xe.value.review_eligible,signup_channel_id:Xe.value.signup_channel_id||void 0,public_source_channel_id:Xe.value.public_source_channel_id||void 0,signup_locale:Xe.value.signup_locale||void 0,...Object.fromEntries(Object.entries(ut.value).filter(([,e])=>String(e??``).trim()!==``))});ge.value=n.data,dt.value=n.schema_list_fields??[],ft.value=n.schema_filter_fields??[],ke.value={page:n.meta.current_page,perPage:n.meta.per_page,total:n.meta.total}}catch(e){ge.value=[],I.error(e instanceof Error?e.message:`加载报名列表失败`)}finally{ve.value=!1}}function Gn(){Xe.value={keyword:``,status:`submitted`,track:``,review_eligible:!0,signup_channel_id:void 0,public_source_channel_id:void 0,signup_locale:``},ut.value={},Wn(1)}async function Kn(e,t){let n=g.value;if(n&&t!==(e.review_eligible!==!1)){vt.value=[...vt.value,e.id];try{let r=await it(n,e.id,t);e.review_eligible=r.review_eligible,R.value?.id===e.id&&(R.value.review_eligible=r.review_eligible),I.success(t?`已设为参与评审`:`已设为不参与评审`)}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}finally{vt.value=vt.value.filter(t=>t!==e.id)}}}async function qn(e){let t=g.value,n=R.value;if(!(!t||!n)&&e!==(n.review_eligible!==!1)){yt.value=!0;try{let r=await it(t,n.id,e);n.review_eligible=r.review_eligible;let i=ge.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{yt.value=!1}}}async function Jn(e){let t=g.value;if(t){if(e===`selected`&&_e.value.length===0){I.warning(`请先勾选要导出附件的项目`);return}ye.value=!0,be.value=`准备导出…`;try{let n=await tt(t,{mode:e,keyword:Xe.value.keyword.trim()||void 0,status:Xe.value.status||void 0,track:Xe.value.track||void 0,review_eligible:Xe.value.review_eligible,signup_channel_id:Xe.value.signup_channel_id||void 0,public_source_channel_id:Xe.value.public_source_channel_id||void 0,signup_locale:Xe.value.signup_locale||void 0,...Object.fromEntries(Object.entries(ut.value).filter(([,e])=>String(e??``).trim()!==``)),application_ids:e===`selected`?_e.value.map(e=>e.id):void 0},(t,n)=>{if(e===`xlsx`){be.value=`正在下载表格…`;return}be.value=`正在下载第 ${t}/${n} 个 ZIP…`});e===`xlsx`?I.success(`已导出 ${n.total} 条报名记录表格`):e===`selected`?I.success(n.part_count>1?`已下载 ${n.part_count} 个 ZIP(含全部筛选表格与 ${_e.value.length} 个所选项目附件)`:`已导出表格及 ${_e.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{ye.value=!1,be.value=``}}}function Yn(e){_e.value=e}async function Xn(e){let t=g.value;if(t){we.value=!0,xe.value=!0,R.value=null;try{R.value=await rt(t,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载报名详情失败`)}finally{xe.value=!1}}}let Zn=A(null);async function Qn(e,t,n){let r=g.value,i=R.value?.id;if(!(!r||!i)){if(Ze()||Zn.value!=null){I.warning(`附件正在下载中,请勿重复点击`);return}Zn.value=e;try{await at(r,i,e,t||`附件`,{size:n})}catch(e){I.error(e instanceof Error?e.message:`下载附件失败`)}finally{Zn.value=null}}}async function $n(){let e=g.value,t=R.value?.id;if(!(!e||!t||!d.value)){f.value=!0;try{let n=await et(e,t),r=sn(`/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{f.value=!1}}}async function er(e){if(!g.value){I.warning(`请先保存赛事基础信息`);return}let t=e;if(e)try{t=await iee(g.value,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载渠道详情失败`);return}Ot.value=t?.id??null,At.value=t??null,jt.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},Dt.value=!0}async function tr(){let e=At.value?.encryption_public_key;if(e)try{await navigator.clipboard.writeText(e),I.success(`加密公钥已复制`)}catch{I.error(`复制失败,请手动复制`)}}function nr(){let e=new Uint8Array(32);if(!globalThis.crypto?.getRandomValues){I.error(`当前浏览器不支持安全随机数,请更换浏览器后重试`);return}globalThis.crypto.getRandomValues(e),jt.value.shared_secret=btoa(String.fromCharCode(...e)).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function rr(e){return e===`mini_program`?`小程序`:e===`none`?`不回调`:`URL`}function ir(e){return e.success_callback_type===`mini_program`?e.mini_program_callback_path||`—`:e.success_callback_type===`none`?`—`:e.success_callback_url||`—`}async function ar(){let e=g.value;if(!e)return;let t={channel_name:jt.value.channel_name.trim(),status:jt.value.status,shared_secret:jt.value.shared_secret.trim(),entry_encryption_enabled:jt.value.entry_encryption_enabled,success_callback_url:jt.value.success_callback_url.trim(),success_callback_type:jt.value.success_callback_type,mini_program_callback_path:jt.value.mini_program_callback_path?.trim()||null,mini_program_callback_method:jt.value.mini_program_callback_method,remark:jt.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}kt.value=!0;try{Ot.value?await Tt(e,Ot.value,t):await aee(e,t),Dt.value=!1,await Mn(),I.success(`渠道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存渠道失败`)}finally{kt.value=!1}}async function or(e){let t=g.value;if(!t)return;let n=e.status===`enabled`?`disabled`:`enabled`;try{await Tt(t,e.id,{status:n}),await Mn(),I.success(n===`enabled`?`渠道已启用`:`渠道已停用`)}catch(e){I.error(e instanceof Error?e.message:`更新渠道状态失败`)}}async function sr(e){let t=g.value;if(t){try{await L.confirm(`确定删除赛道「${e.title}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await Ne(t,e.id),await An(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}function cr(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 lr(e){if(!g.value){I.warning(`请先选择或创建赛事`);return}Ut.value=e,Wt.value=e===`signup`?`报名表新版本`:e===`audience`?`观众报名表新版本`:`评审表新版本`,Ht.value=!0}async function ur(){let e=g.value;if(!e)return;let t=Wt.value.trim();if(!t){I.warning(`请填写版本名称`);return}try{let n=await tee(e,{purpose:Ut.value,name:t,schema_json:[],is_published:!1});Ht.value=!1;let r=n&&typeof n==`object`&&`id`in n?n:n?.data??null;Ut.value===`signup`?await mn():Ut.value===`audience`?await gn():await hn(),I.success(`已创建表单版本`),r?.id&&Ut.value!==`review`?await hr(r):Ut.value===`signup`?await gr(`signup`):Ut.value===`audience`&&await gr(`audience`)}catch(e){I.error(e instanceof Error?e.message:`创建失败`)}}async function dr(e){let t=g.value;if(t)try{await je(t,{form_schema_id:e}),I.success(`已设为当前报名表`),await Cn(),await mn()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function fr(e){let t=g.value;if(t)try{await je(t,{review_form_schema_id:e}),I.success(`已设为当前评审表`),await Cn(),await hn()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function pr(e){let t=g.value;if(t)try{await je(t,{audience_form_schema_id:e}),I.success(`已设为当前观众报名表`),await Cn(),await gn()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function mr(e,t){let n=g.value;if(n)try{await gt(n,e.id,{is_published:t}),e.purpose===`signup`?await mn():e.purpose===`audience`?await gn():await hn()}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}}async function hr(e){let t=g.value;if(!t)return!1;Yt.value=``;try{let n=await ht(t,e.id);return n.signup_field_registry&&xt(n.signup_field_registry),Kt.value=n.id,qt.value=n.name,Xt.value=n.purpose,Zt.value=xl(n.schema_json??[],n.purpose),Jt.value=JSON.stringify(n.schema_json??[],null,2),Qt.value=`visual`,!0}catch(e){return I.error(e instanceof Error?e.message:`加载表单详情失败`),!1}}async function gr(e){let t=e===`signup`?Pt.value:It.value,n=e===`signup`?t.find(e=>e.is_current_signup):t.find(e=>e.is_current_audience),r=Kt.value&&t.find(e=>e.id===Kt.value)||n||t[0];if(!r){Kt.value=null,qt.value=``,Xt.value=e,Zt.value=[],Jt.value=`[]`;return}Kt.value===r.id&&Xt.value===e||await hr(r)}async function _r(e){let t=Pt.value.find(t=>t.id===e)??It.value.find(t=>t.id===e);t&&await hr(t)}async function vr(e){await hr(e)&&e.purpose===`review`&&(Gt.value=!0)}async function yr(){let e=g.value,t=Kt.value;if(!e||!t)return;Yt.value=``;let n=[];if(Qt.value===`visual`){let e=Cl(Zt.value,Xt.value);if(e){Yt.value=e;return}n=Sl(Zt.value,Xt.value)}else try{let e=JSON.parse(Jt.value);if(!Array.isArray(e)){Yt.value=`表单定义须为 JSON 数组`;return}n=e}catch{Yt.value=`JSON 格式不正确`;return}try{await gt(e,t,{name:qt.value.trim()||void 0,schema_json:n}),Gt.value&&=!1,await mn(),await gn(),await hn(),I.success(`表单已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function br(e){let t=g.value;if(t){try{await L.confirm(`确定删除表单版本「${e.name}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await nee(t,e.id),Kt.value===e.id&&(Kt.value=null),e.purpose===`signup`?(await mn(),Nt.value===`signupForm`&&await gr(`signup`)):e.purpose===`audience`?(await gn(),Nt.value===`audienceForm`&&await gr(`audience`)):await hn(),await Cn(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}async function xr(){let e=g.value;if(!e)return;zt.value=``;let t=null,n=Rt.value.trim();if(n)try{if(t=JSON.parse(n),t!==null&&typeof t!=`object`){zt.value=`计分规则须为 JSON 对象`;return}}catch{zt.value=`JSON 格式不正确`;return}try{await je(e,{scoring_rules_json:t}),I.success(`计分规则已保存(留空表示使用系统默认)`),await Cn()}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function Sr(){let e=g.value;if(e)try{await je(e,{review_form_schema_id:null}),I.success(`已取消评审表绑定,将使用系统默认评审项`),await Cn(),await hn()}catch(e){I.error(e instanceof Error?e.message:`操作失败`)}}return C(()=>{Cn()}),(t,i)=>{let s=O(`el-button`),c=O(`el-alert`),l=O(`el-input`),u=O(`el-form-item`),C=O(`el-col`),A=O(`el-switch`),M=O(`el-option`),ce=O(`el-select`),Ce=O(`el-checkbox`),Te=O(`el-date-picker`),Ee=O(`el-row`),De=O(`el-form`),I=O(`el-tab-pane`),L=O(`el-table-column`),Oe=O(`el-tag`),Ae=O(`el-table`),je=O(`el-dropdown-item`),Me=O(`el-dropdown-menu`),Ne=O(`el-dropdown`),Pe=O(`el-pagination`),Fe=O(`el-input-number`),Ie=O(`el-radio-button`),Le=O(`el-radio-group`),Re=O(`el-upload`),ze=O(`el-tabs`),Be=O(`el-descriptions-item`),Ve=O(`el-descriptions`),He=O(`el-drawer`),Ue=O(`el-dialog`),We=O(`el-divider`),Ge=h(`loading`);return P(),y(`div`,wOe,[v(`div`,TOe,[v(`h2`,EOe,N($t.value),1),p(s,{class:`workspace-back`,onClick:i[0]||=e=>a(o).push({name:`admin-competitions-list`})},{default:F(()=>[...i[111]||=[r(` 返回赛事列表 `,-1)]]),_:1})]),_.value&&!m()?(P(),n(c,{key:0,title:`请选择赛事`,type:`warning`,closable:!1,"show-icon":``,class:`workspace-alert`},{default:F(()=>[...i[112]||=[r(` 请先在顶部`,-1),v(`strong`,null,`赛事切换`,-1),r(`中选择一场赛事,或从「赛事列表」点击「进入赛事中心」。 `,-1)]]),_:1})):(P(),n(ze,{key:1,modelValue:Nt.value,"onUpdate:modelValue":i[78]||=e=>Nt.value=e,type:`border-card`,class:e([`workspace-tabs`,{"workspace-tabs--create":m()}])},{default:F(()=>[p(I,{label:`基础信息`,name:`basic`},{default:F(()=>[p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:20},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`赛事名称`},{default:F(()=>[p(l,{modelValue:x.value.name,"onUpdate:modelValue":i[1]||=e=>x.value.name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`访问地址`},{default:F(()=>[p(l,{modelValue:x.value.slug,"onUpdate:modelValue":i[2]||=e=>x.value.slug=e,autocomplete:`off`},null,8,[`modelValue`]),i[113]||=v(`p`,{class:`form-hint`},`用于选手端网址识别,可使用中文、数字、横线等,请勿含空格。`,-1),v(`div`,DOe,[(P(!0),y(k,null,E(cn.value,(e,t)=>(P(),y(`p`,{key:t,class:`form-hint login-link-preview`},[v(`span`,OOe,N(e.label),1),v(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,class:`login-link-url`},N(e.href),9,kOe)]))),128))])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`描述`},{default:F(()=>[p(l,{modelValue:x.value.description,"onUpdate:modelValue":i[3]||=e=>x.value.description=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`参赛承诺书`},{default:F(()=>[i[114]||=v(`p`,{class:`form-hint pledge-hint`},[r(` 以下为选手端签署弹窗顶部的标题、副标题与正文。标题可用 `),v(`code`,null,N(`{name}`)),r(` 插入赛事名称;任一项留空则使用系统默认文案。 `)],-1),p(l,{modelValue:x.value.pledge_title,"onUpdate:modelValue":i[4]||=e=>x.value.pledge_title=e,class:`pledge-heading-input`,maxlength:`200`,"show-word-limit":``,placeholder:`默认:{name}赛事承诺书`},null,8,[`modelValue`]),p(l,{modelValue:x.value.pledge_subtitle,"onUpdate:modelValue":i[5]||=e=>x.value.pledge_subtitle=e,class:`pledge-heading-input`,maxlength:`500`,"show-word-limit":``,placeholder:`默认:请完整阅读以下 4 项承诺,确认无误后在下方签名。`},null,8,[`modelValue`]),(P(),n($9,{modelValue:x.value.pledge_content_html,"onUpdate:modelValue":i[6]||=e=>x.value.pledge_content_html=e,key:en.value},null,8,[`modelValue`]))]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`参赛承诺书(英文)`},{default:F(()=>[i[115]||=v(`p`,{class:`form-hint pledge-hint`},` 英文报名端签署弹窗标题、副标题与正文。留空则使用系统英文默认文案。 `,-1),p(l,{modelValue:x.value.pledge_title_en,"onUpdate:modelValue":i[7]||=e=>x.value.pledge_title_en=e,class:`pledge-heading-input`,maxlength:`200`,"show-word-limit":``,placeholder:`Default: {name} Declaration`},null,8,[`modelValue`]),p(l,{modelValue:x.value.pledge_subtitle_en,"onUpdate:modelValue":i[8]||=e=>x.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`]),(P(),n($9,{modelValue:x.value.pledge_content_html_en,"onUpdate:modelValue":i[9]||=e=>x.value.pledge_content_html_en=e,key:en.value+`-en`},null,8,[`modelValue`]))]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`报名成功提示`},{default:F(()=>[p(A,{modelValue:x.value.success_notice_enabled,"onUpdate:modelValue":i[10]||=e=>x.value.success_notice_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),i[116]||=v(`p`,{class:`form-hint mt-2`},` 开启后,选手提交报名成功会看到自定义提示;关闭时保持系统默认提示。 `,-1),x.value.success_notice_enabled?(P(),n(l,{key:0,modelValue:x.value.success_notice_message,"onUpdate:modelValue":i[11]||=e=>x.value.success_notice_message=e,type:`textarea`,rows:4,maxlength:`1000`,"show-word-limit":``,placeholder:`请输入报名成功后展示给选手的提示语`},null,8,[`modelValue`])):Se(``,!0)]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`是否开启评审`},{default:F(()=>[p(A,{modelValue:x.value.review_portal_enabled,"onUpdate:modelValue":i[12]||=e=>x.value.review_portal_enabled=e,"active-text":`是`,"inactive-text":`否`},null,8,[`modelValue`]),i[117]||=v(`p`,{class:`form-hint mt-2`},` 关闭后,评审员无法登录评审端;已登录的评审员将退回登录页,并看到下方说明文字。仅影响评审端,不影响选手端与管理端。 `,-1),p(l,{modelValue:x.value.review_portal_message,"onUpdate:modelValue":i[13]||=e=>x.value.review_portal_message=e,type:`textarea`,rows:4,maxlength:`2000`,"show-word-limit":``,placeholder:`请输入关闭评审时展示给评审员的说明文字`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`截止后补传附件`},{default:F(()=>[p(A,{modelValue:x.value.post_close_file_edit_enabled,"onUpdate:modelValue":i[14]||=e=>x.value.post_close_file_edit_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),i[118]||=v(`p`,{class:`form-hint mt-2`},` 开启后,报名截止后仅白名单内登录手机号可上传/删除附件;其他报名信息仍不可修改,且无需再次提交。若项目已有评委评审/打分,仍不可改附件。 `,-1),x.value.post_close_file_edit_enabled?(P(),n(l,{key:0,modelValue:x.value.post_close_file_edit_mobiles,"onUpdate:modelValue":i[15]||=e=>x.value.post_close_file_edit_mobiles=e,type:`textarea`,rows:4,maxlength:`2000`,"show-word-limit":``,placeholder:`每行一个登录手机号,也可用逗号分隔,例如:
13800138000
13900139000`},null,8,[`modelValue`])):Se(``,!0)]),_:1})]),_:1}),p(C,{xs:24,sm:12,md:8},{default:F(()=>[p(u,{label:`状态`},{default:F(()=>[p(ce,{modelValue:x.value.status,"onUpdate:modelValue":i[16]||=e=>x.value.status=e,class:`w-100`},{default:F(()=>[p(M,{label:`草稿`,value:`draft`}),p(M,{label:`已发布`,value:`published`}),p(M,{label:`报名进行中`,value:`signup_open`}),p(M,{label:`报名已截止`,value:`signup_closed`}),p(M,{label:`评审中`,value:`reviewing`}),p(M,{label:`已结束`,value:`ended`})]),_:1},8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,sm:12,md:8},{default:F(()=>[p(u,{label:`对外展示`},{default:F(()=>[p(Ce,{modelValue:x.value.published,"onUpdate:modelValue":i[17]||=e=>x.value.published=e},{default:F(()=>[...i[119]||=[r(`在选手端展示`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`报名开始`},{default:F(()=>[p(Te,{modelValue:x.value.signup_open_at,"onUpdate:modelValue":i[18]||=e=>x.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(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`报名截止`},{default:F(()=>[p(Te,{modelValue:x.value.signup_close_at,"onUpdate:modelValue":i[19]||=e=>x.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(u,null,{default:F(()=>[p(s,{"native-type":`button`,type:`primary`,loading:Mt.value,onClick:Tn},{default:F(()=>[r(N(Mt.value?`保存中…`:`保存基础信息`),1)]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1}),m()?Se(``,!0):(P(),n(I,{key:0,label:`赛道管理`,name:`tracks`,lazy:``},{default:F(()=>[ie((P(),y(`div`,AOe,[v(`div`,jOe,[i[121]||=v(`p`,{class:`form-hint pane-toolbar-tip`},` 维护本场主题赛道与打分表(满分 100)。未配置打分表的赛道禁止评审。新建赛事请先保存基础信息。 `,-1),p(s,{type:`primary`,onClick:i[20]||=e=>En()},{default:F(()=>[...i[120]||=[r(`新增赛道`,-1)]]),_:1})]),p(Ae,{data:le.value,stripe:``,border:``,"empty-text":`暂无赛道`,class:`workspace-table`},{default:F(()=>[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:F(({row:e})=>[v(`span`,MOe,N(e.description||`—`),1)]),_:1}),p(L,{label:`打分表`,width:`100`},{default:F(({row:e})=>[p(Oe,{type:e.scoring_sheet_configured?`success`:`danger`,effect:`plain`,size:`small`},{default:F(()=>[r(N(e.scoring_sheet_configured?`已配置`:`未配置`),1)]),_:2},1032,[`type`])]),_:1}),p(L,{prop:`sort`,label:`排序`,width:`80`}),p(L,{label:`启用`,width:`80`},{default:F(({row:e})=>[r(N(e.is_enabled?`是`:`否`),1)]),_:1}),p(L,{label:`操作`,width:`140`,fixed:`right`,align:`right`},{default:F(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>En(e)},{default:F(()=>[...i[122]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:`danger`,size:`small`,onClick:t=>sr(e)},{default:F(()=>[...i[123]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Ge,ue.value]])]),_:1})),m()?Se(``,!0):(P(),n(I,{key:1,label:`观众场次`,name:`audienceSessions`,lazy:``},{default:F(()=>[g.value?(P(),n(lt,{key:0,"competition-id":g.value},null,8,[`competition-id`])):Se(``,!0)]),_:1})),m()?Se(``,!0):(P(),n(I,{key:2,label:`观众报名`,name:`audienceRegistrations`,lazy:``},{default:F(()=>[g.value?(P(),n(eee,{key:0,"competition-id":g.value},null,8,[`competition-id`])):Se(``,!0)]),_:1})),m()?Se(``,!0):(P(),n(I,{key:3,label:`赛事管理员`,name:`competitionAdmins`,lazy:``},{default:F(()=>[g.value?(P(),n(COe,{key:0,"competition-id":g.value},null,8,[`competition-id`])):Se(``,!0)]),_:1})),m()?Se(``,!0):(P(),n(I,{key:4,label:`渠道管理`,name:`channels`,lazy:``},{default:F(()=>[ie((P(),y(`div`,NOe,[v(`div`,POe,[i[126]||=v(`p`,{class:`form-hint pane-toolbar-tip`},` 渠道编码由系统自动生成。共享密钥用于渠道跳转验签,请与渠道方安全同步。 `,-1),v(`div`,null,[p(s,{loading:pe.value,onClick:Mn},{default:F(()=>[...i[124]||=[r(` 刷新列表 `,-1)]]),_:1},8,[`loading`]),p(s,{type:`primary`,onClick:i[21]||=e=>er()},{default:F(()=>[...i[125]||=[r(` 新增渠道 `,-1)]]),_:1})])]),p(Ae,{data:de.value,stripe:``,border:``,"empty-text":`暂无渠道`,class:`workspace-table`},{default:F(()=>[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:F(({row:e})=>[p(Oe,{type:e.status===`enabled`?`success`:`info`,effect:`plain`},{default:F(()=>[r(N(e.status===`enabled`?`已启用`:`已停用`),1)]),_:2},1032,[`type`])]),_:1}),p(L,{label:`回调类型`,width:`96`},{default:F(({row:e})=>[r(N(rr(e.success_callback_type)),1)]),_:1}),p(L,{label:`回调目标`,"min-width":`240`,"show-overflow-tooltip":``},{default:F(({row:e})=>[v(`span`,FOe,N(ir(e)),1)]),_:1}),p(L,{prop:`remark`,label:`备注`,"min-width":`150`,"show-overflow-tooltip":``},{default:F(({row:e})=>[v(`span`,IOe,N(e.remark||`—`),1)]),_:1}),p(L,{prop:`created_at`,label:`创建时间`,"min-width":`180`}),p(L,{label:`操作`,width:`150`,fixed:`right`,align:`right`},{default:F(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>er(e)},{default:F(()=>[...i[127]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:e.status===`enabled`?`danger`:`success`,size:`small`,onClick:t=>or(e)},{default:F(()=>[r(N(e.status===`enabled`?`停用`:`启用`),1)]),_:2},1032,[`type`,`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Ge,pe.value]])]),_:1})),m()?Se(``,!0):(P(),n(I,{key:5,label:`报名信息`,name:`applications`,lazy:``},{default:F(()=>[ie((P(),y(`div`,LOe,[v(`div`,ROe,[v(`div`,zOe,[p(l,{modelValue:Xe.value.keyword,"onUpdate:modelValue":i[22]||=e=>Xe.value.keyword=e,placeholder:`搜索项目、姓名、学校、手机号、推荐方`,clearable:``,class:`application-filter-keyword`,onKeyup:i[23]||=fe(e=>Wn(1),[`enter`])},null,8,[`modelValue`]),p(ce,{modelValue:Xe.value.status,"onUpdate:modelValue":i[24]||=e=>Xe.value.status=e,placeholder:`状态`,clearable:``,teleported:``,class:`application-filter-select`},{default:F(()=>[p(M,{label:`草稿`,value:`draft`}),p(M,{label:`已提交`,value:`submitted`})]),_:1},8,[`modelValue`]),p(ce,{modelValue:Xe.value.track,"onUpdate:modelValue":i[25]||=e=>Xe.value.track=e,placeholder:`赛道`,clearable:``,teleported:``,class:`application-filter-select`},{default:F(()=>[(P(!0),y(k,null,E(le.value,e=>(P(),n(M,{key:e.track_code,label:e.title,value:e.track_code},null,8,[`label`,`value`]))),128)),le.value.some(e=>e.track_code===a(`other`))?Se(``,!0):(P(),n(M,{key:0,label:`其他`,value:a(Qe)},null,8,[`value`]))]),_:1},8,[`modelValue`]),p(ce,{modelValue:Xe.value.signup_locale,"onUpdate:modelValue":i[26]||=e=>Xe.value.signup_locale=e,placeholder:`填报语言`,clearable:``,teleported:``,class:`application-filter-select`},{default:F(()=>[p(M,{label:`中文填报`,value:`zh-CN`}),p(M,{label:`英文填报`,value:`en`})]),_:1},8,[`modelValue`]),(P(!0),y(k,null,E(_t.value,e=>(P(),n(ce,{key:`filter-${e.key}`,modelValue:ut.value[e.key],"onUpdate:modelValue":t=>ut.value[e.key]=t,placeholder:e.label,clearable:``,teleported:``,class:`application-filter-select`},{default:F(()=>[(P(!0),y(k,null,E(e.options??[],e=>(P(),n(M,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:2},1032,[`modelValue`,`onUpdate:modelValue`,`placeholder`]))),128)),p(ce,{modelValue:Xe.value.review_eligible,"onUpdate:modelValue":i[27]||=e=>Xe.value.review_eligible=e,placeholder:`是否参与评审`,clearable:``,teleported:``,class:`application-filter-select`},{default:F(()=>[p(M,{label:`参与评审`,value:!0}),p(M,{label:`不参与评审`,value:!1})]),_:1},8,[`modelValue`]),p(ce,{modelValue:Xe.value.signup_channel_id,"onUpdate:modelValue":i[28]||=e=>Xe.value.signup_channel_id=e,placeholder:`报名渠道`,clearable:``,filterable:``,teleported:``,class:`application-filter-select application-filter-channel`},{default:F(()=>[(P(!0),y(k,null,E(de.value,e=>(P(),n(M,{key:e.id,label:`${e.channel_name}(${e.channel_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),p(ce,{modelValue:Xe.value.public_source_channel_id,"onUpdate:modelValue":i[29]||=e=>Xe.value.public_source_channel_id=e,placeholder:`用户渠道`,clearable:``,filterable:``,teleported:``,loading:he.value,class:`application-filter-select application-filter-channel`},{default:F(()=>[(P(!0),y(k,null,E(me.value,e=>(P(),n(M,{key:e.id,label:`${e.source_name}(${e.source_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`loading`])]),v(`div`,BOe,[p(Ne,{trigger:`click`,onCommand:Jn},{dropdown:F(()=>[p(Me,null,{default:F(()=>[p(je,{command:`xlsx`},{default:F(()=>[...i[129]||=[r(`仅导出表格`,-1)]]),_:1}),p(je,{command:`selected`},{default:F(()=>[i[130]||=r(` 导出表格 + 所选项目附件 `,-1),_e.value.length?(P(),y(`span`,VOe,` (已选 `+N(_e.value.length)+`) `,1)):Se(``,!0)]),_:1}),p(je,{command:`all`},{default:F(()=>[...i[131]||=[r(`导出表格 + 全部项目附件`,-1)]]),_:1})]),_:1})]),default:F(()=>[p(s,{loading:ye.value},{default:F(()=>[r(N(be.value||`导出`)+` `,1),i[128]||=v(`span`,{class:`export-dropdown-caret`},`▾`,-1)]),_:1},8,[`loading`])]),_:1}),p(s,{onClick:Gn},{default:F(()=>[...i[132]||=[r(`重置`,-1)]]),_:1}),p(s,{type:`primary`,onClick:i[30]||=e=>Wn(1)},{default:F(()=>[...i[133]||=[r(`查询`,-1)]]),_:1})])]),_e.value.length?(P(),y(`p`,HOe,` 已选择 `+N(_e.value.length)+` 个项目,可使用「导出表格 + 所选项目附件」 `,1)):Se(``,!0),p(Ae,{data:ge.value,"row-key":`id`,stripe:``,border:``,"empty-text":`暂无报名记录`,class:`workspace-table`,onSelectionChange:Yn},{default:F(()=>[p(L,{type:`selection`,width:`48`,fixed:`left`,"reserve-selection":``}),p(L,{label:`填报语言`,width:`110`},{default:F(({row:e})=>[p(Oe,{type:e.signup_locale===`en`?`warning`:``,effect:`plain`},{default:F(()=>[r(N(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:F(({row:e})=>[p(Oe,{type:Fn(e.status),effect:`plain`},{default:F(()=>[r(N(Pn(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:F(({row:e})=>[v(`span`,UOe,N(e.event_location_label||e.event_location||`—`),1)]),_:1}),p(L,{prop:`track_title`,label:`赛道`,"min-width":`130`,"show-overflow-tooltip":``}),(P(!0),y(k,null,E(pt.value,e=>(P(),n(L,{key:`col-${e.key}`,label:e.label,"min-width":`120`,"show-overflow-tooltip":``},{default:F(({row:t})=>[r(N(t.schema_display?.[e.key]||`—`),1)]),_:2},1032,[`label`]))),128)),p(L,{label:`报名渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:F(({row:e})=>[v(`span`,WOe,N(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:F(({row:e})=>[v(`span`,GOe,N(e.recommend||`—`),1)]),_:1}),p(L,{prop:`contact_mobile`,label:`手机号`,width:`128`}),p(L,{label:`提交人`,width:`110`,"show-overflow-tooltip":``},{default:F(({row:e})=>[v(`span`,KOe,N(e.submitter_name||e.submitter_mobile||`—`),1)]),_:1}),p(L,{prop:`submitter_mobile`,label:`提交人手机号`,width:`128`},{default:F(({row:e})=>[v(`span`,qOe,N(e.submitter_mobile||`—`),1)]),_:1}),p(L,{label:`用户渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:F(({row:e})=>[v(`span`,JOe,N(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:F(({row:e})=>[r(N(e.files_count),1)]),_:1}),p(L,{label:`评分`,width:`150`},{default:F(({row:e})=>[v(`span`,YOe,N(e.submitted_review_count)+` 人 / 均分 `+N(Ln(e.team_avg)),1)]),_:1}),p(L,{label:`是否参与评审`,width:`130`,align:`center`},{default:F(({row:e})=>[p(A,{"model-value":e.review_eligible!==!1,loading:vt.value.includes(e.id),"inline-prompt":``,"active-text":`是`,"inactive-text":`否`,onChange:t=>void Kn(e,t===!0)},null,8,[`model-value`,`loading`,`onChange`])]),_:1}),p(L,{label:`提交时间`,"min-width":`150`},{default:F(({row:e})=>[r(N(In(e.submitted_at)),1)]),_:1}),p(L,{label:`操作`,width:`92`,fixed:`right`,align:`right`},{default:F(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>Xn(e)},{default:F(()=>[...i[134]||=[r(`详情`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),v(`div`,XOe,[p(Pe,{"current-page":ke.value.page,"onUpdate:currentPage":i[31]||=e=>ke.value.page=e,"page-size":ke.value.perPage,"onUpdate:pageSize":i[32]||=e=>ke.value.perPage=e,background:``,layout:`total, sizes, prev, pager, next`,"page-sizes":[10,15,30,50,100],total:ke.value.total,onCurrentChange:Wn,onSizeChange:i[33]||=e=>Wn(1)},null,8,[`current-page`,`page-size`,`total`])])])),[[Ge,ve.value]])]),_:1})),m()?Se(``,!0):(P(),n(I,{key:6,label:`报名表配置`,name:`signupForm`,lazy:``},{default:F(()=>[Nt.value===`signupForm`?(P(),n(Kl,{key:0,purpose:`signup`,schemas:Pt.value,"bound-id":b.value?.form_schema_id,"bound-hint":`打开本页即可编辑当前报名表:左侧选组件,中间预览,右侧改中英标签。保存后点「设为当前报名表」才会在选手端生效。`,busy:Lt.value,"editor-id":Kt.value,"onUpdate:editorId":i[34]||=e=>Kt.value=e,"editor-name":qt.value,"onUpdate:editorName":i[35]||=e=>qt.value=e,items:Zt.value,"onUpdate:items":i[36]||=e=>Zt.value=e,"editor-tab":Qt.value,"onUpdate:editorTab":i[37]||=e=>Qt.value=e,"json-text":Jt.value,"onUpdate:jsonText":i[38]||=e=>Jt.value=e,error:Yt.value,"onUpdate:error":i[39]||=e=>Yt.value=e,onCreate:i[40]||=e=>lr(`signup`),onRefresh:i[41]||=e=>mn().then(()=>gr(`signup`)),onSave:yr,onBind:dr,onPublish:mr,onRemove:br,onSelect:_r,onJsonBlur:un},null,8,[`schemas`,`bound-id`,`busy`,`editor-id`,`editor-name`,`items`,`editor-tab`,`json-text`,`error`])):Se(``,!0)]),_:1})),m()?Se(``,!0):(P(),n(I,{key:7,label:`观众报名表`,name:`audienceForm`,lazy:``},{default:F(()=>[Nt.value===`audienceForm`?(P(),n(Kl,{key:0,purpose:`audience`,schemas:It.value,"bound-id":b.value?.audience_form_schema_id,"bound-hint":`打开本页即可编辑当前观众报名表。设为当前后观众端按该版本动态渲染;未绑定则使用默认五项。`,busy:Lt.value,"editor-id":Kt.value,"onUpdate:editorId":i[42]||=e=>Kt.value=e,"editor-name":qt.value,"onUpdate:editorName":i[43]||=e=>qt.value=e,items:Zt.value,"onUpdate:items":i[44]||=e=>Zt.value=e,"editor-tab":Qt.value,"onUpdate:editorTab":i[45]||=e=>Qt.value=e,"json-text":Jt.value,"onUpdate:jsonText":i[46]||=e=>Jt.value=e,error:Yt.value,"onUpdate:error":i[47]||=e=>Yt.value=e,onCreate:i[48]||=e=>lr(`audience`),onRefresh:i[49]||=e=>gn().then(()=>gr(`audience`)),onSave:yr,onBind:pr,onPublish:mr,onRemove:br,onSelect:_r,onJsonBlur:un},null,8,[`schemas`,`bound-id`,`busy`,`editor-id`,`editor-name`,`items`,`editor-tab`,`json-text`,`error`])):Se(``,!0)]),_:1})),m()?Se(``,!0):(P(),n(I,{key:8,label:`评审与计分`,name:`review`,lazy:``},{default:F(()=>[v(`div`,ZOe,[i[142]||=v(`h3`,{class:`section-title`},`评审打分表`,-1),v(`p`,QOe,[i[135]||=r(` 配置评审端打分项(与报名表独立)。当前绑定编号:`,-1),v(`strong`,null,N(b.value?.review_form_schema_id??`未绑定(系统默认)`),1)]),v(`div`,$Oe,[p(s,{type:`primary`,disabled:!g.value,onClick:i[50]||=e=>lr(`review`)},{default:F(()=>[...i[136]||=[r(` 新建评审表版本 `,-1)]]),_:1},8,[`disabled`]),p(s,{onClick:Sr},{default:F(()=>[...i[137]||=[r(`取消绑定(用默认)`,-1)]]),_:1}),p(s,{loading:Lt.value,onClick:hn},{default:F(()=>[...i[138]||=[r(`刷新列表`,-1)]]),_:1},8,[`loading`])]),p(Ae,{data:Ft.value,stripe:``,border:``,"empty-text":`暂无版本`,class:`workspace-table workspace-table--mb`},{default:F(()=>[p(L,{prop:`name`,label:`名称`,"min-width":`120`}),p(L,{prop:`version`,label:`版本`,width:`80`}),p(L,{label:`发布`,width:`72`},{default:F(({row:e})=>[r(N(e.is_published?`是`:`否`),1)]),_:1}),p(L,{label:`当前`,width:`88`},{default:F(({row:e})=>[r(N(e.is_current_review?`当前`:`—`),1)]),_:1}),p(L,{label:`字段预览`,"min-width":`200`},{default:F(({row:e})=>[v(`span`,eke,N(cr(e.field_labels,e.schema_json)),1)]),_:1}),p(L,{label:`操作`,width:`260`,fixed:`right`,align:`right`},{default:F(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,onClick:t=>fr(e.id)},{default:F(()=>[...i[139]||=[r(`设为当前`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,type:`primary`,size:`small`,onClick:t=>vr(e)},{default:F(()=>[...i[140]||=[r(`编辑`,-1)]]),_:1},8,[`onClick`]),p(s,{link:``,size:`small`,onClick:t=>mr(e,!e.is_published)},{default:F(()=>[r(N(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),p(s,{link:``,type:`danger`,size:`small`,onClick:t=>br(e)},{default:F(()=>[...i[141]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),v(`div`,tke,[i[148]||=v(`h3`,{class:`section-title`},`计分规则`,-1),i[149]||=v(`p`,{class:`form-hint`},` 数据库中按 JSON 对象存储。留空并保存表示使用系统默认规则。多数情况只需填写各评分维度的 key 与权重,再点「生成 JSON」。 `,-1),i[150]||=v(`p`,{class:`subsection-label`},`快捷配置(维度加权求和 → line_total)`,-1),i[151]||=v(`p`,{class:`form-hint`},`「维度 key」须与评审 Schema 里数字打分项的字段名一致。`,-1),p(Ae,{data:Vt.value,border:``,size:`small`,class:`workspace-table workspace-table--mb`},{default:F(()=>[p(L,{label:`维度 key`,"min-width":`160`},{default:F(({row:e})=>[p(l,{modelValue:e.key,"onUpdate:modelValue":t=>e.key=t,size:`small`,placeholder:`如 dim_innovation`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),p(L,{label:`权重`,width:`120`},{default:F(({row:e})=>[p(Fe,{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:F(({row:e})=>[p(Fe,{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:F(({row:e})=>[p(Fe,{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:F(({$index:e})=>[p(s,{link:``,type:`danger`,size:`small`,onClick:t=>bn(e)},{default:F(()=>[...i[143]||=[r(`删行`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),v(`div`,nke,[p(s,{onClick:yn},{default:F(()=>[...i[144]||=[r(`增加一行`,-1)]]),_:1}),p(s,{onClick:vn},{default:F(()=>[...i[145]||=[r(`从下方 JSON 解析到表格`,-1)]]),_:1}),p(s,{type:`primary`,onClick:Sn},{default:F(()=>[...i[146]||=[r(`根据表格生成 JSON`,-1)]]),_:1})]),i[152]||=v(`p`,{class:`subsection-label`},`高级:直接编辑完整规则 JSON`,-1),p(l,{modelValue:Rt.value,"onUpdate:modelValue":i[51]||=e=>Rt.value=e,type:`textarea`,rows:8,class:`json-area`,spellcheck:`false`},null,8,[`modelValue`]),zt.value?(P(),n(c,{key:0,type:`error`,closable:!1,class:`mt-2`,description:zt.value},null,8,[`description`])):Se(``,!0),p(s,{type:`primary`,class:`mt-2`,onClick:xr},{default:F(()=>[...i[147]||=[r(`保存计分规则`,-1)]]),_:1})])]),_:1})),m()?Se(``,!0):(P(),n(I,{key:9,label:`品牌与文案`,name:`brand`,lazy:``},{default:F(()=>[v(`div`,rke,[p(Le,{modelValue:T.value,"onUpdate:modelValue":i[52]||=e=>T.value=e},{default:F(()=>[p(Ie,{value:`zh`},{default:F(()=>[...i[153]||=[r(`中文对外文案`,-1)]]),_:1}),p(Ie,{value:`en`},{default:F(()=>[...i[154]||=[r(`英文登录 / 报名页`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),i[174]||=v(`p`,{class:`form-hint`},` 英文登录页的主标题、欢迎语、页脚在「英文登录 / 报名页」里配置。Logo、主题色与中文共用。改完请点下方保存。 `,-1),T.value===`zh`?(P(),y(k,{key:0},[i[162]||=v(`h3`,{class:`section-title`},`整站`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(u,{label:`浏览器标签标题`},{default:F(()=>[p(l,{modelValue:S.value.documentTitle,"onUpdate:modelValue":i[53]||=e=>S.value.documentTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),i[163]||=v(`h3`,{class:`section-title`},`登录页`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:16},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`品牌辅助行`},{default:F(()=>[p(l,{modelValue:S.value.login.markLine,"onUpdate:modelValue":i[54]||=e=>S.value.login.markLine=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`主标题`},{default:F(()=>[p(l,{modelValue:S.value.login.headline,"onUpdate:modelValue":i[55]||=e=>S.value.login.headline=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`标语`},{default:F(()=>[p(l,{modelValue:S.value.login.slogan,"onUpdate:modelValue":i[56]||=e=>S.value.login.slogan=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`登录卡片欢迎语`},{default:F(()=>[p(l,{modelValue:S.value.login.cardWelcome,"onUpdate:modelValue":i[57]||=e=>S.value.login.cardWelcome=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`页脚版权`},{default:F(()=>[p(l,{modelValue:S.value.login.footerCopyright,"onUpdate:modelValue":i[58]||=e=>S.value.login.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`赛事 Logo`},{default:F(()=>[v(`div`,ike,[v(`img`,{class:`brand-logo-upload__preview`,src:ee.value,alt:``},null,8,ake),v(`div`,oke,[v(`div`,ske,[p(Re,{"show-file-list":!1,accept:`image/png,image/jpeg,image/webp,image/gif,image/svg+xml`,disabled:!g.value||D.value,"http-request":re},{default:F(()=>[p(s,{type:`primary`,loading:D.value,disabled:!g.value},{default:F(()=>[...i[155]||=[r(` 上传 Logo `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1},8,[`disabled`]),S.value.login.logoUrl?(P(),n(s,{key:0,disabled:D.value||!g.value,onClick:ae},{default:F(()=>[...i[156]||=[r(` 清除 `,-1)]]),_:1},8,[`disabled`])):Se(``,!0)]),i[157]||=v(`p`,{class:`form-hint mb-2 mt-2`},` 登录页左侧与报名、观众、评审、管理等端口顶栏共用。支持 PNG / JPG / WebP / SVG,不超过 2MB。未上传时使用默认标志图。 `,-1),p(l,{modelValue:S.value.login.logoUrl,"onUpdate:modelValue":i[59]||=e=>S.value.login.logoUrl=e,placeholder:`也可粘贴图片网址(https 或 /storage/...)`},null,8,[`modelValue`])])])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`网站图标网址`},{default:F(()=>[p(l,{modelValue:S.value.login.faviconUrl,"onUpdate:modelValue":i[60]||=e=>S.value.login.faviconUrl=e,placeholder:`图标网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`主题色(如 #109bd3)`},{default:F(()=>[p(l,{modelValue:S.value.login.themePrimary,"onUpdate:modelValue":i[61]||=e=>S.value.login.themePrimary=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`登录/报名页咨询信息`},{default:F(()=>[p(A,{modelValue:S.value.login.showConsult,"onUpdate:modelValue":i[62]||=e=>S.value.login.showConsult=e,"active-text":`显示`,"inactive-text":`隐藏`},null,8,[`modelValue`]),i[158]||=v(`p`,{class:`form-hint mb-0 mt-1`},` 名称与内容均可改,不限于「参赛咨询 / 技术咨询」。可增删行;内容中的电话会自动变成可拨打链接。全部留空则不展示。英文登录页的咨询名称可在「英文登录 / 报名页」单独填写。 `,-1)]),_:1})]),_:1}),S.value.login.showConsult?(P(),n(C,{key:0,span:24},{default:F(()=>[(P(!0),y(k,null,E(S.value.login.consultLines,(e,t)=>(P(),y(`div`,{key:t,class:`d-flex flex-wrap gap-2 mb-2 align-items-center`},[p(l,{modelValue:e.label,"onUpdate:modelValue":t=>e.label=t,placeholder:`名称,如 参赛咨询`,style:{"max-width":`180px`}},null,8,[`modelValue`,`onUpdate:modelValue`]),p(l,{modelValue:e.text,"onUpdate:modelValue":t=>e.text=t,placeholder:`内容,多个电话用顿号分隔`,class:`flex-grow-1`},null,8,[`modelValue`,`onUpdate:modelValue`]),p(s,{link:``,type:`danger`,onClick:e=>te(t)},{default:F(()=>[...i[159]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]))),128)),v(`div`,cke,[p(s,{onClick:j},{default:F(()=>[...i[160]||=[r(`增加一行`,-1)]]),_:1}),p(s,{onClick:ne},{default:F(()=>[...i[161]||=[r(`恢复默认两行`,-1)]]),_:1})])]),_:1})):Se(``,!0)]),_:1})]),_:1}),i[164]||=v(`h3`,{class:`section-title`},`报名填报页`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:16},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`页面标题`},{default:F(()=>[p(l,{modelValue:S.value.apply.pageTitle,"onUpdate:modelValue":i[63]||=e=>S.value.apply.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`副标题(整页填报说明)`},{default:F(()=>[p(l,{modelValue:S.value.apply.headerSubtitle,"onUpdate:modelValue":i[64]||=e=>S.value.apply.headerSubtitle=e,placeholder:`展示在页面标题下方,可选用`},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),i[165]||=v(`h3`,{class:`section-title`},`评审端`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:16},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`页面标题`},{default:F(()=>[p(l,{modelValue:S.value.review.pageTitle,"onUpdate:modelValue":i[65]||=e=>S.value.review.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`页脚版权`},{default:F(()=>[p(l,{modelValue:S.value.review.footerCopyright,"onUpdate:modelValue":i[66]||=e=>S.value.review.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),i[166]||=v(`h3`,{class:`section-title`},`运营后台`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:16},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`登录页标题`},{default:F(()=>[p(l,{modelValue:S.value.admin.loginTitle,"onUpdate:modelValue":i[67]||=e=>S.value.admin.loginTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`页脚版权`},{default:F(()=>[p(l,{modelValue:S.value.admin.footerCopyright,"onUpdate:modelValue":i[68]||=e=>S.value.admin.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`侧栏产品名称`},{default:F(()=>[p(l,{modelValue:S.value.admin.sidebarProductName,"onUpdate:modelValue":i[69]||=e=>S.value.admin.sidebarProductName=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1})],64)):(P(),y(k,{key:1},[i[170]||=v(`h3`,{class:`section-title`},`英文登录页`,-1),i[171]||=v(`p`,{class:`form-hint`},`仅覆盖英文端对应项;留空则沿用中文文案。Logo、主题色、网站图标与中文登录页共用。`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:16},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`浏览器标签标题`},{default:F(()=>[p(l,{modelValue:w.value.documentTitle,"onUpdate:modelValue":i[70]||=e=>w.value.documentTitle=e,placeholder:`English browser title`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`登录主标题`},{default:F(()=>[p(l,{modelValue:w.value.login.headline,"onUpdate:modelValue":i[71]||=e=>w.value.login.headline=e,placeholder:`Main headline`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`品牌辅助行`},{default:F(()=>[p(l,{modelValue:w.value.login.markLine,"onUpdate:modelValue":i[72]||=e=>w.value.login.markLine=e,placeholder:`Brand line above the title`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`标语`},{default:F(()=>[p(l,{modelValue:w.value.login.slogan,"onUpdate:modelValue":i[73]||=e=>w.value.login.slogan=e,placeholder:`Slogan under the title`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`登录卡片欢迎语`},{default:F(()=>[p(l,{modelValue:w.value.login.cardWelcome,"onUpdate:modelValue":i[74]||=e=>w.value.login.cardWelcome=e,placeholder:`Welcome text on the form card`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`页脚版权`},{default:F(()=>[p(l,{modelValue:w.value.login.footerCopyright,"onUpdate:modelValue":i[75]||=e=>w.value.login.footerCopyright=e,placeholder:`Footer copyright`},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:24},{default:F(()=>[p(u,{label:`咨询信息(英文名称)`},{default:F(()=>[i[169]||=v(`p`,{class:`form-hint mb-2 mt-0`},` 留空则英文登录页沿用中文咨询行。填写后只替换英文端展示名称/内容。 `,-1),(P(!0),y(k,null,E(w.value.login.consultLines,(e,t)=>(P(),y(`div`,{key:t,class:`d-flex flex-wrap gap-2 mb-2 align-items-center`},[p(l,{modelValue:e.label,"onUpdate:modelValue":t=>e.label=t,placeholder:`Label, e.g. Registration`,style:{"max-width":`180px`}},null,8,[`modelValue`,`onUpdate:modelValue`]),p(l,{modelValue:e.text,"onUpdate:modelValue":t=>e.text=t,placeholder:`Phone numbers`,class:`flex-grow-1`},null,8,[`modelValue`,`onUpdate:modelValue`]),p(s,{link:``,type:`danger`,onClick:e=>se(t)},{default:F(()=>[...i[167]||=[r(`删除`,-1)]]),_:1},8,[`onClick`])]))),128)),p(s,{onClick:oe},{default:F(()=>[...i[168]||=[r(`增加一行`,-1)]]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i[172]||=v(`h3`,{class:`section-title`},`英文报名填报页`,-1),p(De,{"label-position":`top`,class:`workspace-form`},{default:F(()=>[p(Ee,{gutter:16},{default:F(()=>[p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`报名页标题`},{default:F(()=>[p(l,{modelValue:w.value.apply.pageTitle,"onUpdate:modelValue":i[76]||=e=>w.value.apply.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{xs:24,md:12},{default:F(()=>[p(u,{label:`报名页副标题`},{default:F(()=>[p(l,{modelValue:w.value.apply.headerSubtitle,"onUpdate:modelValue":i[77]||=e=>w.value.apply.headerSubtitle=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1})],64)),p(s,{"native-type":`button`,type:`primary`,class:`mt-compact`,loading:Mt.value,onClick:Tn},{default:F(()=>[...i[173]||=[r(`保存(含品牌文案)`,-1)]]),_:1},8,[`loading`])]),_:1}))]),_:1},8,[`modelValue`,`class`])),p(He,{modelValue:we.value,"onUpdate:modelValue":i[80]||=e=>we.value=e,title:`报名详情`,size:`min(760px, 94vw)`,"destroy-on-close":``},{default:F(()=>[ie((P(),y(`div`,lke,[R.value?(P(),y(k,{key:0},[d.value?(P(),y(`div`,uke,[p(s,{type:`warning`,plain:``,loading:f.value,onClick:$n},{default:F(()=>[...i[175]||=[r(` 进入选手端 `,-1)]]),_:1},8,[`loading`])])):Se(``,!0),p(Ve,{column:2,border:``,class:`application-detail-section`},{default:F(()=>[p(Be,{label:`项目编号`},{default:F(()=>[r(N(R.value.project_code||`—`),1)]),_:1}),p(Be,{label:`状态`},{default:F(()=>[p(Oe,{type:Fn(R.value.status),effect:`plain`},{default:F(()=>[r(N(Pn(R.value.status)),1)]),_:1},8,[`type`])]),_:1}),p(Be,{label:`项目名称`,span:2},{default:F(()=>[r(N(R.value.project_name||`—`),1)]),_:1}),p(Be,{label:`负责人`},{default:F(()=>[r(N(R.value.player_name||`—`),1)]),_:1}),p(Be,{label:`学校`},{default:F(()=>[r(N(R.value.school||`—`),1)]),_:1}),p(Be,{label:`学历`},{default:F(()=>[r(N(R.value.degree_label||R.value.degree||`—`),1)]),_:1}),p(Be,{label:`手机号`},{default:F(()=>[r(N(R.value.contact_mobile||`—`),1)]),_:1}),p(Be,{label:`邮箱`},{default:F(()=>[r(N(R.value.contact_email||`—`),1)]),_:1}),p(Be,{label:`意向参赛地点`},{default:F(()=>[r(N(R.value.event_location_label||R.value.event_location||`—`),1)]),_:1}),p(Be,{label:`企业`},{default:F(()=>[r(N(R.value.company_name||`—`),1)]),_:1}),p(Be,{label:`赛道`},{default:F(()=>[r(N(R.value.track_title||`—`),1)]),_:1}),p(Be,{label:`填报语言`},{default:F(()=>[r(N(R.value.signup_locale_label||`中文填报`),1)]),_:1}),p(Be,{label:`团队成员`,span:2},{default:F(()=>[r(N(R.value.team_members||`—`),1)]),_:1}),p(Be,{label:`所在地`},{default:F(()=>[r(N(R.value.location_label||[R.value.location_country_label||R.value.location_country,R.value.location_province,R.value.location_city,R.value.oversea_country].filter(Boolean).join(` / `)||`—`),1)]),_:1}),p(Be,{label:`提交时间`},{default:F(()=>[r(N(In(R.value.submitted_at)),1)]),_:1}),p(Be,{label:`承诺书签署`},{default:F(()=>[r(N(In(R.value.promise_signed_at)),1)]),_:1}),p(Be,{label:`报名渠道`,span:2},{default:F(()=>[r(N(R.value.signup_channel?`${R.value.signup_channel.channel_name}(${R.value.signup_channel.channel_code})`:R.value.signup_channel_code||`—`),1)]),_:1}),(P(!0),y(k,null,E(R.value.schema_fields??[],e=>(P(),n(Be,{key:e.key,label:e.label},{default:F(()=>[r(N(e.value||`—`),1)]),_:2},1032,[`label`]))),128)),p(Be,{label:`推荐方`,span:2},{default:F(()=>[r(N(R.value.recommend||`—`),1)]),_:1}),p(Be,{label:`是否参与评审`,span:2},{default:F(()=>[p(A,{"model-value":R.value.review_eligible!==!1,loading:yt.value,"inline-prompt":``,"active-text":`是`,"inactive-text":`否`,onChange:i[79]||=e=>void qn(e===!0)},null,8,[`model-value`,`loading`]),i[176]||=v(`span`,{class:`cell-muted ms-2`},`否:不出现在评审端`,-1)]),_:1})]),_:1}),i[177]||=v(`h3`,{class:`section-title`},`项目简介`,-1),v(`p`,dke,N(R.value.intro||`—`),1),i[178]||=v(`h3`,{class:`section-title`},`附件`,-1),p(Ae,{data:Un.value,border:``,"empty-text":`暂无附件`,class:`workspace-table workspace-table--mb`},{default:F(()=>[p(L,{label:`类型`,width:`120`},{default:F(({row:e})=>[r(N(Bn(e.kind)),1)]),_:1}),p(L,{label:`文件名`,"min-width":`220`,"show-overflow-tooltip":``},{default:F(({row:e})=>[r(N(e.original_name||`附件`),1)]),_:1}),p(L,{label:`大小`,width:`100`},{default:F(({row:e})=>[r(N(Rn(e.size)),1)]),_:1}),p(L,{label:`操作`,width:`90`,align:`right`},{default:F(({row:e})=>[p(s,{link:``,type:`primary`,size:`small`,loading:Zn.value===e.id,disabled:Zn.value!=null,onClick:t=>Qn(e.id,e.original_name,e.size)},{default:F(()=>[r(N(Zn.value===e.id?`下载中…`:`下载`),1)]),_:2},1032,[`loading`,`disabled`,`onClick`])]),_:1})]),_:1},8,[`data`]),i[179]||=v(`h3`,{class:`section-title`},`评审汇总`,-1),v(`div`,fke,[v(`span`,null,`已评 `+N(R.value.submitted_review_count)+` 人`,1),v(`span`,null,`总分 `+N(Ln(R.value.team_sum)),1),v(`span`,null,`均分 `+N(Ln(R.value.team_avg)),1)]),p(Ae,{data:R.value.review_scores,border:``,"empty-text":`暂无评分`,class:`workspace-table`},{default:F(()=>[p(L,{prop:`reviewer_name`,label:`评审员`,"min-width":`120`},{default:F(({row:e})=>[r(N(e.reviewer_name||`评审员 #${e.reviewer_id}`),1)]),_:1}),p(L,{label:`项目得分`,width:`100`},{default:F(({row:e})=>[r(N(Ln(e.line_total)),1)]),_:1}),p(L,{label:`更新时间`,"min-width":`160`},{default:F(({row:e})=>[r(N(In(e.updated_at)),1)]),_:1})]),_:1},8,[`data`])],64)):Se(``,!0)])),[[Ge,xe.value]])]),_:1},8,[`modelValue`]),p(Ue,{modelValue:Ht.value,"onUpdate:modelValue":i[83]||=e=>Ht.value=e,title:Ut.value===`signup`?`新建报名表版本`:Ut.value===`audience`?`新建观众报名表版本`:`新建评审表版本`,width:`480px`,"destroy-on-close":``,"align-center":``},{footer:F(()=>[p(s,{onClick:i[82]||=e=>Ht.value=!1},{default:F(()=>[...i[181]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,onClick:ur},{default:F(()=>[...i[182]||=[r(`创建`,-1)]]),_:1})]),default:F(()=>[p(De,{"label-position":`top`},{default:F(()=>[p(u,{label:`版本名称`},{default:F(()=>[p(l,{modelValue:Wt.value,"onUpdate:modelValue":i[81]||=e=>Wt.value=e,autocomplete:`off`},null,8,[`modelValue`]),i[180]||=v(`p`,{class:`text-muted small mt-2 mb-0`},`将创建空字段列表,保存后可在「编辑」中配置。`,-1)]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),p(Ue,{modelValue:Gt.value,"onUpdate:modelValue":i[89]||=e=>Gt.value=e,class:`schema-builder-dialog`,title:Xt.value===`signup`?`编辑报名表单`:Xt.value===`audience`?`编辑观众报名表`:`编辑评审表`,width:`96vw`,top:`2vh`,"destroy-on-close":``,"align-center":``},{footer:F(()=>[p(s,{onClick:i[88]||=e=>Gt.value=!1},{default:F(()=>[...i[186]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,onClick:yr},{default:F(()=>[...i[187]||=[r(`完成并关闭`,-1)]]),_:1})]),default:F(()=>[v(`div`,pke,[p(l,{modelValue:qt.value,"onUpdate:modelValue":i[84]||=e=>qt.value=e,class:`schema-builder-dialog__name`,placeholder:`版本名称`,autocomplete:`off`},null,8,[`modelValue`]),p(Le,{modelValue:Qt.value,"onUpdate:modelValue":i[85]||=e=>Qt.value=e,class:`schema-builder-dialog__mode`},{default:F(()=>[p(Ie,{value:`visual`},{default:F(()=>[...i[183]||=[r(`可视化设计`,-1)]]),_:1}),p(Ie,{value:`json`},{default:F(()=>[...i[184]||=[r(`JSON 源码`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),Qt.value===`visual`?(P(),n(Gl,{key:0,modelValue:Zt.value,"onUpdate:modelValue":i[86]||=e=>Zt.value=e,purpose:Xt.value},null,8,[`modelValue`,`purpose`])):(P(),y(`div`,mke,[i[185]||=v(`p`,{class:`text-muted small mb-2`},` 适合粘贴备份或高级字段;切回可视化时会尽量同步(仅识别常用属性)。 `,-1),p(l,{modelValue:Jt.value,"onUpdate:modelValue":i[87]||=e=>Jt.value=e,type:`textarea`,rows:18,class:`font-monospace`,spellcheck:`false`,onBlur:un},null,8,[`modelValue`])])),Yt.value?(P(),y(`p`,hke,N(Yt.value),1)):Se(``,!0)]),_:1},8,[`modelValue`,`title`]),p(Ue,{modelValue:Dt.value,"onUpdate:modelValue":i[100]||=e=>Dt.value=e,title:Ot.value?`编辑渠道`:`新增渠道`,width:`600px`,"destroy-on-close":``,"align-center":``},{footer:F(()=>[p(s,{onClick:i[99]||=e=>Dt.value=!1},{default:F(()=>[...i[197]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,loading:kt.value,onClick:ar},{default:F(()=>[...i[198]||=[r(`保存`,-1)]]),_:1},8,[`loading`])]),default:F(()=>[p(De,{"label-position":`top`},{default:F(()=>[Ot.value?(P(),n(u,{key:0,label:`渠道编码`},{default:F(()=>[p(l,{"model-value":de.value.find(e=>e.id===Ot.value)?.channel_code??``,disabled:``},null,8,[`model-value`])]),_:1})):Se(``,!0),p(u,{label:`渠道名称`},{default:F(()=>[p(l,{modelValue:jt.value.channel_name,"onUpdate:modelValue":i[90]||=e=>jt.value.channel_name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),p(u,{label:`共享密钥`},{default:F(()=>[p(l,{modelValue:jt.value.shared_secret,"onUpdate:modelValue":i[91]||=e=>jt.value.shared_secret=e,autocomplete:`off`},{append:F(()=>[p(s,{onClick:nr},{default:F(()=>[...i[188]||=[r(`生成`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),Ot.value?(P(),y(k,{key:1},[p(u,{label:`加密算法`},{default:F(()=>[p(l,{"model-value":At.value?.encryption_algorithm||`—`,readonly:``},null,8,[`model-value`])]),_:1}),p(u,{label:`入口敏感字段加密`},{default:F(()=>[p(A,{modelValue:jt.value.entry_encryption_enabled,"onUpdate:modelValue":i[92]||=e=>jt.value.entry_encryption_enabled=e,"active-text":`启用`,"inactive-text":`关闭`},null,8,[`modelValue`])]),_:1}),p(u,{label:`加密公钥(PEM)`},{default:F(()=>[p(l,{"model-value":At.value?.encryption_public_key||``,type:`textarea`,rows:8,readonly:``,placeholder:`暂无加密公钥`,class:`channel-public-key`},null,8,[`model-value`]),p(s,{class:`channel-public-key-copy`,disabled:!At.value?.encryption_public_key,onClick:tr},{default:F(()=>[...i[189]||=[r(` 复制公钥 `,-1)]]),_:1},8,[`disabled`])]),_:1})],64)):Se(``,!0),p(u,{label:`报名成功回调`},{default:F(()=>[p(Le,{modelValue:jt.value.success_callback_type,"onUpdate:modelValue":i[93]||=e=>jt.value.success_callback_type=e},{default:F(()=>[p(Ie,{value:`none`},{default:F(()=>[...i[190]||=[r(`不回调`,-1)]]),_:1}),p(Ie,{value:`web`},{default:F(()=>[...i[191]||=[r(`URL`,-1)]]),_:1}),p(Ie,{value:`mini_program`},{default:F(()=>[...i[192]||=[r(`小程序`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),jt.value.success_callback_type===`web`?(P(),n(u,{key:2,label:`成功回跳地址`},{default:F(()=>[p(l,{modelValue:jt.value.success_callback_url,"onUpdate:modelValue":i[94]||=e=>jt.value.success_callback_url=e,autocomplete:`off`,placeholder:`https://example.com/...`},null,8,[`modelValue`])]),_:1})):Se(``,!0),jt.value.success_callback_type===`mini_program`?(P(),y(k,{key:3},[p(u,{label:`小程序页面路径`},{default:F(()=>[p(l,{modelValue:jt.value.mini_program_callback_path,"onUpdate:modelValue":i[95]||=e=>jt.value.mini_program_callback_path=e,autocomplete:`off`,placeholder:`/pages/signup/result`},null,8,[`modelValue`]),i[193]||=v(`p`,{class:`form-hint`},` redirectTo、navigateTo、reLaunch 可带查询参数,系统会追加 state、application_id、status、hash 等回调参数;switchTab 只能跳 tabBar 页面,不能携带查询参数。 `,-1)]),_:1}),p(u,{label:`小程序路由方式`},{default:F(()=>[p(ce,{modelValue:jt.value.mini_program_callback_method,"onUpdate:modelValue":i[96]||=e=>jt.value.mini_program_callback_method=e,class:`w-100`},{default:F(()=>[p(M,{label:`redirectTo(替换当前页面)`,value:`redirectTo`}),p(M,{label:`navigateTo(打开新页面)`,value:`navigateTo`}),p(M,{label:`reLaunch(重启到指定页)`,value:`reLaunch`}),p(M,{label:`switchTab(返回 tabBar 页面)`,value:`switchTab`})]),_:1},8,[`modelValue`])]),_:1})],64)):Se(``,!0),jt.value.success_callback_type===`none`?(P(),n(u,{key:4,label:`回调说明`},{default:F(()=>[...i[194]||=[v(`p`,{class:`form-hint mb-0`},`选择不回调时,选手提交成功后只展示系统报名成功提示。`,-1)]]),_:1})):Se(``,!0),p(u,{label:`备注`},{default:F(()=>[p(l,{modelValue:jt.value.remark,"onUpdate:modelValue":i[97]||=e=>jt.value.remark=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1}),p(u,{label:`状态`},{default:F(()=>[p(Le,{modelValue:jt.value.status,"onUpdate:modelValue":i[98]||=e=>jt.value.status=e},{default:F(()=>[p(Ie,{value:`enabled`},{default:F(()=>[...i[195]||=[r(`启用`,-1)]]),_:1}),p(Ie,{value:`disabled`},{default:F(()=>[...i[196]||=[r(`停用`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),p(Ue,{modelValue:bt.value,"onUpdate:modelValue":i[110]||=e=>bt.value=e,title:St.value?`编辑赛道`:`新增赛道`,width:`920px`,"destroy-on-close":``,"align-center":``,class:`track-scoring-dialog`},{footer:F(()=>[p(s,{onClick:i[109]||=e=>bt.value=!1},{default:F(()=>[...i[206]||=[r(`取消`,-1)]]),_:1}),p(s,{type:`primary`,onClick:jn},{default:F(()=>[...i[207]||=[r(`保存`,-1)]]),_:1})]),default:F(()=>[p(De,{"label-position":`top`},{default:F(()=>[p(u,{label:`赛道编码`},{default:F(()=>[p(l,{modelValue:Ct.value.track_code,"onUpdate:modelValue":i[101]||=e=>Ct.value.track_code=e,disabled:!!St.value,autocomplete:`off`},null,8,[`modelValue`,`disabled`])]),_:1}),p(u,{label:`标题`},{default:F(()=>[p(l,{modelValue:Ct.value.title,"onUpdate:modelValue":i[102]||=e=>Ct.value.title=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),p(u,{label:`英文标题`},{default:F(()=>[p(l,{modelValue:Ct.value.title_en,"onUpdate:modelValue":i[103]||=e=>Ct.value.title_en=e,autocomplete:`off`,placeholder:`Track title in English`},null,8,[`modelValue`])]),_:1}),p(u,{label:`简介`},{default:F(()=>[p(l,{modelValue:Ct.value.description,"onUpdate:modelValue":i[104]||=e=>Ct.value.description=e,type:`textarea`,rows:2},null,8,[`modelValue`])]),_:1}),p(u,{label:`英文简介`},{default:F(()=>[p(l,{modelValue:Ct.value.description_en,"onUpdate:modelValue":i[105]||=e=>Ct.value.description_en=e,type:`textarea`,rows:2,placeholder:`Track description in English`},null,8,[`modelValue`])]),_:1}),p(Ee,{gutter:16},{default:F(()=>[p(C,{span:12},{default:F(()=>[p(u,{label:`排序`},{default:F(()=>[p(Fe,{modelValue:Ct.value.sort,"onUpdate:modelValue":i[106]||=e=>Ct.value.sort=e,step:1,"controls-position":`right`,style:{width:`100%`}},null,8,[`modelValue`])]),_:1})]),_:1}),p(C,{span:12},{default:F(()=>[p(u,{label:`状态`},{default:F(()=>[p(Ce,{modelValue:Ct.value.is_enabled,"onUpdate:modelValue":i[107]||=e=>Ct.value.is_enabled=e},{default:F(()=>[...i[199]||=[r(`启用`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1}),p(We,{"content-position":`left`},{default:F(()=>[...i[200]||=[r(`打分表(满分 100,未配置则禁止评审)`,-1)]]),_:1}),p(u,{label:`评分表标题`},{default:F(()=>[p(l,{modelValue:Ct.value.scoring_sheet_title,"onUpdate:modelValue":i[108]||=e=>Ct.value.scoring_sheet_title=e,placeholder:`如:…初复赛评分表(某某赛道)`,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),v(`div`,gke,[v(`p`,_ke,[i[201]||=r(` 当前分值合计: `,-1),v(`strong`,{class:e(Math.abs(Et.value-100)<1e-4?`text-ok`:`text-bad`)},N(Et.value),3),i[202]||=r(` / 100 `,-1)]),v(`div`,null,[p(s,{size:`small`,onClick:kn},{default:F(()=>[...i[203]||=[r(`清空打分表`,-1)]]),_:1}),p(s,{size:`small`,type:`primary`,onClick:Dn},{default:F(()=>[...i[204]||=[r(`新增指标`,-1)]]),_:1})])]),p(Ae,{data:Ct.value.scoring_items,border:``,size:`small`,class:`workspace-table`},{default:F(()=>[p(L,{label:`序号`,width:`72`},{default:F(({row:e})=>[p(Fe,{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:F(({row:e})=>[p(l,{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:F(({row:e})=>[p(l,{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:F(({row:e})=>[p(l,{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:F(({row:e})=>[p(l,{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:F(({row:e})=>[p(Fe,{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:F(({$index:e})=>[p(s,{link:``,type:`danger`,size:`small`,onClick:t=>On(e)},{default:F(()=>[...i[205]||=[r(`删`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})]),_:1},8,[`modelValue`,`title`])])}}}),[[`__scopeId`,`data-v-c6f1acad`]]);export{vke as default};