function z3(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const _e={},wc=[],Do=()=>{},XI=()=>!1,sg=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),H3=t=>t.startsWith("onUpdate:"),Pr=Object.assign,$3=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},bG=Object.prototype.hasOwnProperty,me=(t,e)=>bG.call(t,e),Bt=Array.isArray,Ec=t=>lg(t)==="[object Map]",ZI=t=>lg(t)==="[object Set]",wG=t=>lg(t)==="[object RegExp]",Nt=t=>typeof t=="function",ze=t=>typeof t=="string",ra=t=>typeof t=="symbol",Be=t=>t!==null&&typeof t=="object",V3=t=>(Be(t)||Nt(t))&&Nt(t.then)&&Nt(t.catch),JI=Object.prototype.toString,lg=t=>JI.call(t),EG=t=>lg(t).slice(8,-1),QI=t=>lg(t)==="[object Object]",M1=t=>ze(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,xc=z3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z1=t=>{const e=Object.create(null);return(r=>e[r]||(e[r]=t(r)))},xG=/-\w/g,io=z1(t=>t.replace(xG,e=>e.slice(1).toUpperCase())),CG=/\B([A-Z])/g,Ou=z1(t=>t.replace(CG,"-$1").toLowerCase()),H1=z1(t=>t.charAt(0).toUpperCase()+t.slice(1)),a2=z1(t=>t?`on${H1(t)}`:""),Wa=(t,e)=>!Object.is(t,e),Cc=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},tL=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},U3=t=>{const e=parseFloat(t);return isNaN(e)?t:e},eL=t=>{const e=ze(t)?Number(t):NaN;return isNaN(e)?t:e};let yO;const $1=()=>yO||(yO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function V1(t){if(Bt(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],o=ze(n)?OG(n):V1(n);if(o)for(const i in o)e[i]=o[i]}return e}else if(ze(t)||Be(t))return t}const SG=/;(?![^(]*\))/g,DG=/:([^]+)/,AG=/\/\*[^]*?\*\//g;function OG(t){const e={};return t.replace(AG,"").split(SG).forEach(r=>{if(r){const n=r.split(DG);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function U1(t){let e="";if(ze(t))e=t;else if(Bt(t))for(let r=0;r<t.length;r++){const n=U1(t[r]);n&&(e+=n+" ")}else if(Be(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function d6t(t){if(!t)return null;let{class:e,style:r}=t;return e&&!ze(e)&&(t.class=U1(e)),r&&(t.style=V1(r)),t}const _G="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",kG=z3(_G);function rL(t){return!!t||t===""}const nL=t=>!!(t&&t.__v_isRef===!0),TG=t=>ze(t)?t:t==null?"":Bt(t)||Be(t)&&(t.toString===JI||!Nt(t.toString))?nL(t)?TG(t.value):JSON.stringify(t,oL,2):String(t),oL=(t,e)=>nL(e)?oL(t,e.value):Ec(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,o],i)=>(r[u2(n,i)+" =>"]=o,r),{})}:ZI(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>u2(r))}:ra(e)?u2(e):Be(e)&&!Bt(e)&&!QI(e)?String(e):e,u2=(t,e="")=>{var r;return ra(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};function BG(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}let Gr;class iL{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Gr,!e&&Gr&&(this.index=(Gr.scopes||(Gr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){const r=Gr;try{return Gr=this,e()}finally{Gr=r}}}on(){++this._on===1&&(this.prevScope=Gr,Gr=this)}off(){this._on>0&&--this._on===0&&(Gr=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function p6t(t){return new iL(t)}function FG(){return Gr}function h6t(t,e=!1){Gr&&Gr.cleanups.push(t)}let Fe;const s2=new WeakSet;class aL{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Gr&&Gr.active&&Gr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,s2.has(this)&&(s2.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||sL(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,bO(this),lL(this);const e=Fe,r=Ao;Fe=this,Ao=!0;try{return this.fn()}finally{cL(this),Fe=e,Ao=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)q3(e);this.deps=this.depsTail=void 0,bO(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?s2.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hx(this)&&this.run()}get dirty(){return Hx(this)}}let uL=0,kp,Tp;function sL(t,e=!1){if(t.flags|=8,e){t.next=Tp,Tp=t;return}t.next=kp,kp=t}function W3(){uL++}function G3(){if(--uL>0)return;if(Tp){let e=Tp;for(Tp=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;kp;){let e=kp;for(kp=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function lL(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function cL(t){let e,r=t.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),q3(n),PG(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}t.deps=e,t.depsTail=r}function Hx(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(fL(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function fL(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ih)||(t.globalVersion=ih,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Hx(t))))return;t.flags|=2;const e=t.dep,r=Fe,n=Ao;Fe=t,Ao=!0;try{lL(t);const o=t.fn(t._value);(e.version===0||Wa(o,t._value))&&(t.flags|=128,t._value=o,e.version++)}catch(o){throw e.version++,o}finally{Fe=r,Ao=n,cL(t),t.flags&=-3}}function q3(t,e=!1){const{dep:r,prevSub:n,nextSub:o}=t;if(n&&(n.nextSub=o,t.prevSub=void 0),o&&(o.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)q3(i,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function PG(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let Ao=!0;const dL=[];function qi(){dL.push(Ao),Ao=!1}function Ki(){const t=dL.pop();Ao=t===void 0?!0:t}function bO(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=Fe;Fe=void 0;try{e()}finally{Fe=r}}}let ih=0;class jG{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class W1{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Fe||!Ao||Fe===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Fe)r=this.activeLink=new jG(Fe,this),Fe.deps?(r.prevDep=Fe.depsTail,Fe.depsTail.nextDep=r,Fe.depsTail=r):Fe.deps=Fe.depsTail=r,pL(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Fe.depsTail,r.nextDep=void 0,Fe.depsTail.nextDep=r,Fe.depsTail=r,Fe.deps===r&&(Fe.deps=n)}return r}trigger(e){this.version++,ih++,this.notify(e)}notify(e){W3();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{G3()}}}function pL(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)pL(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const pm=new WeakMap,ys=Symbol(""),$x=Symbol(""),ah=Symbol("");function Yr(t,e,r){if(Ao&&Fe){let n=pm.get(t);n||pm.set(t,n=new Map);let o=n.get(r);o||(n.set(r,o=new W1),o.map=n,o.key=r),o.track()}}function Ni(t,e,r,n,o,i){const a=pm.get(t);if(!a){ih++;return}const u=s=>{s&&s.trigger()};if(W3(),e==="clear")a.forEach(u);else{const s=Bt(t),l=s&&M1(r);if(s&&r==="length"){const c=Number(n);a.forEach((f,d)=>{(d==="length"||d===ah||!ra(d)&&d>=c)&&u(f)})}else switch((r!==void 0||a.has(void 0))&&u(a.get(r)),l&&u(a.get(ah)),e){case"add":s?l&&u(a.get("length")):(u(a.get(ys)),Ec(t)&&u(a.get($x)));break;case"delete":s||(u(a.get(ys)),Ec(t)&&u(a.get($x)));break;case"set":Ec(t)&&u(a.get(ys));break}}G3()}function NG(t,e){const r=pm.get(t);return r&&r.get(e)}function Dl(t){const e=fe(t);return e===t?e:(Yr(e,"iterate",ah),Pn(t)?e:e.map(Po))}function G1(t){return Yr(t=fe(t),"iterate",ah),t}function Ba(t,e){return Yi(t)?Ga(t)?Vc(Po(e)):Vc(e):Po(e)}const IG={__proto__:null,[Symbol.iterator](){return l2(this,Symbol.iterator,t=>Ba(this,t))},concat(...t){return Dl(this).concat(...t.map(e=>Bt(e)?Dl(e):e))},entries(){return l2(this,"entries",t=>(t[1]=Ba(this,t[1]),t))},every(t,e){return Si(this,"every",t,e,void 0,arguments)},filter(t,e){return Si(this,"filter",t,e,r=>r.map(n=>Ba(this,n)),arguments)},find(t,e){return Si(this,"find",t,e,r=>Ba(this,r),arguments)},findIndex(t,e){return Si(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Si(this,"findLast",t,e,r=>Ba(this,r),arguments)},findLastIndex(t,e){return Si(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Si(this,"forEach",t,e,void 0,arguments)},includes(...t){return c2(this,"includes",t)},indexOf(...t){return c2(this,"indexOf",t)},join(t){return Dl(this).join(t)},lastIndexOf(...t){return c2(this,"lastIndexOf",t)},map(t,e){return Si(this,"map",t,e,void 0,arguments)},pop(){return qf(this,"pop")},push(...t){return qf(this,"push",t)},reduce(t,...e){return wO(this,"reduce",t,e)},reduceRight(t,...e){return wO(this,"reduceRight",t,e)},shift(){return qf(this,"shift")},some(t,e){return Si(this,"some",t,e,void 0,arguments)},splice(...t){return qf(this,"splice",t)},toReversed(){return Dl(this).toReversed()},toSorted(t){return Dl(this).toSorted(t)},toSpliced(...t){return Dl(this).toSpliced(...t)},unshift(...t){return qf(this,"unshift",t)},values(){return l2(this,"values",t=>Ba(this,t))}};function l2(t,e,r){const n=G1(t),o=n[e]();return n!==t&&!Pn(t)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.done||(i.value=r(i.value)),i}),o}const LG=Array.prototype;function Si(t,e,r,n,o,i){const a=G1(t),u=a!==t&&!Pn(t),s=a[e];if(s!==LG[e]){const f=s.apply(t,i);return u?Po(f):f}let l=r;a!==t&&(u?l=function(f,d){return r.call(this,Ba(t,f),d,t)}:r.length>2&&(l=function(f,d){return r.call(this,f,d,t)}));const c=s.call(a,l,n);return u&&o?o(c):c}function wO(t,e,r,n){const o=G1(t);let i=r;return o!==t&&(Pn(t)?r.length>3&&(i=function(a,u,s){return r.call(this,a,u,s,t)}):i=function(a,u,s){return r.call(this,a,Ba(t,u),s,t)}),o[e](i,...n)}function c2(t,e,r){const n=fe(t);Yr(n,"iterate",ah);const o=n[e](...r);return(o===-1||o===!1)&&q1(r[0])?(r[0]=fe(r[0]),n[e](...r)):o}function qf(t,e,r=[]){qi(),W3();const n=fe(t)[e].apply(t,r);return G3(),Ki(),n}const RG=z3("__proto__,__v_isRef,__isVue"),hL=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ra));function MG(t){ra(t)||(t=String(t));const e=fe(this);return Yr(e,"has",t),e.hasOwnProperty(t)}class gL{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?YG:bL:i?yL:mL).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=Bt(e);if(!o){let s;if(a&&(s=IG[r]))return s;if(r==="hasOwnProperty")return MG}const u=Reflect.get(e,r,Ar(e)?e:n);if((ra(r)?hL.has(r):RG(r))||(o||Yr(e,"get",r),i))return u;if(Ar(u)){const s=a&&M1(r)?u:u.value;return o&&Be(s)?Ux(s):s}return Be(u)?o?Ux(u):Y3(u):u}}class vL extends gL{constructor(e=!1){super(!1,e)}set(e,r,n,o){let i=e[r];const a=Bt(e)&&M1(r);if(!this._isShallow){const l=Yi(i);if(!Pn(n)&&!Yi(n)&&(i=fe(i),n=fe(n)),!a&&Ar(i)&&!Ar(n))return l||(i.value=n),!0}const u=a?Number(r)<e.length:me(e,r),s=Reflect.set(e,r,n,Ar(e)?e:o);return e===fe(o)&&(u?Wa(n,i)&&Ni(e,"set",r,n):Ni(e,"add",r,n)),s}deleteProperty(e,r){const n=me(e,r);e[r];const o=Reflect.deleteProperty(e,r);return o&&n&&Ni(e,"delete",r,void 0),o}has(e,r){const n=Reflect.has(e,r);return(!ra(r)||!hL.has(r))&&Yr(e,"has",r),n}ownKeys(e){return Yr(e,"iterate",Bt(e)?"length":ys),Reflect.ownKeys(e)}}class zG extends gL{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const HG=new vL,$G=new zG,VG=new vL(!0);const Vx=t=>t,pv=t=>Reflect.getPrototypeOf(t);function UG(t,e,r){return function(...n){const o=this.__v_raw,i=fe(o),a=Ec(i),u=t==="entries"||t===Symbol.iterator&&a,s=t==="keys"&&a,l=o[t](...n),c=r?Vx:e?Vc:Po;return!e&&Yr(i,"iterate",s?$x:ys),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:u?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function hv(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function WG(t,e){const r={get(o){const i=this.__v_raw,a=fe(i),u=fe(o);t||(Wa(o,u)&&Yr(a,"get",o),Yr(a,"get",u));const{has:s}=pv(a),l=e?Vx:t?Vc:Po;if(s.call(a,o))return l(i.get(o));if(s.call(a,u))return l(i.get(u));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!t&&Yr(fe(o),"iterate",ys),o.size},has(o){const i=this.__v_raw,a=fe(i),u=fe(o);return t||(Wa(o,u)&&Yr(a,"has",o),Yr(a,"has",u)),o===u?i.has(o):i.has(o)||i.has(u)},forEach(o,i){const a=this,u=a.__v_raw,s=fe(u),l=e?Vx:t?Vc:Po;return!t&&Yr(s,"iterate",ys),u.forEach((c,f)=>o.call(i,l(c),l(f),a))}};return Pr(r,t?{add:hv("add"),set:hv("set"),delete:hv("delete"),clear:hv("clear")}:{add(o){!e&&!Pn(o)&&!Yi(o)&&(o=fe(o));const i=fe(this);return pv(i).has.call(i,o)||(i.add(o),Ni(i,"add",o,o)),this},set(o,i){!e&&!Pn(i)&&!Yi(i)&&(i=fe(i));const a=fe(this),{has:u,get:s}=pv(a);let l=u.call(a,o);l||(o=fe(o),l=u.call(a,o));const c=s.call(a,o);return a.set(o,i),l?Wa(i,c)&&Ni(a,"set",o,i):Ni(a,"add",o,i),this},delete(o){const i=fe(this),{has:a,get:u}=pv(i);let s=a.call(i,o);s||(o=fe(o),s=a.call(i,o)),u&&u.call(i,o);const l=i.delete(o);return s&&Ni(i,"delete",o,void 0),l},clear(){const o=fe(this),i=o.size!==0,a=o.clear();return i&&Ni(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=UG(o,t,e)}),r}function K3(t,e){const r=WG(t,e);return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(me(r,o)&&o in n?r:n,o,i)}const GG={get:K3(!1,!1)},qG={get:K3(!1,!0)},KG={get:K3(!0,!1)};const mL=new WeakMap,yL=new WeakMap,bL=new WeakMap,YG=new WeakMap;function XG(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZG(t){return t.__v_skip||!Object.isExtensible(t)?0:XG(EG(t))}function Y3(t){return Yi(t)?t:X3(t,!1,HG,GG,mL)}function JG(t){return X3(t,!1,VG,qG,yL)}function Ux(t){return X3(t,!0,$G,KG,bL)}function X3(t,e,r,n,o){if(!Be(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=ZG(t);if(i===0)return t;const a=o.get(t);if(a)return a;const u=new Proxy(t,i===2?n:r);return o.set(t,u),u}function Ga(t){return Yi(t)?Ga(t.__v_raw):!!(t&&t.__v_isReactive)}function Yi(t){return!!(t&&t.__v_isReadonly)}function Pn(t){return!!(t&&t.__v_isShallow)}function q1(t){return t?!!t.__v_raw:!1}function fe(t){const e=t&&t.__v_raw;return e?fe(e):t}function QG(t){return!me(t,"__v_skip")&&Object.isExtensible(t)&&tL(t,"__v_skip",!0),t}const Po=t=>Be(t)?Y3(t):t,Vc=t=>Be(t)?Ux(t):t;function Ar(t){return t?t.__v_isRef===!0:!1}function Sc(t){return wL(t,!1)}function tq(t){return wL(t,!0)}function wL(t,e){return Ar(t)?t:new eq(t,e)}class eq{constructor(e,r){this.dep=new W1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:fe(e),this._value=r?e:Po(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||Pn(e)||Yi(e);e=n?e:fe(e),Wa(e,r)&&(this._rawValue=e,this._value=n?e:Po(e),this.dep.trigger())}}function Z3(t){return Ar(t)?t.value:t}function g6t(t){return Nt(t)?t():Z3(t)}const rq={get:(t,e,r)=>e==="__v_raw"?t:Z3(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const o=t[e];return Ar(o)&&!Ar(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function EL(t){return Ga(t)?t:new Proxy(t,rq)}class nq{constructor(e){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new W1,{get:n,set:o}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(e){this._set(e)}}function v6t(t){return new nq(t)}function m6t(t){const e=Bt(t)?new Array(t.length):{};for(const r in t)e[r]=xL(t,r);return e}class oq{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=fe(e);let o=!0,i=e;if(!Bt(e)||!M1(String(r)))do o=!q1(i)||Pn(i);while(o&&(i=i.__v_raw));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=Z3(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Ar(this._raw[this._key])){const r=this._object[this._key];if(Ar(r)){r.value=e;return}}this._object[this._key]=e}get dep(){return NG(this._raw,this._key)}}class iq{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function y6t(t,e,r){return Ar(t)?t:Nt(t)?new iq(t):Be(t)&&arguments.length>1?xL(t,e,r):Sc(t)}function xL(t,e,r){return new oq(t,e,r)}class aq{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new W1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ih-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return sL(this,!0),!0}get value(){const e=this.dep.track();return fL(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function uq(t,e,r=!1){let n,o;return Nt(t)?n=t:(n=t.get,o=t.set),new aq(n,o,r)}const gv={},hm=new WeakMap;let es;function sq(t,e=!1,r=es){if(r){let n=hm.get(r);n||hm.set(r,n=[]),n.push(t)}}function lq(t,e,r=_e){const{immediate:n,deep:o,once:i,scheduler:a,augmentJob:u,call:s}=r,l=w=>o?w:Pn(w)||o===!1||o===0?Ii(w,1):Ii(w);let c,f,d,p,m=!1,v=!1;if(Ar(t)?(f=()=>t.value,m=Pn(t)):Ga(t)?(f=()=>l(t),m=!0):Bt(t)?(v=!0,m=t.some(w=>Ga(w)||Pn(w)),f=()=>t.map(w=>{if(Ar(w))return w.value;if(Ga(w))return l(w);if(Nt(w))return s?s(w,2):w()})):Nt(t)?e?f=s?()=>s(t,2):t:f=()=>{if(d){qi();try{d()}finally{Ki()}}const w=es;es=c;try{return s?s(t,3,[p]):t(p)}finally{es=w}}:f=Do,e&&o){const w=f,E=o===!0?1/0:o;f=()=>Ii(w(),E)}const g=FG(),y=()=>{c.stop(),g&&g.active&&$3(g.effects,c)};if(i&&e){const w=e;e=(...E)=>{w(...E),y()}}let h=v?new Array(t.length).fill(gv):gv;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(e){const E=c.run();if(o||m||(v?E.some((S,x)=>Wa(S,h[x])):Wa(E,h))){d&&d();const S=es;es=c;try{const x=[E,h===gv?void 0:v&&h[0]===gv?[]:h,p];h=E,s?s(e,3,x):e(...x)}finally{es=S}}}else c.run()};return u&&u(b),c=new aL(f),c.scheduler=a?()=>a(b,!1):b,p=w=>sq(w,!1,c),d=c.onStop=()=>{const w=hm.get(c);if(w){if(s)s(w,4);else for(const E of w)E();hm.delete(c)}},e?n?b(!0):h=c.run():a?a(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Ii(t,e=1/0,r){if(e<=0||!Be(t)||t.__v_skip||(r=r||new Map,(r.get(t)||0)>=e))return t;if(r.set(t,e),e--,Ar(t))Ii(t.value,e,r);else if(Bt(t))for(let n=0;n<t.length;n++)Ii(t[n],e,r);else if(ZI(t)||Ec(t))t.forEach(n=>{Ii(n,e,r)});else if(QI(t)){for(const n in t)Ii(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&Ii(t[n],e,r)}return t}function cg(t,e,r,n){try{return n?t(...n):t()}catch(o){Cf(o,e,r)}}function jo(t,e,r,n){if(Nt(t)){const o=cg(t,e,r,n);return o&&V3(o)&&o.catch(i=>{Cf(i,e,r)}),o}if(Bt(t)){const o=[];for(let i=0;i<t.length;i++)o.push(jo(t[i],e,r,n));return o}}function Cf(t,e,r,n=!0){const o=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=e&&e.appContext.config||_e;if(e){let u=e.parent;const s=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${r}`;for(;u;){const c=u.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,s,l)===!1)return}u=u.parent}if(i){qi(),cg(i,null,10,[t,s,l]),Ki();return}}cq(t,r,o,n,a)}function cq(t,e,r,n=!0,o=!1){if(o)throw t;console.error(t)}const un=[];let Uo=-1;const Dc=[];let Fa=null,ic=0;const CL=Promise.resolve();let gm=null;function fq(t){const e=gm||CL;return t?e.then(this?t.bind(this):t):e}function dq(t){let e=Uo+1,r=un.length;for(;e<r;){const n=e+r>>>1,o=un[n],i=uh(o);i<t||i===t&&o.flags&2?e=n+1:r=n}return e}function J3(t){if(!(t.flags&1)){const e=uh(t),r=un[un.length-1];!r||!(t.flags&2)&&e>=uh(r)?un.push(t):un.splice(dq(e),0,t),t.flags|=1,SL()}}function SL(){gm||(gm=CL.then(DL))}function vm(t){Bt(t)?Dc.push(...t):Fa&&t.id===-1?Fa.splice(ic+1,0,t):t.flags&1||(Dc.push(t),t.flags|=1),SL()}function EO(t,e,r=Uo+1){for(;r<un.length;r++){const n=un[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;un.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function mm(t){if(Dc.length){const e=[...new Set(Dc)].sort((r,n)=>uh(r)-uh(n));if(Dc.length=0,Fa){Fa.push(...e);return}for(Fa=e,ic=0;ic<Fa.length;ic++){const r=Fa[ic];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Fa=null,ic=0}}const uh=t=>t.id==null?t.flags&2?-1:1/0:t.id;function DL(t){try{for(Uo=0;Uo<un.length;Uo++){const e=un[Uo];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),cg(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Uo<un.length;Uo++){const e=un[Uo];e&&(e.flags&=-2)}Uo=-1,un.length=0,mm(),gm=null,(un.length||Dc.length)&&DL()}}let Mr=null,AL=null;function ym(t){const e=Mr;return Mr=t,AL=t&&t.type.__scopeId||null,e}function pq(t,e=Mr,r){if(!e||t._n)return t;const n=(...o)=>{n._d&&Cm(-1);const i=ym(e);let a;try{a=t(...o)}finally{ym(i),n._d&&Cm(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function b6t(t,e){if(Mr===null)return t;const r=Z1(Mr),n=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[i,a,u,s=_e]=e[o];i&&(Nt(i)&&(i={mounted:i,updated:i}),i.deep&&Ii(a),n.push({dir:i,instance:r,value:a,oldValue:void 0,arg:u,modifiers:s}))}return t}function Go(t,e,r,n){const o=t.dirs,i=e&&e.dirs;for(let a=0;a<o.length;a++){const u=o[a];i&&(u.oldValue=i[a].value);let s=u.dir[n];s&&(qi(),jo(s,r,8,[t.el,u,t,e]),Ki())}}const OL=Symbol("_vte"),_L=t=>t.__isTeleport,Bp=t=>t&&(t.disabled||t.disabled===""),xO=t=>t&&(t.defer||t.defer===""),CO=t=>typeof SVGElement<"u"&&t instanceof SVGElement,SO=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Wx=(t,e)=>{const r=t&&t.to;return ze(r)?e?e(r):null:r},kL={name:"Teleport",__isTeleport:!0,process(t,e,r,n,o,i,a,u,s,l){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:m,createText:v,createComment:g}}=l,y=Bp(e.props);let{shapeFlag:h,children:b,dynamicChildren:w}=e;if(t==null){const E=e.el=v(""),S=e.anchor=v("");p(E,r,n),p(S,r,n);const x=(A,P)=>{h&16&&c(b,A,P,o,i,a,u,s)},D=()=>{const A=e.target=Wx(e.props,m),P=TL(A,e,v,p);A&&(a!=="svg"&&CO(A)?a="svg":a!=="mathml"&&SO(A)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(A),y||(x(A,P),k0(e,!1)))};y&&(x(r,S),k0(e,!0)),xO(e.props)?(e.el.__isMounted=!1,dr(()=>{D(),delete e.el.__isMounted},i)):D()}else{if(xO(e.props)&&t.el.__isMounted===!1){dr(()=>{kL.process(t,e,r,n,o,i,a,u,s,l)},i);return}e.el=t.el,e.targetStart=t.targetStart;const E=e.anchor=t.anchor,S=e.target=t.target,x=e.targetAnchor=t.targetAnchor,D=Bp(t.props),A=D?r:S,P=D?E:x;if(a==="svg"||CO(S)?a="svg":(a==="mathml"||SO(S))&&(a="mathml"),w?(d(t.dynamicChildren,w,A,o,i,a,u),iD(t,e,!0)):s||f(t,e,A,P,o,i,a,u,!1),y)D?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):vv(e,r,E,l,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const M=e.target=Wx(e.props,m);M&&vv(e,M,null,l,0)}else D&&vv(e,S,x,l,1);k0(e,y)}},remove(t,e,r,{um:n,o:{remove:o}},i){const{shapeFlag:a,children:u,anchor:s,targetStart:l,targetAnchor:c,target:f,props:d}=t;if(f&&(o(l),o(c)),i&&o(s),a&16){const p=i||!Bp(d);for(let m=0;m<u.length;m++){const v=u[m];n(v,e,r,p,!!v.dynamicChildren)}}},move:vv,hydrate:hq};function vv(t,e,r,{o:{insert:n},m:o},i=2){i===0&&n(t.targetAnchor,e,r);const{el:a,anchor:u,shapeFlag:s,children:l,props:c}=t,f=i===2;if(f&&n(a,e,r),(!f||Bp(c))&&s&16)for(let d=0;d<l.length;d++)o(l[d],e,r,2);f&&n(u,e,r)}function hq(t,e,r,n,o,i,{o:{nextSibling:a,parentNode:u,querySelector:s,insert:l,createText:c}},f){function d(v,g,y,h){g.anchor=f(a(v),g,u(v),r,n,o,i),g.targetStart=y,g.targetAnchor=h}const p=e.target=Wx(e.props,s),m=Bp(e.props);if(p){const v=p._lpa||p.firstChild;if(e.shapeFlag&16)if(m)d(t,e,v,v&&a(v));else{e.anchor=a(t);let g=v;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")e.targetStart=g;else if(g.data==="teleport anchor"){e.targetAnchor=g,p._lpa=e.targetAnchor&&a(e.targetAnchor);break}}g=a(g)}e.targetAnchor||TL(p,e,c,l),f(v&&a(v),e,p,r,n,o,i)}k0(e,m)}else m&&e.shapeFlag&16&&d(t,e,t,a(t));return e.anchor&&a(e.anchor)}const w6t=kL;function k0(t,e){const r=t.ctx;if(r&&r.ut){let n,o;for(e?(n=t.el,o=t.anchor):(n=t.targetStart,o=t.targetAnchor);n&&n!==o;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function TL(t,e,r,n){const o=e.targetStart=r(""),i=e.targetAnchor=r("");return o[OL]=i,t&&(n(o,t),n(i,t)),i}const Fi=Symbol("_leaveCb"),mv=Symbol("_enterCb");function gq(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return dg(()=>{t.isMounted=!0}),tD(()=>{t.isUnmounting=!0}),t}const qn=[Function,Array],BL={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},FL=t=>{const e=t.subTree;return e.component?FL(e.component):e},vq={name:"BaseTransition",props:BL,setup(t,{slots:e}){const r=ll(),n=gq();return()=>{const o=e.default&&NL(e.default(),!0);if(!o||!o.length)return;const i=PL(o),a=fe(t),{mode:u}=a;if(n.isLeaving)return f2(i);const s=DO(i);if(!s)return f2(i);let l=Gx(s,a,n,r,f=>l=f);s.type!==gr&&Uc(s,l);let c=r.subTree&&DO(r.subTree);if(c&&c.type!==gr&&!bo(c,s)&&FL(r).type!==gr){let f=Gx(c,a,n,r);if(Uc(c,f),u==="out-in"&&s.type!==gr)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,c=void 0},f2(i);u==="in-out"&&s.type!==gr?f.delayLeave=(d,p,m)=>{const v=jL(n,c);v[String(c.key)]=c,d[Fi]=()=>{p(),d[Fi]=void 0,delete l.delayedLeave,c=void 0},l.delayedLeave=()=>{m(),delete l.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function PL(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==gr){e=r;break}}return e}const mq=vq;function jL(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function Gx(t,e,r,n,o){const{appear:i,mode:a,persisted:u=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:g,onAppear:y,onAfterAppear:h,onAppearCancelled:b}=e,w=String(t.key),E=jL(r,t),S=(A,P)=>{A&&jo(A,n,9,P)},x=(A,P)=>{const M=P[1];S(A,P),Bt(A)?A.every(F=>F.length<=1)&&M():A.length<=1&&M()},D={mode:a,persisted:u,beforeEnter(A){let P=s;if(!r.isMounted)if(i)P=g||s;else return;A[Fi]&&A[Fi](!0);const M=E[w];M&&bo(t,M)&&M.el[Fi]&&M.el[Fi](),S(P,[A])},enter(A){let P=l,M=c,F=f;if(!r.isMounted)if(i)P=y||l,M=h||c,F=b||f;else return;let V=!1;const U=A[mv]=W=>{V||(V=!0,W?S(F,[A]):S(M,[A]),D.delayedLeave&&D.delayedLeave(),A[mv]=void 0)};P?x(P,[A,U]):U()},leave(A,P){const M=String(t.key);if(A[mv]&&A[mv](!0),r.isUnmounting)return P();S(d,[A]);let F=!1;const V=A[Fi]=U=>{F||(F=!0,P(),U?S(v,[A]):S(m,[A]),A[Fi]=void 0,E[M]===t&&delete E[M])};E[M]=t,p?x(p,[A,V]):V()},clone(A){const P=Gx(A,e,r,n,o);return o&&o(P),P}};return D}function f2(t){if(fg(t))return t=Xi(t),t.children=null,t}function DO(t){if(!fg(t))return _L(t.type)&&t.children?PL(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&Nt(r.default))return r.default()}}function Uc(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Uc(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function NL(t,e=!1,r){let n=[],o=0;for(let i=0;i<t.length;i++){let a=t[i];const u=r==null?a.key:String(r)+String(a.key!=null?a.key:i);a.type===Xr?(a.patchFlag&128&&o++,n=n.concat(NL(a.children,e,u))):(e||a.type!==gr)&&n.push(u!=null?Xi(a,{key:u}):a)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function IL(t,e){return Nt(t)?Pr({name:t.name},e,{setup:t}):t}function Q3(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const bm=new WeakMap;function Ac(t,e,r,n,o=!1){if(Bt(t)){t.forEach((m,v)=>Ac(m,e&&(Bt(e)?e[v]:e),r,n,o));return}if(qa(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ac(t,e,r,n.component.subTree);return}const i=n.shapeFlag&4?Z1(n.component):n.el,a=o?null:i,{i:u,r:s}=t,l=e&&e.r,c=u.refs===_e?u.refs={}:u.refs,f=u.setupState,d=fe(f),p=f===_e?XI:m=>me(d,m);if(l!=null&&l!==s){if(AO(e),ze(l))c[l]=null,p(l)&&(f[l]=null);else if(Ar(l)){l.value=null;const m=e;m.k&&(c[m.k]=null)}}if(Nt(s))cg(s,u,12,[a,c]);else{const m=ze(s),v=Ar(s);if(m||v){const g=()=>{if(t.f){const y=m?p(s)?f[s]:c[s]:s.value;if(o)Bt(y)&&$3(y,i);else if(Bt(y))y.includes(i)||y.push(i);else if(m)c[s]=[i],p(s)&&(f[s]=c[s]);else{const h=[i];s.value=h,t.k&&(c[t.k]=h)}}else m?(c[s]=a,p(s)&&(f[s]=a)):v&&(s.value=a,t.k&&(c[t.k]=a))};if(a){const y=()=>{g(),bm.delete(t)};y.id=-1,bm.set(t,y),dr(y,r)}else AO(t),g()}}}function AO(t){const e=bm.get(t);e&&(e.flags|=8,bm.delete(t))}let OO=!1;const Al=()=>{OO||(console.error("Hydration completed but contains mismatches."),OO=!0)},yq=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",bq=t=>t.namespaceURI.includes("MathML"),yv=t=>{if(t.nodeType===1){if(yq(t))return"svg";if(bq(t))return"mathml"}},pc=t=>t.nodeType===8;function wq(t){const{mt:e,p:r,o:{patchProp:n,createText:o,nextSibling:i,parentNode:a,remove:u,insert:s,createComment:l}}=t,c=(b,w)=>{if(!w.hasChildNodes()){r(null,b,w),mm(),w._vnode=b;return}f(w.firstChild,b,null,null,null),mm(),w._vnode=b},f=(b,w,E,S,x,D=!1)=>{D=D||!!w.dynamicChildren;const A=pc(b)&&b.data==="[",P=()=>v(b,w,E,S,x,A),{type:M,ref:F,shapeFlag:V,patchFlag:U}=w;let W=b.nodeType;w.el=b,U===-2&&(D=!1,w.dynamicChildren=null);let z=null;switch(M){case ws:W!==3?w.children===""?(s(w.el=o(""),a(b),b),z=b):z=P():(b.data!==w.children&&(Al(),b.data=w.children),z=i(b));break;case gr:h(b)?(z=i(b),y(w.el=b.content.firstChild,b,E)):W!==8||A?z=P():z=i(b);break;case kc:if(A&&(b=i(b),W=b.nodeType),W===1||W===3){z=b;const tt=!w.children.length;for(let J=0;J<w.staticCount;J++)tt&&(w.children+=z.nodeType===1?z.outerHTML:z.data),J===w.staticCount-1&&(w.anchor=z),z=i(z);return A?i(z):z}else P();break;case Xr:A?z=m(b,w,E,S,x,D):z=P();break;default:if(V&1)(W!==1||w.type.toLowerCase()!==b.tagName.toLowerCase())&&!h(b)?z=P():z=d(b,w,E,S,x,D);else if(V&6){w.slotScopeIds=x;const tt=a(b);if(A?z=g(b):pc(b)&&b.data==="teleport start"?z=g(b,b.data,"teleport end"):z=i(b),e(w,tt,null,E,S,yv(tt),D),qa(w)&&!w.type.__asyncResolved){let J;A?(J=or(Xr),J.anchor=z?z.previousSibling:tt.lastChild):J=b.nodeType===3?pR(""):or("div"),J.el=b,w.component.subTree=J}}else V&64?W!==8?z=P():z=w.type.hydrate(b,w,E,S,x,D,t,p):V&128&&(z=w.type.hydrate(b,w,E,S,yv(a(b)),x,D,t,f))}return F!=null&&Ac(F,null,S,w),z},d=(b,w,E,S,x,D)=>{D=D||!!w.dynamicChildren;const{type:A,props:P,patchFlag:M,shapeFlag:F,dirs:V,transition:U}=w,W=A==="input"||A==="option";if(W||M!==-1){V&&Go(w,null,E,"created");let z=!1;if(h(b)){z=iR(null,U)&&E&&E.vnode.props&&E.vnode.props.appear;const J=b.content.firstChild;if(z){const st=J.getAttribute("class");st&&(J.$cls=st),U.beforeEnter(J)}y(J,b,E),w.el=b=J}if(F&16&&!(P&&(P.innerHTML||P.textContent))){let J=p(b.firstChild,w,b,E,S,x,D);for(;J;){bv(b,1)||Al();const st=J;J=J.nextSibling,u(st)}}else if(F&8){let J=w.children;J[0]===`
`&&(b.tagName==="PRE"||b.tagName==="TEXTAREA")&&(J=J.slice(1));const{textContent:st}=b;st!==J&&st!==J.replace(/\r\n|\r/g,`
`)&&(bv(b,0)||Al(),b.textContent=w.children)}if(P){if(W||!D||M&48){const J=b.tagName.includes("-");for(const st in P)(W&&(st.endsWith("value")||st==="indeterminate")||sg(st)&&!xc(st)||st[0]==="."||J)&&n(b,st,null,P[st],void 0,E)}else if(P.onClick)n(b,"onClick",null,P.onClick,void 0,E);else if(M&4&&Ga(P.style))for(const J in P.style)P.style[J]}let tt;(tt=P&&P.onVnodeBeforeMount)&&pn(tt,E,w),V&&Go(w,null,E,"beforeMount"),((tt=P&&P.onVnodeMounted)||V||z)&&sR(()=>{tt&&pn(tt,E,w),z&&U.enter(b),V&&Go(w,null,E,"mounted")},S)}return b.nextSibling},p=(b,w,E,S,x,D,A)=>{A=A||!!w.dynamicChildren;const P=w.children,M=P.length;for(let F=0;F<M;F++){const V=A?P[F]:P[F]=Tn(P[F]),U=V.type===ws;b?(U&&!A&&F+1<M&&Tn(P[F+1]).type===ws&&(s(o(b.data.slice(V.children.length)),E,i(b)),b.data=V.children),b=f(b,V,S,x,D,A)):U&&!V.children?s(V.el=o(""),E):(bv(E,1)||Al(),r(null,V,E,null,S,x,yv(E),D))}return b},m=(b,w,E,S,x,D)=>{const{slotScopeIds:A}=w;A&&(x=x?x.concat(A):A);const P=a(b),M=p(i(b),w,P,E,S,x,D);return M&&pc(M)&&M.data==="]"?i(w.anchor=M):(Al(),s(w.anchor=l("]"),P,M),M)},v=(b,w,E,S,x,D)=>{if(bv(b.parentElement,1)||Al(),w.el=null,D){const M=g(b);for(;;){const F=i(b);if(F&&F!==M)u(F);else break}}const A=i(b),P=a(b);return u(b),r(null,w,P,A,E,S,yv(P),x),E&&(E.vnode.el=w.el,X1(E,w.el)),A},g=(b,w="[",E="]")=>{let S=0;for(;b;)if(b=i(b),b&&pc(b)&&(b.data===w&&S++,b.data===E)){if(S===0)return i(b);S--}return b},y=(b,w,E)=>{const S=w.parentNode;S&&S.replaceChild(b,w);let x=E;for(;x;)x.vnode.el===w&&(x.vnode.el=x.subTree.el=b),x=x.parent},h=b=>b.nodeType===1&&b.tagName==="TEMPLATE";return[c,f]}const _O="data-allow-mismatch",Eq={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function bv(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(_O);)t=t.parentElement;const r=t&&t.getAttribute(_O);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return e===0&&n.includes("children")?!0:n.includes(Eq[e])}}$1().requestIdleCallback;$1().cancelIdleCallback;function xq(t,e){if(pc(t)&&t.data==="["){let r=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(pc(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else e(t)}const qa=t=>!!t.type.__asyncLoader;function E6t(t){Nt(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:o=200,hydrate:i,timeout:a,suspensible:u=!0,onError:s}=t;let l=null,c,f=0;const d=()=>(f++,l=null,p()),p=()=>{let m;return l||(m=l=e().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),s)return new Promise((g,y)=>{s(v,()=>g(d()),()=>y(v),f+1)});throw v}).then(v=>m!==l&&l?l:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),c=v,v)))};return IL({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(m,v,g){let y=!1;(v.bu||(v.bu=[])).push(()=>y=!0);const h=()=>{y||g()},b=i?()=>{const w=i(h,E=>xq(m,E));w&&(v.bum||(v.bum=[])).push(w)}:h;c?b():p().then(()=>!v.isUnmounted&&b())},get __asyncResolved(){return c},setup(){const m=Rr;if(Q3(m),c)return()=>wv(c,m);const v=b=>{l=null,Cf(b,m,13,!n)};if(u&&m.suspense||Gc)return p().then(b=>()=>wv(b,m)).catch(b=>(v(b),()=>n?or(n,{error:b}):null));const g=Sc(!1),y=Sc(),h=Sc(!!o);return o&&setTimeout(()=>{h.value=!1},o),a!=null&&setTimeout(()=>{if(!g.value&&!y.value){const b=new Error(`Async component timed out after ${a}ms.`);v(b),y.value=b}},a),p().then(()=>{g.value=!0,m.parent&&fg(m.parent.vnode)&&m.parent.update()}).catch(b=>{v(b),y.value=b}),()=>{if(g.value&&c)return wv(c,m);if(y.value&&n)return or(n,{error:y.value});if(r&&!h.value)return wv(r,m)}}})}function wv(t,e){const{ref:r,props:n,children:o,ce:i}=e.vnode,a=or(t,n,o);return a.ref=r,a.ce=i,delete e.vnode.ce,a}const fg=t=>t.type.__isKeepAlive,Cq={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=ll(),n=r.ctx;if(!n.renderer)return()=>{const h=e.default&&e.default();return h&&h.length===1?h[0]:h};const o=new Map,i=new Set;let a=null;const u=r.suspense,{renderer:{p:s,m:l,um:c,o:{createElement:f}}}=n,d=f("div");n.activate=(h,b,w,E,S)=>{const x=h.component;l(h,b,w,0,u),s(x.vnode,h,b,w,x,u,E,h.slotScopeIds,S),dr(()=>{x.isDeactivated=!1,x.a&&Cc(x.a);const D=h.props&&h.props.onVnodeMounted;D&&pn(D,x.parent,h)},u)},n.deactivate=h=>{const b=h.component;Em(b.m),Em(b.a),l(h,d,null,1,u),dr(()=>{b.da&&Cc(b.da);const w=h.props&&h.props.onVnodeUnmounted;w&&pn(w,b.parent,h),b.isDeactivated=!0},u)};function p(h){d2(h),c(h,r,u,!0)}function m(h){o.forEach((b,w)=>{const E=rC(b.type);E&&!h(E)&&v(w)})}function v(h){const b=o.get(h);b&&(!a||!bo(b,a))?p(b):a&&d2(a),o.delete(h),i.delete(h)}Oc(()=>[t.include,t.exclude],([h,b])=>{h&&m(w=>mp(h,w)),b&&m(w=>!mp(b,w))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&(xm(r.subTree.type)?dr(()=>{o.set(g,Ev(r.subTree))},r.subTree.suspense):o.set(g,Ev(r.subTree)))};return dg(y),ML(y),tD(()=>{o.forEach(h=>{const{subTree:b,suspense:w}=r,E=Ev(b);if(h.type===E.type&&h.key===E.key){d2(E);const S=E.component.da;S&&dr(S,w);return}p(h)})}),()=>{if(g=null,!e.default)return a=null;const h=e.default(),b=h[0];if(h.length>1)return a=null,h;if(!Ws(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return a=null,b;let w=Ev(b);if(w.type===gr)return a=null,w;const E=w.type,S=rC(qa(w)?w.type.__asyncResolved||{}:E),{include:x,exclude:D,max:A}=t;if(x&&(!S||!mp(x,S))||D&&S&&mp(D,S))return w.shapeFlag&=-257,a=w,b;const P=w.key==null?E:w.key,M=o.get(P);return w.el&&(w=Xi(w),b.shapeFlag&128&&(b.ssContent=w)),g=P,M?(w.el=M.el,w.component=M.component,w.transition&&Uc(w,w.transition),w.shapeFlag|=512,i.delete(P),i.add(P)):(i.add(P),A&&i.size>parseInt(A,10)&&v(i.values().next().value)),w.shapeFlag|=256,a=w,xm(b.type)?b:w}}},x6t=Cq;function mp(t,e){return Bt(t)?t.some(r=>mp(r,e)):ze(t)?t.split(",").includes(e):wG(t)?(t.lastIndex=0,t.test(e)):!1}function Sq(t,e){LL(t,"a",e)}function Dq(t,e){LL(t,"da",e)}function LL(t,e,r=Rr){const n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(K1(e,n,r),r){let o=r.parent;for(;o&&o.parent;)fg(o.parent.vnode)&&Aq(n,e,r,o),o=o.parent}}function Aq(t,e,r,n){const o=K1(e,t,n,!0);eD(()=>{$3(n[e],o)},r)}function d2(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Ev(t){return t.shapeFlag&128?t.ssContent:t}function K1(t,e,r=Rr,n=!1){if(r){const o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...a)=>{qi();const u=Gs(r),s=jo(e,r,t,a);return u(),Ki(),s});return n?o.unshift(i):o.push(i),i}}const na=t=>(e,r=Rr)=>{(!Gc||t==="sp")&&K1(t,(...n)=>e(...n),r)},Oq=na("bm"),dg=na("m"),RL=na("bu"),ML=na("u"),tD=na("bum"),eD=na("um"),_q=na("sp"),kq=na("rtg"),Tq=na("rtc");function Bq(t,e=Rr){K1("ec",t,e)}const zL="components";function C6t(t,e){return $L(zL,t,!0,e)||t}const HL=Symbol.for("v-ndc");function S6t(t){return ze(t)?$L(zL,t,!1)||t:t||HL}function $L(t,e,r=!0,n=!1){const o=Mr||Rr;if(o){const i=o.type;{const u=rC(i,!1);if(u&&(u===e||u===io(e)||u===H1(io(e))))return i}const a=kO(o[t]||i[t],e)||kO(o.appContext[t],e);return!a&&n?i:a}}function kO(t,e){return t&&(t[e]||t[io(e)]||t[H1(io(e))])}function D6t(t,e,r,n){let o;const i=r,a=Bt(t);if(a||ze(t)){const u=a&&Ga(t);let s=!1,l=!1;u&&(s=!Pn(t),l=Yi(t),t=G1(t)),o=new Array(t.length);for(let c=0,f=t.length;c<f;c++)o[c]=e(s?l?Vc(Po(t[c])):Po(t[c]):t[c],c,void 0,i)}else if(typeof t=="number"){o=new Array(t);for(let u=0;u<t;u++)o[u]=e(u+1,u,void 0,i)}else if(Be(t))if(t[Symbol.iterator])o=Array.from(t,(u,s)=>e(u,s,void 0,i));else{const u=Object.keys(t);o=new Array(u.length);for(let s=0,l=u.length;s<l;s++){const c=u[s];o[s]=e(t[c],c,s,i)}}else o=[];return o}function A6t(t,e,r={},n,o){if(Mr.ce||Mr.parent&&qa(Mr.parent)&&Mr.parent.ce){const l=Object.keys(r).length>0;return e!=="default"&&(r.name=e),lh(),Jx(Xr,null,[or("slot",r,n&&n())],l?-2:64)}let i=t[e];i&&i._c&&(i._d=!1),lh();const a=i&&VL(i(r)),u=r.key||a&&a.key,s=Jx(Xr,{key:(u&&!ra(u)?u:`_${e}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&t._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function VL(t){return t.some(e=>Ws(e)?!(e.type===gr||e.type===Xr&&!VL(e.children)):!0)?t:null}const qx=t=>t?hR(t)?Z1(t):qx(t.parent):null,Fp=Pr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qx(t.parent),$root:t=>qx(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>GL(t),$forceUpdate:t=>t.f||(t.f=()=>{J3(t.update)}),$nextTick:t=>t.n||(t.n=fq.bind(t.proxy)),$watch:t=>Vq.bind(t)}),p2=(t,e)=>t!==_e&&!t.__isScriptSetup&&me(t,e),Fq={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:u,appContext:s}=t;if(e[0]!=="$"){const d=a[e];if(d!==void 0)switch(d){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return i[e]}else{if(p2(n,e))return a[e]=1,n[e];if(o!==_e&&me(o,e))return a[e]=2,o[e];if(me(i,e))return a[e]=3,i[e];if(r!==_e&&me(r,e))return a[e]=4,r[e];Kx&&(a[e]=0)}}const l=Fp[e];let c,f;if(l)return e==="$attrs"&&Yr(t.attrs,"get",""),l(t);if((c=u.__cssModules)&&(c=c[e]))return c;if(r!==_e&&me(r,e))return a[e]=4,r[e];if(f=s.config.globalProperties,me(f,e))return f[e]},set({_:t},e,r){const{data:n,setupState:o,ctx:i}=t;return p2(o,e)?(o[e]=r,!0):n!==_e&&me(n,e)?(n[e]=r,!0):me(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,props:i,type:a}},u){let s;return!!(r[u]||t!==_e&&u[0]!=="$"&&me(t,u)||p2(e,u)||me(i,u)||me(n,u)||me(Fp,u)||me(o.config.globalProperties,u)||(s=a.__cssModules)&&s[u])},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:me(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function O6t(){return UL().slots}function _6t(){return UL().attrs}function UL(t){const e=ll();return e.setupContext||(e.setupContext=vR(e))}function TO(t){return Bt(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function k6t(t){const e=ll();let r=t();return tC(),V3(r)&&(r=r.catch(n=>{throw Gs(e),n})),[r,()=>Gs(e)]}let Kx=!0;function Pq(t){const e=GL(t),r=t.proxy,n=t.ctx;Kx=!1,e.beforeCreate&&BO(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:a,watch:u,provide:s,inject:l,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:m,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:h,destroyed:b,unmounted:w,render:E,renderTracked:S,renderTriggered:x,errorCaptured:D,serverPrefetch:A,expose:P,inheritAttrs:M,components:F,directives:V,filters:U}=e;if(l&&jq(l,n,null),a)for(const tt in a){const J=a[tt];Nt(J)&&(n[tt]=J.bind(r))}if(o){const tt=o.call(r,r);Be(tt)&&(t.data=Y3(tt))}if(Kx=!0,i)for(const tt in i){const J=i[tt],st=Nt(J)?J.bind(r,r):Nt(J.get)?J.get.bind(r,r):Do,bt=!Nt(J)&&Nt(J.set)?J.set.bind(r):Do,B=CK({get:st,set:bt});Object.defineProperty(n,tt,{enumerable:!0,configurable:!0,get:()=>B.value,set:_=>B.value=_})}if(u)for(const tt in u)WL(u[tt],n,r,tt);if(s){const tt=Nt(s)?s.call(r):s;Reflect.ownKeys(tt).forEach(J=>{zq(J,tt[J])})}c&&BO(c,t,"c");function z(tt,J){Bt(J)?J.forEach(st=>tt(st.bind(r))):J&&tt(J.bind(r))}if(z(Oq,f),z(dg,d),z(RL,p),z(ML,m),z(Sq,v),z(Dq,g),z(Bq,D),z(Tq,S),z(kq,x),z(tD,h),z(eD,w),z(_q,A),Bt(P))if(P.length){const tt=t.exposed||(t.exposed={});P.forEach(J=>{Object.defineProperty(tt,J,{get:()=>r[J],set:st=>r[J]=st,enumerable:!0})})}else t.exposed||(t.exposed={});E&&t.render===Do&&(t.render=E),M!=null&&(t.inheritAttrs=M),F&&(t.components=F),V&&(t.directives=V),A&&Q3(t)}function jq(t,e,r=Do){Bt(t)&&(t=Yx(t));for(const n in t){const o=t[n];let i;Be(o)?"default"in o?i=T0(o.from||n,o.default,!0):i=T0(o.from||n):i=T0(o),Ar(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[n]=i}}function BO(t,e,r){jo(Bt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function WL(t,e,r,n){let o=n.includes(".")?KL(r,n):()=>r[n];if(ze(t)){const i=e[t];Nt(i)&&Oc(o,i)}else if(Nt(t))Oc(o,t.bind(r));else if(Be(t))if(Bt(t))t.forEach(i=>WL(i,e,r,n));else{const i=Nt(t.handler)?t.handler.bind(r):e[t.handler];Nt(i)&&Oc(o,i,t)}}function GL(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=t.appContext,u=i.get(e);let s;return u?s=u:!o.length&&!r&&!n?s=e:(s={},o.length&&o.forEach(l=>wm(s,l,a,!0)),wm(s,e,a)),Be(e)&&i.set(e,s),s}function wm(t,e,r,n=!1){const{mixins:o,extends:i}=e;i&&wm(t,i,r,!0),o&&o.forEach(a=>wm(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const u=Nq[a]||r&&r[a];t[a]=u?u(t[a],e[a]):e[a]}return t}const Nq={data:FO,props:PO,emits:PO,methods:yp,computed:yp,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:yp,directives:yp,watch:Lq,provide:FO,inject:Iq};function FO(t,e){return e?t?function(){return Pr(Nt(t)?t.call(this,this):t,Nt(e)?e.call(this,this):e)}:e:t}function Iq(t,e){return yp(Yx(t),Yx(e))}function Yx(t){if(Bt(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function an(t,e){return t?[...new Set([].concat(t,e))]:e}function yp(t,e){return t?Pr(Object.create(null),t,e):e}function PO(t,e){return t?Bt(t)&&Bt(e)?[...new Set([...t,...e])]:Pr(Object.create(null),TO(t),TO(e??{})):e}function Lq(t,e){if(!t)return e;if(!e)return t;const r=Pr(Object.create(null),t);for(const n in e)r[n]=an(t[n],e[n]);return r}function qL(){return{app:null,config:{isNativeTag:XI,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Rq=0;function Mq(t,e){return function(n,o=null){Nt(n)||(n=Pr({},n)),o!=null&&!Be(o)&&(o=null);const i=qL(),a=new WeakSet,u=[];let s=!1;const l=i.app={_uid:Rq++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:DK,get config(){return i.config},set config(c){},use(c,...f){return a.has(c)||(c&&Nt(c.install)?(a.add(c),c.install(l,...f)):Nt(c)&&(a.add(c),c(l,...f))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,f){return f?(i.components[c]=f,l):i.components[c]},directive(c,f){return f?(i.directives[c]=f,l):i.directives[c]},mount(c,f,d){if(!s){const p=l._ceVNode||or(n,o);return p.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&e?e(p,c):t(p,c,d),s=!0,l._container=c,c.__vue_app__=l,Z1(p.component)}},onUnmount(c){u.push(c)},unmount(){s&&(jo(u,l._instance,16),t(null,l._container),delete l._container.__vue_app__)},provide(c,f){return i.provides[c]=f,l},runWithContext(c){const f=bs;bs=l;try{return c()}finally{bs=f}}};return l}}let bs=null;function zq(t,e){if(Rr){let r=Rr.provides;const n=Rr.parent&&Rr.parent.provides;n===r&&(r=Rr.provides=Object.create(n)),r[t]=e}}function T0(t,e,r=!1){const n=ll();if(n||bs){let o=bs?bs._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&t in o)return o[t];if(arguments.length>1)return r&&Nt(e)?e.call(n&&n.proxy):e}}function T6t(){return!!(ll()||bs)}const Hq=Symbol.for("v-scx"),$q=()=>T0(Hq);function B6t(t,e){return rD(t,null,e)}function Oc(t,e,r){return rD(t,e,r)}function rD(t,e,r=_e){const{immediate:n,deep:o,flush:i,once:a}=r,u=Pr({},r),s=e&&n||!e&&i!=="post";let l;if(Gc){if(i==="sync"){const p=$q();l=p.__watcherHandles||(p.__watcherHandles=[])}else if(!s){const p=()=>{};return p.stop=Do,p.resume=Do,p.pause=Do,p}}const c=Rr;u.call=(p,m,v)=>jo(p,c,m,v);let f=!1;i==="post"?u.scheduler=p=>{dr(p,c&&c.suspense)}:i!=="sync"&&(f=!0,u.scheduler=(p,m)=>{m?p():J3(p)}),u.augmentJob=p=>{e&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=lq(t,e,u);return Gc&&(l?l.push(d):s&&d()),d}function Vq(t,e,r){const n=this.proxy,o=ze(t)?t.includes(".")?KL(n,t):()=>n[t]:t.bind(n,n);let i;Nt(e)?i=e:(i=e.handler,r=e);const a=Gs(this),u=rD(o,i.bind(n),r);return a(),u}function KL(t,e){const r=e.split(".");return()=>{let n=t;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}const Uq=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${io(e)}Modifiers`]||t[`${Ou(e)}Modifiers`];function Wq(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||_e;let o=r;const i=e.startsWith("update:"),a=i&&Uq(n,e.slice(7));a&&(a.trim&&(o=r.map(c=>ze(c)?c.trim():c)),a.number&&(o=r.map(U3)));let u,s=n[u=a2(e)]||n[u=a2(io(e))];!s&&i&&(s=n[u=a2(Ou(e))]),s&&jo(s,t,6,o);const l=n[u+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[u])return;t.emitted[u]=!0,jo(l,t,6,o)}}const Gq=new WeakMap;function YL(t,e,r=!1){const n=r?Gq:e.emitsCache,o=n.get(t);if(o!==void 0)return o;const i=t.emits;let a={},u=!1;if(!Nt(t)){const s=l=>{const c=YL(l,e,!0);c&&(u=!0,Pr(a,c))};!r&&e.mixins.length&&e.mixins.forEach(s),t.extends&&s(t.extends),t.mixins&&t.mixins.forEach(s)}return!i&&!u?(Be(t)&&n.set(t,null),null):(Bt(i)?i.forEach(s=>a[s]=null):Pr(a,i),Be(t)&&n.set(t,a),a)}function Y1(t,e){return!t||!sg(e)?!1:(e=e.slice(2).replace(/Once$/,""),me(t,e[0].toLowerCase()+e.slice(1))||me(t,Ou(e))||me(t,e))}function h2(t){const{type:e,vnode:r,proxy:n,withProxy:o,propsOptions:[i],slots:a,attrs:u,emit:s,render:l,renderCache:c,props:f,data:d,setupState:p,ctx:m,inheritAttrs:v}=t,g=ym(t);let y,h;try{if(r.shapeFlag&4){const w=o||n,E=w;y=Tn(l.call(E,w,c,f,p,d,m)),h=u}else{const w=e;y=Tn(w.length>1?w(f,{attrs:u,slots:a,emit:s}):w(f,null)),h=e.props?u:Kq(u)}}catch(w){Pp.length=0,Cf(w,t,1),y=or(gr)}let b=y;if(h&&v!==!1){const w=Object.keys(h),{shapeFlag:E}=b;w.length&&E&7&&(i&&w.some(H3)&&(h=Yq(h,i)),b=Xi(b,h,!1,!0))}return r.dirs&&(b=Xi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(r.dirs):r.dirs),r.transition&&Uc(b,r.transition),y=b,ym(g),y}function qq(t,e=!0){let r;for(let n=0;n<t.length;n++){const o=t[n];if(Ws(o)){if(o.type!==gr||o.children==="v-if"){if(r)return;r=o}}else return}return r}const Kq=t=>{let e;for(const r in t)(r==="class"||r==="style"||sg(r))&&((e||(e={}))[r]=t[r]);return e},Yq=(t,e)=>{const r={};for(const n in t)(!H3(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function Xq(t,e,r){const{props:n,children:o,component:i}=t,{props:a,children:u,patchFlag:s}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&s>=0){if(s&1024)return!0;if(s&16)return n?jO(n,a,l):!!a;if(s&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(a[d]!==n[d]&&!Y1(l,d))return!0}}}else return(o||u)&&(!u||!u.$stable)?!0:n===a?!1:n?a?jO(n,a,l):!0:!!a;return!1}function jO(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(e[i]!==t[i]&&!Y1(r,i))return!0}return!1}function X1({vnode:t,parent:e},r){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=r,e=e.parent;else break}}const XL={},ZL=()=>Object.create(XL),JL=t=>Object.getPrototypeOf(t)===XL;function Zq(t,e,r,n=!1){const o={},i=ZL();t.propsDefaults=Object.create(null),QL(t,e,o,i);for(const a in t.propsOptions[0])a in o||(o[a]=void 0);r?t.props=n?o:JG(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function Jq(t,e,r,n){const{props:o,attrs:i,vnode:{patchFlag:a}}=t,u=fe(o),[s]=t.propsOptions;let l=!1;if((n||a>0)&&!(a&16)){if(a&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Y1(t.emitsOptions,d))continue;const p=e[d];if(s)if(me(i,d))p!==i[d]&&(i[d]=p,l=!0);else{const m=io(d);o[m]=Xx(s,u,m,p,t,!1)}else p!==i[d]&&(i[d]=p,l=!0)}}}else{QL(t,e,o,i)&&(l=!0);let c;for(const f in u)(!e||!me(e,f)&&((c=Ou(f))===f||!me(e,c)))&&(s?r&&(r[f]!==void 0||r[c]!==void 0)&&(o[f]=Xx(s,u,f,void 0,t,!0)):delete o[f]);if(i!==u)for(const f in i)(!e||!me(e,f))&&(delete i[f],l=!0)}l&&Ni(t.attrs,"set","")}function QL(t,e,r,n){const[o,i]=t.propsOptions;let a=!1,u;if(e)for(let s in e){if(xc(s))continue;const l=e[s];let c;o&&me(o,c=io(s))?!i||!i.includes(c)?r[c]=l:(u||(u={}))[c]=l:Y1(t.emitsOptions,s)||(!(s in n)||l!==n[s])&&(n[s]=l,a=!0)}if(i){const s=fe(r),l=u||_e;for(let c=0;c<i.length;c++){const f=i[c];r[f]=Xx(o,s,f,l[f],t,!me(l,f))}}return a}function Xx(t,e,r,n,o,i){const a=t[r];if(a!=null){const u=me(a,"default");if(u&&n===void 0){const s=a.default;if(a.type!==Function&&!a.skipFactory&&Nt(s)){const{propsDefaults:l}=o;if(r in l)n=l[r];else{const c=Gs(o);n=l[r]=s.call(null,e),c()}}else n=s;o.ce&&o.ce._setProp(r,n)}a[0]&&(i&&!u?n=!1:a[1]&&(n===""||n===Ou(r))&&(n=!0))}return n}const Qq=new WeakMap;function tR(t,e,r=!1){const n=r?Qq:e.propsCache,o=n.get(t);if(o)return o;const i=t.props,a={},u=[];let s=!1;if(!Nt(t)){const c=f=>{s=!0;const[d,p]=tR(f,e,!0);Pr(a,d),p&&u.push(...p)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!s)return Be(t)&&n.set(t,wc),wc;if(Bt(i))for(let c=0;c<i.length;c++){const f=io(i[c]);NO(f)&&(a[f]=_e)}else if(i)for(const c in i){const f=io(c);if(NO(f)){const d=i[c],p=a[f]=Bt(d)||Nt(d)?{type:d}:Pr({},d),m=p.type;let v=!1,g=!0;if(Bt(m))for(let y=0;y<m.length;++y){const h=m[y],b=Nt(h)&&h.name;if(b==="Boolean"){v=!0;break}else b==="String"&&(g=!1)}else v=Nt(m)&&m.name==="Boolean";p[0]=v,p[1]=g,(v||me(p,"default"))&&u.push(f)}}const l=[a,u];return Be(t)&&n.set(t,l),l}function NO(t){return t[0]!=="$"&&!xc(t)}const nD=t=>t==="_"||t==="_ctx"||t==="$stable",oD=t=>Bt(t)?t.map(Tn):[Tn(t)],tK=(t,e,r)=>{if(e._n)return e;const n=pq((...o)=>oD(e(...o)),r);return n._c=!1,n},eR=(t,e,r)=>{const n=t._ctx;for(const o in t){if(nD(o))continue;const i=t[o];if(Nt(i))e[o]=tK(o,i,n);else if(i!=null){const a=oD(i);e[o]=()=>a}}},rR=(t,e)=>{const r=oD(e);t.slots.default=()=>r},nR=(t,e,r)=>{for(const n in e)(r||!nD(n))&&(t[n]=e[n])},eK=(t,e,r)=>{const n=t.slots=ZL();if(t.vnode.shapeFlag&32){const o=e._;o?(nR(n,e,r),r&&tL(n,"_",o,!0)):eR(e,n)}else e&&rR(t,e)},rK=(t,e,r)=>{const{vnode:n,slots:o}=t;let i=!0,a=_e;if(n.shapeFlag&32){const u=e._;u?r&&u===1?i=!1:nR(o,e,r):(i=!e.$stable,eR(e,o)),a=e}else e&&(rR(t,e),a={default:1});if(i)for(const u in o)!nD(u)&&a[u]==null&&delete o[u]},dr=sR;function nK(t){return oR(t)}function oK(t){return oR(t,wq)}function oR(t,e){const r=$1();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:a,createText:u,createComment:s,setText:l,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Do,insertStaticContent:m}=t,v=(O,T,H,nt=null,K=null,Z=null,at=void 0,ut=null,et=!!T.dynamicChildren)=>{if(O===T)return;O&&!bo(O,T)&&(nt=vt(O),_(O,K,Z,!0),O=null),T.patchFlag===-2&&(et=!1,T.dynamicChildren=null);const{type:ot,ref:St,shapeFlag:mt}=T;switch(ot){case ws:g(O,T,H,nt);break;case gr:y(O,T,H,nt);break;case kc:O==null&&h(T,H,nt,at);break;case Xr:F(O,T,H,nt,K,Z,at,ut,et);break;default:mt&1?E(O,T,H,nt,K,Z,at,ut,et):mt&6?V(O,T,H,nt,K,Z,at,ut,et):(mt&64||mt&128)&&ot.process(O,T,H,nt,K,Z,at,ut,et,kt)}St!=null&&K?Ac(St,O&&O.ref,Z,T||O,!T):St==null&&O&&O.ref!=null&&Ac(O.ref,null,Z,O,!0)},g=(O,T,H,nt)=>{if(O==null)n(T.el=u(T.children),H,nt);else{const K=T.el=O.el;T.children!==O.children&&l(K,T.children)}},y=(O,T,H,nt)=>{O==null?n(T.el=s(T.children||""),H,nt):T.el=O.el},h=(O,T,H,nt)=>{[O.el,O.anchor]=m(O.children,T,H,nt,O.el,O.anchor)},b=({el:O,anchor:T},H,nt)=>{let K;for(;O&&O!==T;)K=d(O),n(O,H,nt),O=K;n(T,H,nt)},w=({el:O,anchor:T})=>{let H;for(;O&&O!==T;)H=d(O),o(O),O=H;o(T)},E=(O,T,H,nt,K,Z,at,ut,et)=>{if(T.type==="svg"?at="svg":T.type==="math"&&(at="mathml"),O==null)S(T,H,nt,K,Z,at,ut,et);else{const ot=O.el&&O.el._isVueCE?O.el:null;try{ot&&ot._beginPatch(),A(O,T,K,Z,at,ut,et)}finally{ot&&ot._endPatch()}}},S=(O,T,H,nt,K,Z,at,ut)=>{let et,ot;const{props:St,shapeFlag:mt,transition:Dt,dirs:Tt}=O;if(et=O.el=a(O.type,Z,St&&St.is,St),mt&8?c(et,O.children):mt&16&&D(O.children,et,null,nt,K,g2(O,Z),at,ut),Tt&&Go(O,null,nt,"created"),x(et,O,O.scopeId,at,nt),St){for(const te in St)te!=="value"&&!xc(te)&&i(et,te,null,St[te],Z,nt);"value"in St&&i(et,"value",null,St.value,Z),(ot=St.onVnodeBeforeMount)&&pn(ot,nt,O)}Tt&&Go(O,null,nt,"beforeMount");const Rt=iR(K,Dt);Rt&&Dt.beforeEnter(et),n(et,T,H),((ot=St&&St.onVnodeMounted)||Rt||Tt)&&dr(()=>{ot&&pn(ot,nt,O),Rt&&Dt.enter(et),Tt&&Go(O,null,nt,"mounted")},K)},x=(O,T,H,nt,K)=>{if(H&&p(O,H),nt)for(let Z=0;Z<nt.length;Z++)p(O,nt[Z]);if(K){let Z=K.subTree;if(T===Z||xm(Z.type)&&(Z.ssContent===T||Z.ssFallback===T)){const at=K.vnode;x(O,at,at.scopeId,at.slotScopeIds,K.parent)}}},D=(O,T,H,nt,K,Z,at,ut,et=0)=>{for(let ot=et;ot<O.length;ot++){const St=O[ot]=ut?Pa(O[ot]):Tn(O[ot]);v(null,St,T,H,nt,K,Z,at,ut)}},A=(O,T,H,nt,K,Z,at)=>{const ut=T.el=O.el;let{patchFlag:et,dynamicChildren:ot,dirs:St}=T;et|=O.patchFlag&16;const mt=O.props||_e,Dt=T.props||_e;let Tt;if(H&&Mu(H,!1),(Tt=Dt.onVnodeBeforeUpdate)&&pn(Tt,H,T,O),St&&Go(T,O,H,"beforeUpdate"),H&&Mu(H,!0),(mt.innerHTML&&Dt.innerHTML==null||mt.textContent&&Dt.textContent==null)&&c(ut,""),ot?P(O.dynamicChildren,ot,ut,H,nt,g2(T,K),Z):at||J(O,T,ut,null,H,nt,g2(T,K),Z,!1),et>0){if(et&16)M(ut,mt,Dt,H,K);else if(et&2&&mt.class!==Dt.class&&i(ut,"class",null,Dt.class,K),et&4&&i(ut,"style",mt.style,Dt.style,K),et&8){const Rt=T.dynamicProps;for(let te=0;te<Rt.length;te++){const Zt=Rt[te],he=mt[Zt],ce=Dt[Zt];(ce!==he||Zt==="value")&&i(ut,Zt,he,ce,K,H)}}et&1&&O.children!==T.children&&c(ut,T.children)}else!at&&ot==null&&M(ut,mt,Dt,H,K);((Tt=Dt.onVnodeUpdated)||St)&&dr(()=>{Tt&&pn(Tt,H,T,O),St&&Go(T,O,H,"updated")},nt)},P=(O,T,H,nt,K,Z,at)=>{for(let ut=0;ut<T.length;ut++){const et=O[ut],ot=T[ut],St=et.el&&(et.type===Xr||!bo(et,ot)||et.shapeFlag&198)?f(et.el):H;v(et,ot,St,null,nt,K,Z,at,!0)}},M=(O,T,H,nt,K)=>{if(T!==H){if(T!==_e)for(const Z in T)!xc(Z)&&!(Z in H)&&i(O,Z,T[Z],null,K,nt);for(const Z in H){if(xc(Z))continue;const at=H[Z],ut=T[Z];at!==ut&&Z!=="value"&&i(O,Z,ut,at,K,nt)}"value"in H&&i(O,"value",T.value,H.value,K)}},F=(O,T,H,nt,K,Z,at,ut,et)=>{const ot=T.el=O?O.el:u(""),St=T.anchor=O?O.anchor:u("");let{patchFlag:mt,dynamicChildren:Dt,slotScopeIds:Tt}=T;Tt&&(ut=ut?ut.concat(Tt):Tt),O==null?(n(ot,H,nt),n(St,H,nt),D(T.children||[],H,St,K,Z,at,ut,et)):mt>0&&mt&64&&Dt&&O.dynamicChildren?(P(O.dynamicChildren,Dt,H,K,Z,at,ut),(T.key!=null||K&&T===K.subTree)&&iD(O,T,!0)):J(O,T,H,St,K,Z,at,ut,et)},V=(O,T,H,nt,K,Z,at,ut,et)=>{T.slotScopeIds=ut,O==null?T.shapeFlag&512?K.ctx.activate(T,H,nt,at,et):U(T,H,nt,K,Z,at,et):W(O,T,et)},U=(O,T,H,nt,K,Z,at)=>{const ut=O.component=yK(O,nt,K);if(fg(O)&&(ut.ctx.renderer=kt),bK(ut,!1,at),ut.asyncDep){if(K&&K.registerDep(ut,z,at),!O.el){const et=ut.subTree=or(gr);y(null,et,T,H),O.placeholder=et.el}}else z(ut,O,T,H,K,Z,at)},W=(O,T,H)=>{const nt=T.component=O.component;if(Xq(O,T,H))if(nt.asyncDep&&!nt.asyncResolved){tt(nt,T,H);return}else nt.next=T,nt.update();else T.el=O.el,nt.vnode=T},z=(O,T,H,nt,K,Z,at)=>{const ut=()=>{if(O.isMounted){let{next:mt,bu:Dt,u:Tt,parent:Rt,vnode:te}=O;{const be=aR(O);if(be){mt&&(mt.el=te.el,tt(O,mt,at)),be.asyncDep.then(()=>{O.isUnmounted||ut()});return}}let Zt=mt,he;Mu(O,!1),mt?(mt.el=te.el,tt(O,mt,at)):mt=te,Dt&&Cc(Dt),(he=mt.props&&mt.props.onVnodeBeforeUpdate)&&pn(he,Rt,mt,te),Mu(O,!0);const ce=h2(O),Ce=O.subTree;O.subTree=ce,v(Ce,ce,f(Ce.el),vt(Ce),O,K,Z),mt.el=ce.el,Zt===null&&X1(O,ce.el),Tt&&dr(Tt,K),(he=mt.props&&mt.props.onVnodeUpdated)&&dr(()=>pn(he,Rt,mt,te),K)}else{let mt;const{el:Dt,props:Tt}=T,{bm:Rt,m:te,parent:Zt,root:he,type:ce}=O,Ce=qa(T);if(Mu(O,!1),Rt&&Cc(Rt),!Ce&&(mt=Tt&&Tt.onVnodeBeforeMount)&&pn(mt,Zt,T),Mu(O,!0),Dt&&Vt){const be=()=>{O.subTree=h2(O),Vt(Dt,O.subTree,O,K,null)};Ce&&ce.__asyncHydrate?ce.__asyncHydrate(Dt,O,be):be()}else{he.ce&&he.ce._def.shadowRoot!==!1&&he.ce._injectChildStyle(ce);const be=O.subTree=h2(O);v(null,be,H,nt,O,K,Z),T.el=be.el}if(te&&dr(te,K),!Ce&&(mt=Tt&&Tt.onVnodeMounted)){const be=T;dr(()=>pn(mt,Zt,be),K)}(T.shapeFlag&256||Zt&&qa(Zt.vnode)&&Zt.vnode.shapeFlag&256)&&O.a&&dr(O.a,K),O.isMounted=!0,T=H=nt=null}};O.scope.on();const et=O.effect=new aL(ut);O.scope.off();const ot=O.update=et.run.bind(et),St=O.job=et.runIfDirty.bind(et);St.i=O,St.id=O.uid,et.scheduler=()=>J3(St),Mu(O,!0),ot()},tt=(O,T,H)=>{T.component=O;const nt=O.vnode.props;O.vnode=T,O.next=null,Jq(O,T.props,nt,H),rK(O,T.children,H),qi(),EO(O),Ki()},J=(O,T,H,nt,K,Z,at,ut,et=!1)=>{const ot=O&&O.children,St=O?O.shapeFlag:0,mt=T.children,{patchFlag:Dt,shapeFlag:Tt}=T;if(Dt>0){if(Dt&128){bt(ot,mt,H,nt,K,Z,at,ut,et);return}else if(Dt&256){st(ot,mt,H,nt,K,Z,at,ut,et);return}}Tt&8?(St&16&&Q(ot,K,Z),mt!==ot&&c(H,mt)):St&16?Tt&16?bt(ot,mt,H,nt,K,Z,at,ut,et):Q(ot,K,Z,!0):(St&8&&c(H,""),Tt&16&&D(mt,H,nt,K,Z,at,ut,et))},st=(O,T,H,nt,K,Z,at,ut,et)=>{O=O||wc,T=T||wc;const ot=O.length,St=T.length,mt=Math.min(ot,St);let Dt;for(Dt=0;Dt<mt;Dt++){const Tt=T[Dt]=et?Pa(T[Dt]):Tn(T[Dt]);v(O[Dt],Tt,H,null,K,Z,at,ut,et)}ot>St?Q(O,K,Z,!0,!1,mt):D(T,H,nt,K,Z,at,ut,et,mt)},bt=(O,T,H,nt,K,Z,at,ut,et)=>{let ot=0;const St=T.length;let mt=O.length-1,Dt=St-1;for(;ot<=mt&&ot<=Dt;){const Tt=O[ot],Rt=T[ot]=et?Pa(T[ot]):Tn(T[ot]);if(bo(Tt,Rt))v(Tt,Rt,H,null,K,Z,at,ut,et);else break;ot++}for(;ot<=mt&&ot<=Dt;){const Tt=O[mt],Rt=T[Dt]=et?Pa(T[Dt]):Tn(T[Dt]);if(bo(Tt,Rt))v(Tt,Rt,H,null,K,Z,at,ut,et);else break;mt--,Dt--}if(ot>mt){if(ot<=Dt){const Tt=Dt+1,Rt=Tt<St?T[Tt].el:nt;for(;ot<=Dt;)v(null,T[ot]=et?Pa(T[ot]):Tn(T[ot]),H,Rt,K,Z,at,ut,et),ot++}}else if(ot>Dt)for(;ot<=mt;)_(O[ot],K,Z,!0),ot++;else{const Tt=ot,Rt=ot,te=new Map;for(ot=Rt;ot<=Dt;ot++){const wr=T[ot]=et?Pa(T[ot]):Tn(T[ot]);wr.key!=null&&te.set(wr.key,ot)}let Zt,he=0;const ce=Dt-Rt+1;let Ce=!1,be=0;const $e=new Array(ce);for(ot=0;ot<ce;ot++)$e[ot]=0;for(ot=Tt;ot<=mt;ot++){const wr=O[ot];if(he>=ce){_(wr,K,Z,!0);continue}let Er;if(wr.key!=null)Er=te.get(wr.key);else for(Zt=Rt;Zt<=Dt;Zt++)if($e[Zt-Rt]===0&&bo(wr,T[Zt])){Er=Zt;break}Er===void 0?_(wr,K,Z,!0):($e[Er-Rt]=ot+1,Er>=be?be=Er:Ce=!0,v(wr,T[Er],H,null,K,Z,at,ut,et),he++)}const nn=Ce?iK($e):wc;for(Zt=nn.length-1,ot=ce-1;ot>=0;ot--){const wr=Rt+ot,Er=T[wr],Wn=T[wr+1],bi=wr+1<St?Wn.el||Wn.placeholder:nt;$e[ot]===0?v(null,Er,H,bi,K,Z,at,ut,et):Ce&&(Zt<0||ot!==nn[Zt]?B(Er,H,bi,2):Zt--)}}},B=(O,T,H,nt,K=null)=>{const{el:Z,type:at,transition:ut,children:et,shapeFlag:ot}=O;if(ot&6){B(O.component.subTree,T,H,nt);return}if(ot&128){O.suspense.move(T,H,nt);return}if(ot&64){at.move(O,T,H,kt);return}if(at===Xr){n(Z,T,H);for(let mt=0;mt<et.length;mt++)B(et[mt],T,H,nt);n(O.anchor,T,H);return}if(at===kc){b(O,T,H);return}if(nt!==2&&ot&1&&ut)if(nt===0)ut.beforeEnter(Z),n(Z,T,H),dr(()=>ut.enter(Z),K);else{const{leave:mt,delayLeave:Dt,afterLeave:Tt}=ut,Rt=()=>{O.ctx.isUnmounted?o(Z):n(Z,T,H)},te=()=>{Z._isLeaving&&Z[Fi](!0),mt(Z,()=>{Rt(),Tt&&Tt()})};Dt?Dt(Z,Rt,te):te()}else n(Z,T,H)},_=(O,T,H,nt=!1,K=!1)=>{const{type:Z,props:at,ref:ut,children:et,dynamicChildren:ot,shapeFlag:St,patchFlag:mt,dirs:Dt,cacheIndex:Tt}=O;if(mt===-2&&(K=!1),ut!=null&&(qi(),Ac(ut,null,H,O,!0),Ki()),Tt!=null&&(T.renderCache[Tt]=void 0),St&256){T.ctx.deactivate(O);return}const Rt=St&1&&Dt,te=!qa(O);let Zt;if(te&&(Zt=at&&at.onVnodeBeforeUnmount)&&pn(Zt,T,O),St&6)it(O.component,H,nt);else{if(St&128){O.suspense.unmount(H,nt);return}Rt&&Go(O,null,T,"beforeUnmount"),St&64?O.type.remove(O,T,H,kt,nt):ot&&!ot.hasOnce&&(Z!==Xr||mt>0&&mt&64)?Q(ot,T,H,!1,!0):(Z===Xr&&mt&384||!K&&St&16)&&Q(et,T,H),nt&&I(O)}(te&&(Zt=at&&at.onVnodeUnmounted)||Rt)&&dr(()=>{Zt&&pn(Zt,T,O),Rt&&Go(O,null,T,"unmounted")},H)},I=O=>{const{type:T,el:H,anchor:nt,transition:K}=O;if(T===Xr){X(H,nt);return}if(T===kc){w(O);return}const Z=()=>{o(H),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(O.shapeFlag&1&&K&&!K.persisted){const{leave:at,delayLeave:ut}=K,et=()=>at(H,Z);ut?ut(O.el,Z,et):et()}else Z()},X=(O,T)=>{let H;for(;O!==T;)H=d(O),o(O),O=H;o(T)},it=(O,T,H)=>{const{bum:nt,scope:K,job:Z,subTree:at,um:ut,m:et,a:ot}=O;Em(et),Em(ot),nt&&Cc(nt),K.stop(),Z&&(Z.flags|=8,_(at,O,T,H)),ut&&dr(ut,T),dr(()=>{O.isUnmounted=!0},T)},Q=(O,T,H,nt=!1,K=!1,Z=0)=>{for(let at=Z;at<O.length;at++)_(O[at],T,H,nt,K)},vt=O=>{if(O.shapeFlag&6)return vt(O.component.subTree);if(O.shapeFlag&128)return O.suspense.next();const T=d(O.anchor||O.el),H=T&&T[OL];return H?d(H):T};let xt=!1;const _t=(O,T,H)=>{O==null?T._vnode&&_(T._vnode,null,null,!0):v(T._vnode||null,O,T,null,null,null,H),T._vnode=O,xt||(xt=!0,EO(),mm(),xt=!1)},kt={p:v,um:_,m:B,r:I,mt:U,mc:D,pc:J,pbc:P,n:vt,o:t};let rt,Vt;return e&&([rt,Vt]=e(kt)),{render:_t,hydrate:rt,createApp:Mq(_t,rt)}}function g2({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Mu({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function iR(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function iD(t,e,r=!1){const n=t.children,o=e.children;if(Bt(n)&&Bt(o))for(let i=0;i<n.length;i++){const a=n[i];let u=o[i];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=o[i]=Pa(o[i]),u.el=a.el),!r&&u.patchFlag!==-2&&iD(a,u)),u.type===ws&&u.patchFlag!==-1&&(u.el=a.el),u.type===gr&&!u.el&&(u.el=a.el)}}function iK(t){const e=t.slice(),r=[0];let n,o,i,a,u;const s=t.length;for(n=0;n<s;n++){const l=t[n];if(l!==0){if(o=r[r.length-1],t[o]<l){e[n]=o,r.push(n);continue}for(i=0,a=r.length-1;i<a;)u=i+a>>1,t[r[u]]<l?i=u+1:a=u;l<t[r[i]]&&(i>0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=e[a];return r}function aR(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:aR(e)}function Em(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const xm=t=>t.__isSuspense;let Zx=0;const aK={name:"Suspense",__isSuspense:!0,process(t,e,r,n,o,i,a,u,s,l){if(t==null)uK(e,r,n,o,i,a,u,s,l);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}sK(t,e,r,n,o,a,u,s,l)}},hydrate:lK,normalize:cK},F6t=aK;function sh(t,e){const r=t.props&&t.props[e];Nt(r)&&r()}function uK(t,e,r,n,o,i,a,u,s){const{p:l,o:{createElement:c}}=s,f=c("div"),d=t.suspense=uR(t,o,n,e,f,r,i,a,u,s);l(null,d.pendingBranch=t.ssContent,f,null,n,d,i,a),d.deps>0?(sh(t,"onPending"),sh(t,"onFallback"),l(null,t.ssFallback,e,r,n,null,i,a),_c(d,t.ssFallback)):d.resolve(!1,!0)}function sK(t,e,r,n,o,i,a,u,{p:s,um:l,o:{createElement:c}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const d=e.ssContent,p=e.ssFallback,{activeBranch:m,pendingBranch:v,isInFallback:g,isHydrating:y}=f;if(v)f.pendingBranch=d,bo(v,d)?(s(v,d,f.hiddenContainer,null,o,f,i,a,u),f.deps<=0?f.resolve():g&&(y||(s(m,p,r,n,o,null,i,a,u),_c(f,p)))):(f.pendingId=Zx++,y?(f.isHydrating=!1,f.activeBranch=v):l(v,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(s(null,d,f.hiddenContainer,null,o,f,i,a,u),f.deps<=0?f.resolve():(s(m,p,r,n,o,null,i,a,u),_c(f,p))):m&&bo(m,d)?(s(m,d,r,n,o,f,i,a,u),f.resolve(!0)):(s(null,d,f.hiddenContainer,null,o,f,i,a,u),f.deps<=0&&f.resolve()));else if(m&&bo(m,d))s(m,d,r,n,o,f,i,a,u),_c(f,d);else if(sh(e,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Zx++,s(null,d,f.hiddenContainer,null,o,f,i,a,u),f.deps<=0)f.resolve();else{const{timeout:h,pendingId:b}=f;h>0?setTimeout(()=>{f.pendingId===b&&f.fallback(p)},h):h===0&&f.fallback(p)}}function uR(t,e,r,n,o,i,a,u,s,l,c=!1){const{p:f,m:d,um:p,n:m,o:{parentNode:v,remove:g}}=l;let y;const h=fK(t);h&&e&&e.pendingBranch&&(y=e.pendingId,e.deps++);const b=t.props?eL(t.props.timeout):void 0,w=i,E={vnode:t,parent:e,parentComponent:r,namespace:a,container:n,hiddenContainer:o,deps:0,pendingId:Zx++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,x=!1){const{vnode:D,activeBranch:A,pendingBranch:P,pendingId:M,effects:F,parentComponent:V,container:U,isInFallback:W}=E;let z=!1;E.isHydrating?E.isHydrating=!1:S||(z=A&&P.transition&&P.transition.mode==="out-in",z&&(A.transition.afterLeave=()=>{M===E.pendingId&&(d(P,U,i===w?m(A):i,0),vm(F),W&&D.ssFallback&&(D.ssFallback.el=null))}),A&&(v(A.el)===U&&(i=m(A)),p(A,V,E,!0),!z&&W&&D.ssFallback&&dr(()=>D.ssFallback.el=null,E)),z||d(P,U,i,0)),_c(E,P),E.pendingBranch=null,E.isInFallback=!1;let tt=E.parent,J=!1;for(;tt;){if(tt.pendingBranch){tt.effects.push(...F),J=!0;break}tt=tt.parent}!J&&!z&&vm(F),E.effects=[],h&&e&&e.pendingBranch&&y===e.pendingId&&(e.deps--,e.deps===0&&!x&&e.resolve()),sh(D,"onResolve")},fallback(S){if(!E.pendingBranch)return;const{vnode:x,activeBranch:D,parentComponent:A,container:P,namespace:M}=E;sh(x,"onFallback");const F=m(D),V=()=>{E.isInFallback&&(f(null,S,P,F,A,null,M,u,s),_c(E,S))},U=S.transition&&S.transition.mode==="out-in";U&&(D.transition.afterLeave=V),E.isInFallback=!0,p(D,A,null,!0),U||V()},move(S,x,D){E.activeBranch&&d(E.activeBranch,S,x,D),E.container=S},next(){return E.activeBranch&&m(E.activeBranch)},registerDep(S,x,D){const A=!!E.pendingBranch;A&&E.deps++;const P=S.vnode.el;S.asyncDep.catch(M=>{Cf(M,S,0)}).then(M=>{if(S.isUnmounted||E.isUnmounted||E.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:F}=S;eC(S,M),P&&(F.el=P);const V=!P&&S.subTree.el;x(S,F,v(P||S.subTree.el),P?null:m(S.subTree),E,a,D),V&&(F.placeholder=null,g(V)),X1(S,F.el),A&&--E.deps===0&&E.resolve()})},unmount(S,x){E.isUnmounted=!0,E.activeBranch&&p(E.activeBranch,r,S,x),E.pendingBranch&&p(E.pendingBranch,r,S,x)}};return E}function lK(t,e,r,n,o,i,a,u,s){const l=e.suspense=uR(e,n,r,t.parentNode,document.createElement("div"),null,o,i,a,u,!0),c=s(t,l.pendingBranch=e.ssContent,r,l,i,a);return l.deps===0&&l.resolve(!1,!0),c}function cK(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=IO(n?r.default:r),t.ssFallback=n?IO(r.fallback):or(gr)}function IO(t){let e;if(Nt(t)){const r=Wc&&t._c;r&&(t._d=!1,lh()),t=t(),r&&(t._d=!0,e=vn,lR())}return Bt(t)&&(t=qq(t)),t=Tn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function sR(t,e){e&&e.pendingBranch?Bt(t)?e.effects.push(...t):e.effects.push(t):vm(t)}function _c(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t;let o=e.el;for(;!o&&e.component;)e=e.component.subTree,o=e.el;r.el=o,n&&n.subTree===r&&(n.vnode.el=o,X1(n,o))}function fK(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Xr=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),gr=Symbol.for("v-cmt"),kc=Symbol.for("v-stc"),Pp=[];let vn=null;function lh(t=!1){Pp.push(vn=t?null:[])}function lR(){Pp.pop(),vn=Pp[Pp.length-1]||null}let Wc=1;function Cm(t,e=!1){Wc+=t,t<0&&vn&&e&&(vn.hasOnce=!0)}function cR(t){return t.dynamicChildren=Wc>0?vn||wc:null,lR(),Wc>0&&vn&&vn.push(t),t}function dK(t,e,r,n,o,i){return cR(dR(t,e,r,n,o,i,!0))}function Jx(t,e,r,n,o){return cR(or(t,e,r,n,o,!0))}function Ws(t){return t?t.__v_isVNode===!0:!1}function bo(t,e){return t.type===e.type&&t.key===e.key}const fR=({key:t})=>t??null,B0=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ze(t)||Ar(t)||Nt(t)?{i:Mr,r:t,k:e,f:!!r}:t:null);function dR(t,e=null,r=null,n=0,o=null,i=t===Xr?0:1,a=!1,u=!1){const s={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fR(e),ref:e&&B0(e),scopeId:AL,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Mr};return u?(aD(s,r),i&128&&t.normalize(s)):r&&(s.shapeFlag|=ze(r)?8:16),Wc>0&&!a&&vn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&vn.push(s),s}const or=pK;function pK(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===HL)&&(t=gr),Ws(t)){const u=Xi(t,e,!0);return r&&aD(u,r),Wc>0&&!i&&vn&&(u.shapeFlag&6?vn[vn.indexOf(t)]=u:vn.push(u)),u.patchFlag=-2,u}if(xK(t)&&(t=t.__vccOpts),e){e=hK(e);let{class:u,style:s}=e;u&&!ze(u)&&(e.class=U1(u)),Be(s)&&(q1(s)&&!Bt(s)&&(s=Pr({},s)),e.style=V1(s))}const a=ze(t)?1:xm(t)?128:_L(t)?64:Be(t)?4:Nt(t)?2:0;return dR(t,e,r,n,o,a,i,!0)}function hK(t){return t?q1(t)||JL(t)?Pr({},t):t:null}function Xi(t,e,r=!1,n=!1){const{props:o,ref:i,patchFlag:a,children:u,transition:s}=t,l=e?gK(o||{},e):o,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&fR(l),ref:e&&e.ref?r&&i?Bt(i)?i.concat(B0(e)):[i,B0(e)]:B0(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:u,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Xr?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:s,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Xi(t.ssContent),ssFallback:t.ssFallback&&Xi(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return s&&n&&Uc(c,s.clone(c)),c}function pR(t=" ",e=0){return or(ws,null,t,e)}function P6t(t,e){const r=or(kc,null,t);return r.staticCount=e,r}function j6t(t="",e=!1){return e?(lh(),Jx(gr,null,t)):or(gr,null,t)}function Tn(t){return t==null||typeof t=="boolean"?or(gr):Bt(t)?or(Xr,null,t.slice()):Ws(t)?Pa(t):or(ws,null,String(t))}function Pa(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Xi(t)}function aD(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Bt(e))r=16;else if(typeof e=="object")if(n&65){const o=e.default;o&&(o._c&&(o._d=!1),aD(t,o()),o._c&&(o._d=!0));return}else{r=32;const o=e._;!o&&!JL(e)?e._ctx=Mr:o===3&&Mr&&(Mr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Nt(e)?(e={default:e,_ctx:Mr},r=32):(e=String(e),n&64?(r=16,e=[pR(e)]):r=8);t.children=e,t.shapeFlag|=r}function gK(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const o in n)if(o==="class")e.class!==n.class&&(e.class=U1([e.class,n.class]));else if(o==="style")e.style=V1([e.style,n.style]);else if(sg(o)){const i=e[o],a=n[o];a&&i!==a&&!(Bt(i)&&i.includes(a))&&(e[o]=i?[].concat(i,a):a)}else o!==""&&(e[o]=n[o])}return e}function pn(t,e,r,n=null){jo(t,e,7,[r,n])}const vK=qL();let mK=0;function yK(t,e,r){const n=t.type,o=(e?e.appContext:t.appContext)||vK,i={uid:mK++,vnode:t,type:n,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new iL(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tR(n,o),emitsOptions:YL(n,o),emit:null,emitted:null,propsDefaults:_e,inheritAttrs:n.inheritAttrs,ctx:_e,data:_e,props:_e,attrs:_e,slots:_e,refs:_e,setupState:_e,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=Wq.bind(null,i),t.ce&&t.ce(i),i}let Rr=null;const ll=()=>Rr||Mr;let Sm,Qx;{const t=$1(),e=(r,n)=>{let o;return(o=t[r])||(o=t[r]=[]),o.push(n),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};Sm=e("__VUE_INSTANCE_SETTERS__",r=>Rr=r),Qx=e("__VUE_SSR_SETTERS__",r=>Gc=r)}const Gs=t=>{const e=Rr;return Sm(t),t.scope.on(),()=>{t.scope.off(),Sm(e)}},tC=()=>{Rr&&Rr.scope.off(),Sm(null)};function hR(t){return t.vnode.shapeFlag&4}let Gc=!1;function bK(t,e=!1,r=!1){e&&Qx(e);const{props:n,children:o}=t.vnode,i=hR(t);Zq(t,n,i,e),eK(t,o,r||e);const a=i?wK(t,e):void 0;return e&&Qx(!1),a}function wK(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Fq);const{setup:n}=r;if(n){qi();const o=t.setupContext=n.length>1?vR(t):null,i=Gs(t),a=cg(n,t,0,[t.props,o]),u=V3(a);if(Ki(),i(),(u||t.sp)&&!qa(t)&&Q3(t),u){if(a.then(tC,tC),e)return a.then(s=>{eC(t,s)}).catch(s=>{Cf(s,t,0)});t.asyncDep=a}else eC(t,a)}else gR(t)}function eC(t,e,r){Nt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Be(e)&&(t.setupState=EL(e)),gR(t)}function gR(t,e,r){const n=t.type;t.render||(t.render=n.render||Do);{const o=Gs(t);qi();try{Pq(t)}finally{Ki(),o()}}}const EK={get(t,e){return Yr(t,"get",""),t[e]}};function vR(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,EK),slots:t.slots,emit:t.emit,expose:e}}function Z1(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(EL(QG(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Fp)return Fp[r](t)},has(e,r){return r in e||r in Fp}})):t.proxy}function rC(t,e=!0){return Nt(t)?t.displayName||t.name:t.name||e&&t.__name}function xK(t){return Nt(t)&&"__vccOpts"in t}const CK=(t,e)=>uq(t,e,Gc);function SK(t,e,r){try{Cm(-1);const n=arguments.length;return n===2?Be(e)&&!Bt(e)?Ws(e)?or(t,null,[e]):or(t,e):or(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ws(r)&&(r=[r]),or(t,e,r))}finally{Cm(1)}}const DK="3.5.25";let nC;const LO=typeof window<"u"&&window.trustedTypes;if(LO)try{nC=LO.createPolicy("vue",{createHTML:t=>t})}catch{}const mR=nC?t=>nC.createHTML(t):t=>t,AK="http://www.w3.org/2000/svg",OK="http://www.w3.org/1998/Math/MathML",Bi=typeof document<"u"?document:null,RO=Bi&&Bi.createElement("template"),_K={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const o=e==="svg"?Bi.createElementNS(AK,t):e==="mathml"?Bi.createElementNS(OK,t):r?Bi.createElement(t,{is:r}):Bi.createElement(t);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>Bi.createTextNode(t),createComment:t=>Bi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Bi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,i){const a=r?r.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{RO.innerHTML=mR(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const u=RO.content;if(n==="svg"||n==="mathml"){const s=u.firstChild;for(;s.firstChild;)u.appendChild(s.firstChild);u.removeChild(s)}e.insertBefore(u,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},da="transition",Kf="animation",ch=Symbol("_vtc"),yR={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},kK=Pr({},BL,yR),TK=t=>(t.displayName="Transition",t.props=kK,t),N6t=TK((t,{slots:e})=>SK(mq,BK(t),e)),zu=(t,e=[])=>{Bt(t)?t.forEach(r=>r(...e)):t&&t(...e)},MO=t=>t?Bt(t)?t.some(e=>e.length>1):t.length>1:!1;function BK(t){const e={};for(const F in t)F in yR||(e[F]=t[F]);if(t.css===!1)return e;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:u=`${r}-enter-to`,appearFromClass:s=i,appearActiveClass:l=a,appearToClass:c=u,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=t,m=FK(o),v=m&&m[0],g=m&&m[1],{onBeforeEnter:y,onEnter:h,onEnterCancelled:b,onLeave:w,onLeaveCancelled:E,onBeforeAppear:S=y,onAppear:x=h,onAppearCancelled:D=b}=e,A=(F,V,U,W)=>{F._enterCancelled=W,Hu(F,V?c:u),Hu(F,V?l:a),U&&U()},P=(F,V)=>{F._isLeaving=!1,Hu(F,f),Hu(F,p),Hu(F,d),V&&V()},M=F=>(V,U)=>{const W=F?x:h,z=()=>A(V,F,U);zu(W,[V,z]),zO(()=>{Hu(V,F?s:i),Di(V,F?c:u),MO(W)||HO(V,n,v,z)})};return Pr(e,{onBeforeEnter(F){zu(y,[F]),Di(F,i),Di(F,a)},onBeforeAppear(F){zu(S,[F]),Di(F,s),Di(F,l)},onEnter:M(!1),onAppear:M(!0),onLeave(F,V){F._isLeaving=!0;const U=()=>P(F,V);Di(F,f),F._enterCancelled?(Di(F,d),UO(F)):(UO(F),Di(F,d)),zO(()=>{F._isLeaving&&(Hu(F,f),Di(F,p),MO(w)||HO(F,n,g,U))}),zu(w,[F,U])},onEnterCancelled(F){A(F,!1,void 0,!0),zu(b,[F])},onAppearCancelled(F){A(F,!0,void 0,!0),zu(D,[F])},onLeaveCancelled(F){P(F),zu(E,[F])}})}function FK(t){if(t==null)return null;if(Be(t))return[v2(t.enter),v2(t.leave)];{const e=v2(t);return[e,e]}}function v2(t){return eL(t)}function Di(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[ch]||(t[ch]=new Set)).add(e)}function Hu(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[ch];r&&(r.delete(e),r.size||(t[ch]=void 0))}function zO(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let PK=0;function HO(t,e,r,n){const o=t._endId=++PK,i=()=>{o===t._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:a,timeout:u,propCount:s}=jK(t,e);if(!a)return n();const l=a+"end";let c=0;const f=()=>{t.removeEventListener(l,d),i()},d=p=>{p.target===t&&++c>=s&&f()};setTimeout(()=>{c<s&&f()},u+1),t.addEventListener(l,d)}function jK(t,e){const r=window.getComputedStyle(t),n=m=>(r[m]||"").split(", "),o=n(`${da}Delay`),i=n(`${da}Duration`),a=$O(o,i),u=n(`${Kf}Delay`),s=n(`${Kf}Duration`),l=$O(u,s);let c=null,f=0,d=0;e===da?a>0&&(c=da,f=a,d=i.length):e===Kf?l>0&&(c=Kf,f=l,d=s.length):(f=Math.max(a,l),c=f>0?a>l?da:Kf:null,d=c?c===da?i.length:s.length:0);const p=c===da&&/\b(?:transform|all)(?:,|$)/.test(n(`${da}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function $O(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,n)=>VO(r)+VO(t[n])))}function VO(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function UO(t){return(t?t.ownerDocument:document).body.offsetHeight}function NK(t,e,r){const n=t[ch];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Dm=Symbol("_vod"),bR=Symbol("_vsh"),I6t={name:"show",beforeMount(t,{value:e},{transition:r}){t[Dm]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Yf(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Yf(t,!0),n.enter(t)):n.leave(t,()=>{Yf(t,!1)}):Yf(t,e))},beforeUnmount(t,{value:e}){Yf(t,e)}};function Yf(t,e){t.style.display=e?t[Dm]:"none",t[bR]=!e}const wR=Symbol("");function L6t(t){const e=ll();if(!e)return;const r=e.ut=(o=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>Am(i,o))},n=()=>{const o=t(e.proxy);e.ce?Am(e.ce,o):oC(e.subTree,o),r(o)};RL(()=>{vm(n)}),dg(()=>{Oc(n,Do,{flush:"post"});const o=new MutationObserver(n);o.observe(e.subTree.el.parentNode,{childList:!0}),eD(()=>o.disconnect())})}function oC(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{oC(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Am(t.el,e);else if(t.type===Xr)t.children.forEach(r=>oC(r,e));else if(t.type===kc){let{el:r,anchor:n}=t;for(;r&&(Am(r,e),r!==n);)r=r.nextSibling}}function Am(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const o in e){const i=BG(e[o]);r.setProperty(`--${o}`,i),n+=`--${o}: ${i};`}r[wR]=n}}const IK=/(?:^|;)\s*display\s*:/;function LK(t,e,r){const n=t.style,o=ze(r);let i=!1;if(r&&!o){if(e)if(ze(e))for(const a of e.split(";")){const u=a.slice(0,a.indexOf(":")).trim();r[u]==null&&F0(n,u,"")}else for(const a in e)r[a]==null&&F0(n,a,"");for(const a in r)a==="display"&&(i=!0),F0(n,a,r[a])}else if(o){if(e!==r){const a=n[wR];a&&(r+=";"+a),n.cssText=r,i=IK.test(r)}}else e&&t.removeAttribute("style");Dm in t&&(t[Dm]=i?n.display:"",t[bR]&&(n.display="none"))}const WO=/\s*!important$/;function F0(t,e,r){if(Bt(r))r.forEach(n=>F0(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=RK(t,e);WO.test(r)?t.setProperty(Ou(n),r.replace(WO,""),"important"):t[n]=r}}const GO=["Webkit","Moz","ms"],m2={};function RK(t,e){const r=m2[e];if(r)return r;let n=io(e);if(n!=="filter"&&n in t)return m2[e]=n;n=H1(n);for(let o=0;o<GO.length;o++){const i=GO[o]+n;if(i in t)return m2[e]=i}return e}const qO="http://www.w3.org/1999/xlink";function KO(t,e,r,n,o,i=kG(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(qO,e.slice(6,e.length)):t.setAttributeNS(qO,e,r):r==null||i&&!rL(r)?t.removeAttribute(e):t.setAttribute(e,i?"":ra(r)?String(r):r)}function YO(t,e,r,n,o){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?mR(r):r);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const u=i==="OPTION"?t.getAttribute("value")||"":t.value,s=r==null?t.type==="checkbox"?"on":"":String(r);(u!==s||!("_value"in t))&&(t.value=s),r==null&&t.removeAttribute(e),t._value=r;return}let a=!1;if(r===""||r==null){const u=typeof t[e];u==="boolean"?r=rL(r):r==null&&u==="string"?(r="",a=!0):u==="number"&&(r=0,a=!0)}try{t[e]=r}catch{}a&&t.removeAttribute(o||e)}function ac(t,e,r,n){t.addEventListener(e,r,n)}function MK(t,e,r,n){t.removeEventListener(e,r,n)}const XO=Symbol("_vei");function zK(t,e,r,n,o=null){const i=t[XO]||(t[XO]={}),a=i[e];if(n&&a)a.value=n;else{const[u,s]=HK(e);if(n){const l=i[e]=UK(n,o);ac(t,u,l,s)}else a&&(MK(t,u,a,s),i[e]=void 0)}}const ZO=/(?:Once|Passive|Capture)$/;function HK(t){let e;if(ZO.test(t)){e={};let n;for(;n=t.match(ZO);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ou(t.slice(2)),e]}let y2=0;const $K=Promise.resolve(),VK=()=>y2||($K.then(()=>y2=0),y2=Date.now());function UK(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;jo(WK(n,r.value),e,5,[n])};return r.value=t,r.attached=VK(),r}function WK(t,e){if(Bt(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>o=>!o._stopped&&n&&n(o))}else return e}const JO=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,GK=(t,e,r,n,o,i)=>{const a=o==="svg";e==="class"?NK(t,n,a):e==="style"?LK(t,r,n):sg(e)?H3(e)||zK(t,e,r,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):qK(t,e,n,a))?(YO(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&KO(t,e,n,a,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!ze(n))?YO(t,io(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),KO(t,e,n,a))};function qK(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&JO(e)&&Nt(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return JO(e)&&ze(r)?!1:e in t}const QO=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Bt(e)?r=>Cc(e,r):e};function KK(t){t.target.composing=!0}function t7(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const b2=Symbol("_assign");function e7(t,e,r){return e&&(t=t.trim()),r&&(t=U3(t)),t}const R6t={created(t,{modifiers:{lazy:e,trim:r,number:n}},o){t[b2]=QO(o);const i=n||o.props&&o.props.type==="number";ac(t,e?"change":"input",a=>{a.target.composing||t[b2](e7(t.value,r,i))}),(r||i)&&ac(t,"change",()=>{t.value=e7(t.value,r,i)}),e||(ac(t,"compositionstart",KK),ac(t,"compositionend",t7),ac(t,"change",t7))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:o,number:i}},a){if(t[b2]=QO(a),t.composing)return;const u=(i||t.type==="number")&&!/^0\d/.test(t.value)?U3(t.value):t.value,s=e??"";u!==s&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||o&&t.value.trim()===s)||(t.value=s))}},YK=["ctrl","shift","alt","meta"],XK={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>YK.some(r=>t[`${r}Key`]&&!e.includes(r))},M6t=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=((o,...i)=>{for(let a=0;a<e.length;a++){const u=XK[e[a]];if(u&&u(o,e))return}return t(o,...i)}))},ZK={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},z6t=(t,e)=>{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=(o=>{if(!("key"in o))return;const i=Ou(o.key);if(e.some(a=>a===i||ZK[a]===i))return t(o)}))},ER=Pr({patchProp:GK},_K);let jp,r7=!1;function JK(){return jp||(jp=nK(ER))}function QK(){return jp=r7?jp:oK(ER),r7=!0,jp}const H6t=((...t)=>{const e=JK().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=CR(n);if(!o)return;const i=e._component;!Nt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=r(o,!1,xR(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},e}),$6t=((...t)=>{const e=QK().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=CR(n);if(o)return r(o,!0,xR(o))},e});function xR(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function CR(t){return ze(t)?document.querySelector(t):t}var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tY(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function cl(t){var e={exports:{}};return t(e,e.exports),e.exports}var pa,P0,xv=function(t){return t&&t.Math==Math&&t},$t=xv(typeof globalThis=="object"&&globalThis)||xv(typeof window=="object"&&window)||xv(typeof self=="object"&&self)||xv(typeof De=="object"&&De)||(function(){return this})()||Function("return this")(),uD=Function.prototype,n7=uD.apply,eY=uD.bind,o7=uD.call,SR=typeof Reflect=="object"&&Reflect.apply||(eY?o7.bind(n7):function(){return o7.apply(n7,arguments)}),DR=Function.prototype,iC=DR.bind,aC=DR.call,rY=iC&&iC.bind(aC),Ne=iC?function(t){return t&&rY(aC,t)}:function(t){return t&&function(){return aC.apply(t,arguments)}},Hr=function(t){return typeof t=="function"},Cn=function(t){try{return!!t()}catch{return!0}},bn=!Cn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Xf=Function.prototype.call,jn=Xf.bind?Xf.bind(Xf):function(){return Xf.apply(Xf,arguments)},i7={}.propertyIsEnumerable,a7=Object.getOwnPropertyDescriptor,nY=a7&&!i7.call({1:2},1)?function(t){var e=a7(this,t);return!!e&&e.enumerable}:i7,sD={f:nY},Oo=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},oY=Ne({}.toString),iY=Ne("".slice),Es=function(t){return iY(oY(t),8,-1)},w2=$t.Object,aY=Ne("".split),AR=Cn((function(){return!w2("z").propertyIsEnumerable(0)}))?function(t){return Es(t)=="String"?aY(t,""):w2(t)}:w2,uY=$t.TypeError,lD=function(t){if(t==null)throw uY("Can't call method on "+t);return t},vi=function(t){return AR(lD(t))},to=function(t){return typeof t=="object"?t!==null:Hr(t)},Bn={},u7=function(t){return Hr(t)?t:void 0},Sf=function(t,e){return arguments.length<2?u7(Bn[t])||u7($t[t]):Bn[t]&&Bn[t][e]||$t[t]&&$t[t][e]},fh=Ne({}.isPrototypeOf),E2=Sf("navigator","userAgent")||"",s7=$t.process,l7=$t.Deno,c7=s7&&s7.versions||l7&&l7.version,f7=c7&&c7.v8;f7&&(P0=(pa=f7.split("."))[0]>0&&pa[0]<4?1:+(pa[0]+pa[1])),!P0&&E2&&(!(pa=E2.match(/Edge\/(\d+)/))||pa[1]>=74)&&(pa=E2.match(/Chrome\/(\d+)/))&&(P0=+pa[1]);var Cv,Om=P0,qo=!!Object.getOwnPropertySymbols&&!Cn((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Om&&Om<41})),cD=qo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sY=$t.Object,Tc=cD?function(t){return typeof t=="symbol"}:function(t){var e=Sf("Symbol");return Hr(e)&&fh(e.prototype,sY(t))},lY=$t.String,uC=function(t){try{return lY(t)}catch{return"Object"}},cY=$t.TypeError,fD=function(t){if(Hr(t))return t;throw cY(uC(t)+" is not a function")},_m=function(t,e){var r=t[e];return r==null?void 0:fD(r)},fY=$t.TypeError,dY=Object.defineProperty,Ka=$t["__core-js_shared__"]||(function(t,e){try{dY($t,t,{value:e,configurable:!0,writable:!0})}catch{$t[t]=e}return e})("__core-js_shared__",{}),fl=cl((function(t){(t.exports=function(e,r){return Ka[e]||(Ka[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),pY=$t.Object,pg=function(t){return pY(lD(t))},hY=Ne({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return hY(pg(t),e)},gY=0,vY=Math.random(),mY=Ne(1 .toString),km=function(t){return"Symbol("+(t===void 0?"":t)+")_"+mY(++gY+vY,36)},Zf=fl("wks"),xs=$t.Symbol,d7=xs&&xs.for,yY=cD?xs:xs&&xs.withoutSetter||km,rn=function(t){if(!ne(Zf,t)||!qo&&typeof Zf[t]!="string"){var e="Symbol."+t;qo&&ne(xs,t)?Zf[t]=xs[t]:Zf[t]=cD&&d7?d7(e):yY(e)}return Zf[t]},bY=$t.TypeError,wY=rn("toPrimitive"),EY=function(t,e){if(!to(t)||Tc(t))return t;var r,n=_m(t,wY);if(n){if(r=jn(n,t,e),!to(r)||Tc(r))return r;throw bY("Can't convert object to primitive value")}return(function(o,i){var a,u;if(Hr(a=o.toString)&&!to(u=jn(a,o))||Hr(a=o.valueOf)&&!to(u=jn(a,o)))return u;throw fY("Can't convert object to primitive value")})(t)},Df=function(t){var e=EY(t,"string");return Tc(e)?e:e+""},sC=$t.document,xY=to(sC)&&to(sC.createElement),OR=function(t){return xY?sC.createElement(t):{}},_R=!bn&&!Cn((function(){return Object.defineProperty(OR("div"),"a",{get:function(){return 7}}).a!=7})),p7=Object.getOwnPropertyDescriptor,CY=bn?p7:function(t,e){if(t=vi(t),e=Df(e),_R)try{return p7(t,e)}catch{}if(ne(t,e))return Oo(!jn(sD.f,t,e),t[e])},J1={f:CY},SY=/#|\.prototype\./,hg=function(t,e){var r=AY[DY(t)];return r==_Y||r!=OY&&(Hr(e)?Cn(e):!!e)},DY=hg.normalize=function(t){return String(t).replace(SY,".").toLowerCase()},AY=hg.data={},OY=hg.NATIVE="N",_Y=hg.POLYFILL="P",kY=hg,h7=Ne(Ne.bind),dD=function(t,e){return fD(t),e===void 0?t:h7?h7(t,e):function(){return t.apply(e,arguments)}},TY=$t.String,BY=$t.TypeError,Ln=function(t){if(to(t))return t;throw BY(TY(t)+" is not an object")},FY=$t.TypeError,g7=Object.defineProperty,PY=bn?g7:function(t,e,r){if(Ln(t),e=Df(e),Ln(r),_R)try{return g7(t,e,r)}catch{}if("get"in r||"set"in r)throw FY("Accessors not supported");return"value"in r&&(t[e]=r.value),t},_u={f:PY},sn=bn?function(t,e,r){return _u.f(t,e,Oo(1,r))}:function(t,e,r){return t[e]=r,t},jY=J1.f,NY=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return SR(t,this,arguments)};return e.prototype=t.prototype,e},Pi=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,m=f?$t:d?$t[c]:($t[c]||{}).prototype,v=f?Bn:Bn[c]||sn(Bn,c,{})[c],g=v.prototype;for(o in e)r=!kY(f?o:c+(d?".":"#")+o,t.forced)&&m&&ne(m,o),a=v[o],r&&(u=t.noTargetGet?(l=jY(m,o))&&l.value:m[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?dD(i,$t):t.wrap&&r?NY(i):p&&Hr(i)?Ne(i):i,(t.sham||i&&i.sham||a&&a.sham)&&sn(s,"sham",!0),sn(v,o,s),p&&(ne(Bn,n=c+"Prototype")||sn(Bn,n,{}),sn(Bn[n],o,i),t.real&&g&&!g[o]&&sn(g,o,i)))},v7=fl("keys"),Q1=function(t){return v7[t]||(v7[t]=km(t))},IY=!Cn((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),m7=Q1("IE_PROTO"),lC=$t.Object,LY=lC.prototype,Tm=IY?lC.getPrototypeOf:function(t){var e=pg(t);if(ne(e,m7))return e[m7];var r=e.constructor;return Hr(r)&&e instanceof r?r.prototype:e instanceof lC?LY:null},RY=$t.String,MY=$t.TypeError,Bm=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,r={};try{(t=Ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Ln(n),(function(i){if(typeof i=="object"||Hr(i))return i;throw MY("Can't set "+RY(i)+" as a prototype")})(o),e?t(n,o):n.__proto__=o,n}})():void 0),zY=Math.ceil,HY=Math.floor,pD=function(t){var e=+t;return e!=e||e===0?0:(e>0?HY:zY)(e)},$Y=Math.max,VY=Math.min,cC=function(t,e){var r=pD(t);return r<0?$Y(r+e,0):VY(r,e)},UY=Math.min,gg=function(t){return(e=t.length)>0?UY(pD(e),9007199254740991):0;var e},WY=function(t){return function(e,r,n){var o,i=vi(e),a=gg(i),u=cC(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},GY={indexOf:WY(!1)},vg={},qY=GY.indexOf,y7=Ne([].push),kR=function(t,e){var r,n=vi(t),o=0,i=[];for(r in n)!ne(vg,r)&&ne(n,r)&&y7(i,r);for(;e.length>o;)ne(n,r=e[o++])&&(~qY(i,r)||y7(i,r));return i},Fm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],KY=Fm.concat("length","prototype"),YY=Object.getOwnPropertyNames||function(t){return kR(t,KY)},hD={f:YY},j0={f:Object.getOwnPropertySymbols},XY=Ne([].concat),ZY=Sf("Reflect","ownKeys")||function(t){var e=hD.f(Ln(t)),r=j0.f;return r?XY(e,r(t)):e},gD=Object.keys||function(t){return kR(t,Fm)},JY=bn?Object.defineProperties:function(t,e){Ln(t);for(var r,n=vi(e),o=gD(e),i=o.length,a=0;i>a;)_u.f(t,r=o[a++],n[r]);return t},QY=Sf("document","documentElement"),TR=Q1("IE_PROTO"),x2=function(){},BR=function(t){return"<script>"+t+"<\/script>"},b7=function(t){t.write(BR("")),t.close();var e=t.parentWindow.Object;return t=null,e},N0=function(){try{Cv=new ActiveXObject("htmlfile")}catch{}var t,e;N0=typeof document<"u"?document.domain&&Cv?b7(Cv):((e=OR("iframe")).style.display="none",QY.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(BR("document.F=Object")),t.close(),t.F):b7(Cv);for(var r=Fm.length;r--;)delete N0.prototype[Fm[r]];return N0()};vg[TR]=!0;var Zi=Object.create||function(t,e){var r;return t!==null?(x2.prototype=Ln(t),r=new x2,x2.prototype=null,r[TR]=t):r=N0(),e===void 0?r:JY(r,e)},fC=function(t,e,r){var n=Df(e);n in t?_u.f(t,n,Oo(0,r)):t[n]=r},tX=$t.Array,eX=Math.max,FR=function(t,e,r){for(var n=gg(t),o=cC(e,n),i=cC(n,n),a=tX(eX(i-o,0)),u=0;o<i;o++,u++)fC(a,u,t[o]);return a.length=u,a},rX=Ne("".replace),nX=Ne("".split),oX=Ne([].join),dC=String(Error("zxcasd").stack),PR=/\n\s*at [^:]*:[^\n]*/,iX=PR.test(dC),aX=/@[^\n]*\n/.test(dC)&&!/zxcasd/.test(dC),uX=function(t,e){if(typeof t!="string")return t;if(iX)for(;e--;)t=rX(t,PR,"");else if(aX)return oX(FR(nX(t,`
`),e),`
`);return t},sX=function(t,e){to(e)&&"cause"in e&&sn(t,"cause",e.cause)},Vi={},lX=rn("iterator"),cX=Array.prototype,jR={};jR[rn("toStringTag")]="z";var vD=String(jR)==="[object z]",fX=rn("toStringTag"),dX=$t.Object,pX=Es((function(){return arguments})())=="Arguments",mg=vD?Es:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=dX(t),fX))=="string"?r:pX?Es(e):(n=Es(e))=="Object"&&Hr(e.callee)?"Arguments":n},hX=rn("iterator"),w7=function(t){if(t!=null)return _m(t,hX)||_m(t,"@@iterator")||Vi[mg(t)]},gX=$t.TypeError,E7=function(t,e,r){var n,o;Ln(t);try{if(!(n=_m(t,"return"))){if(e==="throw")throw r;return r}n=jn(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Ln(n),r},vX=$t.TypeError,I0=function(t,e){this.stopped=t,this.result=e},x7=I0.prototype,mX=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=dD(e,c),v=function(y){return n&&E7(n,"normal",y),new I0(!0,y)},g=function(y){return f?(Ln(y),p?m(y[0],y[1],v):m(y[0],y[1])):p?m(y,v):m(y)};if(d)n=t;else{if(!(o=w7(t)))throw vX(uC(t)+" is not iterable");if((function(y){return y!==void 0&&(Vi.Array===y||cX[lX]===y)})(o)){for(i=0,a=gg(t);a>i;i++)if((u=g(t[i]))&&fh(x7,u))return u;return new I0(!1)}n=(function(y,h){var b=arguments.length<2?w7(y):h;if(fD(b))return Ln(jn(b,y));throw gX(uC(y)+" is not iterable")})(t,o)}for(s=n.next;!(l=jn(s,n)).done;){try{u=g(l.value)}catch(y){E7(n,"throw",y)}if(typeof u=="object"&&u&&fh(x7,u))return u}return new I0(!1)},yX=$t.String,dh=function(t){if(mg(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yX(t)},bX=function(t,e){return t===void 0?arguments.length<2?"":e:dh(t)},wX=!Cn((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Oo(1,7)),t.stack!==7)})),EX=rn("toStringTag"),Pm=$t.Error,xX=[].push,ph=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=fh(C2,this);Bm?r=Bm(new Pm(void 0),o?Tm(this):C2):(r=o?this:Zi(C2),sn(r,EX,"Error")),sn(r,"message",bX(e,"")),wX&&sn(r,"stack",uX(r.stack,1)),sX(r,n);var i=[];return mX(t,xX,{that:i}),sn(r,"errors",i),r};Bm?Bm(ph,Pm):(function(t,e){for(var r=ZY(e),n=_u.f,o=J1.f,i=0;i<r.length;i++){var a=r[i];ne(t,a)||n(t,a,o(e,a))}})(ph,Pm);var C2=ph.prototype=Zi(Pm.prototype,{constructor:Oo(1,ph),message:Oo(1,""),name:Oo(1,"AggregateError")});Pi({global:!0},{AggregateError:ph});var CX=Ne(Function.toString);Hr(Ka.inspectSource)||(Ka.inspectSource=function(t){return CX(t)});var jm,Np,Nm,NR=Ka.inspectSource,C7=$t.WeakMap,SX=Hr(C7)&&/native code/.test(NR(C7)),pC=$t.TypeError,DX=$t.WeakMap;if(SX||Ka.state){var $u=Ka.state||(Ka.state=new DX),AX=Ne($u.get),S7=Ne($u.has),OX=Ne($u.set);jm=function(t,e){if(S7($u,t))throw new pC("Object already initialized");return e.facade=t,OX($u,t,e),e},Np=function(t){return AX($u,t)||{}},Nm=function(t){return S7($u,t)}}else{var Ol=Q1("state");vg[Ol]=!0,jm=function(t,e){if(ne(t,Ol))throw new pC("Object already initialized");return e.facade=t,sn(t,Ol,e),e},Np=function(t){return ne(t,Ol)?t[Ol]:{}},Nm=function(t){return ne(t,Ol)}}var Ma,D7,A7,Af={set:jm,get:Np,has:Nm,enforce:function(t){return Nm(t)?Np(t):jm(t,{})},getterFor:function(t){return function(e){var r;if(!to(e)||(r=Np(e)).type!==t)throw pC("Incompatible receiver, "+t+" required");return r}}},IR=Function.prototype,_X=bn&&Object.getOwnPropertyDescriptor,O7=ne(IR,"name"),kX={PROPER:O7&&(function(){}).name==="something",CONFIGURABLE:O7&&(!bn||bn&&_X(IR,"name").configurable)},Im=function(t,e,r,n){sn(t,e,r)},hC=rn("iterator"),LR=!1;[].keys&&("next"in(A7=[].keys())?(D7=Tm(Tm(A7)))!==Object.prototype&&(Ma=D7):LR=!0);var TX=Ma==null||Cn((function(){var t={};return Ma[hC].call(t)!==t}));Ma=TX?{}:Zi(Ma),Hr(Ma[hC])||Im(Ma,hC,(function(){return this}));var RR={IteratorPrototype:Ma,BUGGY_SAFARI_ITERATORS:LR},BX=vD?{}.toString:function(){return"[object "+mg(this)+"]"},FX=_u.f,_7=rn("toStringTag"),Lm=function(t,e,r,n){if(t){var o=r?t:t.prototype;ne(o,_7)||FX(o,_7,{configurable:!0,value:e}),n&&!vD&&sn(o,"toString",BX)}},PX=RR.IteratorPrototype,jX=function(){return this},NX=kX.PROPER,S2=RR.BUGGY_SAFARI_ITERATORS,IX=rn("iterator"),LX=function(){return this},MR=function(t,e,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Zi(PX,{next:Oo(1,h)}),Lm(g,w,!1,!0),Vi[w]=jX})(r,e,n);var u,s,l=function(g){if(g===o&&m)return m;if(!S2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[IX]||d["@@iterator"]||o&&d[o],m=!S2&&p||l(o),v=e=="Array"&&d.entries||p;return v&&(u=Tm(v.call(new t)))!==Object.prototype&&u.next&&(Lm(u,c,!0,!0),Vi[c]=LX),NX&&o=="values"&&p&&p.name!=="values"&&(f=!0,m=function(){return jn(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Pi({target:e,proto:!0,forced:S2||f},s)),Vi[e]=m,s},RX=Af.set,MX=Af.getterFor("Array Iterator");MR(Array,"Array",(function(t,e){RX(this,{type:"Array Iterator",target:vi(t),index:0,kind:e})}),(function(){var t=MX(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),Vi.Arguments=Vi.Array;var zX=Ne("".charAt),k7=Ne("".charCodeAt),HX=Ne("".slice),$X=function(t){return function(e,r){var n,o,i=dh(lD(e)),a=pD(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=k7(i,a))<55296||n>56319||a+1===u||(o=k7(i,a+1))<56320||o>57343?t?zX(i,a):n:t?HX(i,a,a+2):o-56320+(n-55296<<10)+65536}},VX={charAt:$X(!0)}.charAt,UX=Af.set,WX=Af.getterFor("String Iterator");MR(String,"String",(function(t){UX(this,{type:"String Iterator",string:dh(t),index:0})}),(function(){var t,e=WX(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=VX(r,n),e.index+=t.length,{value:t,done:!1})}));var GX=Bn.AggregateError,T7=rn("toStringTag");for(var D2 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 B7=$t[D2],A2=B7&&B7.prototype;A2&&mg(A2)!==T7&&sn(A2,T7,D2),Vi[D2]=Vi.Array}var ha,L0,qX=GX,Sv=function(t){return t&&t.Math==Math&&t},Lt=Sv(typeof globalThis=="object"&&globalThis)||Sv(typeof window=="object"&&window)||Sv(typeof self=="object"&&self)||Sv(typeof De=="object"&&De)||(function(){return this})()||Function("return this")(),jr=function(t){try{return!!t()}catch{return!0}},li=!jr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Jf=Function.prototype.call,zr=Jf.bind?Jf.bind(Jf):function(){return Jf.apply(Jf,arguments)},F7={}.propertyIsEnumerable,P7=Object.getOwnPropertyDescriptor,KX=P7&&!F7.call({1:2},1)?function(t){var e=P7(this,t);return!!e&&e.enumerable}:F7,YX={f:KX},Ya=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},zR=Function.prototype,gC=zR.bind,vC=zR.call,XX=gC&&gC.bind(vC),we=gC?function(t){return t&&XX(vC,t)}:function(t){return t&&function(){return vC.apply(t,arguments)}},ZX=we({}.toString),JX=we("".slice),Cs=function(t){return JX(ZX(t),8,-1)},O2=Lt.Object,QX=we("".split),HR=jr((function(){return!O2("z").propertyIsEnumerable(0)}))?function(t){return Cs(t)=="String"?QX(t,""):O2(t)}:O2,tZ=Lt.TypeError,tb=function(t){if(t==null)throw tZ("Can't call method on "+t);return t},Of=function(t){return HR(tb(t))},_r=function(t){return typeof t=="function"},Qo=function(t){return typeof t=="object"?t!==null:_r(t)},eZ=function(t){return _r(t)?t:void 0},yg=function(t,e){return arguments.length<2?eZ(Lt[t]):Lt[t]&&Lt[t][e]},Rm=we({}.isPrototypeOf),_2=yg("navigator","userAgent")||"",j7=Lt.process,N7=Lt.Deno,I7=j7&&j7.versions||N7&&N7.version,L7=I7&&I7.v8;L7&&(L0=(ha=L7.split("."))[0]>0&&ha[0]<4?1:+(ha[0]+ha[1])),!L0&&_2&&(!(ha=_2.match(/Edge\/(\d+)/))||ha[1]>=74)&&(ha=_2.match(/Chrome\/(\d+)/))&&(L0=+ha[1]);var R7=L0,mC=!!Object.getOwnPropertySymbols&&!jr((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&R7&&R7<41})),mD=mC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rZ=Lt.Object,yC=mD?function(t){return typeof t=="symbol"}:function(t){var e=yg("Symbol");return _r(e)&&Rm(e.prototype,rZ(t))},nZ=Lt.String,bC=function(t){try{return nZ(t)}catch{return"Object"}},oZ=Lt.TypeError,yD=function(t){if(_r(t))return t;throw oZ(bC(t)+" is not a function")},hh=function(t,e){var r=t[e];return r==null?void 0:yD(r)},iZ=Lt.TypeError,aZ=Object.defineProperty,bD=function(t,e){try{aZ(Lt,t,{value:e,configurable:!0,writable:!0})}catch{Lt[t]=e}return e},Xa=Lt["__core-js_shared__"]||bD("__core-js_shared__",{}),wD=cl((function(t){(t.exports=function(e,r){return Xa[e]||(Xa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),uZ=Lt.Object,ED=function(t){return uZ(tb(t))},sZ=we({}.hasOwnProperty),wn=Object.hasOwn||function(t,e){return sZ(ED(t),e)},lZ=0,cZ=Math.random(),fZ=we(1 .toString),$R=function(t){return"Symbol("+(t===void 0?"":t)+")_"+fZ(++lZ+cZ,36)},Qf=wD("wks"),Ss=Lt.Symbol,M7=Ss&&Ss.for,dZ=mD?Ss:Ss&&Ss.withoutSetter||$R,fn=function(t){if(!wn(Qf,t)||!mC&&typeof Qf[t]!="string"){var e="Symbol."+t;mC&&wn(Ss,t)?Qf[t]=Ss[t]:Qf[t]=mD&&M7?M7(e):dZ(e)}return Qf[t]},pZ=Lt.TypeError,hZ=fn("toPrimitive"),gZ=function(t,e){if(!Qo(t)||yC(t))return t;var r,n=hh(t,hZ);if(n){if(r=zr(n,t,e),!Qo(r)||yC(r))return r;throw pZ("Can't convert object to primitive value")}return(function(o,i){var a,u;if(_r(a=o.toString)&&!Qo(u=zr(a,o))||_r(a=o.valueOf)&&!Qo(u=zr(a,o)))return u;throw iZ("Can't convert object to primitive value")})(t)},xD=function(t){var e=gZ(t,"string");return yC(e)?e:e+""},wC=Lt.document,vZ=Qo(wC)&&Qo(wC.createElement),CD=function(t){return vZ?wC.createElement(t):{}},VR=!li&&!jr((function(){return Object.defineProperty(CD("div"),"a",{get:function(){return 7}}).a!=7})),z7=Object.getOwnPropertyDescriptor,mZ=li?z7:function(t,e){if(t=Of(t),e=xD(e),VR)try{return z7(t,e)}catch{}if(wn(t,e))return Ya(!zr(YX.f,t,e),t[e])},SD={f:mZ},yZ=Lt.String,bZ=Lt.TypeError,Rn=function(t){if(Qo(t))return t;throw bZ(yZ(t)+" is not an object")},wZ=Lt.TypeError,H7=Object.defineProperty,EZ=li?H7:function(t,e,r){if(Rn(t),e=xD(e),Rn(r),VR)try{return H7(t,e,r)}catch{}if("get"in r||"set"in r)throw wZ("Accessors not supported");return"value"in r&&(t[e]=r.value),t},_f={f:EZ},mn=li?function(t,e,r){return _f.f(t,e,Ya(1,r))}:function(t,e,r){return t[e]=r,t},xZ=we(Function.toString);_r(Xa.inspectSource)||(Xa.inspectSource=function(t){return xZ(t)});var Mm,Ip,zm,DD=Xa.inspectSource,$7=Lt.WeakMap,CZ=_r($7)&&/native code/.test(DD($7)),V7=wD("keys"),AD=function(t){return V7[t]||(V7[t]=$R(t))},OD={},EC=Lt.TypeError,SZ=Lt.WeakMap;if(CZ||Xa.state){var Vu=Xa.state||(Xa.state=new SZ),DZ=we(Vu.get),U7=we(Vu.has),AZ=we(Vu.set);Mm=function(t,e){if(U7(Vu,t))throw new EC("Object already initialized");return e.facade=t,AZ(Vu,t,e),e},Ip=function(t){return DZ(Vu,t)||{}},zm=function(t){return U7(Vu,t)}}else{var _l=AD("state");OD[_l]=!0,Mm=function(t,e){if(wn(t,_l))throw new EC("Object already initialized");return e.facade=t,mn(t,_l,e),e},Ip=function(t){return wn(t,_l)?t[_l]:{}},zm=function(t){return wn(t,_l)}}var qs={set:Mm,get:Ip,has:zm,enforce:function(t){return zm(t)?Ip(t):Mm(t,{})},getterFor:function(t){return function(e){var r;if(!Qo(e)||(r=Ip(e)).type!==t)throw EC("Incompatible receiver, "+t+" required");return r}}},UR=Function.prototype,OZ=li&&Object.getOwnPropertyDescriptor,W7=wn(UR,"name"),_D={PROPER:W7&&(function(){}).name==="something",CONFIGURABLE:W7&&(!li||li&&OZ(UR,"name").configurable)},Ks=cl((function(t){var e=_D.CONFIGURABLE,r=qs.get,n=qs.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;_r(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wn(u,"name")||e&&u.name!==p)&&mn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Lt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:mn(i,a,u)):f?i[a]=u:bD(a,u)})(Function.prototype,"toString",(function(){return _r(this)&&r(this).source||DD(this)}))})),_Z=Math.ceil,kZ=Math.floor,kD=function(t){var e=+t;return e!=e||e===0?0:(e>0?kZ:_Z)(e)},TZ=Math.max,BZ=Math.min,xC=function(t,e){var r=kD(t);return r<0?TZ(r+e,0):BZ(r,e)},FZ=Math.min,WR=function(t){return t>0?FZ(kD(t),9007199254740991):0},eb=function(t){return WR(t.length)},PZ=function(t){return function(e,r,n){var o,i=Of(e),a=eb(i),u=xC(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},jZ={indexOf:PZ(!1)}.indexOf,G7=we([].push),GR=function(t,e){var r,n=Of(t),o=0,i=[];for(r in n)!wn(OD,r)&&wn(n,r)&&G7(i,r);for(;e.length>o;)wn(n,r=e[o++])&&(~jZ(i,r)||G7(i,r));return i},Hm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],NZ=Hm.concat("length","prototype"),IZ=Object.getOwnPropertyNames||function(t){return GR(t,NZ)},LZ={f:IZ},RZ={f:Object.getOwnPropertySymbols},MZ=we([].concat),zZ=yg("Reflect","ownKeys")||function(t){var e=LZ.f(Rn(t)),r=RZ.f;return r?MZ(e,r(t)):e},qR=function(t,e){for(var r=zZ(e),n=_f.f,o=SD.f,i=0;i<r.length;i++){var a=r[i];wn(t,a)||n(t,a,o(e,a))}},HZ=/#|\.prototype\./,bg=function(t,e){var r=VZ[$Z(t)];return r==WZ||r!=UZ&&(_r(e)?jr(e):!!e)},$Z=bg.normalize=function(t){return String(t).replace(HZ,".").toLowerCase()},VZ=bg.data={},UZ=bg.NATIVE="N",WZ=bg.POLYFILL="P",GZ=bg,qZ=SD.f,wg=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Lt:l?Lt[u]||bD(u,{}):(Lt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=qZ(r,n))&&a.value:r[n],!GZ(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;qR(i,o)}(t.sham||o&&o.sham)&&mn(i,"sham",!0),Ks(r,n,i,t)}},KR={};KR[fn("toStringTag")]="z";var Dv,TD=String(KR)==="[object z]",KZ=fn("toStringTag"),YZ=Lt.Object,XZ=Cs((function(){return arguments})())=="Arguments",rb=TD?Cs:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=YZ(t),KZ))=="string"?r:XZ?Cs(e):(n=Cs(e))=="Object"&&_r(e.callee)?"Arguments":n},ZZ=Lt.String,Ds=function(t){if(rb(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ZZ(t)},JZ=function(){var t=Rn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},BD=Lt.RegExp,YR=jr((function(){var t=BD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));YR||jr((function(){return!BD("a","y").sticky}));var QZ=YR||jr((function(){var t=BD("^r","gy");return t.lastIndex=2,t.exec("str")!=null})),tJ={BROKEN_CARET:QZ},eJ=Object.keys||function(t){return GR(t,Hm)},rJ=li?Object.defineProperties:function(t,e){Rn(t);for(var r,n=Of(e),o=eJ(e),i=o.length,a=0;i>a;)_f.f(t,r=o[a++],n[r]);return t},nJ=yg("document","documentElement"),XR=AD("IE_PROTO"),k2=function(){},ZR=function(t){return"<script>"+t+"<\/script>"},q7=function(t){t.write(ZR("")),t.close();var e=t.parentWindow.Object;return t=null,e},R0=function(){try{Dv=new ActiveXObject("htmlfile")}catch{}var t,e;R0=typeof document<"u"?document.domain&&Dv?q7(Dv):((e=CD("iframe")).style.display="none",nJ.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(ZR("document.F=Object")),t.close(),t.F):q7(Dv);for(var r=Hm.length;r--;)delete R0.prototype[Hm[r]];return R0()};OD[XR]=!0;var K7,T2,Eg=Object.create||function(t,e){var r;return t!==null?(k2.prototype=Rn(t),r=new k2,k2.prototype=null,r[XR]=t):r=R0(),e===void 0?r:rJ(r,e)},oJ=Lt.RegExp,iJ=jr((function(){var t=oJ(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),aJ=Lt.RegExp,uJ=jr((function(){var t=aJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),sJ=qs.get,lJ=wD("native-string-replace",String.prototype.replace),$m=RegExp.prototype.exec,CC=$m,cJ=we("".charAt),fJ=we("".indexOf),dJ=we("".replace),B2=we("".slice),F2=(T2=/b*/g,zr($m,K7=/a/,"a"),zr($m,T2,"a"),K7.lastIndex!==0||T2.lastIndex!==0),Y7=tJ.BROKEN_CARET,P2=/()??/.exec("")[1]!==void 0;(F2||P2||Y7||iJ||uJ)&&(CC=function(t){var e,r,n,o,i,a,u,s=this,l=sJ(s),c=Ds(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=zr(CC,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=Y7&&s.sticky,m=zr(JZ,s),v=s.source,g=0,y=c;if(p&&(m=dJ(m,"y",""),fJ(m,"g")===-1&&(m+="g"),y=B2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&cJ(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),P2&&(r=new RegExp("^"+v+"$(?!\\s)",m)),F2&&(n=s.lastIndex),o=zr($m,p?r:s,y),p?o?(o.input=B2(o.input,g),o[0]=B2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:F2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),P2&&o&&o.length>1&&zr(lJ,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=Eg(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Vm=CC;wg({target:"RegExp",proto:!0,forced:/./.exec!==Vm},{exec:Vm});var pJ=fn("species"),X7=RegExp.prototype,hJ=we("".charAt),Z7=we("".charCodeAt),gJ=we("".slice),vJ=function(t){return function(e,r){var n,o,i=Ds(tb(e)),a=kD(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Z7(i,a))<55296||n>56319||a+1===u||(o=Z7(i,a+1))<56320||o>57343?t?hJ(i,a):n:t?gJ(i,a,a+2):o-56320+(n-55296<<10)+65536}},JR={charAt:vJ(!0)},mJ=JR.charAt,yJ=function(t,e,r){return e+(r?mJ(t,e).length:1)},bJ=Lt.TypeError,J7=function(t,e){var r=t.exec;if(_r(r)){var n=zr(r,t,e);return n!==null&&Rn(n),n}if(Cs(t)==="RegExp")return zr(Vm,t,e);throw bJ("RegExp#exec called on incompatible receiver")};(function(t,e,r,n){var o=fn(t),i=!jr((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!jr((function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[pJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=we(/./[o]),s=e(o,""[t],(function(l,c,f,d,p){var m=we(l),v=c.exec;return v===Vm||v===X7.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));Ks(String.prototype,t,s[0]),Ks(X7,o,s[1])}})("match",(function(t,e,r){return[function(n){var o=tb(this),i=n==null?void 0:hh(n,t);return i?zr(i,n,o):new RegExp(n)[t](Ds(o))},function(n){var o=Rn(this),i=Ds(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return J7(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=J7(o,i))!==null;){var f=Ds(s[0]);l[c]=f,f===""&&(o.lastIndex=yJ(i,WR(o.lastIndex),u)),c++}return c===0?null:l}]})),wg({global:!0},{globalThis:Lt});var wJ=!jr((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Q7=AD("IE_PROTO"),SC=Lt.Object,EJ=SC.prototype,gh=wJ?SC.getPrototypeOf:function(t){var e=ED(t);if(wn(e,Q7))return e[Q7];var r=e.constructor;return _r(r)&&e instanceof r?r.prototype:e instanceof SC?EJ:null},xJ=Lt.String,CJ=Lt.TypeError,qc=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,r={};try{(t=we(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Rn(n),(function(i){if(typeof i=="object"||_r(i))return i;throw CJ("Can't set "+xJ(i)+" as a prototype")})(o),e?t(n,o):n.__proto__=o,n}})():void 0),SJ=Lt.Array,DJ=Math.max,AJ=we("".replace),OJ=we("".split),_J=we([].join),DC=String(Error("zxcasd").stack),QR=/\n\s*at [^:]*:[^\n]*/,kJ=QR.test(DC),TJ=/@[^\n]*\n/.test(DC)&&!/zxcasd/.test(DC),BJ=function(t,e){if(typeof t!="string")return t;if(kJ)for(;e--;)t=AJ(t,QR,"");else if(TJ)return _J((function(r,n,o){for(var i,a,u,s,l=eb(r),c=xC(n,l),f=xC(l,l),d=SJ(DJ(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=xD(a))in i?_f.f(i,s,Ya(0,u)):i[s]=u;return d.length=p,d})(OJ(t,`
`),e),`
`);return t},FJ=function(t,e){Qo(e)&&"cause"in e&&mn(t,"cause",e.cause)},t9=we(we.bind),tM=function(t,e){return yD(t),e===void 0?t:t9?t9(t,e):function(){return t.apply(e,arguments)}},Kc={},PJ=fn("iterator"),jJ=Array.prototype,NJ=fn("iterator"),e9=function(t){if(t!=null)return hh(t,NJ)||hh(t,"@@iterator")||Kc[rb(t)]},IJ=Lt.TypeError,r9=function(t,e,r){var n,o;Rn(t);try{if(!(n=hh(t,"return"))){if(e==="throw")throw r;return r}n=zr(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Rn(n),r},LJ=Lt.TypeError,M0=function(t,e){this.stopped=t,this.result=e},n9=M0.prototype,RJ=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=tM(e,c),v=function(y){return n&&r9(n,"normal",y),new M0(!0,y)},g=function(y){return f?(Rn(y),p?m(y[0],y[1],v):m(y[0],y[1])):p?m(y,v):m(y)};if(d)n=t;else{if(!(o=e9(t)))throw LJ(bC(t)+" is not iterable");if((function(y){return y!==void 0&&(Kc.Array===y||jJ[PJ]===y)})(o)){for(i=0,a=eb(t);a>i;i++)if((u=g(t[i]))&&Rm(n9,u))return u;return new M0(!1)}n=(function(y,h){var b=arguments.length<2?e9(y):h;if(yD(b))return Rn(zr(b,y));throw IJ(bC(y)+" is not iterable")})(t,o)}for(s=n.next;!(l=zr(s,n)).done;){try{u=g(l.value)}catch(y){r9(n,"throw",y)}if(typeof u=="object"&&u&&Rm(n9,u))return u}return new M0(!1)},MJ=function(t,e){return t===void 0?arguments.length<2?"":e:Ds(t)},zJ=!jr((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ya(1,7)),t.stack!==7)})),HJ=fn("toStringTag"),Um=Lt.Error,$J=[].push,vh=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=Rm(j2,this);qc?r=qc(new Um(void 0),o?gh(this):j2):(r=o?this:Eg(j2),mn(r,HJ,"Error")),mn(r,"message",MJ(e,"")),zJ&&mn(r,"stack",BJ(r.stack,1)),FJ(r,n);var i=[];return RJ(t,$J,{that:i}),mn(r,"errors",i),r};qc?qc(vh,Um):qR(vh,Um);var j2=vh.prototype=Eg(Um.prototype,{constructor:Ya(1,vh),message:Ya(1,""),name:Ya(1,"AggregateError")});wg({global:!0},{AggregateError:vh});var AC=fn("unscopables"),OC=Array.prototype;OC[AC]==null&&_f.f(OC,AC,{configurable:!0,value:Eg(null)});var As,o9,i9,N2=function(t){OC[AC][t]=!0},_C=fn("iterator"),eM=!1;[].keys&&("next"in(i9=[].keys())?(o9=gh(gh(i9)))!==Object.prototype&&(As=o9):eM=!0);var VJ=As==null||jr((function(){var t={};return As[_C].call(t)!==t}));VJ&&(As={}),_r(As[_C])||Ks(As,_C,(function(){return this}));var FD={IteratorPrototype:As,BUGGY_SAFARI_ITERATORS:eM},UJ=_f.f,a9=fn("toStringTag"),u9=function(t,e,r){t&&!wn(t=r?t:t.prototype,a9)&&UJ(t,a9,{configurable:!0,value:e})},WJ=FD.IteratorPrototype,GJ=function(){return this},qJ=_D.PROPER,KJ=_D.CONFIGURABLE,s9=FD.IteratorPrototype,I2=FD.BUGGY_SAFARI_ITERATORS,td=fn("iterator"),YJ=function(){return this},rM=function(t,e,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Eg(WJ,{next:Ya(1,h)}),u9(g,w,!1),Kc[w]=GJ})(r,e,n);var u,s,l=function(g){if(g===o&&m)return m;if(!I2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[td]||d["@@iterator"]||o&&d[o],m=!I2&&p||l(o),v=e=="Array"&&d.entries||p;return v&&(u=gh(v.call(new t)))!==Object.prototype&&u.next&&(gh(u)!==s9&&(qc?qc(u,s9):_r(u[td])||Ks(u,td,YJ)),u9(u,c,!0)),qJ&&o=="values"&&p&&p.name!=="values"&&(KJ?mn(d,"name","values"):(f=!0,m=function(){return zr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||wg({target:e,proto:!0,forced:I2||f},s)),d[td]!==m&&Ks(d,td,m,{name:o}),Kc[e]=m,s},XJ=qs.set,ZJ=qs.getterFor("Array Iterator"),bp=rM(Array,"Array",(function(t,e){XJ(this,{type:"Array Iterator",target:Of(t),index:0,kind:e})}),(function(){var t=ZJ(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Kc.Arguments=Kc.Array,N2("keys"),N2("values"),N2("entries");var JJ=JR.charAt,QJ=qs.set,tQ=qs.getterFor("String Iterator");rM(String,"String",(function(t){QJ(this,{type:"String Iterator",string:Ds(t),index:0})}),(function(){var t,e=tQ(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=JJ(r,n),e.index+=t.length,{value:t,done:!1})}));var L2,Wm={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},R2=CD("span").classList,l9=R2&&R2.constructor&&R2.constructor.prototype,nM=l9===Object.prototype?void 0:l9,M2=fn("iterator"),c9=fn("toStringTag"),z2=bp.values,oM=function(t,e){if(t){if(t[M2]!==z2)try{mn(t,M2,z2)}catch{t[M2]=z2}if(t[c9]||mn(t,c9,e),Wm[e]){for(var r in bp)if(t[r]!==bp[r])try{mn(t,r,bp[r])}catch{t[r]=bp[r]}}}};for(var H2 in Wm)oM(Lt[H2]&&Lt[H2].prototype,H2);oM(nM,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉，wangEditor V5+ 版本开始，不在支持 IE 浏览器
 Sorry, wangEditor V5+ versions do not support IE browser.`),f9(),d9()):global&&(!((L2=global.navigator)===null||L2===void 0)&&L2.userAgent.match("QQBrowser"))&&(f9(),d9());function f9(){typeof globalThis>"u"&&(window.globalThis=window)}function d9(){qX===void 0&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var p9,Gm=Array.isArray||function(t){return Es(t)=="Array"},iM=function(){},eQ=[],aM=Sf("Reflect","construct"),PD=/^\s*(?:class|function)\b/,rQ=Ne(PD.exec),nQ=!PD.exec(iM),ed=function(t){if(!Hr(t))return!1;try{return aM(iM,eQ,t),!0}catch{return!1}},oQ=!aM||Cn((function(){var t;return ed(ed.call)||!ed(Object)||!ed((function(){t=!0}))||t}))?function(t){if(!Hr(t))return!1;switch(mg(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nQ||!!rQ(PD,NR(t))}:ed,iQ=rn("species"),h9=$t.Array,uM=function(t,e){return new((function(r){var n;return Gm(r)&&(n=r.constructor,(oQ(n)&&(n===h9||Gm(n.prototype))||to(n)&&(n=n[iQ])===null)&&(n=void 0)),n===void 0?h9:n})(t))(e===0?0:e)},aQ=rn("species"),sM=rn("isConcatSpreadable"),g9=$t.TypeError,uQ=Om>=51||!Cn((function(){var t=[];return t[sM]=!1,t.concat()[0]!==t})),sQ=(p9="concat",Om>=51||!Cn((function(){var t=[];return(t.constructor={})[aQ]=function(){return{foo:1}},t[p9](Boolean).foo!==1}))),lQ=function(t){if(!to(t))return!1;var e=t[sM];return e!==void 0?!!e:Gm(t)};Pi({target:"Array",proto:!0,forced:!uQ||!sQ},{concat:function(t){var e,r,n,o,i,a=pg(this),u=uM(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(lQ(i=e===-1?a:arguments[e])){if(s+(o=gg(i))>9007199254740991)throw g9("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&fC(u,s,i[r])}else{if(s>=9007199254740991)throw g9("Maximum allowed index exceeded");fC(u,s++,i)}return u.length=s,u}});var v9=hD.f,m9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lM={f:function(t){return m9&&Es(t)=="Window"?(function(e){try{return v9(e)}catch{return FR(m9)}})(t):v9(vi(t))}},cQ=Ne([].slice),jD={f:rn},fQ=_u.f,tr=function(t){var e=Bn.Symbol||(Bn.Symbol={});ne(e,t)||fQ(e,t,{value:jD.f(t)})},y9=Ne([].push),dQ=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=pg(s),v=AR(m),g=dD(l,c),y=gg(v),h=0,b=f||uM,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:y9(w,d)}else switch(t){case 4:return!1;case 7:y9(w,d)}return i?-1:n||o?o:w}},nb={forEach:dQ(0)}.forEach,hn=Q1("hidden"),b9=rn("toPrimitive"),pQ=Af.set,w9=Af.getterFor("Symbol"),xo=Object.prototype,Na=$t.Symbol,za=Na&&Na.prototype,E9=$t.TypeError,$2=$t.QObject,rd=Sf("JSON","stringify"),cM=J1.f,Ia=_u.f,fM=lM.f,hQ=sD.f,dM=Ne([].push),Ji=fl("symbols"),xg=fl("op-symbols"),V2=fl("string-to-symbol-registry"),U2=fl("symbol-to-string-registry"),gQ=fl("wks"),W2=!$2||!$2.prototype||!$2.prototype.findChild,kC=bn&&Cn((function(){return Zi(Ia({},"a",{get:function(){return Ia(this,"a",{value:7}).a}})).a!=7}))?function(t,e,r){var n=cM(xo,e);n&&delete xo[e],Ia(t,e,r),n&&t!==xo&&Ia(xo,e,n)}:Ia,G2=function(t,e){var r=Ji[t]=Zi(za);return pQ(r,{type:"Symbol",tag:t,description:e}),bn||(r.description=e),r},qm=function(t,e,r){t===xo&&qm(xg,e,r),Ln(t);var n=Df(e);return Ln(r),ne(Ji,n)?(r.enumerable?(ne(t,hn)&&t[hn][n]&&(t[hn][n]=!1),r=Zi(r,{enumerable:Oo(0,!1)})):(ne(t,hn)||Ia(t,hn,Oo(1,{})),t[hn][n]=!0),kC(t,n,r)):Ia(t,n,r)},x9=function(t,e){Ln(t);var r=vi(e),n=gD(r).concat(TC(r));return nb(n,(function(o){bn&&!jn(pM,r,o)||qm(t,o,r[o])})),t},pM=function(t){var e=Df(t),r=jn(hQ,this,e);return!(this===xo&&ne(Ji,e)&&!ne(xg,e))&&(!(r||!ne(this,e)||!ne(Ji,e)||ne(this,hn)&&this[hn][e])||r)},C9=function(t,e){var r=vi(t),n=Df(e);if(r!==xo||!ne(Ji,n)||ne(xg,n)){var o=cM(r,n);return!o||!ne(Ji,n)||ne(r,hn)&&r[hn][n]||(o.enumerable=!0),o}},S9=function(t){var e=fM(vi(t)),r=[];return nb(e,(function(n){ne(Ji,n)||ne(vg,n)||dM(r,n)})),r},TC=function(t){var e=t===xo,r=fM(e?xg:vi(t)),n=[];return nb(r,(function(o){!ne(Ji,o)||e&&!ne(xo,o)||dM(n,Ji[o])})),n};if(qo||(za=(Na=function(){if(fh(za,this))throw E9("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?dh(arguments[0]):void 0,e=km(t),r=function(n){this===xo&&jn(r,xg,n),ne(this,hn)&&ne(this[hn],e)&&(this[hn][e]=!1),kC(this,e,Oo(1,n))};return bn&&W2&&kC(xo,e,{configurable:!0,set:r}),G2(e,t)}).prototype,Im(za,"toString",(function(){return w9(this).tag})),Im(Na,"withoutSetter",(function(t){return G2(km(t),t)})),sD.f=pM,_u.f=qm,J1.f=C9,hD.f=lM.f=S9,j0.f=TC,jD.f=function(t){return G2(rn(t),t)},bn&&Ia(za,"description",{configurable:!0,get:function(){return w9(this).description}})),Pi({global:!0,wrap:!0,forced:!qo,sham:!qo},{Symbol:Na}),nb(gD(gQ),(function(t){tr(t)})),Pi({target:"Symbol",stat:!0,forced:!qo},{for:function(t){var e=dh(t);if(ne(V2,e))return V2[e];var r=Na(e);return V2[e]=r,U2[r]=e,r},keyFor:function(t){if(!Tc(t))throw E9(t+" is not a symbol");if(ne(U2,t))return U2[t]},useSetter:function(){W2=!0},useSimple:function(){W2=!1}}),Pi({target:"Object",stat:!0,forced:!qo,sham:!bn},{create:function(t,e){return e===void 0?Zi(t):x9(Zi(t),e)},defineProperty:qm,defineProperties:x9,getOwnPropertyDescriptor:C9}),Pi({target:"Object",stat:!0,forced:!qo},{getOwnPropertyNames:S9,getOwnPropertySymbols:TC}),Pi({target:"Object",stat:!0,forced:Cn((function(){j0.f(1)}))},{getOwnPropertySymbols:function(t){return j0.f(pg(t))}}),rd){var vQ=!qo||Cn((function(){var t=Na();return rd([t])!="[null]"||rd({a:t})!="{}"||rd(Object(t))!="{}"}));Pi({target:"JSON",stat:!0,forced:vQ},{stringify:function(t,e,r){var n=cQ(arguments),o=e;if((to(e)||t!==void 0)&&!Tc(t))return Gm(e)||(e=function(i,a){if(Hr(o)&&(a=jn(o,this,i,a)),!Tc(a))return a}),n[1]=e,SR(rd,null,n)}})}if(!za[b9]){var mQ=za.valueOf;Im(za,b9,(function(t){return jn(mQ,this)}))}Lm(Na,"Symbol"),vg[hn]=!0,tr("asyncIterator"),tr("hasInstance"),tr("isConcatSpreadable"),tr("iterator"),tr("match"),tr("matchAll"),tr("replace"),tr("search"),tr("species"),tr("split"),tr("toPrimitive"),tr("toStringTag"),tr("unscopables"),Lm($t.JSON,"JSON",!0);var yQ=Bn.Symbol;tr("asyncDispose"),tr("dispose"),tr("matcher"),tr("metadata"),tr("observable"),tr("patternMatch"),tr("replaceAll");var Av=yQ,bQ=jD.f("iterator"),wQ=cl((function(t){function e(r){return typeof Av=="function"&&typeof bQ=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Av=="function"&&n.constructor===Av&&n!==Av.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),EQ=tY(wQ),hM=SD.f,xQ=jr((function(){hM(1)}));if(wg({target:"Object",stat:!0,forced:!li||xQ,sham:!li},{getOwnPropertyDescriptor:function(t,e){return hM(Of(t),e)}}),(typeof global>"u"?"undefined":EQ(global))==="object"){var CQ=Object.getOwnPropertyDescriptor(global,"window");global.window&&!CQ.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(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function D9(t){return Object.prototype.toString.call(t)==="[object Object]"}function Kr(t){var e,r;return D9(t)!==!1&&((e=t.constructor)===void 0||D9(r=e.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function wo(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ys(t){return!!t&&!!t[Mn]}function Xs(t){return!!t&&((function(e){if(!e||typeof e!="object")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===kQ})(t)||Array.isArray(t)||!!t[P9]||!!t.constructor[P9]||ND(t)||ID(t))}function mh(t,e,r){r===void 0&&(r=!1),Yc(t)===0?(r?Object.keys:HD)(t).forEach((function(n){r&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,o){return e(o,n,t)}))}function Yc(t){var e=t[Mn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ND(t)?2:ID(t)?3:0}function BC(t,e){return Yc(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gM(t,e,r){var n=Yc(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function ND(t){return OQ&&t instanceof Map}function ID(t){return _Q&&t instanceof Set}function rs(t){return t.o||t.t}function LD(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=TQ(t);delete e[Mn];for(var r=HD(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function RD(t,e){return e===void 0&&(e=!1),MD(t)||Ys(t)||!Xs(t)||(Yc(t)>1&&(t.set=t.add=t.clear=t.delete=SQ),Object.freeze(t),e&&mh(t,(function(r,n){return RD(n,!0)}),!0)),t}function SQ(){wo(2)}function MD(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ui(t){var e=BQ[t];return e||wo(18,t),e}function A9(){return yh}function q2(t,e){e&&(Ui("Patches"),t.u=[],t.s=[],t.v=e)}function Km(t){FC(t),t.p.forEach(DQ),t.p=null}function FC(t){t===yh&&(yh=t.l)}function O9(t){return yh={p:[],l:yh,h:t,m:!0,_:0}}function DQ(t){var e=t[Mn];e.i===0||e.i===1?e.j():e.O=!0}function K2(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||Ui("ES5").S(e,t,n),n?(r[Mn].P&&(Km(e),wo(4)),Xs(t)&&(t=Ym(e,t),e.l||Xm(e,t)),e.u&&Ui("Patches").M(r[Mn],t,e.u,e.s)):t=Ym(e,r,[]),Km(e),e.u&&e.v(e.u,e.s),t!==vM?t:void 0}function Ym(t,e,r){if(MD(e))return e;var n=e[Mn];if(!n)return mh(e,(function(i,a){return _9(t,n,e,i,a,r)}),!0),e;if(n.A!==t)return e;if(!n.P)return Xm(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=LD(n.k):n.o;mh(n.i===3?new Set(o):o,(function(i,a){return _9(t,n,o,i,a,r)})),Xm(t,o,!1),r&&t.u&&Ui("Patches").R(n,r,t.u,t.s)}return n.o}function _9(t,e,r,n,o,i){if(Ys(o)){var a=Ym(t,o,i&&e&&e.i!==3&&!BC(e.D,n)?i.concat(n):void 0);if(gM(r,n,a),!Ys(a))return;t.m=!1}if(Xs(o)&&!MD(o)){if(!t.h.F&&t._<1)return;Ym(t,o),e&&e.A.l||Xm(t,o)}}function Xm(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&RD(e,r)}function Y2(t,e){var r=t[Mn];return(r?rs(r):t)[e]}function k9(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function PC(t){t.P||(t.P=!0,t.l&&PC(t.l))}function X2(t){t.o||(t.o=LD(t.t))}function jC(t,e,r){var n=ND(e)?Ui("MapSet").N(e,r):ID(e)?Ui("MapSet").T(e,r):t.g?(function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:A9(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=z0;a&&(s=[u],l=H0);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d})(e,r):Ui("ES5").J(e,r);return(r?r.A:A9()).p.push(n),n}function AQ(t){return Ys(t)||wo(22,t),(function e(r){if(!Xs(r))return r;var n,o=r[Mn],i=Yc(r);if(o){if(!o.P&&(o.i<4||!Ui("ES5").K(o)))return o.t;o.I=!0,n=T9(r,i),o.I=!1}else n=T9(r,i);return mh(n,(function(a,u){o&&(function(s,l){return Yc(s)===2?s.get(l):s[l]})(o.t,a)===u||gM(n,a,e(u))})),i===3?new Set(n):n})(t)}function T9(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return LD(t)}var B9,yh,zD=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",OQ=typeof Map<"u",_Q=typeof Set<"u",F9=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",vM=zD?Symbol.for("immer-nothing"):((B9={})["immer-nothing"]=!0,B9),P9=zD?Symbol.for("immer-draftable"):"__$immer_draftable",Mn=zD?Symbol.for("immer-state"):"__$immer_state",kQ=""+Object.prototype.constructor,HD=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,TQ=Object.getOwnPropertyDescriptors||function(t){var e={};return HD(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},BQ={},z0={get:function(t,e){if(e===Mn)return t;var r=rs(t);if(!BC(r,e))return(function(o,i,a){var u,s=k9(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0})(t,r,e);var n=r[e];return t.I||!Xs(n)?n:n===Y2(t.t,e)?(X2(t),t.o[e]=jC(t.A.h,n,t)):n},has:function(t,e){return e in rs(t)},ownKeys:function(t){return Reflect.ownKeys(rs(t))},set:function(t,e,r){var n=k9(rs(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Y2(rs(t),e),i=o?.[Mn];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if((function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u})(r,o)&&(r!==void 0||BC(t.t,e)))return!0;X2(t),PC(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Y2(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,X2(t),PC(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=rs(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){wo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){wo(12)}},H0={};mh(z0,(function(t,e){H0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),H0.deleteProperty=function(t,e){return z0.deleteProperty.call(this,t[0],e)},H0.set=function(t,e,r){return z0.set.call(this,t[0],e,r,t[0])};var FQ=(function(){function t(r){var n=this;this.g=F9,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(p){var m=this;p===void 0&&(p=u);for(var v=arguments.length,g=Array(v>1?v-1:0),y=1;y<v;y++)g[y-1]=arguments[y];return s.produce(p,(function(h){var b;return(b=i).call.apply(b,[m,h].concat(g))}))}}var l;if(typeof i!="function"&&wo(6),a!==void 0&&typeof a!="function"&&wo(7),Xs(o)){var c=O9(n),f=jC(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Km(c):FC(c)}return typeof Promise<"u"&&l instanceof Promise?l.then((function(p){return q2(c,a),K2(p,c)}),(function(p){throw Km(c),p})):(q2(c,a),K2(l,c))}if(!o||typeof o!="object")return(l=i(o))===vM?void 0:(l===void 0&&(l=o),n.F&&RD(l,!0),l);wo(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,(function(d){return o.apply(void 0,[d].concat(c))}))}:[n.produce(o,i,(function(s,l){a=s,u=l})),a,u];var a,u},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Xs(r)||wo(8),Ys(r)&&(r=AQ(r));var n=O9(this),o=jC(this,r,void 0);return o[Mn].C=!0,FC(n),o},e.finishDraft=function(r,n){var o=(r&&r[Mn]).A;return q2(o,n),K2(void 0,o)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!F9&&wo(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Ui("Patches").$;return Ys(r)?a(r,n):this.produce(r,(function(u){return a(u,n)}))},t})(),_n=new FQ,ob=_n.produce;_n.produceWithPatches.bind(_n),_n.setAutoFreeze.bind(_n),_n.setUseProxies.bind(_n),_n.applyPatches.bind(_n);var j9=_n.createDraft.bind(_n),N9=_n.finishDraft.bind(_n);function mi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Zm=new WeakMap,nd=new WeakMap,I9=new WeakMap,L9=new WeakMap,R9=new WeakMap,M9=new WeakMap;function z9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function Ov(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?z9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var PQ=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var r of C.pathRefs(t))ltt.transform(r,e);for(var n of C.pointRefs(t))ctt.transform(n,e);for(var o of C.rangeRefs(t))dtt.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Zm.get(t)||[],l=jQ(e);for(var c of s)u(R.transform(c,e));for(var f of l)u(f);Zm.set(t,a),$.transform(t,e),t.operations.push(e),C.normalize(t),e.type==="set_selection"&&(t.marks=null),nd.get(t)||(nd.set(t,!0),Promise.resolve().then((()=>{nd.set(t,!1),t.onChange(),t.operations=[]})))},addMark:(e,r)=>{var{selection:n}=t;if(n)if(q.isExpanded(n))$.setNodes(t,{[e]:r},{match:yt.isText,split:!0});else{var o=Ov(Ov({},C.marks(t)||{}),{},{[e]:r});t.marks=o,nd.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:r}=t;r&&q.isCollapsed(r)&&$.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:r}=t;r&&q.isCollapsed(r)&&$.delete(t,{unit:e})},deleteFragment:e=>{var{selection:r}=t;r&&q.isExpanded(r)&&$.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?ft.fragment(t,e):[]},insertBreak:()=>{$.splitNodes(t,{always:!0})},insertFragment:e=>{$.insertFragment(t,e)},insertNode:e=>{$.insertNodes(t,e)},insertText:e=>{var{selection:r,marks:n}=t;if(r){if(n){var o=Ov({text:e},n);$.insertNodes(t,o)}else $.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[r,n]=e;if(!yt.isText(r))if(Et.isElement(r)&&r.children.length===0)$.insertNodes(t,{text:""},{at:n.concat(0),voids:!0});else for(var o=!C.isEditor(r)&&Et.isElement(r)&&(t.isInline(r)||r.children.length===0||yt.isText(r.children[0])||t.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=ft.get(t,n);if(!yt.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(yt.isText(s)||Et.isElement(s)&&t.isInline(s))!==o?($.removeNodes(t,{at:n.concat(i),voids:!0}),i--):Et.isElement(s)?t.isInline(s)&&(l!=null&&yt.isText(l)?c&&($.insertNodes(t,{text:""},{at:n.concat(i+1),voids:!0}),i++):($.insertNodes(t,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&yt.isText(l)&&(yt.equals(s,l,{loose:!0})?($.mergeNodes(t,{at:n.concat(i),voids:!0}),i--):l.text===""?($.removeNodes(t,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&($.removeNodes(t,{at:n.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:r}=t;if(r)if(q.isExpanded(r))$.unsetNodes(t,e,{match:yt.isText,split:!0});else{var n=Ov({},C.marks(t)||{});delete n[e],t.marks=n,nd.get(t)||t.onChange()}}};return t},jQ=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return R.levels(e);case"insert_node":var{node:r,path:n}=t,o=R.levels(n),i=yt.isText(r)?[]:Array.from(ft.nodes(r),(w=>{var[,E]=w;return n.concat(E)}));return[...o,...i];case"merge_node":var{path:a}=t;return[...R.ancestors(a),R.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(R.equals(u,s))return[];var l=[],c=[];for(var f of R.ancestors(u)){var d=R.transform(f,t);l.push(d)}for(var p of R.ancestors(s)){var m=R.transform(p,t);c.push(m)}var v=c[c.length-1],g=s[s.length-1],y=v.concat(g);return[...l,...c,y];case"remove_node":var{path:h}=t;return[...R.ancestors(h)];case"split_node":var{path:b}=t;return[...R.levels(b),R.next(b)];default:return[]}};function Qi(t,e){if(t==null)return{};var r,n,o=(function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c})(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var zt,NC=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!e,n=e?MQ(t):t,o=zt.None,i=zt.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=ZQ(s,l);if([o,i]=r?[i,c]:[c,o],hc(o,zt.ZWJ)&&hc(i,zt.ExtPict)&&!ett(r?t.substring(0,a):t.substring(0,t.length-a))||hc(o,zt.RI)&&hc(i,zt.RI)&&!(u=u!==null?!u:!!r||ntt(t.substring(0,t.length-a)))||o!==zt.None&&i!==zt.None&&QQ(o,i))break;a+=s.length}return a||1},NQ=/\s/,IQ=/[\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]/,LQ=/['\u2018\u2019]/,IC=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},RQ=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(NQ.test(e))return!1;if(LQ.test(e)){var o=NC(r,n),[i,a]=IC(r,o,n);if(t(i,a,n))return!0}return!IQ.test(e)},MQ=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(HQ(n.charCodeAt(0))){var o=t.charAt(e-r-1);if(zQ(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},zQ=t=>t>=55296&&t<=56319,HQ=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(zt||(zt={}));var $Q=/^(?:[\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])$/,VQ=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,UQ=/^(?:[\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])$/,WQ=/^[\u1100-\u115F\uA960-\uA97C]$/,GQ=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,qQ=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,KQ=/^[\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]$/,YQ=/^[\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]$/,XQ=/^(?:[\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])$/,ZQ=(t,e)=>{var r=zt.Any;return t.search($Q)!==-1&&(r|=zt.Extend),e===8205&&(r|=zt.ZWJ),e>=127462&&e<=127487&&(r|=zt.RI),t.search(VQ)!==-1&&(r|=zt.Prepend),t.search(UQ)!==-1&&(r|=zt.SpacingMark),t.search(WQ)!==-1&&(r|=zt.L),t.search(GQ)!==-1&&(r|=zt.V),t.search(qQ)!==-1&&(r|=zt.T),t.search(KQ)!==-1&&(r|=zt.LV),t.search(YQ)!==-1&&(r|=zt.LVT),t.search(XQ)!==-1&&(r|=zt.ExtPict),r};function hc(t,e){return(t&e)!=0}var JQ=[[zt.L,zt.L|zt.V|zt.LV|zt.LVT],[zt.LV|zt.V,zt.V|zt.T],[zt.LVT|zt.T,zt.T],[zt.Any,zt.Extend|zt.ZWJ],[zt.Any,zt.SpacingMark],[zt.Prepend,zt.Any],[zt.ZWJ,zt.ExtPict],[zt.RI,zt.RI]];function QQ(t,e){return JQ.findIndex((r=>hc(t,r[0])&&hc(e,r[1])))===-1}var ttt=/(?:[\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$/,ett=t=>t.search(ttt)!==-1,rtt=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ntt=t=>{var e=t.match(rtt);return e!==null&&e[0].length/2%2==1},H9=t=>Kr(t)&&ft.isNodeList(t.children)&&!C.isEditor(t),Et={isAncestor:t=>Kr(t)&&ft.isNodeList(t.children),isElement:H9,isElementList:t=>Array.isArray(t)&&t.every((e=>Et.isElement(e))),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return H9(t)&&t[r]===e},matches(t,e){for(var r in e)if(r!=="children"&&t[r]!==e[r])return!1;return!0}},ott=["text"],itt=["text"];function $9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function kl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var V9=new WeakMap,C={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:i}=e;if(o){var a=C.path(t,o),u=n==="lowest";for(var[s,l]of C.levels(t,{at:a,voids:r,match:i,reverse:u}))if(!yt.isText(s)&&!R.equals(a,l))return[s,l]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.point(t,e,{edge:"end"}),focus:C.end(t,[])},{distance:i=1}=n,a=0;for(var u of C.positions(t,kl(kl({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.start(t,[]),focus:C.point(t,e,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of C.positions(t,kl(kl({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[C.start(t,e),C.end(t,e)],end:(t,e)=>C.point(t,e,{edge:"end"}),first(t,e){var r=C.path(t,e,{edge:"start"});return C.node(t,r)},fragment(t,e){var r=C.range(t,e);return ft.fragment(t,r)},hasBlocks:(t,e)=>e.children.some((r=>C.isBlock(t,r))),hasInlines:(t,e)=>e.children.some((r=>yt.isText(r)||C.isInline(t,r))),hasTexts:(t,e)=>e.children.every((r=>yt.isText(r))),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>Et.isElement(e)&&!t.isInline(e),isEditor(t){if(!Kr(t))return!1;var e=V9.get(t);if(e!==void 0)return e;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Kr(t.marks))&&(t.selection===null||q.isRange(t.selection))&&ft.isNodeList(t.children)&&Ha.isOperationList(t.operations);return V9.set(t,r),r},isEnd(t,e,r){var n=C.end(t,r);return Ut.equals(e,n)},isEdge:(t,e,r)=>C.isStart(t,e,r)||C.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return r.length===0||r.length===1&&yt.isText(n)&&n.text===""&&!t.isVoid(e)},isInline:(t,e)=>Et.isElement(e)&&t.isInline(e),isNormalizing(t){var e=I9.get(t);return e===void 0||e},isStart(t,e,r){if(e.offset!==0)return!1;var n=C.start(t,r);return Ut.equals(e,n)},isVoid:(t,e)=>Et.isElement(e)&&t.isVoid(e),last(t,e){var r=C.path(t,e,{edge:"end"});return C.node(t,r)},leaf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r);return[ft.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),r){var a=[],u=C.path(t,r);for(var[s,l]of ft.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&C.isVoid(t,s)))break;n&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(q.isExpanded(r)){var[n]=C.nodes(t,{match:yt.isText});if(n){var[o]=n;return Qi(o,ott)}return{}}var{anchor:i}=r,{path:a}=i,[u]=C.leaf(t,a);if(i.offset===0){var s=C.previous(t,{at:a,match:yt.isText}),l=C.above(t,{match:p=>C.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;R.isAncestor(d,f)&&(u=c)}}return Qi(u,itt)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.after(t,i,{voids:n});if(a){var[,u]=C.last(t,[]),s=[a.path,u];if(R.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(R.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{at:s,match:o,mode:r,voids:n});return c}}},node(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r);return[ft.get(t,n),n]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),r){var s,l;if(att.isSpan(r))s=r[0],l=r[1];else{var c=C.path(t,r,{edge:"start"}),f=C.path(t,r,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=ft.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&C.isVoid(t,w)}}),m=[];for(var[v,g]of p){var y=d&&R.compare(g,d[1])===0;if(n!=="highest"||!y){if(u(v,g))if(n==="lowest"&&y)d=[v,g];else{var h=n==="lowest"?d:[v,g];h&&(o?m.push(h):yield h),d=[v,g]}else if(o&&!y&&yt.isText(v))return}}n==="lowest"&&d&&(o?m.push(d):yield d),o&&(yield*m)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=e,n=i=>Zm.get(i)||[];if(C.isNormalizing(t)){if(r){var o=Array.from(ft.nodes(t),(i=>{var[,a]=i;return a}));Zm.set(t,o)}n(t).length!==0&&C.withoutNormalizing(t,(()=>{for(var i of n(t))if(ft.has(t,i)){var a=C.node(t,i),[u,s]=a;Et.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*n(t).length,c=0;n(t).length!==0;){if(c>l)throw new Error(`
            Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `));var f=n(t).pop();if(ft.has(t,f)){var d=C.node(t,f);t.normalizeNode(d)}c++}}))}},parent(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r),o=R.parent(n);return C.node(t,o)},path(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(R.isPath(e)){if(o==="start"){var[,i]=ft.first(t,e);e=i}else if(o==="end"){var[,a]=ft.last(t,e);e=a}}return q.isRange(e)&&(e=o==="start"?q.start(e):o==="end"?q.end(e):R.common(e.anchor.path,e.focus.path)),Ut.isPoint(e)&&(e=e.path),n!=null&&(e=e.slice(0,n)),e},hasPath:(t,e)=>ft.has(t,e),pathRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.pathRefs(t).delete(o),o.current=null,i}};return C.pathRefs(t).add(o),o},pathRefs(t){var e=L9.get(t);return e||(e=new Set,L9.set(t,e)),e},point(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(R.isPath(e)){var o;if(n==="end"){var[,i]=ft.last(t,e);o=i}else{var[,a]=ft.first(t,e);o=a}var u=ft.get(t,o);if(!yt.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(q.isRange(e)){var[s,l]=q.edges(e);return n==="start"?s:l}return e},pointRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.pointRefs(t).delete(o),o.current=null,i}};return C.pointRefs(t).add(o),o},pointRefs(t){var e=R9.get(t);return e||(e=new Set,R9.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=e;if(r){var a=C.range(t,r),[u,s]=q.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,m=0;for(var[v,g]of C.nodes(t,{at:r,reverse:o,voids:i})){if(Et.isElement(v)){if(!i&&t.isVoid(v)){yield C.start(t,g);continue}if(t.isInline(v))continue;if(C.hasInlines(t,v)){var y=R.isAncestor(g,s.path)?s:C.end(t,g),h=R.isAncestor(g,u.path)?u:C.start(t,g);f=C.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(yt.isText(v)){var b=R.equals(g,l.path);for(b?(p=o?l.offset:v.text.length-l.offset,m=l.offset):(p=v.text.length,m=o?p:0),(b||c||n==="offset")&&(yield{path:g,offset:m},c=!1);;){if(d===0){if(f==="")break;d=w(f,n,o),f=IC(f,d,o)[1]}if(m=o?m-d:m+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:m}}}}}function w(E,S,x){return S==="character"?NC(E,x):S==="word"?(function(D){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],P=0,M=!1;D.length>0;){var F=NC(D,A),[V,U]=IC(D,F,A);if(RQ(V,U,A))M=!0,P+=F;else{if(M)break;P+=F}D=U}return P})(E,x):S==="line"||S==="block"?E.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.before(t,i,{voids:n});if(a){var[,u]=C.first(t,[]),s=[a.path,u];if(R.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(R.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(t,e,r)=>q.isRange(e)&&!r?e:{anchor:C.start(t,e),focus:C.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.rangeRefs(t).delete(o),o.current=null,i}};return C.rangeRefs(t).add(o),o},rangeRefs(t){var e=M9.get(t);return e||(e=new Set,M9.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){I9.set(t,e)},start:(t,e)=>C.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=C.range(t,e),[i,a]=q.edges(o),u="";for(var[s,l]of C.nodes(t,{at:o,match:yt.isText,voids:n})){var c=s.text;R.equals(l,a.path)&&(c=c.slice(0,a.offset)),R.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=q.edges(e);if(o.offset!==0||i.offset!==0||q.isCollapsed(e))return e;var a=C.above(t,{at:i,match:d=>C.isBlock(t,d)}),u=a?a[1]:[],s={anchor:C.start(t,[]),focus:i},l=!0;for(var[c,f]of C.nodes(t,{at:s,match:yt.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||R.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,kl(kl({},e),{},{match:r=>C.isVoid(t,r)}))},withoutNormalizing(t,e){var r=C.isNormalizing(t);C.setNormalizing(t,!1);try{e()}finally{C.setNormalizing(t,r)}C.normalize(t)}},att={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(R.isPath)},utt=["children"],stt=["text"],U9=new WeakMap,ft={ancestor(t,e){var r=ft.get(t,e);if(yt.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of R.ancestors(e,r)){var o=[ft.ancestor(t,n),n];yield o}},child(t,e){if(yt.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var r=t.children[e];if(r==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=ft.ancestor(t,e),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=ft.child(o,a),s=e.concat(a);yield[u,s],a=n?a-1:a+1}},common(t,e,r){var n=R.common(e,r);return[ft.get(t,n),n]},descendant(t,e){var r=ft.get(t,e);if(C.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of ft.nodes(t,e))n.length!==0&&(yield[r,n])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of ft.nodes(t,e))Et.isElement(r)&&(yield[r,n])},extractProps:t=>Et.isAncestor(t)?Qi(t,utt):Qi(t,stt),first(t,e){for(var r=e.slice(),n=ft.get(t,r);n&&!yt.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(t,e){if(yt.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var r=ob({children:t.children},(n=>{var[o,i]=q.edges(e),a=ft.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!q.includes(e,p)}});for(var[,u]of a){if(!q.includes(e,u)){var s=ft.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(R.equals(u,i.path)){var c=ft.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(R.equals(u,o.path)){var f=ft.leaf(n,u);f.text=f.text.slice(o.offset)}}C.isEditor(n)&&(n.selection=null)}));return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(yt.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(yt.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:t=>yt.isText(t)||Et.isElement(t)||C.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=U9.get(t);if(e!==void 0)return e;var r=t.every((n=>ft.isNode(n)));return U9.set(t,r),r},last(t,e){for(var r=e.slice(),n=ft.get(t,r);n&&!yt.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=ft.get(t,e);if(!yt.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of R.levels(e,r)){var o=ft.get(t,n);yield[o,n]}},matches:(t,e)=>Et.isElement(t)&&Et.isElementProps(e)&&Et.matches(t,e)||yt.isText(t)&&yt.isTextProps(e)&&yt.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(n?R.isBefore(u,i):R.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||yt.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=R.next(u);if(ft.has(t,l)){u=l,s=ft.get(t,u);continue}}n&&u[u.length-1]!==0?(u=R.previous(u),s=ft.get(t,u)):(u=R.parent(u),s=ft.get(t,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;R.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=ft.get(t,u)}},parent(t,e){var r=R.parent(e),n=ft.get(t,r);if(yt.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},string:t=>yt.isText(t)?t.text:t.children.map(ft.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of ft.nodes(t,e))yt.isText(r)&&(yield[r,n])}};function W9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?W9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):W9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var Ha={isNodeOperation:t=>Ha.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Kr(t))return!1;switch(t.type){case"insert_node":case"remove_node":return R.isPath(t.path)&&ft.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&R.isPath(t.path);case"merge_node":return typeof t.position=="number"&&R.isPath(t.path)&&Kr(t.properties);case"move_node":return R.isPath(t.path)&&R.isPath(t.newPath);case"set_node":return R.isPath(t.path)&&Kr(t.properties)&&Kr(t.newProperties);case"set_selection":return t.properties===null&&q.isRange(t.newProperties)||t.newProperties===null&&q.isRange(t.properties)||Kr(t.properties)&&Kr(t.newProperties);case"split_node":return R.isPath(t.path)&&typeof t.position=="number"&&Kr(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every((e=>Ha.isOperation(e))),isSelectionOperation:t=>Ha.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Ha.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return lr(lr({},t),{},{type:"remove_node"});case"insert_text":return lr(lr({},t),{},{type:"remove_text"});case"merge_node":return lr(lr({},t),{},{type:"split_node",path:R.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(R.equals(e,r))return t;if(R.isSibling(r,e))return lr(lr({},t),{},{path:e,newPath:r});var n=R.transform(r,t),o=R.transform(R.next(r),t);return lr(lr({},t),{},{path:n,newPath:o});case"remove_node":return lr(lr({},t),{},{type:"insert_node"});case"remove_text":return lr(lr({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return lr(lr({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return lr(lr({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return lr(lr({},t),{},{type:"merge_node",path:R.next(t.path)})}}},R={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=R.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return R.equals(n,o)&&i>a},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return R.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return R.equals(n,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every(((r,n)=>r===e[n])),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>R.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&R.compare(t,e)===0,isBefore:(t,e)=>R.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&R.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&R.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&R.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&R.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&R.equals(r,n)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!R.isAncestor(e,t)&&!R.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ob(t,(n=>{var{affinity:o="forward"}=r;if(t&&t?.length!==0){if(n===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(R.equals(i,n)||R.endsBefore(i,n)||R.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(R.equals(a,n)||R.isAncestor(a,n))return null;R.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;R.equals(u,n)||R.endsBefore(u,n)?n[u.length-1]-=1:R.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(R.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else R.endsBefore(l,n)?n[l.length-1]+=1:R.isAncestor(l,n)&&t[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(R.equals(f,d))return;if(R.isAncestor(f,n)||R.equals(f,n)){var p=d.slice();return R.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}R.isSibling(f,d)&&(R.isAncestor(d,n)||R.equals(d,n))?R.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:R.endsBefore(d,n)||R.equals(d,n)||R.isAncestor(d,n)?(R.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):R.endsBefore(f,n)&&(R.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}}))}},ltt={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=R.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}};function G9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function q9(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?G9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var Ut={compare(t,e){var r=R.compare(t.path,e.path);return r===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},isAfter:(t,e)=>Ut.compare(t,e)===1,isBefore:(t,e)=>Ut.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&R.equals(t.path,e.path),isPoint:t=>Kr(t)&&typeof t.offset=="number"&&R.isPath(t.path),transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ob(t,(n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(e.type){case"insert_node":case"move_node":n.path=R.transform(i,e,r);break;case"insert_text":R.equals(e.path,i)&&e.offset<=a&&(n.offset+=e.text.length);break;case"merge_node":R.equals(e.path,i)&&(n.offset+=e.position),n.path=R.transform(i,e,r);break;case"remove_text":R.equals(e.path,i)&&e.offset<=a&&(n.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(R.equals(e.path,i)||R.isAncestor(e.path,i))return null;n.path=R.transform(i,e,r);break;case"split_node":if(R.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(n.offset-=e.position,n.path=R.transform(i,e,q9(q9({},r),{},{affinity:"forward"})))}else n.path=R.transform(i,e,r)}}))}},ctt={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=Ut.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},ftt=["anchor","focus"];function K9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}var q={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return q.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=q.edges(t);return e},equals:(t,e)=>Ut.equals(t.anchor,e.anchor)&&Ut.equals(t.focus,e.focus),includes(t,e){if(q.isRange(e)){if(q.includes(t,e.anchor)||q.includes(t,e.focus))return!0;var[r,n]=q.edges(t),[o,i]=q.edges(e);return Ut.isBefore(r,o)&&Ut.isAfter(n,i)}var[a,u]=q.edges(t),s=!1,l=!1;return Ut.isPoint(e)?(s=Ut.compare(e,a)>=0,l=Ut.compare(e,u)<=0):(s=R.compare(e,a.path)>=0,l=R.compare(e,u.path)<=0),s&&l},intersection(t,e){var r=Qi(t,ftt),[n,o]=q.edges(t),[i,a]=q.edges(e),u=Ut.isBefore(n,i)?i:n,s=Ut.isBefore(o,a)?o:a;return Ut.isBefore(s,u)?null:(function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?K9(Object(f),!0).forEach((function(d){mi(l,d,f[d])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):K9(Object(f)).forEach((function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))}))}return l})({anchor:u,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return Ut.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return Ut.equals(e,r)},isExpanded:t=>!q.isCollapsed(t),isForward:t=>!q.isBackward(t),isRange:t=>Kr(t)&&Ut.isPoint(t.anchor)&&Ut.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=q.edges(t);return e},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ob(t,(n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=q.isCollapsed(n);q.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?q.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ut.transform(n.anchor,e,{affinity:o}),l=Ut.transform(n.focus,e,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l}))}},dtt={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=q.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},mM=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(Kr(n)&&Kr(o)){if(!mM(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},ptt=["text"],htt=["anchor","focus"];function Y9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function Ai(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Y9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var yt={equals(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return Qi(i,ptt)}return mM(n?o(t):t,n?o(e):e)},isText:t=>Kr(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every((e=>yt.isText(e))),isTextProps:t=>t.text!==void 0,matches(t,e){for(var r in e)if(r!=="text"&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[Ai({},t)];for(var n of e){var o=Qi(n,htt),[i,a]=q.edges(n),u=[],s=0;for(var l of r){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,m=void 0;if(a.offset<s){var v=a.offset-f;m=Ai(Ai({},d),{},{text:d.text.slice(v)}),d=Ai(Ai({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=Ai(Ai({},d),{},{text:d.text.slice(0,g)}),d=Ai(Ai({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),m&&u.push(m)}}r=u}return r}};function X9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function od(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?X9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var gtt={transform(t,e){t.children=j9(t.children);var r=t.selection&&j9(t.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=ft.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of q.points(o))o[f]=Ut.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:m}=i;if(m.length===0)break;var v=ft.leaf(n,d),g=v.text.slice(0,p),y=v.text.slice(p);if(v.text=g+m+y,o)for(var[h,b]of q.points(o))o[b]=Ut.transform(h,i);break;case"merge_node":var{path:w}=i,E=ft.get(n,w),S=R.previous(w),x=ft.get(n,S),D=ft.parent(n,w),A=w[w.length-1];if(yt.isText(E)&&yt.isText(x))x.text+=E.text;else{if(yt.isText(E)||yt.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(E," ").concat(x));x.children.push(...E.children)}if(D.children.splice(A,1),o)for(var[P,M]of q.points(o))o[M]=Ut.transform(P,i);break;case"move_node":var{path:F,newPath:V}=i;if(R.isAncestor(F,V))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(V,"] because the destination is inside itself."));var U=ft.get(n,F),W=ft.parent(n,F),z=F[F.length-1];W.children.splice(z,1);var tt=R.transform(F,i),J=ft.get(n,R.parent(tt)),st=tt[tt.length-1];if(J.children.splice(st,0,U),o)for(var[bt,B]of q.points(o))o[B]=Ut.transform(bt,i);break;case"remove_node":var{path:_}=i,I=_[_.length-1];if(ft.parent(n,_).children.splice(I,1),o)for(var[X,it]of q.points(o)){var Q=Ut.transform(X,i);if(o!=null&&Q!=null)o[it]=Q;else{var vt=void 0,xt=void 0;for(var[_t,kt]of ft.texts(n)){if(R.compare(kt,_)!==-1){xt=[_t,kt];break}vt=[_t,kt]}var rt=!1;vt&&xt&&(rt=R.equals(xt[1],_)?!R.hasPrevious(xt[1]):R.common(vt[1],_).length<R.common(xt[1],_).length),vt&&!rt?(X.path=vt[1],X.offset=vt[0].text.length):xt?(X.path=xt[1],X.offset=0):o=null}}break;case"remove_text":var{path:Vt,offset:O,text:T}=i;if(T.length===0)break;var H=ft.leaf(n,Vt),nt=H.text.slice(0,O),K=H.text.slice(O+T.length);if(H.text=nt+K,o)for(var[Z,at]of q.points(o))o[at]=Ut.transform(Z,i);break;case"set_node":var{path:ut,properties:et,newProperties:ot}=i;if(ut.length===0)throw new Error("Cannot set properties on the root node!");var St=ft.get(n,ut);for(var mt in ot){if(mt==="children"||mt==="text")throw new Error('Cannot set the "'.concat(mt,'" property of nodes!'));var Dt=ot[mt];Dt==null?delete St[mt]:St[mt]=Dt}for(var Tt in et)ot.hasOwnProperty(Tt)||delete St[Tt];break;case"set_selection":var{newProperties:Rt}=i;if(Rt==null)o=Rt;else{if(o==null){if(!q.isRange(Rt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Rt)," when there is no current selection."));o=od({},Rt)}for(var te in Rt){var Zt=Rt[te];if(Zt==null){if(te==="anchor"||te==="focus")throw new Error('Cannot remove the "'.concat(te,'" selection property'));delete o[te]}else o[te]=Zt}}break;case"split_node":var{path:he,position:ce,properties:Ce}=i;if(he.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(he,"] because the root node cannot be split."));var be,$e=ft.get(n,he),nn=ft.parent(n,he),wr=he[he.length-1];if(yt.isText($e)){var Er=$e.text.slice(0,ce),Wn=$e.text.slice(ce);$e.text=Er,be=od(od({},Ce),{},{text:Wn})}else{var bi=$e.children.slice(0,ce),Iu=$e.children.slice(ce);$e.children=bi,be=od(od({},Ce),{},{children:Iu})}if(nn.children.splice(wr+1,0,be),o)for(var[xl,ho]of q.points(o))o[ho]=Ut.transform(xl,i)}return o})(t,r,e)}finally{t.children=N9(t.children),t.selection=r?Ys(r)?N9(r):r:null}}},vtt=["text"],mtt=["children"];function Z9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function J9(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Z9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var ytt={insertNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,(()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(ft.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?C.end(t,[]):[0],s=!0),s==null&&(s=!1),q.isRange(a))if(n||(a=C.unhangRange(t,a)),q.isCollapsed(a))a=a.anchor;else{var[,c]=q.edges(a),f=C.pointRef(t,c);$.delete(t,{at:a}),a=f.unref()}if(Ut.isPoint(a)){u==null&&(u=yt.isText(l)?S=>yt.isText(S):t.isInline(l)?S=>yt.isText(S)||C.isInline(t,S):S=>C.isBlock(t,S));var[d]=C.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,m=C.pathRef(t,p),v=C.isEnd(t,a,p);$.splitNodes(t,{at:a,match:u,mode:i,voids:o});var g=m.unref();a=v?R.next(g):g}var y=R.parent(a),h=a[a.length-1];if(o||!C.void(t,{at:y})){for(var b of e){var w=y.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=R.next(a)}if(a=R.previous(a),s){var E=C.end(t,a);E&&$.select(t,E)}}}}))},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,(()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=R.isPath(r)?Tl(t,r):b=>C.isBlock(t,b)),r){var a=C.nodes(t,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,(b=>{var[,w]=b;return C.pathRef(t,w)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=C.node(t,R.parent(l)),[f,d]=c,p=l[l.length-1],{length:m}=f.children;if(m===1){var v=R.next(d);$.moveNodes(t,{at:l,to:v,voids:o}),$.removeNodes(t,{at:d,voids:o})}else if(p===0)$.moveNodes(t,{at:l,to:d,voids:o});else if(p===m-1){var g=R.next(d);$.moveNodes(t,{at:l,to:g,voids:o})}else{var y=R.next(l),h=R.next(d);$.splitNodes(t,{at:y,voids:o}),$.moveNodes(t,{at:l,to:h,voids:o})}}}}))},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,(()=>{var{match:r,at:n=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(n){if(r==null)if(R.isPath(n)){var[u]=C.parent(t,n);r=A=>u.children.includes(A)}else r=A=>C.isBlock(t,A);if(!o&&q.isRange(n)&&(n=C.unhangRange(t,n)),q.isRange(n))if(q.isCollapsed(n))n=n.anchor;else{var[,s]=q.edges(n),l=C.pointRef(t,s);$.delete(t,{at:n}),n=l.unref(),e.at==null&&$.select(t,n)}var[c]=C.nodes(t,{at:n,match:r,voids:i,mode:a}),f=C.previous(t,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[m,v]=f;if(p.length!==0&&v.length!==0){var g,y,h=R.next(v),b=R.common(p,v),w=R.isSibling(p,v),E=Array.from(C.levels(t,{at:p}),(A=>{var[P]=A;return P})).slice(b.length).slice(0,-1),S=C.above(t,{at:p,mode:"highest",match:A=>E.includes(A)&&yM(t,A)}),x=S&&C.pathRef(t,S[1]);if(yt.isText(d)&&yt.isText(m)){var D=Qi(d,vtt);y=m.text.length,g=D}else{if(!Et.isElement(d)||!Et.isElement(m))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(m)));D=Qi(d,mtt),y=m.children.length,g=D}w||$.moveNodes(t,{at:p,to:h,voids:i}),x&&$.removeNodes(t,{at:x.current,voids:i}),Et.isElement(m)&&C.isEmpty(t,m)||yt.isText(m)&&m.text===""&&v[v.length-1]!==0?$.removeNodes(t,{at:v,voids:i}):t.apply({type:"merge_node",path:h,position:y,properties:g}),x&&x.unref()}}}}))},moveNodes(t,e){C.withoutNormalizing(t,(()=>{var{to:r,at:n=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(n){a==null&&(a=R.isPath(n)?Tl(t,n):p=>C.isBlock(t,p));var u=C.pathRef(t,r),s=C.nodes(t,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,(p=>{var[,m]=p;return C.pathRef(t,m)}));for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&R.isSibling(d,f)&&R.isAfter(d,f)&&(u.current=R.next(u.current))}u.unref()}}))},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,(()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=R.isPath(i)?Tl(t,i):d=>C.isBlock(t,d)),!r&&q.isRange(i)&&(i=C.unhangRange(t,i));var u=C.nodes(t,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,(d=>{var[,p]=d;return C.pathRef(t,p)}));for(var l of s){var c=l.unref();if(c){var[f]=C.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,(()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=R.isPath(o)?Tl(t,o):E=>C.isBlock(t,E)),!i&&q.isRange(o)&&(o=C.unhangRange(t,o)),u&&q.isRange(o)){if(q.isCollapsed(o)&&C.leaf(t,o.anchor)[0].text.length>0)return;var l=C.rangeRef(t,o,{affinity:"inward"}),[c,f]=q.edges(o),d=a==="lowest"?"lowest":"highest",p=C.isEnd(t,f,f.path);$.splitNodes(t,{at:f,match:n,mode:d,voids:s,always:!p});var m=C.isStart(t,c,c.path);$.splitNodes(t,{at:c,match:n,mode:d,voids:s,always:!m}),o=l.unref(),r.at==null&&$.select(t,o)}for(var[v,g]of C.nodes(t,{at:o,match:n,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}}))},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,(()=>{var{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>C.isBlock(t,U)),q.isRange(i)&&(i=btt(t,i)),R.isPath(i)){var s=i,l=C.point(t,s),[c]=C.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=C.pointRef(t,i,{affinity:"backward"}),[d]=C.nodes(t,{at:i,match:o,mode:r,voids:n});if(d){var p=C.void(t,{at:i,mode:"highest"});if(!n&&p){var[m,v]=p;if(Et.isElement(m)&&t.isInline(m)){var g=C.after(t,v);if(!g){var y=R.next(v);$.insertNodes(t,{text:""},{at:y,voids:n}),g=C.point(t,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var h=C.pointRef(t,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[x,D]of C.levels(t,{at:E,reverse:!0,voids:n})){var A=!1;if(D.length<w.length||D.length===0||!n&&C.isVoid(t,x))break;var P=f.current,M=C.isEnd(t,P,D);if(u||!f||!C.isEdge(t,P,D)){A=!0;var F=ft.extractProps(x);t.apply({type:"split_node",path:D,position:S,properties:F})}S=D[D.length-1]+(A||M?1:0)}if(e.at==null){var V=h.current||C.end(t,[]);$.select(t,V)}f.unref(),h.unref()}}}))},unsetNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;$.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,(()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=R.isPath(i)?Tl(t,i):d=>C.isBlock(t,d)),R.isPath(i)&&(i=C.range(t,i));var u=q.isRange(i)?C.rangeRef(t,i):null,s=C.nodes(t,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,(d=>{var[,p]=d;return C.pathRef(t,p)})).reverse(),c=function(d){var p=d.unref(),[m]=C.node(t,p),v=C.range(t,p);n&&u&&(v=q.intersection(u.current,v)),$.liftNodes(t,{at:v,match:g=>Et.isAncestor(m)&&m.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,(()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=t.selection}=r;if(u){if(a==null&&(a=R.isPath(u)?Tl(t,u):t.isInline(e)?g=>C.isInline(t,g)||yt.isText(g):g=>C.isBlock(t,g)),o&&q.isRange(u)){var[s,l]=q.edges(u),c=C.rangeRef(t,u,{affinity:"inward"});$.splitNodes(t,{at:l,match:a,voids:i}),$.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&$.select(t,u)}var f=Array.from(C.nodes(t,{at:u,match:t.isInline(e)?g=>C.isBlock(t,g):g=>C.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=q.isRange(u)?q.intersection(u,C.range(t,d)):u;if(p){var m=Array.from(C.nodes(t,{at:p,match:a,mode:n,voids:i}));if(m.length>0){var v=(function(){var[g]=m,y=m[m.length-1],[,h]=g,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=R.equals(h,b)?R.parent(h):R.common(h,b),E=C.range(t,h,b),S=C.node(t,w),[x]=S,D=w.length+1,A=R.next(b.slice(0,D)),P=J9(J9({},e),{},{children:[]});$.insertNodes(t,P,{at:A,voids:i}),$.moveNodes(t,{at:E,match:M=>Et.isAncestor(x)&&x.children.includes(M),to:A.concat(0),voids:i})})();if(v==="continue")continue}}}}}))}},yM=(t,e)=>{if(Et.isElement(e)){var r=e;return!!C.isVoid(t,e)||r.children.length===1&&yM(t,r.children[0])}return!C.isEditor(e)},btt=(t,e)=>{if(q.isCollapsed(e))return e.anchor;var[,r]=q.edges(e),n=C.pointRef(t,r);return $.delete(t,{at:e}),n.unref()},Tl=(t,e)=>{var[r]=C.node(t,e);return n=>n===r};function Q9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function t_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Q9(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q9(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var wtt={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n){if(r==="anchor")$.select(t,n.anchor);else if(r==="focus")$.select(t,n.focus);else if(r==="start"){var[o]=q.edges(n);$.select(t,o)}else if(r==="end"){var[,i]=q.edges(n);$.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:n=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(r){a==="start"&&(a=q.isBackward(r)?"focus":"anchor"),a==="end"&&(a=q.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?C.before(t,u,l):C.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?C.before(t,s,l):C.after(t,s,l);d&&(c.focus=d)}$.setSelection(t,c)}},select(t,e){var{selection:r}=t;if(e=C.range(t,e),r)$.setSelection(t,e);else{if(!q.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){o==="start"&&(o=q.isBackward(n)?"focus":"anchor"),o==="end"&&(o=q.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;$.setSelection(t,{[o==="anchor"?"anchor":"focus"]:t_(t_({},u),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ut.equals(e.anchor,r.anchor)||i==="focus"&&e.focus!=null&&!Ut.equals(e.focus,r.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==r[i])&&(n[i]=r[i],o[i]=e[i]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},Ett={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,(()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(q.isRange(a)&&q.isCollapsed(a)&&(a=a.anchor),Ut.isPoint(a)){var s=C.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?C.before(t,a,c)||C.start(t,[]):C.after(t,a,c)||C.end(t,[])},u=!0}}if(R.isPath(a))$.removeNodes(t,{at:a,voids:i});else if(!q.isCollapsed(a)){if(!u){var[,f]=q.edges(a),d=C.end(t,[]);Ut.equals(f,d)||(a=C.unhangRange(t,a,{voids:i}))}var[p,m]=q.edges(a),v=C.above(t,{match:xt=>C.isBlock(t,xt),at:p,voids:i}),g=C.above(t,{match:xt=>C.isBlock(t,xt),at:m,voids:i}),y=v&&g&&!R.equals(v[1],g[1]),h=R.equals(p.path,m.path),b=i?null:C.void(t,{at:p,mode:"highest"}),w=i?null:C.void(t,{at:m,mode:"highest"});if(b){var E=C.before(t,p);E&&v&&R.isAncestor(v[1],E.path)&&(p=E)}if(w){var S=C.after(t,m);S&&g&&R.isAncestor(g[1],S.path)&&(m=S)}var x,D=[];for(var A of C.nodes(t,{at:a,voids:i})){var[P,M]=A;x&&R.compare(M,x)===0||(!i&&C.isVoid(t,P)||!R.isCommon(M,p.path)&&!R.isCommon(M,m.path))&&(D.push(A),x=M)}var F=Array.from(D,(xt=>{var[,_t]=xt;return C.pathRef(t,_t)})),V=C.pointRef(t,p),U=C.pointRef(t,m);if(!h&&!b){var W=V.current,[z]=C.leaf(t,W),{path:tt}=W,{offset:J}=p,st=z.text.slice(J);st.length>0&&t.apply({type:"remove_text",path:tt,offset:J,text:st})}for(var bt of F){var B=bt.unref();$.removeNodes(t,{at:B,voids:i})}if(!w){var _=U.current,[I]=C.leaf(t,_),{path:X}=_,it=h?p.offset:0,Q=I.text.slice(it,m.offset);Q.length>0&&t.apply({type:"remove_text",path:X,offset:it,text:Q})}!h&&y&&U.current&&V.current&&$.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var vt=r?V.unref()||U.unref():U.unref()||V.unref();e.at==null&&vt&&$.select(t,vt)}}}))},insertFragment(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,(()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=t.selection}=r;if(e.length&&i){if(q.isRange(i))if(n||(i=C.unhangRange(t,i)),q.isCollapsed(i))i=i.anchor;else{var[,a]=q.edges(i);if(!o&&C.void(t,{at:a}))return;var u=C.pointRef(t,a);$.delete(t,{at:i}),i=u.unref()}else R.isPath(i)&&(i=C.start(t,i));if(o||!C.void(t,{at:i})){var s=C.above(t,{at:i,match:_=>C.isInline(t,_),mode:"highest",voids:o});if(s){var[,l]=s;C.isEnd(t,i,l)?i=C.after(t,l):C.isStart(t,i,l)&&(i=C.before(t,l))}var c=C.above(t,{match:_=>C.isBlock(t,_),at:i,voids:o}),[,f]=c,d=C.isStart(t,i,f),p=C.isEnd(t,i,f),m=d&&p,v=!d||d&&p,g=!p,[,y]=ft.first({children:e},[]),[,h]=ft.last({children:e},[]),b=[],w=_=>{var[I,X]=_;return X.length!==0&&(!!m||!(v&&R.isAncestor(X,y)&&Et.isElement(I)&&!t.isVoid(I)&&!t.isInline(I))&&!(g&&R.isAncestor(X,h)&&Et.isElement(I)&&!t.isVoid(I)&&!t.isInline(I)))};for(var E of ft.nodes({children:e},{pass:w}))w(E)&&b.push(E);var S=[],x=[],D=[],A=!0,P=!1;for(var[M]of b)Et.isElement(M)&&!t.isInline(M)?(A=!1,P=!0,x.push(M)):A?S.push(M):D.push(M);var[F]=C.nodes(t,{at:i,match:_=>yt.isText(_)||C.isInline(t,_),mode:"highest",voids:o}),[,V]=F,U=C.isStart(t,i,V),W=C.isEnd(t,i,V),z=C.pathRef(t,p?R.next(f):f),tt=C.pathRef(t,W?R.next(V):V),J=C.pathRef(t,f);$.splitNodes(t,{at:i,match:_=>P?C.isBlock(t,_):yt.isText(_)||C.isInline(t,_),mode:P?"lowest":"highest",voids:o});var st=C.pathRef(t,!U||U&&W?R.next(V):V);if($.insertNodes(t,S,{at:st.current,match:_=>yt.isText(_)||C.isInline(t,_),mode:"highest",voids:o}),m&&x.length&&$.delete(t,{at:J.unref(),voids:o}),$.insertNodes(t,x,{at:z.current,match:_=>C.isBlock(t,_),mode:"lowest",voids:o}),$.insertNodes(t,D,{at:tt.current,match:_=>yt.isText(_)||C.isInline(t,_),mode:"highest",voids:o}),!r.at){var bt;bt=D.length>0?R.previous(tt.current):x.length>0?R.previous(z.current):R.previous(st.current);var B=C.end(t,bt);$.select(t,B)}st.unref(),z.unref(),tt.unref()}}}))},insertText(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,(()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(R.isPath(o)&&(o=C.range(t,o)),q.isRange(o))if(q.isCollapsed(o))o=o.anchor;else{var i=q.end(o);if(!n&&C.void(t,{at:i}))return;var a=C.pointRef(t,i);$.delete(t,{at:o,voids:n}),o=a.unref(),$.setSelection(t,{anchor:o,focus:o})}if(n||!C.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}}))}};function e_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,n)}return r}function _v(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?e_(Object(r),!0).forEach((function(n){mi(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}var $=_v(_v(_v(_v({},gtt),ytt),wtt),Ett),LC="[object Map]",RC="[object Set]",xtt=/^\[object .+?Constructor\]$/,Ctt=/^(?:0|[1-9]\d*)$/,Stt="[\\ud800-\\udfff]",MC="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zC="\\ud83c[\\udffb-\\udfff]",bM="[^\\ud800-\\udfff]",wM="(?:\\ud83c[\\udde6-\\uddff]){2}",EM="[\\ud800-\\udbff][\\udc00-\\udfff]",r_="(?:"+MC+"|"+zC+")?",Dtt="[\\ufe0e\\ufe0f]?"+r_+("(?:\\u200d(?:"+[bM,wM,EM].join("|")+")[\\ufe0e\\ufe0f]?"+r_+")*"),Att="(?:"+[bM+MC+"?",MC,wM,EM,Stt].join("|")+")",Ott=RegExp(zC+"(?="+zC+")|"+Att+Dtt,"g"),_tt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ktt=typeof De=="object"&&De&&De.Object===Object&&De,Ttt=typeof self=="object"&&self&&self.Object===Object&&self,dl=ktt||Ttt||Function("return this")();function Btt(t,e){return(function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a})(e,(function(r){return t[r]}))}function Ftt(t){var e=-1,r=Array(t.size);return t.forEach((function(n,o){r[++e]=[o,n]})),r}function Ptt(t){var e=-1,r=Array(t.size);return t.forEach((function(n){r[++e]=n})),r}function jtt(t){return(function(e){return _tt.test(e)})(t)?(function(e){return e.match(Ott)||[]})(t):(function(e){return e.split("")})(t)}var n_,o_,Ntt=Function.prototype,ib=Object.prototype,Z2=dl["__core-js_shared__"],i_=(function(){var t=/[^.]+$/.exec(Z2&&Z2.keys&&Z2.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),xM=Ntt.toString,Jm=ib.hasOwnProperty,Cg=ib.toString,Itt=RegExp("^"+xM.call(Jm).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),a_=dl.Symbol,J2=a_?a_.iterator:void 0,Ltt=ib.propertyIsEnumerable,Rtt=(n_=Object.keys,o_=Object,function(t){return n_(o_(t))}),HC=Sg(dl,"DataView"),$C=Sg(dl,"Map"),VC=Sg(dl,"Promise"),UC=Sg(dl,"Set"),WC=Sg(dl,"WeakMap"),Mtt=pl(HC),ztt=pl($C),Htt=pl(VC),$tt=pl(UC),Vtt=pl(WC);function Utt(t,e){var r=CM(t)||(function(a){return(function(u){return AM(u)&&$D(u)})(a)&&Jm.call(a,"callee")&&(!Ltt.call(a,"callee")||Cg.call(a)=="[object Arguments]")})(t)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(t.length,String):[],n=r.length,o=!!n;for(var i in t)!Jm.call(t,i)||o&&(i=="length"||qtt(i,n))||r.push(i);return r}function Wtt(t){if(!DM(t)||(function(r){return!!i_&&i_ in r})(t))return!1;var e=SM(t)||(function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n})(t)?Itt:xtt;return e.test(pl(t))}function Gtt(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||ib,e!==n)return Rtt(t);var e,r,n,o=[];for(var i in Object(t))Jm.call(t,i)&&i!="constructor"&&o.push(i);return o}function Sg(t,e){var r=(function(n,o){return n?.[o]})(t,e);return Wtt(r)?r:void 0}var ns=function(t){return Cg.call(t)};function qtt(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||Ctt.test(t))&&t>-1&&t%1==0&&t<e}function pl(t){if(t!=null){try{return xM.call(t)}catch{}try{return t+""}catch{}}return""}(HC&&ns(new HC(new ArrayBuffer(1)))!="[object DataView]"||$C&&ns(new $C)!=LC||VC&&ns(VC.resolve())!="[object Promise]"||UC&&ns(new UC)!=RC||WC&&ns(new WC)!="[object WeakMap]")&&(ns=function(t){var e=Cg.call(t),r=e=="[object Object]"?t.constructor:void 0,n=r?pl(r):void 0;if(n)switch(n){case Mtt:return"[object DataView]";case ztt:return LC;case Htt:return"[object Promise]";case $tt:return RC;case Vtt:return"[object WeakMap]"}return e});var CM=Array.isArray;function $D(t){return t!=null&&(function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})(t.length)&&!SM(t)}function SM(t){var e=DM(t)?Cg.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function DM(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function AM(t){return!!t&&typeof t=="object"}function Ktt(t){return t?Btt(t,(function(e){return $D(e)?Utt(e):Gtt(e)})(t)):[]}var u_=function(t){if(!t)return[];if($D(t))return(function(r){return typeof r=="string"||!CM(r)&&AM(r)&&Cg.call(r)=="[object String]"})(t)?jtt(t):(function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n})(t);if(J2&&t[J2])return(function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o})(t[J2]());var e=ns(t);return(e==LC?Ftt:e==RC?Ptt:Ktt)(t)};function s_(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function VD(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach((function(r){t[r]===void 0?t[r]=e[r]:s_(e[r])&&s_(t[r])&&Object.keys(e[r]).length>0&&VD(t[r],e[r])}))}var OM={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 Dg(){var t=typeof document<"u"?document:{};return VD(t,OM),t}var Ytt={document:OM,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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function hl(){var t=typeof window<"u"?window:{};return VD(t,Ytt),t}function GC(t){return GC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},GC(t)}function Qm(t,e){return Qm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Qm(t,e)}function Xtt(){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 qC(t,e,r){return qC=Xtt()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&Qm(u,i.prototype),u},qC.apply(null,arguments)}function KC(t){var e=typeof Map=="function"?new Map:void 0;return KC=function(r){if(r===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return qC(r,arguments,GC(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qm(n,r)},KC(t)}var $a=(function(t){var e,r;function n(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=(function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s})(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n})(KC(Array));function ab(t){t===void 0&&(t=[]);var e=[];return t.forEach((function(r){Array.isArray(r)?e.push.apply(e,ab(r)):e.push(r)})),e}function _M(t,e){return Array.prototype.filter.call(t,e)}function j(t,e){var r=hl(),n=Dg(),o=[];if(!e&&t instanceof $a)return t;if(!t)return new $a(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=(function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f})(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof $a)return t;o=t}return new $a((function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c})(o))}function Xc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=ab(e.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).add.apply(i,n)})),this}function Zc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=ab(e.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).remove.apply(i,n)})),this}function Jc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=ab(e.map((function(o){return o.split(" ")})));return _M(this,(function(o){return n.filter((function(i){return o.classList.contains(i)})).length>0})).length>0}function ao(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,e);else for(var n in t)this[r][n]=t[n],this[r].setAttribute(n,t[n]);return this}function ty(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Qc(){var t=this[0];if(t){var e,r={};if(t.dataset)for(var n in t.dataset)r[n]=t.dataset[n];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(r[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,(function(u,s){return s.toUpperCase()}))]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function ci(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<e.selectedOptions.length;n+=1)r.push(e.selectedOptions[n].value);return r}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function fi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];function u(v){var g=v.target;if(g){var y=v.target.dom7EventData||[];if(y.indexOf(v)<0&&y.unshift(v),j(g).is(o))i.apply(g,y);else for(var h=j(g).parents(),b=0;b<h.length;b+=1)j(h[b]).is(o)&&i.apply(h[b],y)}}function s(v){var g=v&&v.target&&v.target.dom7EventData||[];g.indexOf(v)<0&&g.unshift(v),i.apply(this,g)}typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var m=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[m]||(d.dom7Listeners[m]=[]),d.dom7Listeners[m].push({listener:i,proxyListener:s}),d.addEventListener(m,s,a)}}return this}function l_(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=n.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var m=d[p];i&&m.listener===i||i&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===i?(f.removeEventListener(l,m.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,m.proxyListener,a),d.splice(p,1))}}return this}function ey(){var t=hl();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function ry(){var t=hl();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function c_(){if(this.length>0){var t=hl(),e=Dg(),r=this[0],n=r.getBoundingClientRect(),o=e.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function tf(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function ny(){for(var t=hl(),e=0;e<this.length;e+=1){var r=this[e];r.style.display==="none"&&(r.style.display=""),t.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function oy(t,e){var r,n=hl();if(arguments.length===1){if(typeof t!="string"){for(r=0;r<this.length;r+=1)for(var o in t)this[r].style[o]=t[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function iy(t){return t?(this.forEach((function(e,r){t.apply(e,[e,r])})),this):this}function f_(t){return j(_M(this,t))}function gu(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function ay(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function d_(t){var e,r,n=hl(),o=Dg(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=j(t),r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}if(t===o)return i===o;if(t===n)return i===n;if(t.nodeType||t instanceof $a){for(e=t.nodeType?[t]:t,r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}return!1}function uo(){for(var t,e=Dg(),r=0;r<arguments.length;r+=1){t=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof $a)for(var i=0;i<t.length;i+=1)this[n].appendChild(t[i]);else this[n].appendChild(t)}return this}function p_(t){var e,r,n=Dg();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=n.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(o.childNodes[r],this[e].childNodes[0])}else if(t instanceof $a)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function ef(t){for(var e=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?j(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return j(e)}function uy(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)t?j(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return j(e)}function rf(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return j(e)}function nf(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)t&&!j(n[o]).is(t)||e.push(n[o]);return j(e)}function of(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function af(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var r=0;r<e.childNodes.length;r+=1)e.childNodes[r].parentNode&&e.childNodes[r].parentNode.removeChild(e.childNodes[r]);e.textContent=""}}return this}j.fn=$a.prototype;var Ztt="resize scroll".split(" ");function kM(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)Ztt.indexOf(t)<0&&(t in this[o]?this[o][t]():j(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(r))}}var h_=kM("click"),vu=kM("focus"),Jtt="[object GeneratorFunction]",Qtt=/^(?:0|[1-9]\d*)$/;function tet(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}var ub=Object.prototype,YC=ub.hasOwnProperty,TM=ub.toString,eet=ub.propertyIsEnumerable,ret=(function(t,e){return function(r){return t(e(r))}})(Object.keys,Object);function net(t,e){var r=BM(t)||(function(a){return(function(u){return(function(s){return!!s&&typeof s=="object"})(u)&&UD(u)})(a)&&YC.call(a,"callee")&&(!eet.call(a,"callee")||TM.call(a)=="[object Arguments]")})(t)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(t.length,String):[],n=r.length,o=!!n;for(var i in t)!YC.call(t,i)||o&&(i=="length"||uet(i,n))||r.push(i);return r}var g_,oet=(g_=function(t,e){return t&&iet(t,e,set)},function(t,e){if(t==null)return t;if(!UD(t))return g_(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&e(o[n],n,o)!==!1;);return t}),iet=(function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return e}})();function aet(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||ub,e!==n)return ret(t);var e,r,n,o=[];for(var i in Object(t))YC.call(t,i)&&i!="constructor"&&o.push(i);return o}function uet(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||Qtt.test(t))&&t>-1&&t%1==0&&t<e}var BM=Array.isArray;function UD(t){return t!=null&&(function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})(t.length)&&!(function(e){var r=(function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")})(e)?TM.call(e):"";return r=="[object Function]"||r==Jtt})(t)}function set(t){return UD(t)?net(t):aet(t)}function cet(t){return t}var WD=function(t,e){return(BM(t)?tet:oet)(t,typeof e=="function"?e:cet)};let FM=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var fet=/^\s+|\s+$/g,det=/^[-+]0x[0-9a-f]+$/i,pet=/^0b[01]+$/i,het=/^0o[0-7]+$/i,get=parseInt,vet=typeof De=="object"&&De&&De.Object===Object&&De,met=typeof self=="object"&&self&&self.Object===Object&&self,yet=vet||met||Function("return this")(),bet=Object.prototype.toString,wet=Math.max,Eet=Math.min,Q2=function(){return yet.Date.now()};function xet(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=n,E=o;return n=o=void 0,l=b,a=t.apply(E,w)}function m(b){return l=b,u=setTimeout(g,e),c?p(b):a}function v(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=Q2();if(v(b))return y(b);u=setTimeout(g,(function(w){var E=e-(w-s);return f?Eet(E,i-(w-l)):E})(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=Q2(),w=v(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=v_(e)||0,sy(r)&&(c=!!r.leading,i=(f="maxWait"in r)?wet(v_(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Q2())},h}function sy(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function v_(t){if(typeof t=="number")return t;if((function(n){return typeof n=="symbol"||(function(o){return!!o&&typeof o=="object"})(n)&&bet.call(n)=="[object Symbol]"})(t))return NaN;if(sy(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=sy(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(fet,"");var r=pet.test(t);return r||het.test(t)?get(t.slice(2),r?2:8):det.test(t)?NaN:+t}var Zs=function(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return sy(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),xet(t,e,{leading:n,maxWait:e,trailing:o})};const Cet={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function bh(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:e===void 0?void 0:e.key}}const XC=Array.isArray;function $0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function tw(t){return t===void 0}function On(t){return t!==void 0}const m_=bh("",{},[],void 0,void 0);function id(t,e){var r,n;const o=t.key===e.key,i=((r=t.data)===null||r===void 0?void 0:r.is)===((n=e.data)===null||n===void 0?void 0:n.is);return t.sel===e.sel&&o&&i}function Det(t,e,r){var n;const o={};for(let i=e;i<=r;++i){const a=(n=t[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const Aet=["create","update","remove","destroy","pre","post"];function Oet(t,e){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=Cet;for(const f of Aet)for(const d of t){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),m=p?"."+p.split(" ").join("."):"";return bh(n.tagName(f).toLowerCase()+d+m,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,m;let v,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;On(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")tw(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),E=b>0?b:h.length,S=w>0?w:h.length,x=b!==-1||w!==-1?h.slice(0,Math.min(E,S)):h,D=f.elm=On(g)&&On(v=g.ns)?n.createElementNS(v,x,g):n.createElement(x,g);for(E<S&&D.setAttribute("id",h.slice(E+1,S)),w>0&&D.setAttribute("class",h.slice(S+1).replace(/\./g," ")),v=0;v<r.create.length;++v)r.create[v](m_,f);if(XC(y))for(v=0;v<y.length;++v){const P=y[v];P!=null&&n.appendChild(D,a(P,d))}else $0(f.text)&&n.appendChild(D,n.createTextNode(f.text));const A=f.data.hook;On(A)&&((m=A.create)===null||m===void 0||m.call(A,m_,f),A.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,m,v,g){for(;m<=v;++m){const y=p[m];y!=null&&n.insertBefore(f,a(y,g),d)}}function s(f){var d,p;const m=f.data;if(m!==void 0){(p=(d=m?.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let v=0;v<r.destroy.length;++v)r.destroy[v](f);if(f.children!==void 0)for(let v=0;v<f.children.length;++v){const g=f.children[v];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,m){for(var v,g;p<=m;++p){let y,h;const b=d[p];if(b!=null)if(On(b.sel)){s(b),y=r.remove.length+1,h=i(b.elm,y);for(let E=0;E<r.remove.length;++E)r.remove[E](b,h);const w=(g=(v=b?.data)===null||v===void 0?void 0:v.hook)===null||g===void 0?void 0:g.remove;On(w)?w(b,h):h()}else n.removeChild(f,b.elm)}}function c(f,d,p){var m,v,g,y,h;const b=(m=d.data)===null||m===void 0?void 0:m.hook;(v=b?.prepatch)===null||v===void 0||v.call(b,f,d);const w=d.elm=f.elm,E=f.children,S=d.children;if(f!==d){if(d.data!==void 0){for(let x=0;x<r.update.length;++x)r.update[x](f,d);(y=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,f,d)}tw(d.text)?On(E)&&On(S)?E!==S&&(function(x,D,A,P){let M,F,V,U,W=0,z=0,tt=D.length-1,J=D[0],st=D[tt],bt=A.length-1,B=A[0],_=A[bt];for(;W<=tt&&z<=bt;)J==null?J=D[++W]:st==null?st=D[--tt]:B==null?B=A[++z]:_==null?_=A[--bt]:id(J,B)?(c(J,B,P),J=D[++W],B=A[++z]):id(st,_)?(c(st,_,P),st=D[--tt],_=A[--bt]):id(J,_)?(c(J,_,P),n.insertBefore(x,J.elm,n.nextSibling(st.elm)),J=D[++W],_=A[--bt]):id(st,B)?(c(st,B,P),n.insertBefore(x,st.elm,J.elm),st=D[--tt],B=A[++z]):(M===void 0&&(M=Det(D,W,tt)),F=M[B.key],tw(F)?n.insertBefore(x,a(B,P),J.elm):(V=D[F],V.sel!==B.sel?n.insertBefore(x,a(B,P),J.elm):(c(V,B,P),D[F]=void 0,n.insertBefore(x,V.elm,J.elm))),B=A[++z]);(W<=tt||z<=bt)&&(W>tt?(U=A[bt+1]==null?null:A[bt+1].elm,u(x,U,A,z,bt,P)):l(x,D,W,tt))})(w,E,S,p):On(S)?(On(f.text)&&n.setTextContent(w,""),u(w,null,S,0,S.length-1,p)):On(E)?l(w,E,0,E.length-1):On(f.text)&&n.setTextContent(w,""):f.text!==d.text&&(On(E)&&l(w,E,0,E.length-1),n.setTextContent(w,d.text)),(h=b?.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,m,v;const g=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for((function(y){return y.sel!==void 0})(f)||(f=o(f)),id(f,d)?c(f,d,g):(m=f.elm,v=n.parentNode(m),a(d,g),v!==null&&(n.insertBefore(v,d.elm,n.nextSibling(m)),l(v,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function PM(t,e,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){const o=e[n].data;o!==void 0&&PM(o,e[n].children,e[n].sel)}}function uf(t,e,r){let n,o,i,a={};if(r!==void 0?(e!==null&&(a=e),XC(r)?n=r:$0(r)?o=r.toString():r&&r.sel&&(n=[r])):e!=null&&(XC(e)?n=e:$0(e)?o=e.toString():e&&e.sel?n=[e]:a=e),n!==void 0)for(i=0;i<n.length;++i)$0(n[i])&&(n[i]=bh(void 0,void 0,void 0,n[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||PM(a,n,t),bh(t,a,n,o,void 0)}function y_(t,e){let r;const n=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const _et={create:y_,update:y_};function b_(t,e){let r,n;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const ket={create:b_,update:b_},w_=/[A-Z]/g;function E_(t,e){const r=e.elm;let n,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(w_,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(w_,"-$&").toLowerCase(),i[n]))}const Tet={create:E_,update:E_};function jM(t,e,r){if(typeof t=="function")t.call(e,r,e);else if(typeof t=="object")for(let n=0;n<t.length;n++)jM(t[n],e,r)}function Bet(t,e){const r=t.type,n=e.data.on;n&&n[r]&&jM(n[r],e,t)}function ew(t,e){const r=t.data.on,n=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=e.listener=t.listener||function l(c){Bet(c,l.vnode)};if(s.vnode=e,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Fet={create:ew,update:ew,destroy:ew};function x_(t,e){let r,n,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const Pet={create:x_,update:x_},C_=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let rw=!1;function jet(t,e,r){(function(n){C_((function(){C_(n)}))})((function(){t[e]=r}))}function S_(t,e){let r,n;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||jet(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const Net={pre:function(){rw=!1},create:S_,update:S_,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;rw||(t.elm.offsetLeft,rw=!0);const o=t.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",(function(c){c.target===o&&--u,u===0&&e()}))}};function NM(t,e){for(const r of t)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?NM(r,e):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?e.push(bh(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function jt(t,e,...r){const n=NM(r,[]);return typeof t=="function"?t(e,n):n.length===1&&!n[0].sel&&n[0].text?uf(t,e,n[0].text):uf(t,e,n)}jt||(jt={});var Iet=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Let=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,IM="\\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",Ret="[\\ud800-\\udfff]",D_="["+IM+"]",ly="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",LM="\\d+",Met="[\\u2700-\\u27bf]",RM="[a-z\\xdf-\\xf6\\xf8-\\xff]",MM="[^\\ud800-\\udfff"+IM+LM+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ZC="\\ud83c[\\udffb-\\udfff]",zM="[^\\ud800-\\udfff]",GD="(?:\\ud83c[\\udde6-\\uddff]){2}",qD="[\\ud800-\\udbff][\\udc00-\\udfff]",uc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",A_="(?:"+RM+"|"+MM+")",zet="(?:"+uc+"|"+MM+")",O_="(?:"+ly+"|"+ZC+")?",HM="[\\ufe0e\\ufe0f]?"+O_+("(?:\\u200d(?:"+[zM,GD,qD].join("|")+")[\\ufe0e\\ufe0f]?"+O_+")*"),Het="(?:"+[Met,GD,qD].join("|")+")"+HM,$et="(?:"+[zM+ly+"?",ly,GD,qD,Ret].join("|")+")",Vet=RegExp("['’]","g"),Uet=RegExp(ly,"g"),Wet=RegExp(ZC+"(?="+ZC+")|"+$et+HM,"g"),Get=RegExp([uc+"?"+RM+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[D_,uc,"$"].join("|")+")",zet+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[D_,uc+A_,"$"].join("|")+")",uc+"?"+A_+"+(?:['’](?:d|ll|m|re|s|t|ve))?",uc+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",LM,Het].join("|"),"g"),qet=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Ket=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yet=typeof De=="object"&&De&&De.Object===Object&&De,Xet=typeof self=="object"&&self&&self.Object===Object&&self,Zet=Yet||Xet||Function("return this")(),nw,Jet=(nw={À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"ss"},function(t){return nw?.[t]});function $M(t){return qet.test(t)}function Qet(t){return $M(t)?(function(e){return e.match(Wet)||[]})(t):(function(e){return e.split("")})(t)}var trt=Object.prototype.toString,__=Zet.Symbol,k_=__?__.prototype:void 0,T_=k_?k_.toString:void 0;function ert(t){if(typeof t=="string")return t;if((function(r){return typeof r=="symbol"||(function(n){return!!n&&typeof n=="object"})(r)&&trt.call(r)=="[object Symbol]"})(t))return T_?T_.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function rrt(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:(function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l})(t,e,r)}function V0(t){return t==null?"":ert(t)}var B_,nrt=(B_=function(t,e,r){return e=e.toLowerCase(),t+(r?ort(V0(e).toLowerCase()):e)},function(t){return(function(e,r,n,o){var i=-1,a=e?e.length:0;for(o;++i<a;)n=r(n,e[i],i,e);return n})((function(e,r,n){return e=V0(e),(r=r)===void 0?(function(o){return Ket.test(o)})(e)?(function(o){return o.match(Get)||[]})(e):(function(o){return o.match(Iet)||[]})(e):e.match(r)||[]})((function(e){return(e=V0(e))&&e.replace(Let,Jet).replace(Uet,"")})(t).replace(Vet,"")),B_,"")}),F_,ort=(F_="toUpperCase",function(t){var e=$M(t=V0(t))?Qet(t):void 0,r=e?e[0]:t.charAt(0),n=e?rrt(e,1).join(""):t.slice(1);return r[F_]()+n});for(var irt=nrt,art=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),ow={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},VM={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:art?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},KD={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},kv=1;kv<20;kv++)KD["f"+kv]=111+kv;function UM(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=t.map((function(i){return(function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in ow)l[ow[d]]=!1;var p=!0,m=!1,v=void 0;try{for(var g,y=c[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=WM(h),E=ow[w];if(h.length>1&&!E&&!VM[h]&&!KD[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&E||(s?l.key=w:l.which=urt(h)),E&&(l[E]=!b||null)}}catch(S){m=!0,v=S}finally{try{!p&&y.return&&y.return()}finally{if(m)throw v}}return l})(i,e)})),o=function(i){return n.some((function(a){return(function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0})(a,i)}))};return r==null?o:o(r)}function urt(t){return t=WM(t),KD[t]||t.toUpperCase().charCodeAt(0)}function WM(t){return t=t.toLowerCase(),t=VM[t]||t}var srt=UM,iw=function(t,e){return UM(t,{byKey:!0},e)},lrt=/^\s+|\s+$/g,crt=/^[-+]0x[0-9a-f]+$/i,frt=/^0b[01]+$/i,drt=/^0o[0-7]+$/i,prt=parseInt,hrt=typeof De=="object"&&De&&De.Object===Object&&De,grt=typeof self=="object"&&self&&self.Object===Object&&self,vrt=hrt||grt||Function("return this")(),mrt=Object.prototype.toString,yrt=Math.max,brt=Math.min,aw=function(){return vrt.Date.now()};function JC(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function P_(t){if(typeof t=="number")return t;if((function(n){return typeof n=="symbol"||(function(o){return!!o&&typeof o=="object"})(n)&&mrt.call(n)=="[object Symbol]"})(t))return NaN;if(JC(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=JC(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(lrt,"");var r=frt.test(t);return r||drt.test(t)?prt(t.slice(2),r?2:8):crt.test(t)?NaN:+t}var Bl,wrt=function(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=n,E=o;return n=o=void 0,l=b,a=t.apply(E,w)}function m(b){return l=b,u=setTimeout(g,e),c?p(b):a}function v(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=aw();if(v(b))return y(b);u=setTimeout(g,(function(w){var E=e-(w-s);return f?brt(E,i-(w-l)):E})(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=aw(),w=v(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return m(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=P_(e)||0,JC(r)&&(c=!!r.leading,i=(f="maxWait"in r)?yrt(P_(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(aw())},h},Ert=cl((function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",x="[object Int16Array]",D="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",V=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,z={};z[o]=z["[object Array]"]=z[h]=z[b]=z[i]=z[a]=z[w]=z[E]=z[S]=z[x]=z[D]=z[l]=z[c]=z[f]=z[p]=z[m]=z[v]=z[g]=z[A]=z[P]=z[M]=z[F]=!0,z["[object Error]"]=z[u]=z[y]=!1;var tt=typeof De=="object"&&De&&De.Object===Object&&De,J=typeof self=="object"&&self&&self.Object===Object&&self,st=tt||J||Function("return this")(),bt=e&&!e.nodeType&&e,B=bt&&t&&!t.nodeType&&t,_=B&&B.exports===bt;function I(N,Y){return N.set(Y[0],Y[1]),N}function X(N,Y){return N.add(Y),N}function it(N,Y,gt,wt){var ee=-1,Le=N?N.length:0;for(wt;++ee<Le;)gt=Y(gt,N[ee],ee,N);return gt}function Q(N){var Y=!1;if(N!=null&&typeof N.toString!="function")try{Y=!!(N+"")}catch{}return Y}function vt(N){var Y=-1,gt=Array(N.size);return N.forEach((function(wt,ee){gt[++Y]=[ee,wt]})),gt}function xt(N,Y){return function(gt){return N(Y(gt))}}function _t(N){var Y=-1,gt=Array(N.size);return N.forEach((function(wt){gt[++Y]=wt})),gt}var kt=Array.prototype,rt=Function.prototype,Vt=Object.prototype,O=st["__core-js_shared__"],T=(function(){var N=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""})(),H=rt.toString,nt=Vt.hasOwnProperty,K=Vt.toString,Z=RegExp("^"+H.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),at=_?st.Buffer:void 0,ut=st.Symbol,et=st.Uint8Array,ot=xt(Object.getPrototypeOf,Object),St=Object.create,mt=Vt.propertyIsEnumerable,Dt=kt.splice,Tt=Object.getOwnPropertySymbols,Rt=at?at.isBuffer:void 0,te=xt(Object.keys,Object),Zt=Mo(st,"DataView"),he=Mo(st,"Map"),ce=Mo(st,"Promise"),Ce=Mo(st,"Set"),be=Mo(st,"WeakMap"),$e=Mo(Object,"create"),nn=Ho(Zt),wr=Ho(he),Er=Ho(ce),Wn=Ho(Ce),bi=Ho(be),Iu=ut?ut.prototype:void 0,xl=Iu?Iu.valueOf:void 0;function ho(N){var Y=-1,gt=N?N.length:0;for(this.clear();++Y<gt;){var wt=N[Y];this.set(wt[0],wt[1])}}function Gn(N){var Y=-1,gt=N?N.length:0;for(this.clear();++Y<gt;){var wt=N[Y];this.set(wt[0],wt[1])}}function wi(N){var Y=-1,gt=N?N.length:0;for(this.clear();++Y<gt;){var wt=N[Y];this.set(wt[0],wt[1])}}function go(N){this.__data__=new Gn(N)}function sa(N,Y){var gt=L(N)||(function(Oe){return(function(oe){return(function(xr){return!!xr&&typeof xr=="object"})(oe)&&G(oe)})(Oe)&&nt.call(Oe,"callee")&&(!mt.call(Oe,"callee")||K.call(Oe)==o)})(N)?(function(Oe,oe){for(var xr=-1,Vr=Array(Oe);++xr<Oe;)Vr[xr]=oe(xr);return Vr})(N.length,String):[],wt=gt.length,ee=!!wt;for(var Le in N)!nt.call(N,Le)||ee&&(Le=="length"||iv(Le,wt))||gt.push(Le);return gt}function nv(N,Y,gt){var wt=N[Y];nt.call(N,Y)&&av(wt,gt)&&(gt!==void 0||Y in N)||(N[Y]=gt)}function An(N,Y){for(var gt=N.length;gt--;)if(av(N[gt][0],Y))return gt;return-1}function Uf(N,Y,gt,wt,ee,Le,Oe){var oe;if(wt&&(oe=Le?wt(N,ee,Le,Oe):wt(N)),oe!==void 0)return oe;if(!ve(N))return N;var xr=L(N);if(xr){if(oe=(function(Pt){var de=Pt.length,Qe=Pt.constructor(de);return de&&typeof Pt[0]=="string"&&nt.call(Pt,"index")&&(Qe.index=Pt.index,Qe.input=Pt.input),Qe})(N),!Y)return(function(Pt,de){var Qe=-1,Jt=Pt.length;for(de||(de=Array(Jt));++Qe<Jt;)de[Qe]=Pt[Qe];return de})(N,oe)}else{var Vr=zo(N),Lu=Vr==u||Vr==s;if(ct(N))return(function(Pt,de){if(de)return Pt.slice();var Qe=new Pt.constructor(Pt.length);return Pt.copy(Qe),Qe})(N,Y);if(Vr==f||Vr==o||Lu&&!Le){if(Q(N))return Le?N:{};if(oe=(function(Pt){return typeof Pt.constructor!="function"||la(Pt)?{}:(de=ot(Pt),ve(de)?St(de):{});var de})(Lu?{}:N),!Y)return(function(Pt,de){return ov(Pt,Wf(Pt),de)})(N,(function(Pt,de){return Pt&&ov(de,Kt(de),Pt)})(oe,N))}else{if(!z[Vr])return Le?N:{};oe=(function(Pt,de,Qe,Jt){var ie=Pt.constructor;switch(de){case h:return Cl(Pt);case i:case a:return new ie(+Pt);case b:return(function(ae,Ye){var on=Ye?Cl(ae.buffer):ae.buffer;return new ae.constructor(on,ae.byteOffset,ae.byteLength)})(Pt,Jt);case w:case E:case S:case x:case D:case A:case P:case M:case F:return(function(ae,Ye){var on=Ye?Cl(ae.buffer):ae.buffer;return new ae.constructor(on,ae.byteOffset,ae.length)})(Pt,Jt);case l:return(function(ae,Ye,on){return it(Ye?on(vt(ae),!0):vt(ae),I,new ae.constructor)})(Pt,Jt,Qe);case c:case v:return new ie(Pt);case p:return(function(ae){var Ye=new ae.constructor(ae.source,V.exec(ae));return Ye.lastIndex=ae.lastIndex,Ye})(Pt);case m:return(function(ae,Ye,on){return it(Ye?on(_t(ae),!0):_t(ae),X,new ae.constructor)})(Pt,Jt,Qe);case g:return(function(ae){return xl?Object(xl.call(ae)):{}})(Pt)}})(N,Vr,Uf,Y)}}Oe||(Oe=new go);var Ci=Oe.get(N);if(Ci)return Ci;if(Oe.set(N,oe),!xr)var ca=gt?(function(Pt){return(function(de,Qe,Jt){var ie=Qe(de);return L(de)?ie:(function(ae,Ye){for(var on=-1,dn=Ye.length,vo=ae.length;++on<dn;)ae[vo+on]=Ye[on];return ae})(ie,Jt(de))})(Pt,Kt,Wf)})(N):Kt(N);return(function(Pt,de){for(var Qe=-1,Jt=Pt?Pt.length:0;++Qe<Jt&&de(Pt[Qe],Qe,Pt)!==!1;);})(ca||N,(function(Pt,de){ca&&(Pt=N[de=Pt]),nv(oe,de,Uf(Pt,Y,gt,wt,de,N,Oe))})),oe}function Ei(N){return!(!ve(N)||(function(Y){return!!T&&T in Y})(N))&&(Ot(N)||Q(N)?Z:U).test(Ho(N))}function Cl(N){var Y=new N.constructor(N.byteLength);return new et(Y).set(new et(N)),Y}function ov(N,Y,gt,wt){gt||(gt={});for(var ee=-1,Le=Y.length;++ee<Le;){var Oe=Y[ee],oe=void 0;nv(gt,Oe,oe===void 0?N[Oe]:oe)}return gt}function xi(N,Y){var gt,wt,ee=N.__data__;return((wt=typeof(gt=Y))=="string"||wt=="number"||wt=="symbol"||wt=="boolean"?gt!=="__proto__":gt===null)?ee[typeof Y=="string"?"string":"hash"]:ee.map}function Mo(N,Y){var gt=(function(wt,ee){return wt?.[ee]})(N,Y);return Ei(gt)?gt:void 0}ho.prototype.clear=function(){this.__data__=$e?$e(null):{}},ho.prototype.delete=function(N){return this.has(N)&&delete this.__data__[N]},ho.prototype.get=function(N){var Y=this.__data__;if($e){var gt=Y[N];return gt===r?void 0:gt}return nt.call(Y,N)?Y[N]:void 0},ho.prototype.has=function(N){var Y=this.__data__;return $e?Y[N]!==void 0:nt.call(Y,N)},ho.prototype.set=function(N,Y){return this.__data__[N]=$e&&Y===void 0?r:Y,this},Gn.prototype.clear=function(){this.__data__=[]},Gn.prototype.delete=function(N){var Y=this.__data__,gt=An(Y,N);return!(gt<0)&&(gt==Y.length-1?Y.pop():Dt.call(Y,gt,1),!0)},Gn.prototype.get=function(N){var Y=this.__data__,gt=An(Y,N);return gt<0?void 0:Y[gt][1]},Gn.prototype.has=function(N){return An(this.__data__,N)>-1},Gn.prototype.set=function(N,Y){var gt=this.__data__,wt=An(gt,N);return wt<0?gt.push([N,Y]):gt[wt][1]=Y,this},wi.prototype.clear=function(){this.__data__={hash:new ho,map:new(he||Gn),string:new ho}},wi.prototype.delete=function(N){return xi(this,N).delete(N)},wi.prototype.get=function(N){return xi(this,N).get(N)},wi.prototype.has=function(N){return xi(this,N).has(N)},wi.prototype.set=function(N,Y){return xi(this,N).set(N,Y),this},go.prototype.clear=function(){this.__data__=new Gn},go.prototype.delete=function(N){return this.__data__.delete(N)},go.prototype.get=function(N){return this.__data__.get(N)},go.prototype.has=function(N){return this.__data__.has(N)},go.prototype.set=function(N,Y){var gt=this.__data__;if(gt instanceof Gn){var wt=gt.__data__;if(!he||wt.length<199)return wt.push([N,Y]),this;gt=this.__data__=new wi(wt)}return gt.set(N,Y),this};var Wf=Tt?xt(Tt,Object):function(){return[]},zo=function(N){return K.call(N)};function iv(N,Y){return!!(Y=Y??n)&&(typeof N=="number"||W.test(N))&&N>-1&&N%1==0&&N<Y}function la(N){var Y=N&&N.constructor;return N===(typeof Y=="function"&&Y.prototype||Vt)}function Ho(N){if(N!=null){try{return H.call(N)}catch{}try{return N+""}catch{}}return""}function av(N,Y){return N===Y||N!=N&&Y!=Y}(Zt&&zo(new Zt(new ArrayBuffer(1)))!=b||he&&zo(new he)!=l||ce&&zo(ce.resolve())!=d||Ce&&zo(new Ce)!=m||be&&zo(new be)!=y)&&(zo=function(N){var Y=K.call(N),gt=Y==f?N.constructor:void 0,wt=gt?Ho(gt):void 0;if(wt)switch(wt){case nn:return b;case wr:return l;case Er:return d;case Wn:return m;case bi:return y}return Y});var L=Array.isArray;function G(N){return N!=null&&(function(Y){return typeof Y=="number"&&Y>-1&&Y%1==0&&Y<=n})(N.length)&&!Ot(N)}var ct=Rt||function(){return!1};function Ot(N){var Y=ve(N)?K.call(N):"";return Y==u||Y==s}function ve(N){var Y=typeof N;return!!N&&(Y=="object"||Y=="function")}function Kt(N){return G(N)?sa(N):(function(Y){if(!la(Y))return te(Y);var gt=[];for(var wt in Object(Y))nt.call(Y,wt)&&wt!="constructor"&&gt.push(wt);return gt})(N)}t.exports=function(N){return Uf(N,!0,!0)}}));function j_(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var xrt=0;function Crt(t){return"__private_"+xrt+++"_"+t}function Srt(t,e,r){const n=[];return t.forEach((o=>typeof o!="string"?n.push(o):e[Symbol.split](o).forEach(((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})))),n}function N_(t,e){const r=/\$/g;let n=[t];if(e==null)return n;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=Srt(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var GM=(Bl=Crt("apply"),class{constructor(t){Object.defineProperty(this,Bl,{value:Drt}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(j_(this,Bl)[Bl],this):j_(this,Bl)[Bl](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!(function(n,o){return Object.prototype.hasOwnProperty.call(n,o)})(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(e&&e.smart_count!==void 0)return N_(r[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return N_(r,e)}});function Drt(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var qM=function(){var t={},e=t._fns={};return t.emit=function(r,n,o,i,a,u,s){var l=(function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],m=Object.keys(e),v=0,g=m.length;v<g;v++){var y=m[v];if(y==="*"&&(f=f.concat(e[y])),p.length===2&&p[0]===y){f=f.concat(e[y]);break}}return f})(r);l.length&&(function(c,f,d){for(var p=0,m=f.length;p<m&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)})(r,l,[n,o,i,a,u,s])},t.on=function(r,n){e[r]||(e[r]=[]),e[r].push(n)},t.once=function(r,n){this.on(r,(function o(){n.apply(this,arguments),t.off(r,o)}))},t.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},t},Art={nanoid:(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},uw=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function KM(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}KM.prototype.match=function(t){var e,r,n=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<i;e++)o[e]!=="*"&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if(typeof t.splice=="function")for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if(typeof t=="object")for(var a in n={},t)this.match(a)&&(n[a]=t[a]);return n};var Ort=/[\/\+\.]/,_rt=function(t,e){function r(n){var o=(function(i,a,u){var s=new KM(i,u||/[\/\.]/);return a!==void 0?s.match(a):s})(n,t,Ort);return o&&o.length>=2}return e?r(e.split(";")[0]):r},krt=0;function Trt(t){return"__private_"+krt+++"_"+t}var sw=Trt("publish");class YM{constructor(){Object.defineProperty(this,sw,{value:Brt}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const r={...this.state},n={...this.state,...e};this.state=n,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,sw)[sw](r,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Brt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach((n=>{n(...e)}))}YM.VERSION="2.0.3";var I_=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},L_={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 R_(t){let e="";return t.replace(/[^A-Z0-9]/gi,(r=>(e+=`-${(function(n){return n.charCodeAt(0).toString(32)})(r)}`,"/")))+e}var Frt=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function lw(t){return t<10?`0${t}`:t.toString()}var Tv=function(){const t=new Date;return`${lw(t.getHours())}:${lw(t.getMinutes())}:${lw(t.getSeconds())}`},XM={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Tv()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.debug(`[Uppy] [${Tv()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.warn(`[Uppy] [${Tv()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Tv()}]`,...e)}}},Prt={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}"}}},ZM=Art;let JM,QM;function Ct(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jrt=0;function br(t){return"__private_"+jrt+++"_"+t}const{nanoid:Nrt}=ZM,{justErrorsLogger:Irt,debugLogger:Lrt}=XM;class Zo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class Rrt extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Lr=br("plugins"),ad=br("storeUnsubscribe"),Oi=br("emitter"),ss=br("preProcessors"),ls=br("uploaders"),Li=br("postProcessors"),Lp=br("checkRestrictions"),cw=br("checkMinNumberOfFiles"),wh=br("checkRequiredMetaFieldsOnFile"),fw=br("checkRequiredMetaFields"),Cr=br("showOrLogErrorAndThrow"),ud=br("assertNewUploadAllowed"),sd=br("checkAndCreateFileStateObject"),ld=br("startIfAutoProceed"),dw=br("addListeners"),yo=br("updateOnlineStatus"),_i=br("createUpload"),pw=br("getUpload"),ps=br("removeUpload"),ki=br("runUpload");JM=Symbol.for("uppy test: getPlugins"),QM=Symbol.for("uppy test: createUpload");class tz{constructor(e){Object.defineProperty(this,ki,{value:Zrt}),Object.defineProperty(this,ps,{value:Xrt}),Object.defineProperty(this,pw,{value:Yrt}),Object.defineProperty(this,_i,{value:Krt}),Object.defineProperty(this,dw,{value:qrt}),Object.defineProperty(this,ld,{value:Grt}),Object.defineProperty(this,sd,{value:Wrt}),Object.defineProperty(this,ud,{value:Urt}),Object.defineProperty(this,Cr,{value:Vrt}),Object.defineProperty(this,fw,{value:$rt}),Object.defineProperty(this,wh,{value:Hrt}),Object.defineProperty(this,cw,{value:zrt}),Object.defineProperty(this,Lp,{value:Mrt}),Object.defineProperty(this,Lr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ad,{writable:!0,value:void 0}),Object.defineProperty(this,Oi,{writable:!0,value:qM()}),Object.defineProperty(this,ss,{writable:!0,value:new Set}),Object.defineProperty(this,ls,{writable:!0,value:new Set}),Object.defineProperty(this,Li,{writable:!0,value:new Set}),Object.defineProperty(this,yo,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Prt;const r={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:n=>n,onBeforeUpload:n=>n,store:new YM,logger:Irt,infoTimeout:5e3};if(this.opts={...r,...e,restrictions:{...r.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=Lrt),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Zs(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Frt(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ct(this,ad)[ad]=this.store.subscribe(((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)})),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Ct(this,dw)[dw]()}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];Ct(this,Oi)[Oi].emit(e,...n)}on(e,r){return Ct(this,Oi)[Oi].on(e,r),this}once(e,r){return Ct(this,Oi)[Oi].once(e,r),this}off(e,r){return Ct(this,Oi)[Oi].off(e,r),this}updateAll(e){this.iteratePlugins((r=>{r.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,r){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...r}}})}i18nInit(){const e=new GM([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((r=>{r.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach((o=>{const i={...r[o]};i.progress={...i.progress,...e},n[o]=i})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Ct(this,ss)[ss].add(e)}removePreProcessor(e){return Ct(this,ss)[ss].delete(e)}addPostProcessor(e){Ct(this,Li)[Li].add(e)}removePostProcessor(e){return Ct(this,Li)[Li].delete(e)}addUploader(e){Ct(this,ls)[ls].add(e)}removeUploader(e){return Ct(this,ls)[ls].delete(e)}setMeta(e){const r={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((o=>{n[o]={...n[o],meta:{...n[o].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:r,files:n})}setFileMeta(e,r){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...n[e].meta,...r};n[e]={...n[e],meta:o},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:r,error:n}=this.getState(),o=Object.values(e),i=o.filter((m=>{let{progress:v}=m;return!v.uploadComplete&&v.uploadStarted})),a=o.filter((m=>!m.progress.uploadStarted)),u=o.filter((m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess)),s=o.filter((m=>m.progress.uploadStarted)),l=o.filter((m=>m.isPaused)),c=o.filter((m=>m.progress.uploadComplete)),f=o.filter((m=>m.error)),d=i.filter((m=>!m.isPaused)),p=o.filter((m=>m.progress.preprocess||m.progress.postprocess));return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some((m=>m.isGhost))}}validateRestrictions(e,r){try{return Ct(this,Lp)[Lp](e,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:r}=this.getState();return!(!r[e]||r[e].isGhost)}addFile(e){Ct(this,ud)[ud](e);const{files:r}=this.getState();let n=Ct(this,sd)[sd](r,e);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[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}`),Ct(this,ld)[ld](),n.id}addFiles(e){Ct(this,ud)[ud]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<e.length;i++)try{let a=Ct(this,sd)[sd](r,e[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach((i=>{this.emit("file-added",i)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((i=>{this.log(`Added file: ${n[i].name}
 id: ${n[i].id}
 type: ${n[i].type}`)})),n.length>0&&Ct(this,ld)[ld](),o.length>0){let i=`Multiple errors occurred while adding files:
`;if(o.forEach((a=>{i+=`
 * ${a.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach((f=>{n[f]&&(u[f]=n[f],delete i[f])})),Object.keys(a).forEach((f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]}));const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach((f=>{this.emit("file-removed",u[f],r)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,r){r===void 0&&(r=null),this.removeFiles([e],r)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const r=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:r}),this.emit("upload-pause",e,r),r}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted)).forEach((r=>{const n={...e[r],isPaused:!0};e[r]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted)).forEach((r=>{const n={...e[r],isPaused:!1,error:null};e[r]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},r=Object.keys(e).filter((o=>e[o].error));if(r.forEach((o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i})),this.setState({files:e,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=Ct(this,_i)[_i](r,{forceAllowNewUpload:!0});return Ct(this,ki)[ki](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),r=Object.keys(e);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const r=Ct(this,_i)[_i]([e],{forceAllowNewUpload:!0});return Ct(this,ki)[ki](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,r){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess));if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=e.filter((s=>s.progress.bytesTotal!=null)),n=e.filter((s=>s.progress.bytesTotal==null));if(r.length===0){const s=100*e.length,l=n.reduce(((f,d)=>f+d.progress.percentage),0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce(((s,l)=>s+l.progress.bytesTotal),0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach((s=>{a+=s.progress.bytesUploaded})),n.forEach((s=>{a+=i*(s.progress.percentage||0)/100}));let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}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),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,r){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),n.type in Ct(this,Lr)[Lr]?Ct(this,Lr)[Lr][n.type].push(n):Ct(this,Lr)[Lr][n.type]=[n],n.install(),this}getPlugin(e){for(const r of Object.values(Ct(this,Lr)[Lr])){const n=r.find((o=>o.id===e));if(n!=null)return n}}[JM](e){return Ct(this,Lr)[Lr][e]}iteratePlugins(e){Object.values(Ct(this,Lr)[Lr]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const r=Ct(this,Lr)[Lr][e.type],n=r.findIndex((i=>i.id===e.id));n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Ct(this,ad)[ad](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Ct(this,yo)[yo]),window.removeEventListener("offline",Ct(this,yo)[yo]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:r,message:o?e.message:e,details:o?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,r){const{logger:n}=this.opts;switch(r){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]?Ct(this,ki)[ki](e):(Ct(this,ps)[ps](e),Promise.reject(new Error("Nonexistent upload")))}[QM](){return Ct(this,_i)[_i](...arguments)}addResultData(e,r){if(!Ct(this,pw)[pw](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),o={...n[e],result:{...n[e].result,...r}};this.setState({currentUploads:{...n,[e]:o}})}upload(){var e;(e=Ct(this,Lr)[Lr].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then((()=>{Ct(this,cw)[cw](r),Ct(this,fw)[fw](r)})).catch((o=>{Ct(this,Cr)[Cr](o)})).then((()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap((s=>s.fileIDs)),a=[];Object.keys(r).forEach((s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)}));const u=Ct(this,_i)[_i](a);return Ct(this,ki)[ki](u)})).catch((o=>{Ct(this,Cr)[Cr](o,{showInformer:!1})})))}}function Mrt(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new Zo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((u=>u.indexOf("/")>-1?!!t.type&&_rt(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase()))){const u=a.join(", ");throw new Zo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach((s=>{u+=s.size})),u>o)throw new Zo(this.i18n("exceedsSize",{size:uw(o),file:t.name}))}if(r&&t.size!=null&&t.size>r)throw new Zo(this.i18n("exceedsSize",{size:uw(r),file:t.name}));if(n&&t.size!=null&&t.size<n)throw new Zo(this.i18n("inferiorSize",{size:uw(n)}))}function zrt(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new Zo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function Hrt(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<e.length;i++)if(!r.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new Zo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);n.push(a),o.push(e[i]),Ct(this,Cr)[Cr](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),n}function $rt(t){const e=Object.keys(t).flatMap((r=>{const n=this.getFile(r);return Ct(this,wh)[wh](n)}));if(e.length)throw new Rrt(e,`${this.i18n("missingRequiredMetaField")}`)}function Vrt(t,e){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",n,t)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function Urt(t){const{allowNewUpload:e}=this.getState();e===!1&&Ct(this,Cr)[Cr](new Zo(this.i18n("noMoreFilesAllowed")),{file:t})}function Wrt(t,e){const r=(function(f){var d;if(f.type)return f.type;const p=f.name?(d=I_(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in L_?L_[p]:"application/octet-stream"})(e),n=(function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"})(r,e),o=I_(n).extension,i=!!e.isRemote,a=(function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${R_(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${R_(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d})({...e,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new Zo(this.i18n("noDuplicates",{fileName:n}));Ct(this,Cr)[Cr](f,{file:e})}const u=e.meta||{};u.name=n,u.type=r;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?Ct(this,Cr)[Cr](new Zo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map((d=>t[d]));Ct(this,Lp)[Lp](l,f)}catch(f){Ct(this,Cr)[Cr](f,{file:l})}return l}function Grt(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((t=>{t.isRestriction||this.log(t.stack||t.message||t)}))}),4))}function qrt(){const t=(e,r,n)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",t),this.on("upload-error",((e,r,n)=>{if(t(r,e,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),Ct(this,Cr)[Cr](o,{throwErr:!1})}else Ct(this,Cr)[Cr](r,{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,r)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Ct(this,Li)[Li].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.preprocess,this.setState({files:r})})),this.on("postprocess-progress",((e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.postprocess,this.setState({files:r})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Ct(this,wh)[wh](e)})),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Ct(this,yo)[yo]),window.addEventListener("offline",Ct(this,yo)[yo]),setTimeout(Ct(this,yo)[yo],3e3))}function Krt(t,e){e===void 0&&(e={});const{forceAllowNewUpload:r=!1}=e,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=Nrt();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function Yrt(t){const{currentUploads:e}=this.getState();return e[t]}function Xrt(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function Zrt(t){let{currentUploads:e}=this.getState(),r=e[t];const n=r.step||0,o=[...Ct(this,ss)[ss],...Ct(this,ls)[ls],...Ct(this,Li)[Li]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(a){throw this.emit("error",a),Ct(this,ps)[ps](t),a}if(r){r.fileIDs.forEach((l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)}));const a=r.fileIDs.map((l=>this.getFile(l))),u=a.filter((l=>!l.error)),s=a.filter((l=>l.error));await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,r=e[t]}let i;return r&&(i=r.result,this.emit("complete",i),Ct(this,ps)[ps](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}tz.VERSION="2.1.3";var ez=tz,Jrt=cl((function(t,e){var r,n,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(B,_){for(var I in _)B[I]=_[I];return B}function m(B){var _=B.parentNode;_&&_.removeChild(B)}function v(B,_,I){var X,it,Q,vt={};for(Q in _)Q=="key"?X=_[Q]:Q=="ref"?it=_[Q]:vt[Q]=_[Q];if(arguments.length>2&&(vt.children=arguments.length>3?r.call(arguments,2):I),typeof B=="function"&&B.defaultProps!=null)for(Q in B.defaultProps)vt[Q]===void 0&&(vt[Q]=B.defaultProps[Q]);return g(B,vt,X,it,null)}function g(B,_,I,X,it){var Q={type:B,props:_,key:I,ref:X,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:it??++o};return it==null&&n.vnode!=null&&n.vnode(Q),Q}function y(B){return B.children}function h(B,_){this.props=B,this.context=_}function b(B,_){if(_==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var I;_<B.__k.length;_++)if((I=B.__k[_])!=null&&I.__e!=null)return I.__e;return typeof B.type=="function"?b(B):null}function w(B){var _,I;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,_=0;_<B.__k.length;_++)if((I=B.__k[_])!=null&&I.__e!=null){B.__e=B.__c.base=I.__e;break}return w(B)}}function E(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!S.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(S)}function S(){for(var B;S.__r=a.length;)B=a.sort((function(_,I){return _.__v.__b-I.__v.__b})),a=[],B.some((function(_){var I,X,it,Q,vt,xt;_.__d&&(vt=(Q=(I=_).__v).__e,(xt=I.__P)&&(X=[],(it=p({},Q)).__v=Q.__v+1,U(xt,Q,it,I.__n,xt.ownerSVGElement!==void 0,Q.__h!=null?[vt]:null,X,vt??b(Q),Q.__h),W(X,Q),Q.__e!=vt&&w(Q)))}))}function x(B,_,I,X,it,Q,vt,xt,_t,kt){var rt,Vt,O,T,H,nt,K,Z=X&&X.__k||f,at=Z.length;for(I.__k=[],rt=0;rt<_.length;rt++)if((T=I.__k[rt]=(T=_[rt])==null||typeof T=="boolean"?null:typeof T=="string"||typeof T=="number"||typeof T=="bigint"?g(null,T,null,null,T):Array.isArray(T)?g(y,{children:T},null,null,null):T.__b>0?g(T.type,T.props,T.key,null,T.__v):T)!=null){if(T.__=I,T.__b=I.__b+1,(O=Z[rt])===null||O&&T.key==O.key&&T.type===O.type)Z[rt]=void 0;else for(Vt=0;Vt<at;Vt++){if((O=Z[Vt])&&T.key==O.key&&T.type===O.type){Z[Vt]=void 0;break}O=null}U(B,T,O=O||c,it,Q,vt,xt,_t,kt),H=T.__e,(Vt=T.ref)&&O.ref!=Vt&&(K||(K=[]),O.ref&&K.push(O.ref,null,T),K.push(Vt,T.__c||H,T)),H!=null?(nt==null&&(nt=H),typeof T.type=="function"&&T.__k===O.__k?T.__d=_t=D(T,_t,B):_t=A(B,T,O,Z,H,_t),typeof I.type=="function"&&(I.__d=_t)):_t&&O.__e==_t&&_t.parentNode!=B&&(_t=b(O))}for(I.__e=nt,rt=at;rt--;)Z[rt]!=null&&(typeof I.type=="function"&&Z[rt].__e!=null&&Z[rt].__e==I.__d&&(I.__d=b(X,rt+1)),J(Z[rt],Z[rt]));if(K)for(rt=0;rt<K.length;rt++)tt(K[rt],K[++rt],K[++rt])}function D(B,_,I){for(var X,it=B.__k,Q=0;it&&Q<it.length;Q++)(X=it[Q])&&(X.__=B,_=typeof X.type=="function"?D(X,_,I):A(I,X,X,it,X.__e,_));return _}function A(B,_,I,X,it,Q){var vt,xt,_t;if(_.__d!==void 0)vt=_.__d,_.__d=void 0;else if(I==null||it!=Q||it.parentNode==null)t:if(Q==null||Q.parentNode!==B)B.appendChild(it),vt=null;else{for(xt=Q,_t=0;(xt=xt.nextSibling)&&_t<X.length;_t+=2)if(xt==it)break t;B.insertBefore(it,Q),vt=Q}return vt!==void 0?vt:it.nextSibling}function P(B,_,I){_[0]==="-"?B.setProperty(_,I):B[_]=I==null?"":typeof I!="number"||d.test(_)?I:I+"px"}function M(B,_,I,X,it){var Q;t:if(_==="style")if(typeof I=="string")B.style.cssText=I;else{if(typeof X=="string"&&(B.style.cssText=X=""),X)for(_ in X)I&&_ in I||P(B.style,_,"");if(I)for(_ in I)X&&I[_]===X[_]||P(B.style,_,I[_])}else if(_[0]==="o"&&_[1]==="n")Q=_!==(_=_.replace(/Capture$/,"")),_=_.toLowerCase()in B?_.toLowerCase().slice(2):_.slice(2),B.l||(B.l={}),B.l[_+Q]=I,I?X||B.addEventListener(_,Q?V:F,Q):B.removeEventListener(_,Q?V:F,Q);else if(_!=="dangerouslySetInnerHTML"){if(it)_=_.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(_!=="href"&&_!=="list"&&_!=="form"&&_!=="tabIndex"&&_!=="download"&&_ in B)try{B[_]=I??"";break t}catch{}typeof I=="function"||(I!=null&&(I!==!1||_[0]==="a"&&_[1]==="r")?B.setAttribute(_,I):B.removeAttribute(_))}}function F(B){this.l[B.type+!1](n.event?n.event(B):B)}function V(B){this.l[B.type+!0](n.event?n.event(B):B)}function U(B,_,I,X,it,Q,vt,xt,_t){var kt,rt,Vt,O,T,H,nt,K,Z,at,ut,et=_.type;if(_.constructor!==void 0)return null;I.__h!=null&&(_t=I.__h,xt=_.__e=I.__e,_.__h=null,Q=[xt]),(kt=n.__b)&&kt(_);try{t:if(typeof et=="function"){if(K=_.props,Z=(kt=et.contextType)&&X[kt.__c],at=kt?Z?Z.props.value:kt.__:X,I.__c?nt=(rt=_.__c=I.__c).__=rt.__E:("prototype"in et&&et.prototype.render?_.__c=rt=new et(K,at):(_.__c=rt=new h(K,at),rt.constructor=et,rt.render=st),Z&&Z.sub(rt),rt.props=K,rt.state||(rt.state={}),rt.context=at,rt.__n=X,Vt=rt.__d=!0,rt.__h=[]),rt.__s==null&&(rt.__s=rt.state),et.getDerivedStateFromProps!=null&&(rt.__s==rt.state&&(rt.__s=p({},rt.__s)),p(rt.__s,et.getDerivedStateFromProps(K,rt.__s))),O=rt.props,T=rt.state,Vt)et.getDerivedStateFromProps==null&&rt.componentWillMount!=null&&rt.componentWillMount(),rt.componentDidMount!=null&&rt.__h.push(rt.componentDidMount);else{if(et.getDerivedStateFromProps==null&&K!==O&&rt.componentWillReceiveProps!=null&&rt.componentWillReceiveProps(K,at),!rt.__e&&rt.shouldComponentUpdate!=null&&rt.shouldComponentUpdate(K,rt.__s,at)===!1||_.__v===I.__v){rt.props=K,rt.state=rt.__s,_.__v!==I.__v&&(rt.__d=!1),rt.__v=_,_.__e=I.__e,_.__k=I.__k,_.__k.forEach((function(ot){ot&&(ot.__=_)})),rt.__h.length&&vt.push(rt);break t}rt.componentWillUpdate!=null&&rt.componentWillUpdate(K,rt.__s,at),rt.componentDidUpdate!=null&&rt.__h.push((function(){rt.componentDidUpdate(O,T,H)}))}rt.context=at,rt.props=K,rt.state=rt.__s,(kt=n.__r)&&kt(_),rt.__d=!1,rt.__v=_,rt.__P=B,kt=rt.render(rt.props,rt.state,rt.context),rt.state=rt.__s,rt.getChildContext!=null&&(X=p(p({},X),rt.getChildContext())),Vt||rt.getSnapshotBeforeUpdate==null||(H=rt.getSnapshotBeforeUpdate(O,T)),ut=kt!=null&&kt.type===y&&kt.key==null?kt.props.children:kt,x(B,Array.isArray(ut)?ut:[ut],_,I,X,it,Q,vt,xt,_t),rt.base=_.__e,_.__h=null,rt.__h.length&&vt.push(rt),nt&&(rt.__E=rt.__=null),rt.__e=!1}else Q==null&&_.__v===I.__v?(_.__k=I.__k,_.__e=I.__e):_.__e=z(I.__e,_,I,X,it,Q,vt,_t);(kt=n.diffed)&&kt(_)}catch(ot){_.__v=null,(_t||Q!=null)&&(_.__e=xt,_.__h=!!_t,Q[Q.indexOf(xt)]=null),n.__e(ot,_,I)}}function W(B,_){n.__c&&n.__c(_,B),B.some((function(I){try{B=I.__h,I.__h=[],B.some((function(X){X.call(I)}))}catch(X){n.__e(X,I.__v)}}))}function z(B,_,I,X,it,Q,vt,xt){var _t,kt,rt,Vt=I.props,O=_.props,T=_.type,H=0;if(T==="svg"&&(it=!0),Q!=null){for(;H<Q.length;H++)if((_t=Q[H])&&"setAttribute"in _t==!!T&&(T?_t.localName===T:_t.nodeType===3)){B=_t,Q[H]=null;break}}if(B==null){if(T===null)return document.createTextNode(O);B=it?document.createElementNS("http://www.w3.org/2000/svg",T):document.createElement(T,O.is&&O),Q=null,xt=!1}if(T===null)Vt===O||xt&&B.data===O||(B.data=O);else{if(Q=Q&&r.call(B.childNodes),kt=(Vt=I.props||c).dangerouslySetInnerHTML,rt=O.dangerouslySetInnerHTML,!xt){if(Q!=null)for(Vt={},H=0;H<B.attributes.length;H++)Vt[B.attributes[H].name]=B.attributes[H].value;(rt||kt)&&(rt&&(kt&&rt.__html==kt.__html||rt.__html===B.innerHTML)||(B.innerHTML=rt&&rt.__html||""))}if((function(nt,K,Z,at,ut){var et;for(et in Z)et==="children"||et==="key"||et in K||M(nt,et,null,Z[et],at);for(et in K)ut&&typeof K[et]!="function"||et==="children"||et==="key"||et==="value"||et==="checked"||Z[et]===K[et]||M(nt,et,K[et],Z[et],at)})(B,O,Vt,it,xt),rt)_.__k=[];else if(H=_.props.children,x(B,Array.isArray(H)?H:[H],_,I,X,it&&T!=="foreignObject",Q,vt,Q?Q[0]:I.__k&&b(I,0),xt),Q!=null)for(H=Q.length;H--;)Q[H]!=null&&m(Q[H]);xt||("value"in O&&(H=O.value)!==void 0&&(H!==Vt.value||H!==B.value||T==="progress"&&!H)&&M(B,"value",H,Vt.value,!1),"checked"in O&&(H=O.checked)!==void 0&&H!==B.checked&&M(B,"checked",H,Vt.checked,!1))}return B}function tt(B,_,I){try{typeof B=="function"?B(_):B.current=_}catch(X){n.__e(X,I)}}function J(B,_,I){var X,it;if(n.unmount&&n.unmount(B),(X=B.ref)&&(X.current&&X.current!==B.__e||tt(X,null,_)),(X=B.__c)!=null){if(X.componentWillUnmount)try{X.componentWillUnmount()}catch(Q){n.__e(Q,_)}X.base=X.__P=null}if(X=B.__k)for(it=0;it<X.length;it++)X[it]&&J(X[it],_,typeof B.type!="function");I||B.__e==null||m(B.__e),B.__e=B.__d=void 0}function st(B,_,I){return this.constructor(B,I)}function bt(B,_,I){var X,it,Q;n.__&&n.__(B,_),it=(X=typeof I=="function")?null:I&&I.__k||_.__k,Q=[],U(_,B=(!X&&I||_).__k=v(y,null,[B]),it||c,c,_.ownerSVGElement!==void 0,!X&&I?[I]:it?null:_.firstChild?r.call(_.childNodes):null,Q,!X&&I?I:it?it.__e:_.firstChild,X),W(Q,B)}r=f.slice,n={__e:function(B,_){for(var I,X,it;_=_.__;)if((I=_.__c)&&!I.__)try{if((X=I.constructor)&&X.getDerivedStateFromError!=null&&(I.setState(X.getDerivedStateFromError(B)),it=I.__d),I.componentDidCatch!=null&&(I.componentDidCatch(B),it=I.__d),it)return I.__E=I}catch(Q){B=Q}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,_){var I;I=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof B=="function"&&(B=B(p({},I),this.props)),B&&p(I,B),B!=null&&this.__v&&(_&&this.__h.push(_),E(this))},h.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),E(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,e.Component=h,e.Fragment=y,e.cloneElement=function(B,_,I){var X,it,Q,vt=p({},B.props);for(Q in _)Q=="key"?X=_[Q]:Q=="ref"?it=_[Q]:vt[Q]=_[Q];return arguments.length>2&&(vt.children=arguments.length>3?r.call(arguments,2):I),g(B.type,vt,X||B.key,it||B.ref,null)},e.createContext=function(B,_){var I={__c:_="__cC"+l++,__:B,Consumer:function(X,it){return X.children(it)},Provider:function(X){var it,Q;return this.getChildContext||(it=[],(Q={})[_]=this,this.getChildContext=function(){return Q},this.shouldComponentUpdate=function(vt){this.props.value!==vt.value&&it.some(E)},this.sub=function(vt){it.push(vt);var xt=vt.componentWillUnmount;vt.componentWillUnmount=function(){it.splice(it.indexOf(vt),1),xt&&xt.call(vt)}}),X.children}};return I.Provider.__=I.Consumer.contextType=I},e.createElement=v,e.createRef=function(){return{current:null}},e.h=v,e.hydrate=function B(_,I){bt(_,I,B)},e.isValidElement=i,e.options=n,e.render=bt,e.toChildArray=function B(_,I){return I=I||[],_==null||typeof _=="boolean"||(Array.isArray(_)?_.some((function(X){B(X,I)})):I.push(_)),I}})),Qrt=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((r=t)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?t:null;var r},YD=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new GM([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function M_(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var tnt=0;function ent(t){return"__private_"+tnt+++"_"+t}const{render:z_}=Jrt;var cd=ent("updateUI");class XD extends YD{constructor(){super(...arguments),Object.defineProperty(this,cd,{writable:!0,value:void 0})}mount(e,r){const n=r.id,o=Qrt(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return M_(this,cd)[cd]=(function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then((()=>(l=null,s(...c))))),l}})((s=>{this.uppy.getPlugin(this.id)&&(z_(this.render(s),u),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),z_(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof XD)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins((s=>{if(s instanceof u)return i=s,!1}))}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof e=="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.",new Error(a)}update(e){var r,n;this.el!=null&&((r=(n=M_(this,cd))[cd])==null||r.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var rnt=XD;const{debugLogger:nnt}=XM;var wp=ez,ont=ez,int=rnt,ant=YD,unt=nnt;wp.Uppy=ont,wp.UIPlugin=int,wp.BasePlugin=ant,wp.debugLogger=unt;class snt extends Error{constructor(e,r){r===void 0&&(r=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=r}}var ZD=snt,hw=function(){return fetch(...arguments).catch((t=>{throw t.name==="AbortError"?t:new ZD(t)}))};class lnt extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Bv,ga,Wo,va,H_,cnt=lnt;function Vo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var fnt=0;function gw(t){return"__private_"+fnt+++"_"+t}async function vw(t){if(t.status===401)throw new cnt;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const n=await e;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return e}var $_=(ga=gw("getPostResponseFunc"),Wo=gw("getUrl"),va=gw("errorHandler"),H_=Bv=class rz{constructor(e,r){Object.defineProperty(this,va,{value:pnt}),Object.defineProperty(this,Wo,{value:dnt}),Object.defineProperty(this,ga,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),r=this.opts.companionUrl;return(e&&e[r]?e[r]:r).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...rz.defaultHeaders,...e})}onReceiveResponse(e){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Vo(this,Wo)[Wo](e),{method:"OPTIONS"}).then((r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map((n=>n.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((r=>{let[n,o]=r;return Object.keys(o).forEach((i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])})),o}))}get(e,r){return this.preflightAndHeaders(e).then((n=>hw(Vo(this,Wo)[Wo](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Vo(this,ga)[ga](r)).then(vw).catch(Vo(this,va)[va]("get",e))}post(e,r,n){const o="post";return this.preflightAndHeaders(e).then((i=>hw(Vo(this,Wo)[Wo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)}))).then(Vo(this,ga)[ga](n)).then(vw).catch(Vo(this,va)[va](o,e))}delete(e,r,n){const o="delete";return this.preflightAndHeaders(e).then((i=>hw(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null}))).then(Vo(this,ga)[ga](n)).then(vw).catch(Vo(this,va)[va](o,e))}},Bv.VERSION="2.0.4",Bv.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Bv.VERSION}`},H_);function dnt(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function pnt(t,e){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${t} ${Vo(this,Wo)[Wo](e)}`);o.cause=r,r=o}return Promise.reject(r)}}var hnt={setItem:(t,e)=>new Promise((r=>{localStorage.setItem(t,e),r()})),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise((e=>{localStorage.removeItem(t),e()}))},$o,ma,Kn,Ur,Fv;let V_,U_;function cr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var gnt=0;function fd(t){return"__private_"+gnt+++"_"+t}var vnt=($o=fd("queued"),ma=fd("emitter"),Kn=fd("isOpen"),Ur=fd("socket"),Fv=fd("handleMessage"),V_=Symbol.for("uppy test: getSocket"),U_=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,$o,{writable:!0,value:[]}),Object.defineProperty(this,ma,{writable:!0,value:qM()}),Object.defineProperty(this,Kn,{writable:!0,value:!1}),Object.defineProperty(this,Ur,{writable:!0,value:void 0}),Object.defineProperty(this,Fv,{writable:!0,value:e=>{try{const r=JSON.parse(e.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return cr(this,Kn)[Kn]}[V_](){return cr(this,Ur)[Ur]}[U_](){return cr(this,$o)[$o]}open(){cr(this,Ur)[Ur]=new WebSocket(this.opts.target),cr(this,Ur)[Ur].onopen=()=>{for(cr(this,Kn)[Kn]=!0;cr(this,$o)[$o].length>0&&cr(this,Kn)[Kn];){const t=cr(this,$o)[$o].shift();this.send(t.action,t.payload)}},cr(this,Ur)[Ur].onclose=()=>{cr(this,Kn)[Kn]=!1},cr(this,Ur)[Ur].onmessage=cr(this,Fv)[Fv]}close(){var t;(t=cr(this,Ur)[Ur])==null||t.close()}send(t,e){cr(this,Kn)[Kn]?cr(this,Ur)[Ur].send(JSON.stringify({action:t,payload:e})):cr(this,$o)[$o].push({action:t,payload:e})}on(t,e){cr(this,ma)[ma].on(t,e)}emit(t,e){cr(this,ma)[ma].emit(t,e)}once(t,e){cr(this,ma)[ma].once(t,e)}}),mnt={RequestClient:$_,Provider:class extends $_{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map((n=>n.charAt(0).toUpperCase()+n.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((t=>{let[e,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}}))}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:r}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((t=>{this.preAuthToken=t.token})).catch((t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")})):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then((t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((t=>{let[e]=t;return e}))}static initPlugin(t,e,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...e}),e.serverUrl||e.serverPattern)throw new 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(e.companionAllowedHosts){const n=e.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||hnt}},Socket:vnt},ya,Fl,ynt=Zs((function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function dd(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var bnt=0;function W_(t){return"__private_"+bnt+++"_"+t}var G_=(ya=W_("emitter"),Fl=W_("events"),class{constructor(t){Object.defineProperty(this,ya,{writable:!0,value:void 0}),Object.defineProperty(this,Fl,{writable:!0,value:[]}),dd(this,ya)[ya]=t}on(t,e){return dd(this,Fl)[Fl].push([t,e]),dd(this,ya)[ya].on(t,e)}remove(){for(const[t,e]of dd(this,Fl)[Fl].splice(0))dd(this,ya)[ya].off(t,e)}});function Yn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var wnt=0;function sb(t){return"__private_"+wnt+++"_"+t}var Ti=sb("aliveTimer"),Uu=sb("isDone"),pd=sb("onTimedOut"),Wu=sb("timeout"),q_=class{constructor(t,e){Object.defineProperty(this,Ti,{writable:!0,value:void 0}),Object.defineProperty(this,Uu,{writable:!0,value:!1}),Object.defineProperty(this,pd,{writable:!0,value:void 0}),Object.defineProperty(this,Wu,{writable:!0,value:void 0}),Yn(this,Wu)[Wu]=t,Yn(this,pd)[pd]=e}progress(){Yn(this,Uu)[Uu]||Yn(this,Wu)[Wu]>0&&(clearTimeout(Yn(this,Ti)[Ti]),Yn(this,Ti)[Ti]=setTimeout(Yn(this,pd)[pd],Yn(this,Wu)[Wu]))}done(){Yn(this,Uu)[Uu]||(clearTimeout(Yn(this,Ti)[Ti]),Yn(this,Ti)[Ti]=null,Yn(this,Uu)[Uu]=!0)}};function hr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Ent=0;function gl(t){return"__private_"+Ent+++"_"+t}function xnt(){return new Error("Cancelled")}var kn=gl("activeRequests"),ln=gl("queuedHandlers"),Rp=gl("call"),Ep=gl("queueNext"),QC=gl("next"),mw=gl("queue"),t6=gl("dequeue");function Cnt(t){hr(this,kn)[kn]+=1;let e,r=!1;try{e=t()}catch(n){throw hr(this,kn)[kn]-=1,n}return{abort:()=>{r||(r=!0,hr(this,kn)[kn]-=1,e(),hr(this,Ep)[Ep]())},done:()=>{r||(r=!0,hr(this,kn)[kn]-=1,hr(this,Ep)[Ep]())}}}function Snt(){queueMicrotask((()=>hr(this,QC)[QC]()))}function Dnt(){if(hr(this,kn)[kn]>=this.limit||hr(this,ln)[ln].length===0)return;const t=hr(this,ln)[ln].shift(),e=hr(this,Rp)[Rp](t.fn);t.abort=e.abort,t.done=e.done}function Ant(t,e){e===void 0&&(e={});const r={fn:t,priority:e.priority||0,abort:()=>{hr(this,t6)[t6](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=hr(this,ln)[ln].findIndex((o=>r.priority>o.priority));return n===-1?hr(this,ln)[ln].push(r):hr(this,ln)[ln].splice(n,0,r),r}function Ont(t){const e=hr(this,ln)[ln].indexOf(t);e!==-1&&hr(this,ln)[ln].splice(e,1)}var _nt={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,t6,{value:Ont}),Object.defineProperty(this,mw,{value:Ant}),Object.defineProperty(this,QC,{value:Dnt}),Object.defineProperty(this,Ep,{value:Snt}),Object.defineProperty(this,Rp,{value:Cnt}),Object.defineProperty(this,kn,{writable:!0,value:0}),Object.defineProperty(this,ln,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return hr(this,kn)[kn]<this.limit?hr(this,Rp)[Rp](t):hr(this,mw)[mw](t,e)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise(((s,l)=>{a=r.run((()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(d){f=Promise.reject(d)}return f.then((d=>{c?l(c):(a.done(),s(d))}),(d=>{c?l(c):(a.done(),l(d))})),()=>{c=xnt()}}),e)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},K_,Y_,nz=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},knt={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Tnt}=ZM,{Provider:Bnt,RequestClient:Fnt,Socket:Pnt}=mnt,{RateLimitedQueue:jnt,internalRateLimitedQueue:yw}=_nt;function X_(t,e){let r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),nz(t)?(r=new ZD(r,t),r):(r.request=t,r)}function Z_(t){return t.data.slice(0,t.data.size,t.meta.type)}var Nnt=(Y_=K_=class extends YD{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=knt;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){t.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return nz(o)&&(i=new ZD(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),yw in this.opts?this.requests=this.opts[yw]:this.requests=new jnt(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach((n=>{t.append(n,e[n])}))}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=Z_(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach((o=>{const i=this.getOptions(o),a=Z_(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)})),r}upload(t,e,r){const n=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${r}`),new Promise(((o,i)=>{this.uppy.emit("upload-started",t);const a=n.formData?this.createFormDataUpload(t,n):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new G_(this.uppy);const s=new q_(n.timeout,(()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)})),l=Tnt();u.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${l} started`)})),u.upload.addEventListener("progress",(f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})})),u.addEventListener("load",(f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const v=n.getResponseData(u.responseText,u),g=v[n.responseUrlFieldName],y={status:f.target.status,body:v,uploadURL:g};return this.uppy.emit("upload-success",t,y),g&&this.uppy.log(`Download ${t.name} from ${g}`),o(t)}const d=n.getResponseData(u.responseText,u),p=X_(u,n.getResponseError(u.responseText,u)),m={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,m),i(p)})),u.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=X_(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)})),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run((()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach((d=>{u.setRequestHeader(d,f.headers[d])})),u.send(a),()=>{s.done(),u.abort()}}));this.onFileRemove(t.id,(()=>{c.abort(),i(new Error("File removed"))})),this.onCancelAll(t.id,(()=>{c.abort(),i(new Error("Upload cancelled"))}))}))}uploadRemote(t){const e=this.getOptions(t);return new Promise(((r,n)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach((i=>{o[i]=t.meta[i]})),new(t.remote.providerOptions.provider?Bnt:Fnt)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then((i=>{const{token:a}=i,u=(function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`})(t.remote.companionUrl),s=new Pnt({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new G_(this.uppy),this.onFileRemove(t.id,(()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was removed`)})),this.onCancelAll(t.id,(()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was canceled`)})),this.onRetry(t.id,(()=>{s.send("pause",{}),s.send("resume",{})})),this.onRetryAll(t.id,(()=>{s.send("pause",{}),s.send("resume",{})})),s.on("progress",(c=>ynt(this,c,t))),s.on("success",(c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()})),s.on("error",(c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n(d)}));const l=this.requests.run((()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close())))})).catch((i=>{this.uppy.emit("upload-error",t,i),n(i)}))}))}uploadBundle(t){return new Promise(((e,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new q_(this.opts.timeout,(()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)})),l=c=>{t.forEach((f=>{this.uppy.emit("upload-error",f,c)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(c=>{s.progress(),c.lengthComputable&&t.forEach((f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})}))})),u.addEventListener("load",(c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach((m=>{this.uppy.emit("upload-success",m,p)})),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)})),u.addEventListener("error",(()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((c=>{u.setRequestHeader(c,this.opts.headers[c])})),u.send(a),t.forEach((c=>{this.uppy.emit("upload-started",c)}))}))}uploadFiles(t){const e=t.map(((r,n)=>{const o=parseInt(n,10)+1,i=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)}));return(function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map((u=>u.then(i,a)))).then((()=>({successful:n,failed:o})))})(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",(r=>{t===r.id&&e(r.id)}))}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",(r=>{t===r&&e()}))}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",(()=>{this.uppy.getFile(t)&&e()}))}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",(()=>{this.uppy.getFile(t)&&e()}))}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[yw]||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...");const e=t.map((r=>this.uppy.getFile(r)));if(this.opts.bundle){if(e.some((r=>r.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},K_.VERSION="2.0.6",Y_),J_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ag(t){var e={exports:{}};return t(e,e.exports),e.exports}var ba,U0,Pv=function(t){return t&&t.Math==Math&&t},lt=Pv(typeof globalThis=="object"&&globalThis)||Pv(typeof window=="object"&&window)||Pv(typeof self=="object"&&self)||Pv(typeof J_=="object"&&J_)||(function(){return this})()||Function("return this")(),Int=Object.defineProperty,JD=function(t,e){try{Int(lt,t,{value:e,configurable:!0,writable:!0})}catch{lt[t]=e}return e},Za=lt["__core-js_shared__"]||JD("__core-js_shared__",{}),QD=Ag((function(t){(t.exports=function(e,r){return Za[e]||(Za[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),oz=Function.prototype,e6=oz.bind,r6=oz.call,Lnt=e6&&e6.bind(r6),At=e6?function(t){return t&&Lnt(r6,t)}:function(t){return t&&function(){return r6.apply(t,arguments)}},Rnt=lt.TypeError,so=function(t){if(t==null)throw Rnt("Can't call method on "+t);return t},Mnt=lt.Object,ku=function(t){return Mnt(so(t))},znt=At({}.hasOwnProperty),ir=Object.hasOwn||function(t,e){return znt(ku(t),e)},Hnt=0,$nt=Math.random(),Vnt=At(1 .toString),t5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Vnt(++Hnt+$nt,36)},Ee=function(t){return typeof t=="function"},Unt=function(t){return Ee(t)?t:void 0},vl=function(t,e){return arguments.length<2?Unt(lt[t]):lt[t]&&lt[t][e]},Bc=vl("navigator","userAgent")||"",Q_=lt.process,tk=lt.Deno,ek=Q_&&Q_.versions||tk&&tk.version,rk=ek&&ek.v8;rk&&(U0=(ba=rk.split("."))[0]>0&&ba[0]<4?1:+(ba[0]+ba[1])),!U0&&Bc&&(!(ba=Bc.match(/Edge\/(\d+)/))||ba[1]>=74)&&(ba=Bc.match(/Chrome\/(\d+)/))&&(U0=+ba[1]);var Eh=U0,pe=function(t){try{return!!t()}catch{return!0}},n6=!!Object.getOwnPropertySymbols&&!pe((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Eh&&Eh<41})),e5=n6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hd=QD("wks"),Os=lt.Symbol,nk=Os&&Os.for,Wnt=e5?Os:Os&&Os.withoutSetter||t5,qe=function(t){if(!ir(hd,t)||!n6&&typeof hd[t]!="string"){var e="Symbol."+t;n6&&ir(Os,t)?hd[t]=Os[t]:hd[t]=e5&&nk?nk(e):Wnt(e)}return hd[t]},iz={};iz[qe("toStringTag")]="z";var r5=String(iz)==="[object z]",kr=!pe((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Pe=function(t){return typeof t=="object"?t!==null:Ee(t)},o6=lt.document,Gnt=Pe(o6)&&Pe(o6.createElement),xh=function(t){return Gnt?o6.createElement(t):{}},az=!kr&&!pe((function(){return Object.defineProperty(xh("div"),"a",{get:function(){return 7}}).a!=7})),qnt=lt.String,Knt=lt.TypeError,ar=function(t){if(Pe(t))return t;throw Knt(qnt(t)+" is not an object")},gd=Function.prototype.call,ue=gd.bind?gd.bind(gd):function(){return gd.apply(gd,arguments)},Js=At({}.isPrototypeOf),Ynt=lt.Object,bw=e5?function(t){return typeof t=="symbol"}:function(t){var e=vl("Symbol");return Ee(e)&&Js(e.prototype,Ynt(t))},Xnt=lt.String,lb=function(t){try{return Xnt(t)}catch{return"Object"}},Znt=lt.TypeError,mu=function(t){if(Ee(t))return t;throw Znt(lb(t)+" is not a function")},Qs=function(t,e){var r=t[e];return r==null?void 0:mu(r)},Jnt=lt.TypeError,Qnt=lt.TypeError,tot=qe("toPrimitive"),n5=function(t){var e=(function(r,n){if(!Pe(r)||bw(r))return r;var o,i=Qs(r,tot);if(i){if(o=ue(i,r,n),!Pe(o)||bw(o))return o;throw Qnt("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Ee(s=a.toString)&&!Pe(l=ue(s,a))||Ee(s=a.valueOf)&&!Pe(l=ue(s,a)))return l;throw Jnt("Can't convert object to primitive value")})(r)})(t,"string");return bw(e)?e:e+""},eot=lt.TypeError,ok=Object.defineProperty,Ro={f:kr?ok:function(t,e,r){if(ar(t),e=n5(e),ar(r),az)try{return ok(t,e,r)}catch{}if("get"in r||"set"in r)throw eot("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},cb=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_o=kr?function(t,e,r){return Ro.f(t,e,cb(1,r))}:function(t,e,r){return t[e]=r,t},rot=At(Function.toString);Ee(Za.inspectSource)||(Za.inspectSource=function(t){return rot(t)});var cy,Mp,fy,fb=Za.inspectSource,ik=lt.WeakMap,uz=Ee(ik)&&/native code/.test(fb(ik)),ak=QD("keys"),o5=function(t){return ak[t]||(ak[t]=t5(t))},db={},i6=lt.TypeError,not=lt.WeakMap;if(uz||Za.state){var Gu=Za.state||(Za.state=new not),oot=At(Gu.get),uk=At(Gu.has),iot=At(Gu.set);cy=function(t,e){if(uk(Gu,t))throw new i6("Object already initialized");return e.facade=t,iot(Gu,t,e),e},Mp=function(t){return oot(Gu,t)||{}},fy=function(t){return uk(Gu,t)}}else{var Pl=o5("state");db[Pl]=!0,cy=function(t,e){if(ir(t,Pl))throw new i6("Object already initialized");return e.facade=t,_o(t,Pl,e),e},Mp=function(t){return ir(t,Pl)?t[Pl]:{}},fy=function(t){return ir(t,Pl)}}var Jr={set:cy,get:Mp,has:fy,enforce:function(t){return fy(t)?Mp(t):cy(t,{})},getterFor:function(t){return function(e){var r;if(!Pe(e)||(r=Mp(e)).type!==t)throw i6("Incompatible receiver, "+t+" required");return r}}},sz=Function.prototype,aot=kr&&Object.getOwnPropertyDescriptor,ww=ir(sz,"name"),kf={EXISTS:ww,PROPER:ww&&(function(){}).name==="something",CONFIGURABLE:ww&&(!kr||kr&&aot(sz,"name").configurable)},En=Ag((function(t){var e=kf.CONFIGURABLE,r=Jr.get,n=Jr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ee(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ir(u,"name")||e&&u.name!==p)&&_o(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==lt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:_o(i,a,u)):f?i[a]=u:JD(a,u)})(Function.prototype,"toString",(function(){return Ee(this)&&r(this).source||fb(this)}))})),uot=At({}.toString),sot=At("".slice),ko=function(t){return sot(uot(t),8,-1)},lot=qe("toStringTag"),cot=lt.Object,fot=ko((function(){return arguments})())=="Arguments",pb=r5?ko:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=cot(t),lot))=="string"?r:fot?ko(e):(n=ko(e))=="Object"&&Ee(e.callee)?"Arguments":n},dot=r5?{}.toString:function(){return"[object "+pb(this)+"]"};r5||En(Object.prototype,"toString",dot,{unsafe:!0});var dy={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},Ew=xh("span").classList,sk=Ew&&Ew.constructor&&Ew.constructor.prototype,lz=sk===Object.prototype?void 0:sk,lk=At(At.bind),tl=function(t,e){return mu(t),e===void 0?t:lk?lk(t,e):function(){return t.apply(e,arguments)}},xw=lt.Object,pot=At("".split),hb=pe((function(){return!xw("z").propertyIsEnumerable(0)}))?function(t){return ko(t)=="String"?pot(t,""):xw(t)}:xw,hot=Math.ceil,got=Math.floor,Og=function(t){var e=+t;return e!=e||e===0?0:(e>0?got:hot)(e)},vot=Math.min,Tf=function(t){return t>0?vot(Og(t),9007199254740991):0},ml=function(t){return Tf(t.length)},py=Array.isArray||function(t){return ko(t)=="Array"},cz=function(){},mot=[],fz=vl("Reflect","construct"),i5=/^\s*(?:class|function)\b/,yot=At(i5.exec),bot=!i5.exec(cz),vd=function(t){if(!Ee(t))return!1;try{return fz(cz,mot,t),!0}catch{return!1}},gb=!fz||pe((function(){var t;return vd(vd.call)||!vd(Object)||!vd((function(){t=!0}))||t}))?function(t){if(!Ee(t))return!1;switch(pb(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bot||!!yot(i5,fb(t))}:vd,wot=qe("species"),ck=lt.Array,dz=function(t,e){return new((function(r){var n;return py(r)&&(n=r.constructor,(gb(n)&&(n===ck||py(n.prototype))||Pe(n)&&(n=n[wot])===null)&&(n=void 0)),n===void 0?ck:n})(t))(e===0?0:e)},fk=At([].push),md=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=ku(s),v=hb(m),g=tl(l,c),y=ml(v),h=0,b=f||dz,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:fk(w,d)}else switch(t){case 4:return!1;case 7:fk(w,d)}return i?-1:n||o?o:w}},Bf={forEach:md(0),map:md(1),filter:md(2),find:md(5),findIndex:md(6)},pz=function(t,e){var r=[][t];return!!r&&pe((function(){r.call(null,e||function(){throw 1},1)}))},Eot=Bf.forEach,Cw=pz("forEach")?[].forEach:function(t){return Eot(this,t,arguments.length>1?arguments[1]:void 0)},hz=function(t){if(t&&t.forEach!==Cw)try{_o(t,"forEach",Cw)}catch{t.forEach=Cw}};for(var Sw in dy)dy[Sw]&&hz(lt[Sw]&&lt[Sw].prototype);hz(lz);var dk={}.propertyIsEnumerable,pk=Object.getOwnPropertyDescriptor,xot=pk&&!dk.call({1:2},1)?function(t){var e=pk(this,t);return!!e&&e.enumerable}:dk,gz={f:xot},Tu=function(t){return hb(so(t))},hk=Object.getOwnPropertyDescriptor,_g={f:kr?hk:function(t,e){if(t=Tu(t),e=n5(e),az)try{return hk(t,e)}catch{}if(ir(t,e))return cb(!ue(gz.f,t,e),t[e])}},Cot=Math.max,Sot=Math.min,sf=function(t,e){var r=Og(t);return r<0?Cot(r+e,0):Sot(r,e)},gk=function(t){return function(e,r,n){var o,i=Tu(e),a=ml(i),u=sf(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vz={includes:gk(!0),indexOf:gk(!1)},Dot=vz.indexOf,vk=At([].push),mz=function(t,e){var r,n=Tu(t),o=0,i=[];for(r in n)!ir(db,r)&&ir(n,r)&&vk(i,r);for(;e.length>o;)ir(n,r=e[o++])&&(~Dot(i,r)||vk(i,r));return i},hy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Aot=hy.concat("length","prototype"),Ch={f:Object.getOwnPropertyNames||function(t){return mz(t,Aot)}},yz={f:Object.getOwnPropertySymbols},Oot=At([].concat),_ot=vl("Reflect","ownKeys")||function(t){var e=Ch.f(ar(t)),r=yz.f;return r?Oot(e,r(t)):e},kot=function(t,e){for(var r=_ot(e),n=Ro.f,o=_g.f,i=0;i<r.length;i++){var a=r[i];ir(t,a)||n(t,a,o(e,a))}},Tot=/#|\.prototype\./,kg=function(t,e){var r=Fot[Bot(t)];return r==jot||r!=Pot&&(Ee(e)?pe(e):!!e)},Bot=kg.normalize=function(t){return String(t).replace(Tot,".").toLowerCase()},Fot=kg.data={},Pot=kg.NATIVE="N",jot=kg.POLYFILL="P",Sh=kg,Not=_g.f,We=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?lt:l?lt[u]||JD(u,{}):(lt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Not(r,n))&&a.value:r[n],!Sh(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;kot(i,o)}(t.sham||o&&o.sham)&&_o(i,"sham",!0),En(r,n,i,t)}},Fc=Object.keys||function(t){return mz(t,hy)},Iot=pe((function(){Fc(1)}));function mk(t){return Object.prototype.toString.call(t)==="[object Object]"}We({target:"Object",stat:!0,forced:Iot},{keys:function(t){return Fc(ku(t))}});var Lot={isHistory(t){return mk(e=t)!==!1&&((r=e.constructor)===void 0||mk(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Ha.isOperationList(t.redos[0]))&&(t.undos.length===0||Ha.isOperationList(t.undos[0]));var e,r,n}},Dw=new WeakMap,Aw=new WeakMap,gc={isHistoryEditor:t=>Lot.isHistory(t.history)&&C.isEditor(t),isMerging:t=>Aw.get(t),isSaving:t=>Dw.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var r=gc.isMerging(t);Aw.set(t,!1),e(),Aw.set(t,r)},withoutSaving(t,e){var r=gc.isSaving(t);Dw.set(t,!1),e(),Dw.set(t,r)}},Rot=lt.String,Se=function(t){if(pb(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rot(t)},a5=function(){var t=ar(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Mot=kf.PROPER,a6=RegExp.prototype,bz=a6.toString,zot=At(a5),Hot=pe((function(){return bz.call({source:"a",flags:"b"})!="/a/b"})),$ot=Mot&&bz.name!="toString";(Hot||$ot)&&En(RegExp.prototype,"toString",(function(){var t=ar(this),e=Se(t.source),r=t.flags;return"/"+e+"/"+Se(r===void 0&&Js(a6,t)&&!("flags"in a6)?zot(t):r)}),{unsafe:!0});var jv,Vot=kr?Object.defineProperties:function(t,e){ar(t);for(var r,n=Tu(e),o=Fc(e),i=o.length,a=0;i>a;)Ro.f(t,r=o[a++],n[r]);return t},u6=vl("document","documentElement"),wz=o5("IE_PROTO"),Ow=function(){},Ez=function(t){return"<script>"+t+"<\/script>"},yk=function(t){t.write(Ez("")),t.close();var e=t.parentWindow.Object;return t=null,e},W0=function(){try{jv=new ActiveXObject("htmlfile")}catch{}var t,e;W0=typeof document<"u"?document.domain&&jv?yk(jv):((e=xh("iframe")).style.display="none",u6.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Ez("document.F=Object")),t.close(),t.F):yk(jv);for(var r=hy.length;r--;)delete W0.prototype[hy[r]];return W0()};db[wz]=!0;var vb=Object.create||function(t,e){var r;return t!==null?(Ow.prototype=ar(t),r=new Ow,Ow.prototype=null,r[wz]=t):r=W0(),e===void 0?r:Vot(r,e)},s6=qe("unscopables"),l6=Array.prototype;l6[s6]==null&&Ro.f(l6,s6,{configurable:!0,value:vb(null)});var zp=function(t){l6[s6][t]=!0},Uot=vz.includes;We({target:"Array",proto:!0},{includes:function(t){return Uot(this,t,arguments.length>1?arguments[1]:void 0)}}),zp("includes");var Wot=qe("match"),u5=function(t){var e;return Pe(t)&&((e=t[Wot])!==void 0?!!e:ko(t)=="RegExp")},Got=lt.TypeError,s5=function(t){if(u5(t))throw Got("The method doesn't accept regular expressions");return t},qot=qe("match"),l5=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[qot]=!1,"/./"[t](e)}catch{}}return!1},Kot=At("".indexOf);We({target:"String",proto:!0,forced:!l5("includes")},{includes:function(t){return!!~Kot(Se(so(this)),Se(s5(t)),arguments.length>1?arguments[1]:void 0)}});var Yot=/"/g,Xot=At("".replace);We({target:"String",proto:!0,forced:pe((function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3}))},{anchor:function(t){return e=t,r=Se(so(this)),n="<a",(n+=' name="'+Xot(Se(e),Yot,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var c6=function(t,e,r){var n,o;ar(t);try{if(!(n=Qs(t,"return"))){if(e==="throw")throw r;return r}n=ue(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return ar(n),r},Zot=function(t,e,r,n){try{return n?e(ar(r)[0],r[1]):e(r)}catch(o){c6(t,"throw",o)}},lf={},Jot=qe("iterator"),Qot=Array.prototype,xz=function(t){return t!==void 0&&(lf.Array===t||Qot[Jot]===t)},Dh=function(t,e,r){var n=n5(e);n in t?Ro.f(t,n,cb(0,r)):t[n]=r},tit=qe("iterator"),c5=function(t){if(t!=null)return Qs(t,tit)||Qs(t,"@@iterator")||lf[pb(t)]},eit=lt.TypeError,Cz=function(t,e){var r=arguments.length<2?c5(t):e;if(mu(r))return ar(ue(r,t));throw eit(lb(t)+" is not iterable")},bk=lt.Array,Sz=qe("iterator"),Dz=!1;try{var rit=0,wk={next:function(){return{done:!!rit++}},return:function(){Dz=!0}};wk[Sz]=function(){return this},Array.from(wk,(function(){throw 2}))}catch{}var f5=function(t,e){if(!Dz)return!1;var r=!1;try{var n={};n[Sz]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},nit=!f5((function(t){Array.from(t)}));We({target:"Array",stat:!0,forced:nit},{from:function(t){var e=ku(t),r=gb(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=tl(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=c5(e),p=0;if(!d||this==bk&&xz(d))for(a=ml(e),u=r?new this(a):bk(a);a>p;p++)f=i?o(e[p],p):e[p],Dh(u,p,f);else for(c=(l=Cz(e,d)).next,u=r?new this:[];!(s=ue(c,l)).done;p++)f=i?Zot(l,o,[s.value,p],!0):s.value,Dh(u,p,f);return u.length=p,u}});var _s,Ek,xk,oit=At("".charAt),Ck=At("".charCodeAt),iit=At("".slice),ait=function(t){return function(e,r){var n,o,i=Se(so(e)),a=Og(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Ck(i,a))<55296||n>56319||a+1===u||(o=Ck(i,a+1))<56320||o>57343?t?oit(i,a):n:t?iit(i,a,a+2):o-56320+(n-55296<<10)+65536}},Az={charAt:ait(!0)},uit=!pe((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Sk=o5("IE_PROTO"),f6=lt.Object,sit=f6.prototype,gy=uit?f6.getPrototypeOf:function(t){var e=ku(t);if(ir(e,Sk))return e[Sk];var r=e.constructor;return Ee(r)&&e instanceof r?r.prototype:e instanceof f6?sit:null},d6=qe("iterator"),Oz=!1;[].keys&&("next"in(xk=[].keys())?(Ek=gy(gy(xk)))!==Object.prototype&&(_s=Ek):Oz=!0);var lit=_s==null||pe((function(){var t={};return _s[d6].call(t)!==t}));lit&&(_s={}),Ee(_s[d6])||En(_s,d6,(function(){return this}));var d5={IteratorPrototype:_s,BUGGY_SAFARI_ITERATORS:Oz},cit=Ro.f,Dk=qe("toStringTag"),vy=function(t,e,r){t&&!ir(t=r?t:t.prototype,Dk)&&cit(t,Dk,{configurable:!0,value:e})},fit=d5.IteratorPrototype,dit=function(){return this},pit=lt.String,hit=lt.TypeError,cf=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,r={};try{(t=At(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return ar(n),(function(i){if(typeof i=="object"||Ee(i))return i;throw hit("Can't set "+pit(i)+" as a prototype")})(o),e?t(n,o):n.__proto__=o,n}})():void 0),git=kf.PROPER,vit=kf.CONFIGURABLE,Ak=d5.IteratorPrototype,Nv=d5.BUGGY_SAFARI_ITERATORS,yd=qe("iterator"),mit=function(){return this},p5=function(t,e,r,n,o,i,a){(function(y,h,b,w){var E=h+" Iterator";y.prototype=vb(fit,{next:cb(1,b)}),vy(y,E,!1),lf[E]=dit})(r,e,n);var u,s,l,c=function(y){if(y===o&&v)return v;if(!Nv&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,p=t.prototype,m=p[yd]||p["@@iterator"]||o&&p[o],v=!Nv&&m||c(o),g=e=="Array"&&p.entries||m;if(g&&(u=gy(g.call(new t)))!==Object.prototype&&u.next&&(gy(u)!==Ak&&(cf?cf(u,Ak):Ee(u[yd])||En(u,yd,mit)),vy(u,f,!0)),git&&o=="values"&&m&&m.name!=="values"&&(vit?_o(p,"name","values"):(d=!0,v=function(){return ue(m,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Nv||d||!(l in p))&&En(p,l,s[l]);else We({target:e,proto:!0,forced:Nv||d},s);return p[yd]!==v&&En(p,yd,v,{name:o}),lf[e]=v,s},yit=Az.charAt,bit=Jr.set,wit=Jr.getterFor("String Iterator");p5(String,"String",(function(t){bit(this,{type:"String Iterator",string:Se(t),index:0})}),(function(){var t,e=wit(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=yit(r,n),e.index+=t.length,{value:t,done:!1})}));var _w,Eit=_g.f,Ok=At("".endsWith),xit=At("".slice),Cit=Math.min,_z=l5("endsWith"),Sit=!(_z||(_w=Eit(String.prototype,"endsWith"),!_w||_w.writable));We({target:"String",proto:!0,forced:!Sit&&!_z},{endsWith:function(t){var e=Se(so(this));s5(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=r===void 0?n:Cit(Tf(r),n),i=Se(t);return Ok?Ok(e,i,o):xit(e,o-i.length,o)===i}});var Dit=At([].join),Ait=hb!=Object,Oit=pz("join",",");We({target:"Array",proto:!0,forced:Ait||!Oit},{join:function(t){return Dit(Tu(this),t===void 0?",":t)}});var _it=qe("species"),mb=function(t){return Eh>=51||!pe((function(){var e=[];return(e.constructor={})[_it]=function(){return{foo:1}},e[t](Boolean).foo!==1}))},kit=Bf.map,Tit=mb("map");We({target:"Array",proto:!0,forced:!Tit},{map:function(t){return kit(this,t,arguments.length>1?arguments[1]:void 0)}});var h5=lt.RegExp,p6=pe((function(){var t=h5("a","y");return t.lastIndex=2,t.exec("abcd")!=null})),Bit=p6||pe((function(){return!h5("a","y").sticky})),yb={BROKEN_CARET:p6||pe((function(){var t=h5("^r","gy");return t.lastIndex=2,t.exec("str")!=null})),MISSED_STICKY:Bit,UNSUPPORTED_Y:p6},Fit=lt.RegExp,g5=pe((function(){var t=Fit(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),Pit=lt.RegExp,v5=pe((function(){var t=Pit("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),jit=Jr.get,Nit=QD("native-string-replace",String.prototype.replace),my=RegExp.prototype.exec,h6=my,Iit=At("".charAt),Lit=At("".indexOf),Rit=At("".replace),kw=At("".slice),Tw=(function(){var t=/a/,e=/b*/g;return ue(my,t,"a"),ue(my,e,"a"),t.lastIndex!==0||e.lastIndex!==0})(),_k=yb.BROKEN_CARET,Bw=/()??/.exec("")[1]!==void 0;(Tw||Bw||_k||g5||v5)&&(h6=function(t){var e,r,n,o,i,a,u,s=this,l=jit(s),c=Se(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ue(h6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=_k&&s.sticky,m=ue(a5,s),v=s.source,g=0,y=c;if(p&&(m=Rit(m,"y",""),Lit(m,"g")===-1&&(m+="g"),y=kw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Iit(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),Bw&&(r=new RegExp("^"+v+"$(?!\\s)",m)),Tw&&(n=s.lastIndex),o=ue(my,p?r:s,y),p?o?(o.input=kw(o.input,g),o[0]=kw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Tw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Bw&&o&&o.length>1&&ue(Nit,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=vb(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ah=h6;We({target:"RegExp",proto:!0,forced:/./.exec!==Ah},{exec:Ah});var m5=Function.prototype,kk=m5.apply,Mit=m5.bind,Tk=m5.call,y5=typeof Reflect=="object"&&Reflect.apply||(Mit?Tk.bind(kk):function(){return Tk.apply(kk,arguments)}),zit=qe("species"),Fw=RegExp.prototype,b5=function(t,e,r,n){var o=qe(t),i=!pe((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!pe((function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[zit]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=At(/./[o]),s=e(o,""[t],(function(l,c,f,d,p){var m=At(l),v=c.exec;return v===Ah||v===Fw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));En(String.prototype,t,s[0]),En(Fw,o,s[1])}n&&_o(Fw[o],"sham",!0)},Hit=Az.charAt,w5=function(t,e,r){return e+(r?Hit(t,e).length:1)},$it=Math.floor,Pw=At("".charAt),Vit=At("".replace),jw=At("".slice),Uit=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wit=/\$([$&'`]|\d{1,2})/g,Git=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Wit;return o!==void 0&&(o=ku(o),s=Uit),Vit(i,s,(function(l,c){var f;switch(Pw(c,0)){case"$":return"$";case"&":return t;case"`":return jw(e,0,r);case"'":return jw(e,a);case"<":f=o[jw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=$it(d/10);return p===0?l:p<=u?n[p-1]===void 0?Pw(c,1):n[p-1]+Pw(c,1):l}f=n[d-1]}return f===void 0?"":f}))},qit=lt.TypeError,Oh=function(t,e){var r=t.exec;if(Ee(r)){var n=ue(r,t,e);return n!==null&&ar(n),n}if(ko(t)==="RegExp")return ue(Ah,t,e);throw qit("RegExp#exec called on incompatible receiver")},g6=qe("replace"),Kit=Math.max,Yit=Math.min,Xit=At([].concat),Nw=At([].push),Bk=At("".indexOf),Fk=At("".slice),Zit="a".replace(/./,"$0")==="$0",Pk=!!/./[g6]&&/./[g6]("a","$0")==="";b5("replace",(function(t,e,r){var n=Pk?"$":"$0";return[function(o,i){var a=so(this),u=o==null?void 0:Qs(o,g6);return u?ue(u,o,a,i):ue(e,Se(a),o,i)},function(o,i){var a=ar(this),u=Se(o);if(typeof i=="string"&&Bk(i,n)===-1&&Bk(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Ee(i);l||(i=Se(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Oh(a,u);if(p===null||(Nw(d,p),!c))break;Se(p[0])===""&&(a.lastIndex=w5(u,Tf(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=Se((p=d[y])[0]),b=Kit(Yit(Og(p.index),u.length),0),w=[],E=1;E<p.length;E++)Nw(w,(m=p[E])===void 0?m:String(m));var S=p.groups;if(l){var x=Xit([h],w,b,u);S!==void 0&&Nw(x,S);var D=Se(y5(i,void 0,x))}else D=Git(h,u,b,w,S,i);b>=g&&(v+=Fk(u,g,b)+D,g=b+h.length)}return v+Fk(u,g)}]}),!!pe((function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"}))||!Zit||Pk);var v6=function(t,e){return v6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},v6(t,e)};function Ff(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}v6(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Eo=function(){return Eo=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Eo.apply(this,arguments)};function Qn(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function re(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m6(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var Jit=0,jk=function(){this.id=""+Jit++},Qit=Jr.set,tat=Jr.getterFor("Array Iterator"),xp=p5(Array,"Array",(function(t,e){Qit(this,{type:"Array Iterator",target:Tu(t),index:0,kind:e})}),(function(){var t=tat(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");lf.Arguments=lf.Array,zp("keys"),zp("values"),zp("entries");var ff=function(t,e,r){for(var n in e)En(t,n,e[n],r);return t},eat=lt.Array,rat=Math.max,y6=function(t,e,r){for(var n=ml(t),o=sf(e,n),i=sf(r===void 0?n:r,n),a=eat(rat(i-o,0)),u=0;o<i;o++,u++)Dh(a,u,t[o]);return a.length=u,a},Nk=Ch.f,Ik=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nat={f:function(t){return Ik&&ko(t)=="Window"?(function(e){try{return Nk(e)}catch{return y6(Ik)}})(t):Nk(Tu(t))}},Lk=pe((function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Iv=Object.isExtensible,hs=pe((function(){Iv(1)}))||Lk?function(t){return!!Pe(t)&&(!Lk||ko(t)!="ArrayBuffer")&&(!Iv||Iv(t))}:Iv,oat=!pe((function(){return Object.isExtensible(Object.preventExtensions({}))})),bb=Ag((function(t){var e=Ro.f,r=!1,n=t5("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Ch.f,s=At([].splice),l={};l[n]=1,u(l).length&&(Ch.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},We({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nat.f}))},fastKey:function(u,s){if(!Pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!ir(u,n)){if(!hs(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!ir(u,n)){if(!hs(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return oat&&r&&hs(u)&&!ir(u,n)&&i(u),u}};db[n]=!0})),iat=lt.TypeError,G0=function(t,e){this.stopped=t,this.result=e},Rk=G0.prototype,_h=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),m=tl(e,c),v=function(y){return n&&c6(n,"normal",y),new G0(!0,y)},g=function(y){return f?(ar(y),p?m(y[0],y[1],v):m(y[0],y[1])):p?m(y,v):m(y)};if(d)n=t;else{if(!(o=c5(t)))throw iat(lb(t)+" is not iterable");if(xz(o)){for(i=0,a=ml(t);a>i;i++)if((u=g(t[i]))&&Js(Rk,u))return u;return new G0(!1)}n=Cz(t,o)}for(s=n.next;!(l=ue(s,n)).done;){try{u=g(l.value)}catch(y){c6(n,"throw",y)}if(typeof u=="object"&&u&&Js(Rk,u))return u}return new G0(!1)},aat=lt.TypeError,wb=function(t,e){if(Js(e,t))return t;throw aat("Incorrect invocation")},kz=function(t,e,r){var n,o;return cf&&Ee(n=e.constructor)&&n!==r&&Pe(o=n.prototype)&&o!==r.prototype&&cf(t,o),t},Tz=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=lt[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=At(u[g]);En(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Pe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Pe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Pe(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Sh(t,!Ee(a)||!(o||u.forEach&&!pe((function(){new a().entries().next()})))))s=r.getConstructor(e,t,n,i),bb.enable();else if(Sh(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=pe((function(){f.has(1)})),m=f5((function(g){new a(g)})),v=!o&&pe((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));m||((s=e((function(g,y){wb(g,u);var h=kz(new a,g,s);return y!=null&&_h(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),n&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,We({global:!0,forced:s!=a},l),vy(s,t),o||r.setStrong(s,t,n),s},Lv=bb.getWeakData,uat=Jr.set,sat=Jr.getterFor,lat=Bf.find,cat=Bf.findIndex,fat=At([].splice),dat=0,Rv=function(t){return t.frozen||(t.frozen=new Bz)},Bz=function(){this.entries=[]},Iw=function(t,e){return lat(t.entries,(function(r){return r[0]===e}))};Bz.prototype={get:function(t){var e=Iw(this,t);if(e)return e[1]},has:function(t){return!!Iw(this,t)},set:function(t,e){var r=Iw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=cat(this.entries,(function(r){return r[0]===t}));return~e&&fat(this.entries,e,1),!!~e}};var bd,Fz={getConstructor:function(t,e,r,n){var o=t((function(s,l){wb(s,i),uat(s,{type:e,id:dat++,frozen:void 0}),l!=null&&_h(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=sat(e),u=function(s,l,c){var f=a(s),d=Lv(ar(l),!0);return d===!0?Rv(f).set(l,c):d[f.id]=c,s};return ff(i,{delete:function(s){var l=a(this);if(!Pe(s))return!1;var c=Lv(s);return c===!0?Rv(l).delete(s):c&&ir(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Pe(s))return!1;var c=Lv(s);return c===!0?Rv(l).has(s):c&&ir(c,l.id)}}),ff(i,r?{get:function(s){var l=a(this);if(Pe(s)){var c=Lv(s);return c===!0?Rv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Mv=Jr.enforce,pat=!lt.ActiveXObject&&"ActiveXObject"in lt,Pz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},hat=Tz("WeakMap",Pz,Fz);if(uz&&pat){bd=Fz.getConstructor(Pz,"WeakMap",!0),bb.enable();var wd=hat.prototype,Mk=At(wd.delete),zv=At(wd.has),zk=At(wd.get),Hk=At(wd.set);ff(wd,{delete:function(t){if(Pe(t)&&!hs(t)){var e=Mv(this);return e.frozen||(e.frozen=new bd),Mk(this,t)||e.frozen.delete(t)}return Mk(this,t)},has:function(t){if(Pe(t)&&!hs(t)){var e=Mv(this);return e.frozen||(e.frozen=new bd),zv(this,t)||e.frozen.has(t)}return zv(this,t)},get:function(t){if(Pe(t)&&!hs(t)){var e=Mv(this);return e.frozen||(e.frozen=new bd),zv(this,t)?zk(this,t):e.frozen.get(t)}return zk(this,t)},set:function(t,e){if(Pe(t)&&!hs(t)){var r=Mv(this);r.frozen||(r.frozen=new bd),zv(this,t)?Hk(this,t,e):r.frozen.set(t,e)}else Hk(this,t,e);return this}})}var Lw=qe("iterator"),$k=qe("toStringTag"),Rw=xp.values,jz=function(t,e){if(t){if(t[Lw]!==Rw)try{_o(t,Lw,Rw)}catch{t[Lw]=Rw}if(t[$k]||_o(t,$k,e),dy[e]){for(var r in xp)if(t[r]!==xp[r])try{_o(t,r,xp[r])}catch{t[r]=xp[r]}}}};for(var Mw in dy)jz(lt[Mw]&&lt[Mw].prototype,Mw);jz(lz,"DOMTokenList");var b6=new WeakMap,w6=new WeakMap,gat=new WeakMap,E5=new WeakMap,E6=new WeakMap,yy=new WeakMap,Nz=new WeakMap,x6=new WeakMap,q0=new WeakMap,Vk=new WeakMap,Uk=new WeakMap,Wk=new WeakMap,Gk=new WeakMap,kh=new WeakMap,df=new WeakMap,x5=new WeakMap,by=new WeakMap,C6=new WeakMap,wy=new WeakMap,K0=new WeakMap,Iz=new WeakMap,ks=new WeakMap,zw=new WeakMap,qk=new WeakMap,Hw=new WeakMap,vat=Bf.find,Kk=!0;"find"in[]&&Array(1).find((function(){Kk=!1})),We({target:"Array",proto:!0,forced:Kk},{find:function(t){return vat(this,t,arguments.length>1?arguments[1]:void 0)}}),zp("find"),We({global:!0},{globalThis:lt});const mat=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];oy&&(j.fn.css=oy),uo&&(j.fn.append=uo),Xc&&(j.fn.addClass=Xc),Zc&&(j.fn.removeClass=Zc),Jc&&(j.fn.hasClass=Jc),fi&&(j.fn.on=fi),vu&&(j.fn.focus=vu),ao&&(j.fn.attr=ao),ty&&(j.fn.removeAttr=ty),tf&&(j.fn.hide=tf),ny&&(j.fn.show=ny),c_&&(j.fn.offset=c_),ey&&(j.fn.width=ey),ry&&(j.fn.height=ry),ef&&(j.fn.parent=ef),uy&&(j.fn.parents=uy),d_&&(j.fn.is=d_),Qc&&(j.fn.dataset=Qc),ci&&(j.fn.val=ci),ay&&(j.fn.text=ay),gu&&(j.fn.html=gu),nf&&(j.fn.children=nf),of&&(j.fn.remove=of),rf&&(j.fn.find=rf),iy&&(j.fn.each=iy),af&&(j.fn.empty=af);var Jo,Wr,C5=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},mo=function(t){return el(t)&&t.nodeType===1},el=function(t){var e=C5(t);return!!e&&t instanceof e.Node},Yk=function(t){var e=t&&t.anchorNode&&C5(t.anchorNode);return!!e&&t instanceof e.Selection},Lz=function(t){return el(t)&&t.nodeType===3},S6=function(t){var e,r,n;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(t))||null},Rz=function(t,e,r){for(var n,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(el(n=i)&&n.nodeType===8||mo(i)&&i.childNodes.length===0||mo(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,r="backward"):a<0?(s=!0,a=e+1,r="forward"):(i=o[a],e=a,a+=r==="forward"?1:-1);return[i,e]},yat=function(t,e,r){return re(Rz(t,e,r),1)[0]},bat=function t(e){var r,n,o="";if(Lz(e)&&e.nodeValue)return e.nodeValue;if(mo(e)){try{for(var i=Qn(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
`)}return o};function Mz(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var r=t.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||Mz(o,e)}}function Xk(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==Jo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Wr=Jo||(Jo={}))[Wr.ELEMENT_NODE=1]="ELEMENT_NODE",Wr[Wr.TEXT_NODE=3]="TEXT_NODE",Wr[Wr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Wr[Wr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Wr[Wr.COMMENT_NODE=8]="COMMENT_NODE",Wr[Wr.DOCUMENT_NODE=9]="DOCUMENT_NODE",Wr[Wr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Wr[Wr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var D6=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Hp=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ed=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),wat=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Eat=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),A6=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),xd=!Eat&&!wat&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",k={getWindow:function(t){var e=Iz.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=K0.get(e);return r||(r=new jk,K0.set(e,r)),r},setNewKey:function(t){var e=new jk;K0.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=df.get(n);if(o==null){if(C.isEditor(n))return r;break}var i=kh.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=k.toDOMNode(t,t),r=e.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:e.ownerDocument},getParentNode:function(t,e){return df.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&n!=null;){var o=k.getParentNode(t,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[k.findPath(t,e)[0]];return ft.get(t,r)},toDOMNode:function(t,e){var r;if(C.isEditor(e))r=x5.get(t);else{var n=k.findKey(t,e);r=C6.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return r},hasDOMNode:function(t,e,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=k.toDOMNode(t,t);try{n=mo(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=q.isBackward(e),i=k.toDOMPoint(t,r),a=q.isCollapsed(e)?i:k.toDOMPoint(t,n),u=k.getWindow(t).document.createRange(),s=re(o?a:i,2),l=s[0],c=s[1],f=re(o?i:a,2),d=f[0],p=f[1],m=!!(mo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(mo(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(t,e){var r,n,o,i=re(C.node(t,e.path),1)[0],a=k.toDOMNode(t,i);C.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Qn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,m=f.getAttribute("data-slate-length"),v=s+(m==null?p:parseInt(m,10));if(e.offset<=v){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=v}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var r=mo(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?by.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=k.toSlateNode(t,e.target),u=k.findPath(t,a);if(C.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=C.point(t,u,{edge:l?"start":"end"}),f=l?C.before(t,c):C.after(t,c);if(f)return C.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return k.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((Yk(e)?e.anchorNode:e.startContainer)&&(Yk(e)?(n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=A6&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=k.toSlatePoint(t,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:k.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return q.isExpanded(d)&&q.isForward(d)&&mo(i)&&C.void(t,{at:d.focus,mode:"highest"})&&(d=C.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,i=r.suppressThrow,a=re(o?e:(function(h){var b,w=re(h,2),E=w[0],S=w[1];if(mo(E)&&E.childNodes.length){var x=S===E.childNodes.length,D=x?S-1:S;for(E=(b=re(Rz(E,D,x?"backward":"forward"),2))[0],x=(D=b[1])<S;mo(E)&&E.childNodes.length;){var A=x?E.childNodes.length-1:0;E=yat(E,A,x?"backward":"forward")}S=x&&E.textContent!=null?E.textContent.length:0}return[E,S]})(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),m=null;if(p){c=p.closest('[data-slate-node="text"]');var v=k.getWindow(t).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();m6(m6([],re(u_(g.querySelectorAll("[data-slate-zero-width]")))),re(u_(g.querySelectorAll("[contenteditable=false]")))).forEach((function(h){h.parentNode.removeChild(h)})),f=g.textContent.length,m=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(m=p).textContent.length,m.querySelectorAll("[data-slate-zero-width]").forEach((function(h){f-=h.textContent.length}))):f=1);m&&f===m.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Hp&&(!((n=m.textContent)===null||n===void 0)&&n.endsWith(`
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=k.toSlateNode(t,c);return{path:k.findPath(t,y),offset:f}},hasRange:function(t,e){var r=e.anchor,n=e.focus;return C.hasPath(t,r.path)&&C.hasPath(t,n.path)},getNodeType:function(t){return Et.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map((function(e){return ft.string(e)})).join("")},getSelectedElems:function(t){var e,r,n=[],o=C.nodes(t,{universal:!0});try{for(var i=Qn(o),a=i.next();!a.done;a=i.next()){var u=re(a.value,1)[0];Et.isElement(u)&&n.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=re(C.nodes(t,{match:function(i){return r.checkNodeType(i,e)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=re(C.nodes(t,{match:function(n){return yt.isText(n)},universal:!0}),1),r=e[0];return r==null?null:r[0]},isNodeSelected:function(t,e){var r=re(C.nodes(t,{match:function(o){return o===e},universal:!0}),1),n=r[0];return n!=null&&re(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(C.isEnd(t,r.anchor,e)||C.isEnd(t,r.focus,e))},getTextarea:function(t){var e=b6.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return E5.get(t)||null},getHoverbar:function(t){return yy.get(t)||null},normalizeContent:function(t){t.children.forEach((function(e,r){t.normalizeNode([e,[r]])}))},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,i=k.getTextarea(t).$textArea,a=i?.[0].childNodes;if(a)try{for(var u=Qn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){e={error:v}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var c=C.nodes(t,{match:function(v){return!(!Et.isElement(v)||t.isInline(v))},universal:!0});try{for(var f=Qn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var m=p[0];Mz(k.toDOMNode(t,m),(function(v,g){var y=j(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(v)}))}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=C.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Qn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||q.isExpanded(e))return!1;var r=k.getSelectedNodeByType(t,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(t,e){var r=C.node(t,e);if(r==null)return!1;var n=re(r,1)[0].children;return n.length===1&&n[0].text===""}},xat=1,zz={},Ey={},Cat=Bf.filter,Sat=mb("filter");We({target:"Array",proto:!0,forced:!Sat},{filter:function(t){return Cat(this,t,arguments.length>1?arguments[1]:void 0)}});var O6=`	
\v\f\r                　\u2028\u2029\uFEFF`,Zk=At("".replace),xy="["+O6+"]",Dat=RegExp("^"+xy+xy+"*"),Aat=RegExp(xy+xy+"*$"),Oat=function(t){return function(e){var r=Se(so(e));return 1&t&&(r=Zk(r,Dat,"")),2&t&&(r=Zk(r,Aat,"")),r}},_at={trim:Oat(3)},kat=kf.PROPER,Tat=_at.trim;We({target:"String",proto:!0,forced:(function(t){return pe((function(){return!!O6[t]()||"​᠎"[t]()!=="​᠎"||kat&&O6[t].name!==t}))})("trim")},{trim:function(){return Tat(this)}});var _6=[],Hz={};function Bat(t,e,r){var n=r.isInline(t)?"span":"div";return"<"+n+">"+e+"</"+n+">"}var Th,jl,Jk,$w,Cy=lt.Promise,Qk=qe("species"),S5=function(t){var e=vl(t),r=Ro.f;kr&&e&&!e[Qk]&&r(e,Qk,{configurable:!0,get:function(){return this}})},Fat=lt.TypeError,Pat=qe("species"),$z=function(t,e){var r,n=ar(t).constructor;return n===void 0||(r=ar(n)[Pat])==null?e:(function(o){if(gb(o))return o;throw Fat(lb(o)+" is not a constructor")})(r)},Vz=At([].slice),Uz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Bc),Ja=ko(lt.process)=="process",k6=lt.setImmediate,tT=lt.clearImmediate,jat=lt.process,Vw=lt.Dispatch,Nat=lt.Function,eT=lt.MessageChannel,Iat=lt.String,Uw=0,$p={};try{Th=lt.location}catch{}var D5=function(t){if(ir($p,t)){var e=$p[t];delete $p[t],e()}},Ww=function(t){return function(){D5(t)}},rT=function(t){D5(t.data)},nT=function(t){lt.postMessage(Iat(t),Th.protocol+"//"+Th.host)};k6&&tT||(k6=function(t){var e=Vz(arguments,1);return $p[++Uw]=function(){y5(Ee(t)?t:Nat(t),void 0,e)},jl(Uw),Uw},tT=function(t){delete $p[t]},Ja?jl=function(t){jat.nextTick(Ww(t))}:Vw&&Vw.now?jl=function(t){Vw.now(Ww(t))}:eT&&!Uz?($w=(Jk=new eT).port2,Jk.port1.onmessage=rT,jl=tl($w.postMessage,$w)):lt.addEventListener&&Ee(lt.postMessage)&&!lt.importScripts&&Th&&Th.protocol!=="file:"&&!pe(nT)?(jl=nT,lt.addEventListener("message",rT,!1)):jl="onreadystatechange"in xh("script")?function(t){u6.appendChild(xh("script")).onreadystatechange=function(){u6.removeChild(this),D5(t)}}:function(t){setTimeout(Ww(t),0)});var Cd,cs,Vp,sc,Gw,qw,Kw,oT,Wz={set:k6},Lat=/ipad|iphone|ipod/i.test(Bc)&&lt.Pebble!==void 0,Rat=/web0s(?!.*chrome)/i.test(Bc),Mat=_g.f,Yw=Wz.set,iT=lt.MutationObserver||lt.WebKitMutationObserver,aT=lt.document,uT=lt.process,Hv=lt.Promise,sT=Mat(lt,"queueMicrotask"),Gz=sT&&sT.value;Gz||(Cd=function(){var t,e;for(Ja&&(t=uT.domain)&&t.exit();cs;){e=cs.fn,cs=cs.next;try{e()}catch(r){throw cs?sc():Vp=void 0,r}}Vp=void 0,t&&t.enter()},Uz||Ja||Rat||!iT||!aT?!Lat&&Hv&&Hv.resolve?((Kw=Hv.resolve(void 0)).constructor=Hv,oT=tl(Kw.then,Kw),sc=function(){oT(Cd)}):Ja?sc=function(){uT.nextTick(Cd)}:(Yw=tl(Yw,lt),sc=function(){Yw(Cd)}):(Gw=!0,qw=aT.createTextNode(""),new iT(Cd).observe(qw,{characterData:!0}),sc=function(){qw.data=Gw=!Gw}));var Xw,lT,qz,cT,Kz=Gz||function(t){var e={fn:t,next:void 0};Vp&&(Vp.next=e),cs||(cs=e,sc()),Vp=e},zat=function(t){var e,r;this.promise=new t((function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o})),this.resolve=mu(e),this.reject=mu(r)},A5={f:function(t){return new zat(t)}},T6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Hat=typeof window=="object",Yz=Wz.set,$at=qe("species"),Yo="Promise",fT=Jr.getterFor(Yo),Vat=Jr.set,Uat=Jr.getterFor(Yo),os=Cy&&Cy.prototype,ti=Cy,Sd=os,Xz=lt.TypeError,B6=lt.document,O5=lt.process,Pc=A5.f,Wat=Pc,Gat=!!(B6&&B6.createEvent&&lt.dispatchEvent),Zz=Ee(lt.PromiseRejectionEvent),Jz=!1,Up=Sh(Yo,(function(){var t=fb(ti),e=t!==String(ti);if(!e&&Eh===66)return!0;if(Eh>=51&&/native code/.test(t))return!1;var r=new ti((function(o){o(1)})),n=function(o){o((function(){}),(function(){}))};return(r.constructor={})[$at]=n,!(Jz=r.then((function(){}))instanceof n)||!e&&Hat&&!Zz})),qat=Up||!f5((function(t){ti.all(t).catch((function(){}))})),Qz=function(t){var e;return!(!Pe(t)||!Ee(e=t.then))&&e},_5=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Kz((function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&Yat(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(Xz("Promise-chain cycle")):(u=Qz(a))?ue(u,a,f,d):f(a)):d(n)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Kat(t)}))}},tH=function(t,e,r){var n,o;Gat?((n=B6.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),lt.dispatchEvent(n)):n={promise:e,reason:r},!Zz&&(o=lt["on"+t])?o(n):t==="unhandledrejection"&&(function(i,a){var u=lt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},Kat=function(t){ue(Yz,lt,(function(){var e,r=t.facade,n=t.value;if(dT(t)&&(e=T6((function(){Ja?O5.emit("unhandledRejection",n,r):tH("unhandledrejection",r,n)})),t.rejection=Ja||dT(t)?2:1,e.error))throw e.value}))},dT=function(t){return t.rejection!==1&&!t.parent},Yat=function(t){ue(Yz,lt,(function(){var e=t.facade;Ja?O5.emit("rejectionHandled",e):tH("rejectionhandled",e,t.value)}))},vc=function(t,e,r){return function(n){t(e,n,r)}},jc=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,_5(t,!0))},F6=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Xz("Promise can't be resolved itself");var n=Qz(e);n?Kz((function(){var o={done:!1};try{ue(n,e,vc(F6,o,t),vc(jc,o,t))}catch(i){jc(o,i,t)}})):(t.value=e,t.state=1,_5(t,!1))}catch(o){jc({done:!1},o,t)}}};if(Up&&(Sd=(ti=function(t){wb(this,Sd),mu(t),ue(Xw,this);var e=fT(this);try{t(vc(F6,e),vc(jc,e))}catch(r){jc(e,r)}}).prototype,(Xw=function(t){Vat(this,{type:Yo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ff(Sd,{then:function(t,e){var r=Uat(this),n=r.reactions,o=Pc($z(this,ti));return o.ok=!Ee(t)||t,o.fail=Ee(e)&&e,o.domain=Ja?O5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&_5(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),lT=function(){var t=new Xw,e=fT(t);this.promise=t,this.resolve=vc(F6,e),this.reject=vc(jc,e)},A5.f=Pc=function(t){return t===ti||t===qz?new lT(t):Wat(t)},Ee(Cy)&&os!==Object.prototype)){cT=os.then,Jz||(En(os,"then",(function(t,e){var r=this;return new ti((function(n,o){ue(cT,r,n,o)})).then(t,e)}),{unsafe:!0}),En(os,"catch",Sd.catch,{unsafe:!0}));try{delete os.constructor}catch{}cf&&cf(os,Sd)}We({global:!0,wrap:!0,forced:Up},{Promise:ti}),vy(ti,Yo,!1),S5(Yo),qz=vl(Yo),We({target:Yo,stat:!0,forced:Up},{reject:function(t){var e=Pc(this);return ue(e.reject,void 0,t),e.promise}}),We({target:Yo,stat:!0,forced:Up},{resolve:function(t){return(function(e,r){if(ar(e),Pe(r)&&r.constructor===e)return r;var n=A5.f(e);return(0,n.resolve)(r),n.promise})(this,t)}}),We({target:Yo,stat:!0,forced:qat},{all:function(t){var e=this,r=Pc(e),n=r.resolve,o=r.reject,i=T6((function(){var a=mu(e.resolve),u=[],s=0,l=1;_h(t,(function(c){var f=s++,d=!1;l++,ue(a,e,c).then((function(p){d||(d=!0,u[f]=p,--l||n(u))}),o)})),--l||n(u)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Pc(e),n=r.reject,o=T6((function(){var i=mu(e.resolve);_h(t,(function(a){ue(i,e,a).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Nl=yb.UNSUPPORTED_Y,Xat=Math.min,eH=[].push,Zat=At(/./.exec),Il=At(eH),Dd=At("".slice);function No(t){Promise.resolve().then(t)}function rH(t,e){return Et.isElement(t)?(function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=C.isVoid(n,r),l="";s||(l=u.map((function(y){return rH(y,n)})).join(""));var c=(function(y){return Hz[y]||Bat})(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||_6.forEach((function(y){return d=y(r,d)})),typeof f=="string")return d;var p=f.prefix,m=p===void 0?"":p,v=f.suffix,g=v===void 0?"":v;return m&&(d=m+d),g&&(d+=g),d})(t,e):(function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=(function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")})(i);var a=k.getParentsNodes(n,r).some((function(s){return k.getNodeType(s)==="pre"}));if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=k.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return _6.forEach((function(s){return i=s(r,i)})),i})(t,e)}function nH(t){return"w-e-element-"+t}b5("split",(function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Se(so(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!u5(o))return ue(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,m=new RegExp(o.source,d+"g");(s=ue(Ah,m,a))&&!((l=m.lastIndex)>p&&(Il(f,Dd(a,p,s.index)),s.length>1&&s.index<a.length&&y5(eH,f,y6(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===a.length?!c&&Zat(m,"")||Il(f,""):Il(f,Dd(a,p)),f.length>u?y6(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:ue(e,this,o,i)}:e,[function(o,i){var a=so(this),u=o==null?void 0:Qs(o,t);return u?ue(u,o,a,i):ue(n,Se(a),o,i)},function(o,i){var a=ar(this),u=Se(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=$z(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Nl?"g":"y"),d=new l(Nl?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Oh(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=Nl?0:v;var y,h=Oh(d,Nl?Dd(u,v):u);if(h===null||(y=Xat(Tf(d.lastIndex+(Nl?v:0)),u.length))===m)v=w5(u,v,c);else{if(Il(g,Dd(u,m,v)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Il(g,h[b]),g.length===p)return g;v=m=y}}return Il(g,Dd(u,m)),g}]}),!!pe((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),Nl);var pT=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},hT=function(t,e,r){var n=k.toDOMRange(t,e).getBoundingClientRect(),o=k.toDOMRange(t,r).getBoundingClientRect();return pT(n,o)&&pT(o,n)},oH=["span","b","strong","i","em","s","strike","u","font","sub","sup"],iH=[],k5=[],Sy={},Jat=Ro.f,Qat=Ch.f,tut=Jr.enforce,eut=qe("match"),zi=lt.RegExp,lc=zi.prototype,rut=lt.SyntaxError,nut=At(a5),out=At(lc.exec),$v=At("".charAt),gT=At("".replace),vT=At("".indexOf),iut=At("".slice),aut=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ts=/a/g,Zw=/a/g,uut=new zi(Ts)!==Ts,aH=yb.MISSED_STICKY,sut=yb.UNSUPPORTED_Y,lut=kr&&(!uut||aH||g5||v5||pe((function(){return Zw[eut]=!1,zi(Ts)!=Ts||zi(Zw)==Zw||zi(Ts,"i")!="/a/i"})));if(Sh("RegExp",lut)){for(var wa=function(t,e){var r,n,o,i,a,u,s=Js(lc,this),l=u5(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===wa)return t;if((l||Js(lc,t))&&(t=t.source,c&&(e="flags"in d?d.flags:nut(d))),t=t===void 0?"":Se(t),e=e===void 0?"":Se(e),d=t,g5&&"dotAll"in Ts&&(n=!!e&&vT(e,"s")>-1)&&(e=gT(e,/s/g,"")),r=e,aH&&"sticky"in Ts&&(o=!!e&&vT(e,"y")>-1)&&sut&&(e=gT(e,/y/g,"")),v5&&(i=(function(p){for(var m,v=p.length,g=0,y="",h=[],b={},w=!1,E=!1,S=0,x="";g<=v;g++){if((m=$v(p,g))==="\\")m+=$v(p,++g);else if(m==="]")w=!1;else if(!w)switch(!0){case m==="[":w=!0;break;case m==="(":out(aut,iut(p,g+1))&&(g+=2,E=!0),y+=m,S++;continue;case(m===">"&&E):if(x===""||ir(b,x))throw new rut("Invalid capture group name");b[x]=!0,h[h.length]=[x,S],E=!1,x="";continue}E?x+=m:y+=m}return[y,h]})(t),t=i[0],f=i[1]),a=kz(zi(t,e),s?this:lc,wa),(n||o||f.length)&&(u=tut(a),n&&(u.dotAll=!0,u.raw=wa((function(p){for(var m,v=p.length,g=0,y="",h=!1;g<=v;g++)(m=$v(p,g))!=="\\"?h||m!=="."?(m==="["?h=!0:m==="]"&&(h=!1),y+=m):y+="[\\s\\S]":y+=m+$v(p,++g);return y})(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{_o(a,"source",d===""?"(?:)":d)}catch{}return a},cut=function(t){t in wa||Jat(wa,t,{configurable:!0,get:function(){return zi[t]},set:function(e){zi[t]=e}})},mT=Qat(zi),yT=0;mT.length>yT;)cut(mT[yT++]);lc.constructor=wa,wa.prototype=lc,En(lt,"RegExp",wa)}S5("RegExp");var fut=new RegExp(" ","g");function uH(t){return t.replace(fut," ")}function bT(t,e){var r=t.length;if(r){var n=t[r-1];if(yt.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+e,!0}}return!1}function dut(t,e,r){return{type:"paragraph",children:[{text:j(t).text().replace(/\s+/gm," ")}]}}function Jw(t,e){var r=(function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach((function(l){if(l.nodeType!==Jo.ELEMENT_NODE){if(l.nodeType===Jo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
`)>=0)return;c&&(c=uH(c),bT(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(bT(u,`
`)||u.push({text:`
`}));var f=T5(j(l),a);Array.isArray(f)?f.forEach((function(d){return u.push(d)})):u.push(f)}})),u)})(t,e),n=(function(i){for(var a in Sy)if(i[0].matches(a))return Sy[a];return dut})(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach((function(i){C.isVoid(e,i)||(r.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),k5.forEach((function(a){i=a(t[0],i,e)})))})),o}function Qw(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var r=t[0].textContent||"";r=(function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')})(r);var n={text:r=uH(r)};return k5.forEach((function(o){n=o(t[0],n,e)})),n}function T5(t,e){iH.forEach((function(n){var o=n.selector,i=n.preParseHtml;t[0].matches(o)&&(t=j(i(t[0])))}));var r=Xk(t);return r==="span"?t.attr("data-w-e-type")?Jw(t,e):Qw(t,e):r==="code"?Xk(t.parent())==="pre"?Jw(t,e):Qw(t,e):oH.includes(r)?Qw(t,e):Jw(t,e)}function put(t,e,r){var n=j(r);return!!n.attr(e)||(n.attr(e,"true"),t.on("destroyed",(function(){n.removeAttr(e)})),!1)}function wT(t,e){e===void 0&&(e="");var r=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map((function(o){return"<p>"+o+"</p>"})).join(""));var n=j("<div>"+e+"</div>");return Array.from(n.children()).forEach((function(o){var i=T5(j(o),t);Array.isArray(i)?i.forEach((function(a){return r.push(a)})):r.push(i)})),r}var hut=Ro.f,ET=bb.fastKey,xT=Jr.set,tE=Jr.getterFor,gut={getConstructor:function(t,e,r,n){var o=t((function(l,c){wb(l,i),xT(l,{type:e,index:vb(null),first:void 0,last:void 0,size:0}),kr||(l.size=0),c!=null&&_h(c,l[n],{that:l,AS_ENTRIES:r})})),i=o.prototype,a=tE(e),u=function(l,c,f){var d,p,m=a(l),v=s(l,c);return v?v.value=f:(m.last=v={index:p=ET(c,!0),key:c,value:f,previous:d=m.last,next:void 0,removed:!1},m.first||(m.first=v),d&&(d.next=v),kr?m.size++:l.size++,p!=="F"&&(m.index[p]=v)),l},s=function(l,c){var f,d=a(l),p=ET(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return ff(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,kr?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,m=d.previous;delete f.index[d.index],d.removed=!0,m&&(m.next=p),p&&(p.previous=m),f.first==d&&(f.first=p),f.last==d&&(f.last=m),kr?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=tl(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),ff(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),kr&&hut(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=tE(e),i=tE(n);p5(t,e,(function(a,u){xT(this,{type:n,target:a,state:o(a),kind:u,last:void 0})}),(function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),S5(e)}};Tz("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),gut);var CT=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function ST(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):$.insertNodes(t,e,{mode:"highest"})}var vut=function(t){var e=t,r=e.insertText;return e.insertFragment,e.setFragmentData=function(n){var o=e.selection;if(o){var i=re(q.edges(o),2),a=i[0],u=i[1],s=C.void(e,{at:a.path}),l=C.void(e,{at:u.path});if(!q.isCollapsed(o)||s){var c=k.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach((function(E){E.textContent&&E.textContent.trim()!==""&&(d=E)})),l){var p=re(l,1)[0],m=c.cloneRange(),v=k.toDOMNode(e,p);m.setEndAfter(v),f=m.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((function(E){var S=E.getAttribute("data-slate-zero-width")==="n";E.textContent=S?`
`:""})),Lz(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=e.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),n.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",bat(w)),f.ownerDocument.body.removeChild(w),n}}},e.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Qn(f),m=p.next();!m.done;m=p.next()){var v=m.value;d&&$.splitNodes(e,{always:!0}),r(v),d=!0}}catch(g){o={error:g}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},Cp=function(t){return t!=null},mut={object:!0,function:!0,undefined:!0},yut=/^\s*class[\s{/}]/,but=Function.prototype.toString,DT=function(t){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(r){if(!(function(n){return!!Cp(n)&&hasOwnProperty.call(mut,typeof n)})(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}})(e)})(t)&&!yut.test(but.call(t))},B5=function(t){return t!=null},wut=Object.keys,Eut=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(t){return wut(B5(t)?Object(t):t)},xut=function(t){if(!B5(t))throw new TypeError("Cannot use null or undefined");return t},Cut=Math.max,AT=(function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")})()?Object.assign:function(t,e){var r,n,o,i=Cut(arguments.length,2);for(t=Object(xut(t)),o=function(a){try{t[a]=e[a]}catch(u){r||(r=u)}},n=1;n<i;++n)Eut(e=arguments[n]).forEach(o);if(r!==void 0)throw r;return t},Sut=Array.prototype.forEach,Dut=Object.create,Aut=function(t,e){var r;for(r in t)e[r]=t[r]},OT=function(t){var e=Dut(null);return Sut.call(arguments,(function(r){B5(r)&&Aut(Object(r),e)})),e},eE="razdwatrzy",Out=String.prototype.indexOf,Ad=typeof eE.contains=="function"&&eE.contains("dwa")===!0&&eE.contains("foo")===!1?String.prototype.contains:function(t){return Out.call(this,t,arguments[1])>-1},Vv=Ag((function(t){var e=t.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Cp(r)?(o=Ad.call(r,"c"),i=Ad.call(r,"e"),a=Ad.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?AT(OT(u),s):s};e.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Cp(n)?DT(n)?Cp(o)?DT(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Cp(r)?(i=Ad.call(r,"c"),a=Ad.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?AT(OT(u),s):s}})),rE=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},_ut=Ag((function(t,e){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};r=function(g,y){var h;return rE(y),m.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),d(this,"__ee__",v),v.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},n=function(g,y){var h,b;return rE(y),b=this,r.call(this,g,h=function(){o.call(b,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(g,y){var h,b,w,E;if(rE(y),!m.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(E=0;w=b[E];++E)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[g]=b[E?0:1]:b.splice(E,1));else b!==y&&b.__eeOnceListener__!==y||delete h[g];return this},i=function(g){var y,h,b,w,E;if(m.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,E=new Array(h-1),y=1;y<h;++y)E[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)l.call(b,this,E)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,E=new Array(h-1),y=1;y<h;++y)E[y-1]=arguments[y];l.call(w,this,E)}},a={on:r,once:n,off:o,emit:i},u={on:Vv(r),once:Vv(n),off:Vv(o),emit:Vv(i)},s=p({},u),t.exports=e=function(g){return g==null?f(s):p(Object(g),u)},e.methods=a}));function Uv(t){var e=qk.get(t);return e==null&&(e=_ut(),qk.set(t,e)),e}var Dy=new WeakMap;function _T(t,e){var r=Dy.get(t);r==null&&(r=new Set,Dy.set(t,r)),r.add(e)}function kut(t){return Dy.get(t)||new Set}function Tut(t){Dy.set(t,new Set)}function F5(t){var e=k.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function P5(t){var e={top:"0",left:"0"},r=t.selection;if(r==null)return e;var n=F5(t);if(n==null)return e;var o=n.top,i=n.left,a=n.width,u=n.height,s=k.toDOMRange(t,r).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var m=u-f;c.bottom=m+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function j5(t,e,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(t.selection==null)return n;var o=Et.isElement(e)&&t.isVoid(e),i=Et.isElement(e)&&t.isInline(e),a=wy.get(e);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=(function(x){var D=[];D.push(x);for(var A=0;D.length>0;){var P=D.pop();if(P==null||++A>1e4)break;var M=P.nodeName;if(P.nodeType===1){var F=M.toLowerCase();if(mat.includes(F)||F==="iframe"||F==="video")return P;var V=P.children||[],U=V.length;if(U)for(var W=U-1;W>=0;W--)D.push(V[W])}}return null})(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var m=F5(t);if(m==null)return n;var v,g=m.top,y=m.left,h=m.width,b=m.height,w={},E=s-g,S=l-y;if(r==="bar")return w.left=S+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if(r==="modal")return o?i?S>(h-f)/2?w.right=h-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((v=E)<0&&(v=0),w.top=v+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((v=E+c)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+r+"' is invalid")}function P6(t,e){No((function(){var r=F5(t);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,m=c-i,v=e.attr("style");if(v.indexOf("top")>=0&&(n=p+d-u)>0){var g=e.css("top"),y=parseInt(g.toString())-n;y<0&&(y=0),e.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(n=m+f-a)>0){var w=e.css("left"),E=parseInt(w.toString())-n;E<0&&(E=0),e.css("left",E+"px")}if(v.indexOf("right")>=0&&c<0){var S=e.css("right"),x=parseInt(S.toString())-Math.abs(c);e.css("right",x+"px")}}}))}var But=mb("slice"),Fut=qe("species"),nE=lt.Array,Put=Math.max;We({target:"Array",proto:!0,forced:!But},{slice:function(t,e){var r,n,o,i=Tu(this),a=ml(i),u=sf(t,a),s=sf(e===void 0?a:e,a);if(py(i)&&(r=i.constructor,(gb(r)&&(r===nE||py(r.prototype))||Pe(r)&&(r=r[Fut])===null)&&(r=void 0),r===nE||r===void 0))return Vz(i,u,s);for(n=new(r===void 0?nE:r)(Put(s-u,0)),o=0;u<s;u++,o++)u in i&&Dh(n,o,i[u]);return n.length=o,n}});var jut=_g.f,kT=At("".startsWith),Nut=At("".slice),Iut=Math.min,sH=l5("startsWith"),Lut=!sH&&!!(function(){var t=jut(String.prototype,"startsWith");return t&&!t.writable})();We({target:"String",proto:!0,forced:!Lut&&!sH},{startsWith:function(t){var e=Se(so(this));s5(t);var r=Tf(Iut(arguments.length>1?arguments[1]:void 0,e.length)),n=Se(t);return kT?kT(e,n,r):Nut(e,r,r+n.length)===n}});var Ll=Object.assign,TT=Object.defineProperty,Rut=At([].concat),BT=!Ll||pe((function(){if(kr&&Ll({b:1},Ll(TT({},"a",{enumerable:!0,get:function(){TT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(o){e[o]=o})),Ll({},t)[r]!=7||Fc(Ll({},e)).join("")!=n}))?function(t,e){for(var r=ku(t),n=arguments.length,o=1,i=yz.f,a=gz.f;n>o;)for(var u,s=hb(arguments[o++]),l=i?Rut(Fc(s),i(s)):Fc(s),c=l.length,f=0;c>f;)u=l[f++],kr&&!ue(a,s,u)||(r[u]=s[u]);return r}:Ll;We({target:"Object",stat:!0,forced:Object.assign!==BT},{assign:BT});var Mut=["props","attrs","style","dataset","on","hook"];function lH(t){var e=t.data,r=e===void 0?{}:e,n=t.children,o=n===void 0?[]:n;Object.keys(r).forEach((function(i){var a,u,s=r[i];if(i!=="key"){if(!Mut.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=irt(l),(function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)})(t,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[i]=s,u)),delete r[i]}}else t.key=s})),o.length>0&&o.forEach((function(i){typeof i!="string"&&lH(i)}))}var j6=[],cH={};function zut(t,e,r){return jt(r.isInline(t)?"span":"div",null,e)}function FT(t,e){return e===void 0&&(e=!1),jt("span",{"data-slate-string":!0},e?t+`
`:t)}function oE(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),jt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?jt("br",null):null)}function N6(t,e,r,n){return kh.set(t,e),df.set(t,r),Et.isElement(t)?(function(o,i){var a,u=k.findKey(i,o),s=i.isInline(o),l=C.isVoid(i,o),c=nH(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,m=p===void 0?[]:p,v=(function(E){return cH[E]||zut})(d);a=l?null:m.map((function(E,S){return N6(E,S,o,i)}));var g=v(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=re(ft.texts(o),1),b=re(h[0],1)[0],w=jt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},N6(b,0,o,i));g=jt(y,{style:{position:"relative"}},g,w),kh.set(b,0),df.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=(function(E,S){var x=S;return j6.forEach((function(D){x=D(E,S)})),x})(o,g)),No((function(){var E=S6(c);E!=null&&(C6.set(u,E),wy.set(o,E),by.set(E,o))})),g})(t,n):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=k.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=k.findPath(a,o),c=s([o,l]),f=yt.decorations(o,c),d=f.map((function(v,g){var y=(function(h,b,w,E,S){b===void 0&&(b=!1);var x=h.text,D=k.findPath(S,w),A=R.parent(D);if(C.isEditor(E))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(E)?oE(ft.string(E).length):x!==""||E.children[E.children.length-1]!==w||S.isInline(E)||C.string(S,A)!==""?x===""?oE():b&&x.slice(-1)===`
`?FT(x,!0):FT(x):oE(0,!0)})(v,g===f.length-1,o,i,a);return y=(function(h,b){var w=b;return j6.forEach((function(E){w=E(h,w)})),w})(v,y),jt("span",{"data-slate-leaf":!0},y)})),p=(function(v){return"w-e-text-"+v})(u.id),m=jt("span",{"data-slate-node":"text",id:p,key:u.id},d);return No((function(){var v=S6(p);v!=null&&(C6.set(u,v),wy.set(o,v),by.set(v,o))})),m})(t,r,n)}function Hut(t,e){var r,n=t.$scroll,o=(function(v){return"w-e-textarea-"+v})(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=(function(v,g){return g===void 0&&(g=!1),uf("div#"+v,{props:{contentEditable:!g}})})(o,a),l=e.children||[];s.children=l.map((function(v,g){var y=N6(v,g,e,e);return lH(y),y}));var c=Uk.get(t);if(c==null&&(c=!0),c){var f=(function(v,g){return j(`<div
        id="`+v+`"
        data-slate-editor
        data-slate-node="value"
        suppressContentEditableWarning
        role="textarea"
        spellCheck="true"
        autoCorrect="true"
        autoCapitalize="true"
    ></div>`)})(o);n.append(f),t.$textArea=f,r=f[0],(p=Oet([ket,Pet,Net,Tet,Fet,_et]))(r,s),Uk.set(t,!1),Wk.set(t,p)}else{var d=Gk.get(t),p=Wk.get(t);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=S6(o))!=null){if((c?u:e.isFocused())&&r.focus({preventScroll:!0}),c){var m=C5(r);m&&Iz.set(e,m)}x5.set(e,r),wy.set(e,r),by.set(r,e),Gk.set(t,s)}}function PT(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function jT(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function iE(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return jT(r.overflowY,e)||jT(r.overflowX,e)||(function(n){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(t)}return!1}function Wv(t,e,r,n,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=r||a>=e&&u>=r?i-t-n:a>e&&u<r||i<t&&u>r?a-e+o:0}function NT(t,e){var r=window,n=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(kt){return kt!==a};if(!PT(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;PT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&iE(f)&&!iE(document.documentElement)||f!=null&&iE(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=t.getBoundingClientRect(),y=g.height,h=g.width,b=g.top,w=g.right,E=g.bottom,S=g.left,x=o==="start"||o==="nearest"?b:o==="end"?E:b+y/2,D=i==="center"?S+h/2:i==="end"?w:S,A=[],P=0;P<c.length;P++){var M=c[P],F=M.getBoundingClientRect(),V=F.height,U=F.width,W=F.top,z=F.right,tt=F.bottom,J=F.left;if(n==="if-needed"&&b>=0&&S>=0&&E<=p&&w<=d&&b>=W&&E<=tt&&S>=J&&w<=z)return A;var st=getComputedStyle(M),bt=parseInt(st.borderLeftWidth,10),B=parseInt(st.borderTopWidth,10),_=parseInt(st.borderRightWidth,10),I=parseInt(st.borderBottomWidth,10),X=0,it=0,Q="offsetWidth"in M?M.offsetWidth-M.clientWidth-bt-_:0,vt="offsetHeight"in M?M.offsetHeight-M.clientHeight-B-I:0;if(l===M)X=o==="start"?x:o==="end"?x-p:o==="nearest"?Wv(v,v+p,p,B,I,v+x,v+x+y,y):x-p/2,it=i==="start"?D:i==="center"?D-d/2:i==="end"?D-d:Wv(m,m+d,d,bt,_,m+D,m+D+h,h),X=Math.max(0,X+v),it=Math.max(0,it+m);else{X=o==="start"?x-W-B:o==="end"?x-tt+I+vt:o==="nearest"?Wv(W,tt,V,B,I+vt,x,x+y,y):x-(W+V/2)+vt/2,it=i==="start"?D-J-bt:i==="center"?D-(J+U/2)+Q/2:i==="end"?D-z+_+Q:Wv(J,z,U,bt,_+Q,D,D+h,h);var xt=M.scrollLeft,_t=M.scrollTop;x+=_t-(X=Math.max(0,Math.min(_t+X,M.scrollHeight-V+vt))),D+=xt-(it=Math.max(0,Math.min(xt+it,M.scrollWidth-U+Q)))}A.push({el:M,top:X,left:it})}return A}function IT(t){return t===Object(t)&&Object.keys(t).length!==0}function Xn(t,e){return el(e)&&k.hasDOMNode(t,e,{editable:!0})}function LT(t,e){if(t.getConfig().readOnly)return!1;var r=cc(t,e)&&k.toSlateNode(t,e);return C.isVoid(t,r)}function cc(t,e){return el(e)&&k.hasDOMNode(t,e)}function fH(t,e,r){r===void 0&&(r=!1);var n=e.selection,o=e.getConfig(),i=k.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||r)&&e.isFocused()){var a=i.type!=="None";if(n||a){var u=x5.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=k.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&q.equals(l,n)){var c=!0;if(q.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,m=void 0;(m=p[d])&&m.matches("table")&&(c=!1),(m=p[d-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!n||k.hasRange(e,n)){t.isUpdatingSelection=!0;var v=n&&k.toDOMRange(e,n);if(v){q.isBackward(n)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(IT(b)&&typeof b.behavior=="function")return b.behavior(w?[]:NT(h,b));if(!w){var E=(function(S){return S===!1?{block:"end",inline:"nearest"}:IT(S)?S:{block:"start",inline:"nearest"}})(b);(function(S,x){x===void 0&&(x="auto");var D="scrollBehavior"in document.body.style;S.forEach((function(A){var P=A.el,M=A.top,F=A.left;P.scroll&&D?P.scroll({top:M,left:F,behavior:x}):(P.scrollTop=M,P.scrollLeft=F)}))})(NT(h,E),E.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&Hp&&u.focus(),t.isUpdatingSelection=!1}))}else e.selection=k.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var aE=new WeakMap,RT=new WeakMap,$ut={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"},Vut={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"},Uut={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Re=function(t){var e=$ut[t],r=Vut[t],n=Uut[t],o=e&&iw(e),i=r&&iw(r),a=n&&iw(n);return function(u){return!(!o||!o(u))||!!(D6&&i&&i(u))||!(D6||!a||!a(u))}},Ve={isBold:Re("bold"),isCompose:Re("compose"),isMoveBackward:Re("moveBackward"),isMoveForward:Re("moveForward"),isDeleteBackward:Re("deleteBackward"),isDeleteForward:Re("deleteForward"),isDeleteLineBackward:Re("deleteLineBackward"),isDeleteLineForward:Re("deleteLineForward"),isDeleteWordBackward:Re("deleteWordBackward"),isDeleteWordForward:Re("deleteWordForward"),isExtendBackward:Re("extendBackward"),isExtendForward:Re("extendForward"),isExtendLineBackward:Re("extendLineBackward"),isExtendLineForward:Re("extendLineForward"),isItalic:Re("italic"),isMoveLineBackward:Re("moveLineBackward"),isMoveLineForward:Re("moveLineForward"),isMoveWordBackward:Re("moveWordBackward"),isMoveWordForward:Re("moveWordForward"),isRedo:Re("redo"),isSplitBlock:Re("splitBlock"),isTransposeCharacter:Re("transposeCharacter"),isUndo:Re("undo"),isTab:Re("tab"),isSelectAll:Re("selectAll")};function fr(t){t.preventDefault()}var Wut={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(xd&&!o&&Xn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=re(n.getTargetRanges(),1)[0];if(s){var l=k.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&q.equals(i,l)||$.select(r,l)}}if(i&&q.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";C.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":C.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":C.deleteForward(r);break;case"deleteContentBackward":C.deleteBackward(r);break;case"deleteEntireSoftLine":C.deleteBackward(r,{unit:"line"}),C.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":C.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":C.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":C.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":C.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":C.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":C.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":C.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Hw.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&C.insertText(r,u)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,i=e.latestElement;if(!r.getConfig().readOnly&&!o&&Xn(r,n.target)){var a=k.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===k.toDOMNode(r,r)||mo(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&el(u)&&k.hasDOMNode(r,u)){var s=k.toSlateNode(r,u);if(Et.isElement(s)&&!r.isVoid(s))return}if(Ed){var l=a.getSelection();l?.removeAllRanges()}ks.delete(r)}}}},focus:function(t,e,r){var n=k.toDOMNode(r,r),o=k.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,Hp&&t.target!==n?n.focus():ks.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&cc(r,t.target)&&el(t.target)){var n=k.toSlateNode(r,t.target),o=k.findPath(r,n);if(C.hasPath(r,o)&&ft.get(r,o)===n){var i=C.start(r,o),a=C.end(r,o),u=C.void(r,{at:i}),s=C.void(r,{at:a});if(u&&s&&R.equals(u[1],s[1])){var l=C.range(r,i);$.select(r,l)}}}},compositionstart:function(t,e,r){if(Xn(r,t.target)){var n=r.selection;if(n&&q.isExpanded(n)&&(C.deleteFragment(r),Promise.resolve().then((function(){fH(e,r,!0)}))),n&&q.isCollapsed(n)){var o=k.toDOMRange(r,n).startContainer,i=o.textContent||"";aE.set(r,i),RT.set(r,o)}e.isComposing=!0,(function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)})(e,r)}},compositionend:function(t,e,r){var n=t;if(Xn(r,n.target)){e.isComposing=!1;var o=r.selection;if(o!=null){(A6||Hp)&&k.cleanExposedTexNodeInSelectionBlock(r);for(var i=q.isBackward(o)?o.focus:o.anchor,a=re(C.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=re(C.node(r,i.path.slice(0,u+1)),1)[0];if(Et.isElement(s)&&((Ed||Hp)&&s.type==="link"||s.type==="code")){k.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=k.getLeftLengthOfMaxLength(r);c<l.length?(k.toDOMRange(r,o).startContainer.textContent=aE.get(r)||"",c>0&&C.insertText(r,l.slice(0,c)),e.changeViewState()):C.insertText(r,l)}else C.insertText(r,l);Ed||setTimeout((function(){var f=r.selection;if(f!=null){var d=RT.get(r);d!=null&&k.toDOMRange(r,f).startContainer!==d&&(d.textContent=aE.get(r)||"")}}))}}}},compositionupdate:function(t,e,r){Xn(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&Xn(r,n.target)){if((function(a,u){var s=E5.get(a),l=s&&s.getMenus(),c=yy.get(a),f=c&&c.getMenus(),d=Eo(Eo({},l),f);for(var p in d){var m=d[p],v=m.hotkey;if(v&&srt(v,u)&&!m.isDisabled(a)){var g=m.getValue(a);m.exec(a,g)}}})(r,n),Ve.isTab(n))return fr(n),void r.handleTab();if(Ve.isRedo(n))return fr(n),void(typeof r.redo=="function"&&r.redo());if(Ve.isUndo(n))return fr(n),void(typeof r.undo=="function"&&r.undo());if(Ve.isMoveLineBackward(n))return fr(n),void $.move(r,{unit:"line",reverse:!0});if(Ve.isMoveLineForward(n))return fr(n),void $.move(r,{unit:"line"});if(Ve.isExtendLineBackward(n))return fr(n),void $.move(r,{unit:"line",edge:"focus",reverse:!0});if(Ve.isExtendLineForward(n))return fr(n),void $.move(r,{unit:"line",edge:"focus"});if(Ve.isMoveBackward(n))return fr(n),void(o&&q.isCollapsed(o)?$.move(r,{reverse:!0}):$.collapse(r,{edge:"start"}));if(Ve.isMoveForward(n))return fr(n),void(o&&q.isCollapsed(o)?$.move(r):$.collapse(r,{edge:"end"}));if(Ve.isMoveWordBackward(n))return fr(n),o&&q.isExpanded(o)&&$.collapse(r,{edge:"focus"}),void $.move(r,{unit:"word",reverse:!0});if(Ve.isMoveWordForward(n))return fr(n),o&&q.isExpanded(o)&&$.collapse(r,{edge:"focus"}),void $.move(r,{unit:"word"});if(Ve.isSelectAll(n))return fr(n),void r.selectAll();if(xd){if((A6||Ed)&&o&&(Ve.isDeleteBackward(n)||Ve.isDeleteForward(n))&&q.isCollapsed(o)){var i=ft.parent(r,o.anchor.path);if(Et.isElement(i)&&C.isVoid(r,i)&&C.isInline(r,i))return n.preventDefault(),void $.delete(r,{unit:"block"})}}else{if(Ve.isBold(n)||Ve.isItalic(n)||Ve.isTransposeCharacter(n))return void fr(n);if(Ve.isSplitBlock(n))return fr(n),void C.insertBreak(r);if(Ve.isDeleteBackward(n))return fr(n),void(o&&q.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r));if(Ve.isDeleteForward(n))return fr(n),void(o&&q.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r));if(Ve.isDeleteLineBackward(n))return fr(n),void(o&&q.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r,{unit:"line"}));if(Ve.isDeleteLineForward(n))return fr(n),void(o&&q.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r,{unit:"line"}));if(Ve.isDeleteWordBackward(n))return fr(n),void(o&&q.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r,{unit:"word"}));if(Ve.isDeleteWordForward(n))return fr(n),void(o&&q.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!xd&&!r.getConfig().readOnly&&Xn(r,t.target)){t.preventDefault();var n=t.key;C.insertText(r,n)}},copy:function(t,e,r){var n=t;if(Xn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&Xn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(q.isExpanded(o))C.deleteFragment(r);else{var a=ft.parent(r,o.anchor.path);C.isVoid(r,a)&&$.delete(r)}}},paste:function(t,e,r){Hw.set(r,!0);var n=t;if(!r.getConfig().readOnly&&Xn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void Hw.set(r,!1);if(!xd||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(t,e,r){if(cc(r,t.target)){var n=k.toSlateNode(r,t.target);C.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(cc(r,n.target)&&!r.getConfig().readOnly){var o=k.toSlateNode(r,n.target),i=k.findPath(r,o);if(C.isVoid(r,o)||C.void(r,{at:i,voids:!0})){var a=C.range(r,i);$.select(r,a)}var u=n.dataTransfer;u!=null&&(e.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&cc(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&cc(r,n.target)&&o!=null&&!(xd&&Ed&&o.files.length>0)){n.preventDefault();var i=r.selection,a=k.findEventRange(r,n);$.select(r,a),e.isDraggingInternally&&(i&&$.delete(r,{at:i}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},Gut=1,qut=(function(){function t(e){var r=this;this.id=Gut++,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=Zs((function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=k.findDocumentOrShadowRoot(s),p=d.activeElement,m=k.toDOMNode(s,s),v=d.getSelection();if(p===m?(u.latestElement=p,ks.set(s,!0)):ks.delete(s),!v)return $.deselect(s);var g=v.anchorNode,y=v.focusNode,h=Xn(s,g)||LT(s,g),b=Xn(s,y)||LT(s,y);if(h&&b){var w=k.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});$.select(s,w)}else $.deselect(s)}})(r,a)}),100);var n=j(e);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var o=j('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=j('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,No((function(){var a=r.editorInstance,u=k.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",(function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)})),o.on("click",(function(){return a.hidePanelOrModal()})),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",(function(){return s(a)})),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()}))}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=w6.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(WD(Wut,(function(i,a){r.on(a,(function(u){i(u,e,o)}))})),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Zs((function(){o.emit("scroll")}),100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",(function(){e.latestEditorSelection==null&&r.selection!=null?setTimeout((function(){return i&&i(r)})):e.latestEditorSelection!=null&&r.selection==null&&setTimeout((function(){return o&&o(r)})),e.latestEditorSelection=r.selection}))},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,r=e.getConfig().maxLength;if(r){var n=r-k.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},t.prototype.changeProgress=function(e){var r=this.$progressBar;r.css("width",e+"%"),e>=100&&setTimeout((function(){r.hide(),r.css("width","0"),r.show()}),1e3)},t.prototype.changeViewState=function(){var e=this,r=this.editorInstance;Hut(this,r),(function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=j('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}})(this,r),No((function(){fH(e,r)}))},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t})();function dH(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&dH(e)}function pH(){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 Kut(){return j('<div class="w-e-bar-divider"></div>')}function hH(t,e,r,n,o){if(o===void 0&&(o=!1),e){if(n){var i=D6?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=n?r+`
`+n:r;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}b5("match",(function(t,e,r){return[function(n){var o=so(this),i=n==null?void 0:Qs(n,t);return i?ue(i,n,o):new RegExp(n)[t](Se(o))},function(n){var o=ar(this),i=Se(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Oh(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Oh(o,i))!==null;){var f=Se(s[0]);l[c]=f,f===""&&(o.lastIndex=w5(i,Tf(o.lastIndex),u)),c++}return c===0?null:l}]}));var N5=(function(){function t(e,r,n){var o=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=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=j(f);dH(p),d.append(p)}else d.text(u);hH(d,f,u,l,n),n&&f&&d.append(j('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),No((function(){return o.init()}))}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(r){r.preventDefault(),Fn(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},t.prototype.exec=function(){var e=Fn(this),r=this.menu,n=r.getValue(e);r.exec(e,n)},t.prototype.setActive=function(){var e=Fn(this),r=this.$button,n="active";this.menu.isActive(e)?r.addClass(n):r.removeClass(n)},t.prototype.setDisabled=function(){var e=Fn(this),r=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t})(),Yut=(function(t){function e(r,n,o){return o===void 0&&(o=!1),t.call(this,r,n,o)||this}return Ff(e,t),e.prototype.onButtonClick=function(){},e})(N5),I5=(function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var r=x6.get(e);r==null&&(r=new Set,x6.set(e,r)),r.add(this),q0.set(this,e)},t.prototype.renderContent=function(e){var r=this.$elem;r.empty(),r.append(e);var n=this.genSelfElem();n&&r.append(n)},t.prototype.appendTo=function(e){var r=this.$elem;e.append(r)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=q0.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=q0.get(this);e&&e.emit("modalOrPanelHide")}},t})(),Xut=(function(t){function e(r){var n=t.call(this,r)||this;return n.type="dropPanel",n.$elem=j('<div class="w-e-drop-panel"></div>'),n}return Ff(e,t),e.prototype.genSelfElem=function(){return null},e})(I5),Zut=(function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=pH();i.$button.append(a)}return i}return Ff(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=Fn(this);if(this.dropPanel==null){var o=new Xut(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e})(N5),Jut=(function(t){function e(r,n){n===void 0&&(n=0);var o=t.call(this,r)||this;o.type="modal",o.$elem=j('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",(function(a){return a.stopPropagation()})),i.on("keyup",(function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())})),o}return Ff(e,t),e.prototype.genSelfElem=function(){var r=this,n=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>'),o=q0.get(this);return n.on("click",(function(){r.hide(),o?.restoreSelection()})),n},e.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},e})(I5);function Nn(t,e,r){var n=j('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=j('<input type="text" id="'+e+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function Pf(t,e){var r=j('<div class="button-container"></div>'),n=j('<button type="button" id="'+t+'">'+e+"</button>");return r.append(n),[r[0],n[0]]}var Qut=(function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;return i.$body=j("body"),i.modal=null,i.menu=n,i}return Ff(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var r=Fn(this),n=this.menu.getModalPositionNode(r);return Et.isElement(n)?j5(r,n,"modal"):P5(r)},e.prototype.handleModal=function(){var r=Fn(this),n=this.menu;if(this.modal==null){var o=new Jut(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=Fn(this),i=this.menu;if(i.getModalContentElem!=null){var a=k.getTextarea(o),u=k.getToolbar(o),s=(u?.getConfig()||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||P6(o,r.$elem),setTimeout((function(){o.blur()}))}},e})(N5),tst=(function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="selectList",o.$elem=j('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",(function(i){i.stopPropagation()})),o}return Ff(e,t),e.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=j("<ul></ul>");r.forEach((function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=j('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=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>');c.append(f),c.addClass("selected")}c.append(j('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)})),n.append(o)},e.prototype.genSelfElem=function(){return null},e})(I5),est=(function(){function t(e,r,n){var o=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=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),hH(d,l,a,f,n),this.$elem.append(d),this.menu=r,No((function(){return o.init()}))}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(r){r.preventDefault(),Fn(e).hidePanelOrModal(),e.trigger()}))},t.prototype.trigger=function(){var e=this,r=Fn(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new tst(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",(function(a){var u=a.target;if(u!=null){a.preventDefault();var s=j(u).attr("data-value");e.onChange(s)}}))}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var r=Fn(this),n=this.menu;n.exec&&n.exec(r,e)},t.prototype.setSelectedValue=function(){var e=Fn(this),r=this.menu,n=r.getValue(e),o=(function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c})(r.getOptions(e),n.toString()),i=this.$button,a=pH();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=Fn(this),r=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t})(),MT=new WeakMap;function Fn(t){var e=Nz.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function rst(t,e,r){r===void 0&&(r=!1);var n=MT.get(e);if(n)return n;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;n=i?new Zut(t,e,r):a?new Qut(t,e,r):new Yut(t,e,r)}if(o==="select"&&(n=new est(t,e,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return MT.set(e,n),n}function nst(t,e){var r=t.selection;return r!=null&&!q.isCollapsed(r)&&!k.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0}))&&!!yt.isText(e)}var ost=(function(){function t(){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=wrt((function(){var r=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&Et.isElement(i)&&r&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),No((function(){var r=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(i){return i.preventDefault()}),{passive:!1}),k.getTextarea(r).$textAreaContainer.append(n),r.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)}))}return t.prototype.getMenus=function(){return this.menus},t.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},t.prototype.checkPositionBottom=function(){var e=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(r=!0),r?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;No((function(){e.hoverbarItems.forEach((function(r){r.changeMenuState()}))}))},t.prototype.registerItems=function(e){var r=this,n=this.$elem;e.forEach((function(o){if(o!=="|")r.registerSingleItem(o);else{var i=Kut();n.append(i)}}))},t.prototype.registerSingleItem=function(e){var r=this.getEditorInstance(),n=this.menus,o=n[e];if(o==null){var i=Ey[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),n[e]=o}var a=rst(e,o);this.hoverbarItems.push(a),Nz.set(a,r),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Et.isElement(e)){var o=j5(r,e,"bar");return n.css(o),void P6(r,n)}if(yt.isText(e))return o=P5(r),n.css(o),void P6(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(v,g){return k.checkNodeType(g,u)},p=re(C.nodes(e,{match:function(v){return d(e,v)},universal:!0}),1),m=p[0];if(m!=null)return n=m[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=E6.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,r=e===void 0?{}:e,n=r.text;return n&&n.match==null&&(n.match=nst),r},t.prototype.isSamePath=function(e,r){if(e==null||r==null)return!1;var n=k.findPath(null,e),o=k.findPath(null,r);return R.equals(n,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t})();function gH(t,e,r,n){if(kh.set(t,e),df.set(t,r),Et.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach((function(u,s){return gH(u,s,t,n)})),C.isVoid(n,t)){var i=re(ft.texts(t),1),a=re(i[0],1)[0];kh.set(a,0),df.set(a,t)}}}function ist(t){var e=t.selector,r=e===void 0?"":e,n=t.config,o=n===void 0?{}:n,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:E}=w;if(E.length>0){var S=E[E.length-1];gc.withoutSaving(h,(()=>{C.withoutNormalizing(h,(()=>{for(var x of S)h.apply(x)}))})),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:E}=w;if(E.length>0){var S=E[E.length-1];gc.withoutSaving(h,(()=>{C.withoutNormalizing(h,(()=>{var x=S.map(Ha.inverse).reverse();for(var D of x)h.apply(D)}))})),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:E,history:S}=h,{undos:x}=S,D=x[x.length-1],A=D&&D[D.length-1],P=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,A),M=gc.isSaving(h),F=gc.isMerging(h);if(M==null&&(M=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),M){if(F==null&&(F=D!=null&&(E.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!R.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!R.equals(U.path,W.path)))(w,A)||P)),D&&F)P&&D.pop(),D.push(w);else{var V=[w];x.push(V)}for(;x.length>100;)x.shift();(U=>U.type!=="set_selection")(w)&&(S.redos=[])}b(w)},h})((function(y){var h=y,b=h.insertText,w=h.insertNode,E=h.insertFragment,S=h.dangerouslyInsertHtml;return h.insertText=function(x){if(h.getConfig().maxLength){var D=k.getLeftLengthOfMaxLength(h);D<=0||(D<x.length?b(x.slice(0,D)):b(x))}else b(x)},h.insertNode=function(x){if(h.getConfig().maxLength){var D=k.getLeftLengthOfMaxLength(h);D<=0||D<ft.string(x).length||w(x)}else w(x)},h.insertFragment=function(x){if(h.getConfig().maxLength)if(x.length!==1)x.forEach((function(A){h.insertNode(A)}));else{var D=x[0];if(k.getLeftLengthOfMaxLength(h)<ft.string(D).length)return;E(x)}else E(x)},h.dangerouslyInsertHtml=function(x,D){if(x===void 0&&(x=""),D===void 0&&(D=!1),x)if(h.getConfig().maxLength){var A=k.getLeftLengthOfMaxLength(h);if(!(A<=0)){var P=document.createElement("div");P.innerHTML=x;var M=Array.from(P.childNodes).reduce((function(F,V){var U=V.nodeType,W=V.nodeName;return V?U===Jo.TEXT_NODE?F+(V.textContent||""):U===Jo.ELEMENT_NODE?CT.has(W.toLowerCase())?F:F+(V.textContent||""):F:F}),"");A<M.length||S(x,D)}}else S(x,D)},h})((function(y){var h=y;return h.on=function(b,w){var E=Uv(h);if(E.on(b,w),b==="destroyed"&&_T(h,w),b!=="destroyed"){var S=function(){return E.off(b,w)};E.on("destroyed",S),_T(h,S)}},h.once=function(b,w){Uv(h).once(b,w)},h.off=function(b,w){Uv(h).off(b,w)},h.emit=function(b){for(var w=[],E=1;E<arguments.length;E++)w[E-1]=arguments[E];var S=Uv(h);S.emit.apply(S,m6([b],re(w))),b==="destroyed"&&(kut(h).forEach((function(x){return S.off("destroyed",x)})),Tut(h))},h})((function(y){var h=y;return h.select=function(b){$.select(h,b)},h.deselect=function(){var b=h.selection,w=k.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&$.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||$.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=zw.get(h);b!=null&&(h.focus(),$.select(h,b))},h.getSelectionPosition=function(){return P5(h)},h.getNodePosition=function(b){return j5(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=re(q.edges(b),2),E=w[0],S=w[1],x=re(C.edges(h,[]),2),D=x[0],A=x[1];return!(!Ut.equals(E,D)||!Ut.equals(S,A))},h.selectAll=function(){var b=C.start(h,[]),w=C.end(h,[]);$.select(h,{anchor:b,focus:w})},h})((function(y){var h=y,b=h.onChange,w=h.insertText,E=h.apply,S=h.deleteBackward;return h.insertText=function(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var D,A,P,M,F,V,U,W,z=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var tt=Qn(C.levels(h,{at:x.path})),J=tt.next();!J.done;J=tt.next()){var st=re(J.value,2),bt=st[0],B=st[1],_=k.findKey(h,bt);z.push([B,_])}}catch(Vt){D={error:Vt}}finally{try{J&&!J.done&&(A=tt.return)&&A.call(tt)}finally{if(D)throw D.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var I=Qn(C.levels(h,{at:R.parent(x.path)})),X=I.next();!X.done;X=I.next()){var it=re(X.value,2);bt=it[0],B=it[1],_=k.findKey(h,bt),z.push([B,_])}}catch(Vt){P={error:Vt}}finally{try{X&&!X.done&&(M=I.return)&&M.call(I)}finally{if(P)throw P.error}}break;case"move_node":try{for(var Q=Qn(C.levels(h,{at:R.common(R.parent(x.path),R.parent(x.newPath))})),vt=Q.next();!vt.done;vt=Q.next()){var xt=re(vt.value,2);bt=xt[0],B=xt[1],_=k.findKey(h,bt),z.push([B,_])}}catch(Vt){F={error:Vt}}finally{try{vt&&!vt.done&&(V=Q.return)&&V.call(Q)}finally{if(F)throw F.error}}}E(x);try{for(var _t=Qn(z),kt=_t.next();!kt.done;kt=_t.next()){var rt=re(kt.value,2);B=rt[0],_=rt[1],bt=re(C.node(h,B),1)[0],K0.set(bt,_)}}catch(Vt){U={error:Vt}}finally{try{kt&&!kt.done&&(W=_t.return)&&W.call(_t)}finally{if(U)throw U.error}}},h.deleteBackward=function(x){if(x!=="line")return S(x);if(y.selection&&q.isCollapsed(y.selection)){var D=C.above(y,{match:function(F){return C.isBlock(y,F)},at:y.selection});if(D){var A=re(D,2)[1],P=C.range(y,A,y.selection.anchor),M=(function(F,V){var U=C.range(F,q.end(V)),W=Array.from(C.positions(F,{at:V})),z=0,tt=W.length,J=Math.floor(tt/2);if(hT(F,C.range(F,W[z]),U))return C.range(F,W[z],U);if(W.length<2)return C.range(F,W[W.length-1],U);for(;J!==W.length&&J!==z;)hT(F,C.range(F,W[J]),U)?tt=J:z=J,J=Math.floor((z+tt)/2);return C.range(F,W[tt],U)})(h,P);q.isCollapsed(M)||$.delete(y,{at:M})}}},h.onChange=function(){var x=h.selection;x!=null&&zw.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText("    ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map((function(D){return rH(D,h)})).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map((function(D){return ft.string(D)})).join(`
`)},h.getSelectionText=function(){var x=h.selection;return x==null?"":C.string(y,x)},h.getElemsByType=function(x,D){var A,P;D===void 0&&(D=!1);var M=[],F=C.nodes(h,{at:[],universal:!0});try{for(var V=Qn(F),U=V.next();!U.done;U=V.next()){var W=re(U.value,1)[0];if(Et.isElement(W)&&(D?W.type.indexOf(x)>=0:W.type===x)){var z=nH(k.findKey(h,W).id);M.push(Eo(Eo({},W),{id:z}))}}}catch(tt){A={error:tt}}finally{try{U&&!U.done&&(P=V.return)&&P.call(V)}finally{if(A)throw A.error}}return M},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,D=x===void 0?[]:x;if(D.length>1)return!1;var A=D[0];if(A==null)return!0;if(Et.isElement(A)&&A.type==="paragraph"){var P=A.children,M=P===void 0?[]:P;if(M.length>1)return!1;var F=M[0];if(F==null||yt.isText(F)&&F.text==="")return!0}return!1},h.clear=function(){$.delete(h,{at:{anchor:C.start(h,[]),focus:C.end(h,[])}}),h.children.length===0&&$.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return k.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,D){if(x===void 0&&(x=""),D===void 0&&(D=!1),x){var A=document.createElement("div");A.innerHTML=x;var P=Array.from(A.childNodes);if(P=P.filter((function(U){var W=U.nodeType,z=U.nodeName;return W===Jo.TEXT_NODE||W===Jo.ELEMENT_NODE&&!CT.has(z.toLowerCase())})),P.length!==0){var M=h.selection;if(M!=null){var F=null;k.isSelectedEmptyParagraph(h)&&!D&&(F=[M.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var V=0;P.forEach((function(U){var W=U.nodeType,z=U.nodeName,tt=U.textContent,J=tt===void 0?"":tt;if(W!==Jo.TEXT_NODE)if(z!=="BR"){var st=U,bt=!1;if(oH.includes(z.toLowerCase()))bt=!0;else for(var B in Sy)if(st.matches(B)){bt=!0;break}if(bt){var _=T5(j(st),h);return Array.isArray(_)?(_.forEach((function(X){return ST(h,X)})),V++):(ST(h,_),V++),void(k.isSelectedVoidNode(h)&&h.move(1))}var I=window.getComputedStyle(st).display;k.isSelectedEmptyParagraph(h)||I.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
`);else{if(!J||!J.trim())return;h.insertNode({text:J})}})),V&&F&&k.isEmptyPath(h,F)&&$.removeNodes(h,{at:F}),A.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var D=h.isDisabled(),A=h.isFocused(),P=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var M=wT(h,x);if($.insertFragment(h,M),A||(h.deselect(),h.blur()),D&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(P))}catch{h.select(C.start(h,[]))}},h})((function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Ey)b.push(w);return b},h.getConfig=function(){var b=Vk.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var E=h.getConfig().customAlert;E&&E(b,w)},h})((function(y){var h=vut(PQ());return h.id="wangEditor-"+xat++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(k.toDOMNode(h,h).focus({preventScroll:!0}),ks.set(h,!0),b){var w=C.end(h,[]);$.select(h,w)}else{var E=zw.get(h);E?$.select(h,E):$.select(h,C.start(h,[]))}},h.isFocused=function(){return!!ks.get(h)},h.blur=function(){k.toDOMNode(h,h).blur(),$.deselect(h),ks.set(h,!1)},h.updateView=function(){k.getTextarea(h).changeViewState();var b=k.getToolbar(h);b&&b.changeToolbarState();var w=k.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=k.getTextarea(h);b.destroy(),b6.delete(h),w6.delete(b);var w=k.getToolbar(h);w&&(w.destroy(),E5.delete(h),gat.delete(w));var E=k.getHoverbar(h);E&&(E.destroy(),yy.delete(h),E6.delete(E)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ，编辑器内容无法滚动，请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var E=j("#"+b);if(E.length!==0){var S=E[0];if(!k.hasDOMNode(h,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var x=k.getTextarea(h),D=x.$textAreaContainer,A=x.$scroll,P=E.offset().top,M=D.offset().top;A[0].scrollBy({top:P-M,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||k.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=x6.get(h);b?.forEach((function(w){return w.hide()}))},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return k.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=k.getToolbar(h);w&&(b=w.$box);var E=k.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==E[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏，因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);E.addClass("w-e-full-screen-container");var S=E.css("z-index");E.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=k.getTextarea(h).$box.parent();setTimeout((function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")}),200)}},h.getEditableContainer=function(){return k.getTextarea(h).$textAreaContainer[0]},h})()))))));if(r&&(function(y,h){return put(y,"data-w-e-textarea",h)})(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=(function(y){y===void 0&&(y={});var h=Ert(zz),b={},w=y.MENU_CONF,E=w===void 0?{}:w;return WD(h,(function(S,x){b[x]=Eo(Eo({},S),E[x]||{})})),delete y.MENU_CONF,Eo({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,x){window.alert(x+`:
`+S)}},y)})(o);Vk.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach((function(y){l=y(l)})),a!=null&&(l.children=wT(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),k.normalizeContent(l),r){var p=new qut(r);b6.set(l,p),w6.set(p,l),p.changeViewState(),No((function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,y)}));var m=void 0;Object.keys(d).length>0&&(m=new ost,E6.set(m,l),yy.set(l,m)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(y,h){return gH(y,h,l,l)}));var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),g&&l.on("destroyed",(function(){return g(l)})),No((function(){return l.emit("created")})),l}var ast=mb("splice"),ust=lt.TypeError,sst=Math.max,lst=Math.min;We({target:"Array",proto:!0,forced:!ast},{splice:function(t,e){var r,n,o,i,a,u,s=ku(this),l=ml(s),c=sf(t,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=lst(sst(Og(e),0),l-c)),l+r-n>9007199254740991)throw ust("Maximum allowed length exceeded");for(o=dz(s,n),i=0;i<n;i++)(a=c+i)in s&&Dh(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var cst=kf.EXISTS,fst=Ro.f,vH=Function.prototype,dst=At(vH.toString),mH=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,pst=At(mH.exec);function yH(t){var e=t.server,r=e===void 0?"":e,n=t.fieldName,o=n===void 0?"":n,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,m=p===void 0?{}:p,v=t.withCredentials,g=v!==void 0&&v,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,w=b===void 0?function(V){return V}:b,E=t.onSuccess,S=E===void 0?function(V,U){}:E,x=t.onError,D=x===void 0?function(V,U,W){console.error(V.name+" upload error",U,W)}:x,A=t.onProgress,P=A===void 0?function(V){}:A;if(!r)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var M=r;d&&(M=(function(V,U){var W=re(V.split("#"),2),z=W[0],tt=W[1],J=[];WD(U,(function(bt,B){J.push(B+"="+bt)}));var st=J.join("&");return z=z.indexOf("?")>0?z+"&"+st:z+"?"+st,tt?z+"#"+tt:z})(M,c));var F=new wp({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Nnt,{endpoint:M,headers:m,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return F.on("upload-success",(function(V,U){var W=U.body,z=W===void 0?{}:W;try{S(V,z)}catch(tt){console.error("wangEditor upload file - onSuccess error",tt)}F.removeFile(V.id)})),F.on("progress",(function(V){V<1||P(V)})),F.on("upload-error",(function(V,U,W){try{D(V,U,W)}catch(z){console.error("wangEditor upload file - onError error",z)}F.removeFile(V.id)})),F.on("restriction-failed",(function(V,U){try{D(V,U)}catch(W){console.error("wangEditor upload file - onError error",W)}F.removeFile(V.id)})),F}function Qa(t){return Qa=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},Qa(t)}function hst(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach((function(o){hst(t,o,r[o])}))}return t}function oa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ia(t,e,r){return e&&zT(t.prototype,e),r&&zT(t,r),t}function rl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bh(t,e){if(e&&(Qa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rl(t)}function pf(t){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pf(t)}function I6(t,e){return I6=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},I6(t,e)}function Eb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&I6(t,e)}kr&&!cst&&fst(vH,"name",{configurable:!0,get:function(){try{return pst(mH,dst(this))[1]}catch{return""}}});var gst={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Hi=new((function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};oa(this,t),this.init(e,r)}return ia(t,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||gst,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new t(this.logger,pr({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t})()),yu=(function(){function t(){oa(this,t),this.observers={}}return ia(t,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach((function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)})),this}},{key:"off",value:function(e,r){this.observers[e]&&(r?this.observers[e]=this.observers[e].filter((function(n){return n!==r})):delete this.observers[e])}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(u){u.apply(void 0,n)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(u){u.apply(u,[e].concat(n))}))}}}]),t})();function Od(){var t,e,r=new Promise((function(n,o){t=n,e=o}));return r.resolve=t,r.reject=e,r}function HT(t){return t==null?"":""+t}function vst(t,e,r){t.forEach((function(n){e[n]&&(r[n]=e[n])}))}function L5(t,e,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:n(i.shift())}}function $T(t,e,r){var n=L5(t,e,Object);n.obj[n.k]=r}function Ay(t,e){var r=L5(t,e),n=r.obj,o=r.k;if(n)return n[o]}function VT(t,e,r){var n=Ay(t,r);return n!==void 0?n:Ay(e,r)}function bH(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):bH(t[n],e[n],r):t[n]=e[n]);return t}function Rl(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var mst={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function yst(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,(function(e){return mst[e]})):t}var xb=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function wH(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),o=t,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?wH(s,l,r):void 0}o=o[n[i]]}return o}}var bst=(function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oa(this,e),n=Bh(this,pf(e).call(this)),xb&&yu.call(rl(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Eb(e,yu),ia(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=Ay(this.data,s);return l||!u||typeof o!="string"?l:wH(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),$T(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=Ay(this.data,s)||{};i?bH(l,o,a):l=pr({},l,o),$T(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?pr({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),e})(),EH={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,o){var i=this;return t.forEach((function(a){i.processors[a]&&(e=i.processors[a].process(e,r,n,o))})),e}},UT={},WT=(function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oa(this,e),n=Bh(this,pf(e).call(this)),xb&&yu.call(rl(n)),vst(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,rl(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Hi.create("translator"),n}return Eb(e,yu),ia(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Qa(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(r,n),v=m&&m.res,g=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,h=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(E&&v&&S&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[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(g,v,pr({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=h==="[object Array]",D=x?[]:{},A=x?y:g;for(var P in v)if(Object.prototype.hasOwnProperty.call(v,P)){var M="".concat(A).concat(a).concat(P);D[P]=this.translate(M,pr({},n,{joinArrays:!1,ns:l})),D[P]===M&&(D[P]=v[P])}v=D}}else if(E&&typeof w=="string"&&h==="[object Array]")(v=v.join(w))&&(v=this.extendTranslation(v,r,n,o));else{var F=!1,V=!1,U=n.count!==void 0&&typeof n.count!="string",W=e.hasDefaultValue(n),z=U?this.pluralResolver.getSuffix(f,n.count):"",tt=n["defaultValue".concat(z)]||n.defaultValue;!this.isValidLookup(v)&&W&&(F=!0,v=tt),this.isValidLookup(v)||(V=!0,v=s);var J=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=J&&V?void 0:v,bt=W&&tt!==v&&this.options.updateMissing;if(V||F||bt){if(this.logger.log(bt?"updateKey":"missingKey",f,c,s,bt?tt:v),a){var B=this.resolve(s,pr({},n,{keySeparator:!1}));B&&B.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 _=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(var X=0;X<I.length;X++)_.push(I[X]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(n.lng||this.language):_.push(n.lng||this.language);var it=function(Q,vt,xt){i.options.missingKeyHandler?i.options.missingKeyHandler(Q,c,vt,bt?xt:st,bt,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(Q,c,vt,bt?xt:st,bt,n),i.emit("missingKey",Q,c,vt,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?_.forEach((function(Q){i.pluralResolver.getSuffixes(Q).forEach((function(vt){it([Q],s+vt,n["defaultValue".concat(vt)]||tt)}))})):it(_,s,tt))}v=this.extendTranslation(v,r,n,m,o),V&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(V||F)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(pr({},o,{interpolation:pr({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=pr({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,(function(){for(var v=arguments.length,g=new Array(v),y=0;y<v;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(n[0])),null):u.translate.apply(u,g.concat([n]))}),o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,m=typeof p=="string"?[p]:p;return r!=null&&m&&m.length&&o.applyPostProcessor!==!1&&(r=EH.handle(m,r,n,this.options&&this.options.postProcessPassResolved?pr({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach((function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var m=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach((function(y){s.isValidLookup(n)||(u=y,!UT["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(UT["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" 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!!!")),g.forEach((function(h){if(!s.isValidLookup(n)){a=h;var b,w,E=d,S=[E];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,h,y,l):(m&&(b=s.pluralResolver.getSuffix(h,l.count)),m&&v&&S.push(E+b),v&&S.push(E+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(E+=b));w=S.pop();)s.isValidLookup(n)||(i=w,n=s.getResource(h,y,w,l))}})))}))}})),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),e})();function uE(t){return t.charAt(0).toUpperCase()+t.slice(1)}var wst=(function(){function t(e){oa(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hi.create("languageUtils")}return ia(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(o){return o.toLowerCase()})):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=uE(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()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=uE(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=uE(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 r,n=this;return e?(e.forEach((function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}})),!r&&this.options.supportedLngs&&e.forEach((function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find((function(a){if(a.indexOf(i)===0)return a}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};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)),o.forEach((function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))})),i}}]),t})(),Est=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xst={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Cst(){var t={};return Est.forEach((function(e){e.lngs.forEach((function(r){t[r]={numbers:e.nr,plurals:xst[e.fc]}}))})),t}var Sst=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};oa(this,t),this.languageUtils=e,this.options=r,this.logger=Hi.create("pluralResolver"),this.rules=Cst()}return ia(t,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=this.getRule(e);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){return this.getSuffixes(e).map((function(n){return r+n}))}},{key:"getSuffixes",value:function(e){var r=this,n=this.getRule(e);return n?n.numbers.map((function(o){return r.getSuffix(e,o)})):[]}},{key:"getSuffix",value:function(e,r){var n=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=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_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t})(),Dst=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oa(this,t),this.logger=Hi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},this.init(e)}return ia(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var r=e.interpolation;this.escape=r.escape!==void 0?r.escape:yst,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?Rl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Rl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Rl(r.nestingPrefix):r.nestingPrefixEscaped||Rl("$t("),this.nestingSuffix=r.nestingSuffix?Rl(r.nestingSuffix):r.nestingSuffixEscaped||Rl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var g=VT(r,l,v);return s.alwaysFormat?s.format(g,void 0,n,pr({},o,r,{interpolationkey:v})):g}var y=v.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(VT(r,l,h),b,n,pr({},o,r,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return m.forEach((function(v){for(u=0;i=v.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(e,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=HT(a));var y=v.safeValue(a);if(e=e.replace(i[0],y),p?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=pr({},a);function s(d,p){var m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;var v=d.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(v[1]);d=v[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=pr({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(m).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(d){return d.trim()}));n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=HT(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce((function(d,p){return i.format(d,p,a.lng,pr({},a,{interpolationkey:n[1].trim()}))}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t})(),Ast=(function(t){function e(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return oa(this,e),i=Bh(this,pf(e).call(this)),xb&&yu.call(rl(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Hi.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Eb(e,yu),ia(e,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach((function(f){var d=!0;n.forEach((function(p){var m="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[m]=2:a.state[m]<0||(a.state[m]===1?s.indexOf(m)<0&&s.push(m):(a.state[m]=1,d=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),c.indexOf(p)<0&&c.push(p)))})),d||l.push(f)})),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach((function(l){(function(c,f,d,p){var m=L5(c,f,Object),v=m.obj,g=m.k;v[g]=v[g]||[],v[g].push(d)})(l.loaded,[a],u),(function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)})(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach((function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach((function(f){s[c].indexOf(f)<0&&s[c].push(f)}))})),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(l){return!l.done}))}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,(function(l,c){l&&c&&a<5?setTimeout((function(){i.read.call(i,r,n,o,a+1,2*u,s)}),u):s(l,c)})):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach((function(s){o.loadOne(s)}))}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,(function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)}))}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" 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!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,pr({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),e})();function Ost(){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(t){var e={};if(Qa(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Qa(t[2])==="object"||Qa(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach((function(n){e[n]=r[n]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function GT(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Gv(){}var _st=(function(t){function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(oa(this,e),r=Bh(this,pf(e).call(this)),xb&&yu.call(rl(r)),r.options=GT(n),r.services={},r.logger=Hi,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),Bh(r,rl(r));setTimeout((function(){r.init(n,o)}),0)}return r}return Eb(e,yu),ia(e,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.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=pr({},Ost(),this.options,GT(n)),this.format=this.options.interpolation.format,o||(o=Gv),!this.options.isClone){this.modules.logger?Hi.init(i(this.modules.logger),this.options):Hi.init(null,this.options);var a=new wst(this.options);this.store=new bst(this.options.resources,this.options);var u=this.services;u.logger=Hi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Sst(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Dst(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Ast(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(function(p){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];r.emit.apply(r,[p].concat(v))})),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new WT(this.services,this.options),this.translator.on("*",(function(p){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];r.emit.apply(r,[p].concat(v))})),this.modules.external.forEach((function(p){p.init&&p.init(r)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(p){r[p]=function(){var m;return(m=r.store)[p].apply(m,arguments),r}}));var f=Od(),d=function(){var p=function(m,v){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(v),o(m,v)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gv,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach((function(f){u.indexOf(f)<0&&u.push(f)}))};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(c){return s(c)}))}this.options.preload&&this.options.preload.forEach((function(c){return s(c)})),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Od();return r||(r=this.languages),n||(n=this.options.ns),o||(o=Gv),this.services.backendConnector.reload(r,n,(function(a){i.resolve(),o(a)})),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&EH.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Od();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,(function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve((function(){return o.t.apply(o,arguments)})),n&&n(c,(function(){return o.t.apply(o,arguments)}))})(l,s)}))};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Qa(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=pr({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var m=i.options.keySeparator||".",v=o?"".concat(o).concat(m).concat(s):s;return i.t(v,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=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 i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Od();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach((function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)})),this.loadResources((function(a){i.resolve(),n&&n(a)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Od();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter((function(u){return i.indexOf(u)<0}));return a.length?(this.options.preload=i.concat(a),this.loadResources((function(u){o.resolve(),n&&n(u)})),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gv,i=pr({},this.options,n,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach((function(s){a[s]=r[s]})),a.services=pr({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new WT(a.services,a.options),a.translator.on("*",(function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))})),a.init(i,o),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}}}]),e})(),Oy=new _st;function Sn(t,e){Oy.addResourceBundle(t,"translation",e,!0,!0)}Oy.init({lng:"zh-CN",resources:{}});var dt=Oy.t.bind(Oy);Sn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Sn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var kst=TD?{}.toString:function(){return"[object "+rb(this)+"]"};TD||Ks(Object.prototype,"toString",kst,{unsafe:!0});var qT=Array.isArray||function(t){return Cs(t)=="Array"},xH=function(){},Tst=[],CH=yg("Reflect","construct"),R5=/^\s*(?:class|function)\b/,Bst=we(R5.exec),Fst=!R5.exec(xH),_d=function(t){if(!_r(t))return!1;try{return CH(xH,Tst,t),!0}catch{return!1}},Pst=!CH||jr((function(){var t;return _d(_d.call)||!_d(Object)||!_d((function(){t=!0}))||t}))?function(t){if(!_r(t))return!1;switch(rb(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fst||!!Bst(R5,DD(t))}:_d,jst=fn("species"),KT=Lt.Array,Nst=function(t,e){return new((function(r){var n;return qT(r)&&(n=r.constructor,(Pst(n)&&(n===KT||qT(n.prototype))||Qo(n)&&(n=n[jst])===null)&&(n=void 0)),n===void 0?KT:n})(t))(e===0?0:e)},YT=we([].push),Ist=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=ED(s),v=HR(m),g=tM(l,c),y=eb(v),h=0,b=f||Nst,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:YT(w,d)}else switch(t){case 4:return!1;case 7:YT(w,d)}return i?-1:n||o?o:w}},Lst={forEach:Ist(0)}.forEach,Rst=(function(t,e){var r=[][t];return!!r&&jr((function(){r.call(null,e||function(){throw 1},1)}))})("forEach"),sE=Rst?[].forEach:function(t){return Lst(this,t,arguments.length>1?arguments[1]:void 0)},SH=function(t){if(t&&t.forEach!==sE)try{mn(t,"forEach",sE)}catch{t.forEach=sE}};for(var lE in Wm)Wm[lE]&&SH(Lt[lE]&&Lt[lE].prototype);SH(nM),Sn("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"}}),Sn("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 Mst={type:"paragraph",renderElem:function(t,e,r){return jt("p",null,e)}},_y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cb(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ea,Y0,qv=function(t){return t&&t.Math==Math&&t},Ht=qv(typeof globalThis=="object"&&globalThis)||qv(typeof window=="object"&&window)||qv(typeof self=="object"&&self)||qv(typeof _y=="object"&&_y)||(function(){return this})()||Function("return this")(),Ge=function(t){try{return!!t()}catch{return!0}},Io=!Ge((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),kd=Function.prototype.call,nr=kd.bind?kd.bind(kd):function(){return kd.apply(kd,arguments)},XT={}.propertyIsEnumerable,ZT=Object.getOwnPropertyDescriptor,zst=ZT&&!XT.call({1:2},1)?function(t){var e=ZT(this,t);return!!e&&e.enumerable}:XT,DH={f:zst},M5=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},AH=Function.prototype,L6=AH.bind,R6=AH.call,Hst=L6&&L6.bind(R6),Ft=L6?function(t){return t&&Hst(R6,t)}:function(t){return t&&function(){return R6.apply(t,arguments)}},$st=Ft({}.toString),Vst=Ft("".slice),tu=function(t){return Vst($st(t),8,-1)},cE=Ht.Object,Ust=Ft("".split),Sb=Ge((function(){return!cE("z").propertyIsEnumerable(0)}))?function(t){return tu(t)=="String"?Ust(t,""):cE(t)}:cE,Wst=Ht.TypeError,lo=function(t){if(t==null)throw Wst("Can't call method on "+t);return t},jf=function(t){return Sb(lo(t))},Qr=function(t){return typeof t=="function"},ei=function(t){return typeof t=="object"?t!==null:Qr(t)},Gst=function(t){return Qr(t)?t:void 0},Tg=function(t,e){return arguments.length<2?Gst(Ht[t]):Ht[t]&&Ht[t][e]},OH=Ft({}.isPrototypeOf),fE=Tg("navigator","userAgent")||"",JT=Ht.process,QT=Ht.Deno,tB=JT&&JT.versions||QT&&QT.version,eB=tB&&tB.v8;eB&&(Y0=(Ea=eB.split("."))[0]>0&&Ea[0]<4?1:+(Ea[0]+Ea[1])),!Y0&&fE&&(!(Ea=fE.match(/Edge\/(\d+)/))||Ea[1]>=74)&&(Ea=fE.match(/Chrome\/(\d+)/))&&(Y0=+Ea[1]);var M6=Y0,z6=!!Object.getOwnPropertySymbols&&!Ge((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M6&&M6<41})),z5=z6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qst=Ht.Object,dE=z5?function(t){return typeof t=="symbol"}:function(t){var e=Tg("Symbol");return Qr(e)&&OH(e.prototype,qst(t))},Kst=Ht.String,_H=function(t){try{return Kst(t)}catch{return"Object"}},Yst=Ht.TypeError,kH=function(t){if(Qr(t))return t;throw Yst(_H(t)+" is not a function")},Db=function(t,e){var r=t[e];return r==null?void 0:kH(r)},Xst=Ht.TypeError,Zst=Object.defineProperty,H5=function(t,e){try{Zst(Ht,t,{value:e,configurable:!0,writable:!0})}catch{Ht[t]=e}return e},eu=Ht["__core-js_shared__"]||H5("__core-js_shared__",{}),$5=Cb((function(t){(t.exports=function(e,r){return eu[e]||(eu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Jst=Ht.Object,Bg=function(t){return Jst(lo(t))},Qst=Ft({}.hasOwnProperty),eo=Object.hasOwn||function(t,e){return Qst(Bg(t),e)},tlt=0,elt=Math.random(),rlt=Ft(1 .toString),TH=function(t){return"Symbol("+(t===void 0?"":t)+")_"+rlt(++tlt+elt,36)},Td=$5("wks"),Bs=Ht.Symbol,rB=Bs&&Bs.for,nlt=z5?Bs:Bs&&Bs.withoutSetter||TH,Vn=function(t){if(!eo(Td,t)||!z6&&typeof Td[t]!="string"){var e="Symbol."+t;z6&&eo(Bs,t)?Td[t]=Bs[t]:Td[t]=z5&&rB?rB(e):nlt(e)}return Td[t]},olt=Ht.TypeError,ilt=Vn("toPrimitive"),V5=function(t){var e=(function(r,n){if(!ei(r)||dE(r))return r;var o,i=Db(r,ilt);if(i){if(o=nr(i,r,n),!ei(o)||dE(o))return o;throw olt("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Qr(s=a.toString)&&!ei(l=nr(s,a))||Qr(s=a.valueOf)&&!ei(l=nr(s,a)))return l;throw Xst("Can't convert object to primitive value")})(r)})(t,"string");return dE(e)?e:e+""},H6=Ht.document,alt=ei(H6)&&ei(H6.createElement),U5=function(t){return alt?H6.createElement(t):{}},BH=!Io&&!Ge((function(){return Object.defineProperty(U5("div"),"a",{get:function(){return 7}}).a!=7})),nB=Object.getOwnPropertyDescriptor,W5={f:Io?nB:function(t,e){if(t=jf(t),e=V5(e),BH)try{return nB(t,e)}catch{}if(eo(t,e))return M5(!nr(DH.f,t,e),t[e])}},ult=Ht.String,slt=Ht.TypeError,In=function(t){if(ei(t))return t;throw slt(ult(t)+" is not an object")},llt=Ht.TypeError,oB=Object.defineProperty,Nf={f:Io?oB:function(t,e,r){if(In(t),e=V5(e),In(r),BH)try{return oB(t,e,r)}catch{}if("get"in r||"set"in r)throw llt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},hf=Io?function(t,e,r){return Nf.f(t,e,M5(1,r))}:function(t,e,r){return t[e]=r,t},clt=Ft(Function.toString);Qr(eu.inspectSource)||(eu.inspectSource=function(t){return clt(t)});var $6,ky,V6,G5=eu.inspectSource,iB=Ht.WeakMap,flt=Qr(iB)&&/native code/.test(G5(iB)),aB=$5("keys"),FH=function(t){return aB[t]||(aB[t]=TH(t))},q5={},uB=Ht.TypeError,dlt=Ht.WeakMap;if(flt||eu.state){var qu=eu.state||(eu.state=new dlt),plt=Ft(qu.get),sB=Ft(qu.has),hlt=Ft(qu.set);$6=function(t,e){if(sB(qu,t))throw new uB("Object already initialized");return e.facade=t,hlt(qu,t,e),e},ky=function(t){return plt(qu,t)||{}},V6=function(t){return sB(qu,t)}}else{var Ml=FH("state");q5[Ml]=!0,$6=function(t,e){if(eo(t,Ml))throw new uB("Object already initialized");return e.facade=t,hf(t,Ml,e),e},ky=function(t){return eo(t,Ml)?t[Ml]:{}},V6=function(t){return eo(t,Ml)}}var U6={get:ky,enforce:function(t){return V6(t)?ky(t):$6(t,{})}},PH=Function.prototype,glt=Io&&Object.getOwnPropertyDescriptor,pE=eo(PH,"name"),Ab={EXISTS:pE,PROPER:pE&&(function(){}).name==="something",CONFIGURABLE:pE&&(!Io||Io&&glt(PH,"name").configurable)},Fh=Cb((function(t){var e=Ab.CONFIGURABLE,r=U6.get,n=U6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Qr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!eo(u,"name")||e&&u.name!==p)&&hf(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ht?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:hf(i,a,u)):f?i[a]=u:H5(a,u)})(Function.prototype,"toString",(function(){return Qr(this)&&r(this).source||G5(this)}))})),vlt=Math.ceil,mlt=Math.floor,If=function(t){var e=+t;return e!=e||e===0?0:(e>0?mlt:vlt)(e)},ylt=Math.max,blt=Math.min,Ph=function(t,e){var r=If(t);return r<0?ylt(r+e,0):blt(r,e)},wlt=Math.min,Fg=function(t){return t>0?wlt(If(t),9007199254740991):0},Ob=function(t){return Fg(t.length)},lB=function(t){return function(e,r,n){var o,i=jf(e),a=Ob(i),u=Ph(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},jH={includes:lB(!0),indexOf:lB(!1)},Elt=jH.indexOf,cB=Ft([].push),NH=function(t,e){var r,n=jf(t),o=0,i=[];for(r in n)!eo(q5,r)&&eo(n,r)&&cB(i,r);for(;e.length>o;)eo(n,r=e[o++])&&(~Elt(i,r)||cB(i,r));return i},Ty=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xlt=Ty.concat("length","prototype"),Clt={f:Object.getOwnPropertyNames||function(t){return NH(t,xlt)}},IH={f:Object.getOwnPropertySymbols},Slt=Ft([].concat),Dlt=Tg("Reflect","ownKeys")||function(t){var e=Clt.f(In(t)),r=IH.f;return r?Slt(e,r(t)):e},Alt=function(t,e){for(var r=Dlt(e),n=Nf.f,o=W5.f,i=0;i<r.length;i++){var a=r[i];eo(t,a)||n(t,a,o(e,a))}},Olt=/#|\.prototype\./,Pg=function(t,e){var r=klt[_lt(t)];return r==Blt||r!=Tlt&&(Qr(e)?Ge(e):!!e)},_lt=Pg.normalize=function(t){return String(t).replace(Olt,".").toLowerCase()},klt=Pg.data={},Tlt=Pg.NATIVE="N",Blt=Pg.POLYFILL="P",Flt=Pg,Plt=W5.f,Dr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Ht:l?Ht[u]||H5(u,{}):(Ht[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Plt(r,n))&&a.value:r[n],!Flt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Alt(i,o)}(t.sham||o&&o.sham)&&hf(i,"sham",!0),Fh(r,n,i,t)}},fB=Ft(Ft.bind),By=Array.isArray||function(t){return tu(t)=="Array"},LH={};LH[Vn("toStringTag")]="z";var K5=String(LH)==="[object z]",jlt=Vn("toStringTag"),Nlt=Ht.Object,Ilt=tu((function(){return arguments})())=="Arguments",Y5=K5?tu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=Nlt(t),jlt))=="string"?r:Ilt?tu(e):(n=tu(e))=="Object"&&Qr(e.callee)?"Arguments":n},RH=function(){},Llt=[],MH=Tg("Reflect","construct"),X5=/^\s*(?:class|function)\b/,Rlt=Ft(X5.exec),Mlt=!X5.exec(RH),Bd=function(t){if(!Qr(t))return!1;try{return MH(RH,Llt,t),!0}catch{return!1}},Z5=!MH||Ge((function(){var t;return Bd(Bd.call)||!Bd(Object)||!Bd((function(){t=!0}))||t}))?function(t){if(!Qr(t))return!1;switch(Y5(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mlt||!!Rlt(X5,G5(t))}:Bd,zlt=Vn("species"),dB=Ht.Array,Hlt=function(t,e){return new((function(r){var n;return By(r)&&(n=r.constructor,(Z5(n)&&(n===dB||By(n.prototype))||ei(n)&&(n=n[zlt])===null)&&(n=void 0)),n===void 0?dB:n})(t))(e===0?0:e)},pB=Ft([].push),Kv=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=Bg(s),v=Sb(m),g=(function(E,S){return kH(E),S===void 0?E:fB?fB(E,S):function(){return E.apply(S,arguments)}})(l,c),y=Ob(v),h=0,b=f||Hlt,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:pB(w,d)}else switch(t){case 4:return!1;case 7:pB(w,d)}return i?-1:n||o?o:w}},_b={forEach:Kv(0),map:Kv(1),filter:Kv(2),find:Kv(5)},$lt=Vn("species"),J5=function(t){return M6>=51||!Ge((function(){var e=[];return(e.constructor={})[$lt]=function(){return{foo:1}},e[t](Boolean).foo!==1}))},Vlt=_b.filter;Dr({target:"Array",proto:!0,forced:!J5("filter")},{filter:function(t){return Vlt(this,t,arguments.length>1?arguments[1]:void 0)}});var Ult=K5?{}.toString:function(){return"[object "+Y5(this)+"]"};K5||Fh(Object.prototype,"toString",Ult,{unsafe:!0});var Yv,Wlt=Ht.String,Ue=function(t){if(Y5(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Wlt(t)},zH=function(){var t=In(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Q5=Ht.RegExp,W6=Ge((function(){var t=Q5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));W6||Ge((function(){return!Q5("a","y").sticky}));var HH={BROKEN_CARET:W6||Ge((function(){var t=Q5("^r","gy");return t.lastIndex=2,t.exec("str")!=null})),UNSUPPORTED_Y:W6},Nc=Object.keys||function(t){return NH(t,Ty)},Glt=Io?Object.defineProperties:function(t,e){In(t);for(var r,n=jf(e),o=Nc(e),i=o.length,a=0;i>a;)Nf.f(t,r=o[a++],n[r]);return t},qlt=Tg("document","documentElement"),$H=FH("IE_PROTO"),hE=function(){},VH=function(t){return"<script>"+t+"<\/script>"},hB=function(t){t.write(VH("")),t.close();var e=t.parentWindow.Object;return t=null,e},X0=function(){try{Yv=new ActiveXObject("htmlfile")}catch{}var t,e;X0=typeof document<"u"?document.domain&&Yv?hB(Yv):((e=U5("iframe")).style.display="none",qlt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(VH("document.F=Object")),t.close(),t.F):hB(Yv);for(var r=Ty.length;r--;)delete X0.prototype[Ty[r]];return X0()};q5[$H]=!0;var gB,gE,UH=Object.create||function(t,e){var r;return t!==null?(hE.prototype=In(t),r=new hE,hE.prototype=null,r[$H]=t):r=X0(),e===void 0?r:Glt(r,e)},Klt=Ht.RegExp,Ylt=Ge((function(){var t=Klt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),Xlt=Ht.RegExp,Zlt=Ge((function(){var t=Xlt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),Jlt=U6.get,Qlt=$5("native-string-replace",String.prototype.replace),Fy=RegExp.prototype.exec,G6=Fy,tct=Ft("".charAt),ect=Ft("".indexOf),rct=Ft("".replace),vE=Ft("".slice),mE=(gE=/b*/g,nr(Fy,gB=/a/,"a"),nr(Fy,gE,"a"),gB.lastIndex!==0||gE.lastIndex!==0),vB=HH.BROKEN_CARET,yE=/()??/.exec("")[1]!==void 0;(mE||yE||vB||Ylt||Zlt)&&(G6=function(t){var e,r,n,o,i,a,u,s=this,l=Jlt(s),c=Ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=nr(G6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=vB&&s.sticky,m=nr(zH,s),v=s.source,g=0,y=c;if(p&&(m=rct(m,"y",""),ect(m,"g")===-1&&(m+="g"),y=vE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tct(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),yE&&(r=new RegExp("^"+v+"$(?!\\s)",m)),mE&&(n=s.lastIndex),o=nr(Fy,p?r:s,y),p?o?(o.input=vE(o.input,g),o[0]=vE(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:mE&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),yE&&o&&o.length>1&&nr(Qlt,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=UH(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var jh=G6;Dr({target:"RegExp",proto:!0,forced:/./.exec!==jh},{exec:jh});var t8=Function.prototype,mB=t8.apply,nct=t8.bind,yB=t8.call,WH=typeof Reflect=="object"&&Reflect.apply||(nct?yB.bind(mB):function(){return yB.apply(mB,arguments)}),oct=Vn("species"),bE=RegExp.prototype,e8=function(t,e,r,n){var o=Vn(t),i=!Ge((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!Ge((function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[oct]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Ft(/./[o]),s=e(o,""[t],(function(l,c,f,d,p){var m=Ft(l),v=c.exec;return v===jh||v===bE.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));Fh(String.prototype,t,s[0]),Fh(bE,o,s[1])}n&&hf(bE[o],"sham",!0)},ict=Ft("".charAt),bB=Ft("".charCodeAt),act=Ft("".slice),uct=function(t){return function(e,r){var n,o,i=Ue(lo(e)),a=If(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=bB(i,a))<55296||n>56319||a+1===u||(o=bB(i,a+1))<56320||o>57343?t?ict(i,a):n:t?act(i,a,a+2):o-56320+(n-55296<<10)+65536}},sct=uct(!0),r8=function(t,e,r){return e+(r?sct(t,e).length:1)},lct=Math.floor,wE=Ft("".charAt),cct=Ft("".replace),EE=Ft("".slice),fct=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dct=/\$([$&'`]|\d{1,2})/g,pct=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=dct;return o!==void 0&&(o=Bg(o),s=fct),cct(i,s,(function(l,c){var f;switch(wE(c,0)){case"$":return"$";case"&":return t;case"`":return EE(e,0,r);case"'":return EE(e,a);case"<":f=o[EE(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=lct(d/10);return p===0?l:p<=u?n[p-1]===void 0?wE(c,1):n[p-1]+wE(c,1):l}f=n[d-1]}return f===void 0?"":f}))},hct=Ht.TypeError,Nh=function(t,e){var r=t.exec;if(Qr(r)){var n=nr(r,t,e);return n!==null&&In(n),n}if(tu(t)==="RegExp")return nr(jh,t,e);throw hct("RegExp#exec called on incompatible receiver")},q6=Vn("replace"),gct=Math.max,vct=Math.min,mct=Ft([].concat),xE=Ft([].push),wB=Ft("".indexOf),EB=Ft("".slice),yct="a".replace(/./,"$0")==="$0",xB=!!/./[q6]&&/./[q6]("a","$0")==="";e8("replace",(function(t,e,r){var n=xB?"$":"$0";return[function(o,i){var a=lo(this),u=o==null?void 0:Db(o,q6);return u?nr(u,o,a,i):nr(e,Ue(a),o,i)},function(o,i){var a=In(this),u=Ue(o);if(typeof i=="string"&&wB(i,n)===-1&&wB(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Qr(i);l||(i=Ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Nh(a,u);if(p===null||(xE(d,p),!c))break;Ue(p[0])===""&&(a.lastIndex=r8(u,Fg(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=Ue((p=d[y])[0]),b=gct(vct(If(p.index),u.length),0),w=[],E=1;E<p.length;E++)xE(w,(m=p[E])===void 0?m:String(m));var S=p.groups;if(l){var x=mct([h],w,b,u);S!==void 0&&xE(x,S);var D=Ue(WH(i,void 0,x))}else D=pct(h,u,b,w,S,i);b>=g&&(v+=EB(u,g,b)+D,g=b+h.length)}return v+EB(u,g)}]}),!!Ge((function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"}))||!yct||xB);var K6=Vn("unscopables"),Y6=Array.prototype;Y6[K6]==null&&Nf.f(Y6,K6,{configurable:!0,value:UH(null)});var GH=function(t){Y6[K6][t]=!0},bct=_b.find,CB=!0;"find"in[]&&Array(1).find((function(){CB=!1})),Dr({target:"Array",proto:!0,forced:CB},{find:function(t){return bct(this,t,arguments.length>1?arguments[1]:void 0)}}),GH("find");var wct=Vn("match"),qH=function(t){var e;return ei(t)&&((e=t[wct])!==void 0?!!e:tu(t)=="RegExp")},Ect=Ht.TypeError,xct=Vn("species"),KH=function(t,e,r){var n=V5(e);n in t?Nf.f(t,n,M5(0,r)):t[n]=r},Cct=Ht.Array,Sct=Math.max,SB=function(t,e,r){for(var n=Ob(t),o=Ph(e,n),i=Ph(r===void 0?n:r,n),a=Cct(Sct(i-o,0)),u=0;o<i;o++,u++)KH(a,u,t[o]);return a.length=u,a},zl=HH.UNSUPPORTED_Y,Dct=Math.min,YH=[].push,Act=Ft(/./.exec),Hl=Ft(YH),Fd=Ft("".slice);e8("split",(function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ue(lo(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!qH(o))return nr(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,m=new RegExp(o.source,d+"g");(s=nr(jh,m,a))&&!((l=m.lastIndex)>p&&(Hl(f,Fd(a,p,s.index)),s.length>1&&s.index<a.length&&WH(YH,f,SB(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===a.length?!c&&Act(m,"")||Hl(f,""):Hl(f,Fd(a,p)),f.length>u?SB(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:nr(e,this,o,i)}:e,[function(o,i){var a=lo(this),u=o==null?void 0:Db(o,t);return u?nr(u,o,a,i):nr(n,Ue(a),o,i)},function(o,i){var a=In(this),u=Ue(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=(function(w,E){var S,x=In(w).constructor;return x===void 0||(S=In(x)[xct])==null?E:(function(D){if(Z5(D))return D;throw Ect(_H(D)+" is not a constructor")})(S)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(zl?"g":"y"),d=new l(zl?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Nh(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=zl?0:v;var y,h=Nh(d,zl?Fd(u,v):u);if(h===null||(y=Dct(Fg(d.lastIndex+(zl?v:0)),u.length))===m)v=r8(u,v,c);else{if(Hl(g,Fd(u,m,v)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Hl(g,h[b]),g.length===p)return g;v=m=y}}return Hl(g,Fd(u,m)),g}]}),!!Ge((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),zl);var X6=`	
\v\f\r                　\u2028\u2029\uFEFF`,DB=Ft("".replace),Py="["+X6+"]",Oct=RegExp("^"+Py+Py+"*"),_ct=RegExp(Py+Py+"*$"),kct=function(t){return function(e){var r=Ue(lo(e));return 1&t&&(r=DB(r,Oct,"")),2&t&&(r=DB(r,_ct,"")),r}},Tct={trim:kct(3)},Bct=Ab.PROPER,Fct=Tct.trim;function n8(t){return j("<div>"+t+"</div>").children().filter((function(e){return e.tagName!=="BR"})).length===0}function Lf(t){return t.length===0?"":t[0].outerHTML}function Rf(t){return t.length?t[0].tagName.toLowerCase():""}function To(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===e&&(r=u[1].trim())}}return r}Dr({target:"String",proto:!0,forced:Ge((function(){return!!X6.trim()||"​᠎".trim()!=="​᠎"||Bct&&X6.trim.name!=="trim"}))},{trim:function(){return Fct(this)}}),Dr({global:!0},{globalThis:Ht}),oy&&(j.fn.css=oy),uo&&(j.fn.append=uo),p_&&(j.fn.prepend=p_),Xc&&(j.fn.addClass=Xc),Zc&&(j.fn.removeClass=Zc),Jc&&(j.fn.hasClass=Jc),fi&&(j.fn.on=fi),l_&&(j.fn.off=l_),vu&&(j.fn.focus=vu),ao&&(j.fn.attr=ao),ty&&(j.fn.removeAttr=ty),tf&&(j.fn.hide=tf),ny&&(j.fn.show=ny),uy&&(j.fn.parents=uy),Qc&&(j.fn.dataset=Qc),ci&&(j.fn.val=ci),ay&&(j.fn.text=ay),gu&&(j.fn.html=gu),nf&&(j.fn.children=nf),of&&(j.fn.remove=of),rf&&(j.fn.find=rf),ey&&(j.fn.width=ey),ry&&(j.fn.height=ry),f_&&(j.fn.filter=f_),af&&(j.fn.empty=af);var Pct={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t);return(e=e.filter((function(o){return!!yt.isText(o)||!!r.isInline(o)}))).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},Z6=function(t,e){return Z6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Z6(t,e);};function He(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Z6(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var bu=function(){return bu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bu.apply(this,arguments)};function Bu(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r((function(f){f(c)}))).then(a,u)}s((n=n.apply(t,[])).next())}))}function Fu(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function XH(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function le(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function AB(t){var e=le(C.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var r=e[0];if(!Et.isElement(r)||r.type==="paragraph"||ft.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!yt.isText(o[0])&&($.setNodes(t,{type:"paragraph"}),!0)}var jct={renderElems:[Mst],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Pct],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward;t.insertText,t.insertBreak;var n=t;return n.deleteBackward=function(o){AB(n)||e(o)},n.deleteForward=function(o){AB(n)||r(o)},n}},Nct=/"/g,Ict=Ft("".replace),Sp=function(t,e,r,n){var o=Ue(lo(t)),i="<"+e;return r!==""&&(i+=" "+r+'="'+Ict(Ue(n),Nct,"&quot;")+'"'),i+">"+o+"</"+e+">"},Dp=function(t){return Ge((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};function CE(t,e){var r=e,n=t,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Ku(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}Dr({target:"String",proto:!0,forced:Dp("bold")},{bold:function(){return Sp(this,"b","","")}}),Dr({target:"String",proto:!0,forced:Dp("italics")},{italics:function(){return Sp(this,"i","","")}}),Dr({target:"String",proto:!0,forced:Dp("sub")},{sub:function(){return Sp(this,"sub","","")}}),Dr({target:"String",proto:!0,forced:Dp("sup")},{sup:function(){return Sp(this,"sup","","")}});var OB={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},SE=U5("span").classList,_B=SE&&SE.constructor&&SE.constructor.prototype,Lct=_B===Object.prototype?void 0:_B,ZH=function(t,e){var r=[][t];return!!r&&Ge((function(){r.call(null,e||function(){throw 1},1)}))},Rct=_b.forEach,DE=ZH("forEach")?[].forEach:function(t){return Rct(this,t,arguments.length>1?arguments[1]:void 0)},JH=function(t){if(t&&t.forEach!==DE)try{hf(t,"forEach",DE)}catch{t.forEach=DE}};for(var AE in OB)OB[AE]&&JH(Ht[AE]&&Ht[AE].prototype);function QH(t,e){return t.selection==null||!!le(C.nodes(t,{match:function(r){return k.getNodeType(r)==="pre"||!!C.isVoid(t,r)},universal:!0}),1)[0]}function Mct(t,e){Object.keys(e).forEach((function(r){r!=="text"&&C.removeMark(t,r)}))}JH(Lct),Dr({target:"Object",stat:!0,forced:Ge((function(){Nc(1)}))},{keys:function(t){return Nc(Bg(t))}});var yl=(function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n?n[r]:!!le(C.nodes(e,{match:function(o){return o[r]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return QH(e,this.mark)},t.prototype.exec=function(e,r){var n=this.mark,o=this.marksNeedToRemove;r?e.removeMark(n):(e.addMark(n,!0),o&&o.forEach((function(i){return e.removeMark(i)})))},t})(),zct='<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>',Hct='<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>',$ct='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Vct='<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>',Uct='<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>',t$='<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>',e$='<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>',Wct='<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>',Gct='<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>',qct='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Kct='<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>',Yct='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Xct='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Zct='<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>',Jct='<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>',Qct='<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>',tft='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',eft='<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>',rft='<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>',nft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="bold",r.title=dt("textStyle.bold"),r.iconSvg=zct,r.hotkey="mod+b",r}return He(e,t),e})(yl),oft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="code",r.title=dt("textStyle.code"),r.iconSvg=Uct,r.hotkey="mod+e",r}return He(e,t),e})(yl),ift=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="italic",r.title=dt("textStyle.italic"),r.iconSvg=$ct,r.hotkey="mod+i",r}return He(e,t),e})(yl),aft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="through",r.title=dt("textStyle.through"),r.iconSvg=Vct,r.hotkey="mod+shift+x",r}return He(e,t),e})(yl),uft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="underline",r.title=dt("textStyle.underline"),r.iconSvg=Hct,r.hotkey="mod+u",r}return He(e,t),e})(yl),sft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=dt("textStyle.sub"),r.iconSvg=rft,r.hotkey="",r}return He(e,t),e})(yl),lft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=dt("textStyle.sup"),r.iconSvg=eft,r.hotkey="",r}return He(e,t),e})(yl),cft=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return QH(e)},t.prototype.exec=function(e,r){var n,o,i=C.nodes(e,{match:function(s){return yt.isText(s)},universal:!0});try{for(var a=XH(i),u=a.next();!u.done;u=a.next())Mct(e,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t})(),fft={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=e;return n&&(c=jt("strong",null,c)),a&&(c=jt("code",null,c)),o&&(c=jt("em",null,c)),i&&(c=jt("u",null,c)),u&&(c=jt("s",null,c)),s&&(c=jt("sub",null,c)),l&&(c=jt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new nft}},{key:"underline",factory:function(){return new uft}},{key:"italic",factory:function(){return new ift}},{key:"through",factory:function(){return new aft}},{key:"code",factory:function(){return new oft}},{key:"sub",factory:function(){return new sft}},{key:"sup",factory:function(){return new lft}},{key:"clearStyle",factory:function(){return new cft}}],styleToHtml:function(t,e){if(!yt.isText(t))return e;if(n8(e))return CE(t,e);var r=j(e);if(Rf(r)==="br")return CE(t,"<br>");var n=r.html();return n=CE(t,n),r.html(n),Lf(r)},parseStyleHtml:function(t,e,r){var n=j(t);if(!yt.isText(e))return e;var o=e;return Ku(n,"b,strong")&&(o.bold=!0),Ku(n,"i,em")&&(o.italic=!0),Ku(n,"u")&&(o.underline=!0),Ku(n,"s,strike")&&(o.through=!0),Ku(n,"sub")&&(o.sub=!0),Ku(n,"sup")&&(o.sup=!0),Ku(n,"code")&&(o.code=!0),o}};function jg(t){return function(e,r,n){return jt("h"+t,null,r)}}var dft={type:"header1",renderElem:jg(1)},pft={type:"header2",renderElem:jg(2)},hft={type:"header3",renderElem:jg(3)},gft={type:"header4",renderElem:jg(4)},vft={type:"header5",renderElem:jg(5)},mft=Ab.PROPER,J6=RegExp.prototype,r$=J6.toString,yft=Ft(zH),bft=Ge((function(){return r$.call({source:"a",flags:"b"})!="/a/b"})),wft=mft&&r$.name!="toString";(bft||wft)&&Fh(RegExp.prototype,"toString",(function(){var t=In(this),e=Ue(t.source),r=t.flags;return"/"+e+"/"+Ue(r===void 0&&OH(J6,t)&&!("flags"in J6)?yft(t):r)}),{unsafe:!0});var OE,Eft=Ht.TypeError,n$=function(t){if(qH(t))throw Eft("The method doesn't accept regular expressions");return t},xft=Vn("match"),o$=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[xft]=!1,"/./"[t](e)}catch{}}return!1},Cft=W5.f,kB=Ft("".startsWith),Sft=Ft("".slice),Dft=Math.min,TB=o$("startsWith");function i$(t){var e=le(C.nodes(t,{match:function(o){return k.getNodeType(o).startsWith("header")},universal:!0}),1),r=e[0];if(r==null)return"paragraph";var n=le(r,1)[0];return k.getNodeType(n)}function a$(t){return t.selection==null||!le(C.nodes(t,{match:function(e){var r=k.getNodeType(e);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function u$(t,e){e&&$.setNodes(t,{type:e})}Dr({target:"String",proto:!0,forced:!(!TB&&(OE=Cft(String.prototype,"startsWith"),OE&&!OE.writable)||TB)},{startsWith:function(t){var e=Ue(lo(this));n$(t);var r=Fg(Dft(arguments.length>1?arguments[1]:void 0,e.length)),n=Ue(t);return kB?kB(e,n,r):Sft(e,r,r+n.length)===n}});var Aft=(function(){function t(){this.title=dt("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 t.prototype.getOptions=function(e){var r=[{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:dt("header.text")}],n=this.getValue(e).toString();return r.forEach((function(o){o.value===n?o.selected=!0:delete o.selected})),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return i$(e)},t.prototype.isDisabled=function(e){return a$(e)},t.prototype.exec=function(e,r){u$(e,r.toString())},t})(),Ng=(function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return i$(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return a$(e)},t.prototype.exec=function(e,r){var n=this.type;u$(e,r===n?"paragraph":n)},t})(),Oft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return He(e,t),e})(Ng),_ft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return He(e,t),e})(Ng),kft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return He(e,t),e})(Ng),Tft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return He(e,t),e})(Ng),Bft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return He(e,t),e})(Ng),Fft={key:"headerSelect",factory:function(){return new Aft}},Pft={key:"header1",factory:function(){return new Oft}},jft={key:"header2",factory:function(){return new _ft}},Nft={key:"header3",factory:function(){return new kft}},Ift={key:"header4",factory:function(){return new Tft}},Lft={key:"header5",factory:function(){return new Bft}};function Pd(t){return function(e,r){return"<h"+t+">"+r+"</h"+t+">"}}function jd(t){return function(e,r,n){var o=j(e);return(r=r.filter((function(i){return!!yt.isText(i)||!!n.isInline(i)}))).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:r}}}var Rft={renderElems:[dft,pft,hft,gft,vft],elemsToHtml:[{type:"header1",elemToHtml:Pd(1)},{type:"header2",elemToHtml:Pd(2)},{type:"header3",elemToHtml:Pd(3)},{type:"header4",elemToHtml:Pd(4)},{type:"header5",elemToHtml:Pd(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:jd(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:jd(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:jd(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:jd(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:jd(5)}],menus:[Fft,Pft,jft,Nft,Ift,Lft],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var r=t;return r.insertBreak=function(){var n=le(C.nodes(r,{match:function(o){return k.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&k.isSelectionAtLineEnd(t,n[1])?$.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},$l=Object.assign,BB=Object.defineProperty,Mft=Ft([].concat),FB=!$l||Ge((function(){if(Io&&$l({b:1},$l(BB({},"a",{enumerable:!0,get:function(){BB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(o){e[o]=o})),$l({},t)[r]!=7||Nc($l({},e)).join("")!=n}))?function(t,e){for(var r=Bg(t),n=arguments.length,o=1,i=IH.f,a=DH.f;n>o;)for(var u,s=Sb(arguments[o++]),l=i?Mft(Nc(s),i(s)):Nc(s),c=l.length,f=0;c>f;)u=l[f++],Io&&!nr(a,s,u)||(r[u]=s[u]);return r}:$l;function nl(t,e){t.data==null&&(t.data={});var r=t.data;r.style==null&&(r.style={}),Object.assign(r.style,e)}Dr({target:"Object",stat:!0,forced:Object.assign!==FB},{assign:FB});var zft={selector:"font",preParseHtml:function(t){var e=j(t);if(Rf(e)!=="font")return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},s$=(function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n&&n[r]?n[r]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!le(C.nodes(e,{match:function(r){return k.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var r=this.mark;if(this.$content==null){var n=j('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=j(c).attr("data-value");f==="0"?C.removeMark(e,r):C.addMark(e,r,f)}})),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(r).colors;(a===void 0?[]:a).forEach((function(l){var c=j('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=j('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)}));var u="";r==="color"&&(u=dt("color.default")),r==="bgColor"&&(u=dt("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>
        `+u+`
      </li>
    `);return o.prepend(s),o[0]},t})(),Hft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("color.color"),r.iconSvg=Wct,r.mark="color",r}return He(e,t),e})(s$),$ft=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("color.bgColor"),r.iconSvg=Gct,r.mark="bgColor",r}return He(e,t),e})(s$),PB=["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)"],Vft={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,i=e;return n&&nl(i,{color:n}),o&&nl(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!yt.isText(t))return e;var r,n=t,o=n.color,i=n.bgColor;return o||i?((n8(e)||Rf(r=j(e))!=="span")&&(r=j("<span>"+e+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),Lf(r)):e},preParseHtml:[zft],parseStyleHtml:function(t,e,r){var n=j(t);if(!yt.isText(e))return e;var o=e,i=To(n,"color");i&&(o.color=i);var a=To(n,"background-color");return a||(a=To(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Hft},config:{colors:PB}},{key:"bgColor",factory:function(){return new $ft},config:{colors:PB}}]},Uft=/^(?:\w+:)?\/\/(\S+)$/,Wft=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Gft=/^[^\s\.]+\.\S{2,}$/,qft=jH.includes;function kb(t){return t===void 0&&(t="r"),t+"-"+FM()}function o8(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l$(t,e,r,n){return Bu(this,void 0,void 0,(function(){var o,i;return Fu(this,(function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function c$(t,e,r){return Bu(this,void 0,void 0,(function(){var n;return Fu(this,(function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}}))}))}function i8(t){return t.selection==null||!!k.getSelectedElems(t).some((function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)||void 0}))}function _E(t,e){return{type:"link",url:o8(t),children:e?[{text:e}]:[]}}function f$(t,e,r){return Bu(this,void 0,void 0,(function(){var n,o,i;return Fu(this,(function(a){switch(a.label){case 0:return r?(e||(e=r),t.restoreSelection(),i8(t)?[2]:[4,l$("insertLink",t,e,r)]):[2];case 1:return a.sent()?[4,c$("insertLink",t,r)]:[2];case 2:return n=a.sent(),(o=t.selection)==null||(q.isCollapsed(o)?(t.insertText(" "),i=_E(n,e),$.insertNodes(t,i),t.insertFragment([{text:" "}])):C.string(t,o)!==e?(t.deleteFragment(),i=_E(n,e),$.insertNodes(t,i)):(i=_E(n),$.wrapNodes(t,i,{split:!0}),$.collapse(t,{edge:"end"}))),[2]}}))}))}Dr({target:"Array",proto:!0},{includes:function(t){return qft(this,t,arguments.length>1?arguments[1]:void 0)}}),GH("includes");var Kft={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,i=n.target;return jt("a",{href:o,target:i===void 0?"_blank":i},e)}},Yft={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t);return(e=e.filter((function(o){return!!yt.isText(o)||!!r.isInline(o)}))).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:e}}};function kE(){return kb("w-e-insert-link")}var Xft=(function(){function t(){this.title=dt("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=kE(),this.urlInputId=kE(),this.buttonId=kE()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return i8(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=e.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=le(Nn(dt("link.text"),o),2),s=u[0],l=j(u[1]),c=le(Nn(dt("link.url"),i),2),f=c[0],d=j(c[1]),p=le(Pf(a,dt("common.ok")),1)[0];if(this.$content==null){var m=j("<div></div>");m.on("click","#"+a,(function(y){y.preventDefault();var h=m.find("#"+o).val(),b=m.find("#"+i).val();f$(e,h,b),e.hidePanelOrModal()})),this.$content=m}var v=this.$content;if(v.empty(),v.append(s),v.append(f),v.append(p),r==null||q.isCollapsed(r))l.val("");else{var g=C.string(e,r);l.val(g)}return d.val(""),setTimeout((function(){l.focus()})),v[0]},t})();function jB(){return kb("w-e-update-link")}var Zft=(function(){function t(){this.title=dt("link.edit"),this.iconSvg=t$,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=jB(),this.buttonId=jB()}return t.prototype.getSelectedLinkElem=function(e){var r=k.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return k.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var r=this.urlInputId,n=this.buttonId,o=le(Nn(dt("link.url"),r),2),i=o[0],a=j(o[1]),u=le(Pf(n,dt("common.ok")),1)[0];if(this.$content==null){var s=j("<div></div>");s.on("click","button",(function(f){f.preventDefault(),e.restoreSelection();var d=k.getSelectedNodeByType(e,"link"),p=d?ft.string(d):"",m=s.find("#"+r).val();(function(v,g,y){Bu(this,void 0,void 0,(function(){var h,b;return Fu(this,(function(w){switch(w.label){case 0:return y?[4,l$("editLink",v,g,y)]:[2];case 1:return w.sent()?[4,c$("editLink",v,y)]:[2];case 2:return h=w.sent(),b={url:o8(h)},$.setNodes(v,b,{match:function(E){return k.checkNodeType(E,"link")}}),[2]}}))}))})(e,p,m),e.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout((function(){a.focus()})),l[0]},t})(),Jft=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||k.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||$.unwrapNodes(e,{match:function(n){return k.checkNodeType(n,"link")}})},t})(),Qft=(function(){function t(){this.title=dt("link.view"),this.iconSvg=e$,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var r=k.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},t})(),NB={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},tdt={renderElems:[Kft],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[Yft],menus:[{key:"insertLink",factory:function(){return new Xft},config:NB},{key:"editLink",factory:function(){return new Zft},config:NB},{key:"unLink",factory:function(){return new Jft}},{key:"viewLink",factory:function(){return new Qft}}],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(l){if(typeof l!="string")return!1;var c=l.match(Uft);if(!c)return!1;var f=c[1];return!(!f||!Wft.test(f)&&!Gft.test(f))})(a)){if(!i8(o)){var u=o.selection;if(u!=null){var s=C.string(o,u);f$(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=le(i,2),u=a[0],s=a[1];return k.getNodeType(u)!=="link"?n([u,s]):ft.string(u)===""?$.removeNodes(o,{at:s}):n([u,s])},o}},edt=Ft(1 .valueOf),rdt=Ht.RangeError,ndt=Ht.RangeError,d$=Ht.String,p$=Math.floor,Q6=Ft((function(t){var e=Ue(lo(this)),r="",n=If(t);if(n<0||n==1/0)throw rdt("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),IB=Ft("".slice),Nd=Ft(1 .toFixed),mc=function(t,e,r){return e===0?r:e%2==1?mc(t,e-1,r*t):mc(t*t,e/2,r)},Vl=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=p$(o/1e7)},TE=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=p$(n/e),n=n%e*1e7},LB=function(t){for(var e=6,r="";--e>=0;)if(r!==""||e===0||t[e]!==0){var n=d$(t[e]);r=r===""?n:r+Q6("0",7-n.length)+n}return r};function RB(t,e){return"w-e-image-container-"+k.findKey(t,e).id}Dr({target:"Number",proto:!0,forced:Ge((function(){return Nd(8e-5,3)!=="0.000"||Nd(.9,0)!=="1"||Nd(1.255,2)!=="1.25"||Nd(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!Ge((function(){Nd({})}))},{toFixed:function(t){var e,r,n,o,i=edt(this),a=If(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw ndt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return d$(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(e=(function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f})(i*mc(2,69,1))-69)<0?i*mc(2,-e,1):i/mc(2,e,1),r*=4503599627370496,(e=52-e)>0){for(Vl(u,0,r),n=a;n>=7;)Vl(u,1e7,0),n-=7;for(Vl(u,mc(10,n,1),0),n=e-1;n>=23;)TE(u,1<<23),n-=23;TE(u,1<<n),Vl(u,1,1),TE(u,2),l=LB(u)}else Vl(u,0,r),Vl(u,1<<-e,0),l=LB(u)+Q6("0",a);return a>0?s+((o=l.length)<=a?"0."+Q6("0",a-o)+l:IB(l,0,o-a)+"."+IB(l,o-a)):s+l}});var odt={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,m=p===void 0?"":p,v=k.isNodeSelected(r,t),g={};d&&(g.width="100%"),m&&(g.height="100%");var y=jt("img",{style:g,src:o,alt:a,"data-href":s}),h=r.isDisabled();return v&&!h?(function(b,w,E,S){var x=j("body"),D=RB(b,w),A=S.width,P=S.height,M=0,F=0,V=0,U=!1,W=null;function z(bt){W=(function(){var I=j("#"+D);if(I.length===0)throw new Error("Cannot find image container elem");return I})(),M=bt;var B=W.find("img");if(B.length===0)throw new Error("Cannot find image elem");F=B.width(),V=B.height(),x.on("mousemove",tt),x.on("mouseup",J);var _=k.getHoverbar(b);_&&_.hideAndClean()}var tt=Zs((function(bt){bt.preventDefault();var B=bt.clientX,_=F+(U?M-B:B-M),I=V*(_/F);W!=null&&(_<=15||I<=15||(W.css("width",_+"px"),W.css("height",I+"px")))}),100);function J(bt){if(x.off("mousemove",tt),W!=null){var B=W.width().toFixed(2),_=W.height().toFixed(2),I={style:bu(bu({},w.style),{width:B+"px",height:_+"px"})};$.setNodes(b,I,{at:k.findPath(b,w)}),x.off("mouseup",J)}}var st={};return A&&(st.width=A),P&&(st.height=P),jt("div",{id:D,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(bt){var B=j(bt.target);B.hasClass("w-e-image-dragger")&&(bt.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(U=!0),z(bt.clientX))}}},E,jt("div",{className:"w-e-image-dragger left-top"}),jt("div",{className:"w-e-image-dragger right-top"}),jt("div",{className:"w-e-image-dragger left-bottom"}),jt("div",{className:"w-e-image-dragger right-bottom"}))})(r,t,y,{width:d,height:m}):(function(b,w,E,S){var x=S.width,D=S.height,A={};return x&&(A.width=x),D&&(A.height=D),jt("div",{id:RB(b,w),style:A,className:"w-e-image-container"},E)})(r,t,y,{width:d,height:m})}},idt={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:To(n,"width"),height:To(n,"height")},children:[{text:""}]}}};function h$(t,e,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Bu(this,void 0,void 0,(function(){var i,a;return Fu(this,(function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function g$(t,e,r){return Bu(this,void 0,void 0,(function(){var n;return Fu(this,(function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}}))}))}function Fs(t,e,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Bu(this,void 0,void 0,(function(){var o,i,a;return Fu(this,(function(u){switch(u.label){case 0:return[4,h$("insertImage",t,e,r,n)];case 1:return u.sent()?[4,g$("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:o8(o),href:n,alt:r,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),k.getSelectedNodeByType(t,"image")&&t.move(1),Tb(t)||($.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Tb(t){var e=t.selection;return e==null||!q.isCollapsed(e)||!!le(C.nodes(t,{match:function(r){var n=k.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!C.isVoid(t,r)},universal:!0}),1)[0]}function Xv(){return kb("w-e-insert-image")}var adt=(function(){function t(){this.title=dt("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=Xv(),this.altInputId=Xv(),this.hrefInputId=Xv(),this.buttonId=Xv()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return Tb(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=le(Nn(dt("image.src"),o),2),l=s[0],c=j(s[1]),f=le(Nn(dt("image.desc"),i),2),d=f[0],p=j(f[1]),m=le(Nn(dt("image.link"),a),2),v=m[0],g=j(m[1]),y=le(Pf(u,dt("common.ok")),1)[0];if(this.$content==null){var h=j("<div></div>");h.on("click","#"+u,(function(w){w.preventDefault();var E=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();r.insertImage(e,E,S,x),e.hidePanelOrModal()})),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(v),b.append(y),c.val(""),p.val(""),g.val(""),setTimeout((function(){c.focus()})),b[0]},t.prototype.insertImage=function(e,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(e.restoreSelection(),this.isDisabled(e)||Fs(e,r,n,o))},t})(),udt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||k.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||$.removeNodes(e,{match:function(n){return k.checkNodeType(n,"image")}})},t})();function Zv(){return kb("w-e-edit-image")}var sdt=(function(){function t(){this.title=dt("image.edit"),this.iconSvg=t$,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Zv(),this.altInputId=Zv(),this.hrefInputId=Zv(),this.buttonId=Zv()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return k.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=le(Nn(dt("image.src"),o),2),c=l[0],f=j(l[1]),d=le(Nn(dt("image.desc"),i),2),p=d[0],m=j(d[1]),v=le(Nn(dt("image.link"),a),2),g=v[0],y=j(v[1]),h=le(Pf(u,dt("common.ok")),1)[0];if(this.$content==null){var b=j("<div></div>");b.on("click","#"+u,(function(M){M.preventDefault();var F=b.find("#"+o).val(),V=b.find("#"+i).val(),U=b.find("#"+a).val();r.updateImage(e,F,V,U),e.hidePanelOrModal()})),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var E=s,S=E.src,x=E.alt,D=x===void 0?"":x,A=E.href,P=A===void 0?"":A;return f.val(S),m.val(D),y.val(P),setTimeout((function(){f.focus()})),w[0]},t.prototype.updateImage=function(e,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(e.restoreSelection(),this.isDisabled(e)||(function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Bu(this,void 0,void 0,(function(){var f,d,p,m,v,g;return Fu(this,(function(y){switch(y.label){case 0:return[4,h$("editImage",a,u,s,l)];case 1:return y.sent()?[4,g$("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=k.getSelectedNodeByType(a,"image"))==null||(p=d.style,m={src:f,alt:s,href:l,style:bu(bu({},p===void 0?{}:p),c)},$.setNodes(a,m,{match:function(h){return k.checkNodeType(h,"image")}}),v=k.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(v)),[2]}}))}))})(e,r,n,o,i))},t})(),ldt=(function(){function t(){this.title=dt("image.viewLink"),this.iconSvg=e$,this.tag="button"}return t.prototype.getValue=function(e){var r=k.getSelectedNodeByType(e,"image");return r&&r.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},t})(),a8=(function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return k.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var o=k.getHoverbar(e);o&&o.hideAndClean();var i=n.style,a={style:bu(bu({},i===void 0?{}:i),{width:this.value,height:""})};$.setNodes(e,a,{match:function(u){return k.checkNodeType(u,"image")}})}}},t})(),cdt=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return He(e,t),e})(a8),fdt=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return He(e,t),e})(a8),ddt=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return He(e,t),e})(a8),MB={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},pdt={renderElems:[odt],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,m="";return f&&(m+="width: "+f+";"),p&&(m+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+m+'"/>'}}],parseElemsHtml:[idt],menus:[{key:"insertImage",factory:function(){return new adt},config:MB},{key:"deleteImage",factory:function(){return new udt}},{key:"editImage",factory:function(){return new sdt},config:MB},{key:"viewImageLink",factory:function(){return new ldt}},{key:"imageWidth30",factory:function(){return new cdt}},{key:"imageWidth50",factory:function(){return new fdt}},{key:"imageWidth100",factory:function(){return new ddt}}],editorPlugin:function(t){var e=t.isInline,r=t.isVoid;t.insertNode;var n=t;return n.isInline=function(o){return o.type==="image"||e(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},hdt={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=jt("div",{style:{margin:"5px 0"}},jt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},jt("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(i){var a=k.findPath(r,t),u={checked:i.target.checked};$.setNodes(r,u,{at:a})}}})),jt("span",null,e));return o}},gdt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!k.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!k.getSelectedElems(e).some((function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0}))},t.prototype.exec=function(e,r){var n=this.isActive(e);$.setNodes(e,{type:n?"paragraph":"todo"})},t})(),vdt={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=j(t);(e=e.filter((function(i){return!!yt.isText(i)||!!r.isInline(i)}))).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},mdt={renderElems:[hdt],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=j(t).find("li"),r=j('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+e[0].innerHTML,r[0]}}],parseElemsHtml:[vdt],menus:[{key:"todo",factory:function(){return new gdt}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(n){var o=t.selection;if(o&&q.isCollapsed(o)){var i=k.getSelectedNodeByType(t,"todo");if(i&&ft.string(i).length===0)return void $.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},r}},ydt={type:"blockquote",renderElem:function(t,e,r){return jt("blockquote",null,e)}},bdt={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t);return(e=e.filter((function(o){return!!yt.isText(o)||!!r.isInline(o)}))).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},wdt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!k.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!le(C.nodes(e,{match:function(r){var n=k.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";$.setNodes(e,{type:n},{mode:"highest"})}},t})(),Edt={key:"blockquote",factory:function(){return new wdt}},xdt=Ft([].slice),Cdt=J5("slice"),Sdt=Vn("species"),BE=Ht.Array,Ddt=Math.max;Dr({target:"Array",proto:!0,forced:!Cdt},{slice:function(t,e){var r,n,o,i=jf(this),a=Ob(i),u=Ph(t,a),s=Ph(e===void 0?a:e,a);if(By(i)&&(r=i.constructor,(Z5(r)&&(r===BE||By(r.prototype))||ei(r)&&(r=r[Sdt])===null)&&(r=void 0),r===BE||r===void 0))return xdt(i,u,s);for(n=new(r===void 0?BE:r)(Ddt(s-u,0)),o=0;u<s;u++,o++)u in i&&KH(n,o,i[u]);return n.length=o,n}});var Adt={renderElems:[ydt],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[bdt],menus:[Edt],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(o==null)return e();var i=le(C.nodes(t,{match:function(c){return k.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=k.findPath(t,a),s=C.end(t,u);if(Ut.equals(s,o.focus)){var l=ft.string(a);if(l&&l.slice(-1)===`
`)return t.deleteBackward("character"),void $.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
`)},n}},Odt=(function(){function t(){this.title=dt("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 t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!le(C.nodes(e,{match:function(r){return k.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var r=j('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",(function(i){var a=i.target;if(a!=null){i.preventDefault();var u=j(a).text();e.insertText(u)}})),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach((function(i){var a=j("<li>"+i+"</li>");n.append(a)})),n[0]},t})(),_dt={menus:[{key:"emotion",factory:function(){return new Odt},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},kdt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Tdt={selector:"font",preParseHtml:function(t){var e=j(t);if(Rf(e)!=="font")return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",kdt[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}},Bdt=Ft("".indexOf);Dr({target:"String",proto:!0,forced:!o$("includes")},{includes:function(t){return!!~Bdt(Ue(lo(this)),Ue(n$(t)),arguments.length>1?arguments[1]:void 0)}});var xa,Z0,Jv=function(t){return t&&t.Math==Math&&t},Wt=Jv(typeof globalThis=="object"&&globalThis)||Jv(typeof window=="object"&&window)||Jv(typeof self=="object"&&self)||Jv(typeof _y=="object"&&_y)||(function(){return this})()||Function("return this")(),u8=Function.prototype,zB=u8.apply,Fdt=u8.bind,HB=u8.call,v$=typeof Reflect=="object"&&Reflect.apply||(Fdt?HB.bind(zB):function(){return HB.apply(zB,arguments)}),m$=Function.prototype,tS=m$.bind,eS=m$.call,Pdt=tS&&tS.bind(eS),Ze=tS?function(t){return t&&Pdt(eS,t)}:function(t){return t&&function(){return eS.apply(t,arguments)}},tn=function(t){return typeof t=="function"},zn=function(t){try{return!!t()}catch{return!0}},xn=!zn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Id=Function.prototype.call,ai=Id.bind?Id.bind(Id):function(){return Id.apply(Id,arguments)},$B={}.propertyIsEnumerable,VB=Object.getOwnPropertyDescriptor,jdt=VB&&!$B.call({1:2},1)?function(t){var e=VB(this,t);return!!e&&e.enumerable}:$B,s8={f:jdt},ol=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ndt=Ze({}.toString),Idt=Ze("".slice),Ps=function(t){return Idt(Ndt(t),8,-1)},FE=Wt.Object,Ldt=Ze("".split),y$=zn((function(){return!FE("z").propertyIsEnumerable(0)}))?function(t){return Ps(t)=="String"?Ldt(t,""):FE(t)}:FE,Rdt=Wt.TypeError,l8=function(t){if(t==null)throw Rdt("Can't call method on "+t);return t},yi=function(t){return y$(l8(t))},Co=function(t){return typeof t=="object"?t!==null:tn(t)},Zn={},UB=function(t){return tn(t)?t:void 0},Ig=function(t,e){return arguments.length<2?UB(Zn[t])||UB(Wt[t]):Zn[t]&&Zn[t][e]||Wt[t]&&Wt[t][e]},b$=Ze({}.isPrototypeOf),PE=Ig("navigator","userAgent")||"",WB=Wt.process,GB=Wt.Deno,qB=WB&&WB.versions||GB&&GB.version,KB=qB&&qB.v8;KB&&(Z0=(xa=KB.split("."))[0]>0&&xa[0]<4?1:+(xa[0]+xa[1])),!Z0&&PE&&(!(xa=PE.match(/Edge\/(\d+)/))||xa[1]>=74)&&(xa=PE.match(/Chrome\/(\d+)/))&&(Z0=+xa[1]);var jy=Z0,Ko=!!Object.getOwnPropertySymbols&&!zn((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&jy&&jy<41})),c8=Ko&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mdt=Wt.Object,Ic=c8?function(t){return typeof t=="symbol"}:function(t){var e=Ig("Symbol");return tn(e)&&b$(e.prototype,Mdt(t))},zdt=Wt.String,Hdt=Wt.TypeError,w$=function(t){if(tn(t))return t;throw Hdt((function(e){try{return zdt(e)}catch{return"Object"}})(t)+" is not a function")},$dt=Wt.TypeError,Vdt=Object.defineProperty,ru=Wt["__core-js_shared__"]||(function(t,e){try{Vdt(Wt,t,{value:e,configurable:!0,writable:!0})}catch{Wt[t]=e}return e})("__core-js_shared__",{}),bl=Cb((function(t){(t.exports=function(e,r){return ru[e]||(ru[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Udt=Wt.Object,Lg=function(t){return Udt(l8(t))},Wdt=Ze({}.hasOwnProperty),se=Object.hasOwn||function(t,e){return Wdt(Lg(t),e)},Gdt=0,qdt=Math.random(),Kdt=Ze(1 .toString),Ny=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Kdt(++Gdt+qdt,36)},Ld=bl("wks"),js=Wt.Symbol,YB=js&&js.for,Ydt=c8?js:js&&js.withoutSetter||Ny,Un=function(t){if(!se(Ld,t)||!Ko&&typeof Ld[t]!="string"){var e="Symbol."+t;Ko&&se(js,t)?Ld[t]=js[t]:Ld[t]=c8&&YB?YB(e):Ydt(e)}return Ld[t]},Xdt=Wt.TypeError,Zdt=Un("toPrimitive"),Mf=function(t){var e=(function(r,n){if(!Co(r)||Ic(r))return r;var o,i,a=(o=r[Zdt])==null?void 0:w$(o);if(a){if(i=ai(a,r,n),!Co(i)||Ic(i))return i;throw Xdt("Can't convert object to primitive value")}return(function(u,s){var l,c;if(tn(l=u.toString)&&!Co(c=ai(l,u))||tn(l=u.valueOf)&&!Co(c=ai(l,u)))return c;throw $dt("Can't convert object to primitive value")})(r)})(t,"string");return Ic(e)?e:e+""},rS=Wt.document,Jdt=Co(rS)&&Co(rS.createElement),E$=function(t){return Jdt?rS.createElement(t):{}},x$=!xn&&!zn((function(){return Object.defineProperty(E$("div"),"a",{get:function(){return 7}}).a!=7})),XB=Object.getOwnPropertyDescriptor,f8={f:xn?XB:function(t,e){if(t=yi(t),e=Mf(e),x$)try{return XB(t,e)}catch{}if(se(t,e))return ol(!ai(s8.f,t,e),t[e])}},Qdt=/#|\.prototype\./,Rg=function(t,e){var r=ept[tpt(t)];return r==npt||r!=rpt&&(tn(e)?zn(e):!!e)},tpt=Rg.normalize=function(t){return String(t).replace(Qdt,".").toLowerCase()},ept=Rg.data={},rpt=Rg.NATIVE="N",npt=Rg.POLYFILL="P",opt=Rg,ZB=Ze(Ze.bind),C$=function(t,e){return w$(t),e===void 0?t:ZB?ZB(t,e):function(){return t.apply(e,arguments)}},ipt=Wt.String,apt=Wt.TypeError,il=function(t){if(Co(t))return t;throw apt(ipt(t)+" is not an object")},upt=Wt.TypeError,JB=Object.defineProperty,wl={f:xn?JB:function(t,e,r){if(il(t),e=Mf(e),il(r),x$)try{return JB(t,e,r)}catch{}if("get"in r||"set"in r)throw upt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Xo=xn?function(t,e,r){return wl.f(t,e,ol(1,r))}:function(t,e,r){return t[e]=r,t},spt=f8.f,lpt=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return v$(t,this,arguments)};return e.prototype=t.prototype,e},ja=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,m=f?Wt:d?Wt[c]:(Wt[c]||{}).prototype,v=f?Zn:Zn[c]||Xo(Zn,c,{})[c],g=v.prototype;for(o in e)r=!opt(f?o:c+(d?".":"#")+o,t.forced)&&m&&se(m,o),a=v[o],r&&(u=t.noTargetGet?(l=spt(m,o))&&l.value:m[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?C$(i,Wt):t.wrap&&r?lpt(i):p&&tn(i)?Ze(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Xo(s,"sham",!0),Xo(v,o,s),p&&(se(Zn,n=c+"Prototype")||Xo(Zn,n,{}),Xo(Zn[n],o,i),t.real&&g&&!g[o]&&Xo(g,o,i)))},Iy=Array.isArray||function(t){return Ps(t)=="Array"},cpt=Math.ceil,fpt=Math.floor,d8=function(t){var e=+t;return e!=e||e===0?0:(e>0?fpt:cpt)(e)},dpt=Math.min,Bb=function(t){return(e=t.length)>0?dpt(d8(e),9007199254740991):0;var e},nS=function(t,e,r){var n=Mf(e);n in t?wl.f(t,n,ol(0,r)):t[n]=r},S$={};S$[Un("toStringTag")]="z";var p8=String(S$)==="[object z]",ppt=Un("toStringTag"),hpt=Wt.Object,gpt=Ps((function(){return arguments})())=="Arguments",Fb=p8?Ps:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=hpt(t),ppt))=="string"?r:gpt?Ps(e):(n=Ps(e))=="Object"&&tn(e.callee)?"Arguments":n},vpt=Ze(Function.toString);tn(ru.inspectSource)||(ru.inspectSource=function(t){return vpt(t)});var D$=ru.inspectSource,A$=function(){},mpt=[],O$=Ig("Reflect","construct"),h8=/^\s*(?:class|function)\b/,ypt=Ze(h8.exec),bpt=!h8.exec(A$),Rd=function(t){if(!tn(t))return!1;try{return O$(A$,mpt,t),!0}catch{return!1}},wpt=!O$||zn((function(){var t;return Rd(Rd.call)||!Rd(Object)||!Rd((function(){t=!0}))||t}))?function(t){if(!tn(t))return!1;switch(Fb(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bpt||!!ypt(h8,D$(t))}:Rd,Ept=Un("species"),QB=Wt.Array,_$=function(t,e){return new((function(r){var n;return Iy(r)&&(n=r.constructor,(wpt(n)&&(n===QB||Iy(n.prototype))||Co(n)&&(n=n[Ept])===null)&&(n=void 0)),n===void 0?QB:n})(t))(e===0?0:e)},xpt=Un("species"),k$=Un("isConcatSpreadable"),tF=Wt.TypeError,Cpt=jy>=51||!zn((function(){var t=[];return t[k$]=!1,t.concat()[0]!==t})),Spt=jy>=51||!zn((function(){var t=[];return(t.constructor={})[xpt]=function(){return{foo:1}},t.concat(Boolean).foo!==1})),Dpt=function(t){if(!Co(t))return!1;var e=t[k$];return e!==void 0?!!e:Iy(t)};ja({target:"Array",proto:!0,forced:!Cpt||!Spt},{concat:function(t){var e,r,n,o,i,a=Lg(this),u=_$(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Dpt(i=e===-1?a:arguments[e])){if(s+(o=Bb(i))>9007199254740991)throw tF("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&nS(u,s,i[r])}else{if(s>=9007199254740991)throw tF("Maximum allowed index exceeded");nS(u,s++,i)}return u.length=s,u}});var Qv,Apt=Wt.String,Ly=function(t){if(Fb(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Apt(t)},Opt=Math.max,_pt=Math.min,oS=function(t,e){var r=d8(t);return r<0?Opt(r+e,0):_pt(r,e)},kpt=function(t){return function(e,r,n){var o,i=yi(e),a=Bb(i),u=oS(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Tpt={indexOf:kpt(!1)},Mg={},Bpt=Tpt.indexOf,eF=Ze([].push),T$=function(t,e){var r,n=yi(t),o=0,i=[];for(r in n)!se(Mg,r)&&se(n,r)&&eF(i,r);for(;e.length>o;)se(n,r=e[o++])&&(~Bpt(i,r)||eF(i,r));return i},Ry=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g8=Object.keys||function(t){return T$(t,Ry)},Fpt=xn?Object.defineProperties:function(t,e){il(t);for(var r,n=yi(e),o=g8(e),i=o.length,a=0;i>a;)wl.f(t,r=o[a++],n[r]);return t},Ppt=Ig("document","documentElement"),rF=bl("keys"),Pb=function(t){return rF[t]||(rF[t]=Ny(t))},B$=Pb("IE_PROTO"),jE=function(){},F$=function(t){return"<script>"+t+"<\/script>"},nF=function(t){t.write(F$("")),t.close();var e=t.parentWindow.Object;return t=null,e},J0=function(){try{Qv=new ActiveXObject("htmlfile")}catch{}var t,e;J0=typeof document<"u"?document.domain&&Qv?nF(Qv):((e=E$("iframe")).style.display="none",Ppt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(F$("document.F=Object")),t.close(),t.F):nF(Qv);for(var r=Ry.length;r--;)delete J0.prototype[Ry[r]];return J0()};Mg[B$]=!0;var My,Wp,zy,al=Object.create||function(t,e){var r;return t!==null?(jE.prototype=il(t),r=new jE,jE.prototype=null,r[B$]=t):r=J0(),e===void 0?r:Fpt(r,e)},jpt=Ry.concat("length","prototype"),P$={f:Object.getOwnPropertyNames||function(t){return T$(t,jpt)}},Npt=Wt.Array,Ipt=Math.max,oF=P$.f,iF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],j$={f:function(t){return iF&&Ps(t)=="Window"?(function(e){try{return oF(e)}catch{return(function(n,o,i){for(var a=Bb(n),u=oS(void 0,a),s=oS(a,a),l=Npt(Ipt(s-u,0)),c=0;u<s;u++,c++)nS(l,c,n[u]);return l.length=c,l})(iF)}})(t):oF(yi(t))}},NE={f:Object.getOwnPropertySymbols},Lpt=Ze([].slice),Hy=function(t,e,r,n){Xo(t,e,r)},v8={f:Un},Rpt=wl.f,er=function(t){var e=Zn.Symbol||(Zn.Symbol={});se(e,t)||Rpt(e,t,{value:v8.f(t)})},Mpt=p8?{}.toString:function(){return"[object "+Fb(this)+"]"},zpt=wl.f,aF=Un("toStringTag"),$y=function(t,e,r,n){if(t){var o=r?t:t.prototype;se(o,aF)||zpt(o,aF,{configurable:!0,value:e}),n&&!p8&&Xo(o,"toString",Mpt)}},uF=Wt.WeakMap,Hpt=tn(uF)&&/native code/.test(D$(uF)),iS=Wt.TypeError,$pt=Wt.WeakMap;if(Hpt||ru.state){var Yu=ru.state||(ru.state=new $pt),Vpt=Ze(Yu.get),sF=Ze(Yu.has),Upt=Ze(Yu.set);My=function(t,e){if(sF(Yu,t))throw new iS("Object already initialized");return e.facade=t,Upt(Yu,t,e),e},Wp=function(t){return Vpt(Yu,t)||{}},zy=function(t){return sF(Yu,t)}}else{var Ul=Pb("state");Mg[Ul]=!0,My=function(t,e){if(se(t,Ul))throw new iS("Object already initialized");return e.facade=t,Xo(t,Ul,e),e},Wp=function(t){return se(t,Ul)?t[Ul]:{}},zy=function(t){return se(t,Ul)}}var zf={set:My,get:Wp,has:zy,enforce:function(t){return zy(t)?Wp(t):My(t,{})},getterFor:function(t){return function(e){var r;if(!Co(e)||(r=Wp(e)).type!==t)throw iS("Incompatible receiver, "+t+" required");return r}}},lF=Ze([].push),Ca=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=Lg(s),v=y$(m),g=C$(l,c),y=Bb(v),h=0,b=f||_$,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:lF(w,d)}else switch(t){case 4:return!1;case 7:lF(w,d)}return i?-1:n||o?o:w}},jb=[Ca(0),Ca(1),Ca(2),Ca(3),Ca(4),Ca(5),Ca(6),Ca(7)][0],gn=Pb("hidden"),cF=Un("toPrimitive"),Wpt=zf.set,fF=zf.getterFor("Symbol"),So=Object.prototype,La=Wt.Symbol,Va=La&&La.prototype,dF=Wt.TypeError,IE=Wt.QObject,Md=Ig("JSON","stringify"),N$=f8.f,Ra=wl.f,I$=j$.f,Gpt=s8.f,L$=Ze([].push),ta=bl("symbols"),zg=bl("op-symbols"),LE=bl("string-to-symbol-registry"),RE=bl("symbol-to-string-registry"),qpt=bl("wks"),ME=!IE||!IE.prototype||!IE.prototype.findChild,aS=xn&&zn((function(){return al(Ra({},"a",{get:function(){return Ra(this,"a",{value:7}).a}})).a!=7}))?function(t,e,r){var n=N$(So,e);n&&delete So[e],Ra(t,e,r),n&&t!==So&&Ra(So,e,n)}:Ra,zE=function(t,e){var r=ta[t]=al(Va);return Wpt(r,{type:"Symbol",tag:t,description:e}),xn||(r.description=e),r},Vy=function(t,e,r){t===So&&Vy(zg,e,r),il(t);var n=Mf(e);return il(r),se(ta,n)?(r.enumerable?(se(t,gn)&&t[gn][n]&&(t[gn][n]=!1),r=al(r,{enumerable:ol(0,!1)})):(se(t,gn)||Ra(t,gn,ol(1,{})),t[gn][n]=!0),aS(t,n,r)):Ra(t,n,r)},pF=function(t,e){il(t);var r=yi(e),n=g8(r).concat(uS(r));return jb(n,(function(o){xn&&!ai(R$,r,o)||Vy(t,o,r[o])})),t},R$=function(t){var e=Mf(t),r=ai(Gpt,this,e);return!(this===So&&se(ta,e)&&!se(zg,e))&&(!(r||!se(this,e)||!se(ta,e)||se(this,gn)&&this[gn][e])||r)},hF=function(t,e){var r=yi(t),n=Mf(e);if(r!==So||!se(ta,n)||se(zg,n)){var o=N$(r,n);return!o||!se(ta,n)||se(r,gn)&&r[gn][n]||(o.enumerable=!0),o}},gF=function(t){var e=I$(yi(t)),r=[];return jb(e,(function(n){se(ta,n)||se(Mg,n)||L$(r,n)})),r},uS=function(t){var e=t===So,r=I$(e?zg:yi(t)),n=[];return jb(r,(function(o){!se(ta,o)||e&&!se(So,o)||L$(n,ta[o])})),n};if(Ko||(Va=(La=function(){if(b$(Va,this))throw dF("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Ly(arguments[0]):void 0,e=Ny(t),r=function(n){this===So&&ai(r,zg,n),se(this,gn)&&se(this[gn],e)&&(this[gn][e]=!1),aS(this,e,ol(1,n))};return xn&&ME&&aS(So,e,{configurable:!0,set:r}),zE(e,t)}).prototype,Hy(Va,"toString",(function(){return fF(this).tag})),Hy(La,"withoutSetter",(function(t){return zE(Ny(t),t)})),s8.f=R$,wl.f=Vy,f8.f=hF,P$.f=j$.f=gF,NE.f=uS,v8.f=function(t){return zE(Un(t),t)},xn&&Ra(Va,"description",{configurable:!0,get:function(){return fF(this).description}})),ja({global:!0,wrap:!0,forced:!Ko,sham:!Ko},{Symbol:La}),jb(g8(qpt),(function(t){er(t)})),ja({target:"Symbol",stat:!0,forced:!Ko},{for:function(t){var e=Ly(t);if(se(LE,e))return LE[e];var r=La(e);return LE[e]=r,RE[r]=e,r},keyFor:function(t){if(!Ic(t))throw dF(t+" is not a symbol");if(se(RE,t))return RE[t]},useSetter:function(){ME=!0},useSimple:function(){ME=!1}}),ja({target:"Object",stat:!0,forced:!Ko,sham:!xn},{create:function(t,e){return e===void 0?al(t):pF(al(t),e)},defineProperty:Vy,defineProperties:pF,getOwnPropertyDescriptor:hF}),ja({target:"Object",stat:!0,forced:!Ko},{getOwnPropertyNames:gF,getOwnPropertySymbols:uS}),ja({target:"Object",stat:!0,forced:zn((function(){NE.f(1)}))},{getOwnPropertySymbols:function(t){return NE.f(Lg(t))}}),Md){var Kpt=!Ko||zn((function(){var t=La();return Md([t])!="[null]"||Md({a:t})!="{}"||Md(Object(t))!="{}"}));ja({target:"JSON",stat:!0,forced:Kpt},{stringify:function(t,e,r){var n=Lpt(arguments),o=e;if((Co(e)||t!==void 0)&&!Ic(t))return Iy(e)||(e=function(i,a){if(tn(o)&&(a=ai(o,this,i,a)),!Ic(a))return a}),n[1]=e,v$(Md,null,n)}})}if(!Va[cF]){var Ypt=Va.valueOf;Hy(Va,cF,(function(t){return ai(Ypt,this)}))}$y(La,"Symbol"),Mg[gn]=!0,er("asyncIterator"),er("hasInstance"),er("isConcatSpreadable"),er("iterator"),er("match"),er("matchAll"),er("replace"),er("search"),er("species"),er("split"),er("toPrimitive"),er("toStringTag"),er("unscopables"),$y(Wt.JSON,"JSON",!0);var Ua,vF,mF,Xpt=Zn.Symbol,Ns={},M$=Function.prototype,Zpt=xn&&Object.getOwnPropertyDescriptor,yF=se(M$,"name"),Jpt={PROPER:yF&&(function(){}).name==="something",CONFIGURABLE:yF&&(!xn||xn&&Zpt(M$,"name").configurable)},Qpt=!zn((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bF=Pb("IE_PROTO"),sS=Wt.Object,tht=sS.prototype,lS=Qpt?sS.getPrototypeOf:function(t){var e=Lg(t);if(se(e,bF))return e[bF];var r=e.constructor;return tn(r)&&e instanceof r?r.prototype:e instanceof sS?tht:null},cS=Un("iterator"),z$=!1;[].keys&&("next"in(mF=[].keys())?(vF=lS(lS(mF)))!==Object.prototype&&(Ua=vF):z$=!0);var eht=Ua==null||zn((function(){var t={};return Ua[cS].call(t)!==t}));Ua=eht?{}:al(Ua),tn(Ua[cS])||Hy(Ua,cS,(function(){return this}));var H$={IteratorPrototype:Ua,BUGGY_SAFARI_ITERATORS:z$},rht=H$.IteratorPrototype,nht=function(){return this};Wt.String,Wt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var t={};try{Ze(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}})();var oht=Jpt.PROPER,HE=H$.BUGGY_SAFARI_ITERATORS,iht=Un("iterator"),aht=function(){return this},$$=function(t,e,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=al(rht,{next:ol(1,h)}),$y(g,w,!1,!0),Ns[w]=nht})(r,e,n);var u,s,l=function(g){if(g===o&&m)return m;if(!HE&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[iht]||d["@@iterator"]||o&&d[o],m=!HE&&p||l(o),v=e=="Array"&&d.entries||p;return v&&(u=lS(v.call(new t)))!==Object.prototype&&u.next&&($y(u,c,!0,!0),Ns[c]=aht),oht&&o=="values"&&p&&p.name!=="values"&&(f=!0,m=function(){return ai(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||ja({target:e,proto:!0,forced:HE||f},s)),Ns[e]=m,s},uht=zf.set,sht=zf.getterFor("Array Iterator");$$(Array,"Array",(function(t,e){uht(this,{type:"Array Iterator",target:yi(t),index:0,kind:e})}),(function(){var t=sht(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),Ns.Arguments=Ns.Array;var wF=Un("toStringTag");for(var $E 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 EF=Wt[$E],VE=EF&&EF.prototype;VE&&Fb(VE)!==wF&&Xo(VE,wF,$E),Ns[$E]=Ns.Array}var lht=Xpt;er("asyncDispose"),er("dispose"),er("matcher"),er("metadata"),er("observable"),er("patternMatch"),er("replaceAll");var t0=lht,cht=Ze("".charAt),xF=Ze("".charCodeAt),fht=Ze("".slice),dht=function(t){return function(e,r){var n,o,i=Ly(l8(e)),a=d8(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=xF(i,a))<55296||n>56319||a+1===u||(o=xF(i,a+1))<56320||o>57343?t?cht(i,a):n:t?fht(i,a,a+2):o-56320+(n-55296<<10)+65536}},pht=dht(!0),hht=zf.set,ght=zf.getterFor("String Iterator");$$(String,"String",(function(t){hht(this,{type:"String Iterator",string:Ly(t),index:0})}),(function(){var t,e=ght(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=pht(r,n),e.index+=t.length,{value:t,done:!1})}));var vht=v8.f("iterator"),mht=Cb((function(t){function e(r){return typeof t0=="function"&&typeof vht=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof t0=="function"&&n.constructor===t0&&n!==t0.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),V$=(function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t})(mht),yht=Ab.EXISTS,bht=Nf.f,U$=Function.prototype,wht=Ft(U$.toString),W$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Eht=Ft(W$.exec);Io&&!yht&&bht(U$,"name",{configurable:!0,get:function(){try{return Eht(W$,wht(this))[1]}catch{return""}}});var G$=(function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n&&n[r]?n[r]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!le(C.nodes(e,{match:function(r){return k.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0])},t.prototype.exec=function(e,r){var n=this.mark;r?e.addMark(n,r):e.removeMark(n)},t})(),xht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("fontSize.title"),r.iconSvg=qct,r.mark="fontSize",r}return He(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:dt("fontSize.default"),value:""}),i.forEach((function(u){if(typeof u=="string")n.push({text:u,value:u});else if(V$(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}}));var a=this.getValue(r);return n.forEach((function(u){u.value===a?u.selected=!0:delete u.selected})),n},e})(G$),Cht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("fontFamily.title"),r.iconSvg=Kct,r.mark="fontFamily",r.selectPanelWidth=150,r}return He(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:dt("fontFamily.default"),value:""}),i.forEach((function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(V$(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}}));var a=this.getValue(r);return n.forEach((function(u){u.value===a?u.selected=!0:delete u.selected})),n},e})(G$),Sht={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,i=e;return n&&nl(i,{fontSize:n}),o&&nl(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!yt.isText(t))return e;var r,n=t,o=n.fontSize,i=n.fontFamily;return o||i?((n8(e)||Rf(r=j(e))!=="span")&&(r=j("<span>"+e+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),Lf(r)):e},preParseHtml:[Tdt],parseStyleHtml:function(t,e,r){var n=j(t);if(!yt.isText(e))return e;var o=e,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=To(n,"font-size"),s=a.find((function(p){return p.value&&p.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=To(n,"font-family").replace(/"/g,""),d=c.find((function(p){return p.value&&p.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new xht},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 Cht},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Dht={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=j(t),r=To(e,"padding-left");return/\dem/.test(r)&&e.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}},q$=(function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var r=le(C.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":le(n,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=le(C.nodes(e,{match:function(n){var o=k.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t})(),Aht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("indent.decrease"),r.iconSvg=Yct,r}return He(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},e.prototype.exec=function(r,n){$.setNodes(r,{indent:null},{match:function(o){return Et.isElement(o)}})},e})(q$),Oht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("indent.increase"),r.iconSvg=Xct,r}return He(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},e.prototype.exec=function(r,n){$.setNodes(r,{indent:"2em"},{match:function(o){return Et.isElement(o)},mode:"highest"})},e})(q$),_ht={renderStyle:function(t,e){if(!Et.isElement(t))return e;var r=t.indent,n=e;return r&&nl(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!Et.isElement(t))return e;var r=t.indent;if(!r)return e;var n=j(e);return n.css("text-indent",r),Lf(n)},preParseHtml:[Dht],parseStyleHtml:function(t,e,r){var n=j(t);if(!Et.isElement(e))return e;var o=e,i=To(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Oht}},{key:"delIndent",factory:function(){return new Aht}}]},Nb=(function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=le(C.nodes(e,{match:function(n){var o=k.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!k.getSelectedElems(e).some((function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0}))},t})(),kht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("justify.left"),r.iconSvg=Zct,r}return He(e,t),e.prototype.exec=function(r,n){$.setNodes(r,{textAlign:"left"},{match:function(o){return Et.isElement(o)&&!r.isInline(o)}})},e})(Nb),Tht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("justify.right"),r.iconSvg=Jct,r}return He(e,t),e.prototype.exec=function(r,n){$.setNodes(r,{textAlign:"right"},{match:function(o){return Et.isElement(o)&&!r.isInline(o)}})},e})(Nb),Bht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("justify.center"),r.iconSvg=Qct,r}return He(e,t),e.prototype.exec=function(r,n){$.setNodes(r,{textAlign:"center"},{match:function(o){return Et.isElement(o)&&!r.isInline(o)}})},e})(Nb),Fht=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=dt("justify.justify"),r.iconSvg=tft,r}return He(e,t),e.prototype.exec=function(r,n){$.setNodes(r,{textAlign:"justify"},{match:function(o){return Et.isElement(o)&&!r.isInline(o)}})},e})(Nb),Pht={renderStyle:function(t,e){if(!Et.isElement(t))return e;var r=t.textAlign,n=e;return r&&nl(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!Et.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=j(e);return n.css("text-align",r),Lf(n)},parseStyleHtml:function(t,e,r){var n=j(t);if(!Et.isElement(e))return e;var o=e,i=To(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new kht}},{key:"justifyRight",factory:function(){return new Tht}},{key:"justifyCenter",factory:function(){return new Bht}},{key:"justifyJustify",factory:function(){return new Fht}}]},jht=(function(){function t(){this.title=dt("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 t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:dt("lineHeight.default"),value:""}),o.forEach((function(a){r.push({text:a,value:a})}));var i=this.getValue(e);return r.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),r},t.prototype.getMatchNode=function(e){var r=le(C.nodes(e,{match:function(n){var o=k.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getMatchNode(e);return r==null?"":Et.isElement(r)&&r.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,r){$.setNodes(e,{lineHeight:r.toString()},{mode:"highest"})},t})(),Nht={renderStyle:function(t,e){if(!Et.isElement(t))return e;var r=t.lineHeight,n=e;return r&&nl(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!Et.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=j(e);return n.css("line-height",r),Lf(n)},parseStyleHtml:function(t,e,r){var n=j(t);if(!Et.isElement(e))return e;var o=e,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=To(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new jht},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Iht=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.redo=="function"&&e.redo()},t})(),Lht=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.undo=="function"&&e.undo()},t})(),Rht={menus:[{key:"redo",factory:function(){return new Iht}},{key:"undo",factory:function(){return new Lht}}]},Mht={type:"divider",renderElem:function(t,e,r){return uf("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:k.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[uf("hr")])}},zht=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!k.getSelectedElems(e).some((function(r){if(e.isVoid(r))return!0;var n=k.getNodeType(r);return n==="table"||n==="pre"||void 0}))},t.prototype.exec=function(e,r){$.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t})(),Hht={renderElems:[Mht],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new zht}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="divider"||e(o)},n.normalizeNode=function(o){var i=le(o,2),a=i[0],u=i[1];if(k.getNodeType(a)!=="divider")return r([a,u]);k.isLastNode(n,a)&&$.insertNodes(n,k.genEmptyParagraph(),{at:[u[0]+1]})},n}},$ht=_b.map;Dr({target:"Array",proto:!0,forced:!J5("map")},{map:function(t){return $ht(this,t,arguments.length>1?arguments[1]:void 0)}});var Vht=Ft([].join),Uht=Sb!=Object,Wht=ZH("join",",");Dr({target:"Array",proto:!0,forced:Uht||!Wht},{join:function(t){return Vht(jf(this),t===void 0?",":t)}});var Ght=(function(){function t(){this.title=dt("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 t.prototype.getSelectCodeElem=function(e){var r=k.getSelectedNodeByType(e,"code");if(r==null)return null;var n=k.getParentNode(e,r);return n==null||k.getNodeType(n)!=="pre"?null:r},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);return r==null?"":r.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var r=k.getSelectedElems(e);return!!r.some((function(n){return e.isVoid(n)}))||!r.some((function(n){var o=k.getNodeType(n);if(o==="pre"||o==="paragraph")return!0}))},t.prototype.exec=function(e,r){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,r.toString())},t.prototype.changeToPlainText=function(e){var r=this.getSelectCodeElem(e);if(r!=null){var n=ft.string(r);$.removeNodes(e,{mode:"highest"});var o=n.split(`
`).map((function(i){return{type:"paragraph",children:[{text:i}]}}));$.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,r){var n,o,i=[],a=C.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=XH(a),s=u.next();!s.done;s=u.next()){var l=le(s.value,1)[0];l&&i.push(ft.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}$.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
`)}]}]};$.insertNodes(e,c,{mode:"highest"})},t})(),qht={key:"codeBlock",factory:function(){return new Ght}};Dr({target:"String",proto:!0,forced:Dp("anchor")},{anchor:function(t){return Sp(this,"a","name",t)}}),e8("match",(function(t,e,r){return[function(n){var o=lo(this),i=n==null?void 0:Db(n,t);return i?nr(i,n,o):new RegExp(n)[t](Ue(o))},function(n){var o=In(this),i=Ue(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Nh(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Nh(o,i))!==null;){var f=Ue(s[0]);l[c]=f,f===""&&(o.lastIndex=r8(i,Fg(o.lastIndex),u)),c++}return c===0?null:l}]}));var Kht={type:"pre",renderElem:function(t,e,r){return jt("pre",null,e)}},Yht={type:"code",renderElem:function(t,e,r){return jt("code",null,e)}},Xht={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t);return(e=e.filter((function(o){return k.getNodeType(o)==="code"}))).length===0&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter((function(o){return k.getNodeType(o)==="code"}))}}},Zht={menus:[qht],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=k.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(l,c){var f=c.selection;if(f==null)return"";var d=ft.string(l),p=f.anchor.offset,m=d.slice(0,p).split(`
`),v=m.length;return v===0?"":m[v-1]})(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
`+s)}}o.insertText(`
`)}else e()},o.normalizeNode=function(i){var a=le(i,2),u=a[0],s=a[1],l=k.getNodeType(u);return l==="code"&&s.length<=1&&$.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(k.isLastNode(o,u)&&$.insertNodes(o,k.genEmptyParagraph(),{at:[s[0]+1]}),k.getNodeType(u.children[0])!=="code"&&($.unwrapNodes(o),$.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(k.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");C.insertText(o,a)}else n(i)},o},renderElems:[Kht,Yht],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=j(t);if(Rf(e)!=="code")return t;var r=e.find("xmp");if(r.length===0)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:j(t)[0].textContent||""}]}}},Xht]},Jht=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,r){e.isFullScreen?e.unFullScreen():e.fullScreen()},t})(),Qht={menus:[{key:"fullScreen",factory:function(){return new Jht}}]},tgt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!!q.isExpanded(r)},t.prototype.exec=function(e,r){var n=e.selection;if(n!=null){var o=[n.anchor.path[0]];$.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(C.start(e,o))}},t})(),egt=[fft,Vft,Sht,_ht,Pht,Nht,pdt,Hht,_dt,tdt,Zht,Adt,Rft,jct,mdt,Rht,Qht,{menus:[{key:"enter",factory:function(){return new tgt}}]}];Sn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Sn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var CF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Sa,Q0,e0=function(t){return t&&t.Math==Math&&t},It=e0(typeof globalThis=="object"&&globalThis)||e0(typeof window=="object"&&window)||e0(typeof self=="object"&&self)||e0(typeof CF=="object"&&CF)||(function(){return this})()||Function("return this")(),K$=Function.prototype,fS=K$.bind,dS=K$.call,rgt=fS&&fS.bind(dS),Yt=fS?function(t){return t&&rgt(dS,t)}:function(t){return t&&function(){return dS.apply(t,arguments)}},Ke=function(t){try{return!!t()}catch{return!0}},ngt=Yt({}.toString),ogt=Yt("".slice),Wi=function(t){return ogt(ngt(t),8,-1)},UE=It.Object,igt=Yt("".split),Y$=Ke((function(){return!UE("z").propertyIsEnumerable(0)}))?function(t){return Wi(t)=="String"?igt(t,""):UE(t)}:UE,agt=It.TypeError,Ib=function(t){if(t==null)throw agt("Can't call method on "+t);return t},Hf=function(t){return Y$(Ib(t))},ugt=Object.defineProperty,y8=function(t,e){try{ugt(It,t,{value:e,configurable:!0,writable:!0})}catch{It[t]=e}return e},nu=It["__core-js_shared__"]||y8("__core-js_shared__",{}),b8=m8((function(t){(t.exports=function(e,r){return nu[e]||(nu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),sgt=It.Object,Hg=function(t){return sgt(Ib(t))},lgt=Yt({}.hasOwnProperty),Or=Object.hasOwn||function(t,e){return lgt(Hg(t),e)},cgt=0,fgt=Math.random(),dgt=Yt(1 .toString),w8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+dgt(++cgt+fgt,36)},Je=function(t){return typeof t=="function"},pgt=function(t){return Je(t)?t:void 0},$g=function(t,e){return arguments.length<2?pgt(It[t]):It[t]&&It[t][e]},WE=$g("navigator","userAgent")||"",SF=It.process,DF=It.Deno,AF=SF&&SF.versions||DF&&DF.version,OF=AF&&AF.v8;OF&&(Q0=(Sa=OF.split("."))[0]>0&&Sa[0]<4?1:+(Sa[0]+Sa[1])),!Q0&&WE&&(!(Sa=WE.match(/Edge\/(\d+)/))||Sa[1]>=74)&&(Sa=WE.match(/Chrome\/(\d+)/))&&(Q0=+Sa[1]);var r0,pS=Q0,hS=!!Object.getOwnPropertySymbols&&!Ke((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pS&&pS<41})),E8=hS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",zd=b8("wks"),Is=It.Symbol,_F=Is&&Is.for,hgt=E8?Is:Is&&Is.withoutSetter||w8,$r=function(t){if(!Or(zd,t)||!hS&&typeof zd[t]!="string"){var e="Symbol."+t;hS&&Or(Is,t)?zd[t]=Is[t]:zd[t]=E8&&_F?_F(e):hgt(e)}return zd[t]},Xe=function(t){return typeof t=="object"?t!==null:Je(t)},ggt=It.String,vgt=It.TypeError,Dn=function(t){if(Xe(t))return t;throw vgt(ggt(t)+" is not an object")},wu=!Ke((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),gS=It.document,mgt=Xe(gS)&&Xe(gS.createElement),x8=function(t){return mgt?gS.createElement(t):{}},X$=!wu&&!Ke((function(){return Object.defineProperty(x8("div"),"a",{get:function(){return 7}}).a!=7})),Hd=Function.prototype.call,Br=Hd.bind?Hd.bind(Hd):function(){return Hd.apply(Hd,arguments)},Uy=Yt({}.isPrototypeOf),ygt=It.Object,GE=E8?function(t){return typeof t=="symbol"}:function(t){var e=$g("Symbol");return Je(e)&&Uy(e.prototype,ygt(t))},bgt=It.String,vS=function(t){try{return bgt(t)}catch{return"Object"}},wgt=It.TypeError,C8=function(t){if(Je(t))return t;throw wgt(vS(t)+" is not a function")},Ih=function(t,e){var r=t[e];return r==null?void 0:C8(r)},Egt=It.TypeError,xgt=It.TypeError,Cgt=$r("toPrimitive"),S8=function(t){var e=(function(r,n){if(!Xe(r)||GE(r))return r;var o,i=Ih(r,Cgt);if(i){if(o=Br(i,r,n),!Xe(o)||GE(o))return o;throw xgt("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Je(s=a.toString)&&!Xe(l=Br(s,a))||Je(s=a.valueOf)&&!Xe(l=Br(s,a)))return l;throw Egt("Can't convert object to primitive value")})(r)})(t,"string");return GE(e)?e:e+""},Sgt=It.TypeError,kF=Object.defineProperty,El={f:wu?kF:function(t,e,r){if(Dn(t),e=S8(e),Dn(r),X$)try{return kF(t,e,r)}catch{}if("get"in r||"set"in r)throw Sgt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Dgt=Math.ceil,Agt=Math.floor,Vg=function(t){var e=+t;return e!=e||e===0?0:(e>0?Agt:Dgt)(e)},Ogt=Math.max,_gt=Math.min,mS=function(t,e){var r=Vg(t);return r<0?Ogt(r+e,0):_gt(r,e)},kgt=Math.min,Z$=function(t){return t>0?kgt(Vg(t),9007199254740991):0},$f=function(t){return Z$(t.length)},TF=function(t){return function(e,r,n){var o,i=Hf(e),a=$f(i),u=mS(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},J$={includes:TF(!0),indexOf:TF(!1)},Lb={},Tgt=J$.indexOf,BF=Yt([].push),Q$=function(t,e){var r,n=Hf(t),o=0,i=[];for(r in n)!Or(Lb,r)&&Or(n,r)&&BF(i,r);for(;e.length>o;)Or(n,r=e[o++])&&(~Tgt(i,r)||BF(i,r));return i},Wy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bgt=Object.keys||function(t){return Q$(t,Wy)},Fgt=wu?Object.defineProperties:function(t,e){Dn(t);for(var r,n=Hf(e),o=Bgt(e),i=o.length,a=0;i>a;)El.f(t,r=o[a++],n[r]);return t},Pgt=$g("document","documentElement"),FF=b8("keys"),D8=function(t){return FF[t]||(FF[t]=w8(t))},tV=D8("IE_PROTO"),qE=function(){},eV=function(t){return"<script>"+t+"<\/script>"},PF=function(t){t.write(eV("")),t.close();var e=t.parentWindow.Object;return t=null,e},tm=function(){try{r0=new ActiveXObject("htmlfile")}catch{}var t,e;tm=typeof document<"u"?document.domain&&r0?PF(r0):((e=x8("iframe")).style.display="none",Pgt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(eV("document.F=Object")),t.close(),t.F):PF(r0);for(var r=Wy.length;r--;)delete tm.prototype[Wy[r]];return tm()};Lb[tV]=!0;var A8=Object.create||function(t,e){var r;return t!==null?(qE.prototype=Dn(t),r=new qE,qE.prototype=null,r[tV]=t):r=tm(),e===void 0?r:Fgt(r,e)},yS=$r("unscopables"),bS=Array.prototype;bS[yS]==null&&El.f(bS,yS,{configurable:!0,value:A8(null)});var Gp=function(t){bS[yS][t]=!0},gf={},jgt=Yt(Function.toString);Je(nu.inspectSource)||(nu.inspectSource=function(t){return jgt(t)});var Gy,qp,qy,O8=nu.inspectSource,jF=It.WeakMap,rV=Je(jF)&&/native code/.test(O8(jF)),Rb=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ou=wu?function(t,e,r){return El.f(t,e,Rb(1,r))}:function(t,e,r){return t[e]=r,t},wS=It.TypeError,Ngt=It.WeakMap;if(rV||nu.state){var Xu=nu.state||(nu.state=new Ngt),Igt=Yt(Xu.get),NF=Yt(Xu.has),Lgt=Yt(Xu.set);Gy=function(t,e){if(NF(Xu,t))throw new wS("Object already initialized");return e.facade=t,Lgt(Xu,t,e),e},qp=function(t){return Igt(Xu,t)||{}},qy=function(t){return NF(Xu,t)}}else{var Wl=D8("state");Lb[Wl]=!0,Gy=function(t,e){if(Or(t,Wl))throw new wS("Object already initialized");return e.facade=t,ou(t,Wl,e),e},qp=function(t){return Or(t,Wl)?t[Wl]:{}},qy=function(t){return Or(t,Wl)}}var Ls,IF,LF,di={set:Gy,get:qp,has:qy,enforce:function(t){return qy(t)?qp(t):Gy(t,{})},getterFor:function(t){return function(e){var r;if(!Xe(e)||(r=qp(e)).type!==t)throw wS("Incompatible receiver, "+t+" required");return r}}},RF={}.propertyIsEnumerable,MF=Object.getOwnPropertyDescriptor,Rgt={f:MF&&!RF.call({1:2},1)?function(t){var e=MF(this,t);return!!e&&e.enumerable}:RF},zF=Object.getOwnPropertyDescriptor,nV={f:wu?zF:function(t,e){if(t=Hf(t),e=S8(e),X$)try{return zF(t,e)}catch{}if(Or(t,e))return Rb(!Br(Rgt.f,t,e),t[e])}},oV=Function.prototype,Mgt=wu&&Object.getOwnPropertyDescriptor,HF=Or(oV,"name"),_8={PROPER:HF&&(function(){}).name==="something",CONFIGURABLE:HF&&(!wu||wu&&Mgt(oV,"name").configurable)},ea=m8((function(t){var e=_8.CONFIGURABLE,r=di.get,n=di.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Je(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Or(u,"name")||e&&u.name!==p)&&ou(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==It?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ou(i,a,u)):f?i[a]=u:y8(a,u)})(Function.prototype,"toString",(function(){return Je(this)&&r(this).source||O8(this)}))})),zgt=Wy.concat("length","prototype"),Ky={f:Object.getOwnPropertyNames||function(t){return Q$(t,zgt)}},Hgt={f:Object.getOwnPropertySymbols},$gt=Yt([].concat),Vgt=$g("Reflect","ownKeys")||function(t){var e=Ky.f(Dn(t)),r=Hgt.f;return r?$gt(e,r(t)):e},Ugt=function(t,e){for(var r=Vgt(e),n=El.f,o=nV.f,i=0;i<r.length;i++){var a=r[i];Or(t,a)||n(t,a,o(e,a))}},Wgt=/#|\.prototype\./,Ug=function(t,e){var r=qgt[Ggt(t)];return r==Ygt||r!=Kgt&&(Je(e)?Ke(e):!!e)},Ggt=Ug.normalize=function(t){return String(t).replace(Wgt,".").toLowerCase()},qgt=Ug.data={},Kgt=Ug.NATIVE="N",Ygt=Ug.POLYFILL="P",ES=Ug,Xgt=nV.f,Eu=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?It:l?It[u]||y8(u,{}):(It[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Xgt(r,n))&&a.value:r[n],!ES(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ugt(i,o)}(t.sham||o&&o.sham)&&ou(i,"sham",!0),ea(r,n,i,t)}},Zgt=!Ke((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),$F=D8("IE_PROTO"),xS=It.Object,Jgt=xS.prototype,Yy=Zgt?xS.getPrototypeOf:function(t){var e=Hg(t);if(Or(e,$F))return e[$F];var r=e.constructor;return Je(r)&&e instanceof r?r.prototype:e instanceof xS?Jgt:null},CS=$r("iterator"),iV=!1;[].keys&&("next"in(LF=[].keys())?(IF=Yy(Yy(LF)))!==Object.prototype&&(Ls=IF):iV=!0);var Qgt=Ls==null||Ke((function(){var t={};return Ls[CS].call(t)!==t}));Qgt&&(Ls={}),Je(Ls[CS])||ea(Ls,CS,(function(){return this}));var k8={IteratorPrototype:Ls,BUGGY_SAFARI_ITERATORS:iV},tvt=El.f,VF=$r("toStringTag"),SS=function(t,e,r){t&&!Or(t=r?t:t.prototype,VF)&&tvt(t,VF,{configurable:!0,value:e})},evt=k8.IteratorPrototype,rvt=function(){return this},nvt=It.String,ovt=It.TypeError,Xy=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,r={};try{(t=Yt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Dn(n),(function(i){if(typeof i=="object"||Je(i))return i;throw ovt("Can't set "+nvt(i)+" as a prototype")})(o),e?t(n,o):n.__proto__=o,n}})():void 0),ivt=_8.PROPER,avt=_8.CONFIGURABLE,UF=k8.IteratorPrototype,KE=k8.BUGGY_SAFARI_ITERATORS,$d=$r("iterator"),uvt=function(){return this},aV=function(t,e,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=A8(evt,{next:Rb(1,h)}),SS(g,w,!1),gf[w]=rvt})(r,e,n);var u,s,l=function(g){if(g===o&&m)return m;if(!KE&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[$d]||d["@@iterator"]||o&&d[o],m=!KE&&p||l(o),v=e=="Array"&&d.entries||p;return v&&(u=Yy(v.call(new t)))!==Object.prototype&&u.next&&(Yy(u)!==UF&&(Xy?Xy(u,UF):Je(u[$d])||ea(u,$d,uvt)),SS(u,c,!0)),ivt&&o=="values"&&p&&p.name!=="values"&&(avt?ou(d,"name","values"):(f=!0,m=function(){return Br(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Eu({target:e,proto:!0,forced:KE||f},s)),d[$d]!==m&&ea(d,$d,m,{name:o}),gf[e]=m,s},svt=di.set,lvt=di.getterFor("Array Iterator"),Ap=aV(Array,"Array",(function(t,e){svt(this,{type:"Array Iterator",target:Hf(t),index:0,kind:e})}),(function(){var t=lvt(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");gf.Arguments=gf.Array,Gp("keys"),Gp("values"),Gp("entries");var uV={};uV[$r("toStringTag")]="z";var T8=String(uV)==="[object z]",cvt=$r("toStringTag"),fvt=It.Object,dvt=Wi((function(){return arguments})())=="Arguments",Mb=T8?Wi:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=fvt(t),cvt))=="string"?r:dvt?Wi(e):(n=Wi(e))=="Object"&&Je(e.callee)?"Arguments":n},pvt=T8?{}.toString:function(){return"[object "+Mb(this)+"]"};T8||ea(Object.prototype,"toString",pvt,{unsafe:!0});var hvt=It.String,ji=function(t){if(Mb(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return hvt(t)},gvt=Yt("".charAt),WF=Yt("".charCodeAt),vvt=Yt("".slice),mvt=function(t){return function(e,r){var n,o,i=ji(Ib(e)),a=Vg(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=WF(i,a))<55296||n>56319||a+1===u||(o=WF(i,a+1))<56320||o>57343?t?gvt(i,a):n:t?vvt(i,a,a+2):o-56320+(n-55296<<10)+65536}},sV={charAt:mvt(!0)},yvt=sV.charAt,bvt=di.set,wvt=di.getterFor("String Iterator");aV(String,"String",(function(t){bvt(this,{type:"String Iterator",string:ji(t),index:0})}),(function(){var t,e=wvt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=yvt(r,n),e.index+=t.length,{value:t,done:!1})}));var DS=function(t,e,r){for(var n in e)ea(t,n,e[n],r);return t},Evt=It.Array,xvt=Math.max,GF=Ky.f,qF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cvt={f:function(t){return qF&&Wi(t)=="Window"?(function(e){try{return GF(e)}catch{return(function(n,o,i){for(var a,u,s,l,c=$f(n),f=mS(void 0,c),d=mS(c,c),p=Evt(xvt(d-f,0)),m=0;f<d;f++,m++)a=p,u=m,s=n[f],(l=S8(u))in a?El.f(a,l,Rb(0,s)):a[l]=s;return p.length=m,p})(qF)}})(t):GF(Hf(t))}},KF=Ke((function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),n0=Object.isExtensible,gs=Ke((function(){n0(1)}))||KF?function(t){return!!Xe(t)&&(!KF||Wi(t)!="ArrayBuffer")&&(!n0||n0(t))}:n0,Svt=!Ke((function(){return Object.isExtensible(Object.preventExtensions({}))})),B8=m8((function(t){var e=El.f,r=!1,n=w8("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Ky.f,s=Yt([].splice),l={};l[n]=1,u(l).length&&(Ky.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Eu({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cvt.f}))},fastKey:function(u,s){if(!Xe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Or(u,n)){if(!gs(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Or(u,n)){if(!gs(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Svt&&r&&gs(u)&&!Or(u,n)&&i(u),u}};Lb[n]=!0})),YF=Yt(Yt.bind),F8=function(t,e){return C8(t),e===void 0?t:YF?YF(t,e):function(){return t.apply(e,arguments)}},Dvt=$r("iterator"),Avt=Array.prototype,Ovt=$r("iterator"),XF=function(t){if(t!=null)return Ih(t,Ovt)||Ih(t,"@@iterator")||gf[Mb(t)]},_vt=It.TypeError,ZF=function(t,e,r){var n,o;Dn(t);try{if(!(n=Ih(t,"return"))){if(e==="throw")throw r;return r}n=Br(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Dn(n),r},kvt=It.TypeError,em=function(t,e){this.stopped=t,this.result=e},JF=em.prototype,lV=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),v=F8(e,f),g=function(h){return n&&ZF(n,"normal",h),new em(!0,h)},y=function(h){return d?(Dn(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(p)n=t;else{if(!(o=XF(t)))throw kvt(vS(t)+" is not iterable");if((c=o)!==void 0&&(gf.Array===c||Avt[Dvt]===c)){for(i=0,a=$f(t);a>i;i++)if((u=y(t[i]))&&Uy(JF,u))return u;return new em(!1)}n=(function(h,b){var w=arguments.length<2?XF(h):b;if(C8(w))return Dn(Br(w,h));throw _vt(vS(h)+" is not iterable")})(t,o)}for(s=n.next;!(l=Br(s,n)).done;){try{u=y(l.value)}catch(h){ZF(n,"throw",h)}if(typeof u=="object"&&u&&Uy(JF,u))return u}return new em(!1)},Tvt=It.TypeError,cV=function(t,e){if(Uy(e,t))return t;throw Tvt("Incorrect invocation")},fV=$r("iterator"),dV=!1;try{var Bvt=0,QF={next:function(){return{done:!!Bvt++}},return:function(){dV=!0}};QF[fV]=function(){return this},Array.from(QF,(function(){throw 2}))}catch{}var AS=Array.isArray||function(t){return Wi(t)=="Array"},pV=function(){},Fvt=[],hV=$g("Reflect","construct"),P8=/^\s*(?:class|function)\b/,Pvt=Yt(P8.exec),jvt=!P8.exec(pV),Vd=function(t){if(!Je(t))return!1;try{return hV(pV,Fvt,t),!0}catch{return!1}},Nvt=!hV||Ke((function(){var t;return Vd(Vd.call)||!Vd(Object)||!Vd((function(){t=!0}))||t}))?function(t){if(!Je(t))return!1;switch(Mb(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jvt||!!Pvt(P8,O8(t))}:Vd,Ivt=$r("species"),tP=It.Array,gV=function(t,e){return new((function(r){var n;return AS(r)&&(n=r.constructor,(Nvt(n)&&(n===tP||AS(n.prototype))||Xe(n)&&(n=n[Ivt])===null)&&(n=void 0)),n===void 0?tP:n})(t))(e===0?0:e)},eP=Yt([].push),YE=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=Hg(s),v=Y$(m),g=F8(l,c),y=$f(v),h=0,b=f||gV,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:eP(w,d)}else switch(t){case 4:return!1;case 7:eP(w,d)}return i?-1:n||o?o:w}},j8={filter:YE(2),find:YE(5),findIndex:YE(6)},o0=B8.getWeakData,Lvt=di.set,Rvt=di.getterFor,Mvt=j8.find,zvt=j8.findIndex,Hvt=Yt([].splice),$vt=0,i0=function(t){return t.frozen||(t.frozen=new vV)},vV=function(){this.entries=[]},XE=function(t,e){return Mvt(t.entries,(function(r){return r[0]===e}))};vV.prototype={get:function(t){var e=XE(this,t);if(e)return e[1]},has:function(t){return!!XE(this,t)},set:function(t,e){var r=XE(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=zvt(this.entries,(function(r){return r[0]===t}));return~e&&Hvt(this.entries,e,1),!!~e}};var Ud,mV={getConstructor:function(t,e,r,n){var o=t((function(s,l){cV(s,i),Lvt(s,{type:e,id:$vt++,frozen:void 0}),l!=null&&lV(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=Rvt(e),u=function(s,l,c){var f=a(s),d=o0(Dn(l),!0);return d===!0?i0(f).set(l,c):d[f.id]=c,s};return DS(i,{delete:function(s){var l=a(this);if(!Xe(s))return!1;var c=o0(s);return c===!0?i0(l).delete(s):c&&Or(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Xe(s))return!1;var c=o0(s);return c===!0?i0(l).has(s):c&&Or(c,l.id)}}),DS(i,r?{get:function(s){var l=a(this);if(Xe(s)){var c=o0(s);return c===!0?i0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},a0=di.enforce,Vvt=!It.ActiveXObject&&"ActiveXObject"in It,yV=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Uvt=(function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=It[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=Yt(u[g]);ea(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Xe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Xe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Xe(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(ES(t,!Je(a)||!(o||u.forEach&&!Ke((function(){new a().entries().next()})))))s=r.getConstructor(e,t,n,i),B8.enable();else if(ES(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ke((function(){f.has(1)})),m=(function(g,y){if(!dV)return!1;var h=!1;try{var b={};b[fV]=function(){return{next:function(){return{done:h=!0}}}},(function(w){new a(w)})(b)}catch{}return h})(),v=!o&&Ke((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));m||((s=e((function(g,y){cV(g,u);var h=(function(b,w,E){var S,x;return Xy&&Je(S=w.constructor)&&S!==E&&Xe(x=S.prototype)&&x!==E.prototype&&Xy(b,x),b})(new a,g,s);return y!=null&&lV(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),n&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Eu({global:!0,forced:s!=a},l),SS(s,t),o||r.setStrong(s,t,n),s})("WeakMap",yV,mV);if(rV&&Vvt){Ud=mV.getConstructor(yV,"WeakMap",!0),B8.enable();var Wd=Uvt.prototype,rP=Yt(Wd.delete),u0=Yt(Wd.has),nP=Yt(Wd.get),oP=Yt(Wd.set);DS(Wd,{delete:function(t){if(Xe(t)&&!gs(t)){var e=a0(this);return e.frozen||(e.frozen=new Ud),rP(this,t)||e.frozen.delete(t)}return rP(this,t)},has:function(t){if(Xe(t)&&!gs(t)){var e=a0(this);return e.frozen||(e.frozen=new Ud),u0(this,t)||e.frozen.has(t)}return u0(this,t)},get:function(t){if(Xe(t)&&!gs(t)){var e=a0(this);return e.frozen||(e.frozen=new Ud),u0(this,t)?nP(this,t):e.frozen.get(t)}return nP(this,t)},set:function(t,e){if(Xe(t)&&!gs(t)){var r=a0(this);r.frozen||(r.frozen=new Ud),u0(this,t)?oP(this,t,e):r.frozen.set(t,e)}else oP(this,t,e);return this}})}var bV={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},ZE=x8("span").classList,iP=ZE&&ZE.constructor&&ZE.constructor.prototype,Wvt=iP===Object.prototype?void 0:iP,JE=$r("iterator"),aP=$r("toStringTag"),QE=Ap.values,wV=function(t,e){if(t){if(t[JE]!==QE)try{ou(t,JE,QE)}catch{t[JE]=QE}if(t[aP]||ou(t,aP,e),bV[e]){for(var r in Ap)if(t[r]!==Ap[r])try{ou(t,r,Ap[r])}catch{t[r]=Ap[r]}}}};for(var t4 in bV)wV(It[t4]&&It[t4].prototype,t4);wV(Wvt,"DOMTokenList");var OS=new WeakMap,Gvt={type:"list-item",renderElem:function(t,e,r){OS.set(t,r);var n=t,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=(function(f,d){var p=d,m=p.type,v=p.level,g=v===void 0?0:v,y=p.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=d,E=k.findPath(f,w);if(E[0]===0)return 1;for(;E[0]>0;){var S=R.previous(E),x=C.node(f,S);if(x==null)break;var D=x[0],A=D.level,P=A===void 0?0:A,M=D.type,F=D.ordered;if(M!==m||P<g)break;if(P===g){if(F!==h)break;b++}w=D,E=S}return b})(r,t);s=l+"."}else s=(function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d})(i);var c=(function(f){var d,p=f.children||[],m=p.length;if(m===0)return"";for(var v=0;v<m&&!d;v++){var g=p[v];yt.isText(g)&&(d=g)}return d==null?"":d.color||""})(t);return jt("div",{style:u},jt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),jt("span",null,e))}},_S=function(t,e){return _S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},_S(t,e);};function EV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}_S(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function uP(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kp(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function sP(t){return C.nodes(t,{at:t.selection||void 0,match:function(e){return k.findPath(t,e).length===1}})}var qvt=J$.includes;Eu({target:"Array",proto:!0},{includes:function(t){return qvt(this,t,arguments.length>1?arguments[1]:void 0)}}),Gp("includes");var lP,e4,Kvt=function(){var t=Dn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},N8=It.RegExp,xV=Ke((function(){var t=N8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));xV||Ke((function(){return!N8("a","y").sticky}));var Yvt={BROKEN_CARET:xV||Ke((function(){var t=N8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}))},Xvt=It.RegExp,Zvt=Ke((function(){var t=Xvt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),Jvt=It.RegExp,Qvt=Ke((function(){var t=Jvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),t0t=di.get,e0t=b8("native-string-replace",String.prototype.replace),Zy=RegExp.prototype.exec,kS=Zy,r0t=Yt("".charAt),n0t=Yt("".indexOf),o0t=Yt("".replace),r4=Yt("".slice),n4=(e4=/b*/g,Br(Zy,lP=/a/,"a"),Br(Zy,e4,"a"),lP.lastIndex!==0||e4.lastIndex!==0),cP=Yvt.BROKEN_CARET,o4=/()??/.exec("")[1]!==void 0;(n4||o4||cP||Zvt||Qvt)&&(kS=function(t){var e,r,n,o,i,a,u,s=this,l=t0t(s),c=ji(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Br(kS,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=cP&&s.sticky,m=Br(Kvt,s),v=s.source,g=0,y=c;if(p&&(m=o0t(m,"y",""),n0t(m,"g")===-1&&(m+="g"),y=r4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&r0t(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),o4&&(r=new RegExp("^"+v+"$(?!\\s)",m)),n4&&(n=s.lastIndex),o=Br(Zy,p?r:s,y),p?o?(o.input=r4(o.input,g),o[0]=r4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:n4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),o4&&o&&o.length>1&&Br(e0t,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=A8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Jy=kS;Eu({target:"RegExp",proto:!0,forced:/./.exec!==Jy},{exec:Jy});var CV=(function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var r=this.type;return k.getSelectedNodeByType(e,r)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var r=this.getListNode(e);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!k.getSelectedElems(e).some((function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0}))},t.prototype.exec=function(e,r){this.isActive(e)?$.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):$.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t})(),i0t='<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>',a0t='<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>',u0t=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!1,r.title=dt("listModule.unOrderedList"),r.iconSvg=i0t,r}return EV(e,t),e})(CV),s0t=(function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!0,r.title=dt("listModule.orderedList"),r.iconSvg=a0t,r}return EV(e,t),e})(CV),l0t={key:"bulletedList",factory:function(){return new u0t}},c0t={key:"numberedList",factory:function(){return new s0t}},fP=[],f0t={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(l){var c=OS.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,v=f.level,g=v===void 0?0:v,y=k.findPath(c,l);if(y[0]===0)return g+1;var h=R.previous(y),b=C.node(c,h);if(!b)return 0;var w=Kp(b,1)[0];if(k.getNodeType(w)!==d)return g+1;var E=w,S=E.ordered,x=S!==void 0&&S,D=E.level,A=D===void 0?0:D;return A<g?g-A:A>g?0:A===g?x===m?0:1:0})(t);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",fP.push(i);var s=(function(l){var c=OS.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,v=f.level,g=v===void 0?0:v,y=k.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=R.next(y),b=C.node(c,h);if(!b)return 0;var w=Kp(b,1)[0];if(k.getNodeType(w)!==d)return g+1;var E=w,S=E.ordered,x=S!==void 0&&S,D=E.level,A=D===void 0?0:D;return A<g?g-A:A>g?0:A===g?x===m?0:1:0})(t);if(s>0)for(u=0;u<s;u++)n+="</"+fP.pop()+">";return{html:"<li>"+e+"</li>",prefix:r,suffix:n}}},d0t=$r("species"),p0t=j8.filter,h0t=pS>=51||!Ke((function(){var t=[];return(t.constructor={})[d0t]=function(){return{foo:1}},t.filter(Boolean).foo!==1}));Eu({target:"Array",proto:!0,forced:!h0t},{filter:function(t){return p0t(this,t,arguments.length>1?arguments[1]:void 0)}});var I8=Function.prototype,dP=I8.apply,g0t=I8.bind,pP=I8.call,v0t=typeof Reflect=="object"&&Reflect.apply||(g0t?pP.bind(dP):function(){return pP.apply(dP,arguments)}),hP=($r("species"),RegExp.prototype),m0t=sV.charAt,y0t=function(t,e,r){return e+(r?m0t(t,e).length:1)},b0t=Math.floor,i4=Yt("".charAt),w0t=Yt("".replace),a4=Yt("".slice),E0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,x0t=/\$([$&'`]|\d{1,2})/g,C0t=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=x0t;return o!==void 0&&(o=Hg(o),s=E0t),w0t(i,s,(function(l,c){var f;switch(i4(c,0)){case"$":return"$";case"&":return t;case"`":return a4(e,0,r);case"'":return a4(e,a);case"<":f=o[a4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=b0t(d/10);return p===0?l:p<=u?n[p-1]===void 0?i4(c,1):n[p-1]+i4(c,1):l}f=n[d-1]}return f===void 0?"":f}))},S0t=It.TypeError,D0t=function(t,e){var r=t.exec;if(Je(r)){var n=Br(r,t,e);return n!==null&&Dn(n),n}if(Wi(t)==="RegExp")return Br(Jy,t,e);throw S0t("RegExp#exec called on incompatible receiver")},TS=$r("replace"),A0t=Math.max,O0t=Math.min,_0t=Yt([].concat),u4=Yt([].push),gP=Yt("".indexOf),vP=Yt("".slice),k0t="a".replace(/./,"$0")==="$0",mP=!!/./[TS]&&/./[TS]("a","$0")==="";(function(t,e,r,n){var o=$r(t),i=!Ke((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!Ke((function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Yt(/./[o]),s=(function(l,c,f){var d=mP?"$":"$0";return[function(p,m){var v=Ib(this),g=p==null?void 0:Ih(p,TS);return g?Br(g,p,v,m):Br(c,ji(v),p,m)},function(p,m){var v=Dn(this),g=ji(p);if(typeof m=="string"&&gP(m,d)===-1&&gP(m,"$<")===-1){var y=f(c,v,g,m);if(y.done)return y.value}var h=Je(m);h||(m=ji(m));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var E=[];;){var S=D0t(v,g);if(S===null||(u4(E,S),!b))break;ji(S[0])===""&&(v.lastIndex=y0t(g,Z$(v.lastIndex),w))}for(var x,D="",A=0,P=0;P<E.length;P++){for(var M=ji((S=E[P])[0]),F=A0t(O0t(Vg(S.index),g.length),0),V=[],U=1;U<S.length;U++)u4(V,(x=S[U])===void 0?x:String(x));var W=S.groups;if(h){var z=_0t([M],V,F,g);W!==void 0&&u4(z,W);var tt=ji(v0t(m,void 0,z))}else tt=C0t(M,g,F,V,W,m);F>=A&&(D+=vP(g,A,F)+tt,A=F+M.length)}return D+vP(g,A)}]})(0,""[t],(function(l,c,f,d,p){var m=Yt(l),v=c.exec;return v===Jy||v===hP.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));ea(String.prototype,t,s[0]),ea(hP,o,s[1])}})("replace",0,!!Ke((function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"}))||!k0t||mP);var T0t=It.TypeError,SV=function(t,e,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&F8(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,e):r[f],i>0&&AS(s))l=$f(s),c=SV(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw T0t("Exceed the acceptable array length");t[c]=s}c++}f++}return c},B0t=SV;function s4(t){return t.length?t[0].tagName.toLowerCase():""}Eu({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Hg(this),r=$f(e),n=gV(e,0);return n.length=B0t(n,e,e,r,0,t===void 0?1:Vg(t)),n}}),Gp("flat"),Eu({global:!0},{globalThis:It}),uo&&(j.fn.append=uo),ao&&(j.fn.attr=ao),ef&&(j.fn.parent=ef);var F0t={renderElems:[Gvt],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(q.isExpanded(a))e(i);else{var u=k.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?$.setNodes(o,{level:l-1}):$.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(q.isCollapsed(l)){var c=k.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void $.setNodes(o,{level:d+1})}}if(q.isExpanded(l)){var p=0,m=!1;try{for(var v=uP(sP(o)),g=v.next();!g.done;g=v.next()){var y=Kp(g.value,1)[0];k.getNodeType(y)==="list-item"?p++:m=!0}}catch(x){i={error:x}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}if(m||p<=1)return void r();try{for(var h=uP(sP(o)),b=h.next();!b.done;b=h.next()){var w=Kp(b.value,2),E=(y=w[0],w[1]),S=y.level;d=S===void 0?0:S,$.setNodes(o,{level:d+1},{at:E})}}catch(x){u={error:x}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=Kp(i,2),u=a[0],s=a[1],l=k.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||$.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[l0t,c0t],elemsToHtml:[f0t],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t);(e=e.filter((function(a){return!!yt.isText(a)||!!r.isInline(a)}))).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=(function(a){return s4(a.parent())==="ol"})(n),i=(function(a){for(var u=0,s=a.parent(),l=s4(s);l==="ul"||l==="ol";)l=s4(s=s.parent()),u++;return u-1})(n);return{type:"list-item",ordered:o,level:i,children:e}}}]},DV=cl((function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[m]=x[v]=x[g]=x[h]=!1;var D=typeof De=="object"&&De&&De.Object===Object&&De,A=typeof self=="object"&&self&&self.Object===Object&&self,P=D||A||Function("return this")(),M=e&&!e.nodeType&&e,F=M&&t&&!t.nodeType&&t,V=F&&F.exports===M,U=V&&D.process,W=(function(){try{return U&&U.binding&&U.binding("util")}catch{}})(),z=W&&W.isTypedArray;function tt(L,G){for(var ct=-1,Ot=L==null?0:L.length;++ct<Ot;)if(G(L[ct],ct,L))return!0;return!1}function J(L){var G=-1,ct=Array(L.size);return L.forEach((function(Ot,ve){ct[++G]=[ve,Ot]})),ct}function st(L){var G=-1,ct=Array(L.size);return L.forEach((function(Ot){ct[++G]=Ot})),ct}var bt=Array.prototype,B=Function.prototype,_=Object.prototype,I=P["__core-js_shared__"],X=B.toString,it=_.hasOwnProperty,Q=(function(){var L=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""})(),vt=_.toString,xt=RegExp("^"+X.call(it).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=V?P.Buffer:void 0,kt=P.Symbol,rt=P.Uint8Array,Vt=_.propertyIsEnumerable,O=bt.splice,T=kt?kt.toStringTag:void 0,H=Object.getOwnPropertySymbols,nt=_t?_t.isBuffer:void 0,K=(function(L,G){return function(ct){return L(G(ct))}})(Object.keys,Object),Z=sa(P,"DataView"),at=sa(P,"Map"),ut=sa(P,"Promise"),et=sa(P,"Set"),ot=sa(P,"WeakMap"),St=sa(Object,"create"),mt=Ei(Z),Dt=Ei(at),Tt=Ei(ut),Rt=Ei(et),te=Ei(ot),Zt=kt?kt.prototype:void 0,he=Zt?Zt.valueOf:void 0;function ce(L){var G=-1,ct=L==null?0:L.length;for(this.clear();++G<ct;){var Ot=L[G];this.set(Ot[0],Ot[1])}}function Ce(L){var G=-1,ct=L==null?0:L.length;for(this.clear();++G<ct;){var Ot=L[G];this.set(Ot[0],Ot[1])}}function be(L){var G=-1,ct=L==null?0:L.length;for(this.clear();++G<ct;){var Ot=L[G];this.set(Ot[0],Ot[1])}}function $e(L){var G=-1,ct=L==null?0:L.length;for(this.__data__=new be;++G<ct;)this.add(L[G])}function nn(L){var G=this.__data__=new Ce(L);this.size=G.size}function wr(L,G){var ct=xi(L),Ot=!ct&&ov(L),ve=!ct&&!Ot&&Mo(L),Kt=!ct&&!Ot&&!ve&&Ho(L),N=ct||Ot||ve||Kt,Y=N?(function(ee,Le){for(var Oe=-1,oe=Array(ee);++Oe<ee;)oe[Oe]=Le(Oe);return oe})(L.length,String):[],gt=Y.length;for(var wt in L)!it.call(L,wt)||N&&(wt=="length"||ve&&(wt=="offset"||wt=="parent")||Kt&&(wt=="buffer"||wt=="byteLength"||wt=="byteOffset")||Uf(wt,gt))||Y.push(wt);return Y}function Er(L,G){for(var ct=L.length;ct--;)if(Cl(L[ct][0],G))return ct;return-1}function Wn(L){return L==null?L===void 0?"[object Undefined]":"[object Null]":T&&T in Object(L)?(function(G){var ct=it.call(G,T),Ot=G[T];try{G[T]=void 0;var ve=!0}catch{}var Kt=vt.call(G);return ve&&(ct?G[T]=Ot:delete G[T]),Kt})(L):(function(G){return vt.call(G)})(L)}function bi(L){return la(L)&&Wn(L)==o}function Iu(L,G,ct,Ot,ve){return L===G||(L==null||G==null||!la(L)&&!la(G)?L!=L&&G!=G:(function(Kt,N,Y,gt,wt,ee){var Le=xi(Kt),Oe=xi(N),oe=Le?i:An(Kt),xr=Oe?i:An(N),Vr=(oe=oe==o?d:oe)==d,Lu=(xr=xr==o?d:xr)==d,Ci=oe==xr;if(Ci&&Mo(Kt)){if(!Mo(N))return!1;Le=!0,Vr=!1}if(Ci&&!Vr)return ee||(ee=new nn),Le||Ho(Kt)?Gn(Kt,N,Y,gt,wt,ee):(function(Jt,ie,ae,Ye,on,dn,vo){switch(ae){case w:if(Jt.byteLength!=ie.byteLength||Jt.byteOffset!=ie.byteOffset)return!1;Jt=Jt.buffer,ie=ie.buffer;case b:return!(Jt.byteLength!=ie.byteLength||!dn(new rt(Jt),new rt(ie)));case a:case u:case f:return Cl(+Jt,+ie);case s:return Jt.name==ie.name&&Jt.message==ie.message;case m:case g:return Jt==ie+"";case c:var fa=J;case v:var Gf=1&Ye;if(fa||(fa=st),Jt.size!=ie.size&&!Gf)return!1;var uv=vo.get(Jt);if(uv)return uv==ie;Ye|=2,vo.set(Jt,ie);var Sl=Gn(fa(Jt),fa(ie),Ye,on,dn,vo);return vo.delete(Jt),Sl;case y:if(he)return he.call(Jt)==he.call(ie)}return!1})(Kt,N,oe,Y,gt,wt,ee);if(!(1&Y)){var ca=Vr&&it.call(Kt,"__wrapped__"),Pt=Lu&&it.call(N,"__wrapped__");if(ca||Pt){var de=ca?Kt.value():Kt,Qe=Pt?N.value():N;return ee||(ee=new nn),wt(de,Qe,Y,gt,ee)}}return Ci?(ee||(ee=new nn),(function(Jt,ie,ae,Ye,on,dn){var vo=1&ae,fa=wi(Jt),Gf=fa.length,uv=wi(ie).length;if(Gf!=uv&&!vo)return!1;for(var Sl=Gf;Sl--;){var Ru=fa[Sl];if(!(vo?Ru in ie:it.call(ie,Ru)))return!1}var vO=dn.get(Jt);if(vO&&dn.get(ie))return vO==ie;var sv=!0;dn.set(Jt,ie),dn.set(ie,Jt);for(var i2=vo;++Sl<Gf;){var lv=Jt[Ru=fa[Sl]],cv=ie[Ru];if(Ye)var mO=vo?Ye(cv,lv,Ru,ie,Jt,dn):Ye(lv,cv,Ru,Jt,ie,dn);if(!(mO===void 0?lv===cv||on(lv,cv,ae,Ye,dn):mO)){sv=!1;break}i2||(i2=Ru=="constructor")}if(sv&&!i2){var fv=Jt.constructor,dv=ie.constructor;fv==dv||!("constructor"in Jt)||!("constructor"in ie)||typeof fv=="function"&&fv instanceof fv&&typeof dv=="function"&&dv instanceof dv||(sv=!1)}return dn.delete(Jt),dn.delete(ie),sv})(Kt,N,Y,gt,wt,ee)):!1})(L,G,ct,Ot,Iu,ve))}function xl(L){return!(!iv(L)||(function(G){return!!Q&&Q in G})(L))&&(Wf(L)?xt:E).test(Ei(L))}function ho(L){if(ct=(G=L)&&G.constructor,Ot=typeof ct=="function"&&ct.prototype||_,G!==Ot)return K(L);var G,ct,Ot,ve=[];for(var Kt in Object(L))it.call(L,Kt)&&Kt!="constructor"&&ve.push(Kt);return ve}function Gn(L,G,ct,Ot,ve,Kt){var N=1&ct,Y=L.length,gt=G.length;if(Y!=gt&&!(N&&gt>Y))return!1;var wt=Kt.get(L);if(wt&&Kt.get(G))return wt==G;var ee=-1,Le=!0,Oe=2&ct?new $e:void 0;for(Kt.set(L,G),Kt.set(G,L);++ee<Y;){var oe=L[ee],xr=G[ee];if(Ot)var Vr=N?Ot(xr,oe,ee,G,L,Kt):Ot(oe,xr,ee,L,G,Kt);if(Vr!==void 0){if(Vr)continue;Le=!1;break}if(Oe){if(!tt(G,(function(Lu,Ci){if(ca=Ci,!Oe.has(ca)&&(oe===Lu||ve(oe,Lu,ct,Ot,Kt)))return Oe.push(Ci);var ca}))){Le=!1;break}}else if(oe!==xr&&!ve(oe,xr,ct,Ot,Kt)){Le=!1;break}}return Kt.delete(L),Kt.delete(G),Le}function wi(L){return(function(G,ct,Ot){var ve=ct(G);return xi(G)?ve:(function(Kt,N){for(var Y=-1,gt=N.length,wt=Kt.length;++Y<gt;)Kt[wt+Y]=N[Y];return Kt})(ve,Ot(G))})(L,av,nv)}function go(L,G){var ct,Ot,ve=L.__data__;return((Ot=typeof(ct=G))=="string"||Ot=="number"||Ot=="symbol"||Ot=="boolean"?ct!=="__proto__":ct===null)?ve[typeof G=="string"?"string":"hash"]:ve.map}function sa(L,G){var ct=(function(Ot,ve){return Ot?.[ve]})(L,G);return xl(ct)?ct:void 0}ce.prototype.clear=function(){this.__data__=St?St(null):{},this.size=0},ce.prototype.delete=function(L){var G=this.has(L)&&delete this.__data__[L];return this.size-=G?1:0,G},ce.prototype.get=function(L){var G=this.__data__;if(St){var ct=G[L];return ct===r?void 0:ct}return it.call(G,L)?G[L]:void 0},ce.prototype.has=function(L){var G=this.__data__;return St?G[L]!==void 0:it.call(G,L)},ce.prototype.set=function(L,G){var ct=this.__data__;return this.size+=this.has(L)?0:1,ct[L]=St&&G===void 0?r:G,this},Ce.prototype.clear=function(){this.__data__=[],this.size=0},Ce.prototype.delete=function(L){var G=this.__data__,ct=Er(G,L);return!(ct<0)&&(ct==G.length-1?G.pop():O.call(G,ct,1),--this.size,!0)},Ce.prototype.get=function(L){var G=this.__data__,ct=Er(G,L);return ct<0?void 0:G[ct][1]},Ce.prototype.has=function(L){return Er(this.__data__,L)>-1},Ce.prototype.set=function(L,G){var ct=this.__data__,Ot=Er(ct,L);return Ot<0?(++this.size,ct.push([L,G])):ct[Ot][1]=G,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ce,map:new(at||Ce),string:new ce}},be.prototype.delete=function(L){var G=go(this,L).delete(L);return this.size-=G?1:0,G},be.prototype.get=function(L){return go(this,L).get(L)},be.prototype.has=function(L){return go(this,L).has(L)},be.prototype.set=function(L,G){var ct=go(this,L),Ot=ct.size;return ct.set(L,G),this.size+=ct.size==Ot?0:1,this},$e.prototype.add=$e.prototype.push=function(L){return this.__data__.set(L,r),this},$e.prototype.has=function(L){return this.__data__.has(L)},nn.prototype.clear=function(){this.__data__=new Ce,this.size=0},nn.prototype.delete=function(L){var G=this.__data__,ct=G.delete(L);return this.size=G.size,ct},nn.prototype.get=function(L){return this.__data__.get(L)},nn.prototype.has=function(L){return this.__data__.has(L)},nn.prototype.set=function(L,G){var ct=this.__data__;if(ct instanceof Ce){var Ot=ct.__data__;if(!at||Ot.length<199)return Ot.push([L,G]),this.size=++ct.size,this;ct=this.__data__=new be(Ot)}return ct.set(L,G),this.size=ct.size,this};var nv=H?function(L){return L==null?[]:(L=Object(L),(function(G,ct){for(var Ot=-1,ve=G==null?0:G.length,Kt=0,N=[];++Ot<ve;){var Y=G[Ot];ct(Y,Ot,G)&&(N[Kt++]=Y)}return N})(H(L),(function(G){return Vt.call(L,G)})))}:function(){return[]},An=Wn;function Uf(L,G){return!!(G=G??n)&&(typeof L=="number"||S.test(L))&&L>-1&&L%1==0&&L<G}function Ei(L){if(L!=null){try{return X.call(L)}catch{}try{return L+""}catch{}}return""}function Cl(L,G){return L===G||L!=L&&G!=G}(Z&&An(new Z(new ArrayBuffer(1)))!=w||at&&An(new at)!=c||ut&&An(ut.resolve())!=p||et&&An(new et)!=v||ot&&An(new ot)!=h)&&(An=function(L){var G=Wn(L),ct=G==d?L.constructor:void 0,Ot=ct?Ei(ct):"";if(Ot)switch(Ot){case mt:return w;case Dt:return c;case Tt:return p;case Rt:return v;case te:return h}return G});var ov=bi((function(){return arguments})())?bi:function(L){return la(L)&&it.call(L,"callee")&&!Vt.call(L,"callee")},xi=Array.isArray,Mo=nt||function(){return!1};function Wf(L){if(!iv(L))return!1;var G=Wn(L);return G==l||G=="[object GeneratorFunction]"||G=="[object AsyncFunction]"||G=="[object Proxy]"}function zo(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=n}function iv(L){var G=typeof L;return L!=null&&(G=="object"||G=="function")}function la(L){return L!=null&&typeof L=="object"}var Ho=z?(function(L){return function(G){return L(G)}})(z):function(L){return la(L)&&zo(L.length)&&!!x[Wn(L)]};function av(L){return(G=L)!=null&&zo(G.length)&&!Wf(G)?wr(L):ho(L);var G}t.exports=function(L,G){return Iu(L,G)}}));Sn("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"}}),Sn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var yP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AV(t){var e={exports:{}};return t(e,e.exports),e.exports}var Da,rm,s0=function(t){return t&&t.Math==Math&&t},qt=s0(typeof globalThis=="object"&&globalThis)||s0(typeof window=="object"&&window)||s0(typeof self=="object"&&self)||s0(typeof yP=="object"&&yP)||(function(){return this})()||Function("return this")(),yr=function(t){try{return!!t()}catch{return!0}},xu=!yr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Gd=Function.prototype.call,Sr=Gd.bind?Gd.bind(Gd):function(){return Gd.apply(Gd,arguments)},bP={}.propertyIsEnumerable,wP=Object.getOwnPropertyDescriptor,P0t={f:wP&&!bP.call({1:2},1)?function(t){var e=wP(this,t);return!!e&&e.enumerable}:bP},L8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},OV=Function.prototype,BS=OV.bind,FS=OV.call,j0t=BS&&BS.bind(FS),Qt=BS?function(t){return t&&j0t(FS,t)}:function(t){return t&&function(){return FS.apply(t,arguments)}},N0t=Qt({}.toString),I0t=Qt("".slice),iu=function(t){return I0t(N0t(t),8,-1)},l4=qt.Object,L0t=Qt("".split),_V=yr((function(){return!l4("z").propertyIsEnumerable(0)}))?function(t){return iu(t)=="String"?L0t(t,""):l4(t)}:l4,R0t=qt.TypeError,Cu=function(t){if(t==null)throw R0t("Can't call method on "+t);return t},Wg=function(t){return _V(Cu(t))},en=function(t){return typeof t=="function"},ri=function(t){return typeof t=="object"?t!==null:en(t)},M0t=function(t){return en(t)?t:void 0},Gg=function(t,e){return arguments.length<2?M0t(qt[t]):qt[t]&&qt[t][e]},kV=Qt({}.isPrototypeOf),c4=Gg("navigator","userAgent")||"",EP=qt.process,xP=qt.Deno,CP=EP&&EP.versions||xP&&xP.version,SP=CP&&CP.v8;SP&&(rm=(Da=SP.split("."))[0]>0&&Da[0]<4?1:+(Da[0]+Da[1])),!rm&&c4&&(!(Da=c4.match(/Edge\/(\d+)/))||Da[1]>=74)&&(Da=c4.match(/Chrome\/(\d+)/))&&(rm=+Da[1]);var PS=rm,jS=!!Object.getOwnPropertySymbols&&!yr((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&PS&&PS<41})),R8=jS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",z0t=qt.Object,f4=R8?function(t){return typeof t=="symbol"}:function(t){var e=Gg("Symbol");return en(e)&&kV(e.prototype,z0t(t))},H0t=qt.String,TV=function(t){try{return H0t(t)}catch{return"Object"}},$0t=qt.TypeError,BV=function(t){if(en(t))return t;throw $0t(TV(t)+" is not a function")},M8=function(t,e){var r=t[e];return r==null?void 0:BV(r)},V0t=qt.TypeError,U0t=Object.defineProperty,z8=function(t,e){try{U0t(qt,t,{value:e,configurable:!0,writable:!0})}catch{qt[t]=e}return e},au=qt["__core-js_shared__"]||z8("__core-js_shared__",{}),H8=AV((function(t){(t.exports=function(e,r){return au[e]||(au[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),W0t=qt.Object,$8=function(t){return W0t(Cu(t))},G0t=Qt({}.hasOwnProperty),ro=Object.hasOwn||function(t,e){return G0t($8(t),e)},q0t=0,K0t=Math.random(),Y0t=Qt(1 .toString),FV=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Y0t(++q0t+K0t,36)},qd=H8("wks"),Rs=qt.Symbol,DP=Rs&&Rs.for,X0t=R8?Rs:Rs&&Rs.withoutSetter||FV,po=function(t){if(!ro(qd,t)||!jS&&typeof qd[t]!="string"){var e="Symbol."+t;jS&&ro(Rs,t)?qd[t]=Rs[t]:qd[t]=R8&&DP?DP(e):X0t(e)}return qd[t]},Z0t=qt.TypeError,J0t=po("toPrimitive"),V8=function(t){var e=(function(r,n){if(!ri(r)||f4(r))return r;var o,i=M8(r,J0t);if(i){if(o=Sr(i,r,n),!ri(o)||f4(o))return o;throw Z0t("Can't convert object to primitive value")}return(function(a,u){var s,l;if(en(s=a.toString)&&!ri(l=Sr(s,a))||en(s=a.valueOf)&&!ri(l=Sr(s,a)))return l;throw V0t("Can't convert object to primitive value")})(r)})(t,"string");return f4(e)?e:e+""},NS=qt.document,Q0t=ri(NS)&&ri(NS.createElement),U8=function(t){return Q0t?NS.createElement(t):{}},PV=!xu&&!yr((function(){return Object.defineProperty(U8("div"),"a",{get:function(){return 7}}).a!=7})),AP=Object.getOwnPropertyDescriptor,jV={f:xu?AP:function(t,e){if(t=Wg(t),e=V8(e),PV)try{return AP(t,e)}catch{}if(ro(t,e))return L8(!Sr(P0t.f,t,e),t[e])}},tmt=qt.String,emt=qt.TypeError,no=function(t){if(ri(t))return t;throw emt(tmt(t)+" is not an object")},rmt=qt.TypeError,OP=Object.defineProperty,qg={f:xu?OP:function(t,e,r){if(no(t),e=V8(e),no(r),PV)try{return OP(t,e,r)}catch{}if("get"in r||"set"in r)throw rmt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},vf=xu?function(t,e,r){return qg.f(t,e,L8(1,r))}:function(t,e,r){return t[e]=r,t},nmt=Qt(Function.toString);en(au.inspectSource)||(au.inspectSource=function(t){return nmt(t)});var IS,Qy,LS,W8=au.inspectSource,_P=qt.WeakMap,omt=en(_P)&&/native code/.test(W8(_P)),kP=H8("keys"),NV=function(t){return kP[t]||(kP[t]=FV(t))},G8={},TP=qt.TypeError,imt=qt.WeakMap;if(omt||au.state){var Zu=au.state||(au.state=new imt),amt=Qt(Zu.get),BP=Qt(Zu.has),umt=Qt(Zu.set);IS=function(t,e){if(BP(Zu,t))throw new TP("Object already initialized");return e.facade=t,umt(Zu,t,e),e},Qy=function(t){return amt(Zu,t)||{}},LS=function(t){return BP(Zu,t)}}else{var Gl=NV("state");G8[Gl]=!0,IS=function(t,e){if(ro(t,Gl))throw new TP("Object already initialized");return e.facade=t,vf(t,Gl,e),e},Qy=function(t){return ro(t,Gl)?t[Gl]:{}},LS=function(t){return ro(t,Gl)}}var RS={get:Qy,enforce:function(t){return LS(t)?Qy(t):IS(t,{})}},IV=Function.prototype,smt=xu&&Object.getOwnPropertyDescriptor,FP=ro(IV,"name"),q8={PROPER:FP&&(function(){}).name==="something",CONFIGURABLE:FP&&(!xu||xu&&smt(IV,"name").configurable)},Lh=AV((function(t){var e=q8.CONFIGURABLE,r=RS.get,n=RS.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;en(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ro(u,"name")||e&&u.name!==p)&&vf(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==qt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:vf(i,a,u)):f?i[a]=u:z8(a,u)})(Function.prototype,"toString",(function(){return en(this)&&r(this).source||W8(this)}))})),lmt=Math.ceil,cmt=Math.floor,zb=function(t){var e=+t;return e!=e||e===0?0:(e>0?cmt:lmt)(e)},fmt=Math.max,dmt=Math.min,Rh=function(t,e){var r=zb(t);return r<0?fmt(r+e,0):dmt(r,e)},pmt=Math.min,K8=function(t){return t>0?pmt(zb(t),9007199254740991):0},Hb=function(t){return K8(t.length)},hmt=function(t){return function(e,r,n){var o,i=Wg(e),a=Hb(i),u=Rh(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},gmt=hmt(!1),PP=Qt([].push),LV=function(t,e){var r,n=Wg(t),o=0,i=[];for(r in n)!ro(G8,r)&&ro(n,r)&&PP(i,r);for(;e.length>o;)ro(n,r=e[o++])&&(~gmt(i,r)||PP(i,r));return i},t1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vmt=t1.concat("length","prototype"),mmt={f:Object.getOwnPropertyNames||function(t){return LV(t,vmt)}},ymt={f:Object.getOwnPropertySymbols},bmt=Qt([].concat),wmt=Gg("Reflect","ownKeys")||function(t){var e=mmt.f(no(t)),r=ymt.f;return r?bmt(e,r(t)):e},Emt=function(t,e){for(var r=wmt(e),n=qg.f,o=jV.f,i=0;i<r.length;i++){var a=r[i];ro(t,a)||n(t,a,o(e,a))}},xmt=/#|\.prototype\./,Kg=function(t,e){var r=Smt[Cmt(t)];return r==Amt||r!=Dmt&&(en(e)?yr(e):!!e)},Cmt=Kg.normalize=function(t){return String(t).replace(xmt,".").toLowerCase()},Smt=Kg.data={},Dmt=Kg.NATIVE="N",Amt=Kg.POLYFILL="P",Omt=Kg,_mt=jV.f,Su=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?qt:l?qt[u]||z8(u,{}):(qt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=_mt(r,n))&&a.value:r[n],!Omt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Emt(i,o)}(t.sham||o&&o.sham)&&vf(i,"sham",!0),Lh(r,n,i,t)}},RV={};RV[po("toStringTag")]="z";var Y8=String(RV)==="[object z]",kmt=po("toStringTag"),Tmt=qt.Object,Bmt=iu((function(){return arguments})())=="Arguments",X8=Y8?iu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=Tmt(t),kmt))=="string"?r:Bmt?iu(e):(n=iu(e))=="Object"&&en(e.callee)?"Arguments":n},Fmt=qt.String,Zr=function(t){if(X8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Fmt(t)},Pmt=/"/g,jmt=Qt("".replace);Su({target:"String",proto:!0,forced:yr((function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3}))},{anchor:function(t){return e=t,r=Zr(Cu(this)),n="<a",(n+=' name="'+jmt(Zr(e),Pmt,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var l0,MV=function(){var t=no(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Z8=qt.RegExp,MS=yr((function(){var t=Z8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));MS||yr((function(){return!Z8("a","y").sticky}));var zV={BROKEN_CARET:MS||yr((function(){var t=Z8("^r","gy");return t.lastIndex=2,t.exec("str")!=null})),UNSUPPORTED_Y:MS},Nmt=Object.keys||function(t){return LV(t,t1)},Imt=xu?Object.defineProperties:function(t,e){no(t);for(var r,n=Wg(e),o=Nmt(e),i=o.length,a=0;i>a;)qg.f(t,r=o[a++],n[r]);return t},Lmt=Gg("document","documentElement"),HV=NV("IE_PROTO"),d4=function(){},$V=function(t){return"<script>"+t+"<\/script>"},jP=function(t){t.write($V("")),t.close();var e=t.parentWindow.Object;return t=null,e},nm=function(){try{l0=new ActiveXObject("htmlfile")}catch{}var t,e;nm=typeof document<"u"?document.domain&&l0?jP(l0):((e=U8("iframe")).style.display="none",Lmt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write($V("document.F=Object")),t.close(),t.F):jP(l0);for(var r=t1.length;r--;)delete nm.prototype[t1[r]];return nm()};G8[HV]=!0;var NP,p4,VV=Object.create||function(t,e){var r;return t!==null?(d4.prototype=no(t),r=new d4,d4.prototype=null,r[HV]=t):r=nm(),e===void 0?r:Imt(r,e)},Rmt=qt.RegExp,Mmt=yr((function(){var t=Rmt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),zmt=qt.RegExp,Hmt=yr((function(){var t=zmt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),$mt=RS.get,Vmt=H8("native-string-replace",String.prototype.replace),e1=RegExp.prototype.exec,zS=e1,Umt=Qt("".charAt),Wmt=Qt("".indexOf),Gmt=Qt("".replace),h4=Qt("".slice),g4=(p4=/b*/g,Sr(e1,NP=/a/,"a"),Sr(e1,p4,"a"),NP.lastIndex!==0||p4.lastIndex!==0),IP=zV.BROKEN_CARET,v4=/()??/.exec("")[1]!==void 0;(g4||v4||IP||Mmt||Hmt)&&(zS=function(t){var e,r,n,o,i,a,u,s=this,l=$mt(s),c=Zr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Sr(zS,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=IP&&s.sticky,m=Sr(MV,s),v=s.source,g=0,y=c;if(p&&(m=Gmt(m,"y",""),Wmt(m,"g")===-1&&(m+="g"),y=h4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Umt(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),v4&&(r=new RegExp("^"+v+"$(?!\\s)",m)),g4&&(n=s.lastIndex),o=Sr(e1,p?r:s,y),p?o?(o.input=h4(o.input,g),o[0]=h4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:g4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),v4&&o&&o.length>1&&Sr(Vmt,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=VV(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Mh=zS;Su({target:"RegExp",proto:!0,forced:/./.exec!==Mh},{exec:Mh});var r1=Array.isArray||function(t){return iu(t)=="Array"},UV=function(){},qmt=[],WV=Gg("Reflect","construct"),J8=/^\s*(?:class|function)\b/,Kmt=Qt(J8.exec),Ymt=!J8.exec(UV),Kd=function(t){if(!en(t))return!1;try{return WV(UV,qmt,t),!0}catch{return!1}},Q8=!WV||yr((function(){var t;return Kd(Kd.call)||!Kd(Object)||!Kd((function(){t=!0}))||t}))?function(t){if(!en(t))return!1;switch(X8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ymt||!!Kmt(J8,W8(t))}:Kd,GV=function(t,e,r){var n=V8(e);n in t?qg.f(t,n,L8(0,r)):t[n]=r},Xmt=po("species"),tA=function(t){return PS>=51||!yr((function(){var e=[];return(e.constructor={})[Xmt]=function(){return{foo:1}},e[t](Boolean).foo!==1}))},Zmt=Qt([].slice),Jmt=tA("slice"),Qmt=po("species"),m4=qt.Array,tyt=Math.max;function Lo(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function LP(t){var e=t.selection;if(e==null)return!1;var r=Lo(C.nodes(t,{match:function(i){return k.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Lo(r,2)[1],o=C.start(t,n);if(Ut.equals(e.anchor,o))return!0}return!1}function RP(t,e){var r,n,o=C.nodes(t,{at:e,match:function(s){return k.getNodeType(s)==="table"}}),i=!1;try{for(var a=(function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}Su({target:"Array",proto:!0,forced:!Jmt},{slice:function(t,e){var r,n,o,i=Wg(this),a=Hb(i),u=Rh(t,a),s=Rh(e===void 0?a:e,a);if(r1(i)&&(r=i.constructor,(Q8(r)&&(r===m4||r1(r.prototype))||ri(r)&&(r=r[Qmt])===null)&&(r=void 0),r===m4||r===void 0))return Zmt(i,u,s);for(n=new(r===void 0?m4:r)(tyt(s-u,0)),o=0;u<s;u++,o++)u in i&&GV(n,o,i[u]);return n.length=o,n}});var MP=Qt(Qt.bind),eyt=po("species"),zP=qt.Array,ryt=function(t,e){return new((function(r){var n;return r1(r)&&(n=r.constructor,(Q8(n)&&(n===zP||r1(n.prototype))||ri(n)&&(n=n[eyt])===null)&&(n=void 0)),n===void 0?zP:n})(t))(e===0?0:e)},HP=Qt([].push),c0=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=$8(s),v=_V(m),g=(function(E,S){return BV(E),S===void 0?E:MP?MP(E,S):function(){return E.apply(S,arguments)}})(l,c),y=Hb(v),h=0,b=f||ryt,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:HP(w,d)}else switch(t){case 4:return!1;case 7:HP(w,d)}return i?-1:n||o?o:w}},$b={forEach:c0(0),map:c0(1),filter:c0(2),find:c0(5)},nyt=$b.map;Su({target:"Array",proto:!0,forced:!tA("map")},{map:function(t){return nyt(this,t,arguments.length>1?arguments[1]:void 0)}});var oyt=Y8?{}.toString:function(){return"[object "+X8(this)+"]"};function Vb(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function qV(t){return Vb(t).every((function(e){return!!e.isHeader}))}Y8||Lh(Object.prototype,"toString",oyt,{unsafe:!0});var iyt=q8.PROPER,HS=RegExp.prototype,KV=HS.toString,ayt=Qt(MV),uyt=yr((function(){return KV.call({source:"a",flags:"b"})!="/a/b"})),syt=iyt&&KV.name!="toString";(uyt||syt)&&Lh(RegExp.prototype,"toString",(function(){var t=no(this),e=Zr(t.source),r=t.flags;return"/"+e+"/"+Zr(r===void 0&&kV(HS,t)&&!("flags"in HS)?ayt(t):r)}),{unsafe:!0});var $S=po("unscopables"),VS=Array.prototype;VS[$S]==null&&qg.f(VS,$S,{configurable:!0,value:VV(null)});var lyt=$b.find,$P=!0;"find"in[]&&Array(1).find((function(){$P=!1})),Su({target:"Array",proto:!0,forced:$P},{find:function(t){return lyt(this,t,arguments.length>1?arguments[1]:void 0)}}),VS[$S].find=!0;var eA=Function.prototype,VP=eA.apply,cyt=eA.bind,UP=eA.call,YV=typeof Reflect=="object"&&Reflect.apply||(cyt?UP.bind(VP):function(){return UP.apply(VP,arguments)}),fyt=po("species"),y4=RegExp.prototype,XV=function(t,e,r,n){var o=po(t),i=!yr((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!yr((function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[fyt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Qt(/./[o]),s=e(o,""[t],(function(l,c,f,d,p){var m=Qt(l),v=c.exec;return v===Mh||v===y4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));Lh(String.prototype,t,s[0]),Lh(y4,o,s[1])}n&&vf(y4[o],"sham",!0)},dyt=po("match"),pyt=qt.TypeError,hyt=po("species"),gyt=Qt("".charAt),WP=Qt("".charCodeAt),vyt=Qt("".slice),myt=function(t){return function(e,r){var n,o,i=Zr(Cu(e)),a=zb(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=WP(i,a))<55296||n>56319||a+1===u||(o=WP(i,a+1))<56320||o>57343?t?gyt(i,a):n:t?vyt(i,a,a+2):o-56320+(n-55296<<10)+65536}},yyt=myt(!0),ZV=function(t,e,r){return e+(r?yyt(t,e).length:1)},byt=qt.Array,wyt=Math.max,GP=function(t,e,r){for(var n=Hb(t),o=Rh(e,n),i=Rh(r===void 0?n:r,n),a=byt(wyt(i-o,0)),u=0;o<i;o++,u++)GV(a,u,t[o]);return a.length=u,a},Eyt=qt.TypeError,US=function(t,e){var r=t.exec;if(en(r)){var n=Sr(r,t,e);return n!==null&&no(n),n}if(iu(t)==="RegExp")return Sr(Mh,t,e);throw Eyt("RegExp#exec called on incompatible receiver")},ql=zV.UNSUPPORTED_Y,xyt=Math.min,JV=[].push,Cyt=Qt(/./.exec),Kl=Qt(JV),Yd=Qt("".slice);XV("split",(function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Zr(Cu(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!ri(a=o)||!((u=a[dyt])!==void 0?u:iu(a)=="RegExp"))return Sr(e,s,o,l);for(var c,f,d,p=[],m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,g=new RegExp(o.source,m+"g");(c=Sr(Mh,g,s))&&!((f=g.lastIndex)>v&&(Kl(p,Yd(s,v,c.index)),c.length>1&&c.index<s.length&&YV(JV,p,GP(c,1)),d=c[0].length,v=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!d&&Cyt(g,"")||Kl(p,""):Kl(p,Yd(s,v)),p.length>l?GP(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Sr(e,this,o,i)}:e,[function(o,i){var a=Cu(this),u=o==null?void 0:M8(o,t);return u?Sr(u,o,a,i):Sr(n,Zr(a),o,i)},function(o,i){var a=no(this),u=Zr(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=(function(w,E){var S,x=no(w).constructor;return x===void 0||(S=no(x)[hyt])==null?E:(function(D){if(Q8(D))return D;throw pyt(TV(D)+" is not a constructor")})(S)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ql?"g":"y"),d=new l(ql?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return US(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=ql?0:v;var y,h=US(d,ql?Yd(u,v):u);if(h===null||(y=xyt(K8(d.lastIndex+(ql?v:0)),u.length))===m)v=ZV(u,v,c);else{if(Kl(g,Yd(u,m,v)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Kl(g,h[b]),g.length===p)return g;v=m=y}}return Kl(g,Yd(u,m)),g}]}),!!yr((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),ql);var WS=`	
\v\f\r                　\u2028\u2029\uFEFF`,qP=Qt("".replace),n1="["+WS+"]",Syt=RegExp("^"+n1+n1+"*"),Dyt=RegExp(n1+n1+"*$"),Ayt=function(t){return function(e){var r=Zr(Cu(e));return 1&t&&(r=qP(r,Syt,"")),2&t&&(r=qP(r,Dyt,"")),r}},Oyt={trim:Ayt(3)},_yt=q8.PROPER,kyt=Oyt.trim;function QV(t){return t.length?t[0].tagName.toLowerCase():""}Su({target:"String",proto:!0,forced:(function(t){return yr((function(){return!!WS[t]()||"​᠎"[t]()!=="​᠎"||_yt&&WS[t].name!==t}))})("trim")},{trim:function(){return kyt(this)}}),Su({global:!0},{globalThis:qt}),uo&&(j.fn.append=uo),fi&&(j.fn.on=fi),vu&&(j.fn.focus=vu),ao&&(j.fn.attr=ao),ci&&(j.fn.val=ci),gu&&(j.fn.html=gu),Qc&&(j.fn.dataset=Qc),Xc&&(j.fn.addClass=Xc),Zc&&(j.fn.removeClass=Zc),nf&&(j.fn.children=nf),iy&&(j.fn.each=iy),rf&&(j.fn.find=rf);var zh=!1,tU=0,eU=0,Hh=null,$h=null,Yp=j("body");function rU(t){zh=!1,$h=null,Hh=null,Yp.off("mousemove",nU),Yp.off("mouseup",rU)}Yp.on("mousedown",(function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),zh=!0;var r=t.clientX;tU=r;var n=e.getBoundingClientRect().width;eU=n,Yp.on("mousemove",nU),Yp.on("mouseup",rU)}}));var nU=Zs((function(t){if(zh&&$h!=null&&Hh!=null){t.preventDefault();var e=t.clientX,r=eU+(e-tU);(r=Math.floor(100*r)/100)<30&&(r=30),$.setNodes($h,{width:r.toString()},{at:Hh})}}),100),Tyt={type:"table",renderElem:function(t,e,r){var n=(function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||q.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=k.findPath(u,s),p=C.start(u,d),m=C.end(u,d),v=Ut.compare(c,m)<=0&&Ut.compare(c,p)>=0,g=Ut.compare(f,m)<=0&&Ut.compare(f,p)>=0;return!!(v&&g&&R.equals(c.path.slice(0,3),f.path.slice(0,3)))})(r,t),o=t.width,i=o===void 0?"auto":o,a=jt("div",{className:"table-container","data-selected":k.isNodeSelected(r,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=k.findPath(r,t),l=C.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},jt("table",{width:i,contentEditable:n},jt("colgroup",null,Vb(t).map((function(u){var s=u.width;return jt("col",{width:s===void 0?"auto":s})}))),jt("tbody",null,e)));return a}},Byt={type:"table-row",renderElem:function(t,e,r){return jt("tr",null,e)}},Fyt={type:"table-cell",renderElem:function(t,e,r){var n=(function(d,p){var m=k.getParentNode(d,p);if(m==null)return!1;var v=k.getParentNode(d,m);return v!=null&&Vb(v).some((function(g){return g===p}))})(r,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!n)return jt("td",{colSpan:a,rowSpan:s},e);var f=jt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Zs((function(d){var p=this.elm;if(p!=null){var m=p.getBoundingClientRect(),v=m.left,g=m.width,y=m.top,h=m.height,b=d.clientX,w=d.clientY;zh||(b>v+g-5&&b<v+g&&w>y&&w<y+h?(p.style.cursor="col-resize",$h=r,Hh=k.findPath(r,t)):zh||(p.style.cursor="auto",$h=null,Hh=null))}}),100)}},e);return f}},Pyt={selector:"table",preParseHtml:function(t){var e=j(t);if(QV(e)!=="table")return t;var r=e.find("tbody");if(r.length===0)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},jyt=$b.filter;Su({target:"Array",proto:!0,forced:!tA("filter")},{filter:function(t){return jyt(this,t,arguments.length>1?arguments[1]:void 0)}});var Nyt=Math.floor,b4=Qt("".charAt),Iyt=Qt("".replace),w4=Qt("".slice),Lyt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ryt=/\$([$&'`]|\d{1,2})/g,Myt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Ryt;return o!==void 0&&(o=$8(o),s=Lyt),Iyt(i,s,(function(l,c){var f;switch(b4(c,0)){case"$":return"$";case"&":return t;case"`":return w4(e,0,r);case"'":return w4(e,a);case"<":f=o[w4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Nyt(d/10);return p===0?l:p<=u?n[p-1]===void 0?b4(c,1):n[p-1]+b4(c,1):l}f=n[d-1]}return f===void 0?"":f}))},GS=po("replace"),zyt=Math.max,Hyt=Math.min,$yt=Qt([].concat),E4=Qt([].push),KP=Qt("".indexOf),YP=Qt("".slice),Vyt="a".replace(/./,"$0")==="$0",XP=!!/./[GS]&&/./[GS]("a","$0")==="";XV("replace",(function(t,e,r){var n=XP?"$":"$0";return[function(o,i){var a=Cu(this),u=o==null?void 0:M8(o,GS);return u?Sr(u,o,a,i):Sr(e,Zr(a),o,i)},function(o,i){var a=no(this),u=Zr(o);if(typeof i=="string"&&KP(i,n)===-1&&KP(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=en(i);l||(i=Zr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=US(a,u);if(p===null||(E4(d,p),!c))break;Zr(p[0])===""&&(a.lastIndex=ZV(u,K8(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=Zr((p=d[y])[0]),b=zyt(Hyt(zb(p.index),u.length),0),w=[],E=1;E<p.length;E++)E4(w,(m=p[E])===void 0?m:String(m));var S=p.groups;if(l){var x=$yt([h],w,b,u);S!==void 0&&E4(x,S);var D=Zr(YV(i,void 0,x))}else D=Myt(h,u,b,w,S,i);b>=g&&(v+=YP(u,g,b)+D,g=b+h.length)}return v+YP(u,g)}]}),!!yr((function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"}))||!Vyt||XP);var Uyt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t);(e=e.filter((function(u){return!!yt.isText(u)||!!r.isInline(u)}))).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:QV(n)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Wyt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"table-row",children:e.filter((function(n){return k.getNodeType(n)==="table-cell"}))}}},Gyt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=j(t),o="auto";return(function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u})(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter((function(i){return k.getNodeType(i)==="table-row"}))}}},qyt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||!!k.getSelectedElems(e).some((function(n){var o=k.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(n)}))},t.prototype.getPanelContentElem=function(e){var r=this;if(this.$content)return this.$content[0];for(var n=j('<div class="w-e-panel-content-table"></div>'),o=j("<span>0 &times; 0</span>"),i=j("<table></table>"),a=0;a<10;a++){for(var u=j("<tr></tr>"),s=0;s<10;s++){var l=j("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",(function(c){var f=c.target;if(f!=null){var d=j(f).dataset(),p=d.x,m=d.y;o[0].innerHTML=p+1+" &times; "+(m+1),i.children().each((function(v){j(v).children().each((function(g){var y=j(g),h=y.dataset(),b=h.x,w=h.y;b<=p&&w<=m?y.addClass("active"):y.removeClass("active")}))}))}})),l.on("click",(function(c){c.preventDefault();var f=c.target;if(f!=null){var d=j(f).dataset(),p=d.x,m=d.y;r.insertTable(e,m+1,p+1)}}))}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},t.prototype.insertTable=function(e,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){k.isSelectedEmptyParagraph(e)&&$.removeNodes(e,{mode:"highest"});var a=(function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}})(o,i);$.insertNodes(e,a,{mode:"highest"})}},t})(),Kyt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||k.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||$.removeNodes(e,{mode:"highest"})},t})(),Yyt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Lo(C.nodes(e,{match:function(p){return k.checkNodeType(p,"table-cell")},universal:!0}),1),o=Lo(n[0],2),i=o[0],a=o[1],u=k.getParentNode(e,i),s=u?.children.length||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=R.parent(a),d=R.next(f);$.insertNodes(e,l,{at:d})}}},t})(),Xyt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Lo(C.nodes(e,{match:function(s){return k.checkNodeType(s,"table-row")},universal:!0}),1),o=Lo(n[0],2),i=o[0],a=o[1],u=k.getParentNode(e,i);(u?.children.length||0)<=1?$.removeNodes(e,{mode:"highest"}):$.removeNodes(e,{at:a})}},t})(),ZP={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},x4=U8("span").classList,JP=x4&&x4.constructor&&x4.constructor.prototype,Zyt=JP===Object.prototype?void 0:JP,Jyt=$b.forEach,Qyt=(function(t,e){var r=[].forEach;return!!r&&yr((function(){r.call(null,(function(){throw 1}),1)}))})(),C4=Qyt?[].forEach:function(t){return Jyt(this,t,arguments.length>1?arguments[1]:void 0)},oU=function(t){if(t&&t.forEach!==C4)try{vf(t,"forEach",C4)}catch{t.forEach=C4}};for(var S4 in ZP)ZP[S4]&&oU(qt[S4]&&qt[S4].prototype);oU(Zyt);var t1t=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Lo(C.nodes(e,{match:function(l){return k.checkNodeType(l,"table-cell")},universal:!0}),1),o=Lo(n[0],2),i=o[0],a=o[1],u=k.getParentNode(e,i);if(u!=null){var s=k.getParentNode(e,u);s!=null&&(s.children||[]).forEach((function(l,c){Et.isElement(l)&&(l.children||[]).forEach((function(f){var d=k.findPath(e,f);if(d.length===a.length&&DV(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&qV(s)&&(p.isHeader=!0),$.insertNodes(e,p,{at:d})}}))}))}}},t})(),e1t=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Lo(C.nodes(e,{match:function(c){return k.checkNodeType(c,"table-cell")},universal:!0}),1),o=Lo(n[0],2),i=o[0],a=o[1],u=k.getParentNode(e,i),s=u?.children.length||0;if(!u||s<=1)$.removeNodes(e,{mode:"highest"});else{var l=k.getParentNode(e,u);l!=null&&(l.children||[]).forEach((function(c){Et.isElement(c)&&(c.children||[]).forEach((function(f){var d=k.findPath(e,f);d.length===a.length&&DV(d.slice(-1),a.slice(-1))&&$.removeNodes(e,{at:d})}))}))}}},t})(),r1t=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){var r=k.getSelectedNodeByType(e,"table");return r!=null&&qV(r)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=!r,o=k.getSelectedNodeByType(e,"table");o!=null&&Vb(o).forEach((function(i){return $.setNodes(e,{isHeader:n},{at:k.findPath(e,i)})}))}},t})(),n1t=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){var r=k.getSelectedNodeByType(e,"table");return r!=null&&r.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||k.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n={width:r?"auto":"100%"};$.setNodes(e,n,{mode:"highest"})}},t})(),o1t={renderElems:[Tyt,Byt,Fyt],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Pyt],parseElemsHtml:[Uyt,Wyt,Gyt],menus:[{key:"insertTable",factory:function(){return new qyt}},{key:"deleteTable",factory:function(){return new Kyt}},{key:"insertTableRow",factory:function(){return new Yyt}},{key:"deleteTableRow",factory:function(){return new Xyt}},{key:"insertTableCol",factory:function(){return new t1t}},{key:"deleteTableCol",factory:function(){return new e1t}},{key:"tableHeader",factory:function(){return new r1t}},{key:"tableFullWidth",factory:function(){return new n1t}}],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){k.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
`)},s.deleteBackward=function(l){if(!LP(s)){var c=s.selection;if(c){var f=C.before(s,c);if(f){var d=RP(s,f),p=RP(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(k.getSelectedNodeByType(s,"table")){var c=C.above(t);k.checkNodeType(c[0],"table-cell")&&$.select(t,c[1]);var f=C.next(t);if(f)f[0]&&f[0].text&&(f=(l=C.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),$.select(t,f[1]);else{var d=s.children||[],p=d.length;if(k.checkNodeType(d[p-1],"table")){var m=k.genEmptyParagraph();$.insertNodes(s,m,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){LP(s)||n(l)},s.normalizeNode=function(l){var c=Lo(l,2),f=c[0],d=c[1];if(k.getNodeType(f)!=="table")return o([f,d]);if(k.isLastNode(s,f)){var p=k.genEmptyParagraph();$.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(k.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):C.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=k.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(R.equals(f.path.slice(0,3),d.path.slice(0,3)))if(ft.string(c).length!==0){var p=k.findPath(s,c),m={anchor:C.start(s,p),focus:C.end(s,p)};s.select(m)}else u();else u()}else u()}else u()},s}};Sn("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"}}),Sn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var o1=function(){return o1=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o1.apply(this,arguments)};function Ub(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r((function(f){f(c)}))).then(a,u)}s((n=n.apply(t,[])).next())}))}function Wb(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function Ms(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function i1t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise((function(a,u){(function(s,l,c,f){Promise.resolve(f).then((function(d){s({value:d,done:c})}),l)})(a,u,(i=t[o](i)).done,i.value)}))}}}var QP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rA(t){var e={exports:{}};return t(e,e.exports),e.exports}var Aa,om,f0=function(t){return t&&t.Math==Math&&t},ht=f0(typeof globalThis=="object"&&globalThis)||f0(typeof window=="object"&&window)||f0(typeof self=="object"&&self)||f0(typeof QP=="object"&&QP)||(function(){return this})()||Function("return this")(),Te=function(t){try{return!!t()}catch{return!0}},pi=!Te((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Xd=Function.prototype.call,ke=Xd.bind?Xd.bind(Xd):function(){return Xd.apply(Xd,arguments)},tj={}.propertyIsEnumerable,ej=Object.getOwnPropertyDescriptor,a1t={f:ej&&!tj.call({1:2},1)?function(t){var e=ej(this,t);return!!e&&e.enumerable}:tj},Gb=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},iU=Function.prototype,qS=iU.bind,KS=iU.call,u1t=qS&&qS.bind(KS),Mt=qS?function(t){return t&&u1t(KS,t)}:function(t){return t&&function(){return KS.apply(t,arguments)}},s1t=Mt({}.toString),l1t=Mt("".slice),ui=function(t){return l1t(s1t(t),8,-1)},D4=ht.Object,c1t=Mt("".split),nA=Te((function(){return!D4("z").propertyIsEnumerable(0)}))?function(t){return ui(t)=="String"?c1t(t,""):D4(t)}:D4,f1t=ht.TypeError,Yg=function(t){if(t==null)throw f1t("Can't call method on "+t);return t},Pu=function(t){return nA(Yg(t))},xe=function(t){return typeof t=="function"},Me=function(t){return typeof t=="object"?t!==null:xe(t)},d1t=function(t){return xe(t)?t:void 0},ul=function(t,e){return arguments.length<2?d1t(ht[t]):ht[t]&&ht[t][e]},Vh=Mt({}.isPrototypeOf),Lc=ul("navigator","userAgent")||"",rj=ht.process,nj=ht.Deno,oj=rj&&rj.versions||nj&&nj.version,ij=oj&&oj.v8;ij&&(om=(Aa=ij.split("."))[0]>0&&Aa[0]<4?1:+(Aa[0]+Aa[1])),!om&&Lc&&(!(Aa=Lc.match(/Edge\/(\d+)/))||Aa[1]>=74)&&(Aa=Lc.match(/Chrome\/(\d+)/))&&(om=+Aa[1]);var Uh=om,YS=!!Object.getOwnPropertySymbols&&!Te((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Uh&&Uh<41})),oA=YS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",p1t=ht.Object,A4=oA?function(t){return typeof t=="symbol"}:function(t){var e=ul("Symbol");return xe(e)&&Vh(e.prototype,p1t(t))},h1t=ht.String,i1=function(t){try{return h1t(t)}catch{return"Object"}},g1t=ht.TypeError,Du=function(t){if(xe(t))return t;throw g1t(i1(t)+" is not a function")},Wh=function(t,e){var r=t[e];return r==null?void 0:Du(r)},v1t=ht.TypeError,m1t=Object.defineProperty,iA=function(t,e){try{m1t(ht,t,{value:e,configurable:!0,writable:!0})}catch{ht[t]=e}return e},uu=ht["__core-js_shared__"]||iA("__core-js_shared__",{}),aA=rA((function(t){(t.exports=function(e,r){return uu[e]||(uu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),y1t=ht.Object,qb=function(t){return y1t(Yg(t))},b1t=Mt({}.hasOwnProperty),vr=Object.hasOwn||function(t,e){return b1t(qb(t),e)},w1t=0,E1t=Math.random(),x1t=Mt(1 .toString),uA=function(t){return"Symbol("+(t===void 0?"":t)+")_"+x1t(++w1t+E1t,36)},Zd=aA("wks"),zs=ht.Symbol,aj=zs&&zs.for,C1t=oA?zs:zs&&zs.withoutSetter||uA,ur=function(t){if(!vr(Zd,t)||!YS&&typeof Zd[t]!="string"){var e="Symbol."+t;YS&&vr(zs,t)?Zd[t]=zs[t]:Zd[t]=oA&&aj?aj(e):C1t(e)}return Zd[t]},S1t=ht.TypeError,D1t=ur("toPrimitive"),sA=function(t){var e=(function(r,n){if(!Me(r)||A4(r))return r;var o,i=Wh(r,D1t);if(i){if(o=ke(i,r,n),!Me(o)||A4(o))return o;throw S1t("Can't convert object to primitive value")}return(function(a,u){var s,l;if(xe(s=a.toString)&&!Me(l=ke(s,a))||xe(s=a.valueOf)&&!Me(l=ke(s,a)))return l;throw v1t("Can't convert object to primitive value")})(r)})(t,"string");return A4(e)?e:e+""},XS=ht.document,A1t=Me(XS)&&Me(XS.createElement),Gh=function(t){return A1t?XS.createElement(t):{}},aU=!pi&&!Te((function(){return Object.defineProperty(Gh("div"),"a",{get:function(){return 7}}).a!=7})),uj=Object.getOwnPropertyDescriptor,lA={f:pi?uj:function(t,e){if(t=Pu(t),e=sA(e),aU)try{return uj(t,e)}catch{}if(vr(t,e))return Gb(!ke(a1t.f,t,e),t[e])}},O1t=ht.String,_1t=ht.TypeError,Nr=function(t){if(Me(t))return t;throw _1t(O1t(t)+" is not an object")},k1t=ht.TypeError,sj=Object.defineProperty,aa={f:pi?sj:function(t,e,r){if(Nr(t),e=sA(e),Nr(r),aU)try{return sj(t,e,r)}catch{}if("get"in r||"set"in r)throw k1t("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},su=pi?function(t,e,r){return aa.f(t,e,Gb(1,r))}:function(t,e,r){return t[e]=r,t},T1t=Mt(Function.toString);xe(uu.inspectSource)||(uu.inspectSource=function(t){return T1t(t)});var a1,Xp,u1,Kb=uu.inspectSource,lj=ht.WeakMap,uU=xe(lj)&&/native code/.test(Kb(lj)),cj=aA("keys"),cA=function(t){return cj[t]||(cj[t]=uA(t))},Yb={},ZS=ht.TypeError,B1t=ht.WeakMap;if(uU||uu.state){var Ju=uu.state||(uu.state=new B1t),F1t=Mt(Ju.get),fj=Mt(Ju.has),P1t=Mt(Ju.set);a1=function(t,e){if(fj(Ju,t))throw new ZS("Object already initialized");return e.facade=t,P1t(Ju,t,e),e},Xp=function(t){return F1t(Ju,t)||{}},u1=function(t){return fj(Ju,t)}}else{var Yl=cA("state");Yb[Yl]=!0,a1=function(t,e){if(vr(t,Yl))throw new ZS("Object already initialized");return e.facade=t,su(t,Yl,e),e},Xp=function(t){return vr(t,Yl)?t[Yl]:{}},u1=function(t){return vr(t,Yl)}}var Hn={set:a1,get:Xp,has:u1,enforce:function(t){return u1(t)?Xp(t):a1(t,{})},getterFor:function(t){return function(e){var r;if(!Me(e)||(r=Xp(e)).type!==t)throw ZS("Incompatible receiver, "+t+" required");return r}}},sU=Function.prototype,j1t=pi&&Object.getOwnPropertyDescriptor,O4=vr(sU,"name"),Vf={EXISTS:O4,PROPER:O4&&(function(){}).name==="something",CONFIGURABLE:O4&&(!pi||pi&&j1t(sU,"name").configurable)},co=rA((function(t){var e=Vf.CONFIGURABLE,r=Hn.get,n=Hn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;xe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vr(u,"name")||e&&u.name!==p)&&su(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ht?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:su(i,a,u)):f?i[a]=u:iA(a,u)})(Function.prototype,"toString",(function(){return xe(this)&&r(this).source||Kb(this)}))})),N1t=Math.ceil,I1t=Math.floor,Xb=function(t){var e=+t;return e!=e||e===0?0:(e>0?I1t:N1t)(e)},L1t=Math.max,R1t=Math.min,qh=function(t,e){var r=Xb(t);return r<0?L1t(r+e,0):R1t(r,e)},M1t=Math.min,lU=function(t){return t>0?M1t(Xb(t),9007199254740991):0},Xg=function(t){return lU(t.length)},dj=function(t){return function(e,r,n){var o,i=Pu(e),a=Xg(i),u=qh(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},cU={includes:dj(!0),indexOf:dj(!1)},z1t=cU.indexOf,pj=Mt([].push),fU=function(t,e){var r,n=Pu(t),o=0,i=[];for(r in n)!vr(Yb,r)&&vr(n,r)&&pj(i,r);for(;e.length>o;)vr(n,r=e[o++])&&(~z1t(i,r)||pj(i,r));return i},s1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H1t=s1.concat("length","prototype"),l1={f:Object.getOwnPropertyNames||function(t){return fU(t,H1t)}},$1t={f:Object.getOwnPropertySymbols},V1t=Mt([].concat),U1t=ul("Reflect","ownKeys")||function(t){var e=l1.f(Nr(t)),r=$1t.f;return r?V1t(e,r(t)):e},W1t=function(t,e){for(var r=U1t(e),n=aa.f,o=lA.f,i=0;i<r.length;i++){var a=r[i];vr(t,a)||n(t,a,o(e,a))}},G1t=/#|\.prototype\./,Zg=function(t,e){var r=K1t[q1t(t)];return r==X1t||r!=Y1t&&(xe(e)?Te(e):!!e)},q1t=Zg.normalize=function(t){return String(t).replace(G1t,".").toLowerCase()},K1t=Zg.data={},Y1t=Zg.NATIVE="N",X1t=Zg.POLYFILL="P",c1=Zg,Z1t=lA.f,yn=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?ht:l?ht[u]||iA(u,{}):(ht[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Z1t(r,n))&&a.value:r[n],!c1(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;W1t(i,o)}(t.sham||o&&o.sham)&&su(i,"sham",!0),co(r,n,i,t)}},dU={};dU[ur("toStringTag")]="z";var fA=String(dU)==="[object z]",J1t=ur("toStringTag"),Q1t=ht.Object,tbt=ui((function(){return arguments})())=="Arguments",Zb=fA?ui:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=Q1t(t),J1t))=="string"?r:tbt?ui(e):(n=ui(e))=="Object"&&xe(e.callee)?"Arguments":n},ebt=ht.String,Jn=function(t){if(Zb(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ebt(t)},JS=`	
\v\f\r                　\u2028\u2029\uFEFF`,hj=Mt("".replace),f1="["+JS+"]",rbt=RegExp("^"+f1+f1+"*"),nbt=RegExp(f1+f1+"*$"),obt=function(t){return function(e){var r=Jn(Yg(e));return 1&t&&(r=hj(r,rbt,"")),2&t&&(r=hj(r,nbt,"")),r}},ibt={trim:obt(3)},abt=Vf.PROPER,ubt=ibt.trim;function gj(t){return t.length?t[0].tagName.toLowerCase():""}function pU(t,e,r){e===void 0&&(e="auto"),r===void 0&&(r="auto");var n=j(t);return n.attr("width",e),n.attr("height",r),n[0].outerHTML}yn({target:"String",proto:!0,forced:Te((function(){return!!JS.trim()||"​᠎".trim()!=="​᠎"||abt&&JS.trim.name!=="trim"}))},{trim:function(){return ubt(this)}}),yn({global:!0},{globalThis:ht}),uo&&(j.fn.append=uo),fi&&(j.fn.on=fi),vu&&(j.fn.focus=vu),ao&&(j.fn.attr=ao),ci&&(j.fn.val=ci),gu&&(j.fn.html=gu),ef&&(j.fn.parent=ef),Jc&&(j.fn.hasClass=Jc),af&&(j.fn.empty=af);var d0,sbt={type:"video",renderElem:function(t,e,r){var n,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=k.isNodeSelected(r,t);if(a.trim().indexOf("<iframe ")===0)n=jt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:pU(a,c,d)});else{var m=jt("video",{poster:s,controls:!0},jt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
 抱歉，浏览器不支持 video 视频`);c!=="auto"&&(m.data.width=c),d!=="auto"&&(m.data.height=d),n=jt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},m)}return uf("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},n)}},lbt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?f+=pU(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
</div>`}},cbt=Object.keys||function(t){return fU(t,s1)},fbt=pi?Object.defineProperties:function(t,e){Nr(t);for(var r,n=Pu(e),o=cbt(e),i=o.length,a=0;i>a;)aa.f(t,r=o[a++],n[r]);return t},QS=ul("document","documentElement"),hU=cA("IE_PROTO"),_4=function(){},gU=function(t){return"<script>"+t+"<\/script>"},vj=function(t){t.write(gU("")),t.close();var e=t.parentWindow.Object;return t=null,e},im=function(){try{d0=new ActiveXObject("htmlfile")}catch{}var t,e;im=typeof document<"u"?document.domain&&d0?vj(d0):((e=Gh("iframe")).style.display="none",QS.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(gU("document.F=Object")),t.close(),t.F):vj(d0);for(var r=s1.length;r--;)delete im.prototype[s1[r]];return im()};Yb[hU]=!0;var dA=Object.create||function(t,e){var r;return t!==null?(_4.prototype=Nr(t),r=new _4,_4.prototype=null,r[hU]=t):r=im(),e===void 0?r:fbt(r,e)},t3=ur("unscopables"),e3=Array.prototype;e3[t3]==null&&aa.f(e3,t3,{configurable:!0,value:dA(null)});var Zp=function(t){e3[t3][t]=!0},dbt=cU.includes;yn({target:"Array",proto:!0},{includes:function(t){return dbt(this,t,arguments.length>1?arguments[1]:void 0)}}),Zp("includes");var pbt={selector:"iframe,video,p",preParseHtml:function(t){var e=j(t),r=e;if(gj(e)==="p"){var n=e.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=j(o))}}var a=gj(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=j('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},mj=Mt(Mt.bind),Kh=function(t,e){return Du(t),e===void 0?t:mj?mj(t,e):function(){return t.apply(e,arguments)}},d1=Array.isArray||function(t){return ui(t)=="Array"},vU=function(){},hbt=[],mU=ul("Reflect","construct"),pA=/^\s*(?:class|function)\b/,gbt=Mt(pA.exec),vbt=!pA.exec(vU),Jd=function(t){if(!xe(t))return!1;try{return mU(vU,hbt,t),!0}catch{return!1}},hA=!mU||Te((function(){var t;return Jd(Jd.call)||!Jd(Object)||!Jd((function(){t=!0}))||t}))?function(t){if(!xe(t))return!1;switch(Zb(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vbt||!!gbt(pA,Kb(t))}:Jd,mbt=ur("species"),yj=ht.Array,ybt=function(t,e){return new((function(r){var n;return d1(r)&&(n=r.constructor,(hA(n)&&(n===yj||d1(n.prototype))||Me(n)&&(n=n[mbt])===null)&&(n=void 0)),n===void 0?yj:n})(t))(e===0?0:e)},bj=Mt([].push),wj=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=qb(s),v=nA(m),g=Kh(l,c),y=Xg(v),h=0,b=f||ybt,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:bj(w,d)}else switch(t){case 4:return!1;case 7:bj(w,d)}return i?-1:n||o?o:w}},gA={find:wj(5),findIndex:wj(6)},bbt=gA.find,Ej=!0;"find"in[]&&Array(1).find((function(){Ej=!1})),yn({target:"Array",proto:!0,forced:Ej},{find:function(t){return bbt(this,t,arguments.length>1?arguments[1]:void 0)}}),Zp("find");var wbt=fA?{}.toString:function(){return"[object "+Zb(this)+"]"};function xj(t,e,r,n){return e===void 0&&(e=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:t,poster:e,width:r,height:n,children:[{text:""}]}}fA||co(Object.prototype,"toString",wbt,{unsafe:!0});var Cj,k4,Ebt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=j(t),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",xj(o=s[0].outerHTML,i,a,u);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",xj(o,i=l.attr("poster")||"",a,u)}},yU=function(){var t=Nr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},vA=ht.RegExp,bU=Te((function(){var t=vA("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));bU||Te((function(){return!vA("a","y").sticky}));var xbt={BROKEN_CARET:bU||Te((function(){var t=vA("^r","gy");return t.lastIndex=2,t.exec("str")!=null}))},Cbt=ht.RegExp,Sbt=Te((function(){var t=Cbt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),Dbt=ht.RegExp,Abt=Te((function(){var t=Dbt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),Obt=Hn.get,_bt=aA("native-string-replace",String.prototype.replace),p1=RegExp.prototype.exec,r3=p1,kbt=Mt("".charAt),Tbt=Mt("".indexOf),Bbt=Mt("".replace),T4=Mt("".slice),B4=(k4=/b*/g,ke(p1,Cj=/a/,"a"),ke(p1,k4,"a"),Cj.lastIndex!==0||k4.lastIndex!==0),Sj=xbt.BROKEN_CARET,F4=/()??/.exec("")[1]!==void 0;(B4||F4||Sj||Sbt||Abt)&&(r3=function(t){var e,r,n,o,i,a,u,s=this,l=Obt(s),c=Jn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ke(r3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=Sj&&s.sticky,m=ke(yU,s),v=s.source,g=0,y=c;if(p&&(m=Bbt(m,"y",""),Tbt(m,"g")===-1&&(m+="g"),y=T4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&kbt(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),F4&&(r=new RegExp("^"+v+"$(?!\\s)",m)),B4&&(n=s.lastIndex),o=ke(p1,p?r:s,y),p?o?(o.input=T4(o.input,g),o[0]=T4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:B4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),F4&&o&&o.length>1&&ke(_bt,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=dA(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var h1=r3;yn({target:"RegExp",proto:!0,forced:/./.exec!==h1},{exec:h1});var mA=Function.prototype,Dj=mA.apply,Fbt=mA.bind,Aj=mA.call,wU=typeof Reflect=="object"&&Reflect.apply||(Fbt?Aj.bind(Dj):function(){return Aj.apply(Dj,arguments)}),Oj=(ur("species"),RegExp.prototype),Pbt=Mt("".charAt),_j=Mt("".charCodeAt),jbt=Mt("".slice),Nbt=function(t){return function(e,r){var n,o,i=Jn(Yg(e)),a=Xb(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=_j(i,a))<55296||n>56319||a+1===u||(o=_j(i,a+1))<56320||o>57343?t?Pbt(i,a):n:t?jbt(i,a,a+2):o-56320+(n-55296<<10)+65536}},EU={charAt:Nbt(!0)},Ibt=EU.charAt,Lbt=function(t,e,r){return e+(r?Ibt(t,e).length:1)},Rbt=Math.floor,P4=Mt("".charAt),Mbt=Mt("".replace),j4=Mt("".slice),zbt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hbt=/\$([$&'`]|\d{1,2})/g,$bt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Hbt;return o!==void 0&&(o=qb(o),s=zbt),Mbt(i,s,(function(l,c){var f;switch(P4(c,0)){case"$":return"$";case"&":return t;case"`":return j4(e,0,r);case"'":return j4(e,a);case"<":f=o[j4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Rbt(d/10);return p===0?l:p<=u?n[p-1]===void 0?P4(c,1):n[p-1]+P4(c,1):l}f=n[d-1]}return f===void 0?"":f}))},Vbt=ht.TypeError,Ubt=function(t,e){var r=t.exec;if(xe(r)){var n=ke(r,t,e);return n!==null&&Nr(n),n}if(ui(t)==="RegExp")return ke(h1,t,e);throw Vbt("RegExp#exec called on incompatible receiver")},n3=ur("replace"),Wbt=Math.max,Gbt=Math.min,qbt=Mt([].concat),N4=Mt([].push),kj=Mt("".indexOf),Tj=Mt("".slice),Kbt="a".replace(/./,"$0")==="$0",Bj=!!/./[n3]&&/./[n3]("a","$0")==="";function xU(t){return t+"-"+FM()}(function(t,e,r,n){var o=ur(t),i=!Te((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!Te((function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Mt(/./[o]),s=(function(l,c,f){var d=Bj?"$":"$0";return[function(p,m){var v=Yg(this),g=p==null?void 0:Wh(p,n3);return g?ke(g,p,v,m):ke(c,Jn(v),p,m)},function(p,m){var v=Nr(this),g=Jn(p);if(typeof m=="string"&&kj(m,d)===-1&&kj(m,"$<")===-1){var y=f(c,v,g,m);if(y.done)return y.value}var h=xe(m);h||(m=Jn(m));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var E=[];;){var S=Ubt(v,g);if(S===null||(N4(E,S),!b))break;Jn(S[0])===""&&(v.lastIndex=Lbt(g,lU(v.lastIndex),w))}for(var x,D="",A=0,P=0;P<E.length;P++){for(var M=Jn((S=E[P])[0]),F=Wbt(Gbt(Xb(S.index),g.length),0),V=[],U=1;U<S.length;U++)N4(V,(x=S[U])===void 0?x:String(x));var W=S.groups;if(h){var z=qbt([M],V,F,g);W!==void 0&&N4(z,W);var tt=Jn(wU(m,void 0,z))}else tt=$bt(M,g,F,V,W,m);F>=A&&(D+=Tj(g,A,F)+tt,A=F+M.length)}return D+Tj(g,A)}]})(0,""[t],(function(l,c,f,d,p){var m=Mt(l),v=c.exec;return v===h1||v===Oj.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));co(String.prototype,t,s[0]),co(Oj,o,s[1])}})("replace",0,!!Te((function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"}))||!Kbt||Bj);var g1=ht.Promise,v1=function(t,e,r){for(var n in e)co(t,n,e[n],r);return t},Ybt=ht.String,Xbt=ht.TypeError,mf=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,r={};try{(t=Mt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Nr(n),(function(i){if(typeof i=="object"||xe(i))return i;throw Xbt("Can't set "+Ybt(i)+" as a prototype")})(o),e?t(n,o):n.__proto__=o,n}})():void 0),Zbt=aa.f,Fj=ur("toStringTag"),m1=function(t,e,r){t&&!vr(t=r?t:t.prototype,Fj)&&Zbt(t,Fj,{configurable:!0,value:e})},Pj=ur("species"),Jbt=ht.TypeError,yA=function(t,e){if(Vh(e,t))return t;throw Jbt("Incorrect invocation")},yf={},Qbt=ur("iterator"),t2t=Array.prototype,e2t=ur("iterator"),jj=function(t){if(t!=null)return Wh(t,e2t)||Wh(t,"@@iterator")||yf[Zb(t)]},r2t=ht.TypeError,Nj=function(t,e,r){var n,o;Nr(t);try{if(!(n=Wh(t,"return"))){if(e==="throw")throw r;return r}n=ke(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Nr(n),r},n2t=ht.TypeError,am=function(t,e){this.stopped=t,this.result=e},Ij=am.prototype,y1=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),v=Kh(e,f),g=function(h){return n&&Nj(n,"normal",h),new am(!0,h)},y=function(h){return d?(Nr(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(p)n=t;else{if(!(o=jj(t)))throw n2t(i1(t)+" is not iterable");if((c=o)!==void 0&&(yf.Array===c||t2t[Qbt]===c)){for(i=0,a=Xg(t);a>i;i++)if((u=y(t[i]))&&Vh(Ij,u))return u;return new am(!1)}n=(function(h,b){var w=arguments.length<2?jj(h):b;if(Du(w))return Nr(ke(w,h));throw r2t(i1(h)+" is not iterable")})(t,o)}for(s=n.next;!(l=ke(s,n)).done;){try{u=y(l.value)}catch(h){Nj(n,"throw",h)}if(typeof u=="object"&&u&&Vh(Ij,u))return u}return new am(!1)},CU=ur("iterator"),SU=!1;try{var o2t=0,Lj={next:function(){return{done:!!o2t++}},return:function(){SU=!0}};Lj[CU]=function(){return this},Array.from(Lj,(function(){throw 2}))}catch{}var Yh,Xl,Rj,I4,DU=function(t,e){if(!SU)return!1;var r=!1;try{var n={};n[CU]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},i2t=ht.TypeError,a2t=ur("species"),AU=Mt([].slice),OU=/(?:ipad|iphone|ipod).*applewebkit/i.test(Lc),lu=ui(ht.process)=="process",o3=ht.setImmediate,Mj=ht.clearImmediate,u2t=ht.process,L4=ht.Dispatch,s2t=ht.Function,zj=ht.MessageChannel,l2t=ht.String,R4=0,Jp={};try{Yh=ht.location}catch{}var bA=function(t){if(vr(Jp,t)){var e=Jp[t];delete Jp[t],e()}},M4=function(t){return function(){bA(t)}},Hj=function(t){bA(t.data)},$j=function(t){ht.postMessage(l2t(t),Yh.protocol+"//"+Yh.host)};o3&&Mj||(o3=function(t){var e=AU(arguments,1);return Jp[++R4]=function(){wU(xe(t)?t:s2t(t),void 0,e)},Xl(R4),R4},Mj=function(t){delete Jp[t]},lu?Xl=function(t){u2t.nextTick(M4(t))}:L4&&L4.now?Xl=function(t){L4.now(M4(t))}:zj&&!OU?(I4=(Rj=new zj).port2,Rj.port1.onmessage=Hj,Xl=Kh(I4.postMessage,I4)):ht.addEventListener&&xe(ht.postMessage)&&!ht.importScripts&&Yh&&Yh.protocol!=="file:"&&!Te($j)?(Xl=$j,ht.addEventListener("message",Hj,!1)):Xl="onreadystatechange"in Gh("script")?function(t){QS.appendChild(Gh("script")).onreadystatechange=function(){QS.removeChild(this),bA(t)}}:function(t){setTimeout(M4(t),0)});var Qd,fs,Qp,fc,z4,H4,$4,Vj,_U={set:o3},c2t=/ipad|iphone|ipod/i.test(Lc)&&ht.Pebble!==void 0,f2t=/web0s(?!.*chrome)/i.test(Lc),d2t=lA.f,V4=_U.set,Uj=ht.MutationObserver||ht.WebKitMutationObserver,Wj=ht.document,Gj=ht.process,p0=ht.Promise,qj=d2t(ht,"queueMicrotask"),kU=qj&&qj.value;kU||(Qd=function(){var t,e;for(lu&&(t=Gj.domain)&&t.exit();fs;){e=fs.fn,fs=fs.next;try{e()}catch(r){throw fs?fc():Qp=void 0,r}}Qp=void 0,t&&t.enter()},OU||lu||f2t||!Uj||!Wj?!c2t&&p0&&p0.resolve?(($4=p0.resolve(void 0)).constructor=p0,Vj=Kh($4.then,$4),fc=function(){Vj(Qd)}):lu?fc=function(){Gj.nextTick(Qd)}:(V4=Kh(V4,ht),fc=function(){V4(Qd)}):(z4=!0,H4=Wj.createTextNode(""),new Uj(Qd).observe(H4,{characterData:!0}),fc=function(){H4.data=z4=!z4}));var U4,Kj,TU,Yj,BU=kU||function(t){var e={fn:t,next:void 0};Qp&&(Qp.next=e),fs||(fs=e,fc()),Qp=e},p2t=function(t){var e,r;this.promise=new t((function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o})),this.resolve=Du(e),this.reject=Du(r)},wA={f:function(t){return new p2t(t)}},i3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},h2t=typeof window=="object",FU=_U.set,g2t=ur("species"),Ri="Promise",Xj=Hn.getterFor(Ri),v2t=Hn.set,m2t=Hn.getterFor(Ri),is=g1&&g1.prototype,ni=g1,tp=is,PU=ht.TypeError,a3=ht.document,EA=ht.process,Rc=wA.f,y2t=Rc,b2t=!!(a3&&a3.createEvent&&ht.dispatchEvent),jU=xe(ht.PromiseRejectionEvent),NU=!1,th=c1(Ri,(function(){var t=Kb(ni),e=t!==String(ni);if(!e&&Uh===66)return!0;if(Uh>=51&&/native code/.test(t))return!1;var r=new ni((function(o){o(1)})),n=function(o){o((function(){}),(function(){}))};return(r.constructor={})[g2t]=n,!(NU=r.then((function(){}))instanceof n)||!e&&h2t&&!jU})),w2t=th||!DU((function(t){ni.all(t).catch((function(){}))})),IU=function(t){var e;return!(!Me(t)||!xe(e=t.then))&&e},xA=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;BU((function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&x2t(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(PU("Promise-chain cycle")):(u=IU(a))?ke(u,a,f,d):f(a)):d(n)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&E2t(t)}))}},LU=function(t,e,r){var n,o;b2t?((n=a3.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),ht.dispatchEvent(n)):n={promise:e,reason:r},!jU&&(o=ht["on"+t])?o(n):t==="unhandledrejection"&&(function(i,a){var u=ht.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},E2t=function(t){ke(FU,ht,(function(){var e,r=t.facade,n=t.value;if(Zj(t)&&(e=i3((function(){lu?EA.emit("unhandledRejection",n,r):LU("unhandledrejection",r,n)})),t.rejection=lu||Zj(t)?2:1,e.error))throw e.value}))},Zj=function(t){return t.rejection!==1&&!t.parent},x2t=function(t){ke(FU,ht,(function(){var e=t.facade;lu?EA.emit("rejectionHandled",e):LU("rejectionhandled",e,t.value)}))},yc=function(t,e,r){return function(n){t(e,n,r)}},Mc=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,xA(t,!0))},u3=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw PU("Promise can't be resolved itself");var n=IU(e);n?BU((function(){var o={done:!1};try{ke(n,e,yc(u3,o,t),yc(Mc,o,t))}catch(i){Mc(o,i,t)}})):(t.value=e,t.state=1,xA(t,!1))}catch(o){Mc({done:!1},o,t)}}};if(th&&(tp=(ni=function(t){yA(this,tp),Du(t),ke(U4,this);var e=Xj(this);try{t(yc(u3,e),yc(Mc,e))}catch(r){Mc(e,r)}}).prototype,(U4=function(t){v2t(this,{type:Ri,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v1(tp,{then:function(t,e){var r=m2t(this),n=r.reactions,o=Rc((function(i,a){var u,s=Nr(i).constructor;return s===void 0||(u=Nr(s)[a2t])==null?a:(function(l){if(hA(l))return l;throw i2t(i1(l)+" is not a constructor")})(u)})(this,ni));return o.ok=!xe(t)||t,o.fail=xe(e)&&e,o.domain=lu?EA.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&xA(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Kj=function(){var t=new U4,e=Xj(t);this.promise=t,this.resolve=yc(u3,e),this.reject=yc(Mc,e)},wA.f=Rc=function(t){return t===ni||t===TU?new Kj(t):y2t(t)},xe(g1)&&is!==Object.prototype)){Yj=is.then,NU||(co(is,"then",(function(t,e){var r=this;return new ni((function(n,o){ke(Yj,r,n,o)})).then(t,e)}),{unsafe:!0}),co(is,"catch",tp.catch,{unsafe:!0}));try{delete is.constructor}catch{}mf&&mf(is,tp)}function Xh(t,e,r){return r===void 0&&(r=""),Ub(this,void 0,void 0,(function(){var n,o,i,a,u,s,l;return Wb(this,(function(c){switch(c.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(e,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then((function(){$.insertNodes(t,l)})),o(l),[2]}}))}))}function W4(){return xU("w-e-insert-video")}yn({global:!0,wrap:!0,forced:th},{Promise:ni}),m1(ni,Ri,!1),(function(t){var e=ul("Promise"),r=aa.f;pi&&e&&!e[Pj]&&r(e,Pj,{configurable:!0,get:function(){return this}})})(),TU=ul(Ri),yn({target:Ri,stat:!0,forced:th},{reject:function(t){var e=Rc(this);return ke(e.reject,void 0,t),e.promise}}),yn({target:Ri,stat:!0,forced:th},{resolve:function(t){return(function(e,r){if(Nr(e),Me(r)&&r.constructor===e)return r;var n=wA.f(e);return(0,n.resolve)(r),n.promise})(this,t)}}),yn({target:Ri,stat:!0,forced:w2t},{all:function(t){var e=this,r=Rc(e),n=r.resolve,o=r.reject,i=i3((function(){var a=Du(e.resolve),u=[],s=0,l=1;y1(t,(function(c){var f=s++,d=!1;l++,ke(a,e,c).then((function(p){d||(d=!0,u[f]=p,--l||n(u))}),o)})),--l||n(u)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Rc(e),n=r.reject,o=i3((function(){var i=Du(e.resolve);y1(t,(function(a){ke(i,e,a).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var C2t=(function(){function t(){this.title=dt("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=W4(),this.posterInputId=W4(),this.buttonId=W4()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||!!k.getSelectedElems(e).some((function(n){var o=k.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)}))},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=Ms(Nn(dt("videoModule.videoSrc"),o,dt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Ms(Nn(dt("videoModule.videoPoster"),i,dt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=j(l),m=j(d),v=Ms(Pf(a,dt("videoModule.ok")),1)[0];if(this.$content==null){var g=j("<div></div>");g.on("click","#"+a,(function(h){return Ub(r,void 0,void 0,(function(){var b,w;return Wb(this,(function(E){switch(E.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,Xh(e,b,w)];case 1:return E.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(v),p.val(""),m.val(""),setTimeout((function(){p.focus()})),y[0]},t})(),S2t=Mt([].join),D2t=nA!=Object,A2t=(function(t,e){var r=[].join;return!!r&&Te((function(){r.call(null,",",1)}))})();yn({target:"Array",proto:!0,forced:D2t||!A2t},{join:function(t){return S2t(Pu(this),t===void 0?",":t)}});var Hs,Jj,Qj,O2t=!Te((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),tN=cA("IE_PROTO"),s3=ht.Object,_2t=s3.prototype,b1=O2t?s3.getPrototypeOf:function(t){var e=qb(t);if(vr(e,tN))return e[tN];var r=e.constructor;return xe(r)&&e instanceof r?r.prototype:e instanceof s3?_2t:null},l3=ur("iterator"),RU=!1;[].keys&&("next"in(Qj=[].keys())?(Jj=b1(b1(Qj)))!==Object.prototype&&(Hs=Jj):RU=!0);var k2t=Hs==null||Te((function(){var t={};return Hs[l3].call(t)!==t}));k2t&&(Hs={}),xe(Hs[l3])||co(Hs,l3,(function(){return this}));var CA={IteratorPrototype:Hs,BUGGY_SAFARI_ITERATORS:RU},T2t=CA.IteratorPrototype,B2t=function(){return this},F2t=Vf.PROPER,P2t=Vf.CONFIGURABLE,eN=CA.IteratorPrototype,G4=CA.BUGGY_SAFARI_ITERATORS,ep=ur("iterator"),j2t=function(){return this},MU=function(t,e,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=dA(T2t,{next:Gb(1,h)}),m1(g,w,!1),yf[w]=B2t})(r,e,n);var u,s,l=function(g){if(g===o&&m)return m;if(!G4&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[ep]||d["@@iterator"]||o&&d[o],m=!G4&&p||l(o),v=e=="Array"&&d.entries||p;return v&&(u=b1(v.call(new t)))!==Object.prototype&&u.next&&(b1(u)!==eN&&(mf?mf(u,eN):xe(u[ep])||co(u,ep,j2t)),m1(u,c,!0)),F2t&&o=="values"&&p&&p.name!=="values"&&(P2t?su(d,"name","values"):(f=!0,m=function(){return ke(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||yn({target:e,proto:!0,forced:G4||f},s)),d[ep]!==m&&co(d,ep,m,{name:o}),yf[e]=m,s},N2t=Hn.set,I2t=Hn.getterFor("Array Iterator"),Op=MU(Array,"Array",(function(t,e){N2t(this,{type:"Array Iterator",target:Pu(t),index:0,kind:e})}),(function(){var t=I2t(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");yf.Arguments=yf.Array,Zp("keys"),Zp("values"),Zp("entries");var L2t=EU.charAt,R2t=Hn.set,M2t=Hn.getterFor("String Iterator");MU(String,"String",(function(t){R2t(this,{type:"String Iterator",string:Jn(t),index:0})}),(function(){var t,e=M2t(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=L2t(r,n),e.index+=t.length,{value:t,done:!1})}));var zU=function(t,e,r){var n=sA(e);n in t?aa.f(t,n,Gb(0,r)):t[n]=r},z2t=ht.Array,H2t=Math.max,rN=l1.f,nN=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$2t={f:function(t){return nN&&ui(t)=="Window"?(function(e){try{return rN(e)}catch{return(function(n,o,i){for(var a=Xg(n),u=qh(void 0,a),s=qh(a,a),l=z2t(H2t(s-u,0)),c=0;u<s;u++,c++)zU(l,c,n[u]);return l.length=c,l})(nN)}})(t):rN(Pu(t))}},oN=Te((function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),h0=Object.isExtensible,vs=Te((function(){h0(1)}))||oN?function(t){return!!Me(t)&&(!oN||ui(t)!="ArrayBuffer")&&(!h0||h0(t))}:h0,V2t=!Te((function(){return Object.isExtensible(Object.preventExtensions({}))})),SA=rA((function(t){var e=aa.f,r=!1,n=uA("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=l1.f,s=Mt([].splice),l={};l[n]=1,u(l).length&&(l1.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},yn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$2t.f}))},fastKey:function(u,s){if(!Me(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!vr(u,n)){if(!vs(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!vr(u,n)){if(!vs(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return V2t&&r&&vs(u)&&!vr(u,n)&&i(u),u}};Yb[n]=!0})),g0=SA.getWeakData,U2t=Hn.set,W2t=Hn.getterFor,G2t=gA.find,q2t=gA.findIndex,K2t=Mt([].splice),Y2t=0,v0=function(t){return t.frozen||(t.frozen=new HU)},HU=function(){this.entries=[]},q4=function(t,e){return G2t(t.entries,(function(r){return r[0]===e}))};HU.prototype={get:function(t){var e=q4(this,t);if(e)return e[1]},has:function(t){return!!q4(this,t)},set:function(t,e){var r=q4(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=q2t(this.entries,(function(r){return r[0]===t}));return~e&&K2t(this.entries,e,1),!!~e}};var rp,$U={getConstructor:function(t,e,r,n){var o=t((function(s,l){yA(s,i),U2t(s,{type:e,id:Y2t++,frozen:void 0}),l!=null&&y1(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=W2t(e),u=function(s,l,c){var f=a(s),d=g0(Nr(l),!0);return d===!0?v0(f).set(l,c):d[f.id]=c,s};return v1(i,{delete:function(s){var l=a(this);if(!Me(s))return!1;var c=g0(s);return c===!0?v0(l).delete(s):c&&vr(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Me(s))return!1;var c=g0(s);return c===!0?v0(l).has(s):c&&vr(c,l.id)}}),v1(i,r?{get:function(s){var l=a(this);if(Me(s)){var c=g0(s);return c===!0?v0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},m0=Hn.enforce,X2t=!ht.ActiveXObject&&"ActiveXObject"in ht,VU=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Z2t=(function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=ht[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=Mt(u[g]);co(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Me(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Me(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Me(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(c1(t,!xe(a)||!(o||u.forEach&&!Te((function(){new a().entries().next()})))))s=r.getConstructor(e,t,n,i),SA.enable();else if(c1(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Te((function(){f.has(1)})),m=DU((function(g){new a(g)})),v=!o&&Te((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));m||((s=e((function(g,y){yA(g,u);var h=(function(b,w,E){var S,x;return mf&&xe(S=w.constructor)&&S!==E&&Me(x=S.prototype)&&x!==E.prototype&&mf(b,x),b})(new a,g,s);return y!=null&&y1(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),n&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,yn({global:!0,forced:s!=a},l),m1(s,t),o||r.setStrong(s,t,n),s})("WeakMap",VU,$U);if(uU&&X2t){rp=$U.getConstructor(VU,"WeakMap",!0),SA.enable();var np=Z2t.prototype,iN=Mt(np.delete),y0=Mt(np.has),aN=Mt(np.get),uN=Mt(np.set);v1(np,{delete:function(t){if(Me(t)&&!vs(t)){var e=m0(this);return e.frozen||(e.frozen=new rp),iN(this,t)||e.frozen.delete(t)}return iN(this,t)},has:function(t){if(Me(t)&&!vs(t)){var e=m0(this);return e.frozen||(e.frozen=new rp),y0(this,t)||e.frozen.has(t)}return y0(this,t)},get:function(t){if(Me(t)&&!vs(t)){var e=m0(this);return e.frozen||(e.frozen=new rp),y0(this,t)?aN(this,t):e.frozen.get(t)}return aN(this,t)},set:function(t,e){if(Me(t)&&!vs(t)){var r=m0(this);r.frozen||(r.frozen=new rp),y0(this,t)?uN(this,t,e):r.frozen.set(t,e)}else uN(this,t,e);return this}})}var UU={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},K4=Gh("span").classList,sN=K4&&K4.constructor&&K4.constructor.prototype,J2t=sN===Object.prototype?void 0:sN,Y4=ur("iterator"),lN=ur("toStringTag"),X4=Op.values,WU=function(t,e){if(t){if(t[Y4]!==X4)try{su(t,Y4,X4)}catch{t[Y4]=X4}if(t[lN]||su(t,lN,e),UU[e]){for(var r in Op)if(t[r]!==Op[r])try{su(t,r,Op[r])}catch{t[r]=Op[r]}}}};for(var Z4 in UU)WU(ht[Z4]&&ht[Z4].prototype,Z4);WU(J2t,"DOMTokenList");var Q2t=Vf.EXISTS,twt=aa.f,GU=Function.prototype,ewt=Mt(GU.toString),qU=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rwt=Mt(qU.exec);pi&&!Q2t&&twt(GU,"name",{configurable:!0,get:function(){try{return rwt(qU,ewt(this))[1]}catch{return""}}});var nwt=ur("species"),owt=Uh>=51||!Te((function(){var t=[];return(t.constructor={})[nwt]=function(){return{foo:1}},t.slice(Boolean).foo!==1})),iwt=ur("species"),J4=ht.Array,awt=Math.max;function KU(t){return t.getMenuConfig("uploadVideo")}yn({target:"Array",proto:!0,forced:!owt},{slice:function(t,e){var r,n,o,i=Pu(this),a=Xg(i),u=qh(t,a),s=qh(e===void 0?a:e,a);if(d1(i)&&(r=i.constructor,(hA(r)&&(r===J4||d1(r.prototype))||Me(r)&&(r=r[iwt])===null)&&(r=void 0),r===J4||r===void 0))return AU(i,u,s);for(n=new(r===void 0?J4:r)(awt(s-u,0)),o=0;u<s;u++,o++)u in i&&zU(n,o,i[u]);return n.length=o,n}});var cN=new WeakMap;function uwt(t,e){return Ub(this,void 0,void 0,(function(){var r,n,o,i;return Wb(this,(function(a){switch(a.label){case 0:return r=(function(u){var s=cN.get(u);if(s!=null)return s;var l=KU(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=yH(o1(o1({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(p)return p(g,(function(D,A){return Xh(u,D,A)})),void c(v,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){var E=w.url,S=E===void 0?"":E,x=w.poster;Xh(u,S,x===void 0?"":x),c(v,g)}else d(v,g)},onError:function(v,g,y){m(v,g,y)}})),cN.set(u,s),s})(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}}))}))}var swt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a((function(c,f){return Xh(e,c,f)}));else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=j("body"),l=j('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var c=l[0].files;(function(f,d){var p,m;Ub(this,void 0,void 0,(function(){var v,g,y,h,b,w;return Wb(this,(function(E){switch(E.label){case 0:if(d==null)return[2];v=Array.prototype.slice.call(d),g=KU(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),y=i1t(v),E.label=2;case 2:return[4,y.next()];case 3:return(h=E.sent()).done?[3,8]:(b=h.value,g?[4,g(b,(function(S,x){return Xh(f,S,x)}))]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,uwt(f,b)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=E.sent(),p={error:w},[3,15];case 10:return E.trys.push([10,,13,14]),h&&!h.done&&(m=y.return)?[4,m.call(y)]:[3,12];case 11:E.sent(),E.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(e,c)}))}},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!q.isCollapsed(r)||!!k.getSelectedElems(e).some((function(n){var o=k.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)}))},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t})(),lwt=Vf.PROPER,c3=RegExp.prototype,YU=c3.toString,cwt=Mt(yU),fwt=Te((function(){return YU.call({source:"a",flags:"b"})!="/a/b"})),dwt=lwt&&YU.name!="toString";function Q4(){return xU("w-e-insert-video")}(fwt||dwt)&&co(RegExp.prototype,"toString",(function(){var t=Nr(this),e=Jn(t.source),r=t.flags;return"/"+e+"/"+Jn(r===void 0&&Vh(c3,t)&&!("flags"in c3)?cwt(t):r)}),{unsafe:!0});var pwt=(function(){function t(){this.title=dt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Q4(),this.heightInputId=Q4(),this.buttonId=Q4()}return t.prototype.getSelectedVideoNode=function(e){return k.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=Ms(Nn(dt("videoModule.width"),n,"auto"),2),u=a[0],s=j(a[1]),l=Ms(Nn(dt("videoModule.height"),o,"auto"),2),c=l[0],f=j(l[1]),d=Ms(Pf(i,dt("videoModule.ok")),1)[0];if(this.$content==null){var p=j("<div></div>");p.on("click","#"+i,(function(w){w.preventDefault();var E=p.find("#"+n).val().trim(),S=p.find("#"+o).val().trim(),x=parseInt(E),D=parseInt(S),A=x?x.toString():"auto",P=D?D.toString():"auto";e.restoreSelection(),$.setNodes(e,{width:A,height:P},{match:function(M){return k.checkNodeType(M,"video")}}),e.hidePanelOrModal()})),this.$content=p}var m=this.$content;m.empty(),m.append(u),m.append(c),m.append(d);var v=this.getSelectedVideoNode(e);if(v==null)return m[0];var g=v.width,y=g===void 0?"auto":g,h=v.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout((function(){s.focus()})),m[0]},t})(),hwt={renderElems:[sbt],elemsToHtml:[lbt],preParseHtml:[pbt],parseElemsHtml:[Ebt],menus:[{key:"insertVideo",factory:function(){return new C2t},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new swt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+" upload error",e,r)}}},{key:"editVideoSize",factory:function(){return new pwt}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="video"||e(o)},n.normalizeNode=function(o){var i=Ms(o,2),a=i[0],u=i[1];return k.getNodeType(a)==="video"&&k.isLastNode(n,a)&&$.insertNodes(n,k.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};Sn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Sn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var fN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DA(t){var e={exports:{}};return t(e,e.exports),e.exports}var Oa,um,b0=function(t){return t&&t.Math==Math&&t},pt=b0(typeof globalThis=="object"&&globalThis)||b0(typeof window=="object"&&window)||b0(typeof self=="object"&&self)||b0(typeof fN=="object"&&fN)||(function(){return this})()||Function("return this")(),Ie=function(t){try{return!!t()}catch{return!0}},hi=!Ie((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),op=Function.prototype.call,ye=op.bind?op.bind(op):function(){return op.apply(op,arguments)},dN={}.propertyIsEnumerable,pN=Object.getOwnPropertyDescriptor,gwt={f:pN&&!dN.call({1:2},1)?function(t){var e=pN(this,t);return!!e&&e.enumerable}:dN},Jb=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},XU=Function.prototype,f3=XU.bind,d3=XU.call,vwt=f3&&f3.bind(d3),Gt=f3?function(t){return t&&vwt(d3,t)}:function(t){return t&&function(){return d3.apply(t,arguments)}},mwt=Gt({}.toString),ywt=Gt("".slice),Bo=function(t){return ywt(mwt(t),8,-1)},tx=pt.Object,bwt=Gt("".split),AA=Ie((function(){return!tx("z").propertyIsEnumerable(0)}))?function(t){return Bo(t)=="String"?bwt(t,""):tx(t)}:tx,wwt=pt.TypeError,Zh=function(t){if(t==null)throw wwt("Can't call method on "+t);return t},ju=function(t){return AA(Zh(t))},Ae=function(t){return typeof t=="function"},je=function(t){return typeof t=="object"?t!==null:Ae(t)},Ewt=function(t){return Ae(t)?t:void 0},sl=function(t,e){return arguments.length<2?Ewt(pt[t]):pt[t]&&pt[t][e]},Jh=Gt({}.isPrototypeOf),zc=sl("navigator","userAgent")||"",hN=pt.process,gN=pt.Deno,vN=hN&&hN.versions||gN&&gN.version,mN=vN&&vN.v8;mN&&(um=(Oa=mN.split("."))[0]>0&&Oa[0]<4?1:+(Oa[0]+Oa[1])),!um&&zc&&(!(Oa=zc.match(/Edge\/(\d+)/))||Oa[1]>=74)&&(Oa=zc.match(/Chrome\/(\d+)/))&&(um=+Oa[1]);var Qh=um,p3=!!Object.getOwnPropertySymbols&&!Ie((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Qh&&Qh<41})),OA=p3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xwt=pt.Object,ex=OA?function(t){return typeof t=="symbol"}:function(t){var e=sl("Symbol");return Ae(e)&&Jh(e.prototype,xwt(t))},Cwt=pt.String,w1=function(t){try{return Cwt(t)}catch{return"Object"}},Swt=pt.TypeError,Au=function(t){if(Ae(t))return t;throw Swt(w1(t)+" is not a function")},tg=function(t,e){var r=t[e];return r==null?void 0:Au(r)},Dwt=pt.TypeError,Awt=Object.defineProperty,_A=function(t,e){try{Awt(pt,t,{value:e,configurable:!0,writable:!0})}catch{pt[t]=e}return e},cu=pt["__core-js_shared__"]||_A("__core-js_shared__",{}),kA=DA((function(t){(t.exports=function(e,r){return cu[e]||(cu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Owt=pt.Object,TA=function(t){return Owt(Zh(t))},_wt=Gt({}.hasOwnProperty),mr=Object.hasOwn||function(t,e){return _wt(TA(t),e)},kwt=0,Twt=Math.random(),Bwt=Gt(1 .toString),BA=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Bwt(++kwt+Twt,36)},ip=kA("wks"),$s=pt.Symbol,yN=$s&&$s.for,Fwt=OA?$s:$s&&$s.withoutSetter||BA,sr=function(t){if(!mr(ip,t)||!p3&&typeof ip[t]!="string"){var e="Symbol."+t;p3&&mr($s,t)?ip[t]=$s[t]:ip[t]=OA&&yN?yN(e):Fwt(e)}return ip[t]},Pwt=pt.TypeError,jwt=sr("toPrimitive"),FA=function(t){var e=(function(r,n){if(!je(r)||ex(r))return r;var o,i=tg(r,jwt);if(i){if(o=ye(i,r,n),!je(o)||ex(o))return o;throw Pwt("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Ae(s=a.toString)&&!je(l=ye(s,a))||Ae(s=a.valueOf)&&!je(l=ye(s,a)))return l;throw Dwt("Can't convert object to primitive value")})(r)})(t,"string");return ex(e)?e:e+""},h3=pt.document,Nwt=je(h3)&&je(h3.createElement),eg=function(t){return Nwt?h3.createElement(t):{}},ZU=!hi&&!Ie((function(){return Object.defineProperty(eg("div"),"a",{get:function(){return 7}}).a!=7})),bN=Object.getOwnPropertyDescriptor,PA={f:hi?bN:function(t,e){if(t=ju(t),e=FA(e),ZU)try{return bN(t,e)}catch{}if(mr(t,e))return Jb(!ye(gwt.f,t,e),t[e])}},Iwt=pt.String,Lwt=pt.TypeError,Ir=function(t){if(je(t))return t;throw Lwt(Iwt(t)+" is not an object")},Rwt=pt.TypeError,wN=Object.defineProperty,ua={f:hi?wN:function(t,e,r){if(Ir(t),e=FA(e),Ir(r),ZU)try{return wN(t,e,r)}catch{}if("get"in r||"set"in r)throw Rwt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},si=hi?function(t,e,r){return ua.f(t,e,Jb(1,r))}:function(t,e,r){return t[e]=r,t},Mwt=Gt(Function.toString);Ae(cu.inspectSource)||(cu.inspectSource=function(t){return Mwt(t)});var E1,eh,x1,Qb=cu.inspectSource,EN=pt.WeakMap,JU=Ae(EN)&&/native code/.test(Qb(EN)),xN=kA("keys"),jA=function(t){return xN[t]||(xN[t]=BA(t))},t2={},g3=pt.TypeError,zwt=pt.WeakMap;if(JU||cu.state){var Qu=cu.state||(cu.state=new zwt),Hwt=Gt(Qu.get),CN=Gt(Qu.has),$wt=Gt(Qu.set);E1=function(t,e){if(CN(Qu,t))throw new g3("Object already initialized");return e.facade=t,$wt(Qu,t,e),e},eh=function(t){return Hwt(Qu,t)||{}},x1=function(t){return CN(Qu,t)}}else{var Zl=jA("state");t2[Zl]=!0,E1=function(t,e){if(mr(t,Zl))throw new g3("Object already initialized");return e.facade=t,si(t,Zl,e),e},eh=function(t){return mr(t,Zl)?t[Zl]:{}},x1=function(t){return mr(t,Zl)}}var $n={set:E1,get:eh,has:x1,enforce:function(t){return x1(t)?eh(t):E1(t,{})},getterFor:function(t){return function(e){var r;if(!je(e)||(r=eh(e)).type!==t)throw g3("Incompatible receiver, "+t+" required");return r}}},QU=Function.prototype,Vwt=hi&&Object.getOwnPropertyDescriptor,rx=mr(QU,"name"),Jg={EXISTS:rx,PROPER:rx&&(function(){}).name==="something",CONFIGURABLE:rx&&(!hi||hi&&Vwt(QU,"name").configurable)},fo=DA((function(t){var e=Jg.CONFIGURABLE,r=$n.get,n=$n.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ae(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mr(u,"name")||e&&u.name!==p)&&si(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==pt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:si(i,a,u)):f?i[a]=u:_A(a,u)})(Function.prototype,"toString",(function(){return Ae(this)&&r(this).source||Qb(this)}))})),Uwt=Math.ceil,Wwt=Math.floor,NA=function(t){var e=+t;return e!=e||e===0?0:(e>0?Wwt:Uwt)(e)},Gwt=Math.max,qwt=Math.min,rg=function(t,e){var r=NA(t);return r<0?Gwt(r+e,0):qwt(r,e)},Kwt=Math.min,tW=function(t){return t>0?Kwt(NA(t),9007199254740991):0},Qg=function(t){return tW(t.length)},Ywt=function(t){return function(e,r,n){var o,i=ju(e),a=Qg(i),u=rg(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Xwt=Ywt(!1),SN=Gt([].push),eW=function(t,e){var r,n=ju(t),o=0,i=[];for(r in n)!mr(t2,r)&&mr(n,r)&&SN(i,r);for(;e.length>o;)mr(n,r=e[o++])&&(~Xwt(i,r)||SN(i,r));return i},C1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zwt=C1.concat("length","prototype"),S1={f:Object.getOwnPropertyNames||function(t){return eW(t,Zwt)}},Jwt={f:Object.getOwnPropertySymbols},Qwt=Gt([].concat),tEt=sl("Reflect","ownKeys")||function(t){var e=S1.f(Ir(t)),r=Jwt.f;return r?Qwt(e,r(t)):e},eEt=function(t,e){for(var r=tEt(e),n=ua.f,o=PA.f,i=0;i<r.length;i++){var a=r[i];mr(t,a)||n(t,a,o(e,a))}},rEt=/#|\.prototype\./,tv=function(t,e){var r=oEt[nEt(t)];return r==aEt||r!=iEt&&(Ae(e)?Ie(e):!!e)},nEt=tv.normalize=function(t){return String(t).replace(rEt,".").toLowerCase()},oEt=tv.data={},iEt=tv.NATIVE="N",aEt=tv.POLYFILL="P",D1=tv,uEt=PA.f,oi=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?pt:l?pt[u]||_A(u,{}):(pt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=uEt(r,n))&&a.value:r[n],!D1(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;eEt(i,o)}(t.sham||o&&o.sham)&&si(i,"sham",!0),fo(r,n,i,t)}},A1=Array.isArray||function(t){return Bo(t)=="Array"},rW={};rW[sr("toStringTag")]="z";var IA=String(rW)==="[object z]",sEt=sr("toStringTag"),lEt=pt.Object,cEt=Bo((function(){return arguments})())=="Arguments",e2=IA?Bo:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=lEt(t),sEt))=="string"?r:cEt?Bo(e):(n=Bo(e))=="Object"&&Ae(e.callee)?"Arguments":n},nW=function(){},fEt=[],oW=sl("Reflect","construct"),LA=/^\s*(?:class|function)\b/,dEt=Gt(LA.exec),pEt=!LA.exec(nW),ap=function(t){if(!Ae(t))return!1;try{return oW(nW,fEt,t),!0}catch{return!1}},RA=!oW||Ie((function(){var t;return ap(ap.call)||!ap(Object)||!ap((function(){t=!0}))||t}))?function(t){if(!Ae(t))return!1;switch(e2(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pEt||!!dEt(LA,Qb(t))}:ap,iW=function(t,e,r){var n=FA(e);n in t?ua.f(t,n,Jb(0,r)):t[n]=r},hEt=sr("species"),aW=Gt([].slice),gEt=Qh>=51||!Ie((function(){var t=[];return(t.constructor={})[hEt]=function(){return{foo:1}},t.slice(Boolean).foo!==1})),vEt=sr("species"),nx=pt.Array,mEt=Math.max;oi({target:"Array",proto:!0,forced:!gEt},{slice:function(t,e){var r,n,o,i=ju(this),a=Qg(i),u=rg(t,a),s=rg(e===void 0?a:e,a);if(A1(i)&&(r=i.constructor,(RA(r)&&(r===nx||A1(r.prototype))||je(r)&&(r=r[vEt])===null)&&(r=void 0),r===nx||r===void 0))return aW(i,u,s);for(n=new(r===void 0?nx:r)(mEt(s-u,0)),o=0;u<s;u++,o++)u in i&&iW(n,o,i[u]);return n.length=o,n}});var yEt=IA?{}.toString:function(){return"[object "+e2(this)+"]"};IA||fo(Object.prototype,"toString",yEt,{unsafe:!0});var w0,bEt=pt.String,fu=function(t){if(e2(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return bEt(t)},uW=function(){var t=Ir(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},MA=pt.RegExp,v3=Ie((function(){var t=MA("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));v3||Ie((function(){return!MA("a","y").sticky}));var sW={BROKEN_CARET:v3||Ie((function(){var t=MA("^r","gy");return t.lastIndex=2,t.exec("str")!=null})),UNSUPPORTED_Y:v3},wEt=Object.keys||function(t){return eW(t,C1)},EEt=hi?Object.defineProperties:function(t,e){Ir(t);for(var r,n=ju(e),o=wEt(e),i=o.length,a=0;i>a;)ua.f(t,r=o[a++],n[r]);return t},m3=sl("document","documentElement"),lW=jA("IE_PROTO"),ox=function(){},cW=function(t){return"<script>"+t+"<\/script>"},DN=function(t){t.write(cW("")),t.close();var e=t.parentWindow.Object;return t=null,e},sm=function(){try{w0=new ActiveXObject("htmlfile")}catch{}var t,e;sm=typeof document<"u"?document.domain&&w0?DN(w0):((e=eg("iframe")).style.display="none",m3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(cW("document.F=Object")),t.close(),t.F):DN(w0);for(var r=C1.length;r--;)delete sm.prototype[C1[r]];return sm()};t2[lW]=!0;var AN,ix,zA=Object.create||function(t,e){var r;return t!==null?(ox.prototype=Ir(t),r=new ox,ox.prototype=null,r[lW]=t):r=sm(),e===void 0?r:EEt(r,e)},xEt=pt.RegExp,CEt=Ie((function(){var t=xEt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),SEt=pt.RegExp,DEt=Ie((function(){var t=SEt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),AEt=$n.get,OEt=kA("native-string-replace",String.prototype.replace),O1=RegExp.prototype.exec,y3=O1,_Et=Gt("".charAt),kEt=Gt("".indexOf),TEt=Gt("".replace),ax=Gt("".slice),ux=(ix=/b*/g,ye(O1,AN=/a/,"a"),ye(O1,ix,"a"),AN.lastIndex!==0||ix.lastIndex!==0),ON=sW.BROKEN_CARET,sx=/()??/.exec("")[1]!==void 0;(ux||sx||ON||CEt||DEt)&&(y3=function(t){var e,r,n,o,i,a,u,s=this,l=AEt(s),c=fu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ye(y3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=ON&&s.sticky,m=ye(uW,s),v=s.source,g=0,y=c;if(p&&(m=TEt(m,"y",""),kEt(m,"g")===-1&&(m+="g"),y=ax(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&_Et(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),sx&&(r=new RegExp("^"+v+"$(?!\\s)",m)),ux&&(n=s.lastIndex),o=ye(O1,p?r:s,y),p?o?(o.input=ax(o.input,g),o[0]=ax(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ux&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),sx&&o&&o.length>1&&ye(OEt,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=zA(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ng=y3;oi({target:"RegExp",proto:!0,forced:/./.exec!==ng},{exec:ng});var HA=Function.prototype,_N=HA.apply,BEt=HA.bind,kN=HA.call,fW=typeof Reflect=="object"&&Reflect.apply||(BEt?kN.bind(_N):function(){return kN.apply(_N,arguments)}),FEt=sr("species"),lx=RegExp.prototype,PEt=sr("match"),jEt=pt.TypeError,NEt=sr("species"),dW=function(t,e){var r,n=Ir(t).constructor;return n===void 0||(r=Ir(n)[NEt])==null?e:(function(o){if(RA(o))return o;throw jEt(w1(o)+" is not a constructor")})(r)},IEt=Gt("".charAt),TN=Gt("".charCodeAt),LEt=Gt("".slice),REt=function(t){return function(e,r){var n,o,i=fu(Zh(e)),a=NA(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=TN(i,a))<55296||n>56319||a+1===u||(o=TN(i,a+1))<56320||o>57343?t?IEt(i,a):n:t?LEt(i,a,a+2):o-56320+(n-55296<<10)+65536}},pW={charAt:REt(!0)},MEt=pW.charAt,zEt=function(t,e,r){return e+(r?MEt(t,e).length:1)},HEt=pt.Array,$Et=Math.max,b3=function(t,e,r){for(var n=Qg(t),o=rg(e,n),i=rg(r===void 0?n:r,n),a=HEt($Et(i-o,0)),u=0;o<i;o++,u++)iW(a,u,t[o]);return a.length=u,a},VEt=pt.TypeError,BN=function(t,e){var r=t.exec;if(Ae(r)){var n=ye(r,t,e);return n!==null&&Ir(n),n}if(Bo(t)==="RegExp")return ye(ng,t,e);throw VEt("RegExp#exec called on incompatible receiver")},Jl=sW.UNSUPPORTED_Y,UEt=Math.min,hW=[].push,WEt=Gt(/./.exec),Ql=Gt(hW),up=Gt("".slice);(function(t,e,r,n){var o=sr(t),i=!Ie((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!Ie((function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[FEt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Gt(/./[o]),s=(function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,m){var v,g,y=fu(Zh(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(p===void 0)return[y];if(!je(v=p)||!((g=v[PEt])!==void 0?g:Bo(v)=="RegExp"))return ye(c,y,p,h);for(var b,w,E,S=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),D=0,A=new RegExp(p.source,x+"g");(b=ye(ng,A,y))&&!((w=A.lastIndex)>D&&(Ql(S,up(y,D,b.index)),b.length>1&&b.index<y.length&&fW(hW,S,b3(b,1)),E=b[0].length,D=w,S.length>=h));)A.lastIndex===b.index&&A.lastIndex++;return D===y.length?!E&&WEt(A,"")||Ql(S,""):Ql(S,up(y,D)),S.length>h?b3(S,0,h):S}:"0".split(void 0,0).length?function(p,m){return p===void 0&&m===0?[]:ye(c,this,p,m)}:c,[function(p,m){var v=Zh(this),g=p==null?void 0:tg(p,l);return g?ye(g,p,v,m):ye(d,fu(v),p,m)},function(p,m){var v=Ir(this),g=fu(p),y=f(d,v,g,m,d!==c);if(y.done)return y.value;var h=dW(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Jl?"g":"y"),E=new h(Jl?"^(?:"+v.source+")":v,w),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(g.length===0)return BN(E,g)===null?[g]:[];for(var x=0,D=0,A=[];D<g.length;){E.lastIndex=Jl?0:D;var P,M=BN(E,Jl?up(g,D):g);if(M===null||(P=UEt(tW(E.lastIndex+(Jl?D:0)),g.length))===x)D=zEt(g,D,b);else{if(Ql(A,up(g,x,D)),A.length===S)return A;for(var F=1;F<=M.length-1;F++)if(Ql(A,M[F]),A.length===S)return A;D=x=P}}return Ql(A,up(g,x)),A}]})(o,""[t],(function(l,c,f,d,p){var m=Gt(l),v=c.exec;return v===ng||v===lx.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));fo(String.prototype,t,s[0]),fo(lx,o,s[1])}n&&si(lx[o],"sham",!0)})("split",0,!!Ie((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),Jl);var _1=function(){return _1=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_1.apply(this,arguments)};function $A(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r((function(f){f(c)}))).then(a,u)}s((n=n.apply(t,[])).next())}))}function VA(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function GEt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise((function(a,u){(function(s,l,c,f){Promise.resolve(f).then((function(d){s({value:d,done:c})}),l)})(a,u,(i=t[o](i)).done,i.value)}))}}}var w3=sr("unscopables"),E3=Array.prototype;E3[w3]==null&&ua.f(E3,w3,{configurable:!0,value:zA(null)});var Vs,FN,PN,cx=function(t){E3[w3][t]=!0},bf={},qEt=!Ie((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),jN=jA("IE_PROTO"),x3=pt.Object,KEt=x3.prototype,k1=qEt?x3.getPrototypeOf:function(t){var e=TA(t);if(mr(e,jN))return e[jN];var r=e.constructor;return Ae(r)&&e instanceof r?r.prototype:e instanceof x3?KEt:null},C3=sr("iterator"),gW=!1;[].keys&&("next"in(PN=[].keys())?(FN=k1(k1(PN)))!==Object.prototype&&(Vs=FN):gW=!0);var YEt=Vs==null||Ie((function(){var t={};return Vs[C3].call(t)!==t}));YEt&&(Vs={}),Ae(Vs[C3])||fo(Vs,C3,(function(){return this}));var UA={IteratorPrototype:Vs,BUGGY_SAFARI_ITERATORS:gW},XEt=ua.f,NN=sr("toStringTag"),T1=function(t,e,r){t&&!mr(t=r?t:t.prototype,NN)&&XEt(t,NN,{configurable:!0,value:e})},ZEt=UA.IteratorPrototype,JEt=function(){return this},QEt=pt.String,t4t=pt.TypeError,wf=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,r={};try{(t=Gt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Ir(n),(function(i){if(typeof i=="object"||Ae(i))return i;throw t4t("Can't set "+QEt(i)+" as a prototype")})(o),e?t(n,o):n.__proto__=o,n}})():void 0),e4t=Jg.PROPER,r4t=Jg.CONFIGURABLE,IN=UA.IteratorPrototype,fx=UA.BUGGY_SAFARI_ITERATORS,sp=sr("iterator"),n4t=function(){return this},vW=function(t,e,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=zA(ZEt,{next:Jb(1,h)}),T1(g,w,!1),bf[w]=JEt})(r,e,n);var u,s,l=function(g){if(g===o&&m)return m;if(!fx&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[sp]||d["@@iterator"]||o&&d[o],m=!fx&&p||l(o),v=e=="Array"&&d.entries||p;return v&&(u=k1(v.call(new t)))!==Object.prototype&&u.next&&(k1(u)!==IN&&(wf?wf(u,IN):Ae(u[sp])||fo(u,sp,n4t)),T1(u,c,!0)),e4t&&o=="values"&&p&&p.name!=="values"&&(r4t?si(d,"name","values"):(f=!0,m=function(){return ye(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||oi({target:e,proto:!0,forced:fx||f},s)),d[sp]!==m&&fo(d,sp,m,{name:o}),bf[e]=m,s},o4t=$n.set,i4t=$n.getterFor("Array Iterator"),_p=vW(Array,"Array",(function(t,e){o4t(this,{type:"Array Iterator",target:ju(t),index:0,kind:e})}),(function(){var t=i4t(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");bf.Arguments=bf.Array,cx("keys"),cx("values"),cx("entries");var a4t=pW.charAt,u4t=$n.set,s4t=$n.getterFor("String Iterator");vW(String,"String",(function(t){u4t(this,{type:"String Iterator",string:fu(t),index:0})}),(function(){var t,e=s4t(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=a4t(r,n),e.index+=t.length,{value:t,done:!1})}));var B1=function(t,e,r){for(var n in e)fo(t,n,e[n],r);return t},LN=S1.f,RN=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l4t={f:function(t){return RN&&Bo(t)=="Window"?(function(e){try{return LN(e)}catch{return b3(RN)}})(t):LN(ju(t))}},MN=Ie((function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),E0=Object.isExtensible,ms=Ie((function(){E0(1)}))||MN?function(t){return!!je(t)&&(!MN||Bo(t)!="ArrayBuffer")&&(!E0||E0(t))}:E0,c4t=!Ie((function(){return Object.isExtensible(Object.preventExtensions({}))})),WA=DA((function(t){var e=ua.f,r=!1,n=BA("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=S1.f,s=Gt([].splice),l={};l[n]=1,u(l).length&&(S1.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},oi({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l4t.f}))},fastKey:function(u,s){if(!je(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!mr(u,n)){if(!ms(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!mr(u,n)){if(!ms(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return c4t&&r&&ms(u)&&!mr(u,n)&&i(u),u}};t2[n]=!0})),zN=Gt(Gt.bind),og=function(t,e){return Au(t),e===void 0?t:zN?zN(t,e):function(){return t.apply(e,arguments)}},f4t=sr("iterator"),d4t=Array.prototype,p4t=sr("iterator"),HN=function(t){if(t!=null)return tg(t,p4t)||tg(t,"@@iterator")||bf[e2(t)]},h4t=pt.TypeError,$N=function(t,e,r){var n,o;Ir(t);try{if(!(n=tg(t,"return"))){if(e==="throw")throw r;return r}n=ye(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Ir(n),r},g4t=pt.TypeError,lm=function(t,e){this.stopped=t,this.result=e},VN=lm.prototype,F1=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),v=og(e,f),g=function(h){return n&&$N(n,"normal",h),new lm(!0,h)},y=function(h){return d?(Ir(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(p)n=t;else{if(!(o=HN(t)))throw g4t(w1(t)+" is not iterable");if((c=o)!==void 0&&(bf.Array===c||d4t[f4t]===c)){for(i=0,a=Qg(t);a>i;i++)if((u=y(t[i]))&&Jh(VN,u))return u;return new lm(!1)}n=(function(h,b){var w=arguments.length<2?HN(h):b;if(Au(w))return Ir(ye(w,h));throw h4t(w1(h)+" is not iterable")})(t,o)}for(s=n.next;!(l=ye(s,n)).done;){try{u=y(l.value)}catch(h){$N(n,"throw",h)}if(typeof u=="object"&&u&&Jh(VN,u))return u}return new lm(!1)},v4t=pt.TypeError,GA=function(t,e){if(Jh(e,t))return t;throw v4t("Incorrect invocation")},mW=sr("iterator"),yW=!1;try{var m4t=0,UN={next:function(){return{done:!!m4t++}},return:function(){yW=!0}};UN[mW]=function(){return this},Array.from(UN,(function(){throw 2}))}catch{}var bW=function(t,e){if(!yW)return!1;var r=!1;try{var n={};n[mW]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},y4t=sr("species"),WN=pt.Array,b4t=function(t,e){return new((function(r){var n;return A1(r)&&(n=r.constructor,(RA(n)&&(n===WN||A1(n.prototype))||je(n)&&(n=n[y4t])===null)&&(n=void 0)),n===void 0?WN:n})(t))(e===0?0:e)},GN=Gt([].push),dx=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=TA(s),v=AA(m),g=og(l,c),y=Qg(v),h=0,b=f||b4t,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:GN(w,d)}else switch(t){case 4:return!1;case 7:GN(w,d)}return i?-1:n||o?o:w}},qA={forEach:dx(0),find:dx(5),findIndex:dx(6)},x0=WA.getWeakData,w4t=$n.set,E4t=$n.getterFor,x4t=qA.find,C4t=qA.findIndex,S4t=Gt([].splice),D4t=0,C0=function(t){return t.frozen||(t.frozen=new wW)},wW=function(){this.entries=[]},px=function(t,e){return x4t(t.entries,(function(r){return r[0]===e}))};wW.prototype={get:function(t){var e=px(this,t);if(e)return e[1]},has:function(t){return!!px(this,t)},set:function(t,e){var r=px(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=C4t(this.entries,(function(r){return r[0]===t}));return~e&&S4t(this.entries,e,1),!!~e}};var lp,EW={getConstructor:function(t,e,r,n){var o=t((function(s,l){GA(s,i),w4t(s,{type:e,id:D4t++,frozen:void 0}),l!=null&&F1(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=E4t(e),u=function(s,l,c){var f=a(s),d=x0(Ir(l),!0);return d===!0?C0(f).set(l,c):d[f.id]=c,s};return B1(i,{delete:function(s){var l=a(this);if(!je(s))return!1;var c=x0(s);return c===!0?C0(l).delete(s):c&&mr(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!je(s))return!1;var c=x0(s);return c===!0?C0(l).has(s):c&&mr(c,l.id)}}),B1(i,r?{get:function(s){var l=a(this);if(je(s)){var c=x0(s);return c===!0?C0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},S0=$n.enforce,A4t=!pt.ActiveXObject&&"ActiveXObject"in pt,xW=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},O4t=(function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=pt[t],u=a&&a.prototype,s=a,l={},c=function(g){var y=Gt(u[g]);fo(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!je(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!je(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!je(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(D1(t,!Ae(a)||!(o||u.forEach&&!Ie((function(){new a().entries().next()})))))s=r.getConstructor(e,t,n,i),WA.enable();else if(D1(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ie((function(){f.has(1)})),m=bW((function(g){new a(g)})),v=!o&&Ie((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));m||((s=e((function(g,y){GA(g,u);var h=(function(b,w,E){var S,x;return wf&&Ae(S=w.constructor)&&S!==E&&je(x=S.prototype)&&x!==E.prototype&&wf(b,x),b})(new a,g,s);return y!=null&&F1(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),n&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,oi({global:!0,forced:s!=a},l),T1(s,t),o||r.setStrong(s,t,n),s})("WeakMap",xW,EW);if(JU&&A4t){lp=EW.getConstructor(xW,"WeakMap",!0),WA.enable();var cp=O4t.prototype,qN=Gt(cp.delete),D0=Gt(cp.has),KN=Gt(cp.get),YN=Gt(cp.set);B1(cp,{delete:function(t){if(je(t)&&!ms(t)){var e=S0(this);return e.frozen||(e.frozen=new lp),qN(this,t)||e.frozen.delete(t)}return qN(this,t)},has:function(t){if(je(t)&&!ms(t)){var e=S0(this);return e.frozen||(e.frozen=new lp),D0(this,t)||e.frozen.has(t)}return D0(this,t)},get:function(t){if(je(t)&&!ms(t)){var e=S0(this);return e.frozen||(e.frozen=new lp),D0(this,t)?KN(this,t):e.frozen.get(t)}return KN(this,t)},set:function(t,e){if(je(t)&&!ms(t)){var r=S0(this);r.frozen||(r.frozen=new lp),D0(this,t)?YN(this,t,e):r.frozen.set(t,e)}else YN(this,t,e);return this}})}var P1={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},hx=eg("span").classList,XN=hx&&hx.constructor&&hx.constructor.prototype,CW=XN===Object.prototype?void 0:XN,gx=sr("iterator"),ZN=sr("toStringTag"),vx=_p.values,SW=function(t,e){if(t){if(t[gx]!==vx)try{si(t,gx,vx)}catch{t[gx]=vx}if(t[ZN]||si(t,ZN,e),P1[e]){for(var r in _p)if(t[r]!==_p[r])try{si(t,r,_p[r])}catch{t[r]=_p[r]}}}};for(var mx in P1)SW(pt[mx]&&pt[mx].prototype,mx);SW(CW,"DOMTokenList");var DW=function(t,e){var r=[][t];return!!r&&Ie((function(){r.call(null,e||function(){throw 1},1)}))},_4t=qA.forEach,yx=DW("forEach")?[].forEach:function(t){return _4t(this,t,arguments.length>1?arguments[1]:void 0)},AW=function(t){if(t&&t.forEach!==yx)try{si(t,"forEach",yx)}catch{t.forEach=yx}};for(var bx in P1)P1[bx]&&AW(pt[bx]&&pt[bx].prototype);AW(CW);var ig,tc,JN,wx,j1=pt.Promise,QN=sr("species"),OW=/(?:ipad|iphone|ipod).*applewebkit/i.test(zc),du=Bo(pt.process)=="process",S3=pt.setImmediate,tI=pt.clearImmediate,k4t=pt.process,Ex=pt.Dispatch,T4t=pt.Function,eI=pt.MessageChannel,B4t=pt.String,xx=0,rh={};try{ig=pt.location}catch{}var KA=function(t){if(mr(rh,t)){var e=rh[t];delete rh[t],e()}},Cx=function(t){return function(){KA(t)}},rI=function(t){KA(t.data)},nI=function(t){pt.postMessage(B4t(t),ig.protocol+"//"+ig.host)};S3&&tI||(S3=function(t){var e=aW(arguments,1);return rh[++xx]=function(){fW(Ae(t)?t:T4t(t),void 0,e)},tc(xx),xx},tI=function(t){delete rh[t]},du?tc=function(t){k4t.nextTick(Cx(t))}:Ex&&Ex.now?tc=function(t){Ex.now(Cx(t))}:eI&&!OW?(wx=(JN=new eI).port2,JN.port1.onmessage=rI,tc=og(wx.postMessage,wx)):pt.addEventListener&&Ae(pt.postMessage)&&!pt.importScripts&&ig&&ig.protocol!=="file:"&&!Ie(nI)?(tc=nI,pt.addEventListener("message",rI,!1)):tc="onreadystatechange"in eg("script")?function(t){m3.appendChild(eg("script")).onreadystatechange=function(){m3.removeChild(this),KA(t)}}:function(t){setTimeout(Cx(t),0)});var fp,ds,nh,dc,Sx,Dx,Ax,oI,_W={set:S3},F4t=/ipad|iphone|ipod/i.test(zc)&&pt.Pebble!==void 0,P4t=/web0s(?!.*chrome)/i.test(zc),j4t=PA.f,Ox=_W.set,iI=pt.MutationObserver||pt.WebKitMutationObserver,aI=pt.document,uI=pt.process,A0=pt.Promise,sI=j4t(pt,"queueMicrotask"),kW=sI&&sI.value;kW||(fp=function(){var t,e;for(du&&(t=uI.domain)&&t.exit();ds;){e=ds.fn,ds=ds.next;try{e()}catch(r){throw ds?dc():nh=void 0,r}}nh=void 0,t&&t.enter()},OW||du||P4t||!iI||!aI?!F4t&&A0&&A0.resolve?((Ax=A0.resolve(void 0)).constructor=A0,oI=og(Ax.then,Ax),dc=function(){oI(fp)}):du?dc=function(){uI.nextTick(fp)}:(Ox=og(Ox,pt),dc=function(){Ox(fp)}):(Sx=!0,Dx=aI.createTextNode(""),new iI(fp).observe(Dx,{characterData:!0}),dc=function(){Dx.data=Sx=!Sx}));var _x,lI,TW,cI,BW=kW||function(t){var e={fn:t,next:void 0};nh&&(nh.next=e),ds||(ds=e,dc()),nh=e},N4t=function(t){var e,r;this.promise=new t((function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o})),this.resolve=Au(e),this.reject=Au(r)},YA={f:function(t){return new N4t(t)}},D3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},I4t=typeof window=="object",FW=_W.set,L4t=sr("species"),Mi="Promise",fI=$n.getterFor(Mi),R4t=$n.set,M4t=$n.getterFor(Mi),as=j1&&j1.prototype,ii=j1,dp=as,PW=pt.TypeError,A3=pt.document,XA=pt.process,Hc=YA.f,z4t=Hc,H4t=!!(A3&&A3.createEvent&&pt.dispatchEvent),jW=Ae(pt.PromiseRejectionEvent),NW=!1,oh=D1(Mi,(function(){var t=Qb(ii),e=t!==String(ii);if(!e&&Qh===66)return!0;if(Qh>=51&&/native code/.test(t))return!1;var r=new ii((function(o){o(1)})),n=function(o){o((function(){}),(function(){}))};return(r.constructor={})[L4t]=n,!(NW=r.then((function(){}))instanceof n)||!e&&I4t&&!jW})),$4t=oh||!bW((function(t){ii.all(t).catch((function(){}))})),IW=function(t){var e;return!(!je(t)||!Ae(e=t.then))&&e},ZA=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;BW((function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&U4t(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(PW("Promise-chain cycle")):(u=IW(a))?ye(u,a,f,d):f(a)):d(n)}catch(m){p&&!s&&p.exit(),d(m)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&V4t(t)}))}},LW=function(t,e,r){var n,o;H4t?((n=A3.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),pt.dispatchEvent(n)):n={promise:e,reason:r},!jW&&(o=pt["on"+t])?o(n):t==="unhandledrejection"&&(function(i,a){var u=pt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},V4t=function(t){ye(FW,pt,(function(){var e,r=t.facade,n=t.value;if(dI(t)&&(e=D3((function(){du?XA.emit("unhandledRejection",n,r):LW("unhandledrejection",r,n)})),t.rejection=du||dI(t)?2:1,e.error))throw e.value}))},dI=function(t){return t.rejection!==1&&!t.parent},U4t=function(t){ye(FW,pt,(function(){var e=t.facade;du?XA.emit("rejectionHandled",e):LW("rejectionhandled",e,t.value)}))},bc=function(t,e,r){return function(n){t(e,n,r)}},$c=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ZA(t,!0))},O3=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw PW("Promise can't be resolved itself");var n=IW(e);n?BW((function(){var o={done:!1};try{ye(n,e,bc(O3,o,t),bc($c,o,t))}catch(i){$c(o,i,t)}})):(t.value=e,t.state=1,ZA(t,!1))}catch(o){$c({done:!1},o,t)}}};if(oh&&(dp=(ii=function(t){GA(this,dp),Au(t),ye(_x,this);var e=fI(this);try{t(bc(O3,e),bc($c,e))}catch(r){$c(e,r)}}).prototype,(_x=function(t){R4t(this,{type:Mi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=B1(dp,{then:function(t,e){var r=M4t(this),n=r.reactions,o=Hc(dW(this,ii));return o.ok=!Ae(t)||t,o.fail=Ae(e)&&e,o.domain=du?XA.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&ZA(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),lI=function(){var t=new _x,e=fI(t);this.promise=t,this.resolve=bc(O3,e),this.reject=bc($c,e)},YA.f=Hc=function(t){return t===ii||t===TW?new lI(t):z4t(t)},Ae(j1)&&as!==Object.prototype)){cI=as.then,NW||(fo(as,"then",(function(t,e){var r=this;return new ii((function(n,o){ye(cI,r,n,o)})).then(t,e)}),{unsafe:!0}),fo(as,"catch",dp.catch,{unsafe:!0}));try{delete as.constructor}catch{}wf&&wf(as,dp)}oi({global:!0,wrap:!0,forced:oh},{Promise:ii}),T1(ii,Mi,!1),(function(t){var e=sl("Promise"),r=ua.f;hi&&e&&!e[QN]&&r(e,QN,{configurable:!0,get:function(){return this}})})(),TW=sl(Mi),oi({target:Mi,stat:!0,forced:oh},{reject:function(t){var e=Hc(this);return ye(e.reject,void 0,t),e.promise}}),oi({target:Mi,stat:!0,forced:oh},{resolve:function(t){return(function(e,r){if(Ir(e),je(r)&&r.constructor===e)return r;var n=YA.f(e);return(0,n.resolve)(r),n.promise})(this,t)}}),oi({target:Mi,stat:!0,forced:$4t},{all:function(t){var e=this,r=Hc(e),n=r.resolve,o=r.reject,i=D3((function(){var a=Au(e.resolve),u=[],s=0,l=1;F1(t,(function(c){var f=s++,d=!1;l++,ye(a,e,c).then((function(p){d||(d=!0,u[f]=p,--l||n(u))}),o)})),--l||n(u)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Hc(e),n=r.reject,o=D3((function(){var i=Au(e.resolve);F1(t,(function(a){ye(i,e,a).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var W4t=Jg.PROPER,_3=RegExp.prototype,RW=_3.toString,G4t=Gt(uW),q4t=Ie((function(){return RW.call({source:"a",flags:"b"})!="/a/b"})),K4t=W4t&&RW.name!="toString";(q4t||K4t)&&fo(RegExp.prototype,"toString",(function(){var t=Ir(this),e=fu(t.source),r=t.flags;return"/"+e+"/"+fu(r===void 0&&Jh(_3,t)&&!("flags"in _3)?G4t(t):r)}),{unsafe:!0});var Y4t=Jg.EXISTS,X4t=ua.f,MW=Function.prototype,Z4t=Gt(MW.toString),zW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,J4t=Gt(zW.exec);hi&&!Y4t&&X4t(MW,"name",{configurable:!0,get:function(){try{return J4t(zW,Z4t(this))[1]}catch{return""}}});var pI=new WeakMap;function HW(t){return t.getMenuConfig("uploadImage")}function Q4t(t,e){return $A(this,void 0,void 0,(function(){return VA(this,(function(r){return[2,new Promise((function(n){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Fs(t,a,e.name,u),n("ok")}}}))]}))}))}function txt(t,e){return $A(this,void 0,void 0,(function(){var r,n,o,i;return VA(this,(function(a){switch(a.label){case 0:return r=(function(u){var s=pI.get(u);if(s!=null)return s;var l=HW(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=yH(_1(_1({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(p)return p(g,(function(P,M,F){return Fs(u,P,M,F)})),void c(v,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach((function(P){var M=P.url,F=M===void 0?"":M,V=P.alt,U=V===void 0?"":V,W=P.href;Fs(u,F,U,W===void 0?"":W)}));else{var E=w.url,S=E===void 0?"":E,x=w.alt,D=x===void 0?"":x,A=w.href;Fs(u,S,D,A===void 0?"":A)}c(v,g)}else d(v,g)},onError:function(v,g,y){m(v,g,y)}})),pI.set(u,s),s})(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}}))}))}function $W(t,e){var r,n;return $A(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return VA(this,(function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=HW(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=GEt(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Q4t(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(m,v,g){return Fs(t,m,v,g)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,txt(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var ext=Gt([].join),rxt=AA!=Object,nxt=DW("join",",");oi({target:"Array",proto:!0,forced:rxt||!nxt},{join:function(t){return ext(ju(this),t===void 0?",":t)}}),uo&&(j.fn.append=uo),fi&&(j.fn.on=fi),of&&(j.fn.remove=of),ci&&(j.fn.val=ci),h_&&(j.fn.click=h_),tf&&(j.fn.hide=tf);var oxt=(function(){function t(){this.title=dt("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return Tb(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a((function(c,f,d){return Fs(e,c,f,d)}));else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=j("body"),l=j('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var c=l[0].files;$W(e,c)}))}},t})(),ixt={menus:[{key:"uploadImage",factory:function(){return new oxt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(Tb(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):Array.prototype.slice.call(o).some((function(i){return(function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d})(i.type.split("/"),1)[0]==="image"}))?$W(t,o):e(n)}},r}};Sn("en",{highLightModule:{selectLang:"Language"}}),Sn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var N1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JA(t){var e={exports:{}};return t(e,e.exports),e.exports}var _a,cm,O0=function(t){return t&&t.Math==Math&&t},Xt=O0(typeof globalThis=="object"&&globalThis)||O0(typeof window=="object"&&window)||O0(typeof self=="object"&&self)||O0(typeof N1=="object"&&N1)||(function(){return this})()||Function("return this")(),axt=Object.defineProperty,QA=function(t,e){try{axt(Xt,t,{value:e,configurable:!0,writable:!0})}catch{Xt[t]=e}return e},pu=Xt["__core-js_shared__"]||QA("__core-js_shared__",{}),tO=JA((function(t){(t.exports=function(e,r){return pu[e]||(pu[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),VW=Function.prototype,k3=VW.bind,T3=VW.call,uxt=k3&&k3.bind(T3),ge=k3?function(t){return t&&uxt(T3,t)}:function(t){return t&&function(){return T3.apply(t,arguments)}},sxt=Xt.TypeError,Ef=function(t){if(t==null)throw sxt("Can't call method on "+t);return t},lxt=Xt.Object,eO=function(t){return lxt(Ef(t))},cxt=ge({}.hasOwnProperty),oo=Object.hasOwn||function(t,e){return cxt(eO(t),e)},fxt=0,dxt=Math.random(),pxt=ge(1 .toString),UW=function(t){return"Symbol("+(t===void 0?"":t)+")_"+pxt(++fxt+dxt,36)},cn=function(t){return typeof t=="function"},hxt=function(t){return cn(t)?t:void 0},ev=function(t,e){return arguments.length<2?hxt(Xt[t]):Xt[t]&&Xt[t][e]},kx=ev("navigator","userAgent")||"",hI=Xt.process,gI=Xt.Deno,vI=hI&&hI.versions||gI&&gI.version,mI=vI&&vI.v8;mI&&(cm=(_a=mI.split("."))[0]>0&&_a[0]<4?1:+(_a[0]+_a[1])),!cm&&kx&&(!(_a=kx.match(/Edge\/(\d+)/))||_a[1]>=74)&&(_a=kx.match(/Chrome\/(\d+)/))&&(cm=+_a[1]);var yI=cm,Fr=function(t){try{return!!t()}catch{return!0}},B3=!!Object.getOwnPropertySymbols&&!Fr((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yI&&yI<41})),rO=B3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pp=tO("wks"),Us=Xt.Symbol,bI=Us&&Us.for,gxt=rO?Us:Us&&Us.withoutSetter||UW,Nu=function(t){if(!oo(pp,t)||!B3&&typeof pp[t]!="string"){var e="Symbol."+t;B3&&oo(Us,t)?pp[t]=Us[t]:pp[t]=rO&&bI?bI(e):gxt(e)}return pp[t]},WW={};WW[Nu("toStringTag")]="z";var nO=String(WW)==="[object z]",gi=!Fr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),$i=function(t){return typeof t=="object"?t!==null:cn(t)},F3=Xt.document,vxt=$i(F3)&&$i(F3.createElement),oO=function(t){return vxt?F3.createElement(t):{}},GW=!gi&&!Fr((function(){return Object.defineProperty(oO("div"),"a",{get:function(){return 7}}).a!=7})),mxt=Xt.String,yxt=Xt.TypeError,Fo=function(t){if($i(t))return t;throw yxt(mxt(t)+" is not an object")},hp=Function.prototype.call,Tr=hp.bind?hp.bind(hp):function(){return hp.apply(hp,arguments)},qW=ge({}.isPrototypeOf),bxt=Xt.Object,Tx=rO?function(t){return typeof t=="symbol"}:function(t){var e=ev("Symbol");return cn(e)&&qW(e.prototype,bxt(t))},wxt=Xt.String,KW=function(t){try{return wxt(t)}catch{return"Object"}},Ext=Xt.TypeError,YW=function(t){if(cn(t))return t;throw Ext(KW(t)+" is not a function")},XW=function(t,e){var r=t[e];return r==null?void 0:YW(r)},xxt=Xt.TypeError,Cxt=Xt.TypeError,Sxt=Nu("toPrimitive"),iO=function(t){var e=(function(r,n){if(!$i(r)||Tx(r))return r;var o,i=XW(r,Sxt);if(i){if(o=Tr(i,r,n),!$i(o)||Tx(o))return o;throw Cxt("Can't convert object to primitive value")}return(function(a,u){var s,l;if(cn(s=a.toString)&&!$i(l=Tr(s,a))||cn(s=a.valueOf)&&!$i(l=Tr(s,a)))return l;throw xxt("Can't convert object to primitive value")})(r)})(t,"string");return Tx(e)?e:e+""},Dxt=Xt.TypeError,wI=Object.defineProperty,r2={f:gi?wI:function(t,e,r){if(Fo(t),e=iO(e),Fo(r),GW)try{return wI(t,e,r)}catch{}if("get"in r||"set"in r)throw Dxt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},aO=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},xf=gi?function(t,e,r){return r2.f(t,e,aO(1,r))}:function(t,e,r){return t[e]=r,t},Axt=ge(Function.toString);cn(pu.inspectSource)||(pu.inspectSource=function(t){return Axt(t)});var P3,I1,j3,uO=pu.inspectSource,EI=Xt.WeakMap,Oxt=cn(EI)&&/native code/.test(uO(EI)),xI=tO("keys"),ZW=function(t){return xI[t]||(xI[t]=UW(t))},sO={},CI=Xt.TypeError,_xt=Xt.WeakMap;if(Oxt||pu.state){var ts=pu.state||(pu.state=new _xt),kxt=ge(ts.get),SI=ge(ts.has),Txt=ge(ts.set);P3=function(t,e){if(SI(ts,t))throw new CI("Object already initialized");return e.facade=t,Txt(ts,t,e),e},I1=function(t){return kxt(ts,t)||{}},j3=function(t){return SI(ts,t)}}else{var ec=ZW("state");sO[ec]=!0,P3=function(t,e){if(oo(t,ec))throw new CI("Object already initialized");return e.facade=t,xf(t,ec,e),e},I1=function(t){return oo(t,ec)?t[ec]:{}},j3=function(t){return oo(t,ec)}}var N3={get:I1,enforce:function(t){return j3(t)?I1(t):P3(t,{})}},JW=Function.prototype,Bxt=gi&&Object.getOwnPropertyDescriptor,DI=oo(JW,"name"),QW={PROPER:DI&&(function(){}).name==="something",CONFIGURABLE:DI&&(!gi||gi&&Bxt(JW,"name").configurable)},ag=JA((function(t){var e=QW.CONFIGURABLE,r=N3.get,n=N3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;cn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oo(u,"name")||e&&u.name!==p)&&xf(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Xt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:xf(i,a,u)):f?i[a]=u:QA(a,u)})(Function.prototype,"toString",(function(){return cn(this)&&r(this).source||uO(this)}))})),Fxt=ge({}.toString),Pxt=ge("".slice),hu=function(t){return Pxt(Fxt(t),8,-1)},jxt=Nu("toStringTag"),Nxt=Xt.Object,Ixt=hu((function(){return arguments})())=="Arguments",lO=nO?hu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(e=Nxt(t),jxt))=="string"?r:Ixt?hu(e):(n=hu(e))=="Object"&&cn(e.callee)?"Arguments":n},Lxt=nO?{}.toString:function(){return"[object "+lO(this)+"]"};nO||ag(Object.prototype,"toString",Lxt,{unsafe:!0});var AI,OI={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},Bx=oO("span").classList,_I=Bx&&Bx.constructor&&Bx.constructor.prototype,Rxt=_I===Object.prototype?void 0:_I,kI=ge(ge.bind),Fx=Xt.Object,Mxt=ge("".split),cO=Fr((function(){return!Fx("z").propertyIsEnumerable(0)}))?function(t){return hu(t)=="String"?Mxt(t,""):Fx(t)}:Fx,zxt=Math.ceil,Hxt=Math.floor,fO=function(t){var e=+t;return e!=e||e===0?0:(e>0?Hxt:zxt)(e)},$xt=Math.min,tG=function(t){return t>0?$xt(fO(t),9007199254740991):0},dO=function(t){return tG(t.length)},TI=Array.isArray||function(t){return hu(t)=="Array"},eG=function(){},Vxt=[],rG=ev("Reflect","construct"),pO=/^\s*(?:class|function)\b/,Uxt=ge(pO.exec),Wxt=!pO.exec(eG),gp=function(t){if(!cn(t))return!1;try{return rG(eG,Vxt,t),!0}catch{return!1}},nG=!rG||Fr((function(){var t;return gp(gp.call)||!gp(Object)||!gp((function(){t=!0}))||t}))?function(t){if(!cn(t))return!1;switch(lO(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wxt||!!Uxt(pO,uO(t))}:gp,Gxt=Nu("species"),BI=Xt.Array,qxt=function(t,e){return new((function(r){var n;return TI(r)&&(n=r.constructor,(nG(n)&&(n===BI||TI(n.prototype))||$i(n)&&(n=n[Gxt])===null)&&(n=void 0)),n===void 0?BI:n})(t))(e===0?0:e)},FI=ge([].push),ka=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,m=eO(s),v=cO(m),g=(function(E,S){return YW(E),S===void 0?E:kI?kI(E,S):function(){return E.apply(S,arguments)}})(l,c),y=dO(v),h=0,b=f||qxt,w=e?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:FI(w,d)}else switch(t){case 4:return!1;case 7:FI(w,d)}return i?-1:n||o?o:w}},Kxt=[ka(0),ka(1),ka(2),ka(3),ka(4),ka(5),ka(6),ka(7)][0],Px=(AI=[].forEach)&&Fr((function(){AI.call(null,(function(){throw 1}),1)}))?[].forEach:function(t){return Kxt(this,t,arguments.length>1?arguments[1]:void 0)},oG=function(t){if(t&&t.forEach!==Px)try{xf(t,"forEach",Px)}catch{t.forEach=Px}};for(var jx in OI)OI[jx]&&oG(Xt[jx]&&Xt[jx].prototype);oG(Rxt);var PI={}.propertyIsEnumerable,jI=Object.getOwnPropertyDescriptor,iG={f:jI&&!PI.call({1:2},1)?function(t){var e=jI(this,t);return!!e&&e.enumerable}:PI},n2=function(t){return cO(Ef(t))},NI=Object.getOwnPropertyDescriptor,aG={f:gi?NI:function(t,e){if(t=n2(t),e=iO(e),GW)try{return NI(t,e)}catch{}if(oo(t,e))return aO(!Tr(iG.f,t,e),t[e])}},Yxt=Math.max,Xxt=Math.min,I3=function(t,e){var r=fO(t);return r<0?Yxt(r+e,0):Xxt(r,e)},Zxt=function(t){return function(e,r,n){var o,i=n2(e),a=dO(i),u=I3(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Jxt=Zxt(!1),II=ge([].push),uG=function(t,e){var r,n=n2(t),o=0,i=[];for(r in n)!oo(sO,r)&&oo(n,r)&&II(i,r);for(;e.length>o;)oo(n,r=e[o++])&&(~Jxt(i,r)||II(i,r));return i},L1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qxt=L1.concat("length","prototype"),tCt={f:Object.getOwnPropertyNames||function(t){return uG(t,Qxt)}},sG={f:Object.getOwnPropertySymbols},eCt=ge([].concat),rCt=ev("Reflect","ownKeys")||function(t){var e=tCt.f(Fo(t)),r=sG.f;return r?eCt(e,r(t)):e},nCt=function(t,e){for(var r=rCt(e),n=r2.f,o=aG.f,i=0;i<r.length;i++){var a=r[i];oo(t,a)||n(t,a,o(e,a))}},oCt=/#|\.prototype\./,rv=function(t,e){var r=aCt[iCt(t)];return r==sCt||r!=uCt&&(cn(e)?Fr(e):!!e)},iCt=rv.normalize=function(t){return String(t).replace(oCt,".").toLowerCase()},aCt=rv.data={},uCt=rv.NATIVE="N",sCt=rv.POLYFILL="P",lCt=rv,cCt=aG.f,o2=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Xt:l?Xt[u]||QA(u,{}):(Xt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=cCt(r,n))&&a.value:r[n],!lCt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;nCt(i,o)}(t.sham||o&&o.sham)&&xf(i,"sham",!0),ag(r,n,i,t)}},fm=Object.keys||function(t){return uG(t,L1)},rc=Object.assign,LI=Object.defineProperty,fCt=ge([].concat),RI=!rc||Fr((function(){if(gi&&rc({b:1},rc(LI({},"a",{enumerable:!0,get:function(){LI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(o){e[o]=o})),rc({},t)[r]!=7||fm(rc({},e)).join("")!=n}))?function(t,e){for(var r=eO(t),n=arguments.length,o=1,i=sG.f,a=iG.f;n>o;)for(var u,s=cO(arguments[o++]),l=i?fCt(fm(s),i(s)):fm(s),c=l.length,f=0;c>f;)u=l[f++],gi&&!Tr(a,s,u)||(r[u]=s[u]);return r}:rc;o2({target:"Object",stat:!0,forced:Object.assign!==RI},{assign:RI});var MI=JA((function(t){var e=(function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,h){var b,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var E in b={},h[w]=b,y)y.hasOwnProperty(E)&&(b[E]=g(y[E],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach((function(S,x){b[x]=g(S,h)})),b);default:return y}},getLanguage:function(g){for(;g&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var b in y)h[b]=y[b];return h},insertBefore:function(g,y,h,b){var w=(b=b||a.languages)[g],E={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var x in h)h.hasOwnProperty(x)&&(E[x]=h[x]);h.hasOwnProperty(S)||(E[S]=w[S])}var D=b[g];return b[g]=E,a.languages.DFS(a.languages,(function(A,P){P===D&&A!=g&&(this[A]=E)})),E},DFS:function g(y,h,b,w){w=w||{};var E=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){h.call(y,S,y[S],b||S);var x=y[S],D=a.util.type(x);D!=="Object"||w[E(x)]?D!=="Array"||w[E(x)]||(w[E(x)]=!0,g(x,h,S,w)):(w[E(x)]=!0,g(x,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,E=0;w=b.elements[E++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(n,"").replace(/\s+/g," ")+" language-"+b;var E=g.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:w,code:g.textContent};function x(A){S.highlightedCode=A,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(E=S.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&r.Worker){var D=new Worker(a.filename);D.onmessage=function(A){x(A.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else x(a.highlight(S.code,S.grammar,S.language));else x(a.util.encode(S.code))},highlight:function(g,y,h){var b={code:g,grammar:y,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var w=new c;return f(w,w.head,g),l(g,w,y,w.head,0),(function(E){for(var S=[],x=E.head.next;x!==E.tail;)S.push(x.value),x=x.next;return S})(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(g,y,h,b){this.type=g,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(g,y,h,b){g.lastIndex=y;var w=g.exec(h);if(w&&b&&w[1]){var E=w[1].length;w.index+=E,w[0]=w[0].slice(E)}return w}function l(g,y,h,b,w,E){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var x=h[S];x=Array.isArray(x)?x:[x];for(var D=0;D<x.length;++D){if(E&&E.cause==S+","+D)return;var A=x[D],P=A.inside,M=!!A.lookbehind,F=!!A.greedy,V=A.alias;if(F&&!A.pattern.global){var U=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,U+"g")}for(var W=A.pattern||A,z=b.next,tt=w;z!==y.tail&&!(E&&tt>=E.reach);tt+=z.value.length,z=z.next){var J=z.value;if(y.length>g.length)return;if(!(J instanceof u)){var st,bt=1;if(F){if(!(st=s(W,tt,g,M)))break;var B=st.index,_=st.index+st[0].length,I=tt;for(I+=z.value.length;B>=I;)I+=(z=z.next).value.length;if(tt=I-=z.value.length,z.value instanceof u)continue;for(var X=z;X!==y.tail&&(I<_||typeof X.value=="string");X=X.next)bt++,I+=X.value.length;bt--,J=g.slice(tt,I),st.index-=tt}else if(!(st=s(W,0,J,M)))continue;B=st.index;var it=st[0],Q=J.slice(0,B),vt=J.slice(B+it.length),xt=tt+J.length;E&&xt>E.reach&&(E.reach=xt);var _t=z.prev;if(Q&&(_t=f(y,_t,Q),tt+=Q.length),d(y,_t,bt),z=f(y,_t,new u(S,P?a.tokenize(it,P):it,V,it)),vt&&f(y,z,vt),bt>1){var kt={cause:S+","+D,reach:xt};l(g,y,h,z.prev,tt,kt),E&&kt.reach>E.reach&&(E.reach=kt.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function d(g,y,h){for(var b=y.next,w=0;w<h&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(r.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach((function(D){b+=g(D,h)})),b}var w={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},E=y.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(w.classes,E):w.classes.push(E)),a.hooks.run("wrap",w);var S="";for(var x in w.attributes)S+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",(function(g){var y=JSON.parse(g.data),h=y.language,b=y.code,w=y.immediateClose;r.postMessage(a.highlight(b,a.languages[h],h)),w&&r.close()}),!1)),a;var p=a.util.currentScript();function m(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=e),N1!==void 0&&(N1.Prism=e),e.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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return r})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"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:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,(function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(e),e.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:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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)/.source,"javascript")),e.languages.js=e.languages.javascript,(function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",(function(s){s.selector+=", "+o})),e.hooks.add("before-sanity-check",(function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}u(c,d),u(l,d);var m=e.plugins.autoloader;m&&m.loadLanguages(d);var v=new XMLHttpRequest;v.open("GET",f,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(l.setAttribute(n,"loaded"),c.textContent=v.responseText,e.highlightElement(c)):(l.setAttribute(n,"failed"),v.status>=400?c.textContent="✖ Error "+v.status+" while fetching file: "+v.statusText:c.textContent="✖ Error: File does not exist or is empty"))},v.send(null)}})),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}})()}));(function(t){var e=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,(function(){return r})).replace(/<BRACES>/g,(function(){return n})).replace(/<SPREAD>/g,(function(){return o})),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",(function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)}))})(Prism),(function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],n=/\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,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{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:a}},{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:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"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:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),t.hooks.add("after-tokenize",(function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"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(t){var e=/\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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.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":n,keyword:e,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*)*\.?/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(t){var e=/\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/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.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:e,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/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return r}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism),(function(t){function e(_,I){return _.replace(/<<(\d+)>>/g,(function(X,it){return"(?:"+I[+it]+")"}))}function r(_,I,X){return RegExp(e(_,I),"")}function n(_,I){for(var X=0;X<I;X++)_=_.replace(/<<self>>/g,(function(){return"(?:"+_+")"}));return _.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="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*{)",u="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 s(_){return"\\b(?:"+_.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=n(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,m,h]),E=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,h]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,P=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:x},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:x},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:x},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:r(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:x}],keyword:c,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:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:r(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:x}}},"type-list":{pattern:r(/\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|[{;]|=>|$))/.source,[l,g,v,S,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),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 M=A+"|"+D,F=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[M]),V=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,tt=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),J=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[tt,z]),st=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[M]),2),bt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,z]);function B(_,I){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[_]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[I,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[J]),lookbehind:!0,greedy:!0,inside:B(J,tt)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[bt]),lookbehind:!0,greedy:!0,inside:B(bt,st)}]})})(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(t){t.languages.ruby=t.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 e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],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:t.languages.ruby}}}),t.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)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{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:e}},{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:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ 	]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),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(t){t.inside.interpolation.inside=Prism.languages.swift})),(function(t){var e="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.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}},r.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash})(Prism),(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return n})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:t.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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),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:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),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(l){["url","bold","italic","strike","code-snippet"].forEach((function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])}))})),t.hooks.add("after-tokenize",(function(l){l.language!=="markdown"&&l.language!=="md"||(function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var m=f[d];if(m.type==="code"){var v=m.content[1],g=m.content[3];if(v&&g&&v.type==="code-language"&&g.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(m.content)}})(l.tokens)})),t.hooks.add("wrap",(function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],m=/language-(.+)/.exec(p);if(m){c=m[1];break}}var v=t.languages[c];if(v)l.content=t.highlight((function(y){var h=y.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(b,w){var E;return(w=w.toLowerCase())[0]==="#"?(E=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(E)):u[w]||b}))})(l.content),v,c);else if(c&&c!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,t.plugins.autoloader.loadLanguages(c,(function(){var y=document.getElementById(g);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[c],c))}))}}}));var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}}));var dCt=["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"];function lG(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce((function(e,r){return e+lG(r)}),0)}var _0,pCt=Xt.String,Gi=function(t){if(lO(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pCt(t)},cG=function(){var t=Fo(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},hO=Xt.RegExp,L3=Fr((function(){var t=hO("a","y");return t.lastIndex=2,t.exec("abcd")!=null}));L3||Fr((function(){return!hO("a","y").sticky}));var fG={BROKEN_CARET:L3||Fr((function(){var t=hO("^r","gy");return t.lastIndex=2,t.exec("str")!=null})),UNSUPPORTED_Y:L3},hCt=gi?Object.defineProperties:function(t,e){Fo(t);for(var r,n=n2(e),o=fm(e),i=o.length,a=0;i>a;)r2.f(t,r=o[a++],n[r]);return t},gCt=ev("document","documentElement"),dG=ZW("IE_PROTO"),Nx=function(){},pG=function(t){return"<script>"+t+"<\/script>"},zI=function(t){t.write(pG("")),t.close();var e=t.parentWindow.Object;return t=null,e},dm=function(){try{_0=new ActiveXObject("htmlfile")}catch{}var t,e;dm=typeof document<"u"?document.domain&&_0?zI(_0):((e=oO("iframe")).style.display="none",gCt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(pG("document.F=Object")),t.close(),t.F):zI(_0);for(var r=L1.length;r--;)delete dm.prototype[L1[r]];return dm()};sO[dG]=!0;var HI,Ix,vCt=Object.create||function(t,e){var r;return t!==null?(Nx.prototype=Fo(t),r=new Nx,Nx.prototype=null,r[dG]=t):r=dm(),e===void 0?r:hCt(r,e)},mCt=Xt.RegExp,yCt=Fr((function(){var t=mCt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")})),bCt=Xt.RegExp,wCt=Fr((function(){var t=bCt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})),ECt=N3.get,xCt=tO("native-string-replace",String.prototype.replace),R1=RegExp.prototype.exec,R3=R1,CCt=ge("".charAt),SCt=ge("".indexOf),DCt=ge("".replace),Lx=ge("".slice),Rx=(Ix=/b*/g,Tr(R1,HI=/a/,"a"),Tr(R1,Ix,"a"),HI.lastIndex!==0||Ix.lastIndex!==0),$I=fG.BROKEN_CARET,Mx=/()??/.exec("")[1]!==void 0;(Rx||Mx||$I||yCt||wCt)&&(R3=function(t){var e,r,n,o,i,a,u,s=this,l=ECt(s),c=Gi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Tr(R3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=$I&&s.sticky,m=Tr(cG,s),v=s.source,g=0,y=c;if(p&&(m=DCt(m,"y",""),SCt(m,"g")===-1&&(m+="g"),y=Lx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&CCt(c,s.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,g++),r=new RegExp("^(?:"+v+")",m)),Mx&&(r=new RegExp("^"+v+"$(?!\\s)",m)),Rx&&(n=s.lastIndex),o=Tr(R1,p?r:s,y),p?o?(o.input=Lx(o.input,g),o[0]=Lx(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Rx&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Mx&&o&&o.length>1&&Tr(xCt,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=vCt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ug=R3;o2({target:"RegExp",proto:!0,forced:/./.exec!==ug},{exec:ug});var gO=Function.prototype,VI=gO.apply,ACt=gO.bind,UI=gO.call,OCt=typeof Reflect=="object"&&Reflect.apply||(ACt?UI.bind(VI):function(){return UI.apply(VI,arguments)}),_Ct=Nu("species"),zx=RegExp.prototype,kCt=Nu("match"),TCt=Xt.TypeError,BCt=Nu("species"),FCt=ge("".charAt),WI=ge("".charCodeAt),PCt=ge("".slice),jCt=function(t){return function(e,r){var n,o,i=Gi(Ef(e)),a=fO(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=WI(i,a))<55296||n>56319||a+1===u||(o=WI(i,a+1))<56320||o>57343?t?FCt(i,a):n:t?PCt(i,a,a+2):o-56320+(n-55296<<10)+65536}},NCt=jCt(!0),ICt=function(t,e,r){return e+(r?NCt(t,e).length:1)},LCt=Xt.Array,RCt=Math.max,GI=function(t,e,r){for(var n,o,i,a,u=dO(t),s=I3(e,u),l=I3(r===void 0?u:r,u),c=LCt(RCt(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=t[s],(a=iO(o))in n?r2.f(n,a,aO(0,i)):n[a]=i;return c.length=f,c},MCt=Xt.TypeError,qI=function(t,e){var r=t.exec;if(cn(r)){var n=Tr(r,t,e);return n!==null&&Fo(n),n}if(hu(t)==="RegExp")return Tr(ug,t,e);throw MCt("RegExp#exec called on incompatible receiver")},nc=fG.UNSUPPORTED_Y,zCt=Math.min,hG=[].push,HCt=ge(/./.exec),oc=ge(hG),vp=ge("".slice);(function(t,e,r,n){var o=Nu(t),i=!Fr((function(){var l={};return l[o]=function(){return 7},""[t](l)!=7})),a=i&&!Fr((function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[_Ct]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=ge(/./[o]),s=(function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,m){var v,g,y=Gi(Ef(this)),h=m===void 0?4294967295:m>>>0;if(h===0)return[];if(p===void 0)return[y];if(!$i(v=p)||!((g=v[kCt])!==void 0?g:hu(v)=="RegExp"))return Tr(c,y,p,h);for(var b,w,E,S=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),D=0,A=new RegExp(p.source,x+"g");(b=Tr(ug,A,y))&&!((w=A.lastIndex)>D&&(oc(S,vp(y,D,b.index)),b.length>1&&b.index<y.length&&OCt(hG,S,GI(b,1)),E=b[0].length,D=w,S.length>=h));)A.lastIndex===b.index&&A.lastIndex++;return D===y.length?!E&&HCt(A,"")||oc(S,""):oc(S,vp(y,D)),S.length>h?GI(S,0,h):S}:"0".split(void 0,0).length?function(p,m){return p===void 0&&m===0?[]:Tr(c,this,p,m)}:c,[function(p,m){var v=Ef(this),g=p==null?void 0:XW(p,l);return g?Tr(g,p,v,m):Tr(d,Gi(v),p,m)},function(p,m){var v=Fo(this),g=Gi(p),y=f(d,v,g,m,d!==c);if(y.done)return y.value;var h=(function(V,U){var W,z=Fo(V).constructor;return z===void 0||(W=Fo(z)[BCt])==null?U:(function(tt){if(nG(tt))return tt;throw TCt(KW(tt)+" is not a constructor")})(W)})(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(nc?"g":"y"),E=new h(nc?"^(?:"+v.source+")":v,w),S=m===void 0?4294967295:m>>>0;if(S===0)return[];if(g.length===0)return qI(E,g)===null?[g]:[];for(var x=0,D=0,A=[];D<g.length;){E.lastIndex=nc?0:D;var P,M=qI(E,nc?vp(g,D):g);if(M===null||(P=zCt(tG(E.lastIndex+(nc?D:0)),g.length))===x)D=ICt(g,D,b);else{if(oc(A,vp(g,x,D)),A.length===S)return A;for(var F=1;F<=M.length-1;F++)if(oc(A,M[F]),A.length===S)return A;D=x=P}}return oc(A,vp(g,x)),A}]})(o,""[t],(function(l,c,f,d,p){var m=ge(l),v=c.exec;return v===ug||v===zx.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}}));ag(String.prototype,t,s[0]),ag(zx,o,s[1])}n&&xf(zx[o],"sham",!0)})("split",0,!!Fr((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),nc),o2({global:!0},{globalThis:Xt}),ao&&(j.fn.attr=ao);var $Ct=QW.PROPER,M3=RegExp.prototype,gG=M3.toString,VCt=ge(cG),UCt=Fr((function(){return gG.call({source:"a",flags:"b"})!="/a/b"})),WCt=$Ct&&gG.name!="toString";(UCt||WCt)&&ag(RegExp.prototype,"toString",(function(){var t=Fo(this),e=Gi(t.source),r=t.flags;return"/"+e+"/"+Gi(r===void 0&&qW(M3,t)&&!("flags"in M3)?VCt(t):r)}),{unsafe:!0});var GCt=(function(){function t(){this.title=dt("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 t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach((function(a){var u=a.text,s=a.value;r.push({text:u,value:s})}));var i=this.getValue(e);return r.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);if(r==null||!Et.isElement(r))return"";var n=r.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some((function(i){return i.value===n}))?n:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,r){if(this.getSelectCodeElem(e)!=null){var n={language:r.toString()};$.setNodes(e,n,{match:function(o){return k.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var r=k.getSelectedNodeByType(e,"code");if(r==null)return null;var n=k.getParentNode(e,r);return Et.isElement(n)?n.type!=="pre"?null:r:null},t})(),qCt={renderStyle:function(t,e){var r=t,n=e,o="";return dCt.forEach((function(i){r[i]&&(o=i)})),o&&(function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})})(n,o="token "+o),n},parseStyleHtml:function(t,e,r){var n=j(t);if(!Et.isElement(e)||k.getNodeType(e)!=="code")return e;var o=e,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new GCt},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(t,e){var r=t.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+e+"</code>"}}]},KCt=/"/g,YCt=ge("".replace);o2({target:"String",proto:!0,forced:Fr((function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3}))},{anchor:function(t){return e=t,r=Gi(Ef(this)),n="<a",(n+=' name="'+YCt(Gi(e),KCt,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var vG=function(t){var e,r,n,o=(function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,E,S=b.call(y),x=[];try{for(;(h===void 0||h-- >0)&&!(w=S.next()).done;)x.push(w.value)}catch(D){E={error:D}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(E)throw E.error}}return x})(t,2),i=o[0],a=o[1],u=[],s=(function(y){if(!yt.isText(y))return null;var h=k.getParentNode(null,y);if(h&&k.getNodeType(h)==="code"){var b=k.getParentNode(null,h);if(b&&k.getNodeType(b)==="pre")return h}return null})(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=(function(y,h){if(!h)return[];var b=MI.languages[h];return b?MI.tokenize(y.text,b):[]})(i,c),d=0;try{for(var p=(function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")})(f),m=p.next();!m.done;m=p.next()){var v=m.value,g=d+lG(v);typeof v!="string"&&u.push(((n={})[v.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:g},n)),d=g}}catch(y){e={error:y}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return u},rr=function(){return rr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rr.apply(this,arguments)},qr=(function(){function t(){throw new Error(`不能实例化
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=rr(rr({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=rr(rr({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=rr(rr({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=rr(rr({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=Eo(Eo({},u),o||{});if(Ey[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Ey[i]=a,(function(l,c){c!=null&&(zz[l]=c)})(i,s)})(e,r)},t.registerRenderElem=function(e){(function(r){var n=r.type,o=r.renderElem;cH[n||""]=o})(e)},t.registerRenderStyle=function(e){(function(r){j6.push(r)})(e)},t.registerElemToHtml=function(e){(function(r){var n=r.type,o=r.elemToHtml;Hz[n||""]=o})(e)},t.registerStyleToHtml=function(e){(function(r){_6.push(r)})(e)},t.registerPreParseHtml=function(e){(function(r){iH.push(r)})(e)},t.registerParseElemHtml=function(e){(function(r){var n=r.selector,o=r.parseElemHtml;Sy[n]=o})(e)},t.registerParseStyleHtml=function(e){(function(r){k5.push(r)})(e)},t.registerModule=function(e){us(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t})();function us(t){var e=t.menus,r=t.renderElems,n=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach((function(c){return qr.registerMenu(c)})),r&&r.forEach((function(c){return qr.registerRenderElem(c)})),n&&qr.registerRenderStyle(n),o&&o.forEach((function(c){return qr.registerElemToHtml(c)})),i&&qr.registerStyleToHtml(i),a&&a.forEach((function(c){return qr.registerPreParseHtml(c)})),u&&u.forEach((function(c){return qr.registerParseElemHtml(c)})),s&&qr.registerParseStyleHtml(s),l&&qr.registerPlugin(l)}egt.forEach((function(t){return us(t)})),us(F0t),us(o1t),us(hwt),us(ixt),us(qCt);var mG='<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>',yG={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"]}},XCt={hoverbarKeys:rr(rr({},yG),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};qr.setEditorConfig(rr(rr({},XCt),{decorate:vG}));var ZCt={hoverbarKeys:yG};qr.setSimpleEditorConfig(rr(rr({},ZCt),{decorate:vG}));var JCt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:dt("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:dt("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:dt("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:dt("editor.image"),iconSvg:mG,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:dt("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"]};qr.setToolbarConfig(JCt);var QCt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:dt("editor.image"),iconSvg:mG,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function t6t(t){t===void 0&&(t={});var e=t.selector,r=e===void 0?"":e,n=t.content,o=n===void 0?[]:n,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?qr.simpleEditorConfig:qr.editorConfig,c=rr(rr({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return ist({selector:r,config:rr(rr(rr({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:qr.plugins})}qr.setSimpleToolbarConfig(QCt);var e6t=Object.defineProperty,r6t=Object.defineProperties,n6t=Object.getOwnPropertyDescriptors,KI=Object.getOwnPropertySymbols,o6t=Object.prototype.hasOwnProperty,i6t=Object.prototype.propertyIsEnumerable,YI=(t,e,r)=>e in t?e6t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,a6t=(t,e)=>{for(var r in e||(e={}))o6t.call(e,r)&&YI(t,r,e[r]);if(KI)for(var r of KI(e))i6t.call(e,r)&&YI(t,r,e[r]);return t},u6t=(t,e)=>r6t(t,n6t(e));function Ta(t){let e=`请使用 '@${t}' 事件，不要放在 props 中`;return e+=`
Please use '@${t}' event instead of props`,e}var s6t=(t,e)=>{for(const[r,n]of e)t[r]=n;return t};const l6t=IL({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const r=Sc(null),n=tq(null),o=Sc(""),i=()=>{if(!r.value)return;const u=fe(t.defaultContent);t6t({selector:r.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:u6t(a6t({},t.defaultConfig),{onCreated(s){if(n.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Ta("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Ta("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Ta("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Ta("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Ta("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Ta("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Ta("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Ta("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s?.setHtml(u)}return dg(()=>{i()}),Oc(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),c6t={ref:"box",style:{height:"100%"}};function f6t(t,e,r,n,o,i){return lh(),dK("div",c6t,null,512)}var V6t=s6t(l6t,[["render",f6t]]);export{I6t as $,fe as A,h6t as B,m6t as C,dg as D,Xi as E,dK as F,Oq as G,eD as H,vm as I,QI as J,x6t as K,v6t as L,C6t as M,E6t as N,lh as O,V1 as P,U1 as Q,dR as R,or as S,N6t as T,j6t as U,Xr as V,D6t as W,pq as X,pR as Y,TG as Z,b6t as _,ll as a,Jx as a0,M6t as a1,F6t as a2,P6t as a3,w6t as a4,R6t as a5,k6t as a6,d6t as a7,hK as a8,Bq as a9,S6t as aa,$6t as ab,H6t as ac,z6t as ad,A6t as ae,gK as af,O6t as ag,L6t as ah,V6t as ai,_6t as aj,ws as ak,gr as al,g6t as b,Ar as c,Sc as d,p6t as e,Dq as f,FG as g,T6t as h,T0 as i,Sq as j,tq as k,IL as l,CK as m,SK as n,tD as o,zq as p,Oc as q,Y3 as r,JG as s,y6t as t,Z3 as u,fq as v,B6t as w,Yi as x,QG as y,Ga as z};
