Files
xin-procurement/public/assets/XinForm-la76gZVt.js
T
2026-10-30 11:17:15 +08:00

98 lines
934 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{o as e,r as t,t as n}from"./request-xrnk7ZJV.js";import{$ as r,$n as i,B as a,Bn as o,Cr as s,Ct as c,E as l,Er as u,Gn as d,Gt as f,Hn as p,Jn as m,K as h,Kt as g,Ln as _,N as v,Or as y,Ot as b,Pr as x,Q as S,Qn as C,Tr as w,Un as T,V as E,Wn as D,Xt as O,Z as k,Zn as A,_n as j,ar as M,at as N,br as P,cr as F,d as I,dr as ee,en as te,gt as ne,jr as L,jt as re,kr as ie,kt as ae,nn as R,nr as oe,nt as se,p as ce,pt as le,q as ue,qt as de,rn as fe,rr as pe,t as me,tn as he,u as ge,ut as _e,wn as ve,wt as ye,xr as be,yt as xe,z as Se}from"./jsx-runtime-OfKoVykY.js";import{f as Ce,l as we,m as Te,p as Ee,t as De,u as Oe,y as ke}from"./tooltip-DI_m69zk.js";import{a as Ae,c as je,i as Me,l as Ne,o as Pe,r as Fe,s as Ie,t as Le}from"./table-uS555MjK.js";import{t as Re}from"./space-JYtHxLjg.js";import{c as ze,d as Be,f as Ve,i as He,m as Ue,p as We,u as Ge}from"./style-CSZsuTOx.js";import{r as Ke}from"./es-CSpN2d0Y.js";import{n as qe,t as Je}from"./button-DsOd0cni.js";import{n as Ye,t as Xe}from"./LeftOutlined-V7kBMNHZ.js";import{t as Ze}from"./PurePanel-fMOQa2mg.js";import{n as Qe}from"./LockOutlined-CM922FLC.js";import{t as $e}from"./radio-D5fRkuJz.js";import{n as et}from"./card-C-jMUkpS.js";import{n as tt,t as nt}from"./checkbox-DG0uOt2t.js";import{n as rt,t as it}from"./row-DM2jDy-f.js";import{t as at}from"./form-CDfHsmlW.js";import{t as ot}from"./input-BOiVaS7w.js";import{t as st}from"./tag-CY8tAhzO.js";import{t as ct}from"./useTranslation-C4ZVtLa2.js";import{Bt as lt,Ft as ut,It as dt,Jt as ft,Kt as pt,Lt as mt,Pt as ht,Qt as gt,Rt as _t,St as vt,Tt as yt,Xt as bt,Yt as xt,Zt as St,a as Ct,bt as wt,i as Tt,lt as Et,nn as Dt,qt as Ot,r as kt,tn as At,wt as jt,zt as Mt}from"./index-Cf1llsZx.js";import{m as Nt,t as Pt}from"./ImageUploader-Cr_U-9yy.js";var Ft=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(n,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),It=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(n,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Lt=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(n,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Rt=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(n,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),eee=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),zt=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),z=e(x()),Bt=e(Qe()),tee=e(Ft()),nee=e(It()),ree=e(Lt()),iee=e(Rt()),aee=e(eee()),oee=e(zt());Bt.default.extend(oee.default),Bt.default.extend(aee.default),Bt.default.extend(tee.default),Bt.default.extend(nee.default),Bt.default.extend(ree.default),Bt.default.extend(iee.default),Bt.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var see={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Vt=e=>see[e]||e.split(`_`)[0],Ht=e=>!Bt.default.isDayjs(e)||e instanceof Bt.default?e:(0,Bt.default)(e.valueOf()),Ut={getNow:()=>{let e=(0,Bt.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Bt.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Ht(e).endOf(`month`),getWeekDay:e=>{let t=Ht(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Ht(e).year(),getMonth:e=>Ht(e).month(),getDate:e=>Ht(e).date(),getHour:e=>Ht(e).hour(),getMinute:e=>Ht(e).minute(),getSecond:e=>Ht(e).second(),getMillisecond:e=>Ht(e).millisecond(),addYear:(e,t)=>Ht(e).add(t,`year`),addMonth:(e,t)=>Ht(e).add(t,`month`),addDate:(e,t)=>Ht(e).add(t,`day`),setYear:(e,t)=>Ht(e).year(t),setMonth:(e,t)=>Ht(e).month(t),setDate:(e,t)=>Ht(e).date(t),setHour:(e,t)=>Ht(e).hour(t),setMinute:(e,t)=>Ht(e).minute(t),setSecond:(e,t)=>Ht(e).second(t),setMillisecond:(e,t)=>Ht(e).millisecond(t),isAfter:(e,t)=>Ht(e).isAfter(Ht(t)),isValidate:e=>Ht(e).isValid(),locale:{getWeekFirstDay:e=>(0,Bt.default)().locale(Vt(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Ht(t).locale(Vt(e)).weekday(0),getWeek:(e,t)=>Ht(t).locale(Vt(e)).week(),getShortWeekDays:e=>(0,Bt.default)().locale(Vt(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Bt.default)().locale(Vt(e)).localeData().monthsShort(),format:(e,t,n)=>Ht(t).locale(Vt(e)).format(n),parse:(e,t,n)=>{let r=Vt(e);for(let e=0;e<n.length;e+=1){let i=n[e],a=t;if(i.includes(`wo`)||i.includes(`Wo`)){let e=a.split(`-`)[0],t=a.split(`-`)[1],n=(0,Bt.default)(e,`YYYY`).startOf(`year`).locale(r);for(let e=0;e<=52;e+=1){let r=n.add(e,`week`);if(r.format(`Wo`)===t)return r}return null}let o=(0,Bt.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function Wt(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var Gt=z.createContext(null),Kt={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function qt({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=Kt,direction:u,visible:d,onClose:f}){let{prefixCls:p}=z.useContext(Gt),m=`${p}-dropdown`,h=Wt(c,u===`rtl`);return z.createElement(_e,{showAction:[],hideAction:[`click`],popupPlacement:h,builtinPlacements:l,prefixCls:m,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:D(n,{[`${m}-range`]:s,[`${m}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function Jt(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function Yt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xt(e,t,n){let r=[...e];return r[t]=n,r}function Zt(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function Qt(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function $t(e,t,n){let r=t.find(t=>e[t]);return n===r?void 0:e[r]}function en(e){return Zt(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function tn(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function nn(e,t,n){return tn(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function rn(e,t,n){return tn(t,n,()=>e.getYear(t)===e.getYear(n))}function an(e,t){return Math.floor(e.getMonth(t)/3)+1}function on(e,t,n){return tn(t,n,()=>rn(e,t,n)&&an(e,t)===an(e,n))}function sn(e,t,n){return tn(t,n,()=>rn(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function cn(e,t,n){return tn(t,n,()=>rn(e,t,n)&&sn(e,t,n)&&e.getDate(t)===e.getDate(n))}function ln(e,t,n){return tn(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function un(e,t,n){return tn(t,n,()=>cn(e,t,n)&&ln(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function dn(e,t,n,r){return tn(n,r,()=>rn(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function fn(e,t,n,r,i){switch(i){case`date`:return cn(e,n,r);case`week`:return dn(e,t.locale,n,r);case`month`:return sn(e,n,r);case`quarter`:return on(e,n,r);case`year`:return rn(e,n,r);case`decade`:return nn(e,n,r);case`time`:return ln(e,n,r);default:return un(e,n,r)}}function pn(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function mn(e,t,n,r,i){return fn(e,t,n,r,i)?!0:e.isAfter(n,r)}function cee(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function hn(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function gn(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function _n(e,t,n,r){let i=z.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return z.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function vn(e,t,n=[]){let[r,i]=z.useState([!1,!1]);return[z.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>Xt(n,t,e))}]}function yn(e,t,n,r,i){let a=[];e&&a.push(i?`hh`:`HH`),t&&a.push(`mm`),n&&a.push(`ss`);let o=a.join(`:`);return r&&(o+=`.SSS`),i&&(o+=` A`),o}function bn(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=yn(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function xn(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return z.useMemo(()=>bn(e,n,r,i,a,o),[e,n,r,i,a,o])}function Sn(e,t,n){return n??t.some(t=>e.includes(t))}var Cn=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function wn(e){let t=Zt(e,Cn),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function Tn(e){return e&&typeof e==`string`}function En(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function Dn(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function On(e){let{showTime:t}=e,[n,r]=wn(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=En(s,c,l,o);return[s,c,l]=Dn(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function kn(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Qt(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=Yt(s[e])[0];if(Tn(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=Sn(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=En(c,l,u,d);m||(c=Sn(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=Sn(o,[`m`,`LT`,`LLL`]),u=Sn(o,[`s`,`LTS`]),d=Sn(o,[`SSS`])),[c,l,u]=Dn(m,c,l,u,d);let h=t||yn(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function lee(e,t,n){if(t===!1)return null;let r=t&&typeof t==`object`?t:{};return pe(r.clearIcon)?r.clearIcon:pe(n)?n:z.createElement(`span`,{className:`${e}-clear-btn`})}function uee(e,t,n,r,i){return L((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!fn(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!fn(e,t,i,a,o.type)))}function dee(e,t,n){return z.useMemo(()=>{let r=Yt(Qt(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function fee(e,t,n){return typeof e[0]==`function`||n?!0:t}function pee(e,t,n,r){return L((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function An(e,t=!1){return z.useMemo(()=>{let n=e&&Yt(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function jn(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:h,format:g,inputReadOnly:_,disabledDate:v,minDate:y,maxDate:b,showTime:x,value:S,defaultValue:C,pickerValue:w,defaultPickerValue:T}=e,E=An(S),D=An(C),O=An(w),k=An(T),A=i===`date`&&x?`datetime`:i,j=A===`time`||A===`datetime`,M=j||h,N=m??j,[P,F,I,ee]=On(e),te=xn(r,F),ne=z.useMemo(()=>kn(A,I,ee,P,te),[A,I,ee,P,te]),L=z.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:te,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:lee(a,f,p),showTime:ne,value:E,defaultValue:D,pickerValue:O,defaultPickerValue:k,...t?.()}),[e]),[re,ie]=dee(A,te,g),ae=fee(re,_,h),R=uee(n,r,v,y,b),oe=pee(n,i,R,ne);return[z.useMemo(()=>({...L,needConfirm:N,inputReadOnly:ae,disabledDate:R}),[L,N,ae,R]),A,M,re,ie,oe]}function Mn(e,t){return t.some(t=>!!t&&(t===e||t.contains(e)))}function Nn(e,t,n,r){let[i,a]=z.useState(null),o=L((e,n,r)=>{a(e),t?.(e,r)}),s=L((t,i,o)=>{i===`panel`&&o.target.hasAttribute(`disabled`)?o.currentTarget.focus({preventScroll:!0}):e(o.relatedTarget)||(a(null),r?.(t,o)),n?.(t,o)});return[i!==null,o,s]}function mee(e,t,n,r,i){let a=L(()=>{i(!0)});z.useEffect(()=>{e!==null&&t&&(a(),n.current?.focus(e))},[e,t,a]),y(()=>{if(e===null)return;let t=[n.current?.startInput,n.current?.endInput],i=t[e]?.getRootNode()?.activeElement??document.activeElement;Mn(i,[r.current])||t.some((t,n)=>n!==e&&Mn(i,[t]))&&t[e]?.focus()})}function hee(e,t,n){let[r,i]=u(t,e),[,a]=z.useState({}),o=L(e=>{i(e),a({})}),s=z.useRef(e),c=z.useRef(void 0),l=()=>{w.cancel(c.current)},d=L(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),f=L((e,t)=>{l(),s.current=e,e||t?d():c.current=w(d)});return z.useEffect(()=>l,[]),[r,f]}function Pn(e,t,n=[],r){let[i,a]=hee(!n.every(e=>e)&&e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function Fn(e){let t=z.useRef(null);return z.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function In(e,t){return z.useMemo(()=>e||(t?(M(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function gee(e,t,n,r,i,a,o){return(s,c)=>{let[l,u]=e,d={...c,from:$t(e,r,n)};return n===1&&t[0]&&l&&!fn(i,a,l,s,d.type)&&i.isAfter(l,s)||n===0&&t[1]&&u&&!fn(i,a,u,s,d.type)&&i.isAfter(s,u)?!0:o?.(s,d)}}function Ln(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var Rn=[];function zn(e,t,n,r,i,a,o,s,c,l=Rn,d=Rn,f=Rn,p,m,h){let g=s===`time`,_=o||0,[v,b]=n,x=_===0?v:b,S=_===0?b:v,C=t=>{let n=e.getNow();g&&(n=gn(e,n));let r=t===0?v:b;return l[t]||r||n},[w,T]=d,[E,D]=u(()=>C(0),w),[O,k]=u(()=>C(1),T),A=z.useMemo(()=>{let t=[E,O][_];return g?t:gn(e,t,f[_])},[g,E,O,_,e,f]),j=(n,i=`panel`)=>{let a=[D,k][_];a(n);let o=[E,O];o[_]=n,!p||fn(e,t,E,o[0],s)&&fn(e,t,O,o[1],s)||p(o,{source:i,range:_===1?`end`:`start`,mode:r})},M=(n,r)=>s===`year`?Math.floor(e.getYear(n)/10)===Math.floor(e.getYear(r)/10):fn(e,t,n,r,s===`month`||s===`quarter`?`year`:`month`),N=(t,n)=>{if(!c||!t)return n;let r=Ln(e,s,t,1);return M(t,n)||M(r,n)?t:Ln(e,s,n,-1)},P=z.useRef(null);return y(()=>{if(i&&!l[_]){let t=g?null:e.getNow();if(a&&P.current!==null&&P.current!==_?t=[E,O][_^1]:x?t=_===0?v:N(v,b):S&&(t=S),t){m&&e.isAfter(m,t)&&(t=m);let n=c?Ln(e,s,t,1):t;h&&e.isAfter(n,h)&&(t=c?Ln(e,s,h,-1):h),j(t,`reset`)}}},[i,a,_,n[_]]),z.useEffect(()=>{i&&a?P.current=_:P.current=null},[i,a,_]),y(()=>{i&&l&&l[_]&&j(l[_],`reset`)},[i,_]),[A,j]}function Bn(e,t){let n=z.useRef(e),[,r]=z.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var Vn=[];function Hn(e,t,n){return[r=>r.map(r=>hn(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;a<r;a+=1){let r=t[a]||null,o=n[a]||null;if(r!==o&&!un(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function Un(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function Wn(e){let[t,n]=Bn(e),r=L(()=>{n(e)});return z.useEffect(()=>{r()},[e]),[t,n]}function Gn(e,t,n,r,i,a,o,s,c){let[l,d]=u(a,o),f=l||Vn,[p,m]=Wn(f),[h,g]=Hn(e,t,n);return[f,d,p,L(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=Un(n.filter(e=>e),e));let[a,o]=g(p(),n);if(!a&&(m(n),s)){let e=h(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(p())}]}function Kn(e,t,n,r,i,a,o,s){let{generateConfig:c,locale:l,picker:u,onChange:d,allowEmpty:f,order:p}=e,m=!a.some(e=>e)&&p,[h,g]=Hn(c,l,o),[_,v]=Bn(t),y=L(()=>{v(t)});z.useEffect(()=>{y()},[t]);let b=L(e=>{let r=e===null,o=[...e||_()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t<e;t+=1)a[t]||(o[t]=null)}m&&o[0]&&o[1]&&(o=Un(o,c)),i(o);let[v,y]=o,b=!v,x=!y,S=!f||(!b||f[0])&&(!x||f[1]),C=!p||b||x||fn(c,l,v,y,u)||c.isAfter(y,v),w=(a[0]||!v||!s(v,{activeIndex:0}))&&(a[1]||!y||!s(y,{from:v,activeIndex:1})),T=r||S&&C&&w;if(T){n(o);let[e]=g(o,t);if(d&&!e){let e=o.every(e=>!e);d(r&&e?null:o,e?null:h(o))}}return T});return[L((e,t)=>{let n=Xt(_(),e,r()[e]);v(n),t&&b()}),b,L(e=>{e===void 0?(i(t),y()):(i(Xt(r(),e,t[e])),v(Xt(_(),e,t[e])))})]}function qn(e,t,n,r,i,a,o){let s=z.useRef([]),c=z.useRef(null),l=z.useRef(!1),[u,d]=P(null),[f,p]=P(!1),m=z.useRef(void 0),h=L(()=>{s.current=[],c.current=null,l.current=!1,d(null),p(!1)}),g=(e,t)=>{let n=s.current.find(t=>t.index===e);n?t!==void 0&&(n.modified=t):s.current=[...s.current,{index:e,modified:t??!1}]},_=t=>{g(t);let n=s.current.length>=e;return a(t,n),n&&h(),n},v=(i,a,o,l)=>{if(o===`esc`)return`resetAll`;if(i===null)return o===`popupClose`?`resetAll`:`abort`;let u=(l===void 0?r()[i]:l)!=null||n[i],d=o===`remove`||u;if(o===`field-switch`){if(a===i)return`abort`;let r=(i+1)%e;if(a!==r)return`abort`;let o=s.current.some(e=>e.index===r);return t?c.current===i?`switchNext`:n[i]?`resetCurrentAndSwitchNext`:`abort`:u?`switchNext`:o?`resetCurrentAndSwitchNext`:`resetCurrent`}if(a!==i)return`abort`;if(o===`popupClose`){if(!s.current.some(e=>e.modified))return`finish`;if(t){let t=s.current.some(e=>e.index===i&&e.modified);return!(s.current.length>=e)||!u?`resetAll`:t?n[i]?`resetCurrentAndSwitchNext`:`resetAll`:`switchNext`}return d?`switchNext`:`resetAll`}return o===`input`||o===`panel-intermediate`?`modify`:o===`panel-final`?t?`modify`:`switchNext`:o===`keyboard-submit-weak`?d?`submitCurrent`:`abort`:(o===`keyboard-submit`||o===`confirm`||o===`remove`)&&d?`switchNext`:`abort`},y=L((n,r,a)=>{let f=u();r!==`popupClose`&&(l.current=r===`input`),f===null&&r!==`popupClose`&&r!==`esc`&&(f=n,d(n),p(!1),g(n,!1));let m=v(f,n,r,a),y=f??n;switch(m){case`modify`:g(y,!0),c.current===y&&(c.current=null),a!==void 0&&i(y,a);break;case`submitCurrent`:t&&(c.current=y),_(y);break;case`switchNext`:{(r===`panel-final`||a!==void 0)&&g(y,!0),a!==void 0&&i(y,a),t&&(r===`keyboard-submit`||r===`confirm`)&&(c.current=y);let o=r===`confirm`||r===`keyboard-submit`||r===`panel-final`||r===`popupClose`&&!l.current,s=_(y);if(s&&r===`field-switch`)d(n),p(!1);else if(!s){let t=(y+1)%e;d(t),p(o)}r===`field-switch`&&g(n,!1);break}case`finish`:h();break;case`resetCurrent`:o(y),c.current===y&&(c.current=null),s.current=s.current.filter(e=>e.index!==y);break;case`resetCurrentAndSwitchNext`:o(y),c.current===y&&(c.current=null),r===`field-switch`?(s.current.some(e=>e.index===n)&&(s.current=[]),d(n),p(!1),g(n,!1)):h();break;case`resetAll`:o(),h();break;case`abort`:r===`field-switch`&&n===y&&g(n)}}),b=u();m.current=b??m.current??0;let x=s.current.map(e=>e.index);return[b,m.current,f(),x,y,h]}function Jn(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function Yn(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function Xn(){return[]}function Zn(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);e&&r||o.push({label:Jt(n,a),value:n,disabled:e})}return o}function Qn(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=z.useMemo(()=>n||e.getNow(),[n,e]),m=z.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||Xn,t.disabledMinutes||d||Xn,t.disabledSeconds||f||Xn,t.disabledMilliseconds||Xn]},[l,u,d,f]),[h,g,_,v]=z.useMemo(()=>m(p),[p,m]),y=z.useCallback((e,t,n,l)=>{let u=Zn(0,23,i,c,e());return[r?u.map(e=>({...e,label:Jt(e.value%12||12,2)})):u,e=>Zn(0,59,a,c,t(e)),(e,t)=>Zn(0,59,o,c,n(e,t)),(e,t,n)=>Zn(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[b,x,S,C]=z.useMemo(()=>y(h,g,_,v),[y,h,g,_,v]);return[(t,n)=>{let r=()=>b,i=x,a=S,o=C;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=y(e,t,s,c);r=()=>l,i=u,a=d,o=f}return Yn(t,r,i,a,o,e)},b,x,S,C]}function _ee(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:m=`button`,classNames:h,styles:g}=z.useContext(Gt),_=u.getNow(),[v]=Qn(u,a,_),y=r?.(t),b=d(_,{type:t}),x=()=>{if(!b){let e=v(_);s(e)}},S=`${f}-now`,C=`${S}-btn`,w=i&&z.createElement(`li`,{className:S},z.createElement(`a`,{className:D(C,b&&`${C}-disabled`),"aria-disabled":b,onClick:x},n===`date`?p.today:p.now)),T=l&&z.createElement(`li`,{className:`${f}-ok`},z.createElement(m,{disabled:c,onClick:o},p.ok)),E=(w||T)&&z.createElement(`ul`,{className:`${f}-ranges`},w,T);return!pe(y)&&!pe(E)?null:z.createElement(`div`,{className:D(`${f}-footer`,h.popup.footer),style:g.popup.footer},pe(y)&&z.createElement(`div`,{className:`${f}-footer-extra`},y),E)}function $n(e,t,n){function r(r,i){let a=r.findIndex(r=>fn(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var er=z.createContext(null),tr=z.createContext(null);function nr(){return z.useContext(tr)}function rr(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v}=e,{classNames:y,styles:b}=z.useContext(er),x=r.getNow();return[{now:x,values:f,pickerValue:p,prefixCls:n,classNames:y,styles:b,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},x]}var ir=z.createContext({});function ar(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:m,styles:h,panelType:g,now:_,disabledDate:v,cellRender:y,onHover:b,hoverValue:x,hoverRangeValue:S,generateConfig:C,values:w,locale:T,onSelect:E}=nr(),O=f||v,k=`${p}-cell`,{onCellDblClick:A}=z.useContext(ir),j=e=>w.some(t=>t&&fn(C,T,e,t,g)),M=[];for(let e=0;e<t;e+=1){let t=[],u;for(let o=0;o<n;o+=1){let f=i(r,e*n+o),v=O?.(f,{type:g});o===0&&(u=f,a&&t.push(a(u)));let w=!1,M=!1,N=!1;if(d&&S){let[e,t]=S;w=pn(C,e,t,f),M=fn(C,T,f,e,g),N=fn(C,T,f,t,g)}let P=s?hn(f,{locale:T,format:s,generateConfig:C}):void 0,F=z.createElement(`div`,{className:`${k}-inner`},c(f));t.push(z.createElement(`td`,{key:o,title:P,className:D(k,m.item,{[`${k}-disabled`]:v,[`${k}-hover`]:(x||[]).some(e=>fn(C,T,f,e,g)),[`${k}-in-range`]:w&&!M&&!N,[`${k}-range-start`]:M,[`${k}-range-end`]:N,[`${p}-cell-selected`]:!S&&g!==`week`&&j(f),...l(f)}),style:h.item,onClick:()=>{v||E(f)},onDoubleClick:()=>{!v&&A&&A()},onMouseEnter:()=>{v||b?.(f)},onMouseLeave:()=>{v||b?.(null)}},y?y(f,{prefixCls:p,originNode:F,today:_,type:g,locale:T}):F))}M.push(z.createElement(`tr`,{key:e,className:o?.(u)},t))}return z.createElement(`div`,{className:D(`${p}-body`,m.body),style:h.body},z.createElement(`table`,{className:D(`${p}-content`,m.content),style:h.content},oe(u)&&z.createElement(`thead`,null,z.createElement(`tr`,null,u)),z.createElement(`tbody`,null,M)))}var or={visibility:`hidden`};function sr(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=`‹`,nextIcon:d=`›`,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:m,maxDate:h,generateConfig:g,locale:_,pickerValue:v,panelType:y}=nr(),b=`${s}-header`,{hidePrev:x,hideNext:S,hideHeader:C}=z.useContext(ir),w=z.useMemo(()=>{if(!m||!t||!a)return!1;let e=a(t(-1,v));return!mn(g,_,e,m,y)},[m,t,v,a,g,_,y]),T=z.useMemo(()=>{if(!m||!n||!a)return!1;let e=a(n(-1,v));return!mn(g,_,e,m,y)},[m,n,v,a,g,_,y]),E=z.useMemo(()=>{if(!h||!t||!i)return!1;let e=i(t(1,v));return!mn(g,_,h,e,y)},[h,t,v,i,g,_,y]),O=z.useMemo(()=>{if(!h||!n||!i)return!1;let e=i(n(1,v));return!mn(g,_,h,e,y)},[h,n,v,i,g,_,y]),k=e=>{t&&r(t(e,v))},A=e=>{n&&r(n(e,v))};if(C)return null;let j=`${b}-prev-btn`,M=`${b}-next-btn`,N=`${b}-super-prev-btn`,P=`${b}-super-next-btn`;return z.createElement(`div`,{className:D(b,c.header),style:l.header},n&&z.createElement(`button`,{type:`button`,"aria-label":_.previousYear,onClick:()=>A(-1),tabIndex:-1,className:D(N,T&&`${N}-disabled`),disabled:T,style:x?or:{}},f),t&&z.createElement(`button`,{type:`button`,"aria-label":_.previousMonth,onClick:()=>k(-1),tabIndex:-1,className:D(j,w&&`${j}-disabled`),disabled:w,style:x?or:{}},u),z.createElement(`div`,{className:`${b}-view`},o),t&&z.createElement(`button`,{type:`button`,"aria-label":_.nextMonth,onClick:()=>k(1),tabIndex:-1,className:D(M,E&&`${M}-disabled`),disabled:E,style:S?or:{}},d),n&&z.createElement(`button`,{type:`button`,"aria-label":_.nextYear,onClick:()=>A(1),tabIndex:-1,className:D(P,O&&`${P}-disabled`),disabled:O,style:S?or:{}},p))}function cr(){return cr=Object.assign?Object.assign.bind():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},cr.apply(this,arguments)}function lr(e){let{prefixCls:t,panelName:n=`date`,locale:r,generateConfig:i,pickerValue:a,onPickerValueChange:o,onModeChange:s,mode:c=`date`,disabledDate:l,onSelect:u,onHover:d,showWeek:f}=e,p=`${t}-${n}-panel`,m=`${t}-cell`,h=c===`week`,[g,_]=rr(e,c),v=i.locale.getWeekFirstDay(r.locale),y=i.setDate(a,1),b=cee(r.locale,i,y),x=i.getMonth(a),S=(f===void 0?h:f)?e=>{let t=l?.(e,{type:`week`});return z.createElement(`td`,{key:`week`,className:D(m,`${m}-week`,{[`${m}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},z.createElement(`div`,{className:`${m}-inner`},i.locale.getWeek(r.locale,e)))}:null,C=[],w=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);S&&C.push(z.createElement(`th`,{key:`empty`},z.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)C.push(z.createElement(`th`,{key:e},w[(e+v)%7]));let T=(e,t)=>i.addDate(e,t),E=e=>hn(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),O=e=>({[`${t}-cell-in-view`]:sn(i,e,a),[`${t}-cell-today`]:cn(i,e,_)}),k=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),A=z.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},hn(a,{locale:r,format:r.yearFormat,generateConfig:i})),j=z.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?hn(a,{locale:r,format:r.monthFormat,generateConfig:i}):k[x]),M=r.monthBeforeYear?[j,A]:[A,j];return z.createElement(tr.Provider,{value:g},z.createElement(`div`,{className:D(p,f&&`${p}-show-week`)},z.createElement(sr,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},M),z.createElement(ar,cr({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:b,headerCells:C,getCellDate:T,getCellText:E,getCellClassName:O,prefixColumn:S,cellSelection:!h}))))}var vee=1/3;function yee(e,t){let n=z.useRef(!1),r=z.useRef(null),i=z.useRef(null),a=()=>n.current,o=()=>{w.cancel(r.current),n.current=!1},s=z.useRef(void 0);return[L(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!ee(a)){s.current<=5&&(r.current=w(l));return}let p=t+(f-t)*vee,m=Math.abs(f-p);i.current!==null&&i.current<m?o():(i.current=m,m<=1?(a.scrollTop=f,o()):(a.scrollTop=p,r.current=w(l)))};e&&c&&l()}}),o,a]}var bee=300;function xee(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function ur(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:m}=nr(),h=`${l}-time-panel`,g=`${l}-time-panel-cell`,_=z.useRef(null),v=z.useRef(void 0),b=()=>{clearTimeout(v.current)},[x,S,C]=yee(_,n??r);y(()=>(x(),b(),()=>{S(),b()}),[n,r,xee(t)]);let w=e=>{b();let n=e.target;!C()&&c&&(v.current=setTimeout(()=>{let e=_.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=i.findIndex(e=>e===o),c=t[s];c&&!c.disabled&&a(c.value)},bee))},T=`${h}-column`;return z.createElement(`ul`,{className:T,ref:_,"data-type":i,onScroll:w},t.map(({label:e,value:t,disabled:r})=>{let c=z.createElement(`div`,{className:`${g}-inner`},e);return z.createElement(`li`,{key:t,style:m.item,className:D(g,p.item,{[`${g}-selected`]:n===t,[`${g}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function dr(){return dr=Object.assign?Object.assign.bind():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},dr.apply(this,arguments)}function fr(e){return e<12}function See(e){let{showHour:t,showMinute:n,showSecond:r,showMillisecond:i,use12Hours:a,changeOnScroll:o}=e,{prefixCls:s,classNames:c,styles:l,values:u,generateConfig:d,locale:f,onSelect:p,onHover:m=()=>{},pickerValue:h}=nr(),g=u?.[0]||null,{onCellDblClick:_}=z.useContext(ir),[v,y,b,x,S]=Qn(d,e,g),C=e=>[g&&d[e](g),h&&d[e](h)],[w,T]=C(`getHour`),[E,O]=C(`getMinute`),[k,A]=C(`getSecond`),[j,M]=C(`getMillisecond`),N=w===null?null:fr(w)?`am`:`pm`,P=z.useMemo(()=>a?fr(w)?y.filter(e=>fr(e.value)):y.filter(e=>!fr(e.value)):y,[w,y,a]),F=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},I=F(y,w),ee=z.useMemo(()=>b(I),[b,I]),te=F(ee,E),ne=z.useMemo(()=>x(I,te),[x,I,te]),L=F(ne,k),re=z.useMemo(()=>S(I,te,L),[S,I,te,L]),ie=F(re,j),ae=z.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?hn(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:y.every(e=>e.disabled||!fr(e.value))},{label:r(n,`PM`),value:`pm`,disabled:y.every(e=>e.disabled||fr(e.value))}]},[y,a,d,f]),R=e=>{let t=v(e);p(t)},se=z.useMemo(()=>{let e=g||h||d.getNow();return oe(w)?(e=d.setHour(e,w),e=d.setMinute(e,E),e=d.setSecond(e,k),e=d.setMillisecond(e,j)):oe(T)?(e=d.setHour(e,T),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):oe(I)&&(e=d.setHour(e,I),e=d.setMinute(e,te),e=d.setSecond(e,L),e=d.setMillisecond(e,ie)),e},[g,h,w,E,k,j,I,te,L,ie,T,O,A,M,d]),ce=(e,t)=>e===null?null:d[t](se,e),le=e=>ce(e,`setHour`),ue=e=>ce(e,`setMinute`),de=e=>ce(e,`setSecond`),fe=e=>ce(e,`setMillisecond`),pe=e=>e===null?null:e===`am`&&!fr(w)?d.setHour(se,w-12):e===`pm`&&fr(w)?d.setHour(se,w+12):se,me=e=>{R(le(e))},he=e=>{R(ue(e))},ge=e=>{R(de(e))},_e=e=>{R(fe(e))},ve=e=>{R(pe(e))},ye=e=>{m(le(e))},be=e=>{m(ue(e))},xe=e=>{m(de(e))},Se=e=>{m(fe(e))},Ce=e=>{m(pe(e))},we={onDblClick:_,changeOnScroll:o};return z.createElement(`div`,{className:D(`${s}-content`,c.content),style:l.content},t&&z.createElement(ur,dr({units:P,value:w,optionalValue:T,type:`hour`,onChange:me,onHover:ye},we)),n&&z.createElement(ur,dr({units:ee,value:E,optionalValue:O,type:`minute`,onChange:he,onHover:be},we)),r&&z.createElement(ur,dr({units:ne,value:k,optionalValue:A,type:`second`,onChange:ge,onHover:xe},we)),i&&z.createElement(ur,dr({units:re,value:j,optionalValue:M,type:`millisecond`,onChange:_e,onHover:Se},we)),a&&z.createElement(ur,dr({units:ae,value:N,type:`meridiem`,onChange:ve,onHover:Ce},we)))}function pr(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=rr(e,`time`);return z.createElement(tr.Provider,{value:c},z.createElement(`div`,{className:D(s)},z.createElement(sr,null,n?hn(n,{locale:r,format:o,generateConfig:i}):`\xA0`),z.createElement(See,a)))}function mr(){return mr=Object.assign?Object.assign.bind():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},mr.apply(this,arguments)}function hr(e){let{prefixCls:t,generateConfig:n,showTime:r,onSelect:i,value:a,pickerValue:o,onHover:s}=e,c=`${t}-datetime-panel`,[l]=Qn(n,r),u=e=>a?gn(n,e,a):gn(n,e,o);return z.createElement(`div`,{className:c},z.createElement(lr,mr({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),z.createElement(pr,e))}function gr(){return gr=Object.assign?Object.assign.bind():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},gr.apply(this,arguments)}function _r(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o}=e,s=`${t}-decade-panel`,[c]=rr(e,`decade`),l=e=>{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),h=e=>{let t=n.cellYearFormat;return`${hn(e,{locale:n,format:t,generateConfig:r})}-${hn(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=e=>({[`${t}-cell-in-view`]:nn(r,e,d)||nn(r,e,f)||pn(r,d,f,e)}),_=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${hn(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${hn(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return z.createElement(tr.Provider,{value:c},z.createElement(`div`,{className:s},z.createElement(sr,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},v),z.createElement(ar,gr({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function vr(){return vr=Object.assign?Object.assign.bind():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},vr.apply(this,arguments)}function yr(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-month-panel`,[l]=rr(e,`month`),u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=(e,t)=>r.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?hn(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),h=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=z.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},hn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return z.createElement(tr.Provider,{value:l},z.createElement(`div`,{className:c},z.createElement(sr,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},g),z.createElement(ar,vr({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function br(){return br=Object.assign?Object.assign.bind():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},br.apply(this,arguments)}function xr(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,onPickerValueChange:a,onModeChange:o}=e,s=`${t}-quarter-panel`,[c]=rr(e,`quarter`),l=r.setMonth(i,0),u=(e,t)=>r.addMonth(e,t*3),d=e=>hn(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=z.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},hn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return z.createElement(tr.Provider,{value:c},z.createElement(`div`,{className:s},z.createElement(sr,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),z.createElement(ar,br({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function Sr(){return Sr=Object.assign?Object.assign.bind():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},Sr.apply(this,arguments)}function Cr(e){let{prefixCls:t,generateConfig:n,locale:r,value:i,hoverValue:a,hoverRangeValue:o}=e,s=r.locale,c=`${t}-week-panel-row`;return z.createElement(lr,Sr({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=dn(n,s,r,e),l=dn(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&pn(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>dn(n,s,e,t))),D(c,{[`${c}-selected`]:!o&&dn(n,s,i,e)},t)}}))}function wr(){return wr=Object.assign?Object.assign.bind():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},wr.apply(this,arguments)}function Tr(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-year-panel`,[l]=rr(e,`year`),u=e=>{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=(e,t)=>r.addYear(e,t),g=e=>hn(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),_=e=>({[`${t}-cell-in-view`]:rn(r,e,f)||rn(r,e,p)||pn(r,f,p,e)}),v=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=z.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},hn(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,hn(p,{locale:n,format:n.yearFormat,generateConfig:r}));return z.createElement(tr.Provider,{value:l},z.createElement(`div`,{className:c},z.createElement(sr,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},y),z.createElement(ar,wr({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}function Er(){return Er=Object.assign?Object.assign.bind():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},Er.apply(this,arguments)}var Dr={date:lr,datetime:hr,week:Cr,month:yr,quarter:xr,year:Tr,decade:_r,time:pr};function Or(e,t){let{classNames:n,styles:r,locale:i,generateConfig:a,direction:o,prefixCls:s,tabIndex:c=0,multiple:l,defaultValue:d,value:f,onChange:p,onSelect:m,defaultPickerValue:h,pickerValue:g,onPickerValueChange:_,mode:v,onPanelChange:y,picker:b=`date`,showTime:x,hoverValue:S,hoverRangeValue:C,cellRender:w,dateRender:T,monthCellRender:E,components:O={},hideHeader:k}=e,{prefixCls:A,classNames:j,styles:M}=z.useContext(Gt)||{},N=A||s||`rc-picker`,P=z.useRef(null);z.useImperativeHandle(t,()=>({nativeElement:P.current}));let[F,I,ee,te]=On(e),ne=xn(i,I),re=b===`date`&&x?`datetime`:b,ie=z.useMemo(()=>kn(re,ee,te,F,ne),[re,ee,te,F,ne]),ae=a.getNow(),[R,oe]=u(b||`date`,v),se=R===`date`&&ie?`datetime`:R,ce=$n(a,i,re),[le,ue]=u(d,f),de=z.useMemo(()=>{let e=Yt(le).filter(e=>e);return l?e:e.slice(0,1)},[le,l]),fe=L(e=>{ue(e),p&&(e===null||de.length!==e.length||de.some((t,n)=>!fn(a,i,t,e[n],re)))&&p?.(l?e:e[0])}),pe=L(e=>{if(m?.(e),R===b){let t=l?ce(de,e):[e];fe(t)}}),[me,he]=u(h||de[0]||ae,g);z.useEffect(()=>{de[0]&&!g&&he(de[0])},[de[0]]);let ge=(e,t)=>{y?.(e||g,t||R)},_e=(e,t=!1)=>{he(e),_?.(e),t&&ge(e)},ve=(e,t)=>{oe(e),t&&_e(t),ge(t,e)},ye=e=>{if(pe(e),_e(e),R!==b){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[b]||n,i=r[r.indexOf(R)+1];i&&ve(i,e)}},be=z.useMemo(()=>{let e,t;return Array.isArray(C)?[e,t]=C:e=C,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[C,a]),xe=_n(w,T,E),Se=O[se]||Dr[se]||lr,Ce=z.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),we=z.useContext(ir),Te=z.useMemo(()=>({...we,hideHeader:k}),[we,k]),Ee=`${N}-panel`,De=Zt(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return z.createElement(er.Provider,{value:Ce},z.createElement(ir.Provider,{value:Te},z.createElement(`div`,{ref:P,tabIndex:c,className:D(Ee,{[`${Ee}-rtl`]:o===`rtl`})},z.createElement(Se,Er({},De,{showTime:ie,prefixCls:N,locale:ne,generateConfig:a,onModeChange:ve,pickerValue:me,onPickerValueChange:e=>{_e(e,!0)},value:de[0],onSelect:ye,values:de,cellRender:xe,hoverRangeValue:be,hoverValue:S})))))}var kr=z.memo(z.forwardRef(Or));function Ar(){return Ar=Object.assign?Object.assign.bind():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},Ar.apply(this,arguments)}function jr(e){let{picker:t,multiplePanel:n,pickerValue:r,onPickerValueChange:i,needConfirm:a,onSubmit:o,range:s,hoverValue:c,hoverRangeValue:l}=e,{prefixCls:u,generateConfig:d}=z.useContext(Gt),f=z.useCallback((e,n)=>Ln(d,t,e,n),[d,t]),p=z.useMemo(()=>f(r,1),[r,f]),m=e=>{i(f(e,-1))},h={onCellDblClick:()=>{a&&o()}},g=t===`time`,_={...e,hoverValue:null,hoverRangeValue:null,hideHeader:g};return _.hoverValue=c,s&&(_.hoverRangeValue=l),n?z.createElement(`div`,{className:`${u}-panels`},z.createElement(ir.Provider,{value:{...h,hideNext:!0}},z.createElement(kr,_)),z.createElement(ir.Provider,{value:{...h,hidePrev:!0}},z.createElement(kr,Ar({},_,{pickerValue:p,onPickerValueChange:m})))):z.createElement(ir.Provider,{value:{...h}},z.createElement(kr,_))}function Mr(e){return typeof e==`function`?e():e}function Nr(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?z.createElement(`div`,{className:`${t}-presets`},z.createElement(`ul`,null,n.map(({label:e,value:t},n)=>z.createElement(`li`,{key:n,onClick:()=>{r(Mr(t))},onMouseEnter:()=>{i(Mr(t))},onMouseLeave:()=>{i(null)}},e)))):null}function Pr(){return Pr=Object.assign?Object.assign.bind():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},Pr.apply(this,arguments)}function Fr(e){let{containerRef:t,panelRender:n,internalMode:r,picker:i,showNow:a,range:o,multiple:s,activeInfo:c=[0,0,0],presets:l,onPresetHover:u,onPresetSubmit:f,onFocus:p,onBlur:m,onPanelMouseDown:h,direction:g,value:_,onSelect:v,isInvalid:y,defaultOpenValue:b,onOk:x,onSubmit:S,classNames:C,styles:w}=e,{prefixCls:T}=z.useContext(Gt),E=`${T}-panel`,O=g===`rtl`,k=z.useRef(null),A=z.useRef(null),[j,M]=z.useState(0),[N,P]=z.useState(0),[F,I]=z.useState(0),ee=e=>{e.width&&M(e.width)},[te,ne,L]=c,[re,ie]=z.useState(0);z.useEffect(()=>{ie(10)},[te]),z.useEffect(()=>{if(o&&A.current){let e=k.current?.offsetWidth||0,t=A.current.getBoundingClientRect();if(!t.height||t.right<0){ie(e=>Math.max(0,e-1));return}let n=(O?ne-e:te)-t.left;if(I(n),j&&j<L){let n=O?t.right-(ne-e+j):te+e-t.left-j;P(Math.max(0,n))}else P(0)}},[re,O,j,te,ne,L,o]);function ae(e){return e.filter(e=>e)}let R=z.useMemo(()=>ae(Yt(_)),[_]),oe=i===`time`&&!R.length,se=z.useMemo(()=>oe?ae([b]):R,[oe,R,b]),ce=oe?b:R,le=z.useMemo(()=>!se.length||se.some(e=>y(e)),[se,y]),ue=z.createElement(`div`,{className:`${T}-panel-layout`},z.createElement(Nr,{prefixCls:T,presets:l,onClick:f,onHover:u}),z.createElement(`div`,null,z.createElement(jr,Pr({},e,{value:ce})),z.createElement(_ee,Pr({},e,{showNow:!s&&a,invalid:le,onSubmit:()=>{oe&&v(b),x(),S()}}))));n&&(ue=n(ue));let de=`${E}-container`,fe=`marginLeft`,pe=`marginRight`,me=z.createElement(`div`,{ref:t,onMouseDown:h,tabIndex:-1,className:D(de,`${T}-${r}-panel-container`,C?.popup?.container),style:{[O?pe:fe]:N,[O?fe:pe]:`auto`,...w?.popup?.container},onFocus:p,onBlur:m},ue);return o&&(me=z.createElement(`div`,{onMouseDown:h,ref:A,className:D(`${T}-range-wrapper`,`${T}-${i}-range-wrapper`)},z.createElement(`div`,{ref:k,className:`${T}-range-arrow`,style:{left:F}}),z.createElement(d,{onResize:ee},me))),me}function Ir(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:h,onOpenChange:g,onKeyDown:_,onChange:v,activeHelp:y,name:b,autoComplete:x,id:S,value:w,invalid:T,placeholder:E,disabled:D,activeIndex:O,allHelp:k,picker:A}=e,j=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=z.useCallback(e=>hn(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=z.useMemo(()=>w.map(N),[w,N]),F=z.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=e=>{for(let t=0;t<n.length;t+=1){let r=n[t];if(typeof r==`string`){let t=j(e,r);if(t)return t}}return!1};return[n=>{function i(e){return n===void 0?e:e[n]}let a={...C(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:x,size:F,id:i(S),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||y&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(e);t?(m(!1,n),v(t,n)):m(!!e,n)},onHelp:()=>{g(!0,{index:n})},onKeyDown:e=>{let t=!1;if(_?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0)}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var Lr=[`onMouseEnter`,`onMouseLeave`];function Rr(e){return z.useMemo(()=>Zt(e,Lr),[e])}function zr(){return zr=Object.assign?Object.assign.bind():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},zr.apply(this,arguments)}function Br({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=z.useContext(Gt);return pe(e)?z.createElement(`span`,zr({className:D(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}function Vr(){return Vr=Object.assign?Object.assign.bind():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},Vr.apply(this,arguments)}function Hr({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=z.useContext(Gt);return z.createElement(`button`,Vr({},n,{type:`button`,"aria-label":o.clear,className:D(`${r}-clear`,i.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}function Cee(e,t,n=1){let r=z.useRef(t);r.current=t,ie(()=>{if(e)r.current(e);else{let t=w(()=>{r.current(e)},n);return()=>{w.cancel(t)}}},[e])}var Ur=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],Wr=`顧`,wee=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=Ur.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>Wr.repeat(e.length));let r=RegExp(`(${Ur.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=Ur.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t<this.maskFormat.length;t+=1){let n=this.maskFormat[t],r=e[t];if(!r||n!==Wr&&n!==r)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(e){let t=2**53-1,n=0;for(let r=0;r<this.maskCells.length;r+=1){let{start:i,end:a}=this.maskCells[r];if(e>=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o<t&&(t=o,n=r)}return n}};function Tee(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function Gr(){return Gr=Object.assign?Object.assign.bind():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},Gr.apply(this,arguments)}var Kr=z.forwardRef((e,t)=>{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:m=!1,invalid:h,clearIcon:g,..._}=e,{value:v,onFocus:b,onBlur:x,onMouseUp:S}=e,{prefixCls:C,input:T=`input`,classNames:E,styles:O}=z.useContext(Gt),k=`${C}-input`,[A,j]=z.useState(!1),[M,N]=z.useState(v),[P,F]=z.useState(``),[I,ee]=z.useState(null),[te,ne]=z.useState(null),re=M||``;z.useEffect(()=>{N(v)},[v]);let ie=z.useRef(null),ae=z.useRef(null),R=z.useRef(!1);z.useImperativeHandle(t,()=>({nativeElement:ie.current,inputElement:ae.current,focus:e=>{ae.current.focus(e)},blur:()=>{ae.current.blur()}}));let oe=z.useMemo(()=>new wee(o||``),[o]),[se,ce]=z.useMemo(()=>u?[0,0]:oe.getSelection(I),[oe,I,u]),le=e=>{e&&e!==o&&e!==v&&d()},ue=L(e=>{s(e)&&c(e),N(e),le(e)}),de=e=>{if(!o){let t=e.target.value;le(t),N(t),c(t)}},fe=e=>{if(R.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&ue(t)},pe=()=>{R.current=!0},me=e=>{let{selectionStart:t}=e.target,n=oe.getMaskCellIndex(t);ee(n),ne({}),S?.(e),R.current=!1},he=e=>{j(!0),ee(0),F(``),b(e)},ge=e=>{x(e)},_e=e=>{j(!1),ge(e)};Cee(r,()=>{!r&&!m&&N(v)});let ve=e=>{e.key===`Enter`&&s(re)&&f(),p?.(e)},ye=e=>{if(R.current){e.preventDefault();return}ve(e);let{key:t}=e,n=null,r=null,i=ce-se,a=o.slice(se,ce),s=e=>{ee(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,oe.size()-1),n})},c=e=>{let[t,n,r]=Tee(a),i=re.slice(se,ce),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=P+t,r=n)}if(n!==null&&(F(n),n.length>=i&&(s(1),F(``))),r!==null){let e=re.slice(0,se)+Jt(r,i)+re.slice(ce);ue(e.slice(0,o.length))}ne({})},be=z.useRef(void 0);y(()=>{if(A&&o&&!R.current){if(!oe.match(re))ue(o);else return ae.current.setSelectionRange(se,ce),be.current=w(()=>{ae.current.setSelectionRange(se,ce)}),()=>{w.cancel(be.current)}}},[oe,o,A,re,I,se,ce,te,ue]);let xe=o?{onFocus:he,onBlur:_e,onKeyDown:ye,onMouseDown:pe,onMouseUp:me,onPaste:fe}:{};return z.createElement(`div`,{ref:ie,className:D(k,{[`${k}-active`]:r&&i,[`${k}-placeholder`]:u},n)},z.createElement(T,Gr({ref:ae,"aria-invalid":h,autoComplete:`off`},_,{onKeyDown:ve,onBlur:ge},xe,{value:re,onChange:de,className:E.input,style:O.input})),z.createElement(Br,{icon:a}),g)});function qr(){return qr=Object.assign?Object.assign.bind():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},qr.apply(this,arguments)}function Eee(e,t){let{id:n,prefix:r,clearIcon:i,suffixIcon:a,separator:o=`~`,activeIndex:s,activeHelp:c,allHelp:l,focused:u,onFocus:f,onBlur:p,onKeyDown:m,locale:h,generateConfig:g,placeholder:_,className:v,style:y,onClick:b,onClear:x,value:S,onChange:C,onSubmit:w,onInputChange:T,format:E,maskFormat:O,preserveInvalidOnBlur:k,onInvalid:A,disabled:j,invalid:M,inputReadOnly:N,direction:P,onOpenChange:F,onActiveInfo:I,placement:ee,onMouseDown:te,required:ne,"aria-required":re,autoFocus:ie,tabIndex:ae,...R}=e,oe=P===`rtl`,{prefixCls:se,classNames:ce,styles:le}=z.useContext(Gt),ue=z.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),de=z.useRef(null),fe=z.useRef(null),me=z.useRef(null),he=e=>[fe,me][e]?.current;z.useImperativeHandle(t,()=>({nativeElement:de.current,startInput:fe.current.inputElement,endInput:me.current.inputElement,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};he(t)?.focus(n)}else he(e??0)?.focus()},blur:()=>{he(0)?.blur(),he(1)?.blur()}}));let ge=Rr(R),_e=z.useMemo(()=>Array.isArray(_)?_:[_,_],[_]),[ve]=Ir({...e,id:ue,placeholder:_e}),[ye,be]=z.useState({position:`absolute`,width:0}),xe=L(()=>{let e=he(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=de.current.getBoundingClientRect(),r=t.left-n.left;be(e=>({...e,width:t.width,left:r})),I([t.left,t.right,n.width])}});z.useEffect(()=>{xe()},[s]);let Se=pe(i)&&(S[0]&&!j[0]||S[1]&&!j[1]),Ce=ie&&!j[0],we=ie&&!Ce&&!j[1];return z.createElement(d,{onResize:xe},z.createElement(`div`,qr({},ge,{className:D(se,`${se}-range`,{[`${se}-focused`]:u,[`${se}-disabled`]:j.every(e=>e),[`${se}-invalid`]:M.some(e=>e),[`${se}-rtl`]:oe},v),style:y,ref:de,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==fe.current.inputElement&&t!==me.current.inputElement&&e.preventDefault(),te?.(e)}}),pe(r)&&z.createElement(`div`,{className:D(`${se}-prefix`,ce.prefix),style:le.prefix},r),z.createElement(Kr,qr({ref:fe},ve(0),{className:`${se}-input-start`,autoFocus:Ce,tabIndex:ae,"date-range":`start`})),z.createElement(`div`,{className:`${se}-range-separator`},o),z.createElement(Kr,qr({ref:me},ve(1),{className:`${se}-input-end`,autoFocus:we,tabIndex:ae,"date-range":`end`})),z.createElement(`div`,{className:`${se}-active-bar`,style:ye}),z.createElement(Br,{icon:a}),Se&&z.createElement(Hr,{icon:i,onClear:x})))}var Dee=z.forwardRef(Eee);function Jr(e,t){return(0,z.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function Yr(){return Yr=Object.assign?Object.assign.bind():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},Yr.apply(this,arguments)}function Xr(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function Zr(e){return e===1?`end`:`start`}function Oee(e,t){let[n,r,a,o,s,c]=jn(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:Xr(t,!1),allowEmpty:Xr(n,!1)}}),{prefixCls:l,rootClassName:d,styles:f,classNames:p,previewValue:m,defaultValue:h,value:g,needConfirm:_,onClear:v,onKeyDown:b,disabled:x,allowEmpty:S,disabledDate:w,minDate:T,maxDate:E,defaultOpen:O,open:k,onOpenChange:A,locale:j,generateConfig:M,picker:N,showNow:P,showToday:F,showTime:I,mode:ee,onPanelChange:te,onCalendarChange:ne,onOk:re,defaultPickerValue:ie,pickerValue:ae,onPickerValueChange:R,inputReadOnly:oe,suffixIcon:se,onFocus:ce,onBlur:le,presets:ue,ranges:de,components:fe,cellRender:pe,dateRender:me,monthCellRender:he,onClick:ge}=n,_e=Fn(t),ve=z.useRef(null),[ye,be]=Jr(p,f),[xe,Se]=Pn(k,O,x,A),Ce=(e,t)=>{(x.some(e=>!e)||!e)&&Se(e,t)},[we,Te,Ee,De,Oe]=Gn(M,j,o,!0,!1,h,g,ne,re),ke=Ee(),[Ae,je,Me]=Nn(L(e=>Mn(e,[_e.current.nativeElement,ve.current])),(e,t)=>{ce?.(t,{range:Zr(e)})},(e,t)=>{le?.(t,{range:Zr(e)})},()=>{Ce(!1)}),[Ne,Pe,Fe]=Kn(n,we,Te,Ee,De,x,o,c),Ie=L((e,t)=>{De(Xt(Ee(),e,t))}),Le=L((e,t)=>{Ne(e,t),t&&Ce(!1,{force:!0})}),Re=x.filter(e=>!e).length,[ze,Be,Ve,He,Ue,We]=qn(Re,_,S,Ee,Ie,Le,Fe);mee(ze,Ve,_e,ve,Ce),y(e=>{!e&&!xe&&Ue(ze??Be,`popupClose`)},[xe]);let Ge=z.useMemo(()=>{if(!I)return null;let{disabledTime:e}=I,t=e?t=>{let n=Zr(Be),r=$t(ke,He,Be);return e(t,n,{from:r})}:void 0;return{...I,disabledTime:t}},[I,Be,ke,He]),[Ke,qe]=u([N,N],ee),Je=Ke[Be]||N,Ye=Je===`date`&&Ge?`datetime`:Je,Xe=Ye===N&&Ye!==`time`,Ze=Jn(N,Je,P,F,!0),Qe=gee(ke,x,Be,He,M,j,w),[$e,et]=vn(ke,c,S),[tt,nt]=zn(M,j,ke,Ke,xe,Ae,Be,r,Xe,ie,ae,Ge?.defaultOpenValue,R,T,E),rt=L((e,t,n)=>{let r=Xt(Ke,Be,t);if((r[0]!==Ke[0]||r[1]!==Ke[1])&&qe(r),te&&n!==!1){let t=[...ke];e&&(t[Be]=e),te(t,r)}}),it=(e,t)=>Xt(ke,t,e),at=(e,t=`confirm`)=>{Ue(Be,t,e??void 0)},ot=e=>{let t=e.target.getRootNode();if(!_e.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=x.findIndex(e=>!e);e>=0&&_e.current.focus({index:e})}Ce(!0),ge?.(e)},st=()=>{We(),Pe(null),Ce(!1,{force:!0}),v?.()},[ct,lt]=z.useState(null),[ut,dt]=z.useState(null),ft=z.useMemo(()=>ut||ke,[ke,ut]),pt=ct===`cell`&&!ke[(Be+1)%2]&&!un(M,ke[Be],we[Be]),mt=ut?.[Be];z.useEffect(()=>{xe||dt(null)},[xe]);let[ht,gt]=z.useState([0,0,0]),_t=(e,t)=>{m===`hover`&&(dt(e),lt(t))},vt=In(ue,de),yt=e=>{_t(e,`preset`)},bt=e=>{Pe(e)&&Ce(!1,{force:!0})},xt=e=>{at(e)},St=e=>{_t(e?it(e,Be):null,`cell`)},Ct=e=>{Ce(!0),je(Be,`panel`,e)},wt=e=>{Ue(Be,!a&&r===Ye?`panel-final`:`panel-intermediate`,e)},Tt=()=>{Ce(!1)},Et=_n(pe,me,he,Zr(Be)),Dt=ke[Be]||null,Ot=L(e=>c(e,{activeIndex:Be})),kt=z.useMemo(()=>{let e=C(n,!1);return i(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),At=z.createElement(Fr,Yr({containerRef:ve},kt,{showNow:Ze,showTime:Ge,range:!0,multiplePanel:Xe,activeInfo:ht,disabledDate:Qe,onFocus:Ct,onBlur:e=>Me(Be,`panel`,e),picker:N,mode:Je,internalMode:Ye,onPanelChange:rt,format:s,value:Dt,isInvalid:Ot,onChange:null,onSelect:wt,pickerValue:tt,defaultOpenValue:Yt(I?.defaultOpenValue)[Be],onPickerValueChange:nt,hoverValue:pt&&mt?[mt]:null,hoverRangeValue:pt?null:ft,onHover:St,needConfirm:_,onSubmit:e=>at(e,`confirm`),onOk:Oe,presets:vt,onPresetHover:yt,onPresetSubmit:bt,onNow:xt,cellRender:Et,classNames:ye,styles:be})),jt=(e,t)=>{Ue(t,`input`,e)},Mt=()=>{Ue(Be,`input`)},Nt=(e,t)=>{Ue(t,`field-switch`),Ce(!0,{inherit:!0}),je(t,`input`,e)},Pt=(e,t)=>{Me(t,`input`,e)},Ft=(e,t)=>{e.key===`Tab`?at(null,`keyboard-submit-weak`):e.key===`Escape`&&(Ue(Be,`esc`),Ce(!1)),b?.(e,t)},It=z.useMemo(()=>({prefixCls:l,locale:j,generateConfig:M,button:fe.button,input:fe.input,classNames:ye,styles:be}),[l,j,M,fe.button,fe.input,ye,be]);return y(()=>{xe&&Be!==void 0&&rt(null,N,!1)},[xe,Be,N]),z.createElement(Gt.Provider,{value:It},z.createElement(qt,Yr({},en(n),{popupElement:At,popupStyle:be.popup.root,popupClassName:D(d,ye.popup.root),visible:xe,onClose:Tt,range:!0}),z.createElement(Dee,Yr({},n,{ref:_e,className:D(n.className,d,ye.root),style:{...be.root,...n.style},suffixIcon:se,activeIndex:Ae||xe?Be:null,activeHelp:!!ut,allHelp:!!ut&&ct===`preset`,focused:Ae,onFocus:Nt,onBlur:Pt,onKeyDown:Ft,onSubmit:()=>at(null,`keyboard-submit`),value:ft,maskFormat:s,onChange:jt,onInputChange:Mt,format:o,inputReadOnly:oe,disabled:x,open:xe,onOpenChange:Ce,onClick:ot,onClear:st,invalid:$e,onInvalid:et,onActiveInfo:gt}))))}var kee=z.forwardRef(Oee);function Aee(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return z.createElement(`span`,{className:D(`${d}-item`),title:typeof e==`string`?e:null},z.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&z.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function m(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function h(e){return p(`+ ${e.length} ...`)}return z.createElement(`div`,{className:u},z.createElement(I,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:e=>a(e),maxCount:s}),!n.length&&z.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function Qr(){return Qr=Object.assign?Object.assign.bind():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},Qr.apply(this,arguments)}function jee(e,t){let{id:n,open:r,prefix:i,clearIcon:a,suffixIcon:o,activeHelp:s,allHelp:c,focused:l,onFocus:u,onBlur:d,onKeyDown:f,locale:p,generateConfig:m,placeholder:h,className:g,style:_,onClick:v,onClear:y,internalPicker:b,value:x,onChange:S,onSubmit:C,onInputChange:w,multiple:T,maxTagCount:E,tagRender:O,format:k,maskFormat:A,preserveInvalidOnBlur:j,onInvalid:M,disabled:N,invalid:P,inputReadOnly:F,direction:I,onOpenChange:ee,onMouseDown:te,required:ne,"aria-required":L,autoFocus:re,tabIndex:ie,removeIcon:ae,...R}=e,oe=I===`rtl`,{prefixCls:se,classNames:ce,styles:le}=z.useContext(Gt),ue=z.useRef(null),de=z.useRef(null);z.useImperativeHandle(t,()=>({nativeElement:ue.current,focus:e=>{de.current?.focus(e)},blur:()=>{de.current?.blur()}}));let fe=Rr(R),me=e=>{S([e],`input`)},he=e=>{let t=x.filter(t=>t&&!fn(m,p,t,e,b));S(t,r?`input`:`remove`)},[ge,_e]=Ir({...e,onChange:me},({valueTexts:e})=>({value:e[0]||``,active:l})),ve=pe(a)&&!!x.length&&!N,ye=T?z.createElement(z.Fragment,null,z.createElement(Aee,{prefixCls:se,value:x,onRemove:he,formatDate:_e,maxTagCount:E,tagRender:O,disabled:N,removeIcon:ae,placeholder:h}),z.createElement(`input`,{className:`${se}-multiple-input`,value:x.map(_e).join(`,`),ref:de,readOnly:!0,autoFocus:re,tabIndex:ie}),z.createElement(Br,{icon:o}),ve&&z.createElement(Hr,{icon:a,onClear:y})):z.createElement(Kr,Qr({ref:de},ge(),{autoFocus:re,tabIndex:ie,suffixIcon:o,clearIcon:ve&&z.createElement(Hr,{icon:a,onClear:y}),showActiveCls:!1}));return z.createElement(`div`,Qr({},fe,{className:D(se,{[`${se}-multiple`]:T,[`${se}-focused`]:l,[`${se}-disabled`]:N,[`${se}-invalid`]:P,[`${se}-rtl`]:oe},g),style:_,ref:ue,onClick:v,onMouseDown:e=>{let{target:t}=e;t!==de.current?.inputElement&&e.preventDefault(),te?.(e)}}),pe(i)&&z.createElement(`div`,{className:D(`${se}-prefix`,ce.prefix),style:le.prefix},i),ye)}var Mee=z.forwardRef(jee);function $r(){return $r=Object.assign?Object.assign.bind():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},$r.apply(this,arguments)}function Nee(e,t){let[n,r,a,o,s,c]=jn(e),{prefixCls:l,rootClassName:d,styles:f,classNames:p,previewValue:m,order:h,defaultValue:g,value:_,needConfirm:v,onChange:b,onClear:x,onKeyDown:S,disabled:w,disabledDate:T,minDate:E,maxDate:O,defaultOpen:k,open:A,onOpenChange:j,locale:M,generateConfig:N,picker:P,showNow:F,showToday:I,showTime:ee,mode:te,onPanelChange:ne,onCalendarChange:re,onOk:ie,multiple:ae,defaultPickerValue:R,pickerValue:oe,onPickerValueChange:se,inputReadOnly:ce,suffixIcon:le,removeIcon:ue,tagRender:de,onFocus:fe,onBlur:pe,presets:me,components:he,cellRender:ge,dateRender:_e,monthCellRender:ve,onClick:ye}=n,be=Fn(t),xe=z.useRef(null);function Se(e){return e===null?null:ae?e:e[0]}let Ce=$n(N,M,r),[we,Te]=Jr(p,f),[Ee,De]=Pn(A,k,[w],j),[Oe,ke,Ae,je,Me]=Gn(N,M,o,!1,h,g,_,(e,t,n)=>{if(re){let r={...n};delete r.range,re(Se(e),Se(t),r)}},e=>{ie?.(Se(e))}),Ne=Ae(),[Pe,Fe,Ie]=Nn(L(e=>Mn(e,[be.current.nativeElement,xe.current])),(e,t)=>{fe?.(t,{})},(e,t)=>{pe?.(t,{})},()=>{De(!1)}),[Le,Re]=u(P,te),ze=Le===`date`&&ee?`datetime`:Le,Be=Jn(P,Le,F,I),Ve=b&&((e,t)=>{b(Se(e),Se(t))}),[,He,Ue]=Kn({...n,onChange:Ve},Oe,ke,Ae,je,[],o,c),[,We,,,Ge,Ke]=qn(1,v,[!1],L(()=>{let e=Ae();return[e.length?e:null]}),L((e,t)=>{je(t)}),L((e,t)=>{t&&(He(Ae()),De(!1,{force:!0}))}),L(()=>{Ue()}));y(e=>{!e&&!Ee&&Ge(0,`popupClose`)},[Ee]);let[qe,Je]=vn(Ne,c),Ye=z.useMemo(()=>qe.some(e=>e),[qe]),[Xe,Ze]=zn(N,M,Ne,[Le],Ee,!1,We,r,!1,R,oe,Yt(ee?.defaultOpenValue),(e,t)=>{if(se){let n={...t,mode:t.mode[0]};delete n.range,se(e[0],n)}},E,O),Qe=L((e,t,n)=>{if(Re(t),ne&&n!==!1){let n=e||Ne[Ne.length-1];ne(n,t)}}),$e=(e=`confirm`)=>{Ge(0,e)},et=e=>{!w&&!be.current.nativeElement.contains(document.activeElement)&&be.current.focus(),De(!0),ye?.(e)},tt=()=>{Ke(),He(null),De(!1,{force:!0}),be.current.focus(),x?.()},[nt,rt]=z.useState(null),[it,at]=z.useState(null),ot=z.useMemo(()=>{let e=[it,...Ne].filter(e=>e);return ae?e:e.slice(0,1)},[Ne,it,ae]),st=z.useMemo(()=>!ae&&it?[it]:Ne.filter(e=>e),[Ne,it,ae]);z.useEffect(()=>{Ee||at(null)},[Ee]);let ct=(e,t)=>{m===`hover`&&(at(e),rt(t))},lt=In(me),ut=e=>{ct(e,`preset`)},dt=e=>{let t=ae?Ce(Ae(),e):[e];He(t)&&!ae&&De(!1,{force:!0})},ft=e=>{dt(e)},pt=e=>{ct(e,`cell`)},mt=e=>{De(!0),Fe(0,`panel`,e)},ht=e=>{if(ae&&ze!==P)return;let t=ae?Ce(Ae(),e):[e];Ge(0,!a&&r===ze?`panel-final`:`panel-intermediate`,t)},gt=()=>{De(!1)},_t=_n(ge,_e,ve),vt=z.useMemo(()=>{let e=C(n,!1);return{...i(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),yt=z.createElement(Fr,$r({containerRef:xe},vt,{showNow:Be,showTime:ee,disabledDate:T,onFocus:mt,onBlur:e=>Ie(0,`panel`,e),picker:P,mode:Le,internalMode:ze,onPanelChange:Qe,format:s,value:Ne,isInvalid:c,onChange:null,onSelect:ht,pickerValue:Xe,defaultOpenValue:ee?.defaultOpenValue,onPickerValueChange:Ze,hoverValue:ot,onHover:pt,needConfirm:v,onSubmit:()=>$e(`confirm`),onOk:Me,presets:lt,onPresetHover:ut,onPresetSubmit:dt,onNow:ft,cellRender:_t,classNames:we,styles:Te})),bt=(e,t=`input`)=>{Ge(0,t,e)},xt=()=>{Ge(0,`input`)},St=e=>{Ge(0,`field-switch`),De(!0,{inherit:!0}),Fe(0,`input`,e)},Ct=e=>{Ie(0,`input`,e)},wt=(e,t)=>{e.key===`Tab`?$e(`keyboard-submit-weak`):e.key===`Escape`&&(Ge(0,`esc`),De(!1)),S?.(e,t)},Tt=z.useMemo(()=>({prefixCls:l,locale:M,generateConfig:N,button:he.button,input:he.input,classNames:we,styles:Te}),[l,M,N,he.button,he.input,we,Te]);return y(()=>{Ee&&We!==void 0&&Qe(null,P,!1)},[Ee,We,P]),z.createElement(Gt.Provider,{value:Tt},z.createElement(qt,$r({},en(n),{popupElement:yt,popupStyle:Te.popup.root,popupClassName:D(d,we.popup.root),visible:Ee,onClose:gt}),z.createElement(Mee,$r({},n,{ref:be,className:D(n.className,d,we.root),style:{...Te.root,...n.style},suffixIcon:le,removeIcon:ue,tagRender:de,activeHelp:!!it,allHelp:!!it&&nt===`preset`,focused:Pe,onFocus:St,onBlur:Ct,onKeyDown:wt,onSubmit:()=>$e(`keyboard-submit`),value:st,maskFormat:s,onChange:bt,onInputChange:xt,internalPicker:r,format:o,inputReadOnly:ce,disabled:w,open:Ee,onOpenChange:De,onClick:et,onClear:tt,invalid:Ye,onInvalid:e=>{Je(e,0)}}))))}var Pee=z.forwardRef(Nee),Fee=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:_(t),itemLineHeight:_(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Iee=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...he(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:700,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},ei=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Fee(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:_(a.itemLineHeight)}}}]},Lee=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=ve(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=ve(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[ei(i,`small`),ei(e),ei(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...R}},...Iee(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},Ree=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:_(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${_(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},zee=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:x,colorIconHover:S,fontWeightStrong:C,cellHeight:w,pickerCellPaddingVertical:T,colorTextDisabled:E,colorText:D,fontSize:O,motionDurationSlow:k,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:M,borderRadiusSM:N,colorTextLightSolid:P,cellHoverBg:F,timeColumnHeight:I,timeColumnWidth:ee,timeCellHeight:te,controlItemBgActive:ne,marginXXS:L,pickerDatePanelPaddingHorizontal:re,pickerControlIconMargin:ie}=e,ae=e.calc(o).mul(7).add(e.calc(re).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:ae},"&-header":{display:`flex`,padding:`0 ${_(c)}`,color:h,borderBottom:`${_(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:y,lineHeight:_(b),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${x}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:O,"&:hover":{color:S},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:C,lineHeight:_(b),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:v,borderInlineStartWidth:v,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:ie,insetInlineStart:ie,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:v,borderInlineStartWidth:v,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:w,fontWeight:400},th:{height:e.calc(w).add(e.calc(T).mul(2)).equal(),color:D,verticalAlign:`middle`}},"&-cell":{padding:`${_(T)} 0`,color:E,cursor:`pointer`,"&-in-view":{color:D},...Ree(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${_(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:M}},"&-decade-panel":{[r]:{padding:`0 ${_(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${_(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${_(c)} ${_(re)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${x}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:F},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new j(P).setA(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:ne}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_(c)} ${_(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${_(d)} ${f} ${g}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${k}`},"&-active":{[`${t}-date-panel,
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:I},"&-column":{flex:`1 0 auto`,width:ee,margin:`${_(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${x}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${_(te)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${_(d)} ${f} ${g}`},"&-active":{background:new j(ne).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(ee).sub(e.calc(L).mul(2)).equal(),height:te,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(ee).sub(te).div(2).equal(),color:D,lineHeight:_(te),borderRadius:N,cursor:`pointer`,transition:`background-color ${x}`,"&:hover":{background:F}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ne}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:`transparent`,cursor:`not-allowed`}}}}}}}}},Bee=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_(r)} ${l} ${u}`,"&-extra":{padding:`0 ${_(i)}`,lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${_(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:_(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},Vee=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},Hee=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new j(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new j(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},Uee=e=>({...We(e),...Hee(e),...Oe(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Wee=e=>{let{componentCls:t}=e;return{[t]:[{...Be(e),...Ve(e),...Ge(e),...ze(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},ti=(e,t)=>({padding:`${_(e)} ${_(t)}`}),Gee=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=g(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},Kee=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:o,colorBorder:s,borderRadius:c,motionDurationMid:l,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:f,fontSizeLG:p,inputFontSizeLG:m,fontSizeSM:v,inputFontSizeSM:y,controlHeightSM:b,paddingInlineSM:x,paddingXS:S,marginXS:C,colorIcon:w,lineWidthBold:T,colorPrimary:D,motionDurationSlow:k,zIndexPopup:A,paddingXXS:j,sizePopupArrow:M,colorBgElevated:N,borderRadiusLG:P,boxShadowSecondary:F,borderRadiusSM:I,colorSplit:ee,cellHoverBg:ne,presetsWidth:L,presetsMaxWidth:re,boxShadowPopoverArrow:ie,fontHeight:ae,lineHeightLG:oe}=e,[se,ce]=g(n,`date-picker`);return[{[t]:{[se(`affix-color`)]:`inherit`,...te(e),...ti(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:c,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${l}`).join(`, `),[`${t}-prefix`]:{color:ce(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${l}`,...He(d),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:u,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:d}}},"&-large":{...ti(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:m??p,lineHeight:oe}},"&-small":{...ti(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:y??v}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(S).div(2).equal(),color:f,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${l}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:f,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${l}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:w},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...O(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:p,color:f,fontSize:p,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:T,background:D,opacity:0,transition:`all ${k} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${_(S)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x}}},"&-dropdown":{...te(e),...zee(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:A,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft,
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:a},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:h},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:E},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:ue},[`${t}-panel > ${t}-time-panel`]:{paddingTop:j},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${k} ease-out`,...we(e,N,ie),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:N,borderRadius:P,boxShadow:F,transition:`margin ${k}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:L,maxWidth:re,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:S,borderInlineEnd:`${_(i)} ${o} ${ee}`,li:{...R,borderRadius:I,paddingInline:S,paddingBlock:e.calc(b).sub(ae).div(2).equal(),cursor:`pointer`,transition:`all ${k}`,"+ li":{marginTop:C},"&:hover":{background:ne}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:s}}}},"&-dropdown-range":{padding:`${_(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},Se(e,`slide-up`),Se(e,`slide-down`),Ye(e,`move-up`),Ye(e,`move-down`)]},ni=de(`DatePicker`,e=>{let t=ve(Ue(e),Vee(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Bee(t),Kee(t),Wee(t),Gee(t),Lee(t),l(e,{focusElCls:`${e.componentCls}-focused`})]},Uee),ri=z.createContext({}),ii=`__rc_cascader_search_mark__`,qee=(e,t,{label:n=``})=>t.some(t=>String(t[n]).toLowerCase().includes(e.toLowerCase())),Jee=(e,t,n,r)=>t.map(e=>e[r.label]).join(` / `),Yee=(e,t,n,r,i,a)=>{let{filter:o=qee,render:s=Jee,limit:c=50,sort:l}=i;return z.useMemo(()=>{let i=[];if(!e)return[];function u(t,d,f=!1){t.forEach(t=>{if(!l&&c!==!1&&c>0&&i.length>=c)return;let p=[...d,t],m=t[n.children],h=f||t.disabled;(!m||m.length===0||a)&&o(e,p,{label:n.label})&&i.push({...t,disabled:h,[n.label]:s(e,p,r,n),[ii]:p,[n.children]:void 0}),m&&u(t[n.children],p,h)})}return u(t,[]),l&&i.sort((t,r)=>l(t[ii],r[ii],e,n)),c!==!1&&c>0?i.slice(0,c):i},[e,t,n,r,s,a,o,l,c])},ai=`__RC_CASCADER_SPLIT__`,oi=`SHOW_PARENT`,Xee=`SHOW_CHILD`;function si(e){return e.join(ai)}function ci(e){return e.map(si)}function Zee(e){return e.split(ai)}function li(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{label:t||`label`,value:i,key:i,children:r||`children`}}function ui(e,t){return e.isLeaf??!e[t.children]?.length}function di(e){let t=e.parentElement;if(!t)return;let n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}function fi(e,t){return e.map(e=>e[ii]?.map(e=>e[t.value]))}function pi(e){return Array.isArray(e)&&Array.isArray(e[0])}function mi(e){return e?pi(e)?e:(e.length===0?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}function hi(e,t,n){let r=new Set(e),i=t();return e.filter(e=>{let t=i[e],a=t?t.parent:null,o=t?t.children:null;return t&&t.node.disabled?!0:n===`SHOW_CHILD`?!(o&&o.some(e=>e.key&&r.has(e.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function gi(e,t,n,r=!1){let i=t,a=[];for(let t=0;t<e.length;t+=1){let o=e[t],s=i?.findIndex(e=>{let t=e[n.value];return r?String(t)===String(o):t===o}),c=s===-1?null:i?.[s];a.push({value:c?.[n.value]??o,index:s,option:c}),i=c?.[n.children]}return a}var _i=((e,t,n,r,i)=>z.useMemo(()=>{let a=i||(e=>{let t=r?e.slice(-1):e;return t.every(e=>[`string`,`number`].includes(typeof e))?t.join(` / `):t.reduce((e,t,n)=>{let r=z.isValidElement(t)?z.cloneElement(t,{key:n}):t;return n===0?[r]:[...e,` / `,r]},[])});return e.map(e=>{let r=gi(e,t,n),i=a(r.map(({option:e,value:t})=>e?.[n.label]??t),r.map(({option:e})=>e)),o=si(e);return{label:i,value:o,key:o,valueCells:e,disabled:r[r.length-1]?.option?.disabled}})},[e,t,n,i,r]));function vi(e,t){return z.useCallback(n=>{let r=[],i=[];return n.forEach(n=>{gi(n,e,t).every(e=>e.option)?i.push(n):r.push(n)}),[i,r]},[e,t])}var yi=((e,t)=>{let n=z.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return z.useCallback(()=>(n.current.options!==e&&(n.current.options=e,n.current.info=je(e,{fieldNames:t,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,n)=>{let r=e.nodes.map(e=>e[t.value]).join(ai);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities),[t,e])});function bi(e,t){let n=z.useMemo(()=>t||[],[t]),r=yi(n,e);return[n,r,z.useCallback(t=>{let n=r();return t.map(t=>{let{nodes:r}=n[t];return r.map(t=>t[e.value])})},[r,e])]}function xi(e,t){let{autoClearSearchValue:n,searchValue:r,onSearch:i}=t;return z.useMemo(()=>{if(!e)return[!1,{}];let t={matchInputWidth:!0,limit:50,autoClearSearchValue:n,searchValue:r,onSearch:i};return e&&typeof e==`object`&&(t={...t,...e}),t.limit<=0&&(t.limit=!1),[!0,t]},[e,n,r,i])}function Si(e,t,n,r,i,a,o,s){return c=>{if(!e)t(c);else{let e=si(c),l=ci(n),u=ci(r),d=l.includes(e),f=i.some(t=>si(t)===e),p=n,m=i;if(f&&!d)m=i.filter(t=>si(t)!==e);else{let t=d?l.filter(t=>t!==e):[...l,e],n=a(),r;d?{checkedKeys:r}=Ie(t,{checked:!1,halfCheckedKeys:u},n):{checkedKeys:r}=Ie(t,!0,n),p=o(hi(r,a,s))}t([...m,...p])}}}function Ci(e,t,n,r,i){return z.useMemo(()=>{let[a,o]=i(t);if(!e||!t.length)return[a,[],o];let s=ci(a),c=n(),{checkedKeys:l,halfCheckedKeys:u}=Ie(s,!0,c);return[r(l),r(u),o]},[e,t,n,r,i])}function wi({prefixCls:e,checked:t,halfChecked:n,disabled:r,onClick:i,disableCheckbox:a}){let{checkable:o}=z.useContext(ri),s=typeof o==`boolean`?null:o;return z.createElement(`span`,{className:D(`${e}`,{[`${e}-checked`]:t,[`${e}-indeterminate`]:!t&&n,[`${e}-disabled`]:r||a}),onClick:i},s)}function Ti(){return Ti=Object.assign?Object.assign.bind():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},Ti.apply(this,arguments)}var Ei=`__cascader_fix_label__`;function Di({prefixCls:e,multiple:t,options:n,activeValue:r,prevValuePath:i,onToggleOpen:a,onSelect:o,onActive:s,checkedSet:c,halfCheckedSet:l,loadingKeys:u,isSelectable:d,disabled:f}){let p=`${e}-menu`,m=`${e}-menu-item`,h=z.useRef(null),{fieldNames:g,changeOnSelect:_,expandTrigger:v,expandIcon:y,loadingIcon:b,popupMenuColumnStyle:x,optionRender:S,classNames:w,styles:T}=z.useContext(ri),E=v===`hover`,O=e=>f||e,k=z.useMemo(()=>n.map(e=>{let{disabled:t,disableCheckbox:n}=e,r=e[ii],a=e.__cascader_fix_label__??e[g.label],o=e[g.value],s=ui(e,g),d=r?r.map(e=>e[g.value]):[...i,o],f=si(d);return{disabled:t,label:a,value:o,isLeaf:s,isLoading:u.includes(f),checked:c.has(f),halfChecked:l.has(f),option:e,disableCheckbox:n,fullPath:d,fullPathKey:f}}),[n,c,g,l,u,i]);return z.useEffect(()=>{if(h.current){let e=`.${m}-active`,t=h.current.querySelector(e);t&&di(t)}},[r,m]),z.createElement(`ul`,{className:D(p,w?.popup?.list),style:T?.popup?.list,ref:h,role:`menu`},k.map(({disabled:n,label:i,value:c,isLeaf:l,isLoading:u,checked:f,halfChecked:p,option:h,fullPath:g,fullPathKey:v,disableCheckbox:k})=>{let A=C(h,{aria:!0,data:!0}),j=()=>{if(O(n))return;let e=[...g];E&&l&&e.pop(),s(e)},M=()=>{d(h)&&!O(n)&&o(g,l)},N;return typeof h.title==`string`?N=h.title:typeof i==`string`&&(N=i),z.createElement(`li`,Ti({key:v},A,{className:D(m,w?.popup?.listItem,{[`${m}-expand`]:!l,[`${m}-active`]:r===c||r===v,[`${m}-disabled`]:O(n),[`${m}-loading`]:u}),style:{...x,...T?.popup?.listItem},role:`menuitemcheckbox`,title:N,"aria-checked":f,"data-path-key":v,onClick:()=>{j(),k||t&&!l||M()},onDoubleClick:()=>{_&&a(!1)},onMouseEnter:()=>{E&&j()},onMouseDown:e=>{e.preventDefault()}}),t&&z.createElement(wi,{prefixCls:`${e}-checkbox`,checked:f,halfChecked:p,disabled:O(n)||k,disableCheckbox:k,onClick:e=>{k||(e.stopPropagation(),M())}}),z.createElement(`div`,{className:`${m}-content`},S&&c!==`__EMPTY__`?S(h):i),!u&&y&&!l&&z.createElement(`div`,{className:`${m}-expand-icon`},y),u&&b&&z.createElement(`div`,{className:`${m}-loading-icon`},b))}))}var Oi=(e,t)=>{let{values:n}=z.useContext(ri),r=n[0],[i,a]=z.useState([]);return z.useEffect(()=>{e||a(r||[])},[t,r]),[i,a]},ki=((e,t,n,r,i,a,o)=>{let{direction:s,searchValue:c,toggleOpen:l,open:u}=o,d=s===`rtl`,[f,p,m,h]=z.useMemo(()=>{let e=-1,i=t,a=[],o=[],s=r.length,c=fi(t,n);for(let t=0;t<s&&i;t+=1){let s=i.findIndex((e,i)=>(c[i]?si(c[i]):e[n.value])===r[t]);if(s===-1)break;e=s,a.push(e),o.push(r[t]),i=i[e][n.children]}let l=t;for(let e=0;e<a.length-1;e+=1)l=l[a[e]][n.children];return[o,e,l,c]},[r,n,t]),g=e=>{i(e)},_=e=>{let t=m.length,r=p;r===-1&&e<0&&(r=t);for(let i=0;i<t;i+=1){r=(r+e+t)%t;let i=m[r];if(i&&!i.disabled){let e=f.slice(0,-1).concat(h[r]?si(h[r]):i[n.value]);g(e);return}}},v=()=>{if(f.length>1){let e=f.slice(0,-1);g(e)}else l(!1)},y=()=>{let e=(m[p]?.[n.children]||[]).find(e=>!e.disabled);if(e){let t=[...f,e[n.value]];g(t)}};z.useImperativeHandle(e,()=>({onKeyDown:e=>{let{which:t}=e;switch(t){case F.UP:case F.DOWN:{let e=0;t===F.UP?e=-1:t===F.DOWN&&(e=1),e!==0&&_(e);break}case F.LEFT:if(c)break;d?y():v();break;case F.RIGHT:if(c)break;d?v():y();break;case F.BACKSPACE:c||v();break;case F.ENTER:if(f.length){let e=m[p]?.__rc_cascader_search_mark__||[];e.length?a(e.map(e=>e[n.value]),e[e.length-1]):a(f,m[p])}break;case F.ESC:l(!1),u&&e.stopPropagation()}},onKeyUp:()=>{}}))});function Ai(){return Ai=Object.assign?Object.assign.bind():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},Ai.apply(this,arguments)}var ji=z.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,notFoundContent:o,direction:s,open:c,disabled:l,lockOptions:u=!1}=e,d=z.useRef(null),f=s===`rtl`,{options:p,values:m,halfValues:h,fieldNames:g,changeOnSelect:_,onSelect:v,searchOptions:y,popupPrefixCls:b,loadData:x,expandTrigger:S}=z.useContext(ri),C=b||n,[w,T]=z.useState([]),E=e=>{if(!x||i)return;let t=gi(e,p,g).map(({option:e})=>e),n=t[t.length-1];if(n&&!ui(n,g)){let n=si(e);T(e=>[...e,n]),x(t)}};z.useEffect(()=>{w.length&&w.forEach(e=>{let t=gi(Zee(e),p,g,!0).map(({option:e})=>e),n=t[t.length-1];(!n||n[g.children]||ui(n,g))&&T(t=>t.filter(t=>t!==e))})},[p,w,g]);let O=z.useMemo(()=>new Set(ci(m)),[m]),k=z.useMemo(()=>new Set(ci(h)),[h]),[A,j]=Oi(r,c),M=e=>{j(e),E(e)},N=e=>{if(l)return!1;let{disabled:t}=e,n=ui(e,g);return!t&&(n||_||r)},P=(e,t,n=!1)=>{v(e),!r&&(t||_&&(S===`hover`||n))&&a(!1)},F=z.useMemo(()=>i?y:p,[i,y,p]),I=be(()=>F,[c,u],(e,t)=>!!t[0]&&!t[1]),ee=z.useMemo(()=>{let e=[{options:I}],t=I,n=fi(t,g);for(let r=0;r<A.length;r+=1){let i=A[r],a=t.find((e,t)=>(n[t]?si(n[t]):e[g.value])===i)?.[g.children];if(!a?.length)break;t=a,e.push({options:a})}return e},[I,A,g]);ki(t,I,g,A,M,(e,t)=>{N(t)&&P(e,ui(t,g),!0)},{direction:s,searchValue:i,toggleOpen:a,open:c}),z.useEffect(()=>{if(!i)for(let e=0;e<A.length;e+=1){let t=si(A.slice(0,e+1)),n=d.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,`\\"`)}"]`);n&&di(n)}},[A,i]);let te=!ee[0]?.options?.length,ne=[{[g.value]:`__EMPTY__`,[Ei]:o,disabled:!0}],L={...e,multiple:!te&&r,onSelect:P,onActive:M,onToggleOpen:a,checkedSet:O,halfCheckedSet:k,loadingKeys:w,isSelectable:N},re=(te?[{options:ne}]:ee).map((e,t)=>{let n=A.slice(0,t),r=A[t];return z.createElement(Di,Ai({key:t},L,{prefixCls:C,options:e.options,prevValuePath:n,activeValue:r}))});return z.createElement(`div`,{className:D(`${C}-menus`,{[`${C}-menu-empty`]:te,[`${C}-rtl`]:f}),ref:d},re)});function Mi(){return Mi=Object.assign?Object.assign.bind():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},Mi.apply(this,arguments)}var Ni=z.forwardRef((e,t)=>{let{lockOptions:n,...r}=Dt();return z.createElement(ji,Mi({},e,r,{lockOptions:n,ref:t}))});function Pi(){}function Fi(e){let{prefixCls:t=`rc-cascader`,style:n,className:r,options:i,checkable:a,defaultValue:o,value:s,fieldNames:c,changeOnSelect:l,onChange:d,showCheckedStrategy:f,loadData:p,expandTrigger:m,expandIcon:h=`>`,loadingIcon:g,direction:_,notFoundContent:v=`Not Found`,disabled:y,optionRender:b}=e,x=!!a,[S,C]=u(o,s),w=mi(S),T=z.useMemo(()=>li(c),[JSON.stringify(c)]),[E,O,k]=bi(T,i),[A,j,M]=Ci(x,w,O,k,vi(E,T)),N=Si(x,L(e=>{if(C(e),d){let t=mi(e),n=t.map(e=>gi(e,E,T).map(e=>e.option)),r=x?t:t[0],i=x?n:n[0];d(r,i)}}),A,j,M,O,k,f),P=L(e=>{N(e)}),F=z.useMemo(()=>({options:E,fieldNames:T,values:A,halfValues:j,changeOnSelect:l,onSelect:P,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:p,expandTrigger:m,expandIcon:h,loadingIcon:g,popupMenuColumnStyle:void 0,optionRender:b}),[E,T,A,j,l,P,a,p,m,h,g,b]),I=`${t}-panel`,ee=!E.length;return z.createElement(ri.Provider,{value:F},z.createElement(`div`,{className:D(I,{[`${I}-rtl`]:_===`rtl`,[`${I}-empty`]:ee},r),style:n},ee?v:z.createElement(ji,{prefixCls:t,searchValue:``,multiple:x,toggleOpen:Pi,open:!0,direction:_,disabled:y})))}function Ii(){return Ii=Object.assign?Object.assign.bind():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},Ii.apply(this,arguments)}var Li=z.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-cascader`,fieldNames:i,defaultValue:a,value:o,changeOnSelect:c,onChange:l,displayRender:d,checkable:f,showSearch:p,expandTrigger:m,options:h,popupPrefixCls:g,loadData:_,open:v,popupClassName:y,popupMenuColumnStyle:b,popupStyle:x,classNames:S,styles:C,placement:w,onPopupVisibleChange:T,expandIcon:E=`>`,loadingIcon:D,children:O,popupMatchSelectWidth:k=!1,showCheckedStrategy:A=oi,optionRender:j,...M}=e,N=s(n),P=!!f,[F,I]=u(a,o),ee=mi(F),te=z.useMemo(()=>li(i),[JSON.stringify(i)]),[ne,re,ie]=bi(te,h),[ae,R]=xi(p,e),{autoClearSearchValue:oe=!0,searchValue:se,onSearch:ce}=R,[le,ue]=u(``,se),de=le||``,fe=(e,t)=>{ue(e),t.source!==`blur`&&ce&&ce(e)},pe=Yee(de,ne,te,g||r,R,c||P),[me,he,ge]=Ci(P,ee,re,ie,vi(ne,te)),_e=_i(z.useMemo(()=>{let e=hi(ci(me),re,A);return[...ge,...ie(e)]},[me,re,ie,ge,A]),ne,te,P,d),ve=L(e=>{if(I(e),l){let t=mi(e),n=t.map(e=>gi(e,ne,te).map(e=>e.option)),r=P?t:t[0],i=P?n:n[0];l(r,i)}}),ye=Si(P,ve,me,he,ge,re,ie,A),be=L(e=>{(!P||oe)&&ue(``),ye(e)}),xe=(e,t)=>{if(t.type===`clear`){ve([]);return}let{valueCells:n}=t.values[0];be(n)},Se=e=>{T?.(e)},Ce=z.useMemo(()=>({classNames:S,styles:C,options:ne,fieldNames:te,values:me,halfValues:he,changeOnSelect:c,onSelect:be,checkable:f,searchOptions:pe,popupPrefixCls:g,loadData:_,expandTrigger:m,expandIcon:E,loadingIcon:D,popupMenuColumnStyle:b,optionRender:j}),[S,C,ne,te,me,he,c,be,f,pe,g,_,m,E,D,b,j]),we=!(de?pe:ne).length,Te=de&&R.matchInputWidth||we?{}:{minWidth:`auto`};return z.createElement(ri.Provider,{value:Ce},z.createElement(At,Ii({},M,{ref:t,id:N,prefixCls:r,autoClearSearchValue:oe,popupMatchSelectWidth:k,classNames:S,styles:C,popupStyle:{...Te,...x},displayValues:_e,onDisplayValuesChange:xe,mode:P?`multiple`:void 0,searchValue:de,onSearch:fe,showSearch:ae,OptionList:Ni,emptyOptions:we,open:v,popupClassName:y,placement:w,onPopupVisibleChange:Se,getRawInputElement:()=>O})))});Li.SHOW_PARENT=oi,Li.SHOW_CHILD=Xee,Li.Panel=Fi;var Ri=Li;function zi(e,t){let{getPrefixCls:n,direction:r,renderEmpty:i}=z.useContext(o),a=t||r;return[n(`select`,e),n(`cascader`,e),a,i]}function Bi(e,t){return z.useMemo(()=>t?z.createElement(`span`,{className:`${e}-checkbox-inner`}):!1,[e,t])}var Vi=z.createElement(se,{spin:!0}),Hi=z.createElement(v,null),Ui=z.createElement(Xe,null);function Wi({contextExpandIcon:e,contextLoadingIcon:t,expandIcon:n,loadingIcon:r,isRtl:i}){return z.useMemo(()=>({expandIcon:n??e??(i?Ui:Hi),loadingIcon:r??t??Vi}),[e,t,n,i,r])}var Gi=e=>{let{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
`;return[tt(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:`unset`},"&-menus":{display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:`100%`,height:`auto`,[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:`auto`,verticalAlign:`top`,listStyle:`none`,"-ms-overflow-style":`-ms-autohiding-scrollbar`,"&:not(:last-child)":{borderInlineEnd:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{display:`flex`,maxWidth:400,flexWrap:`nowrap`,alignItems:`center`,padding:e.optionPadding,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:`auto`,minWidth:0,...R},[i]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},Ki=e=>{let{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Gi(e)]},{[`${t}-dropdown-rtl`]:{direction:`rtl`}},l(e)]},qi=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Ji=de(`Cascader`,Ki,qi,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),Yi=f([`Cascader`,`Panel`],e=>{let{componentCls:t}=e;return{[`${t}-panel`]:[Gi(e),{display:`inline-flex`,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:`auto`,maxWidth:`100%`,[`${t}-menus`]:{alignItems:`stretch`},[`${t}-menu`]:{height:`auto`},"&-empty":{padding:e.paddingXXS}}]}},qi,{resetFont:!1});function Xi(e){let{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,loadingIcon:c,disabled:l}=e,{expandIcon:u,loadingIcon:d}=p(`cascader`),f=z.useContext(N),m=l??f,[h,g,_,v]=zi(t,o),y=xe(g),[b,x]=Ji(g,y);Yi(g);let{expandIcon:S,loadingIcon:C}=Wi({contextExpandIcon:u,contextLoadingIcon:d,expandIcon:s,loadingIcon:c,isRtl:_===`rtl`}),w=a===void 0?v?.(`Cascader`)||z.createElement(gt,{componentName:`Cascader`}):a,T=Bi(g,r);return z.createElement(Fi,{...e,checkable:T,prefixCls:g,className:D(n,b,i,x,y),notFoundContent:w,direction:_,expandIcon:S,loadingIcon:C,disabled:m})}var{SHOW_CHILD:Zi,SHOW_PARENT:Qi}=Ri,Qee=(e,t,n)=>{let r=e.toLowerCase().split(t).reduce((e,n,r)=>r===0?[n]:[].concat(T(e),[t,n]),[]),i=[],a=0;return r.forEach((t,r)=>{let o=a+t.length,s=e.slice(a,o);a=o,r%2==1&&(s=z.createElement(`span`,{className:`${n}-menu-item-keyword`,key:`separator-${r}`},s)),i.push(s)}),i},$ee=(e,t,n,r)=>{let i=[],a=e.toLowerCase();return t.forEach((e,t)=>{t!==0&&i.push(` / `);let o=e[r.label];(re(o)||b(o))&&(o=Qee(String(o),a,n)),i.push(o)}),i},$i=z.forwardRef((e,t)=>{let{prefixCls:n,size:i,disabled:a,className:s,rootClassName:l,multiple:u,bordered:d=!0,transitionName:f,choiceTransitionName:m=``,popupClassName:h,expandIcon:g,placement:_,showSearch:v,allowClear:y=!0,notFoundContent:b,direction:x,getPopupContainer:C,status:w,showArrow:T,builtinPlacements:E,style:O,variant:A,dropdownClassName:j,dropdownRender:M,onDropdownVisibleChange:P,onPopupVisibleChange:F,dropdownMenuColumnStyle:I,popupRender:ee,dropdownStyle:te,popupMenuColumnStyle:ne,onOpenChange:L,styles:re,classNames:ie,loadingIcon:R,clearIcon:oe,removeIcon:se,suffixIcon:le,...ue}=e,{getPrefixCls:de,getPopupContainer:fe,className:pe,style:me,classNames:he,styles:_e,expandIcon:ve,loadingIcon:be,clearIcon:Se,removeIcon:we,suffixIcon:Te,searchIcon:De}=p(`cascader`),{popupOverflow:Oe}=z.useContext(o),{status:Ae,hasFeedback:je,isFormItemInput:Me,feedbackIcon:Ne}=z.useContext(ce),Pe=Ce(Ae,w),[Fe,Ie,Le,Re]=zi(n,x),ze=Le===`rtl`,Be=de(),Ve=xe(Fe),[He,Ue]=bt(Fe,Ve),We=xe(Ie);Ji(Ie,We);let{compactSize:Ge,compactItemClassnames:Ke}=k(Fe,x),[qe,Je]=ge(`cascader`,A,d),Ye=b===void 0?Re?.(`Cascader`)||z.createElement(gt,{componentName:`Cascader`}):b,Xe=ft(ee||M),Ze=ne||I,Qe=L||F||P,$e=z.useMemo(()=>{if(!v)return v;let e={render:$ee};return ae(v)&&(e={...e,...v}),e},[v]),et=S(e=>i??Ge??e),tt=z.useContext(N),nt=a??tt,{expandIcon:rt,loadingIcon:it}=Wi({contextExpandIcon:ve,contextLoadingIcon:be,expandIcon:g,loadingIcon:R,isRtl:ze}),at=Bi(Ie,u),ot=Ot(e.suffixIcon,T),{suffixIcon:st,removeIcon:ct,clearIcon:lt}=xt({...e,clearIcon:oe,contextClearIcon:Se,removeIcon:se,contextRemoveIcon:we,loadingIcon:it,suffixIcon:le,contextSuffixIcon:Te,searchIcon:ae(v)?v.searchIcon:void 0,contextSearchIcon:De,hasFeedback:je,feedbackIcon:Ne,showSuffixIcon:ot,multiple:u,prefixCls:Fe,componentName:`Cascader`}),ut=z.useMemo(()=>_===void 0?ze?`bottomRight`:`bottomLeft`:_,[_,ze]),dt=y===!0?{clearIcon:lt}:y,pt={...e,variant:qe,size:et,status:Pe,disabled:nt},mt=ye(me),ht=ye(O),[_t,vt]=c([he,ie],[_e,mt,re,ht],{props:pt},{popup:{_default:`root`}}),yt={...vt.popup.root,...te},[Ct]=ke(`SelectLike`,yt?.zIndex),wt=D(h||j,`${Ie}-dropdown`,{[`${Ie}-dropdown-rtl`]:Le===`rtl`},l,Ve,_t.popup.root,We,He,Ue);return z.createElement(Ri,{prefixCls:Fe,className:D(!n&&Ie,{[`${Fe}-lg`]:et===`large`,[`${Fe}-sm`]:et===`small`,[`${Fe}-rtl`]:ze,[`${Fe}-${qe}`]:Je,[`${Fe}-in-form-item`]:Me},Ee(Fe,Pe,je),Ke,pe,s,l,_t.root,Ve,We,He,Ue),disabled:nt,style:vt.root,classNames:_t,styles:vt,...ue,builtinPlacements:St(E,Oe),direction:Le,placement:ut,notFoundContent:Ye,allowClear:dt,showSearch:$e,expandIcon:rt,suffixIcon:st,removeIcon:ct,loadingIcon:it,checkable:at,popupClassName:wt,popupPrefixCls:n||Ie,popupStyle:{...yt,zIndex:Ct},popupRender:Xe,popupMenuColumnStyle:Ze,onPopupVisibleChange:Qe,choiceTransitionName:r(Be,``,m),transitionName:r(Be,`slide-up`,f),getPopupContainer:C||fe,ref:t})}),ete=Ze($i,`popupAlign`,e=>i(e,[`visible`]));$i.SHOW_PARENT=Qi,$i.SHOW_CHILD=Zi,$i.Panel=Xi,$i._InternalPanelDoNotUseOrYouWillBeFired=ete;var ea=(e,t,n,r,i,a,o)=>{let{classNames:s,style:l,styles:u}=p(e),d=ye(o===null?void 0:o??l),[f,m]=c([s,t],[u,d,n],{props:a},{popup:{_default:`root`}});return z.useMemo(()=>[{...f,popup:{...f.popup,root:D(f.popup?.root,r)}},{...m,popup:{...m.popup,root:{...m.popup?.root,...i}}}],[f,m,r,i])},tte=(e,t,n)=>oe(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,nte=(e,t,n)=>oe(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,rte=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=xt({...e,prefixCls:t,componentName:`DatePicker`});return[z.useMemo(()=>n!==!1&&{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[ite,ate]=[`week`,`WeekPicker`],[ote,ste]=[`month`,`MonthPicker`],[cte,lte]=[`year`,`YearPicker`],[ute,dte]=[`quarter`,`QuarterPicker`],[ta,na]=[`time`,`TimePicker`],fte=e=>z.createElement(qe,{size:`small`,type:`primary`,...e});function ra(e){return(0,z.useMemo)(()=>({button:fte,...e}),[e])}var ia=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?z.createElement(z.Fragment,null,e===ta?z.createElement(ut,{"aria-hidden":`true`}):z.createElement(dt,{"aria-hidden":`true`}),t&&n):r,pte=e=>(0,z.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:s,style:c,classNames:l,styles:u,placement:d,size:f,disabled:h,bordered:g=!0,placeholder:_,status:v,variant:y,picker:b,dropdownClassName:x,popupClassName:C,popupStyle:w,rootClassName:T,suffixIcon:E,separator:O,allowClear:A,clearIcon:j,...M}=t,P=b===ta?`timePicker`:`datePicker`,{suffixIcon:F,clearIcon:I,allowClear:ee}=p(P),{getPrefixCls:te,direction:L,getPopupContainer:re,rangePicker:ie}=(0,z.useContext)(o),ae=z.useRef(null),R=te(`picker`,r),{compactSize:se,compactItemClassnames:ue}=k(R,L),de=te(),fe=O??ie?.separator,pe=oe(fe),[me,he]=ge(`rangePicker`,y,g),_e=xe(R),[ve,ye]=ni(R,_e),be=D(ve,ye,_e,T),Se=Ke({componentName:`RangePicker`,allowClear:A,clearIcon:j,contextAllowClear:ee,contextClearIcon:I,defaultAllowClear:!0}),we=ra(a),De=S(e=>f??se??e),Oe=z.useContext(N),Ae=h??Oe,je={...t,size:De,disabled:Ae,status:v,variant:y},[Me,Ne]=ea(P,l,u,C||x,w,je,ie?.style??null),{hasFeedback:Pe,status:Fe,feedbackIcon:Ie}=(0,z.useContext)(ce),Le=ia({picker:b,hasFeedback:Pe,feedbackIcon:Ie,suffixIcon:E===void 0?F:E});(0,z.useImperativeHandle)(n,()=>ae.current);let[Re]=le(`DatePicker`,ne),ze=m(Re,t.locale||{}),[Be]=ke(`DatePicker`,Ne?.popup?.root?.zIndex);return z.createElement(Te,{space:!0},z.createElement(kee,{separator:z.createElement(`span`,{"aria-hidden":!pe||void 0,className:`${R}-separator`},pe?fe:z.createElement(mt,null)),disabled:Ae,ref:ae,placement:d,placeholder:nte(ze,b,_),suffixIcon:Le,prevIcon:z.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:z.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:z.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:z.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${de}-slide-up`,picker:b,...M,locale:ze.lang,getPopupContainer:i||re,generateConfig:e,components:we,direction:L,prefixCls:R,rootClassName:be,className:D({[`${R}-large`]:De===`large`,[`${R}-small`]:De===`small`,[`${R}-${me}`]:he},Ee(R,Ce(Fe,v),Pe),ue,s,ie?.className),style:c,classNames:Me,styles:{...Ne,popup:{...Ne.popup,root:{...Ne.popup.root,zIndex:Be}}},allowClear:Se}))}),mte=e=>{let t=(t,n=`DatePicker`)=>{let r=n===na?`timePicker`:`datePicker`;return(0,z.forwardRef)((i,a)=>{let{prefixCls:s,getPopupContainer:c,components:l,style:u,className:d,size:f,bordered:h,placement:g,placeholder:_,disabled:v,status:y,variant:b,onCalendarChange:x,classNames:C,styles:w,dropdownClassName:T,popupClassName:E,popupStyle:O,rootClassName:A,suffixIcon:j,allowClear:M,clearIcon:P,...F}=i,{suffixIcon:I,clearIcon:ee,allowClear:te}=p(n===na?`timePicker`:`datePicker`),{getPrefixCls:L,direction:re,getPopupContainer:ie,[r]:ae}=(0,z.useContext)(o),R=L(`picker`,s),{compactSize:oe,compactItemClassnames:se}=k(R,re),ue=S(e=>f??oe??e),de=z.useContext(N),fe=v??de,pe={...i,size:ue,disabled:fe,status:y,variant:b},[me,he]=ea(r,C,w,E||T,O,pe,ae?.style),_e=z.useRef(null),[ve,ye]=ge(`datePicker`,b,h),be=xe(R),[Se,we]=ni(R,be),De=D(Se,we,be,A);(0,z.useImperativeHandle)(a,()=>_e.current);let Oe={showToday:!0},Ae=t||i.picker,je=L(),{onSelect:Me,multiple:Ne}=F,Pe=Me&&t===`time`&&!Ne,Fe=(e,t,n)=>{x?.(e,t,n),Pe&&Me(e)},[,Ie]=rte(i,R),Le=Ke({componentName:n,allowClear:M,clearIcon:P,contextAllowClear:te,contextClearIcon:ee,defaultAllowClear:!0}),Re=ra(l),{hasFeedback:ze,status:Be,feedbackIcon:Ve}=(0,z.useContext)(ce),He=ia({picker:Ae,hasFeedback:ze,feedbackIcon:Ve,suffixIcon:j===void 0?I:j}),[Ue]=le(`DatePicker`,ne),We=m(Ue,i.locale||{}),[Ge]=ke(`DatePicker`,he?.popup?.root?.zIndex);return z.createElement(Te,{space:!0},z.createElement(Pee,{ref:_e,placeholder:tte(We,Ae,_),suffixIcon:He,placement:g,prevIcon:z.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:z.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:z.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:z.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${je}-slide-up`,picker:t,onCalendarChange:Fe,...Oe,...F,locale:We.lang,getPopupContainer:c||ie,generateConfig:e,components:Re,direction:re,disabled:fe,prefixCls:R,rootClassName:De,className:D({[`${R}-large`]:ue===`large`,[`${R}-small`]:ue===`small`,[`${R}-${ve}`]:ye},Ee(R,Ce(Be,y),ze),se,ae?.className,d),style:u,classNames:me,styles:{...he,popup:{...he.popup,root:{...he.popup.root,zIndex:Ge}}},allowClear:Le,removeIcon:Ie}))})},n=t(),r=t(ite,ate),i=t(ote,ste),a=t(cte,lte),s=t(ute,dte);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(ta,na),QuarterPicker:s}},aa=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=mte(e),s=pte(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},oa=aa(Ut);oa._InternalPanelDoNotUseOrYouWillBeFired=Ze(oa,`popupAlign`,void 0,`picker`),oa._InternalRangePanelDoNotUseOrYouWillBeFired=Ze(oa.RangePicker,`popupAlign`,void 0,`picker`),oa.generatePicker=aa;function hte(e,t){let{disabled:n,prefixCls:r,character:i,characterRender:a,index:o,count:s,value:c,allowHalf:l,focused:u,onHover:d,onClick:f}=e,p=e=>{d(e,o)},m=e=>{f(e,o)},h=e=>{e.keyCode===F.ENTER&&f(e,o)},g=o+1,_=new Set([r]);c===0&&o===0&&u?_.add(`${r}-focused`):l&&c+.5>=g&&c<g?(_.add(`${r}-half`),_.add(`${r}-active`),u&&_.add(`${r}-focused`)):(g<=c?_.add(`${r}-full`):_.add(`${r}-zero`),g===c&&u&&_.add(`${r}-focused`));let v=typeof i==`function`?i(e):i,y=z.createElement(`li`,{className:D(Array.from(_)),ref:t},z.createElement(`div`,{onClick:n?null:m,onKeyDown:n?null:h,onMouseMove:n?null:p,role:`radio`,"aria-checked":c>o?`true`:`false`,"aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},z.createElement(`div`,{className:`${r}-first`},v),z.createElement(`div`,{className:`${r}-second`},v)));return a&&(y=a(y,e)),y}var gte=z.forwardRef(hte);function _te(){let e=z.useRef({});function t(t){return e.current[t]}function n(t){return n=>{e.current[t]=n}}return[t,n]}function vte(e){let t=e.pageXOffset,n=`scrollLeft`;if(typeof t!=`number`){let r=e.document;t=r.documentElement[n],typeof t!=`number`&&(t=r.body[n])}return t}function yte(e){let t,n,r=e.ownerDocument,{body:i}=r,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function bte(e){let t=yte(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=vte(r),t.left}function sa(){return sa=Object.assign?Object.assign.bind():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},sa.apply(this,arguments)}function xte(e,t){let{prefixCls:n=`rc-rate`,className:r,defaultValue:i,value:a,count:o=5,allowHalf:s=!1,allowClear:c=!0,keyboard:l=!0,character:d=`★`,characterRender:f,disabled:p,direction:m=`ltr`,tabIndex:h=0,autoFocus:g,onHoverChange:_,onChange:v,onFocus:y,onBlur:b,onKeyDown:x,onMouseLeave:S,...w}=e,[T,E]=_te(),O=z.useRef(null),k=()=>{p||O.current?.focus()};z.useImperativeHandle(t,()=>({focus:k,blur:()=>{p||O.current?.blur()}}));let[A,j]=u(i||0,a),[M,N]=u(null),P=(e,t)=>{let n=m===`rtl`,r=e+1;if(s){let i=T(e),a=bte(i),o=i.clientWidth;(n&&t-a>o/2||!n&&t-a<o/2)&&(r-=.5)}return r},I=e=>{j(e),v?.(e)},[ee,te]=z.useState(!1),ne=()=>{te(!0),y?.()},L=()=>{te(!1),b?.()},[re,ie]=z.useState(null),ae=(e,t)=>{let n=P(t,e.pageX);n!==M&&(ie(n),N(null)),_?.(n)},R=e=>{p||(ie(null),N(null),_?.(void 0)),e&&S?.(e)},oe=(e,t)=>{let n=P(t,e.pageX),r=!1;c&&(r=n===A),R(),I(r?0:n),N(r?n:null)},se=e=>{let{keyCode:t}=e,n=m===`rtl`,r=s?.5:1;l&&(t===F.RIGHT&&A<o&&!n?(I(A+r),e.preventDefault()):t===F.LEFT&&A>0&&!n||t===F.RIGHT&&A>0&&n?(I(A-r),e.preventDefault()):t===F.LEFT&&A<o&&n&&(I(A+r),e.preventDefault())),x?.(e)};z.useEffect(()=>{g&&!p&&k()},[]);let ce=Array(o).fill(0).map((e,t)=>z.createElement(gte,{ref:E(t),index:t,count:o,disabled:p,prefixCls:`${n}-star`,allowHalf:s,value:re===null?A:re,onClick:oe,onHover:ae,key:e||t,character:d,characterRender:f,focused:ee})),le=D(n,r,{[`${n}-disabled`]:p,[`${n}-rtl`]:m===`rtl`});return z.createElement(`ul`,sa({className:le,onMouseLeave:R,tabIndex:p?-1:h,onFocus:p?null:ne,onBlur:p?null:L,onKeyDown:p?null:se,ref:O},C(w,{aria:!0,data:!0,attr:!0})),ce)}var Ste=z.forwardRef(xte),Cte=e=>{let{componentCls:t}=e;return{[`${t}-star`]:{position:`relative`,display:`inline-block`,color:`inherit`,cursor:`pointer`,"&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${_(e.lineWidthFocus)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:`none`},"&-first":{position:`absolute`,top:0,insetInlineStart:0,width:`50%`,height:`100%`,overflow:`hidden`,opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:`inherit`}}}},wte=e=>({[`&-rtl${e.componentCls}`]:{direction:`rtl`}}),Tte=e=>{let{componentCls:t}=e;return{[t]:{...te(e),display:`inline-block`,margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:`none`,outline:`none`,"&-small":{fontSize:e.starSizeSM},"&-large":{fontSize:e.starSizeLG},[`&-disabled${t} ${t}-star`]:{cursor:`default`,"> div:hover":{transform:`scale(1)`}},...Cte(e),...wte(e)}}},Ete=de(`Rate`,e=>Tte(ve(e,{})),e=>({lineWidthFocus:e.lineWidthFocus===0?0:e.lineWidth,starColor:e.yellow6,starSize:e.controlHeight*.625,starSizeSM:e.controlHeightSM*.625,starSizeLG:e.controlHeightLG*.625,starHoverScale:`scale(1.1)`,starBg:e.colorFillContent})),Dte=z.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=z.createElement(vt,null),disabled:c,size:l,...u}=e,d=(e,{index:t=0})=>{if(!o)return e;let n=o[t];return ae(n)?z.createElement(De,{...n},e):z.createElement(De,{title:n},e)},{getPrefixCls:f,direction:m,className:h,style:g}=p(`rate`),_=f(`rate`,n),[v,y]=Ete(_),b={...g,...a},x=z.useContext(N),C=c??x,w=S(e=>l??e);return z.createElement(Ste,{ref:t,character:s,characterRender:d,disabled:C,...u,className:D({[`${_}-large`]:w===`large`,[`${_}-small`]:w===`small`},r,i,v,y,h),style:b,prefixCls:_,direction:m})}),{TimePicker:Ote,RangePicker:kte}=oa,Ate=z.forwardRef((e,t)=>z.createElement(kte,{...e,picker:`time`,mode:void 0,ref:t})),ca=z.forwardRef((e,t)=>{let{addon:n,renderExtraFooter:r,variant:i,bordered:a,classNames:o,styles:s,popupClassName:c,popupStyle:l,...u}=e,[d]=ge(`timePicker`,i,a),f=z.useMemo(()=>{if(r)return r;if(n)return n},[n,r]),[p,m]=ea(`timePicker`,o,s,c,l,{...e,variant:d});return z.createElement(Ote,{...u,mode:void 0,ref:t,renderExtraFooter:f,variant:d,classNames:p,styles:m})}),la=Ze(ca,`popupAlign`,void 0,`picker`);ca._InternalPanelDoNotUseOrYouWillBeFired=la,ca.RangePicker=Ate,ca._InternalPanelDoNotUseOrYouWillBeFired=la;var jte=(e=>{let t=z.useRef({valueLabels:new Map});return z.useMemo(()=>{let{valueLabels:n}=t.current,r=new Map,i=e.map(e=>{let{value:t,label:i}=e,a=i??n.get(t);return r.set(t,a),{...e,label:a}});return t.current.valueLabels=r,[i]},[e])}),Mte=(e,t,n,r)=>z.useMemo(()=>{let i=e=>e.map(({value:e})=>e),a=i(e),o=i(t),s=a.filter(e=>!r[e]),c=a,l=o;if(n){let e=Ie(a,!0,r);c=e.checkedKeys,l=e.halfCheckedKeys}return[Array.from(new Set([...s,...c])),l]},[e,t,n,r]),Nte=e=>Array.isArray(e)?e:e===void 0?[]:[e],Pte=e=>{let{label:t,value:n,children:r}=e||{};return{_title:t?[t]:[`title`,`label`],value:n||`value`,key:n||`value`,children:r||`children`}},ua=e=>!e||e.disabled||e.disableCheckbox||e.checkable===!1,Fte=(e,t)=>{let n=[],r=e=>{e.forEach(e=>{let i=e[t.children];i&&(n.push(e[t.value]),r(i))})};return r(e),n},da=e=>e==null,Ite=((e,t)=>z.useMemo(()=>je(e,{fieldNames:t,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,n)=>{let r=e.node[t.value];n.valueEntities.set(r,e)}}),[e,t])),fa=()=>null;function pa(e){return A(e).map(e=>{if(!z.isValidElement(e)||!e.type)return null;let{key:t,props:{children:n,value:r,...i}}=e,a={key:t,value:r,...i},o=pa(n);return o.length&&(a.children=o),a}).filter(e=>e)}function ma(e){if(!e)return e;let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return M(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Lte(e,t,n,r,i,a){let o=null,s=null;function c(){function e(r,i=`0`,c=!1){return r.map((r,l)=>{let u=`${i}-${l}`,d=r[a.value],f=n.includes(d),p=e(r[a.children]||[],u,f),m=z.createElement(fa,r,p.map(e=>e.node));if(t===d&&(o=m),f){let e={pos:u,node:m,children:p};return c||s.push(e),e}return null}).filter(e=>e)}s||(s=[],e(r),s.sort(({node:{props:{value:e}}},{node:{props:{value:t}}})=>n.indexOf(e)-n.indexOf(t)))}Object.defineProperty(e,"triggerNode",{get(){return M(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),o}}),Object.defineProperty(e,"allCheckedNodes",{get(){return M(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),i?s:s.map(({node:e})=>e)}})}var Rte=(e,t,n)=>{let{fieldNames:r,treeNodeFilterProp:i,filterTreeNode:a}=n,{children:o}=r;return z.useMemo(()=>{if(!t||a===!1)return e;let n=typeof a==`function`?a:(e,n)=>String(n[i]).toUpperCase().includes(t.toUpperCase()),r=(e,i=!1)=>e.reduce((e,a)=>{let s=a[o],c=i||n(t,ma(a)),l=r(s||[],c);return(c||l.length)&&e.push({...a,isLeaf:void 0,[o]:l}),e},[]);return r(e)},[e,t,o,i,a])};function ha(e){let t=z.useRef(e);return t.current=e,z.useCallback((...e)=>t.current(...e),[])}function zte(e,t){let{id:n,pId:r,rootPId:i}=t,a=new Map,o=[];return e.forEach(e=>{let t=e[n],r={...e,key:e.key||t};a.set(t,r)}),a.forEach(e=>{let t=e[r],n=a.get(t);n?(n.children=n.children||[],n.children.push(e)):(t===i||i===null)&&o.push(e)}),o}function Bte(e,t,n){return z.useMemo(()=>e?n?zte(e,{id:`id`,pId:`pId`,rootPId:null,...typeof n==`object`?n:{}}):e:pa(t),[t,n,e])}var ga=z.createContext(null),_a=z.createContext(null);function va(){return va=Object.assign?Object.assign.bind():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},va.apply(this,arguments)}var Vte={width:0,height:0,display:`flex`,overflow:`hidden`,opacity:0,border:0,padding:0,margin:0},Hte=z.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,open:o,notFoundContent:s}=Dt(),{virtual:c,listHeight:l,listItemHeight:u,listItemScrollOffset:d,treeData:f,fieldNames:p,onSelect:m,popupMatchSelectWidth:h,treeExpandAction:g,treeTitleRender:_,onPopupScroll:v,leftMaxCount:y,leafCountOnly:b,valueEntities:x,classNames:S,styles:C}=z.useContext(_a),{checkable:w,checkedKeys:T,halfCheckedKeys:E,treeExpandedKeys:D,treeDefaultExpandAll:O,treeDefaultExpandedKeys:k,onTreeExpand:A,treeIcon:j,showTreeIcon:M,switcherIcon:N,treeLine:P,treeNodeFilterProp:I,loadData:ee,treeLoadedKeys:te,treeMotion:ne,onTreeLoad:re,keyEntities:ie}=z.useContext(ga),ae=z.useRef(null),R=be(()=>f,[o,f],(e,t)=>t[0]&&e[1]!==t[1]),oe=z.useMemo(()=>w?{checked:T,halfChecked:E}:null,[w,T,E]);z.useEffect(()=>{o&&!r&&T.length&&ae.current?.scrollTo({key:T[0]})},[o]);let se=e=>{e.preventDefault()},ce=(e,t)=>{let{node:n}=t;w&&ua(n)||(m(n.key,{selected:!T.includes(n.key)}),r||a(!1))},[le,ue]=z.useState(k),[de,fe]=z.useState(null),pe=z.useMemo(()=>D?[...D]:i?de:le,[le,de,D,i]),me=e=>{ue(e),fe(e),A&&A(e)},he=String(i).toLowerCase(),ge=e=>he?String(e[I]).toLowerCase().includes(he):!1;z.useEffect(()=>{i&&fe(Fte(f,p))},[i]);let[_e,ve]=z.useState(()=>new Map);z.useEffect(()=>{y&&ve(new Map)},[y]);function ye(e){let t=e[p.value];if(!_e.has(t)){let e=x.get(t);if((e.children||[]).length!==0){let n=e.children.filter(e=>!e.node.disabled&&!e.node.disableCheckbox&&!T.includes(e.node[p.value])).length;_e.set(t,n>y)}else _e.set(t,!1)}return _e.get(t)}let xe=L(e=>{let t=e[p.value];return T.includes(t)||y===null?!1:y<=0?!0:b&&y?ye(e):!1}),Se=e=>{for(let t of e)if(!(t.disabled||t.selectable===!1)){if(i){if(ge(t))return t}else return t;if(t[p.children]){let e=Se(t[p.children]);if(e)return e}}return null},[Ce,we]=z.useState(null),Te=ie[Ce];z.useEffect(()=>{if(!o)return;let e=!r&&T.length&&!i?T[0]:(()=>{let e=Se(R);return e?e[p.value]:null})();we(e)},[o,i]),z.useImperativeHandle(t,()=>({scrollTo:ae.current?.scrollTo,onKeyDown:e=>{let{which:t}=e;switch(t){case F.UP:case F.DOWN:case F.LEFT:case F.RIGHT:ae.current?.onKeyDown(e);break;case F.ENTER:if(Te){let e=xe(Te.node),{selectable:t,value:n,disabled:r}=Te?.node||{};t!==!1&&!r&&!e&&ce(null,{node:{key:Ce},selected:!T.includes(n)})}break;case F.ESC:a(!1)}},onKeyUp:()=>{}}));let Ee=be(()=>!i,[i,D||le],([e],[t,n])=>e!==t&&!!(t||n))?ee:null;if(R.length===0)return z.createElement(`div`,{role:`listbox`,className:`${n}-empty`,onMouseDown:se},s);let De={fieldNames:p};return te&&(De.loadedKeys=te),pe&&(De.expandedKeys=pe),z.createElement(`div`,{onMouseDown:se},Te&&o&&z.createElement(`span`,{style:Vte,"aria-live":`assertive`},Te.node.value),z.createElement(Ne.Provider,{value:{nodeDisabled:xe}},z.createElement(Pe,va({classNames:S?.popup,styles:C?.popup,ref:ae,focusable:!1,prefixCls:`${n}-tree`,treeData:R,height:l,itemHeight:u,itemScrollOffset:d,virtual:c!==!1&&h!==!1,multiple:r,icon:j,showIcon:M,switcherIcon:N,showLine:P,loadData:Ee,motion:ne,activeKey:Ce,checkable:w,checkStrictly:!0,checkedKeys:oe,selectedKeys:w?[]:T,defaultExpandAll:O,titleRender:_},De,{onActiveChange:we,onSelect:ce,onCheck:ce,onExpand:me,onLoad:re,filterTreeNode:ge,expandAction:g,onScroll:v}))))}),ya=`SHOW_ALL`,ba=`SHOW_PARENT`,xa=`SHOW_CHILD`;function Sa(e,t,n,r){let i=new Set(e);return t===`SHOW_CHILD`?e.filter(e=>{let t=n[e];return!t||!t.children||!t.children.some(({node:e})=>i.has(e[r.value]))||!t.children.every(({node:e})=>ua(e)||i.has(e[r.value]))}):t===`SHOW_PARENT`?e.filter(e=>{let t=n[e],r=t?t.parent:null;return!r||ua(t.node)||ua(r.node)||!i.has(r.key)}):e}function Ute(e,t){let{searchValue:n,inputValue:r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s}=t;return z.useMemo(()=>{let t=typeof e==`object`,c={searchValue:n??r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s,...t?e:{}};return[t?!0:e,c]},[e,n,r,i,a,o,s])}function Ca(){return Ca=Object.assign?Object.assign.bind():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},Ca.apply(this,arguments)}function Wte(e){return!e||typeof e!=`object`}var wa=z.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tree-select`,value:i,defaultValue:a,onChange:o,onSelect:c,onDeselect:l,showSearch:d,searchValue:f,inputValue:p,onSearch:m,autoClearSearchValue:h,filterTreeNode:g,treeNodeFilterProp:_,showCheckedStrategy:v,treeNodeLabelProp:y,multiple:b,treeCheckable:x,treeCheckStrictly:S,labelInValue:C,maxCount:w,fieldNames:T,treeDataSimpleMode:E,treeData:D,children:O,loadData:k,treeLoadedKeys:A,onTreeLoad:j,treeDefaultExpandAll:M,treeExpandedKeys:N,treeDefaultExpandedKeys:P,onTreeExpand:F,treeExpandAction:I,virtual:ee,listHeight:te=200,listItemHeight:ne=20,listItemScrollOffset:L=0,onPopupVisibleChange:re,popupMatchSelectWidth:ie=!0,treeLine:ae,treeIcon:R,showTreeIcon:oe,switcherIcon:se,treeMotion:ce,treeTitleRender:le,onPopupScroll:ue,classNames:de,styles:fe,...pe}=e,me=s(n),he=x&&!S,ge=x||S,_e=S||C,ve=ge||b,[ye,be]=Ute(d,{searchValue:f,inputValue:p,onSearch:m,autoClearSearchValue:h,filterTreeNode:g,treeNodeFilterProp:_}),{searchValue:xe,onSearch:Se,autoClearSearchValue:Ce=!0,filterTreeNode:we,treeNodeFilterProp:Te=`value`}=be,[Ee,De]=u(a,i),Oe=z.useMemo(()=>x?v||`SHOW_CHILD`:ya,[v,x]),ke=z.useMemo(()=>Pte(T),[JSON.stringify(T)]),[Ae,je]=u(``,xe),Me=Ae||``,Ne=e=>{je(e),Se?.(e)},Pe=Bte(D,O,E),{keyEntities:Fe,valueEntities:Le}=Ite(Pe,ke),Re=z.useCallback(e=>{let t=[],n=[];return e.forEach(e=>{Le.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[Le]),ze=Rte(Pe,Me,{fieldNames:ke,treeNodeFilterProp:Te,filterTreeNode:we}),Be=z.useCallback(e=>{if(e){if(y)return e[y];let{_title:t}=ke;for(let n=0;n<t.length;n+=1){let r=e[t[n]];if(r!==void 0)return r}}},[ke,y]),Ve=z.useCallback(e=>Nte(e).map(e=>Wte(e)?{value:e}:e),[]),He=z.useCallback(e=>Ve(e).map(e=>{let{label:t}=e,{value:n,halfChecked:r}=e,i,a=Le.get(n);return a?(t=le?le(a.node):t??Be(a.node),i=a.node.disabled):t===void 0&&(t=Ve(Ee).find(e=>e.value===n).label),{label:t,value:n,halfChecked:r,disabled:i}}),[Le,Be,Ve,Ee]),Ue=z.useMemo(()=>Ve(Ee===null?[]:Ee),[Ve,Ee]),[We,Ge]=z.useMemo(()=>{let e=[],t=[];return Ue.forEach(n=>{n.halfChecked?t.push(n):e.push(n)}),[e,t]},[Ue]),Ke=z.useMemo(()=>We.map(e=>e.value),[We]),[qe,Je]=Mte(We,Ge,he,Fe),[Ye]=jte(z.useMemo(()=>{let e=Sa(qe,Oe,Fe,ke).map(e=>Fe[e]?.node?.[ke.value]??e).map(e=>{let t=We.find(t=>t.value===e);return{value:e,label:C?t?.label:le?.(t)}}),t=He(e),n=t[0];return!ve&&n&&da(n.value)&&da(n.label)?[]:t.map(e=>({...e,label:e.label??e.value}))},[ke,ve,qe,We,He,Oe,Fe])),Xe=z.useMemo(()=>ve&&(Oe===`SHOW_CHILD`||S||!x)?w:null,[w,ve,S,Oe,x]),Ze=ha((e,t,n)=>{let r=Sa(e,Oe,Fe,ke);if(Xe&&r.length>Xe)return;let i=He(e);if(De(i),Ce&&je(``),o){let i=e;he&&(i=r.map(e=>{let t=Le.get(e);return t?t.node[ke.value]:e}));let{triggerValue:a,selected:s}=t||{triggerValue:void 0,selected:void 0},c=i;if(S){let e=Ge.filter(e=>!i.includes(e.value));c=[...c,...e]}let l=He(c),u={preValue:We,triggerValue:a},d=!0;(S||n===`selection`&&!s)&&(d=!1),Lte(u,a,e,Pe,d,ke),ge?u.checked=s:u.selected=s;let f=_e?l:l.map(e=>e.value);o(ve?f:f[0],_e?null:l.map(e=>e.label),u)}}),Qe=z.useCallback((e,{selected:t,source:n})=>{let r=Fe[e]?.node,i=r?.[ke.value]??e;if(!ve)Ze([i],{selected:!0,triggerValue:i},`option`);else{let e=t?[...Ke,i]:qe.filter(e=>e!==i);if(he){let{missingRawValues:n,existRawValues:r}=Re(e),i=r.map(e=>Le.get(e).key),a;t?{checkedKeys:a}=Ie(i,!0,Fe):{checkedKeys:a}=Ie(i,{checked:!1,halfCheckedKeys:Je},Fe),e=[...n,...a.map(e=>Fe[e].node[ke.value])]}Ze(e,{selected:t,triggerValue:i},n||`option`)}t||!ve?c?.(i,ma(r)):l?.(i,ma(r))},[Re,Le,Fe,ke,ve,Ke,Ze,he,c,l,qe,Je,w]),$e=z.useCallback(e=>{re&&re(e)},[re]),et=ha((e,t)=>{let n=e.map(e=>e.value);t.type===`clear`?Ze(n,{},`selection`):t.values.length&&Qe(t.values[0].value,{selected:!1,source:`selection`})}),tt=z.useMemo(()=>({virtual:ee,popupMatchSelectWidth:ie,listHeight:te,listItemHeight:ne,listItemScrollOffset:L,treeData:ze,fieldNames:ke,onSelect:Qe,treeExpandAction:I,treeTitleRender:le,onPopupScroll:ue,leftMaxCount:w===void 0?null:w-Ye.length,leafCountOnly:Oe===`SHOW_CHILD`&&!S&&!!x,valueEntities:Le,classNames:de,styles:fe}),[ee,ie,te,ne,L,ze,ke,Qe,I,le,ue,w,Ye.length,Oe,S,x,Le,de,fe]),nt=z.useMemo(()=>({checkable:ge,loadData:k,treeLoadedKeys:A,onTreeLoad:j,checkedKeys:qe,halfCheckedKeys:Je,treeDefaultExpandAll:M,treeExpandedKeys:N,treeDefaultExpandedKeys:P,onTreeExpand:F,treeIcon:R,treeMotion:ce,showTreeIcon:oe,switcherIcon:se,treeLine:ae,treeNodeFilterProp:Te,keyEntities:Fe}),[ge,k,A,j,qe,Je,M,N,P,F,R,ce,oe,se,ae,Te,Fe]);return z.createElement(_a.Provider,{value:tt},z.createElement(ga.Provider,{value:nt},z.createElement(At,Ca({ref:t},pe,{classNames:de,styles:fe,id:me,prefixCls:r,mode:ve?`multiple`:void 0,displayValues:Ye,onDisplayValuesChange:et,autoClearSearchValue:Ce,showSearch:ye,searchValue:Me,onSearch:Ne,OptionList:Hte,emptyOptions:!Pe.length,onPopupVisibleChange:$e,popupMatchSelectWidth:ie}))))});wa.TreeNode=fa,wa.SHOW_ALL=ya,wa.SHOW_PARENT=ba,wa.SHOW_CHILD=xa;var Gte=wa,Kte=e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${_(e.paddingXS)} ${_(e.calc(e.paddingXS).div(2).equal())}`},Me(n,ve(e,{colorBgContainer:r}),!1),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:`stretch`,[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:`auto`}}}}},tt(`${n}-checkbox`,e),{"&-rtl":{direction:`rtl`,[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:`rotate(90deg)`}}}}]}]};function qte(e,t,n){return de(`TreeSelect`,e=>Kte(ve(e,{treePrefixCls:t})),Ae,{resetFont:!1})(e,n)}var Ta=z.forwardRef((e,t)=>{let{prefixCls:n,size:a,disabled:s,bordered:l=!0,style:u,className:d,rootClassName:f,treeCheckable:m,multiple:h,listHeight:g=256,listItemHeight:_,placement:v,notFoundContent:y,switcherIcon:b,treeLine:x,getPopupContainer:C,popupClassName:w,dropdownClassName:T,treeIcon:E=!1,transitionName:O,choiceTransitionName:A=``,status:j,treeExpandAction:M,builtinPlacements:P,dropdownMatchSelectWidth:F,popupMatchSelectWidth:I,allowClear:ee,variant:te,dropdownStyle:ne,dropdownRender:L,popupRender:re,onDropdownVisibleChange:ie,onOpenChange:ae,tagRender:R,maxCount:oe,showCheckedStrategy:se,treeCheckStrictly:le,styles:ue,classNames:de,...pe}=e,{getPrefixCls:me,getPopupContainer:he,direction:_e,styles:ve,classNames:ye,switcherIcon:be}=p(`treeSelect`),{renderEmpty:Se,virtual:we,popupMatchSelectWidth:Te,popupOverflow:De}=z.useContext(o),[,Oe]=fe(),Ae=_??Oe?.controlHeightSM+Oe?.paddingXXS,je=me(),Me=me(`select`,n),Ne=me(`select-tree`,n),Pe=me(`tree-select`,n),{compactSize:Ie,compactItemClassnames:Le}=k(Me,_e),Re=xe(Me),ze=xe(Pe),[Be,Ve]=bt(Me,Re);qte(Pe,Ne,ze);let[He,Ue]=ge(`treeSelect`,te,l),We=S(e=>a??Ie??e),Ge=z.useContext(N),Ke=s??Ge,{status:qe,hasFeedback:Je,isFormItemInput:Ye,feedbackIcon:Xe}=z.useContext(ce),Ze=Ce(qe,j),Qe={...e,size:We,disabled:Ke,status:Ze,variant:He},[$e,et]=c([ye,de],[ve,ue],{props:Qe},{popup:{_default:`root`}}),tt=D(w||T,`${Pe}-dropdown`,{[`${Pe}-dropdown-rtl`]:_e===`rtl`},f,$e.root,$e.popup?.root,Ve,Re,ze,Be),nt=ft(re||L),rt=ae||ie,it=!!(m||h),at=z.useMemo(()=>{if(!oe||(se!==`SHOW_ALL`||le)&&se!==`SHOW_PARENT`)return oe},[oe,se,le]),ot=Ot(e.suffixIcon,e.showArrow),st=I??F??Te,{suffixIcon:ct,removeIcon:lt,clearIcon:ut}=xt({...pe,multiple:it,showSuffixIcon:ot,hasFeedback:Je,feedbackIcon:Xe,prefixCls:Me,componentName:`TreeSelect`}),dt=ee===!0?{clearIcon:ut}:ee,pt;pt=y===void 0?Se?.(`TreeSelect`)||z.createElement(gt,{componentName:`TreeSelect`}):y;let mt=i(pe,[`suffixIcon`,`removeIcon`,`clearIcon`]),ht=z.useMemo(()=>v===void 0?_e===`rtl`?`bottomRight`:`bottomLeft`:v,[v,_e]),_t=D(!n&&Pe,{[`${Me}-lg`]:We===`large`,[`${Me}-sm`]:We===`small`,[`${Me}-rtl`]:_e===`rtl`,[`${Me}-${He}`]:Ue,[`${Me}-in-form-item`]:Ye},Ee(Me,Ze,Je),Le,d,f,$e?.root,Ve,Re,ze,Be),vt=b??be,yt=e=>z.createElement(Fe,{prefixCls:Ne,switcherIcon:vt,treeNodeProps:e,showLine:x}),[Ct]=ke(`SelectLike`,et.popup?.root?.zIndex);return z.createElement(Gte,{classNames:$e,styles:et,virtual:we,disabled:Ke,...mt,popupMatchSelectWidth:st,builtinPlacements:St(P,De),ref:t,prefixCls:Me,className:_t,style:{...et?.root,...u},listHeight:g,listItemHeight:Ae,treeCheckable:m&&z.createElement(`span`,{className:`${Me}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:ct,multiple:it,placement:ht,removeIcon:lt,allowClear:dt,switcherIcon:yt,showTreeIcon:E,notFoundContent:pt,getPopupContainer:C||he,treeMotion:null,popupClassName:tt,popupStyle:{...et.root,...et.popup?.root,zIndex:Ct},popupRender:nt,onPopupVisibleChange:rt,choiceTransitionName:r(je,``,A),transitionName:r(je,`slide-up`,O),treeExpandAction:M,tagRender:it?R:void 0,maxCount:at,showCheckedStrategy:se,treeCheckStrictly:le})}),Jte=Ze(Ta,`popupAlign`,e=>i(e,[`visible`]));Ta.TreeNode=fa,Ta.SHOW_ALL=ya,Ta.SHOW_PARENT=ba,Ta.SHOW_CHILD=xa,Ta._InternalPanelDoNotUseOrYouWillBeFired=Jte;var B=me(),Ea=({value:e,onChange:t,placeholder:n,disabled:r=!1,readonly:i=!1})=>{let{t:a}=ct(),[o,s]=(0,z.useState)(!1),[c,l]=(0,z.useState)(e);z.useEffect(()=>{l(e)},[e]);let u=(0,z.useCallback)(e=>{l(e),t?.(e),s(!1)},[t]),d=(0,z.useCallback)(()=>{l(void 0),t?.(null)},[t]),f=(0,z.useCallback)(({type:e})=>(0,B.jsx)(`div`,{className:`flex flex-wrap max-h-[400px] overflow-auto gap-2`,children:Ct[e].map(e=>(0,B.jsx)(`div`,{className:`cursor-pointer p-2 border border-gray-300 rounded hover:border-blue-500 hover:bg-blue-50 transition-all flex items-center justify-center`,onClick:()=>u(e),title:e,children:(0,B.jsx)(Tt,{name:e,style:{fontSize:20}})},e))}),[u]),p=(0,z.useMemo)(()=>[{key:`use`,label:a(`xin.form.iconSelector.tabs.use`),children:(0,B.jsx)(f,{type:`useIcons`})},{key:`suggestion`,label:a(`xin.form.iconSelector.tabs.suggestion`),children:(0,B.jsx)(f,{type:`suggestionIcons`})},{key:`direction`,label:a(`xin.form.iconSelector.tabs.direction`),children:(0,B.jsx)(f,{type:`directionIcons`})},{key:`editor`,label:a(`xin.form.iconSelector.tabs.editor`),children:(0,B.jsx)(f,{type:`editorIcons`})},{key:`data`,label:a(`xin.form.iconSelector.tabs.data`),children:(0,B.jsx)(f,{type:`dataIcons`})},{key:`logo`,label:a(`xin.form.iconSelector.tabs.logo`),children:(0,B.jsx)(f,{type:`logoIcons`})},{key:`other`,label:a(`xin.form.iconSelector.tabs.other`),children:(0,B.jsx)(f,{type:`otherIcons`})}],[f,a]),m=(0,z.useMemo)(()=>c?[{label:(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(Tt,{name:c}),(0,B.jsx)(`span`,{children:c})]}),value:c}]:[],[c]);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(pt,{value:c,placeholder:n||a(`xin.form.iconSelector.placeholder`),disabled:r,open:!1,onClick:()=>!r&&!i&&s(!0),options:m,style:{width:`100%`},allowClear:!0,onClear:d,suffixIcon:c?(0,B.jsx)(Tt,{name:c}):void 0}),(0,B.jsx)(jt,{title:a(`xin.form.iconSelector.modal.title`),open:o,onCancel:()=>s(!1),footer:null,width:800,children:(0,B.jsx)(et,{defaultActiveKey:`use`,items:p})})]})},Da=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Yte(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Oa(e){var t={exports:{}};return e(t,t.exports),t.exports}var ka,Aa,ja=function(e){return e&&e.Math==Math&&e},Ma=ja(typeof globalThis==`object`&&globalThis)||ja(typeof window==`object`&&window)||ja(typeof self==`object`&&self)||ja(typeof Da==`object`&&Da)||function(){return this}()||Function(`return this`)(),Na=Function.prototype,Pa=Na.apply,Xte=Na.bind,Fa=Na.call,Ia=typeof Reflect==`object`&&Reflect.apply||(Xte?Fa.bind(Pa):function(){return Fa.apply(Pa,arguments)}),La=Function.prototype,Ra=La.bind,za=La.call,Zte=Ra&&Ra.bind(za),Ba=Ra?function(e){return e&&Zte(za,e)}:function(e){return e&&function(){return za.apply(e,arguments)}},Va=function(e){return typeof e==`function`},Ha=function(e){try{return!!e()}catch{return!0}},Ua=!Ha((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Wa=Function.prototype.call,Ga=Wa.bind?Wa.bind(Wa):function(){return Wa.apply(Wa,arguments)},Ka={}.propertyIsEnumerable,qa=Object.getOwnPropertyDescriptor,Ja={f:qa&&!Ka.call({1:2},1)?function(e){var t=qa(this,e);return!!t&&t.enumerable}:Ka},Ya=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qte=Ba({}.toString),Xa=Ba(``.slice),Za=function(e){return Xa(Qte(e),8,-1)},Qa=Ma.Object,$a=Ba(``.split),eo=Ha((function(){return!Qa(`z`).propertyIsEnumerable(0)}))?function(e){return Za(e)==`String`?$a(e,``):Qa(e)}:Qa,to=Ma.TypeError,no=function(e){if(e==null)throw to(`Can't call method on `+e);return e},ro=function(e){return eo(no(e))},io=function(e){return typeof e==`object`?e!==null:Va(e)},ao={},oo=function(e){return Va(e)?e:void 0},so=function(e,t){return arguments.length<2?oo(ao[e])||oo(Ma[e]):ao[e]&&ao[e][t]||Ma[e]&&Ma[e][t]},co=Ba({}.isPrototypeOf),lo=so(`navigator`,`userAgent`)||``,uo=Ma.process,fo=Ma.Deno,po=uo&&uo.versions||fo&&fo.version,mo=po&&po.v8;mo&&(Aa=(ka=mo.split(`.`))[0]>0&&ka[0]<4?1:+(ka[0]+ka[1])),!Aa&&lo&&(!(ka=lo.match(/Edge\/(\d+)/))||ka[1]>=74)&&(ka=lo.match(/Chrome\/(\d+)/))&&(Aa=+ka[1]);var ho,go=Aa,_o=!!Object.getOwnPropertySymbols&&!Ha((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&go&&go<41})),vo=_o&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,yo=Ma.Object,bo=vo?function(e){return typeof e==`symbol`}:function(e){var t=so(`Symbol`);return Va(t)&&co(t.prototype,yo(e))},xo=Ma.String,So=function(e){try{return xo(e)}catch{return`Object`}},Co=Ma.TypeError,wo=function(e){if(Va(e))return e;throw Co(So(e)+` is not a function`)},To=function(e,t){var n=e[t];return n==null?void 0:wo(n)},Eo=Ma.TypeError,Do=Object.defineProperty,Oo=Ma[`__core-js_shared__`]||function(e,t){try{Do(Ma,e,{value:t,configurable:!0,writable:!0})}catch{Ma[e]=t}return t}(`__core-js_shared__`,{}),ko=Oa((function(e){(e.exports=function(e,t){return Oo[e]||(Oo[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ao=Ma.Object,jo=function(e){return Ao(no(e))},Mo=Ba({}.hasOwnProperty),No=Object.hasOwn||function(e,t){return Mo(jo(e),t)},Po=0,Fo=Math.random(),Io=Ba(1 .toString),Lo=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Io(++Po+Fo,36)},Ro=ko(`wks`),zo=Ma.Symbol,Bo=zo&&zo.for,Vo=vo?zo:zo&&zo.withoutSetter||Lo,Ho=function(e){if(!No(Ro,e)||!_o&&typeof Ro[e]!=`string`){var t=`Symbol.`+e;Ro[e]=_o&&No(zo,e)?zo[e]:vo&&Bo?Bo(t):Vo(t)}return Ro[e]},Uo=Ma.TypeError,Wo=Ho(`toPrimitive`),Go=function(e,t){if(!io(e)||bo(e))return e;var n,r=To(e,Wo);if(r){if(t===void 0&&(t=`default`),n=Ga(r,e,t),!io(n)||bo(n))return n;throw Uo(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Va(n=e.toString)&&!io(r=Ga(n,e))||Va(n=e.valueOf)&&!io(r=Ga(n,e))||t!==`string`&&Va(n=e.toString)&&!io(r=Ga(n,e)))return r;throw Eo(`Can't convert object to primitive value`)}(e,t)},Ko=function(e){var t=Go(e,`string`);return bo(t)?t:t+``},qo=Ma.document,Jo=io(qo)&&io(qo.createElement),Yo=function(e){return Jo?qo.createElement(e):{}},Xo=!Ua&&!Ha((function(){return Object.defineProperty(Yo(`div`),"a",{get:function(){return 7}}).a!=7})),Zo=Object.getOwnPropertyDescriptor,Qo={f:Ua?Zo:function(e,t){if(e=ro(e),t=Ko(t),Xo)try{return Zo(e,t)}catch{}if(No(e,t))return Ya(!Ga(Ja.f,e,t),e[t])}},$o=/#|\.prototype\./,es=function(e,t){var n=ns[ts(e)];return n==is||n!=rs&&(Va(t)?Ha(t):!!t)},ts=es.normalize=function(e){return String(e).replace($o,`.`).toLowerCase()},ns=es.data={},rs=es.NATIVE=`N`,is=es.POLYFILL=`P`,as=es,os=Ba(Ba.bind),ss=function(e,t){return wo(e),t===void 0?e:os?os(e,t):function(){return e.apply(t,arguments)}},cs=Ma.String,ls=Ma.TypeError,us=function(e){if(io(e))return e;throw ls(cs(e)+` is not an object`)},ds=Ma.TypeError,fs=Object.defineProperty,ps={f:Ua?fs:function(e,t,n){if(us(e),t=Ko(t),us(n),Xo)try{return fs(e,t,n)}catch{}if(`get`in n||`set`in n)throw ds(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},ms=Ua?function(e,t,n){return ps.f(e,t,Ya(1,n))}:function(e,t,n){return e[t]=n,e},$te=Qo.f,ene=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 Ia(e,this,arguments)};return t.prototype=e.prototype,t},hs=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?Ma:f?Ma[u]:(Ma[u]||{}).prototype,h=d?ao:ao[u]||ms(ao,u,{})[u],g=h.prototype;for(i in t)n=!as(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&No(m,i),o=h[i],n&&(s=e.noTargetGet?(l=$te(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?ss(a,Ma):e.wrap&&n?ene(a):p&&Va(a)?Ba(a):a,(e.sham||a&&a.sham||o&&o.sham)&&ms(c,`sham`,!0),ms(h,i,c),p&&(No(ao,r=u+`Prototype`)||ms(ao,r,{}),ms(ao[r],i,a),e.real&&g&&!g[i]&&ms(g,i,a)))},gs=ko(`keys`),_s=function(e){return gs[e]||(gs[e]=Lo(e))},tne=!Ha((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vs=_s(`IE_PROTO`),ys=Ma.Object,nne=ys.prototype,bs=tne?ys.getPrototypeOf:function(e){var t=jo(e);if(No(t,vs))return t[vs];var n=t.constructor;return Va(n)&&t instanceof n?n.prototype:t instanceof ys?nne:null},rne=Ma.String,ine=Ma.TypeError,xs=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Ba(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return us(n),function(e){if(typeof e==`object`||Va(e))return e;throw ine(`Can't set `+rne(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ane=Math.ceil,one=Math.floor,Ss=function(e){var t=+e;return t!=t||t===0?0:(t>0?one:ane)(t)},sne=Math.max,cne=Math.min,Cs=function(e,t){var n=Ss(e);return n<0?sne(n+t,0):cne(n,t)},lne=Math.min,ws=function(e){return(t=e.length)>0?lne(Ss(t),9007199254740991):0;var t},Ts=function(e){return function(t,n,r){var i,a=ro(t),o=ws(a),s=Cs(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}},une={includes:Ts(!0),indexOf:Ts(!1)},Es={},dne=une.indexOf,Ds=Ba([].push),Os=function(e,t){var n,r=ro(e),i=0,a=[];for(n in r)!No(Es,n)&&No(r,n)&&Ds(a,n);for(;t.length>i;)No(r,n=t[i++])&&(~dne(a,n)||Ds(a,n));return a},ks=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],fne=ks.concat(`length`,`prototype`),As={f:Object.getOwnPropertyNames||function(e){return Os(e,fne)}},js={f:Object.getOwnPropertySymbols},pne=Ba([].concat),mne=so(`Reflect`,`ownKeys`)||function(e){var t=As.f(us(e)),n=js.f;return n?pne(t,n(e)):t},Ms=Object.keys||function(e){return Os(e,ks)},hne=Ua?Object.defineProperties:function(e,t){us(e);for(var n,r=ro(t),i=Ms(t),a=i.length,o=0;a>o;)ps.f(e,n=i[o++],r[n]);return e},gne=so(`document`,`documentElement`),Ns=_s(`IE_PROTO`),Ps=function(){},Fs=function(e){return`<script>`+e+`<\/script>`},Is=function(e){e.write(Fs(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Ls=function(){try{ho=new ActiveXObject(`htmlfile`)}catch{}var e,t;Ls=typeof document<`u`?document.domain&&ho?Is(ho):((t=Yo(`iframe`)).style.display=`none`,gne.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Fs(`document.F=Object`)),e.close(),e.F):Is(ho);for(var n=ks.length;n--;)delete Ls.prototype[ks[n]];return Ls()};Es[Ns]=!0;var Rs=Object.create||function(e,t){var n;return e===null?n=Ls():(Ps.prototype=us(e),n=new Ps,Ps.prototype=null,n[Ns]=e),t===void 0?n:hne(n,t)},zs=function(e,t,n){var r=Ko(t);r in e?ps.f(e,r,Ya(0,n)):e[r]=n},_ne=Ma.Array,vne=Math.max,Bs=function(e,t,n){for(var r=ws(e),i=Cs(t,r),a=Cs(n===void 0?r:n,r),o=_ne(vne(a-i,0)),s=0;i<a;i++,s++)zs(o,s,e[i]);return o.length=s,o},yne=Ba(``.replace),bne=Ba(``.split),xne=Ba([].join),Vs=String(Error(`zxcasd`).stack),Hs=/\n\s*at [^:]*:[^\n]*/,Sne=Hs.test(Vs),Cne=/@[^\n]*\n/.test(Vs)&&!/zxcasd/.test(Vs),wne=function(e,t){if(typeof e!=`string`)return e;if(Sne)for(;t--;)e=yne(e,Hs,``);else if(Cne)return xne(Bs(bne(e,`
`),t),`
`);return e},Tne=function(e,t){io(t)&&`cause`in t&&ms(e,`cause`,t.cause)},Us={},Ene=Ho(`iterator`),Dne=Array.prototype,Ws={};Ws[Ho(`toStringTag`)]=`z`;var Gs=String(Ws)===`[object z]`,One=Ho(`toStringTag`),kne=Ma.Object,Ane=Za(function(){return arguments}())==`Arguments`,Ks=Gs?Za: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=kne(e),One))==`string`?n:Ane?Za(t):(r=Za(t))==`Object`&&Va(t.callee)?`Arguments`:r},jne=Ho(`iterator`),qs=function(e){if(e!=null)return To(e,jne)||To(e,`@@iterator`)||Us[Ks(e)]},Mne=Ma.TypeError,Js=function(e,t,n){var r,i;us(e);try{if(!(r=To(e,`return`))){if(t===`throw`)throw n;return n}r=Ga(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return us(r),n},Nne=Ma.TypeError,Ys=function(e,t){this.stopped=e,this.result=t},Xs=Ys.prototype,Pne=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=ss(t,u),h=function(e){return r&&Js(r,`normal`,e),new Ys(!0,e)},g=function(e){return d?(us(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=qs(e)))throw Nne(So(e)+` is not iterable`);if(function(e){return e!==void 0&&(Us.Array===e||Dne[Ene]===e)}(i)){for(a=0,o=ws(e);o>a;a++)if((s=g(e[a]))&&co(Xs,s))return s;return new Ys(!1)}r=function(e,t){var n=arguments.length<2?qs(e):t;if(wo(n))return us(Ga(n,e));throw Mne(So(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Ga(c,r)).done;){try{s=g(l.value)}catch(e){Js(r,`throw`,e)}if(typeof s==`object`&&s&&co(Xs,s))return s}return new Ys(!1)},Fne=Ma.String,Zs=function(e){if(Ks(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Fne(e)},Ine=function(e,t){return e===void 0?arguments.length<2?``:t:Zs(e)},Lne=!Ha((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,"stack",Ya(1,7)),e.stack!==7)})),Rne=Ho(`toStringTag`),Qs=Ma.Error,zne=[].push,$s=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=co(ec,this);xs?n=xs(new Qs(void 0),i?bs(this):ec):(n=i?this:Rs(ec),ms(n,Rne,`Error`)),ms(n,`message`,Ine(t,``)),Lne&&ms(n,`stack`,wne(n.stack,1)),Tne(n,r);var a=[];return Pne(e,zne,{that:a}),ms(n,`errors`,a),n};xs?xs($s,Qs):function(e,t){for(var n=mne(t),r=ps.f,i=Qo.f,a=0;a<n.length;a++){var o=n[a];No(e,o)||r(e,o,i(t,o))}}($s,Qs);var ec=$s.prototype=Rs(Qs.prototype,{constructor:Ya(1,$s),message:Ya(1,``),name:Ya(1,`AggregateError`)});hs({global:!0},{AggregateError:$s});var Bne=Ba(Function.toString);Va(Oo.inspectSource)||(Oo.inspectSource=function(e){return Bne(e)});var tc,nc,rc,ic=Oo.inspectSource,ac=Ma.WeakMap,Vne=Va(ac)&&/native code/.test(ic(ac)),oc=Ma.TypeError,Hne=Ma.WeakMap;if(Vne||Oo.state){var sc=Oo.state||=new Hne,Une=Ba(sc.get),cc=Ba(sc.has),Wne=Ba(sc.set);tc=function(e,t){if(cc(sc,e))throw new oc(`Object already initialized`);return t.facade=e,Wne(sc,e,t),t},nc=function(e){return Une(sc,e)||{}},rc=function(e){return cc(sc,e)}}else{var lc=_s(`state`);Es[lc]=!0,tc=function(e,t){if(No(e,lc))throw new oc(`Object already initialized`);return t.facade=e,ms(e,lc,t),t},nc=function(e){return No(e,lc)?e[lc]:{}},rc=function(e){return No(e,lc)}}var uc,dc,fc,pc={set:tc,get:nc,has:rc,enforce:function(e){return rc(e)?nc(e):tc(e,{})},getterFor:function(e){return function(t){var n;if(!io(t)||(n=nc(t)).type!==e)throw oc(`Incompatible receiver, `+e+` required`);return n}}},mc=Function.prototype,Gne=Ua&&Object.getOwnPropertyDescriptor,hc=No(mc,`name`),Kne={EXISTS:hc,PROPER:hc&&function(){}.name===`something`,CONFIGURABLE:hc&&(!Ua||Ua&&Gne(mc,`name`).configurable)},gc=function(e,t,n,r){r&&r.enumerable?e[t]=n:ms(e,t,n)},_c=Ho(`iterator`),vc=!1;[].keys&&(`next`in(fc=[].keys())?(dc=bs(bs(fc)))!==Object.prototype&&(uc=dc):vc=!0),uc=uc==null||Ha((function(){var e={};return uc[_c].call(e)!==e}))?{}:Rs(uc),Va(uc[_c])||gc(uc,_c,(function(){return this}));var yc={IteratorPrototype:uc,BUGGY_SAFARI_ITERATORS:vc},qne=Gs?{}.toString:function(){return`[object `+Ks(this)+`]`},Jne=ps.f,bc=Ho(`toStringTag`),xc=function(e,t,n,r){if(e){var i=n?e:e.prototype;No(i,bc)||Jne(i,bc,{configurable:!0,value:t}),r&&!Gs&&ms(i,`toString`,qne)}},Yne=yc.IteratorPrototype,Xne=function(){return this},Zne=Kne.PROPER,Sc=yc.BUGGY_SAFARI_ITERATORS,Cc=Ho(`iterator`),Qne=function(){return this},wc=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Rs(Yne,{next:Ya(+!r,n)}),xc(e,i,!1,!0),Us[i]=Xne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Sc&&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[Cc]||p[`@@iterator`]||i&&p[i],h=!Sc&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=bs(g.call(new e)))!==Object.prototype&&s.next&&(xc(s,d,!0,!0),Us[d]=Qne),Zne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return Ga(m,this)}),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Sc||f||!(l in p))&&gc(p,l,c[l]);else hs({target:t,proto:!0,forced:Sc||f},c)}return o&&p[Cc]!==h&&gc(p,Cc,h,{name:i}),Us[t]=h,c},$ne=pc.set,ere=pc.getterFor(`Array Iterator`);wc(Array,`Array`,(function(e,t){$ne(this,{type:`Array Iterator`,target:ro(e),index:0,kind:t})}),(function(){var e=ere(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`),Us.Arguments=Us.Array;var tre=Ba(``.charAt),Tc=Ba(``.charCodeAt),nre=Ba(``.slice),Ec=function(e){return function(t,n){var r,i,a=Zs(no(t)),o=Ss(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Tc(a,o))<55296||r>56319||o+1===s||(i=Tc(a,o+1))<56320||i>57343?e?tre(a,o):r:e?nre(a,o,o+2):i-56320+(r-55296<<10)+65536}},rre={codeAt:Ec(!1),charAt:Ec(!0)}.charAt,ire=pc.set,are=pc.getterFor(`String Iterator`);wc(String,`String`,(function(e){ire(this,{type:`String Iterator`,string:Zs(e),index:0})}),(function(){var e,t=are(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=rre(n,r),t.index+=e.length,{value:e,done:!1})}));var ore=ao.AggregateError,Dc=Ho(`toStringTag`);for(var Oc 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 kc=Ma[Oc],Ac=kc&&kc.prototype;Ac&&Ks(Ac)!==Dc&&ms(Ac,Dc,Oc),Us[Oc]=Us.Array}var jc,Mc,sre=ore,Nc=function(e){return e&&e.Math==Math&&e},Pc=Nc(typeof globalThis==`object`&&globalThis)||Nc(typeof window==`object`&&window)||Nc(typeof self==`object`&&self)||Nc(typeof Da==`object`&&Da)||function(){return this}()||Function(`return this`)(),Fc=function(e){try{return!!e()}catch{return!0}},Ic=!Fc((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Lc=Function.prototype.call,Rc=Lc.bind?Lc.bind(Lc):function(){return Lc.apply(Lc,arguments)},zc={}.propertyIsEnumerable,Bc=Object.getOwnPropertyDescriptor,cre={f:Bc&&!zc.call({1:2},1)?function(e){var t=Bc(this,e);return!!t&&t.enumerable}:zc},Vc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Hc=Function.prototype,Uc=Hc.bind,Wc=Hc.call,lre=Uc&&Uc.bind(Wc),Gc=Uc?function(e){return e&&lre(Wc,e)}:function(e){return e&&function(){return Wc.apply(e,arguments)}},ure=Gc({}.toString),dre=Gc(``.slice),Kc=function(e){return dre(ure(e),8,-1)},qc=Pc.Object,fre=Gc(``.split),Jc=Fc((function(){return!qc(`z`).propertyIsEnumerable(0)}))?function(e){return Kc(e)==`String`?fre(e,``):qc(e)}:qc,pre=Pc.TypeError,Yc=function(e){if(e==null)throw pre(`Can't call method on `+e);return e},Xc=function(e){return Jc(Yc(e))},Zc=function(e){return typeof e==`function`},Qc=function(e){return typeof e==`object`?e!==null:Zc(e)},mre=function(e){return Zc(e)?e:void 0},$c=function(e,t){return arguments.length<2?mre(Pc[e]):Pc[e]&&Pc[e][t]},el=Gc({}.isPrototypeOf),tl=$c(`navigator`,`userAgent`)||``,nl=Pc.process,rl=Pc.Deno,il=nl&&nl.versions||rl&&rl.version,al=il&&il.v8;al&&(Mc=(jc=al.split(`.`))[0]>0&&jc[0]<4?1:+(jc[0]+jc[1])),!Mc&&tl&&(!(jc=tl.match(/Edge\/(\d+)/))||jc[1]>=74)&&(jc=tl.match(/Chrome\/(\d+)/))&&(Mc=+jc[1]);var ol=Mc,sl=!!Object.getOwnPropertySymbols&&!Fc((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ol&&ol<41})),cl=sl&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,hre=Pc.Object,ll=cl?function(e){return typeof e==`symbol`}:function(e){var t=$c(`Symbol`);return Zc(t)&&el(t.prototype,hre(e))},gre=Pc.String,ul=function(e){try{return gre(e)}catch{return`Object`}},_re=Pc.TypeError,dl=function(e){if(Zc(e))return e;throw _re(ul(e)+` is not a function`)},fl=function(e,t){var n=e[t];return n==null?void 0:dl(n)},pl=Pc.TypeError,ml=Object.defineProperty,hl=function(e,t){try{ml(Pc,e,{value:t,configurable:!0,writable:!0})}catch{Pc[e]=t}return t},gl=Pc[`__core-js_shared__`]||hl(`__core-js_shared__`,{}),_l=Oa((function(e){(e.exports=function(e,t){return gl[e]||(gl[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),vl=Pc.Object,yl=function(e){return vl(Yc(e))},bl=Gc({}.hasOwnProperty),xl=Object.hasOwn||function(e,t){return bl(yl(e),t)},Sl=0,Cl=Math.random(),wl=Gc(1 .toString),Tl=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+wl(++Sl+Cl,36)},El=_l(`wks`),Dl=Pc.Symbol,Ol=Dl&&Dl.for,kl=cl?Dl:Dl&&Dl.withoutSetter||Tl,Al=function(e){if(!xl(El,e)||!sl&&typeof El[e]!=`string`){var t=`Symbol.`+e;El[e]=sl&&xl(Dl,e)?Dl[e]:cl&&Ol?Ol(t):kl(t)}return El[e]},jl=Pc.TypeError,Ml=Al(`toPrimitive`),Nl=function(e,t){if(!Qc(e)||ll(e))return e;var n,r=fl(e,Ml);if(r){if(t===void 0&&(t=`default`),n=Rc(r,e,t),!Qc(n)||ll(n))return n;throw jl(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Zc(n=e.toString)&&!Qc(r=Rc(n,e))||Zc(n=e.valueOf)&&!Qc(r=Rc(n,e))||t!==`string`&&Zc(n=e.toString)&&!Qc(r=Rc(n,e)))return r;throw pl(`Can't convert object to primitive value`)}(e,t)},Pl=function(e){var t=Nl(e,`string`);return ll(t)?t:t+``},Fl=Pc.document,Il=Qc(Fl)&&Qc(Fl.createElement),Ll=function(e){return Il?Fl.createElement(e):{}},Rl=!Ic&&!Fc((function(){return Object.defineProperty(Ll(`div`),"a",{get:function(){return 7}}).a!=7})),zl=Object.getOwnPropertyDescriptor,Bl={f:Ic?zl:function(e,t){if(e=Xc(e),t=Pl(t),Rl)try{return zl(e,t)}catch{}if(xl(e,t))return Vc(!Rc(cre.f,e,t),e[t])}},Vl=Pc.String,Hl=Pc.TypeError,Ul=function(e){if(Qc(e))return e;throw Hl(Vl(e)+` is not an object`)},Wl=Pc.TypeError,Gl=Object.defineProperty,Kl={f:Ic?Gl:function(e,t,n){if(Ul(e),t=Pl(t),Ul(n),Rl)try{return Gl(e,t,n)}catch{}if(`get`in n||`set`in n)throw Wl(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},ql=Ic?function(e,t,n){return Kl.f(e,t,Vc(1,n))}:function(e,t,n){return e[t]=n,e},Jl=Gc(Function.toString);Zc(gl.inspectSource)||(gl.inspectSource=function(e){return Jl(e)});var Yl,Xl,Zl,Ql=gl.inspectSource,$l=Pc.WeakMap,eu=Zc($l)&&/native code/.test(Ql($l)),tu=_l(`keys`),nu=function(e){return tu[e]||(tu[e]=Tl(e))},ru={},iu=Pc.TypeError,au=Pc.WeakMap;if(eu||gl.state){var ou=gl.state||=new au,su=Gc(ou.get),cu=Gc(ou.has),lu=Gc(ou.set);Yl=function(e,t){if(cu(ou,e))throw new iu(`Object already initialized`);return t.facade=e,lu(ou,e,t),t},Xl=function(e){return su(ou,e)||{}},Zl=function(e){return cu(ou,e)}}else{var uu=nu(`state`);ru[uu]=!0,Yl=function(e,t){if(xl(e,uu))throw new iu(`Object already initialized`);return t.facade=e,ql(e,uu,t),t},Xl=function(e){return xl(e,uu)?e[uu]:{}},Zl=function(e){return xl(e,uu)}}var du={set:Yl,get:Xl,has:Zl,enforce:function(e){return Zl(e)?Xl(e):Yl(e,{})},getterFor:function(e){return function(t){var n;if(!Qc(t)||(n=Xl(t)).type!==e)throw iu(`Incompatible receiver, `+e+` required`);return n}}},fu=Function.prototype,pu=Ic&&Object.getOwnPropertyDescriptor,mu=xl(fu,`name`),hu={EXISTS:mu,PROPER:mu&&function(){}.name===`something`,CONFIGURABLE:mu&&(!Ic||Ic&&pu(fu,`name`).configurable)},gu=Oa((function(e){var t=hu.CONFIGURABLE,n=du.get,r=du.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;Zc(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!xl(a,`name`)||t&&a.name!==d)&&ql(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Pc?l?e[n]=a:hl(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:ql(e,n,a))})(Function.prototype,`toString`,(function(){return Zc(this)&&n(this).source||Ql(this)}))})),_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=Xc(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)}.indexOf,Ou=Gc([].push),ku=function(e,t){var n,r=Xc(e),i=0,a=[];for(n in r)!xl(ru,n)&&xl(r,n)&&Ou(a,n);for(;t.length>i;)xl(r,n=t[i++])&&(~Du(a,n)||Ou(a,n));return a},Au=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ju=Au.concat(`length`,`prototype`),Mu={f:Object.getOwnPropertyNames||function(e){return ku(e,ju)}},Nu={f:Object.getOwnPropertySymbols},Pu=Gc([].concat),Fu=$c(`Reflect`,`ownKeys`)||function(e){var t=Mu.f(Ul(e)),n=Nu.f;return n?Pu(t,n(e)):t},Iu=function(e,t){for(var n=Fu(t),r=Kl.f,i=Bl.f,a=0;a<n.length;a++){var o=n[a];xl(e,o)||r(e,o,i(t,o))}},Lu=/#|\.prototype\./,Ru=function(e,t){var n=Bu[zu(e)];return n==Hu||n!=Vu&&(Zc(t)?Fc(t):!!t)},zu=Ru.normalize=function(e){return String(e).replace(Lu,`.`).toLowerCase()},Bu=Ru.data={},Vu=Ru.NATIVE=`N`,Hu=Ru.POLYFILL=`P`,Uu=Ru,Wu=Bl.f,Gu=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Pc:l?Pc[s]||hl(s,{}):(Pc[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Wu(n,r))&&o.value:n[r],!Uu(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Iu(a,i)}(e.sham||i&&i.sham)&&ql(a,`sham`,!0),gu(n,r,a,e)}},Ku={};Ku[Al(`toStringTag`)]=`z`;var qu,Ju=String(Ku)===`[object z]`,Yu=Al(`toStringTag`),Xu=Pc.Object,Zu=Kc(function(){return arguments}())==`Arguments`,Qu=Ju?Kc: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=Xu(e),Yu))==`string`?n:Zu?Kc(t):(r=Kc(t))==`Object`&&Zc(t.callee)?`Arguments`:r},$u=Pc.String,ed=function(e){if(Qu(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return $u(e)},td=function(){var e=Ul(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},nd=Pc.RegExp,rd=Fc((function(){var e=nd(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),id=rd||Fc((function(){return!nd(`a`,`y`).sticky})),ad={BROKEN_CARET:rd||Fc((function(){var e=nd(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:id,UNSUPPORTED_Y:rd},od=Object.keys||function(e){return ku(e,Au)},sd=Ic?Object.defineProperties:function(e,t){Ul(e);for(var n,r=Xc(t),i=od(t),a=i.length,o=0;a>o;)Kl.f(e,n=i[o++],r[n]);return e},cd=$c(`document`,`documentElement`),ld=nu(`IE_PROTO`),ud=function(){},dd=function(e){return`<script>`+e+`<\/script>`},fd=function(e){e.write(dd(``)),e.close();var t=e.parentWindow.Object;return e=null,t},pd=function(){try{qu=new ActiveXObject(`htmlfile`)}catch{}var e,t;pd=typeof document<`u`?document.domain&&qu?fd(qu):((t=Ll(`iframe`)).style.display=`none`,cd.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(dd(`document.F=Object`)),e.close(),e.F):fd(qu);for(var n=Au.length;n--;)delete pd.prototype[Au[n]];return pd()};ru[ld]=!0;var md,hd,gd=Object.create||function(e,t){var n;return e===null?n=pd():(ud.prototype=Ul(e),n=new ud,ud.prototype=null,n[ld]=e),t===void 0?n:sd(n,t)},_d=Pc.RegExp,vd=Fc((function(){var e=_d(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),yd=Pc.RegExp,bd=Fc((function(){var e=yd(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),xd=du.get,Sd=_l(`native-string-replace`,String.prototype.replace),Cd=RegExp.prototype.exec,wd=Cd,Td=Gc(``.charAt),Ed=Gc(``.indexOf),Dd=Gc(``.replace),Od=Gc(``.slice),kd=(hd=/b*/g,Rc(Cd,md=/a/,`a`),Rc(Cd,hd,`a`),md.lastIndex!==0||hd.lastIndex!==0),Ad=ad.BROKEN_CARET,jd=/()??/.exec(``)[1]!==void 0;(kd||jd||Ad||vd||bd)&&(wd=function(e){var t,n,r,i,a,o,s,c=this,l=xd(c),u=ed(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Rc(wd,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Ad&&c.sticky,m=Rc(td,c),h=c.source,g=0,_=u;if(p&&(m=Dd(m,`y`,``),Ed(m,`g`)===-1&&(m+=`g`),_=Od(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Td(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),jd&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),kd&&(r=c.lastIndex),i=Rc(Cd,p?n:c,_),p?i?(i.input=Od(i.input,g),i[0]=Od(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:kd&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),jd&&i&&i.length>1&&Rc(Sd,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=gd(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Md=wd;Gu({target:`RegExp`,proto:!0,forced:/./.exec!==Md},{exec:Md}),Al(`species`);var Nd=RegExp.prototype,Pd=Gc(``.charAt),Fd=Gc(``.charCodeAt),vre=Gc(``.slice),Id=function(e){return function(t,n){var r,i,a=ed(Yc(t)),o=yu(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Fd(a,o))<55296||r>56319||o+1===s||(i=Fd(a,o+1))<56320||i>57343?e?Pd(a,o):r:e?vre(a,o,o+2):i-56320+(r-55296<<10)+65536}},Ld={codeAt:Id(!1),charAt:Id(!0)},yre=Ld.charAt,bre=function(e,t,n){return t+(n?yre(e,t).length:1)},xre=Pc.TypeError,Rd=function(e,t){var n=e.exec;if(Zc(n)){var r=Rc(n,e,t);return r!==null&&Ul(r),r}if(Kc(e)===`RegExp`)return Rc(Md,e,t);throw xre(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Al(e),a=!Fc((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Fc((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=Gc(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Gc(e),c=t.exec;return c===Md||c===Nd.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));gu(String.prototype,e,c[0]),gu(Nd,i,c[1])}r&&ql(Nd[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=Yc(this),r=t==null?void 0:fl(t,e);return r?Rc(r,t,n):new RegExp(t)[e](ed(n))},function(e){var r=Ul(this),i=ed(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return Rd(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=Rd(r,i))!==null;){var u=ed(s[0]);c[l]=u,u===``&&(r.lastIndex=bre(i,wu(r.lastIndex),o)),l++}return l===0?null:c}]})),Gu({global:!0},{globalThis:Pc});var Sre=!Fc((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zd=nu(`IE_PROTO`),Bd=Pc.Object,Cre=Bd.prototype,Vd=Sre?Bd.getPrototypeOf:function(e){var t=yl(e);if(xl(t,zd))return t[zd];var n=t.constructor;return Zc(n)&&t instanceof n?n.prototype:t instanceof Bd?Cre:null},wre=Pc.String,Tre=Pc.TypeError,Hd=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Gc(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Ul(n),function(e){if(typeof e==`object`||Zc(e))return e;throw Tre(`Can't set `+wre(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ere=Pc.Array,Dre=Math.max,Ore=Gc(``.replace),kre=Gc(``.split),Are=Gc([].join),Ud=String(Error(`zxcasd`).stack),Wd=/\n\s*at [^:]*:[^\n]*/,jre=Wd.test(Ud),Mre=/@[^\n]*\n/.test(Ud)&&!/zxcasd/.test(Ud),Nre=function(e,t){if(typeof e!=`string`)return e;if(jre)for(;t--;)e=Ore(e,Wd,``);else if(Mre)return Are(function(e,t,n){for(var r,i,a,o,s=Tu(e),c=Su(t,s),l=Su(n===void 0?s:n,s),u=Ere(Dre(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=Pl(i))in r?Kl.f(r,o,Vc(0,a)):r[o]=a;return u.length=d,u}(kre(e,`
`),t),`
`);return e},Pre=function(e,t){Qc(t)&&`cause`in t&&ql(e,`cause`,t.cause)},Gd=Gc(Gc.bind),Kd=function(e,t){return dl(e),t===void 0?e:Gd?Gd(e,t):function(){return e.apply(t,arguments)}},qd={},Fre=Al(`iterator`),Ire=Array.prototype,Lre=Al(`iterator`),Jd=function(e){if(e!=null)return fl(e,Lre)||fl(e,`@@iterator`)||qd[Qu(e)]},Rre=Pc.TypeError,Yd=function(e,t,n){var r,i;Ul(e);try{if(!(r=fl(e,`return`))){if(t===`throw`)throw n;return n}r=Rc(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Ul(r),n},zre=Pc.TypeError,Xd=function(e,t){this.stopped=e,this.result=t},Zd=Xd.prototype,Bre=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=Kd(t,u),h=function(e){return r&&Yd(r,`normal`,e),new Xd(!0,e)},g=function(e){return d?(Ul(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=Jd(e)))throw zre(ul(e)+` is not iterable`);if(function(e){return e!==void 0&&(qd.Array===e||Ire[Fre]===e)}(i)){for(a=0,o=Tu(e);o>a;a++)if((s=g(e[a]))&&el(Zd,s))return s;return new Xd(!1)}r=function(e,t){var n=arguments.length<2?Jd(e):t;if(dl(n))return Ul(Rc(n,e));throw Rre(ul(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Rc(c,r)).done;){try{s=g(l.value)}catch(e){Yd(r,`throw`,e)}if(typeof s==`object`&&s&&el(Zd,s))return s}return new Xd(!1)},Vre=function(e,t){return e===void 0?arguments.length<2?``:t:ed(e)},Hre=!Fc((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,"stack",Vc(1,7)),e.stack!==7)})),Ure=Al(`toStringTag`),Qd=Pc.Error,Wre=[].push,$d=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=el(ef,this);Hd?n=Hd(new Qd(void 0),i?Vd(this):ef):(n=i?this:gd(ef),ql(n,Ure,`Error`)),ql(n,`message`,Vre(t,``)),Hre&&ql(n,`stack`,Nre(n.stack,1)),Pre(n,r);var a=[];return Bre(e,Wre,{that:a}),ql(n,`errors`,a),n};Hd?Hd($d,Qd):Iu($d,Qd);var ef=$d.prototype=gd(Qd.prototype,{constructor:Vc(1,$d),message:Vc(1,``),name:Vc(1,`AggregateError`)});Gu({global:!0},{AggregateError:$d});var tf=Al(`unscopables`),nf=Array.prototype;nf[tf]??Kl.f(nf,tf,{configurable:!0,value:gd(null)});var rf,af,of,sf=function(e){nf[tf][e]=!0},cf=Al(`iterator`),lf=!1;[].keys&&(`next`in(of=[].keys())?(af=Vd(Vd(of)))!==Object.prototype&&(rf=af):lf=!0),(rf==null||Fc((function(){var e={};return rf[cf].call(e)!==e})))&&(rf={}),Zc(rf[cf])||gu(rf,cf,(function(){return this}));var uf={IteratorPrototype:rf,BUGGY_SAFARI_ITERATORS:lf},Gre=Kl.f,df=Al(`toStringTag`),ff=function(e,t,n){e&&!xl(e=n?e:e.prototype,df)&&Gre(e,df,{configurable:!0,value:t})},Kre=uf.IteratorPrototype,qre=function(){return this},Jre=hu.PROPER,Yre=hu.CONFIGURABLE,pf=uf.IteratorPrototype,mf=uf.BUGGY_SAFARI_ITERATORS,hf=Al(`iterator`),Xre=function(){return this},gf=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=gd(Kre,{next:Vc(+!r,n)}),ff(e,i,!1),qd[i]=qre})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!mf&&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[hf]||p[`@@iterator`]||i&&p[i],h=!mf&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=Vd(g.call(new e)))!==Object.prototype&&s.next&&(Vd(s)!==pf&&(Hd?Hd(s,pf):Zc(s[hf])||gu(s,hf,Xre)),ff(s,d,!0)),Jre&&i==`values`&&m&&m.name!==`values`&&(Yre?ql(p,`name`,`values`):(f=!0,h=function(){return Rc(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(mf||f||!(l in p))&&gu(p,l,c[l]);else Gu({target:t,proto:!0,forced:mf||f},c)}return p[hf]!==h&&gu(p,hf,h,{name:i}),qd[t]=h,c},Zre=du.set,Qre=du.getterFor(`Array Iterator`),_f=gf(Array,`Array`,(function(e,t){Zre(this,{type:`Array Iterator`,target:Xc(e),index:0,kind:t})}),(function(){var e=Qre(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`);qd.Arguments=qd.Array,sf(`keys`),sf(`values`),sf(`entries`);var $re=Ld.charAt,eie=du.set,tie=du.getterFor(`String Iterator`);gf(String,`String`,(function(e){eie(this,{type:`String Iterator`,string:ed(e),index:0})}),(function(){var e,t=tie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$re(n,r),t.index+=e.length,{value:e,done:!1})}));var vf,yf={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},bf=Ll(`span`).classList,xf=bf&&bf.constructor&&bf.constructor.prototype,Sf=xf===Object.prototype?void 0:xf,Cf=Al(`iterator`),wf=Al(`toStringTag`),Tf=_f.values,Ef=function(e,t){if(e){if(e[Cf]!==Tf)try{ql(e,Cf,Tf)}catch{e[Cf]=Tf}if(e[wf]||ql(e,wf,t),yf[t]){for(var n in _f)if(e[n]!==_f[n])try{ql(e,n,_f[n])}catch{e[n]=_f[n]}}}};for(var Df in yf)Ef(Pc[Df]&&Pc[Df].prototype,Df);Ef(Sf,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),Of(),kf()):global&&(vf=global.navigator)!=null&&vf.userAgent.match(`QQBrowser`)&&(Of(),kf());function Of(){typeof globalThis>`u`&&(window.globalThis=window)}function kf(){sre===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var Af,jf=Array.isArray||function(e){return Za(e)==`Array`},Mf=function(){},nie=[],Nf=so(`Reflect`,`construct`),Pf=/^\s*(?:class|function)\b/,rie=Ba(Pf.exec),iie=!Pf.exec(Mf),Ff=function(e){if(!Va(e))return!1;try{return Nf(Mf,nie,e),!0}catch{return!1}},aie=!Nf||Ha((function(){var e;return Ff(Ff.call)||!Ff(Object)||!Ff((function(){e=!0}))||e}))?function(e){if(!Va(e))return!1;switch(Ks(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return iie||!!rie(Pf,ic(e))}:Ff,oie=Ho(`species`),If=Ma.Array,Lf=function(e,t){return new(function(e){var t;return jf(e)&&(t=e.constructor,(aie(t)&&(t===If||jf(t.prototype))||io(t)&&(t=t[oie])===null)&&(t=void 0)),t===void 0?If:t}(e))(t===0?0:t)},sie=Ho(`species`),Rf=Ho(`isConcatSpreadable`),zf=Ma.TypeError,cie=go>=51||!Ha((function(){var e=[];return e[Rf]=!1,e.concat()[0]!==e})),lie=(Af=`concat`,go>=51||!Ha((function(){var e=[];return(e.constructor={})[sie]=function(){return{foo:1}},e[Af](Boolean).foo!==1}))),uie=function(e){if(!io(e))return!1;var t=e[Rf];return t===void 0?jf(e):!!t};hs({target:`Array`,proto:!0,forced:!cie||!lie},{concat:function(e){var t,n,r,i,a,o=jo(this),s=Lf(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(uie(a=t===-1?o:arguments[t])){if(c+(i=ws(a))>9007199254740991)throw zf(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&zs(s,c,a[n])}else{if(c>=9007199254740991)throw zf(`Maximum allowed index exceeded`);zs(s,c++,a)}return s.length=c,s}});var Bf=As.f,Vf=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hf={f:function(e){return Vf&&Za(e)==`Window`?function(e){try{return Bf(e)}catch{return Bs(Vf)}}(e):Bf(ro(e))}},die=Ba([].slice),Uf={f:Ho},fie=ps.f,Wf=function(e){var t=ao.Symbol||={};No(t,e)||fie(t,e,{value:Uf.f(e)})},Gf=Ba([].push),Kf=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=jo(c),h=eo(m),g=ss(l,u),_=ws(h),v=0,y=d||Lf,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:Gf(b,f)}else switch(e){case 4:return!1;case 7:Gf(b,f)}}return a?-1:r||i?i:b}},qf={forEach:Kf(0),map:Kf(1),filter:Kf(2),some:Kf(3),every:Kf(4),find:Kf(5),findIndex:Kf(6),filterReject:Kf(7)}.forEach,Jf=_s(`hidden`),Yf=Ho(`toPrimitive`),pie=pc.set,Xf=pc.getterFor(`Symbol`),Zf=Object.prototype,Qf=Ma.Symbol,$f=Qf&&Qf.prototype,ep=Ma.TypeError,tp=Ma.QObject,np=so(`JSON`,`stringify`),rp=Qo.f,ip=ps.f,ap=Hf.f,mie=Ja.f,op=Ba([].push),sp=ko(`symbols`),cp=ko(`op-symbols`),lp=ko(`string-to-symbol-registry`),up=ko(`symbol-to-string-registry`),hie=ko(`wks`),dp=!tp||!tp.prototype||!tp.prototype.findChild,fp=Ua&&Ha((function(){return Rs(ip({},`a`,{get:function(){return ip(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=rp(Zf,t);r&&delete Zf[t],ip(e,t,n),r&&e!==Zf&&ip(Zf,t,r)}:ip,pp=function(e,t){var n=sp[e]=Rs($f);return pie(n,{type:`Symbol`,tag:e,description:t}),Ua||(n.description=t),n},mp=function(e,t,n){e===Zf&&mp(cp,t,n),us(e);var r=Ko(t);return us(n),No(sp,r)?(n.enumerable?(No(e,Jf)&&e[Jf][r]&&(e[Jf][r]=!1),n=Rs(n,{enumerable:Ya(0,!1)})):(No(e,Jf)||ip(e,Jf,Ya(1,{})),e[Jf][r]=!0),fp(e,r,n)):ip(e,r,n)},hp=function(e,t){us(e);var n=ro(t);return qf(Ms(n).concat(yp(n)),(function(t){Ua&&!Ga(gp,n,t)||mp(e,t,n[t])})),e},gp=function(e){var t=Ko(e),n=Ga(mie,this,t);return!(this===Zf&&No(sp,t)&&!No(cp,t))&&(!(n||!No(this,t)||!No(sp,t)||No(this,Jf)&&this[Jf][t])||n)},_p=function(e,t){var n=ro(e),r=Ko(t);if(n!==Zf||!No(sp,r)||No(cp,r)){var i=rp(n,r);return!i||!No(sp,r)||No(n,Jf)&&n[Jf][r]||(i.enumerable=!0),i}},vp=function(e){var t=ap(ro(e)),n=[];return qf(t,(function(e){No(sp,e)||No(Es,e)||op(n,e)})),n},yp=function(e){var t=e===Zf,n=ap(t?cp:ro(e)),r=[];return qf(n,(function(e){!No(sp,e)||t&&!No(Zf,e)||op(r,sp[e])})),r};if(_o||($f=(Qf=function(){if(co($f,this))throw ep(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Zs(arguments[0]):void 0,t=Lo(e),n=function(e){this===Zf&&Ga(n,cp,e),No(this,Jf)&&No(this[Jf],t)&&(this[Jf][t]=!1),fp(this,t,Ya(1,e))};return Ua&&dp&&fp(Zf,t,{configurable:!0,set:n}),pp(t,e)}).prototype,gc($f,`toString`,(function(){return Xf(this).tag})),gc(Qf,`withoutSetter`,(function(e){return pp(Lo(e),e)})),Ja.f=gp,ps.f=mp,Qo.f=_p,As.f=Hf.f=vp,js.f=yp,Uf.f=function(e){return pp(Ho(e),e)},Ua&&ip($f,`description`,{configurable:!0,get:function(){return Xf(this).description}})),hs({global:!0,wrap:!0,forced:!_o,sham:!_o},{Symbol:Qf}),qf(Ms(hie),(function(e){Wf(e)})),hs({target:`Symbol`,stat:!0,forced:!_o},{for:function(e){var t=Zs(e);if(No(lp,t))return lp[t];var n=Qf(t);return lp[t]=n,up[n]=t,n},keyFor:function(e){if(!bo(e))throw ep(e+` is not a symbol`);if(No(up,e))return up[e]},useSetter:function(){dp=!0},useSimple:function(){dp=!1}}),hs({target:`Object`,stat:!0,forced:!_o,sham:!Ua},{create:function(e,t){return t===void 0?Rs(e):hp(Rs(e),t)},defineProperty:mp,defineProperties:hp,getOwnPropertyDescriptor:_p}),hs({target:`Object`,stat:!0,forced:!_o},{getOwnPropertyNames:vp,getOwnPropertySymbols:yp}),hs({target:`Object`,stat:!0,forced:Ha((function(){js.f(1)}))},{getOwnPropertySymbols:function(e){return js.f(jo(e))}}),np&&hs({target:`JSON`,stat:!0,forced:!_o||Ha((function(){var e=Qf();return np([e])!=`[null]`||np({a:e})!=`{}`||np(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=die(arguments),i=t;if((io(t)||e!==void 0)&&!bo(e))return jf(t)||(t=function(e,t){if(Va(i)&&(t=Ga(i,this,e,t)),!bo(t))return t}),r[1]=t,Ia(np,null,r)}}),!$f[Yf]){var gie=$f.valueOf;gc($f,Yf,(function(e){return Ga(gie,this)}))}xc(Qf,`Symbol`),Es[Jf]=!0,Wf(`asyncIterator`),Wf(`hasInstance`),Wf(`isConcatSpreadable`),Wf(`iterator`),Wf(`match`),Wf(`matchAll`),Wf(`replace`),Wf(`search`),Wf(`species`),Wf(`split`),Wf(`toPrimitive`),Wf(`toStringTag`),Wf(`unscopables`),xc(Ma.JSON,`JSON`,!0);var _ie=ao.Symbol;Wf(`asyncDispose`),Wf(`dispose`),Wf(`matcher`),Wf(`metadata`),Wf(`observable`),Wf(`patternMatch`),Wf(`replaceAll`);var bp=_ie,vie=Uf.f(`iterator`),yie=Yte(Oa((function(e){function t(n){return typeof bp==`function`&&typeof vie==`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 bp==`function`&&e.constructor===bp&&e!==bp.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}))),xp=Bl.f,bie=Fc((function(){xp(1)}));if(Gu({target:`Object`,stat:!0,forced:!Ic||bie,sham:!Ic},{getOwnPropertyDescriptor:function(e,t){return xp(Xc(e),t)}}),(typeof global>`u`?`undefined`:yie(global))===`object`){var xie=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!xie.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 Sp(e){return Object.prototype.toString.call(e)===`[object Object]`}function Cp(e){var t,n;return!1!==Sp(e)&&((t=e.constructor)===void 0||!1!==Sp(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function wp(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 Tp(e){return!!e&&!!e[am]}function Ep(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)===Die}(e)||Array.isArray(e)||!!e[im]||!!e.constructor[im]||jp(e)||Mp(e))}function Dp(e,t,n){n===void 0&&(n=!1),Op(e)===0?(n?Object.keys:om)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Op(e){var t=e[am];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:jp(e)?2:Mp(e)?3:0}function kp(e,t){return Op(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ap(e,t,n){var r=Op(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function jp(e){return Tie&&e instanceof Map}function Mp(e){return Eie&&e instanceof Set}function Np(e){return e.o||e.t}function Pp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Oie(e);delete t[am];for(var n=om(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 Fp(e,t){return t===void 0&&(t=!1),Ip(e)||Tp(e)||!Ep(e)||(Op(e)>1&&(e.set=e.add=e.clear=e.delete=Sie),Object.freeze(e),t&&Dp(e,(function(e,t){return Fp(t,!0)}),!0)),e}function Sie(){wp(2)}function Ip(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Lp(e){var t=kie[e];return t||wp(18,e),t}function Rp(){return em}function zp(e,t){t&&(Lp(`Patches`),e.u=[],e.s=[],e.v=t)}function Bp(e){Vp(e),e.p.forEach(Cie),e.p=null}function Vp(e){e===em&&(em=e.l)}function Hp(e){return em={p:[],l:em,h:e,m:!0,_:0}}function Cie(e){var t=e[am];t.i===0||t.i===1?t.j():t.O=!0}function Up(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Lp(`ES5`).S(t,e,r),r?(n[am].P&&(Bp(t),wp(4)),Ep(e)&&(e=Wp(t,e),t.l||Kp(t,e)),t.u&&Lp(`Patches`).M(n[am],e,t.u,t.s)):e=Wp(t,n,[]),Bp(t),t.u&&t.v(t.u,t.s),e===rm?void 0:e}function Wp(e,t,n){if(Ip(t))return t;var r=t[am];if(!r)return Dp(t,(function(i,a){return Gp(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Kp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Pp(r.k):r.o;Dp(r.i===3?new Set(i):i,(function(t,a){return Gp(e,r,i,t,a,n)})),Kp(e,i,!1),n&&e.u&&Lp(`Patches`).R(r,n,e.u,e.s)}return r.o}function Gp(e,t,n,r,i,a){if(Tp(i)){var o=Wp(e,i,a&&t&&t.i!==3&&!kp(t.D,r)?a.concat(r):void 0);if(Ap(n,r,o),!Tp(o))return;e.m=!1}if(Ep(i)&&!Ip(i)){if(!e.h.F&&e._<1)return;Wp(e,i),t&&t.A.l||Kp(e,i)}}function Kp(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Fp(t,n)}function qp(e,t){var n=e[am];return(n?Np(n):e)[t]}function Jp(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 Yp(e){e.P||(e.P=!0,e.l&&Yp(e.l))}function Xp(e){e.o||=Pp(e.t)}function Zp(e,t,n){var r=jp(t)?Lp(`MapSet`).N(t,n):Mp(t)?Lp(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:Rp(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=sm;n&&(i=[r],a=cm);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Lp(`ES5`).J(t,n);return(n?n.A:Rp()).p.push(r),r}function wie(e){return Tp(e)||wp(22,e),function e(t){if(!Ep(t))return t;var n,r=t[am],i=Op(t);if(r){if(!r.P&&(r.i<4||!Lp(`ES5`).K(r)))return r.t;r.I=!0,n=Qp(t,i),r.I=!1}else n=Qp(t,i);return Dp(n,(function(t,i){r&&function(e,t){return Op(e)===2?e.get(t):e[t]}(r.t,t)===i||Ap(n,t,e(i))})),i===3?new Set(n):n}(e)}function Qp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pp(e)}var $p,em,tm=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Tie=typeof Map<`u`,Eie=typeof Set<`u`,nm=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,rm=tm?Symbol.for(`immer-nothing`):(($p={})[`immer-nothing`]=!0,$p),im=tm?Symbol.for(`immer-draftable`):`__$immer_draftable`,am=tm?Symbol.for(`immer-state`):`__$immer_state`,Die=``+Object.prototype.constructor,om=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Oie=Object.getOwnPropertyDescriptors||function(e){var t={};return om(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},kie={},sm={get:function(e,t){if(t===am)return e;var n=Np(e);if(!kp(n,t))return function(e,t,n){var r=Jp(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||!Ep(r)?r:r===qp(e.t,t)?(Xp(e),e.o[t]=Zp(e.A.h,r,e)):r},has:function(e,t){return t in Np(e)},ownKeys:function(e){return Reflect.ownKeys(Np(e))},set:function(e,t,n){var r=Jp(Np(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=qp(Np(e),t),a=i?.[am];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||kp(e.t,t)))return!0;Xp(e),Yp(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 qp(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Xp(e),Yp(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Np(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){wp(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){wp(12)}},cm={};Dp(sm,(function(e,t){cm[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),cm.deleteProperty=function(e,t){return sm.deleteProperty.call(this,e[0],t)},cm.set=function(e,t,n){return sm.set.call(this,e[0],t,n,e[0])};var lm=new(function(){function e(e){var t=this;this.g=nm,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`&&wp(6),r!==void 0&&typeof r!=`function`&&wp(7),Ep(e)){var s=Hp(t),c=Zp(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Bp(s):Vp(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return zp(s,r),Up(e,s)}),(function(e){throw Bp(s),e})):(zp(s,r),Up(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===rm?void 0:(o===void 0&&(o=e),t.F&&Fp(o,!0),o);wp(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){Ep(e)||wp(8),Tp(e)&&(e=wie(e));var t=Hp(this),n=Zp(this,e,void 0);return n[am].C=!0,Vp(t),n},t.finishDraft=function(e,t){var n=(e&&e[am]).A;return zp(n,t),Up(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!nm&&wp(20),this.g=e},t.applyPatches=function(e,t){for(var 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=Lp(`Patches`).$;return Tp(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),um=lm.produce;lm.produceWithPatches.bind(lm),lm.setAutoFreeze.bind(lm),lm.setUseProxies.bind(lm),lm.applyPatches.bind(lm);var dm=lm.createDraft.bind(lm),fm=lm.finishDraft.bind(lm);function pm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mm=new WeakMap,hm=new WeakMap,gm=new WeakMap,_m=new WeakMap,vm=new WeakMap,ym=new WeakMap;function bm(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 xm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Aie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of H.pathRefs(e))oae.transform(n,t);for(var r of H.pointRefs(e))sae.transform(r,t);for(var i of H.rangeRefs(e))lae.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=mm.get(e)||[],l=jie(t);for(var u of c)s(W.transform(u,t));for(var d of l)s(d);mm.set(e,o),q.transform(e,t),e.operations.push(t),H.normalize(e),t.type===`set_selection`&&(e.marks=null),hm.get(e)||(hm.set(e,!0),Promise.resolve().then((()=>{hm.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(G.isExpanded(r)?q.setNodes(e,{[t]:n},{match:K.isText,split:!0}):(e.marks=xm(xm({},H.marks(e)||{}),{},{[t]:n}),hm.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&G.isCollapsed(n)&&q.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&G.isCollapsed(n)&&q.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&G.isExpanded(n)&&q.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?U.fragment(e,t):[]},insertBreak:()=>{q.splitNodes(e,{always:!0})},insertFragment:t=>{q.insertFragment(e,t)},insertNode:t=>{q.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=xm({text:t},r);q.insertNodes(e,i)}else q.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!K.isText(n)){if(V.isElement(n)&&n.children.length===0)q.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!H.isEditor(n)&&V.isElement(n)&&(e.isInline(n)||n.children.length===0||K.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=U.get(e,r);if(!K.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(K.isText(c)||V.isElement(c)&&e.isInline(c))===i?V.isElement(c)?e.isInline(c)&&(l!=null&&K.isText(l)?u&&(q.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(q.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&K.isText(l)&&(K.equals(c,l,{loose:!0})?(q.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(q.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(q.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(q.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}}},removeMark:t=>{var{selection:n}=e;if(n){if(G.isExpanded(n))q.unsetNodes(e,t,{match:K.isText,split:!0});else{var r=xm({},H.marks(e)||{});delete r[t],e.marks=r,hm.get(e)||e.onChange()}}}};return e},jie=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return W.levels(t);case`insert_node`:var{node:n,path:r}=e,i=W.levels(r),a=K.isText(n)?[]:Array.from(U.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...W.ancestors(o),W.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(W.equals(s,c))return[];var l=[],u=[];for(var d of W.ancestors(s)){var f=W.transform(d,e);l.push(f)}for(var p of W.ancestors(c)){var m=W.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[...W.ancestors(v)];case`split_node`:var{path:y}=e;return[...W.levels(y),W.next(y)];default:return[]}};function Sm(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 Cm,wm=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Iie(e):e,i=Cm.None,a=Cm.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=Jie(c,l);if([i,a]=n?[a,u]:[u,i],Em(i,Cm.ZWJ)&&Em(a,Cm.ExtPict)&&!Qie(n?e.substring(0,o):e.substring(0,e.length-o))||Em(i,Cm.RI)&&Em(a,Cm.RI)&&!(s=s===null?!!n||eae(e.substring(0,e.length-o)):!s)||i!==Cm.None&&a!==Cm.None&&Xie(i,a))break;o+=c.length}return o||1},Mie=/\s/,Nie=/[\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]/,Pie=/['\u2018\u2019]/,Tm=(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)]},Fie=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Mie.test(t))return!1;if(Pie.test(t)){var[i,a]=Tm(n,wm(n,r),r);if(e(i,a,r))return!0}return!Nie.test(t)},Iie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Rie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Lie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Lie=e=>e>=55296&&e<=56319,Rie=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`})(Cm||={});var zie=/^(?:[\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])$/,Bie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Vie=/^(?:[\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])$/,Hie=/^[\u1100-\u115F\uA960-\uA97C]$/,Uie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Wie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Gie=/^[\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]$/,Kie=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,qie=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Jie=(e,t)=>{var n=Cm.Any;return e.search(zie)!==-1&&(n|=Cm.Extend),t===8205&&(n|=Cm.ZWJ),t>=127462&&t<=127487&&(n|=Cm.RI),e.search(Bie)!==-1&&(n|=Cm.Prepend),e.search(Vie)!==-1&&(n|=Cm.SpacingMark),e.search(Hie)!==-1&&(n|=Cm.L),e.search(Uie)!==-1&&(n|=Cm.V),e.search(Wie)!==-1&&(n|=Cm.T),e.search(Gie)!==-1&&(n|=Cm.LV),e.search(Kie)!==-1&&(n|=Cm.LVT),e.search(qie)!==-1&&(n|=Cm.ExtPict),n};function Em(e,t){return(e&t)!=0}var Yie=[[Cm.L,Cm.L|Cm.V|Cm.LV|Cm.LVT],[Cm.LV|Cm.V,Cm.V|Cm.T],[Cm.LVT|Cm.T,Cm.T],[Cm.Any,Cm.Extend|Cm.ZWJ],[Cm.Any,Cm.SpacingMark],[Cm.Prepend,Cm.Any],[Cm.ZWJ,Cm.ExtPict],[Cm.RI,Cm.RI]];function Xie(e,t){return Yie.findIndex((n=>Em(e,n[0])&&Em(t,n[1])))===-1}var 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])(?:[\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$/,Qie=e=>e.search(Zie)!==-1,$ie=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,eae=e=>{var t=e.match($ie);return t!==null&&t[0].length/2%2==1},Dm=e=>Cp(e)&&U.isNodeList(e.children)&&!H.isEditor(e),V={isAncestor:e=>Cp(e)&&U.isNodeList(e.children),isElement:Dm,isElementList:e=>Array.isArray(e)&&e.every((e=>V.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 Dm(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},tae=[`text`],nae=[`text`];function Om(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 km(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Om(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Am=new WeakMap,H={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=H.path(e,r),o=n===`lowest`;for(var[s,c]of H.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!K.isText(s)&&!W.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:H.point(e,t,{edge:`end`}),focus:H.end(e,[])},{distance:a=1}=r,o=0;for(var s of H.positions(e,km(km({},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:H.start(e,[]),focus:H.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of H.positions(e,km(km({},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)=>[H.start(e,t),H.end(e,t)],end:(e,t)=>H.point(e,t,{edge:`end`}),first(e,t){var n=H.path(e,t,{edge:`start`});return H.node(e,n)},fragment(e,t){var n=H.range(e,t);return U.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>H.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>K.isText(t)||H.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>K.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)=>V.isElement(t)&&!e.isInline(t),isEditor(e){if(!Cp(e))return!1;var t=Am.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||Cp(e.marks))&&(e.selection===null||G.isRange(e.selection))&&U.isNodeList(e.children)&&Pm.isOperationList(e.operations);return Am.set(e,n),n},isEnd(e,t,n){var r=H.end(e,n);return Lm.equals(t,r)},isEdge:(e,t,n)=>H.isStart(e,t,n)||H.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&K.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>V.isElement(t)&&e.isInline(t),isNormalizing(e){var t=gm.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=H.start(e,n);return Lm.equals(t,r)},isVoid:(e,t)=>V.isElement(t)&&e.isVoid(t),last(e,t){var n=H.path(e,t,{edge:`end`});return H.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=H.path(e,t,n);return[U.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=H.path(e,n);for(var[c,l]of U.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&H.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(G.isExpanded(n)){var[r]=H.nodes(e,{match:K.isText});if(r){var[i]=r;return Sm(i,tae)}return{}}var{anchor:a}=n,{path:o}=a,[s]=H.leaf(e,o);if(a.offset===0){var c=H.previous(e,{at:o,match:K.isText}),l=H.above(e,{match:t=>H.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;W.isAncestor(f,d)&&(s=u)}}return Sm(s,nae)},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=H.after(e,a,{voids:r});if(o){var[,s]=H.last(e,[]),c=[o.path,s];if(W.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null){if(W.isPath(a)){var[l]=H.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0}var[u]=H.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=H.path(e,t,n);return[U.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(rae.isSpan(n))c=n[0],l=n[1];else{var u=H.path(e,n,{edge:`start`}),d=H.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=U.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&H.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&W.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&&!_&&K.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=>mm.get(e)||[];if(H.isNormalizing(e)){if(t){var r=Array.from(U.nodes(e),(e=>{var[,t]=e;return t}));mm.set(e,r)}n(e).length!==0&&H.withoutNormalizing(e,(()=>{for(var t of n(e))if(U.has(e,t)){var r=H.node(e,t),[i,a]=r;V.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(U.has(e,c)){var l=H.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=H.path(e,t,n),i=W.parent(r);return H.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(W.isPath(t)){if(r===`start`){var[,i]=U.first(e,t);t=i}else if(r===`end`){var[,a]=U.last(e,t);t=a}}return G.isRange(t)&&(t=r===`start`?G.start(t):r===`end`?G.end(t):W.common(t.anchor.path,t.focus.path)),Lm.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>U.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 H.pathRefs(e).delete(r),r.current=null,t}};return H.pathRefs(e).add(r),r},pathRefs(e){var t=_m.get(e);return t||(t=new Set,_m.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(W.isPath(t)){var r;if(n===`end`){var[,i]=U.last(e,t);r=i}else{var[,a]=U.first(e,t);r=a}var o=U.get(e,r);if(!K.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(G.isRange(t)){var[s,c]=G.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 H.pointRefs(e).delete(r),r.current=null,t}};return H.pointRefs(e).add(r),r},pointRefs(e){var t=vm.get(e);return t||(t=new Set,vm.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=H.range(e,t),[o,s]=G.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of H.nodes(e,{at:t,reverse:r,voids:i})){if(V.isElement(m)){if(!i&&e.isVoid(m)){yield H.start(e,h);continue}if(e.isInline(m))continue;if(H.hasInlines(e,m)){var g=W.isAncestor(h,s.path)?s:H.end(e,h),_=W.isAncestor(h,o.path)?o:H.start(e,h);u=H.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(K.isText(m)){var v=W.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=Tm(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`?wm(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=wm(e,t),[a,o]=Tm(e,i,t);if(Fie(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=H.before(e,a,{voids:r});if(o){var[,s]=H.first(e,[]),c=[o.path,s];if(W.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null){if(W.isPath(a)){var[l]=H.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0}var[u]=H.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>G.isRange(t)&&!n?t:{anchor:H.start(e,t),focus:H.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 H.rangeRefs(e).delete(r),r.current=null,t}};return H.rangeRefs(e).add(r),r},rangeRefs(e){var t=ym.get(e);return t||(t=new Set,ym.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){gm.set(e,t)},start:(e,t)=>H.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=H.range(e,t),[i,a]=G.edges(r),o=``;for(var[s,c]of H.nodes(e,{at:r,match:K.isText,voids:n})){var l=s.text;W.equals(c,a.path)&&(l=l.slice(0,a.offset)),W.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]=G.edges(t);if(r.offset!==0||i.offset!==0||G.isCollapsed(t))return t;var a=H.above(e,{at:i,match:t=>H.isBlock(e,t)}),o=a?a[1]:[],s={anchor:H.start(e,[]),focus:i},c=!0;for(var[l,u]of H.nodes(e,{at:s,match:K.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||W.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 H.above(e,km(km({},t),{},{match:t=>H.isVoid(e,t)}))},withoutNormalizing(e,t){var n=H.isNormalizing(e);H.setNormalizing(e,!1);try{t()}finally{H.setNormalizing(e,n)}H.normalize(e)}},rae={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(W.isPath)},iae=[`children`],aae=[`text`],jm=new WeakMap,U={ancestor(e,t){var n=U.get(e,t);if(K.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 W.ancestors(t,n))yield[U.ancestor(e,r),r]},child(e,t){if(K.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=U.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[U.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=W.common(t,n);return[U.get(e,r),r]},descendant(e,t){var n=U.get(e,t);if(H.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 U.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 U.nodes(e,t))V.isElement(n)&&(yield[n,r])},extractProps:e=>V.isAncestor(e)?Sm(e,iae):Sm(e,aae),first(e,t){for(var n=t.slice(),r=U.get(e,n);r&&!K.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(K.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return um({children:e.children},(e=>{var[n,r]=G.edges(t);for(var[,i]of U.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!G.includes(t,n)}})){if(!G.includes(t,i)){var a=U.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(W.equals(i,r.path)){var s=U.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(W.equals(i,n.path)){var c=U.leaf(e,i);c.text=c.text.slice(n.offset)}}H.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(K.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(K.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>K.isText(e)||V.isElement(e)||H.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=jm.get(e);if(t!==void 0)return t;var n=e.every((e=>U.isNode(e)));return jm.set(e,n),n},last(e,t){for(var n=t.slice(),r=U.get(e,n);r&&!K.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=U.get(e,t);if(!K.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 W.levels(t,n))yield[U.get(e,r),r]},matches:(e,t)=>V.isElement(e)&&V.isElementProps(t)&&V.matches(e,t)||K.isText(e)&&K.isTextProps(t)&&K.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?W.isBefore(s,a):W.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||K.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=W.next(s);if(U.has(e,l)){s=l,c=U.get(e,s);continue}}r&&s[s.length-1]!==0?(s=W.previous(s),c=U.get(e,s)):(s=W.parent(s),c=U.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;W.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=U.get(e,s)}},parent(e,t){var n=W.parent(t),r=U.get(e,n);if(K.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>K.isText(e)?e.text:e.children.map(U.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of U.nodes(e,t))K.isText(n)&&(yield[n,r])}};function Mm(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 Nm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pm={isNodeOperation:e=>Pm.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!Cp(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return W.isPath(e.path)&&U.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&W.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&W.isPath(e.path)&&Cp(e.properties);case`move_node`:return W.isPath(e.path)&&W.isPath(e.newPath);case`set_node`:return W.isPath(e.path)&&Cp(e.properties)&&Cp(e.newProperties);case`set_selection`:return e.properties===null&&G.isRange(e.newProperties)||e.newProperties===null&&G.isRange(e.properties)||Cp(e.properties)&&Cp(e.newProperties);case`split_node`:return W.isPath(e.path)&&typeof e.position==`number`&&Cp(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Pm.isOperation(e))),isSelectionOperation:e=>Pm.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>Pm.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return Nm(Nm({},e),{},{type:`remove_node`});case`insert_text`:return Nm(Nm({},e),{},{type:`remove_text`});case`merge_node`:return Nm(Nm({},e),{},{type:`split_node`,path:W.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(W.equals(t,n))return e;if(W.isSibling(n,t))return Nm(Nm({},e),{},{path:t,newPath:n});var r=W.transform(n,e),i=W.transform(W.next(n),e);return Nm(Nm({},e),{},{path:r,newPath:i});case`remove_node`:return Nm(Nm({},e),{},{type:`insert_node`});case`remove_text`:return Nm(Nm({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return Nm(Nm({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return Nm(Nm({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return Nm(Nm({},e),{},{type:`merge_node`,path:W.next(e.path)})}}},W={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=W.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 W.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return W.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 W.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)=>W.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&W.compare(e,t)===0,isBefore:(e,t)=>W.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&W.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&W.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&W.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&W.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]&&W.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(!W.isAncestor(t,e)&&!W.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 um(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;(W.equals(a,r)||W.endsBefore(a,r)||W.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(W.equals(o,r)||W.isAncestor(o,r))return null;W.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;W.equals(s,r)||W.endsBefore(s,r)?--r[s.length-1]:W.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(W.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else W.endsBefore(l,r)?r[l.length-1]+=1:W.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(W.equals(d,f))return;if(W.isAncestor(d,r)||W.equals(d,r)){var p=f.slice();return W.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}W.isSibling(d,f)&&(W.isAncestor(f,r)||W.equals(f,r))?W.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:W.endsBefore(f,r)||W.equals(f,r)||W.isAncestor(f,r)?(W.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):W.endsBefore(d,r)&&(W.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},oae={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()}}};function Fm(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 Im(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lm={compare(e,t){var n=W.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:+(e.offset>t.offset):n},isAfter:(e,t)=>Lm.compare(e,t)===1,isBefore:(e,t)=>Lm.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&W.equals(e.path,t.path),isPoint:e=>Cp(e)&&typeof e.offset==`number`&&W.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return um(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=W.transform(i,t,n);break;case`insert_text`:W.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:W.equals(t.path,i)&&(e.offset+=t.position),e.path=W.transform(i,t,n);break;case`remove_text`:W.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(W.equals(t.path,i)||W.isAncestor(t.path,i))return null;e.path=W.transform(i,t,n);break;case`split_node`:if(W.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=W.transform(i,t,Im(Im({},n),{},{affinity:`forward`})))}else e.path=W.transform(i,t,n)}}))}},sae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Lm.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},cae=[`anchor`,`focus`];function Rm(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 G={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return G.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=G.edges(e);return t},equals:(e,t)=>Lm.equals(e.anchor,t.anchor)&&Lm.equals(e.focus,t.focus),includes(e,t){if(G.isRange(t)){if(G.includes(e,t.anchor)||G.includes(e,t.focus))return!0;var[n,r]=G.edges(e),[i,a]=G.edges(t);return Lm.isBefore(n,i)&&Lm.isAfter(r,a)}var[o,s]=G.edges(e),c=!1,l=!1;return Lm.isPoint(t)?(c=Lm.compare(t,o)>=0,l=Lm.compare(t,s)<=0):(c=W.compare(t,o.path)>=0,l=W.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=Sm(e,cae),[r,i]=G.edges(e),[a,o]=G.edges(t),s=Lm.isBefore(r,a)?a:r,c=Lm.isBefore(i,o)?i:o;return Lm.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(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 Lm.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Lm.equals(t,n)},isExpanded:e=>!G.isCollapsed(e),isForward:e=>!G.isBackward(e),isRange:e=>Cp(e)&&Lm.isPoint(e.anchor)&&Lm.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=G.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return um(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=G.isCollapsed(e);G.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?G.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=Lm.transform(e.anchor,t,{affinity:r}),c=Lm.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},lae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=G.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},zm=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Cp(r)&&Cp(i)){if(!zm(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},uae=[`text`],dae=[`anchor`,`focus`];function Bm(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 Vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return Sm(e,uae)}return zm(n?r(e):e,n?r(t):t)},isText:e=>Cp(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>K.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=[Vm({},e)];for(var r of t){var i=Sm(r,dae),[a,o]=G.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=Vm(Vm({},f),{},{text:f.text.slice(h)}),f=Vm(Vm({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=Vm(Vm({},f),{},{text:f.text.slice(0,g)}),f=Vm(Vm({},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 Hm(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 Um(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fae={transform(e,t){e.children=dm(e.children);var n=e.selection&&dm(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=U.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 G.points(t))t[c]=Lm.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=U.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 G.points(t))t[g]=Lm.transform(h,n);break;case`merge_node`:var{path:_}=n,v=U.get(e,_),y=W.previous(_),b=U.get(e,y),x=U.parent(e,_),S=_[_.length-1];if(K.isText(v)&&K.isText(b))b.text+=v.text;else{if(K.isText(v)||K.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 G.points(t))t[w]=Lm.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(W.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=U.get(e,T),O=U.parent(e,T),k=T[T.length-1];O.children.splice(k,1);var A=W.transform(T,n),j=U.get(e,W.parent(A)),M=A[A.length-1];if(j.children.splice(M,0,D),t)for(var[N,P]of G.points(t))t[P]=Lm.transform(N,n);break;case`remove_node`:var{path:F}=n,I=F[F.length-1];if(U.parent(e,F).children.splice(I,1),t)for(var[ee,te]of G.points(t)){var ne=Lm.transform(ee,n);if(t!=null&&ne!=null)t[te]=ne;else{var L=void 0,re=void 0;for(var[ie,ae]of U.texts(e)){if(W.compare(ae,F)!==-1){re=[ie,ae];break}L=[ie,ae]}var R=!1;L&&re&&(R=W.equals(re[1],F)?!W.hasPrevious(re[1]):W.common(L[1],F).length<W.common(re[1],F).length),L&&!R?(ee.path=L[1],ee.offset=L[0].text.length):re?(ee.path=re[1],ee.offset=0):t=null}}break;case`remove_text`:var{path:oe,offset:se,text:ce}=n;if(ce.length===0)break;var le=U.leaf(e,oe);if(le.text=le.text.slice(0,se)+le.text.slice(se+ce.length),t)for(var[ue,de]of G.points(t))t[de]=Lm.transform(ue,n);break;case`set_node`:var{path:fe,properties:pe,newProperties:me}=n;if(fe.length===0)throw Error(`Cannot set properties on the root node!`);var he=U.get(e,fe);for(var ge in me){if(ge===`children`||ge===`text`)throw Error(`Cannot set the "${ge}" property of nodes!`);var _e=me[ge];_e==null?delete he[ge]:he[ge]=_e}for(var ve in pe)me.hasOwnProperty(ve)||delete he[ve];break;case`set_selection`:var{newProperties:ye}=n;if(ye==null)t=ye;else{if(t==null){if(!G.isRange(ye))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(ye)} when there is no current selection.`);t=Um({},ye)}for(var be in ye){var xe=ye[be];if(xe==null){if(be===`anchor`||be===`focus`)throw Error(`Cannot remove the "${be}" selection property`);delete t[be]}else t[be]=xe}}break;case`split_node`:var{path:Se,position:Ce,properties:we}=n;if(Se.length===0)throw Error(`Cannot apply a "split_node" operation at path [${Se}] because the root node cannot be split.`);var Te,Ee=U.get(e,Se),De=U.parent(e,Se),Oe=Se[Se.length-1];if(K.isText(Ee)){var ke=Ee.text.slice(0,Ce),Ae=Ee.text.slice(Ce);Ee.text=ke,Te=Um(Um({},we),{},{text:Ae})}else{var je=Ee.children.slice(0,Ce),Me=Ee.children.slice(Ce);Ee.children=je,Te=Um(Um({},we),{},{children:Me})}if(De.children.splice(Oe+1,0,Te),t)for(var[Ne,Pe]of G.points(t))t[Pe]=Lm.transform(Ne,n)}return t})(e,n,t)}finally{e.children=fm(e.children),e.selection=n?Tp(n)?fm(n):n:null}}},pae=[`text`],mae=[`children`];function Wm(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hae={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(U.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?H.end(e,[]):[0],c=!0),c??=!1,G.isRange(o)){if(r||(o=H.unhangRange(e,o)),G.isCollapsed(o))o=o.anchor;else{var[,u]=G.edges(o),d=H.pointRef(e,u);q.delete(e,{at:o}),o=d.unref()}}if(Lm.isPoint(o)){s??=K.isText(l)?e=>K.isText(e):e.isInline(l)?t=>K.isText(t)||H.isInline(e,t):t=>H.isBlock(e,t);var[f]=H.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=H.pathRef(e,p),h=H.isEnd(e,o,p);q.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?W.next(g):g}var _=W.parent(o),v=o[o.length-1];if(i||!H.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=W.next(o)}if(o=W.previous(o),c){var x=H.end(e,o);x&&q.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=W.isPath(n)?qm(e,n):t=>H.isBlock(e,t),n){var o=H.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return H.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]=H.node(e,W.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=W.next(u);q.moveNodes(e,{at:c,to:p,voids:i}),q.removeNodes(e,{at:u,voids:i})}else if(d===0)q.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=W.next(u);q.moveNodes(e,{at:c,to:m,voids:i})}else{var h=W.next(c),g=W.next(u);q.splitNodes(e,{at:h,voids:i}),q.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.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(W.isPath(r)){var[s]=H.parent(e,r);n=e=>s.children.includes(e)}else n=t=>H.isBlock(e,t)}if(!i&&G.isRange(r)&&(r=H.unhangRange(e,r)),G.isRange(r)){if(G.isCollapsed(r))r=r.anchor;else{var[,c]=G.edges(r),l=H.pointRef(e,c);q.delete(e,{at:r}),r=l.unref(),t.at??q.select(e,r)}}var[u]=H.nodes(e,{at:r,match:n,voids:a,mode:o}),d=H.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=W.next(h),y=W.common(p,h),b=W.isSibling(p,h),x=Array.from(H.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=H.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&Km(e,t)}),C=S&&H.pathRef(e,S[1]);if(K.isText(f)&&K.isText(m)){var w=Sm(f,pae);_=m.text.length,g=w}else{if(!V.isElement(f)||!V.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=Sm(f,mae),_=m.children.length,g=w}b||q.moveNodes(e,{at:p,to:v,voids:a}),C&&q.removeNodes(e,{at:C.current,voids:a}),V.isElement(m)&&H.isEmpty(e,m)||K.isText(m)&&m.text===``&&h[h.length-1]!==0?q.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){H.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=W.isPath(r)?qm(e,r):t=>H.isBlock(e,t);var s=H.pathRef(e,n),c=H.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return H.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&W.isSibling(d,u)&&W.isAfter(d,u)&&(s.current=W.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=W.isPath(a)?qm(e,a):t=>H.isBlock(e,t),!n&&G.isRange(a)&&(a=H.unhangRange(e,a));var s=H.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return H.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=H.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]:{};H.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??=W.isPath(i)?qm(e,i):t=>H.isBlock(e,t),!a&&G.isRange(i)&&(i=H.unhangRange(e,i)),s&&G.isRange(i)){if(G.isCollapsed(i)&&H.leaf(e,i.anchor)[0].text.length>0)return;var l=H.rangeRef(e,i,{affinity:`inward`}),[u,d]=G.edges(i),f=o===`lowest`?`lowest`:`highest`,p=H.isEnd(e,d,d.path);q.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=H.isStart(e,u,u.path);q.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??q.select(e,i)}for(var[h,g]of H.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]:{};H.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=>H.isBlock(e,t),G.isRange(a)&&(a=gae(e,a)),W.isPath(a)){var c=a,l=H.point(e,c),[u]=H.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=H.pointRef(e,a,{affinity:`backward`}),[f]=H.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=H.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(V.isElement(m)&&e.isInline(m)){var g=H.after(e,h);if(!g){var _=W.next(h);q.insertNodes(e,{text:``},{at:_,voids:r}),g=H.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=H.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 H.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&H.isVoid(e,C))break;var E=d.current,D=H.isEnd(e,E,w);if(s||!d||!H.isEdge(e,E,w)){T=!0;var O=U.extractProps(C);e.apply({type:`split_node`,path:w,position:S,properties:O})}S=w[w.length-1]+(T||D?1:0)}if(t.at==null){var k=v.current||H.end(e,[]);q.select(e,k)}d.unref(),v.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;q.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=W.isPath(a)?qm(e,a):t=>H.isBlock(e,t),W.isPath(a)&&(a=H.range(e,a));var s=G.isRange(a)?H.rangeRef(e,a):null,c=H.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return H.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=H.node(e,n),o=H.range(e,n);r&&s&&(o=G.intersection(s.current,o)),q.liftNodes(e,{at:o,match:e=>V.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]:{};H.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=W.isPath(s)?qm(e,s):e.isInline(t)?t=>H.isInline(e,t)||K.isText(t):t=>H.isBlock(e,t),i&&G.isRange(s)){var[c,l]=G.edges(s),u=H.rangeRef(e,s,{affinity:`inward`});q.splitNodes(e,{at:l,match:o,voids:a}),q.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??q.select(e,s)}for(var[,d]of Array.from(H.nodes(e,{at:s,match:e.isInline(t)?t=>H.isBlock(e,t):e=>H.isEditor(e),mode:`lowest`,voids:a}))){var f=G.isRange(s)?G.intersection(s,H.range(e,d)):s;if(f){var p=Array.from(H.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=W.equals(i,o)?W.parent(i):W.common(i,o),c=H.range(e,i,o),[l]=H.node(e,s),u=s.length+1,d=W.next(o.slice(0,u)),f=Gm(Gm({},t),{},{children:[]});q.insertNodes(e,f,{at:d,voids:a}),q.moveNodes(e,{at:c,match:e=>V.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},Km=(e,t)=>{if(V.isElement(t)){var n=t;return!!H.isVoid(e,t)||n.children.length===1&&Km(e,n.children[0])}return!H.isEditor(t)},gae=(e,t)=>{if(G.isCollapsed(t))return t.anchor;var[,n]=G.edges(t),r=H.pointRef(e,n);return q.delete(e,{at:t}),r.unref()},qm=(e,t)=>{var[n]=H.node(e,t);return e=>e===n};function Jm(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 Ym(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Jm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xm={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)q.select(e,n.anchor);else if(t===`focus`)q.select(e,n.focus);else if(t===`start`){var[r]=G.edges(n);q.select(e,r)}else if(t===`end`){var[,i]=G.edges(n);q.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=G.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=G.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?H.before(e,s,l):H.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?H.before(e,c,l):H.after(e,c,l);f&&(u.focus=f)}q.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=H.range(e,t),n)q.setSelection(e,t);else{if(!G.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=G.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=G.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;q.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:Ym(Ym({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!Lm.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!Lm.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})}}},Zm={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.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(G.isRange(o)&&G.isCollapsed(o)&&(o=o.anchor),Lm.isPoint(o)){var c=H.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?H.before(e,o,u)||H.start(e,[]):H.after(e,o,u)||H.end(e,[])},s=!0}}if(W.isPath(o))q.removeNodes(e,{at:o,voids:a});else if(!G.isCollapsed(o)){if(!s){var[,d]=G.edges(o),f=H.end(e,[]);Lm.equals(d,f)||(o=H.unhangRange(e,o,{voids:a}))}var[p,m]=G.edges(o),h=H.above(e,{match:t=>H.isBlock(e,t),at:p,voids:a}),g=H.above(e,{match:t=>H.isBlock(e,t),at:m,voids:a}),_=h&&g&&!W.equals(h[1],g[1]),v=W.equals(p.path,m.path),y=a?null:H.void(e,{at:p,mode:`highest`}),b=a?null:H.void(e,{at:m,mode:`highest`});if(y){var x=H.before(e,p);x&&h&&W.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=H.after(e,m);S&&g&&W.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of H.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&W.compare(D,C)===0||(!a&&H.isVoid(e,E)||!W.isCommon(D,p.path)&&!W.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return H.pathRef(e,n)})),k=H.pointRef(e,p),A=H.pointRef(e,m);if(!v&&!y){var j=k.current,[M]=H.leaf(e,j),{path:N}=j,{offset:P}=p,F=M.text.slice(P);F.length>0&&e.apply({type:`remove_text`,path:N,offset:P,text:F})}for(var I of O){var ee=I.unref();q.removeNodes(e,{at:ee,voids:a})}if(!b){var te=A.current,[ne]=H.leaf(e,te),{path:L}=te,re=v?p.offset:0,ie=ne.text.slice(re,m.offset);ie.length>0&&e.apply({type:`remove_text`,path:L,offset:re,text:ie})}!v&&_&&A.current&&k.current&&q.mergeNodes(e,{at:A.current,hanging:!0,voids:a});var ae=n?k.unref()||A.unref():A.unref()||k.unref();t.at==null&&ae&&q.select(e,ae)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(G.isRange(a)){if(r||(a=H.unhangRange(e,a)),G.isCollapsed(a))a=a.anchor;else{var[,o]=G.edges(a);if(!i&&H.void(e,{at:o}))return;var s=H.pointRef(e,o);q.delete(e,{at:a}),a=s.unref()}}else W.isPath(a)&&(a=H.start(e,a));if(i||!H.void(e,{at:a})){var c=H.above(e,{at:a,match:t=>H.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;H.isEnd(e,a,l)?a=H.after(e,l):H.isStart(e,a,l)&&(a=H.before(e,l))}var[,u]=H.above(e,{match:t=>H.isBlock(e,t),at:a,voids:i}),d=H.isStart(e,a,u),f=H.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=U.first({children:t},[]),[,_]=U.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&W.isAncestor(r,g)&&V.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&W.isAncestor(r,_)&&V.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of U.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)V.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=H.nodes(e,{at:a,match:t=>K.isText(t)||H.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,k=H.isStart(e,a,O),A=H.isEnd(e,a,O),j=H.pathRef(e,f?W.next(u):u),M=H.pathRef(e,A?W.next(O):O),N=H.pathRef(e,u);q.splitNodes(e,{at:a,match:t=>T?H.isBlock(e,t):K.isText(t)||H.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var P=H.pathRef(e,!k||k&&A?W.next(O):O);if(q.insertNodes(e,x,{at:P.current,match:t=>K.isText(t)||H.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&q.delete(e,{at:N.unref(),voids:i}),q.insertNodes(e,S,{at:j.current,match:t=>H.isBlock(e,t),mode:`lowest`,voids:i}),q.insertNodes(e,C,{at:M.current,match:t=>K.isText(t)||H.isInline(e,t),mode:`highest`,voids:i}),!n.at){var F=C.length>0?W.previous(M.current):S.length>0?W.previous(j.current):W.previous(P.current),I=H.end(e,F);q.select(e,I)}P.unref(),j.unref(),M.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(W.isPath(i)&&(i=H.range(e,i)),G.isRange(i)){if(G.isCollapsed(i))i=i.anchor;else{var a=G.end(i);if(!r&&H.void(e,{at:a}))return;var o=H.pointRef(e,a);q.delete(e,{at:i,voids:r}),i=o.unref(),q.setSelection(e,{anchor:i,focus:i})}}if(r||!H.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 Qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=$m($m($m($m({},fae),hae),Xm),Zm),eh=`[object Map]`,th=`[object Set]`,nh=/^\[object .+?Constructor\]$/,rh=/^(?:0|[1-9]\d*)$/,ih=`[\\ud800-\\udfff]`,ah=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,oh=`\\ud83c[\\udffb-\\udfff]`,sh=`[^\\ud800-\\udfff]`,ch=`(?:\\ud83c[\\udde6-\\uddff]){2}`,lh=`[\\ud800-\\udbff][\\udc00-\\udfff]`,uh=`(?:`+ah+`|`+oh+`)?`,dh=`[\\ufe0e\\ufe0f]?`+uh+(`(?:\\u200d(?:`+[sh,ch,lh].join(`|`)+`)[\\ufe0e\\ufe0f]?`+uh+`)*`),fh=`(?:`+[sh+ah+`?`,ah,ch,lh,ih].join(`|`)+`)`,ph=RegExp(oh+`(?=`+oh+`)|`+fh+dh,`g`),mh=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),hh=typeof Da==`object`&&Da&&Da.Object===Object&&Da,gh=typeof self==`object`&&self&&self.Object===Object&&self,_h=hh||gh||Function(`return this`)();function vh(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 yh(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function bh(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function xh(e){return function(e){return mh.test(e)}(e)?function(e){return e.match(ph)||[]}(e):function(e){return e.split(``)}(e)}var Sh,Ch,wh=Function.prototype,Th=Object.prototype,Eh=_h[`__core-js_shared__`],Dh=function(){var e=/[^.]+$/.exec(Eh&&Eh.keys&&Eh.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Oh=wh.toString,kh=Th.hasOwnProperty,Ah=Th.toString,jh=RegExp(`^`+Oh.call(kh).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Mh=_h.Symbol,Nh=Mh?Mh.iterator:void 0,Ph=Th.propertyIsEnumerable,Fh=(Sh=Object.keys,Ch=Object,function(e){return Sh(Ch(e))}),Ih=Yh(_h,`DataView`),Lh=Yh(_h,`Map`),Rh=Yh(_h,`Promise`),zh=Yh(_h,`Set`),Bh=Yh(_h,`WeakMap`),Vh=Qh(Ih),Hh=Qh(Lh),Uh=Qh(Rh),Wh=Qh(zh),Gh=Qh(Bh);function Kh(e,t){var n=$h(e)||function(e){return function(e){return rg(e)&&eg(e)}(e)&&kh.call(e,`callee`)&&(!Ph.call(e,`callee`)||Ah.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&&!kh.call(e,a)||i&&(a==`length`||Zh(a,r))||n.push(a);return n}function qh(e){return!ng(e)||function(e){return!!Dh&&Dh in e}(e)?!1:(tg(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?jh:nh).test(Qh(e))}function Jh(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Th,t!==r)return Fh(e);var t,n,r,i=[];for(var a in Object(e))kh.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Yh(e,t){var n=function(e,t){return e?.[t]}(e,t);return qh(n)?n:void 0}var Xh=function(e){return Ah.call(e)};function Zh(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||rh.test(e))&&e>-1&&e%1==0&&e<t}function Qh(e){if(e!=null){try{return Oh.call(e)}catch{}try{return e+``}catch{}}return``}(Ih&&Xh(new Ih(new ArrayBuffer(1)))!=`[object DataView]`||Lh&&Xh(new Lh)!=eh||Rh&&Xh(Rh.resolve())!=`[object Promise]`||zh&&Xh(new zh)!=th||Bh&&Xh(new Bh)!=`[object WeakMap]`)&&(Xh=function(e){var t=Ah.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?Qh(n):void 0;if(r)switch(r){case Vh:return`[object DataView]`;case Hh:return eh;case Uh:return`[object Promise]`;case Wh:return th;case Gh:return`[object WeakMap]`}return t});var $h=Array.isArray;function eg(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!tg(e)}function tg(e){var t=ng(e)?Ah.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function ng(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function rg(e){return!!e&&typeof e==`object`}function ig(e){return e?vh(e,function(e){return eg(e)?Kh(e):Jh(e)}(e)):[]}var ag=function(e){if(!e)return[];if(eg(e))return function(e){return typeof e==`string`||!$h(e)&&rg(e)&&Ah.call(e)==`[object String]`}(e)?xh(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(Nh&&e[Nh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Nh]());var t=Xh(e);return(t==eh?yh:t==th?bh:ig)(e)};function og(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function sg(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:og(t[n])&&og(e[n])&&Object.keys(t[n]).length>0&&sg(e[n],t[n])}))}var cg={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 lg(){var e=typeof document<`u`?document:{};return sg(e,cg),e}var ug={document:cg,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 dg(){var e=typeof window<`u`?window:{};return sg(e,ug),e}function fg(e){return fg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fg(e)}function pg(e,t){return pg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pg(e,t)}function mg(){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 hg(e,t,n){return hg=mg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&pg(i,n.prototype),i},hg.apply(null,arguments)}function gg(e){var t=typeof Map==`function`?new Map:void 0;return gg=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 hg(e,arguments,fg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),pg(n,e)},gg(e)}var _g=function(e){var t,n;function r(t){var 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__;return 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}(gg(Array));function vg(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,vg(e)):t.push(e)})),t}function yg(e,t){return Array.prototype.filter.call(e,t)}function J(e,t){var n=dg(),r=lg(),i=[];if(!t&&e instanceof _g)return e;if(!e)return new _g(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 _g)return e;i=e}return new _g(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 bg(){var e=vg([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function xg(){var e=vg([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function Sg(){var e=vg([...arguments].map((function(e){return e.split(` `)})));return yg(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function Cg(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 wg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Tg(){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 Eg(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 Dg(){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),J(t).is(n))r.apply(t,i);else for(var a=J(t).parents(),o=0;o<a.length;o+=1)J(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 Og(){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 kg(){var e=dg();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Ag(){var e=dg();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function jg(){if(this.length>0){var e=dg(),t=lg(),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 Mg(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function Ng(){for(var e=dg(),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 Pg(e,t){var n,r=dg();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 Fg(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function Ig(e){return J(yg(this,e))}function Lg(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 Rg(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 zg(e){var t,n,r=dg(),i=lg(),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=J(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 _g){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function Bg(){for(var e,t=lg(),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 _g)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function Vg(e){var t,n,r=lg();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 _g)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 Hg(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?J(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return J(t)}function Ug(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?J(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return J(t)}function Wg(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 J(t)}function Gg(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&&!J(r[i]).is(e)||t.push(r[i]);return J(t)}function Kg(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function qg(){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}J.fn=_g.prototype;var Jg=`resize scroll`.split(` `);function Yg(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)Jg.indexOf(e)<0&&(e in this[n]?this[n][e]():J(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(t))}}var Xg=Yg(`click`),Zg=Yg(`focus`),Qg=`[object GeneratorFunction]`,$g=/^(?:0|[1-9]\d*)$/;function e_(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var t_=Object.prototype,n_=t_.hasOwnProperty,r_=t_.toString,i_=t_.propertyIsEnumerable,a_=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function o_(e,t){var n=f_(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&p_(e)}(e)&&n_.call(e,`callee`)&&(!i_.call(e,`callee`)||r_.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&&!n_.call(e,a)||i&&(a==`length`||d_(a,r))||n.push(a);return n}var s_=function(e,t){return e&&l_(e,t,m_)},c_=function(e,t){if(e==null)return e;if(!p_(e))return s_(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e},l_=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 u_(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||t_,t!==r)return a_(e);var t,n,r,i=[];for(var a in Object(e))n_.call(e,a)&&a!=`constructor`&&i.push(a);return i}function d_(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||$g.test(e))&&e>-1&&e%1==0&&e<t}var f_=Array.isArray;function p_(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)?r_.call(e):``;return t==`[object Function]`||t==Qg}(e)}function m_(e){return p_(e)?o_(e):u_(e)}function h_(e){return e}var g_=function(e,t){return(f_(e)?e_:c_)(e,typeof t==`function`?t:h_)},__=(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},v_=/^\s+|\s+$/g,y_=/^[-+]0x[0-9a-f]+$/i,b_=/^0b[01]+$/i,x_=/^0o[0-7]+$/i,S_=parseInt,C_=typeof Da==`object`&&Da&&Da.Object===Object&&Da,w_=typeof self==`object`&&self&&self.Object===Object&&self,T_=C_||w_||Function(`return this`)(),E_=Object.prototype.toString,D_=Math.max,O_=Math.min,k_=function(){return T_.Date.now()};function A_(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=k_();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?O_(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=k_(),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=M_(t)||0,j_(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?D_(M_(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:_(k_())},v}function j_(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function M_(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&E_.call(e)==`[object Symbol]`}(e))return NaN;if(j_(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=j_(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(v_,``);var n=b_.test(e);return n||x_.test(e)?S_(e.slice(2),n?2:8):y_.test(e)?NaN:+e}var N_=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return j_(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),A_(e,t,{leading:r,maxWait:t,trailing:i})},P_={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 F_(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 I_=Array.isArray;function L_(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function R_(e){return e===void 0}function z_(e){return e!==void 0}var B_=F_(``,{},[],void 0,void 0);function V_(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function H_(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 U_=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function W_(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?P_:t;for(let t of U_)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 F_(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;z_(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)R_(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=z_(s)&&z_(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](B_,e);if(I_(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else L_(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;z_(g)&&((i=g.create)==null||i.call(g,B_,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(z_(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;z_(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)}R_(t.text)?z_(h)&&z_(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]:V_(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):V_(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):V_(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):V_(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=H_(t,p,h)),c=a[y.key],R_(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):z_(g)?(z_(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):z_(h)?l(m,h,0,h.length-1):z_(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(z_(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)),V_(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 G_(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&&G_(n,t[e].children,t[e].sel)}}function K_(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(I_(t)?r=t:L_(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),I_(n)?r=n:L_(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)L_(r[a])&&(r[a]=F_(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]!==`#`||G_(o,r,e),F_(e,o,r,i,void 0)}function q_(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 J_={create:q_,update:q_};function Y_(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 X_={create:Y_,update:Y_},Z_=/[A-Z]/g;function Q_(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(Z_,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(Z_,`-$&`).toLowerCase(),a[r]))}var $_={create:Q_,update:Q_};function ev(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++)ev(e[r],t,n)}function tv(e,t){let n=e.type,r=t.data.on;r&&r[n]&&ev(r[n],t,e)}function nv(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){tv(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 rv={create:nv,update:nv,destroy:nv};function iv(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 av={create:iv,update:iv},ov=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,sv=!1;function cv(e,t,n){(function(e){ov((function(){ov(e)}))})((function(){e[t]=n}))}function lv(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]||cv(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var uv={pre:function(){sv=!1},create:lv,update:lv,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;sv||=(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 dv(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?dv(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(F_(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function fv(e,t,...n){let r=dv(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?K_(e,t,r[0].text):K_(e,t,r)}fv||={};var pv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hv=`\\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`,gv=`[\\ud800-\\udfff]`,_v=`[`+hv+`]`,vv=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,yv=`\\d+`,bv=`[\\u2700-\\u27bf]`,xv=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,Sv=`[^\\ud800-\\udfff`+hv+yv+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Cv=`\\ud83c[\\udffb-\\udfff]`,wv=`[^\\ud800-\\udfff]`,Tv=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Ev=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Dv=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Ov=`(?:`+xv+`|`+Sv+`)`,kv=`(?:`+Dv+`|`+Sv+`)`,Av=`(?:`+vv+`|`+Cv+`)?`,jv=`[\\ufe0e\\ufe0f]?`+Av+(`(?:\\u200d(?:`+[wv,Tv,Ev].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Av+`)*`),Mv=`(?:`+[bv,Tv,Ev].join(`|`)+`)`+jv,Nv=`(?:`+[wv+vv+`?`,vv,Tv,Ev,gv].join(`|`)+`)`,Pv=RegExp(`['’]`,`g`),Fv=RegExp(vv,`g`),Iv=RegExp(Cv+`(?=`+Cv+`)|`+Nv+jv,`g`),Lv=RegExp([Dv+`?`+xv+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[_v,Dv,`$`].join(`|`)+`)`,kv+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[_v,Dv+Ov,`$`].join(`|`)+`)`,Dv+`?`+Ov+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,Dv+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,yv,Mv].join(`|`),`g`),Rv=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),zv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bv=typeof Da==`object`&&Da&&Da.Object===Object&&Da,Vv=typeof self==`object`&&self&&self.Object===Object&&self,Hv=Bv||Vv||Function(`return this`)(),Uv={À:`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`},Wv=function(e){return Uv?.[e]};function Gv(e){return Rv.test(e)}function Kv(e){return Gv(e)?function(e){return e.match(Iv)||[]}(e):function(e){return e.split(``)}(e)}var qv=Object.prototype.toString,Jv=Hv.Symbol,Yv=Jv?Jv.prototype:void 0,Xv=Yv?Yv.toString:void 0;function _ae(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&qv.call(e)==`[object Symbol]`}(e))return Xv?Xv.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function vae(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 Zv(e){return e==null?``:_ae(e)}for(var yae=function(e,t,n){return t=t.toLowerCase(),e+(n?Sae(Zv(t).toLowerCase()):t)},bae=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=Zv(e),(t=n?void 0:t)===void 0?function(e){return zv.test(e)}(e)?function(e){return e.match(Lv)||[]}(e):function(e){return e.match(pv)||[]}(e):e.match(t)||[]}(function(e){return(e=Zv(e))&&e.replace(mv,Wv).replace(Fv,``)}(e).replace(Pv,``)),yae,``)},xae=`toUpperCase`,Sae=function(e){var t=Gv(e=Zv(e))?Kv(e):void 0,n=t?t[0]:e.charAt(0),r=t?vae(t,1).join(``):e.slice(1);return n[xae]()+r},Cae=bae,wae=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Qv={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},$v={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:wae?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},ey={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},ty=1;ty<20;ty++)ey[`f`+ty]=111+ty;function ny(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 Qv)r[Qv[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=ry(f),h=Qv[m];if(f.length>1&&!h&&!$v[f]&&!ey[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=Tae(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 Tae(e){return e=ry(e),ey[e]||e.toUpperCase().charCodeAt(0)}function ry(e){return e=e.toLowerCase(),e=$v[e]||e}var Eae=ny,iy=function(e,t){return ny(e,{byKey:!0},t)},Dae=/^\s+|\s+$/g,Oae=/^[-+]0x[0-9a-f]+$/i,kae=/^0b[01]+$/i,Aae=/^0o[0-7]+$/i,jae=parseInt,Mae=typeof Da==`object`&&Da&&Da.Object===Object&&Da,Nae=typeof self==`object`&&self&&self.Object===Object&&self,Pae=Mae||Nae||Function(`return this`)(),Fae=Object.prototype.toString,Iae=Math.max,Lae=Math.min,ay=function(){return Pae.Date.now()};function oy(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function sy(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Fae.call(e)==`[object Symbol]`}(e))return NaN;if(oy(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=oy(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Dae,``);var n=kae.test(e);return n||Aae.test(e)?jae(e.slice(2),n?2:8):Oae.test(e)?NaN:+e}var cy,ly=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=ay();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Lae(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=ay(),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=sy(t)||0,oy(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Iae(sy(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:_(ay())},v},uy=Oa((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Boolean]`,o=`[object Date]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Map]`,u=`[object Number]`,d=`[object Object]`,f=`[object Promise]`,p=`[object RegExp]`,m=`[object Set]`,h=`[object String]`,g=`[object Symbol]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k=/\w*$/,A=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={};M[i]=M[`[object Array]`]=M[v]=M[y]=M[a]=M[o]=M[b]=M[x]=M[S]=M[C]=M[w]=M[l]=M[u]=M[d]=M[p]=M[m]=M[h]=M[g]=M[T]=M[E]=M[D]=M[O]=!0,M[`[object Error]`]=M[s]=M[_]=!1;var N=typeof Da==`object`&&Da&&Da.Object===Object&&Da,P=typeof self==`object`&&self&&self.Object===Object&&self,F=N||P||Function(`return this`)(),I=t&&!t.nodeType&&t,ee=I&&e&&!e.nodeType&&e,te=ee&&ee.exports===I;function ne(e,t){return e.set(t[0],t[1]),e}function L(e,t){return e.add(t),e}function re(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 ie(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function R(e,t){return function(n){return e(t(n))}}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var se=Array.prototype,ce=Function.prototype,le=Object.prototype,ue=F[`__core-js_shared__`],de=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),fe=ce.toString,pe=le.hasOwnProperty,me=le.toString,he=RegExp(`^`+fe.call(pe).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ge=te?F.Buffer:void 0,_e=F.Symbol,ve=F.Uint8Array,ye=R(Object.getPrototypeOf,Object),be=Object.create,xe=le.propertyIsEnumerable,Se=se.splice,Ce=Object.getOwnPropertySymbols,we=ge?ge.isBuffer:void 0,Te=R(Object.keys,Object),Ee=Ze(F,`DataView`),De=Ze(F,`Map`),Oe=Ze(F,`Promise`),ke=Ze(F,`Set`),Ae=Ze(F,`WeakMap`),je=Ze(Object,`create`),Me=nt(Ee),Ne=nt(De),Pe=nt(Oe),Fe=nt(ke),Ie=nt(Ae),Le=_e?_e.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)&&pe.call(e,`callee`)&&(!xe.call(e,`callee`)||me.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&&!pe.call(e,o)||a&&(o==`length`||et(o,r))||n.push(o);return n}function We(e,t,n){var r=e[t];pe.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,_,A){var j;if(r&&(j=_?r(e,f,_,A):r(e)),j!==void 0)return j;if(!ct(e))return e;var N=it(e);if(N){if(j=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&pe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e,j)}else{var P=$e(e),F=P==s||P==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(P==d||P==i||F&&!_){if(ie(e))return _?e:{};if(j=function(e){return typeof e.constructor!=`function`||tt(e)?{}:(t=ye(e),ct(t)?be(t):{});var t}(F?{}:e),!t)return function(e,t){return Ye(e,Qe(e),t)}(e,function(e,t){return e&&Ye(t,lt(t),e)}(j,e))}else{if(!M[P])return _?e:{};j=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 re(t?n(ae(e),!0):ae(e),ne,new e.constructor)}(e,r,n);case u:case h:return new i(e);case p:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return re(t?n(oe(e),!0):oe(e),L,new e.constructor)}(e,r,n);case g:return function(e){return Re?Object(Re.call(e)):{}}(e)}}(e,P,Ke,t)}}A||=new He;var I=A.get(e);if(I)return I;if(A.set(e,j),!N)var ee=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););}(ee||e,(function(i,a){ee&&(i=e[a=i]),We(j,a,Ke(i,t,n,r,a,e,A))})),j}function qe(e){return!(!ct(e)||function(e){return!!de&&de in e}(e))&&(st(e)||ie(e)?he:A).test(nt(e))}function Je(e){var t=new e.constructor(e.byteLength);return new ve(t).set(new ve(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 pe.call(t,e)?t[e]:void 0},ze.prototype.has=function(e){var t=this.__data__;return je?t[e]!==void 0:pe.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():Se.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(De||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(!De||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ve(r)}return n.set(e,t),this};var Qe=Ce?R(Ce,Object):function(){return[]},$e=function(e){return me.call(e)};function et(e,t){return!!(t??=r)&&(typeof e==`number`||j.test(e))&&e>-1&&e%1==0&&e<t}function tt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||le)}function nt(e){if(e!=null){try{return fe.call(e)}catch{}try{return e+``}catch{}}return``}function rt(e,t){return e===t||e!=e&&t!=t}(Ee&&$e(new Ee(new ArrayBuffer(1)))!=y||De&&$e(new De)!=l||Oe&&$e(Oe.resolve())!=f||ke&&$e(new ke)!=m||Ae&&$e(new Ae)!=_)&&($e=function(e){var t=me.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=we||function(){return!1};function st(e){var t=ct(e)?me.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 Te(e);var t=[];for(var n in Object(e))pe.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return Ke(e,!0,!0)}}));function dy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Rae=0;function zae(e){return`__private_`+Rae+++`_`+e}function Bae(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 fy(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=Bae(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var py=(cy=zae(`apply`),class{constructor(e){Object.defineProperty(this,cy,{value:Vae}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(dy(this,cy)[cy],this):dy(this,cy)[cy](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 fy(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 fy(n,t)}});function Vae(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 my=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:Hae}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},hy=e=>crypto.getRandomValues(new Uint8Array(e)),gy=(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}}},Uae={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)=>gy(e,t,hy),customRandom:gy,urlAlphabet:Hae,random:hy},_y=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 vy(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}vy.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 Wae=/[\/\+\.]/,Gae=function(e,t){function n(t){var n=function(e,t,n){var r=new vy(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,Wae);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},Kae=0;function qae(e){return`__private_`+Kae+++`_`+e}var yy=qae(`publish`),by=class{constructor(){Object.defineProperty(this,yy,{value:Jae}),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,yy)[yy](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function Jae(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}by.VERSION=`2.0.3`;var xy=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)}},Sy={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 Cy(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var Yae=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 wy(e){return e<10?`0${e}`:e.toString()}var Ty=function(){let e=new Date;return`${wy(e.getHours())}:${wy(e.getMinutes())}:${wy(e.getSeconds())}`},Ey={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Ty()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${Ty()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${Ty()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Ty()}]`,...e)}}},Xae={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}`}}},Dy=Uae,Oy,ky;function Ay(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Zae=0;function jy(e){return`__private_`+Zae+++`_`+e}var{nanoid:Qae}=Dy,{justErrorsLogger:$ae,debugLogger:eoe}=Ey,My=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 toe=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},Ny=jy(`plugins`),Py=jy(`storeUnsubscribe`),Fy=jy(`emitter`),Iy=jy(`preProcessors`),Ly=jy(`uploaders`),Ry=jy(`postProcessors`),zy=jy(`checkRestrictions`),By=jy(`checkMinNumberOfFiles`),Vy=jy(`checkRequiredMetaFieldsOnFile`),Hy=jy(`checkRequiredMetaFields`),Uy=jy(`showOrLogErrorAndThrow`),Wy=jy(`assertNewUploadAllowed`),Gy=jy(`checkAndCreateFileStateObject`),Ky=jy(`startIfAutoProceed`),qy=jy(`addListeners`),Jy=jy(`updateOnlineStatus`),Yy=jy(`createUpload`),Xy=jy(`getUpload`),Zy=jy(`removeUpload`),Qy=jy(`runUpload`);Oy=Symbol.for(`uppy test: getPlugins`),ky=Symbol.for(`uppy test: createUpload`);var $y=class{constructor(e){Object.defineProperty(this,Qy,{value:moe}),Object.defineProperty(this,Zy,{value:poe}),Object.defineProperty(this,Xy,{value:foe}),Object.defineProperty(this,Yy,{value:doe}),Object.defineProperty(this,qy,{value:uoe}),Object.defineProperty(this,Ky,{value:loe}),Object.defineProperty(this,Gy,{value:coe}),Object.defineProperty(this,Wy,{value:soe}),Object.defineProperty(this,Uy,{value:ooe}),Object.defineProperty(this,Hy,{value:aoe}),Object.defineProperty(this,Vy,{value:ioe}),Object.defineProperty(this,By,{value:roe}),Object.defineProperty(this,zy,{value:noe}),Object.defineProperty(this,Ny,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Py,{writable:!0,value:void 0}),Object.defineProperty(this,Fy,{writable:!0,value:my()}),Object.defineProperty(this,Iy,{writable:!0,value:new Set}),Object.defineProperty(this,Ly,{writable:!0,value:new Set}),Object.defineProperty(this,Ry,{writable:!0,value:new Set}),Object.defineProperty(this,Jy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Xae;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 by,logger:$ae,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=eoe),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=N_(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Yae(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ay(this,Py)[Py]=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),Ay(this,qy)[qy]()}emit(e){var t=[...arguments].slice(1);Ay(this,Fy)[Fy].emit(e,...t)}on(e,t){return Ay(this,Fy)[Fy].on(e,t),this}once(e,t){return Ay(this,Fy)[Fy].once(e,t),this}off(e,t){return Ay(this,Fy)[Fy].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 py([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){Ay(this,Iy)[Iy].add(e)}removePreProcessor(e){return Ay(this,Iy)[Iy].delete(e)}addPostProcessor(e){Ay(this,Ry)[Ry].add(e)}removePostProcessor(e){return Ay(this,Ry)[Ry].delete(e)}addUploader(e){Ay(this,Ly)[Ly].add(e)}removeUploader(e){return Ay(this,Ly)[Ly].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 Ay(this,zy)[zy](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){Ay(this,Wy)[Wy](e);let{files:t}=this.getState(),n=Ay(this,Gy)[Gy](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}`),Ay(this,Ky)[Ky](),n.id}addFiles(e){Ay(this,Wy)[Wy]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Ay(this,Gy)[Gy](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&&Ay(this,Ky)[Ky](),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=>{let n={...e[t],isPaused:!0};e[t]=n})),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=>{let n={...e[t],isPaused:!1,error:null};e[t]=n})),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=>{let n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit(`retry-all`,t),t.length===0)return Promise.resolve({successful:[],failed:[]});let n=Ay(this,Yy)[Yy](t,{forceAllowNewUpload:!0});return Ay(this,Qy)[Qy](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=Ay(this,Yy)[Yy]([e],{forceAllowNewUpload:!0});return Ay(this,Qy)[Qy](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 Ay(this,Ny)[Ny]?Ay(this,Ny)[Ny][n.type].push(n):Ay(this,Ny)[Ny][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(Ay(this,Ny)[Ny])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[Oy](e){return Ay(this,Ny)[Ny][e]}iteratePlugins(e){Object.values(Ay(this,Ny)[Ny]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=Ay(this,Ny)[Ny][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(),Ay(this,Py)[Py](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,Ay(this,Jy)[Jy]),window.removeEventListener(`offline`,Ay(this,Jy)[Jy]))}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]?Ay(this,Qy)[Qy](e):(Ay(this,Zy)[Zy](e),Promise.reject(Error(`Nonexistent upload`)))}[ky](){return Ay(this,Yy)[Yy](...arguments)}addResultData(e,t){if(!Ay(this,Xy)[Xy](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=Ay(this,Ny)[Ny].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((()=>{Ay(this,By)[By](t),Ay(this,Hy)[Hy](t)})).catch((e=>{Ay(this,Uy)[Uy](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=Ay(this,Yy)[Yy](r);return Ay(this,Qy)[Qy](i)})).catch((e=>{Ay(this,Uy)[Uy](e,{showInformer:!1})})))}};function noe(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 My(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&Gae(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new My(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 My(this.i18n(`exceedsSize`,{size:_y(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new My(this.i18n(`exceedsSize`,{size:_y(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new My(this.i18n(`inferiorSize`,{size:_y(r)}))}function roe(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new My(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function ioe(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 My(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),Ay(this,Uy)[Uy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function aoe(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return Ay(this,Vy)[Vy](t)}));if(t.length)throw new toe(t,`${this.i18n(`missingRequiredMetaField`)}`)}function ooe(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 soe(e){let{allowNewUpload:t}=this.getState();!1===t&&Ay(this,Uy)[Uy](new My(this.i18n(`noMoreFilesAllowed`)),{file:e})}function coe(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?xy(e.name).extension?.toLowerCase():null;return t&&t in Sy?Sy[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=xy(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${Cy(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${Cy(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 My(this.i18n(`noDuplicates`,{fileName:r}));Ay(this,Uy)[Uy](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?Ay(this,Uy)[Uy](new My(`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]));Ay(this,zy)[zy](l,t)}catch(e){Ay(this,Uy)[Uy](e,{file:l})}return l}function loe(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function uoe(){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}),Ay(this,Uy)[Uy](e,{throwErr:!1})}else Ay(this,Uy)[Uy](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:Ay(this,Ry)[Ry].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&&Ay(this,Vy)[Vy](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,Ay(this,Jy)[Jy]),window.addEventListener(`offline`,Ay(this,Jy)[Jy]),setTimeout(Ay(this,Jy)[Jy],3e3))}function doe(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=Qae();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 foe(e){let{currentUploads:t}=this.getState();return t[e]}function poe(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function moe(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...Ay(this,Iy)[Iy],...Ay(this,Ly)[Ly],...Ay(this,Ry)[Ry]];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),Ay(this,Zy)[Zy](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),Ay(this,Zy)[Zy](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}$y.VERSION=`2.1.3`;var eb=$y,hoe=Oa((function(e,t){var n,r,i,a,o,s,c,l,u={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var i,a,o,s={};for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return g(e,s,i,a,null)}function g(e,t,n,a,o){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++i};return o==null&&r.vnode!=null&&r.vnode(s),s}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(t==null)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?y(e):null}function b(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return b(e)}}function x(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||s)(S)}function S(){for(var e;S.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,i,a,o;e.__d&&(a=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=p({},i)).__v=i.__v+1,A(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),j(n,i),i.__e!=a&&b(i)))}))}function C(e,t,n,r,i,a,o,s,c,l){var f,p,m,h,v,b,x,S=r&&r.__k||d,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if((h=n.__k[f]=(h=t[f])==null||typeof h==`boolean`?null:typeof h==`string`||typeof h==`number`||typeof h==`bigint`?g(null,h,null,null,h):Array.isArray(h)?g(_,{children:h},null,null,null):h.__b>0?g(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=S[f])===null||m&&h.key==m.key&&h.type===m.type)S[f]=void 0;else for(p=0;p<C;p++){if((m=S[p])&&h.key==m.key&&h.type===m.type){S[p]=void 0;break}m=null}A(e,h,m||=u,i,a,o,s,c,l),v=h.__e,(p=h.ref)&&m.ref!=p&&(x||=[],m.ref&&x.push(m.ref,null,h),x.push(p,h.__c||v,h)),v==null?c&&m.__e==c&&c.parentNode!=e&&(c=y(m)):(b??=v,typeof h.type==`function`&&h.__k===m.__k?h.__d=c=w(h,c,e):c=T(e,h,m,S,v,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=b,f=C;f--;)S[f]!=null&&(typeof n.type==`function`&&S[f].__e!=null&&S[f].__e==n.__d&&(n.__d=y(r,f+1)),P(S[f],S[f]));if(x)for(f=0;f<x.length;f++)N(x[f],x[++f],x[++f])}function w(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?w(r,t,n):T(n,r,r,i,r.__e,t));return t}function T(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function E(e,t,n){t[0]===`-`?e.setProperty(t,n):e[t]=n==null?``:typeof n!=`number`||f.test(t)?n:n+`px`}function D(e,t,n,r,i){var a;e:if(t===`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||E(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?k:O,a):e.removeEventListener(t,a?k:O,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink[H:h]/,`h`).replace(/sName$/,`s`);else if(t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n!=null&&(!1!==n||t[0]===`a`&&t[1]===`r`)?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function A(e,t,n,i,a,o,s,c,l){var u,d,f,m,h,g,y,b,x,S,w,T=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(u=r.__b)&&u(t);try{e:if(typeof T==`function`){if(b=t.props,x=(u=T.contextType)&&i[u.__c],S=u?x?x.props.value:u.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(b,S):(t.__c=d=new v(b,S),d.constructor=T,d.render=F),x&&x.sub(d),d.props=b,d.state||(d.state={}),d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??(d.__s=d.state),T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,T.getDerivedStateFromProps(b,d.__s))),m=d.props,h=d.state,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,S),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===n.__v){d.props=b,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,S),d.componentDidUpdate!=null&&d.__h.push((function(){d.componentDidUpdate(m,h,g)}))}d.context=S,d.props=b,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=p(p({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===_&&u.key==null?u.props.children:u,C(e,Array.isArray(w)?w:[w],t,n,i,a,o,s,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,i,a,o,s,l);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(l||o!=null)&&(t.__e=c,t.__h=!!l,o[o.indexOf(c)]=null),r.__e(e,t,n)}}function j(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function M(e,t,r,i,a,o,s,c){var l,d,f,p=r.props,h=t.props,g=t.type,_=0;if(g===`svg`&&(a=!0),o!=null){for(;_<o.length;_++)if((l=o[_])&&`setAttribute`in l==!!g&&(g?l.localName===g:l.nodeType===3)){e=l,o[_]=null;break}}if(e==null){if(g===null)return document.createTextNode(h);e=a?document.createElementNS(`http://www.w3.org/2000/svg`,g):document.createElement(g,h.is&&h),o=null,c=!1}if(g===null)p===h||c&&e.data===h||(e.data=h);else{if(o&&=n.call(e.childNodes),d=(p=r.props||u).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(o!=null)for(p={},_=0;_<e.attributes.length;_++)p[e.attributes[_].name]=e.attributes[_].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||``))}if(function(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||D(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||D(e,a,t[a],n[a],r)}(e,h,p,a,c),f)t.__k=[];else if(_=t.props.children,C(e,Array.isArray(_)?_:[_],t,r,i,a&&g!==`foreignObject`,o,s,o?o[0]:r.__k&&y(r,0),c),o!=null)for(_=o.length;_--;)o[_]!=null&&m(o[_]);c||(`value`in h&&(_=h.value)!==void 0&&(_!==p.value||_!==e.value||g===`progress`&&!_)&&D(e,`value`,_,p.value,!1),`checked`in h&&(_=h.checked)!==void 0&&_!==e.checked&&D(e,`checked`,_,p.checked,!1))}return e}function N(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||N(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]&&P(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function F(e,t,n){return this.constructor(e,n)}function I(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],A(t,e=(!a&&i||t).__k=h(_,null,[e]),o||u,u,t.ownerSVGElement!==void 0,!a&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,s,!a&&i?i:o?o.__e:t.firstChild,a),j(s,e)}n=d.slice,r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},i=0,a=function(e){return e!=null&&e.constructor===void 0},v.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state);typeof e==`function`&&(e=e(p({},n),this.props)),e&&p(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),x(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},v.prototype.render=_,o=[],s=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=v,t.Fragment=_,t.cloneElement=function(e,t,r){var i,a,o,s=p({},e.props);for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),g(e.type,s,i||e.key,a||e.ref,null)},t.createContext=function(e,t){var n={__c:t=`__cC`+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=a,t.options=r,t.render=I,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}})),goe=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},tb=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 py([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 nb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var _oe=0;function voe(e){return`__private_`+_oe+++`_`+e}var{render:rb}=hoe,ib=voe(`updateUI`),yoe=class e extends tb{constructor(){super(...arguments),Object.defineProperty(this,ib,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=goe(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return nb(this,ib)[ib]=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)&&(rb(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),rb(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=nb(this,ib))[ib])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:boe}=Ey,ab=eb,xoe=eb,Soe=yoe,Coe=tb,woe=boe;ab.Uppy=xoe,ab.UIPlugin=Soe,ab.BasePlugin=Coe,ab.debugLogger=woe;var ob=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}},sb=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new ob(e)}))},Toe=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},cb,lb,ub,db,fb,Eoe=Toe;function pb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Doe=0;function mb(e){return`__private_`+Doe+++`_`+e}async function hb(e){if(e.status===401)throw new Eoe;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 gb=(lb=mb(`getPostResponseFunc`),ub=mb(`getUrl`),db=mb(`errorHandler`),fb=cb=class e{constructor(e,t){Object.defineProperty(this,db,{value:koe}),Object.defineProperty(this,ub,{value:Ooe}),Object.defineProperty(this,lb,{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(pb(this,ub)[ub](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=>sb(pb(this,ub)[ub](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(pb(this,lb)[lb](t)).then(hb).catch(pb(this,db)[db](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>sb(pb(this,ub)[ub](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(pb(this,lb)[lb](n)).then(hb).catch(pb(this,db)[db](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>sb(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(pb(this,lb)[lb](n)).then(hb).catch(pb(this,db)[db](r,e))}},cb.VERSION=`2.0.4`,cb.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${cb.VERSION}`},fb);function Ooe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function koe(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${pb(this,ub)[ub](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Aoe={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()}))},_b,vb,yb,bb,xb,Sb,Cb;function wb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var joe=0;function Tb(e){return`__private_`+joe+++`_`+e}var Moe=(_b=Tb(`queued`),vb=Tb(`emitter`),yb=Tb(`isOpen`),bb=Tb(`socket`),xb=Tb(`handleMessage`),Sb=Symbol.for(`uppy test: getSocket`),Cb=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,_b,{writable:!0,value:[]}),Object.defineProperty(this,vb,{writable:!0,value:my()}),Object.defineProperty(this,yb,{writable:!0,value:!1}),Object.defineProperty(this,bb,{writable:!0,value:void 0}),Object.defineProperty(this,xb,{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 wb(this,yb)[yb]}[Sb](){return wb(this,bb)[bb]}[Cb](){return wb(this,_b)[_b]}open(){wb(this,bb)[bb]=new WebSocket(this.opts.target),wb(this,bb)[bb].onopen=()=>{for(wb(this,yb)[yb]=!0;wb(this,_b)[_b].length>0&&wb(this,yb)[yb];){let e=wb(this,_b)[_b].shift();this.send(e.action,e.payload)}},wb(this,bb)[bb].onclose=()=>{wb(this,yb)[yb]=!1},wb(this,bb)[bb].onmessage=wb(this,xb)[xb]}close(){var e;(e=wb(this,bb)[bb])==null||e.close()}send(e,t){wb(this,yb)[yb]?wb(this,bb)[bb].send(JSON.stringify({action:e,payload:t})):wb(this,_b)[_b].push({action:e,payload:t})}on(e,t){wb(this,vb)[vb].on(e,t)}emit(e,t){wb(this,vb)[vb].emit(e,t)}once(e,t){wb(this,vb)[vb].once(e,t)}}),Noe={RequestClient:gb,Provider:class extends gb{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||Aoe}},SearchProvider:class extends gb{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:Moe},Eb,Db,Poe=N_((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 Ob(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Foe=0;function kb(e){return`__private_`+Foe+++`_`+e}var Ab=(Eb=kb(`emitter`),Db=kb(`events`),class{constructor(e){Object.defineProperty(this,Eb,{writable:!0,value:void 0}),Object.defineProperty(this,Db,{writable:!0,value:[]}),Ob(this,Eb)[Eb]=e}on(e,t){return Ob(this,Db)[Db].push([e,t]),Ob(this,Eb)[Eb].on(e,t)}remove(){for(let[e,t]of Ob(this,Db)[Db].splice(0))Ob(this,Eb)[Eb].off(e,t)}});function jb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Ioe=0;function Mb(e){return`__private_`+Ioe+++`_`+e}var Nb=Mb(`aliveTimer`),Pb=Mb(`isDone`),Fb=Mb(`onTimedOut`),Ib=Mb(`timeout`),Lb=class{constructor(e,t){Object.defineProperty(this,Nb,{writable:!0,value:void 0}),Object.defineProperty(this,Pb,{writable:!0,value:!1}),Object.defineProperty(this,Fb,{writable:!0,value:void 0}),Object.defineProperty(this,Ib,{writable:!0,value:void 0}),jb(this,Ib)[Ib]=e,jb(this,Fb)[Fb]=t}progress(){jb(this,Pb)[Pb]||jb(this,Ib)[Ib]>0&&(clearTimeout(jb(this,Nb)[Nb]),jb(this,Nb)[Nb]=setTimeout(jb(this,Fb)[Fb],jb(this,Ib)[Ib]))}done(){jb(this,Pb)[Pb]||(clearTimeout(jb(this,Nb)[Nb]),jb(this,Nb)[Nb]=null,jb(this,Pb)[Pb]=!0)}};function Rb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Loe=0;function zb(e){return`__private_`+Loe+++`_`+e}function Roe(){return Error(`Cancelled`)}var Bb=zb(`activeRequests`),Vb=zb(`queuedHandlers`),Hb=zb(`call`),Ub=zb(`queueNext`),Wb=zb(`next`),Gb=zb(`queue`),Kb=zb(`dequeue`);function zoe(e){Rb(this,Bb)[Bb]+=1;let t,n=!1;try{t=e()}catch(e){throw--Rb(this,Bb)[Bb],e}return{abort:()=>{n||(n=!0,--Rb(this,Bb)[Bb],t(),Rb(this,Ub)[Ub]())},done:()=>{n||(n=!0,--Rb(this,Bb)[Bb],Rb(this,Ub)[Ub]())}}}function Boe(){queueMicrotask((()=>Rb(this,Wb)[Wb]()))}function Voe(){if(Rb(this,Bb)[Bb]>=this.limit||Rb(this,Vb)[Vb].length===0)return;let e=Rb(this,Vb)[Vb].shift(),t=Rb(this,Hb)[Hb](e.fn);e.abort=t.abort,e.done=t.done}function Hoe(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{Rb(this,Kb)[Kb](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=Rb(this,Vb)[Vb].findIndex((e=>n.priority>e.priority));return r===-1?Rb(this,Vb)[Vb].push(n):Rb(this,Vb)[Vb].splice(r,0,n),n}function Uoe(e){let t=Rb(this,Vb)[Vb].indexOf(e);t!==-1&&Rb(this,Vb)[Vb].splice(t,1)}var Woe={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Kb,{value:Uoe}),Object.defineProperty(this,Gb,{value:Hoe}),Object.defineProperty(this,Wb,{value:Voe}),Object.defineProperty(this,Ub,{value:Boe}),Object.defineProperty(this,Hb,{value:zoe}),Object.defineProperty(this,Bb,{writable:!0,value:0}),Object.defineProperty(this,Vb,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return Rb(this,Bb)[Bb]<this.limit?Rb(this,Hb)[Hb](e):Rb(this,Gb)[Gb](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=Roe()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},qb,Jb,Yb=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},Goe={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:Koe}=Dy,{Provider:qoe,RequestClient:Joe,Socket:Yoe}=Noe,{RateLimitedQueue:Xoe,internalRateLimitedQueue:Xb}=Woe;function Zb(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})),Yb(e)?(n=new ob(n,e),n):(n.request=e,n)}function Qb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Zoe=(Jb=qb=class extends tb{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=Goe;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 Yb(t)&&(n=new ob(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),this.requests=Xb in this.opts?this.opts[Xb]:new Xoe(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=Qb(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=Qb(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 Ab(this.uppy);let o=new Lb(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=Koe();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=Zb(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=Zb(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?qoe:Joe)(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 Yoe({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 Ab(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=>Poe(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 Lb(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[Xb]||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)}},qb.VERSION=`2.0.6`,Jb),$b=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function ex(e){var t={exports:{}};return e(t,t.exports),t.exports}var tx,nx,rx=function(e){return e&&e.Math==Math&&e},Y=rx(typeof globalThis==`object`&&globalThis)||rx(typeof window==`object`&&window)||rx(typeof self==`object`&&self)||rx(typeof $b==`object`&&$b)||function(){return this}()||Function(`return this`)(),Qoe=Object.defineProperty,ix=function(e,t){try{Qoe(Y,e,{value:t,configurable:!0,writable:!0})}catch{Y[e]=t}return t},ax=Y[`__core-js_shared__`]||ix(`__core-js_shared__`,{}),ox=ex((function(e){(e.exports=function(e,t){return ax[e]||(ax[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),sx=Function.prototype,cx=sx.bind,lx=sx.call,$oe=cx&&cx.bind(lx),ux=cx?function(e){return e&&$oe(lx,e)}:function(e){return e&&function(){return lx.apply(e,arguments)}},ese=Y.TypeError,dx=function(e){if(e==null)throw ese(`Can't call method on `+e);return e},tse=Y.Object,fx=function(e){return tse(dx(e))},nse=ux({}.hasOwnProperty),px=Object.hasOwn||function(e,t){return nse(fx(e),t)},rse=0,ise=Math.random(),ase=ux(1 .toString),mx=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+ase(++rse+ise,36)},hx=function(e){return typeof e==`function`},ose=function(e){return hx(e)?e:void 0},gx=function(e,t){return arguments.length<2?ose(Y[e]):Y[e]&&Y[e][t]},_x=gx(`navigator`,`userAgent`)||``,vx=Y.process,yx=Y.Deno,bx=vx&&vx.versions||yx&&yx.version,xx=bx&&bx.v8;xx&&(nx=(tx=xx.split(`.`))[0]>0&&tx[0]<4?1:+(tx[0]+tx[1])),!nx&&_x&&(!(tx=_x.match(/Edge\/(\d+)/))||tx[1]>=74)&&(tx=_x.match(/Chrome\/(\d+)/))&&(nx=+tx[1]);var Sx=nx,Cx=function(e){try{return!!e()}catch{return!0}},wx=!!Object.getOwnPropertySymbols&&!Cx((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sx&&Sx<41})),Tx=wx&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ex=ox(`wks`),Dx=Y.Symbol,Ox=Dx&&Dx.for,sse=Tx?Dx:Dx&&Dx.withoutSetter||mx,kx=function(e){if(!px(Ex,e)||!wx&&typeof Ex[e]!=`string`){var t=`Symbol.`+e;Ex[e]=wx&&px(Dx,e)?Dx[e]:Tx&&Ox?Ox(t):sse(t)}return Ex[e]},Ax={};Ax[kx(`toStringTag`)]=`z`;var jx=String(Ax)===`[object z]`,Mx=!Cx((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Nx=function(e){return typeof e==`object`?e!==null:hx(e)},Px=Y.document,cse=Nx(Px)&&Nx(Px.createElement),Fx=function(e){return cse?Px.createElement(e):{}},Ix=!Mx&&!Cx((function(){return Object.defineProperty(Fx(`div`),"a",{get:function(){return 7}}).a!=7})),lse=Y.String,use=Y.TypeError,Lx=function(e){if(Nx(e))return e;throw use(lse(e)+` is not an object`)},Rx=Function.prototype.call,zx=Rx.bind?Rx.bind(Rx):function(){return Rx.apply(Rx,arguments)},Bx=ux({}.isPrototypeOf),dse=Y.Object,Vx=Tx?function(e){return typeof e==`symbol`}:function(e){var t=gx(`Symbol`);return hx(t)&&Bx(t.prototype,dse(e))},fse=Y.String,Hx=function(e){try{return fse(e)}catch{return`Object`}},pse=Y.TypeError,Ux=function(e){if(hx(e))return e;throw pse(Hx(e)+` is not a function`)},Wx=function(e,t){var n=e[t];return n==null?void 0:Ux(n)},mse=Y.TypeError,hse=Y.TypeError,gse=kx(`toPrimitive`),Gx=function(e){var t=function(e,t){if(!Nx(e)||Vx(e))return e;var n,r=Wx(e,gse);if(r){if(t===void 0&&(t=`default`),n=zx(r,e,t),!Nx(n)||Vx(n))return n;throw hse(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&hx(n=e.toString)&&!Nx(r=zx(n,e))||hx(n=e.valueOf)&&!Nx(r=zx(n,e))||t!==`string`&&hx(n=e.toString)&&!Nx(r=zx(n,e)))return r;throw mse(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Vx(t)?t:t+``},_se=Y.TypeError,Kx=Object.defineProperty,qx={f:Mx?Kx:function(e,t,n){if(Lx(e),t=Gx(t),Lx(n),Ix)try{return Kx(e,t,n)}catch{}if(`get`in n||`set`in n)throw _se(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Jx=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yx=Mx?function(e,t,n){return qx.f(e,t,Jx(1,n))}:function(e,t,n){return e[t]=n,e},vse=ux(Function.toString);hx(ax.inspectSource)||(ax.inspectSource=function(e){return vse(e)});var Xx,Zx,Qx,$x=ax.inspectSource,eS=Y.WeakMap,tS=hx(eS)&&/native code/.test($x(eS)),nS=ox(`keys`),rS=function(e){return nS[e]||(nS[e]=mx(e))},iS={},aS=Y.TypeError,yse=Y.WeakMap;if(tS||ax.state){var oS=ax.state||=new yse,bse=ux(oS.get),sS=ux(oS.has),xse=ux(oS.set);Xx=function(e,t){if(sS(oS,e))throw new aS(`Object already initialized`);return t.facade=e,xse(oS,e,t),t},Zx=function(e){return bse(oS,e)||{}},Qx=function(e){return sS(oS,e)}}else{var cS=rS(`state`);iS[cS]=!0,Xx=function(e,t){if(px(e,cS))throw new aS(`Object already initialized`);return t.facade=e,Yx(e,cS,t),t},Zx=function(e){return px(e,cS)?e[cS]:{}},Qx=function(e){return px(e,cS)}}var lS={set:Xx,get:Zx,has:Qx,enforce:function(e){return Qx(e)?Zx(e):Xx(e,{})},getterFor:function(e){return function(t){var n;if(!Nx(t)||(n=Zx(t)).type!==e)throw aS(`Incompatible receiver, `+e+` required`);return n}}},uS=Function.prototype,Sse=Mx&&Object.getOwnPropertyDescriptor,dS=px(uS,`name`),fS={EXISTS:dS,PROPER:dS&&function(){}.name===`something`,CONFIGURABLE:dS&&(!Mx||Mx&&Sse(uS,`name`).configurable)},pS=ex((function(e){var t=fS.CONFIGURABLE,n=lS.get,r=lS.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;hx(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!px(a,`name`)||t&&a.name!==d)&&Yx(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Y?l?e[n]=a:ix(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Yx(e,n,a))})(Function.prototype,`toString`,(function(){return hx(this)&&n(this).source||$x(this)}))})),Cse=ux({}.toString),wse=ux(``.slice),mS=function(e){return wse(Cse(e),8,-1)},Tse=kx(`toStringTag`),Ese=Y.Object,Dse=mS(function(){return arguments}())==`Arguments`,hS=jx?mS: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=Ese(e),Tse))==`string`?n:Dse?mS(t):(r=mS(t))==`Object`&&hx(t.callee)?`Arguments`:r},Ose=jx?{}.toString:function(){return`[object `+hS(this)+`]`};jx||pS(Object.prototype,`toString`,Ose,{unsafe:!0});var gS={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},_S=Fx(`span`).classList,vS=_S&&_S.constructor&&_S.constructor.prototype,yS=vS===Object.prototype?void 0:vS,bS=ux(ux.bind),xS=function(e,t){return Ux(e),t===void 0?e:bS?bS(e,t):function(){return e.apply(t,arguments)}},SS=Y.Object,kse=ux(``.split),CS=Cx((function(){return!SS(`z`).propertyIsEnumerable(0)}))?function(e){return mS(e)==`String`?kse(e,``):SS(e)}:SS,Ase=Math.ceil,jse=Math.floor,wS=function(e){var t=+e;return t!=t||t===0?0:(t>0?jse:Ase)(t)},Mse=Math.min,TS=function(e){return e>0?Mse(wS(e),9007199254740991):0},ES=function(e){return TS(e.length)},DS=Array.isArray||function(e){return mS(e)==`Array`},OS=function(){},Nse=[],kS=gx(`Reflect`,`construct`),AS=/^\s*(?:class|function)\b/,Pse=ux(AS.exec),Fse=!AS.exec(OS),jS=function(e){if(!hx(e))return!1;try{return kS(OS,Nse,e),!0}catch{return!1}},MS=!kS||Cx((function(){var e;return jS(jS.call)||!jS(Object)||!jS((function(){e=!0}))||e}))?function(e){if(!hx(e))return!1;switch(hS(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Fse||!!Pse(AS,$x(e))}:jS,Ise=kx(`species`),NS=Y.Array,PS=function(e,t){return new(function(e){var t;return DS(e)&&(t=e.constructor,(MS(t)&&(t===NS||DS(t.prototype))||Nx(t)&&(t=t[Ise])===null)&&(t=void 0)),t===void 0?NS:t}(e))(t===0?0:t)},FS=ux([].push),IS=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=fx(c),h=CS(m),g=xS(l,u),_=ES(h),v=0,y=d||PS,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:FS(b,f)}else switch(e){case 4:return!1;case 7:FS(b,f)}}return a?-1:r||i?i:b}},LS={forEach:IS(0),map:IS(1),filter:IS(2),some:IS(3),every:IS(4),find:IS(5),findIndex:IS(6),filterReject:IS(7)},RS=function(e,t){var n=[][e];return!!n&&Cx((function(){n.call(null,t||function(){throw 1},1)}))},Lse=LS.forEach,zS=RS(`forEach`)?[].forEach:function(e){return Lse(this,e,arguments.length>1?arguments[1]:void 0)},BS=function(e){if(e&&e.forEach!==zS)try{Yx(e,`forEach`,zS)}catch{e.forEach=zS}};for(var VS in gS)gS[VS]&&BS(Y[VS]&&Y[VS].prototype);BS(yS);var HS={}.propertyIsEnumerable,US=Object.getOwnPropertyDescriptor,WS={f:US&&!HS.call({1:2},1)?function(e){var t=US(this,e);return!!t&&t.enumerable}:HS},GS=function(e){return CS(dx(e))},KS=Object.getOwnPropertyDescriptor,qS={f:Mx?KS:function(e,t){if(e=GS(e),t=Gx(t),Ix)try{return KS(e,t)}catch{}if(px(e,t))return Jx(!zx(WS.f,e,t),e[t])}},Rse=Math.max,zse=Math.min,JS=function(e,t){var n=wS(e);return n<0?Rse(n+t,0):zse(n,t)},YS=function(e){return function(t,n,r){var i,a=GS(t),o=ES(a),s=JS(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}},XS={includes:YS(!0),indexOf:YS(!1)},Bse=XS.indexOf,ZS=ux([].push),QS=function(e,t){var n,r=GS(e),i=0,a=[];for(n in r)!px(iS,n)&&px(r,n)&&ZS(a,n);for(;t.length>i;)px(r,n=t[i++])&&(~Bse(a,n)||ZS(a,n));return a},$S=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Vse=$S.concat(`length`,`prototype`),eC={f:Object.getOwnPropertyNames||function(e){return QS(e,Vse)}},tC={f:Object.getOwnPropertySymbols},Hse=ux([].concat),Use=gx(`Reflect`,`ownKeys`)||function(e){var t=eC.f(Lx(e)),n=tC.f;return n?Hse(t,n(e)):t},Wse=function(e,t){for(var n=Use(t),r=qx.f,i=qS.f,a=0;a<n.length;a++){var o=n[a];px(e,o)||r(e,o,i(t,o))}},Gse=/#|\.prototype\./,nC=function(e,t){var n=qse[Kse(e)];return n==Yse||n!=Jse&&(hx(t)?Cx(t):!!t)},Kse=nC.normalize=function(e){return String(e).replace(Gse,`.`).toLowerCase()},qse=nC.data={},Jse=nC.NATIVE=`N`,Yse=nC.POLYFILL=`P`,rC=nC,Xse=qS.f,iC=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]||ix(s,{}):(Y[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Xse(n,r))&&o.value:n[r],!rC(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Wse(a,i)}(e.sham||i&&i.sham)&&Yx(a,`sham`,!0),pS(n,r,a,e)}},aC=Object.keys||function(e){return QS(e,$S)},Zse=Cx((function(){aC(1)}));function oC(e){return Object.prototype.toString.call(e)===`[object Object]`}iC({target:`Object`,stat:!0,forced:Zse},{keys:function(e){return aC(fx(e))}});var Qse={isHistory(e){return!1!==oC(t=e)&&((n=t.constructor)===void 0||!1!==oC(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Pm.isOperationList(e.redos[0]))&&(e.undos.length===0||Pm.isOperationList(e.undos[0]));var t,n,r}},sC=new WeakMap,cC=new WeakMap,lC={isHistoryEditor:e=>Qse.isHistory(e.history)&&H.isEditor(e),isMerging:e=>cC.get(e),isSaving:e=>sC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=lC.isMerging(e);cC.set(e,!1),t(),cC.set(e,n)},withoutSaving(e,t){var n=lC.isSaving(e);sC.set(e,!1),t(),sC.set(e,n)}},$se=Y.String,uC=function(e){if(hS(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return $se(e)},dC=function(){var e=Lx(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},ece=fS.PROPER,fC=RegExp.prototype,pC=fC.toString,tce=ux(dC),nce=Cx((function(){return pC.call({source:`a`,flags:`b`})!=`/a/b`})),rce=ece&&pC.name!=`toString`;(nce||rce)&&pS(RegExp.prototype,`toString`,(function(){var e=Lx(this),t=uC(e.source),n=e.flags;return`/`+t+`/`+uC(n===void 0&&Bx(fC,e)&&!(`flags`in fC)?tce(e):n)}),{unsafe:!0});var mC,ice=Mx?Object.defineProperties:function(e,t){Lx(e);for(var n,r=GS(t),i=aC(t),a=i.length,o=0;a>o;)qx.f(e,n=i[o++],r[n]);return e},hC=gx(`document`,`documentElement`),gC=rS(`IE_PROTO`),_C=function(){},vC=function(e){return`<script>`+e+`<\/script>`},yC=function(e){e.write(vC(``)),e.close();var t=e.parentWindow.Object;return e=null,t},bC=function(){try{mC=new ActiveXObject(`htmlfile`)}catch{}var e,t;bC=typeof document<`u`?document.domain&&mC?yC(mC):((t=Fx(`iframe`)).style.display=`none`,hC.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(vC(`document.F=Object`)),e.close(),e.F):yC(mC);for(var n=$S.length;n--;)delete bC.prototype[$S[n]];return bC()};iS[gC]=!0;var xC=Object.create||function(e,t){var n;return e===null?n=bC():(_C.prototype=Lx(e),n=new _C,_C.prototype=null,n[gC]=e),t===void 0?n:ice(n,t)},SC=kx(`unscopables`),CC=Array.prototype;CC[SC]??qx.f(CC,SC,{configurable:!0,value:xC(null)});var wC=function(e){CC[SC][e]=!0},ace=XS.includes;iC({target:`Array`,proto:!0},{includes:function(e){return ace(this,e,arguments.length>1?arguments[1]:void 0)}}),wC(`includes`);var oce=kx(`match`),TC=function(e){var t;return Nx(e)&&((t=e[oce])===void 0?mS(e)==`RegExp`:!!t)},sce=Y.TypeError,EC=function(e){if(TC(e))throw sce(`The method doesn't accept regular expressions`);return e},cce=kx(`match`),DC=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[cce]=!1,`/./`[e](t)}catch{}}return!1},lce=ux(``.indexOf);iC({target:`String`,proto:!0,forced:!DC(`includes`)},{includes:function(e){return!!~lce(uC(dx(this)),uC(EC(e)),arguments.length>1?arguments[1]:void 0)}});var uce=/"/g,dce=ux(``.replace);iC({target:`String`,proto:!0,forced:Cx((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=uC(dx(this)),r=`<a`,(r+=` name="`+dce(uC(t),uce,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var OC=function(e,t,n){var r,i;Lx(e);try{if(!(r=Wx(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 Lx(r),n},fce=function(e,t,n,r){try{return r?t(Lx(n)[0],n[1]):t(n)}catch(t){OC(e,`throw`,t)}},kC={},pce=kx(`iterator`),mce=Array.prototype,AC=function(e){return e!==void 0&&(kC.Array===e||mce[pce]===e)},jC=function(e,t,n){var r=Gx(t);r in e?qx.f(e,r,Jx(0,n)):e[r]=n},hce=kx(`iterator`),MC=function(e){if(e!=null)return Wx(e,hce)||Wx(e,`@@iterator`)||kC[hS(e)]},gce=Y.TypeError,NC=function(e,t){var n=arguments.length<2?MC(e):t;if(Ux(n))return Lx(zx(n,e));throw gce(Hx(e)+` is not iterable`)},PC=Y.Array,FC=kx(`iterator`),IC=!1;try{var _ce=0,LC={next:function(){return{done:!!_ce++}},return:function(){IC=!0}};LC[FC]=function(){return this},Array.from(LC,(function(){throw 2}))}catch{}var RC=function(e,t){if(!t&&!IC)return!1;var n=!1;try{var r={};r[FC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};iC({target:`Array`,stat:!0,forced:!RC((function(e){Array.from(e)}))},{from:function(e){var t=fx(e),n=MS(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=xS(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=MC(t),p=0;if(!f||this==PC&&AC(f))for(o=ES(t),s=n?new this(o):PC(o);o>p;p++)d=a?i(t[p],p):t[p],jC(s,p,d);else for(u=(l=NC(t,f)).next,s=n?new this:[];!(c=zx(u,l)).done;p++)d=a?fce(l,i,[c.value,p],!0):c.value,jC(s,p,d);return s.length=p,s}});var zC,BC,VC,vce=ux(``.charAt),HC=ux(``.charCodeAt),yce=ux(``.slice),UC=function(e){return function(t,n){var r,i,a=uC(dx(t)),o=wS(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=HC(a,o))<55296||r>56319||o+1===s||(i=HC(a,o+1))<56320||i>57343?e?vce(a,o):r:e?yce(a,o,o+2):i-56320+(r-55296<<10)+65536}},WC={codeAt:UC(!1),charAt:UC(!0)},bce=!Cx((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),GC=rS(`IE_PROTO`),KC=Y.Object,xce=KC.prototype,qC=bce?KC.getPrototypeOf:function(e){var t=fx(e);if(px(t,GC))return t[GC];var n=t.constructor;return hx(n)&&t instanceof n?n.prototype:t instanceof KC?xce:null},JC=kx(`iterator`),YC=!1;[].keys&&(`next`in(VC=[].keys())?(BC=qC(qC(VC)))!==Object.prototype&&(zC=BC):YC=!0),(zC==null||Cx((function(){var e={};return zC[JC].call(e)!==e})))&&(zC={}),hx(zC[JC])||pS(zC,JC,(function(){return this}));var XC={IteratorPrototype:zC,BUGGY_SAFARI_ITERATORS:YC},Sce=qx.f,ZC=kx(`toStringTag`),QC=function(e,t,n){e&&!px(e=n?e:e.prototype,ZC)&&Sce(e,ZC,{configurable:!0,value:t})},Cce=XC.IteratorPrototype,wce=function(){return this},Tce=Y.String,Ece=Y.TypeError,$C=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=ux(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Lx(n),function(e){if(typeof e==`object`||hx(e))return e;throw Ece(`Can't set `+Tce(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Dce=fS.PROPER,Oce=fS.CONFIGURABLE,ew=XC.IteratorPrototype,tw=XC.BUGGY_SAFARI_ITERATORS,nw=kx(`iterator`),kce=function(){return this},rw=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=xC(Cce,{next:Jx(1,n)}),QC(e,i,!1),kC[i]=wce})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!tw&&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[nw]||p[`@@iterator`]||i&&p[i],h=!tw&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=qC(g.call(new e)))!==Object.prototype&&s.next&&(qC(s)!==ew&&($C?$C(s,ew):hx(s[nw])||pS(s,nw,kce)),QC(s,d,!0)),Dce&&i==`values`&&m&&m.name!==`values`&&(Oce?Yx(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)(tw||f||!(l in p))&&pS(p,l,c[l]);else iC({target:t,proto:!0,forced:tw||f},c)}return p[nw]!==h&&pS(p,nw,h,{name:i}),kC[t]=h,c},Ace=WC.charAt,jce=lS.set,Mce=lS.getterFor(`String Iterator`);rw(String,`String`,(function(e){jce(this,{type:`String Iterator`,string:uC(e),index:0})}),(function(){var e,t=Mce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ace(n,r),t.index+=e.length,{value:e,done:!1})}));var iw,Nce=qS.f,aw=ux(``.endsWith),Pce=ux(``.slice),Fce=Math.min,ow=DC(`endsWith`);iC({target:`String`,proto:!0,forced:!!(ow||(iw=Nce(String.prototype,`endsWith`),!iw||iw.writable))&&!ow},{endsWith:function(e){var t=uC(dx(this));EC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:Fce(TS(n),r),a=uC(e);return aw?aw(t,a,i):Pce(t,i-a.length,i)===a}});var Ice=ux([].join),Lce=CS!=Object,Rce=RS(`join`,`,`);iC({target:`Array`,proto:!0,forced:Lce||!Rce},{join:function(e){return Ice(GS(this),e===void 0?`,`:e)}});var zce=kx(`species`),sw=function(e){return Sx>=51||!Cx((function(){var t=[];return(t.constructor={})[zce]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Bce=LS.map;iC({target:`Array`,proto:!0,forced:!sw(`map`)},{map:function(e){return Bce(this,e,arguments.length>1?arguments[1]:void 0)}});var cw=Y.RegExp,lw=Cx((function(){var e=cw(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Vce=lw||Cx((function(){return!cw(`a`,`y`).sticky})),uw={BROKEN_CARET:lw||Cx((function(){var e=cw(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Vce,UNSUPPORTED_Y:lw},dw=Y.RegExp,fw=Cx((function(){var e=dw(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),pw=Y.RegExp,mw=Cx((function(){var e=pw(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),hw=lS.get,gw=ox(`native-string-replace`,String.prototype.replace),_w=RegExp.prototype.exec,vw=_w,yw=ux(``.charAt),bw=ux(``.indexOf),xw=ux(``.replace),Sw=ux(``.slice),Cw=function(){var e=/a/,t=/b*/g;return zx(_w,e,`a`),zx(_w,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),ww=uw.BROKEN_CARET,Tw=/()??/.exec(``)[1]!==void 0;(Cw||Tw||ww||fw||mw)&&(vw=function(e){var t,n,r,i,a,o,s,c=this,l=hw(c),u=uC(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=zx(vw,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=ww&&c.sticky,m=zx(dC,c),h=c.source,g=0,_=u;if(p&&(m=xw(m,`y`,``),bw(m,`g`)===-1&&(m+=`g`),_=Sw(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&yw(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Tw&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),Cw&&(r=c.lastIndex),i=zx(_w,p?n:c,_),p?i?(i.input=Sw(i.input,g),i[0]=Sw(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Cw&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Tw&&i&&i.length>1&&zx(gw,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=xC(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Ew=vw;iC({target:`RegExp`,proto:!0,forced:/./.exec!==Ew},{exec:Ew});var Dw=Function.prototype,Ow=Dw.apply,kw=Dw.bind,Aw=Dw.call,jw=typeof Reflect==`object`&&Reflect.apply||(kw?Aw.bind(Ow):function(){return Aw.apply(Ow,arguments)}),Mw=kx(`species`),Nw=RegExp.prototype,Pw=function(e,t,n,r){var i=kx(e),a=!Cx((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Cx((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Mw]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=ux(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=ux(e),c=t.exec;return c===Ew||c===Nw.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));pS(String.prototype,e,c[0]),pS(Nw,i,c[1])}r&&Yx(Nw[i],`sham`,!0)},Fw=WC.charAt,Iw=function(e,t,n){return t+(n?Fw(e,t).length:1)},Lw=Math.floor,Rw=ux(``.charAt),zw=ux(``.replace),Bw=ux(``.slice),Vw=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hw=/\$([$&'`]|\d{1,2})/g,Uw=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Hw;return i!==void 0&&(i=fx(i),c=Vw),zw(a,c,(function(a,c){var l;switch(Rw(c,0)){case`$`:return`$`;case`&`:return e;case"`":return Bw(t,0,n);case`'`:return Bw(t,o);case`<`:l=i[Bw(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Lw(u/10);return d===0?a:d<=s?r[d-1]===void 0?Rw(c,1):r[d-1]+Rw(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Ww=Y.TypeError,Gw=function(e,t){var n=e.exec;if(hx(n)){var r=zx(n,e,t);return r!==null&&Lx(r),r}if(mS(e)===`RegExp`)return zx(Ew,e,t);throw Ww(`RegExp#exec called on incompatible receiver`)},Kw=kx(`replace`),qw=Math.max,Jw=Math.min,Yw=ux([].concat),Xw=ux([].push),Zw=ux(``.indexOf),Qw=ux(``.slice),$w=`a`.replace(/./,`$0`)===`$0`,eT=!!/./[Kw]&&/./[Kw](`a`,`$0`)===``;Pw(`replace`,(function(e,t,n){var r=eT?`$`:`$0`;return[function(e,n){var r=dx(this),i=e==null?void 0:Wx(e,Kw);return i?zx(i,e,r,n):zx(t,uC(r),e,n)},function(e,i){var a=Lx(this),o=uC(e);if(typeof i==`string`&&Zw(i,r)===-1&&Zw(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=hx(i);c||(i=uC(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Gw(a,o);if(f===null||(Xw(d,f),!l))break;uC(f[0])===``&&(a.lastIndex=Iw(o,TS(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=uC((f=d[g])[0]),v=qw(Jw(wS(f.index),o.length),0),y=[],b=1;b<f.length;b++)Xw(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Yw([_],y,v,o);x!==void 0&&Xw(S,x);var C=uC(jw(i,void 0,S))}else C=Uw(_,o,v,y,x,i);v>=h&&(m+=Qw(o,h,v)+C,h=v+_.length)}return m+Qw(o,h)}]}),!!Cx((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!$w||eT);var tT=function(e,t){return tT=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])},tT(e,t)};function nT(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}tT(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var rT=function(){return rT=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},rT.apply(this,arguments)};function iT(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 aT(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 oT(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var sT=0,cT=function(){this.id=``+sT++},lT=lS.set,uT=lS.getterFor(`Array Iterator`),dT=rw(Array,`Array`,(function(e,t){lT(this,{type:`Array Iterator`,target:GS(e),index:0,kind:t})}),(function(){var e=uT(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`);kC.Arguments=kC.Array,wC(`keys`),wC(`values`),wC(`entries`);var fT=function(e,t,n){for(var r in t)pS(e,r,t[r],n);return e},pT=Y.Array,mT=Math.max,hT=function(e,t,n){for(var r=ES(e),i=JS(t,r),a=JS(n===void 0?r:n,r),o=pT(mT(a-i,0)),s=0;i<a;i++,s++)jC(o,s,e[i]);return o.length=s,o},gT=eC.f,_T=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vT={f:function(e){return _T&&mS(e)==`Window`?function(e){try{return gT(e)}catch{return hT(_T)}}(e):gT(GS(e))}},yT=Cx((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),bT=Object.isExtensible,xT=Cx((function(){bT(1)}))||yT?function(e){return!!Nx(e)&&(!yT||mS(e)!=`ArrayBuffer`)&&(!bT||bT(e))}:bT,ST=!Cx((function(){return Object.isExtensible(Object.preventExtensions({}))})),CT=ex((function(e){var t=qx.f,n=!1,r=mx(`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=eC.f,t=ux([].splice),i={};i[r]=1,e(i).length&&(eC.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},iC({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:vT.f}))},fastKey:function(e,t){if(!Nx(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!px(e,r)){if(!xT(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!px(e,r)){if(!xT(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return ST&&n&&xT(e)&&!px(e,r)&&a(e),e}};iS[r]=!0})),wT=Y.TypeError,TT=function(e,t){this.stopped=e,this.result=t},ET=TT.prototype,DT=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=xS(t,u),h=function(e){return r&&OC(r,`normal`,e),new TT(!0,e)},g=function(e){return d?(Lx(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=MC(e)))throw wT(Hx(e)+` is not iterable`);if(AC(i)){for(a=0,o=ES(e);o>a;a++)if((s=g(e[a]))&&Bx(ET,s))return s;return new TT(!1)}r=NC(e,i)}for(c=r.next;!(l=zx(c,r)).done;){try{s=g(l.value)}catch(e){OC(r,`throw`,e)}if(typeof s==`object`&&s&&Bx(ET,s))return s}return new TT(!1)},OT=Y.TypeError,kT=function(e,t){if(Bx(t,e))return e;throw OT(`Incorrect invocation`)},AT=function(e,t,n){var r,i;return $C&&hx(r=t.constructor)&&r!==n&&Nx(i=r.prototype)&&i!==n.prototype&&$C(e,i),e},jT=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=ux(s[e]);pS(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!Nx(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!Nx(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!Nx(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(rC(e,!hx(o)||!(i||s.forEach&&!Cx((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),CT.enable();else if(rC(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=Cx((function(){d.has(1)})),m=RC((function(e){new o(e)})),h=!i&&Cx((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){kT(e,s);var n=AT(new o,e,c);return t!=null&&DT(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,iC({global:!0,forced:c!=o},l),QC(c,e),i||n.setStrong(c,e,r),c},MT=CT.getWeakData,NT=lS.set,PT=lS.getterFor,FT=LS.find,IT=LS.findIndex,LT=ux([].splice),RT=0,zT=function(e){return e.frozen||=new BT},BT=function(){this.entries=[]},VT=function(e,t){return FT(e.entries,(function(e){return e[0]===t}))};BT.prototype={get:function(e){var t=VT(this,e);if(t)return t[1]},has:function(e){return!!VT(this,e)},set:function(e,t){var n=VT(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=IT(this.entries,(function(t){return t[0]===e}));return~t&&LT(this.entries,t,1),!!~t}};var HT,UT={getConstructor:function(e,t,n,r){var i=e((function(e,i){kT(e,a),NT(e,{type:t,id:RT++,frozen:void 0}),i!=null&&DT(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=PT(t),s=function(e,t,n){var r=o(e),i=MT(Lx(t),!0);return!0===i?zT(r).set(t,n):i[r.id]=n,e};return fT(a,{delete:function(e){var t=o(this);if(!Nx(e))return!1;var n=MT(e);return!0===n?zT(t).delete(e):n&&px(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!Nx(e))return!1;var n=MT(e);return!0===n?zT(t).has(e):n&&px(n,t.id)}}),fT(a,n?{get:function(e){var t=o(this);if(Nx(e)){var n=MT(e);return!0===n?zT(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}},WT=lS.enforce,GT=!Y.ActiveXObject&&`ActiveXObject`in Y,KT=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},qT=jT(`WeakMap`,KT,UT);if(tS&&GT){HT=UT.getConstructor(KT,`WeakMap`,!0),CT.enable();var JT=qT.prototype,YT=ux(JT.delete),XT=ux(JT.has),ZT=ux(JT.get),QT=ux(JT.set);fT(JT,{delete:function(e){if(Nx(e)&&!xT(e)){var t=WT(this);return t.frozen||=new HT,YT(this,e)||t.frozen.delete(e)}return YT(this,e)},has:function(e){if(Nx(e)&&!xT(e)){var t=WT(this);return t.frozen||=new HT,XT(this,e)||t.frozen.has(e)}return XT(this,e)},get:function(e){if(Nx(e)&&!xT(e)){var t=WT(this);return t.frozen||=new HT,XT(this,e)?ZT(this,e):t.frozen.get(e)}return ZT(this,e)},set:function(e,t){if(Nx(e)&&!xT(e)){var n=WT(this);n.frozen||=new HT,XT(this,e)?QT(this,e,t):n.frozen.set(e,t)}else QT(this,e,t);return this}})}var $T=kx(`iterator`),eE=kx(`toStringTag`),tE=dT.values,nE=function(e,t){if(e){if(e[$T]!==tE)try{Yx(e,$T,tE)}catch{e[$T]=tE}if(e[eE]||Yx(e,eE,t),gS[t]){for(var n in dT)if(e[n]!==dT[n])try{Yx(e,n,dT[n])}catch{e[n]=dT[n]}}}};for(var rE in gS)nE(Y[rE]&&Y[rE].prototype,rE);nE(yS,`DOMTokenList`);var iE=new WeakMap,aE=new WeakMap,oE=new WeakMap,sE=new WeakMap,cE=new WeakMap,lE=new WeakMap,uE=new WeakMap,dE=new WeakMap,fE=new WeakMap,pE=new WeakMap,mE=new WeakMap,hE=new WeakMap,gE=new WeakMap,_E=new WeakMap,vE=new WeakMap,yE=new WeakMap,bE=new WeakMap,xE=new WeakMap,SE=new WeakMap,CE=new WeakMap,wE=new WeakMap,TE=new WeakMap,EE=new WeakMap,DE=new WeakMap,OE=new WeakMap,kE=LS.find,AE=!0;`find`in[]&&[,].find((function(){AE=!1})),iC({target:`Array`,proto:!0,forced:AE},{find:function(e){return kE(this,e,arguments.length>1?arguments[1]:void 0)}}),wC(`find`),iC({global:!0},{globalThis:Y});var jE=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];Pg&&(J.fn.css=Pg),Bg&&(J.fn.append=Bg),bg&&(J.fn.addClass=bg),xg&&(J.fn.removeClass=xg),Sg&&(J.fn.hasClass=Sg),Dg&&(J.fn.on=Dg),Zg&&(J.fn.focus=Zg),Cg&&(J.fn.attr=Cg),wg&&(J.fn.removeAttr=wg),Mg&&(J.fn.hide=Mg),Ng&&(J.fn.show=Ng),jg&&(J.fn.offset=jg),kg&&(J.fn.width=kg),Ag&&(J.fn.height=Ag),Hg&&(J.fn.parent=Hg),Ug&&(J.fn.parents=Ug),zg&&(J.fn.is=zg),Tg&&(J.fn.dataset=Tg),Eg&&(J.fn.val=Eg),Rg&&(J.fn.text=Rg),Lg&&(J.fn.html=Lg),Gg&&(J.fn.children=Gg),Kg&&(J.fn.remove=Kg),Wg&&(J.fn.find=Wg),Fg&&(J.fn.each=Fg),qg&&(J.fn.empty=qg);var ME,NE,PE=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},FE=function(e){return IE(e)&&e.nodeType===1},IE=function(e){var t=PE(e);return!!t&&e instanceof t.Node},LE=function(e){var t=e&&e.anchorNode&&PE(e.anchorNode);return!!t&&e instanceof t.Selection},RE=function(e){return IE(e)&&e.nodeType===3},zE=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},BE=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(IE(r=a)&&r.nodeType===8||FE(a)&&a.childNodes.length===0||FE(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]},VE=function(e,t,n){return aT(BE(e,t,n),1)[0]},HE=function e(t){var n,r,i=``;if(RE(t)&&t.nodeValue)return t.nodeValue;if(FE(t)){try{for(var a=iT(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 UE(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||UE(i,t)}}function WE(e){if(e.length===0)return``;var t=e[0];return t.nodeType===ME.ELEMENT_NODE?t.tagName.toLowerCase():``}(NE=ME||={})[NE.ELEMENT_NODE=1]=`ELEMENT_NODE`,NE[NE.TEXT_NODE=3]=`TEXT_NODE`,NE[NE.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,NE[NE.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,NE[NE.COMMENT_NODE=8]=`COMMENT_NODE`,NE[NE.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,NE[NE.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,NE[NE.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 GE=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),KE=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 qE=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),JE=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),YE=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),XE=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var ZE=!YE&&!JE&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=wE.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=CE.get(t);return n||(n=new cT,CE.set(t,n)),n},setNewKey:function(e){var t=new cT;CE.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=vE.get(r);if(i==null){if(H.isEditor(r))return n;break}var a=_E.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 vE.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 U.get(e,n)},toDOMNode:function(e,t){var n;if(H.isEditor(t))n=yE.get(e);else{var r=X.findKey(e,t);n=xE.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=FE(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=G.isBackward(t),a=X.toDOMPoint(e,n),o=G.isCollapsed(t)?a:X.toDOMPoint(e,r),s=X.getWindow(e).document.createRange(),c=aT(i?o:a,2),l=c[0],u=c[1],d=aT(i?a:o,2),f=d[0],p=d[1],m=!!(FE(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(FE(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=aT(H.node(e,t.path),1)[0],o=X.toDOMNode(e,a);H.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=iT(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=FE(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?bE.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(H.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=H.point(e,s,{edge:l?`start`:`end`}),d=l?H.before(e,u):H.after(e,u);if(d)return H.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((LE(t)?t.anchorNode:t.startContainer)&&(LE(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=XE&&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 G.isExpanded(f)&&G.isForward(f)&&FE(a)&&H.void(e,{at:f.focus,mode:`highest`})&&(f=H.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=aT(i?t:function(e){var t,n=aT(e,2),r=n[0],i=n[1];if(FE(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=aT(BE(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;FE(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=VE(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();oT(oT([],aT(ag(g.querySelectorAll(`[data-slate-zero-width]`)))),aT(ag(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`)||KE&&(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 H.hasPath(e,n.path)&&H.hasPath(e,r.path)},getNodeType:function(e){return V.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return U.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=H.nodes(e,{universal:!0});try{for(var a=iT(i),o=a.next();!o.done;o=a.next()){var s=aT(o.value,1)[0];V.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=aT(H.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=aT(H.nodes(e,{match:function(e){return K.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=aT(H.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&aT(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(H.isEnd(e,n.anchor,t)||H.isEnd(e,n.focus,t))},getTextarea:function(e){var t=iE.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return sE.get(e)||null},getHoverbar:function(e){return lE.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=iT(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=H.nodes(e,{match:function(t){return!(!V.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=iT(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];UE(X.toDOMNode(e,p),(function(e,t){var n=J(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=H.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=iT(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||G.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=H.node(e,t);if(n==null)return!1;var r=aT(n,1)[0].children;return r.length===1&&r[0].text===``}},QE=1,$E={},eD={},tD=LS.filter;iC({target:`Array`,proto:!0,forced:!sw(`filter`)},{filter:function(e){return tD(this,e,arguments.length>1?arguments[1]:void 0)}});var nD=`
\v\f\r \xA0               \u2028\u2029`,rD=ux(``.replace),iD=`[`+nD+`]`,aD=RegExp(`^`+iD+iD+`*`),oD=RegExp(iD+iD+`*$`),sD=function(e){return function(t){var n=uC(dx(t));return 1&e&&(n=rD(n,aD,``)),2&e&&(n=rD(n,oD,``)),n}},cD={start:sD(1),end:sD(2),trim:sD(3)},lD=fS.PROPER,uD=cD.trim;iC({target:`String`,proto:!0,forced:function(e){return Cx((function(){return!!nD[e]()||`​…᠎`[e]()!==`​…᠎`||lD&&nD[e].name!==e}))}(`trim`)},{trim:function(){return uD(this)}});var dD=[],fD={};function pD(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var mD,hD,gD,_D,vD=Y.Promise,yD=kx(`species`),bD=function(e){var t=gx(e),n=qx.f;Mx&&t&&!t[yD]&&n(t,yD,{configurable:!0,get:function(){return this}})},xD=Y.TypeError,SD=kx(`species`),CD=function(e,t){var n,r=Lx(e).constructor;return r===void 0||(n=Lx(r)[SD])==null?t:function(e){if(MS(e))return e;throw xD(Hx(e)+` is not a constructor`)}(n)},wD=ux([].slice),TD=/(?:ipad|iphone|ipod).*applewebkit/i.test(_x),ED=mS(Y.process)==`process`,DD=Y.setImmediate,OD=Y.clearImmediate,kD=Y.process,AD=Y.Dispatch,jD=Y.Function,MD=Y.MessageChannel,ND=Y.String,PD=0,FD={};try{mD=Y.location}catch{}var ID=function(e){if(px(FD,e)){var t=FD[e];delete FD[e],t()}},LD=function(e){return function(){ID(e)}},RD=function(e){ID(e.data)},zD=function(e){Y.postMessage(ND(e),mD.protocol+`//`+mD.host)};DD&&OD||(DD=function(e){var t=wD(arguments,1);return FD[++PD]=function(){jw(hx(e)?e:jD(e),void 0,t)},hD(PD),PD},OD=function(e){delete FD[e]},ED?hD=function(e){kD.nextTick(LD(e))}:AD&&AD.now?hD=function(e){AD.now(LD(e))}:MD&&!TD?(_D=(gD=new MD).port2,gD.port1.onmessage=RD,hD=xS(_D.postMessage,_D)):Y.addEventListener&&hx(Y.postMessage)&&!Y.importScripts&&mD&&mD.protocol!==`file:`&&!Cx(zD)?(hD=zD,Y.addEventListener(`message`,RD,!1)):hD=`onreadystatechange`in Fx(`script`)?function(e){hC.appendChild(Fx(`script`)).onreadystatechange=function(){hC.removeChild(this),ID(e)}}:function(e){setTimeout(LD(e),0)});var BD,VD,HD,UD,WD,GD,KD,qD,JD={set:DD,clear:OD},YD=/ipad|iphone|ipod/i.test(_x)&&Y.Pebble!==void 0,XD=/web0s(?!.*chrome)/i.test(_x),ZD=qS.f,QD=JD.set,$D=Y.MutationObserver||Y.WebKitMutationObserver,eO=Y.document,tO=Y.process,nO=Y.Promise,rO=ZD(Y,`queueMicrotask`),iO=rO&&rO.value;iO||(BD=function(){var e,t;for(ED&&(e=tO.domain)&&e.exit();VD;){t=VD.fn,VD=VD.next;try{t()}catch(e){throw VD?UD():HD=void 0,e}}HD=void 0,e&&e.enter()},TD||ED||XD||!$D||!eO?!YD&&nO&&nO.resolve?((KD=nO.resolve(void 0)).constructor=nO,qD=xS(KD.then,KD),UD=function(){qD(BD)}):ED?UD=function(){tO.nextTick(BD)}:(QD=xS(QD,Y),UD=function(){QD(BD)}):(WD=!0,GD=eO.createTextNode(``),new $D(BD).observe(GD,{characterData:!0}),UD=function(){GD.data=WD=!WD}));var aO,oO,sO,cO,lO=iO||function(e){var t={fn:e,next:void 0};HD&&(HD.next=t),VD||(VD=t,UD()),HD=t},uO=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=Ux(t),this.reject=Ux(n)},dO={f:function(e){return new uO(e)}},fO=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},pO=typeof window==`object`,mO=JD.set,hO=kx(`species`),gO=`Promise`,_O=lS.getterFor(gO),vO=lS.set,yO=lS.getterFor(gO),bO=vD&&vD.prototype,xO=vD,SO=bO,CO=Y.TypeError,wO=Y.document,TO=Y.process,EO=dO.f,DO=EO,OO=!!(wO&&wO.createEvent&&Y.dispatchEvent),kO=hx(Y.PromiseRejectionEvent),AO=!1,jO=rC(gO,(function(){var e=$x(xO),t=e!==String(xO);if(!t&&Sx===66)return!0;if(Sx>=51&&/native code/.test(e))return!1;var n=new xO((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[hO]=r,!(AO=n.then((function(){}))instanceof r)||!t&&pO&&!kO})),MO=jO||!RC((function(e){xO.all(e).catch((function(){}))})),NO=function(e){var t;return!(!Nx(e)||!hx(t=e.then))&&t},PO=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;lO((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&&RO(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(CO(`Promise-chain cycle`)):(s=NO(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&&IO(e)}))}},FO=function(e,t,n){var r,i;OO?((r=wO.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Y.dispatchEvent(r)):r={promise:t,reason:n},!kO&&(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)},IO=function(e){zx(mO,Y,(function(){var t,n=e.facade,r=e.value;if(LO(e)&&(t=fO((function(){ED?TO.emit(`unhandledRejection`,r,n):FO(`unhandledrejection`,n,r)})),e.rejection=ED||LO(e)?2:1,t.error))throw t.value}))},LO=function(e){return e.rejection!==1&&!e.parent},RO=function(e){zx(mO,Y,(function(){var t=e.facade;ED?TO.emit(`rejectionHandled`,t):FO(`rejectionhandled`,t,e.value)}))},zO=function(e,t,n){return function(r){e(t,r,n)}},BO=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,PO(e,!0))},VO=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw CO(`Promise can't be resolved itself`);var r=NO(t);r?lO((function(){var n={done:!1};try{zx(r,t,zO(VO,n,e),zO(BO,n,e))}catch(t){BO(n,t,e)}})):(e.value=t,e.state=1,PO(e,!1))}catch(t){BO({done:!1},t,e)}}};if(jO&&(SO=(xO=function(e){kT(this,SO),Ux(e),zx(aO,this);var t=_O(this);try{e(zO(VO,t),zO(BO,t))}catch(e){BO(t,e)}}).prototype,(aO=function(e){vO(this,{type:gO,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=fT(SO,{then:function(e,t){var n=yO(this),r=n.reactions,i=EO(CD(this,xO));return i.ok=!hx(e)||e,i.fail=hx(t)&&t,i.domain=ED?TO.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&PO(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),oO=function(){var e=new aO,t=_O(e);this.promise=e,this.resolve=zO(VO,t),this.reject=zO(BO,t)},dO.f=EO=function(e){return e===xO||e===sO?new oO(e):DO(e)},hx(vD)&&bO!==Object.prototype)){cO=bO.then,AO||(pS(bO,`then`,(function(e,t){var n=this;return new xO((function(e,t){zx(cO,n,e,t)})).then(e,t)}),{unsafe:!0}),pS(bO,`catch`,SO.catch,{unsafe:!0}));try{delete bO.constructor}catch{}$C&&$C(bO,SO)}iC({global:!0,wrap:!0,forced:jO},{Promise:xO}),QC(xO,gO,!1),bD(gO),sO=gx(gO),iC({target:gO,stat:!0,forced:jO},{reject:function(e){var t=EO(this);return zx(t.reject,void 0,e),t.promise}}),iC({target:gO,stat:!0,forced:jO},{resolve:function(e){return function(e,t){if(Lx(e),Nx(t)&&t.constructor===e)return t;var n=dO.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),iC({target:gO,stat:!0,forced:MO},{all:function(e){var t=this,n=EO(t),r=n.resolve,i=n.reject,a=fO((function(){var n=Ux(t.resolve),a=[],o=0,s=1;DT(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=EO(t),r=n.reject,i=fO((function(){var i=Ux(t.resolve);DT(e,(function(e){zx(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var HO=uw.UNSUPPORTED_Y,UO=Math.min,WO=[].push,GO=ux(/./.exec),KO=ux(WO),qO=ux(``.slice);function JO(e){Promise.resolve().then(e)}function YO(e,t){return V.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=H.isVoid(t,e),s=``;o||(s=a.map((function(e){return YO(e,t)})).join(``));var c=function(e){return fD[e]||pD}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||dD.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 dD.forEach((function(t){return r=t(e,r)})),r}(e,t)}function XO(e){return`w-e-element-`+e}Pw(`split`,(function(e,t,n){var 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=uC(dx(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!TC(e))return zx(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=zx(Ew,d,r))&&!((o=d.lastIndex)>u&&(KO(c,qO(r,u,a.index)),a.length>1&&a.index<r.length&&jw(WO,c,hT(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&GO(d,``)||KO(c,``):KO(c,qO(r,u)),c.length>i?hT(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:zx(t,this,e,n)}:t;return[function(t,n){var i=dx(this),a=t==null?void 0:Wx(t,e);return a?zx(a,t,i,n):zx(r,uC(i),t,n)},function(e,i){var a=Lx(this),o=uC(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=CD(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(HO?`g`:`y`),d=new c(HO?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return Gw(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=HO?0:m;var g,_=Gw(d,HO?qO(o,m):o);if(_===null||(g=UO(TS(d.lastIndex+(HO?m:0)),o.length))===p)m=Iw(o,m,l);else{if(KO(h,qO(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(KO(h,_[v]),h.length===f)return h;m=p=g}}return KO(h,qO(o,p)),h}]}),!!Cx((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`})),HO);var ZO=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},QO=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return ZO(r,i)&&ZO(i,r)},$O=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],ek=[],tk=[],nk={},rk=qx.f,ik=eC.f,ak=lS.enforce,ok=kx(`match`),sk=Y.RegExp,ck=sk.prototype,lk=Y.SyntaxError,uk=ux(dC),dk=ux(ck.exec),fk=ux(``.charAt),pk=ux(``.replace),mk=ux(``.indexOf),hk=ux(``.slice),gk=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_k=/a/g,vk=/a/g,yk=new sk(_k)!==_k,bk=uw.MISSED_STICKY,xk=uw.UNSUPPORTED_Y;if(rC(`RegExp`,Mx&&(!yk||bk||fw||mw||Cx((function(){return vk[ok]=!1,sk(_k)!=_k||sk(vk)==vk||sk(_k,`i`)!=`/a/i`}))))){for(var Sk=function(e,t){var n,r,i,a,o,s,c=Bx(ck,this),l=TC(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===Sk)return e;if((l||Bx(ck,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:uk(f))),e=e===void 0?``:uC(e),t=t===void 0?``:uC(t),f=e,fw&&`dotAll`in _k&&(r=!!t&&mk(t,`s`)>-1)&&(t=pk(t,/s/g,``)),n=t,bk&&`sticky`in _k&&(i=!!t&&mk(t,`y`)>-1)&&xk&&(t=pk(t,/y/g,``)),mw&&(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=fk(e,r))===`\\`)t+=fk(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:dk(gk,hk(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||px(o,u))throw new lk(`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=AT(sk(e,t),c?this:ck,Sk),(r||i||d.length)&&(s=ak(o),r&&(s.dotAll=!0,s.raw=Sk(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=fk(e,r))===`\\`?i+=t+fk(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{Yx(o,`source`,f===``?`(?:)`:f)}catch{}return o},Ck=function(e){e in Sk||rk(Sk,e,{configurable:!0,get:function(){return sk[e]},set:function(t){sk[e]=t}})},wk=ik(sk),Tk=0;wk.length>Tk;)Ck(wk[Tk++]);ck.constructor=Sk,Sk.prototype=ck,pS(Y,`RegExp`,Sk)}bD(`RegExp`);var Ek=RegExp(`\xA0`,`g`);function Dk(e){return e.replace(Ek,` `)}function Ok(e,t){var n=e.length;if(n){var r=e[n-1];if(K.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function kk(e,t,n){return{type:`paragraph`,children:[{text:J(e).text().replace(/\s+/gm,` `)}]}}function Ak(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!==ME.ELEMENT_NODE){if(e.nodeType===ME.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=Dk(r),Ok(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(Ok(n,`
`)||n.push({text:`
`}));var i=Mk(J(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 nk)if(e[0].matches(t))return nk[t];return kk}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){H.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),tk.forEach((function(n){r=n(e[0],r,t)})))})),r}function jk(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=Dk(n)};return tk.forEach((function(n){r=n(e[0],r,t)})),r}function Mk(e,t){ek.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=J(r(e[0])))}));var n=WE(e);return n===`span`?e.attr(`data-w-e-type`)?Ak(e,t):jk(e,t):n===`code`?WE(e.parent())===`pre`?Ak(e,t):jk(e,t):$O.includes(n)?jk(e,t):Ak(e,t)}function Nk(e,t,n){var r=J(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function Pk(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=J(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=Mk(J(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Fk=qx.f,Ik=CT.fastKey,Lk=lS.set,Rk=lS.getterFor;jT(`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){kT(e,a),Lk(e,{type:t,index:xC(null),first:void 0,last:void 0,size:0}),Mx||(e.size=0),i!=null&&DT(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Rk(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=Ik(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),Mx?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=Ik(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return fT(a,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Mx?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),Mx?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=xS(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)}}),fT(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)}}),Mx&&Fk(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=Rk(t),a=Rk(r);rw(e,t,(function(e,t){Lk(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),bD(t)}});var zk=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function Bk(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):q.insertNodes(e,t,{mode:`highest`})}var Vk=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=aT(G.edges(n),2),i=r[0],a=r[1],o=H.void(t,{at:i.path}),s=H.void(t,{at:a.path});if(!G.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=aT(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`?`
`:``})),RE(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`,HE(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=iT(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&q.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},Hk=function(e){return e!=null},Uk={object:!0,function:!0,undefined:!0},Wk=/^\s*class[\s{/}]/,Gk=Function.prototype.toString,Kk=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!!Hk(e)&&hasOwnProperty.call(Uk,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!Wk.test(Gk.call(e))},qk=function(e){return e!=null},Jk=Object.keys,Yk=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return Jk(qk(e)?Object(e):e)},Xk=function(e){if(!qk(e))throw TypeError(`Cannot use null or undefined`);return e},Zk=Math.max,Qk=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=Zk(arguments.length,2);for(e=Object(Xk(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)Yk(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},$k=Array.prototype.forEach,eA=Object.create,tA=function(e,t){for(var n in e)t[n]=e[n]},nA=function(e){var t=eA(null);return $k.call(arguments,(function(e){qk(e)&&tA(Object(e),t)})),t},rA=`razdwatrzy`,Hce=String.prototype.indexOf,iA=typeof rA.contains==`function`&&!0===rA.contains(`dwa`)&&!1===rA.contains(`foo`)?String.prototype.contains:function(e){return Hce.call(this,e,arguments[1])>-1},aA=ex((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],Hk(e)?(n=iA.call(e,`c`),r=iA.call(e,`e`),i=iA.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?Qk(nA(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),Hk(t)?Kk(t)?Hk(n)?Kk(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,Hk(e)?(r=iA.call(e,`c`),i=iA.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?Qk(nA(a),o):o}})),oA=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},Uce=ex((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 oA(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 oA(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(oA(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:aA(n),once:aA(r),off:aA(i),emit:aA(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function sA(e){var t=DE.get(e);return t??(t=Uce(),DE.set(e,t)),t}var cA=new WeakMap;function lA(e,t){var n=cA.get(e);n??(n=new Set,cA.set(e,n)),n.add(t)}function Wce(e){return cA.get(e)||new Set}function Gce(e){cA.set(e,new Set)}function uA(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 dA(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=uA(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 fA(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=V.isElement(t)&&e.isVoid(t),a=V.isElement(t)&&e.isInline(t),o=SE.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(jE.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=uA(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 pA(e,t){JO((function(){var n=uA(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 Kce=sw(`slice`),qce=kx(`species`),mA=Y.Array,Jce=Math.max;iC({target:`Array`,proto:!0,forced:!Kce},{slice:function(e,t){var n,r,i,a=GS(this),o=ES(a),s=JS(e,o),c=JS(t===void 0?o:t,o);if(DS(a)&&(n=a.constructor,(MS(n)&&(n===mA||DS(n.prototype))||Nx(n)&&(n=n[qce])===null)&&(n=void 0),n===mA||n===void 0))return wD(a,s,c);for(r=new(n===void 0?mA:n)(Jce(c-s,0)),i=0;s<c;s++,i++)s in a&&jC(r,i,a[s]);return r.length=i,r}});var Yce=qS.f,hA=ux(``.startsWith),Xce=ux(``.slice),Zce=Math.min,gA=DC(`startsWith`);iC({target:`String`,proto:!0,forced:!(!gA&&function(){var e=Yce(String.prototype,`startsWith`);return e&&!e.writable}())&&!gA},{startsWith:function(e){var t=uC(dx(this));EC(e);var n=TS(Zce(arguments.length>1?arguments[1]:void 0,t.length)),r=uC(e);return hA?hA(t,r,n):Xce(t,n,n+r.length)===r}});var _A=Object.assign,vA=Object.defineProperty,Qce=ux([].concat),yA=!_A||Cx((function(){if(Mx&&_A({b:1},_A(vA({},`a`,{enumerable:!0,get:function(){vA(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})),_A({},e)[n]!=7||aC(_A({},t)).join(``)!=r}))?function(e,t){for(var n=fx(e),r=arguments.length,i=1,a=tC.f,o=WS.f;r>i;)for(var s,c=CS(arguments[i++]),l=a?Qce(aC(c),a(c)):aC(c),u=l.length,d=0;u>d;)s=l[d++],Mx&&!zx(o,c,s)||(n[s]=c[s]);return n}:_A;iC({target:`Object`,stat:!0,forced:Object.assign!==yA},{assign:yA});var $ce=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function bA(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(!$ce.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=Cae(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`&&bA(e)}))}var xA=[],SA={};function ele(e,t,n){return fv(n.isInline(e)?`span`:`div`,null,t)}function CA(e,t){return t===void 0&&(t=!1),fv(`span`,{"data-slate-string":!0},t?e+`
`:e)}function wA(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),fv(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?fv(`br`,null):null)}function TA(e,t,n,r){return _E.set(e,t),vE.set(e,n),V.isElement(e)?function(e,t){var n,r=X.findKey(t,e),i=t.isInline(e),a=H.isVoid(t,e),o=XO(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 SA[e]||ele}(c);n=a?null:u.map((function(n,r){return TA(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=aT(aT(U.texts(e),1)[0],1)[0],h=fv(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},TA(m,0,e,t));f=fv(p,{style:{position:`relative`}},f,h),_E.set(m,0),vE.set(m,e)}return f.data??(f.data={}),Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return xA.forEach((function(r){n=r(e,t)})),n}(e,f)),JO((function(){var t=zE(o);t!=null&&(xE.set(r,t),SE.set(e,t),bE.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=K.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=W.parent(o);if(H.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?wA(U.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||H.string(i,s)!==``?a===``?wA():t&&a.slice(-1)===`
`?CA(a,!0):CA(a):wA(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return xA.forEach((function(t){n=t(e,n)})),n}(r,a),fv(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=fv(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return JO((function(){var t=zE(c);t!=null&&(xE.set(r,t),SE.set(e,t),bE.set(t,e))})),l}(e,n,r)}function tle(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),K_(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=TA(e,n,t,t);return bA(r),r}));var l=mE.get(e);if(l??=!0,l){var u=function(e,t){return J(`<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=W_([X_,av,uv,$_,rv,J_]))(n,c),mE.set(e,!1),hE.set(e,f)}else{var d=gE.get(e),f=hE.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=zE(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=PE(n);p&&wE.set(t,p)}yE.set(t,n),SE.set(t,n),bE.set(n,t),gE.set(e,c)}}function EA(e){return typeof e==`object`&&!!e&&e.nodeType===1}function DA(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function OA(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return DA(n.overflowY,t)||DA(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 kA(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 AA(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(!EA(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;EA(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&OA(d)&&!OA(document.documentElement)||d!=null&&OA(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),_=g.height,v=g.width,y=g.top,b=g.right,x=g.bottom,S=g.left,C=i===`start`||i===`nearest`?y:i===`end`?x:y+_/2,w=a===`center`?S+v/2:a===`end`?b:S,T=[],E=0;E<u.length;E++){var D=u[E],O=D.getBoundingClientRect(),k=O.height,A=O.width,j=O.top,M=O.right,N=O.bottom,P=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=j&&x<=N&&S>=P&&b<=M)return T;var F=getComputedStyle(D),I=parseInt(F.borderLeftWidth,10),ee=parseInt(F.borderTopWidth,10),te=parseInt(F.borderRightWidth,10),ne=parseInt(F.borderBottomWidth,10),L=0,re=0,ie=`offsetWidth`in D?D.offsetWidth-D.clientWidth-I-te:0,ae=`offsetHeight`in D?D.offsetHeight-D.clientHeight-ee-ne:0;if(l===D)L=i===`start`?C:i===`end`?C-p:i===`nearest`?kA(h,h+p,p,ee,ne,h+C,h+C+_,_):C-p/2,re=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:kA(m,m+f,f,I,te,m+w,m+w+v,v),L=Math.max(0,L+h),re=Math.max(0,re+m);else{L=i===`start`?C-j-ee:i===`end`?C-N+ne+ae:i===`nearest`?kA(j,N,k,ee,ne+ae,C,C+_,_):C-(j+k/2)+ae/2,re=a===`start`?w-P-I:a===`center`?w-(P+A/2)+ie/2:a===`end`?w-M+te+ie:kA(P,M,A,I,te+ie,w,w+v,v);var R=D.scrollLeft,oe=D.scrollTop;C+=oe-(L=Math.max(0,Math.min(oe+L,D.scrollHeight-k+ae))),w+=R-(re=Math.max(0,Math.min(R+re,D.scrollWidth-A+ie)))}T.push({el:D,top:L,left:re})}return T}function jA(e){return e===Object(e)&&Object.keys(e).length!==0}function MA(e,t){return IE(t)&&X.hasDOMNode(e,t,{editable:!0})}function NA(e,t){if(e.getConfig().readOnly)return!1;var n=PA(e,t)&&X.toSlateNode(e,t);return H.isVoid(e,n)}function PA(e,t){return IE(t)&&X.hasDOMNode(e,t)}function FA(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=yE.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&&G.equals(l,r)){var u=!0;if(G.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){G.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(jA(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:AA(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:jA(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)}))})(AA(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&&KE&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var IA=new WeakMap,LA=new WeakMap,nle={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`},rle={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`},ile={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},RA=function(e){var t=nle[e],n=rle[e],r=ile[e],i=t&&iy(t),a=n&&iy(n),o=r&&iy(r);return function(e){return!(!i||!i(e))||!!(GE&&a&&a(e))||!(GE||!o||!o(e))}},zA={isBold:RA(`bold`),isCompose:RA(`compose`),isMoveBackward:RA(`moveBackward`),isMoveForward:RA(`moveForward`),isDeleteBackward:RA(`deleteBackward`),isDeleteForward:RA(`deleteForward`),isDeleteLineBackward:RA(`deleteLineBackward`),isDeleteLineForward:RA(`deleteLineForward`),isDeleteWordBackward:RA(`deleteWordBackward`),isDeleteWordForward:RA(`deleteWordForward`),isExtendBackward:RA(`extendBackward`),isExtendForward:RA(`extendForward`),isExtendLineBackward:RA(`extendLineBackward`),isExtendLineForward:RA(`extendLineForward`),isItalic:RA(`italic`),isMoveLineBackward:RA(`moveLineBackward`),isMoveLineForward:RA(`moveLineForward`),isMoveWordBackward:RA(`moveWordBackward`),isMoveWordForward:RA(`moveWordForward`),isRedo:RA(`redo`),isSplitBlock:RA(`splitBlock`),isTransposeCharacter:RA(`transposeCharacter`),isUndo:RA(`undo`),isTab:RA(`tab`),isSelectAll:RA(`selectAll`)};function BA(e){e.preventDefault()}var ale={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(ZE&&!i&&MA(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=aT(r.getTargetRanges(),1)[0];if(c){var l=X.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&G.equals(a,l)||q.select(n,l)}}if(a&&G.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;H.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:H.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:H.deleteForward(n);break;case`deleteContentBackward`:H.deleteBackward(n);break;case`deleteEntireSoftLine`:H.deleteBackward(n,{unit:`line`}),H.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:H.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:H.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:H.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:H.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:H.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:H.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:H.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!OE.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&H.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&MA(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||FE(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&IE(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(V.isElement(c)&&!n.isVoid(c))return}qE&&o.getSelection()?.removeAllRanges(),TE.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,KE&&e.target!==r?r.focus():TE.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&PA(n,e.target)&&IE(e.target)){var r=X.toSlateNode(n,e.target),i=X.findPath(n,r);if(H.hasPath(n,i)&&U.get(n,i)===r){var a=H.start(n,i),o=H.end(n,i),s=H.void(n,{at:a}),c=H.void(n,{at:o});if(s&&c&&W.equals(s[1],c[1])){var l=H.range(n,a);q.select(n,l)}}}},compositionstart:function(e,t,n){if(MA(n,e.target)){var r=n.selection;if(r&&G.isExpanded(r)&&(H.deleteFragment(n),Promise.resolve().then((function(){FA(t,n,!0)}))),r&&G.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;IA.set(n,a),LA.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(MA(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(XE||KE)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=G.isBackward(i)?i.focus:i.anchor,o=aT(H.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=aT(H.node(n,a.path.slice(0,s+1)),1)[0];if(V.isElement(c)&&((qE||KE)&&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=IA.get(n)||``,u>0&&H.insertText(n,l.slice(0,u)),t.changeViewState()):H.insertText(n,l)}else H.insertText(n,l);qE||setTimeout((function(){var e=n.selection;if(e!=null){var t=LA.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=IA.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){MA(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&MA(n,r.target)){if(function(e,t){var n=sE.get(e),r=n&&n.getMenus(),i=lE.get(e),a=i&&i.getMenus(),o=rT(rT({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&Eae(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),zA.isTab(r))return BA(r),void n.handleTab();if(zA.isRedo(r))return BA(r),void(typeof n.redo==`function`&&n.redo());if(zA.isUndo(r))return BA(r),void(typeof n.undo==`function`&&n.undo());if(zA.isMoveLineBackward(r))return BA(r),void q.move(n,{unit:`line`,reverse:!0});if(zA.isMoveLineForward(r))return BA(r),void q.move(n,{unit:`line`});if(zA.isExtendLineBackward(r))return BA(r),void q.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(zA.isExtendLineForward(r))return BA(r),void q.move(n,{unit:`line`,edge:`focus`});if(zA.isMoveBackward(r))return BA(r),void(i&&G.isCollapsed(i)?q.move(n,{reverse:!0}):q.collapse(n,{edge:`start`}));if(zA.isMoveForward(r))return BA(r),void(i&&G.isCollapsed(i)?q.move(n):q.collapse(n,{edge:`end`}));if(zA.isMoveWordBackward(r))return BA(r),i&&G.isExpanded(i)&&q.collapse(n,{edge:`focus`}),void q.move(n,{unit:`word`,reverse:!0});if(zA.isMoveWordForward(r))return BA(r),i&&G.isExpanded(i)&&q.collapse(n,{edge:`focus`}),void q.move(n,{unit:`word`});if(zA.isSelectAll(r))return BA(r),void n.selectAll();if(ZE){if((XE||qE)&&i&&(zA.isDeleteBackward(r)||zA.isDeleteForward(r))&&G.isCollapsed(i)){var a=U.parent(n,i.anchor.path);if(V.isElement(a)&&H.isVoid(n,a)&&H.isInline(n,a))return r.preventDefault(),void q.delete(n,{unit:`block`})}}else{if(zA.isBold(r)||zA.isItalic(r)||zA.isTransposeCharacter(r))return void BA(r);if(zA.isSplitBlock(r))return BA(r),void H.insertBreak(n);if(zA.isDeleteBackward(r))return BA(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`backward`}):H.deleteBackward(n));if(zA.isDeleteForward(r))return BA(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`forward`}):H.deleteForward(n));if(zA.isDeleteLineBackward(r))return BA(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`backward`}):H.deleteBackward(n,{unit:`line`}));if(zA.isDeleteLineForward(r))return BA(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`forward`}):H.deleteForward(n,{unit:`line`}));if(zA.isDeleteWordBackward(r))return BA(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`backward`}):H.deleteBackward(n,{unit:`word`}));if(zA.isDeleteWordForward(r))return BA(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`forward`}):H.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!ZE&&!n.getConfig().readOnly&&MA(n,e.target)){e.preventDefault();var r=e.key;H.insertText(n,r)}},copy:function(e,t,n){var r=e;if(MA(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&&MA(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i)){if(G.isExpanded(i))H.deleteFragment(n);else{var o=U.parent(n,i.anchor.path);H.isVoid(n,o)&&q.delete(n)}}}},paste:function(e,t,n){OE.set(n,!0);var r=e;if(!n.getConfig().readOnly&&MA(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void OE.set(n,!1);if(!ZE||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(PA(n,e.target)){var r=X.toSlateNode(n,e.target);H.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(PA(n,r.target)&&!n.getConfig().readOnly){var i=X.toSlateNode(n,r.target),a=X.findPath(n,i);if(H.isVoid(n,i)||H.void(n,{at:a,voids:!0})){var o=H.range(n,a);q.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&&PA(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&PA(n,r.target)&&i!=null&&!(ZE&&qE&&i.files.length>0)){r.preventDefault();var a=n.selection,o=X.findEventRange(n,r);q.select(n,o),t.isDraggingInternally&&=(a&&q.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},ole=1,sle=function(){function e(e){var t=this;this.id=ole++,this.$textArea=null,this.$progressBar=J(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=J(`<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=N_((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,TE.set(t,!0)):TE.delete(t),!c)return q.deselect(t);var l=c.anchorNode,u=c.focusNode,d=MA(t,l)||NA(t,l),f=MA(t,u)||NA(t,u);if(d&&f){var p=X.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});q.select(t,p)}else q.deselect(t)}})(t,t.editorInstance)}),100);var n=J(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=J(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=J(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,JO((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=aE.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&&(g_(ale,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,N_((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;tle(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=J(`<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),JO((function(){FA(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function VA(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&&VA(t)}function HA(){return J(`<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 UA(){return J(`<div class="w-e-bar-divider"></div>`)}function WA(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=GE?`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`)}}}Pw(`match`,(function(e,t,n){return[function(t){var n=dx(this),r=t==null?void 0:Wx(t,e);return r?zx(r,t,n):new RegExp(t)[e](uC(n))},function(e){var r=Lx(this),i=uC(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return Gw(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=Gw(r,i))!==null;){var u=uC(s[0]);c[l]=u,u===``&&(r.lastIndex=Iw(i,TS(r.lastIndex),o)),l++}return l===0?null:c}]}));var GA=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=J(`<div class="w-e-bar-item"></div>`),this.$button=J(`<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=J(u);VA(f),d.append(f)}else d.text(o);WA(d,u,o,c,n),n&&u&&d.append(J(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),JO((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),ZA(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=ZA(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=ZA(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=ZA(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}(),cle=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return nT(t,e),t.prototype.onButtonClick=function(){},t}(GA),KA=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=dE.get(e);t??(t=new Set,dE.set(e,t)),t.add(this),fE.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=fE.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=fE.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),lle=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=J(`<div class="w-e-drop-panel"></div>`),n}return nT(t,e),t.prototype.genSelfElem=function(){return null},t}(KA),ule=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=HA();i.$button.append(a)}return i}return nT(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=ZA(this);if(this.dropPanel==null){var n=new lle(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}(GA),dle=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=J(`<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 nT(t,e),t.prototype.genSelfElem=function(){var e=this,t=J(`<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=fE.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}(KA);function qA(e,t,n){var r=J(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=J(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function JA(e,t){var n=J(`<div class="button-container"></div>`),r=J(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var fle=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=J(`body`),i.modal=null,i.menu=n,i}return nT(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=ZA(this),t=this.menu.getModalPositionNode(e);return V.isElement(t)?fA(e,t,`modal`):dA(e)},t.prototype.handleModal=function(){var e=ZA(this),t=this.menu;if(this.modal==null){var n=new dle(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=ZA(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||pA(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(GA),ple=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=J(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return nT(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=J(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=J(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=J(`<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(J(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(KA),mle=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=J(`<div class="w-e-bar-item"></div>`),this.$button=J(`<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),WA(d,c,a,u,n),this.$elem.append(d),this.menu=t,JO((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),ZA(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=ZA(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new ple(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=J(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=ZA(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=ZA(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=HA();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=ZA(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}(),YA=function(){function e(e){this.$elem=J(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=J(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=J(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=J(n);VA(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=HA();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){J(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),XA=new WeakMap;function ZA(e){var t=uE.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function QA(e,t,n){n===void 0&&(n=!1);var r=XA.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new ule(e,t,n):o?new fle(e,t,n):new cle(e,t,n)}if(i===`select`&&(r=new mle(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return XA.set(t,r),r}function hle(e,t){var n=e.selection;return n!=null&&!G.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}))&&!!K.isText(t)}var gle=function(){function e(){var e=this;this.$elem=J(`<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=ly((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&&V.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),JO((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;JO((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=UA();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=eD[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=QA(e,r);this.hoverbarItems.push(a),uE.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),V.isElement(e)){var r=fA(t,e,`bar`);n.css(r),pA(t,n)}else{if(K.isText(e))return r=dA(t),n.css(r),void pA(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=aT(H.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=cE.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=hle),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 W.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function $A(e,t,n,r){if(_E.set(e,t),vE.set(e,n),V.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return $A(t,n,e,r)})),H.isVoid(r,e)){var a=aT(aT(U.texts(e),1)[0],1)[0];_E.set(a,0),vE.set(a,e)}}}function _le(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];lC.withoutSaving(t,(()=>{H.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];lC.withoutSaving(t,(()=>{H.withoutNormalizing(t,(()=>{for(var e of r.map(Pm.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=lC.isSaving(t),u=lC.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||!W.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!W.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<U.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)<U.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===ME.TEXT_NODE?e+(t.textContent||``):n===ME.ELEMENT_NODE?zk.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=sA(t);if(r.on(e,n),e===`destroyed`&&lA(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),lA(t,i)}},t.once=function(e,n){sA(t).once(e,n)},t.off=function(e,n){sA(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=sA(t);r.emit.apply(r,oT([e],aT(n))),e===`destroyed`&&(Wce(t).forEach((function(e){return r.off(`destroyed`,e)})),Gce(t))},t}(function(e){var t=e;return t.select=function(e){q.select(t,e)},t.deselect=function(){var n=t.selection,r=X.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&q.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||q.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=EE.get(t);e!=null&&(t.focus(),q.select(t,e))},t.getSelectionPosition=function(){return dA(t)},t.getNodePosition=function(e){return fA(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=aT(G.edges(e),2),r=n[0],i=n[1],a=aT(H.edges(t,[]),2),o=a[0],s=a[1];return!(!Lm.equals(r,o)||!Lm.equals(i,s))},t.selectAll=function(){var e=H.start(t,[]),n=H.end(t,[]);q.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=iT(H.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=aT(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=iT(H.levels(t,{at:W.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=aT(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=iT(H.levels(t,{at:W.common(W.parent(e.path),W.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=aT(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=iT(d),T=w.next();!T.done;T=w.next()){var E=aT(T.value,2);g=E[0],_=E[1],h=aT(H.node(t,g),1)[0],CE.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&&G.isCollapsed(e.selection)){var r=H.above(e,{match:function(t){return H.isBlock(e,t)},at:e.selection});if(r){var i=aT(r,2)[1],o=function(e,t){var n=H.range(e,G.end(t)),r=Array.from(H.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(QO(e,H.range(e,r[i]),n))return H.range(e,r[i],n);if(r.length<2)return H.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)QO(e,H.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return H.range(e,r[a],n)}(t,H.range(e,i,e.selection.anchor));G.isCollapsed(o)||q.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&EE.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 YO(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return U.string(e)})).join(`
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:H.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=H.nodes(t,{at:[],universal:!0});try{for(var s=iT(o),c=s.next();!c.done;c=s.next()){var l=aT(c.value,1)[0];if(V.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=XO(X.findKey(t,l).id);a.push(rT(rT({},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(V.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||K.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){q.delete(t,{at:{anchor:H.start(t,[]),focus:H.end(t,[])}}),t.children.length===0&&q.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===ME.TEXT_NODE||t===ME.ELEMENT_NODE&&!zk.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!==ME.TEXT_NODE){if(r!==`BR`){var o=e,c=!1;if($O.includes(r.toLowerCase()))c=!0;else for(var l in nk)if(o.matches(l)){c=!0;break}if(c){var u=Mk(J(o),t);Array.isArray(u)?(u.forEach((function(e){return Bk(t,e)})),s++):(Bk(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)&&q.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=Pk(t,e);if(q.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(H.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in eD)e.push(t);return e},t.getConfig=function(){var e=pE.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=Vk(Aie());return t.id=`wangEditor-`+QE++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),TE.set(t,!0),e){var n=H.end(t,[]);q.select(t,n)}else{var r=EE.get(t);r?q.select(t,r):q.select(t,H.start(t,[]))}},t.isFocused=function(){return!!TE.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),q.deselect(t),TE.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(),iE.delete(t),aE.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),sE.delete(t),oE.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),lE.delete(t),cE.delete(r)),t.isDestroyed=!0,t.emit(`destroyed`)}},t.scrollToElem=function(e){if(t.getConfig().scroll){var n=J(`#`+e);if(n.length!==0){var r=n[0];if(!X.hasDOMNode(t,r))return l=`Element (found by id is '`+e+`') is not in editor DOM`,l+=`
通过 id '`+e+`' 找到的 element 不在 editor DOM 之内`,void console.error(l,r);var i=X.getTextarea(t),a=i.$textAreaContainer,o=i.$scroll,s=n.offset().top,c=a.offset().top;o[0].scrollBy({top:s-c,behavior:`smooth`})}}else{var l=`编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能`;l+=`
You has disabled editor scroll, please do this yourself`,console.warn(l)}},t.showProgressBar=function(e){e<1||X.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){dE.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 Nk(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=uy($E),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return g_(t,(function(e,t){n[t]=rT(rT({},e),i[t]||{})})),delete e.MENU_CONF,rT({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);pE.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=Pk(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 sle(n);iE.set(l,p),aE.set(p,l),p.changeViewState(),JO((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 gle,cE.set(m,l),lE.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return $A(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)})),JO((function(){return l.emit(`created`)})),l}var vle=sw(`splice`),yle=Y.TypeError,ble=Math.max,xle=Math.min;iC({target:`Array`,proto:!0,forced:!vle},{splice:function(e,t){var n,r,i,a,o,s,c=fx(this),l=ES(c),u=JS(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=xle(ble(wS(t),0),l-u)),l+n-r>9007199254740991)throw yle(`Maximum allowed length exceeded`);for(i=PS(c,r),a=0;a<r;a++)(o=u+a)in c&&jC(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 Sle=function(){function e(e,t){var n=this;this.$toolbar=J(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=ly((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=J(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),JO((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=uy(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=UA();n.append(a),t=r}else{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 YA(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 YA,i=this.menus,a=i[e];if(a==null){var o=eD[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=QA(e,a,r);this.toolbarItems.push(s),uE.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=oE.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}(),Cle=fS.EXISTS,wle=qx.f,ej=Function.prototype,Tle=ux(ej.toString),tj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ele=ux(tj.exec);function nj(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=aT(e.split(`#`),2),r=n[0],i=n[1],a=[];g_(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 ab({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(Zoe,{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 rj(e){return rj=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},rj(e)}function Dle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ij(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){Dle(e,t,n[t])}))}return e}function aj(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oj(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 sj(e,t,n){return t&&oj(e.prototype,t),n&&oj(e,n),e}function cj(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lj(e,t){if(t&&(rj(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return cj(e)}function uj(e){return uj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uj(e)}function dj(e,t){return dj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dj(e,t)}function fj(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&&dj(e,t)}Mx&&!Cle&&wle(ej,`name`,{configurable:!0,get:function(){try{return Ele(tj,Tle(this))[1]}catch{return``}}});var Ole={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)}},pj=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};aj(this,e),this.init(t,n)}return sj(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||Ole,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,ij({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),mj=function(){function e(){aj(this,e),this.observers={}}return sj(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 hj(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function gj(e){return e==null?``:``+e}function kle(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function _j(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 vj(e,t,n){var r=_j(e,t,Object);r.obj[r.k]=n}function yj(e,t){var n=_j(e,t),r=n.obj,i=n.k;if(r)return r[i]}function bj(e,t,n){var r=yj(e,n);return r===void 0?yj(t,n):r}function xj(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]):xj(e[r],t[r],n):e[r]=t[r]);return e}function Sj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var Ale={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function jle(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return Ale[e]})):e}var Cj=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function wj(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?wj(c,l,n):void 0}i=i[r[a]]}return i}}var Mle=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return aj(this,t),n=lj(this,uj(t).call(this)),Cj&&mj.call(cj(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 fj(t,mj),sj(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=yj(this.data,o);return s||!a||typeof n!=`string`?s:wj(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),vj(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=yj(this.data,o)||{};r?xj(s,n,i):s=ij({},s,n),vj(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`?ij({},{},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}(),Tj={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}},Ej={},Dj=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aj(this,t),n=lj(this,uj(t).call(this)),Cj&&mj.call(cj(n)),kle([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,cj(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=pj.create(`translator`),n}return fj(t,mj),sj(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(rj(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,ij({},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,ij({},n,{joinArrays:!1,ns:c})),x[C]===w&&(x[C]=p[C])}p=x}}else if(y&&typeof v==`string`&&g===`[object Array]`)(p=p.join(v))&&(p=this.extendTranslation(p,e,n,r));else{var T=!1,E=!1,D=n.count!==void 0&&typeof n.count!=`string`,O=t.hasDefaultValue(n),k=D?this.pluralResolver.getSuffix(u,n.count):``,A=n[`defaultValue${k}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=A),this.isValidLookup(p)||(E=!0,p=s);var j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,M=O&&A!==p&&this.options.updateMissing;if(E||T||M){if(this.logger.log(M?`updateKey`:`missingKey`,u,l,s,M?A:p),a){var N=this.resolve(s,ij({},n,{keySeparator:!1}));N&&N.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 P=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&F&&F[0])for(var I=0;I<F.length;I++)P.push(F[I]);else this.options.saveMissingTo===`all`?P=this.languageUtils.toResolveHierarchy(n.lng||this.language):P.push(n.lng||this.language);var ee=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,M?r:j,M,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,M?r:j,M,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?P.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){ee([e],s+t,n[`defaultValue${t}`]||A)}))})):ee(P,s,A))}p=this.extendTranslation(p,e,n,f,r),E&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(E||T)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:`extendTranslation`,value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(ij({},n,{interpolation:ij({},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=ij({},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=Tj.handle(f,e,t,this.options&&this.options.postProcessPassResolved?ij({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,!Ej[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(Ej[`${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 Oj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nle=function(){function e(t){aj(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pj.create(`languageUtils`)}return sj(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]=Oj(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]=Oj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Oj(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}(),Ple=[{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}],Fle={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 Ile(){var e={};return Ple.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Fle[t.fc]}}))})),e}var Lle=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};aj(this,e),this.languageUtils=t,this.options=n,this.logger=pj.create(`pluralResolver`),this.rules=Ile()}return sj(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}(),Rle=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};aj(this,e),this.logger=pj.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return sj(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?jle:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?Sj(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?Sj(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?Sj(t.nestingPrefix):t.nestingPrefixEscaped||Sj(`$t(`),this.nestingSuffix=t.nestingSuffix?Sj(t.nestingSuffix):t.nestingSuffixEscaped||Sj(`)`),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=bj(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,ij({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(bj(t,c,o),l,n,ij({},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=gj(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=ij({},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=ij({},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=gj(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,ij({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),zle=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return aj(this,t),i=lj(this,uj(t).call(this)),Cj&&mj.call(cj(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=pj.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return fj(t,mj),sj(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=_j(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,ij({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Ble(){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(rj(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),rj(e[2])===`object`||rj(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 kj(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 Aj(){}var jj=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(aj(this,t),e=lj(this,uj(t).call(this)),Cj&&mj.call(cj(e)),e.options=kj(n),e.services={},e.logger=pj,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),lj(e,cj(e));setTimeout((function(){e.init(n,r)}),0)}return e}return fj(t,mj),sj(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=ij({},Ble(),this.options,kj(t)),this.format=this.options.interpolation.format,n||=Aj,!this.options.isClone){this.modules.logger?pj.init(r(this.modules.logger),this.options):pj.init(null,this.options);var i=new Nle(this.options);this.store=new Mle(this.options.resources,this.options);var a=this.services;a.logger=pj,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new Lle(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new Rle(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new zle(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 Dj(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=hj(),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]:Aj,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=hj();return e||=this.languages,t||=this.options.ns,n||=Aj,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`&&Tj.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=hj();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(rj(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=ij({},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=hj();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=hj();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]:Aj,i=ij({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=ij({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Dj(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 Mj(e,t){jj.addResourceBundle(e,`translation`,t,!0,!0)}jj.init({lng:`zh-CN`,resources:{}});var Z=jj.t.bind(jj);Mj(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),Mj(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var Vle=Ju?{}.toString:function(){return`[object `+Qu(this)+`]`};Ju||gu(Object.prototype,`toString`,Vle,{unsafe:!0});var Nj=Array.isArray||function(e){return Kc(e)==`Array`},Pj=function(){},Hle=[],Fj=$c(`Reflect`,`construct`),Ij=/^\s*(?:class|function)\b/,Ule=Gc(Ij.exec),Wle=!Ij.exec(Pj),Lj=function(e){if(!Zc(e))return!1;try{return Fj(Pj,Hle,e),!0}catch{return!1}},Gle=!Fj||Fc((function(){var e;return Lj(Lj.call)||!Lj(Object)||!Lj((function(){e=!0}))||e}))?function(e){if(!Zc(e))return!1;switch(Qu(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Wle||!!Ule(Ij,Ql(e))}:Lj,Kle=Al(`species`),Rj=Pc.Array,qle=function(e,t){return new(function(e){var t;return Nj(e)&&(t=e.constructor,(Gle(t)&&(t===Rj||Nj(t.prototype))||Qc(t)&&(t=t[Kle])===null)&&(t=void 0)),t===void 0?Rj:t}(e))(t===0?0:t)},zj=Gc([].push),Bj=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=yl(c),h=Jc(m),g=Kd(l,u),_=Tu(h),v=0,y=d||qle,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:zj(b,f)}else switch(e){case 4:return!1;case 7:zj(b,f)}}return a?-1:r||i?i:b}},Jle={forEach:Bj(0),map:Bj(1),filter:Bj(2),some:Bj(3),every:Bj(4),find:Bj(5),findIndex:Bj(6),filterReject:Bj(7)}.forEach,Vj=function(e,t){var n=[][e];return!!n&&Fc((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return Jle(this,e,arguments.length>1?arguments[1]:void 0)},Hj=function(e){if(e&&e.forEach!==Vj)try{ql(e,`forEach`,Vj)}catch{e.forEach=Vj}};for(var Uj in yf)yf[Uj]&&Hj(Pc[Uj]&&Pc[Uj].prototype);Hj(Sf),Mj(`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`}}),Mj(`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 Yle={type:`paragraph`,renderElem:function(e,t,n){return fv(`p`,null,t)}},Wj=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Gj(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kj,qj,Jj=function(e){return e&&e.Math==Math&&e},Yj=Jj(typeof globalThis==`object`&&globalThis)||Jj(typeof window==`object`&&window)||Jj(typeof self==`object`&&self)||Jj(typeof Wj==`object`&&Wj)||function(){return this}()||Function(`return this`)(),Xj=function(e){try{return!!e()}catch{return!0}},Zj=!Xj((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Qj=Function.prototype.call,$j=Qj.bind?Qj.bind(Qj):function(){return Qj.apply(Qj,arguments)},eM={}.propertyIsEnumerable,tM=Object.getOwnPropertyDescriptor,nM={f:tM&&!eM.call({1:2},1)?function(e){var t=tM(this,e);return!!t&&t.enumerable}:eM},rM=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},iM=Function.prototype,aM=iM.bind,oM=iM.call,Xle=aM&&aM.bind(oM),sM=aM?function(e){return e&&Xle(oM,e)}:function(e){return e&&function(){return oM.apply(e,arguments)}},Zle=sM({}.toString),Qle=sM(``.slice),cM=function(e){return Qle(Zle(e),8,-1)},lM=Yj.Object,$le=sM(``.split),uM=Xj((function(){return!lM(`z`).propertyIsEnumerable(0)}))?function(e){return cM(e)==`String`?$le(e,``):lM(e)}:lM,eue=Yj.TypeError,dM=function(e){if(e==null)throw eue(`Can't call method on `+e);return e},fM=function(e){return uM(dM(e))},pM=function(e){return typeof e==`function`},mM=function(e){return typeof e==`object`?e!==null:pM(e)},tue=function(e){return pM(e)?e:void 0},hM=function(e,t){return arguments.length<2?tue(Yj[e]):Yj[e]&&Yj[e][t]},gM=sM({}.isPrototypeOf),_M=hM(`navigator`,`userAgent`)||``,vM=Yj.process,yM=Yj.Deno,bM=vM&&vM.versions||yM&&yM.version,xM=bM&&bM.v8;xM&&(qj=(Kj=xM.split(`.`))[0]>0&&Kj[0]<4?1:+(Kj[0]+Kj[1])),!qj&&_M&&(!(Kj=_M.match(/Edge\/(\d+)/))||Kj[1]>=74)&&(Kj=_M.match(/Chrome\/(\d+)/))&&(qj=+Kj[1]);var SM=qj,CM=!!Object.getOwnPropertySymbols&&!Xj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&SM&&SM<41})),wM=CM&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,nue=Yj.Object,TM=wM?function(e){return typeof e==`symbol`}:function(e){var t=hM(`Symbol`);return pM(t)&&gM(t.prototype,nue(e))},rue=Yj.String,EM=function(e){try{return rue(e)}catch{return`Object`}},iue=Yj.TypeError,DM=function(e){if(pM(e))return e;throw iue(EM(e)+` is not a function`)},OM=function(e,t){var n=e[t];return n==null?void 0:DM(n)},aue=Yj.TypeError,oue=Object.defineProperty,kM=function(e,t){try{oue(Yj,e,{value:t,configurable:!0,writable:!0})}catch{Yj[e]=t}return t},AM=Yj[`__core-js_shared__`]||kM(`__core-js_shared__`,{}),jM=Gj((function(e){(e.exports=function(e,t){return AM[e]||(AM[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),sue=Yj.Object,MM=function(e){return sue(dM(e))},cue=sM({}.hasOwnProperty),NM=Object.hasOwn||function(e,t){return cue(MM(e),t)},lue=0,uue=Math.random(),due=sM(1 .toString),PM=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+due(++lue+uue,36)},FM=jM(`wks`),IM=Yj.Symbol,LM=IM&&IM.for,fue=wM?IM:IM&&IM.withoutSetter||PM,RM=function(e){if(!NM(FM,e)||!CM&&typeof FM[e]!=`string`){var t=`Symbol.`+e;FM[e]=CM&&NM(IM,e)?IM[e]:wM&&LM?LM(t):fue(t)}return FM[e]},pue=Yj.TypeError,mue=RM(`toPrimitive`),zM=function(e){var t=function(e,t){if(!mM(e)||TM(e))return e;var n,r=OM(e,mue);if(r){if(t===void 0&&(t=`default`),n=$j(r,e,t),!mM(n)||TM(n))return n;throw pue(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&pM(n=e.toString)&&!mM(r=$j(n,e))||pM(n=e.valueOf)&&!mM(r=$j(n,e))||t!==`string`&&pM(n=e.toString)&&!mM(r=$j(n,e)))return r;throw aue(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return TM(t)?t:t+``},BM=Yj.document,hue=mM(BM)&&mM(BM.createElement),VM=function(e){return hue?BM.createElement(e):{}},HM=!Zj&&!Xj((function(){return Object.defineProperty(VM(`div`),"a",{get:function(){return 7}}).a!=7})),UM=Object.getOwnPropertyDescriptor,WM={f:Zj?UM:function(e,t){if(e=fM(e),t=zM(t),HM)try{return UM(e,t)}catch{}if(NM(e,t))return rM(!$j(nM.f,e,t),e[t])}},gue=Yj.String,_ue=Yj.TypeError,GM=function(e){if(mM(e))return e;throw _ue(gue(e)+` is not an object`)},vue=Yj.TypeError,KM=Object.defineProperty,qM={f:Zj?KM:function(e,t,n){if(GM(e),t=zM(t),GM(n),HM)try{return KM(e,t,n)}catch{}if(`get`in n||`set`in n)throw vue(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},JM=Zj?function(e,t,n){return qM.f(e,t,rM(1,n))}:function(e,t,n){return e[t]=n,e},yue=sM(Function.toString);pM(AM.inspectSource)||(AM.inspectSource=function(e){return yue(e)});var YM,XM,ZM,QM=AM.inspectSource,$M=Yj.WeakMap,bue=pM($M)&&/native code/.test(QM($M)),eN=jM(`keys`),tN=function(e){return eN[e]||(eN[e]=PM(e))},nN={},rN=Yj.TypeError,xue=Yj.WeakMap;if(bue||AM.state){var iN=AM.state||=new xue,Sue=sM(iN.get),aN=sM(iN.has),Cue=sM(iN.set);YM=function(e,t){if(aN(iN,e))throw new rN(`Object already initialized`);return t.facade=e,Cue(iN,e,t),t},XM=function(e){return Sue(iN,e)||{}},ZM=function(e){return aN(iN,e)}}else{var oN=tN(`state`);nN[oN]=!0,YM=function(e,t){if(NM(e,oN))throw new rN(`Object already initialized`);return t.facade=e,JM(e,oN,t),t},XM=function(e){return NM(e,oN)?e[oN]:{}},ZM=function(e){return NM(e,oN)}}var sN={set:YM,get:XM,has:ZM,enforce:function(e){return ZM(e)?XM(e):YM(e,{})},getterFor:function(e){return function(t){var n;if(!mM(t)||(n=XM(t)).type!==e)throw rN(`Incompatible receiver, `+e+` required`);return n}}},cN=Function.prototype,wue=Zj&&Object.getOwnPropertyDescriptor,lN=NM(cN,`name`),uN={EXISTS:lN,PROPER:lN&&function(){}.name===`something`,CONFIGURABLE:lN&&(!Zj||Zj&&wue(cN,`name`).configurable)},dN=Gj((function(e){var t=uN.CONFIGURABLE,n=sN.get,r=sN.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;pM(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!NM(a,`name`)||t&&a.name!==d)&&JM(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Yj?l?e[n]=a:kM(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:JM(e,n,a))})(Function.prototype,`toString`,(function(){return pM(this)&&n(this).source||QM(this)}))})),Tue=Math.ceil,Eue=Math.floor,fN=function(e){var t=+e;return t!=t||t===0?0:(t>0?Eue:Tue)(t)},Due=Math.max,Oue=Math.min,pN=function(e,t){var n=fN(e);return n<0?Due(n+t,0):Oue(n,t)},kue=Math.min,mN=function(e){return e>0?kue(fN(e),9007199254740991):0},hN=function(e){return mN(e.length)},gN=function(e){return function(t,n,r){var i,a=fM(t),o=hN(a),s=pN(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}},_N={includes:gN(!0),indexOf:gN(!1)},Aue=_N.indexOf,vN=sM([].push),yN=function(e,t){var n,r=fM(e),i=0,a=[];for(n in r)!NM(nN,n)&&NM(r,n)&&vN(a,n);for(;t.length>i;)NM(r,n=t[i++])&&(~Aue(a,n)||vN(a,n));return a},bN=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],jue=bN.concat(`length`,`prototype`),Mue={f:Object.getOwnPropertyNames||function(e){return yN(e,jue)}},xN={f:Object.getOwnPropertySymbols},Nue=sM([].concat),Pue=hM(`Reflect`,`ownKeys`)||function(e){var t=Mue.f(GM(e)),n=xN.f;return n?Nue(t,n(e)):t},Fue=function(e,t){for(var n=Pue(t),r=qM.f,i=WM.f,a=0;a<n.length;a++){var o=n[a];NM(e,o)||r(e,o,i(t,o))}},Iue=/#|\.prototype\./,SN=function(e,t){var n=Rue[Lue(e)];return n==Bue||n!=zue&&(pM(t)?Xj(t):!!t)},Lue=SN.normalize=function(e){return String(e).replace(Iue,`.`).toLowerCase()},Rue=SN.data={},zue=SN.NATIVE=`N`,Bue=SN.POLYFILL=`P`,Vue=SN,Hue=WM.f,CN=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Yj:l?Yj[s]||kM(s,{}):(Yj[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Hue(n,r))&&o.value:n[r],!Vue(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Fue(a,i)}(e.sham||i&&i.sham)&&JM(a,`sham`,!0),dN(n,r,a,e)}},wN=sM(sM.bind),TN=Array.isArray||function(e){return cM(e)==`Array`},EN={};EN[RM(`toStringTag`)]=`z`;var DN=String(EN)===`[object z]`,Uue=RM(`toStringTag`),Wue=Yj.Object,Gue=cM(function(){return arguments}())==`Arguments`,ON=DN?cM: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=Wue(e),Uue))==`string`?n:Gue?cM(t):(r=cM(t))==`Object`&&pM(t.callee)?`Arguments`:r},kN=function(){},Kue=[],AN=hM(`Reflect`,`construct`),jN=/^\s*(?:class|function)\b/,que=sM(jN.exec),Jue=!jN.exec(kN),MN=function(e){if(!pM(e))return!1;try{return AN(kN,Kue,e),!0}catch{return!1}},NN=!AN||Xj((function(){var e;return MN(MN.call)||!MN(Object)||!MN((function(){e=!0}))||e}))?function(e){if(!pM(e))return!1;switch(ON(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Jue||!!que(jN,QM(e))}:MN,Yue=RM(`species`),PN=Yj.Array,Xue=function(e,t){return new(function(e){var t;return TN(e)&&(t=e.constructor,(NN(t)&&(t===PN||TN(t.prototype))||mM(t)&&(t=t[Yue])===null)&&(t=void 0)),t===void 0?PN:t}(e))(t===0?0:t)},FN=sM([].push),IN=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=MM(c),h=uM(m),g=function(e,t){return DM(e),t===void 0?e:wN?wN(e,t):function(){return e.apply(t,arguments)}}(l,u),_=hN(h),v=0,y=d||Xue,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:FN(b,f)}else switch(e){case 4:return!1;case 7:FN(b,f)}}return a?-1:r||i?i:b}},LN={forEach:IN(0),map:IN(1),filter:IN(2),some:IN(3),every:IN(4),find:IN(5),findIndex:IN(6),filterReject:IN(7)},Zue=RM(`species`),RN=function(e){return SM>=51||!Xj((function(){var t=[];return(t.constructor={})[Zue]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Que=LN.filter;CN({target:`Array`,proto:!0,forced:!RN(`filter`)},{filter:function(e){return Que(this,e,arguments.length>1?arguments[1]:void 0)}});var $ue=DN?{}.toString:function(){return`[object `+ON(this)+`]`};DN||dN(Object.prototype,`toString`,$ue,{unsafe:!0});var zN,ede=Yj.String,BN=function(e){if(ON(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ede(e)},VN=function(){var e=GM(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},HN=Yj.RegExp,UN=Xj((function(){var e=HN(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),tde=UN||Xj((function(){return!HN(`a`,`y`).sticky})),WN={BROKEN_CARET:UN||Xj((function(){var e=HN(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:tde,UNSUPPORTED_Y:UN},GN=Object.keys||function(e){return yN(e,bN)},nde=Zj?Object.defineProperties:function(e,t){GM(e);for(var n,r=fM(t),i=GN(t),a=i.length,o=0;a>o;)qM.f(e,n=i[o++],r[n]);return e},rde=hM(`document`,`documentElement`),KN=tN(`IE_PROTO`),qN=function(){},JN=function(e){return`<script>`+e+`<\/script>`},YN=function(e){e.write(JN(``)),e.close();var t=e.parentWindow.Object;return e=null,t},XN=function(){try{zN=new ActiveXObject(`htmlfile`)}catch{}var e,t;XN=typeof document<`u`?document.domain&&zN?YN(zN):((t=VM(`iframe`)).style.display=`none`,rde.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(JN(`document.F=Object`)),e.close(),e.F):YN(zN);for(var n=bN.length;n--;)delete XN.prototype[bN[n]];return XN()};nN[KN]=!0;var ZN,QN,$N=Object.create||function(e,t){var n;return e===null?n=XN():(qN.prototype=GM(e),n=new qN,qN.prototype=null,n[KN]=e),t===void 0?n:nde(n,t)},ide=Yj.RegExp,ade=Xj((function(){var e=ide(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),ode=Yj.RegExp,sde=Xj((function(){var e=ode(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),cde=sN.get,lde=jM(`native-string-replace`,String.prototype.replace),eP=RegExp.prototype.exec,tP=eP,ude=sM(``.charAt),dde=sM(``.indexOf),fde=sM(``.replace),nP=sM(``.slice),rP=(QN=/b*/g,$j(eP,ZN=/a/,`a`),$j(eP,QN,`a`),ZN.lastIndex!==0||QN.lastIndex!==0),iP=WN.BROKEN_CARET,aP=/()??/.exec(``)[1]!==void 0;(rP||aP||iP||ade||sde)&&(tP=function(e){var t,n,r,i,a,o,s,c=this,l=cde(c),u=BN(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=$j(tP,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=iP&&c.sticky,m=$j(VN,c),h=c.source,g=0,_=u;if(p&&(m=fde(m,`y`,``),dde(m,`g`)===-1&&(m+=`g`),_=nP(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ude(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),aP&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),rP&&(r=c.lastIndex),i=$j(eP,p?n:c,_),p?i?(i.input=nP(i.input,g),i[0]=nP(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:rP&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),aP&&i&&i.length>1&&$j(lde,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=$N(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var oP=tP;CN({target:`RegExp`,proto:!0,forced:/./.exec!==oP},{exec:oP});var sP=Function.prototype,cP=sP.apply,pde=sP.bind,lP=sP.call,uP=typeof Reflect==`object`&&Reflect.apply||(pde?lP.bind(cP):function(){return lP.apply(cP,arguments)}),mde=RM(`species`),dP=RegExp.prototype,fP=function(e,t,n,r){var i=RM(e),a=!Xj((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Xj((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[mde]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=sM(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=sM(e),c=t.exec;return c===oP||c===dP.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));dN(String.prototype,e,c[0]),dN(dP,i,c[1])}r&&JM(dP[i],`sham`,!0)},hde=sM(``.charAt),pP=sM(``.charCodeAt),gde=sM(``.slice),_de=function(e){return function(e,t){var n,r,i=BN(dM(e)),a=fN(t),o=i.length;return a<0||a>=o?``:(n=pP(i,a))<55296||n>56319||a+1===o||(r=pP(i,a+1))<56320||r>57343?hde(i,a):gde(i,a,a+2)}}(!0),mP=function(e,t,n){return t+(n?_de(e,t).length:1)},vde=Math.floor,hP=sM(``.charAt),yde=sM(``.replace),gP=sM(``.slice),bde=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xde=/\$([$&'`]|\d{1,2})/g,Sde=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=xde;return i!==void 0&&(i=MM(i),c=bde),yde(a,c,(function(a,c){var l;switch(hP(c,0)){case`$`:return`$`;case`&`:return e;case"`":return gP(t,0,n);case`'`:return gP(t,o);case`<`:l=i[gP(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=vde(u/10);return d===0?a:d<=s?r[d-1]===void 0?hP(c,1):r[d-1]+hP(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Cde=Yj.TypeError,_P=function(e,t){var n=e.exec;if(pM(n)){var r=$j(n,e,t);return r!==null&&GM(r),r}if(cM(e)===`RegExp`)return $j(oP,e,t);throw Cde(`RegExp#exec called on incompatible receiver`)},vP=RM(`replace`),wde=Math.max,Tde=Math.min,Ede=sM([].concat),yP=sM([].push),bP=sM(``.indexOf),xP=sM(``.slice),Dde=`a`.replace(/./,`$0`)===`$0`,SP=!!/./[vP]&&/./[vP](`a`,`$0`)===``;fP(`replace`,(function(e,t,n){var r=SP?`$`:`$0`;return[function(e,n){var r=dM(this),i=e==null?void 0:OM(e,vP);return i?$j(i,e,r,n):$j(t,BN(r),e,n)},function(e,i){var a=GM(this),o=BN(e);if(typeof i==`string`&&bP(i,r)===-1&&bP(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=pM(i);c||(i=BN(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=_P(a,o);if(f===null||(yP(d,f),!l))break;BN(f[0])===``&&(a.lastIndex=mP(o,mN(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=BN((f=d[g])[0]),v=wde(Tde(fN(f.index),o.length),0),y=[],b=1;b<f.length;b++)yP(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Ede([_],y,v,o);x!==void 0&&yP(S,x);var C=BN(uP(i,void 0,S))}else C=Sde(_,o,v,y,x,i);v>=h&&(m+=xP(o,h,v)+C,h=v+_.length)}return m+xP(o,h)}]}),!!Xj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Dde||SP);var CP=RM(`unscopables`),wP=Array.prototype;wP[CP]??qM.f(wP,CP,{configurable:!0,value:$N(null)});var TP=function(e){wP[CP][e]=!0},Ode=LN.find,EP=!0;`find`in[]&&[,].find((function(){EP=!1})),CN({target:`Array`,proto:!0,forced:EP},{find:function(e){return Ode(this,e,arguments.length>1?arguments[1]:void 0)}}),TP(`find`);var kde=RM(`match`),DP=function(e){var t;return mM(e)&&((t=e[kde])===void 0?cM(e)==`RegExp`:!!t)},Ade=Yj.TypeError,jde=RM(`species`),OP=function(e,t,n){var r=zM(t);r in e?qM.f(e,r,rM(0,n)):e[r]=n},Mde=Yj.Array,Nde=Math.max,kP=function(e,t,n){for(var r=hN(e),i=pN(t,r),a=pN(n===void 0?r:n,r),o=Mde(Nde(a-i,0)),s=0;i<a;i++,s++)OP(o,s,e[i]);return o.length=s,o},AP=WN.UNSUPPORTED_Y,Pde=Math.min,jP=[].push,Fde=sM(/./.exec),MP=sM(jP),NP=sM(``.slice);fP(`split`,(function(e,t,n){var 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=BN(dM(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!DP(e))return $j(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=$j(oP,d,r))&&!((o=d.lastIndex)>u&&(MP(c,NP(r,u,a.index)),a.length>1&&a.index<r.length&&uP(jP,c,kP(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&Fde(d,``)||MP(c,``):MP(c,NP(r,u)),c.length>i?kP(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:$j(t,this,e,n)}:t;return[function(t,n){var i=dM(this),a=t==null?void 0:OM(t,e);return a?$j(a,t,i,n):$j(r,BN(i),t,n)},function(e,i){var a=GM(this),o=BN(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=GM(e).constructor;return r===void 0||(n=GM(r)[jde])==null?t:function(e){if(NN(e))return e;throw Ade(EM(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(AP?`g`:`y`),d=new c(AP?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return _P(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=AP?0:m;var g,_=_P(d,AP?NP(o,m):o);if(_===null||(g=Pde(mN(d.lastIndex+(AP?m:0)),o.length))===p)m=mP(o,m,l);else{if(MP(h,NP(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(MP(h,_[v]),h.length===f)return h;m=p=g}}return MP(h,NP(o,p)),h}]}),!!Xj((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`})),AP);var PP=`
\v\f\r \xA0               \u2028\u2029`,FP=sM(``.replace),IP=`[`+PP+`]`,Ide=RegExp(`^`+IP+IP+`*`),Lde=RegExp(IP+IP+`*$`),LP=function(e){return function(t){var n=BN(dM(t));return 1&e&&(n=FP(n,Ide,``)),2&e&&(n=FP(n,Lde,``)),n}},Rde={start:LP(1),end:LP(2),trim:LP(3)},zde=uN.PROPER,Bde=Rde.trim;function RP(e){return J(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function zP(e){return e.length===0?``:e[0].outerHTML}function BP(e){return e.length?e[0].tagName.toLowerCase():``}function VP(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}CN({target:`String`,proto:!0,forced:Xj((function(){return!!PP.trim()||zde&&PP.trim.name!==`trim`}))},{trim:function(){return Bde(this)}}),CN({global:!0},{globalThis:Yj}),Pg&&(J.fn.css=Pg),Bg&&(J.fn.append=Bg),Vg&&(J.fn.prepend=Vg),bg&&(J.fn.addClass=bg),xg&&(J.fn.removeClass=xg),Sg&&(J.fn.hasClass=Sg),Dg&&(J.fn.on=Dg),Og&&(J.fn.off=Og),Zg&&(J.fn.focus=Zg),Cg&&(J.fn.attr=Cg),wg&&(J.fn.removeAttr=wg),Mg&&(J.fn.hide=Mg),Ng&&(J.fn.show=Ng),Ug&&(J.fn.parents=Ug),Tg&&(J.fn.dataset=Tg),Eg&&(J.fn.val=Eg),Rg&&(J.fn.text=Rg),Lg&&(J.fn.html=Lg),Gg&&(J.fn.children=Gg),Kg&&(J.fn.remove=Kg),Wg&&(J.fn.find=Wg),kg&&(J.fn.width=kg),Ag&&(J.fn.height=Ag),Ig&&(J.fn.filter=Ig),qg&&(J.fn.empty=qg);var Vde={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);return(t=t.filter((function(e){return!!K.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},HP=function(e,t){return HP=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])},HP(e,t)};function UP(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}HP(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var WP=function(){return WP=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},WP.apply(this,arguments)};function GP(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 KP(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 qP(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 JP(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 YP(e){var t=JP(H.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!V.isElement(n)||n.type===`paragraph`||U.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!K.isText(i[0])&&(q.setNodes(e,{type:`paragraph`}),!0)}var Hde={renderElems:[Yle],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[Vde],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){YP(r)||t(e)},r.deleteForward=function(e){YP(r)||n(e)},r}},Ude=/"/g,Wde=sM(``.replace),XP=function(e,t,n,r){var i=BN(dM(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Wde(BN(r),Ude,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},ZP=function(e){return Xj((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function QP(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 $P(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}CN({target:`String`,proto:!0,forced:ZP(`bold`)},{bold:function(){return XP(this,`b`,``,``)}}),CN({target:`String`,proto:!0,forced:ZP(`italics`)},{italics:function(){return XP(this,`i`,``,``)}}),CN({target:`String`,proto:!0,forced:ZP(`sub`)},{sub:function(){return XP(this,`sub`,``,``)}}),CN({target:`String`,proto:!0,forced:ZP(`sup`)},{sup:function(){return XP(this,`sup`,``,``)}});var eF={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},tF=VM(`span`).classList,nF=tF&&tF.constructor&&tF.constructor.prototype,Gde=nF===Object.prototype?void 0:nF,rF=function(e,t){var n=[][e];return!!n&&Xj((function(){n.call(null,t||function(){throw 1},1)}))},Kde=LN.forEach,iF=rF(`forEach`)?[].forEach:function(e){return Kde(this,e,arguments.length>1?arguments[1]:void 0)},aF=function(e){if(e&&e.forEach!==iF)try{JM(e,`forEach`,iF)}catch{e.forEach=iF}};for(var oF in eF)eF[oF]&&aF(Yj[oF]&&Yj[oF].prototype);function sF(e,t){return e.selection==null||!!JP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.isVoid(e,t)},universal:!0}),1)[0]}function qde(e,t){Object.keys(t).forEach((function(t){t!==`text`&&H.removeMark(e,t)}))}aF(Gde),CN({target:`Object`,stat:!0,forced:Xj((function(){GN(1)}))},{keys:function(e){return GN(MM(e))}});var cF=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=H.marks(e);return n?n[t]:!!JP(H.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 sF(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}(),Jde=`<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>`,Yde=`<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>`,Xde=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Zde=`<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>`,Qde=`<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>`,lF=`<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>`,uF=`<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>`,$de=`<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>`,efe=`<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>`,tfe=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,nfe=`<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>`,rfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,ife=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,afe=`<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>`,ofe=`<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>`,sfe=`<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>`,cfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,lfe=`<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>`,ufe=`<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>`,dfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Jde,t.hotkey=`mod+b`,t}return UP(t,e),t}(cF),ffe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=Qde,t.hotkey=`mod+e`,t}return UP(t,e),t}(cF),pfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=Xde,t.hotkey=`mod+i`,t}return UP(t,e),t}(cF),mfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Zde,t.hotkey=`mod+shift+x`,t}return UP(t,e),t}(cF),hfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Yde,t.hotkey=`mod+u`,t}return UP(t,e),t}(cF),gfe=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=ufe,t.hotkey=``,t}return UP(t,e),t}(cF),_fe=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=lfe,t.hotkey=``,t}return UP(t,e),t}(cF),vfe=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 sF(e)},e.prototype.exec=function(e,t){var n,r,i=H.nodes(e,{match:function(e){return K.isText(e)},universal:!0});try{for(var a=qP(i),o=a.next();!o.done;o=a.next())qde(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}(),yfe={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=fv(`strong`,null,u)),o&&(u=fv(`code`,null,u)),i&&(u=fv(`em`,null,u)),a&&(u=fv(`u`,null,u)),s&&(u=fv(`s`,null,u)),c&&(u=fv(`sub`,null,u)),l&&(u=fv(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new dfe}},{key:`underline`,factory:function(){return new hfe}},{key:`italic`,factory:function(){return new pfe}},{key:`through`,factory:function(){return new mfe}},{key:`code`,factory:function(){return new ffe}},{key:`sub`,factory:function(){return new gfe}},{key:`sup`,factory:function(){return new _fe}},{key:`clearStyle`,factory:function(){return new vfe}}],styleToHtml:function(e,t){if(!K.isText(e))return t;if(RP(t))return QP(e,t);var n=J(t);if(BP(n)===`br`)return QP(e,`<br>`);var r=n.html();return r=QP(e,r),n.html(r),zP(n)},parseStyleHtml:function(e,t,n){var r=J(e);if(!K.isText(t))return t;var i=t;return $P(r,`b,strong`)&&(i.bold=!0),$P(r,`i,em`)&&(i.italic=!0),$P(r,`u`)&&(i.underline=!0),$P(r,`s,strike`)&&(i.through=!0),$P(r,`sub`)&&(i.sub=!0),$P(r,`sup`)&&(i.sup=!0),$P(r,`code`)&&(i.code=!0),i}};function dF(e){return function(t,n,r){return fv(`h`+e,null,n)}}var bfe={type:`header1`,renderElem:dF(1)},xfe={type:`header2`,renderElem:dF(2)},Sfe={type:`header3`,renderElem:dF(3)},Cfe={type:`header4`,renderElem:dF(4)},wfe={type:`header5`,renderElem:dF(5)},Tfe=uN.PROPER,fF=RegExp.prototype,pF=fF.toString,Efe=sM(VN),Dfe=Xj((function(){return pF.call({source:`a`,flags:`b`})!=`/a/b`})),Ofe=Tfe&&pF.name!=`toString`;(Dfe||Ofe)&&dN(RegExp.prototype,`toString`,(function(){var e=GM(this),t=BN(e.source),n=e.flags;return`/`+t+`/`+BN(n===void 0&&gM(fF,e)&&!(`flags`in fF)?Efe(e):n)}),{unsafe:!0});var mF,kfe=Yj.TypeError,hF=function(e){if(DP(e))throw kfe(`The method doesn't accept regular expressions`);return e},Afe=RM(`match`),gF=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[Afe]=!1,`/./`[e](t)}catch{}}return!1},jfe=WM.f,_F=sM(``.startsWith),Mfe=sM(``.slice),Nfe=Math.min,vF=gF(`startsWith`);function yF(e){var t=JP(H.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=JP(t,1)[0];return X.getNodeType(n)}function bF(e){return e.selection==null||!JP(H.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function xF(e,t){t&&q.setNodes(e,{type:t})}CN({target:`String`,proto:!0,forced:!(!vF&&(mF=jfe(String.prototype,`startsWith`),mF&&!mF.writable)||vF)},{startsWith:function(e){var t=BN(dM(this));hF(e);var n=mN(Nfe(arguments.length>1?arguments[1]:void 0,t.length)),r=BN(e);return _F?_F(t,r,n):Mfe(t,n,n+r.length)===r}});var Pfe=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 yF(e)},e.prototype.isDisabled=function(e){return bF(e)},e.prototype.exec=function(e,t){xF(e,t.toString())},e}(),SF=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return yF(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return bF(e)},e.prototype.exec=function(e,t){var n=this.type;xF(e,t===n?`paragraph`:n)},e}(),Ffe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return UP(t,e),t}(SF),Ife=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return UP(t,e),t}(SF),Lfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return UP(t,e),t}(SF),Rfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return UP(t,e),t}(SF),zfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return UP(t,e),t}(SF),Bfe={key:`headerSelect`,factory:function(){return new Pfe}},Vfe={key:`header1`,factory:function(){return new Ffe}},Hfe={key:`header2`,factory:function(){return new Ife}},Ufe={key:`header3`,factory:function(){return new Lfe}},Wfe={key:`header4`,factory:function(){return new Rfe}},Gfe={key:`header5`,factory:function(){return new zfe}};function CF(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function wF(e){return function(t,n,r){var i=J(t);return(n=n.filter((function(e){return!!K.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Kfe={renderElems:[bfe,xfe,Sfe,Cfe,wfe],elemsToHtml:[{type:`header1`,elemToHtml:CF(1)},{type:`header2`,elemToHtml:CF(2)},{type:`header3`,elemToHtml:CF(3)},{type:`header4`,elemToHtml:CF(4)},{type:`header5`,elemToHtml:CF(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:wF(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:wF(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:wF(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:wF(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:wF(5)}],menus:[Bfe,Vfe,Hfe,Ufe,Wfe,Gfe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=JP(H.nodes(n,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&X.isSelectionAtLineEnd(e,r[1])?q.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},TF=Object.assign,EF=Object.defineProperty,qfe=sM([].concat),DF=!TF||Xj((function(){if(Zj&&TF({b:1},TF(EF({},`a`,{enumerable:!0,get:function(){EF(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})),TF({},e)[n]!=7||GN(TF({},t)).join(``)!=r}))?function(e,t){for(var n=MM(e),r=arguments.length,i=1,a=xN.f,o=nM.f;r>i;)for(var s,c=uM(arguments[i++]),l=a?qfe(GN(c),a(c)):GN(c),u=l.length,d=0;u>d;)s=l[d++],Zj&&!$j(o,c,s)||(n[s]=c[s]);return n}:TF;function OF(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}CN({target:`Object`,stat:!0,forced:Object.assign!==DF},{assign:DF});var Jfe={selector:`font`,preParseHtml:function(e){var t=J(e);if(BP(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},kF=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=H.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||!!JP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=J(`<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=J(r).attr(`data-value`);i===`0`?H.removeMark(e,t):H.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=J(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=J(`<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=J(`
<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}(),Yfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=$de,t.mark=`color`,t}return UP(t,e),t}(kF),Xfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=efe,t.mark=`bgColor`,t}return UP(t,e),t}(kF),AF=`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(`.`),Zfe={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&OF(a,{color:r}),i&&OF(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!K.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((RP(t)||BP(n=J(t))!==`span`)&&(n=J(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),zP(n)):t},preParseHtml:[Jfe],parseStyleHtml:function(e,t,n){var r=J(e);if(!K.isText(t))return t;var i=t,a=VP(r,`color`);a&&(i.color=a);var o=VP(r,`background-color`);return o||=VP(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Yfe},config:{colors:AF}},{key:`bgColor`,factory:function(){return new Xfe},config:{colors:AF}}]},Qfe=/^(?:\w+:)?\/\/(\S+)$/,$fe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,epe=/^[^\s\.]+\.\S{2,}$/,tpe=_N.includes;function jF(e){return e===void 0&&(e=`r`),e+`-`+__()}function MF(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function NF(e,t,n,r){return GP(this,void 0,void 0,(function(){var i,a;return KP(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 PF(e,t,n){return GP(this,void 0,void 0,(function(){var r;return KP(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 FF(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 IF(e,t){return{type:`link`,url:MF(e),children:t?[{text:t}]:[]}}function LF(e,t,n){return GP(this,void 0,void 0,(function(){var r,i,a;return KP(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),FF(e)?[2]:[4,NF(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,PF(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(G.isCollapsed(i)?(e.insertText(` `),a=IF(r,t),q.insertNodes(e,a),e.insertFragment([{text:` `}])):H.string(e,i)===t?(a=IF(r),q.wrapNodes(e,a,{split:!0}),q.collapse(e,{edge:`end`})):(e.deleteFragment(),a=IF(r,t),q.insertNodes(e,a))),[2]}}))}))}CN({target:`Array`,proto:!0},{includes:function(e){return tpe(this,e,arguments.length>1?arguments[1]:void 0)}}),TP(`includes`);var npe={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return fv(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},rpe={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);return(t=t.filter((function(e){return!!K.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 RF(){return jF(`w-e-insert-link`)}var ipe=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=RF(),this.urlInputId=RF(),this.buttonId=RF()}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 FF(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=JP(qA(Z(`link.text`),r),2),s=o[0],c=J(o[1]),l=JP(qA(Z(`link.url`),i),2),u=l[0],d=J(l[1]),f=JP(JA(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=J(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),LF(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||G.isCollapsed(t))c.val(``);else{var h=H.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function zF(){return jF(`w-e-update-link`)}var ape=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=lF,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=zF(),this.buttonId=zF()}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=JP(qA(Z(`link.url`),t),2),i=r[0],a=J(r[1]),o=JP(JA(n,Z(`common.ok`)),1)[0];if(this.$content==null){var s=J(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=X.getSelectedNodeByType(e,`link`);(function(e,t,n){GP(this,void 0,void 0,(function(){var r,i;return KP(this,(function(a){switch(a.label){case 0:return n?[4,NF(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,PF(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:MF(r)},q.setNodes(e,i,{match:function(e){return X.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?U.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}(),ope=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)||q.unwrapNodes(e,{match:function(e){return X.checkNodeType(e,`link`)}})},e}(),spe=function(){function e(){this.title=Z(`link.view`),this.iconSvg=uF,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}(),BF={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},cpe={renderElems:[npe],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:[rpe],menus:[{key:`insertLink`,factory:function(){return new ipe},config:BF},{key:`editLink`,factory:function(){return new ape},config:BF},{key:`unLink`,factory:function(){return new ope}},{key:`viewLink`,factory:function(){return new spe}}],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(Qfe);if(!t)return!1;var n=t[1];return!(!n||!$fe.test(n)&&!epe.test(n))}(t)){if(!FF(i)){var r=i.selection;r!=null&&LF(i,H.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=JP(e,2),n=t[0],a=t[1];return X.getNodeType(n)===`link`&&U.string(n)===``?q.removeNodes(i,{at:a}):r([n,a])},i}},lpe=sM(1 .valueOf),upe=Yj.RangeError,dpe=Yj.RangeError,VF=Yj.String,HF=Math.floor,UF=sM((function(e){var t=BN(dM(this)),n=``,r=fN(e);if(r<0||r==1/0)throw upe(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),WF=sM(``.slice),GF=sM(1 .toFixed),KF=function(e,t,n){return t===0?n:t%2==1?KF(e,t-1,n*e):KF(e*e,t/2,n)},qF=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=HF(i/1e7)},JF=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=HF(r/t),r=r%t*1e7},YF=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=VF(e[t]);n=n===``?r:n+UF(`0`,7-r.length)+r}return n};function XF(e,t){return`w-e-image-container-`+X.findKey(e,t).id}CN({target:`Number`,proto:!0,forced:Xj((function(){return GF(8e-5,3)!==`0.000`||GF(.9,0)!==`1`||GF(1.255,2)!==`1.25`||GF(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!Xj((function(){GF({})}))},{toFixed:function(e){var t,n,r,i,a=lpe(this),o=fN(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw dpe(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return VF(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*KF(2,69,1))-69)<0?a*KF(2,-t,1):a/KF(2,t,1),n*=4503599627370496,(t=52-t)>0){for(qF(s,0,n),r=o;r>=7;)qF(s,1e7,0),r-=7;for(qF(s,KF(10,r,1),0),r=t-1;r>=23;)JF(s,1<<23),r-=23;JF(s,1<<r),qF(s,1,1),JF(s,2),l=YF(s)}else qF(s,0,n),qF(s,1<<-t,0),l=YF(s)+UF(`0`,o)}return o>0?c+((i=l.length)<=o?`0.`+UF(`0`,o-i)+l:WF(l,0,i-o)+`.`+WF(l,i-o)):c+l}});var fpe={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 _=fv(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=J(`body`),a=XF(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=J(`#`+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=N_((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:WP(WP({},t.style),{width:r+`px`,height:a+`px`})};q.setNodes(e,o,{at:X.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),fv(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=J(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,fv(`div`,{className:`w-e-image-dragger left-top`}),fv(`div`,{className:`w-e-image-dragger right-top`}),fv(`div`,{className:`w-e-image-dragger left-bottom`}),fv(`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),fv(`div`,{id:XF(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},ppe={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:VP(r,`width`),height:VP(r,`height`)},children:[{text:``}]}}};function ZF(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),GP(this,void 0,void 0,(function(){var a,o;return KP(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 QF(e,t,n){return GP(this,void 0,void 0,(function(){var r;return KP(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 $F(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),GP(this,void 0,void 0,(function(){var i,a,o;return KP(this,(function(s){switch(s.label){case 0:return[4,ZF(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,QF(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:MF(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),eI(e)||(q.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function eI(e){var t=e.selection;return t==null||!G.isCollapsed(t)||!!JP(H.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`||!!H.isVoid(e,t)},universal:!0}),1)[0]}function tI(){return jF(`w-e-insert-image`)}var mpe=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=tI(),this.altInputId=tI(),this.hrefInputId=tI(),this.buttonId=tI()}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 eI(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=JP(qA(Z(`image.src`),r),2),c=s[0],l=J(s[1]),u=JP(qA(Z(`image.desc`),i),2),d=u[0],f=J(u[1]),p=JP(qA(Z(`image.link`),a),2),m=p[0],h=J(p[1]),g=JP(JA(o,Z(`common.ok`)),1)[0];if(this.$content==null){var _=J(`<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)||$F(e,t,n,r))},e}(),hpe=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)||q.removeNodes(e,{match:function(e){return X.checkNodeType(e,`image`)}})},e}();function nI(){return jF(`w-e-edit-image`)}var gpe=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=lF,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=nI(),this.altInputId=nI(),this.hrefInputId=nI(),this.buttonId=nI()}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||!G.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=JP(qA(Z(`image.src`),r),2),l=c[0],u=J(c[1]),d=JP(qA(Z(`image.desc`),i),2),f=d[0],p=J(d[1]),m=JP(qA(Z(`image.link`),a),2),h=m[0],g=J(m[1]),_=JP(JA(o,Z(`common.ok`)),1)[0];if(this.$content==null){var v=J(`<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={}),GP(this,void 0,void 0,(function(){var a,o,s,c,l,u;return KP(this,(function(d){switch(d.label){case 0:return[4,ZF(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,QF(`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:WP(WP({},s===void 0?{}:s),i)},q.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}(),_pe=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=uF,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}(),rI=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:WP(WP({},i===void 0?{}:i),{width:this.value,height:``})};q.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),vpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return UP(t,e),t}(rI),ype=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return UP(t,e),t}(rI),bpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return UP(t,e),t}(rI),iI={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},xpe={renderElems:[fpe],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:[ppe],menus:[{key:`insertImage`,factory:function(){return new mpe},config:iI},{key:`deleteImage`,factory:function(){return new hpe}},{key:`editImage`,factory:function(){return new gpe},config:iI},{key:`viewImageLink`,factory:function(){return new _pe}},{key:`imageWidth30`,factory:function(){return new vpe}},{key:`imageWidth50`,factory:function(){return new ype}},{key:`imageWidth100`,factory:function(){return new bpe}}],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}},Spe={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),fv(`div`,{style:{margin:`5px 0`}},fv(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},fv(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=X.findPath(n,e),i={checked:t.target.checked};q.setNodes(n,i,{at:r})}}})),fv(`span`,null,t))}},Cpe=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(H.isVoid(e,t)&&H.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);q.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),wpe={renderElems:[Spe],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=J(e).find(`li`),n=J(`<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=J(e);(t=t.filter((function(e){return!!K.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 Cpe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&G.isCollapsed(r)){var i=X.getSelectedNodeByType(e,`todo`);if(i&&U.string(i).length===0)return void q.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},Tpe={type:`blockquote`,renderElem:function(e,t,n){return fv(`blockquote`,null,t)}},Epe={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);return(t=t.filter((function(e){return!!K.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},Dpe=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||!JP(H.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`;q.setNodes(e,{type:n},{mode:`highest`})}},e}(),Ope={key:`blockquote`,factory:function(){return new Dpe}},kpe=sM([].slice),Ape=RN(`slice`),jpe=RM(`species`),aI=Yj.Array,Mpe=Math.max;CN({target:`Array`,proto:!0,forced:!Ape},{slice:function(e,t){var n,r,i,a=fM(this),o=hN(a),s=pN(e,o),c=pN(t===void 0?o:t,o);if(TN(a)&&(n=a.constructor,(NN(n)&&(n===aI||TN(n.prototype))||mM(n)&&(n=n[jpe])===null)&&(n=void 0),n===aI||n===void 0))return kpe(a,s,c);for(r=new(n===void 0?aI:n)(Mpe(c-s,0)),i=0;s<c;s++,i++)s in a&&OP(r,i,a[s]);return r.length=i,r}});var Npe={renderElems:[Tpe],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[Epe],menus:[Ope],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=JP(H.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=H.end(e,s);if(Lm.equals(c,i.focus)){var l=U.string(o);if(l&&l.slice(-1)===`
`)return e.deleteBackward(`character`),void q.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
`)},r}},Ppe=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||!!JP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=J(`<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=J(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=J(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),Fpe={menus:[{key:`emotion`,factory:function(){return new Ppe},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},Ipe={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},Lpe={selector:`font`,preParseHtml:function(e){var t=J(e);if(BP(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,Ipe[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},Rpe=sM(``.indexOf);CN({target:`String`,proto:!0,forced:!gF(`includes`)},{includes:function(e){return!!~Rpe(BN(dM(this)),BN(hF(e)),arguments.length>1?arguments[1]:void 0)}});var oI,sI,cI=function(e){return e&&e.Math==Math&&e},lI=cI(typeof globalThis==`object`&&globalThis)||cI(typeof window==`object`&&window)||cI(typeof self==`object`&&self)||cI(typeof Wj==`object`&&Wj)||function(){return this}()||Function(`return this`)(),uI=Function.prototype,dI=uI.apply,zpe=uI.bind,fI=uI.call,pI=typeof Reflect==`object`&&Reflect.apply||(zpe?fI.bind(dI):function(){return fI.apply(dI,arguments)}),mI=Function.prototype,hI=mI.bind,gI=mI.call,Bpe=hI&&hI.bind(gI),_I=hI?function(e){return e&&Bpe(gI,e)}:function(e){return e&&function(){return gI.apply(e,arguments)}},vI=function(e){return typeof e==`function`},yI=function(e){try{return!!e()}catch{return!0}},bI=!yI((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),xI=Function.prototype.call,SI=xI.bind?xI.bind(xI):function(){return xI.apply(xI,arguments)},CI={}.propertyIsEnumerable,wI=Object.getOwnPropertyDescriptor,TI={f:wI&&!CI.call({1:2},1)?function(e){var t=wI(this,e);return!!t&&t.enumerable}:CI},EI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Vpe=_I({}.toString),Hpe=_I(``.slice),DI=function(e){return Hpe(Vpe(e),8,-1)},OI=lI.Object,Upe=_I(``.split),kI=yI((function(){return!OI(`z`).propertyIsEnumerable(0)}))?function(e){return DI(e)==`String`?Upe(e,``):OI(e)}:OI,Wpe=lI.TypeError,AI=function(e){if(e==null)throw Wpe(`Can't call method on `+e);return e},jI=function(e){return kI(AI(e))},MI=function(e){return typeof e==`object`?e!==null:vI(e)},NI={},PI=function(e){return vI(e)?e:void 0},FI=function(e,t){return arguments.length<2?PI(NI[e])||PI(lI[e]):NI[e]&&NI[e][t]||lI[e]&&lI[e][t]},II=_I({}.isPrototypeOf),LI=FI(`navigator`,`userAgent`)||``,RI=lI.process,zI=lI.Deno,BI=RI&&RI.versions||zI&&zI.version,VI=BI&&BI.v8;VI&&(sI=(oI=VI.split(`.`))[0]>0&&oI[0]<4?1:+(oI[0]+oI[1])),!sI&&LI&&(!(oI=LI.match(/Edge\/(\d+)/))||oI[1]>=74)&&(oI=LI.match(/Chrome\/(\d+)/))&&(sI=+oI[1]);var HI=sI,UI=!!Object.getOwnPropertySymbols&&!yI((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&HI&&HI<41})),WI=UI&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Gpe=lI.Object,GI=WI?function(e){return typeof e==`symbol`}:function(e){var t=FI(`Symbol`);return vI(t)&&II(t.prototype,Gpe(e))},Kpe=lI.String,qpe=lI.TypeError,KI=function(e){if(vI(e))return e;throw qpe(function(e){try{return Kpe(e)}catch{return`Object`}}(e)+` is not a function`)},Jpe=lI.TypeError,Ype=Object.defineProperty,qI=lI[`__core-js_shared__`]||function(e,t){try{Ype(lI,e,{value:t,configurable:!0,writable:!0})}catch{lI[e]=t}return t}(`__core-js_shared__`,{}),JI=Gj((function(e){(e.exports=function(e,t){return qI[e]||(qI[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Xpe=lI.Object,YI=function(e){return Xpe(AI(e))},Zpe=_I({}.hasOwnProperty),XI=Object.hasOwn||function(e,t){return Zpe(YI(e),t)},Qpe=0,$pe=Math.random(),eme=_I(1 .toString),ZI=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+eme(++Qpe+$pe,36)},QI=JI(`wks`),$I=lI.Symbol,eL=$I&&$I.for,tme=WI?$I:$I&&$I.withoutSetter||ZI,tL=function(e){if(!XI(QI,e)||!UI&&typeof QI[e]!=`string`){var t=`Symbol.`+e;QI[e]=UI&&XI($I,e)?$I[e]:WI&&eL?eL(t):tme(t)}return QI[e]},nme=lI.TypeError,rme=tL(`toPrimitive`),nL=function(e){var t=function(e,t){if(!MI(e)||GI(e))return e;var n,r,i=(n=e[rme])==null?void 0:KI(n);if(i){if(t===void 0&&(t=`default`),r=SI(i,e,t),!MI(r)||GI(r))return r;throw nme(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&vI(n=e.toString)&&!MI(r=SI(n,e))||vI(n=e.valueOf)&&!MI(r=SI(n,e))||t!==`string`&&vI(n=e.toString)&&!MI(r=SI(n,e)))return r;throw Jpe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return GI(t)?t:t+``},rL=lI.document,ime=MI(rL)&&MI(rL.createElement),iL=function(e){return ime?rL.createElement(e):{}},aL=!bI&&!yI((function(){return Object.defineProperty(iL(`div`),"a",{get:function(){return 7}}).a!=7})),oL=Object.getOwnPropertyDescriptor,sL={f:bI?oL:function(e,t){if(e=jI(e),t=nL(t),aL)try{return oL(e,t)}catch{}if(XI(e,t))return EI(!SI(TI.f,e,t),e[t])}},ame=/#|\.prototype\./,cL=function(e,t){var n=sme[ome(e)];return n==lme||n!=cme&&(vI(t)?yI(t):!!t)},ome=cL.normalize=function(e){return String(e).replace(ame,`.`).toLowerCase()},sme=cL.data={},cme=cL.NATIVE=`N`,lme=cL.POLYFILL=`P`,ume=cL,lL=_I(_I.bind),uL=function(e,t){return KI(e),t===void 0?e:lL?lL(e,t):function(){return e.apply(t,arguments)}},dme=lI.String,fme=lI.TypeError,dL=function(e){if(MI(e))return e;throw fme(dme(e)+` is not an object`)},pme=lI.TypeError,fL=Object.defineProperty,pL={f:bI?fL:function(e,t,n){if(dL(e),t=nL(t),dL(n),aL)try{return fL(e,t,n)}catch{}if(`get`in n||`set`in n)throw pme(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},mL=bI?function(e,t,n){return pL.f(e,t,EI(1,n))}:function(e,t,n){return e[t]=n,e},mme=sL.f,hme=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 pI(e,this,arguments)};return t.prototype=e.prototype,t},hL=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?lI:f?lI[u]:(lI[u]||{}).prototype,h=d?NI:NI[u]||mL(NI,u,{})[u],g=h.prototype;for(i in t)n=!ume(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&XI(m,i),o=h[i],n&&(s=e.noTargetGet?(l=mme(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?uL(a,lI):e.wrap&&n?hme(a):p&&vI(a)?_I(a):a,(e.sham||a&&a.sham||o&&o.sham)&&mL(c,`sham`,!0),mL(h,i,c),p&&(XI(NI,r=u+`Prototype`)||mL(NI,r,{}),mL(NI[r],i,a),e.real&&g&&!g[i]&&mL(g,i,a)))},gL=Array.isArray||function(e){return DI(e)==`Array`},gme=Math.ceil,_me=Math.floor,_L=function(e){var t=+e;return t!=t||t===0?0:(t>0?_me:gme)(t)},vme=Math.min,vL=function(e){return(t=e.length)>0?vme(_L(t),9007199254740991):0;var t},yL=function(e,t,n){var r=nL(t);r in e?pL.f(e,r,EI(0,n)):e[r]=n},bL={};bL[tL(`toStringTag`)]=`z`;var xL=String(bL)===`[object z]`,yme=tL(`toStringTag`),bme=lI.Object,xme=DI(function(){return arguments}())==`Arguments`,SL=xL?DI: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=bme(e),yme))==`string`?n:xme?DI(t):(r=DI(t))==`Object`&&vI(t.callee)?`Arguments`:r},Sme=_I(Function.toString);vI(qI.inspectSource)||(qI.inspectSource=function(e){return Sme(e)});var CL=qI.inspectSource,wL=function(){},Cme=[],TL=FI(`Reflect`,`construct`),EL=/^\s*(?:class|function)\b/,wme=_I(EL.exec),Tme=!EL.exec(wL),DL=function(e){if(!vI(e))return!1;try{return TL(wL,Cme,e),!0}catch{return!1}},Eme=!TL||yI((function(){var e;return DL(DL.call)||!DL(Object)||!DL((function(){e=!0}))||e}))?function(e){if(!vI(e))return!1;switch(SL(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Tme||!!wme(EL,CL(e))}:DL,Dme=tL(`species`),OL=lI.Array,kL=function(e,t){return new(function(e){var t;return gL(e)&&(t=e.constructor,(Eme(t)&&(t===OL||gL(t.prototype))||MI(t)&&(t=t[Dme])===null)&&(t=void 0)),t===void 0?OL:t}(e))(t===0?0:t)},Ome=tL(`species`),AL=tL(`isConcatSpreadable`),jL=lI.TypeError,kme=HI>=51||!yI((function(){var e=[];return e[AL]=!1,e.concat()[0]!==e})),Ame=HI>=51||!yI((function(){var e=[];return(e.constructor={})[Ome]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),jme=function(e){if(!MI(e))return!1;var t=e[AL];return t===void 0?gL(e):!!t};hL({target:`Array`,proto:!0,forced:!kme||!Ame},{concat:function(e){var t,n,r,i,a,o=YI(this),s=kL(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(jme(a=t===-1?o:arguments[t])){if(c+(i=vL(a))>9007199254740991)throw jL(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&yL(s,c,a[n])}else{if(c>=9007199254740991)throw jL(`Maximum allowed index exceeded`);yL(s,c++,a)}return s.length=c,s}});var ML,Mme=lI.String,NL=function(e){if(SL(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Mme(e)},Nme=Math.max,Pme=Math.min,PL=function(e,t){var n=_L(e);return n<0?Nme(n+t,0):Pme(n,t)},FL=function(e){return function(t,n,r){var i,a=jI(t),o=vL(a),s=PL(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}},Fme={includes:FL(!0),indexOf:FL(!1)},IL={},Ime=Fme.indexOf,LL=_I([].push),RL=function(e,t){var n,r=jI(e),i=0,a=[];for(n in r)!XI(IL,n)&&XI(r,n)&&LL(a,n);for(;t.length>i;)XI(r,n=t[i++])&&(~Ime(a,n)||LL(a,n));return a},zL=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],BL=Object.keys||function(e){return RL(e,zL)},Lme=bI?Object.defineProperties:function(e,t){dL(e);for(var n,r=jI(t),i=BL(t),a=i.length,o=0;a>o;)pL.f(e,n=i[o++],r[n]);return e},Rme=FI(`document`,`documentElement`),VL=JI(`keys`),HL=function(e){return VL[e]||(VL[e]=ZI(e))},UL=HL(`IE_PROTO`),WL=function(){},GL=function(e){return`<script>`+e+`<\/script>`},KL=function(e){e.write(GL(``)),e.close();var t=e.parentWindow.Object;return e=null,t},qL=function(){try{ML=new ActiveXObject(`htmlfile`)}catch{}var e,t;qL=typeof document<`u`?document.domain&&ML?KL(ML):((t=iL(`iframe`)).style.display=`none`,Rme.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(GL(`document.F=Object`)),e.close(),e.F):KL(ML);for(var n=zL.length;n--;)delete qL.prototype[zL[n]];return qL()};IL[UL]=!0;var JL,YL,XL,ZL=Object.create||function(e,t){var n;return e===null?n=qL():(WL.prototype=dL(e),n=new WL,WL.prototype=null,n[UL]=e),t===void 0?n:Lme(n,t)},zme=zL.concat(`length`,`prototype`),QL={f:Object.getOwnPropertyNames||function(e){return RL(e,zme)}},Bme=lI.Array,Vme=Math.max,$L=QL.f,eR=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tR={f:function(e){return eR&&DI(e)==`Window`?function(e){try{return $L(e)}catch{return function(e,t,n){for(var r=vL(e),i=PL(void 0,r),a=PL(r,r),o=Bme(Vme(a-i,0)),s=0;i<a;i++,s++)yL(o,s,e[i]);return o.length=s,o}(eR)}}(e):$L(jI(e))}},nR={f:Object.getOwnPropertySymbols},Hme=_I([].slice),rR=function(e,t,n,r){r&&r.enumerable?e[t]=n:mL(e,t,n)},iR={f:tL},Ume=pL.f,aR=function(e){var t=NI.Symbol||={};XI(t,e)||Ume(t,e,{value:iR.f(e)})},Wme=xL?{}.toString:function(){return`[object `+SL(this)+`]`},Gme=pL.f,oR=tL(`toStringTag`),sR=function(e,t,n,r){if(e){var i=n?e:e.prototype;XI(i,oR)||Gme(i,oR,{configurable:!0,value:t}),r&&!xL&&mL(i,`toString`,Wme)}},cR=lI.WeakMap,Kme=vI(cR)&&/native code/.test(CL(cR)),lR=lI.TypeError,qme=lI.WeakMap;if(Kme||qI.state){var uR=qI.state||=new qme,Jme=_I(uR.get),dR=_I(uR.has),Yme=_I(uR.set);JL=function(e,t){if(dR(uR,e))throw new lR(`Object already initialized`);return t.facade=e,Yme(uR,e,t),t},YL=function(e){return Jme(uR,e)||{}},XL=function(e){return dR(uR,e)}}else{var fR=HL(`state`);IL[fR]=!0,JL=function(e,t){if(XI(e,fR))throw new lR(`Object already initialized`);return t.facade=e,mL(e,fR,t),t},YL=function(e){return XI(e,fR)?e[fR]:{}},XL=function(e){return XI(e,fR)}}var pR={set:JL,get:YL,has:XL,enforce:function(e){return XL(e)?YL(e):JL(e,{})},getterFor:function(e){return function(t){var n;if(!MI(t)||(n=YL(t)).type!==e)throw lR(`Incompatible receiver, `+e+` required`);return n}}},mR=_I([].push),hR=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=YI(c),h=kI(m),g=uL(l,u),_=vL(h),v=0,y=d||kL,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:mR(b,f)}else switch(e){case 4:return!1;case 7:mR(b,f)}}return a?-1:r||i?i:b}},gR=[hR(0),hR(1),hR(2),hR(3),hR(4),hR(5),hR(6),hR(7)][0],_R=HL(`hidden`),vR=tL(`toPrimitive`),Xme=pR.set,yR=pR.getterFor(`Symbol`),bR=Object.prototype,xR=lI.Symbol,SR=xR&&xR.prototype,CR=lI.TypeError,wR=lI.QObject,TR=FI(`JSON`,`stringify`),ER=sL.f,DR=pL.f,OR=tR.f,Zme=TI.f,kR=_I([].push),AR=JI(`symbols`),jR=JI(`op-symbols`),MR=JI(`string-to-symbol-registry`),NR=JI(`symbol-to-string-registry`),Qme=JI(`wks`),PR=!wR||!wR.prototype||!wR.prototype.findChild,FR=bI&&yI((function(){return ZL(DR({},`a`,{get:function(){return DR(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=ER(bR,t);r&&delete bR[t],DR(e,t,n),r&&e!==bR&&DR(bR,t,r)}:DR,IR=function(e,t){var n=AR[e]=ZL(SR);return Xme(n,{type:`Symbol`,tag:e,description:t}),bI||(n.description=t),n},LR=function(e,t,n){e===bR&&LR(jR,t,n),dL(e);var r=nL(t);return dL(n),XI(AR,r)?(n.enumerable?(XI(e,_R)&&e[_R][r]&&(e[_R][r]=!1),n=ZL(n,{enumerable:EI(0,!1)})):(XI(e,_R)||DR(e,_R,EI(1,{})),e[_R][r]=!0),FR(e,r,n)):DR(e,r,n)},RR=function(e,t){dL(e);var n=jI(t);return gR(BL(n).concat(HR(n)),(function(t){bI&&!SI(zR,n,t)||LR(e,t,n[t])})),e},zR=function(e){var t=nL(e),n=SI(Zme,this,t);return!(this===bR&&XI(AR,t)&&!XI(jR,t))&&(!(n||!XI(this,t)||!XI(AR,t)||XI(this,_R)&&this[_R][t])||n)},BR=function(e,t){var n=jI(e),r=nL(t);if(n!==bR||!XI(AR,r)||XI(jR,r)){var i=ER(n,r);return!i||!XI(AR,r)||XI(n,_R)&&n[_R][r]||(i.enumerable=!0),i}},VR=function(e){var t=OR(jI(e)),n=[];return gR(t,(function(e){XI(AR,e)||XI(IL,e)||kR(n,e)})),n},HR=function(e){var t=e===bR,n=OR(t?jR:jI(e)),r=[];return gR(n,(function(e){!XI(AR,e)||t&&!XI(bR,e)||kR(r,AR[e])})),r};if(UI||(SR=(xR=function(){if(II(SR,this))throw CR(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?NL(arguments[0]):void 0,t=ZI(e),n=function(e){this===bR&&SI(n,jR,e),XI(this,_R)&&XI(this[_R],t)&&(this[_R][t]=!1),FR(this,t,EI(1,e))};return bI&&PR&&FR(bR,t,{configurable:!0,set:n}),IR(t,e)}).prototype,rR(SR,`toString`,(function(){return yR(this).tag})),rR(xR,`withoutSetter`,(function(e){return IR(ZI(e),e)})),TI.f=zR,pL.f=LR,sL.f=BR,QL.f=tR.f=VR,nR.f=HR,iR.f=function(e){return IR(tL(e),e)},bI&&DR(SR,`description`,{configurable:!0,get:function(){return yR(this).description}})),hL({global:!0,wrap:!0,forced:!UI,sham:!UI},{Symbol:xR}),gR(BL(Qme),(function(e){aR(e)})),hL({target:`Symbol`,stat:!0,forced:!UI},{for:function(e){var t=NL(e);if(XI(MR,t))return MR[t];var n=xR(t);return MR[t]=n,NR[n]=t,n},keyFor:function(e){if(!GI(e))throw CR(e+` is not a symbol`);if(XI(NR,e))return NR[e]},useSetter:function(){PR=!0},useSimple:function(){PR=!1}}),hL({target:`Object`,stat:!0,forced:!UI,sham:!bI},{create:function(e,t){return t===void 0?ZL(e):RR(ZL(e),t)},defineProperty:LR,defineProperties:RR,getOwnPropertyDescriptor:BR}),hL({target:`Object`,stat:!0,forced:!UI},{getOwnPropertyNames:VR,getOwnPropertySymbols:HR}),hL({target:`Object`,stat:!0,forced:yI((function(){nR.f(1)}))},{getOwnPropertySymbols:function(e){return nR.f(YI(e))}}),TR&&hL({target:`JSON`,stat:!0,forced:!UI||yI((function(){var e=xR();return TR([e])!=`[null]`||TR({a:e})!=`{}`||TR(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Hme(arguments),i=t;if((MI(t)||e!==void 0)&&!GI(e))return gL(t)||(t=function(e,t){if(vI(i)&&(t=SI(i,this,e,t)),!GI(t))return t}),r[1]=t,pI(TR,null,r)}}),!SR[vR]){var UR=SR.valueOf;rR(SR,vR,(function(e){return SI(UR,this)}))}sR(xR,`Symbol`),IL[_R]=!0,aR(`asyncIterator`),aR(`hasInstance`),aR(`isConcatSpreadable`),aR(`iterator`),aR(`match`),aR(`matchAll`),aR(`replace`),aR(`search`),aR(`species`),aR(`split`),aR(`toPrimitive`),aR(`toStringTag`),aR(`unscopables`),sR(lI.JSON,`JSON`,!0);var WR,GR,KR,qR=NI.Symbol,JR={},YR=Function.prototype,XR=bI&&Object.getOwnPropertyDescriptor,ZR=XI(YR,`name`),QR={EXISTS:ZR,PROPER:ZR&&function(){}.name===`something`,CONFIGURABLE:ZR&&(!bI||bI&&XR(YR,`name`).configurable)},$R=!yI((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ez=HL(`IE_PROTO`),tz=lI.Object,nz=tz.prototype,rz=$R?tz.getPrototypeOf:function(e){var t=YI(e);if(XI(t,ez))return t[ez];var n=t.constructor;return vI(n)&&t instanceof n?n.prototype:t instanceof tz?nz:null},iz=tL(`iterator`),az=!1;[].keys&&(`next`in(KR=[].keys())?(GR=rz(rz(KR)))!==Object.prototype&&(WR=GR):az=!0),WR=WR==null||yI((function(){var e={};return WR[iz].call(e)!==e}))?{}:ZL(WR),vI(WR[iz])||rR(WR,iz,(function(){return this}));var oz={IteratorPrototype:WR,BUGGY_SAFARI_ITERATORS:az},sz=oz.IteratorPrototype,cz=function(){return this};lI.String,lI.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{_I(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var lz=QR.PROPER,uz=oz.BUGGY_SAFARI_ITERATORS,dz=tL(`iterator`),fz=function(){return this},pz=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=ZL(sz,{next:EI(1,n)}),sR(e,i,!1,!0),JR[i]=cz})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!uz&&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[dz]||p[`@@iterator`]||i&&p[i],h=!uz&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=rz(g.call(new e)))!==Object.prototype&&s.next&&(sR(s,d,!0,!0),JR[d]=fz),lz&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return SI(m,this)}),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(uz||f||!(l in p))&&rR(p,l,c[l]);else hL({target:t,proto:!0,forced:uz||f},c)}return o&&p[dz]!==h&&rR(p,dz,h,{name:i}),JR[t]=h,c},mz=pR.set,hz=pR.getterFor(`Array Iterator`);pz(Array,`Array`,(function(e,t){mz(this,{type:`Array Iterator`,target:jI(e),index:0,kind:t})}),(function(){var e=hz(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`),JR.Arguments=JR.Array;var gz=tL(`toStringTag`);for(var _z 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 vz=lI[_z],yz=vz&&vz.prototype;yz&&SL(yz)!==gz&&mL(yz,gz,_z),JR[_z]=JR.Array}var bz=qR;aR(`asyncDispose`),aR(`dispose`),aR(`matcher`),aR(`metadata`),aR(`observable`),aR(`patternMatch`),aR(`replaceAll`);var xz=bz,Sz=_I(``.charAt),Cz=_I(``.charCodeAt),wz=_I(``.slice),Tz=function(e){return function(e,t){var n,r,i=NL(AI(e)),a=_L(t),o=i.length;return a<0||a>=o?``:(n=Cz(i,a))<55296||n>56319||a+1===o||(r=Cz(i,a+1))<56320||r>57343?Sz(i,a):wz(i,a,a+2)}}(!0),Ez=pR.set,Dz=pR.getterFor(`String Iterator`);pz(String,`String`,(function(e){Ez(this,{type:`String Iterator`,string:NL(e),index:0})}),(function(){var e,t=Dz(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Tz(n,r),t.index+=e.length,{value:e,done:!1})}));var Oz=iR.f(`iterator`),kz=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(Gj((function(e){function t(n){return typeof xz==`function`&&typeof Oz==`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 xz==`function`&&e.constructor===xz&&e!==xz.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}))),Az=uN.EXISTS,jz=qM.f,Mz=Function.prototype,Nz=sM(Mz.toString),Pz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fz=sM(Pz.exec);Zj&&!Az&&jz(Mz,`name`,{configurable:!0,get:function(){try{return Fz(Pz,Nz(this))[1]}catch{return``}}});var Iz=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=H.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!JP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.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}(),Lz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=tfe,t.mark=`fontSize`,t}return UP(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(kz(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}(Iz),Rz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=nfe,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return UP(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(kz(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}(Iz),zz={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&OF(a,{fontSize:r}),i&&OF(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!K.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((RP(t)||BP(n=J(t))!==`span`)&&(n=J(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),zP(n)):t},preParseHtml:[Lpe],parseStyleHtml:function(e,t,n){var r=J(e);if(!K.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=VP(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=VP(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 Lz},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 Rz},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},Bz={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=J(e),n=VP(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]}},Vz=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=JP(H.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:JP(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=JP(H.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}(),Hz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.decrease`),t.iconSvg=rfe,t}return UP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){q.setNodes(e,{indent:null},{match:function(e){return V.isElement(e)}})},t}(Vz),Uz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.increase`),t.iconSvg=ife,t}return UP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){q.setNodes(e,{indent:`2em`},{match:function(e){return V.isElement(e)},mode:`highest`})},t}(Vz),Wz={renderStyle:function(e,t){if(!V.isElement(e))return t;var n=e.indent,r=t;return n&&OF(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!V.isElement(e))return t;var n=e.indent;if(!n)return t;var r=J(t);return r.css(`text-indent`,n),zP(r)},preParseHtml:[Bz],parseStyleHtml:function(e,t,n){var r=J(e);if(!V.isElement(t))return t;var i=t,a=VP(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new Uz}},{key:`delIndent`,factory:function(){return new Hz}}]},Gz=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=JP(H.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(H.isVoid(e,t)&&H.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),Kz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.left`),t.iconSvg=afe,t}return UP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`left`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Gz),qz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.right`),t.iconSvg=ofe,t}return UP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`right`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Gz),Jz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.center`),t.iconSvg=sfe,t}return UP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`center`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Gz),Yz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.justify`),t.iconSvg=cfe,t}return UP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`justify`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Gz),Xz={renderStyle:function(e,t){if(!V.isElement(e))return t;var n=e.textAlign,r=t;return n&&OF(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!V.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=J(t);return r.css(`text-align`,n),zP(r)},parseStyleHtml:function(e,t,n){var r=J(e);if(!V.isElement(t))return t;var i=t,a=VP(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new Kz}},{key:`justifyRight`,factory:function(){return new qz}},{key:`justifyCenter`,factory:function(){return new Jz}},{key:`justifyJustify`,factory:function(){return new Yz}}]},Zz=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=JP(H.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?``:V.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){q.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),Qz={renderStyle:function(e,t){if(!V.isElement(e))return t;var n=e.lineHeight,r=t;return n&&OF(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!V.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=J(t);return r.css(`line-height`,n),zP(r)},parseStyleHtml:function(e,t,n){var r=J(e);if(!V.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=VP(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new Zz},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},$z=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}(),eB=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}(),tB={menus:[{key:`redo`,factory:function(){return new $z}},{key:`undo`,factory:function(){return new eB}}]},nB={type:`divider`,renderElem:function(e,t,n){return K_(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[K_(`hr`)])}},rB=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){q.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),iB={renderElems:[nB],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 rB}}],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=JP(e,2),i=t[0],a=t[1];if(X.getNodeType(i)!==`divider`)return n([i,a]);X.isLastNode(r,i)&&q.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]})},r}},aB=LN.map;CN({target:`Array`,proto:!0,forced:!RN(`map`)},{map:function(e){return aB(this,e,arguments.length>1?arguments[1]:void 0)}});var oB=sM([].join),sB=uM!=Object,cB=rF(`join`,`,`);CN({target:`Array`,proto:!0,forced:sB||!cB},{join:function(e){return oB(fM(this),e===void 0?`,`:e)}});var lB=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=U.string(t);q.removeNodes(e,{mode:`highest`});var r=n.split(`
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));q.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=H.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=qP(a),s=o.next();!s.done;s=o.next()){var c=JP(s.value,1)[0];c&&i.push(U.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}q.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
`)}]}]};q.insertNodes(e,l,{mode:`highest`})},e}(),uB={key:`codeBlock`,factory:function(){return new lB}};CN({target:`String`,proto:!0,forced:ZP(`anchor`)},{anchor:function(e){return XP(this,`a`,`name`,e)}}),fP(`match`,(function(e,t,n){return[function(t){var n=dM(this),r=t==null?void 0:OM(t,e);return r?$j(r,t,n):new RegExp(t)[e](BN(n))},function(e){var r=GM(this),i=BN(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return _P(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=_P(r,i))!==null;){var u=BN(s[0]);c[l]=u,u===``&&(r.lastIndex=mP(i,mN(r.lastIndex),o)),l++}return l===0?null:c}]}));var dB={menus:[uB],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=U.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=JP(e,2),r=t[0],a=t[1],o=X.getNodeType(r);return o===`code`&&a.length<=1&&q.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(X.isLastNode(i,r)&&q.insertNodes(i,X.genEmptyParagraph(),{at:[a[0]+1]}),X.getNodeType(r.children[0])!==`code`&&(q.unwrapNodes(i),q.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`);H.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return fv(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return fv(`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=J(e);if(BP(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:J(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(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`}))}}}]},fB=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}(),pB={menus:[{key:`fullScreen`,factory:function(){return new fB}}]},mB=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||!!G.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];q.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(H.start(e,r))}},e}(),hB=[yfe,Zfe,zz,Wz,Xz,Qz,xpe,iB,Fpe,cpe,dB,Npe,Kfe,Hde,wpe,tB,pB,{menus:[{key:`enter`,factory:function(){return new mB}}]}];Mj(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),Mj(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var gB=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function _B(e){var t={exports:{}};return e(t,t.exports),t.exports}var vB,yB,bB=function(e){return e&&e.Math==Math&&e},xB=bB(typeof globalThis==`object`&&globalThis)||bB(typeof window==`object`&&window)||bB(typeof self==`object`&&self)||bB(typeof gB==`object`&&gB)||function(){return this}()||Function(`return this`)(),SB=Function.prototype,CB=SB.bind,wB=SB.call,TB=CB&&CB.bind(wB),EB=CB?function(e){return e&&TB(wB,e)}:function(e){return e&&function(){return wB.apply(e,arguments)}},DB=function(e){try{return!!e()}catch{return!0}},OB=EB({}.toString),kB=EB(``.slice),AB=function(e){return kB(OB(e),8,-1)},jB=xB.Object,MB=EB(``.split),NB=DB((function(){return!jB(`z`).propertyIsEnumerable(0)}))?function(e){return AB(e)==`String`?MB(e,``):jB(e)}:jB,PB=xB.TypeError,FB=function(e){if(e==null)throw PB(`Can't call method on `+e);return e},IB=function(e){return NB(FB(e))},LB=Object.defineProperty,RB=function(e,t){try{LB(xB,e,{value:t,configurable:!0,writable:!0})}catch{xB[e]=t}return t},zB=xB[`__core-js_shared__`]||RB(`__core-js_shared__`,{}),BB=_B((function(e){(e.exports=function(e,t){return zB[e]||(zB[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),VB=xB.Object,HB=function(e){return VB(FB(e))},UB=EB({}.hasOwnProperty),WB=Object.hasOwn||function(e,t){return UB(HB(e),t)},GB=0,KB=Math.random(),qB=EB(1 .toString),JB=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+qB(++GB+KB,36)},YB=function(e){return typeof e==`function`},XB=function(e){return YB(e)?e:void 0},ZB=function(e,t){return arguments.length<2?XB(xB[e]):xB[e]&&xB[e][t]},QB=ZB(`navigator`,`userAgent`)||``,$B=xB.process,eV=xB.Deno,tV=$B&&$B.versions||eV&&eV.version,nV=tV&&tV.v8;nV&&(yB=(vB=nV.split(`.`))[0]>0&&vB[0]<4?1:+(vB[0]+vB[1])),!yB&&QB&&(!(vB=QB.match(/Edge\/(\d+)/))||vB[1]>=74)&&(vB=QB.match(/Chrome\/(\d+)/))&&(yB=+vB[1]);var rV,iV=yB,aV=!!Object.getOwnPropertySymbols&&!DB((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&iV&&iV<41})),oV=aV&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,sV=BB(`wks`),cV=xB.Symbol,lV=cV&&cV.for,uV=oV?cV:cV&&cV.withoutSetter||JB,dV=function(e){if(!WB(sV,e)||!aV&&typeof sV[e]!=`string`){var t=`Symbol.`+e;sV[e]=aV&&WB(cV,e)?cV[e]:oV&&lV?lV(t):uV(t)}return sV[e]},fV=function(e){return typeof e==`object`?e!==null:YB(e)},pV=xB.String,mV=xB.TypeError,hV=function(e){if(fV(e))return e;throw mV(pV(e)+` is not an object`)},gV=!DB((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),_V=xB.document,vV=fV(_V)&&fV(_V.createElement),yV=function(e){return vV?_V.createElement(e):{}},bV=!gV&&!DB((function(){return Object.defineProperty(yV(`div`),"a",{get:function(){return 7}}).a!=7})),xV=Function.prototype.call,SV=xV.bind?xV.bind(xV):function(){return xV.apply(xV,arguments)},CV=EB({}.isPrototypeOf),wV=xB.Object,TV=oV?function(e){return typeof e==`symbol`}:function(e){var t=ZB(`Symbol`);return YB(t)&&CV(t.prototype,wV(e))},EV=xB.String,DV=function(e){try{return EV(e)}catch{return`Object`}},OV=xB.TypeError,kV=function(e){if(YB(e))return e;throw OV(DV(e)+` is not a function`)},AV=function(e,t){var n=e[t];return n==null?void 0:kV(n)},jV=xB.TypeError,MV=xB.TypeError,NV=dV(`toPrimitive`),PV=function(e){var t=function(e,t){if(!fV(e)||TV(e))return e;var n,r=AV(e,NV);if(r){if(t===void 0&&(t=`default`),n=SV(r,e,t),!fV(n)||TV(n))return n;throw MV(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&YB(n=e.toString)&&!fV(r=SV(n,e))||YB(n=e.valueOf)&&!fV(r=SV(n,e))||t!==`string`&&YB(n=e.toString)&&!fV(r=SV(n,e)))return r;throw jV(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return TV(t)?t:t+``},FV=xB.TypeError,IV=Object.defineProperty,LV={f:gV?IV:function(e,t,n){if(hV(e),t=PV(t),hV(n),bV)try{return IV(e,t,n)}catch{}if(`get`in n||`set`in n)throw FV(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},RV=Math.ceil,zV=Math.floor,BV=function(e){var t=+e;return t!=t||t===0?0:(t>0?zV:RV)(t)},VV=Math.max,HV=Math.min,UV=function(e,t){var n=BV(e);return n<0?VV(n+t,0):HV(n,t)},WV=Math.min,GV=function(e){return e>0?WV(BV(e),9007199254740991):0},KV=function(e){return GV(e.length)},qV=function(e){return function(t,n,r){var i,a=IB(t),o=KV(a),s=UV(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}},JV={includes:qV(!0),indexOf:qV(!1)},YV={},XV=JV.indexOf,ZV=EB([].push),QV=function(e,t){var n,r=IB(e),i=0,a=[];for(n in r)!WB(YV,n)&&WB(r,n)&&ZV(a,n);for(;t.length>i;)WB(r,n=t[i++])&&(~XV(a,n)||ZV(a,n));return a},$V=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],eH=Object.keys||function(e){return QV(e,$V)},tH=gV?Object.defineProperties:function(e,t){hV(e);for(var n,r=IB(t),i=eH(t),a=i.length,o=0;a>o;)LV.f(e,n=i[o++],r[n]);return e},nH=ZB(`document`,`documentElement`),rH=BB(`keys`),iH=function(e){return rH[e]||(rH[e]=JB(e))},aH=iH(`IE_PROTO`),oH=function(){},sH=function(e){return`<script>`+e+`<\/script>`},cH=function(e){e.write(sH(``)),e.close();var t=e.parentWindow.Object;return e=null,t},lH=function(){try{rV=new ActiveXObject(`htmlfile`)}catch{}var e,t;lH=typeof document<`u`?document.domain&&rV?cH(rV):((t=yV(`iframe`)).style.display=`none`,nH.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(sH(`document.F=Object`)),e.close(),e.F):cH(rV);for(var n=$V.length;n--;)delete lH.prototype[$V[n]];return lH()};YV[aH]=!0;var uH=Object.create||function(e,t){var n;return e===null?n=lH():(oH.prototype=hV(e),n=new oH,oH.prototype=null,n[aH]=e),t===void 0?n:tH(n,t)},dH=dV(`unscopables`),fH=Array.prototype;fH[dH]??LV.f(fH,dH,{configurable:!0,value:uH(null)});var pH=function(e){fH[dH][e]=!0},mH={},hH=EB(Function.toString);YB(zB.inspectSource)||(zB.inspectSource=function(e){return hH(e)});var gH,_H,vH,yH=zB.inspectSource,bH=xB.WeakMap,xH=YB(bH)&&/native code/.test(yH(bH)),SH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},CH=gV?function(e,t,n){return LV.f(e,t,SH(1,n))}:function(e,t,n){return e[t]=n,e},wH=xB.TypeError,TH=xB.WeakMap;if(xH||zB.state){var EH=zB.state||=new TH,DH=EB(EH.get),OH=EB(EH.has),kH=EB(EH.set);gH=function(e,t){if(OH(EH,e))throw new wH(`Object already initialized`);return t.facade=e,kH(EH,e,t),t},_H=function(e){return DH(EH,e)||{}},vH=function(e){return OH(EH,e)}}else{var AH=iH(`state`);YV[AH]=!0,gH=function(e,t){if(WB(e,AH))throw new wH(`Object already initialized`);return t.facade=e,CH(e,AH,t),t},_H=function(e){return WB(e,AH)?e[AH]:{}},vH=function(e){return WB(e,AH)}}var jH,MH,NH,PH={set:gH,get:_H,has:vH,enforce:function(e){return vH(e)?_H(e):gH(e,{})},getterFor:function(e){return function(t){var n;if(!fV(t)||(n=_H(t)).type!==e)throw wH(`Incompatible receiver, `+e+` required`);return n}}},FH={}.propertyIsEnumerable,IH=Object.getOwnPropertyDescriptor,LH={f:IH&&!FH.call({1:2},1)?function(e){var t=IH(this,e);return!!t&&t.enumerable}:FH},RH=Object.getOwnPropertyDescriptor,zH={f:gV?RH:function(e,t){if(e=IB(e),t=PV(t),bV)try{return RH(e,t)}catch{}if(WB(e,t))return SH(!SV(LH.f,e,t),e[t])}},BH=Function.prototype,VH=gV&&Object.getOwnPropertyDescriptor,HH=WB(BH,`name`),UH={EXISTS:HH,PROPER:HH&&function(){}.name===`something`,CONFIGURABLE:HH&&(!gV||gV&&VH(BH,`name`).configurable)},WH=_B((function(e){var t=UH.CONFIGURABLE,n=PH.get,r=PH.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;YB(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!WB(a,`name`)||t&&a.name!==d)&&CH(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===xB?l?e[n]=a:RB(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:CH(e,n,a))})(Function.prototype,`toString`,(function(){return YB(this)&&n(this).source||yH(this)}))})),GH=$V.concat(`length`,`prototype`),KH={f:Object.getOwnPropertyNames||function(e){return QV(e,GH)}},qH={f:Object.getOwnPropertySymbols},JH=EB([].concat),YH=ZB(`Reflect`,`ownKeys`)||function(e){var t=KH.f(hV(e)),n=qH.f;return n?JH(t,n(e)):t},XH=function(e,t){for(var n=YH(t),r=LV.f,i=zH.f,a=0;a<n.length;a++){var o=n[a];WB(e,o)||r(e,o,i(t,o))}},ZH=/#|\.prototype\./,QH=function(e,t){var n=eU[$H(e)];return n==nU||n!=tU&&(YB(t)?DB(t):!!t)},$H=QH.normalize=function(e){return String(e).replace(ZH,`.`).toLowerCase()},eU=QH.data={},tU=QH.NATIVE=`N`,nU=QH.POLYFILL=`P`,rU=QH,iU=zH.f,aU=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?xB:l?xB[s]||RB(s,{}):(xB[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=iU(n,r))&&o.value:n[r],!rU(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;XH(a,i)}(e.sham||i&&i.sham)&&CH(a,`sham`,!0),WH(n,r,a,e)}},oU=!DB((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),sU=iH(`IE_PROTO`),cU=xB.Object,lU=cU.prototype,uU=oU?cU.getPrototypeOf:function(e){var t=HB(e);if(WB(t,sU))return t[sU];var n=t.constructor;return YB(n)&&t instanceof n?n.prototype:t instanceof cU?lU:null},dU=dV(`iterator`),fU=!1;[].keys&&(`next`in(NH=[].keys())?(MH=uU(uU(NH)))!==Object.prototype&&(jH=MH):fU=!0),(jH==null||DB((function(){var e={};return jH[dU].call(e)!==e})))&&(jH={}),YB(jH[dU])||WH(jH,dU,(function(){return this}));var pU={IteratorPrototype:jH,BUGGY_SAFARI_ITERATORS:fU},mU=LV.f,hU=dV(`toStringTag`),gU=function(e,t,n){e&&!WB(e=n?e:e.prototype,hU)&&mU(e,hU,{configurable:!0,value:t})},_U=pU.IteratorPrototype,vU=function(){return this},yU=xB.String,bU=xB.TypeError,xU=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=EB(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return hV(n),function(e){if(typeof e==`object`||YB(e))return e;throw bU(`Can't set `+yU(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),SU=UH.PROPER,CU=UH.CONFIGURABLE,wU=pU.IteratorPrototype,TU=pU.BUGGY_SAFARI_ITERATORS,EU=dV(`iterator`),DU=function(){return this},OU=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=uH(_U,{next:SH(1,n)}),gU(e,i,!1),mH[i]=vU})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!TU&&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[EU]||p[`@@iterator`]||i&&p[i],h=!TU&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=uU(g.call(new e)))!==Object.prototype&&s.next&&(uU(s)!==wU&&(xU?xU(s,wU):YB(s[EU])||WH(s,EU,DU)),gU(s,d,!0)),SU&&i==`values`&&m&&m.name!==`values`&&(CU?CH(p,`name`,`values`):(f=!0,h=function(){return SV(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(TU||f||!(l in p))&&WH(p,l,c[l]);else aU({target:t,proto:!0,forced:TU||f},c)}return p[EU]!==h&&WH(p,EU,h,{name:i}),mH[t]=h,c},kU=PH.set,AU=PH.getterFor(`Array Iterator`),jU=OU(Array,`Array`,(function(e,t){kU(this,{type:`Array Iterator`,target:IB(e),index:0,kind:t})}),(function(){var e=AU(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`);mH.Arguments=mH.Array,pH(`keys`),pH(`values`),pH(`entries`);var MU={};MU[dV(`toStringTag`)]=`z`;var NU=String(MU)===`[object z]`,PU=dV(`toStringTag`),FU=xB.Object,IU=AB(function(){return arguments}())==`Arguments`,LU=NU?AB: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=FU(e),PU))==`string`?n:IU?AB(t):(r=AB(t))==`Object`&&YB(t.callee)?`Arguments`:r},RU=NU?{}.toString:function(){return`[object `+LU(this)+`]`};NU||WH(Object.prototype,`toString`,RU,{unsafe:!0});var zU=xB.String,BU=function(e){if(LU(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return zU(e)},VU=EB(``.charAt),HU=EB(``.charCodeAt),UU=EB(``.slice),WU=function(e){return function(t,n){var r,i,a=BU(FB(t)),o=BV(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=HU(a,o))<55296||r>56319||o+1===s||(i=HU(a,o+1))<56320||i>57343?e?VU(a,o):r:e?UU(a,o,o+2):i-56320+(r-55296<<10)+65536}},GU={codeAt:WU(!1),charAt:WU(!0)},KU=GU.charAt,qU=PH.set,JU=PH.getterFor(`String Iterator`);OU(String,`String`,(function(e){qU(this,{type:`String Iterator`,string:BU(e),index:0})}),(function(){var e,t=JU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=KU(n,r),t.index+=e.length,{value:e,done:!1})}));var YU=function(e,t,n){for(var r in t)WH(e,r,t[r],n);return e},XU=xB.Array,ZU=Math.max,QU=KH.f,$U=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],eW={f:function(e){return $U&&AB(e)==`Window`?function(e){try{return QU(e)}catch{return function(e,t,n){for(var r,i,a,o,s=KV(e),c=UV(void 0,s),l=UV(s,s),u=XU(ZU(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=PV(i))in r?LV.f(r,o,SH(0,a)):r[o]=a;return u.length=d,u}($U)}}(e):QU(IB(e))}},tW=DB((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),nW=Object.isExtensible,rW=DB((function(){nW(1)}))||tW?function(e){return!!fV(e)&&(!tW||AB(e)!=`ArrayBuffer`)&&(!nW||nW(e))}:nW,iW=!DB((function(){return Object.isExtensible(Object.preventExtensions({}))})),aW=_B((function(e){var t=LV.f,n=!1,r=JB(`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=KH.f,t=EB([].splice),i={};i[r]=1,e(i).length&&(KH.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},aU({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:eW.f}))},fastKey:function(e,t){if(!fV(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!WB(e,r)){if(!rW(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!WB(e,r)){if(!rW(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return iW&&n&&rW(e)&&!WB(e,r)&&a(e),e}};YV[r]=!0})),oW=EB(EB.bind),sW=function(e,t){return kV(e),t===void 0?e:oW?oW(e,t):function(){return e.apply(t,arguments)}},cW=dV(`iterator`),lW=Array.prototype,uW=dV(`iterator`),dW=function(e){if(e!=null)return AV(e,uW)||AV(e,`@@iterator`)||mH[LU(e)]},fW=xB.TypeError,pW=function(e,t,n){var r,i;hV(e);try{if(!(r=AV(e,`return`))){if(t===`throw`)throw n;return n}r=SV(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return hV(r),n},mW=xB.TypeError,hW=function(e,t){this.stopped=e,this.result=t},gW=hW.prototype,_W=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=sW(t,d),g=function(e){return r&&pW(r,`normal`,e),new hW(!0,e)},_=function(e){return f?(hV(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=dW(e)))throw mW(DV(e)+` is not iterable`);if((u=i)!==void 0&&(mH.Array===u||lW[cW]===u)){for(a=0,o=KV(e);o>a;a++)if((s=_(e[a]))&&CV(gW,s))return s;return new hW(!1)}r=function(e,t){var n=arguments.length<2?dW(e):t;if(kV(n))return hV(SV(n,e));throw fW(DV(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=SV(c,r)).done;){try{s=_(l.value)}catch(e){pW(r,`throw`,e)}if(typeof s==`object`&&s&&CV(gW,s))return s}return new hW(!1)},vW=xB.TypeError,yW=function(e,t){if(CV(t,e))return e;throw vW(`Incorrect invocation`)},bW=dV(`iterator`),xW=!1;try{var SW=0,CW={next:function(){return{done:!!SW++}},return:function(){xW=!0}};CW[bW]=function(){return this},Array.from(CW,(function(){throw 2}))}catch{}var wW=Array.isArray||function(e){return AB(e)==`Array`},TW=function(){},EW=[],DW=ZB(`Reflect`,`construct`),OW=/^\s*(?:class|function)\b/,kW=EB(OW.exec),AW=!OW.exec(TW),jW=function(e){if(!YB(e))return!1;try{return DW(TW,EW,e),!0}catch{return!1}},MW=!DW||DB((function(){var e;return jW(jW.call)||!jW(Object)||!jW((function(){e=!0}))||e}))?function(e){if(!YB(e))return!1;switch(LU(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return AW||!!kW(OW,yH(e))}:jW,NW=dV(`species`),PW=xB.Array,FW=function(e,t){return new(function(e){var t;return wW(e)&&(t=e.constructor,(MW(t)&&(t===PW||wW(t.prototype))||fV(t)&&(t=t[NW])===null)&&(t=void 0)),t===void 0?PW:t}(e))(t===0?0:t)},IW=EB([].push),LW=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=HB(c),h=NB(m),g=sW(l,u),_=KV(h),v=0,y=d||FW,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:IW(b,f)}else switch(e){case 4:return!1;case 7:IW(b,f)}}return a?-1:r||i?i:b}},RW={forEach:LW(0),map:LW(1),filter:LW(2),some:LW(3),every:LW(4),find:LW(5),findIndex:LW(6),filterReject:LW(7)},zW=aW.getWeakData,BW=PH.set,VW=PH.getterFor,HW=RW.find,UW=RW.findIndex,WW=EB([].splice),GW=0,KW=function(e){return e.frozen||=new qW},qW=function(){this.entries=[]},JW=function(e,t){return HW(e.entries,(function(e){return e[0]===t}))};qW.prototype={get:function(e){var t=JW(this,e);if(t)return t[1]},has:function(e){return!!JW(this,e)},set:function(e,t){var n=JW(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=UW(this.entries,(function(t){return t[0]===e}));return~t&&WW(this.entries,t,1),!!~t}};var YW,XW={getConstructor:function(e,t,n,r){var i=e((function(e,i){yW(e,a),BW(e,{type:t,id:GW++,frozen:void 0}),i!=null&&_W(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=VW(t),s=function(e,t,n){var r=o(e),i=zW(hV(t),!0);return!0===i?KW(r).set(t,n):i[r.id]=n,e};return YU(a,{delete:function(e){var t=o(this);if(!fV(e))return!1;var n=zW(e);return!0===n?KW(t).delete(e):n&&WB(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!fV(e))return!1;var n=zW(e);return!0===n?KW(t).has(e):n&&WB(n,t.id)}}),YU(a,n?{get:function(e){var t=o(this);if(fV(e)){var n=zW(e);return!0===n?KW(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}},ZW=PH.enforce,QW=!xB.ActiveXObject&&`ActiveXObject`in xB,$W=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},eG=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=xB[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=EB(s[e]);WH(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!fV(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!fV(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!fV(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(rU(e,!YB(o)||!(i||s.forEach&&!DB((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),aW.enable();else if(rU(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=DB((function(){d.has(1)})),m=function(e,t){if(!xW)return!1;var n=!1;try{var r={};r[bW]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&DB((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){yW(e,s);var n=function(e,t,n){var r,i;return xU&&YB(r=t.constructor)&&r!==n&&fV(i=r.prototype)&&i!==n.prototype&&xU(e,i),e}(new o,e,c);return t!=null&&_W(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,aU({global:!0,forced:c!=o},l),gU(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,$W,XW);if(xH&&QW){YW=XW.getConstructor($W,`WeakMap`,!0),aW.enable();var tG=eG.prototype,nG=EB(tG.delete),rG=EB(tG.has),iG=EB(tG.get),aG=EB(tG.set);YU(tG,{delete:function(e){if(fV(e)&&!rW(e)){var t=ZW(this);return t.frozen||=new YW,nG(this,e)||t.frozen.delete(e)}return nG(this,e)},has:function(e){if(fV(e)&&!rW(e)){var t=ZW(this);return t.frozen||=new YW,rG(this,e)||t.frozen.has(e)}return rG(this,e)},get:function(e){if(fV(e)&&!rW(e)){var t=ZW(this);return t.frozen||=new YW,rG(this,e)?iG(this,e):t.frozen.get(e)}return iG(this,e)},set:function(e,t){if(fV(e)&&!rW(e)){var n=ZW(this);n.frozen||=new YW,rG(this,e)?aG(this,e,t):n.frozen.set(e,t)}else aG(this,e,t);return this}})}var oG={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},sG=yV(`span`).classList,cG=sG&&sG.constructor&&sG.constructor.prototype,lG=cG===Object.prototype?void 0:cG,uG=dV(`iterator`),dG=dV(`toStringTag`),fG=jU.values,pG=function(e,t){if(e){if(e[uG]!==fG)try{CH(e,uG,fG)}catch{e[uG]=fG}if(e[dG]||CH(e,dG,t),oG[t]){for(var n in jU)if(e[n]!==jU[n])try{CH(e,n,jU[n])}catch{e[n]=jU[n]}}}};for(var mG in oG)pG(xB[mG]&&xB[mG].prototype,mG);pG(lG,`DOMTokenList`);var hG=new WeakMap,gG={type:`list-item`,renderElem:function(e,t,n){hG.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=W.previous(u),f=H.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];K.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return fv(`div`,{style:s},fv(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),fv(`span`,null,t))}},_G=function(e,t){return _G=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])},_G(e,t)};function vG(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}_G(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function yG(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 bG(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 xG(e){return H.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var SG=JV.includes;aU({target:`Array`,proto:!0},{includes:function(e){return SG(this,e,arguments.length>1?arguments[1]:void 0)}}),pH(`includes`);var CG,wG,TG=function(){var e=hV(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},EG=xB.RegExp,DG=DB((function(){var e=EG(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),OG=DG||DB((function(){return!EG(`a`,`y`).sticky})),kG={BROKEN_CARET:DG||DB((function(){var e=EG(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:OG,UNSUPPORTED_Y:DG},AG=xB.RegExp,jG=DB((function(){var e=AG(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),MG=xB.RegExp,NG=DB((function(){var e=MG(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),PG=PH.get,FG=BB(`native-string-replace`,String.prototype.replace),IG=RegExp.prototype.exec,LG=IG,RG=EB(``.charAt),zG=EB(``.indexOf),BG=EB(``.replace),VG=EB(``.slice),HG=(wG=/b*/g,SV(IG,CG=/a/,`a`),SV(IG,wG,`a`),CG.lastIndex!==0||wG.lastIndex!==0),UG=kG.BROKEN_CARET,WG=/()??/.exec(``)[1]!==void 0;(HG||WG||UG||jG||NG)&&(LG=function(e){var t,n,r,i,a,o,s,c=this,l=PG(c),u=BU(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=SV(LG,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=UG&&c.sticky,m=SV(TG,c),h=c.source,g=0,_=u;if(p&&(m=BG(m,`y`,``),zG(m,`g`)===-1&&(m+=`g`),_=VG(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&RG(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),WG&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),HG&&(r=c.lastIndex),i=SV(IG,p?n:c,_),p?i?(i.input=VG(i.input,g),i[0]=VG(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:HG&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),WG&&i&&i.length>1&&SV(FG,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=uH(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var GG=LG;aU({target:`RegExp`,proto:!0,forced:/./.exec!==GG},{exec:GG});var KG=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(H.isVoid(e,t)&&H.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)?q.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):q.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),qG=`<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>`,JG=`<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>`,YG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Z(`listModule.unOrderedList`),t.iconSvg=qG,t}return vG(t,e),t}(KG),XG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Z(`listModule.orderedList`),t.iconSvg=JG,t}return vG(t,e),t}(KG),ZG={key:`bulletedList`,factory:function(){return new YG}},QG={key:`numberedList`,factory:function(){return new XG}},$G=[],eK={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=hG.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=W.previous(c),u=H.node(t,l);if(!u)return 0;var d=bG(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+`>`,$G.push(a);var c=function(e){var t=hG.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=W.next(c),u=H.node(t,l);if(!u)return 0;var d=bG(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+=`</`+$G.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},tK=dV(`species`),nK=RW.filter;aU({target:`Array`,proto:!0,forced:!(iV>=51||!DB((function(){var e=[];return(e.constructor={})[tK]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return nK(this,e,arguments.length>1?arguments[1]:void 0)}});var rK=Function.prototype,iK=rK.apply,aK=rK.bind,oK=rK.call,sK=typeof Reflect==`object`&&Reflect.apply||(aK?oK.bind(iK):function(){return oK.apply(iK,arguments)}),cK=(dV(`species`),RegExp.prototype),lK=GU.charAt,uK=function(e,t,n){return t+(n?lK(e,t).length:1)},dK=Math.floor,fK=EB(``.charAt),pK=EB(``.replace),mK=EB(``.slice),hK=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gK=/\$([$&'`]|\d{1,2})/g,_K=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=gK;return i!==void 0&&(i=HB(i),c=hK),pK(a,c,(function(a,c){var l;switch(fK(c,0)){case`$`:return`$`;case`&`:return e;case"`":return mK(t,0,n);case`'`:return mK(t,o);case`<`:l=i[mK(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=dK(u/10);return d===0?a:d<=s?r[d-1]===void 0?fK(c,1):r[d-1]+fK(c,1):a}l=r[u-1]}return l===void 0?``:l}))},vK=xB.TypeError,yK=function(e,t){var n=e.exec;if(YB(n)){var r=SV(n,e,t);return r!==null&&hV(r),r}if(AB(e)===`RegExp`)return SV(GG,e,t);throw vK(`RegExp#exec called on incompatible receiver`)},bK=dV(`replace`),xK=Math.max,SK=Math.min,CK=EB([].concat),wK=EB([].push),TK=EB(``.indexOf),EK=EB(``.slice),DK=`a`.replace(/./,`$0`)===`$0`,OK=!!/./[bK]&&/./[bK](`a`,`$0`)===``;(function(e,t,n,r){var i=dV(e),a=!DB((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!DB((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=EB(/./[i]),c=function(e,t,n){var r=OK?`$`:`$0`;return[function(e,n){var r=FB(this),i=e==null?void 0:AV(e,bK);return i?SV(i,e,r,n):SV(t,BU(r),e,n)},function(e,i){var a=hV(this),o=BU(e);if(typeof i==`string`&&TK(i,r)===-1&&TK(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=YB(i);c||(i=BU(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=yK(a,o);if(f===null||(wK(d,f),!l))break;BU(f[0])===``&&(a.lastIndex=uK(o,GV(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=BU((f=d[g])[0]),v=xK(SK(BV(f.index),o.length),0),y=[],b=1;b<f.length;b++)wK(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=CK([_],y,v,o);x!==void 0&&wK(S,x);var C=BU(sK(i,void 0,S))}else C=_K(_,o,v,y,x,i);v>=h&&(m+=EK(o,h,v)+C,h=v+_.length)}return m+EK(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=EB(e),c=t.exec;return c===GG||c===cK.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));WH(String.prototype,e,c[0]),WH(cK,i,c[1])}})(`replace`,0,!!DB((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!DK||OK);var kK=xB.TypeError,AK=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&sW(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&wW(c))l=KV(c),u=AK(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw kK(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},jK=AK;function MK(e){return e.length?e[0].tagName.toLowerCase():``}aU({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=HB(this),n=KV(t),r=FW(t,0);return r.length=jK(r,t,t,n,0,e===void 0?1:BV(e)),r}}),pH(`flat`),aU({global:!0},{globalThis:xB}),Bg&&(J.fn.append=Bg),Cg&&(J.fn.attr=Cg),Hg&&(J.fn.parent=Hg);var NK={renderElems:[gG],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(G.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?q.setNodes(i,{level:o-1}):q.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(G.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;q.setNodes(i,{level:l+1});return}}if(G.isExpanded(o)){var u=0,d=!1;try{for(var f=yG(xG(i)),p=f.next();!p.done;p=f.next()){var m=bG(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=yG(xG(i)),g=h.next();!g.done;g=h.next()){var _=bG(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,q.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=bG(e,2),n=t[0],a=t[1],o=X.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||q.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[ZG,QG],elemsToHtml:[eK],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=J(e);return(t=t.filter((function(e){return!!K.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return MK(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=MK(n);r===`ul`||r===`ol`;)r=MK(n=n.parent()),t++;return t-1}(r),children:t}}}]},PK=Oa((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 WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,S={};S[`[object Float32Array]`]=S[`[object Float64Array]`]=S[`[object Int8Array]`]=S[`[object Int16Array]`]=S[`[object Int32Array]`]=S[`[object Uint8Array]`]=S[`[object Uint8ClampedArray]`]=S[`[object Uint16Array]`]=S[`[object Uint32Array]`]=!0,S[i]=S[a]=S[v]=S[o]=S[y]=S[s]=S[c]=S[l]=S[u]=S[d]=S[f]=S[m]=S[h]=S[g]=S[_]=!1;var C=typeof Da==`object`&&Da&&Da.Object===Object&&Da,w=typeof self==`object`&&self&&self.Object===Object&&self,T=C||w||Function(`return this`)(),E=t&&!t.nodeType&&t,D=E&&e&&!e.nodeType&&e,O=D&&D.exports===E,k=O&&C.process,A=function(){try{return k&&k.binding&&k.binding(`util`)}catch{}}(),j=A&&A.isTypedArray;function M(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var F=Array.prototype,I=Function.prototype,ee=Object.prototype,te=T[`__core-js_shared__`],ne=I.toString,L=ee.hasOwnProperty,re=function(){var e=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ie=ee.toString,ae=RegExp(`^`+ne.call(L).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),R=O?T.Buffer:void 0,oe=T.Symbol,se=T.Uint8Array,ce=ee.propertyIsEnumerable,le=F.splice,ue=oe?oe.toStringTag:void 0,de=Object.getOwnPropertySymbols,fe=R?R.isBuffer:void 0,pe=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),me=He(T,`DataView`),he=He(T,`Map`),ge=He(T,`Promise`),_e=He(T,`Set`),ve=He(T,`WeakMap`),ye=He(Object,`create`),be=Ke(me),xe=Ke(he),Se=Ke(ge),Ce=Ke(_e),we=Ke(ve),Te=oe?oe.prototype:void 0,Ee=Te?Te.valueOf:void 0;function De(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 Oe(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.__data__=new ke;++t<n;)this.add(e[t])}function je(e){var t=this.__data__=new Oe(e);this.size=t.size}function Me(e,t){var n=Ye(e),r=!n&&Je(e),i=!n&&!r&&Xe(e),a=!n&&!r&&!i&&tt(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&&!L.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ge(l,c))||s.push(l);return s}function Ne(e,t){for(var n=e.length;n--;)if(qe(e[n][0],t))return n;return-1}function Pe(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:ue&&ue in Object(e)?function(e){var t=L.call(e,ue),n=e[ue];try{e[ue]=void 0;var r=!0}catch{}var i=ie.call(e);return r&&(t?e[ue]=n:delete e[ue]),i}(e):function(e){return ie.call(e)}(e)}function Fe(e){return et(e)&&Pe(e)==i}function Ie(e,t,n,r,l){return e===t||(e==null||t==null||!et(e)&&!et(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var _=Ye(e),b=Ye(t),x=_?a:We(e),S=b?a:We(t),C=(x=x==i?f:x)==f,w=(S=S==i?f:S)==f,T=x==S;if(T&&Xe(e)){if(!Xe(t))return!1;_=!0,C=!1}if(T&&!C)return p||=new je,_||tt(e)?ze(e,t,n,r,l,p):function(e,t,n,r,i,a,l){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case v:return!(e.byteLength!=t.byteLength||!a(new se(e),new se(t)));case o:case s:case d:return qe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=N;case h:var p=1&r;if(f||=P,e.size!=t.size&&!p)return!1;var _=l.get(e);if(_)return _==t;r|=2,l.set(e,t);var b=ze(f(e),f(t),r,i,a,l);return l.delete(e),b;case`[object Symbol]`:if(Ee)return Ee.call(e)==Ee.call(t)}return!1}(e,t,x,n,r,l,p);if(!(1&n)){var E=C&&L.call(e,`__wrapped__`),D=w&&L.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return p||=new je,l(O,k,n,r,p)}}return T?(p||=new je,function(e,t,n,r,i,a){var o=1&n,s=Be(e),c=s.length;if(c!=Be(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:L.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,Ie,l))}function Le(e){return!(!$e(e)||function(e){return!!re&&re in e}(e))&&(Ze(e)?ae:b).test(Ke(e))}function Re(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ee,t!==r)return pe(e);var t,n,r,i=[];for(var a in Object(e))L.call(e,a)&&a!=`constructor`&&i.push(a);return i}function ze(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 Ae:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!M(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||i(p,e,n,r,a)))return f.push(t);var o}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Be(e){return function(e,t,n){var r=t(e);return Ye(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,nt,Ue)}function Ve(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 He(e,t){var n=function(e,t){return e?.[t]}(e,t);return Le(n)?n:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{},this.size=0},De.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return L.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?t[e]!==void 0:L.call(t,e)},De.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ye&&t===void 0?n:t,this},Oe.prototype.clear=function(){this.__data__=[],this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),--this.size,!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Ne(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Ne(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ke.prototype.clear=function(){this.size=0,this.__data__={hash:new De,map:new(he||Oe),string:new De}},ke.prototype.delete=function(e){var t=Ve(this,e).delete(e);return this.size-=+!!t,t},ke.prototype.get=function(e){return Ve(this,e).get(e)},ke.prototype.has=function(e){return Ve(this,e).has(e)},ke.prototype.set=function(e,t){var n=Ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,n),this},Ae.prototype.has=function(e){return this.__data__.has(e)},je.prototype.clear=function(){this.__data__=new Oe,this.size=0},je.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},je.prototype.get=function(e){return this.__data__.get(e)},je.prototype.has=function(e){return this.__data__.has(e)},je.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ke(r)}return n.set(e,t),this.size=n.size,this};var Ue=de?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}(de(e),(function(t){return ce.call(e,t)})))}:function(){return[]},We=Pe;function Ge(e,t){return!!(t??=r)&&(typeof e==`number`||x.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e){if(e!=null){try{return ne.call(e)}catch{}try{return e+``}catch{}}return``}function qe(e,t){return e===t||e!=e&&t!=t}(me&&We(new me(new ArrayBuffer(1)))!=y||he&&We(new he)!=u||ge&&We(ge.resolve())!=p||_e&&We(new _e)!=h||ve&&We(new ve)!=_)&&(We=function(e){var t=Pe(e),n=t==f?e.constructor:void 0,r=n?Ke(n):``;if(r)switch(r){case be:return y;case xe:return u;case Se:return p;case Ce:return h;case we:return _}return t});var Je=Fe(function(){return arguments}())?Fe:function(e){return et(e)&&L.call(e,`callee`)&&!ce.call(e,`callee`)},Ye=Array.isArray,Xe=fe||function(){return!1};function Ze(e){if(!$e(e))return!1;var t=Pe(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function Qe(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function $e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function et(e){return typeof e==`object`&&!!e}var tt=j?function(e){return function(t){return e(t)}}(j):function(e){return et(e)&&Qe(e.length)&&!!S[Pe(e)]};function nt(e){return(t=e)!=null&&Qe(t.length)&&!Ze(t)?Me(e):Re(e);var t}e.exports=function(e,t){return Ie(e,t)}}));Mj(`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`}}),Mj(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var FK=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function IK(e){var t={exports:{}};return e(t,t.exports),t.exports}var LK,RK,zK=function(e){return e&&e.Math==Math&&e},BK=zK(typeof globalThis==`object`&&globalThis)||zK(typeof window==`object`&&window)||zK(typeof self==`object`&&self)||zK(typeof FK==`object`&&FK)||function(){return this}()||Function(`return this`)(),VK=function(e){try{return!!e()}catch{return!0}},HK=!VK((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),UK=Function.prototype.call,WK=UK.bind?UK.bind(UK):function(){return UK.apply(UK,arguments)},GK={}.propertyIsEnumerable,KK=Object.getOwnPropertyDescriptor,qK={f:KK&&!GK.call({1:2},1)?function(e){var t=KK(this,e);return!!t&&t.enumerable}:GK},JK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},YK=Function.prototype,XK=YK.bind,ZK=YK.call,QK=XK&&XK.bind(ZK),$K=XK?function(e){return e&&QK(ZK,e)}:function(e){return e&&function(){return ZK.apply(e,arguments)}},eq=$K({}.toString),tq=$K(``.slice),nq=function(e){return tq(eq(e),8,-1)},rq=BK.Object,iq=$K(``.split),aq=VK((function(){return!rq(`z`).propertyIsEnumerable(0)}))?function(e){return nq(e)==`String`?iq(e,``):rq(e)}:rq,oq=BK.TypeError,sq=function(e){if(e==null)throw oq(`Can't call method on `+e);return e},cq=function(e){return aq(sq(e))},lq=function(e){return typeof e==`function`},uq=function(e){return typeof e==`object`?e!==null:lq(e)},dq=function(e){return lq(e)?e:void 0},fq=function(e,t){return arguments.length<2?dq(BK[e]):BK[e]&&BK[e][t]},pq=$K({}.isPrototypeOf),mq=fq(`navigator`,`userAgent`)||``,hq=BK.process,gq=BK.Deno,_q=hq&&hq.versions||gq&&gq.version,vq=_q&&_q.v8;vq&&(RK=(LK=vq.split(`.`))[0]>0&&LK[0]<4?1:+(LK[0]+LK[1])),!RK&&mq&&(!(LK=mq.match(/Edge\/(\d+)/))||LK[1]>=74)&&(LK=mq.match(/Chrome\/(\d+)/))&&(RK=+LK[1]);var yq=RK,bq=!!Object.getOwnPropertySymbols&&!VK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yq&&yq<41})),xq=bq&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Sq=BK.Object,Cq=xq?function(e){return typeof e==`symbol`}:function(e){var t=fq(`Symbol`);return lq(t)&&pq(t.prototype,Sq(e))},wq=BK.String,Tq=function(e){try{return wq(e)}catch{return`Object`}},Eq=BK.TypeError,Dq=function(e){if(lq(e))return e;throw Eq(Tq(e)+` is not a function`)},Oq=function(e,t){var n=e[t];return n==null?void 0:Dq(n)},kq=BK.TypeError,Aq=Object.defineProperty,jq=function(e,t){try{Aq(BK,e,{value:t,configurable:!0,writable:!0})}catch{BK[e]=t}return t},Mq=BK[`__core-js_shared__`]||jq(`__core-js_shared__`,{}),Nq=IK((function(e){(e.exports=function(e,t){return Mq[e]||(Mq[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Pq=BK.Object,Fq=function(e){return Pq(sq(e))},Iq=$K({}.hasOwnProperty),Lq=Object.hasOwn||function(e,t){return Iq(Fq(e),t)},Rq=0,zq=Math.random(),Bq=$K(1 .toString),Vq=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Bq(++Rq+zq,36)},Hq=Nq(`wks`),Uq=BK.Symbol,Wq=Uq&&Uq.for,Gq=xq?Uq:Uq&&Uq.withoutSetter||Vq,Kq=function(e){if(!Lq(Hq,e)||!bq&&typeof Hq[e]!=`string`){var t=`Symbol.`+e;Hq[e]=bq&&Lq(Uq,e)?Uq[e]:xq&&Wq?Wq(t):Gq(t)}return Hq[e]},qq=BK.TypeError,Jq=Kq(`toPrimitive`),Yq=function(e){var t=function(e,t){if(!uq(e)||Cq(e))return e;var n,r=Oq(e,Jq);if(r){if(t===void 0&&(t=`default`),n=WK(r,e,t),!uq(n)||Cq(n))return n;throw qq(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&lq(n=e.toString)&&!uq(r=WK(n,e))||lq(n=e.valueOf)&&!uq(r=WK(n,e))||t!==`string`&&lq(n=e.toString)&&!uq(r=WK(n,e)))return r;throw kq(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Cq(t)?t:t+``},Xq=BK.document,Zq=uq(Xq)&&uq(Xq.createElement),Qq=function(e){return Zq?Xq.createElement(e):{}},$q=!HK&&!VK((function(){return Object.defineProperty(Qq(`div`),"a",{get:function(){return 7}}).a!=7})),eJ=Object.getOwnPropertyDescriptor,tJ={f:HK?eJ:function(e,t){if(e=cq(e),t=Yq(t),$q)try{return eJ(e,t)}catch{}if(Lq(e,t))return JK(!WK(qK.f,e,t),e[t])}},nJ=BK.String,rJ=BK.TypeError,iJ=function(e){if(uq(e))return e;throw rJ(nJ(e)+` is not an object`)},aJ=BK.TypeError,oJ=Object.defineProperty,sJ={f:HK?oJ:function(e,t,n){if(iJ(e),t=Yq(t),iJ(n),$q)try{return oJ(e,t,n)}catch{}if(`get`in n||`set`in n)throw aJ(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},cJ=HK?function(e,t,n){return sJ.f(e,t,JK(1,n))}:function(e,t,n){return e[t]=n,e},lJ=$K(Function.toString);lq(Mq.inspectSource)||(Mq.inspectSource=function(e){return lJ(e)});var uJ,dJ,fJ,pJ=Mq.inspectSource,mJ=BK.WeakMap,hJ=lq(mJ)&&/native code/.test(pJ(mJ)),gJ=Nq(`keys`),_J=function(e){return gJ[e]||(gJ[e]=Vq(e))},vJ={},yJ=BK.TypeError,bJ=BK.WeakMap;if(hJ||Mq.state){var xJ=Mq.state||=new bJ,SJ=$K(xJ.get),CJ=$K(xJ.has),wJ=$K(xJ.set);uJ=function(e,t){if(CJ(xJ,e))throw new yJ(`Object already initialized`);return t.facade=e,wJ(xJ,e,t),t},dJ=function(e){return SJ(xJ,e)||{}},fJ=function(e){return CJ(xJ,e)}}else{var TJ=_J(`state`);vJ[TJ]=!0,uJ=function(e,t){if(Lq(e,TJ))throw new yJ(`Object already initialized`);return t.facade=e,cJ(e,TJ,t),t},dJ=function(e){return Lq(e,TJ)?e[TJ]:{}},fJ=function(e){return Lq(e,TJ)}}var EJ={set:uJ,get:dJ,has:fJ,enforce:function(e){return fJ(e)?dJ(e):uJ(e,{})},getterFor:function(e){return function(t){var n;if(!uq(t)||(n=dJ(t)).type!==e)throw yJ(`Incompatible receiver, `+e+` required`);return n}}},DJ=Function.prototype,OJ=HK&&Object.getOwnPropertyDescriptor,kJ=Lq(DJ,`name`),AJ={EXISTS:kJ,PROPER:kJ&&function(){}.name===`something`,CONFIGURABLE:kJ&&(!HK||HK&&OJ(DJ,`name`).configurable)},jJ=IK((function(e){var t=AJ.CONFIGURABLE,n=EJ.get,r=EJ.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;lq(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Lq(a,`name`)||t&&a.name!==d)&&cJ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===BK?l?e[n]=a:jq(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:cJ(e,n,a))})(Function.prototype,`toString`,(function(){return lq(this)&&n(this).source||pJ(this)}))})),MJ=Math.ceil,NJ=Math.floor,PJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?NJ:MJ)(t)},FJ=Math.max,IJ=Math.min,LJ=function(e,t){var n=PJ(e);return n<0?FJ(n+t,0):IJ(n,t)},RJ=Math.min,zJ=function(e){return e>0?RJ(PJ(e),9007199254740991):0},BJ=function(e){return zJ(e.length)},VJ=function(e){return function(e,t,n){for(var r=cq(e),i=BJ(r),a=LJ(n,i);i>a;a++)if(a in r&&r[a]===t)return a||0;return-1}}(!1),HJ=$K([].push),UJ=function(e,t){var n,r=cq(e),i=0,a=[];for(n in r)!Lq(vJ,n)&&Lq(r,n)&&HJ(a,n);for(;t.length>i;)Lq(r,n=t[i++])&&(~VJ(a,n)||HJ(a,n));return a},WJ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],GJ=WJ.concat(`length`,`prototype`),KJ={f:Object.getOwnPropertyNames||function(e){return UJ(e,GJ)}},qJ={f:Object.getOwnPropertySymbols},JJ=$K([].concat),YJ=fq(`Reflect`,`ownKeys`)||function(e){var t=KJ.f(iJ(e)),n=qJ.f;return n?JJ(t,n(e)):t},XJ=function(e,t){for(var n=YJ(t),r=sJ.f,i=tJ.f,a=0;a<n.length;a++){var o=n[a];Lq(e,o)||r(e,o,i(t,o))}},ZJ=/#|\.prototype\./,QJ=function(e,t){var n=eY[$J(e)];return n==nY||n!=tY&&(lq(t)?VK(t):!!t)},$J=QJ.normalize=function(e){return String(e).replace(ZJ,`.`).toLowerCase()},eY=QJ.data={},tY=QJ.NATIVE=`N`,nY=QJ.POLYFILL=`P`,rY=QJ,$me=tJ.f,iY=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?BK:l?BK[s]||jq(s,{}):(BK[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=$me(n,r))&&o.value:n[r],!rY(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;XJ(a,i)}(e.sham||i&&i.sham)&&cJ(a,`sham`,!0),jJ(n,r,a,e)}},aY={};aY[Kq(`toStringTag`)]=`z`;var oY=String(aY)===`[object z]`,ehe=Kq(`toStringTag`),the=BK.Object,nhe=nq(function(){return arguments}())==`Arguments`,sY=oY?nq: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=the(e),ehe))==`string`?n:nhe?nq(t):(r=nq(t))==`Object`&&lq(t.callee)?`Arguments`:r},rhe=BK.String,cY=function(e){if(sY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return rhe(e)},ihe=/"/g,ahe=$K(``.replace);iY({target:`String`,proto:!0,forced:VK((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=cY(sq(this)),r=`<a`,(r+=` name="`+ahe(cY(t),ihe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var lY,uY=function(){var e=iJ(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=BK.RegExp,fY=VK((function(){var e=dY(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),ohe=fY||VK((function(){return!dY(`a`,`y`).sticky})),pY={BROKEN_CARET:fY||VK((function(){var e=dY(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:ohe,UNSUPPORTED_Y:fY},she=Object.keys||function(e){return UJ(e,WJ)},che=HK?Object.defineProperties:function(e,t){iJ(e);for(var n,r=cq(t),i=she(t),a=i.length,o=0;a>o;)sJ.f(e,n=i[o++],r[n]);return e},lhe=fq(`document`,`documentElement`),mY=_J(`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=Qq(`iframe`)).style.display=`none`,lhe.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=WJ.length;n--;)delete vY.prototype[WJ[n]];return vY()};vJ[mY]=!0;var yY,bY,xY=Object.create||function(e,t){var n;return e===null?n=vY():(hY.prototype=iJ(e),n=new hY,hY.prototype=null,n[mY]=e),t===void 0?n:che(n,t)},uhe=BK.RegExp,dhe=VK((function(){var e=uhe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),fhe=BK.RegExp,phe=VK((function(){var e=fhe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),mhe=EJ.get,hhe=Nq(`native-string-replace`,String.prototype.replace),SY=RegExp.prototype.exec,CY=SY,ghe=$K(``.charAt),_he=$K(``.indexOf),vhe=$K(``.replace),wY=$K(``.slice),TY=(bY=/b*/g,WK(SY,yY=/a/,`a`),WK(SY,bY,`a`),yY.lastIndex!==0||bY.lastIndex!==0),EY=pY.BROKEN_CARET,DY=/()??/.exec(``)[1]!==void 0;(TY||DY||EY||dhe||phe)&&(CY=function(e){var t,n,r,i,a,o,s,c=this,l=mhe(c),u=cY(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=WK(CY,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=EY&&c.sticky,m=WK(uY,c),h=c.source,g=0,_=u;if(p&&(m=vhe(m,`y`,``),_he(m,`g`)===-1&&(m+=`g`),_=wY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ghe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),DY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),TY&&(r=c.lastIndex),i=WK(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&&WK(hhe,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 nq(e)==`Array`},AY=function(){},yhe=[],jY=fq(`Reflect`,`construct`),MY=/^\s*(?:class|function)\b/,bhe=$K(MY.exec),xhe=!MY.exec(AY),NY=function(e){if(!lq(e))return!1;try{return jY(AY,yhe,e),!0}catch{return!1}},PY=!jY||VK((function(){var e;return NY(NY.call)||!NY(Object)||!NY((function(){e=!0}))||e}))?function(e){if(!lq(e))return!1;switch(sY(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return xhe||!!bhe(MY,pJ(e))}:NY,FY=function(e,t,n){var r=Yq(t);r in e?sJ.f(e,r,JK(0,n)):e[r]=n},She=Kq(`species`),IY=function(e){return yq>=51||!VK((function(){var t=[];return(t.constructor={})[She]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Che=$K([].slice),whe=IY(`slice`),The=Kq(`species`),LY=BK.Array,Ehe=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(H.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=RY(n,2)[1],i=H.start(e,r);if(Lm.equals(t.anchor,i))return!0}return!1}function BY(e,t){var n,r,i=H.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:!whe},{slice:function(e,t){var n,r,i,a=cq(this),o=BJ(a),s=LJ(e,o),c=LJ(t===void 0?o:t,o);if(kY(a)&&(n=a.constructor,(PY(n)&&(n===LY||kY(n.prototype))||uq(n)&&(n=n[The])===null)&&(n=void 0),n===LY||n===void 0))return Che(a,s,c);for(r=new(n===void 0?LY:n)(Ehe(c-s,0)),i=0;s<c;s++,i++)s in a&&FY(r,i,a[s]);return r.length=i,r}});var VY=$K($K.bind),Dhe=Kq(`species`),HY=BK.Array,Ohe=function(e,t){return new(function(e){var t;return kY(e)&&(t=e.constructor,(PY(t)&&(t===HY||kY(t.prototype))||uq(t)&&(t=t[Dhe])===null)&&(t=void 0)),t===void 0?HY:t}(e))(t===0?0:t)},UY=$K([].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=Fq(c),h=aq(m),g=function(e,t){return Dq(e),t===void 0?e:VY?VY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=BJ(h),v=0,y=d||Ohe,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)},khe=GY.map;iY({target:`Array`,proto:!0,forced:!IY(`map`)},{map:function(e){return khe(this,e,arguments.length>1?arguments[1]:void 0)}});var Ahe=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||jJ(Object.prototype,`toString`,Ahe,{unsafe:!0});var jhe=AJ.PROPER,JY=RegExp.prototype,YY=JY.toString,Mhe=$K(uY),Nhe=VK((function(){return YY.call({source:`a`,flags:`b`})!=`/a/b`})),Phe=jhe&&YY.name!=`toString`;(Nhe||Phe)&&jJ(RegExp.prototype,`toString`,(function(){var e=iJ(this),t=cY(e.source),n=e.flags;return`/`+t+`/`+cY(n===void 0&&pq(JY,e)&&!(`flags`in JY)?Mhe(e):n)}),{unsafe:!0});var XY=Kq(`unscopables`),ZY=Array.prototype;ZY[XY]??sJ.f(ZY,XY,{configurable:!0,value:xY(null)});var Fhe=GY.find,QY=!0;`find`in[]&&[,].find((function(){QY=!1})),iY({target:`Array`,proto:!0,forced:QY},{find:function(e){return Fhe(this,e,arguments.length>1?arguments[1]:void 0)}}),ZY[XY].find=!0;var $Y=Function.prototype,eX=$Y.apply,Ihe=$Y.bind,tX=$Y.call,nX=typeof Reflect==`object`&&Reflect.apply||(Ihe?tX.bind(eX):function(){return tX.apply(eX,arguments)}),Lhe=Kq(`species`),rX=RegExp.prototype,iX=function(e,t,n,r){var i=Kq(e),a=!VK((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!VK((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Lhe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=$K(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=$K(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}}));jJ(String.prototype,e,c[0]),jJ(rX,i,c[1])}r&&cJ(rX[i],`sham`,!0)},Rhe=Kq(`match`),zhe=BK.TypeError,Bhe=Kq(`species`),Vhe=$K(``.charAt),aX=$K(``.charCodeAt),Hhe=$K(``.slice),Uhe=function(e){return function(e,t){var n,r,i=cY(sq(e)),a=PJ(t),o=i.length;return a<0||a>=o?``:(n=aX(i,a))<55296||n>56319||a+1===o||(r=aX(i,a+1))<56320||r>57343?Vhe(i,a):Hhe(i,a,a+2)}}(!0),oX=function(e,t,n){return t+(n?Uhe(e,t).length:1)},Whe=BK.Array,Ghe=Math.max,sX=function(e,t,n){for(var r=BJ(e),i=LJ(t,r),a=LJ(n===void 0?r:n,r),o=Whe(Ghe(a-i,0)),s=0;i<a;i++,s++)FY(o,s,e[i]);return o.length=s,o},Khe=BK.TypeError,cX=function(e,t){var n=e.exec;if(lq(n)){var r=WK(n,e,t);return r!==null&&iJ(r),r}if(nq(e)===`RegExp`)return WK(OY,e,t);throw Khe(`RegExp#exec called on incompatible receiver`)},lX=pY.UNSUPPORTED_Y,qhe=Math.min,uX=[].push,Jhe=$K(/./.exec),dX=$K(uX),fX=$K(``.slice);iX(`split`,(function(e,t,n){var 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(sq(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!uq(r=e)||!((i=r[Rhe])===void 0?nq(r)==`RegExp`:i))return WK(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=WK(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&&Jhe(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?[]:WK(t,this,e,n)}:t;return[function(t,n){var i=sq(this),a=t==null?void 0:Oq(t,e);return a?WK(a,t,i,n):WK(r,cY(i),t,n)},function(e,i){var a=iJ(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=iJ(e).constructor;return r===void 0||(n=iJ(r)[Bhe])==null?t:function(e){if(PY(e))return e;throw zhe(Tq(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=qhe(zJ(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}]}),!!VK((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=$K(``.replace),hX=`[`+pX+`]`,Yhe=RegExp(`^`+hX+hX+`*`),Xhe=RegExp(hX+hX+`*$`),gX=function(e){return function(t){var n=cY(sq(t));return 1&e&&(n=mX(n,Yhe,``)),2&e&&(n=mX(n,Xhe,``)),n}},Zhe={start:gX(1),end:gX(2),trim:gX(3)},Qhe=AJ.PROPER,$he=Zhe.trim;function _X(e){return e.length?e[0].tagName.toLowerCase():``}iY({target:`String`,proto:!0,forced:function(e){return VK((function(){return!!pX[e]()||`​…᠎`[e]()!==`​…᠎`||Qhe&&pX[e].name!==e}))}(`trim`)},{trim:function(){return $he(this)}}),iY({global:!0},{globalThis:BK}),Bg&&(J.fn.append=Bg),Dg&&(J.fn.on=Dg),Zg&&(J.fn.focus=Zg),Cg&&(J.fn.attr=Cg),Eg&&(J.fn.val=Eg),Lg&&(J.fn.html=Lg),Tg&&(J.fn.dataset=Tg),bg&&(J.fn.addClass=bg),xg&&(J.fn.removeClass=xg),Gg&&(J.fn.children=Gg),Fg&&(J.fn.each=Fg),Wg&&(J.fn.find=Wg);var vX=!1,yX=0,bX=0,xX=null,SX=null,CX=J(`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=N_((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),q.setNodes(SX,{width:n.toString()},{at:xX})}}),100),ege={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||G.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=X.findPath(e,t),o=H.start(e,a),s=H.end(e,a),c=Lm.compare(r,s)<=0&&Lm.compare(r,o)>=0,l=Lm.compare(i,s)<=0&&Lm.compare(i,o)>=0;return!!(c&&l&&W.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return fv(`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=H.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},fv(`table`,{width:a,contentEditable:r},fv(`colgroup`,null,KY(e).map((function(e){var t=e.width;return fv(`col`,{width:t===void 0?`auto`:t})}))),fv(`tbody`,null,t)))}},tge={type:`table-row`,renderElem:function(e,t,n){return fv(`tr`,null,t)}},nge={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?fv(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:N_((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):fv(`td`,{colSpan:o,rowSpan:c},t)}},rge={selector:`table`,preParseHtml:function(e){var t=J(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]}},ige=GY.filter;iY({target:`Array`,proto:!0,forced:!IY(`filter`)},{filter:function(e){return ige(this,e,arguments.length>1?arguments[1]:void 0)}});var age=Math.floor,EX=$K(``.charAt),oge=$K(``.replace),DX=$K(``.slice),sge=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cge=/\$([$&'`]|\d{1,2})/g,lge=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=cge;return i!==void 0&&(i=Fq(i),c=sge),oge(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=age(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=Kq(`replace`),uge=Math.max,dge=Math.min,fge=$K([].concat),kX=$K([].push),AX=$K(``.indexOf),jX=$K(``.slice),pge=`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=sq(this),i=e==null?void 0:Oq(e,OX);return i?WK(i,e,r,n):WK(t,cY(r),e,n)},function(e,i){var a=iJ(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=lq(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,zJ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=cY((f=d[g])[0]),v=uge(dge(PJ(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=fge([_],y,v,o);x!==void 0&&kX(S,x);var C=cY(nX(i,void 0,S))}else C=lge(_,o,v,y,x,i);v>=h&&(m+=jX(o,h,v)+C,h=v+_.length)}return m+jX(o,h)}]}),!!VK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!pge||MX);var mge={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);(t=t.filter((function(e){return!!K.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}}},hge={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`}))}}},gge={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(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`}))}}},_ge=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||!G.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=J(`<div class="w-e-panel-content-table"></div>`),r=J(`<span>0 &times; 0</span>`),i=J(`<table></table>`),a=0;a<10;a++){for(var o=J(`<tr></tr>`),s=0;s<10;s++){var c=J(`<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=J(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){J(e).children().each((function(e){var t=J(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=J(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)&&q.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);q.insertNodes(e,a,{mode:`highest`})}},e}(),vge=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)||q.removeNodes(e,{mode:`highest`})},e}(),yge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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=W.parent(i),l=W.next(c);q.insertNodes(e,o,{at:l})}}},e}(),bge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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?q.removeNodes(e,{mode:`highest`}):q.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=Qq(`span`).classList,FX=PX&&PX.constructor&&PX.constructor.prototype,xge=FX===Object.prototype?void 0:FX,Sge=GY.forEach,IX=function(e,t){var n=[].forEach;return!!n&&VK((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return Sge(this,e,arguments.length>1?arguments[1]:void 0)},LX=function(e){if(e&&e.forEach!==IX)try{cJ(e,`forEach`,IX)}catch{e.forEach=IX}};for(var RX in NX)NX[RX]&&LX(BK[RX]&&BK[RX].prototype);LX(xge);var Cge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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){V.isElement(t)&&(t.children||[]).forEach((function(t){var r=X.findPath(e,t);if(r.length===i.length&&PK(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&qY(o)&&(a.isHeader=!0),q.insertNodes(e,a,{at:r})}}))}))}}},e}(),wge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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)q.removeNodes(e,{mode:`highest`});else{var s=X.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){V.isElement(t)&&(t.children||[]).forEach((function(t){var n=X.findPath(e,t);n.length===i.length&&PK(n.slice(-1),i.slice(-1))&&q.removeNodes(e,{at:n})}))}))}}},e}(),Tge=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||!G.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 q.setNodes(e,{isHeader:n},{at:X.findPath(e,t)})}))}},e}(),Ege=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};q.setNodes(e,n,{mode:`highest`})}},e}(),Dge={renderElems:[ege,tge,nge],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:[rge],parseElemsHtml:[mge,hge,gge],menus:[{key:`insertTable`,factory:function(){return new _ge}},{key:`deleteTable`,factory:function(){return new vge}},{key:`insertTableRow`,factory:function(){return new yge}},{key:`deleteTableRow`,factory:function(){return new bge}},{key:`insertTableCol`,factory:function(){return new Cge}},{key:`deleteTableCol`,factory:function(){return new wge}},{key:`tableHeader`,factory:function(){return new Tge}},{key:`tableFullWidth`,factory:function(){return new Ege}}],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=H.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=H.above(e);X.checkNodeType(t[0],`table-cell`)&&q.select(e,t[1]);var n=H.next(e);if(n)n[0]&&n[0].text&&(n=H.above(e,{at:n[1]})??n),q.select(e,n[1]);else{var r=c.children||[],i=r.length;if(X.checkNodeType(r[i-1],`table`)){var a=X.genEmptyParagraph();q.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();q.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):H.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(W.equals(n.path.slice(0,3),r.path.slice(0,3))){if(U.string(t).length!==0){var i=X.findPath(c,t),a={anchor:H.start(c,i),focus:H.end(c,i)};c.select(a)}else s()}else s()}else s()}else s()},c}};Mj(`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`}}),Mj(`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 Oge(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,kge={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,Age=nZ&&nZ.bind(rZ),iZ=nZ?function(e){return e&&Age(rZ,e)}:function(e){return e&&function(){return rZ.apply(e,arguments)}},jge=iZ({}.toString),Mge=iZ(``.slice),aZ=function(e){return Mge(jge(e),8,-1)},oZ=Q.Object,Nge=iZ(``.split),sZ=JX((function(){return!oZ(`z`).propertyIsEnumerable(0)}))?function(e){return aZ(e)==`String`?Nge(e,``):oZ(e)}:oZ,Pge=Q.TypeError,cZ=function(e){if(e==null)throw Pge(`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)},Fge=function(e){return uZ(e)?e:void 0},fZ=function(e,t){return arguments.length<2?Fge(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`,Ige=Q.Object,SZ=xZ?function(e){return typeof e==`symbol`}:function(e){var t=fZ(`Symbol`);return uZ(t)&&pZ(t.prototype,Ige(e))},Lge=Q.String,CZ=function(e){try{return Lge(e)}catch{return`Object`}},Rge=Q.TypeError,wZ=function(e){if(uZ(e))return e;throw Rge(CZ(e)+` is not a function`)},TZ=function(e,t){var n=e[t];return n==null?void 0:wZ(n)},zge=Q.TypeError,Bge=Object.defineProperty,EZ=function(e,t){try{Bge(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},DZ=Q[`__core-js_shared__`]||EZ(`__core-js_shared__`,{}),OZ=WX((function(e){(e.exports=function(e,t){return DZ[e]||(DZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Vge=Q.Object,kZ=function(e){return Vge(cZ(e))},Hge=iZ({}.hasOwnProperty),AZ=Object.hasOwn||function(e,t){return Hge(kZ(e),t)},Uge=0,Wge=Math.random(),Gge=iZ(1 .toString),jZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Gge(++Uge+Wge,36)},MZ=OZ(`wks`),NZ=Q.Symbol,PZ=NZ&&NZ.for,Kge=xZ?NZ:NZ&&NZ.withoutSetter||jZ,FZ=function(e){if(!AZ(MZ,e)||!bZ&&typeof MZ[e]!=`string`){var t=`Symbol.`+e;MZ[e]=bZ&&AZ(NZ,e)?NZ[e]:xZ&&PZ?PZ(t):Kge(t)}return MZ[e]},qge=Q.TypeError,Jge=FZ(`toPrimitive`),IZ=function(e){var t=function(e,t){if(!dZ(e)||SZ(e))return e;var n,r=TZ(e,Jge);if(r){if(t===void 0&&(t=`default`),n=ZX(r,e,t),!dZ(n)||SZ(n))return n;throw qge(`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 zge(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return SZ(t)?t:t+``},LZ=Q.document,Yge=dZ(LZ)&&dZ(LZ.createElement),RZ=function(e){return Yge?LZ.createElement(e):{}},zZ=!YX&&!JX((function(){return Object.defineProperty(RZ(`div`),"a",{get:function(){return 7}}).a!=7})),BZ=Object.getOwnPropertyDescriptor,VZ={f:YX?BZ:function(e,t){if(e=lZ(e),t=IZ(t),zZ)try{return BZ(e,t)}catch{}if(AZ(e,t))return eZ(!ZX(kge.f,e,t),e[t])}},Xge=Q.String,Zge=Q.TypeError,HZ=function(e){if(dZ(e))return e;throw Zge(Xge(e)+` is not an object`)},Qge=Q.TypeError,UZ=Object.defineProperty,WZ={f:YX?UZ:function(e,t,n){if(HZ(e),t=IZ(t),HZ(n),zZ)try{return UZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Qge(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},GZ=YX?function(e,t,n){return WZ.f(e,t,eZ(1,n))}:function(e,t,n){return e[t]=n,e},$ge=iZ(Function.toString);uZ(DZ.inspectSource)||(DZ.inspectSource=function(e){return $ge(e)});var KZ,qZ,JZ,YZ=DZ.inspectSource,XZ=Q.WeakMap,ZZ=uZ(XZ)&&/native code/.test(YZ(XZ)),QZ=OZ(`keys`),$Z=function(e){return QZ[e]||(QZ[e]=jZ(e))},eQ={},tQ=Q.TypeError,e_e=Q.WeakMap;if(ZZ||DZ.state){var nQ=DZ.state||=new e_e,t_e=iZ(nQ.get),rQ=iZ(nQ.has),n_e=iZ(nQ.set);KZ=function(e,t){if(rQ(nQ,e))throw new tQ(`Object already initialized`);return t.facade=e,n_e(nQ,e,t),t},qZ=function(e){return t_e(nQ,e)||{}},JZ=function(e){return rQ(nQ,e)}}else{var iQ=$Z(`state`);eQ[iQ]=!0,KZ=function(e,t){if(AZ(e,iQ))throw new tQ(`Object already initialized`);return t.facade=e,GZ(e,iQ,t),t},qZ=function(e){return AZ(e,iQ)?e[iQ]:{}},JZ=function(e){return AZ(e,iQ)}}var aQ={set:KZ,get:qZ,has:JZ,enforce:function(e){return JZ(e)?qZ(e):KZ(e,{})},getterFor:function(e){return function(t){var n;if(!dZ(t)||(n=qZ(t)).type!==e)throw tQ(`Incompatible receiver, `+e+` required`);return n}}},oQ=Function.prototype,r_e=YX&&Object.getOwnPropertyDescriptor,sQ=AZ(oQ,`name`),cQ={EXISTS:sQ,PROPER:sQ&&function(){}.name===`something`,CONFIGURABLE:sQ&&(!YX||YX&&r_e(oQ,`name`).configurable)},lQ=WX((function(e){var t=cQ.CONFIGURABLE,n=aQ.get,r=aQ.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`)+`]`),(!AZ(a,`name`)||t&&a.name!==d)&&GZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:EZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:GZ(e,n,a))})(Function.prototype,`toString`,(function(){return uZ(this)&&n(this).source||YZ(this)}))})),i_e=Math.ceil,a_e=Math.floor,uQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?a_e:i_e)(t)},o_e=Math.max,s_e=Math.min,dQ=function(e,t){var n=uQ(e);return n<0?o_e(n+t,0):s_e(n,t)},c_e=Math.min,fQ=function(e){return e>0?c_e(uQ(e),9007199254740991):0},pQ=function(e){return fQ(e.length)},mQ=function(e){return function(t,n,r){var i,a=lZ(t),o=pQ(a),s=dQ(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}},hQ={includes:mQ(!0),indexOf:mQ(!1)},l_e=hQ.indexOf,gQ=iZ([].push),_Q=function(e,t){var n,r=lZ(e),i=0,a=[];for(n in r)!AZ(eQ,n)&&AZ(r,n)&&gQ(a,n);for(;t.length>i;)AZ(r,n=t[i++])&&(~l_e(a,n)||gQ(a,n));return a},vQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],u_e=vQ.concat(`length`,`prototype`),yQ={f:Object.getOwnPropertyNames||function(e){return _Q(e,u_e)}},d_e={f:Object.getOwnPropertySymbols},f_e=iZ([].concat),p_e=fZ(`Reflect`,`ownKeys`)||function(e){var t=yQ.f(HZ(e)),n=d_e.f;return n?f_e(t,n(e)):t},m_e=function(e,t){for(var n=p_e(t),r=WZ.f,i=VZ.f,a=0;a<n.length;a++){var o=n[a];AZ(e,o)||r(e,o,i(t,o))}},h_e=/#|\.prototype\./,bQ=function(e,t){var n=__e[g_e(e)];return n==y_e||n!=v_e&&(uZ(t)?JX(t):!!t)},g_e=bQ.normalize=function(e){return String(e).replace(h_e,`.`).toLowerCase()},__e=bQ.data={},v_e=bQ.NATIVE=`N`,y_e=bQ.POLYFILL=`P`,xQ=bQ,b_e=VZ.f,SQ=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]||EZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=b_e(n,r))&&o.value:n[r],!xQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;m_e(a,i)}(e.sham||i&&i.sham)&&GZ(a,`sham`,!0),lQ(n,r,a,e)}},CQ={};CQ[FZ(`toStringTag`)]=`z`;var wQ=String(CQ)===`[object z]`,x_e=FZ(`toStringTag`),S_e=Q.Object,C_e=aZ(function(){return arguments}())==`Arguments`,TQ=wQ?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=S_e(e),x_e))==`string`?n:C_e?aZ(t):(r=aZ(t))==`Object`&&uZ(t.callee)?`Arguments`:r},w_e=Q.String,EQ=function(e){if(TQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return w_e(e)},DQ=`
\v\f\r \xA0               \u2028\u2029`,OQ=iZ(``.replace),kQ=`[`+DQ+`]`,T_e=RegExp(`^`+kQ+kQ+`*`),E_e=RegExp(kQ+kQ+`*$`),AQ=function(e){return function(t){var n=EQ(cZ(t));return 1&e&&(n=OQ(n,T_e,``)),2&e&&(n=OQ(n,E_e,``)),n}},D_e={start:AQ(1),end:AQ(2),trim:AQ(3)},O_e=cQ.PROPER,k_e=D_e.trim;function jQ(e){return e.length?e[0].tagName.toLowerCase():``}function MQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=J(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}SQ({target:`String`,proto:!0,forced:JX((function(){return!!DQ.trim()||O_e&&DQ.trim.name!==`trim`}))},{trim:function(){return k_e(this)}}),SQ({global:!0},{globalThis:Q}),Bg&&(J.fn.append=Bg),Dg&&(J.fn.on=Dg),Zg&&(J.fn.focus=Zg),Cg&&(J.fn.attr=Cg),Eg&&(J.fn.val=Eg),Lg&&(J.fn.html=Lg),Hg&&(J.fn.parent=Hg),Sg&&(J.fn.hasClass=Sg),qg&&(J.fn.empty=qg);var NQ,A_e={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=fv(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:MQ(o,u,f)});else{var m=fv(`video`,{poster:c,controls:!0},fv(`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=fv(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return K_(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},j_e={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+=MQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
</div>`}},M_e=Object.keys||function(e){return _Q(e,vQ)},N_e=YX?Object.defineProperties:function(e,t){HZ(e);for(var n,r=lZ(t),i=M_e(t),a=i.length,o=0;a>o;)WZ.f(e,n=i[o++],r[n]);return e},PQ=fZ(`document`,`documentElement`),FQ=$Z(`IE_PROTO`),IQ=function(){},LQ=function(e){return`<script>`+e+`<\/script>`},RQ=function(e){e.write(LQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},zQ=function(){try{NQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;zQ=typeof document<`u`?document.domain&&NQ?RQ(NQ):((t=RZ(`iframe`)).style.display=`none`,PQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(LQ(`document.F=Object`)),e.close(),e.F):RQ(NQ);for(var n=vQ.length;n--;)delete zQ.prototype[vQ[n]];return zQ()};eQ[FQ]=!0;var BQ=Object.create||function(e,t){var n;return e===null?n=zQ():(IQ.prototype=HZ(e),n=new IQ,IQ.prototype=null,n[FQ]=e),t===void 0?n:N_e(n,t)},VQ=FZ(`unscopables`),HQ=Array.prototype;HQ[VQ]??WZ.f(HQ,VQ,{configurable:!0,value:BQ(null)});var UQ=function(e){HQ[VQ][e]=!0},P_e=hQ.includes;SQ({target:`Array`,proto:!0},{includes:function(e){return P_e(this,e,arguments.length>1?arguments[1]:void 0)}}),UQ(`includes`);var F_e={selector:`iframe,video,p`,preParseHtml:function(e){var t=J(e),n=t;if(jQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=J(i))}}var o=jQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=J(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},WQ=iZ(iZ.bind),GQ=function(e,t){return wZ(e),t===void 0?e:WQ?WQ(e,t):function(){return e.apply(t,arguments)}},KQ=Array.isArray||function(e){return aZ(e)==`Array`},qQ=function(){},I_e=[],JQ=fZ(`Reflect`,`construct`),YQ=/^\s*(?:class|function)\b/,L_e=iZ(YQ.exec),R_e=!YQ.exec(qQ),XQ=function(e){if(!uZ(e))return!1;try{return JQ(qQ,I_e,e),!0}catch{return!1}},ZQ=!JQ||JX((function(){var e;return XQ(XQ.call)||!XQ(Object)||!XQ((function(){e=!0}))||e}))?function(e){if(!uZ(e))return!1;switch(TQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return R_e||!!L_e(YQ,YZ(e))}:XQ,z_e=FZ(`species`),QQ=Q.Array,B_e=function(e,t){return new(function(e){var t;return KQ(e)&&(t=e.constructor,(ZQ(t)&&(t===QQ||KQ(t.prototype))||dZ(t)&&(t=t[z_e])===null)&&(t=void 0)),t===void 0?QQ:t}(e))(t===0?0:t)},$Q=iZ([].push),e$=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=kZ(c),h=sZ(m),g=GQ(l,u),_=pQ(h),v=0,y=d||B_e,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:$Q(b,f)}else switch(e){case 4:return!1;case 7:$Q(b,f)}}return a?-1:r||i?i:b}},t$={forEach:e$(0),map:e$(1),filter:e$(2),some:e$(3),every:e$(4),find:e$(5),findIndex:e$(6),filterReject:e$(7)},V_e=t$.find,n$=!0;`find`in[]&&[,].find((function(){n$=!1})),SQ({target:`Array`,proto:!0,forced:n$},{find:function(e){return V_e(this,e,arguments.length>1?arguments[1]:void 0)}}),UQ(`find`);var H_e=wQ?{}.toString:function(){return`[object `+TQ(this)+`]`};function r$(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:``}]}}wQ||lQ(Object.prototype,`toString`,H_e,{unsafe:!0});var i$,a$,U_e={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=J(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`,r$(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`,r$(i,a=l.attr(`poster`)||``,o,s)}},o$=function(){var e=HZ(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},s$=Q.RegExp,c$=JX((function(){var e=s$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),W_e=c$||JX((function(){return!s$(`a`,`y`).sticky})),G_e={BROKEN_CARET:c$||JX((function(){var e=s$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:W_e,UNSUPPORTED_Y:c$},K_e=Q.RegExp,q_e=JX((function(){var e=K_e(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),J_e=Q.RegExp,Y_e=JX((function(){var e=J_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),X_e=aQ.get,Z_e=OZ(`native-string-replace`,String.prototype.replace),l$=RegExp.prototype.exec,u$=l$,Q_e=iZ(``.charAt),$_e=iZ(``.indexOf),eve=iZ(``.replace),d$=iZ(``.slice),f$=(a$=/b*/g,ZX(l$,i$=/a/,`a`),ZX(l$,a$,`a`),i$.lastIndex!==0||a$.lastIndex!==0),p$=G_e.BROKEN_CARET,m$=/()??/.exec(``)[1]!==void 0;(f$||m$||p$||q_e||Y_e)&&(u$=function(e){var t,n,r,i,a,o,s,c=this,l=X_e(c),u=EQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ZX(u$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=p$&&c.sticky,m=ZX(o$,c),h=c.source,g=0,_=u;if(p&&(m=eve(m,`y`,``),$_e(m,`g`)===-1&&(m+=`g`),_=d$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Q_e(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),m$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),f$&&(r=c.lastIndex),i=ZX(l$,p?n:c,_),p?i?(i.input=d$(i.input,g),i[0]=d$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:f$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),m$&&i&&i.length>1&&ZX(Z_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=BQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var h$=u$;SQ({target:`RegExp`,proto:!0,forced:/./.exec!==h$},{exec:h$});var g$=Function.prototype,_$=g$.apply,tve=g$.bind,v$=g$.call,y$=typeof Reflect==`object`&&Reflect.apply||(tve?v$.bind(_$):function(){return v$.apply(_$,arguments)}),b$=(FZ(`species`),RegExp.prototype),nve=iZ(``.charAt),x$=iZ(``.charCodeAt),rve=iZ(``.slice),S$=function(e){return function(t,n){var r,i,a=EQ(cZ(t)),o=uQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=x$(a,o))<55296||r>56319||o+1===s||(i=x$(a,o+1))<56320||i>57343?e?nve(a,o):r:e?rve(a,o,o+2):i-56320+(r-55296<<10)+65536}},C$={codeAt:S$(!1),charAt:S$(!0)},ive=C$.charAt,ave=function(e,t,n){return t+(n?ive(e,t).length:1)},ove=Math.floor,w$=iZ(``.charAt),sve=iZ(``.replace),T$=iZ(``.slice),cve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lve=/\$([$&'`]|\d{1,2})/g,uve=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=lve;return i!==void 0&&(i=kZ(i),c=cve),sve(a,c,(function(a,c){var l;switch(w$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return T$(t,0,n);case`'`:return T$(t,o);case`<`:l=i[T$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=ove(u/10);return d===0?a:d<=s?r[d-1]===void 0?w$(c,1):r[d-1]+w$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},dve=Q.TypeError,fve=function(e,t){var n=e.exec;if(uZ(n)){var r=ZX(n,e,t);return r!==null&&HZ(r),r}if(aZ(e)===`RegExp`)return ZX(h$,e,t);throw dve(`RegExp#exec called on incompatible receiver`)},E$=FZ(`replace`),pve=Math.max,mve=Math.min,hve=iZ([].concat),D$=iZ([].push),O$=iZ(``.indexOf),k$=iZ(``.slice),gve=`a`.replace(/./,`$0`)===`$0`,A$=!!/./[E$]&&/./[E$](`a`,`$0`)===``;function j$(e){return e===void 0&&(e=`r`),e+`-`+__()}(function(e,t,n,r){var i=FZ(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=A$?`$`:`$0`;return[function(e,n){var r=cZ(this),i=e==null?void 0:TZ(e,E$);return i?ZX(i,e,r,n):ZX(t,EQ(r),e,n)},function(e,i){var a=HZ(this),o=EQ(e);if(typeof i==`string`&&O$(i,r)===-1&&O$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=uZ(i);c||(i=EQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=fve(a,o);if(f===null||(D$(d,f),!l))break;EQ(f[0])===``&&(a.lastIndex=ave(o,fQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=EQ((f=d[g])[0]),v=pve(mve(uQ(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=hve([_],y,v,o);x!==void 0&&D$(S,x);var C=EQ(y$(i,void 0,S))}else C=uve(_,o,v,y,x,i);v>=h&&(m+=k$(o,h,v)+C,h=v+_.length)}return m+k$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=iZ(e),c=t.exec;return c===h$||c===b$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));lQ(String.prototype,e,c[0]),lQ(b$,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`}))||!gve||A$);var M$=Q.Promise,N$=function(e,t,n){for(var r in t)lQ(e,r,t[r],n);return e},_ve=Q.String,vve=Q.TypeError,P$=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 HZ(n),function(e){if(typeof e==`object`||uZ(e))return e;throw vve(`Can't set `+_ve(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),yve=WZ.f,F$=FZ(`toStringTag`),I$=function(e,t,n){e&&!AZ(e=n?e:e.prototype,F$)&&yve(e,F$,{configurable:!0,value:t})},L$=FZ(`species`),bve=Q.TypeError,R$=function(e,t){if(pZ(t,e))return e;throw bve(`Incorrect invocation`)},z$={},xve=FZ(`iterator`),Sve=Array.prototype,Cve=FZ(`iterator`),B$=function(e){if(e!=null)return TZ(e,Cve)||TZ(e,`@@iterator`)||z$[TQ(e)]},wve=Q.TypeError,V$=function(e,t,n){var r,i;HZ(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 HZ(r),n},Tve=Q.TypeError,H$=function(e,t){this.stopped=e,this.result=t},U$=H$.prototype,W$=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=GQ(t,d),g=function(e){return r&&V$(r,`normal`,e),new H$(!0,e)},_=function(e){return f?(HZ(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=B$(e)))throw Tve(CZ(e)+` is not iterable`);if((u=i)!==void 0&&(z$.Array===u||Sve[xve]===u)){for(a=0,o=pQ(e);o>a;a++)if((s=_(e[a]))&&pZ(U$,s))return s;return new H$(!1)}r=function(e,t){var n=arguments.length<2?B$(e):t;if(wZ(n))return HZ(ZX(n,e));throw wve(CZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ZX(c,r)).done;){try{s=_(l.value)}catch(e){V$(r,`throw`,e)}if(typeof s==`object`&&s&&pZ(U$,s))return s}return new H$(!1)},G$=FZ(`iterator`),K$=!1;try{var Eve=0,q$={next:function(){return{done:!!Eve++}},return:function(){K$=!0}};q$[G$]=function(){return this},Array.from(q$,(function(){throw 2}))}catch{}var J$,Y$,X$,Z$,Q$=function(e,t){if(!t&&!K$)return!1;var n=!1;try{var r={};r[G$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Dve=Q.TypeError,Ove=FZ(`species`),$$=iZ([].slice),e1=/(?:ipad|iphone|ipod).*applewebkit/i.test(mZ),t1=aZ(Q.process)==`process`,n1=Q.setImmediate,r1=Q.clearImmediate,kve=Q.process,i1=Q.Dispatch,Ave=Q.Function,a1=Q.MessageChannel,jve=Q.String,o1=0,s1={};try{J$=Q.location}catch{}var c1=function(e){if(AZ(s1,e)){var t=s1[e];delete s1[e],t()}},l1=function(e){return function(){c1(e)}},u1=function(e){c1(e.data)},d1=function(e){Q.postMessage(jve(e),J$.protocol+`//`+J$.host)};n1&&r1||(n1=function(e){var t=$$(arguments,1);return s1[++o1]=function(){y$(uZ(e)?e:Ave(e),void 0,t)},Y$(o1),o1},r1=function(e){delete s1[e]},t1?Y$=function(e){kve.nextTick(l1(e))}:i1&&i1.now?Y$=function(e){i1.now(l1(e))}:a1&&!e1?(Z$=(X$=new a1).port2,X$.port1.onmessage=u1,Y$=GQ(Z$.postMessage,Z$)):Q.addEventListener&&uZ(Q.postMessage)&&!Q.importScripts&&J$&&J$.protocol!==`file:`&&!JX(d1)?(Y$=d1,Q.addEventListener(`message`,u1,!1)):Y$=`onreadystatechange`in RZ(`script`)?function(e){PQ.appendChild(RZ(`script`)).onreadystatechange=function(){PQ.removeChild(this),c1(e)}}:function(e){setTimeout(l1(e),0)});var f1,p1,m1,h1,g1,_1,v1,y1,b1={set:n1,clear:r1},Mve=/ipad|iphone|ipod/i.test(mZ)&&Q.Pebble!==void 0,Nve=/web0s(?!.*chrome)/i.test(mZ),Pve=VZ.f,x1=b1.set,S1=Q.MutationObserver||Q.WebKitMutationObserver,C1=Q.document,w1=Q.process,T1=Q.Promise,E1=Pve(Q,`queueMicrotask`),D1=E1&&E1.value;D1||(f1=function(){var e,t;for(t1&&(e=w1.domain)&&e.exit();p1;){t=p1.fn,p1=p1.next;try{t()}catch(e){throw p1?h1():m1=void 0,e}}m1=void 0,e&&e.enter()},e1||t1||Nve||!S1||!C1?!Mve&&T1&&T1.resolve?((v1=T1.resolve(void 0)).constructor=T1,y1=GQ(v1.then,v1),h1=function(){y1(f1)}):t1?h1=function(){w1.nextTick(f1)}:(x1=GQ(x1,Q),h1=function(){x1(f1)}):(g1=!0,_1=C1.createTextNode(``),new S1(f1).observe(_1,{characterData:!0}),h1=function(){_1.data=g1=!g1}));var O1,k1,A1,j1,M1=D1||function(e){var t={fn:e,next:void 0};m1&&(m1.next=t),p1||(p1=t,h1()),m1=t},Fve=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)},N1={f:function(e){return new Fve(e)}},P1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ive=typeof window==`object`,F1=b1.set,Lve=FZ(`species`),I1=`Promise`,L1=aQ.getterFor(I1),Rve=aQ.set,zve=aQ.getterFor(I1),R1=M$&&M$.prototype,z1=M$,B1=R1,V1=Q.TypeError,H1=Q.document,U1=Q.process,W1=N1.f,Bve=W1,Vve=!!(H1&&H1.createEvent&&Q.dispatchEvent),G1=uZ(Q.PromiseRejectionEvent),K1=!1,q1=xQ(I1,(function(){var e=YZ(z1),t=e!==String(z1);if(!t&&yZ===66)return!0;if(yZ>=51&&/native code/.test(e))return!1;var n=new z1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Lve]=r,!(K1=n.then((function(){}))instanceof r)||!t&&Ive&&!G1})),Hve=q1||!Q$((function(e){z1.all(e).catch((function(){}))})),J1=function(e){var t;return!(!dZ(e)||!uZ(t=e.then))&&t},Y1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;M1((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&&Wve(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(V1(`Promise-chain cycle`)):(s=J1(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&&Uve(e)}))}},X1=function(e,t,n){var r,i;Vve?((r=H1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!G1&&(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)},Uve=function(e){ZX(F1,Q,(function(){var t,n=e.facade,r=e.value;if(Z1(e)&&(t=P1((function(){t1?U1.emit(`unhandledRejection`,r,n):X1(`unhandledrejection`,n,r)})),e.rejection=t1||Z1(e)?2:1,t.error))throw t.value}))},Z1=function(e){return e.rejection!==1&&!e.parent},Wve=function(e){ZX(F1,Q,(function(){var t=e.facade;t1?U1.emit(`rejectionHandled`,t):X1(`rejectionhandled`,t,e.value)}))},Q1=function(e,t,n){return function(r){e(t,r,n)}},$1=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y1(e,!0))},e0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw V1(`Promise can't be resolved itself`);var r=J1(t);r?M1((function(){var n={done:!1};try{ZX(r,t,Q1(e0,n,e),Q1($1,n,e))}catch(t){$1(n,t,e)}})):(e.value=t,e.state=1,Y1(e,!1))}catch(t){$1({done:!1},t,e)}}};if(q1&&(B1=(z1=function(e){R$(this,B1),wZ(e),ZX(O1,this);var t=L1(this);try{e(Q1(e0,t),Q1($1,t))}catch(e){$1(t,e)}}).prototype,(O1=function(e){Rve(this,{type:I1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=N$(B1,{then:function(e,t){var n=zve(this),r=n.reactions,i=W1(function(e,t){var n,r=HZ(e).constructor;return r===void 0||(n=HZ(r)[Ove])==null?t:function(e){if(ZQ(e))return e;throw Dve(CZ(e)+` is not a constructor`)}(n)}(this,z1));return i.ok=!uZ(e)||e,i.fail=uZ(t)&&t,i.domain=t1?U1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Y1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),k1=function(){var e=new O1,t=L1(e);this.promise=e,this.resolve=Q1(e0,t),this.reject=Q1($1,t)},N1.f=W1=function(e){return e===z1||e===A1?new k1(e):Bve(e)},uZ(M$)&&R1!==Object.prototype)){j1=R1.then,K1||(lQ(R1,`then`,(function(e,t){var n=this;return new z1((function(e,t){ZX(j1,n,e,t)})).then(e,t)}),{unsafe:!0}),lQ(R1,`catch`,B1.catch,{unsafe:!0}));try{delete R1.constructor}catch{}P$&&P$(R1,B1)}function t0(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(){q.insertNodes(e,l)})),i(l),[2]}}))}))}function n0(){return j$(`w-e-insert-video`)}SQ({global:!0,wrap:!0,forced:q1},{Promise:z1}),I$(z1,I1,!1),function(e){var t=fZ(`Promise`),n=WZ.f;YX&&t&&!t[L$]&&n(t,L$,{configurable:!0,get:function(){return this}})}(),A1=fZ(I1),SQ({target:I1,stat:!0,forced:q1},{reject:function(e){var t=W1(this);return ZX(t.reject,void 0,e),t.promise}}),SQ({target:I1,stat:!0,forced:q1},{resolve:function(e){return function(e,t){if(HZ(e),dZ(t)&&t.constructor===e)return t;var n=N1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),SQ({target:I1,stat:!0,forced:Hve},{all:function(e){var t=this,n=W1(t),r=n.resolve,i=n.reject,a=P1((function(){var n=wZ(t.resolve),a=[],o=0,s=1;W$(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=W1(t),r=n.reject,i=P1((function(){var i=wZ(t.resolve);W$(e,(function(e){ZX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Gve=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=n0(),this.posterInputId=n0(),this.buttonId=n0()}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||!G.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(qA(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=HX(qA(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=J(c),p=J(d),m=HX(JA(a,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var h=J(`<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,t0(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}(),Kve=iZ([].join),qve=sZ!=Object,Jve=function(e,t){var n=[].join;return!!n&&JX((function(){n.call(null,`,`,1)}))}();SQ({target:`Array`,proto:!0,forced:qve||!Jve},{join:function(e){return Kve(lZ(this),e===void 0?`,`:e)}});var r0,i0,a0,Yve=!JX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),o0=$Z(`IE_PROTO`),s0=Q.Object,Xve=s0.prototype,c0=Yve?s0.getPrototypeOf:function(e){var t=kZ(e);if(AZ(t,o0))return t[o0];var n=t.constructor;return uZ(n)&&t instanceof n?n.prototype:t instanceof s0?Xve:null},l0=FZ(`iterator`),u0=!1;[].keys&&(`next`in(a0=[].keys())?(i0=c0(c0(a0)))!==Object.prototype&&(r0=i0):u0=!0),(r0==null||JX((function(){var e={};return r0[l0].call(e)!==e})))&&(r0={}),uZ(r0[l0])||lQ(r0,l0,(function(){return this}));var d0={IteratorPrototype:r0,BUGGY_SAFARI_ITERATORS:u0},Zve=d0.IteratorPrototype,Qve=function(){return this},$ve=cQ.PROPER,eye=cQ.CONFIGURABLE,f0=d0.IteratorPrototype,p0=d0.BUGGY_SAFARI_ITERATORS,m0=FZ(`iterator`),tye=function(){return this},h0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=BQ(Zve,{next:eZ(1,n)}),I$(e,i,!1),z$[i]=Qve})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!p0&&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[m0]||p[`@@iterator`]||i&&p[i],h=!p0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=c0(g.call(new e)))!==Object.prototype&&s.next&&(c0(s)!==f0&&(P$?P$(s,f0):uZ(s[m0])||lQ(s,m0,tye)),I$(s,d,!0)),$ve&&i==`values`&&m&&m.name!==`values`&&(eye?GZ(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)(p0||f||!(l in p))&&lQ(p,l,c[l]);else SQ({target:t,proto:!0,forced:p0||f},c)}return p[m0]!==h&&lQ(p,m0,h,{name:i}),z$[t]=h,c},nye=aQ.set,rye=aQ.getterFor(`Array Iterator`),g0=h0(Array,`Array`,(function(e,t){nye(this,{type:`Array Iterator`,target:lZ(e),index:0,kind:t})}),(function(){var e=rye(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`);z$.Arguments=z$.Array,UQ(`keys`),UQ(`values`),UQ(`entries`);var iye=C$.charAt,aye=aQ.set,oye=aQ.getterFor(`String Iterator`);h0(String,`String`,(function(e){aye(this,{type:`String Iterator`,string:EQ(e),index:0})}),(function(){var e,t=oye(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iye(n,r),t.index+=e.length,{value:e,done:!1})}));var _0=function(e,t,n){var r=IZ(t);r in e?WZ.f(e,r,eZ(0,n)):e[r]=n},sye=Q.Array,cye=Math.max,v0=yQ.f,y0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lye={f:function(e){return y0&&aZ(e)==`Window`?function(e){try{return v0(e)}catch{return function(e,t,n){for(var r=pQ(e),i=dQ(void 0,r),a=dQ(r,r),o=sye(cye(a-i,0)),s=0;i<a;i++,s++)_0(o,s,e[i]);return o.length=s,o}(y0)}}(e):v0(lZ(e))}},b0=JX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),x0=Object.isExtensible,S0=JX((function(){x0(1)}))||b0?function(e){return!!dZ(e)&&(!b0||aZ(e)!=`ArrayBuffer`)&&(!x0||x0(e))}:x0,uye=!JX((function(){return Object.isExtensible(Object.preventExtensions({}))})),C0=WX((function(e){var t=WZ.f,n=!1,r=jZ(`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=yQ.f,t=iZ([].splice),i={};i[r]=1,e(i).length&&(yQ.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},SQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:lye.f}))},fastKey:function(e,t){if(!dZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!AZ(e,r)){if(!S0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!AZ(e,r)){if(!S0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return uye&&n&&S0(e)&&!AZ(e,r)&&a(e),e}};eQ[r]=!0})),w0=C0.getWeakData,dye=aQ.set,fye=aQ.getterFor,pye=t$.find,mye=t$.findIndex,hye=iZ([].splice),gye=0,T0=function(e){return e.frozen||=new E0},E0=function(){this.entries=[]},D0=function(e,t){return pye(e.entries,(function(e){return e[0]===t}))};E0.prototype={get:function(e){var t=D0(this,e);if(t)return t[1]},has:function(e){return!!D0(this,e)},set:function(e,t){var n=D0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=mye(this.entries,(function(t){return t[0]===e}));return~t&&hye(this.entries,t,1),!!~t}};var O0,k0={getConstructor:function(e,t,n,r){var i=e((function(e,i){R$(e,a),dye(e,{type:t,id:gye++,frozen:void 0}),i!=null&&W$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=fye(t),s=function(e,t,n){var r=o(e),i=w0(HZ(t),!0);return!0===i?T0(r).set(t,n):i[r.id]=n,e};return N$(a,{delete:function(e){var t=o(this);if(!dZ(e))return!1;var n=w0(e);return!0===n?T0(t).delete(e):n&&AZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!dZ(e))return!1;var n=w0(e);return!0===n?T0(t).has(e):n&&AZ(n,t.id)}}),N$(a,n?{get:function(e){var t=o(this);if(dZ(e)){var n=w0(e);return!0===n?T0(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}},A0=aQ.enforce,_ye=!Q.ActiveXObject&&`ActiveXObject`in Q,j0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},vye=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]);lQ(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(xQ(e,!uZ(o)||!(i||s.forEach&&!JX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),C0.enable();else if(xQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=JX((function(){d.has(1)})),m=Q$((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){R$(e,s);var n=function(e,t,n){var r,i;return P$&&uZ(r=t.constructor)&&r!==n&&dZ(i=r.prototype)&&i!==n.prototype&&P$(e,i),e}(new o,e,c);return t!=null&&W$(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,SQ({global:!0,forced:c!=o},l),I$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,j0,k0);if(ZZ&&_ye){O0=k0.getConstructor(j0,`WeakMap`,!0),C0.enable();var M0=vye.prototype,N0=iZ(M0.delete),P0=iZ(M0.has),F0=iZ(M0.get),I0=iZ(M0.set);N$(M0,{delete:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,N0(this,e)||t.frozen.delete(e)}return N0(this,e)},has:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,P0(this,e)||t.frozen.has(e)}return P0(this,e)},get:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,P0(this,e)?F0(this,e):t.frozen.get(e)}return F0(this,e)},set:function(e,t){if(dZ(e)&&!S0(e)){var n=A0(this);n.frozen||=new O0,P0(this,e)?I0(this,e,t):n.frozen.set(e,t)}else I0(this,e,t);return this}})}var L0={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},R0=RZ(`span`).classList,z0=R0&&R0.constructor&&R0.constructor.prototype,yye=z0===Object.prototype?void 0:z0,B0=FZ(`iterator`),V0=FZ(`toStringTag`),H0=g0.values,U0=function(e,t){if(e){if(e[B0]!==H0)try{GZ(e,B0,H0)}catch{e[B0]=H0}if(e[V0]||GZ(e,V0,t),L0[t]){for(var n in g0)if(e[n]!==g0[n])try{GZ(e,n,g0[n])}catch{e[n]=g0[n]}}}};for(var W0 in L0)U0(Q[W0]&&Q[W0].prototype,W0);U0(yye,`DOMTokenList`);var bye=cQ.EXISTS,xye=WZ.f,G0=Function.prototype,Sye=iZ(G0.toString),K0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Cye=iZ(K0.exec);YX&&!bye&&xye(G0,`name`,{configurable:!0,get:function(){try{return Cye(K0,Sye(this))[1]}catch{return``}}});var wye=FZ(`species`),Tye=yZ>=51||!JX((function(){var e=[];return(e.constructor={})[wye]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Eye=FZ(`species`),q0=Q.Array,Dye=Math.max;function J0(e){return e.getMenuConfig(`uploadVideo`)}SQ({target:`Array`,proto:!0,forced:!Tye},{slice:function(e,t){var n,r,i,a=lZ(this),o=pQ(a),s=dQ(e,o),c=dQ(t===void 0?o:t,o);if(KQ(a)&&(n=a.constructor,(ZQ(n)&&(n===q0||KQ(n.prototype))||dZ(n)&&(n=n[Eye])===null)&&(n=void 0),n===q0||n===void 0))return $$(a,s,c);for(r=new(n===void 0?q0:n)(Dye(c-s,0)),i=0;s<c;s++,i++)s in a&&_0(r,i,a[s]);return r.length=i,r}});var Y0=new WeakMap;function Oye(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=Y0.get(e);if(t!=null)return t;var n=J0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=nj(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 t0(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;t0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),Y0.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 kye=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 t0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=J(`body`),c=J(`<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=J0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=Oge(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 t0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,Oye(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||!G.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}(),Aye=cQ.PROPER,X0=RegExp.prototype,Z0=X0.toString,jye=iZ(o$),Mye=JX((function(){return Z0.call({source:`a`,flags:`b`})!=`/a/b`})),Nye=Aye&&Z0.name!=`toString`;function Q0(){return j$(`w-e-insert-video`)}(Mye||Nye)&&lQ(RegExp.prototype,`toString`,(function(){var e=HZ(this),t=EQ(e.source),n=e.flags;return`/`+t+`/`+EQ(n===void 0&&pZ(X0,e)&&!(`flags`in X0)?jye(e):n)}),{unsafe:!0});var Pye=function(){function e(){this.title=Z(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Q0(),this.heightInputId=Q0(),this.buttonId=Q0()}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(qA(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=J(a[1]),c=HX(qA(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=J(c[1]),d=HX(JA(i,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var f=J(`<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(),q.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}(),Fye={renderElems:[A_e],elemsToHtml:[j_e],preParseHtml:[F_e],parseElemsHtml:[U_e],menus:[{key:`insertVideo`,factory:function(){return new Gve},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new kye},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 Pye}}],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)&&q.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};Mj(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),Mj(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var $0=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function e2(e){var t={exports:{}};return e(t,t.exports),t.exports}var t2,n2,r2=function(e){return e&&e.Math==Math&&e},$=r2(typeof globalThis==`object`&&globalThis)||r2(typeof window==`object`&&window)||r2(typeof self==`object`&&self)||r2(typeof $0==`object`&&$0)||function(){return this}()||Function(`return this`)(),i2=function(e){try{return!!e()}catch{return!0}},a2=!i2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),o2=Function.prototype.call,s2=o2.bind?o2.bind(o2):function(){return o2.apply(o2,arguments)},c2={}.propertyIsEnumerable,l2=Object.getOwnPropertyDescriptor,Iye={f:l2&&!c2.call({1:2},1)?function(e){var t=l2(this,e);return!!t&&t.enumerable}:c2},u2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d2=Function.prototype,f2=d2.bind,p2=d2.call,Lye=f2&&f2.bind(p2),m2=f2?function(e){return e&&Lye(p2,e)}:function(e){return e&&function(){return p2.apply(e,arguments)}},Rye=m2({}.toString),zye=m2(``.slice),h2=function(e){return zye(Rye(e),8,-1)},g2=$.Object,Bye=m2(``.split),_2=i2((function(){return!g2(`z`).propertyIsEnumerable(0)}))?function(e){return h2(e)==`String`?Bye(e,``):g2(e)}:g2,Vye=$.TypeError,v2=function(e){if(e==null)throw Vye(`Can't call method on `+e);return e},y2=function(e){return _2(v2(e))},b2=function(e){return typeof e==`function`},x2=function(e){return typeof e==`object`?e!==null:b2(e)},Hye=function(e){return b2(e)?e:void 0},S2=function(e,t){return arguments.length<2?Hye($[e]):$[e]&&$[e][t]},C2=m2({}.isPrototypeOf),w2=S2(`navigator`,`userAgent`)||``,T2=$.process,E2=$.Deno,D2=T2&&T2.versions||E2&&E2.version,O2=D2&&D2.v8;O2&&(n2=(t2=O2.split(`.`))[0]>0&&t2[0]<4?1:+(t2[0]+t2[1])),!n2&&w2&&(!(t2=w2.match(/Edge\/(\d+)/))||t2[1]>=74)&&(t2=w2.match(/Chrome\/(\d+)/))&&(n2=+t2[1]);var k2=n2,A2=!!Object.getOwnPropertySymbols&&!i2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k2&&k2<41})),j2=A2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Uye=$.Object,M2=j2?function(e){return typeof e==`symbol`}:function(e){var t=S2(`Symbol`);return b2(t)&&C2(t.prototype,Uye(e))},Wye=$.String,N2=function(e){try{return Wye(e)}catch{return`Object`}},Gye=$.TypeError,P2=function(e){if(b2(e))return e;throw Gye(N2(e)+` is not a function`)},F2=function(e,t){var n=e[t];return n==null?void 0:P2(n)},Kye=$.TypeError,qye=Object.defineProperty,I2=function(e,t){try{qye($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},L2=$[`__core-js_shared__`]||I2(`__core-js_shared__`,{}),R2=e2((function(e){(e.exports=function(e,t){return L2[e]||(L2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Jye=$.Object,z2=function(e){return Jye(v2(e))},Yye=m2({}.hasOwnProperty),B2=Object.hasOwn||function(e,t){return Yye(z2(e),t)},Xye=0,Zye=Math.random(),Qye=m2(1 .toString),V2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Qye(++Xye+Zye,36)},H2=R2(`wks`),U2=$.Symbol,W2=U2&&U2.for,$ye=j2?U2:U2&&U2.withoutSetter||V2,G2=function(e){if(!B2(H2,e)||!A2&&typeof H2[e]!=`string`){var t=`Symbol.`+e;H2[e]=A2&&B2(U2,e)?U2[e]:j2&&W2?W2(t):$ye(t)}return H2[e]},ebe=$.TypeError,tbe=G2(`toPrimitive`),K2=function(e){var t=function(e,t){if(!x2(e)||M2(e))return e;var n,r=F2(e,tbe);if(r){if(t===void 0&&(t=`default`),n=s2(r,e,t),!x2(n)||M2(n))return n;throw ebe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&b2(n=e.toString)&&!x2(r=s2(n,e))||b2(n=e.valueOf)&&!x2(r=s2(n,e))||t!==`string`&&b2(n=e.toString)&&!x2(r=s2(n,e)))return r;throw Kye(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return M2(t)?t:t+``},q2=$.document,nbe=x2(q2)&&x2(q2.createElement),J2=function(e){return nbe?q2.createElement(e):{}},Y2=!a2&&!i2((function(){return Object.defineProperty(J2(`div`),"a",{get:function(){return 7}}).a!=7})),X2=Object.getOwnPropertyDescriptor,Z2={f:a2?X2:function(e,t){if(e=y2(e),t=K2(t),Y2)try{return X2(e,t)}catch{}if(B2(e,t))return u2(!s2(Iye.f,e,t),e[t])}},rbe=$.String,ibe=$.TypeError,Q2=function(e){if(x2(e))return e;throw ibe(rbe(e)+` is not an object`)},abe=$.TypeError,$2=Object.defineProperty,e4={f:a2?$2:function(e,t,n){if(Q2(e),t=K2(t),Q2(n),Y2)try{return $2(e,t,n)}catch{}if(`get`in n||`set`in n)throw abe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},t4=a2?function(e,t,n){return e4.f(e,t,u2(1,n))}:function(e,t,n){return e[t]=n,e},obe=m2(Function.toString);b2(L2.inspectSource)||(L2.inspectSource=function(e){return obe(e)});var n4,r4,i4,a4=L2.inspectSource,o4=$.WeakMap,s4=b2(o4)&&/native code/.test(a4(o4)),c4=R2(`keys`),l4=function(e){return c4[e]||(c4[e]=V2(e))},u4={},d4=$.TypeError,sbe=$.WeakMap;if(s4||L2.state){var f4=L2.state||=new sbe,cbe=m2(f4.get),p4=m2(f4.has),lbe=m2(f4.set);n4=function(e,t){if(p4(f4,e))throw new d4(`Object already initialized`);return t.facade=e,lbe(f4,e,t),t},r4=function(e){return cbe(f4,e)||{}},i4=function(e){return p4(f4,e)}}else{var m4=l4(`state`);u4[m4]=!0,n4=function(e,t){if(B2(e,m4))throw new d4(`Object already initialized`);return t.facade=e,t4(e,m4,t),t},r4=function(e){return B2(e,m4)?e[m4]:{}},i4=function(e){return B2(e,m4)}}var h4={set:n4,get:r4,has:i4,enforce:function(e){return i4(e)?r4(e):n4(e,{})},getterFor:function(e){return function(t){var n;if(!x2(t)||(n=r4(t)).type!==e)throw d4(`Incompatible receiver, `+e+` required`);return n}}},g4=Function.prototype,ube=a2&&Object.getOwnPropertyDescriptor,_4=B2(g4,`name`),v4={EXISTS:_4,PROPER:_4&&function(){}.name===`something`,CONFIGURABLE:_4&&(!a2||a2&&ube(g4,`name`).configurable)},y4=e2((function(e){var t=v4.CONFIGURABLE,n=h4.get,r=h4.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;b2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!B2(a,`name`)||t&&a.name!==d)&&t4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:I2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:t4(e,n,a))})(Function.prototype,`toString`,(function(){return b2(this)&&n(this).source||a4(this)}))})),dbe=Math.ceil,fbe=Math.floor,b4=function(e){var t=+e;return t!=t||t===0?0:(t>0?fbe:dbe)(t)},pbe=Math.max,mbe=Math.min,x4=function(e,t){var n=b4(e);return n<0?pbe(n+t,0):mbe(n,t)},hbe=Math.min,S4=function(e){return e>0?hbe(b4(e),9007199254740991):0},C4=function(e){return S4(e.length)},gbe=function(e){return function(e,t,n){for(var r=y2(e),i=C4(r),a=x4(n,i);i>a;a++)if(a in r&&r[a]===t)return a||0;return-1}}(!1),w4=m2([].push),T4=function(e,t){var n,r=y2(e),i=0,a=[];for(n in r)!B2(u4,n)&&B2(r,n)&&w4(a,n);for(;t.length>i;)B2(r,n=t[i++])&&(~gbe(a,n)||w4(a,n));return a},E4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],_be=E4.concat(`length`,`prototype`),D4={f:Object.getOwnPropertyNames||function(e){return T4(e,_be)}},vbe={f:Object.getOwnPropertySymbols},ybe=m2([].concat),bbe=S2(`Reflect`,`ownKeys`)||function(e){var t=D4.f(Q2(e)),n=vbe.f;return n?ybe(t,n(e)):t},xbe=function(e,t){for(var n=bbe(t),r=e4.f,i=Z2.f,a=0;a<n.length;a++){var o=n[a];B2(e,o)||r(e,o,i(t,o))}},Sbe=/#|\.prototype\./,O4=function(e,t){var n=wbe[Cbe(e)];return n==Ebe||n!=Tbe&&(b2(t)?i2(t):!!t)},Cbe=O4.normalize=function(e){return String(e).replace(Sbe,`.`).toLowerCase()},wbe=O4.data={},Tbe=O4.NATIVE=`N`,Ebe=O4.POLYFILL=`P`,k4=O4,Dbe=Z2.f,A4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||I2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Dbe(n,r))&&o.value:n[r],!k4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;xbe(a,i)}(e.sham||i&&i.sham)&&t4(a,`sham`,!0),y4(n,r,a,e)}},j4=Array.isArray||function(e){return h2(e)==`Array`},M4={};M4[G2(`toStringTag`)]=`z`;var N4=String(M4)===`[object z]`,Obe=G2(`toStringTag`),kbe=$.Object,Abe=h2(function(){return arguments}())==`Arguments`,P4=N4?h2: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=kbe(e),Obe))==`string`?n:Abe?h2(t):(r=h2(t))==`Object`&&b2(t.callee)?`Arguments`:r},F4=function(){},jbe=[],I4=S2(`Reflect`,`construct`),L4=/^\s*(?:class|function)\b/,Mbe=m2(L4.exec),Nbe=!L4.exec(F4),R4=function(e){if(!b2(e))return!1;try{return I4(F4,jbe,e),!0}catch{return!1}},z4=!I4||i2((function(){var e;return R4(R4.call)||!R4(Object)||!R4((function(){e=!0}))||e}))?function(e){if(!b2(e))return!1;switch(P4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Nbe||!!Mbe(L4,a4(e))}:R4,B4=function(e,t,n){var r=K2(t);r in e?e4.f(e,r,u2(0,n)):e[r]=n},Pbe=G2(`species`),V4=m2([].slice),Fbe=k2>=51||!i2((function(){var e=[];return(e.constructor={})[Pbe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Ibe=G2(`species`),H4=$.Array,Lbe=Math.max;A4({target:`Array`,proto:!0,forced:!Fbe},{slice:function(e,t){var n,r,i,a=y2(this),o=C4(a),s=x4(e,o),c=x4(t===void 0?o:t,o);if(j4(a)&&(n=a.constructor,(z4(n)&&(n===H4||j4(n.prototype))||x2(n)&&(n=n[Ibe])===null)&&(n=void 0),n===H4||n===void 0))return V4(a,s,c);for(r=new(n===void 0?H4:n)(Lbe(c-s,0)),i=0;s<c;s++,i++)s in a&&B4(r,i,a[s]);return r.length=i,r}});var Rbe=N4?{}.toString:function(){return`[object `+P4(this)+`]`};N4||y4(Object.prototype,`toString`,Rbe,{unsafe:!0});var U4,zbe=$.String,W4=function(e){if(P4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return zbe(e)},G4=function(){var e=Q2(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},K4=$.RegExp,q4=i2((function(){var e=K4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Bbe=q4||i2((function(){return!K4(`a`,`y`).sticky})),J4={BROKEN_CARET:q4||i2((function(){var e=K4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Bbe,UNSUPPORTED_Y:q4},Vbe=Object.keys||function(e){return T4(e,E4)},Hbe=a2?Object.defineProperties:function(e,t){Q2(e);for(var n,r=y2(t),i=Vbe(t),a=i.length,o=0;a>o;)e4.f(e,n=i[o++],r[n]);return e},Y4=S2(`document`,`documentElement`),X4=l4(`IE_PROTO`),Z4=function(){},Q4=function(e){return`<script>`+e+`<\/script>`},$4=function(e){e.write(Q4(``)),e.close();var t=e.parentWindow.Object;return e=null,t},e3=function(){try{U4=new ActiveXObject(`htmlfile`)}catch{}var e,t;e3=typeof document<`u`?document.domain&&U4?$4(U4):((t=J2(`iframe`)).style.display=`none`,Y4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Q4(`document.F=Object`)),e.close(),e.F):$4(U4);for(var n=E4.length;n--;)delete e3.prototype[E4[n]];return e3()};u4[X4]=!0;var t3,n3,r3=Object.create||function(e,t){var n;return e===null?n=e3():(Z4.prototype=Q2(e),n=new Z4,Z4.prototype=null,n[X4]=e),t===void 0?n:Hbe(n,t)},Ube=$.RegExp,Wbe=i2((function(){var e=Ube(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Gbe=$.RegExp,Kbe=i2((function(){var e=Gbe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),qbe=h4.get,Jbe=R2(`native-string-replace`,String.prototype.replace),i3=RegExp.prototype.exec,a3=i3,Ybe=m2(``.charAt),Xbe=m2(``.indexOf),Zbe=m2(``.replace),o3=m2(``.slice),s3=(n3=/b*/g,s2(i3,t3=/a/,`a`),s2(i3,n3,`a`),t3.lastIndex!==0||n3.lastIndex!==0),c3=J4.BROKEN_CARET,l3=/()??/.exec(``)[1]!==void 0;(s3||l3||c3||Wbe||Kbe)&&(a3=function(e){var t,n,r,i,a,o,s,c=this,l=qbe(c),u=W4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=s2(a3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=c3&&c.sticky,m=s2(G4,c),h=c.source,g=0,_=u;if(p&&(m=Zbe(m,`y`,``),Xbe(m,`g`)===-1&&(m+=`g`),_=o3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Ybe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),l3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),s3&&(r=c.lastIndex),i=s2(i3,p?n:c,_),p?i?(i.input=o3(i.input,g),i[0]=o3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:s3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),l3&&i&&i.length>1&&s2(Jbe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=r3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var u3=a3;A4({target:`RegExp`,proto:!0,forced:/./.exec!==u3},{exec:u3});var d3=Function.prototype,f3=d3.apply,Qbe=d3.bind,p3=d3.call,m3=typeof Reflect==`object`&&Reflect.apply||(Qbe?p3.bind(f3):function(){return p3.apply(f3,arguments)}),$be=G2(`species`),h3=RegExp.prototype,exe=G2(`match`),txe=$.TypeError,nxe=G2(`species`),g3=function(e,t){var n,r=Q2(e).constructor;return r===void 0||(n=Q2(r)[nxe])==null?t:function(e){if(z4(e))return e;throw txe(N2(e)+` is not a constructor`)}(n)},rxe=m2(``.charAt),_3=m2(``.charCodeAt),ixe=m2(``.slice),v3=function(e){return function(t,n){var r,i,a=W4(v2(t)),o=b4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=_3(a,o))<55296||r>56319||o+1===s||(i=_3(a,o+1))<56320||i>57343?e?rxe(a,o):r:e?ixe(a,o,o+2):i-56320+(r-55296<<10)+65536}},y3={codeAt:v3(!1),charAt:v3(!0)},axe=y3.charAt,oxe=function(e,t,n){return t+(n?axe(e,t).length:1)},sxe=$.Array,cxe=Math.max,b3=function(e,t,n){for(var r=C4(e),i=x4(t,r),a=x4(n===void 0?r:n,r),o=sxe(cxe(a-i,0)),s=0;i<a;i++,s++)B4(o,s,e[i]);return o.length=s,o},lxe=$.TypeError,x3=function(e,t){var n=e.exec;if(b2(n)){var r=s2(n,e,t);return r!==null&&Q2(r),r}if(h2(e)===`RegExp`)return s2(u3,e,t);throw lxe(`RegExp#exec called on incompatible receiver`)},S3=J4.UNSUPPORTED_Y,uxe=Math.min,C3=[].push,dxe=m2(/./.exec),w3=m2(C3),T3=m2(``.slice);(function(e,t,n,r){var i=G2(e),a=!i2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!i2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[$be]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=m2(/./[i]),c=function(e,t,n){var 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=W4(v2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!x2(r=e)||!((i=r[exe])===void 0?h2(r)==`RegExp`:i))return s2(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=s2(u3,p,a))&&!((c=p.lastIndex)>f&&(w3(u,T3(a,f,s.index)),s.length>1&&s.index<a.length&&m3(C3,u,b3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&dxe(p,``)||w3(u,``):w3(u,T3(a,f)),u.length>o?b3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:s2(t,this,e,n)}:t;return[function(t,n){var i=v2(this),a=t==null?void 0:F2(t,e);return a?s2(a,t,i,n):s2(r,W4(i),t,n)},function(e,i){var a=Q2(this),o=W4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=g3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(S3?`g`:`y`),d=new c(S3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return x3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=S3?0:m;var g,_=x3(d,S3?T3(o,m):o);if(_===null||(g=uxe(S4(d.lastIndex+(S3?m:0)),o.length))===p)m=oxe(o,m,l);else{if(w3(h,T3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(w3(h,_[v]),h.length===f)return h;m=p=g}}return w3(h,T3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=m2(e),c=t.exec;return c===u3||c===h3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));y4(String.prototype,e,c[0]),y4(h3,i,c[1])}r&&t4(h3[i],`sham`,!0)})(`split`,0,!!i2((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`})),S3);var E3=function(){return E3=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},E3.apply(this,arguments)};function D3(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 O3(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 fxe(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 k3=G2(`unscopables`),A3=Array.prototype;A3[k3]??e4.f(A3,k3,{configurable:!0,value:r3(null)});var j3,M3,N3,P3=function(e){A3[k3][e]=!0},F3={},pxe=!i2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),I3=l4(`IE_PROTO`),L3=$.Object,mxe=L3.prototype,R3=pxe?L3.getPrototypeOf:function(e){var t=z2(e);if(B2(t,I3))return t[I3];var n=t.constructor;return b2(n)&&t instanceof n?n.prototype:t instanceof L3?mxe:null},z3=G2(`iterator`),B3=!1;[].keys&&(`next`in(N3=[].keys())?(M3=R3(R3(N3)))!==Object.prototype&&(j3=M3):B3=!0),(j3==null||i2((function(){var e={};return j3[z3].call(e)!==e})))&&(j3={}),b2(j3[z3])||y4(j3,z3,(function(){return this}));var V3={IteratorPrototype:j3,BUGGY_SAFARI_ITERATORS:B3},hxe=e4.f,H3=G2(`toStringTag`),U3=function(e,t,n){e&&!B2(e=n?e:e.prototype,H3)&&hxe(e,H3,{configurable:!0,value:t})},gxe=V3.IteratorPrototype,_xe=function(){return this},vxe=$.String,yxe=$.TypeError,W3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=m2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Q2(n),function(e){if(typeof e==`object`||b2(e))return e;throw yxe(`Can't set `+vxe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),bxe=v4.PROPER,xxe=v4.CONFIGURABLE,G3=V3.IteratorPrototype,K3=V3.BUGGY_SAFARI_ITERATORS,q3=G2(`iterator`),Sxe=function(){return this},J3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=r3(gxe,{next:u2(1,n)}),U3(e,i,!1),F3[i]=_xe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!K3&&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[q3]||p[`@@iterator`]||i&&p[i],h=!K3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=R3(g.call(new e)))!==Object.prototype&&s.next&&(R3(s)!==G3&&(W3?W3(s,G3):b2(s[q3])||y4(s,q3,Sxe)),U3(s,d,!0)),bxe&&i==`values`&&m&&m.name!==`values`&&(xxe?t4(p,`name`,`values`):(f=!0,h=function(){return s2(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(K3||f||!(l in p))&&y4(p,l,c[l]);else A4({target:t,proto:!0,forced:K3||f},c)}return p[q3]!==h&&y4(p,q3,h,{name:i}),F3[t]=h,c},Cxe=h4.set,wxe=h4.getterFor(`Array Iterator`),Y3=J3(Array,`Array`,(function(e,t){Cxe(this,{type:`Array Iterator`,target:y2(e),index:0,kind:t})}),(function(){var e=wxe(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`);F3.Arguments=F3.Array,P3(`keys`),P3(`values`),P3(`entries`);var Txe=y3.charAt,Exe=h4.set,Dxe=h4.getterFor(`String Iterator`);J3(String,`String`,(function(e){Exe(this,{type:`String Iterator`,string:W4(e),index:0})}),(function(){var e,t=Dxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Txe(n,r),t.index+=e.length,{value:e,done:!1})}));var X3=function(e,t,n){for(var r in t)y4(e,r,t[r],n);return e},Z3=D4.f,Q3=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oxe={f:function(e){return Q3&&h2(e)==`Window`?function(e){try{return Z3(e)}catch{return b3(Q3)}}(e):Z3(y2(e))}},$3=i2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),e6=Object.isExtensible,t6=i2((function(){e6(1)}))||$3?function(e){return!!x2(e)&&(!$3||h2(e)!=`ArrayBuffer`)&&(!e6||e6(e))}:e6,kxe=!i2((function(){return Object.isExtensible(Object.preventExtensions({}))})),n6=e2((function(e){var t=e4.f,n=!1,r=V2(`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=D4.f,t=m2([].splice),i={};i[r]=1,e(i).length&&(D4.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},A4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Oxe.f}))},fastKey:function(e,t){if(!x2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!B2(e,r)){if(!t6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!B2(e,r)){if(!t6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return kxe&&n&&t6(e)&&!B2(e,r)&&a(e),e}};u4[r]=!0})),r6=m2(m2.bind),i6=function(e,t){return P2(e),t===void 0?e:r6?r6(e,t):function(){return e.apply(t,arguments)}},Axe=G2(`iterator`),jxe=Array.prototype,Mxe=G2(`iterator`),a6=function(e){if(e!=null)return F2(e,Mxe)||F2(e,`@@iterator`)||F3[P4(e)]},Nxe=$.TypeError,o6=function(e,t,n){var r,i;Q2(e);try{if(!(r=F2(e,`return`))){if(t===`throw`)throw n;return n}r=s2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Q2(r),n},Pxe=$.TypeError,s6=function(e,t){this.stopped=e,this.result=t},c6=s6.prototype,l6=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=i6(t,d),g=function(e){return r&&o6(r,`normal`,e),new s6(!0,e)},_=function(e){return f?(Q2(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=a6(e)))throw Pxe(N2(e)+` is not iterable`);if((u=i)!==void 0&&(F3.Array===u||jxe[Axe]===u)){for(a=0,o=C4(e);o>a;a++)if((s=_(e[a]))&&C2(c6,s))return s;return new s6(!1)}r=function(e,t){var n=arguments.length<2?a6(e):t;if(P2(n))return Q2(s2(n,e));throw Nxe(N2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=s2(c,r)).done;){try{s=_(l.value)}catch(e){o6(r,`throw`,e)}if(typeof s==`object`&&s&&C2(c6,s))return s}return new s6(!1)},Fxe=$.TypeError,u6=function(e,t){if(C2(t,e))return e;throw Fxe(`Incorrect invocation`)},d6=G2(`iterator`),f6=!1;try{var Ixe=0,p6={next:function(){return{done:!!Ixe++}},return:function(){f6=!0}};p6[d6]=function(){return this},Array.from(p6,(function(){throw 2}))}catch{}var m6=function(e,t){if(!t&&!f6)return!1;var n=!1;try{var r={};r[d6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Lxe=G2(`species`),h6=$.Array,Rxe=function(e,t){return new(function(e){var t;return j4(e)&&(t=e.constructor,(z4(t)&&(t===h6||j4(t.prototype))||x2(t)&&(t=t[Lxe])===null)&&(t=void 0)),t===void 0?h6:t}(e))(t===0?0:t)},g6=m2([].push),_6=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=z2(c),h=_2(m),g=i6(l,u),_=C4(h),v=0,y=d||Rxe,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:g6(b,f)}else switch(e){case 4:return!1;case 7:g6(b,f)}}return a?-1:r||i?i:b}},v6={forEach:_6(0),map:_6(1),filter:_6(2),some:_6(3),every:_6(4),find:_6(5),findIndex:_6(6),filterReject:_6(7)},y6=n6.getWeakData,zxe=h4.set,Bxe=h4.getterFor,Vxe=v6.find,Hxe=v6.findIndex,Uxe=m2([].splice),Wxe=0,b6=function(e){return e.frozen||=new x6},x6=function(){this.entries=[]},S6=function(e,t){return Vxe(e.entries,(function(e){return e[0]===t}))};x6.prototype={get:function(e){var t=S6(this,e);if(t)return t[1]},has:function(e){return!!S6(this,e)},set:function(e,t){var n=S6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Hxe(this.entries,(function(t){return t[0]===e}));return~t&&Uxe(this.entries,t,1),!!~t}};var C6,w6={getConstructor:function(e,t,n,r){var i=e((function(e,i){u6(e,a),zxe(e,{type:t,id:Wxe++,frozen:void 0}),i!=null&&l6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Bxe(t),s=function(e,t,n){var r=o(e),i=y6(Q2(t),!0);return!0===i?b6(r).set(t,n):i[r.id]=n,e};return X3(a,{delete:function(e){var t=o(this);if(!x2(e))return!1;var n=y6(e);return!0===n?b6(t).delete(e):n&&B2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!x2(e))return!1;var n=y6(e);return!0===n?b6(t).has(e):n&&B2(n,t.id)}}),X3(a,n?{get:function(e){var t=o(this);if(x2(e)){var n=y6(e);return!0===n?b6(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}},T6=h4.enforce,Gxe=!$.ActiveXObject&&`ActiveXObject`in $,E6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Kxe=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=m2(s[e]);y4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!x2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!x2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!x2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(k4(e,!b2(o)||!(i||s.forEach&&!i2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),n6.enable();else if(k4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=i2((function(){d.has(1)})),m=m6((function(e){new o(e)})),h=!i&&i2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){u6(e,s);var n=function(e,t,n){var r,i;return W3&&b2(r=t.constructor)&&r!==n&&x2(i=r.prototype)&&i!==n.prototype&&W3(e,i),e}(new o,e,c);return t!=null&&l6(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,A4({global:!0,forced:c!=o},l),U3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,E6,w6);if(s4&&Gxe){C6=w6.getConstructor(E6,`WeakMap`,!0),n6.enable();var D6=Kxe.prototype,O6=m2(D6.delete),k6=m2(D6.has),A6=m2(D6.get),j6=m2(D6.set);X3(D6,{delete:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,O6(this,e)||t.frozen.delete(e)}return O6(this,e)},has:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,k6(this,e)||t.frozen.has(e)}return k6(this,e)},get:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,k6(this,e)?A6(this,e):t.frozen.get(e)}return A6(this,e)},set:function(e,t){if(x2(e)&&!t6(e)){var n=T6(this);n.frozen||=new C6,k6(this,e)?j6(this,e,t):n.frozen.set(e,t)}else j6(this,e,t);return this}})}var M6={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},N6=J2(`span`).classList,P6=N6&&N6.constructor&&N6.constructor.prototype,F6=P6===Object.prototype?void 0:P6,I6=G2(`iterator`),L6=G2(`toStringTag`),R6=Y3.values,z6=function(e,t){if(e){if(e[I6]!==R6)try{t4(e,I6,R6)}catch{e[I6]=R6}if(e[L6]||t4(e,L6,t),M6[t]){for(var n in Y3)if(e[n]!==Y3[n])try{t4(e,n,Y3[n])}catch{e[n]=Y3[n]}}}};for(var B6 in M6)z6($[B6]&&$[B6].prototype,B6);z6(F6,`DOMTokenList`);var V6=function(e,t){var n=[][e];return!!n&&i2((function(){n.call(null,t||function(){throw 1},1)}))},qxe=v6.forEach,H6=V6(`forEach`)?[].forEach:function(e){return qxe(this,e,arguments.length>1?arguments[1]:void 0)},U6=function(e){if(e&&e.forEach!==H6)try{t4(e,`forEach`,H6)}catch{e.forEach=H6}};for(var W6 in M6)M6[W6]&&U6($[W6]&&$[W6].prototype);U6(F6);var G6,K6,q6,J6,Y6=$.Promise,X6=G2(`species`),Z6=/(?:ipad|iphone|ipod).*applewebkit/i.test(w2),Q6=h2($.process)==`process`,$6=$.setImmediate,e8=$.clearImmediate,Jxe=$.process,t8=$.Dispatch,Yxe=$.Function,n8=$.MessageChannel,Xxe=$.String,r8=0,i8={};try{G6=$.location}catch{}var a8=function(e){if(B2(i8,e)){var t=i8[e];delete i8[e],t()}},o8=function(e){return function(){a8(e)}},s8=function(e){a8(e.data)},c8=function(e){$.postMessage(Xxe(e),G6.protocol+`//`+G6.host)};$6&&e8||($6=function(e){var t=V4(arguments,1);return i8[++r8]=function(){m3(b2(e)?e:Yxe(e),void 0,t)},K6(r8),r8},e8=function(e){delete i8[e]},Q6?K6=function(e){Jxe.nextTick(o8(e))}:t8&&t8.now?K6=function(e){t8.now(o8(e))}:n8&&!Z6?(J6=(q6=new n8).port2,q6.port1.onmessage=s8,K6=i6(J6.postMessage,J6)):$.addEventListener&&b2($.postMessage)&&!$.importScripts&&G6&&G6.protocol!==`file:`&&!i2(c8)?(K6=c8,$.addEventListener(`message`,s8,!1)):K6=`onreadystatechange`in J2(`script`)?function(e){Y4.appendChild(J2(`script`)).onreadystatechange=function(){Y4.removeChild(this),a8(e)}}:function(e){setTimeout(o8(e),0)});var l8,u8,d8,f8,p8,m8,h8,g8,_8={set:$6,clear:e8},Zxe=/ipad|iphone|ipod/i.test(w2)&&$.Pebble!==void 0,Qxe=/web0s(?!.*chrome)/i.test(w2),$xe=Z2.f,v8=_8.set,y8=$.MutationObserver||$.WebKitMutationObserver,b8=$.document,x8=$.process,S8=$.Promise,C8=$xe($,`queueMicrotask`),w8=C8&&C8.value;w8||(l8=function(){var e,t;for(Q6&&(e=x8.domain)&&e.exit();u8;){t=u8.fn,u8=u8.next;try{t()}catch(e){throw u8?f8():d8=void 0,e}}d8=void 0,e&&e.enter()},Z6||Q6||Qxe||!y8||!b8?!Zxe&&S8&&S8.resolve?((h8=S8.resolve(void 0)).constructor=S8,g8=i6(h8.then,h8),f8=function(){g8(l8)}):Q6?f8=function(){x8.nextTick(l8)}:(v8=i6(v8,$),f8=function(){v8(l8)}):(p8=!0,m8=b8.createTextNode(``),new y8(l8).observe(m8,{characterData:!0}),f8=function(){m8.data=p8=!p8}));var T8,E8,D8,O8,k8=w8||function(e){var t={fn:e,next:void 0};d8&&(d8.next=t),u8||(u8=t,f8()),d8=t},eSe=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=P2(t),this.reject=P2(n)},A8={f:function(e){return new eSe(e)}},j8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tSe=typeof window==`object`,M8=_8.set,nSe=G2(`species`),N8=`Promise`,P8=h4.getterFor(N8),rSe=h4.set,iSe=h4.getterFor(N8),F8=Y6&&Y6.prototype,I8=Y6,L8=F8,R8=$.TypeError,z8=$.document,B8=$.process,V8=A8.f,aSe=V8,oSe=!!(z8&&z8.createEvent&&$.dispatchEvent),H8=b2($.PromiseRejectionEvent),U8=!1,W8=k4(N8,(function(){var e=a4(I8),t=e!==String(I8);if(!t&&k2===66)return!0;if(k2>=51&&/native code/.test(e))return!1;var n=new I8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[nSe]=r,!(U8=n.then((function(){}))instanceof r)||!t&&tSe&&!H8})),sSe=W8||!m6((function(e){I8.all(e).catch((function(){}))})),G8=function(e){var t;return!(!x2(e)||!b2(t=e.then))&&t},K8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;k8((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&&lSe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(R8(`Promise-chain cycle`)):(s=G8(o))?s2(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)}))}},q8=function(e,t,n){var r,i;oSe?((r=z8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!H8&&(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)},cSe=function(e){s2(M8,$,(function(){var t,n=e.facade,r=e.value;if(J8(e)&&(t=j8((function(){Q6?B8.emit(`unhandledRejection`,r,n):q8(`unhandledrejection`,n,r)})),e.rejection=Q6||J8(e)?2:1,t.error))throw t.value}))},J8=function(e){return e.rejection!==1&&!e.parent},lSe=function(e){s2(M8,$,(function(){var t=e.facade;Q6?B8.emit(`rejectionHandled`,t):q8(`rejectionhandled`,t,e.value)}))},Y8=function(e,t,n){return function(r){e(t,r,n)}},X8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,K8(e,!0))},Z8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw R8(`Promise can't be resolved itself`);var r=G8(t);r?k8((function(){var n={done:!1};try{s2(r,t,Y8(Z8,n,e),Y8(X8,n,e))}catch(t){X8(n,t,e)}})):(e.value=t,e.state=1,K8(e,!1))}catch(t){X8({done:!1},t,e)}}};if(W8&&(L8=(I8=function(e){u6(this,L8),P2(e),s2(T8,this);var t=P8(this);try{e(Y8(Z8,t),Y8(X8,t))}catch(e){X8(t,e)}}).prototype,(T8=function(e){rSe(this,{type:N8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=X3(L8,{then:function(e,t){var n=iSe(this),r=n.reactions,i=V8(g3(this,I8));return i.ok=!b2(e)||e,i.fail=b2(t)&&t,i.domain=Q6?B8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&K8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),E8=function(){var e=new T8,t=P8(e);this.promise=e,this.resolve=Y8(Z8,t),this.reject=Y8(X8,t)},A8.f=V8=function(e){return e===I8||e===D8?new E8(e):aSe(e)},b2(Y6)&&F8!==Object.prototype)){O8=F8.then,U8||(y4(F8,`then`,(function(e,t){var n=this;return new I8((function(e,t){s2(O8,n,e,t)})).then(e,t)}),{unsafe:!0}),y4(F8,`catch`,L8.catch,{unsafe:!0}));try{delete F8.constructor}catch{}W3&&W3(F8,L8)}A4({global:!0,wrap:!0,forced:W8},{Promise:I8}),U3(I8,N8,!1),function(e){var t=S2(`Promise`),n=e4.f;a2&&t&&!t[X6]&&n(t,X6,{configurable:!0,get:function(){return this}})}(),D8=S2(N8),A4({target:N8,stat:!0,forced:W8},{reject:function(e){var t=V8(this);return s2(t.reject,void 0,e),t.promise}}),A4({target:N8,stat:!0,forced:W8},{resolve:function(e){return function(e,t){if(Q2(e),x2(t)&&t.constructor===e)return t;var n=A8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),A4({target:N8,stat:!0,forced:sSe},{all:function(e){var t=this,n=V8(t),r=n.resolve,i=n.reject,a=j8((function(){var n=P2(t.resolve),a=[],o=0,s=1;l6(e,(function(e){var c=o++,l=!1;s++,s2(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=V8(t),r=n.reject,i=j8((function(){var i=P2(t.resolve);l6(e,(function(e){s2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var uSe=v4.PROPER,Q8=RegExp.prototype,$8=Q8.toString,dSe=m2(G4),fSe=i2((function(){return $8.call({source:`a`,flags:`b`})!=`/a/b`})),pSe=uSe&&$8.name!=`toString`;(fSe||pSe)&&y4(RegExp.prototype,`toString`,(function(){var e=Q2(this),t=W4(e.source),n=e.flags;return`/`+t+`/`+W4(n===void 0&&C2(Q8,e)&&!(`flags`in Q8)?dSe(e):n)}),{unsafe:!0});var mSe=v4.EXISTS,hSe=e4.f,e5=Function.prototype,gSe=m2(e5.toString),t5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_Se=m2(t5.exec);a2&&!mSe&&hSe(e5,`name`,{configurable:!0,get:function(){try{return _Se(t5,gSe(this))[1]}catch{return``}}});var n5=new WeakMap;function r5(e){return e.getMenuConfig(`uploadImage`)}function vSe(e,t){return D3(this,void 0,void 0,(function(){return O3(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;$F(e,a,t.name,o),n(`ok`)}}}))]}))}))}function ySe(e,t){return D3(this,void 0,void 0,(function(){var n,r,i,a;return O3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=n5.get(e);if(t!=null)return t;var n=r5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=nj(E3(E3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return $F(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;$F(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;$F(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),n5.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 i5(e,t){var n,r;return D3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return O3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=r5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=fxe(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,vSe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return $F(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,ySe(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 bSe=m2([].join),xSe=_2!=Object,SSe=V6(`join`,`,`);A4({target:`Array`,proto:!0,forced:xSe||!SSe},{join:function(e){return bSe(y2(this),e===void 0?`,`:e)}}),Bg&&(J.fn.append=Bg),Dg&&(J.fn.on=Dg),Kg&&(J.fn.remove=Kg),Eg&&(J.fn.val=Eg),Xg&&(J.fn.click=Xg),Mg&&(J.fn.hide=Mg);var CSe=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 eI(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 $F(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=J(`body`),c=J(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;i5(e,t)}))}},e}(),wSe={menus:[{key:`uploadImage`,factory:function(){return new CSe},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(eI(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`}))?i5(e,i):t(r)}},n}};Mj(`en`,{highLightModule:{selectLang:`Language`}}),Mj(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var a5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function o5(e){var t={exports:{}};return e(t,t.exports),t.exports}var s5,c5,l5=function(e){return e&&e.Math==Math&&e},u5=l5(typeof globalThis==`object`&&globalThis)||l5(typeof window==`object`&&window)||l5(typeof self==`object`&&self)||l5(typeof a5==`object`&&a5)||function(){return this}()||Function(`return this`)(),TSe=Object.defineProperty,d5=function(e,t){try{TSe(u5,e,{value:t,configurable:!0,writable:!0})}catch{u5[e]=t}return t},f5=u5[`__core-js_shared__`]||d5(`__core-js_shared__`,{}),p5=o5((function(e){(e.exports=function(e,t){return f5[e]||(f5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),m5=Function.prototype,h5=m5.bind,g5=m5.call,ESe=h5&&h5.bind(g5),_5=h5?function(e){return e&&ESe(g5,e)}:function(e){return e&&function(){return g5.apply(e,arguments)}},DSe=u5.TypeError,v5=function(e){if(e==null)throw DSe(`Can't call method on `+e);return e},OSe=u5.Object,y5=function(e){return OSe(v5(e))},kSe=_5({}.hasOwnProperty),b5=Object.hasOwn||function(e,t){return kSe(y5(e),t)},ASe=0,jSe=Math.random(),MSe=_5(1 .toString),x5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+MSe(++ASe+jSe,36)},S5=function(e){return typeof e==`function`},NSe=function(e){return S5(e)?e:void 0},C5=function(e,t){return arguments.length<2?NSe(u5[e]):u5[e]&&u5[e][t]},w5=C5(`navigator`,`userAgent`)||``,T5=u5.process,E5=u5.Deno,D5=T5&&T5.versions||E5&&E5.version,O5=D5&&D5.v8;O5&&(c5=(s5=O5.split(`.`))[0]>0&&s5[0]<4?1:+(s5[0]+s5[1])),!c5&&w5&&(!(s5=w5.match(/Edge\/(\d+)/))||s5[1]>=74)&&(s5=w5.match(/Chrome\/(\d+)/))&&(c5=+s5[1]);var k5=c5,A5=function(e){try{return!!e()}catch{return!0}},j5=!!Object.getOwnPropertySymbols&&!A5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k5&&k5<41})),M5=j5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,N5=p5(`wks`),P5=u5.Symbol,F5=P5&&P5.for,PSe=M5?P5:P5&&P5.withoutSetter||x5,I5=function(e){if(!b5(N5,e)||!j5&&typeof N5[e]!=`string`){var t=`Symbol.`+e;N5[e]=j5&&b5(P5,e)?P5[e]:M5&&F5?F5(t):PSe(t)}return N5[e]},L5={};L5[I5(`toStringTag`)]=`z`;var R5=String(L5)===`[object z]`,z5=!A5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),B5=function(e){return typeof e==`object`?e!==null:S5(e)},V5=u5.document,FSe=B5(V5)&&B5(V5.createElement),H5=function(e){return FSe?V5.createElement(e):{}},U5=!z5&&!A5((function(){return Object.defineProperty(H5(`div`),"a",{get:function(){return 7}}).a!=7})),ISe=u5.String,LSe=u5.TypeError,W5=function(e){if(B5(e))return e;throw LSe(ISe(e)+` is not an object`)},G5=Function.prototype.call,K5=G5.bind?G5.bind(G5):function(){return G5.apply(G5,arguments)},q5=_5({}.isPrototypeOf),RSe=u5.Object,J5=M5?function(e){return typeof e==`symbol`}:function(e){var t=C5(`Symbol`);return S5(t)&&q5(t.prototype,RSe(e))},zSe=u5.String,Y5=function(e){try{return zSe(e)}catch{return`Object`}},BSe=u5.TypeError,X5=function(e){if(S5(e))return e;throw BSe(Y5(e)+` is not a function`)},Z5=function(e,t){var n=e[t];return n==null?void 0:X5(n)},VSe=u5.TypeError,HSe=u5.TypeError,USe=I5(`toPrimitive`),Q5=function(e){var t=function(e,t){if(!B5(e)||J5(e))return e;var n,r=Z5(e,USe);if(r){if(t===void 0&&(t=`default`),n=K5(r,e,t),!B5(n)||J5(n))return n;throw HSe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&S5(n=e.toString)&&!B5(r=K5(n,e))||S5(n=e.valueOf)&&!B5(r=K5(n,e))||t!==`string`&&S5(n=e.toString)&&!B5(r=K5(n,e)))return r;throw VSe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return J5(t)?t:t+``},WSe=u5.TypeError,$5=Object.defineProperty,e7={f:z5?$5:function(e,t,n){if(W5(e),t=Q5(t),W5(n),U5)try{return $5(e,t,n)}catch{}if(`get`in n||`set`in n)throw WSe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},t7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n7=z5?function(e,t,n){return e7.f(e,t,t7(1,n))}:function(e,t,n){return e[t]=n,e},GSe=_5(Function.toString);S5(f5.inspectSource)||(f5.inspectSource=function(e){return GSe(e)});var r7,i7,a7,o7=f5.inspectSource,s7=u5.WeakMap,KSe=S5(s7)&&/native code/.test(o7(s7)),c7=p5(`keys`),l7=function(e){return c7[e]||(c7[e]=x5(e))},u7={},d7=u5.TypeError,qSe=u5.WeakMap;if(KSe||f5.state){var f7=f5.state||=new qSe,JSe=_5(f7.get),p7=_5(f7.has),YSe=_5(f7.set);r7=function(e,t){if(p7(f7,e))throw new d7(`Object already initialized`);return t.facade=e,YSe(f7,e,t),t},i7=function(e){return JSe(f7,e)||{}},a7=function(e){return p7(f7,e)}}else{var m7=l7(`state`);u7[m7]=!0,r7=function(e,t){if(b5(e,m7))throw new d7(`Object already initialized`);return t.facade=e,n7(e,m7,t),t},i7=function(e){return b5(e,m7)?e[m7]:{}},a7=function(e){return b5(e,m7)}}var h7={set:r7,get:i7,has:a7,enforce:function(e){return a7(e)?i7(e):r7(e,{})},getterFor:function(e){return function(t){var n;if(!B5(t)||(n=i7(t)).type!==e)throw d7(`Incompatible receiver, `+e+` required`);return n}}},g7=Function.prototype,XSe=z5&&Object.getOwnPropertyDescriptor,_7=b5(g7,`name`),v7={EXISTS:_7,PROPER:_7&&function(){}.name===`something`,CONFIGURABLE:_7&&(!z5||z5&&XSe(g7,`name`).configurable)},y7=o5((function(e){var t=v7.CONFIGURABLE,n=h7.get,r=h7.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;S5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!b5(a,`name`)||t&&a.name!==d)&&n7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===u5?l?e[n]=a:d5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:n7(e,n,a))})(Function.prototype,`toString`,(function(){return S5(this)&&n(this).source||o7(this)}))})),ZSe=_5({}.toString),QSe=_5(``.slice),b7=function(e){return QSe(ZSe(e),8,-1)},$Se=I5(`toStringTag`),eCe=u5.Object,tCe=b7(function(){return arguments}())==`Arguments`,x7=R5?b7:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=eCe(e),$Se))==`string`?n:tCe?b7(t):(r=b7(t))==`Object`&&S5(t.callee)?`Arguments`:r},nCe=R5?{}.toString:function(){return`[object `+x7(this)+`]`};R5||y7(Object.prototype,`toString`,nCe,{unsafe:!0});var S7,C7={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},w7=H5(`span`).classList,T7=w7&&w7.constructor&&w7.constructor.prototype,rCe=T7===Object.prototype?void 0:T7,E7=_5(_5.bind),D7=u5.Object,iCe=_5(``.split),O7=A5((function(){return!D7(`z`).propertyIsEnumerable(0)}))?function(e){return b7(e)==`String`?iCe(e,``):D7(e)}:D7,aCe=Math.ceil,oCe=Math.floor,k7=function(e){var t=+e;return t!=t||t===0?0:(t>0?oCe:aCe)(t)},sCe=Math.min,A7=function(e){return e>0?sCe(k7(e),9007199254740991):0},j7=function(e){return A7(e.length)},M7=Array.isArray||function(e){return b7(e)==`Array`},N7=function(){},cCe=[],P7=C5(`Reflect`,`construct`),F7=/^\s*(?:class|function)\b/,lCe=_5(F7.exec),uCe=!F7.exec(N7),I7=function(e){if(!S5(e))return!1;try{return P7(N7,cCe,e),!0}catch{return!1}},L7=!P7||A5((function(){var e;return I7(I7.call)||!I7(Object)||!I7((function(){e=!0}))||e}))?function(e){if(!S5(e))return!1;switch(x7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return uCe||!!lCe(F7,o7(e))}:I7,dCe=I5(`species`),R7=u5.Array,fCe=function(e,t){return new(function(e){var t;return M7(e)&&(t=e.constructor,(L7(t)&&(t===R7||M7(t.prototype))||B5(t)&&(t=t[dCe])===null)&&(t=void 0)),t===void 0?R7:t}(e))(t===0?0:t)},z7=_5([].push),B7=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=y5(c),h=O7(m),g=function(e,t){return X5(e),t===void 0?e:E7?E7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=j7(h),v=0,y=d||fCe,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:z7(b,f)}else switch(e){case 4:return!1;case 7:z7(b,f)}}return a?-1:r||i?i:b}},pCe=[B7(0),B7(1),B7(2),B7(3),B7(4),B7(5),B7(6),B7(7)][0],V7=(S7=[].forEach)&&A5((function(){S7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return pCe(this,e,arguments.length>1?arguments[1]:void 0)},H7=function(e){if(e&&e.forEach!==V7)try{n7(e,`forEach`,V7)}catch{e.forEach=V7}};for(var U7 in C7)C7[U7]&&H7(u5[U7]&&u5[U7].prototype);H7(rCe);var W7={}.propertyIsEnumerable,G7=Object.getOwnPropertyDescriptor,K7={f:G7&&!W7.call({1:2},1)?function(e){var t=G7(this,e);return!!t&&t.enumerable}:W7},q7=function(e){return O7(v5(e))},J7=Object.getOwnPropertyDescriptor,Y7={f:z5?J7:function(e,t){if(e=q7(e),t=Q5(t),U5)try{return J7(e,t)}catch{}if(b5(e,t))return t7(!K5(K7.f,e,t),e[t])}},mCe=Math.max,hCe=Math.min,X7=function(e,t){var n=k7(e);return n<0?mCe(n+t,0):hCe(n,t)},gCe=function(e){return function(e,t,n){for(var r=q7(e),i=j7(r),a=X7(n,i);i>a;a++)if(a in r&&r[a]===t)return a||0;return-1}}(!1),Z7=_5([].push),Q7=function(e,t){var n,r=q7(e),i=0,a=[];for(n in r)!b5(u7,n)&&b5(r,n)&&Z7(a,n);for(;t.length>i;)b5(r,n=t[i++])&&(~gCe(a,n)||Z7(a,n));return a},$7=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],_Ce=$7.concat(`length`,`prototype`),vCe={f:Object.getOwnPropertyNames||function(e){return Q7(e,_Ce)}},e9={f:Object.getOwnPropertySymbols},yCe=_5([].concat),bCe=C5(`Reflect`,`ownKeys`)||function(e){var t=vCe.f(W5(e)),n=e9.f;return n?yCe(t,n(e)):t},xCe=function(e,t){for(var n=bCe(t),r=e7.f,i=Y7.f,a=0;a<n.length;a++){var o=n[a];b5(e,o)||r(e,o,i(t,o))}},SCe=/#|\.prototype\./,t9=function(e,t){var n=wCe[CCe(e)];return n==ECe||n!=TCe&&(S5(t)?A5(t):!!t)},CCe=t9.normalize=function(e){return String(e).replace(SCe,`.`).toLowerCase()},wCe=t9.data={},TCe=t9.NATIVE=`N`,ECe=t9.POLYFILL=`P`,DCe=t9,OCe=Y7.f,n9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?u5:l?u5[s]||d5(s,{}):(u5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=OCe(n,r))&&o.value:n[r],!DCe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;xCe(a,i)}(e.sham||i&&i.sham)&&n7(a,`sham`,!0),y7(n,r,a,e)}},r9=Object.keys||function(e){return Q7(e,$7)},i9=Object.assign,a9=Object.defineProperty,kCe=_5([].concat),o9=!i9||A5((function(){if(z5&&i9({b:1},i9(a9({},`a`,{enumerable:!0,get:function(){a9(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})),i9({},e)[n]!=7||r9(i9({},t)).join(``)!=r}))?function(e,t){for(var n=y5(e),r=arguments.length,i=1,a=e9.f,o=K7.f;r>i;)for(var s,c=O7(arguments[i++]),l=a?kCe(r9(c),a(c)):r9(c),u=l.length,d=0;u>d;)s=l[d++],z5&&!K5(o,c,s)||(n[s]=c[s]);return n}:i9;n9({target:`Object`,stat:!0,forced:Object.assign!==o9},{assign:o9});var s9=o5((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,a;switch(n||={},i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,`none`])[1].toLowerCase():`none`},currentScript:function(){if(typeof document>`u`)return null;if(`currentScript`in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r||=i.languages)[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,(function(t,n){n===l&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l!==`Object`||a[o(c)]?l!==`Array`||a[o(c)]||(a[o(c)]=!0,e(c,n,s,a)):(a[o(c)]=!0,e(c,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(n,r,a){var o=i.util.getLanguage(n),s=i.languages[o];n.className=n.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o;var c=n.parentElement;c&&c.nodeName.toLowerCase()===`pre`&&(c.className=c.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o);var l={element:n,language:o,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,i.hooks.run(`before-insert`,l),l.element.innerHTML=l.highlightedCode,i.hooks.run(`after-highlight`,l),i.hooks.run(`complete`,l),a&&a.call(l.element)}if(i.hooks.run(`before-sanity-check`,l),(c=l.element.parentElement)&&c.nodeName.toLowerCase()===`pre`&&!c.hasAttribute(`tabindex`)&&c.setAttribute(`tabindex`,`0`),!l.code)return i.hooks.run(`complete`,l),void(a&&a.call(l.element));if(i.hooks.run(`before-highlight`,l),l.grammar){if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language))}else u(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run(`before-tokenize`,r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||``).length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T,E=1;if(v){if(!(T=o(x,C,e,_)))break;var D=T.index,O=T.index+T[0].length,k=C;for(k+=S.value.length;D>=k;)k+=(S=S.next).value.length;if(C=k-=S.value.length,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(k<O||typeof A.value==`string`);A=A.next)E++,k+=A.value.length;E--,w=e.slice(C,k),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var j=T[0],M=w.slice(0,D),N=w.slice(D+j.length),P=C+w.length;d&&P>d.reach&&(d.reach=P);var F=S.prev;if(M&&(F=l(t,F,M),C+=M.length),u(t,F,E),S=l(t,F,new a(f,g?i.tokenize(j,g):j,y,j)),N&&l(t,S,N),E>1){var I={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,I),d&&I.reach>d.reach&&(d.reach=I.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,a5!==void 0&&(a5.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`),s.textContent=f.status>=400?`✖ Error `+f.status+` while fetching file: `+f.statusText:`✖ Error: File does not exist or is empty`))},f.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,i=(e||document).querySelectorAll(r),a=0;n=i[a++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(e,t){var n=e.className;n=n.replace(i,` `)+` language-`+t,e.className=n.replace(/\s+/g,` `).trim()}}()}));(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx},alias:`language-javascript`}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,(function(e){e.language!==`jsx`&&e.language!==`tsx`||s(e.tokens)}))})(Prism),function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go[`class-name`],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,(function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add(`after-tokenize`,(function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)}))}(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{"class-name":[r,{pattern:RegExp(n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:module|import)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,(function(){return n}))+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return`(?:`+t[+n]+`)`}))}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return`(?:`+e+`)`}));return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i=`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,a=`class enum interface record struct`,o=`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,s=`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`;function c(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var l=c(a),u=RegExp(c(i+` `+a+` `+o+` `+s)),d=c(a+` `+o+` `+s),f=c(i+` `+a+` `+s),p=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),m=r(`\\((?:[^()]|<<self>>)*\\)`,2),h=`@?\\b[A-Za-z_]\\w*\\b`,g=t(`<<0>>(?:\\s*<<1>>)?`,[h,p]),_=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[d,g]),v=`\\[\\s*(?:,\\s*)*\\]`,y=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[_,v]),b=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[p,m,v])]),_,v]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},S=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,C=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,w=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[w]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:`character`}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[h,b]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[h]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[l,g]),lookbehind:!0,inside:x},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\bwhere\\s+)<<0>>`,[h]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[y]),lookbehind:!0,inside:x},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[b,f,h]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[h]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[m]),lookbehind:!0,alias:`class-name`,inside:x},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[b,_]),inside:x,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[b]),lookbehind:!0,inside:x,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[h,p]),inside:{function:n(`^<<0>>`,[h]),generic:{pattern:RegExp(p),alias:`class-name`,inside:x}}},"type-list":{pattern:n(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[l,g,h,b,u.source,m,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(b),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var T=C+`|`+S,E=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[T]),D=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),O=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,k=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[_,D]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[O,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[O]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[D]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var A=`:[^}\\r\\n]+`,j=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),M=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[j,A]),N=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),P=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[N,A]);function F(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,A]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:n(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[M]),lookbehind:!0,greedy:!0,inside:F(M,j)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[P]),lookbehind:!0,greedy:!0,inside:F(P,N)}]})}(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])*>)[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])*>)`),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){function t(e){return e=e.replace(/<inner>/g,(function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`})),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,(function(){return n})),i=`\\|?[ \\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(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),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:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<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:t(`!?\\[(?:(?!\\])<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 c=t.classes[r],l=/language-(.+)/.exec(c);if(l){n=l[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){return e.replace(a,``).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)),s(n)):o[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 a=RegExp(e.languages.markup.tag.pattern.source,`gi`),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=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 ACe=`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 c9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+c9(t)}),0)}var l9,jCe=u5.String,u9=function(e){if(x7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return jCe(e)},d9=function(){var e=W5(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},f9=u5.RegExp,p9=A5((function(){var e=f9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),MCe=p9||A5((function(){return!f9(`a`,`y`).sticky})),m9={BROKEN_CARET:p9||A5((function(){var e=f9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:MCe,UNSUPPORTED_Y:p9},NCe=z5?Object.defineProperties:function(e,t){W5(e);for(var n,r=q7(t),i=r9(t),a=i.length,o=0;a>o;)e7.f(e,n=i[o++],r[n]);return e},PCe=C5(`document`,`documentElement`),h9=l7(`IE_PROTO`),g9=function(){},_9=function(e){return`<script>`+e+`<\/script>`},v9=function(e){e.write(_9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},y9=function(){try{l9=new ActiveXObject(`htmlfile`)}catch{}var e,t;y9=typeof document<`u`?document.domain&&l9?v9(l9):((t=H5(`iframe`)).style.display=`none`,PCe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(_9(`document.F=Object`)),e.close(),e.F):v9(l9);for(var n=$7.length;n--;)delete y9.prototype[$7[n]];return y9()};u7[h9]=!0;var b9,x9,FCe=Object.create||function(e,t){var n;return e===null?n=y9():(g9.prototype=W5(e),n=new g9,g9.prototype=null,n[h9]=e),t===void 0?n:NCe(n,t)},ICe=u5.RegExp,LCe=A5((function(){var e=ICe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),RCe=u5.RegExp,zCe=A5((function(){var e=RCe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),BCe=h7.get,VCe=p5(`native-string-replace`,String.prototype.replace),S9=RegExp.prototype.exec,C9=S9,HCe=_5(``.charAt),UCe=_5(``.indexOf),WCe=_5(``.replace),w9=_5(``.slice),T9=(x9=/b*/g,K5(S9,b9=/a/,`a`),K5(S9,x9,`a`),b9.lastIndex!==0||x9.lastIndex!==0),E9=m9.BROKEN_CARET,D9=/()??/.exec(``)[1]!==void 0;(T9||D9||E9||LCe||zCe)&&(C9=function(e){var t,n,r,i,a,o,s,c=this,l=BCe(c),u=u9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=K5(C9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=E9&&c.sticky,m=K5(d9,c),h=c.source,g=0,_=u;if(p&&(m=WCe(m,`y`,``),UCe(m,`g`)===-1&&(m+=`g`),_=w9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&HCe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),D9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),T9&&(r=c.lastIndex),i=K5(S9,p?n:c,_),p?i?(i.input=w9(i.input,g),i[0]=w9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:T9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),D9&&i&&i.length>1&&K5(VCe,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=FCe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var O9=C9;n9({target:`RegExp`,proto:!0,forced:/./.exec!==O9},{exec:O9});var k9=Function.prototype,A9=k9.apply,GCe=k9.bind,j9=k9.call,KCe=typeof Reflect==`object`&&Reflect.apply||(GCe?j9.bind(A9):function(){return j9.apply(A9,arguments)}),qCe=I5(`species`),M9=RegExp.prototype,JCe=I5(`match`),YCe=u5.TypeError,XCe=I5(`species`),ZCe=_5(``.charAt),N9=_5(``.charCodeAt),QCe=_5(``.slice),$Ce=function(e){return function(e,t){var n,r,i=u9(v5(e)),a=k7(t),o=i.length;return a<0||a>=o?``:(n=N9(i,a))<55296||n>56319||a+1===o||(r=N9(i,a+1))<56320||r>57343?ZCe(i,a):QCe(i,a,a+2)}}(!0),ewe=function(e,t,n){return t+(n?$Ce(e,t).length:1)},twe=u5.Array,nwe=Math.max,P9=function(e,t,n){for(var r,i,a,o,s=j7(e),c=X7(t,s),l=X7(n===void 0?s:n,s),u=twe(nwe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=Q5(i))in r?e7.f(r,o,t7(0,a)):r[o]=a;return u.length=d,u},rwe=u5.TypeError,F9=function(e,t){var n=e.exec;if(S5(n)){var r=K5(n,e,t);return r!==null&&W5(r),r}if(b7(e)===`RegExp`)return K5(O9,e,t);throw rwe(`RegExp#exec called on incompatible receiver`)},I9=m9.UNSUPPORTED_Y,iwe=Math.min,L9=[].push,awe=_5(/./.exec),R9=_5(L9),z9=_5(``.slice);(function(e,t,n,r){var i=I5(e),a=!A5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!A5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[qCe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=_5(/./[i]),c=function(e,t,n){var 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=u9(v5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!B5(r=e)||!((i=r[JCe])===void 0?b7(r)==`RegExp`:i))return K5(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=K5(O9,p,a))&&!((c=p.lastIndex)>f&&(R9(u,z9(a,f,s.index)),s.length>1&&s.index<a.length&&KCe(L9,u,P9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&awe(p,``)||R9(u,``):R9(u,z9(a,f)),u.length>o?P9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:K5(t,this,e,n)}:t;return[function(t,n){var i=v5(this),a=t==null?void 0:Z5(t,e);return a?K5(a,t,i,n):K5(r,u9(i),t,n)},function(e,i){var a=W5(this),o=u9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=W5(e).constructor;return r===void 0||(n=W5(r)[XCe])==null?t:function(e){if(L7(e))return e;throw YCe(Y5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(I9?`g`:`y`),d=new c(I9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return F9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=I9?0:m;var g,_=F9(d,I9?z9(o,m):o);if(_===null||(g=iwe(A7(d.lastIndex+(I9?m:0)),o.length))===p)m=ewe(o,m,l);else{if(R9(h,z9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(R9(h,_[v]),h.length===f)return h;m=p=g}}return R9(h,z9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=_5(e),c=t.exec;return c===O9||c===M9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));y7(String.prototype,e,c[0]),y7(M9,i,c[1])}r&&n7(M9[i],`sham`,!0)})(`split`,0,!!A5((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`})),I9),n9({global:!0},{globalThis:u5}),Cg&&(J.fn.attr=Cg);var owe=v7.PROPER,B9=RegExp.prototype,V9=B9.toString,swe=_5(d9),cwe=A5((function(){return V9.call({source:`a`,flags:`b`})!=`/a/b`})),lwe=owe&&V9.name!=`toString`;(cwe||lwe)&&y7(RegExp.prototype,`toString`,(function(){var e=W5(this),t=u9(e.source),n=e.flags;return`/`+t+`/`+u9(n===void 0&&q5(B9,e)&&!(`flags`in B9)?swe(e):n)}),{unsafe:!0});var uwe=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||!V.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()};q.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 V.isElement(n)&&n.type===`pre`?t:null},e}(),dwe={renderStyle:function(e,t){var n=e,r=t,i=``;return ACe.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=J(e);if(!V.isElement(t)||X.getNodeType(t)!==`code`)return t;var i=t,a=r.attr(`class`)||``;return i.language=a.indexOf(`language-`)===0?a.split(`-`)[1]||``:a.toLowerCase(),i},menus:[{key:`codeSelectLang`,factory:function(){return new uwe},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>`}}]},fwe=/"/g,pwe=_5(``.replace);n9({target:`String`,proto:!0,forced:A5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=u9(v5(this)),r=`<a`,(r+=` name="`+pwe(u9(t),fwe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var H9=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(!K.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=s9.languages[t];return n?s9.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+c9(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},U9=function(){return U9=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},U9.apply(this,arguments)},W9=function(){function e(){throw Error(`不能实例化
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=U9(U9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=U9(U9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=U9(U9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=U9(U9({},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=rT(rT({},i),t||{});if(eD[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);eD[n]=r,function(e,t){t!=null&&($E[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type,n=e.renderElem;SA[t||``]=n})(e)},e.registerRenderStyle=function(e){(function(e){xA.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type,n=e.elemToHtml;fD[t||``]=n})(e)},e.registerStyleToHtml=function(e){(function(e){dD.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){ek.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;nk[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){tk.push(e)})(e)},e.registerModule=function(e){G9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function G9(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 W9.registerMenu(e)})),n&&n.forEach((function(e){return W9.registerRenderElem(e)})),r&&W9.registerRenderStyle(r),i&&i.forEach((function(e){return W9.registerElemToHtml(e)})),a&&W9.registerStyleToHtml(a),o&&o.forEach((function(e){return W9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return W9.registerParseElemHtml(e)})),c&&W9.registerParseStyleHtml(c),l&&W9.registerPlugin(l)}hB.forEach((function(e){return G9(e)})),G9(NK),G9(Dge),G9(Fye),G9(wSe),G9(dwe);var K9=`<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>`,q9={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`]}},mwe={hoverbarKeys:U9(U9({},q9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};W9.setEditorConfig(U9(U9({},mwe),{decorate:H9}));var hwe={hoverbarKeys:q9};W9.setSimpleEditorConfig(U9(U9({},hwe),{decorate:H9}));var gwe={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:K9,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`]};W9.setToolbarConfig(gwe);var _we={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:K9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function vwe(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`?W9.simpleEditorConfig:W9.editorConfig,u=U9(U9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return _le({selector:n,config:U9(U9(U9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:W9.plugins})}function ywe(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`?W9.simpleToolbarConfig:W9.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 Nk(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Sle(n,rT({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return oE.set(a,e),sE.set(e,a),a}(n,{selector:t,config:U9(U9({},s),i)})}W9.setSimpleToolbarConfig(_we);var J9=function(){return J9=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},J9.apply(this,arguments)};function Y9(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 bwe(e){var t=e.defaultContent,n=t===void 0?[]:t,r=e.onCreated,i=e.defaultHtml,a=i===void 0?``:i,o=e.value,s=o===void 0?``:o,c=e.onChange,l=e.defaultConfig,u=l===void 0?{}:l,d=e.mode,f=d===void 0?`default`:d,p=e.style,m=p===void 0?{}:p,h=e.className,g=(0,z.useRef)(null),_=Y9((0,z.useState)(null),2),v=_[0],y=_[1],b=Y9((0,z.useState)(``),2),x=b[0],S=b[1],C=function(e){r&&r(e);var t=u.onCreated;t&&t(e)},w=function(e){S(e.getHtml()),c&&c(e);var t=u.onChange;t&&t(e)},T=function(e){var t=u.onDestroyed;y(null),t&&t(e)};return(0,z.useEffect)((function(){if(v!=null&&s!==x)try{v.setHtml(s)}catch(e){console.error(e)}}),[s]),(0,z.useEffect)((function(){g.current!=null&&v==null&&!g.current?.getAttribute(`data-w-e-textarea`)&&y(vwe({selector:g.current,config:J9(J9({},u),{onCreated:C,onChange:w,onDestroyed:T}),content:n,html:a||s,mode:f}))}),[v]),z.createElement(`div`,{style:m,ref:g,className:h})}function X9(e){var t=e.editor,n=e.defaultConfig,r=n===void 0?{}:n,i=e.mode,a=i===void 0?`default`:i,o=e.style,s=o===void 0?{}:o,c=e.className,l=(0,z.useRef)(null);return(0,z.useEffect)((function(){l.current!=null&&t!=null&&ywe({editor:t,selector:l.current,config:r,mode:a})}),[t]),z.createElement(`div`,{style:s,ref:l,className:c})}var xwe=({value:e,onChange:t,disabled:n=!1,height:r=400,placeholder:i,groupId:a=0,maxSize:o=5})=>{let{t:s}=ct(),{token:c}=Et.useToken(),[l,u]=(0,z.useState)(null),d=(0,z.useCallback)(async(e,t)=>{if(!e.type.startsWith(`image/`))yt.error(s(`xin.form.richText.error.notImage`));else if(e.size/1024/1024>o)yt.error(s(`xin.form.richText.error.sizeExceeded`,{maxSize:o}));else try{let n=(await Nt(e,a)).data.data;t(n.preview_url||n.file_url||``,n.file_name||``,``)}catch{yt.error(s(`xin.form.richText.error.uploadFailed`))}},[s,a,o]),f=(0,z.useMemo)(()=>({toolbarKeys:`headerSelect.blockquote.|.bold.underline.italic.through.|.color.bgColor.|.bulletedList.numberedList.todo.|.justifyLeft.justifyCenter.justifyRight.|.insertLink.uploadImage.insertTable.|.undo.redo.fullScreen`.split(`.`)}),[]),p=(0,z.useMemo)(()=>({placeholder:i,MENU_CONF:{uploadImage:{customUpload:d,allowedFileTypes:[`image/*`],maxFileSize:o*1024*1024,base64LimitSize:0}}}),[i,d,o]);return(0,z.useEffect)(()=>{l!=null&&(n?l.disable():l.enable())},[l,n]),(0,z.useEffect)(()=>()=>{l!=null&&(l.destroy(),u(null))},[l]),(0,B.jsxs)(`div`,{style:{border:`1px solid ${c.colorBorder}`,borderRadius:c.borderRadius,overflow:`hidden`},children:[!n&&(0,B.jsx)(X9,{editor:l,defaultConfig:f,mode:`default`,style:{borderBottom:`1px solid ${c.colorBorder}`}}),(0,B.jsx)(bwe,{defaultConfig:p,value:e,onCreated:u,onChange:e=>t?.(e.getHtml()),mode:`default`,style:{height:r,overflowY:`hidden`,background:n?c.colorBgLayout:void 0}})]})};function Z9(e,t,r){return n({url:e,method:`get`,params:t,...r||{}})}function Swe(e,t,r){return n({url:e,method:`post`,data:t,...r||{}})}function Cwe(e,t,r){return n({url:e,method:`put`,data:t,...r||{}})}function wwe(e,t,r){return n({url:e,method:`delete`,params:t,...r||{}})}var Q9=({value:e,onChange:t,mode:n=`single`,placeholder:r,disabled:i=!1,readonly:a=!1,showDept:o=!0,maxTagCount:s=2})=>{let{t:c}=ct(),[l,u]=(0,z.useState)(!1),[d,f]=(0,z.useState)(!1),[p,m]=(0,z.useState)([]),[h,g]=(0,z.useState)([]),[_,v]=(0,z.useState)(!1),[y,b]=(0,z.useState)([]),[x,S]=(0,z.useState)({current:1,pageSize:10,total:0}),[C,w]=(0,z.useState)();(0,z.useEffect)(()=>{if(!e){m([]),g([]);return}let t=Array.isArray(e)?e:[e];typeof t[0]==`object`?(m(t),g(t.map(e=>e.id))):(f(!0),Promise.all(t.map(e=>Z9(`/sys-user/list`,{id:e}))).then(e=>{let t=e.map(e=>e.data.data?.data?.[0]).filter(Boolean);m(t),g(t.map(e=>e.id))}).catch(e=>console.error(`Failed to load users:`,e)).finally(()=>f(!1)))},[e]);let T=(0,z.useMemo)(()=>[{title:c(`system.user.id`),dataIndex:`id`,width:80,align:`center`},{title:c(`system.user.username`),dataIndex:`username`,width:120,align:`center`},{title:c(`system.user.nickname`),dataIndex:`nickname`,width:120,align:`center`},{title:c(`system.user.mobile`),dataIndex:`mobile`,width:130,align:`center`},...o?[{title:c(`system.user.dept`),dataIndex:`dept_name`,width:120,align:`center`,render:e=>e?(0,B.jsx)(st,{color:`volcano`,children:e}):`-`}]:[],{title:c(`system.user.status`),dataIndex:`status`,width:100,align:`center`,render:e=>e===1?(0,B.jsx)(st,{color:`success`,children:c(`system.user.status.1`)}):(0,B.jsx)(st,{color:`error`,children:c(`system.user.status.0`)})}],[c,o]),E=(0,z.useCallback)(()=>{t?.(n===`single`?p[0]?.id||null:p.map(e=>e.id)),u(!1)},[n,p,t]),D=(0,z.useCallback)((e,t)=>{if(n===`single`&&e.length>1){let n=e[e.length-1],r=t.find(e=>e.id===n);g([n]),m([r])}else g(e),m(t)},[n]),O=(0,z.useCallback)(async(e=1,t=10,n)=>{v(!0);try{let r=await Z9(`/system-user/list`,{page:e,pageSize:t,keywordSearch:n});b(r.data.data?.data||[]),S(n=>({...n,current:e,pageSize:t,total:r.data.data?.total||0}))}catch(e){console.error(`Failed to fetch users:`,e),b([])}finally{v(!1)}},[]);(0,z.useEffect)(()=>{l&&O(1,x.pageSize,C?.keywordSearch)},[l]);let k=(0,z.useMemo)(()=>({columns:T,rowKey:`id`,dataSource:y,loading:_,rowSelection:{type:n===`single`?`radio`:`checkbox`,selectedRowKeys:h,onChange:D,preserveSelectedRowKeys:!0},pagination:{...x,showSizeChanger:!0,showQuickJumper:!0,onChange:(e,t)=>{O(e,t,C?.keywordSearch)}},bordered:!0,size:`small`,scroll:{x:800}}),[T,y,_,n,h,D,x,C,O]),A=(0,z.useCallback)(e=>{n===`single`?(!p.find(t=>t.id===e)&&e&&Z9(`/sys-user/list`,{id:e}).then(e=>{let t=e.data.data?.data?.[0];t&&(m([t]),g([t.id]))}).catch(e=>console.error(`Failed to load user:`,e)),t?.(e||null)):t?.(e)},[n,p,t]),j=(0,z.useMemo)(()=>p.map(e=>({label:e.nickname||e.username,value:e.id})),[p]);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(pt,{mode:n===`multiple`?`multiple`:void 0,value:n===`single`?p[0]?.id||void 0:p.map(e=>e.id),onChange:A,placeholder:r||c(`xin.form.userSelector.placeholder`),disabled:i,loading:d,maxTagCount:s,open:!1,onClick:()=>!i&&!a&&u(!0),options:j,style:{width:`100%`},allowClear:!0,onClear:()=>{m([]),g([]),t?.(n===`single`?null:[])}}),(0,B.jsxs)(jt,{title:c(`xin.form.userSelector.modal.title`),open:l,onCancel:()=>u(!1),onOk:E,width:1e3,okText:c(`xin.form.userSelector.modal.okText`),cancelText:c(`xin.form.userSelector.modal.cancelText`),children:[(0,B.jsx)(`div`,{style:{marginBottom:16},children:(0,B.jsx)(ot.Search,{placeholder:c(`system.user.searchPlaceholder`),style:{width:304},onSearch:e=>{w({keywordSearch:e}),O(1,x.pageSize,e)},allowClear:!0})}),(0,B.jsx)(Le,{...k})]})]})},{TextArea:Twe,Password:Ewe}=ot,{RangePicker:Dwe}=oa;function $9(e){let{valueType:t,...n}=e,r;switch(t){case`password`:r=(0,B.jsx)(Ewe,{...n});break;case`textarea`:r=(0,B.jsx)(Twe,{rows:4,...n});break;case`digit`:r=(0,B.jsx)(lt,{style:{width:`100%`},...n});break;case`money`:r=(0,B.jsx)(lt,{style:{width:`100%`},precision:2,prefix:`¥`,...n});break;case`select`:r=(0,B.jsx)(pt,{...n});break;case`treeSelect`:r=(0,B.jsx)(Ta,{...n});break;case`cascader`:r=(0,B.jsx)($i,{...n});break;case`radio`:r=(0,B.jsx)($e.Group,{options:[],optionType:`default`,...n});break;case`radioButton`:r=(0,B.jsx)($e.Group,{options:[],optionType:`button`,...n});break;case`checkbox`:r=(0,B.jsx)(nt.Group,{options:[],...n});break;case`switch`:r=(0,B.jsx)(wt,{...n});break;case`rate`:r=(0,B.jsx)(Dte,{...n});break;case`slider`:r=(0,B.jsx)(Mt,{...n});break;case`date`:r=(0,B.jsx)(oa,{style:{width:`100%`},...n});break;case`dateTime`:r=(0,B.jsx)(oa,{style:{width:`100%`},showTime:!0,...n});break;case`dateRange`:r=(0,B.jsx)(Dwe,{style:{width:`100%`},...n});break;case`time`:r=(0,B.jsx)(ca,{style:{width:`100%`},...n});break;case`timeRange`:r=(0,B.jsx)(ca.RangePicker,{style:{width:`100%`},...n});break;case`week`:r=(0,B.jsx)(oa,{style:{width:`100%`},picker:`week`,...n});break;case`month`:r=(0,B.jsx)(oa,{style:{width:`100%`},picker:`month`,...n});break;case`quarter`:r=(0,B.jsx)(oa,{style:{width:`100%`},picker:`quarter`,...n});break;case`year`:r=(0,B.jsx)(oa,{style:{width:`100%`},picker:`year`,...n});break;case`color`:r=(0,B.jsx)(_t,{...n});break;case`image`:r=(0,B.jsx)(Pt,{...n});break;case`richText`:r=(0,B.jsx)(xwe,{...n});break;case`icon`:r=(0,B.jsx)(Ea,{...n});break;case`user`:r=(0,B.jsx)(Q9,{...n});break;default:r=(0,B.jsx)(ot,{...n})}return r}var Owe=kt();function kwe(e){let{columns:t,layoutType:n=`Form`,grid:r=!1,rowProps:i,colProps:a={span:12},onFinish:o,formRef:s,form:c,modalProps:l,drawerProps:u,trigger:d,submitter:f,...p}=e,{t:m}=ct(),[h]=at.useForm(c),[g,_]=(0,z.useState)(!1),[v,y]=(0,z.useState)(!1);(0,z.useImperativeHandle)(s,()=>({...h,open:x,close:S,isOpen:()=>g,setLoading:e=>y(e)}));let b=(0,z.useCallback)(async e=>{if(o)try{y(!0),await o(e)!==!1&&(n===`ModalForm`||n===`DrawerForm`)&&_(!1)}finally{y(!1)}},[o,n]),x=()=>_(!0),S=()=>_(!1),C=(0,z.useCallback)((e,t)=>{let{dataIndex:n,valueType:i,title:o=``,fieldProps:s={},dependency:c,fieldRender:l,colProps:u={span:12}}=e,d=(0,Owe.pick)(e,`colon.extra.getValueFromEvent.help.hidden.htmlFor.initialValue.name.normalize.noStyle.preserve.tooltip.trigger.required.rules.validateFirst.validateDebounce.validateStatus.hasFeedback.validateTrigger.valuePropName.messageVariables.wrapperCol.layout.label.labelAlign.labelCol`.split(`.`)),f=String(n)||`form-item-${t}`;if(c)return(0,B.jsx)(at.Item,{noStyle:!0,shouldUpdate:!0,children:({getFieldsValue:t})=>{let p=t();if(c.visible&&!c.visible(p))return null;let m=c.disabled?c.disabled(p):!1,g=c.fieldProps?c.fieldProps(p):{},_={...s,...g,disabled:m||s?.disabled},v=(0,B.jsx)($9,{valueType:i,placeholder:o,..._});return r?(0,z.createElement)(rt,{...a,...u,key:f},(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):v},f)):(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):v},f)}});{let t=(0,B.jsx)($9,{valueType:i,placeholder:o,...s});return r?(0,z.createElement)(rt,{...a,...u,key:f},(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):t},f)):(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):t},f)}},[r,c]),w=(0,z.useMemo)(()=>{if(f?.render===!1)return null;let e={submit:(0,B.jsx)(Je,{type:`primary`,loading:v,onClick:()=>h.submit(),...f?.submitButtonProps,children:f?.submitText||m(`xin.form.submit`)}),close:(0,B.jsx)(Je,{loading:v,onClick:S,...f?.closeButtonProps,children:f?.closeText||m(`xin.form.cancel`)}),reset:(0,B.jsx)(Je,{loading:v,onClick:()=>h.resetFields(),...f?.resetButtonProps,children:f?.resetText||m(`xin.form.reset`)})};return typeof f?.render==`function`?f.render(e,s):n===`Form`?(0,B.jsx)(at.Item,{children:(0,B.jsxs)(Re,{children:[e.reset,e.submit]})}):(0,B.jsxs)(Re,{children:[e.reset,e.submit,e.close]})},[v,c,f,m]),T=(0,z.useMemo)(()=>(0,B.jsxs)(at,{...p,form:h,onFinish:b,children:[r?(0,B.jsx)(it,{...i,children:t.map((e,t)=>C(e,t))}):t.map((e,t)=>C(e,t)),n===`Form`&&w]}),[c,b,e,r,i,t,C,n,w]),E=(0,z.useMemo)(()=>d?z.cloneElement(d,{onClick:x}):null,[d,x]);return n===`ModalForm`?(0,B.jsxs)(B.Fragment,{children:[E,(0,B.jsx)(jt,{open:g,onCancel:S,footer:w,...l,children:T})]}):n===`DrawerForm`?(0,B.jsxs)(B.Fragment,{children:[E,(0,B.jsx)(ht,{open:g,onClose:S,footer:w,...u,children:T})]}):T}export{wwe as a,Ea as c,Swe as i,Ta as l,$9 as n,Z9 as o,Q9 as r,Cwe as s,kwe as t,oa as u};