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

261 lines
2.0 MiB

1 week ago
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/404-raeCqSKr.js","assets/404-D7DuLXxx.css","assets/500-DARFVa4F.js","assets/500-CBXtgQ20.css","assets/index-DsqqOVG5.js","assets/menuItem-BDvA7acZ.js","assets/menuItem-DIrBG1e0.css","assets/index-Cc9I4uOx.css","assets/tablePageDemo-2DdqhII4.js","assets/index-DIRI-ZHl.js","assets/index-YZp8Ts8_.js","assets/index-DWLwfAY6.css","assets/index-DIXU0j8M.css","assets/index-DfOhOzbE.js","assets/index-Dz3qgjIf.js","assets/index-BDfUymAz.css","assets/index-B3_k3HFs.js","assets/index-Cb4nuKR4.js","assets/index-ClRdpwTw.js","assets/index-CGkpPbJG.js","assets/index-BaMQUR0N.js","assets/index-BJ1A_39H.js","assets/index-DIs1KLIb.js","assets/index-DvLLvj4J.js","assets/index-Ce9ikiHk.js","assets/index-D9EqVkB5.js","assets/index-BjoC_D7C.js","assets/index-OsazJQWH.js","assets/index-3I9txoza.js","assets/index-CtUSw-F1.js","assets/index-BYsn7xPW.js","assets/index-Cj1CqPew.js","assets/index-BIvPE4mu.js","assets/index-BBi9qjCP.js","assets/index-BZRccIeb.js","assets/index-Dj7UZvkq.js","assets/index-DGL62Y8b.js","assets/index-DCPZMjsa.js","assets/index-DwUcIl34.js","assets/index-B3o4_0Or.js","assets/index-DkRAp4yL.js","assets/index-DPK-f9Yd.js","assets/index-VyZwuxkI.js","assets/index-BthvFFoq.js","assets/index-DGQ5rXiC.js","assets/index-2IR7qHLi.js","assets/index-CRsPh4nn.js","assets/deferredJobDialog-Cj63OeEX.js","assets/dictSelect-BOb-oacC.js","assets/dataDictDetailApi-CDI6mlb5.js","assets/orgCascader-iDHR95hE.js","assets/orgApi-DXFnUix5.js","assets/orgTree-CqG54D_C.js","assets/positionSelect-Bl8C2mL4.js","assets/positionApi-ByKj7ExJ.js","assets/userSelectDialog-DOor8Of9.js","assets/dictDetailDialog-BSjMRWyj.js","assets/editDictDetailDialog-C10FbjfE.js","assets/index-DSkfluhb.js","assets/editDialog-f_NAWN4s.js","assets/logDiffIndex-C0oXIZSS.js","assets/logApi-CI_0hujd.js","assets/logEventIndex-Dkcr5Vlm.js","assets/logExceptionIndex--7Nm9SsD.js","assets/logJobIndex-CnT5Jmkh.js","assets/logLoginIndex-G1cRYuTY.js","assets/logOperateIndex-BFzytVHy.js","assets/index-DHU0TwTp.js","assets/tenantDialog-BLCofP9p.js","assets/index-CRKkwfNQ.css","assets/editDialog-BdHV7tln.js","assets/menuApi-Dq5icRHX.js","assets/elIconList-CvixsC4z.js","assets/elIconList-DjZIBUtz.css","assets/faIconList-DVsEcT_8.js","assets/faIconList-pncSLGd0.css","assets/editDialog-BsoCng1n.css","assets/index-BzqvSiZ5.js","assets/editDialog-DTc9T191.js","assets/fileApi-BeqdTbeA.js","assets/editDialog-nHDhGvq6.css","assets/publishDialog-CtYasGaK.js","assets/enumSelect-bI651R8y.js","assets/publishIndex-Pk7VF6JA.js","assets/receiveIndex-D0-ccvYa.js","assets/viewDialog-CGLmLE5k.js","assets/editDialog-Bcw8Mczq.js","assets/userSelect-5eNUhnuo.js","assets/index-Dwnec_j3.js","assets/index-CxlVZggA.js","assets/singleImgUpload-CitXVXd6.js","assets/singleImgUpload-BwGZF4OF.css","assets/editDialog-SJiJK3uY.js","assets/index-C8UGUI4e.js","assets/editDataTypeDialog-DzT3HoRc.js","assets/roleApi-BYuVaGrg.js","assets/editDialog-DFmg2XyD.js","assets/editDialog-haObKzSN.css","assets/index-D8L82aMd.js","assets/index-CtR3altG.js","assets/index-tfpUAkU4.js","assets/editDialog-De5S1Jj_.js","assets/editDialog--QMa3IeS.js","assets/index-DZgUoC2X.js","assets/commonLogPage-DspgNimU.js","assets/customlog-B3HquGr6.js","assets/commonLogPage-CmHfLp1m.css","assets/index copy 2-CMnyoW6H.js","assets/index copy 2-B7X4cUrB.css","assets/index copy-BQbAk6h2.js","assets/index copy-BpVSABtY.css","assets/index-CJHdta50.js","assets/index copy-D_RP_Q7E.js","assets/index copy-DaxUGE-E.css","assets/index-ZqgGfiDo.js","assets/index-5lHULhgq.js","assets/index-BjmH1129.css"])))=>i.map(i=>d[i]);
3 weeks ago
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function _P(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const zn={},r0=[],hn=()=>{},y0e=()=>!1,uw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wP=e=>e.startsWith("onUpdate:"),oo=Object.assign,CP=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},b0e=Object.prototype.hasOwnProperty,Yt=(e,t)=>b0e.call(e,t),Me=Array.isArray,o0=e=>vv(e)==="[object Map]",cw=e=>vv(e)==="[object Set]",id=e=>vv(e)==="[object Date]",_0e=e=>vv(e)==="[object RegExp]",et=e=>typeof e=="function",Ze=e=>typeof e=="string",Ts=e=>typeof e=="symbol",Et=e=>e!==null&&typeof e=="object",V1=e=>(Et(e)||et(e))&&et(e.then)&&et(e.catch),CQ=Object.prototype.toString,vv=e=>CQ.call(e),w0e=e=>vv(e).slice(8,-1),z1=e=>vv(e)==="[object Object]",SP=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Y2=_P(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),dw=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},C0e=/-(\w)/g,oa=dw(e=>e.replace(C0e,(t,n)=>n?n.toUpperCase():"")),S0e=/\B([A-Z])/g,Ol=dw(e=>e.replace(S0e,"-$1").toLowerCase()),gy=dw(e=>e.charAt(0).toUpperCase()+e.slice(1)),X2=dw(e=>e?`on${gy(e)}`:""),Pa=(e,t)=>!Object.is(e,t),a0=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},SQ=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Jx=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E0e=e=>{const t=Ze(e)?Number(e):NaN;return isNaN(t)?e:t};let dL;const fw=()=>dL||(dL=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qe(e){if(Me(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ze(r)?O0e(r):Qe(r);if(o)for(const a in o)t[a]=o[a]}return t}else if(Ze(e)||Et(e))return e}const x0e=/;(?![^(]*\))/g,k0e=/:([^]+)/,A0e=/\/\*[^]*?\*\//g;function O0e(e){const t={};return e.replace(A0e,"").split(x0e).forEach(n=>{if(n){const r=n.split(k0e);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function I(e){let t="";if(Ze(e))t=e;else if(Me(e))for(let n=0;n<e.length;n++){const r=I(e[n]);r&&(t+=r+" ")}else if(Et(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function fs(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ze(t)&&(e.class=I(t)),n&&(e.style=Qe(n)),e}const T0e="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",D0e=_P(T0e);function EQ(e){return!!e||e===""}function P0e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=A0(e[r],t[r]);return n}function A0(e,t){if(e===t)return!0;let n=id(e),r=id(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ts(e),r=Ts(t),n||r)return e===t;if(n=Me(e),r=Me(t),n||r)return n&&r?P0e(e,t):!1;if(n=Et(e),r=Et(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!A0(e[i],t[i]))return!1}}return String(e)===String(t)}function xQ(e,t){return e.findIndex(n=>A0(n,t))}const kQ=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ze(e)?e:e==null?"":Me(e)||Et(e)&&(e.toString===CQ||!et(e.toString))?kQ(e)?Re(e.value):JSON.stringify(e,AQ,2):String(e),AQ=(e,t)=>kQ(t)?AQ(e,t.value):o0(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[S9(r,a)+" =>"]=o,n),{})}:cw(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>S9(n))}:Ts(t)?S9(t):Et(t)&&!Me(t)&&!z1(t)?String(t):t,S9=(e,t="")=>{var n;return Ts(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let pa;class OQ{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=pa,!t&&pa&&(this.index=(pa.scopes||(pa.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=pa;try{return pa=this,t()}finally{pa=n}}}on(){pa=this}off(){pa=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function EP(e){return new OQ(e)}function xP(){return pa}function kP(e,t=!1){pa&&pa.cleanups.push(e)}let dr;const E9=new WeakSet;class TQ{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,pa&&pa.active&&pa.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,E9.has(this)&&(E9.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||PQ(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fL(this),MQ(this);const t=dr,n=_s;dr=this,_s=!0;try{return this.fn()}finally{BQ(this),dr=t,_s=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)TP(t);this.deps=this.depsTail=void 0,fL(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?E9.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zx(this)&&this.run()}get dirty(){return Zx(this)}}let DQ=0,J2,Z2;function PQ(e,t=!1){if(e.flags|=8,t){e.next=Z2,Z2=e;return}e.next=J2,J2=e}function AP(){DQ++}function OP(){if(--DQ>0)return;if(Z2){let t=Z2;for(Z2=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;J2;){let t=J2;for(J2=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function MQ(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function BQ(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),TP(r),M0e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Zx(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(RQ(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function RQ(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===j1))return;e.globalVersion=j1;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Zx(e)){e.flags&=-3;return}const n=dr,r=_s;dr=e,_s=!0;try{MQ(e);const o=e.fn(e._value);(t.version===0||Pa(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{dr=n,_s=r,BQ(e),e.flags&=-3}}function TP(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)TP(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function M0e(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let _s=!0;const IQ=[];function Sd(){IQ.push(_s),_s=!1}function Ed(){const e=IQ.pop();_s=e===void 0?!0:e}function fL(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=dr;dr=void 0;try{t()}finally{dr=n}}}let j1=0,B0e=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function my(e,t,n,r){try{return r?e(...r):e()}catch(o){vw(o,t,n)}}function Ds(e,t,n,r){if(et(e)){const o=my(e,t,n,r);return o&&V1(o)&&o.catch(a=>{vw(a,t,n)}),o}if(Me(e)){const o=[];for(let a=0;a<e.length;a++)o.push(Ds(e[a],t,n,r));return o}}function vw(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||zn;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}s=s.parent}if(a){Sd(),my(a,null,10,[e,l,u]),Ed();return}}ive(e,n,o,r,i)}function ive(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const ha=[];let Ys=-1;const i0=[];let vc=null,Nh=0;const qQ=Promise.resolve();let b3=null;function tt(e){const t=b3||qQ;return e?t.then(this?e.bind(this):e):t}function sve(e){let t=Ys+1,n=ha.length;for(;t<n;){const r=t+n>>>1,o=ha[r],a=U1(o);a<e||a===e&&o.flags&2?t=r+1:n=r}return t}function RP(e){if(!(e.flags&1)){const t=U1(e),n=ha[ha.length-1];!n||!(e.flags&2)&&t>=U1(n)?ha.push(e):ha.splice(sve(t),0,e),e.flags|=1,GQ()}}function GQ(){b3||(b3=qQ.then(XQ))}function lve(e){Me(e)?i0.push(...e):vc&&e.id===-1?vc.splice(Nh+1,0,e):e.flags&1||(i0.push(e),e.flags|=1),GQ()}function hL(e,t,n=Ys+1){for(;n<ha.length;n++){const r=ha[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ha.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function YQ(e){if(i0.length){const t=[...new Set(i0)].sort((n,r)=>U1(n)-U1(r));if(i0.length=0,vc){vc.push(...t);return}for(vc=t,Nh=0;Nh<vc.length;Nh++){const n=vc[Nh];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vc=null,Nh=0}}const U1=e=>e.id==null?e.flags&2?-1:1/0:e.id;function XQ(e){try{for(Ys=0;Ys<ha.length;Ys++){const t=ha[Ys];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),my(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ys<ha.length;Ys++){const t=ha[Ys];t&&(t.flags&=-2)}Ys=-1,ha.length=0,YQ(),b3=null,(ha.length||i0.length)&&XQ()}}let vo=null,JQ=null;function _3(e){const t=vo;return vo=e,JQ=e&&e.type.__scopeId||null,t}function ae(e,t=vo,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&kL(-1);const a=_3(t);let i;try{i=e(...o)}finally{_3(a),r._d&&kL(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function wt(e,t){if(vo===null)return e;const n=Cw(vo),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[a,i,s,l=zn]=t[o];a&&(et(a)&&(a={mounted:a,updated:a}),a.deep&&tu(i),r.push({dir:a,instance:n,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function Fd(e,t,n,r){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let l=s.dir[r];l&&(Sd(),Ds(l,n,8,[e.el,s,e,t]),Ed())}}const ZQ=Symbol("_vte"),QQ=e=>e.__isTeleport,Q2=e=>e&&(e.disabled||e.disabled===""),vL=e=>e&&(e.defer||e.defer===""),gL=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mL=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,nk=(e,t)=>{const n=e&&e.to;return Ze(n)?t?t(n):null:n},eee={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,i,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:p,querySelector:g,createText:v,createComment:m}}=u,y=Q2(t.props);let{shapeFlag:b,children:w,dynamicChildren:_}=t;if(e==null){const C=t.el=v(""),S=t.anchor=v("");p(C,n,r),p(S,n,r);const E=(A,D)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=A),c(w,A,D,o,a,i,s,l))},k=()=>{const A=t.target=nk(t.props,g),D=tee(A,t,v,p);A&&(i!=="svg"&&gL(A)?i="svg":i!=="mathml"&&mL(A)&&(i="mathml"),y||(E(A,D),p6(t,!1)))};y&&(E(n,S),p6(t,!0)),vL(t.props)?co(()=>{k(),t.el.__isMounted=!0},a):k()}else{if(vL(t.props)&&!e.el.__isMounted){co(()=>{eee.process(e,t,n,r,o,a,i,s,l,u),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,S=t.target=e.target,E=t.targetAnchor=e.targetAnchor,k=Q2(e.props),A=k?n:S,D=k?C:E;if(i==="svg"||gL(S)?i="svg":(i==="mathml"||mL(S))&&(i="mathml"),_?(f(e.dynamicChildren,_,A,o,a,i,s),VP(e,t,!0)):l||d(e,t,A,D,o,a,i,s,!1),y)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):V4(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=nk(t.props,g)
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let uk;const TL=typeof window<"u"&&window.trustedTypes;if(TL)try{uk=TL.createPolicy("vue",{createHTML:e=>e})}catch{}const Iee=uk?e=>uk.createHTML(e):e=>e,lge="http://www.w3.org/2000/svg",uge="http://www.w3.org/1998/Math/MathML",Yl=typeof document<"u"?document:null,DL=Yl&&Yl.createElement("template"),cge={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Yl.createElementNS(lge,e):t==="mathml"?Yl.createElementNS(uge,e):n?Yl.createElement(e,{is:n}):Yl.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{DL.innerHTML=Iee(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=DL.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fu="transition",rg="animation",O0=Symbol("_vtc"),Nee={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},Fee=oo({},ree,Nee),dge=e=>(e.displayName="Transition",e.props=Fee,e),jr=dge((e,{slots:t})=>nt(fve,Lee(e),t)),$d=(e,t=[])=>{Me(e)?e.forEach(n=>n(...t)):e&&e(...t)},PL=e=>e?Me(e)?e.some(t=>t.length>1):e.length>1:!1;function Lee(e){const t={};for(const M in e)M in Nee||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=fge(o),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:_,onLeaveCancelled:C,onBeforeAppear:S=y,onAppear:E=b,onAppearCancelled:k=w}=t,A=(M,K,X,z)=>{M._enterCancelled=z,dc(M,K?c:s),dc(M,K?u:i),X&&X()},D=(M,K)=>{M._isLeaving=!1,dc(M,d),dc(M,p),dc(M,f),K&&K()},B=M=>(K,X)=>{const z=M?E:b,R=()=>A(K,M,X);$d(z,[K,R]),ML(()=>{dc(K,M?l:a),qs(K,M?c:s),PL(z)||BL(K,r,v,R)})};return oo(t,{onBeforeEnter(M){$d(y,[M]),qs(M,a),qs(M,i)},onBeforeAppear(M){$d(S,[M]),qs(M,l),qs(M,u)},onEnter:B(!1),onAppear:B(!0),onLeave(M,K){M._isLeaving=!0;const X=()=>D(M,K);qs(M,d),M._enterCancelled?(qs(M,f),ck()):(ck(),qs(M,f)),ML(()=>{M._isLeaving&&(dc(M,d),qs(M,p),PL(_)||BL(M,r,m,X))}),$d(_,[M,X])},onEnterCancelled(M){A(M,!1,void 0,!0),$d(w,[M])},onAppearCancelled(M){A(M,!0,void 0,!0),$d(k,[M])},onLeaveCancelled(M){D(M),$d(C,[M])}})}function fge(e){if(e==null)return null;if(Et(e))return[P9(e.enter),P9(e.leave)];{const t=P9(e);return[t,t]}}function P9(e){return E0e(e)}function qs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[O0]||(e[O0]=new Set)).add(t)}function dc(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[O0];n&&(n.delete(t),n.size||(e[O0]=void 0))}function ML(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pge=0;function BL(e,t,n,r){const o=e._endId=++pge,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:i,timeout:s,propCount:l}=$ee(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),a()},f=p=>{p.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,f)}function $ee(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${Fu}Delay`),a=r(`${Fu}Duration`),i=RL(o,a),s=r(`${rg}De
* pinia v2.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/let Gee;const Ew=e=>Gee=e,Yee=Symbol();function dk(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var n1;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(n1||(n1={}));function zge(){const e=EP(!0),t=e.run(()=>H({}));let n=[],r=[];const o=fl({install(a){Ew(o),o._a=a,a.provide(Yee,o),a.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Xee=()=>{};function GL(e,t,n,r=Xee){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&xP()&&kP(o),o}function Jp(e,...t){e.slice().forEach(n=>{n(...t)})}const jge=e=>e(),YL=Symbol(),R9=Symbol();function fk(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];dk(o)&&dk(r)&&e.hasOwnProperty(n)&&!bn(r)&&!Ic(r)?e[n]=fk(o,r):e[n]=r}return e}const Hge=Symbol();function Uge(e){return!dk(e)||!e.hasOwnProperty(Hge)}const{assign:fc}=Object;function Wge(e){return!!(bn(e)&&e.effect)}function Kge(e,t,n,r){const{state:o,actions:a,getters:i}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=o?o():{});const c=ao(n.state.value[e]);return fc(c,a,Object.keys(i||{}).reduce((d,f)=>(d[f]=fl(O(()=>{Ew(n);const p=n._s.get(e);return i[f].call(p,p)})),d),{}))}return l=Jee(e,u,t,n,r,!0),l}function Jee(e,t,n={},r,o,a){let i;const s=fc({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],p;const g=r.state.value[e];!a&&!g&&(r.state.value[e]={}),H({});let v;function m(k){let A;u=c=!1,typeof k=="function"?(k(r.state.value[e]),A={type:n1.patchFunction,storeId:e,events:p}):(fk(r.state.value[e],k),A={type:n1.patchObject,payload:k,storeId:e,events:p});const D=v=Symbol();tt().then(()=>{v===D&&(u=!0)}),c=!0,Jp(d,A,r.state.value[e])}const y=a?function(){const{state:A}=n,D=A?A():{};this.$patch(B=>{fc(B,D)})}:Xee;function b(){i.stop(),d=[],f=[],r._s.delete(e)}const w=(k,A="")=>{if(YL in k)return k[R9]=A,k;const D=function(){Ew(r);const B=Array.from(arguments),M=[],K=[];function X(j){M.push(j)}function z(j){K.push(j)}Jp(f,{args:B,name:D[R9],store:C,after:X,onError:z});let R;try{R=k.apply(this&&this.$id===e?this:C,B)}catch(j){throw Jp(K,j),j}return R instanceof Promise?R.then(j=>(Jp(M,j),j)).catch(j=>(Jp(K,j),Promise.reject(j))):(Jp(M,R),R)};return D[YL]=!0,D[R9]=A,D},_={_p:r,$id:e,$onAction:GL.bind(null,f),$patch:m,$reset:y,$subscribe(k,A={}){const D=GL(d,k,A.detached,()=>B()),B=i.run(()=>Ae(()=>r.state.value[e],M=>{(A.flush==="sync"?c:u)&&k({storeId:e,type:n1.direct,events:p},M)},fc({},l,A)));return D},$dispose:b},C=Gt(_);r._s.set(e,C);const E=(r._a&&r._a.runWithContext||jge)(()=>r._e.run(()=>(i=EP()).run(()=>t({action:w}))));for(const k in E){const A=E[k];if(bn(A)&&!Wge(A)||Ic(A))a||(g&&Uge(A)&&(bn(A)?A.value=g[k]:fk(A,g[k])),r.state.value[e][k]=A);else if(typeof A=="function"){const D=w(A,k);E[k]=D,s.actions[k]=A}}return fc(C,E),fc(Cn(C),E),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:k=>{m(A=>{fc(A,k)})}}),r._p.forEach(k=>{fc(C,i.run(()=>k({store:C,app:r._a,pinia:r,options:s})))}),g&&a&&n.hydrate&&n.hydrate(C.$state,g),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function by(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function i(s,l){const u=Dve();return s=s||(u?qe(Yee,null):null),s&&Ew(s),s=Gee,s._s.has(r)||(a?Jee(r,t,o,s):Kge(r,o,s)),s._s.get(r)}return i.$id=r,i}const qge="2.9.3",XL=Symbol("INSTALLED_KEY"),Zee=Symbol(),r1="el",Gge="is-",Vd=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),o&&(a+=`--${o}`),a},Qee=Symbol("namespaceContextKey"),HP=e=>{const t=e||(kt()?qe(Qee,H(r1)):H(r1));return O(()=>h(t)||r1)},De=(e,t)=>{const n=HP(t);return{namespace:n,b:(v="")=>Vd(n.value,e,v,"",""),e:v=>v?Vd(n.value,e,"",v,""):"",m:v=>v?Vd(n.value,e,"","",v):"",be:(v,m)=>v&&m?Vd(n.value,e,v,m,""):"",em:(v,m)=>v&&m?Vd(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?Vd(n.valu
height:0 !important;
visibility:hidden !important;
${jw()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,vxe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function gxe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:vxe.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function Q$(e,t=1,n){var r;as||(as=document.createElement("textarea"),document.body.appendChild(as));const{paddingSize:o,borderSize:a,boxSizing:i,contextStyle:s}=gxe(e);as.setAttribute("style",`${s};${hxe}`),as.value=e.value||e.placeholder||"";let l=as.scrollHeight;const u={};i==="border-box"?l=l+a:i==="content-box"&&(l=l-o),as.value="";const c=as.scrollHeight-o;if(rt(t)){let d=c*t;i==="border-box"&&(d=d+o+a),l=Math.max(d,l),u.minHeight=`${d}px`}if(rt(n)){let d=c*n;i==="border-box"&&(d=d+o+a),l=Math.min(d,l)}return u.height=`${l}px`,(r=as.parentNode)==null||r.removeChild(as),as=void 0,u}const tr=e=>e,mxe=Ie({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Bo=e=>ps(mxe,e),yM=Ie({id:{type:String,default:void 0},size:Rr,disabled:Boolean,modelValue:{type:ce([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ce([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:En},prefixIcon:{type:En},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ce([Object,Array,String]),default:()=>tr({})},autofocus:Boolean,rows:{type:Number,default:2},...Bo(["ariaLabel"])}),yxe={[Ct]:e=>Ze(e),input:e=>Ze(e),change:e=>Ze(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},bxe=["class","style"],_xe=/^on[A-Z]/,ky=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=O(()=>((n==null?void 0:n.value)||[]).concat(bxe)),o=kt();return O(o?()=>{var a;return Q1(Object.entries((a=o.proxy)==null?void 0:a.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&_xe.test(i))))}:()=>({}))},Ip=Symbol("formContextKey"),_l=Symbol("formItemContextKey"),eV={prefix:Math.floor(Math.random()*1e4),current:0},wxe=Symbol("elIdInjection"),bM=()=>kt()?qe(wxe,eV):eV,To=e=>{const t=bM(),n=HP();return bk(()=>h(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},jo=()=>{const e=qe(Ip,void 0),t=qe(_l,void 0);return{form:e,formItem:t}},Qi=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=H(!1)),r||(r=H(!1));const o=H();let a;const i=O(()=>{var s;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return St(()=>{a=Ae([un(e,"id"),n],([s,l])=>{const u=s??(l?void 0:To().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),xd(()=>{a&&a(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:i,inputId:o}},Dne=e=>{const t=kt();return O(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Dr=(e,t={})=>{const n=H(void 0),r=t.prop?n:Dne("size"),o=t.global?n:tne(),a=t.form?{size:void 0}:qe(Ip,void 0),i=t.formItem?{size:
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),T("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(x(),ge(u,{key:2,class:I(e.ns.e("prefix"))},{default:ae(()=>[Q(l)]),_:1},8,["class"])):pe("v-if",!0),pe(" content "),Q(c),pe(" postfix "),e.isLeaf?pe("v-if",!0):(x(),P(Je,{key:3},[e.node.loading?(x(),ge(u,{key:0,class:I([e.ns.is("loading"),e.ns.e("postfix")])},{default:ae(()=>[Q(d)]),_:1},8,["class"])):(x(),ge(u,{key:1,class:I(["arrow-right",e.ns.e("postfix")])},{default:ae(()=>[Q(f)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var EDe=Ne(CDe,[["render",SDe],["__file","node.vue"]]);const xDe=F({name:"ElCascaderMenu",components:{Loading:Ms,ElIcon:Ye,ElScrollbar:Ml,ElCascaderNode:EDe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=kt(),n=De("cascader-menu"),{t:r}=zt(),o=To();let a=null,i=null;const s=qe(RM),l=H(null),u=O(()=>!e.nodes.length),c=O(()=>!s.initialLoaded),d=O(()=>`${o.value}-${e.index}`),f=m=>{a=m.target},p=m=>{if(!(!s.isHoverMenu||!a||!l.value))if(a.contains(m.target)){g();const y=t.vnode.el,{left:b}=y.getBoundingClientRect(),{offsetWidth:w,offsetHeight:_}=y,C=m.clientX-b,S=a.offsetTop,E=S+a.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${S} L${w} 0 V${S} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${E} L${w} ${_} V${E} Z" />
`}else i||(i=window.setTimeout(v,s.config.hoverThreshold))},g=()=>{i&&(clearTimeout(i),i=null)},v=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:f,handleMouseMove:p,clearHoverZone:v}}});function kDe(e,t,n,r,o,a){const i=Ge("el-cascader-node"),s=Ge("loading"),l=Ge("el-icon"),u=Ge("el-scrollbar");return x(),ge(u,{key:e.menuId,tag:"ul",role:"menu",class:I(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ae(()=>{var c;return[(x(!0),P(Je,null,Mt(e.nodes,d=>(x(),ge(i,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(x(),P("div",{key:0,class:I(e.ns.e("empty-text"))},[Q(l,{size:"14",class:I(e.ns.is("loading"))},{default:ae(()=>[Q(s)]),_:1},8,["class"]),Dt(" "+Re(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(x(),P("div",{key:1,class:I(e.ns.e("empty-text"))},[de(e.$slots,"empty",{},()=>[Dt(Re(e.t("el.cascader.noData")),1)])],2)):(c=e.panel)!=null&&c.isHoverMenu?(x(),P("svg",{key:2,ref:"hoverZone",class:I(e.ns.e("hover-zone"))},null,2)):pe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ADe=Ne(xDe,[["render",kDe],["__file","menu.vue"]]);const IM=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),nl=e=>gy(e);let ODe=0;const TDe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Dk=class Pk{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=ODe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:a,label:i,children:s}=n,l=t[s],u=TDe(this);this.level=o?0:r?r.level+1:1,this.value=t[a],this.label=t[i],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new Pk(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!oi(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:a}=r;return(et(o)?o(t,this):!!t[o])||!a&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:a,leaf:i}=n,s=et(i)?i(t,this):t[i];return Qt(s)?a&&!o?!1:!(Me(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new Pk(t,this.config,this);return Me(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${nl(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${nl(t)}`;r&&(r[o]&&r[o](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,a)=>{const i=a.checked?1:a.indeterminate?.5:0;return o+i},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Mk=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(Mk(r.children,t))),n),[]);class BV{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new Dk(o,this.config));this.nodes=r,this.allNodes=Mk(r,!1),this.leafNodes=Mk(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new Dk(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(o=>Fo(o.value,t)||Fo(o.pathValues,t))||null}getS
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(_){return _&&_.exact?a:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+o+t(_)+")","g")};l.v4=function(w){return w&&w.exact?i:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+o+t(w),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+p+g+v+")"+m+y;return tb=new RegExp("(?:^"+b+"$)","i"),tb},JV={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N2={integer:function(t){return N2.number(t)&&parseInt(t,10)===t},float:function(t){return N2.number(t)&&!N2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!N2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(JV.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(wIe())},hex:function(t){return typeof t=="string"&&!!t.match(JV.hex)}},CIe=function(t,n,r,o,a){if(t.required&&n===void 0){Coe(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?N2[s](n)||o.push(si(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(si(a.messages.types[s],t.fullField,t.type))},SIe=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(f?d="number":p?d="string":g&&(d="array"),!d)return!1;g&&(c=n.length),p&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(si(a.messages[d].len,t.fullField,t.len)):s&&!l&&c<t.min?o.push(si(a.messages[d].min,t.fullField,t.min)):l&&!s&&c>t.max?o.push(si(a.messages[d].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&o.push(si(a.messages[d].range,t.fullField,t.min,t.max))},eh="enum",EIe=function(t,n,r,o,a){t[eh]=Array.isArray(t[eh])?t[eh]:[],t[eh].indexOf(n)===-1&&o.push(si(a.messages[eh],t.fullField,t[eh].join(", ")))},xIe=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(si(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(si(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Pn={required:Coe,whitespace:_Ie,type:CIe,range:SIe,enum:EIe,pattern:xIe},kIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bo(n,"string")&&!t.required)return r();Pn.required(t,n,o,i,a,"string"),bo(n,"string")||(Pn.type(t,n,o,i,a),Pn.range(t,n,o,i,a),Pn.pattern(t,n,o,i,a),t.whitespace===!0&&Pn.whitespace(t,n,o,i,a))}r(i)},AIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bo(n)&&!t.required)return r();Pn.required(t,n,o,i,a),n!==void 0&&Pn.type(t,n,o,i,a)}r(i)},OIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),bo(n)&&!t.required)return r();Pn.required(t,n,o,i,a),n!==void 0&&(Pn.type(t,n,o,i,a),Pn.range(t,n,o,i,a))}r(i)},TIe=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(
M 50 50
m 0 ${_?"":"-"}${w}
a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2}
a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2}
`}),l=O(()=>2*Math.PI*i.value),u=O(()=>t.type==="dashboard"?.75:1),c=O(()=>`${-1*l.value*(1-u.value)/2}px`),d=O(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),f=O(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=O(()=>{let w;return t.color?w=b(t.percentage):w=n[t.status]||n.default,w}),g=O(()=>t.status==="warning"?xy:t.type==="line"?t.status==="success"?Lw:Pl:t.status==="success"?Ev:Hi),v=O(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),m=O(()=>t.format(t.percentage));function y(w){const _=100/w.length;return w.map((S,E)=>Ze(S)?{color:S,percentage:(E+1)*_}:S).sort((S,E)=>S.percentage-E.percentage)}const b=w=>{var _;const{color:C}=t;if(et(C))return C(w);if(Ze(C))return C;{const S=y(C);for(const E of S)if(E.percentage>w)return E.color;return(_=S[S.length-1])==null?void 0:_.color}};return(w,_)=>(x(),P("div",{class:I([h(r).b(),h(r).m(w.type),h(r).is(w.status),{[h(r).m("without-text")]:!w.showText,[h(r).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(x(),P("div",{key:0,class:I(h(r).b("bar"))},[T("div",{class:I(h(r).be("bar","outer")),style:Qe({height:`${w.strokeWidth}px`})},[T("div",{class:I([h(r).be("bar","inner"),{[h(r).bem("bar","inner","indeterminate")]:w.indeterminate},{[h(r).bem("bar","inner","striped")]:w.striped},{[h(r).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Qe(h(o))},[(w.showText||w.$slots.default)&&w.textInside?(x(),P("div",{key:0,class:I(h(r).be("bar","innerText"))},[de(w.$slots,"default",{percentage:w.percentage},()=>[T("span",null,Re(h(m)),1)])],2)):pe("v-if",!0)],6)],6)],2)):(x(),P("div",{key:1,class:I(h(r).b("circle")),style:Qe({height:`${w.width}px`,width:`${w.width}px`})},[(x(),P("svg",{viewBox:"0 0 100 100"},[T("path",{class:I(h(r).be("circle","track")),d:h(s),stroke:`var(${h(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":h(a),fill:"none",style:Qe(h(d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),T("path",{class:I(h(r).be("circle","path")),d:h(s),stroke:h(p),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":h(a),style:Qe(h(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(x(),P("div",{key:2,class:I(h(r).e("text")),style:Qe({fontSize:`${h(v)}px`})},[de(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(x(),ge(h(Ye),{key:1},{default:ae(()=>[(x(),ge(At(h(g))))]),_:1})):(x(),P("span",{key:0},Re(h(m)),1))])],6)):pe("v-if",!0)],10,["aria-valuenow"]))}});var uLe=Ne(lLe,[["__file","progress.vue"]]);const Roe=yt(uLe),cLe=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ce([Array,Object]),default:()=>tr(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ce([Array,Object]),default:()=>[I2,I2,I2]},voidIcon:{type:En,default:()=>Ane},disabledVoidIcon:{type:En,default:()=>I2},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ce(Array),default:()=>tr(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Rr,clearable:Boolean,...Bo(["ariaLabel"])}),dLe={[Sn]:e=>rt(e),[Ct]:e=>rt(e)},fLe=F({name:"ElRate"}),pLe=F({...fLe,props:cLe,emits:dLe,setup(e,{expose:t,emit:n}){const r=e;function o(R,j){const L=$=>Et($),N=Object.keys(j).map($=>+$).filter($=>{const V=j[$];return(L(V)?V.excluded:!1)?R<$:R<=$}).sort(($,V)=>$-V),Y=j[N[0]];return L(Y)&&Y.value||Y}const a=qe(Ip,void 0),i=qe(_l,void 0),s=Dr(),l=De("rate"),{inputId:u,isLabeledByFormItem:c}=Qi(r,{formItemContext:i}),d=H(r.modelValue),f=H(-1),p=H(!0),g=O(()=>[l.b(),l.m(s.value)]),v=O
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const oze=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=rze(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},aze={beforeMount(e,t){oze(e,t.value)}};let ize=1;const sze=F({name:"ElTable",directives:{Mousewheel:aze},components:{TableHeader:NVe,TableBody:UVe,TableFooter:qVe,ElScrollbar:Ml,hColgroup:iae},props:JVe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=zt(),n=De("table"),r=kt();It(Rl,r);const o=kVe(r,e);r.store=o;const a=new OVe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=a;const i=O(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:g,sort:v,updateKeyChildren:m}=GVe(o),{isHidden:y,renderExpanded:b,setDragVisible:w,isGroup:_,handleMouseLeave:C,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:k,handleFixedMousewheel:A,resizeProxyVisible:D,bodyWidth:B,resizeState:M,doLayout:K,tableBodyStyles:X,tableLayout:z,scrollbarViewStyle:R,scrollbarStyle:j}=YVe(e,a,o,r),{scrollBarRef:L,scrollTo:N,setScrollLeft:Y,setScrollTop:$}=ZVe(),V=Wa(K,50),U=`${n.namespace.value}-table_${ize++}`;r.tableId=U,r.state={isGroup:_,resizeState:M,doLayout:K,debouncedUpdateLayout:V};const G=O(()=>{var q;return(q=e.sumText)!=null?q:t("el.table.sumText")}),Z=O(()=>{var q;return(q=e.emptyText)!=null?q:t("el.table.emptyText")}),ee=O(()=>aae(o.states.originColumns.value)[0]);return XVe(r),xn(()=>{V.cancel()}),{ns:n,layout:a,store:o,columns:ee,handleHeaderFooterMousewheel:S,handleMouseLeave:C,tableId:U,tableSize:E,isHidden:y,isEmpty:i,renderExpanded:b,resizeProxyVisible:D,resizeState:M,isGroup:_,bodyWidth:B,tableBodyStyles:X,emptyBlockStyle:k,debouncedUpdateLayout:V,handleFixedMousewheel:A,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:g,doLayout:K,sort:v,updateKeyChildren:m,t,setDragVisible:w,context:r,computedSumText:G,computedEmptyText:Z,tableLayout:z,scrollbarViewStyle:R,scrollbarStyle:j,scrollBarRef:L,scrollTo:N,setScrollLeft:Y,setScrollTop:$,allowDragLastColumn:e.allowDragLastColumn}}});function lze(e,t,n,r,o,a){const i=Ge("hColgroup"),s=Ge("table-header"),l=Ge("table-body"),u=Ge("table-footer"),c=Ge("el-scrollbar"),d=bw("mousewheel");return x(),P("div",{ref:"tableWrapper",class:I([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[T("div",{class:I(e.ns.e("inner-wrapper"))},[T("div",{ref:"hiddenColumns",class:"hidden-columns"},[de(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?wt((x(),P("div",{key:0,ref:"headerWrapper",class:I(e.ns.e("header-wrapper"))},[T("table",{ref:"tableHeader",class:I(e.ns.e("header")),style:Qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","all
1 week ago
`||u==="\r"){i=l;continue}if(a.includes(u)){const c=i===-1?r:i;s={pattern:o.slice(l+1,c),start:l+1,end:c,prefix:u,prefixIndex:l,splitIndex:i,selectionEnd:r};break}}return s},FKe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,a=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const f=document.querySelector("#input-textarea-caret-position-mirror-div");f!=null&&f.parentNode&&f.parentNode.removeChild(f)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const s=i.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),a.forEach(f=>{if(u&&f==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),g=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),v=g+Number.parseInt(l.lineHeight);p>v?s.lineHeight=`${p-g}px`:p===v?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[f]=l[f]}),jw()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",i.textContent=e.value.slice(0,Math.max(0,o)),u&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const c=document.createElement("span");c.textContent=e.value.slice(Math.max(0,o))||".",c.style.position="relative",c.style.left=`${-e.scrollLeft}px`,c.style.top=`${-e.scrollTop}px`,i.appendChild(c);const d={top:c.offsetTop+Number.parseInt(l.borderTopWidth),left:c.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?c.style.backgroundColor="#aaa":document.body.removeChild(i),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},LKe=Ie({...yM,options:{type:ce(Array),default:()=>[]},prefix:{type:ce([String,Array]),default:"@",validator:e=>Ze(e)?e.length===1:e.every(t=>Ze(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ce([Boolean,Function]),default:()=>IKe,validator:e=>e===!1?!0:et(e)},placement:{type:ce(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ce(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ce(Object),default:()=>({})}}),$Ke={[Ct]:e=>Ze(e),search:(e,t)=>Ze(e)&&Ze(t),select:(e,t)=>Ze(e.value)&&Ze(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},VKe=Ie({options:{type:ce(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),zKe={select:e=>Ze(e.value)},jKe=F({name:"ElMentionDropdown"}),HKe=F({...jKe,props:VKe,emits:zKe,setup(e,{expose:t,emit:n}){const r=e,o=De("mention"),{t:a}=zt(),i=H(-1),s=H(),l=H(),u=H(),c=(w,_)=>[o.be("dropdown","item"),o.is("hovering",i.value===_),o.is("disabled",w.disabled||r.disabled)],d=w=>{w.disabled||r.disabled||n("select",w)},f=w=>{i.value=w},p=O(()=>r.disabled||r.options.every(w=>w.disabled)),g=O(()=>r.options[i.value]),v=()=>{g.value&&n("select",g.value)},m=w=>{const{options:_}=r;if(_.length===0||p.value)return;w==="next"?(i.value++,i.value===_.length&&(i.value=0)):w==="prev"&&(i.value--,i.value<0&&(i.value=_.length-1));const C=_[i.value];if(C.disabled){m(w);return}tt(()=>y(C))},y=w=>{var _,C,S,E;const{options:k}=r,A=k.findIndex(B=>B.value===w.value),D=(_=l.value)==null?void 0:_[A];if(D){const B=(S=(C=u.value)==null?void 0:C.querySelector)==null?void 0:S.call(C,`.${o.be("dropdown","wrap")}`);B&&cM(B,D)}(E=s.value)==null||E.handleScroll()};return Ae(()=>r.options
3 weeks ago
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const zh=typeof document<"u";function Cie(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Gqe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cie(e.default)}const Wn=Object.assign;function dC(e,t){const n={};for(const r in t){const o=t[r];n[r]=Is(o)?o.map(e):e(o)}return n}const d1=()=>{},Is=Array.isArray,Sie=/#/g,Yqe=/&/g,Xqe=/\//g,Jqe=/=/g,Zqe=/\?/g,Eie=/\+/g,Qqe=/%5B/g,eGe=/%5D/g,xie=/%5E/g,tGe=/%60/g,kie=/%7B/g,nGe=/%7C/g,Aie=/%7D/g,rGe=/%20/g;function DB(e){return encodeURI(""+e).replace(nGe,"|").replace(Qqe,"[").replace(eGe,"]")}function oGe(e){return DB(e).replace(kie,"{").replace(Aie,"}").replace(xie,"^")}function kA(e){return DB(e).replace(Eie,"%2B").replace(rGe,"+").replace(Sie,"%23").replace(Yqe,"%26").replace(tGe,"`").replace(kie,"{").replace(Aie,"}").replace(xie,"^")}function aGe(e){return kA(e).replace(Jqe,"%3D")}function iGe(e){return DB(e).replace(Sie,"%23").replace(Zqe,"%3F")}function sGe(e){return e==null?"":iGe(e).replace(Xqe,"%2F")}function vm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lGe=/\/$/,uGe=e=>e.replace(lGe,"");function fC(e,t,n="/"){let r,o={},a="",i="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),o=e(a)),s>-1&&(r=r||t.slice(0,s),i=t.slice(s,t.length)),r=pGe(r??t,n),{fullPath:r+(a&&"?")+a+i,path:r,query:o,hash:vm(i)}}function cGe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kz(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dGe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&q0(t.matched[r],n.matched[o])&&Oie(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oie(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fGe(e[n],t[n]))return!1;return!0}function fGe(e,t){return Is(e)?qz(e,t):Is(t)?qz(t,e):e===t}function qz(e,t){return Is(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function pGe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,i,s;for(i=0;i<r.length;i++)if(s=r[i],s!==".")if(s==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}const $u={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var gm;(function(e){e.pop="pop",e.push="push"})(gm||(gm={}));var f1;(function(e){e.back="back",e.forward="forward",e.unknown=""})(f1||(f1={}));function hGe(e){if(!e)if(zh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uGe(e)}const vGe=/^[^#]+#/;function gGe(e,t){return e.replace(vGe,"#")+t}function mGe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const o5=()=>({left:window.scrollX,top:window.scrollY});function yGe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=mGe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Gz(e,t){return(history.state?history.state.position-t:-1)+e}const AA=new Map;function bGe(e,t){AA.set(e,t)}function _Ge(e){const t=AA.get(e);return AA.delete(e),t}let wGe=()=>location.protocol+"//"+location.host;function Tie(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let s=o.includes(e.slice(a))?e.slice(a).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),Kz(l,"")}return Kz(n,e)+r+o}function CGe(e,t,n,r){let o=[],a=[],i=null;const s=({state:f})=>{const p=Tie(e,location),g=n.value,v=t.value;let m=0;if
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&iXe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vj=Symbol("internals");function fg(e){return e&&String(e).trim().toLowerCase()}function I6(e){return e===!1||e==null?e:We.isArray(e)?e.map(I6):String(e)}function lXe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uXe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vC(e,t,n,r,o){if(We.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!We.isString(t)){if(We.isString(r))return t.indexOf(r)!==-1;if(We.isRegExp(r))return r.test(t)}}function cXe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function dXe(e,t){const n=We.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class $a{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(s,l,u){const c=fg(l);if(!c)throw new Error("header name must be a non-empty string");const d=We.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=I6(s))}const i=(s,l)=>We.forEach(s,(u,c)=>a(u,c,l));if(We.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(We.isString(t)&&(t=t.trim())&&!uXe(t))i(sXe(t),n);else if(We.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=fg(t),t){const r=We.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return lXe(o);if(We.isFunction(n))return n.call(this,o,r);if(We.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fg(t),t){const r=We.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=fg(i),i){const s=We.findKey(r,i);s&&(!n||vC(r,r[s],s,n))&&(delete r[s],o=!0)}}return We.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||vC(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return We.forEach(this,(o,a)=>{const i=We.findKey(r,a);if(i){n[i]=I6(o),delete n[a];return}const s=t?cXe(a):String(a).trim();s!==a&&delete n[a],n[s]=I6(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return We.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&We.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[vj]=this[vj]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=fg(i);r[s]||(dXe(o,i),r[s]=!0)}return We.isArray(t)?t.forEach(a):a(t),this}}$a.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);We.reduceDescriptors($a.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});We.freezeMethods($a);function gC(e,t){const n=this||Fy,r=t||n,o=$a.from(r.headers);let a=r.data;return We.forEach(e,function(s){a=s.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Xie(e){return!!(e&&e.__CANCEL__)}function Mv(e,t,n){sn.call(this,e??"canceled",sn.ERR_CANCELED,t,n),this.name="CanceledError"}We.inherits(Mv,sn,{__CANCEL__:!0});function Jie(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sn("Request failed with status code "+n.status,[sn.ERR_BAD_REQUEST,sn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fXe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pXe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];i||(i=u),n[o]=l,r[o]=u;let d=a,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function hXe(e,t){let n=0,r=1e3/t,o,a;const i=(u,c=Date.now())=>{n=c,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?i(u,c):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},r-d)))},()=>o&&i(o)]}const n8=(e,t,n=3)=>{let r=0;const o=pXe(50,250);return hXe(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,l=i-r,u=o(l),c=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-i)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},gj=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mj=e=>(...t)=>We.asap(()=>e(...t)),vXe=ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ea.origin),ea.navigator&&/(msie|trident)/i.test(ea.navigator.userAgent)):()=>!0,gXe=ea.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];We.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),We.isString(r)&&i.push("path="+r),We.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mXe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yXe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zie(e,t){return e&&!mXe(t)?yXe(e,t):t}const yj=e=>e instanceof $a?{...e}:e;function hp(e,t){t=t||{};const n={};function r(u,c,d,f){return We.isPlainObject(u)&&We.isPlainObject(c)?We.merge.call({caseless:f},u,c):We.isPlainObject(c)?We.merge({},c):We.isArray(c)?c.slice():c}function o(u,c,d,f){if(We.isUndefined(c)){if(!We.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function a(u,c){if(!We.isUndefined(c))return r(void 0,c)}function i(u,c){if(We.isUndefined(c)){if(!We.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncodin
`+a.map(wj).join(`
`):" "+wj(a[0]):"as no adapter specified";throw new sn("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:IA};function mC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mv(null,e)}function Cj(e){return mC(e),e.headers=$a.from(e.headers),e.data=gC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nse.getAdapter(e.adapter||Fy.adapter)(e).then(function(r){return mC(e),r.data=gC.call(e,e.transformResponse,r),r.headers=$a.from(r.headers),r},function(r){return Xie(r)||(mC(e),r&&r.response&&(r.response.data=gC.call(e,e.transformResponse,r.response),r.response.headers=$a.from(r.response.headers))),Promise.reject(r)})}const rse="1.7.9",d5={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{d5[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sj={};d5.transitional=function(t,n,r){function o(a,i){return"[Axios v"+rse+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(t===!1)throw new sn(o(i," has been removed"+(n?" in "+n:"")),sn.ERR_DEPRECATED);return n&&!Sj[i]&&(Sj[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};d5.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function PXe(e,t,n){if(typeof e!="object")throw new sn("options must be an object",sn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new sn("option "+a+" must be "+l,sn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new sn("Unknown option "+a,sn.ERR_BAD_OPTION)}}const N6={assertOptions:PXe,validators:d5},Us=N6.validators;class If{constructor(t){this.defaults=t,this.interceptors={request:new hj,response:new hj}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1 week ago
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&N6.assertOptions(r,{silentJSONParsing:Us.transitional(Us.boolean),forcedJSONParsing:Us.transitional(Us.boolean),clarifyTimeoutError:Us.transitional(Us.boolean)},!1),o!=null&&(We.isFunction(o)?n.paramsSerializer={serialize:o}:N6.assertOptions(o,{encode:Us.function,serialize:Us.function},!0)),N6.assertOptions(n,{baseUrl:Us.spelling("baseURL"),withXsrfToken:Us.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&We.merge(a.common,a[n.method]);a&&We.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=$a.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const g=[Cj.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,c=Promise.resolve(n);d<f;)c=c.then(g[d++],g[d++]);return c}f=s.length;let p=n;for(d=0;d<f;){const g=s[d++],v=s[d++];try{p=g(p)}catch(m){v.call(this,m);break}}try{c=Cj.call(this,p)}catch(g){return Promise.reject(g)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=hp(this.defaults,t);const n=Zie(t.baseURL,t.url);return qie(n,t.params,t.paramsSerializer)}}We.forEach(["delete","get","head","options"],function(t){If.prototype[t]=function(n,r){return this.request(hp(r||{},{method:t,url:n,data:(r||{}).data}))}});We.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(hp(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}If.prototype[t]=n(),If.prototype[t+"Form"]=n(!0)});class IB{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,s){r.reason||(r.reason=new Mv(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new IB(function(o){t=o}),cancel:t}}}function MXe(e){return function(n){return e.apply(null,n)}}function BXe(e){return We.isObject(e)&&e.isAxiosError===!0}const NA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:50
3 weeks ago
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Bl,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(g){var v,m;for(v in g)m=g[v],m!==void 0&&g.hasOwnProperty(v)&&(r[v]=m);return this},n.status=null,n.set=function(g){var v=n.isStarted();g=o(g,r.minimum,1),n.status=g===1?null:g;var m=n.render(!v),y=m.querySelector(r.barSelector),b=r.speed,w=r.easing;return m.offsetWidth,s(function(_){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),l(y,i(g,b,w)),g===1?(l(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){l(m,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),_()},b)},b)):setTimeout(_,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var g=function(){setTimeout(function(){n.status&&(n.trickle(),g())},r.trickleSpeed)};return r.trickle&&g(),this},n.done=function(g){return!g&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(g){var v=n.status;return v?(typeof g!="number"&&(g=(1-v)*o(Math.random()*v,.1,.95)),v=o(v+g,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var g=0,v=0;n.promise=function(m){return!m||m.state()==="resolved"?this:(v===0&&n.start(),g++,v++,m.always(function(){v--,v===0?(g=0,n.done()):n.set((g-v)/g)}),this)}}(),n.render=function(g){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=r.template;var m=v.querySelector(r.barSelector),y=g?"-100":a(n.status||0),b=document.querySelector(r.parent),w;return l(m,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(w=v.querySelector(r.spinnerSelector),w&&p(w)),b!=document.body&&c(b,"nprogress-custom-parent"),b.appendChild(v),v},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&p(g)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var g=document.body.style,v="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return v+"Perspective"in g?"translate3d":v+"Transform"in g?"translate":"margin"};function o(g,v,m){return g<v?v:g>m?m:g}function a(g){return(-1+g)*100}function i(g,v,m){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+a(g)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+a(g)+"%,0)"}:y={"margin-left":a(g)+"%"},y.transition="all "+v+"ms "+m,y}var s=function(){var g=[];function v(){var m=g.shift();m&&m(v)}return function(m){g.push(m),g.length==1&&v()}}(),l=function(){var g=["Webkit","O","Moz","ms"],v={};function m(_){return _.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,S){return S.toUpperCase()})}function y(_){var C=document.body.style;if(_ in C)return _;for(var S=g.length,E=_.charAt(0).toUpperCase()+_.slice(1),k;S--;)if(k=g[S]+E,k in C)return k;return _}function b(_){return _=m(_),v[_]||(v[_]=y(_))}function w(_,C,S){C=b(C),_.style[C]=S}return function(_,C){var S=arguments,E,k;if(S.length==2)for(E in C)k=C[E],k!==void 0&&C.hasOwnProperty(E)&&w(_,E,k);else w(_,S[1],S[2])}}();function u(g,v){var m=typeof g=="string"?g:f(g);return m.indexOf(" "+v+" ")>=0}function c(g,v){var m=f(g),y=m+v;u(m,v)||(g.className=y.substring(1))}function d(g,v){var m=f(g),y;u(g,v)&&(y=m.replace(" "+v+" "," "),g.className=y.substring(1,y.length-1))}function f(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function p(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return n})})(hse);var HZe=hse.exports;const bc=es
`),t),`
`);return e},tet=function(e,t){Ri(t)&&"cause"in t&&va(e,"cause",t.cause)},du={},net=ua("iterator"),ret=Array.prototype,xse={};xse[ua("toStringTag")]="z";var GB=String(xse)==="[object z]",oet=ua("toStringTag"),aet=an.Object,iet=Nf(function(){return arguments}())=="Arguments",Hy=GB?Nf:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,a){try{return o[a]}catch{}}(t=aet(e),oet))=="string"?n:iet?Nf(t):(r=Nf(t))=="Object"&&zo(t.callee)?"Arguments":r},set=ua("iterator"),rH=function(e){if(e!=null)return a8(e,set)||a8(e,"@@iterator")||du[Hy(e)]},uet=an.TypeError,oH=function(e,t,n){var r,o;pi(e);try{if(!(r=a8(e,"return"))){if(t==="throw")throw n;return n}r=ci(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return pi(r),n},cet=an.TypeError,V6=function(e,t){this.stopped=e,this.result=t},aH=V6.prototype,det=function(e,t,n){var r,o,a,i,s,l,u,c=n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=UB(t,c),v=function(y){return r&&oH(r,"normal",y),new V6(!0,y)},m=function(y){return d?(pi(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(f)r=e;else{if(!(o=rH(e)))throw cet($A(e)+" is not iterable");if(function(y){return y!==void 0&&(du.Array===y||ret[net]===y)}(o)){for(a=0,i=zy(e);i>a;a++)if((s=m(e[a]))&&ym(aH,s))return s;return new V6(!1)}r=function(y,b){var w=arguments.length<2?rH(y):b;if(HB(w))return pi(ci(w,y));throw uet($A(y)+" is not iterable")}(e,o)}for(l=r.next;!(u=ci(l,r)).done;){try{s=m(u.value)}catch(y){oH(r,"throw",y)}if(typeof s=="object"&&s&&ym(aH,s))return s}return new V6(!1)},fet=an.String,bm=function(e){if(Hy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fet(e)},pet=function(e,t){return e===void 0?arguments.length<2?"":t:bm(e)},het=!Ka(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ss(1,7)),e.stack!==7)}),vet=ua("toStringTag"),c8=an.Error,get=[].push,_m=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ym(EC,this);l8?n=l8(new c8(void 0),o?s8(this):EC):(n=o?this:wu(EC),va(n,vet,"Error")),va(n,"message",pet(t,"")),het&&va(n,"stack",eet(n.stack,1)),tet(n,r);var a=[];return det(e,get,{that:a}),va(n,"errors",a),n};l8?l8(_m,c8):function(e,t){for(var n=UQe(t),r=Od.f,o=f5.f,a=0;a<n.length;a++){var i=n[a];Mn(e,i)||r(e,i,o(t,i))}}(_m,c8);var EC=_m.prototype=wu(c8.prototype,{constructor:Ss(1,_m),message:Ss(1,""),name:Ss(1,"AggregateError")});Zl({global:!0},{AggregateError:_m});var met=vr(Function.toString);zo($c.inspectSource)||($c.inspectSource=function(e){return met(e)});var d8,p1,f8,kse=$c.inspectSource,iH=an.WeakMap,yet=zo(iH)&&/native code/.test(kse(iH)),WA=an.TypeError,bet=an.WeakMap;if(yet||$c.state){var Hd=$c.state||($c.state=new bet),_et=vr(Hd.get),sH=vr(Hd.has),wet=vr(Hd.set);d8=function(e,t){if(sH(Hd,e))throw new WA("Object already initialized");return t.facade=e,wet(Hd,e,t),t},p1=function(e){return _et(Hd,e)||{}},f8=function(e){return sH(Hd,e)}}else{var oh=p5("state");jy[oh]=!0,d8=function(e,t){if(Mn(e,oh))throw new WA("Object already initialized");return t.facade=e,va(e,oh,t),t},p1=function(e){return Mn(e,oh)?e[oh]:{}},f8=function(e){return Mn(e,oh)}}var Tc,lH,uH,Iv={set:d8,get:p1,has:f8,enforce:function(e){return f8(e)?p1(e):d8(e,{})},getterFor:function(e){return function(t){var n;if(!Ri(t)||(n=p1(t)).type!==e)throw WA("Incompatible receiver, "+e+" required");return n}}},Ase=Function.prototype,Cet=Va&&Object.getOwnPropertyDescriptor,xC=Mn(Ase,"name"),Eet={EXISTS:xC,PROPER:xC&&(function(){}).name==="something",CONFIGURABLE:xC&&(!Va||Va&&Cet(Ase,"name").configurable)},p8=function(e,t,n,r){va(e,t,n)},KA=ua("iterator"),Ose=!1;[].keys&&("next"in(uH=[].keys())?(lH=s8(s8(uH)))!==Object.prototype&&(Tc=lH):Ose=!0);var xet=Tc==null||Ka(function(){var e={};return Tc[KA].call(e)!==e});Tc=xet?{}:wu(Tc),zo(Tc[KA])||p8(Tc,KA,function(){return this});var Tse={IteratorPrototype:Tc,BUGGY_SAFARI_ITERATORS:Ose},ket=GB?{}.toString:function(){return"[object "+Hy(this)+"]"},Aet=Od.f,cH=ua("toStringTag"),h8=function(e,t,n,r){if(e){var o=n?e:e.prototype;Mn(o,cH)||Aet(o,cH,{configurable
`)&&e.flags==="s")}),ent=Jt.RegExp,tnt=Do(function(){var e=ent("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),nnt=vp.get,rnt=ZB("native-string-replace",String.prototype.replace),b8=RegExp.prototype.exec,tO=b8,ont=Gn("".charAt),ant=Gn("".indexOf),int=Gn("".replace),RC=Gn("".slice),IC=(BC=/b*/g,No(b8,PH=/a/,"a"),No(b8,BC,"a"),PH.lastIndex!==0||BC.lastIndex!==0),MH=Gtt.BROKEN_CARET,NC=/()??/.exec("")[1]!==void 0;(IC||NC||MH||Qtt||tnt)&&(tO=function(e){var t,n,r,o,a,i,s,l=this,u=nnt(l),c=Vf(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=No(tO,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=MH&&l.sticky,g=No(Wtt,l),v=l.source,m=0,y=c;if(p&&(g=int(g,"y",""),ant(g,"g")===-1&&(g+="g"),y=RC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&ont(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),NC&&(n=new RegExp("^"+v+"$(?!\\s)",g)),IC&&(r=l.lastIndex),o=No(b8,p?n:l,y),p?o?(o.input=RC(o.input,m),o[0]=RC(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:IC&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),NC&&o&&o.length>1&&No(rnt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=qy(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var _8=tO;Ky({target:"RegExp",proto:!0,forced:/./.exec!==_8},{exec:_8});var snt=Ea("species"),BH=RegExp.prototype,lnt=Gn("".charAt),RH=Gn("".charCodeAt),unt=Gn("".slice),IH=function(e){return function(t,n){var r,o,a=Vf(h5(t)),i=sR(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=RH(a,i))<55296||r>56319||i+1===s||(o=RH(a,i+1))<56320||o>57343?e?lnt(a,i):r:e?unt(a,i,i+2):o-56320+(r-55296<<10)+65536}},jse={codeAt:IH(!1),charAt:IH(!0)},cnt=jse.charAt,dnt=function(e,t,n){return t+(n?cnt(e,t).length:1)},fnt=Jt.TypeError,NH=function(e,t){var n=e.exec;if(_o(n)){var r=No(n,e,t);return r!==null&&hi(r),r}if(Lf(e)==="RegExp")return No(_8,e,t);throw fnt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=Ea(e),a=!Do(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Do(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[snt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=Gn(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=Gn(u),v=c.exec;return v===_8||v===BH.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});gp(String.prototype,e,l[0]),gp(BH,o,l[1])}})("match",function(e,t,n){return[function(r){var o=h5(this),a=r==null?void 0:wm(r,e);return a?No(a,r,o):new RegExp(r)[e](Vf(o))},function(r){var o=hi(this),a=Vf(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return NH(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=NH(o,a))!==null;){var d=Vf(l[0]);u[c]=d,d===""&&(o.lastIndex=dnt(a,Nse(o.lastIndex),s)),c++}return c===0?null:u}]}),Ky({global:!0},{globalThis:Jt});var pnt=!Do(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),FH=oR("IE_PROTO"),nO=Jt.Object,hnt=nO.prototype,Cm=pnt?nO.getPrototypeOf:function(e){var t=QB(e);if(za(t,FH))return t[FH];var n=t.constructor;return _o(n)&&t instanceof n?n.prototype:t instanceof nO?hnt:null},vnt=Jt.String,gnt=Jt.TypeError,Y0=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return hi(r),function(a){if(typeof a=="object"||_o(a))return a;throw gnt("Can't set "+vnt(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),mnt=Jt.Array,ynt=Math.max,bnt=Gn("".replace),_nt=Gn("".split),wnt=Gn([].join),rO=String(Error("zxcasd").stack),Hse=/\n\s*at [^:]*:[^\n]*/,Cnt=Hse.test(rO),Snt=/@[^\n]*\n/.test(rO)&&!/zxcasd/.test(rO),Ent=function(e,t){if(typeof e!="string")return e;if(Cnt)for(;t--;)e=bnt(e,Hse,"");else if(Snt)return wnt(function(n,r,o){for(var a,i,s,l,u=v5(n),c=eO(r,u),d=eO(u,u),f=mnt(ynt(d-c,0)),p=0;c<d;c++,p++)a=f,i=p,s=n[c],l=void 0,(l=eR(i))in a?Fv.f(a,l,Vc(0,s)):a[l]=s;return f.length=p,f}(_nt(e,`
`),t),`
`);return e},xnt=function(e,t){il(t)&&"cause"in t&&Ia(e,"cause",t.cause)},LH=Gn(Gn.bind),Use=function(e,t){return XB(e),t===void 0?e:LH?LH(e,t):function(){return e.apply(t,arguments)}},X0={},knt=Ea("iterator"),Ant=Array.prototype,Ont=Ea("iterator"),$H=function(e){if(e!=null)return wm(e,Ont)||wm(e,"@@iterator")||X0[g5(e)]},Tnt=Jt.TypeError,VH=function(e,t,n){var r,o;hi(e);try{if(!(r=wm(e,"return"))){if(t==="throw")throw n;return n}r=No(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return hi(r),n},Dnt=Jt.TypeError,H6=function(e,t){this.stopped=e,this.result=t},zH=H6.prototype,Pnt=function(e,t,n){var r,o,a,i,s,l,u,c=n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Use(t,c),v=function(y){return r&&VH(r,"normal",y),new H6(!0,y)},m=function(y){return d?(hi(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(f)r=e;else{if(!(o=$H(e)))throw Dnt(JA(e)+" is not iterable");if(function(y){return y!==void 0&&(X0.Array===y||Ant[knt]===y)}(o)){for(a=0,i=v5(e);i>a;a++)if((s=m(e[a]))&&v8(zH,s))return s;return new H6(!1)}r=function(y,b){var w=arguments.length<2?$H(y):b;if(XB(w))return hi(No(w,y));throw Tnt(JA(y)+" is not iterable")}(e,o)}for(l=r.next;!(u=No(l,r)).done;){try{s=m(u.value)}catch(y){VH(r,"throw",y)}if(typeof s=="object"&&s&&v8(zH,s))return s}return new H6(!1)},Mnt=function(e,t){return e===void 0?arguments.length<2?"":t:Vf(e)},Bnt=!Do(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Vc(1,7)),e.stack!==7)}),Rnt=Ea("toStringTag"),w8=Jt.Error,Int=[].push,Sm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=v8(FC,this);Y0?n=Y0(new w8(void 0),o?Cm(this):FC):(n=o?this:qy(FC),Ia(n,Rnt,"Error")),Ia(n,"message",Mnt(t,"")),Bnt&&Ia(n,"stack",Ent(n.stack,1)),xnt(n,r);var a=[];return Pnt(e,Int,{that:a}),Ia(n,"errors",a),n};Y0?Y0(Sm,w8):Lse(Sm,w8);var FC=Sm.prototype=qy(w8.prototype,{constructor:Vc(1,Sm),message:Vc(1,""),name:Vc(1,"AggregateError")});Ky({global:!0},{AggregateError:Sm});var oO=Ea("unscopables"),aO=Array.prototype;aO[oO]==null&&Fv.f(aO,oO,{configurable:!0,value:qy(null)});var zf,jH,HH,LC=function(e){aO[oO][e]=!0},iO=Ea("iterator"),Wse=!1;[].keys&&("next"in(HH=[].keys())?(jH=Cm(Cm(HH)))!==Object.prototype&&(zf=jH):Wse=!0);var Nnt=zf==null||Do(function(){var e={};return zf[iO].call(e)!==e});Nnt&&(zf={}),_o(zf[iO])||gp(zf,iO,function(){return this});var dR={IteratorPrototype:zf,BUGGY_SAFARI_ITERATORS:Wse},Fnt=Fv.f,UH=Ea("toStringTag"),WH=function(e,t,n){e&&!za(e=n?e:e.prototype,UH)&&Fnt(e,UH,{configurable:!0,value:t})},Lnt=dR.IteratorPrototype,$nt=function(){return this},Vnt=iR.PROPER,znt=iR.CONFIGURABLE,KH=dR.IteratorPrototype,$C=dR.BUGGY_SAFARI_ITERATORS,mg=Ea("iterator"),jnt=function(){return this},Kse=function(e,t,n,r,o,a,i){(function(m,y,b,w){var _=y+" Iterator";m.prototype=qy(Lnt,{next:Vc(1,b)}),WH(m,_,!1),X0[_]=$nt})(n,t,r);var s,l,u=function(m){if(m===o&&g)return g;if(!$C&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[mg]||f["@@iterator"]||o&&f[o],g=!$C&&p||u(o),v=t=="Array"&&f.entries||p;return v&&(s=Cm(v.call(new e)))!==Object.prototype&&s.next&&(Cm(s)!==KH&&(Y0?Y0(s,KH):_o(s[mg])||gp(s,mg,jnt)),WH(s,c,!0)),Vnt&&o=="values"&&p&&p.name!=="values"&&(znt?Ia(f,"name","values"):(d=!0,g=function(){return No(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},i||Ky({target:t,proto:!0,forced:$C||d},l)),f[mg]!==g&&gp(f,mg,g,{name:o}),X0[t]=g,l},Hnt=vp.set,Unt=vp.getterFor("Array Iterator"),$2=Kse(Array,"Array",function(e,t){Hnt(this,{type:"Array Iterator",target:Nv(e),index:0,kind:t})},function(){var e=Unt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");X0.Arguments=X0.Array,LC("keys"),LC("values"),LC("entries");var Wnt=jse.charAt,Knt=vp.set,qnt=vp.getterFor("String Iterator");Kse(String,"String",function(e){Knt(this,{type:"String It
Sorry, wangEditor V5+ versions do not support IE browser.`),YH(),XH()):global&&(!((VC=global.navigator)===null||VC===void 0)&&VC.userAgent.match("QQBrowser"))&&(YH(),XH());function YH(){typeof globalThis>"u"&&(window.globalThis=window)}function XH(){zet===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var JH,S8=Array.isArray||function(e){return Nf(e)=="Array"},Yse=function(){},Gnt=[],Xse=Bv("Reflect","construct"),fR=/^\s*(?:class|function)\b/,Ynt=vr(fR.exec),Xnt=!fR.exec(Yse),yg=function(e){if(!zo(e))return!1;try{return Xse(Yse,Gnt,e),!0}catch{return!1}},Jnt=!Xse||Ka(function(){var e;return yg(yg.call)||!yg(Object)||!yg(function(){e=!0})||e})?function(e){if(!zo(e))return!1;switch(Hy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xnt||!!Ynt(fR,kse(e))}:yg,Znt=ua("species"),ZH=an.Array,Jse=function(e,t){return new(function(n){var r;return S8(n)&&(r=n.constructor,(Jnt(r)&&(r===ZH||S8(r.prototype))||Ri(r)&&(r=r[Znt])===null)&&(r=void 0)),r===void 0?ZH:r}(e))(t===0?0:t)},Qnt=ua("species"),Zse=ua("isConcatSpreadable"),QH=an.TypeError,ert=o8>=51||!Ka(function(){var e=[];return e[Zse]=!1,e.concat()[0]!==e}),trt=(JH="concat",o8>=51||!Ka(function(){var e=[];return(e.constructor={})[Qnt]=function(){return{foo:1}},e[JH](Boolean).foo!==1})),nrt=function(e){if(!Ri(e))return!1;var t=e[Zse];return t!==void 0?!!t:S8(e)};Zl({target:"Array",proto:!0,forced:!ert||!trt},{concat:function(e){var t,n,r,o,a,i=$y(this),s=Jse(i,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(nrt(a=t===-1?i:arguments[t])){if(l+(o=zy(a))>9007199254740991)throw QH("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in a&&HA(s,l,a[n])}else{if(l>=9007199254740991)throw QH("Maximum allowed index exceeded");HA(s,l++,a)}return s.length=l,s}});var eU=KB.f,tU=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qse={f:function(e){return tU&&Nf(e)=="Window"?function(t){try{return eU(t)}catch{return Sse(tU)}}(e):eU(Nl(e))}},rrt=vr([].slice),pR={f:ua},ort=Od.f,Lr=function(e){var t=ri.Symbol||(ri.Symbol={});Mn(t,e)||ort(t,e,{value:pR.f(e)})},nU=vr([].push),ju=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=$y(l),v=mse(g),m=UB(u,c),y=zy(v),b=0,w=d||Jse,_=t?w(l,y):n||i?w(l,0):void 0;y>b;b++)if((s||b in v)&&(p=m(f=v[b],b,g),e))if(t)_[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:nU(_,f)}else switch(e){case 4:return!1;case 7:nU(_,f)}return a?-1:r||o?o:_}},m5={forEach:ju(0),map:ju(1),filter:ju(2),some:ju(3),every:ju(4),find:ju(5),findIndex:ju(6),filterReject:ju(7)}.forEach,Ma=p5("hidden"),rU=ua("toPrimitive"),art=Iv.set,oU=Iv.getterFor("Symbol"),vs=Object.prototype,Sc=an.Symbol,Dc=Sc&&Sc.prototype,aU=an.TypeError,WC=an.QObject,bg=Bv("JSON","stringify"),ele=f5.f,Ec=Od.f,tle=Qse.f,irt=VB.f,nle=vr([].push),Cu=Fp("symbols"),Gy=Fp("op-symbols"),KC=Fp("string-to-symbol-registry"),qC=Fp("symbol-to-string-registry"),srt=Fp("wks"),GC=!WC||!WC.prototype||!WC.prototype.findChild,sO=Va&&Ka(function(){return wu(Ec({},"a",{get:function(){return Ec(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=ele(vs,t);r&&delete vs[t],Ec(e,t,n),r&&e!==vs&&Ec(vs,t,r)}:Ec,YC=function(e,t){var n=Cu[e]=wu(Dc);return art(n,{type:"Symbol",tag:e,description:t}),Va||(n.description=t),n},E8=function(e,t,n){e===vs&&E8(Gy,t,n),pi(e);var r=Rv(t);return pi(n),Mn(Cu,r)?(n.enumerable?(Mn(e,Ma)&&e[Ma][r]&&(e[Ma][r]=!1),n=wu(n,{enumerable:Ss(0,!1)})):(Mn(e,Ma)||Ec(e,Ma,Ss(1,{})),e[Ma][r]=!0),sO(e,r,n)):Ec(e,r,n)},iU=function(e,t){pi(e);var n=Nl(t),r=qB(n).concat(lO(n));return m5(r,function(o){Va&&!ci(rle,n,o)||E8(e,o,n[o])}),e},rle=function(e){var t=Rv(e),n=ci(irt,this,t);return!(this===vs&&Mn(Cu,t)&&!Mn(Gy,t))&&(!(n||!Mn(this,t)||!Mn(Cu,t)||Mn(this,Ma)&&this[Ma][t])||n)},sU=function(e,t){var n=Nl(e),r=Rv(t);if(n!==vs||!Mn(Cu,r)||Mn(Gy,r)){var o=ele(n,r);return!o||!Mn(Cu,r)||Mn(n,Ma)&&n[Ma][r]||(o.enumerable=!0),o}},lU=function(e){var t=tle(Nl(e)),n=[];return m5(t,function(r){Mn(Cu,r)||Mn(jy,r)||nl
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function uU(e){return Object.prototype.toString.call(e)==="[object Object]"}function Go(e){var t,n;return uU(e)!==!1&&((t=e.constructor)===void 0||uU(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function ds(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mp(e){return!!e&&!!e[vi]}function yp(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===wrt}(e)||Array.isArray(e)||!!e[mU]||!!e.constructor[mU]||hR(e)||vR(e))}function Em(e,t,n){n===void 0&&(n=!1),J0(e)===0?(n?Object.keys:_R)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function J0(e){var t=e[vi];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:hR(e)?2:vR(e)?3:0}function uO(e,t){return J0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ale(e,t,n){var r=J0(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function hR(e){return brt&&e instanceof Map}function vR(e){return _rt&&e instanceof Set}function rf(e){return e.o||e.t}function gR(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Crt(e);delete t[vi];for(var n=_R(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function mR(e,t){return t===void 0&&(t=!1),yR(e)||mp(e)||!yp(e)||(J0(e)>1&&(e.set=e.add=e.clear=e.delete=grt),Object.freeze(e),t&&Em(e,function(n,r){return mR(r,!0)},!0)),e}function grt(){ds(2)}function yR(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fu(e){var t=Srt[e];return t||ds(18,e),t}function cU(){return xm}function XC(e,t){t&&(fu("Patches"),e.u=[],e.s=[],e.v=t)}function x8(e){cO(e),e.p.forEach(mrt),e.p=null}function cO(e){e===xm&&(xm=e.l)}function dU(e){return xm={p:[],l:xm,h:e,m:!0,_:0}}function mrt(e){var t=e[vi];t.i===0||t.i===1?t.j():t.O=!0}function JC(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||fu("ES5").S(t,e,r),r?(n[vi].P&&(x8(t),ds(4)),yp(e)&&(e=k8(t,e),t.l||A8(t,e)),t.u&&fu("Patches").M(n[vi],e,t.u,t.s)):e=k8(t,n,[]),x8(t),t.u&&t.v(t.u,t.s),e!==ile?e:void 0}function k8(e,t,n){if(yR(t))return t;var r=t[vi];if(!r)return Em(t,function(a,i){return fU(e,r,t,a,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return A8(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=gR(r.k):r.o;Em(r.i===3?new Set(o):o,function(a,i){return fU(e,r,o,a,i,n)}),A8(e,o,!1),n&&e.u&&fu("Patches").R(r,n,e.u,e.s)}return r.o}function fU(e,t,n,r,o,a){if(mp(o)){var i=k8(e,o,a&&t&&t.i!==3&&!uO(t.D,r)?a.concat(r):void 0);if(ale(n,r,i),!mp(i))return;e.m=!1}if(yp(o)&&!yR(o)){if(!e.h.F&&e._<1)return;k8(e,o),t&&t.A.l||A8(e,o)}}function A8(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&mR(t,n)}function ZC(e,t){var n=e[vi];return(n?rf(n):e)[t]}function pU(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function dO(e){e.P||(e.P=!0,e.l&&dO(e.l))}function QC(e){e.o||(e.o=gR(e.t))}function fO(e,t,n){var r=hR(t)?fu("MapSet").N(t,n):vR(t)?fu("MapSet").T(t,n):e.g?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:cU(),P:!1,I:!1,D:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,u=U6;i&&(l=[s],u=W6);var c=Proxy.revocable(l,u),d=c.revoke,f=c.proxy;return s.k=f,s.j=d,f}(t,n):fu("ES5").J(t,n);return(n?n.A:cU()).p.push(r),r}function yrt(e){return mp(e)||ds(22,e),function t(n){if(!yp(n))return n;var r,o=n[vi],a=J0(n);if(o){if(!o.P&&(o.i<4||!fu("ES5").K(o)))return o.t;o.I=!0,r=hU(n,a),o.I=!1}else r=hU(n,a);return Em(r,function(i,s){o&&function(l,u){return J0(l)===2?l.get(u):l[u]}(o.t,i)===s||ale(r,i,t(s))}),a===3?new Set(r):r}(e)}function hU(e,t)
Could not completely normalize the editor after `.concat(u,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var d=r(e).pop();if(ft.has(e,d)){var f=ne.node(e,d);e.normalizeNode(f)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ne.path(e,t,n),o=Pe.parent(r);return ne.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(Pe.isPath(t)){if(o==="start"){var[,a]=ft.first(e,t);t=a}else if(o==="end"){var[,i]=ft.last(e,t);t=i}}return He.isRange(t)&&(t=o==="start"?He.start(t):o==="end"?He.end(t):Pe.common(t.anchor.path,t.focus.path)),on.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>ft.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ne.pathRefs(e).delete(o),o.current=null,a}};return ne.pathRefs(e).add(o),o},pathRefs(e){var t=wU.get(e);return t||(t=new Set,wU.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Pe.isPath(t)){var o;if(r==="end"){var[,a]=ft.last(e,t);o=a}else{var[,i]=ft.first(e,t);o=i}var s=ft.get(e,o);if(!bt.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?s.text.length:0}}if(He.isRange(t)){var[l,u]=He.edges(t);return r==="start"?l:u}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ne.pointRefs(e).delete(o),o.current=null,a}};return ne.pointRefs(e).add(o),o},pointRefs(e){var t=CU.get(e);return t||(t=new Set,CU.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:a=!1}=t;if(n){var i=ne.range(e,n),[s,l]=He.edges(i),u=o?l:s,c=!1,d="",f=0,p=0,g=0;for(var[v,m]of ne.nodes(e,{at:n,reverse:o,voids:a})){if(Tt.isElement(v)){if(!a&&e.isVoid(v)){yield ne.start(e,m);continue}if(e.isInline(v))continue;if(ne.hasInlines(e,v)){var y=Pe.isAncestor(m,l.path)?l:ne.end(e,m),b=Pe.isAncestor(m,s.path)?s:ne.start(e,m);d=ne.string(e,{anchor:b,focus:y},{voids:a}),c=!0}}if(bt.isText(v)){var w=Pe.equals(m,u.path);for(w?(p=o?u.offset:v.text.length-u.offset,g=u.offset):(p=v.text.length,g=o?p:0),(w||c||r==="offset")&&(yield{path:m,offset:g},c=!1);;){if(f===0){if(d==="")break;f=_(d,r,o),d=hO(d,f,o)[1]}if(g=o?g-f:g+f,(p-=f)<0){f=-p;break}f=0,yield{path:m,offset:g}}}}}function _(C,S,E){return S==="character"?pO(C,E):S==="word"?function(k){for(var A=arguments.length>1&&arguments[1]!==void 0&&arguments[1],D=0,B=!1;k.length>0;){var M=pO(k,A),[K,X]=hO(k,M,A);if(Drt(K,X,A))B=!0,D+=M;else{if(B)break;D+=M}k=X}return D}(C,E):S==="line"||S==="block"?C.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:a=e.selection}=t;if(a){var i=ne.before(e,a,{voids:r});if(i){var[,s]=ne.first(e,[]),l=[i.path,s];if(Pe.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(Pe.isPath(a)){var[u]=ne.parent(e,a);o=d=>u.children.includes(d)}else o=()=>!0;var[c]=ne.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>He.isRange(t)&&!n?t:{anchor:ne.start(e,t),focus:ne.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o;return ne.rangeRefs(e).delete(o),o.current=null,a}};return ne.rangeRefs(e).add(o),o},rangeRefs(e){var t=SU.get(e);return t||(t=new Set,SU.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){_U.set(e,t)},start:(e,t)=>ne.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=ne.range(e,t),[a,i]=He.edges(o),s="";for(var[l,u]of ne.nodes(e,{at:o,match:bt.isText,voids:r})){var c=l.text;Pe.equals(u,i.path)&&(c=c.slice(0,i.offset)),Pe.equals(u,a.path)&&(c=c.slice(a.offset)),s+=c}return s},unhangRange(e,t){var n=argum
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function pW(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,"$$$$")),r=bit(r,new RegExp(`%\\{${o}\\}`,"g"),a)}return r}var Kle=(lh=yit("apply"),class{constructor(e){Object.defineProperty(this,lh,{value:_it}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(fW(this,lh)[lh],this):fW(this,lh)[lh](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return pW(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return pW(n,t)}});function _it(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var qle=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,a,i,s,l){var u=function(c){for(var d=t[c]?t[c]:[],f=c.indexOf(":"),p=f===-1?[c]:[c.substring(0,f),c.substring(f+1)],g=Object.keys(t),v=0,m=g.length;v<m;v++){var y=g[v];if(y==="*"&&(d=d.concat(t[y])),p.length===2&&p[0]===y){d=d.concat(t[y]);break}}return d}(n);u.length&&function(c,d,f){for(var p=0,g=d.length;p<g&&d[p];p++)d[p].event=c,d[p].apply(d[p],f)}(n,u,[r,o,a,i,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.off=function(n,r){var o=[];if(n&&r)for(var a=this._fns[n],i=0,s=a?a.length:0;i<s;i++)a[i]!==r&&o.push(a[i]);o.length?this._fns[n]=o:delete this._fns[n]},e},wit={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:Cit}=wit,hW=e=>crypto.getRandomValues(new Uint8Array(e)),vW=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let a="";for(;;){let i=n(o),s=o;for(;s--;)if(a+=e[i[s]&r]||"",a.length===t)return a}}};var Sit={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>vW(e,t,hW),customRandom:vW,urlAlphabet:Cit,random:hW},cS=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Gle(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Gle.prototype.match=function(e){var t,n,r=!0,o=this.parts,a=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<a;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var i in r={},e)this.match(i)&&(r[i]=e[i]);return r};var Eit=/[\/\+\.]/,xit=function(e,t){function n(r){var o=function(a,i,s){var l=new Gle(a,s||/[\/\.]/);return i!==void 0?l.match(i):l}(r,e,Eit);return o&&o.length>=2}return t?n(t.split(";")[0]):n},kit=0;function Ait(e){return"__private_"+kit+++"_"+e}var dS=Ait("publish");class Yle{constructor(){Object.defineProperty(this,dS,{value:Oit}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(o,a){if(!Object.prototype.hasOwnProperty.call(o,a))throw new TypeError("attempted to use private field on non-instance");return o}(this,dS)[dS](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function Oit(){for(var e=arguments.length,t=
id: ${r[a].id}
type: ${r[a].type}`)}),r.length>0&&Bt(this,kg)[kg](),o.length>0){let a=`Multiple errors occurred while adding files:
`;if(o.forEach(i=>{a+=`
* ${i.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:a},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,a);{const i=new Error(a);throw i.errors=o,i}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),a={...r},i={...o},s=Object.create(null);function l(d){return s[d]===void 0}t.forEach(d=>{r[d]&&(s[d]=r[d],delete a[d])}),Object.keys(i).forEach(d=>{const f=o[d].fileIDs.filter(l);f.length!==0?i[d]={...o[d],fileIDs:f}:delete i[d]});const u={currentUploads:i,files:a};Object.keys(a).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(d=>{this.emit("file-removed",s[d],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const a={...t[o],isPaused:!1,error:null};t[o]=a}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Bt(this,Kl)[Kl](n,{forceAllowNewUpload:!0});return Bt(this,ql)[ql](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=Bt(this,Kl)[Kl]([t],{forceAllowNewUpload:!0});return Bt(this,ql)[ql](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(l=>l.progress.bytesTotal!=null),r=t.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=100*t.length,u=r.reduce((d,f)=>d+f.progress.percentage,0),c=Math.round(u/l*100);return void this.setState({totalProgress:c})}let o=n.reduce((l,u)=>l+u.progress.bytesTotal,0);const a=o/n.length;o+=a*r.length;let i=0;n.forEach(l=>{i+=l.progress.bytesUploaded}),r.forEach(l=>{i+=a*(l.progress.percentage||0)/100});let s=o===0?0:Math.round(i/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}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(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was impo
1 week ago
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(i)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Bt(this,Io)[Io]?Bt(this,Io)[Io][r.type].push(r):Bt(this,Io)[Io][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Bt(this,Io)[Io])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[Zle](t){return Bt(this,Io)[Io][t]}iteratePlugins(t){Object.values(Bt(this,Io)[Io]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Bt(this,Io)[Io][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Bt(this,Sg)[Sg](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Bt(this,cs)[cs]),window.removeEventListener("offline",Bt(this,cs)[cs]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Bt(this,ql)[ql](t):(Bt(this,Sf)[Sf](t),Promise.reject(new Error("Nonexistent upload")))}[Qle](){return Bt(this,Kl)[Kl](...arguments)}addResultData(t,n){if(!Bt(this,gS)[gS](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Bt(this,Io)[Io].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{Bt(this,pS)[pS](n),Bt(this,hS)[hS](n)}).catch(o=>{Bt(this,po)[po](o)}).then(()=>{const{currentUploads:o}=this.getState(),a=Object.values(o).flatMap(l=>l.fileIDs),i=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);u.progress.uploadStarted||a.indexOf(l)!==-1||i.push(u.id)});const s=Bt(this,Kl)[Kl](i);return Bt(this,ql)[ql](s)}).catch(o=>{Bt(this,po)[po](o,{showInformer:!1})}))}}function Nit(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:a,allowedFileTypes:i}=this.opts.restrictions;if(a&&t.length+1>a)throw new rl(`${this.i18n("youCanOnlyUploadX",{smart_count:a})}`);if(i&&!i.some(s=>s.indexOf("/")>-1?!!e.type&&xit(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=i.join(", ");throw new rl(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach(l=>{s+=l.size}),s>o)throw new rl(this.i18n("exceedsSize",{size:cS(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new rl(this.i18n("exceedsSize",{size:cS(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new rl(this.i18n("inferiorSize",{size:cS(r)}))}function Fit(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new rl(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Lit(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===""){const i=new rl(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(i),o.push(t[a]),Bt(this,po)[po](i,{file:e,showInforme
3 weeks ago
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
1 week ago
*/function XW(e){return Object.prototype.toString.call(e)==="[object Object]"}Er({target:"Object",stat:!0,forced:Blt},{keys:function(e){return g0(Td(e))}});var Rlt={isHistory(e){return XW(t=e)!==!1&&((n=t.constructor)===void 0||XW(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Pc.isOperationList(e.redos[0]))&&(e.undos.length===0||Pc.isOperationList(e.undos[0]));var t,n,r}},TS=new WeakMap,DS=new WeakMap,Zh={isHistoryEditor:e=>Rlt.isHistory(e.history)&&ne.isEditor(e),isMerging:e=>DS.get(e),isSaving:e=>TS.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Zh.isMerging(e);DS.set(e,!1),t(),DS.set(e,n)},withoutSaving(e,t){var n=Zh.isSaving(e);TS.set(e,!1),t(),TS.set(e,n)}},Ilt=ut.String,er=function(e){if(T5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ilt(e)},YR=function(){var e=Ur(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Nlt=Vv.PROPER,LO=RegExp.prototype,bue=LO.toString,Flt=Rt(YR),Llt=$n(function(){return bue.call({source:"a",flags:"b"})!="/a/b"}),$lt=Nlt&&bue.name!="toString";(Llt||$lt)&&ja(RegExp.prototype,"toString",function(){var e=Ur(this),t=er(e.source),n=e.flags;return"/"+t+"/"+er(n===void 0&&_p(LO,e)&&!("flags"in LO)?Flt(e):n)},{unsafe:!0});var _b,Vlt=Eo?Object.defineProperties:function(e,t){Ur(e);for(var n,r=Dd(t),o=g0(t),a=o.length,i=0;a>i;)js.f(e,n=o[i++],r[n]);return e},$O=jp("document","documentElement"),_ue=qR("IE_PROTO"),PS=function(){},wue=function(e){return"<script>"+e+"<\/script>"},JW=function(e){e.write(wue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Y6=function(){try{_b=new ActiveXObject("htmlfile")}catch{}var e,t;Y6=typeof document<"u"?document.domain&&_b?JW(_b):((t=Tm("iframe")).style.display="none",$O.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(wue("document.F=Object")),e.close(),e.F):JW(_b);for(var n=F8.length;n--;)delete Y6.prototype[F8[n]];return Y6()};O5[_ue]=!0;var M5=Object.create||function(e,t){var n;return e!==null?(PS.prototype=Ur(e),n=new PS,PS.prototype=null,n[_ue]=e):n=Y6(),t===void 0?n:Vlt(n,t)},VO=kr("unscopables"),zO=Array.prototype;zO[VO]==null&&js.f(zO,VO,{configurable:!0,value:M5(null)});var y1=function(e){zO[VO][e]=!0},zlt=gue.includes;Er({target:"Array",proto:!0},{includes:function(e){return zlt(this,e,arguments.length>1?arguments[1]:void 0)}}),y1("includes");var jlt=kr("match"),XR=function(e){var t;return pr(e)&&((t=e[jlt])!==void 0?!!t:xs(e)=="RegExp")},Hlt=ut.TypeError,JR=function(e){if(XR(e))throw Hlt("The method doesn't accept regular expressions");return e},Ult=kr("match"),ZR=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Ult]=!1,"/./"[e](t)}catch{}}return!1},Wlt=Rt("".indexOf);Er({target:"String",proto:!0,forced:!ZR("includes")},{includes:function(e){return!!~Wlt(er(qi(this)),er(JR(e)),arguments.length>1?arguments[1]:void 0)}});var Klt=/"/g,qlt=Rt("".replace);Er({target:"String",proto:!0,forced:$n(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=er(qi(this)),r="<a",(r+=' name="'+qlt(er(t),Klt,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var jO=function(e,t,n){var r,o;Ur(e);try{if(!(r=wp(e,"return"))){if(t==="throw")throw n;return n}r=In(r,e)}catch(a){o=!0,r=a}if(t==="throw")throw n;if(o)throw r;return Ur(r),n},Glt=function(e,t,n,r){try{return r?t(Ur(n)[0],n[1]):t(n)}catch(o){jO(e,"throw",o)}},ev={},Ylt=kr("iterator"),Xlt=Array.prototype,Cue=function(e){return e!==void 0&&(ev.Array===e||Xlt[Ylt]===e)},Mm=function(e,t,n){var r=KR(t);r in e?js.f(e,r,k5(0,n)):e[r]=n},Jlt=kr("iterator"),QR=function(e){if(e!=null)return wp(e,Jlt)||wp(e,"@@iterator")||ev[T5(e)]},Zlt=ut.TypeError,Sue=function(e,t){var n=arguments.length<2?QR(e):t;if(pd(n))return Ur(In(n,e));throw Zlt(x5(e)+" is not iterable")},ZW=ut.Array,Eue=kr("iterator"),xue=!1;try{var Qlt=0,QW={next:function(){return{done:!!Qlt++}},return:function(){xue=!0}};QW[Eue]=fu
`)&&e.flags==="s")}),Tut=ut.RegExp,aI=$n(function(){var e=Tut("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Dut=aa.get,Put=jR("native-string-replace",String.prototype.replace),V8=RegExp.prototype.exec,KO=V8,Mut=Rt("".charAt),But=Rt("".indexOf),Rut=Rt("".replace),BS=Rt("".slice),RS=function(){var e=/a/,t=/b*/g;return In(V8,e,"a"),In(V8,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),lK=R5.BROKEN_CARET,IS=/()??/.exec("")[1]!==void 0;(RS||IS||lK||oI||aI)&&(KO=function(e){var t,n,r,o,a,i,s,l=this,u=Dut(l),c=er(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=In(KO,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=lK&&l.sticky,g=In(YR,l),v=l.source,m=0,y=c;if(p&&(g=Rut(g,"y",""),But(g,"g")===-1&&(g+="g"),y=BS(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Mut(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),IS&&(n=new RegExp("^"+v+"$(?!\\s)",g)),RS&&(r=l.lastIndex),o=In(V8,p?n:l,y),p?o?(o.input=BS(o.input,m),o[0]=BS(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:RS&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),IS&&o&&o.length>1&&In(Put,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=M5(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Bm=KO;Er({target:"RegExp",proto:!0,forced:/./.exec!==Bm},{exec:Bm});var iI=Function.prototype,uK=iI.apply,Iut=iI.bind,cK=iI.call,sI=typeof Reflect=="object"&&Reflect.apply||(Iut?cK.bind(uK):function(){return cK.apply(uK,arguments)}),Nut=kr("species"),NS=RegExp.prototype,lI=function(e,t,n,r){var o=kr(e),a=!$n(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!$n(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Nut]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=Rt(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=Rt(u),v=c.exec;return v===Bm||v===NS.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});ja(String.prototype,e,l[0]),ja(NS,o,l[1])}r&&Es(NS[o],"sham",!0)},Fut=kue.charAt,uI=function(e,t,n){return t+(n?Fut(e,t).length:1)},Lut=Math.floor,FS=Rt("".charAt),$ut=Rt("".replace),LS=Rt("".slice),Vut=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zut=/\$([$&'`]|\d{1,2})/g,jut=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=zut;return o!==void 0&&(o=Td(o),l=Vut),$ut(a,l,function(u,c){var d;switch(FS(c,0)){case"$":return"$";case"&":return e;case"`":return LS(t,0,n);case"'":return LS(t,i);case"<":d=o[LS(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=Lut(f/10);return p===0?u:p<=s?r[p-1]===void 0?FS(c,1):r[p-1]+FS(c,1):u}d=r[f-1]}return d===void 0?"":d})},Hut=ut.TypeError,Rm=function(e,t){var n=e.exec;if(Yn(n)){var r=In(n,e,t);return r!==null&&Ur(r),r}if(xs(e)==="RegExp")return In(Bm,e,t);throw Hut("RegExp#exec called on incompatible receiver")},qO=kr("replace"),Uut=Math.max,Wut=Math.min,Kut=Rt([].concat),$S=Rt([].push),dK=Rt("".indexOf),fK=Rt("".slice),qut="a".replace(/./,"$0")==="$0",pK=!!/./[qO]&&/./[qO]("a","$0")==="";lI("replace",function(e,t,n){var r=pK?"$":"$0";return[function(o,a){var i=qi(this),s=o==null?void 0:wp(o,qO);return s?In(s,o,i,a):In(t,er(i),o,a)},function(o,a){var i=Ur(this),s=er(o);if(typeof a=="string"&&dK(a,r)===-1&&dK(a,"$<")===-1){var l=n(t,i,s,a);if(l.done)return l.value}var u=Yn(a);u||(a=er(a));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Rm(i,s);if(p===null||($S(f,p),!c))break;er(p[0])===""&&(i.lastIndex=uI(s,zv(i.lastIndex),d))}for(var g,v="",m=0,y=0;y<f.length;y++){for(var b=er((p=f[y])[0]),w=Uut(Wut(t4(p.index),s.length),0),_=[],C=1;C<p.length;C++)$S(_,(g=p[C])===void 0?g:String(g));var S=p.groups;if(u){var E=Kut([b],_,w,s);S!==void 0&&$S(E,S);var k=er(sI(a,void 0,E))}else k=jut(b,s,w,_,S,a);w>=m&&(v+=fK(s,m,w)+k,m=w+b.length)}return v+fK(s,m)}]},!!$n(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!qut||pK);/*! *****************************************************************************
3 weeks ago
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
1 week ago
***************************************************************************** */var GO=function(e,t){return GO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},GO(e,t)};function Hv(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}GO(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Di=function(){return Di=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Di.apply(this,arguments)};function Pi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function YO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Gut=0,hK=function(){this.id=""+Gut++},Yut=aa.set,Xut=aa.getterFor("Array Iterator"),j2=nI(Array,"Array",function(e,t){Yut(this,{type:"Array Iterator",target:Dd(e),index:0,kind:t})},function(){var e=Xut(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");ev.Arguments=ev.Array,y1("keys"),y1("values"),y1("entries");var nv=function(e,t,n){for(var r in t)ja(e,r,t[r],n);return e},Jut=ut.Array,Zut=Math.max,XO=function(e,t,n){for(var r=Hp(e),o=Q0(t,r),a=Q0(n===void 0?r:n,r),i=Jut(Zut(a-o,0)),s=0;o<a;o++,s++)Mm(i,s,e[o]);return i.length=s,i},vK=Dm.f,gK=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qut={f:function(e){return gK&&xs(e)=="Window"?function(t){try{return vK(t)}catch{return XO(gK)}}(e):vK(Dd(e))}},mK=$n(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Cb=Object.isExtensible,Ef=$n(function(){Cb(1)})||mK?function(e){return!!pr(e)&&(!mK||xs(e)!="ArrayBuffer")&&(!Cb||Cb(e))}:Cb,ect=!$n(function(){return Object.isExtensible(Object.preventExtensions({}))}),I5=e4(function(e){var t=js.f,n=!1,r=HR("meta"),o=0,a=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},i=e.exports={enable:function(){i.enable=function(){},n=!0;var s=Dm.f,l=Rt([].splice),u={};u[r]=1,s(u).length&&(Dm.f=function(c){for(var d=s(c),f=0,p=d.length;f<p;f++)if(d[f]===r){l(d,f,1);break}return d},Er({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qut.f}))},fastKey:function(s,l){if(!pr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!zr(s,r)){if(!Ef(s))return"F";if(!l)return"E";a(s)}return s[r].objectID},getWeakData:function(s,l){if(!zr(s,r)){if(!Ef(s))return!0;if(!l)return!1;a(s)}return s[r].weakData},onFreeze:function(s){return ect&&n&&Ef(s)&&!zr(s,r)&&a(s),s}};O5[r]=!0}),tct=ut.TypeError,X6=function(e,t){this.stopped=e,this.result=t},yK=X6.prototype,Im=function(e,t,n){var r,o,a,i,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Cp(t,c),v=function(y){return r&&jO(r,"normal",y),new X6(!0,y)},m=function(y){return d?(Ur(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(f)r=e;else{if(!(o=QR(e)))throw tct(x5(e)+" is not iterable");if(Cue(o)){for(a=0,i=Hp(e);i>a;a++)if((s=m(e[a]))&&_p(yK,s))return s;return new X6(!1)}r=Sue(e,o)}for(l=r.next;!(u=In(l,r)).done;){try{s=m(u.value)}catch(y){jO(r,"throw",y)}if(typeof s=="object"&&s&&_p(yK,s))return s}return new X6(!1)},nct=ut.TypeError,N5=function(e,t){if(_p(t,e))return e;th
3 weeks ago
`)}return o};function Lue(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],a=o.nodeType;a==3?t(o,e):a!=1&&a!=9&&a!=11||Lue(o,t)}}function DK(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==ol.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Ko=ol||(ol={}))[Ko.ELEMENT_NODE=1]="ELEMENT_NODE",Ko[Ko.TEXT_NODE=3]="TEXT_NODE",Ko[Ko.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Ko[Ko.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Ko[Ko.COMMENT_NODE=8]="COMMENT_NODE",Ko[Ko.DOCUMENT_NODE=9]="DOCUMENT_NODE",Ko[Ko.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Ko[Ko.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var rT=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),b1=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Fg=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),vct=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),gct=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),oT=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Lg=!gct&&!vct&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",me={getWindow:function(e){var t=Iue.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Z6.get(t);return n||(n=new hK,Z6.set(t,n)),n},setNewKey:function(e){var t=new hK;Z6.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=rv.get(r);if(o==null){if(ne.isEditor(r))return n;break}var a=Nm.get(r);if(a==null)break;n.unshift(a),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=me.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return rv.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=me.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[me.findPath(e,t)[0]];return ft.get(e,n)},toDOMNode:function(e,t){var n;if(ne.isEditor(t))n=fI.get(e);else{var r=me.findKey(e,t);n=tT.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,a=o!==void 0&&o,i=me.toDOMNode(e,e);try{r=ls(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===i&&(!a||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=He.isBackward(t),a=me.toDOMPoint(e,n),i=He.isCollapsed(t)?a:me.toDOMPoint(e,r),s=me.getWindow(e).document.createRange(),l=Tn(o?i:a,2),u=l[0],c=l[1],d=Tn(o?a:i,2),f=d[0],p=d[1],g=!!(ls(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),v=!!(ls(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,g?1:c),s.setEnd(f,v?1:p),s},toDOMPoint:function(e,t){var n,r,o,a=Tn(ne.node(e,t.path),1)[0],i=me.toDOMNode(e,a);ne.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Pi(s),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,g=d.getAttribute("data-slate-length"),v=l+(g==null?p:parseInt(g,10));if(t.offset<=v){o=[f,Math.min(p,Math.max(0,t.offset-l))];break}l=v}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=ls(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?j8.get(n):null;if(!r)throw new Error("Cannot resolv
`)))&&d--}if(!c){if(a)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=me.toSlateNode(e,c);return{path:me.findPath(e,y),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return ne.hasPath(e,n.path)&&ne.hasPath(e,r.path)},getNodeType:function(e){return Tt.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return ft.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=ne.nodes(e,{universal:!0});try{for(var a=Pi(o),i=a.next();!i.done;i=a.next()){var s=Tn(i.value,1)[0];Tt.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Tn(ne.nodes(e,{match:function(a){return n.checkNodeType(a,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=Tn(ne.nodes(e,{match:function(r){return bt.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Tn(ne.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&Tn(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(ne.isEnd(e,n.anchor,t)||ne.isEnd(e,n.focus,t))},getTextarea:function(e){var t=JO.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return F5.get(e)||null},getHoverbar:function(e){return z8.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,a=me.getTextarea(e).$textArea,i=a==null?void 0:a[0].childNodes;if(i)try{for(var s=Pi(Array.from(i)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=ne.nodes(e,{match:function(v){return!(!Tt.isElement(v)||e.isInline(v))},universal:!0});try{for(var d=Pi(c),f=d.next();!f.done;f=d.next()){var p=f.value;if(p!=null){var g=p[0];Lue(me.toDOMNode(e,g),function(v,m){var y=be(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(v)})}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=ne.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var a=Pi(r),i=a.next();!i.done;i=a.next())i.value,o++}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||He.isExpanded(t))return!1;var n=me.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=ne.node(e,t);if(n==null)return!1;var r=Tn(n,1)[0].children;return r.length===1&&r[0].text===""}},mct=1,$ue={},Fm={},yct=jv.filter,bct=B5("filter");Er({target:"Array",proto:!0,forced:!bct},{filter:function(e){return yct(this,e,arguments.length>1?arguments[1]:void 0)}});var aT=`
1 week ago
\v\f\r                 \u2028\u2029\uFEFF`,PK=Rt("".replace),U8="["+aT+"]",_ct=RegExp("^"+U8+U8+"*"),wct=RegExp(U8+U8+"*$"),KS=function(e){return function(t){var n=er(qi(t));return 1&e&&(n=PK(n,_ct,"")),2&e&&(n=PK(n,wct,"")),n}},Cct={start:KS(1),end:KS(2),trim:KS(3)},Sct=Vv.PROPER,Ect=Cct.trim;Er({target:"String",proto:!0,forced:function(e){return $n(function(){return!!aT[e]()||"​…᠎"[e]()!=="​…᠎"||Sct&&aT[e].name!==e})}("trim")},{trim:function(){return Ect(this)}});var iT=[],Vue={};function xct(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var Lm,dh,MK,qS,W8=ut.Promise,BK=kr("species"),hI=function(e){var t=jp(e),n=js.f;Eo&&t&&!t[BK]&&n(t,BK,{configurable:!0,get:function(){return this}})},kct=ut.TypeError,Act=kr("species"),zue=function(e,t){var n,r=Ur(e).constructor;return r===void 0||(n=Ur(r)[Act])==null?t:function(o){if(P5(o))return o;throw kct(x5(o)+" is not a constructor")}(n)},jue=Rt([].slice),Hue=/(?:ipad|iphone|ipod).*applewebkit/i.test(v0),Hc=xs(ut.process)=="process",sT=ut.setImmediate,lT=ut.clearImmediate,Oct=ut.process,GS=ut.Dispatch,Tct=ut.Function,RK=ut.MessageChannel,Dct=ut.String,YS=0,_1={};try{Lm=ut.location}catch{}var vI=function(e){if(zr(_1,e)){var t=_1[e];delete _1[e],t()}},XS=function(e){return function(){vI(e)}},IK=function(e){vI(e.data)},NK=function(e){ut.postMessage(Dct(e),Lm.protocol+"//"+Lm.host)};sT&&lT||(sT=function(e){var t=jue(arguments,1);return _1[++YS]=function(){sI(Yn(e)?e:Tct(e),void 0,t)},dh(YS),YS},lT=function(e){delete _1[e]},Hc?dh=function(e){Oct.nextTick(XS(e))}:GS&&GS.now?dh=function(e){GS.now(XS(e))}:RK&&!Hue?(qS=(MK=new RK).port2,MK.port1.onmessage=IK,dh=Cp(qS.postMessage,qS)):ut.addEventListener&&Yn(ut.postMessage)&&!ut.importScripts&&Lm&&Lm.protocol!=="file:"&&!$n(NK)?(dh=NK,ut.addEventListener("message",IK,!1)):dh="onreadystatechange"in Tm("script")?function(e){$O.appendChild(Tm("script")).onreadystatechange=function(){$O.removeChild(this),vI(e)}}:function(e){setTimeout(XS(e),0)});var $g,hf,w1,Hh,JS,ZS,QS,FK,Uue={set:sT,clear:lT},Pct=/ipad|iphone|ipod/i.test(v0)&&ut.Pebble!==void 0,Mct=/web0s(?!.*chrome)/i.test(v0),Bct=n4.f,eE=Uue.set,LK=ut.MutationObserver||ut.WebKitMutationObserver,$K=ut.document,VK=ut.process,Ab=ut.Promise,zK=Bct(ut,"queueMicrotask"),Wue=zK&&zK.value;Wue||($g=function(){var e,t;for(Hc&&(e=VK.domain)&&e.exit();hf;){t=hf.fn,hf=hf.next;try{t()}catch(n){throw hf?Hh():w1=void 0,n}}w1=void 0,e&&e.enter()},Hue||Hc||Mct||!LK||!$K?!Pct&&Ab&&Ab.resolve?((QS=Ab.resolve(void 0)).constructor=Ab,FK=Cp(QS.then,QS),Hh=function(){FK($g)}):Hc?Hh=function(){VK.nextTick($g)}:(eE=Cp(eE,ut),Hh=function(){eE($g)}):(JS=!0,ZS=$K.createTextNode(""),new LK($g).observe(ZS,{characterData:!0}),Hh=function(){ZS.data=JS=!JS}));var tE,jK,Kue,HK,que=Wue||function(e){var t={fn:e,next:void 0};w1&&(w1.next=t),hf||(hf=t,Hh()),w1=t},Rct=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=pd(t),this.reject=pd(n)},gI={f:function(e){return new Rct(e)}},uT=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Ict=typeof window=="object",Gue=Uue.set,Nct=kr("species"),el="Promise",UK=aa.getterFor(el),Fct=aa.set,Lct=aa.getterFor(el),af=W8&&W8.prototype,sl=W8,Vg=af,Yue=ut.TypeError,cT=ut.document,mI=ut.process,m0=gI.f,$ct=m0,Vct=!!(cT&&cT.createEvent&&ut.dispatchEvent),Xue=Yn(ut.PromiseRejectionEvent),Jue=!1,C1=Pm(el,function(){var e=A5(sl),t=e!==String(sl);if(!t&&Om===66)return!0;if(Om>=51&&/native code/.test(e))return!1;var n=new sl(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Nct]=r,!(Jue=n.then(function(){})instanceof r)||!t&&Ict&&!Xue}),zct=C1||!eI(function(e){sl.all(e).catch(function(){})}),Zue=function(e){var t;return!(!pr(e)||!Yn(t=e.then))&&t},yI=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;que(function(){for(var r=e.value,o=e.state==1,a=0;n.length>a;){var i,s,l,u=n[a++],c=o?u.ok:u.fail,d=u.resolve,f=u.reject,p=u.domain;try{c?(o||(e.rejection===2&&Hct(e),e.
3 weeks ago
`)>=0)return;c&&(c=ice(c),ZK(s,c)||s.push({text:c}))}}else{if(u.nodeName==="BR")return void(ZK(s,`
`)||s.push({text:`
`}));var d=_I(be(u),i);Array.isArray(d)?d.forEach(function(f){return s.push(f)}):s.push(d)}}),s)}(e,t),r=function(a){for(var i in K8)if(a[0].matches(i))return K8[i];return idt}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(a){ne.isVoid(t,a)||(n.length===0&&(a.children=[{text:e.text().replace(/\s+/gm," ")}]),bI.forEach(function(i){a=i(e[0],a,t)}))}),o}function oE(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=e[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=ice(n)};return bI.forEach(function(o){r=o(e[0],r,t)}),r}function _I(e,t){oce.forEach(function(r){var o=r.selector,a=r.preParseHtml;e[0].matches(o)&&(e=be(a(e[0])))});var n=DK(e);return n==="span"?e.attr("data-w-e-type")?rE(e,t):oE(e,t):n==="code"?DK(e.parent())==="pre"?rE(e,t):oE(e,t):rce.includes(n)?oE(e,t):rE(e,t)}function sce(e,t,n){var r=be(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function QK(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=be("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var a=_I(be(o),e);Array.isArray(a)?a.forEach(function(i){return n.push(i)}):n.push(a)}),n}var sdt=js.f,eq=I5.fastKey,tq=aa.set,aE=aa.getterFor,ldt={getConstructor:function(e,t,n,r){var o=e(function(u,c){N5(u,a),tq(u,{type:t,index:M5(null),first:void 0,last:void 0,size:0}),Eo||(u.size=0),c!=null&&Im(c,u[r],{that:u,AS_ENTRIES:n})}),a=o.prototype,i=aE(t),s=function(u,c,d){var f,p,g=i(u),v=l(u,c);return v?v.value=d:(g.last=v={index:p=eq(c,!0),key:c,value:d,previous:f=g.last,next:void 0,removed:!1},g.first||(g.first=v),f&&(f.next=v),Eo?g.size++:u.size++,p!=="F"&&(g.index[p]=v)),u},l=function(u,c){var d,f=i(u),p=eq(c);if(p!=="F")return f.index[p];for(d=f.first;d;d=d.next)if(d.key==c)return d};return nv(a,{clear:function(){for(var u=i(this),c=u.index,d=u.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete c[d.index],d=d.next;u.first=u.last=void 0,Eo?u.size=0:this.size=0},delete:function(u){var c=this,d=i(c),f=l(c,u);if(f){var p=f.next,g=f.previous;delete d.index[f.index],f.removed=!0,g&&(g.next=p),p&&(p.previous=g),d.first==f&&(d.first=p),d.last==f&&(d.last=g),Eo?d.size--:c.size--}return!!f},forEach:function(u){for(var c,d=i(this),f=Cp(u,arguments.length>1?arguments[1]:void 0);c=c?c.next:d.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(u){return!!l(this,u)}}),nv(a,n?{get:function(u){var c=l(this,u);return c&&c.value},set:function(u,c){return s(this,u===0?0:u,c)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),Eo&&sdt(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=aE(t),a=aE(r);nI(e,t,function(i,s){tq(this,{type:r,target:i,state:o(i),kind:s,last:void 0})},function(){for(var i=a(this),s=i.kind,l=i.last;l&&l.removed;)l=l.previous;return i.target&&(i.last=l=l?l.next:i.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(i.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),hI(t)}};Due("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ldt);var nq=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function rq(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Be.insertNodes(e,t,{mode:"highest"})}var udt=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var a=Tn(He.edges(o),2),i=a[0],s=a[1],l=ne.void(t,{at:i.path}),u=ne.void(t,{at:s.path});if(!He.isCollapsed(o)||l){var c=me.toDOMRange(t,o),d=c.cloneContents(),f=d.childNodes[0];if(d.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(f=C)}),u){var p=Tn(u,1)[0],g=c.cloneRange(),v=me.toDOMNode(t,p);g.setEndAfter(v),d=g.cloneContents()}if(l&&(f=d.querySelector("[data-slate-spacer]")),Array.from(d.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var S=C.getAttribute("data-slate-zero-width")==="n";C.textContent=S?`
1 week ago
`:""}),Nue(f)){var m=f.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(f),d.appendChild(m),f=m}var y=t.getFragment(),b=JSON.stringify(y),w=window.btoa(encodeURIComponent(b));f.setAttribute("data-slate-fragment",w),r.setData("application/x-slate-fragment",w);var _=d.ownerDocument.createElement("div");return _.appendChild(d),_.setAttribute("hidden","true"),d.ownerDocument.body.appendChild(_),r.setData("text/html",_.innerHTML),r.setData("text/plain",hct(_)),d.ownerDocument.body.removeChild(_),r}}},t.insertData=function(r){var o,a,i=r.getData("application/x-slate-fragment");if(i){var s=decodeURIComponent(window.atob(i)),l=JSON.parse(s);t.insertFragment(l)}else{var u=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(u){var d=u.split(/\r\n|\r|\n/),f=!1;try{for(var p=Pi(d),g=p.next();!g.done;g=p.next()){var v=g.value;f&&Be.splitNodes(t,{always:!0}),n(v),f=!0}}catch(m){o={error:m}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}},t},H2=function(e){return e!=null},cdt={object:!0,function:!0,undefined:!0},ddt=/^\s*class[\s{/}]/,fdt=Function.prototype.toString,oq=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!H2(r)&&hasOwnProperty.call(cdt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!ddt.test(fdt.call(e))},wI=function(e){return e!=null},pdt=Object.keys,hdt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return pdt(wI(e)?Object(e):e)},vdt=function(e){if(!wI(e))throw new TypeError("Cannot use null or undefined");return e},gdt=Math.max,aq=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,a=gdt(arguments.length,2);for(e=Object(vdt(e)),o=function(i){try{e[i]=t[i]}catch(s){n||(n=s)}},r=1;r<a;++r)hdt(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},mdt=Array.prototype.forEach,ydt=Object.create,bdt=function(e,t){var n;for(n in e)t[n]=e[n]},iq=function(e){var t=ydt(null);return mdt.call(arguments,function(n){wI(n)&&bdt(Object(n),t)}),t},iE="razdwatrzy",_dt=String.prototype.indexOf,jg=typeof iE.contains=="function"&&iE.contains("dwa")===!0&&iE.contains("foo")===!1?String.prototype.contains:function(e){return _dt.call(this,e,arguments[1])>-1},Tb=e4(function(e){var t=e.exports=function(n,r){var o,a,i,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],H2(n)?(o=jg.call(n,"c"),a=jg.call(n,"e"),i=jg.call(n,"w")):(o=i=!0,a=!1),l={value:r,configurable:o,enumerable:a,writable:i},s?aq(iq(s),l):l};t.gs=function(n,r,o){var a,i,s,l;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],H2(r)?oq(r)?H2(o)?oq(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,H2(n)?(a=jg.call(n,"c"),i=jg.call(n,"e")):(a=!0,i=!1),l={get:r,set:o,configurable:a,enumerable:i},s?aq(iq(s),l):l}}),sE=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},wdt=e4(function(e,t){var n,r,o,a,i,s,l,u=Function.prototype.apply,c=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(m,y){var b;return sE(y),g.call(this,"__ee__")?b=this.__ee__:(b=v.value=d(null),f(this,"__ee__",v),v.value=null),b[m]?typeof b[m]=="object"?b[m].push(y):b[m]=[b[m],y]:b[m]=y,this},r=function(m,y){var b,w;return sE(y),w=this,n.call(this,m,b=function(){o.call(w,m,b),u.call(y,this,arguments)}),b.__eeOnceListener__=y,this},o=function(m,y){var b,w,_,C;if(sE(y),!g.call(this,"__ee__"))return this;if(!(b=this.__ee__)[m])return this;if(typeof(w=b[m])=="object")for(C=0;_=w[C];++C)_!==y&&_.__eeOnceListener__!==y||(w.length===2?b[m]=w[C?0:1]:w.splice(C,1));else w!==y&&w.__eeOnceListene
3 weeks ago
`:e)}function uE(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Xt("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Xt("br",null):null)}function hT(e,t,n,r){return Nm.set(e,t),rv.set(e,n),Tt.isElement(e)?function(o,a){var i,s=me.findKey(a,o),l=a.isInline(o),u=ne.isVoid(a,o),c=nce(s.id),d={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":l},f=o.type,p=o.children,g=p===void 0?[]:p,v=function(C){return cce[C]||Bdt}(f);i=u?null:g.map(function(C,S){return hT(C,S,o,a)});var m=v(o,i,a);if(u){d["data-slate-void"]=!0;var y=l?"span":"div",b=Tn(ft.texts(o),1),w=Tn(b[0],1)[0],_=Xt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},hT(w,0,o,a));m=Xt(y,{style:{position:"relative"}},m,_),Nm.set(w,0),rv.set(w,o)}return m.data==null&&(m.data={}),Object.assign(m.data,d),u||l||(m=function(C,S){var E=S;return pT.forEach(function(k){E=k(C,S)}),E}(o,m)),Gi(function(){var C=nT(c);C!=null&&(tT.set(s,C),H8.set(o,C),j8.set(C,o))}),m}(e,r):function(o,a,i){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=me.findKey(i,o),l=i.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=me.findPath(i,o),c=l([o,u]),d=bt.decorations(o,c),f=d.map(function(v,m){var y=function(b,w,_,C,S){w===void 0&&(w=!1);var E=b.text,k=me.findPath(S,_),A=Pe.parent(k);if(ne.isEditor(C))throw new Error("Text node "+JSON.stringify(_)+" parent is Editor");return S.isVoid(C)?uE(ft.string(C).length):E!==""||C.children[C.children.length-1]!==_||S.isInline(C)||ne.string(S,A)!==""?E===""?uE():w&&E.slice(-1)===`
`?dq(E,!0):dq(E):uE(0,!0)}(v,m===d.length-1,o,a,i);return y=function(b,w){var _=w;return pT.forEach(function(C){_=C(b,_)}),_}(v,y),Xt("span",{"data-slate-leaf":!0},y)}),p=function(v){return"w-e-text-"+v}(s.id),g=Xt("span",{"data-slate-node":"text",id:p,key:s.id},f);return Gi(function(){var v=nT(p);v!=null&&(tT.set(s,v),H8.set(o,v),j8.set(v,o))}),g}(e,n,r)}function Rdt(e,t){var n,r=e.$scroll,o=function(v){return"w-e-textarea-"+v}(e.id),a=t.getConfig(),i=a.readOnly,s=a.autoFocus,l=function(v,m){return m===void 0&&(m=!1),Z0("div#"+v,{props:{contentEditable:!m}})}(o,i),u=t.children||[];l.children=u.map(function(v,m){var y=hT(v,m,t,t);return uce(y),y});var c=EK.get(e);if(c==null&&(c=!0),c){var d=function(v,m){return be(`<div
id="`+v+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);r.append(d),e.$textArea=d,n=d[0],(p=Eat([kat,Dat,Mat,Aat,Tat,xat]))(n,l),EK.set(e,!1),xK.set(e,p)}else{var f=kK.get(e),p=xK.get(e);if(f==null||p==null)return;n=f.elm,p(f,l)}if(n!=null||(n=nT(o))!=null){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var g=pI(n);g&&Iue.set(t,g)}fI.set(t,n),H8.set(t,n),j8.set(n,t),kK.set(e,l)}}function fq(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function pq(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function cE(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return pq(n.overflowY,t)||pq(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function Pb(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}function hq(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,l=typeof i=="function"?i:function(fe){return fe!==i};if(!fq(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],d=e;fq(d)&&l(d);){if((d=d.parentElement)===u){c.push(d);break}d!=null&&d===document.body&&cE(d)&&!cE(document.documentElement)||d!=null&&cE(d,s)&&c.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,b=m.width,w=m.top,_=m.right,C=m.bottom,S=m.left,E=o==="start"||o==="nearest"?w:o==="end"?C:w+y/2,k=a==="center"?S+b/2:a==="end"?_:S,A=[],D=0;D<c.length;D++){var B=c[D],M=B.getBoundingClientRect(),K=M.height,X=M.width,z=M.top,R=M.right,j=M.bottom,L=M.left;if(r==="if-needed"&&w>=0&&S>=0&&C<=p&&_<=f&&w>=z&&C<=j&&S>=L&&_<=R)return A;var N=getComputedStyle(B),Y=parseInt(N.borderLeftWidth,10),$=parseInt(N.borderTopWidth,10),V=parseInt(N.borderRightWidth,10),U=parseInt(N.borderBottomWidth,10),G=0,Z=0,ee="offsetWidth"in B?B.offsetWidth-B.clientWidth-Y-V:0,q="offsetHeight"in B?B.offsetHeight-B.clientHeight-$-U:0;if(u===B)G=o==="start"?E:o==="end"?E-p:o==="nearest"?Pb(v,v+p,p,$,U,v+E,v+E+y,y):E-p/2,Z=a==="start"?k:a==="center"?k-f/2:a==="end"?k-f:Pb(g,g+f,f,Y,V,g+k,g+k+b,b),G=Math.max(0,G+v),Z=Math.max(0,Z+g);else{G=o==="start"?E-z-$:o==="end"?E-j+U+q:o==="nearest"?Pb(z,j,K,$,U+q,E,E+y,y):E-(z+K/2)+q/2,Z=a==="start"?k-L-Y:a==="center"?k-(L+X/2)+ee/2:a==="end"?k-R+V+ee:Pb(L,R,X,Y,V+ee,k,k+b,b);var te=B.scrollLeft,oe=B.scrollTop;E+=oe-(G=Math.max(0,Math.min(oe+G,B.scrollHeight-K+q))),k+=te-(Z=Math.max(0,Math.min(te+Z,B.scrollWidth-X+ee)))}A.push({el:B,top:G,left:Z})}return A}function vq(e){return e===Object(e)&&Object.keys(e).length!==0}function xi(e,t){return Sp(t)&&me.hasDOMNode(e,t,{editable:!0})}function gq(e,t){if(e.getConfig().readOnly)return!1;var n=Wh(e,t)&&me.toSlateNode(e,t);return ne.isVoid(e,n)}function Wh(e,t){return Sp(t)&&me.hasDOMNode(e,t)}function dce(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),a=me.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var i=a.type!=="None";if(r||i){var s=fI.get(t),l=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(l=!0),i&&l&&r){var u=me.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(u&&He.equals(u,r)){var c=!0;if(He.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,g=void 0;(g=p[f])&&g.matches("table")&&(c=!1),(g=p[f-1])&&g.matches("table")&&(c=!1)}}if(c)return}}if(!r||me.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&me.toDOMRange(t,r);if(v){He.isBackward(r)?a.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):a.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var m=v.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;
`+r:n;e.attr("data-tooltip",i),e.addClass("w-e-menu-tooltip-v5")}}}lI("match",function(e,t,n){return[function(r){var o=qi(this),a=r==null?void 0:wp(r,e);return a?In(a,r,o):new RegExp(r)[e](er(o))},function(r){var o=Ur(this),a=er(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return Rm(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=Rm(o,a))!==null;){var d=er(l[0]);u[c]=d,d===""&&(o.lastIndex=uI(a,zv(o.lastIndex),s)),c++}return c===0?null:u}]});var AI=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=be('<div class="w-e-bar-item"></div>'),this.$button=be('<button type="button"></button>'),this.disabled=!1,this.menu=n;var a=n.tag,i=n.width;if(a!=="button")throw new Error("Invalid tag '"+a+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,c=n.iconSvg,d=c===void 0?"":c,f=this.$button;if(d){var p=be(d);xI(p),f.append(p)}else f.text(s);pce(f,d,s,u,r),r&&d&&f.append(be('<span class="title">'+s+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",t),this.$elem.append(f),Gi(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),ai(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=ai(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=ai(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=ai(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),zdt=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return Hv(t,e),t.prototype.onButtonClick=function(){},t}(AI),OI=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=eT.get(t);n==null&&(n=new Set,eT.set(t,n)),n.add(this),J6.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=J6.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=J6.get(this);t&&t.emit("modalOrPanelHide")}},e}(),jdt=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=be('<div class="w-e-drop-panel"></div>'),r}return Hv(t,e),t.prototype.genSelfElem=function(){return null},t}(OI),Hdt=function(e){function t(n,r,o){o===void 0&&(o=!1);var a=e.call(this,n,r,o)||this;if(a.dropPanel=null,a.menu=r,r.showDropPanel){var i=kI();a.$button.append(i)}return a}return Hv(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=ai(this);if(this.dropPanel==null){var o=new jdt(r),a=n.getPanelContentElem(r);o.renderContent(a),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var i=this.dropPanel;i.isShow?i.hide():(a=n.getPanelContentElem(r),i.renderContent(a),i.show())}var s=this.dropPanel;if(s.isShow){var l=this.$elem,u=l.offset().left,c=l.parents(".w-e-bar");u-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(AI),Udt=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=be('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var a=o.$elem;return a.on("click",function(i){return i.stopPropagation()}),a.on("keyup",function(i){i.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Hv(t,e),t.prototype.genSelfElem=function(){var n=this,r=be('<span class="btn-close"><svg viewBox="0 0 1024 10
`)},b.getSelectionText=function(){var E=b.selection;return E==null?"":ne.string(y,E)},b.getElemsByType=function(E,k){var A,D;k===void 0&&(k=!1);var B=[],M=ne.nodes(b,{at:[],universal:!0});try{for(var K=Pi(M),X=K.next();!X.done;X=K.next()){var z=Tn(X.value,1)[0];if(Tt.isElement(z)&&(k?z.type.indexOf(E)>=0:z.type===E)){var R=nce(me.findKey(b,z).id);B.push(Di(Di({},z),{id:R}))}}}catch(j){A={error:j}}finally{try{X&&!X.done&&(D=K.return)&&D.call(K)}finally{if(A)throw A.error}}return B},b.getElemsByTypePrefix=function(E){return b.getElemsByType(E,!0)},b.isEmpty=function(){var E=b.children,k=E===void 0?[]:E;if(k.length>1)return!1;var A=k[0];if(A==null)return!0;if(Tt.isElement(A)&&A.type==="paragraph"){var D=A.children,B=D===void 0?[]:D;if(B.length>1)return!1;var M=B[0];if(M==null||bt.isText(M)&&M.text==="")return!0}return!1},b.clear=function(){Be.delete(b,{at:{anchor:ne.start(b,[]),focus:ne.end(b,[])}}),b.children.length===0&&Be.insertNodes(b,[{type:"paragraph",children:[{text:""}]}])},b.getParentNode=function(E){return me.getParentNode(b,E)},b.dangerouslyInsertHtml=function(E,k){if(E===void 0&&(E=""),k===void 0&&(k=!1),E){var A=document.createElement("div");A.innerHTML=E;var D=Array.from(A.childNodes);if(D=D.filter(function(X){var z=X.nodeType,R=X.nodeName;return z===ol.TEXT_NODE||z===ol.ELEMENT_NODE&&!nq.has(R.toLowerCase())}),D.length!==0){var B=b.selection;if(B!=null){var M=null;me.isSelectedEmptyParagraph(b)&&!k&&(M=[B.focus.path[0]]),A.setAttribute("hidden","true"),document.body.appendChild(A);var K=0;D.forEach(function(X){var z=X.nodeType,R=X.nodeName,j=X.textContent,L=j===void 0?"":j;if(z!==ol.TEXT_NODE)if(R!=="BR"){var N=X,Y=!1;if(rce.includes(R.toLowerCase()))Y=!0;else for(var $ in K8)if(N.matches($)){Y=!0;break}if(Y){var V=_I(be(N),b);return Array.isArray(V)?(V.forEach(function(G){return rq(b,G)}),K++):(rq(b,V),K++),void(me.isSelectedVoidNode(b)&&b.move(1))}var U=window.getComputedStyle(N).display;me.isSelectedEmptyParagraph(b)||U.indexOf("inline")<0&&b.insertBreak(),b.dangerouslyInsertHtml(N.innerHTML,!0)}else b.insertText(`
`);else{if(!L||!L.trim())return;b.insertNode({text:L})}}),K&&M&&me.isEmptyPath(b,M)&&Be.removeNodes(b,{at:M}),A.remove()}}}},b.setHtml=function(E){E===void 0&&(E="");var k=b.isDisabled(),A=b.isFocused(),D=JSON.stringify(b.selection);b.enable(),b.focus(),b.clear();var B=QK(b,E);if(Be.insertFragment(b,B),A||(b.deselect(),b.blur()),k&&(b.deselect(),b.disable()),b.isFocused())try{b.select(JSON.parse(D))}catch{b.select(ne.start(b,[]))}},b}(function(y){var b=y;return b.getAllMenuKeys=function(){var w=[];for(var _ in Fm)w.push(_);return w},b.getConfig=function(){var w=SK.get(b);if(w==null)throw new Error("Can not get editor config");return w},b.getMenuConfig=function(w){var _=b.getConfig().MENU_CONF;return(_===void 0?{}:_)[w]||{}},b.alert=function(w,_){_===void 0&&(_="info");var C=b.getConfig().customAlert;C&&C(w,_)},b}(function(y){var b=udt(xrt());return b.id="wangEditor-"+mct++,b.isDestroyed=!1,b.isFullScreen=!1,b.focus=function(w){if(me.toDOMNode(b,b).focus({preventScroll:!0}),Uf.set(b,!0),w){var _=ne.end(b,[]);Be.select(b,_)}else{var C=US.get(b);C?Be.select(b,C):Be.select(b,ne.start(b,[]))}},b.isFocused=function(){return!!Uf.get(b)},b.blur=function(){me.toDOMNode(b,b).blur(),Be.deselect(b),Uf.set(b,!1)},b.updateView=function(){me.getTextarea(b).changeViewState();var w=me.getToolbar(b);w&&w.changeToolbarState();var _=me.getHoverbar(b);_&&_.changeHoverbarState()},b.destroy=function(){if(!b.isDestroyed){var w=me.getTextarea(b);w.destroy(),JO.delete(b),ZO.delete(w);var _=me.getToolbar(b);_&&(_.destroy(),F5.delete(b),cI.delete(_));var C=me.getHoverbar(b);C&&(C.destroy(),z8.delete(b),QO.delete(C)),b.isDestroyed=!0,b.emit("destroyed")}},b.scrollToElem=function(w){if(!b.getConfig().scroll){var _="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return _+=`
You has disabled editor scroll, please do this yourself`,void console.warn(_)}var C=be("#"+w);if(C.length!==0){var S=C[0];if(!me.hasDOMNode(b,S))return _="Element (found by id is '"+w+"') is not in editor DOM",_+=`
通过 id '`+w+"' 找到的 element 不在 editor DOM 之内",void console.error(_,S);var E=me.getTextarea(b),k=E.$textAreaContainer,A=E.$scroll,D=C.offset().top,B=k.offset().top;A[0].scrollBy({top:D-B,behavior:"smooth"})}},b.showProgressBar=function(w){w<1||me.getTextarea(b).changeProgress(w)},b.hidePanelOrModal=function(){var w=eT.get(b);w!=null&&w.forEach(function(_){return _.hide()})},b.enable=function(){b.getConfig().readOnly=!1,b.updateView()},b.disable=function(){b.getConfig().readOnly=!0,b.updateView()},b.isDisabled=function(){return b.getConfig().readOnly},b.toDOMNode=function(w){return me.toDOMNode(b,w)},b.fullScreen=function(){if(!b.isFullScreen){var w=null,_=me.getToolbar(b);_&&(w=_.$box);var C=me.getTextarea(b).$box.parent();if(w&&w.parent()[0]!==C[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);C.addClass("w-e-full-screen-container");var S=C.css("z-index");C.attr("data-z-index",S.toString()),b.isFullScreen=!0,b.emit("fullScreen")}},b.unFullScreen=function(){if(b.isFullScreen){var w=me.getTextarea(b).$box.parent();setTimeout(function(){w.removeClass("w-e-full-screen-container"),b.isFullScreen=!1,b.emit("unFullScreen")},200)}},b.getEditableContainer=function(){return me.getTextarea(b).$textAreaContainer[0]},b}()))))));if(n&&function(y,b){return sce(y,"data-w-e-textarea",b)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var b=Wle($ue),w={},_=y.MENU_CONF,C=_===void 0?{}:_;return RR(b,function(S,E){w[E]=Di(Di({},S),C[E]||{})}),delete y.MENU_CONF,Di({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:w,hoverbarKeys:{},customAlert:function(S,E){window.alert(E+`:
`+S)}},y)}(o);SK.set(u,c);var d=c.hoverbarKeys,f=d===void 0?{}:d;if(l.forEach(function(y){u=y(u)}),i!=null&&(u.children=QK(u,i)),a&&a.length&&(u.children=a),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),me.normalizeContent(u),n){var p=new Vdt(n);JO.set(u,p),ZO.set(p,u),p.changeViewState(),Gi(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
1 week ago
Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var g=void 0;Object.keys(f).length>0&&(g=new Xdt,QO.set(g,u),z8.set(u,g)),u.on("change",function(){u.hidePanelOrModal()}),u.on("scroll",function(){u.hidePanelOrModal()})}else u.children.forEach(function(y,b){return vce(y,b,u,u)});var v=c.onCreated,m=c.onDestroyed;return v&&u.on("created",function(){return v(u)}),m&&u.on("destroyed",function(){return m(u)}),Gi(function(){return u.emit("created")}),u}var Zdt=B5("splice"),Qdt=ut.TypeError,eft=Math.max,tft=Math.min;Er({target:"Array",proto:!0,forced:!Zdt},{splice:function(e,t){var n,r,o,a,i,s,l=Td(this),u=Hp(l),c=Q0(e,u),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=u-c):(n=d-2,r=tft(eft(t4(t),0),u-c)),u+n-r>9007199254740991)throw Qdt("Maximum allowed length exceeded");for(o=fue(l,r),a=0;a<r;a++)(i=c+a)in l&&Mm(o,a,l[i]);if(o.length=r,n<r){for(a=c;a<u-r;a++)s=a+n,(i=a+r)in l?l[s]=l[i]:delete l[s];for(a=u;a>u-r+n;a--)delete l[a-1]}else if(n>r)for(a=u-r;a>c;a--)s=a+n-1,(i=a+r-1)in l?l[s]=l[i]:delete l[s];for(a=0;a<n;a++)l[a+c]=arguments[a+2];return l.length=u-r+n,o}});var gce=function(){function e(t,n){var r=this;this.$toolbar=be('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Ule(function(){r.toolbarItems.forEach(function(i){i.changeMenuState()})},200),this.config=n;var o=be(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var a=this.$toolbar;a.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),o.append(a),Gi(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,a=o.toolbarKeys,i=a===void 0?[]:a,s=o.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=o.excludeKeys,c=u===void 0?[]:u,d=Wle(i);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach(function(g,v){d.splice(l.index+v,0,g)}));var f=d.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),p=f.length;f.forEach(function(g,v){if(g==="|"){if(v===0||v+1===p||n==="|")return;var m=fce();return r.append(m),void(n=g)}if(typeof g=="string")return t.registerSingleItem(g,t),void(n=g);t.registerGroup(g),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(u){return new yq(u)}(t),a=t.menuKeys,i=a===void 0?[]:a,s=this.config.excludeKeys,l=s===void 0?[]:s;i.forEach(function(u){l.includes(u)||n.registerSingleItem(u,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof yq,a=this.menus,i=a[t];if(i==null){var s=Fm[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=s(),a[t]=i}else console.warn("Duplicated toolbar menu key '"+t+`'
3 weeks ago
重复注册了菜单栏 menu '`+t+"'");var l=hce(t,i,o);this.toolbarItems.push(l),dI.set(l,r),o?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=cI.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),nft=Vv.EXISTS,rft=js.f,mce=Function.prototype,oft=Rt(mce.toString),yce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,aft=Rt(yce.exec);function TI(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,a=e.maxFileSize,i=a===void 0?10485760:a,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,c=u===void 0?{}:u,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,g=p===void 0?{}:p,v=e.withCredentials,m=v!==void 0&&v,y=e.timeout,b=y===void 0?1e4:y,w=e.onBeforeUpload,_=w===void 0?function(K){return K}:w,C=e.onSuccess,S=C===void 0?function(K,X){}:C,E=e.onError,k=E===void 0?function(K,X,z){console.error(K.name+" upload error",X,z)}:E,A=e.onProgress,D=A===void 0?function(K){}:A;if(!n)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var B=n;f&&(B=function(K,X){var z=Tn(K.split("#"),2),R=z[0],j=z[1],L=[];RR(X,function(Y,$){L.push($+"="+Y)});var N=L.join("&");return R=R.indexOf("?")>0?R+"&"+N:R+"?"+N,j?R+"#"+j:R}(B,c));var M=new V2({onBeforeUpload:_,restrictions:{maxFileSize:i,maxNumberOfFiles:l},meta:c}).use(Mst,{endpoint:B,headers:g,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:b});return M.on("upload-success",function(K,X){var z=X.body,R=z===void 0?{}:z;try{S(K,R)}catch(j){console.error("wangEditor upload file - onSuccess error",j)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||D(K)}),M.on("upload-error",function(K,X,z){try{k(K,X,z)}catch(R){console.error("wangEditor upload file - onError error",R)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,X){try{k(K,X)}catch(z){console.error("wangEditor upload file - onError error",z)}M.removeFile(K.id)}),M}function Uc(e){return Uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uc(e)}function ift(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){ift(e,o,n[o])})}return e}function Pu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mu(e,t,n){return t&&_q(e.prototype,t),n&&_q(e,n),e}function Ep(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $m(e,t){if(t&&(Uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ep(e)}function ov(e){return ov=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ov(e)}function vT(e,t){return vT=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},vT(e,t)}function L5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),vT(e,t)}Eo&&!nft&&rft(mce,"name",{configurable:!0,get:function(){try{return aft(yce,oft(this))[1]}catch{return""}}});var sft={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},lu=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pu(this,e),this.init(t,n)}return Mu(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||sft,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},
`)&&e.flags==="s")}),Upt=nn.RegExp,Wpt=xr(function(){var e=Upt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Kpt=CT.get,qpt=II("native-string-replace",String.prototype.replace),e_=RegExp.prototype.exec,ET=e_,Gpt=jt("".charAt),Ypt=jt("".indexOf),Xpt=jt("".replace),wE=jt("".slice),CE=(_E=/b*/g,Vr(e_,Gq=/a/,"a"),Vr(e_,_E,"a"),Gq.lastIndex!==0||_E.lastIndex!==0),Yq=zce.BROKEN_CARET,SE=/()??/.exec("")[1]!==void 0;(CE||SE||Yq||Hpt||Wpt)&&(ET=function(e){var t,n,r,o,a,i,s,l=this,u=Kpt(l),c=Cr(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Vr(ET,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=Yq&&l.sticky,g=Vr(Vce,l),v=l.source,m=0,y=c;if(p&&(g=Xpt(g,"y",""),Ypt(g,"g")===-1&&(g+="g"),y=wE(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Gpt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),SE&&(n=new RegExp("^"+v+"$(?!\\s)",g)),CE&&(r=l.lastIndex),o=Vr(e_,p?n:l,y),p?o?(o.input=wE(o.input,m),o[0]=wE(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:CE&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),SE&&o&&o.length>1&&Vr(qpt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=Uce(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var jm=ET;go({target:"RegExp",proto:!0,forced:/./.exec!==jm},{exec:jm});var qI=Function.prototype,Xq=qI.apply,Jpt=qI.bind,Jq=qI.call,Wce=typeof Reflect=="object"&&Reflect.apply||(Jpt?Jq.bind(Xq):function(){return Jq.apply(Xq,arguments)}),Zpt=bi("species"),EE=RegExp.prototype,GI=function(e,t,n,r){var o=bi(e),a=!xr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!xr(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Zpt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=jt(/./[o]),l=t(o,""[e],function(u,c,d,f,p){var g=jt(u),v=c.exec;return v===jm||v===EE.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Vm(String.prototype,e,l[0]),Vm(EE,o,l[1])}r&&iv(EE[o],"sham",!0)},Qpt=jt("".charAt),Zq=jt("".charCodeAt),eht=jt("".slice),tht=function(e){return function(t,n){var r,o,a=Cr(Yi(t)),i=Kv(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=Zq(a,i))<55296||r>56319||i+1===s||(o=Zq(a,i+1))<56320||o>57343?e?Qpt(a,i):r:e?eht(a,i,i+2):o-56320+(r-55296<<10)+65536}},nht=tht(!0),YI=function(e,t,n){return t+(n?nht(e,t).length:1)},rht=Math.floor,xE=jt("".charAt),oht=jt("".replace),kE=jt("".slice),aht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,iht=/\$([$&'`]|\d{1,2})/g,sht=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=iht;return o!==void 0&&(o=a4(o),l=aht),oht(a,l,function(u,c){var d;switch(xE(c,0)){case"$":return"$";case"&":return e;case"`":return kE(t,0,n);case"'":return kE(t,i);case"<":d=o[kE(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=rht(f/10);return p===0?u:p<=s?r[p-1]===void 0?xE(c,1):r[p-1]+xE(c,1):u}d=r[f-1]}return d===void 0?"":d})},lht=nn.TypeError,Hm=function(e,t){var n=e.exec;if(ia(n)){var r=Vr(n,e,t);return r!==null&&di(r),r}if(Wc(e)==="RegExp")return Vr(jm,e,t);throw lht("RegExp#exec called on incompatible receiver")},xT=bi("replace"),uht=Math.max,cht=Math.min,dht=jt([].concat),AE=jt([].push),Qq=jt("".indexOf),eG=jt("".slice),fht="a".replace(/./,"$0")==="$0",tG=!!/./[xT]&&/./[xT]("a","$0")==="";GI("replace",function(e,t,n){var r=tG?"$":"$0";return[function(o,a){var i=Yi(this),s=o==null?void 0:j5(o,xT);return s?Vr(s,o,i,a):Vr(t,Cr(i),o,a)},function(o,a){var i=di(this),s=Cr(o);if(typeof a=="string"&&Qq(a,r)===-1&&Qq(a,"$<")===-1){var l=n(t,i,s,a);if(l.done)return l.value}var u=ia(a);u||(a=Cr(a));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Hm(i,s);if(p===null||(AE(f,p),!c))break;Cr(p[0])===""&&(i.lastIndex=YI(s,i4(i.lastIndex),d))}for(var g,v="",m=0,y=0;y<f.length;y++){for(var b=Cr((p=f[y])[0]),w=uht(cht(Kv(p.index),s.length),0),_=[],C=1;C<p.length;C++)AE(_,(g=p[C])===void 0?g:String(g));var S=p.groups;if(u){var E=dht([b],_,w,s);S!==void 0&&AE(E,S);var k=Cr(Wce(a,void 0,E))}else k=sht(b,s,w,_,S,a);w>=m&&(v+=eG(s,m,w)+k,m=w+b.length)}return v+eG(s,m)}]},!!xr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!fht||tG);var kT=bi("unscopables"),AT=Array.prototype;AT[kT]==null&&Wv.f(AT,kT,{configurable:!0,value:Uce(null)});var Kce=function(e){AT[kT][e]=!0},pht=W5.find,nG=!0;"find"in[]&&Array(1).find(function(){nG=!1}),go({target:"Array",proto:!0,forced:nG},{find:function(e){return pht(this,e,arguments.length>1?arguments[1]:void 0)}}),Kce("find");var hht=bi("match"),qce=function(e){var t;return gs(e)&&((t=e[hht])!==void 0?!!t:Wc(e)=="RegExp")},vht=nn.TypeError,ght=bi("species"),Gce=function(e,t,n){var r=NI(t);r in e?Wv.f(e,r,MI(0,n)):e[r]=n},mht=nn.Array,yht=Math.max,rG=function(e,t,n){for(var r=U5(e),o=zm(t,r),
\v\f\r                 \u2028\u2029\uFEFF`,oG=jt("".replace),t_="["+OT+"]",wht=RegExp("^"+t_+t_+"*"),Cht=RegExp(t_+t_+"*$"),OE=function(e){return function(t){var n=Cr(Yi(t));return 1&e&&(n=oG(n,wht,"")),2&e&&(n=oG(n,Cht,"")),n}},Sht={start:OE(1),end:OE(2),trim:OE(3)},Eht=H5.PROPER,xht=Sht.trim;function XI(e){return be("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function qv(e){return e.length===0?"":e[0].outerHTML}function Gv(e){return e.length?e[0].tagName.toLowerCase():""}function ks(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,a=0;a<o;a++){var i=r[a];if(i){var s=i.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}go({target:"String",proto:!0,forced:xr(function(){return!!OT.trim()||"​…᠎".trim()!=="​…᠎"||Eht&&OT.trim.name!=="trim"})},{trim:function(){return xht(this)}}),go({global:!0},{globalThis:nn}),be.fn.css=Sle,be.fn.append=$v,be.fn.prepend=Got,be.fn.addClass=SR,be.fn.removeClass=ER,be.fn.hasClass=xR,be.fn.on=Qy,be.fn.off=Uot,be.fn.focus=C5,be.fn.attr=Lv,be.fn.removeAttr=ble,be.fn.hide=AR,be.fn.show=Cle,be.fn.parents=kle,be.fn.dataset=kR,be.fn.val=Zy,be.fn.text=xle,be.fn.html=w5,be.fn.children=DR,be.fn.remove=PR,be.fn.find=TR,be.fn.width=_le,be.fn.height=wle,be.fn.filter=Kot,be.fn.empty=MR;var kht={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=be(e);return(t=t.filter(function(o){return!!bt.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},TT=function(e,t){return TT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},TT(e,t);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function _r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}TT(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vd=function(){return vd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vd.apply(this,arguments)};function Pd(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function Md(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function Xce(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function aG(e){var t=Fn(ne.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!Tt.isElement(n)||n.type==="paragraph"||ft.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!bt.isText(o[0])&&(Be.setNodes(e,{type:"paragraph"}),!0)}var Aht={renderElems:[Mft],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[kht],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){aG(r)||t(o)},r.deleteForward=function(o){aG(r)||n(o)},r}},Oht=/"/g,Tht=jt("".replace),U2=function(e,t,n,r){var o=Cr(Yi(e)),a="<"+t;return n!==""&&(a+=" "+n+'="'+Tht(Cr(r),Oht,"&quot;")+'"'),a+">"+o+"</"+t+">"},W2=function(e){return xr(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function TE(e,t){var n=t,r=e,o=r.bold,a=r.italic,i=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),a&&(n="<em>"+n+"</em>"),i&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Yd(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}go({target:"String",proto:!0,forced:W2("bold")},{bold:function(){return U2(this,"b","","")}}),go({target:"String",proto:!0,forced:W2("italics")},{italics:function(){return U2(this,"i","","")}}),go({target:"String",proto:!0,forced:W2("sub")},{sub:function(){return U2(this,"sub","","")}}),go({target:"String",proto:!0,forced:W2("sup")},{sup:function(){return U2(
<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>
`+s+`
</li>
`);return o.prepend(l),o[0]},e}(),R0t=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pt("color.color"),n.iconSvg=Lht,n.mark="color",n}return _r(t,e),t}(lde),I0t=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=pt("color.bgColor"),n.iconSvg=$ht,n.mark="bgColor",n}return _r(t,e),t}(lde),fG=["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)"],N0t={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,a=t;return r&&xp(a,{color:r}),o&&xp(a,{backgroundColor:o}),a},styleToHtml:function(e,t){if(!bt.isText(e))return t;var n,r=e,o=r.color,a=r.bgColor;return o||a?((XI(t)||Gv(n=be(t))!=="span")&&(n=be("<span>"+t+"</span>")),o&&n.css("color",o),a&&n.css("background-color",a),qv(n)):t},preParseHtml:[B0t],parseStyleHtml:function(e,t,n){var r=be(e);if(!bt.isText(t))return t;var o=t,a=ks(r,"color");a&&(o.color=a);var i=ks(r,"background-color");return i||(i=ks(r,"background")),i&&(o.bgColor=i),o},menus:[{key:"color",factory:function(){return new R0t},config:{colors:fG}},{key:"bgColor",factory:function(){return new I0t},config:{colors:fG}}]},F0t=/^(?:\w+:)?\/\/(\S+)$/,L0t=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,$0t=/^[^\s\.]+\.\S{2,}$/,V0t=Rce.includes;function K5(e){return e===void 0&&(e="r"),e+"-"+Dle()}function JI(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ude(e,t,n,r){return Pd(this,void 0,void 0,function(){var o,a;return Md(this,function(i){switch(i.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(a=i.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];i.label=2;case 2:return[2,!0]}})})}function cde(e,t,n){return Pd(this,void 0,void 0,function(){var r;return Md(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function ZI(e){return e.selection==null||!!me.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function RE(e,t){return{type:"link",url:JI(e),children:t?[{text:t}]:[]}}function dde(e,t,n){return Pd(this,void 0,void 0,function(){var r,o,a;return Md(this,function(i){switch(i.label){case 0:return n?(t||(t=n),e.restoreSelection(),ZI(e)?[2]:[4,ude("insertLink",e,t,n)]):[2];case 1:return i.sent()?[4,cde("insertLink",e,n)]:[2];case 2:return r=i.sent(),(o=e.selection)==null||(He.isCollapsed(o)?(e.insertText(" "),a=RE(r,t),Be.insertNodes(e,a),e.insertFragment([{text:" "}])):ne.string(e,o)!==t?(e.deleteFragment(),a=RE(r,t),Be.insertNodes(e,a)):(a=RE(r),Be.wrapNodes(e,a,{split:!0}),Be.collapse(e,{edge:"end"}))),[2]}})})}go({target:"Array",proto:!0},{includes:function(e){return V0t(this,e,arguments.length>1?arguments
`)return e.deleteBackward("character"),void Be.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},_vt=function(){function e(){this.title=pt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Fn(ne.nodes(t,{match:function(n){return me.getNodeType(n)==="pre"||!!ne.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=be('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(a){var i=a.target;if(i!=null){a.preventDefault();var s=be(i).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(a){var i=be("<li>"+a+"</li>");r.append(i)}),r[0]},e}(),wvt={menus:[{key:"emotion",factory:function(){return new _vt},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Cvt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Svt={selector:"font",preParseHtml:function(e){var t=be(e);if(Gv(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Cvt[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Evt=jt("".indexOf);go({target:"String",proto:!0,forced:!ode("includes")},{includes:function(e){return!!~Evt(Cr(Yi(this)),Cr(rde(e)),arguments.length>1?arguments[1]:void 0)}});var Qu,t3,Fb=function(e){return e&&e.Math==Math&&e},dn=Fb(typeof globalThis=="object"&&globalThis)||Fb(typeof window=="object"&&window)||Fb(typeof self=="object"&&self)||Fb(typeof Y8=="object"&&Y8)||function(){return this}()||Function("return this")(),eN=Function.prototype,bG=eN.apply,xvt=eN.bind,_G=eN.call,gde=typeof Reflect=="object"&&Reflect.apply||(xvt?_G.bind(bG):function(){return _G.apply(bG,arguments)}),mde=Function.prototype,MT=mde.bind,BT=mde.call,kvt=MT&&MT.bind(BT),Br=MT?function(e){return e&&kvt(BT,e)}:function(e){return e&&function(){return BT.apply(e,arguments)}},sa=function(e){return typeof e=="function"},gi=function(e){try{return!!e()}catch{return!0}},Ua=!gi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zg=Function.prototype.call,vl=Zg.bind?Zg.bind(Zg):function(){return Zg.apply(Zg,arguments)},wG={}.propertyIsEnumerable,CG=Object.getOwnPropertyDescriptor,Avt=CG&&!wG.call({1:2},1)?function(e){var t=CG(this,e);return!!t&&t.enumerable}:wG,tN={f:Avt},kp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ovt=Br({}.toString),Tvt=Br("".slice),Gf=function(e){return Tvt(Ovt(e),8,-1)},LE=dn.Object,Dvt=Br("".split),yde=gi(function(){return!LE("z").propertyIsEnumerable(0)})?function(e){return Gf(e)=="String"?Dvt(e,""):LE(e)}:LE,Pvt=dn.TypeError,nN=function(e){if(e==null)throw Pvt("Can't call method on "+e);return e},Ll=function(e){return yde(nN(e))},ms=function(e){return typeof e=="object"?e!==null:sa(e)},Oi={},SG=function(e
`).map(function(a){return{type:"paragraph",children:[{text:a}]}});Be.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,a=[],i=ne.nodes(t,{match:function(d){return t.children.includes(d)},universal:!0});try{for(var s=Xce(i),l=s.next();!l.done;l=s.next()){var u=Fn(l.value,1)[0];u&&a.push(ft.string(u))}}catch(d){r={error:d}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}Be.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:a.join(`
`)}]}]};Be.insertNodes(t,c,{mode:"highest"})},e}(),$2t={key:"codeBlock",factory:function(){return new L2t}};go({target:"String",proto:!0,forced:W2("anchor")},{anchor:function(e){return U2(this,"a","name",e)}}),GI("match",function(e,t,n){return[function(r){var o=Yi(this),a=r==null?void 0:j5(r,e);return a?Vr(a,r,o):new RegExp(r)[e](Cr(o))},function(r){var o=di(this),a=Cr(r),i=n(t,o,a);if(i.done)return i.value;if(!o.global)return Hm(o,a);var s=o.unicode;o.lastIndex=0;for(var l,u=[],c=0;(l=Hm(o,a))!==null;){var d=Cr(l[0]);u[c]=d,d===""&&(o.lastIndex=YI(a,i4(o.lastIndex),s)),c++}return c===0?null:u}]});var V2t={type:"pre",renderElem:function(e,t,n){return Xt("pre",null,t)}},z2t={type:"code",renderElem:function(e,t,n){return Xt("code",null,t)}},j2t={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=be(e);return(t=t.filter(function(o){return me.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return me.getNodeType(o)==="code"})}}},H2t={menus:[$2t],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var a=me.getSelectedNodeByType(o,"code");if(a!=null){var i=function(u,c){var d=c.selection;if(d==null)return"";var f=ft.string(u),p=d.anchor.offset,g=f.slice(0,p).split(`
`),v=g.length;return v===0?"":g[v-1]}(a,o);if(i){var s=i.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void o.insertText(`
`+l)}}o.insertText(`
`)}else t()},o.normalizeNode=function(a){var i=Fn(a,2),s=i[0],l=i[1],u=me.getNodeType(s);return u==="code"&&l.length<=1&&Be.setNodes(o,{type:"paragraph"},{at:l}),u==="pre"&&(me.isLastNode(o,s)&&Be.insertNodes(o,me.genEmptyParagraph(),{at:[l[0]+1]}),me.getNodeType(s.children[0])!=="code"&&(Be.unwrapNodes(o),Be.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,l])},o.insertData=function(a){if(me.getSelectedNodeByType(o,"code")!=null){var i=a.getData("text/plain");ne.insertText(o,i)}else r(a)},o},renderElems:[V2t,z2t],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=be(e);if(Gv(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:be(e)[0].textContent||""}]}}},j2t]},U2t=function(){function e(){this.title=pt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),W2t={menus:[{key:"fullScreen",factory:function(){return new U2t}}]},K2t=function(){function e(){this.title=pt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!He.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];Be.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(ne.start(t,o))}},e}(),q2t=[o0t,N0t,g2t,_2t,x2t,A2t,ivt,B2t,wvt,q0t,H2t,bvt,P0t,Aht,cvt,D2t,W2t,{menus:[{key:"enter",factory:function(){return new K2t}}]}];Ca("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Ca("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var nY=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cN(e){var t={exports:{}};return e(t,t.exports),t.exports}var tc,r3,Vb=function(e){return e&&e.Math==Math&&e},Wt=Vb(typeof globalThis=="object"&&globalThis)||Vb(typeof window=="object"&&window)||Vb(typeof self=="object"&&self)||Vb(typeof nY=="object"&&nY)||functi
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function wfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}iD(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function VY(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A1(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function zY(e){return ne.nodes(e,{at:e.selection||void 0,match:function(t){return me.findPath(e,t).length===1}})}var Lmt=Zde.includes;md({target:"Array",proto:!0},{includes:function(e){return Lmt(this,e,arguments.length>1?arguments[1]:void 0)}}),x1("includes");var jY,l7,$mt=function(){var e=qa(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ON=Wt.RegExp,sD=Tr(function(){var e=ON("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Vmt=sD||Tr(function(){return!ON("a","y").sticky}),zmt={BROKEN_CARET:sD||Tr(function(){var e=ON("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Vmt,UNSUPPORTED_Y:sD},jmt=Wt.RegExp,Hmt=Tr(function(){var e=jmt(".","s");return!(e.dotAll&&e.exec(`
`)&&e.flags==="s")}),Umt=Wt.RegExp,Wmt=Tr(function(){var e=Umt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Kmt=El.get,qmt=fN("native-string-replace",String.prototype.replace),b_=RegExp.prototype.exec,lD=b_,Gmt=vn("".charAt),Ymt=vn("".indexOf),Xmt=vn("".replace),u7=vn("".slice),c7=(l7=/b*/g,ko(b_,jY=/a/,"a"),ko(b_,l7,"a"),jY.lastIndex!==0||l7.lastIndex!==0),HY=zmt.BROKEN_CARET,d7=/()??/.exec("")[1]!==void 0;(c7||d7||HY||Hmt||Wmt)&&(lD=function(e){var t,n,r,o,a,i,s,l=this,u=Kmt(l),c=Ql(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ko(lD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=HY&&l.sticky,g=ko($mt,l),v=l.source,m=0,y=c;if(p&&(g=Xmt(g,"y",""),Ymt(g,"g")===-1&&(g+="g"),y=u7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Gmt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),d7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),c7&&(r=l.lastIndex),o=ko(b_,p?n:l,y),p?o?(o.input=u7(o.input,m),o[0]=u7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:c7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),d7&&o&&o.length>1&&ko(qmt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=bN(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var __=lD;md({target:"RegExp",proto:!0,forced:/./.exec!==__},{exec:__});var Cfe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return me.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!me.getSelectedElems(t).some(function(n){if(ne.isVoid(t,n)&&ne.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?Be.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Be.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Jmt='<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>',Zmt='<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>',Qmt=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=pt("listModule.unOrderedList"),n.iconSvg=Jmt,n}return wfe(t,e),t}(Cfe),eyt=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=pt("listModule.orderedList"),n.iconSvg=Zmt,n}return wfe(t,e),t}(Cfe),tyt={key:"bulletedList",factory:function(){return new Qmt}},nyt={key:"numberedList",factory:function(){return new eyt}},UY=[],ryt={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,a=o!==void 0&&o?"ol":"ul",i=function(u){var c=aD.get(u);if(c==null)return 0;var d=u,f=d.type,p=d.ordered,g=p!==void 0&&p,v=d.level,m=v===void 0?0:v,y=me.findPath(c,u);if(y[0]===0)return m+1;var b=Pe.previous(y),w=ne.node(c,b);if(!w)return 0;var _=A1(w,1)[0];if(me.getNodeType(_)!==f)return m+1;var C=_,S=C.ordered,E=S!==void 0&&S,k=C.level,A=k===void 0?0:k;return A<m?m-A:A>m?0:A===m?E===g?0:1:0}(e);if(i>0)for(var s=0;s<i;s++)n+="<"+a+">",UY.push(a);var l=function(u){var c=aD.get(u);if(c==null)return 0;var d=u,f=d.type,p=d.ordered,g=p!==void 0&&p,v=d.level,m=v===void 0?0:v,y=me.findPath(c,u);if(y[0]===c.children.length-1)return m+1;var b=Pe.next(y),w=ne.node(c,b);if(!w)return 0;var _=A1(w,1)[0];if(me.getNodeType(_)!==f)return m+1;var C=_,S=C.ordered,E=S!==void 0&&S,k=C.level,A=k===void 0?0:k;return A<m?m-A:A>m?0:A===m?E===g?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+UY.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},oyt=Uo("species"),ayt=AN.filter,iyt=WT>=51||!Tr(function(){var e=[];return(e.constructor={})[oyt]=function(){return{foo:1}},e.filter(Boolean).foo!==1});md({target:"Array",proto:!0,forced:!iyt},{filter:function(e){return ayt(this,e,arguments.length>1?arguments[1]:void 0)}});var TN=Function.prototype,WY=TN.apply,syt=TN.bind,KY=TN.call,lyt=typeof Reflect=="object"&&Reflect.apply||(syt?KY.bind(WY):function(){return KY.apply(WY,arguments)}),qY=(Uo("species"),RegExp.prototype),uyt=lfe.charAt,cyt=function(e,t,n){return t+(n?uyt(e,t).length:1)},dyt=Math.floor,f7=vn("".charAt),fyt=vn("".replace),p7=vn("".slice),pyt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hyt=/\$([$&'`]|\d{1,2})/g,vyt=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=hyt;return o!==void 0&&(o=v4(o),l=pyt),f
`)&&e.flags==="s")}),B4t=pn.RegExp,R4t=so(function(){var e=B4t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),I4t=gD.get,N4t=RN("native-string-replace",String.prototype.replace),E_=RegExp.prototype.exec,yD=E_,F4t=_n("".charAt),L4t=_n("".indexOf),$4t=_n("".replace),C7=_n("".slice),S7=(w7=/b*/g,ho(E_,fX=/a/,"a"),ho(E_,w7,"a"),fX.lastIndex!==0||w7.lastIndex!==0),pX=$fe.BROKEN_CARET,E7=/()??/.exec("")[1]!==void 0;(S7||E7||pX||M4t||R4t)&&(yD=function(e){var t,n,r,o,a,i,s,l=this,u=I4t(l),c=Jo(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ho(yD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=pX&&l.sticky,g=ho(Lfe,l),v=l.source,m=0,y=c;if(p&&(g=$4t(g,"y",""),L4t(g,"g")===-1&&(g+="g"),y=C7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&F4t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),E7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),S7&&(r=l.lastIndex),o=ho(E_,p?n:l,y),p?o?(o.input=C7(o.input,m),o[0]=C7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:S7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),E7&&o&&o.length>1&&ho(N4t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=jfe(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var qm=yD;_d({target:"RegExp",proto:!0,forced:/./.exec!==qm},{exec:qm});var x_=Array.isArray||function(e){return Xc(e)=="Array"},Hfe=function(){},V4t=[],Ufe=_4("Reflect","construct"),WN=/^\s*(?:class|function)\b/,z4t=_n(WN.exec),j4t=!WN.exec(Hfe),c2=function(e){if(!la(e))return!1;try{return Ufe(Hfe,V4t,e),!0}catch{return!1}},KN=!Ufe||so(function(){var e;return c2(c2.call)||!c2(Object)||!c2(function(){e=!0})||e})?function(e){if(!la(e))return!1;switch(HN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return j4t||!!z4t(WN,LN(e))}:c2,Wfe=function(e,t,n){var r=NN(t);r in e?w4.f(e,r,DN(0,n)):e[r]=n},H4t=ts("species"),qN=function(e){return fD>=51||!so(function(){var t=[];return(t.constructor={})[H4t]=function(){return{foo:1}},t[e](Boolean).foo!==1})},U4t=_n([].slice),W4t=qN("slice"),K4t=ts("species"),x7=pn.Array,q4t=Math.max;function Fs(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function hX(e){var t=e.selection;if(t==null)return!1;var n=Fs(ne.nodes(e,{match:function(a){return me.checkNodeType(a,"table-cell")}}),1)[0];if(n){var r=Fs(n,2)[1],o=ne.start(e,r);if(on.equals(t.anchor,o))return!0}return!1}function vX(e,t){var n,r,o=ne.nodes(e,{at:t,match:function(l){return me.getNodeType(l)==="table"}}),a=!1;try{for(var i=function(l){var u=typeof Symbol=="function"&&Symbol.iterator,c=u&&l[u],d=0;if(c)return c.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&d>=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),s=i.next();!s.done;s=i.next())s.value,a=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}_d({target:"Array",proto:!0,forced:!W4t},{slice:function(e,t){var n,r,o,a=b4(this),i=o9(a),s=Km(e,i),l=Km(t===void 0?i:t,i);if(x_(a)&&(n=a.constructor,(KN(n)&&(n===x7||x_(n.prototype))||bs(n)&&(n=n[K4t])===null)&&(n=void 0),n===x7||n===void 0))return U4t(a,s,l);for(r=new(n===void 0?x7:n)(q4t(l-s,0)),o=0;s<l;s++,o++)s in a&&Wfe(r,o,a[s]);return r.length=o,r}});var gX=_n(_n.bind),G4t=ts("species"),mX=pn.Array,Y4t=function(e,t){return new(function(n){var r;return x_(n)&&(r=n.constructor,(KN(r)&&(r===mX||x_(r.prototype))||bs(r)&&(r=r[G4t])===null)&&(r=void 0)),r===void 0?mX:r}(e))(t===0?0:t)},yX=_n([].push),oc=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=IN(l),v=Afe(g),m=function(C,S){return Dfe(C),S===void 0?C:gX?gX(C,S):function(){return C.apply(S,arguments)}}(u,c),y=o9(v),b=0,w=d||Y4t,_=t?w(l,y):n||i?w(l,0):void 0;y>b;b++)if((s||b in v)&&(p=m(f=v[b],b,g),e))if(t)_[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:yX(_,f)}else switch(e){case 4:return!1;case 7:yX(_,f)}return a?-1:r||o?o:_}},a9={forEach:oc(0),map:oc(1),filter:oc(2),some:oc(3),every:oc(4),find:oc(5),findIndex:oc(6),filterReject:oc(7)},X4t=a9.map;_d({target:"Array",proto:!0,forced:!qN("map")},{map:function(e){return X4t(this,e,arguments.length>1?arguments[1]:void 0)}});var J4t=jN?{}.toString:function(){return"[object "+HN(this)+"]"};function i9(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function Kfe(e){return i9(e).every(function(t){return!!t.isHeader})}jN||Wm(Object.prototype,"toString",J4t,{unsafe:!0});var Z4t=VN.PROPER,bD=RegExp.prototype,qfe=bD.toSt
\v\f\r                 \u2028\u2029\uFEFF`,EX=_n("".replace),k_="["+SD+"]",mbt=RegExp("^"+k_+k_+"*"),ybt=RegExp(k_+k_+"*$"),A7=function(e){return function(t){var n=Jo(bd(t));return 1&e&&(n=EX(n,mbt,"")),2&e&&(n=EX(n,ybt,"")),n}},bbt={start:A7(1),end:A7(2),trim:A7(3)},_bt=VN.PROPER,wbt=bbt.trim;function Zfe(e){return e.length?e[0].tagName.toLowerCase():""}_d({target:"String",proto:!0,forced:function(e){return so(function(){return!!SD[e]()||"​…᠎"[e]()!=="​…᠎"||_bt&&SD[e].name!==e})}("trim")},{trim:function(){return wbt(this)}}),_d({global:!0},{globalThis:pn}),be.fn.append=$v,be.fn.on=Qy,be.fn.focus=C5,be.fn.attr=Lv,be.fn.val=Zy,be.fn.html=w5,be.fn.dataset=kR,be.fn.addClass=SR,be.fn.removeClass=ER,be.fn.children=DR,be.fn.each=Ele,be.fn.find=TR;var Gm=!1,Qfe=0,epe=0,Ym=null,Xm=null,T1=be("body");function tpe(e){Gm=!1,Xm=null,Ym=null,T1.off("mousemove",npe),T1.off("mouseup",tpe)}T1.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Gm=!0;var n=e.clientX;Qfe=n;var r=t.getBoundingClientRect().width;epe=r,T1.on("mousemove",npe),T1.on("mouseup",tpe)}});var npe=bp(function(e){if(Gm&&Xm!=null&&Ym!=null){e.preventDefault();var t=e.clientX,n=epe+(t-Qfe);(n=Math.floor(100*n)/100)<30&&(n=30),Be.setNodes(Xm,{width:n.toString()},{at:Ym})}},100),Cbt={type:"table",renderElem:function(e,t,n){var r=function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||He.isCollapsed(u))return!0;var c=u.anchor,d=u.focus,f=me.findPath(s,l),p=ne.start(s,f),g=ne.end(s,f),v=on.compare(c,g)<=0&&on.compare(c,p)>=0,m=on.compare(d,g)<=0&&on.compare(d,p)>=0;return!!(v&&m&&Pe.equals(c.path.slice(0,3),d.path.slice(0,3)))}(n,e),o=e.width,a=o===void 0?"auto":o,i=Xt("div",{className:"table-container","data-selected":me.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=me.findPath(n,e),u=ne.start(n,l),c=n.selection;c!=null?c.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},Xt("table",{width:a,contentEditable:r},Xt("colgroup",null,i9(e).map(function(s){var l=s.width;return Xt("col",{width:l===void 0?"auto":l})})),Xt("tbody",null,t)));return i}},Sbt={type:"table-row",renderElem:function(e,t,n){return Xt("tr",null,t)}},Ebt={type:"table-cell",renderElem:function(e,t,n){var r=function(f,p){var g=me.getParentNode(f,p);if(g==null)return!1;var v=me.getParentNode(f,g);return v!=null&&i9(v).some(function(m){return m===p})}(n,e),o=e,a=o.colSpan,i=a===void 0?1:a,s=o.rowSpan,l=s===void 0?1:s,u=o.isHeader,c=u!==void 0&&u;if(!r)return Xt("td",{colSpan:i,rowSpan:l},t);var d=Xt(c?"th":"td",{colSpan:i,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:bp(function(f){var p=this.elm;if(p!=null){var g=p.getBoundingClientRect(),v=g.left,m=g.width,y=g.top,b=g.height,w=f.clientX,_=f.clientY;Gm||(w>v+m-5&&w<v+m&&_>y&&_<y+b?(p.style.cursor="col-resize",Xm=n,Ym=me.findPath(n,e)):Gm||(p.style.cursor="auto",Xm=null,Ym=null))}},100)}},t);return d}},xbt={selector:"table",preParseHtml:function(e){var t=be(e);if(Zfe(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},kbt=a9.filter;_d({target:"Array",proto:!0,forced:!qN("filter")},{filter:function(e){return kbt(this,e,arguments.length>1?arguments[1]:void 0)}});var Abt=Math.floor,O7=_n("".charAt),Obt=_n("".replace),T7=_n("".slice),Tbt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dbt=/\$([$&'`]|\d{1,2})/g,Pbt=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=Dbt;return o!==void 0&&(o=IN(o),l=Tbt),Obt(a,l,function(u,c){var d;switch(O7(c,0)){case"$":return"$";case"&":return e;case"`":return T7(t,0,n);case"'":return T7(t,i);case"<":d=o[T7(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=Abt(f/10);return p===0?u:p<=s?r[p-1]===void 0?O7(c,1):r[p-1]+O7(c,1):u}d=r[f-1]}return d===void 0?"":d})},ED=ts("replace"),Mbt=Math.max,Bbt=Math.min,Rbt=_n([].concat),D7=_n([].push),xX=_n("".indexOf),kX=_n("".slice),Ibt="a".replace(/./,"$0")==="$0",AX=!!/./[ED]&&/./[ED]("a",
`)},l.deleteBackward=function(u){if(!hX(l)){var c=l.selection;if(c){var d=ne.before(l,c);if(d){var f=vX(l,d),p=vX(l,c);if(f&&!p)return}}n(u)}},l.handleTab=function(){var u;if(me.getSelectedNodeByType(l,"table")){var c=ne.above(e);me.checkNodeType(c[0],"table-cell")&&Be.select(e,c[1]);var d=ne.next(e);if(d)d[0]&&d[0].text&&(d=(u=ne.above(e,{at:d[1]}))!==null&&u!==void 0?u:d),Be.select(e,d[1]);else{var f=l.children||[],p=f.length;if(me.checkNodeType(f[p-1],"table")){var g=me.genEmptyParagraph();Be.insertNodes(l,g,{at:[p]}),l.handleTab()}}}else i()},l.deleteForward=function(u){hX(l)||r(u)},l.normalizeNode=function(u){var c=Fs(u,2),d=c[0],f=c[1];if(me.getNodeType(d)!=="table")return o([d,f]);if(me.isLastNode(l,d)){var p=me.genEmptyParagraph();Be.insertNodes(l,p,{at:[f[0]+1]})}},l.insertData=function(u){if(me.getSelectedNodeByType(l,"table")!=null){var c=u.getData("text/plain");c===`
`||/<img[^>]+>/.test(u.getData("text/html"))?a(u):ne.insertText(l,c)}else a(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var c=me.getSelectedNodeByType(l,"table-cell");if(c!=null){var d=u.anchor,f=u.focus;if(Pe.equals(d.path.slice(0,3),f.path.slice(0,3)))if(ft.string(c).length!==0){var p=me.findPath(l,c),g={anchor:ne.start(l,p),focus:ne.end(l,p)};l.select(g)}else s();else s()}else s()}else s()},l}};Ca("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"}}),Ca("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var A_=function(){return A_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A_.apply(this,arguments)};function s9(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function l9(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function ep(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Jbt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],s=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(a){return new Promise(function(i,s){(function(l,u,c,d){Promise.resolve(d).then(function(f){l({value:f,done:c})},u)})(i,s,(a=e[o](a)).done,a.value)})}}}var DX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function YN(e){var t={exports:{}};return e(t,t.exports),t.exports}var ac,l3,Yb=function(e){return e&&e.Math==Math&&e},vt=Yb(typeof globalThis=="object"&&globalThis)||Yb(typeof window=="object"&&window)||Yb(typeof self=="object"&&self)||Yb(typeof DX=="object"&&DX)||function(){return this}()||Function("return this")(),lr=function(e){try{return!!e()}catch{return!0}},xl=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),f2=Function.prototype.call,ir=f2.bind?f2.bind(f2):function(){return f2.apply(f2,arguments)},PX={}.propertyIsEnumerable,MX=Object.getOwnPropertyDescriptor,Zbt={f:MX&&!PX.call({1:2},1)?function(e){var t=MX(this,e);return!!t&&t.enumerable}:PX},u9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ope=Function.prototype,xD=ope.bind,kD=ope.call,Qbt=xD&&xD.bind(kD),en=xD?function(e){return e&&Qbt(kD,e)}:function(e){return e&&function(){return kD.apply(e,arguments)}},e6t=en({}.toString),t6t=en("".slice),gl=function(e){return t6t(e6t(e),8,-1)},R7=vt.Object,n6t=en("".split),XN=lr(function(){return!R7("z").propertyIsEnumerable(0)})?function(e){return gl(e)=="String"?n6t(e,""):R7(e)}:R7,r6t=vt.TypeError,S4=function(e){if(e==null)throw r6t("Can't call method on "+e);return e},Bd=function(e){return XN(S4(e))},Xn=function(e){return typeof
\v\f\r                 \u2028\u2029\uFEFF`,WX=en("".replace),R_="["+DD+"]",G6t=RegExp("^"+R_+R_+"*"),Y6t=RegExp(R_+R_+"*$"),F7=function(e){return function(t){var n=Ti(S4(t));return 1&e&&(n=WX(n,G6t,"")),2&e&&(n=WX(n,Y6t,"")),n}},X6t={start:F7(1),end:F7(2),trim:F7(3)},J6t=Qv.PROPER,Z6t=X6t.trim;function KX(e){return e.length?e[0].tagName.toLowerCase():""}function fpe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=be(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Na({target:"String",proto:!0,forced:lr(function(){return!!DD.trim()||"​…᠎".trim()!=="​…᠎"||J6t&&DD.trim.name!=="trim"})},{trim:function(){return Z6t(this)}}),Na({global:!0},{globalThis:vt}),be.fn.append=$v,be.fn.on=Qy,be.fn.focus=C5,be.fn.attr=Lv,be.fn.val=Zy,be.fn.html=w5,be.fn.parent=OR,be.fn.hasClass=xR,be.fn.empty=MR;var Xb,Q6t={type:"video",renderElem:function(e,t,n){var r,o=e,a=o.src,i=a===void 0?"":a,s=o.poster,l=s===void 0?"":s,u=o.width,c=u===void 0?"auto":u,d=o.height,f=d===void 0?"auto":d,p=me.isNodeSelected(n,e);if(i.trim().indexOf("<iframe ")===0)r=Xt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:fpe(i,c,f)});else{var g=Xt("video",{poster:l,controls:!0},Xt("source",{src:i,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉浏览器不支持 video 视频`);c!=="auto"&&(g.data.width=c),f!=="auto"&&(g.data.height=f),r=Xt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},g)}return Z0("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},e3t={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,a=n.poster,i=a===void 0?"":a,s=n.width,l=s===void 0?"auto":s,u=n.height,c=u===void 0?"auto":u,d=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?d+=fpe(o,l,c):d+='<video poster="'+i+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',d+`
</div>`}},t3t=Object.keys||function(e){return cpe(e,P_)},n3t=xl?Object.defineProperties:function(e,t){Po(e);for(var n,r=Bd(t),o=t3t(t),a=o.length,i=0;a>i;)Bu.f(e,n=o[i++],r[n]);return e},PD=Tp("document","documentElement"),ppe=rF("IE_PROTO"),L7=function(){},hpe=function(e){return"<script>"+e+"<\/script>"},qX=function(e){e.write(hpe("")),e.close();var t=e.parentWindow.Object;return e=null,t},u3=function(){try{Xb=new ActiveXObject("htmlfile")}catch{}var e,t;u3=typeof document<"u"?document.domain&&Xb?qX(Xb):((t=ey("iframe")).style.display="none",PD.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(hpe("document.F=Object")),e.close(),e.F):qX(Xb);for(var n=P_.length;n--;)delete u3.prototype[P_[n]];return u3()};f9[ppe]=!0;var aF=Object.create||function(e,t){var n;return e!==null?(L7.prototype=Po(e),n=new L7,L7.prototype=null,n[ppe]=e):n=u3(),t===void 0?n:n3t(n,t)},MD=Kr("unscopables"),BD=Array.prototype;BD[MD]==null&&Bu.f(BD,MD,{configurable:!0,value:aF(null)});var P1=function(e){BD[MD][e]=!0},r3t=upe.includes;Na({target:"Array",proto:!0},{includes:function(e){return r3t(this,e,arguments.length>1?arguments[1]:void 0)}}),P1("includes");var o3t={selector:"iframe,video,p",preParseHtml:function(e){var t=be(e),n=t;if(KX(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],a=o.tagName.toLowerCase();["iframe","video"].includes(a)&&(n=be(o))}}var i=KX(n);if(i!=="iframe"&&i!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=be('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},GX=en(en.bind),ny=function(e,t){return wd(e),t===void 0?e:GX?GX(e,t):function(){return e.apply(t,arguments)}},I_=Array.isArray||function(e){return gl(e)=="Array"},vpe=function(){},a3t=[],gpe=Tp("Reflect","construct"),iF=/^\s*(?:class|function)\b/,i3t=en(iF.exec),s3t=!iF.exec(vpe),h2=function(e){if(!Xn(e))return!1;try{return gpe(vpe,a3t,e),!0}catch{return!1}},sF=!gpe||lr(function(){var e;return h2(h2.call)||!h2(Object)||!h2(function(){e=!0})||e})?function(e){if(!Xn(e))return!1;switch(h9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return s3t||!!i3t(iF,d9(e))}:h2,l3t=Kr("species"),YX=vt.Array,u3t=function(e,t){return new(function(n){var r;return I_(n)&&(r=n.constructor,(sF(r)&&(r===YX||I_(r.prototype))||br(r)&&(r=r[l3t])===null)&&(r=void 0)),r===void 0?YX:r}(e))(t===0?0:t)},XX=en([].push),ic=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,a=e==6,i=e==7,s=e==5||a;return function(l,u,c,d){for(var f,p,g=c9(l),v=XN(g),m=ny(u,c),y=E4(v),b=0,w=d||u3t,_=t?w(l,y):n||i?w(l,0):void 0;y>b;b++)if((s||b in v)&&(p=m(f=v[b],b,g),e))if(t)_[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:XX(_,f)}else switch(e){case 4:return!1;case 7:XX(_,f)}return a?-1:r||o?o:_}},lF={forEach:ic(0),map:ic(1),filter:ic(2),some:ic(3),every:ic(4),find:ic(5),findIndex:ic(6),filterReject:ic(7)},c3t=lF.find,JX=!0;"find"in[]&&Array(1).find(function(){JX=!1}),Na({target:"Array",proto:!0,forced:JX},{find:function(e){return c3t(this,e,arguments.length>1?arguments[1]:void 0)}}),P1("find");var d3t=oF?{}.toString:function(){return"[object "+h9(this)+"]"};function ZX(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}oF||Xi(Object.prototype,"toString",d3t,{unsafe:!0});var QX,$7,f3t={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=be(e),o="",a="",i="auto",s="auto",l=r.find("iframe");if(l.length>0)return i=l.attr("width")||"auto",s=l.attr("height")||"auto",ZX(o=l[0].outerHTML,a,i,s);var u=r.find("video");return(o=u.attr("src")||"")||u.length>0&&(o=u.find("source").attr("src")||""),i=u.attr("width")||"auto",s=u.attr("height")||"auto",ZX(o,a=u.attr("poster")||"",i,s)}},mpe=function(){var e=Po(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},uF=vt.RegExp,RD=lr(function(){var e=uF("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),p3t=RD||lr(function(){
`)&&e.flags==="s")}),m3t=vt.RegExp,y3t=lr(function(){var e=m3t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),b3t=mi.get,_3t=QN("native-string-replace",String.prototype.replace),N_=RegExp.prototype.exec,ID=N_,w3t=en("".charAt),C3t=en("".indexOf),S3t=en("".replace),V7=en("".slice),z7=($7=/b*/g,ir(N_,QX=/a/,"a"),ir(N_,$7,"a"),QX.lastIndex!==0||$7.lastIndex!==0),eJ=h3t.BROKEN_CARET,j7=/()??/.exec("")[1]!==void 0;(z7||j7||eJ||g3t||y3t)&&(ID=function(e){var t,n,r,o,a,i,s,l=this,u=b3t(l),c=Ti(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ir(ID,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=eJ&&l.sticky,g=ir(mpe,l),v=l.source,m=0,y=c;if(p&&(g=S3t(g,"y",""),C3t(g,"g")===-1&&(g+="g"),y=V7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&w3t(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),j7&&(n=new RegExp("^"+v+"$(?!\\s)",g)),z7&&(r=l.lastIndex),o=ir(N_,p?n:l,y),p?o?(o.input=V7(o.input,m),o[0]=V7(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:z7&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),j7&&o&&o.length>1&&ir(_3t,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=aF(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var F_=ID;Na({target:"RegExp",proto:!0,forced:/./.exec!==F_},{exec:F_});var cF=Function.prototype,tJ=cF.apply,E3t=cF.bind,nJ=cF.call,ype=typeof Reflect=="object"&&Reflect.apply||(E3t?nJ.bind(tJ):function(){return nJ.apply(tJ,arguments)}),rJ=(Kr("species"),RegExp.prototype),x3t=en("".charAt),oJ=en("".charCodeAt),k3t=en("".slice),aJ=function(e){return function(t,n){var r,o,a=Ti(S4(t)),i=p9(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=oJ(a,i))<55296||r>56319||i+1===s||(o=oJ(a,i+1))<56320||o>57343?e?x3t(a,i):r:e?k3t(a,i,i+2):o-56320+(r-55296<<10)+65536}},bpe={codeAt:aJ(!1),charAt:aJ(!0)},A3t=bpe.charAt,O3t=function(e,t,n){return t+(n?A3t(e,t).length:1)},T3t=Math.floor,H7=en("".charAt),D3t=en("".replace),U7=en("".slice),P3t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,M3t=/\$([$&'`]|\d{1,2})/g,B3t=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,l=M3t;return o!==void 0&&(o=c9(o),l=P3t),D3t(a,l,function(u,c){var d;switch(H7(c,0)){case"$":return"$";case"&":return e;case"`":return U7(t,0,n);case"'":return U7(t,i);case"<":d=o[U7(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var p=T3t(f/10);return p===0?u:p<=s?r[p-1]===void 0?H7(c,1):r[p-1]+H7(c,1):u}d=r[f-1]}return d===void 0?"":d})},R3t=vt.TypeError,I3t=function(e,t){var n=e.exec;if(Xn(n)){var r=ir(n,e,t);return r!==null&&Po(r),r}if(gl(e)==="RegExp")return ir(F_,e,t);throw R3t("RegExp#exec called on incompatible receiver")},ND=Kr("replace"),N3t=Math.max,F3t=Math.min,L3t=en([].concat),W7=en([].push),iJ=en("".indexOf),sJ=en("".slice),$3t="a".replace(/./,"$0")==="$0",lJ=!!/./[ND]&&/./[ND]("a","$0")==="";function _pe(e){return e+"-"+Dle()}(function(e,t,n,r){var o=Kr(e),a=!lr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!lr(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=en(/./[o]),l=function(u,c,d){var f=lJ?"$":"$0";return[function(p,g){var v=S4(this),m=p==null?void 0:Qm(p,ND);return m?ir(m,p,v,g):ir(c,Ti(v),p,g)},function(p,g){var v=Po(this),m=Ti(p);if(typeof g=="string"&&iJ(g,f)===-1&&iJ(g,"$<")===-1){var y=d(c,v,m,g);if(y.done)return y.value}var b=Xn(g);b||(g=Ti(g));var w=v.global;if(w){var _=v.unicode;v.lastIndex=0}for(var C=[];;){var S=I3t(v,m);if(S===null||(W7(C,S),!w))break;Ti(S[0])===""&&(v.lastIndex=O3t(m,lpe(v.lastIndex),_))}for(var E,k="",A=0,D=0;D<C.length;D++){for(var B=Ti((S=C[D])[0]),M=N3t(F3t(p9(S.index),m.length),0),K=[],X=1;X<S.length;X++)W7(K,(E=S[X])===void 0?E:String(E));var z=S.groups;if(b){var R=L3t([B],K,M,m);z!==void 0&&W7(R,z);var j=Ti(ype(g,void 0,R))}else j=B3t(B,m,M,K,z,g);M>=A&&(k+=sJ(m,A,M)+j,A=M+B.length)}return k+sJ(m,A)}]}(0,""[e],function(u,c,d,f,p){var g=en(u),v=c.exec;return v===F_||v===rJ.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Xi(String.prototype,e,l[0]),Xi(rJ,o,l[1])}})("replace",0,!!lr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!$3t||lJ);var L_=vt.Promise,$_=function(e,t,n){for(var r in t)Xi(e,r,t[r],n);return e},V3t=vt.String,z3t=vt.TypeError,uv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=en(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Po(r),function(a){if(typeof a=="object"||Xn(a))return a;throw z3t("Can't set "+V3t(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),j3t=Bu.f,uJ=Kr("toStringTag"),V_=function(e,t,n){e&&!no(e=n?e:e.prototype,uJ)&&j3t(e,uJ,{configurable:!0,value:t})},cJ=Kr("species"),H3t=vt.TypeError,dF=function(e,t){if(Jm(t,e))return e;thr
`)&&e.flags==="s")}),gwt=ht.RegExp,mwt=gr(function(){var e=gwt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ywt=yi.get,bwt=CF("native-string-replace",String.prototype.replace),X_=RegExp.prototype.exec,ZD=X_,_wt=fn("".charAt),wwt=fn("".indexOf),Cwt=fn("".replace),gx=fn("".slice),mx=(vx=/b*/g,Kn(X_,nZ=/a/,"a"),Kn(X_,vx,"a"),nZ.lastIndex!==0||vx.lastIndex!==0),rZ=ihe.BROKEN_CARET,yx=/()??/.exec("")[1]!==void 0;(mx||yx||rZ||vwt||mwt)&&(ZD=function(e){var t,n,r,o,a,i,s,l=this,u=ywt(l),c=nd(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Kn(ZD,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=rZ&&l.sticky,g=Kn(ahe,l),v=l.source,m=0,y=c;if(p&&(g=Cwt(g,"y",""),wwt(g,"g")===-1&&(g+="g"),y=gx(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&_wt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),yx&&(n=new RegExp("^"+v+"$(?!\\s)",g)),mx&&(r=l.lastIndex),o=Kn(X_,p?n:l,y),p?o?(o.input=gx(o.input,m),o[0]=gx(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:mx&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),yx&&o&&o.length>1&&Kn(bwt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=BF(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var dy=ZD;ul({target:"RegExp",proto:!0,forced:/./.exec!==dy},{exec:dy});var RF=Function.prototype,oZ=RF.apply,Swt=RF.bind,aZ=RF.call,uhe=typeof Reflect=="object"&&Reflect.apply||(Swt?aZ.bind(oZ):function(){return aZ.apply(oZ,arguments)}),Ewt=qr("species"),bx=RegExp.prototype,xwt=qr("match"),kwt=ht.TypeError,Awt=qr("species"),che=function(e,t){var n,r=Mo(e).constructor;return r===void 0||(n=Mo(r)[Awt])==null?t:function(o){if(PF(o))return o;throw kwt(H_(o)+" is not a constructor")}(n)},Owt=fn("".charAt),iZ=fn("".charCodeAt),Twt=fn("".slice),sZ=function(e){return function(t,n){var r,o,a=nd(ay(t)),i=OF(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=iZ(a,i))<55296||r>56319||i+1===s||(o=iZ(a,i+1))<56320||o>57343?e?Owt(a,i):r:e?Twt(a,i,i+2):o-56320+(r-55296<<10)+65536}},dhe={codeAt:sZ(!1),charAt:sZ(!0)},Dwt=dhe.charAt,Pwt=function(e,t,n){return t+(n?Dwt(e,t).length:1)},Mwt=ht.Array,Bwt=Math.max,QD=function(e,t,n){for(var r=A4(e),o=cy(t,r),a=cy(n===void 0?r:n,r),i=Mwt(Bwt(a-o,0)),s=0;o<a;o++,s++)rhe(i,s,e[o]);return i.length=s,i},Rwt=ht.TypeError,lZ=function(e,t){var n=e.exec;if(or(n)){var r=Kn(n,e,t);return r!==null&&Mo(r),r}if(As(e)==="RegExp")return Kn(dy,e,t);throw Rwt("RegExp#exec called on incompatible receiver")},Th=ihe.UNSUPPORTED_Y,Iwt=Math.min,fhe=[].push,Nwt=fn(/./.exec),Dh=fn(fhe),S2=fn("".slice);(function(e,t,n,r){var o=qr(e),a=!gr(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!gr(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[Ewt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=fn(/./[o]),l=function(u,c,d){var f;return f="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,g){var v,m,y=nd(ay(this)),b=g===void 0?4294967295:g>>>0;if(b===0)return[];if(p===void 0)return[y];if(!hr(v=p)||!((m=v[xwt])!==void 0?m:As(v)=="RegExp"))return Kn(c,y,p,b);for(var w,_,C,S=[],E=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,A=new RegExp(p.source,E+"g");(w=Kn(dy,A,y))&&!((_=A.lastIndex)>k&&(Dh(S,S2(y,k,w.index)),w.length>1&&w.index<y.length&&uhe(fhe,S,QD(w,1)),C=w[0].length,k=_,S.length>=b));)A.lastIndex===w.index&&A.lastIndex++;return k===y.length?!C&&Nwt(A,"")||Dh(S,""):Dh(S,S2(y,k)),S.length>b?QD(S,0,b):S}:"0".split(void 0,0).length?function(p,g){return p===void 0&&g===0?[]:Kn(c,this,p,g)}:c,[function(p,g){var v=ay(this),m=p==null?void 0:ly(p,u);return m?Kn(m,p,v,g):Kn(f,nd(v),p,g)},function(p,g){var v=Mo(this),m=nd(p),y=d(f,v,m,g,f!==c);if(y.done)return y.value;var b=che(v,RegExp),w=v.unicode,_=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Th?"g":"y"),C=new b(Th?"^(?:"+v.source+")":v,_),S=g===void 0?4294967295:g>>>0;if(S===0)return[];if(m.length===0)return lZ(C,m)===null?[m]:[];for(var E=0,k=0,A=[];k<m.length;){C.lastIndex=Th?0:k;var D,B=lZ(C,Th?S2(m,k):m);if(B===null||(D=Iwt(Zpe(C.lastIndex+(Th?k:0)),m.length))===E)k=Pwt(m,k,w);else{if(Dh(A,S2(m,E,k)),A.length===S)return A;for(var M=1;M<=B.length-1;M++)if(Dh(A,B[M]),A.length===S)return A;k=E=D}}return Dh(A,S2(m,E)),A}]}(o,""[e],function(u,c,d,f,p){var g=fn(u),v=c.exec;return v===dy||v===bx.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});Ji(String.prototype,e,l[0]),Ji(bx,o,l[1])}r&&ml(bx[o],"sham",!0)})("split",0,!!gr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Th);/*!
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var J_=function(){return J_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J_.apply(this,arguments)};function IF(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{l(r.next(u))}catch(c){a(c)}}function s(u){try{l(r.throw(u))}catch(c){a(c)}}function l(u){var c;u.done?o(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(i,s)}l((r=r.apply(e,[])).next())})}function NF(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){i=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(c[0]===6&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(d){c=[6,d],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function Fwt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(o){var a=typeof Symbol=="function"&&Symbol.iterator,i=a&&o[a],s=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(a){return new Promise(function(i,s){(function(l,u,c,d){Promise.resolve(d).then(function(f){l({value:f,done:c})},u)})(i,s,(a=e[o](a)).done,a.value)})}}}var eP=qr("unscopables"),tP=Array.prototype;tP[eP]==null&&Ru.f(tP,eP,{configurable:!0,value:BF(null)});var op,uZ,cZ,_x=function(e){tP[eP][e]=!0},dv={},Lwt=!gr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dZ=AF("IE_PROTO"),nP=ht.Object,$wt=nP.prototype,Z_=Lwt?nP.getPrototypeOf:function(e){var t=SF(e);if(ro(t,dZ))return t[dZ];var n=t.constructor;return or(n)&&t instanceof n?n.prototype:t instanceof nP?$wt:null},rP=qr("iterator"),phe=!1;[].keys&&("next"in(cZ=[].keys())?(uZ=Z_(Z_(cZ)))!==Object.prototype&&(op=uZ):phe=!0);var Vwt=op==null||gr(function(){var e={};return op[rP].call(e)!==e});Vwt&&(op={}),or(op[rP])||Ji(op,rP,function(){return this});var FF={IteratorPrototype:op,BUGGY_SAFARI_ITERATORS:phe},zwt=Ru.f,fZ=qr("toStringTag"),Q_=function(e,t,n){e&&!ro(e=n?e:e.prototype,fZ)&&zwt(e,fZ,{configurable:!0,value:t})},jwt=FF.IteratorPrototype,Hwt=function(){return this},Uwt=ht.String,Wwt=ht.TypeError,fv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=fn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Mo(r),function(a){if(typeof a=="object"||or(a))return a;throw Wwt("Can't set "+Uwt(a)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Kwt=k4.PROPER,qwt=k4.CONFIGURABLE,pZ=FF.IteratorPrototype,wx=FF.BUGGY_SAFARI_ITERATORS,E2=qr("iterator"),Gwt=function(){return this},hhe=function(e,t,n,r,o,a,i){(function(m,y,b,w){var _=y+" Iterator";m.prototype=BF(jwt,{next:v9(1,b)}),Q_(m,_,!1),dv[_]=Hwt})(n,t,r);var s,l,u=function(m){if(m===o&&g)return g;if(!wx&&m in f)return f[m];switch(m){case"keys":case"values":case"entries":return funct
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=t),ow!==void 0&&(ow.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
`)&&e.flags==="s")}),dCt=gn.RegExp,fCt=Oo(function(){var e=dCt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),pCt=vP.get,hCt=qF("native-string-replace",String.prototype.replace),lw=RegExp.prototype.exec,yP=lw,vCt=jn("".charAt),gCt=jn("".indexOf),mCt=jn("".replace),qx=jn("".slice),Gx=(Kx=/b*/g,xo(lw,vQ=/a/,"a"),xo(lw,Kx,"a"),vQ.lastIndex!==0||Kx.lastIndex!==0),gQ=u0e.BROKEN_CARET,Yx=/()??/.exec("")[1]!==void 0;(Gx||Yx||gQ||cCt||fCt)&&(yP=function(e){var t,n,r,o,a,i,s,l=this,u=pCt(l),c=hu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=xo(yP,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,p=gQ&&l.sticky,g=xo(l0e,l),v=l.source,m=0,y=c;if(p&&(g=mCt(g,"y",""),gCt(g,"g")===-1&&(g+="g"),y=qx(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&vCt(c,l.lastIndex-1)!==`
`)&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Yx&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Gx&&(r=l.lastIndex),o=xo(lw,p?n:l,y),p?o?(o.input=qx(o.input,m),o[0]=qx(o[0],m),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Gx&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Yx&&o&&o.length>1&&xo(hCt,o[0],n,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(o[a]=void 0)}),o&&f)for(o.groups=i=lCt(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var vy=yP;w9({target:"RegExp",proto:!0,forced:/./.exec!==vy},{exec:vy});var lL=Function.prototype,mQ=lL.apply,yCt=lL.bind,yQ=lL.call,bCt=typeof Reflect=="object"&&Reflect.apply||(yCt?yQ.bind(mQ):function(){return yQ.apply(mQ,arguments)}),_Ct=Id("species"),Xx=RegExp.prototype,wCt=Id("match"),CCt=gn.TypeError,SCt=Id("species"),ECt=jn("".charAt),bQ=jn("".charCodeAt),xCt=jn("".slice),kCt=function(e){return function(t,n){var r,o,a=hu(pv(t)),i=oL(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=bQ(a,i))<55296||r>56319||i+1===s||(o=bQ(a,i+1))<56320||o>57343?e?ECt(a,i):r:e?xCt(a,i,i+2):o-56320+(r-55296<<10)+65536}},ACt=kCt(!0),OCt=function(e,t,n){return t+(n?ACt(e,t).length:1)},TCt=gn.Array,DCt=Math.max,_Q=function(e,t,n){for(var r,o,a,i,s=aL(e),l=gP(t,s),u=gP(n===void 0?s:n,s),c=TCt(DCt(u-l,0)),d=0;l<u;l++,d++)r=c,o=d,a=e[l],(i=ZF(o))in r?b9.f(r,i,QF(0,a)):r[i]=a;return c.length=d,c},PCt=gn.TypeError,wQ=function(e,t){var n=e.exec;if(Sa(n)){var r=xo(n,e,t);return r!==null&&Os(r),r}if(ad(e)==="RegExp")return xo(vy,e,t);throw PCt("RegExp#exec called on incompatible receiver")},Rh=u0e.UNSUPPORTED_Y,MCt=Math.min,f0e=[].push,BCt=jn(/./.exec),Ih=jn(f0e),M2=jn("".slice);(function(e,t,n,r){var o=Id(e),a=!Oo(function(){var u={};return u[o]=function(){return 7},""[e](u)!=7}),i=a&&!Oo(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[_Ct]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return u=!0,null},c[o](""),!u});if(!a||!i||n){var s=jn(/./[o]),l=function(u,c,d){var f;return f="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,g){var v,m,y=hu(pv(this)),b=g===void 0?4294967295:g>>>0;if(b===0)return[];if(p===void 0)return[y];if(!dl(v=p)||!((m=v[wCt])!==void 0?m:ad(v)=="RegExp"))return xo(c,y,p,b);for(var w,_,C,S=[],E=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,A=new RegExp(p.source,E+"g");(w=xo(vy,A,y))&&!((_=A.lastIndex)>k&&(Ih(S,M2(y,k,w.index)),w.length>1&&w.index<y.length&&bCt(f0e,S,_Q(w,1)),C=w[0].length,k=_,S.length>=b));)A.lastIndex===w.index&&A.lastIndex++;return k===y.length?!C&&BCt(A,"")||Ih(S,""):Ih(S,M2(y,k)),S.length>b?_Q(S,0,b):S}:"0".split(void 0,0).length?function(p,g){return p===void 0&&g===0?[]:xo(c,this,p,g)}:c,[function(p,g){var v=pv(this),m=p==null?void 0:Ghe(p,u);return m?xo(m,p,v,g):xo(f,hu(v),p,g)},function(p,g){var v=Os(this),m=hu(p),y=d(f,v,m,g,f!==c);if(y.done)return y.value;var b=function(K,X){var z,R=Os(K).constructor;return R===void 0||(z=Os(R)[SCt])==null?X:function(j){if(t0e(j))return j;throw CCt(Khe(j)+" is not a constructor")}(z)}(v,RegExp),w=v.unicode,_=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Rh?"g":"y"),C=new b(Rh?"^(?:"+v.source+")":v,_),S=g===void 0?4294967295:g>>>0;if(S===0)return[];if(m.length===0)return wQ(C,m)===null?[m]:[];for(var E=0,k=0,A=[];k<m.length;){C.lastIndex=Rh?0:k;var D,B=wQ(C,Rh?M2(m,k):m);if(B===null||(D=MCt(Zhe(C.lastIndex+(Rh?k:0)),m.length))===E)k=OCt(m,k,w);else{if(Ih(A,M2(m,E,k)),A.length===S)return A;for(var M=1;M<=B.length-1;M++)if(Ih(A,B[M]),A.length===S)return A;k=E=D}}return Ih(A,M2(m,E)),A}]}(o,""[e],function(u,c,d,f,p){var g=jn(u),v=c.exec;return v===vy||v===Xx.exec?a&&!p?{done:!0,value:s(c,d,f)}:{done:!0,value:g(d,c,f)}:{done:!1}});hy(String.prototype,e,l[0]),hy(Xx,o,l[1])}r&&hv(Xx[o],"sham",!0)})("split",0,!!Oo(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Or(Or({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Or(Or({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Or(Or({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Or(Or({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var a=r.key,i=r.factory,s=r.config,l=Di(Di({},s),o||{});if(Fm[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");Fm[a]=i,function(u,c){c!=null&&($ue[u]=c)}(a,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;cce[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){pT.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;Vue[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){iT.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){oce.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;K8[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){bI.push(n)})(t)},e.registerModule=function(t){uf(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function uf(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,a=e.styleToHtml,i=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(c){return Jr.registerMenu(c)}),n&&n.forEach(function(c){return Jr.registerRenderElem(c)}),r&&Jr.registerRenderStyle(r),o&&o.forEach(function(c){return Jr.registerElemToHtml(c)}),a&&Jr.registerStyleToHtml(a),i&&i.forEach(function(c){return Jr.registerPreParseHtml(c)}),s&&s.forEach(function(c){return Jr.registerParseElemHtml(c)}),l&&Jr.registerParseStyleHtml(l),u&&Jr.registerPlugin(u)}q2t.forEach(function(e){return uf(e)}),uf(Eyt),uf(Xbt),uf(a_t),uf(X5t),uf($Ct);var v0e='<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>',g0e={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"]}},jCt={hoverbarKeys:Or(Or({},g0e),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Jr.setEditorConfig(Or(Or({},jCt),{decorate:h0e}));var HCt={hoverbarKeys:g0e};Jr.setSimpleEditorConfig(Or(Or({},HCt),{decorate:h0e}));var UCt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:pt("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:pt("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:pt("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:pt("editor.image"),iconSvg:v0e,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:pt("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"]};Jr.setToolbarConfig(UCt);var WCt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:pt("editor.image"),iconSvg:v0e,menuKeys:["insertImage","uploadImage"]},"inse