物管理前端
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.

1902 lines
3.6 MiB

  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dockerfile-P8izJOAf-CSgLXvLd.js","./simple-mode--HIzBxba-DiPDOxje.js","./factor-Uq0_GFro-BGcx0QMX.js","./nsis-gURxwqa7-BcAS7enX.js","./Design-Dd--99Jl.js","./dark-Bw0DsPx_.js","./Design-RX5q69De.css","./Form-ByDai518.js"])))=>i.map(i=>d[i]);
  2. (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const QLe="modulepreload",ULe=function(e,t){return new URL(e,t).href},gte={},Tt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=ULe(l,r),l in gte)return;gte[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const g=o[f];if(g.href===l&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":QLe,u||(h.as="script"),h.crossOrigin="",h.href=l,s&&h.setAttribute("nonce",s),document.head.appendChild(h),u)return new Promise((f,g)=>{h.addEventListener("load",f),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(o=>{for(const a of o||[]){if(a.status!=="rejected")continue;const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a.reason,window.dispatchEvent(s),!s.defaultPrevented)throw a.reason}return t()})};/**
  3. * @vue/shared v3.5.4
  4. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  5. * @license MIT
  6. **//*! #__NO_SIDE_EFFECTS__ */function HQ(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const io={},WC=[],Kd=()=>{},XLe=()=>!1,XM=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),zQ=e=>e.startsWith("onUpdate:"),Ga=Object.assign,ZQ=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},YLe=Object.prototype.hasOwnProperty,Fi=(e,t)=>YLe.call(e,t),er=Array.isArray,HC=e=>h_(e)==="[object Map]",YM=e=>h_(e)==="[object Set]",mte=e=>h_(e)==="[object Date]",Pr=e=>typeof e=="function",Zo=e=>typeof e=="string",Fp=e=>typeof e=="symbol",eo=e=>e!==null&&typeof e=="object",Mye=e=>(eo(e)||Pr(e))&&Pr(e.then)&&Pr(e.catch),Lye=Object.prototype.toString,h_=e=>Lye.call(e),KLe=e=>h_(e).slice(8,-1),Bye=e=>h_(e)==="[object Object]",GQ=e=>Zo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bk=HQ(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),KM=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qLe=/-(\w)/g,sh=KM(e=>e.replace(qLe,(t,n)=>n?n.toUpperCase():"")),JLe=/\B([A-Z])/g,E0=KM(e=>e.replace(JLe,"-$1").toLowerCase()),qM=KM(e=>e.charAt(0).toUpperCase()+e.slice(1)),r3=KM(e=>e?`on${qM(e)}`:""),i0=(e,t)=>!Object.is(e,t),i3=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fye=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},L7=e=>{const t=parseFloat(e);return isNaN(t)?e:t},eBe=e=>{const t=Zo(e)?Number(e):NaN;return isNaN(t)?e:t};let vte;const Nye=()=>vte||(vte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function En(e){if(er(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Zo(r)?iBe(r):En(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(Zo(e)||eo(e))return e}const tBe=/;(?![^(]*\))/g,nBe=/:([^]+)/,rBe=/\/\*[^]*?\*\//g;function iBe(e){const t={};return e.replace(rBe,"").split(tBe).forEach(n=>{if(n){const r=n.split(nBe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function De(e){let t="";if(Zo(e))t=e;else if(er(e))for(let n=0;n<e.length;n++){const r=De(e[n]);r&&(t+=r+" ")}else if(eo(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function k2(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Zo(t)&&(e.class=De(t)),n&&(e.style=En(n)),e}const oBe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aBe=HQ(oBe);function Vye(e){return!!e||e===""}function sBe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bO(e[r],t[r]);return n}function bO(e,t){if(e===t)return!0;let n=mte(e),r=mte(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Fp(e),r=Fp(t),n||r)return e===t;if(n=er(e),r=er(t),n||r)return n&&r?sBe(e,t):!1;if(n=eo(e),r=eo(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!bO(e[a],t[a]))return!1}}return String(e)===String(t)}function jye(e,t){return e.findIndex(n=>bO(n,t))}const Wye=e=>!!(e&&e.__v_isRef===!0),en=e=>Zo(e)?e:e==null?"":er(e)||eo(e)&&(e.toString===Lye||!Pr(e.toString))?Wye(e)?en(e.value):JSON.stringify(e,Hye,2):String(e),Hye=(e,t)=>Wye(t)?Hye(e,t.value):HC(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[wF(r,o)+" =>"]=i,n),{})}:YM(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wF(n))}:Fp(t)?wF(t):eo(t)&&!er(t)&&!Bye(t)?String(t):t,wF=(e,t="")=>{var n;return Fp(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
  7. * @vue/reactivity v3.5.4
  8. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  9. * @license MIT
  10. **/let kl;class lBe{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kl,!t&&kl&&(this.index=(kl.scopes||(kl.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=kl;try{return kl=this,t()}finally{kl=n}}}on(){kl=this}off(){kl=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function zye(){return kl}function Zye(e,t=!1){kl&&kl.cleanups.push(e)}let no;const CF=new WeakSet;class Gye{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,kl&&kl.active&&kl.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,CF.has(this)&&(CF.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=wk,wk=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yte(this),Uye(this);const t=no,n=qd;no=this,qd=!0;try{return this.fn()}finally{Xye(this),no=t,qd=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)XQ(t);this.deps=this.depsTail=void 0,yte(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?CF.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){B7(this)&&this.run()}get dirty(){return B7(this)}}let Qye=0,wk;function QQ(){Qye++}function UQ(){if(--Qye>0)return;let e;for(;wk;){let t=wk;for(wk=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Uye(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xye(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),XQ(r),uBe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function B7(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&Yye(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function Yye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===E2))return;e.globalVersion=E2;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!B7(e)){e.flags&=-3;return}const n=no,r=qd;no=e,qd=!0;try{Uye(e);const i=e.fn(e._value);(t.version===0||i0(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{no=n,qd=r,Xye(e),e.flags&=-3}}function XQ(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)XQ(i)}}function uBe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qd=!0;const Kye=[];function _0(){Kye.push(qd),qd=!1}function T0(){const e=Kye.pop();qd=e===void 0?!0:e}function yte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=no;no=void 0;try{t()}finally{no=n}}}let E2=0;class JM{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!no||!qd||no===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==no)n=this.activeLink={dep:this,sub:no,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},no.deps?(n.prevDep=no.depsTai
  11. * @vue/runtime-core v3.5.4
  12. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  13. * @license MIT
  14. **/function f_(e,t,n,r){try{return r?e(...r):e()}catch(i){nL(i,t,n)}}function lh(e,t,n,r){if(Pr(e)){const i=f_(e,t,n,r);return i&&Mye(i)&&i.catch(o=>{nL(o,t,n)}),i}if(er(e)){const i=[];for(let o=0;o<e.length;o++)i.push(lh(e[o],t,n,r));return i}}function nL(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||io;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(o){_0(),f_(o,null,10,[e,l,u]),T0();return}}NBe(e,n,i,r,a)}function NBe(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let T2=!1,N7=!1;const _l=[];let ep=0;const ZC=[];let tv=null,vC=0;const lbe=Promise.resolve();let nU=null;function mn(e){const t=nU||lbe;return e?t.then(this?e.bind(this):e):t}function VBe(e){let t=T2?ep+1:0,n=_l.length;for(;t<n;){const r=t+n>>>1,i=_l[r],o=P2(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function rU(e){if(!(e.flags&1)){const t=P2(e),n=_l[_l.length-1];!n||!(e.flags&2)&&t>=P2(n)?_l.push(e):_l.splice(VBe(t),0,e),e.flags|=1,ube()}}function ube(){!T2&&!N7&&(N7=!0,nU=lbe.then(dbe))}function jBe(e){er(e)?ZC.push(...e):tv&&e.id===-1?tv.splice(vC+1,0,e):e.flags&1||(ZC.push(e),e.flags|=1),ube()}function Ste(e,t,n=T2?ep+1:0){for(;n<_l.length;n++){const r=_l[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_l.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function cbe(e){if(ZC.length){const t=[...new Set(ZC)].sort((n,r)=>P2(n)-P2(r));if(ZC.length=0,tv){tv.push(...t);return}for(tv=t,vC=0;vC<tv.length;vC++){const n=tv[vC];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}tv=null,vC=0}}const P2=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dbe(e){N7=!1,T2=!0;try{for(ep=0;ep<_l.length;ep++){const t=_l[ep];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),f_(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;ep<_l.length;ep++){const t=_l[ep];t&&(t.flags&=-2)}ep=0,_l.length=0,cbe(),T2=!1,nU=null,(_l.length||ZC.length)&&dbe()}}let ws=null,rL=null;function B$(e){const t=ws;return ws=e,rL=e&&e.type.__scopeId||null,t}function hbe(e){rL=e}function pbe(){rL=null}function ot(e,t=ws,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Lte(-1);const o=B$(t);let a;try{a=e(...i)}finally{B$(o),r._d&&Lte(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kn(e,t){if(ws===null)return e;const n=cL(ws),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=io]=t[i];o&&(Pr(o)&&(o={mounted:o,updated:o}),o.deep&&Jf(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function yy(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(_0(),lh(l,n,8,[e.el,s,e,t]),T0())}}const fbe=Symbol("_vte"),gbe=e=>e.__isTeleport,Ck=e=>e&&(e.disabled||e.disabled===""),WBe=e=>e&&(e.defer||e.defer===""),Ate=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ite=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,V7=(e,t)=>{const n=e&&e.to;return Zo(n)?t?t(n):null:n},HBe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:g,createText:b,createComment:v}}=u,m=Ck(t.props);let{shapeFlag:w,children:k,dynamicChildren:T}=t;if(e==null){const S=t.el=b(""),I=t.anchor=b("");f(S,n,r),f(I,n,r);const O=(_,A)=>{w&16&&c(k,_,A,i,o,a,s,l)},y=()=>{const _=t.target=V7(t.props,g),A=mbe(_,t,b,f);_&&(a!=="svg"&&Ate(_)?a="svg":a!=="mathml"&&Ite(_)&&(a="mathml"),m||(O(_,A),o3(t)))};m&&(O(n,I),o3(t)),WBe(t.props)?ql(y,o):y()}else{t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,I=t.target=e.target,O=t.targetAnchor=e.targetAnchor,y=Ck(e.props),_=y?n:I,A=y?S:O;if(a==="svg"||Ate(I)?a="svg":(a==="mathml"||Ite(I))&&(a="mathml"),T?(h(e.dynamicChildren,T,_,i,o,a,s),cU(e,t,!0)):l||d(e,t,_,A,i,o,a,s,!1),m)y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):nD(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=V7(t.props,g);R&&nD(t,R,null,u,0)}else y&&nD(t,I,O,u,1);o3(t)}},remove(e,t,n,{um:r,o:{remove:i}},o)
  15. * @vue/runtime-dom v3.5.4
  16. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  17. * @license MIT
  18. **/let Q7;const Vte=typeof window<"u"&&window.trustedTypes;if(Vte)try{Q7=Vte.createPolicy("vue",{createHTML:e=>e})}catch{}const Xbe=Q7?e=>Q7.createHTML(e):e=>e,W9e="http://www.w3.org/2000/svg",H9e="http://www.w3.org/1998/Math/MathML",Zf=typeof document<"u"?document:null,jte=Zf&&Zf.createElement("template"),z9e={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 i=t==="svg"?Zf.createElementNS(W9e,e):t==="mathml"?Zf.createElementNS(H9e,e):n?Zf.createElement(e,{is:n}):Zf.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Zf.createTextNode(e),createComment:e=>Zf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{jte.innerHTML=Xbe(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=jte.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[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vm="transition",cA="animation",wO=Symbol("_vtc"),Ybe={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},Kbe=Ga({},ybe,Ybe),Z9e=e=>(e.displayName="Transition",e.props=Kbe,e),ic=Z9e((e,{slots:t})=>Yn(GBe,qbe(e),t)),wy=(e,t=[])=>{er(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wte=e=>e?er(e)?e.some(t=>t.length>1):e.length>1:!1;function qbe(e){const t={};for(const D in e)D in Ybe||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=G9e(i),b=g&&g[0],v=g&&g[1],{onBeforeEnter:m,onEnter:w,onEnterCancelled:k,onLeave:T,onLeaveCancelled:S,onBeforeAppear:I=m,onAppear:O=w,onAppearCancelled:y=k}=t,_=(D,C,x)=>{Ym(D,C?c:s),Ym(D,C?u:a),x&&x()},A=(D,C)=>{D._isLeaving=!1,Ym(D,d),Ym(D,f),Ym(D,h),C&&C()},R=D=>(C,x)=>{const P=D?O:w,$=()=>_(C,D,x);wy(P,[C,$]),Hte(()=>{Ym(C,D?l:o),Wf(C,D?c:s),Wte(P)||zte(C,r,b,$)})};return Ga(t,{onBeforeEnter(D){wy(m,[D]),Wf(D,o),Wf(D,a)},onBeforeAppear(D){wy(I,[D]),Wf(D,l),Wf(D,u)},onEnter:R(!1),onAppear:R(!0),onLeave(D,C){D._isLeaving=!0;const x=()=>A(D,C);Wf(D,d),Wf(D,h),e1e(),Hte(()=>{D._isLeaving&&(Ym(D,d),Wf(D,f),Wte(T)||zte(D,r,v,x))}),wy(T,[D,x])},onEnterCancelled(D){_(D,!1),wy(k,[D])},onAppearCancelled(D){_(D,!0),wy(y,[D])},onLeaveCancelled(D){A(D),wy(S,[D])}})}function G9e(e){if(e==null)return null;if(eo(e))return[EF(e.enter),EF(e.leave)];{const t=EF(e);return[t,t]}}function EF(e){return eBe(e)}function Wf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wO]||(e[wO]=new Set)).add(t)}function Ym(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[wO];n&&(n.delete(t),n.size||(e[wO]=void 0))}function Hte(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Q9e=0;function zte(e,t,n,r){const i=e._endId=++Q9e,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=Jbe(e,t);if(!a)return r();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,h),o()},h=f=>{f.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},s+1),e.addEventListener(u,h)}function Jbe(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),i=r(`${vm}Delay`),o=r(`${vm}Duration`),a=Zte(i,o),s=r(`${cA}Delay`),l=r(`${cA}Duration`),u=Zte(s,l);let c=null,d=0,h=0;t===vm?a>
  19. `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&bNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cne=Symbol("internals");function hA(e){return e&&String(e).trim().toLowerCase()}function c3(e){return e===!1||e==null?e:qt.isArray(e)?e.map(c3):String(e)}function CNe(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 ONe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function DF(e,t,n,r,i){if(qt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!qt.isString(t)){if(qt.isString(r))return t.indexOf(r)!==-1;if(qt.isRegExp(r))return r.test(t)}}function xNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function SNe(e,t){const n=qt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class gL{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=hA(l);if(!c)throw new Error("header name must be a non-empty string");const d=qt.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=c3(s))}const a=(s,l)=>qt.forEach(s,(u,c)=>o(u,c,l));return qt.isPlainObject(t)||t instanceof this.constructor?a(t,n):qt.isString(t)&&(t=t.trim())&&!ONe(t)?a(wNe(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=hA(t),t){const r=qt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return CNe(i);if(qt.isFunction(n))return n.call(this,i,r);if(qt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hA(t),t){const r=qt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||DF(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=hA(a),a){const s=qt.findKey(r,a);s&&(!n||DF(r,r[s],s,n))&&(delete r[s],i=!0)}}return qt.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||DF(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return qt.forEach(this,(i,o)=>{const a=qt.findKey(r,o);if(a){n[a]=c3(i),delete n[o];return}const s=t?xNe(o):String(o).trim();s!==o&&delete n[o],n[s]=c3(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return qt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&qt.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(`
  20. `)}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(i=>r.set(i)),r}static accessor(t){const n=(this[cne]=this[cne]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=hA(o);n[a]||(SNe(r,o),n[a]=!0)}return qt.isArray(t)?t.forEach(i):i(t),this}}gL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);qt.reduceDescriptors(gL.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});qt.freezeMethods(gL);const ug=gL;function RF(e,t){const n=this||vU,r=t||n,i=ug.from(r.headers);let o=r.data;return qt.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function k1e(e){return!!(e&&e.__CANCEL__)}function y_(e,t,n){Ci.call(this,e??"canceled",Ci.ERR_CANCELED,t,n),this.name="CanceledError"}qt.inherits(y_,Ci,{__CANCEL__:!0});function ANe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ci("Request failed with status code "+n.status,[Ci.ERR_BAD_REQUEST,Ci.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const INe=vp.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];qt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qt.isString(r)&&a.push("path="+r),qt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 kNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ENe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function E1e(e,t){return e&&!kNe(t)?ENe(e,t):t}const _Ne=vp.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(i){const o=qt.isString(i)?r(i):i;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function TNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function PNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),u=r[o];a||(a=l),n[i]=s,r[i]=l;let c=o,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const h=u&&l-u;return h?Math.round(d*1e3/h):void 0}}function dne(e,t){let n=0;const r=PNe(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const DNe=typeof XMLHttpRequest<"u",RNe=DNe&&function(e){return new Promise(function(t,n){let r=e.data;const i=ug.from(e.headers).normalize();let{responseType:o,withXSRFToken:a}=e,s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let u;if(qt.isFormData(r)){if(vp.hasStandardBrowserEnv||vp.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[g,...b]=u?u.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=E1e(e.baseURL,e.url);c.open(e.method.toUpperCase(),x1e(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const g=ug.from("getAllResponseHe
  21. `+o.map(hne).join(`
  22. `):" "+hne(o[0]):"as no adapter specified";throw new Ci("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:q7};function $F(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new y_(null,e)}function pne(e){return $F(e),e.headers=ug.from(e.headers),e.data=RF.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_1e.getAdapter(e.adapter||vU.adapter)(e).then(function(t){return $F(e),t.data=RF.call(e,e.transformResponse,t),t.headers=ug.from(t.headers),t},function(t){return k1e(t)||($F(e),t&&t.response&&(t.response.data=RF.call(e,e.transformResponse,t.response),t.response.headers=ug.from(t.response.headers))),Promise.reject(t)})}const fne=e=>e instanceof ug?e.toJSON():e;function OO(e,t){t=t||{};const n={};function r(u,c,d){return qt.isPlainObject(u)&&qt.isPlainObject(c)?qt.merge.call({caseless:d},u,c):qt.isPlainObject(c)?qt.merge({},c):qt.isArray(c)?c.slice():c}function i(u,c,d){if(qt.isUndefined(c)){if(!qt.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!qt.isUndefined(c))return r(void 0,c)}function a(u,c){if(qt.isUndefined(c)){if(!qt.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:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(fne(u),fne(c),!0)};return qt.forEach(Object.keys(Object.assign({},e,t)),function(u){const c=l[u]||i,d=c(e[u],t[u],u);qt.isUndefined(d)&&c!==s||(n[u]=d)}),n}const T1e="1.6.2",yU={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yU[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gne={};yU.transitional=function(e,t,n){function r(i,o){return"[Axios v"+T1e+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,a)=>{if(e===!1)throw new Ci(r(o," has been removed"+(t?" in "+t:"")),Ci.ERR_DEPRECATED);return t&&!gne[o]&&(gne[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function MNe(e,t,n){if(typeof e!="object")throw new Ci("options must be an object",Ci.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Ci("option "+o+" must be "+l,Ci.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ci("Unknown option "+o,Ci.ERR_BAD_OPTION)}}const J7={assertOptions:MNe,validators:yU},ym=J7.validators;class z${constructor(t){this.defaults=t,this.interceptors={request:new une,response:new une}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=OO(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&J7.assertOptions(r,{silentJSONParsing:ym.transitional(ym.boolean),forcedJSONParsing:ym.transitional(ym.boolean),clarifyTimeoutError:ym.transitional(ym.boolean)},!1),i!=null&&(qt.isFunction(i)?n.paramsSerializer={serialize:i}:J7.assertOptions(i,{encode:ym.function,serialize:ym.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&qt.merge(o.common,o[n.method]);o&&qt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ug.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,h;if(!l){const g=[pne.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),h=g.length,c=Promise.resolve(n);d<h;)c=c.then(g[d++],g[d++]);return
  23. (?:
  24. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  25. (?:`+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
  26. (?:`+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
  27. (?:`+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
  28. (?:`+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
  29. (?:`+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
  30. (?:`+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
  31. (?::(?:(?::`+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
  32. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  33. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(k){return k&&k.exact?o:new RegExp("(?:"+t(k)+n+t(k)+")|(?:"+t(k)+i+t(k)+")","g")};l.v4=function(k){return k&&k.exact?a:new RegExp(""+t(k)+n+t(k),"g")},l.v6=function(k){return k&&k.exact?s:new RegExp(""+t(k)+i+t(k),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+h+"|"+f+g+b+")"+v+m;return uD=new RegExp("(?:^"+w+"$)","i"),uD},_re={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},XI={integer:function(e){return XI.number(e)&&parseInt(e,10)===e},float:function(e){return XI.number(e)&&!XI.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!XI.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(_re.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(MGe())},hex:function(e){return typeof e=="string"&&!!e.match(_re.hex)}},LGe=function(e,t,n,r,i){if(e.required&&t===void 0){nCe(e,t,n,r,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?XI[a](t)||r.push(Ku(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(Ku(i.messages.types[a],e.fullField,e.type))},BGe=function(e,t,n,r,i){var o=typeof e.len=="number",a=typeof e.min=="number",s=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,c=null,d=typeof t=="number",h=typeof t=="string",f=Array.isArray(t);if(d?c="number":h?c="string":f&&(c="array"),!c)return!1;f&&(u=t.length),h&&(u=t.replace(l,"_").length),o?u!==e.len&&r.push(Ku(i.messages[c].len,e.fullField,e.len)):a&&!s&&u<e.min?r.push(Ku(i.messages[c].min,e.fullField,e.min)):s&&!a&&u>e.max?r.push(Ku(i.messages[c].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&r.push(Ku(i.messages[c].range,e.fullField,e.min,e.max))},Tw="enum",FGe=function(e,t,n,r,i){e[Tw]=Array.isArray(e[Tw])?e[Tw]:[],e[Tw].indexOf(t)===-1&&r.push(Ku(i.messages[Tw],e.fullField,e[Tw].join(", ")))},NGe=function(e,t,n,r,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ku(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(t)||r.push(Ku(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},li={required:nCe,whitespace:$Ge,type:LGe,range:BGe,enum:FGe,pattern:NGe},VGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t,"string")&&!e.required)return n();li.required(e,t,r,o,i,"string"),ls(t,"string")||(li.type(e,t,r,o,i),li.range(e,t,r,o,i),li.pattern(e,t,r,o,i),e.whitespace===!0&&li.whitespace(e,t,r,o,i))}n(o)},jGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&li.type(e,t,r,o,i)}n(o)},WGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(t===""&&(t=void 0),ls(t)&&!e.required)return n();li.required(e,t,r,o,i),t!==void 0&&(li.type(e,t,r,o,i),li.range(e,t,r,o,i))}n(o)},HGe=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){
  34. height:0 !important;
  35. visibility:hidden !important;
  36. ${v6e()?"":"overflow:hidden !important;"}
  37. position:absolute !important;
  38. z-index:-1000 !important;
  39. top:0 !important;
  40. right:0 !important;
  41. `,uQe=["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 cQe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:uQe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function Pre(e,t=1,n){var r;Ld||(Ld=document.createElement("textarea"),document.body.appendChild(Ld));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=cQe(e);Ld.setAttribute("style",`${s};${lQe}`),Ld.value=e.value||e.placeholder||"";let l=Ld.scrollHeight;const u={};a==="border-box"?l=l+o:a==="content-box"&&(l=l-i),Ld.value="";const c=Ld.scrollHeight-i;if($r(t)){let d=c*t;a==="border-box"&&(d=d+i+o),l=Math.max(d,l),u.minHeight=`${d}px`}if($r(n)){let d=c*n;a==="border-box"&&(d=d+i+o),l=Math.min(d,l)}return u.height=`${l}px`,(r=Ld.parentNode)==null||r.removeChild(Ld),Ld=void 0,u}const dQe=Tn({id:{type:String,default:void 0},size:Fl,disabled:Boolean,modelValue:{type:jt([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:jt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iu},prefixIcon:{type:iu},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:jt([Object,Array,String]),default:()=>dh({})},autofocus:{type:Boolean,default:!1}}),hQe={[ur]:e=>vi(e),input:e=>vi(e),change:e=>vi(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},pQe=["role"],fQe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],gQe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],mQe=ft({name:"ElInput",inheritAttrs:!1}),vQe=ft({...mQe,props:dQe,emits:hQe,setup(e,{expose:t,emit:n}){const r=e,i=g_(),o=yd(),a=Oe(()=>{const me={};return r.containerRole==="combobox"&&(me["aria-haspopup"]=i["aria-haspopup"],me["aria-owns"]=i["aria-owns"],me["aria-expanded"]=i["aria-expanded"]),me}),s=Oe(()=>[r.type==="textarea"?v.b():b.b(),b.m(f.value),b.is("disabled",g.value),b.is("exceed",ue.value),{[b.b("group")]:o.prepend||o.append,[b.bm("group","append")]:o.append,[b.bm("group","prepend")]:o.prepend,[b.m("prefix")]:o.prefix||r.prefixIcon,[b.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[b.bm("suffix","password-clear")]:Q.value&&U.value},i.class]),l=Oe(()=>[b.e("wrapper"),b.is("focus",A.value)]),u=wze({excludeKeys:Oe(()=>Object.keys(a.value))}),{form:c,formItem:d}=bu(),{inputId:h}=D0(r,{formItemContext:d}),f=js(),g=bd(),b=cn("input"),v=cn("textarea"),m=so(),w=so(),k=Re(!1),T=Re(!1),S=Re(!1),I=Re(),O=so(r.inputStyle),y=Oe(()=>m.value||w.value),{wrapperRef:_,isFocused:A,handleFocus:R,handleBlur:D}=qwe(y,{afterBlur(){var me;r.validateEvent&&((me=d==null?void 0:d.validate)==null||me.call(d,"blur").catch(Ae=>void 0))}}),C=Oe(()=>{var me;return(me=c==null?void 0:c.statusIcon)!=null?me:!1}),x=Oe(()=>(d==null?void 0:d.validateState)||""),P=Oe(()=>x.value&&Awe[x.value]),$=Oe(()=>S.value?ize:ZHe),L=Oe(()=>[
  42. * Checks if an event is supported in the current execution environment.
  43. *
  44. * NOTE: This will not work correctly for non-generic events such as `change`,
  45. * `reset`, `load`, `error`, and `select`.
  46. *
  47. * Borrows from Modernizr.
  48. *
  49. * @param {string} eventNameSuffix Event name, e.g. "click".
  50. * @param {?boolean} capture Check if the capture phase is supported.
  51. * @return {boolean} True if the event is supported.
  52. * @internal
  53. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  54. */const DXe=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=PXe(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},RXe={beforeMount(e,t){DXe(e,t.value)}},$Xe=Tn({role:{type:String,required:!0},spinnerDate:{type:jt(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:jt(String),default:""},...xCe}),MXe=["onClick"],LXe=["onMouseenter"],BXe=ft({__name:"basic-time-spinner",props:$Xe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=cn("time"),{getHoursList:i,getMinutesList:o,getSecondsList:a}=ACe(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=Re(),u=Re(),c=Re(),d=Re(),h={hours:u,minutes:c,seconds:d},f=Oe(()=>n.showSeconds?Zre:Zre.slice(0,2)),g=Oe(()=>{const{spinnerDate:H}=n,Q=H.hour(),U=H.minute(),K=H.second();return{hours:Q,minutes:U,seconds:K}}),b=Oe(()=>{const{hours:H,minutes:Q}=W(g);return{hours:i(n.role),minutes:o(H,n.role),seconds:a(H,Q,n.role)}}),v=Oe(()=>{const{hours:H,minutes:Q,seconds:U}=W(g);return{hours:GF(H,23),minutes:GF(Q,59),seconds:GF(U,59)}}),m=ch(H=>{s=!1,T(H)},200),w=H=>{if(!n.amPmMode)return"";const Q=n.amPmMode==="A";let U=H<12?" am":" pm";return Q&&(U=U.toUpperCase()),U},k=H=>{let Q;switch(H){case"hours":Q=[0,2];break;case"minutes":Q=[3,5];break;case"seconds":Q=[6,8];break}const[U,K]=Q;t("select-range",U,K),l.value=H},T=H=>{O(H,W(g)[H])},S=()=>{T("hours"),T("minutes"),T("seconds")},I=H=>H.querySelector(`.${r.namespace.value}-scrollbar__wrap`),O=(H,Q)=>{if(n.arrowControl)return;const U=W(h[H]);U&&U.$el&&(I(U.$el).scrollTop=Math.max(0,Q*y(H)))},y=H=>{const Q=W(h[H]),U=Q==null?void 0:Q.$el.querySelector("li");return U&&Number.parseFloat(Ky(U,"height"))||0},_=()=>{R(1)},A=()=>{R(-1)},R=H=>{l.value||k("hours");const Q=l.value,U=W(g)[Q],K=l.value==="hours"?24:60,J=D(Q,U,H,K);C(Q,J),O(Q,J),mn(()=>k(Q))},D=(H,Q,U,K)=>{let J=(Q+U+K)%K;const ue=W(b)[H];for(;ue[J]&&J!==Q;)J=(J+U+K)%K;return J},C=(H,Q)=>{if(W(b)[H][Q])return;const{hours:U,minutes:K,seconds:J}=W(g);let ue;switch(H){case"hours":ue=n.spinnerDate.hour(Q).minute(K).second(J);break;case"minutes":ue=n.spinnerDate.hour(U).minute(Q).second(J);break;case"seconds":ue=n.spinnerDate.hour(U).minute(K).second(Q);break}t("change",ue)},x=(H,{value:Q,disabled:U})=>{U||(C(H,Q),k(H),O(H,Q))},P=H=>{s=!0,m(H);const Q=Math.min(Math.round((I(W(h[H]).$el).scrollTop-($(H)*.5-10)/y(H)+3)/y(H)),H==="hours"?23:59);C(H,Q)},$=H=>W(h[H]).$el.offsetHeight,L=()=>{const H=Q=>{const U=W(h[Q]);U&&U.$el&&(I(U.$el).onscroll=()=>{P(Q)})};H("hours"),H("minutes"),H("seconds")};_n(()=>{mn(()=>{!n.arrowControl&&L(),S(),n.role==="start"&&k("hours")})});const V=(H,Q)=>{h[Q].value=H};return t("set-option",[`${n.role}_scrollDown`,R]),t("set-option",[`${n.role}_emitSelectRange`,k]),Pt(()=>n.spinnerDate,()=>{s||S()}),(H,Q)=>(Ce(),We("div",{class:De([W(r).b("spinner"),{"has-seconds":H.showSeconds}])},[H.arrowControl?xt("v-if",!0):(Ce(!0),We(un,{key:0},xr(W(f),U=>(Ce(),mt(W(Tx),{key:U,ref_for:!0,ref:K=>V(K,U),class:De(W(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":W(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:K=>k(U),onMousemove:K=>T(U)},{default:ot(()=>[(Ce(!0),We(un,null,xr(W(b)[U],(K,J)=>(Ce(),We("li",{key:J,class:De([W(r).be("spinner","item"),W(r).is("active",J===W(g)[U]),W(r).is("disabled",K)]),onClick:ue=>x(U,{value:J,disabled:K})},[U==="hours"?(Ce(),We(un,{key:0},[gr(en(("0"+(H.amPmMode?J%12||12:J)).slice(-2))+en(w(J)),1)],64)):(Ce(),We(un,{key:1},[gr(en(("0"+J).slice(-2)),1)],64))],10,MXe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),H.arrowControl?(Ce(!0),We(un,{key:1},xr(W(f),U=>(Ce(),We("div",{key:U,class:De([W(r).be("spinner","wrapper"),W(r).is("arrow")]),onMouseenter:K=>k(U)},[Kn((Ce(),mt(W(Ln),{class:De(["arrow-up",W(r).be("spinner","arrow")])},{default:ot(()=>[xe(W(FU))]),_:1},8,["class"])),[[W(e5),A]]),Kn((Ce(),mt(W(Ln),{class:De(["arrow-down",W(r).be("spinner","arrow")])},{default:ot(()=>[xe(W(Ax))]),_:1},8,["class"])),[[W(e5),_]]),at("ul",{class:De(W(r).be("spinn
  55. Add an empty element to avoid render label,
  56. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  57. `),TYe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(Ce(),mt(u,{key:2,class:De(e.ns.e("prefix"))},{default:ot(()=>[xe(l)]),_:1},8,["class"])):xt("v-if",!0),xt(" content "),xe(c),xt(" postfix "),e.isLeaf?xt("v-if",!0):(Ce(),We(un,{key:3},[e.node.loading?(Ce(),mt(u,{key:0,class:De([e.ns.is("loading"),e.ns.e("postfix")])},{default:ot(()=>[xe(d)]),_:1},8,["class"])):(Ce(),mt(u,{key:1,class:De(["arrow-right",e.ns.e("postfix")])},{default:ot(()=>[xe(h)]),_:1},8,["class"]))],64))],42,_Ye)}var DYe=Bn(EYe,[["render",PYe],["__file","node.vue"]]);const RYe=ft({name:"ElCascaderMenu",components:{Loading:kx,ElIcon:Ln,ElScrollbar:Tx,ElCascaderNode:DYe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=dr(),n=cn("cascader-menu"),{t:r}=uo(),i=WU();let o=null,a=null;const s=Ht(nX),l=Re(null),u=Oe(()=>!e.nodes.length),c=Oe(()=>!s.initialLoaded),d=Oe(()=>`cascader-menu-${i}-${e.index}`),h=v=>{o=v.target},f=v=>{if(!(!s.isHoverMenu||!o||!l.value))if(o.contains(v.target)){g();const m=t.vnode.el,{left:w}=m.getBoundingClientRect(),{offsetWidth:k,offsetHeight:T}=m,S=v.clientX-w,I=o.offsetTop,O=I+o.offsetHeight;l.value.innerHTML=`
  58. <path style="pointer-events: auto;" fill="transparent" d="M${S} ${I} L${k} 0 V${I} Z" />
  59. <path style="pointer-events: auto;" fill="transparent" d="M${S} ${O} L${k} ${T} V${O} Z" />
  60. `}else a||(a=window.setTimeout(b,s.config.hoverThreshold))},g=()=>{a&&(clearTimeout(a),a=null)},b=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:h,handleMouseMove:f,clearHoverZone:b}}});function $Ye(e,t,n,r,i,o){const a=Ar("el-cascader-node"),s=Ar("loading"),l=Ar("el-icon"),u=Ar("el-scrollbar");return Ce(),mt(u,{key:e.menuId,tag:"ul",role:"menu",class:De(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:ot(()=>{var c;return[(Ce(!0),We(un,null,xr(e.nodes,d=>(Ce(),mt(a,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(Ce(),We("div",{key:0,class:De(e.ns.e("empty-text"))},[xe(l,{size:"14",class:De(e.ns.is("loading"))},{default:ot(()=>[xe(s)]),_:1},8,["class"]),gr(" "+en(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(Ce(),We("div",{key:1,class:De(e.ns.e("empty-text"))},en(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(Ce(),We("svg",{key:2,ref:"hoverZone",class:De(e.ns.e("hover-zone"))},null,2)):xt("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var MYe=Bn(RYe,[["render",$Ye],["__file","menu.vue"]]);let LYe=0;const BYe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let TW=class PW{constructor(t,n,r,i=!1){this.data=t,this.config=n,this.parent=r,this.root=i,this.uid=LYe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:a,children:s}=n,l=t[s],u=BYe(this);this.level=i?0:r?r.level+1:1,this.value=t[o],this.label=t[a],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 PW(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Vc(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:i,checkStrictly:o}=r;return(_i(i)?i(t,this):!!t[i])||!o&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:i}=this,{lazy:o,leaf:a}=n,s=_i(a)?a(t,this):t[a];return rl(s)?o&&!i?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,i=new PW(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(i),i}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${dp(t)}`;this.children.forEach(i=>{i&&(i.broadcast(t,...n),i[r]&&i[r](...n))})}emit(t,...n){const{parent:r}=this,i=`onChild${dp(t)}`;r&&(r[i]&&r[i](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(i=>!i.isDisabled),r=n.length?n.every(i=>i.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((i,o)=>{const a=o.checked?1:o.indeterminate?.5:0;return i+a},0);this.checked=this.loaded&&this.children.filter(i=>!i.isDisabled).every(i=>i.loaded&&i.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 DW=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(DW(r.children,t))),n),[]);class rie{constructor(t,n){this.config=n;const r=(t||[]).map(i=>new TW(i,this.config));this.nodes=r,this.allNodes=DW(r,!1),this.leafNodes=DW(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new TW(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(r=>Ep(r.value,t)||Ep(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:n,level:r})=>Ep(t.value,n)&&t.
  61. M 50 50
  62. m 0 ${T?"":"-"}${k}
  63. a ${k} ${k} 0 1 1 0 ${T?"-":""}${k*2}
  64. a ${k} ${k} 0 1 1 0 ${T?"":"-"}${k*2}
  65. `}),l=Oe(()=>2*Math.PI*a.value),u=Oe(()=>t.type==="dashboard"?.75:1),c=Oe(()=>`${-1*l.value*(1-u.value)/2}px`),d=Oe(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),h=Oe(()=>({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"})),f=Oe(()=>{let k;return t.color?k=w(t.percentage):k=n[t.status]||n.default,k}),g=Oe(()=>t.status==="warning"?VU:t.type==="line"?t.status==="success"?NU:Ix:t.status==="success"?SL:yg),b=Oe(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=Oe(()=>t.format(t.percentage));function m(k){const T=100/k.length;return k.map((S,I)=>vi(S)?{color:S,percentage:(I+1)*T}:S).sort((S,I)=>S.percentage-I.percentage)}const w=k=>{var T;const{color:S}=t;if(_i(S))return S(k);if(vi(S))return S;{const I=m(S);for(const O of I)if(O.percentage>k)return O.color;return(T=I[I.length-1])==null?void 0:T.color}};return(k,T)=>(Ce(),We("div",{class:De([W(r).b(),W(r).m(k.type),W(r).is(k.status),{[W(r).m("without-text")]:!k.showText,[W(r).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(Ce(),We("div",{key:0,class:De(W(r).b("bar"))},[at("div",{class:De(W(r).be("bar","outer")),style:En({height:`${k.strokeWidth}px`})},[at("div",{class:De([W(r).be("bar","inner"),{[W(r).bem("bar","inner","indeterminate")]:k.indeterminate},{[W(r).bem("bar","inner","striped")]:k.striped},{[W(r).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:En(W(i))},[(k.showText||k.$slots.default)&&k.textInside?(Ce(),We("div",{key:0,class:De(W(r).be("bar","innerText"))},[rn(k.$slots,"default",{percentage:k.percentage},()=>[at("span",null,en(W(v)),1)])],2)):xt("v-if",!0)],6)],6)],2)):(Ce(),We("div",{key:1,class:De(W(r).b("circle")),style:En({height:`${k.width}px`,width:`${k.width}px`})},[(Ce(),We("svg",Iet,[at("path",{class:De(W(r).be("circle","track")),d:W(s),stroke:`var(${W(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":W(o),fill:"none",style:En(W(d))},null,14,ket),at("path",{class:De(W(r).be("circle","path")),d:W(s),stroke:W(f),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":W(o),style:En(W(h))},null,14,Eet)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(Ce(),We("div",{key:2,class:De(W(r).e("text")),style:En({fontSize:`${W(b)}px`})},[rn(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(Ce(),mt(W(Ln),{key:1},{default:ot(()=>[(Ce(),mt(ei(W(g))))]),_:1})):(Ce(),We("span",_et,en(W(v)),1))])],6)):xt("v-if",!0)],10,Aet))}});var Det=Bn(Pet,[["__file","progress.vue"]]);const Ret=Xi(Det),$et=Tn({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:jt([Array,Object]),default:()=>dh(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:jt([Array,Object]),default:()=>[aD,aD,aD]},voidIcon:{type:iu,default:()=>tze},disabledVoidIcon:{type:iu,default:()=>aD},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:jt(Array),default:()=>dh(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Fl,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Met={[Ua]:e=>$r(e),[ur]:e=>$r(e)},Let=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Bet=["onMousemove","onClick"],Fet=ft({name:"ElRate"}),Net=ft({...Fet,props:$et,emits:Met,setup(e,{expose:t,emit:n}){const r=e;function i($,L){const V=U=>Ha(U),H=Object.keys(L).map(U=>+U).filter(U=>{const K=L[U];return V(K)&&K.excluded?$<U:$<=U}).sort((U,K)=>U-K),Q=L[H[0]];return V(Q)&&Q.value||Q}const o=Ht(A1,void 0),a=Ht(d0,void 0),s=js(),l=cn("rate"),{inputId:u,isLabeledByFormItem:c}=D0(r,{formItemContext:a}),d=Re(r.mod
  66. * escape-html
  67. * Copyright(c) 2012-2013 TJ Holowaychuk
  68. * Copyright(c) 2015 Andreas Lubbe
  69. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  70. * MIT Licensed
  71. */var Rtt=/["'&<>]/,$tt=Mtt;function Mtt(e){var t=""+e,n=Rtt.exec(t);if(!n)return t;var r,i="",o=0,a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==o&&(i+=t.substring(a,o)),a=o+1,i+=r}return a!==o?i+t.substring(a,o):i}const Ltt=pl($tt),qF=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Btt=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?Ys(s,u):u(s,l,e))):(t!=="$key"&&Ha(s)&&"$value"in s&&(s=s.$value),[Ha(s)?Ys(s,t):s])},a=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:o?o(s,l):null})).sort((s,l)=>{let u=a(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},wOe=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},Ftt=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const i=e.columns[r];if(i.columnKey===t){n=i;break}}return n||hc("ElTable",`No column matching with column-key: ${t}`),n},fie=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?wOe(e,r[0]):null},Bs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},sb=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[Bs(r,t)]={row:r,index:i}}),n};function Ntt(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(vg(t,r)){const i=t[r];typeof i<"u"&&(n[r]=i)}return n}function lX(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function COe(e){return e===""||e!==void 0&&(e=lX(e),Number.isNaN(e)&&(e=80)),e}function Vtt(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function jtt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Pk(e,t,n){let r=!1;const i=e.indexOf(t),o=i!==-1,a=s=>{s==="add"?e.push(t):e.splice(i,1),r=!0,Tr(t.children)&&t.children.forEach(l=>{Pk(e,l,n??!o)})};return ol(n)?n&&!o?a("add"):!n&&o&&a("remove"):a(o?"remove":"add"),r}function Wtt(e,t,n="children",r="hasChildren"){const i=a=>!(Array.isArray(a)&&a.length);function o(a,s,l){t(a,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const c=u[n];i(c)||o(u,c,l+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const s=a[n];i(s)||o(a,s,0)})}let Nd;function Htt(e,t,n,r,i){i=gwe({enterable:!0,showArrow:!0},i);const o=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${o}-scrollbar__wrap`);function s(){const w=i.effect==="light",k=document.createElement("div");return k.className=[`${o}-popper`,w?"is-light":"is-dark",i.popperClass||""].join(" "),n=Ltt(n),k.innerHTML=n,k.style.zIndex=String(r()),e==null||e.appendChild(k),k}function l(){const w=document.createElement("div");return w.className=`${o}-popper__arrow`,w}function u(w){return{name:"updateState",enabled:!0,phase:"beforeWrite",fn:({state:k})=>{k.styles.popper.display=w},requires:["computeStyles"]}}function c(){i.showAfter&&(h==null||h.setOptions({modifiers:[u("block")]})),h==null||h.update()}const d=(Nd==null?void 0:Nd.trigger)!==t;Nd==null||Nd(),Nd=()=>{try{h&&h.destroy(),b&&(e==null||e.removeChild(b)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",g),a==null||a.removeEventListener("scroll",Nd),Nd=void 0}catch{}},Nd.trigger=t;let h=null;const{onOpen:f,onClose:g}=Qwe({showAfter:i.showAfter,hideAfter:i.hideAfter,open:c,close:Nd}),b=s();i.enterable&&(b.onmouseenter=f,b.onmouseleave=g);const v=[];if(i.offset&&v.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const w=b.appendChild(l());v.push({name:"arrow",options:{
  72. * @license
  73. * Lodash <https://lodash.com/>
  74. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  75. * Released under MIT license <https://lodash.com/license>
  76. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  77. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  78. */r5.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",d=1,h=2,f=4,g=1,b=2,v=1,m=2,w=4,k=8,T=16,S=32,I=64,O=128,y=256,_=512,A=30,R="...",D=800,C=16,x=1,P=2,$=3,L=1/0,V=9007199254740991,H=17976931348623157e292,Q=NaN,U=4294967295,K=U-1,J=U>>>1,ue=[["ary",O],["bind",v],["bindKey",m],["curry",k],["curryRight",T],["flip",_],["partial",S],["partialRight",I],["rearg",y]],ee="[object Arguments]",N="[object Array]",q="[object AsyncFunction]",G="[object Boolean]",ne="[object Date]",le="[object DOMException]",oe="[object Error]",ve="[object Function]",de="[object GeneratorFunction]",ae="[object Map]",be="[object Number]",ie="[object Null]",ce="[object Object]",pe="[object Promise]",X="[object Proxy]",Z="[object RegExp]",Y="[object Set]",se="[object String]",fe="[object Symbol]",me="[object Undefined]",Ae="[object WeakMap]",Be="[object WeakSet]",Ye="[object ArrayBuffer]",Qe="[object DataView]",nt="[object Float32Array]",st="[object Float64Array]",Le="[object Int8Array]",Me="[object Int16Array]",je="[object Int32Array]",Ue="[object Uint8Array]",Te="[object Uint8ClampedArray]",bt="[object Uint16Array]",At="[object Uint32Array]",ht=/\b__p \+= '';/g,Pe=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,He=RegExp(dt.source),wt=RegExp(Mt.source),Ee=/<%-([\s\S]+?)%>/g,Xe=/<%([\s\S]+?)%>/g,ct=/<%=([\s\S]+?)%>/g,_t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qt=/^\w*$/,ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/[\\^$.*+?()[\]{}|]/g,hr=RegExp(kn.source),pr=/^\s+/,Wr=/\s/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,$t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/[()=,{}\[\]\/\s]/,Mn=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kt=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,nn=/^0b[01]+$/i,Cn=/^\[object .+?Constructor\]$/,Pn=/^0o[0-7]+$/i,lt=/^(?:0|[1-9]\d*)$/,It=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,on=/['\n\r\u2028\u2029\\]/g,Vn="\\ud800-\\udfff",Ur="\\u0300-\\u036f",yr="\\ufe20-\\ufe2f",Fn="\\u20d0-\\u20ff",dn=Ur+yr+Fn,ri="\\u2700-\\u27bf",ji="a-z\\xdf-\\xf6\\xf8-\\xff",ci="\\xac\\xb1\\xd7\\xf7",Ie="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fe="\\u2000-\\u206f",Dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\ufe0e\\ufe0f",Zt=ci+Ie+Fe+Dt,An="['’]",Sr="["+Vn+"]",ii="["+Zt+"]",ki="["+dn+"]",ks="\\d+",Xn="["+ri+"]",Sh="["+ji+"]",Ah="[^"+Vn+Zt+ks+ri+ji+zt+"]",ml="\\ud83c[\\udffb-\\udfff]",Ra="(?:"+ki+"|"+ml+")",Ng="[^"+Vn+"]",xd="(?:\\ud83c[\\udde6-\\uddff]){2}",wu="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="["+zt+"]",Ih="\\u200d",uf="(?:"+Sh+"|"+Ah+")",cf="(?:"+vl+"|"+Ah+")",kh="(?:"+An+"(?:d|ll|m|re|s|t|ve))?",uS="(?:"+An+"(?:D|LL|M|RE|S|T|VE))?",cS=Ra+"?",$T="["+yt+"]?",y9="(?:"+Ih+"(?:"+[Ng,xd,wu].join("|")+")"+$T+cS+")*",MT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LT=$T+cS+y9,b9="(?:"+[Xn,xd,wu].join("|")+")"+LT,W1="(?:"+[Ng+ki+"?",ki,xd,wu,Sr].join("|")+")",H0=RegExp(An,"g"),w9=RegExp(ki,"g"),dS=RegExp(ml+"(?="+ml+")|"+W1+LT,"g"),C9=RegExp([vl+"?"+Sh+"+"+kh+"(?="+[ii,vl,"$"].join("|")+")",cf+"+"+uS+"(?="+[ii,vl+uf,"$"].join("|")+")",vl+"?"+uf+"+"+kh,vl+"+"+uS,Sd,MT,ks,b9].join("|"),"g"),O9=RegExp("["+Ih+Vn+dn+yt+"]"),hS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,BT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],x9=-1,Yi={};Yi[nt]=
  79. /* [wrapped with `+j+`] */
  80. `)}function E(M){return Lr(M)||vy(M)||!!(tP&&M&&M[tP])}function F(M,j){var te=typeof M;return j=j??V,!!j&&(te=="number"||te!="symbol"&&lt.test(M))&&M>-1&&M%1==0&&M<j}function B(M,j,te){if(!ea(te))return!1;var ge=typeof j;return(ge=="number"?Gl(te)&&F(j,te.length):ge=="string"&&j in te)?$d(te[j],M):!1}function z(M,j){if(Lr(M))return!1;var te=typeof M;return te=="number"||te=="symbol"||te=="boolean"||M==null||Du(M)?!0:Qt.test(M)||!_t.test(M)||j!=null&&M in Li(j)}function re(M){var j=typeof M;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?M!=="__proto__":M===null}function he(M){var j=gy(M),te=$e[j];if(typeof te!="function"||!(j in tr.prototype))return!1;if(M===te)return!0;var ge=fy(te);return!!ge&&M===ge[0]}function ye(M){return!!nw&&nw in M}var we=Ed?Pf:bF;function Se(M){var j=M&&M.constructor,te=typeof j=="function"&&j.prototype||Ou;return M===te}function Ge(M){return M===M&&!ea(M)}function Je(M,j){return function(te){return te==null?!1:te[M]===j&&(j!==n||M in Li(te))}}function Ct(M){var j=ZP(M,function(ge){return te.size===u&&te.clear(),ge}),te=j.cache;return j}function vt(M,j){var te=M[1],ge=j[1],ke=te|ge,Ve=ke<(v|m|O),rt=ge==O&&te==k||ge==O&&te==y&&M[7].length<=j[8]||ge==(O|y)&&j[7].length<=j[8]&&te==k;if(!(Ve||rt))return M;ge&v&&(M[2]=j[2],ke|=te&v?0:w);var pt=j[3];if(pt){var Et=M[3];M[3]=Et?yw(Et,pt,j[4]):pt,M[4]=Et?bl(M[3],c):j[4]}return pt=j[5],pt&&(Et=M[5],M[5]=Et?eA(Et,pt,j[6]):pt,M[6]=Et?bl(M[5],c):j[6]),pt=j[7],pt&&(M[7]=pt),ge&O&&(M[8]=M[8]==null?j[8]:sa(M[8],j[8])),M[9]==null&&(M[9]=j[9]),M[0]=j[0],M[1]=ke,M}function Nt(M){var j=[];if(M!=null)for(var te in Li(M))j.push(te);return j}function Gt(M){return yc.call(M)}function sn(M,j,te){return j=po(j===n?M.length-1:j,0),function(){for(var ge=arguments,ke=-1,Ve=po(ge.length-j,0),rt=Bt(Ve);++ke<Ve;)rt[ke]=ge[j+ke];ke=-1;for(var pt=Bt(j+1);++ke<j;)pt[ke]=ge[ke];return pt[j]=te(rt),yl(M,this,pt)}}function fn(M,j){return j.length<2?M:Bh(M,ba(j,0,-1))}function On(M,j){for(var te=M.length,ge=sa(j.length,te),ke=Zs(M);ge--;){var Ve=j[ge];M[ge]=F(Ve,te)?ke[Ve]:n}return M}function pn(M,j){if(!(j==="constructor"&&typeof M[j]=="function")&&j!="__proto__")return M[j]}var Dn=Di(EP),Gn=ow||function(M,j){return Hi.setTimeout(M,j)},Wn=Di(U9);function Rr(M,j,te){var ge=j+"";return Wn(M,p(ge,qo(Bo(ge),te)))}function Di(M){var j=0,te=0;return function(){var ge=R9(),ke=C-(ge-te);if(te=ge,ke>0){if(++j>=D)return arguments[0]}else j=0;return M.apply(n,arguments)}}function Fo(M,j){var te=-1,ge=M.length,ke=ge-1;for(j=j===n?ge:j;++te<j;){var Ve=gw(te,ke),rt=M[Ve];M[Ve]=M[te],M[te]=rt}return M.length=j,M}var to=Ct(function(M){var j=[];return M.charCodeAt(0)===46&&j.push(""),M.replace(ln,function(te,ge,ke,Ve){j.push(ke?Ve.replace(Mn,"$1"):ge||te)}),j});function So(M){if(typeof M=="string"||Du(M))return M;var j=M+"";return j=="0"&&1/M==-L?"-0":j}function Ko(M){if(M!=null){try{return Zg.call(M)}catch{}try{return M+""}catch{}}return""}function qo(M,j){return jl(ue,function(te){var ge="_."+te[0];j&te[1]&&!Y1(M,ge)&&M.push(ge)}),M.sort()}function ds(M){if(M instanceof tr)return M.clone();var j=new Ei(M.__wrapped__,M.__chain__);return j.__actions__=Zs(M.__actions__),j.__index__=M.__index__,j.__values__=M.__values__,j}function La(M,j,te){(te?B(M,j,te):j===n)?j=1:j=po(zr(j),0);var ge=M==null?0:M.length;if(!ge||j<1)return[];for(var ke=0,Ve=0,rt=Bt(U0(ge/j));ke<ge;)rt[Ve++]=ba(M,ke,ke+=j);return rt}function la(M){for(var j=-1,te=M==null?0:M.length,ge=0,ke=[];++j<te;){var Ve=M[j];Ve&&(ke[ge++]=Ve)}return ke}function Jo(){var M=arguments.length;if(!M)return[];for(var j=Bt(M-1),te=arguments[0],ge=M;ge--;)j[ge-1]=arguments[ge];return Ad(Lr(te)?Zs(te):[te],ya(j,1))}var Ao=Hr(function(M,j){return Oa(M)?ey(M,ya(j,1,Oa,!0)):[]}),_s=Hr(function(M,j){var te=Ic(j);return Oa(te)&&(te=n),Oa(M)?ey(M,ya(j,1,Oa,!0),qn(te,2)):[]}),pm=Hr(function(M,j){var te=Ic(j);return Oa(te)&&(te=n),Oa(M)?ey(M,ya(j,1,Oa,!0),n,te):[]});function Hh(M,j,te){var ge=M==null?0:M.length;return ge?(j=te||j===n?1:zr(j),ba(M,j<0?0:j,ge)):[]}function Ja(M,j,te){var ge=M==null?0:M.length;return ge?(j=te||j===n?1:zr(j),j=ge-j,ba(M,0
  81. `;M.replace(Rn,function(lr,oi,pi,Ru,Sl,$u){return pi||(pi=Ru),an+=M.slice(Yt,$u).replace(on,pf),oi&&(pt=!0,an+=`' +
  82. __e(`+oi+`) +
  83. '`),Sl&&(Et=!0,an+=`';
  84. `+Sl+`;
  85. __p += '`),pi&&(an+=`' +
  86. ((__t = (`+pi+`)) == null ? '' : __t) +
  87. '`),Yt=$u+lr.length,lr}),an+=`';
  88. `;var sr=Oi.call(j,"variable")&&j.variable;if(!sr)an=`with (obj) {
  89. `+an+`
  90. }
  91. `;else if(Lt.test(sr))throw new br(s);an=(Et?an.replace(ht,""):an).replace(Pe,"$1").replace(Ze,"$1;"),an="function("+(sr||"obj")+`) {
  92. `+(sr?"":`obj || (obj = {});
  93. `)+"var __t, __p = ''"+(pt?", __e = _.escape":"")+(Et?`, __j = Array.prototype.join;
  94. function print() { __p += __j.call(arguments, '') }
  95. `:`;
  96. `)+an+`return __p
  97. }`;var Xr=hte(function(){return di(Ve,Qn+"return "+an).apply(n,rt)});if(Xr.source=an,uF(Xr))throw Xr;return Xr}function eLe(M){return Bi(M).toLowerCase()}function tLe(M){return Bi(M).toUpperCase()}function nLe(M,j,te){if(M=Bi(M),M&&(te||j===n))return OS(M);if(!M||!(j=Ol(j)))return M;var ge=Cu(M),ke=Cu(j),Ve=mc(ge,ke),rt=Z0(ge,ke)+1;return Rd(ge,Ve,rt).join("")}function rLe(M,j,te){if(M=Bi(M),M&&(te||j===n))return M.slice(0,IS(M)+1);if(!M||!(j=Ol(j)))return M;var ge=Cu(M),ke=Z0(ge,Cu(j))+1;return Rd(ge,0,ke).join("")}function iLe(M,j,te){if(M=Bi(M),M&&(te||j===n))return M.replace(pr,"");if(!M||!(j=Ol(j)))return M;var ge=Cu(M),ke=mc(ge,Cu(j));return Rd(ge,ke).join("")}function oLe(M,j){var te=A,ge=R;if(ea(j)){var ke="separator"in j?j.separator:ke;te="length"in j?zr(j.length):te,ge="omission"in j?Ol(j.omission):ge}M=Bi(M);var Ve=M.length;if(Hg(M)){var rt=Cu(M);Ve=rt.length}if(te>=Ve)return M;var pt=te-zg(ge);if(pt<1)return ge;var Et=rt?Rd(rt,0,pt).join(""):M.slice(0,pt);if(ke===n)return Et+ge;if(rt&&(pt+=Et.length-pt),cF(ke)){if(M.slice(pt).search(ke)){var Yt,Kt=Et;for(ke.global||(ke=Q0(ke.source,Bi(kt.exec(ke))+"g")),ke.lastIndex=0;Yt=ke.exec(Kt);)var an=Yt.index;Et=Et.slice(0,an===n?pt:an)}}else if(M.indexOf(Ol(ke),pt)!=pt){var Rn=Et.lastIndexOf(ke);Rn>-1&&(Et=Et.slice(0,Rn))}return Et+ge}function aLe(M){return M=Bi(M),M&&He.test(M)?M.replace(dt,KT):M}var sLe=cm(function(M,j,te){return M+(te?" ":"")+j.toUpperCase()}),pF=$P("toUpperCase");function dte(M,j,te){return M=Bi(M),j=te?n:j,j===n?UT(M)?JT(M):I9(M):M.match(j)||[]}var hte=Hr(function(M,j){try{return yl(M,n,j)}catch(te){return uF(te)?te:new br(te)}}),lLe=xc(function(M,j){return jl(j,function(te){te=So(te),Pd(M,te,sF(M[te],M))}),M});function uLe(M){var j=M==null?0:M.length,te=qn();return M=j?co(M,function(ge){if(typeof ge[1]!="function")throw new Wl(a);return[te(ge[0]),ge[1]]}):[],Hr(function(ge){for(var ke=-1;++ke<j;){var Ve=M[ke];if(yl(Ve[0],this,ge))return yl(Ve[1],this,ge)}})}function cLe(M){return z9(Cl(M,d))}function fF(M){return function(){return M}}function dLe(M,j){return M==null||M!==M?j:M}var hLe=MP(),pLe=MP(!0);function Ul(M){return M}function gF(M){return rm(typeof M=="function"?M:Cl(M,d))}function fLe(M){return OP(Cl(M,d))}function gLe(M,j){return QS(M,Cl(j,d))}var mLe=Hr(function(M,j){return function(te){return tm(te,M,j)}}),vLe=Hr(function(M,j){return function(te){return tm(M,te,j)}});function mF(M,j,te){var ge=ps(j),ke=pw(j,ge);te==null&&!(ea(j)&&(ke.length||!ge.length))&&(te=j,j=M,M=this,ke=pw(j,ps(j)));var Ve=!(ea(te)&&"chain"in te)||!!te.chain,rt=Pf(M);return jl(ke,function(pt){var Et=j[pt];M[pt]=Et,rt&&(M.prototype[pt]=function(){var Yt=this.__chain__;if(Ve||Yt){var Kt=M(this.__wrapped__),an=Kt.__actions__=Zs(this.__actions__);return an.push({func:Et,args:arguments,thisArg:M}),Kt.__chain__=Yt,Kt}return Et.apply(M,Ad([this.value()],arguments))})}),M}function yLe(){return Hi._===this&&(Hi._=Es),this}function vF(){}function bLe(M){return M=zr(M),Hr(function(j){return om(j,M)})}var wLe=ww(co),CLe=ww(gS),OLe=ww(Vg);function pte(M){return z(M)?bS(So(M)):G9(M)}function xLe(M){return function(j){return M==null?n:Bh(M,j)}}var SLe=Tf(),ALe=Tf(!0);function yF(){return[]}function bF(){return!1}function ILe(){return{}}function kLe(){return""}function ELe(){return!0}function _Le(M,j){if(M=zr(M),M<1||M>V)return[];var te=U,ge=sa(M,U);j=qn(j),M-=U;for(var ke=CS(ge,j);++te<M;)j(te);return ke}function TLe(M){return Lr(M)?co(M,So):Du(M)?[M]:Zs(to(Bi(M)))}function PLe(M){var j=++eP;return Bi(M)+j}var DLe=dm(function(M,j){return M+j},0),RLe=rA("ceil"),$Le=dm(function(M,j){return M/j},1),MLe=rA("floor");function LLe(M){return M&&M.length?dw(M,Ul,fw):n}function BLe(M,j){return M&&M.length?dw(M,qn(j,2),fw):n}function FLe(M){return Wg(M,Ul)}function NLe(M,j){return Wg(M,qn(j,2))}function VLe(M){return M&&M.length?dw(M,Ul,kf):n}function jLe(M,j){return M&&M.length?dw(M,qn(j,2),kf):n}var WLe=dm(function(M,j){return M*j},1),HLe=rA("round"),zLe=dm(function(M,j){return M-j},0);function ZLe(M){return M&&M.length?q1(M,Ul):0}function GLe(M,j){return M&&M.length?q1(M,qn(j,2)):0}re
  98. b`.split(/\n/).length!=3?function(p){for(var E=0,F=[],B=p.length;E<=B;){var z=p.indexOf(`
  99. `,E);z==-1&&(z=p.length);var re=p.slice(E,p.charAt(z-1)=="\r"?z-1:z),he=re.indexOf("\r");he!=-1?(F.push(re.slice(0,he)),E+=he+1):(F.push(re),E=z+1)}return F}:function(p){return p.split(/\r\n?|\n/)},Lt=window.getSelection?function(p){try{return p.selectionStart!=p.selectionEnd}catch{return!1}}:function(p){var E;try{E=p.ownerDocument.selection.createRange()}catch{}return!E||E.parentElement()!=p?!1:E.compareEndPoints("StartToEnd",E)!=0},Mn=function(){var p=P("div");return"oncopy"in p?!0:(p.setAttribute("oncopy","return;"),typeof p.oncopy=="function")}(),qe=null;function kt(p){if(qe!=null)return qe;var E=x(p,P("span","x")),F=E.getBoundingClientRect(),B=L(E,0,1).getBoundingClientRect();return qe=Math.abs(F.left-B.left)>1}var Ut={},nn={};function Cn(p,E){arguments.length>2&&(E.dependencies=Array.prototype.slice.call(arguments,2)),Ut[p]=E}function Pn(p,E){nn[p]=E}function lt(p){if(typeof p=="string"&&nn.hasOwnProperty(p))p=nn[p];else if(p&&typeof p.name=="string"&&nn.hasOwnProperty(p.name)){var E=nn[p.name];typeof E=="string"&&(E={name:E}),p=me(E,p),p.name=E.name}else{if(typeof p=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(p))return lt("application/xml");if(typeof p=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(p))return lt("application/json")}return typeof p=="string"?{name:p}:p||{name:"null"}}function It(p,E){E=lt(E);var F=Ut[E.name];if(!F)return It(p,"text/plain");var B=F(p,E);if(Xt.hasOwnProperty(E.name)){var z=Xt[E.name];for(var re in z)z.hasOwnProperty(re)&&(B.hasOwnProperty(re)&&(B["_"+re]=B[re]),B[re]=z[re])}if(B.name=E.name,E.helperType&&(B.helperType=E.helperType),E.modeProps)for(var he in E.modeProps)B[he]=E.modeProps[he];return B}var Xt={};function on(p,E){var F=Xt.hasOwnProperty(p)?Xt[p]:Xt[p]={};G(E,F)}function Vn(p,E){if(E===!0)return E;if(p.copyState)return p.copyState(E);var F={};for(var B in E){var z=E[B];z instanceof Array&&(z=z.concat([])),F[B]=z}return F}function Ur(p,E){for(var F;p.innerMode&&(F=p.innerMode(E),!(!F||F.mode==p));)E=F.state,p=F.mode;return F||{mode:p,state:E}}function yr(p,E,F){return p.startState?p.startState(E,F):!0}var Fn=function(p,E,F){this.pos=this.start=0,this.string=p,this.tabSize=E||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=F};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Fn.prototype.eat=function(p){var E=this.string.charAt(this.pos),F;if(typeof p=="string"?F=E==p:F=E&&(p.test?p.test(E):p(E)),F)return++this.pos,E},Fn.prototype.eatWhile=function(p){for(var E=this.pos;this.eat(p););return this.pos>E},Fn.prototype.eatSpace=function(){for(var p=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>p},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(p){var E=this.string.indexOf(p,this.pos);if(E>-1)return this.pos=E,!0},Fn.prototype.backUp=function(p){this.pos-=p},Fn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.indentation=function(){return ne(this.string,null,this.tabSize)-(this.lineStart?ne(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.match=function(p,E,F){if(typeof p=="string"){var B=function(he){return F?he.toLowerCase():he},z=this.string.substr(this.pos,p.length);if(B(z)==B(p))return E!==!1&&(this.pos+=p.length),!0}else{var re=this.string.slice(this.pos).match(p);return re&&re.index>0?null:(re&&E!==!1&&(this.pos+=re[0].length),re)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(p,E){this.lineStart+=p;try{return E()}finally{this.lineStart-=p}},Fn.prototype.lookAhead=function(p){var E=this.lineOracle;retu
  100. `?(Gt=Ge.appendChild(P("span",Ct[0]=="\r"?"␍":"␤","cm-invalidchar")),Gt.setAttribute("cm-text",Ct[0]),p.col+=1):(Gt=p.cm.options.specialCharPlaceholder(Ct[0]),Gt.setAttribute("cm-text",Ct[0]),l&&u<9?Ge.appendChild(P("span",[Gt])):Ge.appendChild(Gt),p.col+=1);p.map.push(p.pos,p.pos+1,Gt),p.pos++}}if(p.trailingSpace=ye.charCodeAt(E.length-1)==32,F||B||z||Se||re||he){var On=F||"";B&&(On+=B),z&&(On+=z);var pn=P("span",[Ge],On,re);if(he)for(var Dn in he)he.hasOwnProperty(Dn)&&Dn!="style"&&Dn!="class"&&pn.setAttribute(Dn,he[Dn]);return p.content.appendChild(pn)}p.content.appendChild(Ge)}}function mS(p,E){if(p.length>1&&!/ /.test(p))return p;for(var F=E,B="",z=0;z<p.length;z++){var re=p.charAt(z);re==" "&&F&&(z==p.length-1||p.charCodeAt(z+1)==32)&&(re=" "),B+=re,F=re==" "}return B}function co(p,E){return function(F,B,z,re,he,ye,we){z=z?z+" cm-force-border":"cm-force-border";for(var Se=F.pos,Ge=Se+B.length;;){for(var Je=void 0,Ct=0;Ct<E.length&&(Je=E[Ct],!(Je.to>Se&&Je.from<=Se));Ct++);if(Je.to>=Ge)return p(F,B,z,re,he,ye,we);p(F,B.slice(0,Je.to-Se),z,re,null,ye,we),re=null,B=B.slice(Je.to-Se),Se=Je.to}}}function Ad(p,E,F,B){var z=!B&&F.widgetNode;z&&p.map.push(p.pos,p.pos+E,z),!B&&p.cm.display.input.needsContentAttribute&&(z||(z=p.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",F.id)),z&&(p.cm.display.input.setUneditable(z),p.content.appendChild(z)),p.pos+=E,p.trailingSpace=!1}function vS(p,E,F){var B=p.markedSpans,z=p.text,re=0;if(!B){for(var he=1;he<F.length;he+=2)E.addToken(E,z.slice(re,re=F[he]),HT(F[he+1],E.cm.options));return}for(var ye=z.length,we=0,Se=1,Ge="",Je,Ct,vt=0,Nt,Gt,sn,fn,On;;){if(vt==we){Nt=Gt=sn=Ct="",On=null,fn=null,vt=1/0;for(var pn=[],Dn=void 0,Gn=0;Gn<B.length;++Gn){var Wn=B[Gn],Rr=Wn.marker;if(Rr.type=="bookmark"&&Wn.from==we&&Rr.widgetNode)pn.push(Rr);else if(Wn.from<=we&&(Wn.to==null||Wn.to>we||Rr.collapsed&&Wn.to==we&&Wn.from==we)){if(Wn.to!=null&&Wn.to!=we&&vt>Wn.to&&(vt=Wn.to,Gt=""),Rr.className&&(Nt+=" "+Rr.className),Rr.css&&(Ct=(Ct?Ct+";":"")+Rr.css),Rr.startStyle&&Wn.from==we&&(sn+=" "+Rr.startStyle),Rr.endStyle&&Wn.to==vt&&(Dn||(Dn=[])).push(Rr.endStyle,Wn.to),Rr.title&&((On||(On={})).title=Rr.title),Rr.attributes)for(var Di in Rr.attributes)(On||(On={}))[Di]=Rr.attributes[Di];Rr.collapsed&&(!fn||pS(fn.marker,Rr)<0)&&(fn=Wn)}else Wn.from>we&&vt>Wn.from&&(vt=Wn.from)}if(Dn)for(var Fo=0;Fo<Dn.length;Fo+=2)Dn[Fo+1]==vt&&(Gt+=" "+Dn[Fo]);if(!fn||fn.from==we)for(var to=0;to<pn.length;++to)Ad(E,0,pn[to]);if(fn&&(fn.from||0)==we){if(Ad(E,(fn.to==null?ye+1:fn.to)-we,fn.marker,fn.from==null),fn.to==null)return;fn.to==we&&(fn=!1)}}if(we>=ye)break;for(var So=Math.min(ye,vt);;){if(Ge){var Ko=we+Ge.length;if(!fn){var qo=Ko>So?Ge.slice(0,So-we):Ge;E.addToken(E,qo,Je?Je+Nt:Nt,sn,we+qo.length==vt?Gt:"",Ct,On)}if(Ko>=So){Ge=Ge.slice(So-we),we=So;break}we=Ko,sn=""}Ge=z.slice(re,re=F[Se++]),Je=HT(F[Se++],E.cm.options)}}}function zT(p,E,F){this.line=E,this.rest=df(E),this.size=this.rest?Ie(Z(this.rest))-F+1:1,this.node=this.text=null,this.hidden=ma(p,E)}function Vg(p,E,F){for(var B=[],z,re=E;re<F;re=z){var he=new zT(p.doc,dn(p.doc,re),re);z=re+he.size,B.push(he)}return B}var jg=null;function A9(p){jg?jg.ops.push(p):p.ownsGroup=jg={ops:[p],delayedCallbacks:[]}}function I9(p){var E=p.delayedCallbacks,F=0;do{for(;F<E.length;F++)E[F].call(null);for(var B=0;B<p.ops.length;B++){var z=p.ops[B];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(F<E.length)}function ZT(p,E){var F=p.ownsGroup;if(F)try{I9(F)}finally{jg=null,E(F)}}var _h=null;function ho(p,E){var F=Ze(p,E);if(F.length){var B=Array.prototype.slice.call(arguments,2),z;jg?z=jg.delayedCallbacks:_h?z=_h:(z=_h=[],setTimeout(k9,0));for(var re=function(ye){z.push(function(){return F[ye].apply(null,B)})},he=0;he<F.length;++he)re(he)}}function k9(){var p=_h;_h=null;for(var E=0;E<p.length;++E)p[E]()}function yS(p,E,F,B){for(var z=0;z<E.changes.length;z++){var re=E.changes[z];re=="text"?GT(p,E):re=="gutter"?q1(p,E,F,B):re
  101. top: `+Dn+"px; width: "+(Gn??we-pn)+`px;
  102. height: `+(Wn-Dn)+"px"))}function Je(pn,Dn,Gn){var Wn=dn(z,pn),Rr=Wn.text.length,Di,Fo;function to(qo,ds){return Wt(p,yt(pn,qo),"div",Wn,ds)}function So(qo,ds,La){var la=Li(p,Wn,null,qo),Jo=ds=="ltr"==(La=="after")?"left":"right",Ao=La=="after"?la.begin:la.end-(/\s/.test(Wn.text.charAt(la.end-1))?2:1);return to(Ao,Jo)[Jo]}var Ko=At(Wn,z.direction);return je(Ko,Dn||0,Gn??Rr,function(qo,ds,La,la){var Jo=La=="ltr",Ao=to(qo,Jo?"left":"right"),_s=to(ds-1,Jo?"right":"left"),pm=Dn==null&&qo==0,Hh=Gn==null&&ds==Rr,Ja=la==0,Sc=!Ko||la==Ko.length-1;if(_s.top-Ao.top<=3){var Ca=(Se?pm:Hh)&&Ja,oA=(Se?Hh:pm)&&Sc,Ac=Ca?ye:(Jo?Ao:_s).left,zh=oA?we:(Jo?_s:Ao).right;Ge(Ac,Ao.top,zh-Ac,Ao.bottom)}else{var Zh,hs,fm,aA;Jo?(Zh=Se&&pm&&Ja?ye:Ao.left,hs=Se?we:So(qo,La,"before"),fm=Se?ye:So(ds,La,"after"),aA=Se&&Hh&&Sc?we:_s.right):(Zh=Se?So(qo,La,"before"):ye,hs=!Se&&pm&&Ja?we:Ao.right,fm=!Se&&Hh&&Sc?ye:_s.left,aA=Se?So(ds,La,"after"):we),Ge(Zh,Ao.top,hs-Zh,Ao.bottom),Ao.bottom<_s.top&&Ge(ye,Ao.bottom,null,_s.top),Ge(fm,_s.top,aA-fm,_s.bottom)}(!Di||mf(Ao,Di)<0)&&(Di=Ao),mf(_s,Di)<0&&(Di=_s),(!Fo||mf(Ao,Fo)<0)&&(Fo=Ao),mf(_s,Fo)<0&&(Fo=_s)}),{start:Di,end:Fo}}var Ct=E.from(),vt=E.to();if(Ct.line==vt.line)Je(Ct.line,Ct.ch,vt.ch);else{var Nt=dn(z,Ct.line),Gt=dn(z,vt.line),sn=Hi(Nt)==Hi(Gt),fn=Je(Ct.line,Ct.ch,sn?Nt.text.length+1:null).end,On=Je(vt.line,sn?0:null,vt.ch).start;sn&&(fn.top<On.top-2?(Ge(fn.right,fn.top,null,fn.bottom),Ge(ye,On.top,On.left,On.bottom)):Ge(fn.right,fn.top,On.left-fn.right,fn.bottom)),fn.bottom<On.top&&Ge(ye,fn.bottom,null,On.top)}F.appendChild(re)}function vf(p){if(p.state.focused){var E=p.display;clearInterval(E.blinker);var F=!0;E.cursorDiv.style.visibility="",p.options.cursorBlinkRate>0?E.blinker=setInterval(function(){p.hasFocus()||Qg(p),E.cursorDiv.style.visibility=(F=!F)?"":"hidden"},p.options.cursorBlinkRate):p.options.cursorBlinkRate<0&&(E.cursorDiv.style.visibility="hidden")}}function Dh(p){p.hasFocus()||(p.display.input.focus(),p.state.focused||TS(p))}function Gg(p){p.state.delayingBlurEvent=!0,setTimeout(function(){p.state.delayingBlurEvent&&(p.state.delayingBlurEvent=!1,p.state.focused&&Qg(p))},100)}function TS(p,E){p.state.delayingBlurEvent&&!p.state.draggingText&&(p.state.delayingBlurEvent=!1),p.options.readOnly!="nocursor"&&(p.state.focused||(Mt(p,"focus",p,E),p.state.focused=!0,Q(p.display.wrapper,"CodeMirror-focused"),!p.curOp&&p.display.selForContextMenu!=p.doc.sel&&(p.display.input.reset(),c&&setTimeout(function(){return p.display.input.reset(!0)},20)),p.display.input.receivedFocus()),vf(p))}function Qg(p,E){p.state.delayingBlurEvent||(p.state.focused&&(Mt(p,"blur",p,E),p.state.focused=!1,D(p.display.wrapper,"CodeMirror-focused")),clearInterval(p.display.blinker),setTimeout(function(){p.state.focused||(p.display.shift=!1)},150))}function ow(p){for(var E=p.display,F=E.lineDiv.offsetTop,B=Math.max(0,E.scroller.getBoundingClientRect().top),z=E.lineDiv.getBoundingClientRect().top,re=0,he=0;he<E.view.length;he++){var ye=E.view[he],we=p.options.lineWrapping,Se=void 0,Ge=0;if(!ye.hidden){if(z+=ye.line.height,l&&u<8){var Je=ye.node.offsetTop+ye.node.offsetHeight;Se=Je-F,F=Je}else{var Ct=ye.node.getBoundingClientRect();Se=Ct.bottom-Ct.top,!we&&ye.text.firstChild&&(Ge=ye.text.firstChild.getBoundingClientRect().right-Ct.left-1)}var vt=ye.line.height-Se;if((vt>.005||vt<-.005)&&(z<B&&(re-=vt),ci(ye.line,Se),U0(ye.line),ye.rest))for(var Nt=0;Nt<ye.rest.length;Nt++)U0(ye.rest[Nt]);if(Ge>p.display.sizerWidth){var Gt=Math.ceil(Ge/Ed(p.display));Gt>p.display.maxLineLength&&(p.display.maxLineLength=Gt,p.display.maxLine=ye.line,p.display.maxLineChanged=!0)}}}Math.abs(re)>2&&(E.scroller.scrollTop+=re)}function U0(p){if(p.widgets)for(var E=0;E<p.widgets.length;++E){var F=p.widgets[E],B=F.node.parentNode;B&&(F.height=B.offsetHeight)}}function yf(p,E,F){var B=F&&F.top!=null?Math.max(0,F.top):p.scroller.scrollTop;B=Math.floor(B-Z0(p));var z=F&&F.bottom!=null?F.bottom:B+p.wrapper.clientHeight,re=Fe(E,B),he=Fe(E,z);if(F&&F.ensure){var ye=F.ensure.from.line,we=F.ensure.to.line;ye<re?(re=ye,he=Fe(E,g
  103. top: `+(E.top-F.viewOffset-Z0(p.display))+`px;
  104. height: `+(E.bottom-E.top+vc(p)+F.barHeight)+`px;
  105. left: `+E.left+"px; width: "+Math.max(2,E.right-E.left)+"px;");p.display.lineSpace.appendChild(he),he.scrollIntoView(z),p.display.lineSpace.removeChild(he)}}}function D9(p,E,F,B){B==null&&(B=0);var z;!p.options.lineWrapping&&E==F&&(F=E.sticky=="before"?yt(E.line,E.ch+1,"before"):E,E=E.ch?yt(E.line,E.sticky=="before"?E.ch-1:E.ch,"after"):E);for(var re=0;re<5;re++){var he=!1,ye=Bt(p,E),we=!F||F==E?ye:Bt(p,F);z={left:Math.min(ye.left,we.left),top:Math.min(ye.top,we.top)-B,right:Math.max(ye.left,we.left),bottom:Math.max(ye.bottom,we.bottom)+B};var Se=DS(p,z),Ge=p.doc.scrollTop,Je=p.doc.scrollLeft;if(Se.scrollTop!=null&&(X0(p,Se.scrollTop),Math.abs(p.doc.scrollTop-Ge)>1&&(he=!0)),Se.scrollLeft!=null&&(Au(p,Se.scrollLeft),Math.abs(p.doc.scrollLeft-Je)>1&&(he=!0)),!he)break}return z}function nP(p,E){var F=DS(p,E);F.scrollTop!=null&&X0(p,F.scrollTop),F.scrollLeft!=null&&Au(p,F.scrollLeft)}function DS(p,E){var F=p.display,B=Ou(p.display);E.top<0&&(E.top=0);var z=p.curOp&&p.curOp.scrollTop!=null?p.curOp.scrollTop:F.scroller.scrollTop,re=AS(p),he={};E.bottom-E.top>re&&(E.bottom=E.top+re);var ye=p.doc.height+SS(F),we=E.top<B,Se=E.bottom>ye-B;if(E.top<z)he.scrollTop=we?0:E.top;else if(E.bottom>z+re){var Ge=Math.min(E.top,(Se?ye:E.bottom)-re);Ge!=z&&(he.scrollTop=Ge)}var Je=p.options.fixedGutter?0:F.gutters.offsetWidth,Ct=p.curOp&&p.curOp.scrollLeft!=null?p.curOp.scrollLeft:F.scroller.scrollLeft-Je,vt=pf(p)-F.gutters.offsetWidth,Nt=E.right-E.left>vt;return Nt&&(E.right=E.left+vt),E.left<10?he.scrollLeft=0:E.left<Ct?he.scrollLeft=Math.max(0,E.left+Je-(Nt?0:10)):E.right>vt+Ct-3&&(he.scrollLeft=E.right+(Nt?0:10)-vt),he}function RS(p,E){E!=null&&(aw(p),p.curOp.scrollTop=(p.curOp.scrollTop==null?p.doc.scrollTop:p.curOp.scrollTop)+E)}function po(p){aw(p);var E=p.getCursor();p.curOp.scrollToPos={from:E,to:E,margin:p.options.cursorScrollMargin}}function sa(p,E,F){(E!=null||F!=null)&&aw(p),E!=null&&(p.curOp.scrollLeft=E),F!=null&&(p.curOp.scrollTop=F)}function R9(p,E){aw(p),p.curOp.scrollToPos=E}function aw(p){var E=p.curOp.scrollToPos;if(E){p.curOp.scrollToPos=null;var F=Nn(p,E.from),B=Nn(p,E.to);$S(p,F,B,E.margin)}}function $S(p,E,F,B){var z=DS(p,{left:Math.min(E.left,F.left),top:Math.min(E.top,F.top)-B,right:Math.max(E.right,F.right),bottom:Math.max(E.bottom,F.bottom)+B});sa(p,z.scrollLeft,z.scrollTop)}function X0(p,E){Math.abs(p.doc.scrollTop-E)<2||(i||Iu(p,{top:E}),sw(p,E,!0),i&&Iu(p),q0(p,100))}function sw(p,E,F){E=Math.max(0,Math.min(p.display.scroller.scrollHeight-p.display.scroller.clientHeight,E)),!(p.display.scroller.scrollTop==E&&!F)&&(p.doc.scrollTop=E,p.display.scrollbars.setScrollTop(E),p.display.scroller.scrollTop!=E&&(p.display.scroller.scrollTop=E))}function Au(p,E,F,B){E=Math.max(0,Math.min(E,p.display.scroller.scrollWidth-p.display.scroller.clientWidth)),!((F?E==p.doc.scrollLeft:Math.abs(p.doc.scrollLeft-E)<2)&&!B)&&(p.doc.scrollLeft=E,aP(p),p.display.scroller.scrollLeft!=E&&(p.display.scroller.scrollLeft=E),p.display.scrollbars.setScrollLeft(E))}function bf(p){var E=p.display,F=E.gutters.offsetWidth,B=Math.round(p.doc.height+SS(p.display));return{clientHeight:E.scroller.clientHeight,viewHeight:E.wrapper.clientHeight,scrollWidth:E.scroller.scrollWidth,clientWidth:E.scroller.clientWidth,viewWidth:E.wrapper.clientWidth,barLeft:p.options.fixedGutter?F:0,docHeight:B,scrollHeight:B+vc(p)+E.barHeight,nativeBarWidth:E.nativeBarWidth,gutterWidth:F}}var Hl=function(p,E,F){this.cm=F;var B=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");B.tabIndex=z.tabIndex=-1,p(B),p(z),Pe(B,"scroll",function(){B.clientHeight&&E(B.scrollTop,"vertical")}),Pe(z,"scroll",function(){z.clientWidth&&E(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hl.prototype.update=function(p){var E=p.scrollWidth>p.clientWidth+1,F=p.scrollHeight>p.clientHeight+1,B=p.nativeBarWidth;if(F){this.vert.style.display="block",this.vert.style.bottom
  106. `},setDirection:va(function(p){p!="rtl"&&(p="ltr"),p!=this.direction&&(this.direction=p,this.iter(function(E){return E.order=null}),this.cm&&Pd(this.cm))})}),cs.prototype.eachLine=cs.prototype.iter;var gw=0;function Q9(p){var E=this;if(IP(E),!(He(E,p)||mc(E.display,p))){ct(p),l&&(gw=+new Date);var F=yc(E,p,!0),B=p.dataTransfer.files;if(!(!F||E.isReadOnly()))if(B&&B.length&&window.FileReader&&window.File)for(var z=B.length,re=Array(z),he=0,ye=function(){++he==z&&Ei(E,function(){F=Xn(E.doc,F);var vt={from:F,to:F,text:E.doc.splitLines(re.filter(function(Nt){return Nt!=null}).join(E.doc.lineSeparator())),origin:"paste"};nm(E.doc,vt),Bh(E.doc,$h(Xn(E.doc,F),Xn(E.doc,Mh(vt))))})()},we=function(vt,Nt){if(E.options.allowDropFileTypes&&oe(E.options.allowDropFileTypes,vt.type)==-1){ye();return}var Gt=new FileReader;Gt.onerror=function(){return ye()},Gt.onload=function(){var sn=Gt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(sn)){ye();return}re[Nt]=sn,ye()},Gt.readAsText(vt)},Se=0;Se<B.length;Se++)we(B[Se],Se);else{if(E.state.draggingText&&E.doc.sel.contains(F)>-1){E.state.draggingText(p),setTimeout(function(){return E.display.input.focus()},20);return}try{var Ge=p.dataTransfer.getData("Text");if(Ge){var Je;if(E.state.draggingText&&!E.state.draggingText.copy&&(Je=E.listSelections()),Ma(E.doc,$h(F,F)),Je)for(var Ct=0;Ct<Je.length;++Ct)Af(E.doc,"",Je[Ct].anchor,Je[Ct].head,"drag");E.replaceSelection(Ge,"around","paste"),E.display.input.focus()}}catch{}}}}function XS(p,E){if(l&&(!p.state.draggingText||+new Date-gw<100)){ln(E);return}if(!(He(p,E)||mc(p.display,E))&&(E.dataTransfer.setData("Text",p.getSelection()),E.dataTransfer.effectAllowed="copyMove",E.dataTransfer.setDragImage&&!b)){var F=P("img",null,null,"position: fixed; left: 0; top: 0;");F.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(F.width=F.height=1,p.display.wrapper.appendChild(F),F._top=F.offsetTop),E.dataTransfer.setDragImage(F,0,0),g&&F.parentNode.removeChild(F)}}function Hr(p,E){var F=yc(p,E);if(F){var B=document.createDocumentFragment();iw(p,F,B),p.display.dragCursor||(p.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),p.display.lineSpace.insertBefore(p.display.dragCursor,p.display.cursorDiv)),x(p.display.dragCursor,B)}}function IP(p){p.display.dragCursor&&(p.display.lineSpace.removeChild(p.display.dragCursor),p.display.dragCursor=null)}function kP(p){if(document.getElementsByClassName){for(var E=document.getElementsByClassName("CodeMirror"),F=[],B=0;B<E.length;B++){var z=E[B].CodeMirror;z&&F.push(z)}F.length&&F[0].operation(function(){for(var re=0;re<F.length;re++)p(F[re])})}}var am=!1;function EP(){am||(U9(),am=!0)}function U9(){var p;Pe(window,"resize",function(){p==null&&(p=setTimeout(function(){p=null,kP(X9)},100))}),Pe(window,"blur",function(){return kP(Qg)})}function X9(p){var E=p.display;E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.scrollbarsClipped=!1,p.setSize()}for(var ba={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ry=0;ry<10;ry++)ba[ry+48]=ba[ry+96]=String(ry);for(var Ef=65;Ef<=90;Ef++)ba[Ef]=String.fromCharCode(Ef);for(var _f=1;_f<=12;_f++)ba[_f+111]=ba[_f+63235]="F"+_f;var Cc={};Cc.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Cc.pcDefault={"
  107. `,"start")},toggleOverwrite:function(p){return p.toggleOverwrite()}};function Rd(p,E){var F=dn(p.doc,E),B=Hi(F);return B!=F&&(E=Ie(B)),sy(!0,p,B,E,1)}function TP(p,E){var F=dn(p.doc,E),B=fS(F);return B!=F&&(E=Ie(B)),sy(!0,p,F,E,-1)}function KS(p,E){var F=Rd(p,E.line),B=dn(p.doc,F.line),z=At(B,p.doc.direction);if(!z||z[0].level==0){var re=Math.max(F.ch,B.text.search(/\S/)),he=E.line==F.line&&E.ch<=re&&E.ch;return yt(F.line,he?0:re,F.sticky)}return F}function sm(p,E,F){if(typeof E=="string"&&(E=ly[E],!E))return!1;p.display.input.ensurePolled();var B=p.display.shift,z=!1;try{p.isReadOnly()&&(p.state.suppressEdits=!0),F&&(p.display.shift=!1),z=E(p)!=de}finally{p.display.shift=B,p.state.suppressEdits=!1}return z}function Y9(p,E,F){for(var B=0;B<p.state.keyMaps.length;B++){var z=xl(E,p.state.keyMaps[B],F,p);if(z)return z}return p.options.extraKeys&&xl(E,p.options.extraKeys,F,p)||xl(E,p.options.keyMap,F,p)}var K9=new le;function uy(p,E,F,B){var z=p.state.keySeq;if(z){if(mw(E))return"handled";if(/\'$/.test(E)?p.state.keySeq=null:K9.set(50,function(){p.state.keySeq==z&&(p.state.keySeq=null,p.display.input.reset())}),qS(p,z+" "+E,F,B))return!0}return qS(p,E,F,B)}function qS(p,E,F,B){var z=Y9(p,E,B);return z=="multi"&&(p.state.keySeq=E),z=="handled"&&ho(p,"keyHandled",p,E,F),(z=="handled"||z=="multi")&&(ct(F),vf(p)),!!z}function JS(p,E){var F=iy(E,!0);return F?E.shiftKey&&!p.state.keySeq?uy(p,"Shift-"+F,E,function(B){return sm(p,B,!0)})||uy(p,F,E,function(B){if(typeof B=="string"?/^go[A-Z]/.test(B):B.motion)return sm(p,B)}):uy(p,F,E,function(B){return sm(p,B)}):!1}function q9(p,E,F){return uy(p,"'"+F+"'",E,function(B){return sm(p,B,!0)})}var yw=null;function eA(p){var E=this;if(!(p.target&&p.target!=E.display.input.getField())&&(E.curOp.focus=H(ue(E)),!He(E,p))){l&&u<11&&p.keyCode==27&&(p.returnValue=!1);var F=p.keyCode;E.display.shift=F==16||p.shiftKey;var B=JS(E,p);g&&(yw=B?F:null,!B&&F==88&&!Mn&&(S?p.metaKey:p.ctrlKey)&&E.replaceSelection("",null,"cut")),i&&!S&&!B&&F==46&&p.shiftKey&&!p.ctrlKey&&document.execCommand&&document.execCommand("cut"),F==18&&!/\bCodeMirror-crosshair\b/.test(E.display.lineDiv.className)&&Zs(E)}}function Zs(p){var E=p.display.lineDiv;Q(E,"CodeMirror-crosshair");function F(B){(B.keyCode==18||!B.altKey)&&(D(E,"CodeMirror-crosshair"),dt(document,"keyup",F),dt(document,"mouseover",F))}Pe(document,"keyup",F),Pe(document,"mouseover",F)}function Pu(p){p.keyCode==16&&(this.doc.sel.shift=!1),He(this,p)}function PP(p){var E=this;if(!(p.target&&p.target!=E.display.input.getField())&&!(mc(E.display,p)||He(E,p)||p.ctrlKey&&!p.altKey||S&&p.metaKey)){var F=p.keyCode,B=p.charCode;if(g&&F==yw){yw=null,ct(p);return}if(!(g&&(!p.which||p.which<10)&&JS(E,p))){var z=String.fromCharCode(B??F);z!="\b"&&(q9(E,p,z)||E.display.input.onKeyPress(p))}}}var J9=400,lm=function(p,E,F){this.time=p,this.pos=E,this.button=F};lm.prototype.compare=function(p,E,F){return this.time+J9>p&&Zt(E,this.pos)==0&&F==this.button};var Oc,um;function DP(p,E){var F=+new Date;return um&&um.compare(F,p,E)?(Oc=um=null,"triple"):Oc&&Oc.compare(F,p,E)?(um=new lm(F,p,E),Oc=null,"double"):(Oc=new lm(F,p,E),um=null,"single")}function RP(p){var E=this,F=E.display;if(!(He(E,p)||F.activeTouch&&F.input.supportsTouch())){if(F.input.ensurePolled(),F.shift=p.shiftKey,mc(F,p)){c||(F.scroller.draggable=!1,setTimeout(function(){return F.scroller.draggable=!0},100));return}if(!dm(E,p)){var B=yc(E,p),z=hr(p),re=B?DP(B,z):"single";N(E).focus(),z==1&&E.state.selectingText&&E.state.selectingText(p),!(B&&$P(E,z,B,re,p))&&(z==1?B?cy(E,B,re,p):kn(p)==F.scroller&&ct(p):z==2?(B&&qg(E.doc,B),setTimeout(function(){return F.input.focus()},20)):z==3&&(A?E.display.input.onContextMenu(p):Gg(E)))}}}function $P(p,E,F,B,z){var re="Click";return B=="double"?re="Double"+re:B=="triple"&&(re="Triple"+re),re=(E==1?"Left":E==2?"Middle":"Right")+re,uy(p,YS(re,z),z,function(he){if(typeof he=="string"&&(he=ly[he]),!he)return!1;var ye=!1;try{p.isReadOnly()&&(p.state.suppressEdits=!0),ye=he(p,F)!=de}finally{p.state.suppressEdits=!1}return ye})}function cm(p,E,F){var B=p.getOption("configureMouse"),z=
  108. `)==E){if(B.ranges.length%Zl.text.length==0){Se=[];for(var Ge=0;Ge<Zl.text.length;Ge++)Se.push(re.splitLines(Zl.text[Ge]))}}else we.length==B.ranges.length&&p.options.pasteLinesPerSelection&&(Se=Y(we,function(fn){return[fn]}));for(var Je=p.curOp.updateInput,Ct=B.ranges.length-1;Ct>=0;Ct--){var vt=B.ranges[Ct],Nt=vt.from(),Gt=vt.to();vt.empty()&&(F&&F>0?Nt=yt(Nt.line,Nt.ch-F):p.state.overwrite&&!ye?Gt=yt(Gt.line,Math.min(dn(re,Gt.line).text.length,Gt.ch+Z(we).length)):ye&&Zl&&Zl.lineWise&&Zl.text.join(`
  109. `)==we.join(`
  110. `)&&(Nt=Gt=yt(Nt.line,0)));var sn={from:Nt,to:Gt,text:Se?Se[Ct%Se.length]:we,origin:z||(ye?"paste":p.state.cutIncoming>he?"cut":"+input")};nm(p.doc,sn),ho(p,"inputRead",p,sn)}E&&!ye&&Sw(p,E),po(p),p.curOp.updateInput<2&&(p.curOp.updateInput=Je),p.curOp.typing=!0,p.state.pasteIncoming=p.state.cutIncoming=-1}function xc(p,E){var F=p.clipboardData&&p.clipboardData.getData("Text");if(F)return p.preventDefault(),!E.isReadOnly()&&!E.options.disableInput&&E.hasFocus()&&qa(E,function(){return iA(E,F,0,null,"paste")}),!0}function Sw(p,E){if(!(!p.options.electricChars||!p.options.smartIndent))for(var F=p.doc.sel,B=F.ranges.length-1;B>=0;B--){var z=F.ranges[B];if(!(z.head.ch>100||B&&F.ranges[B-1].head.line==z.head.line)){var re=p.getModeAt(z.head),he=!1;if(re.electricChars){for(var ye=0;ye<re.electricChars.length;ye++)if(E.indexOf(re.electricChars.charAt(ye))>-1){he=py(p,z.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(dn(p.doc,z.head.line).text.slice(0,z.head.ch))&&(he=py(p,z.head.line,"smart"));he&&ho(p,"electricInput",p,z.head.line)}}}function Aw(p){for(var E=[],F=[],B=0;B<p.doc.sel.ranges.length;B++){var z=p.doc.sel.ranges[B].head.line,re={anchor:yt(z,0),head:yt(z+1,0)};F.push(re),E.push(p.getRange(re.anchor,re.head))}return{text:E,ranges:F}}function fy(p,E,F,B){p.setAttribute("autocorrect",F?"on":"off"),p.setAttribute("autocapitalize",B?"on":"off"),p.setAttribute("spellcheck",!!E)}function gy(){var p=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),E=P("div",[p],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?p.style.width="1000px":p.setAttribute("wrap","off"),w&&(p.style.border="1px solid black"),E}function hm(p){var E=p.optionHandlers,F=p.helpers={};p.prototype={constructor:p,focus:function(){N(this).focus(),this.display.input.focus()},setOption:function(B,z){var re=this.options,he=re[B];re[B]==z&&B!="mode"||(re[B]=z,E.hasOwnProperty(B)&&Ei(this,E[B])(this,z,he),Mt(this,"optionChange",this,B))},getOption:function(B){return this.options[B]},getDoc:function(){return this.doc},addKeyMap:function(B,z){this.state.keyMaps[z?"push":"unshift"](oy(B))},removeKeyMap:function(B){for(var z=this.state.keyMaps,re=0;re<z.length;++re)if(z[re]==B||z[re].name==B)return z.splice(re,1),!0},addOverlay:tr(function(B,z){var re=B.token?B:p.getMode(this.options,B);if(re.startState)throw new Error("Overlays may not be stateful.");se(this.state.overlays,{mode:re,modeSpec:B,opaque:z&&z.opaque,priority:z&&z.priority||0},function(he){return he.priority}),this.state.modeGen++,Es(this)}),removeOverlay:tr(function(B){for(var z=this.state.overlays,re=0;re<z.length;++re){var he=z[re].modeSpec;if(he==B||typeof B=="string"&&he.name==B){z.splice(re,1),this.state.modeGen++,Es(this);return}}}),indentLine:tr(function(B,z,re){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Dt(this.doc,B)&&py(this,B,z,re)}),indentSelection:tr(function(B){for(var z=this.doc.sel.ranges,re=-1,he=0;he<z.length;he++){var ye=z[he];if(ye.empty())ye.head.line>re&&(py(this,ye.head.line,B,!0),re=ye.head.line,he==this.doc.sel.primIndex&&po(this));else{var we=ye.from(),Se=ye.to(),Ge=Math.max(re,we.line);re=Math.min(this.lastLine(),Se.line-(Se.ch?0:1))+1;for(var Je=Ge;Je<re;++Je)py(this,Je,B);var Ct=this.doc.sel.ranges;we.ch==0&&z.length==Ct.length&&Ct[he].from().ch>0&&zl(this.doc,he,new yi(we,Ct[he].to()),ae)}}}),getTokenAt:function(B,z){return kh(this,B,z)},getLineTokens:function(B,z){return kh(this,yt(B),z,!0)},getTokenTypeAt:function(B){B=Xn(this.doc,B);var z=xd(this,dn(this.doc,B.line)),re=0,he=(z.length-1)/2,ye=B.ch,we;if(ye==0)we=z[2];else for(;;){var Se=re+he>>1;if((Se?z[Se*2-1]:0)>=ye)he=Se;else if(z[Se*2+1]<ye)re=Se+1;else{we=z[Se*2+2];break}}var Ge=we?we.indexOf("overlay "):-1;return Ge<0?we:Ge==0?null:we.slice(0,Ge-1)},getModeAt:function(B){var z=this.doc.mode;return z.innerMode?p.innerMode(z,this.getTokenAt(B).state).mode:z},getHelper:function(B,z){return this.getHelpers(B,z)[0]},getHel
  111. `,sn=Ye(Gt,vt)?"w":Ct&&Gt==`
  112. `?"n":!Ct||/\s/.test(Gt)?null:"p";if(Ct&&!Nt&&!sn&&(sn="s"),Je&&Je!=sn){F<0&&(F=1,Ge(),E.sticky="after");break}if(sn&&(Je=sn),F>0&&!Ge(!Nt))break}var fn=em(p,E,re,he,!0);return An(re,fn)&&(fn.hitSide=!0),fn}function my(p,E,F,B){var z=p.doc,re=E.left,he;if(B=="page"){var ye=Math.min(p.display.wrapper.clientHeight,N(p).innerHeight||z(p).documentElement.clientHeight),we=Math.max(ye-.5*Ou(p.display),3);he=(F>0?E.bottom:E.top)+F*we}else B=="line"&&(he=F>0?E.bottom+3:E.top-3);for(var Se;Se=di(p,re,he),!!Se.outside;){if(F<0?he<=0:he>=z.height){Se.hitSide=!0;break}he+=F*5}return Se}var bi=function(p){this.cm=p,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bi.prototype.init=function(p){var E=this,F=this,B=F.cm,z=F.div=p.lineDiv;z.contentEditable=!0,fy(z,B.options.spellcheck,B.options.autocorrect,B.options.autocapitalize);function re(ye){for(var we=ye.target;we;we=we.parentNode){if(we==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(we.className))break}return!1}Pe(z,"paste",function(ye){!re(ye)||He(B,ye)||xc(ye,B)||u<=11&&setTimeout(Ei(B,function(){return E.updateFromDOM()}),20)}),Pe(z,"compositionstart",function(ye){E.composing={data:ye.data,done:!1}}),Pe(z,"compositionupdate",function(ye){E.composing||(E.composing={data:ye.data,done:!1})}),Pe(z,"compositionend",function(ye){E.composing&&(ye.data!=E.composing.data&&E.readFromDOMSoon(),E.composing.done=!0)}),Pe(z,"touchstart",function(){return F.forceCompositionEnd()}),Pe(z,"input",function(){E.composing||E.readFromDOMSoon()});function he(ye){if(!(!re(ye)||He(B,ye))){if(B.somethingSelected())xw({lineWise:!1,text:B.getSelections()}),ye.type=="cut"&&B.replaceSelection("",null,"cut");else if(B.options.lineWiseCopyCut){var we=Aw(B);xw({lineWise:!0,text:we.text}),ye.type=="cut"&&B.operation(function(){B.setSelections(we.ranges,0,ae),B.replaceSelection("",null,"cut")})}else return;if(ye.clipboardData){ye.clipboardData.clearData();var Se=Zl.text.join(`
  113. `);if(ye.clipboardData.setData("Text",Se),ye.clipboardData.getData("Text")==Se){ye.preventDefault();return}}var Ge=gy(),Je=Ge.firstChild;fy(Je),B.display.lineSpace.insertBefore(Ge,B.display.lineSpace.firstChild),Je.value=Zl.text.join(`
  114. `);var Ct=H(ee(z));K(Je),setTimeout(function(){B.display.lineSpace.removeChild(Ge),Ct.focus(),Ct==z&&F.showPrimarySelection()},50)}}Pe(z,"copy",he),Pe(z,"cut",he)},bi.prototype.screenReaderLabelChanged=function(p){p?this.div.setAttribute("aria-label",p):this.div.removeAttribute("aria-label")},bi.prototype.prepareSelection=function(){var p=_S(this.cm,!1);return p.focus=H(ee(this.div))==this.div,p},bi.prototype.showSelection=function(p,E){!p||!this.cm.display.view.length||((p.focus||E)&&this.showPrimarySelection(),this.showMultipleSelections(p))},bi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bi.prototype.showPrimarySelection=function(){var p=this.getSelection(),E=this.cm,F=E.doc.sel.primary(),B=F.from(),z=F.to();if(E.display.viewTo==E.display.viewFrom||B.line>=E.display.viewTo||z.line<E.display.viewFrom){p.removeAllRanges();return}var re=wa(E,p.anchorNode,p.anchorOffset),he=wa(E,p.focusNode,p.focusOffset);if(!(re&&!re.bad&&he&&!he.bad&&Zt(ki(re,he),B)==0&&Zt(ii(re,he),z)==0)){var ye=E.display.view,we=B.line>=E.display.viewFrom&&jh(E,B)||{node:ye[0].measure.map[2],offset:0},Se=z.line<E.display.viewTo&&jh(E,z);if(!Se){var Ge=ye[ye.length-1].measure,Je=Ge.maps?Ge.maps[Ge.maps.length-1]:Ge.map;Se={node:Je[Je.length-1],offset:Je[Je.length-2]-Je[Je.length-3]}}if(!we||!Se){p.removeAllRanges();return}var Ct=p.rangeCount&&p.getRangeAt(0),vt;try{vt=L(we.node,we.offset,Se.offset,Se.node)}catch{}vt&&(!i&&E.state.focused?(p.collapse(we.node,we.offset),vt.collapsed||(p.removeAllRanges(),p.addRange(vt))):(p.removeAllRanges(),p.addRange(vt)),Ct&&p.anchorNode==null?p.addRange(Ct):i&&this.startGracePeriod()),this.rememberSelection()}},bi.prototype.startGracePeriod=function(){var p=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){p.gracePeriod=!1,p.selectionChanged()&&p.cm.operation(function(){return p.cm.curOp.selectionChanged=!0})},20)},bi.prototype.showMultipleSelections=function(p){x(this.cm.display.cursorDiv,p.cursors),x(this.cm.display.selectionDiv,p.selection)},bi.prototype.rememberSelection=function(){var p=this.getSelection();this.lastAnchorNode=p.anchorNode,this.lastAnchorOffset=p.anchorOffset,this.lastFocusNode=p.focusNode,this.lastFocusOffset=p.focusOffset},bi.prototype.selectionInEditor=function(){var p=this.getSelection();if(!p.rangeCount)return!1;var E=p.getRangeAt(0).commonAncestorContainer;return V(this.div,E)},bi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||H(ee(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bi.prototype.blur=function(){this.div.blur()},bi.prototype.getField=function(){return this.div},bi.prototype.supportsTouch=function(){return!0},bi.prototype.receivedFocus=function(){var p=this,E=this;this.selectionInEditor()?setTimeout(function(){return p.pollSelection()},20):qa(this.cm,function(){return E.cm.curOp.selectionChanged=!0});function F(){E.cm.state.focused&&(E.pollSelection(),E.polling.set(E.cm.options.pollInterval,F))}this.polling.set(this.cm.options.pollInterval,F)},bi.prototype.selectionChanged=function(){var p=this.getSelection();return p.anchorNode!=this.lastAnchorNode||p.anchorOffset!=this.lastAnchorOffset||p.focusNode!=this.lastFocusNode||p.focusOffset!=this.lastFocusOffset},bi.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var p=this.getSelection(),E=this.cm;if(k&&h&&this.cm.display.gutterSpecs.length&&nF(p.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var F=wa(E,p.anchorNode,p.anchorOffset),B=wa(E,p.focusNode,p.focusOffset);F&&B&&qa(E,function(){$a(E.doc,$h(F,B),ae),(F.bad||B.bad)&&(E.curOp.selectionChanged=!0)})}}},bi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var p=this.cm,E=p.display,F=p.doc.sel.primary(),B=F.from(),z=F.to();if(B.ch==0&&B.line>p.firstLine()&&(B=yt(B.line
  115. `),K(z))}else return;he.type=="cut"&&(B.state.cutIncoming=+new Date)}}Pe(z,"cut",re),Pe(z,"copy",re),Pe(p.scroller,"paste",function(he){if(!(mc(p,he)||He(B,he))){if(!z.dispatchEvent){B.state.pasteIncoming=+new Date,F.focus();return}var ye=new Event("paste");ye.clipboardData=he.clipboardData,z.dispatchEvent(ye)}}),Pe(p.lineSpace,"selectstart",function(he){mc(p,he)||ct(he)}),Pe(z,"compositionstart",function(){var he=B.getCursor("from");F.composing&&F.composing.range.clear(),F.composing={start:he,range:B.markText(he,B.getCursor("to"),{className:"CodeMirror-composing"})}}),Pe(z,"compositionend",function(){F.composing&&(F.poll(),F.composing.range.clear(),F.composing=null)})},Bo.prototype.createField=function(p){this.wrapper=gy(),this.textarea=this.wrapper.firstChild;var E=this.cm.options;fy(this.textarea,E.spellcheck,E.autocorrect,E.autocapitalize)},Bo.prototype.screenReaderLabelChanged=function(p){p?this.textarea.setAttribute("aria-label",p):this.textarea.removeAttribute("aria-label")},Bo.prototype.prepareSelection=function(){var p=this.cm,E=p.display,F=p.doc,B=_S(p);if(p.options.moveInputWithCursor){var z=Bt(p,F.sel.primary().head,"div"),re=E.wrapper.getBoundingClientRect(),he=E.lineDiv.getBoundingClientRect();B.teTop=Math.max(0,Math.min(E.wrapper.clientHeight-10,z.top+he.top-re.top)),B.teLeft=Math.max(0,Math.min(E.wrapper.clientWidth-10,z.left+he.left-re.left))}return B},Bo.prototype.showSelection=function(p){var E=this.cm,F=E.display;x(F.cursorDiv,p.cursors),x(F.selectionDiv,p.selection),p.teTop!=null&&(this.wrapper.style.top=p.teTop+"px",this.wrapper.style.left=p.teLeft+"px")},Bo.prototype.reset=function(p){if(!(this.contextMenuPending||this.composing&&p)){var E=this.cm;if(this.resetting=!0,E.somethingSelected()){this.prevInput="";var F=E.getSelection();this.textarea.value=F,E.state.focused&&K(this.textarea),l&&u>=9&&(this.hasSelection=F)}else p||(this.prevInput=this.textarea.value="",l&&u>=9&&(this.hasSelection=null));this.resetting=!1}},Bo.prototype.getField=function(){return this.textarea},Bo.prototype.supportsTouch=function(){return!1},Bo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||H(ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Bo.prototype.blur=function(){this.textarea.blur()},Bo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Bo.prototype.receivedFocus=function(){this.slowPoll()},Bo.prototype.slowPoll=function(){var p=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){p.poll(),p.cm.state.focused&&p.slowPoll()})},Bo.prototype.fastPoll=function(){var p=!1,E=this;E.pollingFast=!0;function F(){var B=E.poll();!B&&!p?(p=!0,E.polling.set(60,F)):(E.pollingFast=!1,E.slowPoll())}E.polling.set(20,F)},Bo.prototype.poll=function(){var p=this,E=this.cm,F=this.textarea,B=this.prevInput;if(this.contextMenuPending||this.resetting||!E.state.focused||Lt(F)&&!B&&!this.composing||E.isReadOnly()||E.options.disableInput||E.state.keySeq)return!1;var z=F.value;if(z==B&&!E.somethingSelected())return!1;if(l&&u>=9&&this.hasSelection===z||S&&/[\uf700-\uf7ff]/.test(z))return E.display.input.reset(),!1;if(E.doc.sel==E.display.selForContextMenu){var re=z.charCodeAt(0);if(re==8203&&!B&&(B="​"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var he=0,ye=Math.min(B.length,z.length);he<ye&&B.charCodeAt(he)==z.charCodeAt(he);)++he;return qa(E,function(){iA(E,z.slice(he),B.length-he,null,p.composing?"*compose":null),z.length>1e3||z.indexOf(`
  116. `)>-1?F.value=p.prevInput="":p.prevInput=z,p.composing&&(p.composing.range.clear(),p.composing.range=E.markText(p.composing.start,E.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Bo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Bo.prototype.onKeyPress=function(){l&&u>=9&&(this.hasSelection=null),this.fastPoll()},Bo.prototype.onContextMenu=function(p){var E=this,F=E.cm,B=F.display,z=E.textarea;E.contextMenuPending&&E.contextMenuPending();var re=yc(F,p),he=B.scroller.scrollTop;if(!re||g)return;var ye=F.options.resetSelectionOnContextMenu;ye&&F.doc.sel.contains(re)==-1&&Ei(F,$a)(F.doc,$h(re),ae);var we=z.style.cssText,Se=E.wrapper.style.cssText,Ge=E.wrapper.offsetParent.getBoundingClientRect();E.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
  117. top: `+(p.clientY-Ge.top-5)+"px; left: "+(p.clientX-Ge.left-5)+`px;
  118. z-index: 1000; background: `+(l?"rgba(255, 255, 255, .05)":"transparent")+`;
  119. outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Je;c&&(Je=z.ownerDocument.defaultView.scrollY),B.input.focus(),c&&z.ownerDocument.defaultView.scrollTo(null,Je),B.input.reset(),F.somethingSelected()||(z.value=E.prevInput=" "),E.contextMenuPending=vt,B.selForContextMenu=F.doc.sel,clearTimeout(B.detectingSelectAll);function Ct(){if(z.selectionStart!=null){var Gt=F.somethingSelected(),sn="​"+(Gt?z.value:"");z.value="⇚",z.value=sn,E.prevInput=Gt?"":"​",z.selectionStart=1,z.selectionEnd=sn.length,B.selForContextMenu=F.doc.sel}}function vt(){if(E.contextMenuPending==vt&&(E.contextMenuPending=!1,E.wrapper.style.cssText=Se,z.style.cssText=we,l&&u<9&&B.scrollbars.setScrollTop(B.scroller.scrollTop=he),z.selectionStart!=null)){(!l||l&&u<9)&&Ct();var Gt=0,sn=function(){B.selForContextMenu==F.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&E.prevInput=="​"?Ei(F,tm)(F):Gt++<10?B.detectingSelectAll=setTimeout(sn,500):(B.selForContextMenu=null,B.input.reset())};B.detectingSelectAll=setTimeout(sn,200)}}if(l&&u>=9&&Ct(),A){ln(p);var Nt=function(){dt(window,"mouseup",Nt),setTimeout(vt,20)};Pe(window,"mouseup",Nt)}else setTimeout(vt,50)},Bo.prototype.readOnlyChanged=function(p){p||this.reset(),this.textarea.disabled=p=="nocursor",this.textarea.readOnly=!!p},Bo.prototype.setUneditable=function(){},Bo.prototype.needsContentAttribute=!1;function VP(p,E){if(E=E?G(E):{},E.value=p.value,!E.tabindex&&p.tabIndex&&(E.tabindex=p.tabIndex),!E.placeholder&&p.placeholder&&(E.placeholder=p.placeholder),E.autofocus==null){var F=H(ee(p));E.autofocus=F==p||p.getAttribute("autofocus")!=null&&F==document.body}function B(){p.value=ye.getValue()}var z;if(p.form&&(Pe(p.form,"submit",B),!E.leaveSubmitMethodAlone)){var re=p.form;z=re.submit;try{var he=re.submit=function(){B(),re.submit=z,re.submit(),re.submit=he}}catch{}}E.finishInit=function(we){we.save=B,we.getTextArea=function(){return p},we.toTextArea=function(){we.toTextArea=isNaN,B(),p.parentNode.removeChild(we.getWrapperElement()),p.style.display="",p.form&&(dt(p.form,"submit",B),!E.leaveSubmitMethodAlone&&typeof p.form.submit=="function"&&(p.form.submit=z))}},p.style.display="none";var ye=hi(function(we){return p.parentNode.insertBefore(we,p.nextSibling)},E);return ye}function iF(p){p.off=dt,p.on=Pe,p.wheelEventPixels=W9,p.Doc=cs,p.splitLines=$t,p.countColumn=ne,p.findColumn=ce,p.isWordChar=Be,p.Pass=de,p.signal=Mt,p.Line=hf,p.changeEnd=Mh,p.scrollbarModel=wf,p.Pos=yt,p.cmpPos=Zt,p.modes=Ut,p.mimeModes=nn,p.resolveMode=lt,p.getMode=It,p.modeExtensions=Xt,p.extendMode=on,p.copyState=Vn,p.startState=yr,p.innerMode=Ur,p.commands=ly,p.keyMap=Cc,p.keyName=iy,p.isModifierKey=mw,p.lookupKey=xl,p.normalizeKeyMap=Ol,p.StringStream=Fn,p.SharedTextMarker=om,p.TextMarker=Tu,p.LineWidget=kf,p.e_preventDefault=ct,p.e_stopPropagation=_t,p.e_stop=ln,p.addClass=Q,p.contains=V,p.rmClass=D,p.keyNames=ba}rA(hi),hm(hi);var jP="iter insert remove copy getEditor constructor".split(" ");for(var Iw in cs.prototype)cs.prototype.hasOwnProperty(Iw)&&oe(jP,Iw)<0&&(hi.prototype[Iw]=function(p){return function(){return p.apply(this.doc,arguments)}}(cs.prototype[Iw]));return Xe(cs),hi.inputStyles={textarea:Bo,contenteditable:bi},hi.defineMode=function(p){!hi.defaults.mode&&p!="null"&&(hi.defaults.mode=p),Cn.apply(this,arguments)},hi.defineMIME=Pn,hi.defineMode("null",function(){return{token:function(p){return p.skipToEnd()}}}),hi.defineMIME("text/plain","null"),hi.defineExtension=function(p,E){hi.prototype[p]=E},hi.defineDocExtension=function(p,E){cs.prototype[p]=E},hi.fromTextArea=VP,iF(hi),hi.version="5.65.16",hi})}(Tie)),Tie.exports}(function(e,t){(function(n){n(BL())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,s=i.jsonld,l=i.json||s,u=i.trackScope!==!1,c=i.typescript,d=i.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function Ie(Sr){return{type:Sr,style:"keyword"}}var Fe=Ie("keyword a"),Dt=Ie("keyword b"),zt=Ie("keyword c"),yt=Ie("keyword d"),Zt=Ie("operator"),An={type:"atom",style:"atom"};return{if:Ie("if"),w
  120. `,Ae);if(Be==-1)break;++me.line,fe&&++fe.line,Ae=Be+1}return me.ch=(Ae?0:me.ch)+(Y.length-Ae),fe&&(fe.ch=(Ae?0:fe.ch)+(Y.length-Ae)),me}var le=1,oe=2,ve=4;function de(Z){this.cm=Z,this.alignable=[],this.height=Z.doc.height;var Y=this;Z.on("markerAdded",function(se,fe){if(fe.collapsed){var me=fe.find(1);me!=null&&Y.set(me.line,ve)}}),Z.on("markerCleared",function(se,fe,me,Ae){Ae!=null&&fe.collapsed&&Y.check(Ae,ve,Y.hasMarker)}),Z.on("markerChanged",this.signal.bind(this)),Z.on("lineWidgetAdded",function(se,fe,me){fe.mergeSpacer||(fe.above?Y.set(me-1,oe):Y.set(me,le))}),Z.on("lineWidgetCleared",function(se,fe,me){fe.mergeSpacer||(fe.above?Y.check(me-1,oe,Y.hasWidgetBelow):Y.check(me,le,Y.hasWidget))}),Z.on("lineWidgetChanged",this.signal.bind(this)),Z.on("change",function(se,fe){var me=fe.from.line,Ae=fe.to.line-fe.from.line,Be=fe.text.length-1,Ye=me+Be;(Ae||Be)&&Y.map(me,Ae,Be),Y.check(Ye,ve,Y.hasMarker),(Ae||Be)&&Y.check(fe.from.line,ve,Y.hasMarker)}),Z.on("viewportChange",function(){Y.cm.doc.height!=Y.height&&Y.signal()})}de.prototype={signal:function(){n.signal(this,"realign"),this.height=this.cm.doc.height},set:function(Z,Y){for(var se=-1;se<this.alignable.length;se+=2){var fe=this.alignable[se]-Z;if(fe==0){if((this.alignable[se+1]&Y)==Y)return;this.alignable[se+1]|=Y,this.signal();return}if(fe>0)break}this.signal(),this.alignable.splice(se,0,Z,Y)},find:function(Z){for(var Y=0;Y<this.alignable.length;Y+=2)if(this.alignable[Y]==Z)return Y;return-1},check:function(Z,Y,se){var fe=this.find(Z);if(!(fe==-1||!(this.alignable[fe+1]&Y))&&!se.call(this,Z)){this.signal();var me=this.alignable[fe+1]&~Y;me?this.alignable[fe+1]=me:this.alignable.splice(fe,2)}},hasMarker:function(Z){var Y=this.cm.getLineHandle(Z);if(Y.markedSpans){for(var se=0;se<Y.markedSpans.length;se++)if(Y.markedSpans[se].marker.collapsed&&Y.markedSpans[se].to!=null)return!0}return!1},hasWidget:function(Z){var Y=this.cm.getLineHandle(Z);if(Y.widgets){for(var se=0;se<Y.widgets.length;se++)if(!Y.widgets[se].above&&!Y.widgets[se].mergeSpacer)return!0}return!1},hasWidgetBelow:function(Z){if(Z==this.cm.lastLine())return!1;var Y=this.cm.getLineHandle(Z+1);if(Y.widgets){for(var se=0;se<Y.widgets.length;se++)if(Y.widgets[se].above&&!Y.widgets[se].mergeSpacer)return!0}return!1},map:function(Z,Y,se){for(var fe=se-Y,me=Z+Y,Ae=-1,Be=-1,Ye=0;Ye<this.alignable.length;Ye+=2){var Qe=this.alignable[Ye];Qe==Z&&this.alignable[Ye+1]&oe&&(Ae=Ye),Qe==me&&this.alignable[Ye+1]&oe&&(Be=Ye),!(Qe<=Z)&&(Qe<me?this.alignable.splice(Ye--,2):this.alignable[Ye]+=fe)}if(Ae>-1){var nt=this.alignable[Ae+1];nt==oe?this.alignable.splice(Ae,2):this.alignable[Ae+1]=nt&~oe}Be>-1&&se&&this.set(Z+se,oe)}};function ae(Z,Y){return(Z.line-Y.line||Z.ch-Y.ch)<0?Z:Y}function be(Z,Y){return(Z.line-Y.line||Z.ch-Y.ch)>0?Z:Y}function ie(Z,Y){return Z.line==Y.line&&Z.ch==Y.ch}function ce(Z,Y,se){for(var fe=Z.length-1;fe>=0;fe--){var me=Z[fe],Ae=(se?me.origTo:me.editTo)-1;if(Ae<Y)return Ae}}function pe(Z,Y,se){for(var fe=0;fe<Z.length;fe++){var me=Z[fe],Ae=se?me.origFrom:me.editFrom;if(Ae>Y)return Ae}}function X(Z,Y){var se=null,fe=Z.state.diffViews,me=Z.getCursor().line;if(fe)for(var Ae=0;Ae<fe.length;Ae++){var Be=fe[Ae],Ye=Z==Be.orig;a(Be);var Qe=Y<0?ce(Be.chunks,me,Ye):pe(Be.chunks,me,Ye);Qe!=null&&(se==null||(Y<0?Qe>se:Qe<se))&&(se=Qe)}if(se!=null)Z.setCursor(se,0);else return n.Pass}n.commands.goNextDiff=function(Z){return X(Z,1)},n.commands.goPrevDiff=function(Z){return X(Z,-1)}})})();var txe={exports:{}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1,r=1,i=0;t.Diff=function(o,a){return[o,a]},t.prototype.diff_main=function(o,a,s,l){typeof l>"u"&&(this.Diff_Timeout<=0?l=Number.MAX_VALUE:l=new Date().getTime()+this.Diff_Timeout*1e3);var u=l;if(o==null||a==null)throw new Error("Null input. (diff_main)");if(o==a)return o?[new t.Diff(i,o)]:[];typeof s>"u"&&(s=!0);var c=s,d=this.diff_commonPrefix(o,a),h=o.substring(0,d);o=o.substring(d),a=a.substring(d),d=this.diff_
  121. `,b),v==-1&&(v=f.length-1);var w=f.substring(b,v+1);(l.hasOwnProperty?l.hasOwnProperty(w):l[w]!==void 0)?g+=String.fromCharCode(l[w]):(m==c&&(w=f.substring(b),v=f.length),g+=String.fromCharCode(m),l[w]=m,s[m++]=w),b=v+1}return g}var c=4e4,d=u(o);c=65535;var h=u(a);return{chars1:d,chars2:h,lineArray:s}},t.prototype.diff_charsToLines_=function(o,a){for(var s=0;s<o.length;s++){for(var l=o[s][1],u=[],c=0;c<l.length;c++)u[c]=a[l.charCodeAt(c)];o[s][1]=u.join("")}},t.prototype.diff_commonPrefix=function(o,a){if(!o||!a||o.charAt(0)!=a.charAt(0))return 0;for(var s=0,l=Math.min(o.length,a.length),u=l,c=0;s<u;)o.substring(c,u)==a.substring(c,u)?(s=u,c=s):l=u,u=Math.floor((l-s)/2+s);return u},t.prototype.diff_commonSuffix=function(o,a){if(!o||!a||o.charAt(o.length-1)!=a.charAt(a.length-1))return 0;for(var s=0,l=Math.min(o.length,a.length),u=l,c=0;s<u;)o.substring(o.length-u,o.length-c)==a.substring(a.length-u,a.length-c)?(s=u,c=s):l=u,u=Math.floor((l-s)/2+s);return u},t.prototype.diff_commonOverlap_=function(o,a){var s=o.length,l=a.length;if(s==0||l==0)return 0;s>l?o=o.substring(s-l):s<l&&(a=a.substring(0,s));var u=Math.min(s,l);if(o==a)return u;for(var c=0,d=1;;){var h=o.substring(u-d),f=a.indexOf(h);if(f==-1)return c;d+=f,(f==0||o.substring(u-d)==a.substring(0,d))&&(c=d,d++)}},t.prototype.diff_halfMatch_=function(o,a){if(this.Diff_Timeout<=0)return null;var s=o.length>a.length?o:a,l=o.length>a.length?a:o;if(s.length<4||l.length*2<s.length)return null;var u=this;function c(k,T,S){for(var I=k.substring(S,S+Math.floor(k.length/4)),O=-1,y="",_,A,R,D;(O=T.indexOf(I,O+1))!=-1;){var C=u.diff_commonPrefix(k.substring(S),T.substring(O)),x=u.diff_commonSuffix(k.substring(0,S),T.substring(0,O));y.length<x+C&&(y=T.substring(O-x,O)+T.substring(O,O+C),_=k.substring(0,S-x),A=k.substring(S+C),R=T.substring(0,O-x),D=T.substring(O+C))}return y.length*2>=k.length?[_,A,R,D,y]:null}var d=c(s,l,Math.ceil(s.length/4)),h=c(s,l,Math.ceil(s.length/2)),f;if(!d&&!h)return null;h?d?f=d[4].length>h[4].length?d:h:f=h:f=d;var g,b,v,m;o.length>a.length?(g=f[0],b=f[1],v=f[2],m=f[3]):(v=f[0],m=f[1],g=f[2],b=f[3]);var w=f[4];return[g,b,v,m,w]},t.prototype.diff_cleanupSemantic=function(o){for(var a=!1,s=[],l=0,u=null,c=0,d=0,h=0,f=0,g=0;c<o.length;)o[c][0]==i?(s[l++]=c,d=f,h=g,f=0,g=0,u=o[c][1]):(o[c][0]==r?f+=o[c][1].length:g+=o[c][1].length,u&&u.length<=Math.max(d,h)&&u.length<=Math.max(f,g)&&(o.splice(s[l-1],0,new t.Diff(n,u)),o[s[l-1]+1][0]=r,l--,l--,c=l>0?s[l-1]:-1,d=0,h=0,f=0,g=0,u=null,a=!0)),c++;for(a&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),c=1;c<o.length;){if(o[c-1][0]==n&&o[c][0]==r){var b=o[c-1][1],v=o[c][1],m=this.diff_commonOverlap_(b,v),w=this.diff_commonOverlap_(v,b);m>=w?(m>=b.length/2||m>=v.length/2)&&(o.splice(c,0,new t.Diff(i,v.substring(0,m))),o[c-1][1]=b.substring(0,b.length-m),o[c+1][1]=v.substring(m),c++):(w>=b.length/2||w>=v.length/2)&&(o.splice(c,0,new t.Diff(i,b.substring(0,w))),o[c-1][0]=r,o[c-1][1]=v.substring(0,v.length-w),o[c+1][0]=n,o[c+1][1]=b.substring(w),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(o){function a(w,k){if(!w||!k)return 6;var T=w.charAt(w.length-1),S=k.charAt(0),I=T.match(t.nonAlphaNumericRegex_),O=S.match(t.nonAlphaNumericRegex_),y=I&&T.match(t.whitespaceRegex_),_=O&&S.match(t.whitespaceRegex_),A=y&&T.match(t.linebreakRegex_),R=_&&S.match(t.linebreakRegex_),D=A&&w.match(t.blanklineEndRegex_),C=R&&k.match(t.blanklineStartRegex_);return D||C?5:A||R?4:I&&!y&&_?3:y||_?2:I||O?1:0}for(var s=1;s<o.length-1;){if(o[s-1][0]==i&&o[s+1][0]==i){var l=o[s-1][1],u=o[s][1],c=o[s+1][1],d=this.diff_commonSuffix(l,u);if(d){var h=u.substring(u.length-d);l=l.substring(0,l.length-d),u=h+u.substring(0,u.length-d),c=h+c}for(var f=l,g=u,b=c,v=a(l,u)+a(u,c);u.charAt(0)===c.charAt(0);){l+=u.charAt(0),u=u.substring(1)+c.charAt(0),c=c.substring(1);var m=a(l,u)+a(u,c);m>=v&&(v=m,f=l,g=u,b=c)}o[s-1][1]!=f&&(f?o[s-1][1]=f:(o.splice(s-1,1),s--),o[s][1]=g,b?o[s+1][1]=b:(o.splice(s+1,1),s--))}s++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=
  122. `),l=0,u=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;l<s.length;){var c=s[l].match(u);if(!c)throw new Error("Invalid patch string: "+s[l]);var d=new t.patch_obj;for(a.push(d),d.start1=parseInt(c[1],10),c[2]===""?(d.start1--,d.length1=1):c[2]=="0"?d.length1=0:(d.start1--,d.length1=parseInt(c[2],10)),d.start2=parseInt(c[3],10),c[4]===""?(d.start2--,d.length2=1):c[4]=="0"?d.length2=0:(d.start2--,d.length2=parseInt(c[4],10)),l++;l<s.length;){var h=s[l].charAt(0);try{var f=decodeURI(s[l].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+f)}if(h=="-")d.diffs.push(new t.Diff(n,f));else if(h=="+")d.diffs.push(new t.Diff(r,f));else if(h==" ")d.diffs.push(new t.Diff(i,f));else{if(h=="@")break;if(h!=="")throw new Error('Invalid patch mode "'+h+'" in: '+f)}l++}}return a},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,a;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?a=this.start2+",0":this.length2==1?a=this.start2+1:a=this.start2+1+","+this.length2;for(var s=["@@ -"+o+" +"+a+` @@
  123. `],l,u=0;u<this.diffs.length;u++){switch(this.diffs[u][0]){case r:l="+";break;case n:l="-";break;case i:l=" ";break}s[u+1]=l+encodeURI(this.diffs[u][1])+`
  124. `}return s.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=r,e.exports.DIFF_EQUAL=i})(txe);var $it=txe.exports;const Mit=pl($it);(function(e,t){(function(n){n(BL())})(function(n){n.defineSimpleMode=function(h,f){n.defineMode(h,function(g){return n.simpleMode(g,f)})},n.simpleMode=function(h,f){r(f,"start");var g={},b=f.meta||{},v=!1;for(var m in f)if(m!=b&&f.hasOwnProperty(m))for(var w=g[m]=[],k=f[m],T=0;T<k.length;T++){var S=k[T];w.push(new a(S,f)),(S.indent||S.dedent)&&(v=!0)}var I={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:v?[]:null}},copyState:function(y){var _={state:y.state,pending:y.pending,local:y.local,localState:null,indent:y.indent&&y.indent.slice(0)};y.localState&&(_.localState=n.copyState(y.local.mode,y.localState)),y.stack&&(_.stack=y.stack.slice(0));for(var A=y.persistentStates;A;A=A.next)_.persistentStates={mode:A.mode,spec:A.spec,state:A.state==y.localState?_.localState:n.copyState(A.mode,A.state),next:_.persistentStates};return _},token:s(g,h),innerMode:function(y){return y.local&&{mode:y.local.mode,state:y.localState}},indent:d(g,b)};if(b)for(var O in b)b.hasOwnProperty(O)&&(I[O]=b[O]);return I};function r(h,f){if(!h.hasOwnProperty(f))throw new Error("Undefined state "+f+" in simple mode")}function i(h,f){if(!h)return/(?:)/;var g="";return h instanceof RegExp?(h.ignoreCase&&(g="i"),h.unicode&&(g+="u"),h=h.source):h=String(h),new RegExp((f===!1?"":"^")+"(?:"+h+")",g)}function o(h){if(!h)return null;if(h.apply)return h;if(typeof h=="string")return h.replace(/\./g," ");for(var f=[],g=0;g<h.length;g++)f.push(h[g]&&h[g].replace(/\./g," "));return f}function a(h,f){(h.next||h.push)&&r(f,h.next||h.push),this.regex=i(h.regex),this.token=o(h.token),this.data=h}function s(h,f){return function(g,b){if(b.pending){var v=b.pending.shift();return b.pending.length==0&&(b.pending=null),g.pos+=v.text.length,v.token}if(b.local)if(b.local.end&&g.match(b.local.end)){var m=b.local.endToken||null;return b.local=b.localState=null,m}else{var m=b.local.mode.token(g,b.localState),w;return b.local.endScan&&(w=b.local.endScan.exec(g.current()))&&(g.pos=g.start+w.index),m}for(var k=h[b.state],T=0;T<k.length;T++){var S=k[T],I=(!S.data.sol||g.sol())&&g.match(S.regex);if(I){S.data.next?b.state=S.data.next:S.data.push?((b.stack||(b.stack=[])).push(b.state),b.state=S.data.push):S.data.pop&&b.stack&&b.stack.length&&(b.state=b.stack.pop()),S.data.mode&&u(f,b,S.data.mode,S.token),S.data.indent&&b.indent.push(g.indentation()+f.indentUnit),S.data.dedent&&b.indent.pop();var O=S.token;if(O&&O.apply&&(O=O(I)),I.length>2&&S.token&&typeof S.token!="string"){for(var y=2;y<I.length;y++)I[y]&&(b.pending||(b.pending=[])).push({text:I[y],token:S.token[y-1]});return g.backUp(I[0].length-(I[1]?I[1].length:0)),O[0]}else return O&&O.join?O[0]:O}}return g.next(),null}}function l(h,f){if(h===f)return!0;if(!h||typeof h!="object"||!f||typeof f!="object")return!1;var g=0;for(var b in h)if(h.hasOwnProperty(b)){if(!f.hasOwnProperty(b)||!l(h[b],f[b]))return!1;g++}for(var b in f)f.hasOwnProperty(b)&&g--;return g==0}function u(h,f,g,b){var v;if(g.persistent)for(var m=f.persistentStates;m&&!v;m=m.next)(g.spec?l(g.spec,m.spec):g.mode==m.mode)&&(v=m);var w=v?v.mode:g.mode||n.getMode(h,g.spec),k=v?v.state:n.startState(w);g.persistent&&!v&&(f.persistentStates={mode:w,spec:g.spec,state:k,next:f.persistentStates}),f.localState=k,f.local={mode:w,end:g.end&&i(g.end),endScan:g.end&&g.forceEnd!==!1&&i(g.end,!1),endToken:b&&b.join?b[b.length-1]:b}}function c(h,f){for(var g=0;g<f.length;g++)if(f[g]===h)return!0}function d(h,f){return function(g,b,v){if(g.local&&g.local.mode.indent)return g.local.mode.indent(g.localState,b,v);if(g.indent==null||g.local||f.dontIndentStates&&c(g.state,f.dontIndentStates)>-1)return n.Pass;var m=g.indent.length-1,w=h[g.state];e:for(;;){for(var k=0;k<w.length;k++){var T=w[k];if(T.data.dedent&&T.data.dedentIfLineStart!==!1){var S=T.regex.exec(b);if(S&&S[0]){m--,(T.next||T.push)&&(w=h[T.next||T.push]),b=b.slice(S[0].length);continue e}}}
  125. `).split(`
  126. `),a=i[2].replace(/\r\n/g,`
  127. `).split(`
  128. `),s=document.createElement("span"),l=i[1];s.className=`c-editor--log__${l}`;let u=0;for(let c=0;c<o.length;c++){const d=o[c],h=a[c],f=s.cloneNode(!1);f.innerText=h,t.push({start:i.index+u,end:i.index+u+d.length,node:f}),u=u+d.length+1}i=r.exec(e)}}return n(),t}const bD=[{regex:/(\[.*?\])([ \t]*)(<error>[ \t])(.+)/,token:["tag","","error.strong","error.strong"],sol:!0},{regex:/(\[.*?\])([ \t]*)(<info>)(.+)(.?)/,token:["tag","","bracket","bracket","hr"],sol:!0},{regex:/(\[.*?\])([ \t]*)(<warning>)(.+)(.?)/,token:["tag","","comment","comment","hr"],sol:!0}];P_.defineSimpleMode("fclog",{start:[...bD,{regex:/.*/,token:"hr"}],error:[...bD,{regex:/.*/,token:"error.strong"}],info:[...bD,{regex:/.*/,token:"bracket"}],warning:[...bD,{regex:/.*\[/,token:"comment"}]});P_.defineSimpleMode("log",{start:[{regex:/^[=]+[^=]*[=]+/,token:"strong"},{regex:/([^\w])([A-Z][\w]*)/,token:["","string"]},{regex:/(^[A-Z][\w]*)/,token:"string"}]});const Zit=ft({name:"CodemirrorFclog",props:{value:{type:String,default:""},name:{type:String,default:`cm-textarea-${+new Date}`},options:{type:Object,default:()=>({})},cminstance:{type:Object,default:()=>({})},placeholder:{type:String,default:""}},emits:["update:cminstance","ready"],setup(e,{emit:t}){const n=Re(),r=Re(null),i=(a=e.cminstance)=>{a.getAllMarks().forEach(u=>u.clear());const s=a.getValue(),l=[].concat(Hit(s)).concat(zit(s));for(let u=0;u<l.length;u++){const c=l[u];a.markText(a.posFromIndex(c.start),a.posFromIndex(c.end),{replacedWith:c.node})}},o=()=>{var a;r.value=yb(P_.fromTextArea(n.value,e.options)),t("update:cminstance",W(r)),(a=r.value)==null||a.on("change",i)};return Pt(()=>e.cminstance,a=>{var s;a&&(i(e.cminstance),(s=e.cminstance)==null||s.setValue(e.value),t("ready",r))},{deep:!0,immediate:!0}),_n(()=>{o()}),{initialize:o,textarea:n}}}),Git=["name","placeholder"];function Qit(e,t,n,r,i,o){return Ce(),We("textarea",{ref:"textarea",name:e.$props.name,placeholder:e.$props.placeholder},null,8,Git)}const Uit=pX(Zit,[["render",Qit]]),nxe={"update:value":()=>!0,change:(e,t)=>({value:e,cm:t}),input:()=>!0,ready:e=>e},Xit=["changes","scroll","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"],Yit=()=>{const e={};return Xit.forEach(t=>{e[t]=(...n)=>n}),e},Kit={...nxe,...Yit()},eN={mode:"text",theme:"default",lineNumbers:!0,smartIndent:!0,indentUnit:2};function qit(e){Promise.resolve().then(()=>{const t=e.getScrollInfo();e.scrollTo(t.left,t.height)})}const Jit=({props:e,cminstance:t,emit:n,internalInstance:r,content:i})=>{const o=Oe(()=>{var s;return e.merge?(s=W(t))==null?void 0:s.editor():W(t)}),a=()=>{const s=[];return Object.keys(r==null?void 0:r.vnode.props).forEach(l=>{if(l.startsWith("on")){const u=l.replace(l[2],l[2].toLowerCase()).slice(2);!nxe[u]&&s.push(u)}}),s};return{listenerEvents:()=>{o.value.on("change",l=>{const u=l.getValue();u===i.value&&u!==""||(i.value=u,n("update:value",i.value||""),n("input",i.value||" "),Promise.resolve().then(()=>{n("change",i.value,l)}),e.keepCursorInEnd&&qit(l))});const s={};a().filter(l=>!s[l]&&(s[l]=!0)).forEach(l=>{o.value.on(l,(...u)=>{n(l,...u)})})}}};function eot({props:e,cminstance:t,presetRef:n}){const r=Re(null),i=Re(null),o=Oe(()=>{var d;return e.merge?(d=W(t))==null?void 0:d.editor():W(t)}),a=()=>{mn(()=>{var d;(d=o.value)==null||d.refresh()})},s=(d=e.width,h=e.height)=>{var f;r.value=String(d).replace("px",""),i.value=String(h).replace("px","");const g=i.value;(f=o.value)==null||f.setSize(r.value,g)},l=()=>{var d;const h=(d=o.value)==null?void 0:d.getWrapperElement();h==null||h.remove()},u=()=>{var d,h,f;const g=(d=o.value)==null?void 0:d.getDoc().getHistory();(h=n.value)==null||h.initialize(),l(),(f=o.value)==null||f.getDoc().setHistory(g)},c=()=>{const d=document.querySelector(".CodeMirror-gutters");return(d==null?void 0:d.style.left.replace("px",""))!=="0"};return{reload:u,refresh:a,resize:s,destroy:l,containerHeight:i,reviseStyle:()=>{if(a(),!c())return;cons
  129. position: relative;
  130. display: inline-block;
  131. height: 100%;
  132. width: fit-content;
  133. font-size: 12px;
  134. overflow: hidden;
  135. }
  136. .codemirror-container.bordered {
  137. border-radius: 4px;
  138. border: 1px solid #dddddd;
  139. }
  140. .codemirror-container.width-auto {
  141. width: 100%;
  142. }
  143. .codemirror-container.height-auto {
  144. height: 100%;
  145. }
  146. .codemirror-container.height-auto .CodeMirror,
  147. .codemirror-container.height-auto .cm-s-default {
  148. height: 100% !important;
  149. }
  150. .codemirror-container .editor_custom_link {
  151. cursor: pointer;
  152. color: #1474f1;
  153. text-decoration: underline;
  154. }
  155. .codemirror-container .editor_custom_link:hover {
  156. color: #04b4fa;
  157. }
  158. .codemirror-container:not(.original-style) .CodeMirror-lines .CodeMirror-placeholder.CodeMirror-line-like {
  159. color: #666;
  160. }
  161. .codemirror-container:not(.original-style) .CodeMirror,
  162. .codemirror-container:not(.original-style) .CodeMirror-merge-pane {
  163. height: 100%;
  164. font-family: consolas !important;
  165. }
  166. .codemirror-container:not(.original-style) .CodeMirror-merge,
  167. .codemirror-container:not(.original-style) .CodeMirror-merge-right .CodeMirror {
  168. height: 100%;
  169. border: none !important;
  170. }
  171. .codemirror-container:not(.original-style) .c-editor--log__error {
  172. color: #bb0606;
  173. font-weight: bold;
  174. }
  175. .codemirror-container:not(.original-style) .c-editor--log__info {
  176. color: #333333;
  177. font-weight: bold;
  178. }
  179. .codemirror-container:not(.original-style) .c-editor--log__warning {
  180. color: #ee9900;
  181. }
  182. .codemirror-container:not(.original-style) .c-editor--log__success {
  183. color: #669600;
  184. }
  185. .codemirror-container:not(.original-style) .cm-header,
  186. .codemirror-container:not(.original-style) .cm-strong {
  187. font-weight: bold;
  188. }
  189. `);const not=ft({__name:"CodeEdit",props:{modelValue:{},height:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(s){r("update:modelValue",s)}}),o=Re(),a=Br({mode:"text/javascript",lineNumbers:!0,smartIndent:!0,indentUnit:4,foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,readOnly:!1});return _n(()=>{o.value.refresh()}),qp(()=>{var s;(s=o.value)==null||s.destroy()}),(s,l)=>(Ce(),mt(W(rxe),{style:{"line-height":"16px"},value:i.value,"onUpdate:value":l[0]||(l[0]=u=>i.value=u),options:a,height:s.height,border:"",ref_key:"cmRef",ref:o},null,8,["value","options","height"]))}}),rot={name:"代码编辑器",component:not,icon:"rich",type:"basic",order:19.5,initialValues:{label:"代码编辑器",component:"CodeEdit",height:100},attr:Dit},ixe=Object.freeze(Object.defineProperty({__proto__:null,default:rot},Symbol.toStringTag,{value:"Module"})),oxe={__name:"Title",props:{title:{type:String,default:"这是一个标题"},type:{type:String,default:"h3"},italic:Boolean},setup(e){return(t,n)=>(Ce(),mt(ei(e.type),{class:"Title",style:En({fontStyle:e.italic?"italic":"normal"})},{default:ot(()=>[gr(en(e.title),1)]),_:1},8,["style"]))}},iot={__name:"Collapse",props:{props:Object,children:Array,design:Boolean},setup(e){const t=e,n=Re([]);return _n(()=>{n.value=t.children.filter(r=>r.checked).map(r=>r.name)}),(r,i)=>(Ce(),mt(W(OKe),jr({...e.props,...r.$attrs},{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=o=>n.value=o)}),{default:ot(()=>[(Ce(!0),We(un,null,xr(e.children,o=>(Ce(),mt(W(xKe),{key:o.name,name:o.name},{title:ot(()=>[xe(oxe,{title:o.title,italic:"",type:"h4"},null,8,["title"])]),default:ot(()=>[e.design?(Ce(),mt(W(Ree),{key:0,children:o.children},null,8,["children"])):(Ce(),mt(W(PT),{key:1,formItems:o.children},null,8,["formItems"]))]),_:2},1032,["name"]))),128))]),_:1},16,["modelValue"]))}},oot={name:"折叠面板",component:iot,icon:"collapse",type:"layout",order:4,initialValues:{component:"Collapse",children:[{title:"折叠面板1",name:"name1",children:[]}]},attr:[{label:"唯一标识",component:"Input",name:"name"},{label:"子面板设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},designKey:"id-l8cI",name:"title"},{label:"唯一标识",component:"Input",props:{placeholder:"请输入唯一标识"},designKey:"form-YE6U",name:"name"},{label:"默认展开",component:"Switch",designKey:"form-YE6U",name:"checked"}],props:{mode:"card",title:"子面板",newItemDefaults:"{{ (index) => ({ title: `折叠面板${index + 1}`, name: `name${index + 1}`,children: [] }) }}"},designKey:"id-RQ1a",name:"children"}]},axe=Object.freeze(Object.defineProperty({__proto__:null,default:oot},Symbol.toStringTag,{value:"Module"})),aot={name:"颜色选择器",component:JKe,icon:"colorPicker",type:"basic",order:9,initialValues:{label:"颜色选择器",component:"ColorPicker"},attr:Xo({basic:[...Qo(["props.readonly","props.placeholder"]),{label:"初始值",component:"ColorPicker",name:"initialValue"}],high:Uo(),linkage:Ta})},sxe=Object.freeze(Object.defineProperty({__proto__:null,default:aot},Symbol.toStringTag,{value:"Module"})),sot=Xo({basic:[...Qo(["initialValue","props.readonly","props.placeholder","props.disabled"]),{label:"初始值",component:"Input",name:"initialValue"},{label:"自定义组件名称",component:"Input",name:"props.componentName",props:{placeholder:"全局组件名称"}},{label:"props",component:"JsonEdit",name:"props",initialValue:{}}],high:Uo(),linkage:Ta}),lot={key:0,class:"empty"},uot={__name:"Custom",props:{componentName:String,modelValue:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(o){r("update:modelValue",o)}});return(o,a)=>e.componentName?(Ce(),mt(ei(e.componentName),jr({key:1,modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s)},o.$attrs),null,16,["modelValue"])):(Ce(),We("span",lot,"请输入全局注册得组件名"))}},cot=Is(uot,[["__scopeId","data-v-5b820091"]]),dot={name:"自定义组件",icon:"custom",type:"high
  190. * jsoneditor.js
  191. *
  192. * @brief
  193. * JSONEditor is a web-based tool to view, edit, format, and validate JSON.
  194. * It has various modes such as a tree editor, a code editor, and a plain text
  195. * editor.
  196. *
  197. * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
  198. *
  199. * @license
  200. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  201. * use this file except in compliance with the License. You may obtain a copy
  202. * of the License at
  203. *
  204. * http://www.apache.org/licenses/LICENSE-2.0
  205. *
  206. * Unless required by applicable law or agreed to in writing, software
  207. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  208. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  209. * License for the specific language governing permissions and limitations under
  210. * the License.
  211. *
  212. * Copyright (c) 2011-2023 Jos de Jong, http://jsoneditoronline.org
  213. *
  214. * @author Jos de Jong, <wjosdejong@gmail.com>
  215. * @version 9.10.5
  216. * @date 2023-12-21
  217. */(function(e,t){(function(n,r){e.exports=r()})(self,function(){return r={897:function(o,a,s){s.d(a,{x:function(){return f}});var l=s(2602),u=s(9791),c=s(7907);function d(g){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(g)}function h(g,b){for(var v=0;v<b.length;v++){var m=b[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,function(w){return w=function(k,T){if(d(k)!=="object"||k===null)return k;var S=k[Symbol.toPrimitive];if(S===void 0)return(T==="string"?String:Number)(k);if(S=S.call(k,T||"default"),d(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}(w,"string"),d(w)==="symbol"?w:String(w)}(m.key),m)}}var f=function(){function g(m,T){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function");this.dom={};var k=this,I=this.dom,T=(this.anchor=void 0,this.items=m,this.eventListeners={},this.selection=void 0,this.onClose=T?T.close:void 0,this.limitHeight=!!T&&T.limitHeight,document.createElement("div")),S=(T.className="jsoneditor-contextmenu-root",I.root=T,document.createElement("div")),T=(S.className="jsoneditor-contextmenu",I.menu=S,T.appendChild(S),document.createElement("ul")),S=(T.className="jsoneditor-menu",S.appendChild(T),I.list=T,I.items=[],document.createElement("button")),I=(S.type="button",I.focusButton=S,document.createElement("li"));I.style.overflow="hidden",I.style.height="0",I.appendChild(S),T.appendChild(I),function O(y,_,A){A.forEach(function(R){var D,C,x,P,$,L;R.type==="separator"?(($=document.createElement("div")).className="jsoneditor-separator",(C=document.createElement("li")).appendChild($),y.appendChild(C)):(D={},$=document.createElement("li"),y.appendChild($),(C=document.createElement("button")).type="button",C.className=R.className,D.button=C,R.title&&(C.title=R.title),R.click&&(C.onclick=function(V){V.preventDefault(),k.hide(),R.click()}),$.appendChild(C),R.submenu?((P=document.createElement("div")).className="jsoneditor-icon",C.appendChild(P),(P=document.createElement("div")).className="jsoneditor-text"+(R.click?"":" jsoneditor-right-margin"),P.appendChild(document.createTextNode(R.text)),C.appendChild(P),(x=R.click?(C.className+=" jsoneditor-default",(P=document.createElement("button")).type="button",(D.buttonExpand=P).className="jsoneditor-expand",(L=document.createElement("div")).className="jsoneditor-expand",P.appendChild(L),$.appendChild(P),R.submenuTitle&&(P.title=R.submenuTitle),P):((L=document.createElement("div")).className="jsoneditor-expand",C.appendChild(L),C)).onclick=function(V){V.preventDefault(),k._onExpandItem(D),x.focus()},D.subItems=P=[],L=document.createElement("ul"),(D.ul=L).className="jsoneditor-menu",L.style.height="0",$.appendChild(L),O(L,P,R.submenu)):(($=document.createElement("div")).className="jsoneditor-icon",C.appendChild($),(L=document.createElement("div")).className="jsoneditor-text",L.appendChild(document.createTextNode((0,c.Iu)(R.text))),C.appendChild(L)),_.push(D))})}(T,this.dom.items,m),this.maxHeight=0,m.forEach(function(O){O=24*(m.length+(O.submenu?O.submenu.length:0)),k.maxHeight=Math.max(k.maxHeight,O)})}var b,v;return b=g,(v=[{key:"_getVisibleButtons",value:function(){var m=[],w=this;return this.dom.items.forEach(function(k){m.push(k.button),k.buttonExpand&&m.push(k.buttonExpand),k.subItems&&k===w.expandedItem&&k.subItems.forEach(function(T){m.push(T.button),T.buttonExpand&&m.push(T.buttonExpand)})}),m}},{key:"show",value:function(m,_,k){this.hide();var T=!0,I=m.parentNode,S=m.getBoundingClientRect(),I=I.getBoundingClientRect(),O=_.getBoundingClientRect(),y=this,_=(this.dom.absoluteAnchor=(0,l.w)(m,_,function(){y.hide()}),S.bottom+this.maxHeight<O.bottom||S.top-this.maxHeight>O.top&&(T=!1),k?0:S.top-I.top);T?(k=m.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=_+k+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",thi
  218. `))),O.appendChild(y),I.appendChild(O)),I.onclick=function(){w.onFocusLine(S)},v.appendChild(I)}),this.dom.validationErrors=k,this.dom.validationErrorsContainer.appendChild(k),this.dom.additionalErrorsIndication.title=g.length+" errors total",this.dom.validationErrorsContainer.clientHeight<this.dom.validationErrorsContainer.scrollHeight?(this.dom.additionalErrorsIndication.style.display="block",this.dom.validationErrorsContainer.onscroll=function(){w.dom.additionalErrorsIndication.style.display=0<w.dom.validationErrorsContainer.clientHeight&&w.dom.validationErrorsContainer.scrollTop===0?"block":"none"}):this.dom.validationErrorsContainer.onscroll=void 0,m=this.dom.validationErrorsContainer.clientHeight+(this.dom.statusBar?this.dom.statusBar.clientHeight:0),this.onChangeHeight(m)):this.onChangeHeight(0),g.filter(function(T){return T.type!=="error"}).length);0<k?(this.dom.validationErrorCount.style.display="inline",this.dom.validationErrorCount.innerText=k,this.dom.validationErrorCount.onclick=this.toggleTableVisibility.bind(this),this.dom.validationErrorIcon.style.display="inline",this.dom.validationErrorIcon.title=k+" schema validation error(s) found",this.dom.validationErrorIcon.onclick=this.toggleTableVisibility.bind(this)):(this.dom.validationErrorCount.style.display="none",this.dom.validationErrorIcon.style.display="none"),g.some(function(T){return T.type==="error"})?(m=g[0].line,this.dom.parseErrorIndication.style.display="block",this.dom.parseErrorIndication.title=isNaN(m)?"parse error - check that the json is valid":"parse error on line "+m,this.dom.parseErrorIndication.onclick=this.toggleTableVisibility.bind(this)):this.dom.parseErrorIndication.style.display="none"}}])&&u(h.prototype,f),Object.defineProperty(h,"prototype",{writable:!1}),d}()},2474:function(o,a,s){function l(d){return(l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}function u(d,h){for(var f=0;f<h.length;f++){var g=h[f];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,function(b){return b=function(v,m){if(l(v)!=="object"||v===null)return v;var w=v[Symbol.toPrimitive];if(w===void 0)return(m==="string"?String:Number)(v);if(w=w.call(v,m||"default"),l(w)!=="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}(b,"string"),l(b)==="symbol"?b:String(b)}(g.key),g)}}s.d(a,{R:function(){return c}});var c=function(){function d(g){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");if(this.target=g.target||null,!this.target)throw new Error('FocusTracker constructor called without a "target" to track.');this.onFocus=typeof g.onFocus=="function"?g.onFocus:null,this.onBlur=typeof g.onBlur=="function"?g.onBlur:null,this._onClick=this._onEvent.bind(this),this._onKeyUp=(function(b){b.which!==9&&b.keyCode!==9||this._onEvent(b)}).bind(this),this._onBlur=this._onEvent.bind(this),this.focusFlag=!1,this.firstEventFlag=!0,(this.onFocus||this.onBlur)&&(document.addEventListener("click",this._onClick),document.addEventListener("keyup",this._onKeyUp),document.addEventListener("blur",this._onBlur))}var h,f;return h=d,(f=[{key:"destroy",value:function(){document.removeEventListener("click",this._onClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("blur",this._onBlur),this._onEvent({target:document.body})}},{key:"_onEvent",value:function(g){g=g.target,g=g===this.target||!(!this.target.contains(g)&&!this.target.contains(document.activeElement)),g?this.focusFlag||(this.onFocus&&this.onFocus({type:"focus",target:this.target}),this.focusFlag=!0):(this.focusFlag||this.firstEventFlag)&&(this.onBlur&&this.onBlur({type:"blur",target:this.target}),this.focusFlag=!1,this.firstEventFlag)&&(this.firstEventFlag=!1)}}])&&u(h.prototype,f),Object.defineProperty(h,"prototype",{writable:!1}),d}()},3161:function(o,a,s){var l=s(8170),u=s(8037),c=s(8038).treeModeMixins,d=s(8458).textModeMixin
  219. background: #ebebeb;
  220. color: #333
  221. }
  222. .ace-jsoneditor.ace_editor {
  223. line-height: 1.3;
  224. background-color: #fff;
  225. }
  226. .ace-jsoneditor .ace_print-margin {
  227. width: 1px;
  228. background: #e8e8e8
  229. }
  230. .ace-jsoneditor .ace_scroller {
  231. background-color: #FFFFFF
  232. }
  233. .ace-jsoneditor .ace_text-layer {
  234. color: gray
  235. }
  236. .ace-jsoneditor .ace_variable {
  237. color: #1a1a1a
  238. }
  239. .ace-jsoneditor .ace_cursor {
  240. border-left: 2px solid #000000
  241. }
  242. .ace-jsoneditor .ace_overwrite-cursors .ace_cursor {
  243. border-left: 0px;
  244. border-bottom: 1px solid #000000
  245. }
  246. .ace-jsoneditor .ace_marker-layer .ace_selection {
  247. background: lightgray
  248. }
  249. .ace-jsoneditor.ace_multiselect .ace_selection.ace_start {
  250. box-shadow: 0 0 3px 0px #FFFFFF;
  251. border-radius: 2px
  252. }
  253. .ace-jsoneditor .ace_marker-layer .ace_step {
  254. background: rgb(255, 255, 0)
  255. }
  256. .ace-jsoneditor .ace_marker-layer .ace_bracket {
  257. margin: -1px 0 0 -1px;
  258. border: 1px solid #BFBFBF
  259. }
  260. .ace-jsoneditor .ace_marker-layer .ace_active-line {
  261. background: #FFFBD1
  262. }
  263. .ace-jsoneditor .ace_gutter-active-line {
  264. background-color : #dcdcdc
  265. }
  266. .ace-jsoneditor .ace_marker-layer .ace_selected-word {
  267. border: 1px solid lightgray
  268. }
  269. .ace-jsoneditor .ace_invisible {
  270. color: #BFBFBF
  271. }
  272. .ace-jsoneditor .ace_keyword,
  273. .ace-jsoneditor .ace_meta,
  274. .ace-jsoneditor .ace_support.ace_constant.ace_property-value {
  275. color: #AF956F
  276. }
  277. .ace-jsoneditor .ace_keyword.ace_operator {
  278. color: #484848
  279. }
  280. .ace-jsoneditor .ace_keyword.ace_other.ace_unit {
  281. color: #96DC5F
  282. }
  283. .ace-jsoneditor .ace_constant.ace_language {
  284. color: darkorange
  285. }
  286. .ace-jsoneditor .ace_constant.ace_numeric {
  287. color: red
  288. }
  289. .ace-jsoneditor .ace_constant.ace_character.ace_entity {
  290. color: #BF78CC
  291. }
  292. .ace-jsoneditor .ace_invalid {
  293. color: #FFFFFF;
  294. background-color: #FF002A;
  295. }
  296. .ace-jsoneditor .ace_fold {
  297. background-color: #AF956F;
  298. border-color: #000000
  299. }
  300. .ace-jsoneditor .ace_storage,
  301. .ace-jsoneditor .ace_support.ace_class,
  302. .ace-jsoneditor .ace_support.ace_function,
  303. .ace-jsoneditor .ace_support.ace_other,
  304. .ace-jsoneditor .ace_support.ace_type {
  305. color: #C52727
  306. }
  307. .ace-jsoneditor .ace_string {
  308. color: green
  309. }
  310. .ace-jsoneditor .ace_comment {
  311. color: #BCC8BA
  312. }
  313. .ace-jsoneditor .ace_entity.ace_name.ace_tag,
  314. .ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {
  315. color: #606060
  316. }
  317. .ace-jsoneditor .ace_markup.ace_underline {
  318. text-decoration: underline
  319. }
  320. .ace-jsoneditor .ace_indent-guide {
  321. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y
  322. }`,o("../lib/dom").importCssString(a.cssText,a.cssClass)})},6589:function(o,a){(s={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(l,u,c,d,h,f,g){var b=f.length-1;switch(h){case 1:this.$=l.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
  323. `).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(l);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=f[b-1];case 13:this.$={};break;case 14:this.$=f[b-1];break;case 15:this.$=[f[b-2],f[b]];break;case 16:this.$={},this.$[f[b][0]]=f[b][1];break;case 17:this.$=f[b-2],f[b-2][f[b][0]]=f[b][1];break;case 18:this.$=[];break;case 19:this.$=f[b-1];break;case 20:this.$=[f[b]];break;case 21:this.$=f[b-2],f[b-2].push(f[b])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(l,u){throw new Error(l)},parse:function(l){var u=this,c=[0],d=[null],h=[],f=this.table,g="",b=0,v=0,m=0,w=(this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.lexer.yylloc===void 0&&(this.lexer.yylloc={}),this.lexer.yylloc);function k(){var P=u.lexer.lex()||1;return P=typeof P!="number"&&u.symbols_[P]||P}h.push(w),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var T,S,I,O,y,_,A,R,D,C={};;){if(I=c[c.length-1],(O=this.defaultActions[I]||(T==null&&(T=k()),f[I]&&f[I][T]))===void 0||!O.length||!O[0]){if(!m){for(y in R=[],f[I])this.terminals_[y]&&2<y&&R.push("'"+this.terminals_[y]+"'");var x="",x=this.lexer.showPosition?"Parse error on line "+(b+1)+`:
  324. `+this.lexer.showPosition()+`
  325. Expecting `+R.join(", ")+", got '"+this.terminals_[T]+"'":"Parse error on line "+(b+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'");this.parseError(x,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:w,expected:R})}if(m==3){if(T==1)throw new Error(x||"Parsing halted.");v=this.lexer.yyleng,g=this.lexer.yytext,b=this.lexer.yylineno,w=this.lexer.yylloc,T=k()}for(;!("2"in f[I]);){if(I==0)throw new Error(x||"Parsing halted.");D=1,c.length=c.length-2*D,d.length=d.length-D,h.length=h.length-D,I=c[c.length-1]}S=T,T=2,O=f[I=c[c.length-1]]&&f[I][2],m=3}if(O[0]instanceof Array&&1<O.length)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+T);switch(O[0]){case 1:c.push(T),d.push(this.lexer.yytext),h.push(this.lexer.yylloc),c.push(O[1]),T=null,S?(T=S,S=null):(v=this.lexer.yyleng,g=this.lexer.yytext,b=this.lexer.yylineno,w=this.lexer.yylloc,0<m&&m--);break;case 2:if(_=this.productions_[O[1]][1],C.$=d[d.length-_],C._$={first_line:h[h.length-(_||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(_||1)].first_column,last_column:h[h.length-1].last_column},(A=this.performAction.call(C,g,v,b,this.yy,O[1],d,h))!==void 0)return A;_&&(c=c.slice(0,-1*_*2),d=d.slice(0,-1*_),h=h.slice(0,-1*_)),c.push(this.productions_[O[1]][0]),d.push(C.$),h.push(C._$),A=f[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(l,u){if(!this.yy.parseError)throw new Error(l);this.yy.parseError(l,u)},setInput:function(l){return this._input=l,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var l=this._input[0];return this.yytext+=l,this.yyleng++,this.match+=l,this.matched+=l,l.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),l},unput:function(l){return this._input=l+this._input,this},more:function(){return this._more=!0,this},less:function(l){this._input=this.match.slice(l)+this._input},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(20<l.length?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(20<l.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
  326. `+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var l,u,c,d,h=this._currentRules(),f=0;f<h.length&&(!(u=this._input.match(this.rules[h[f]]))||l&&!(u[0].length>l[0].length)||(l=u,c=f,this.options.flex));f++);return l?((d=l[0].match(/\n.*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-1:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
  327. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l!==void 0?l:this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(l){this.begin(l)},options:{},performAction:function(l,u,c,d){switch(c){case 0:break;case 1:return 6;case 2:return u.yytext=u.yytext.substr(1,u.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var s;a.parser=s,a.parse=s.parse.bind(s)},3879:function(o){function a(){}a.prototype={on:function(b,v){this._events=this._events||{},this._events[b]=this._events[b]||[],this._events[b].push(v)},off:function(b,v){this._events=this._events||{},b in this._events&&this._events[b].splice(this._events[b].indexOf(v),1)},emit:function(b){if(this._events=this._events||{},b in this._events)for(var v=0;v<this._events[b].length;v++)this._events[b][v].apply(this,Array.prototype.slice.call(arguments,1))}},a.mixin=function(b){for(var v=["on","off","emit"],m=0;m<v.length;m++)typeof b=="function"?b.prototype[v[m]]=a.prototype[v[m]]:b[v[m]]=a.prototype[v[m]];return b};var s={escapeRegExp:function(b){var v=/[\\^$.*+?()[\]{}|]/g,m=new RegExp(v.source);return b&&m.test(b)?b.replace(v,"\\$&"):b},extend:function(b,v){for(var m in v){var w;v.hasOwnProperty(m)&&((w=v[m])&&Object.prototype.toString.call(w)==="[object Object]"?(b[m]=b[m]||{},s.extend(b[m],w)):b[m]=w)}return b},each:function(b,v,m){if(Object.prototype.toString.call(b)==="[object Object]")for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&v.call(m,w,b[w],b);else for(var k=0,T=b.length;k<T;k++)v.call(m,k,b[k],b)},createElement:function(b,v){var m,w=document.createElement(b);if(v&&Object.prototype.toString.call(v)==="[object Object]")for(m in v)m in w?w[m]=v[m]:m==="html"?w.innerHTML=v[m]:w.setAttribute(m,v[m]);return w},hasClass:function(b,v){if(b)return b.classList?b.classList.contains(v):!!b.className&&!!b.className.match(new RegExp("(\\s|^)"+v+"(\\s|$)"))},addClass:function(b,v){s.hasClass(b,v)||(b.classList?b.classList.add(v):b.className=b.className.trim()+" "+v)},removeClass:function(b,v){s.hasClass(b,v)&&(b.classList?b.classList.remove(v):b.className=b.className.replace(new RegExp("(^|\\s)"+v.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(b,v){return b&&b!==document.body&&(v(b)?b:s.closest(b.parentNode,v))},isInt:function(b){return typeof b=="number"&&isFinite(b)&&Math.floor(b)===b},debounce:function(b,v,m){var w;return function(){var k=this,T=arguments,S=m&&!w;clearTimeout(w),w=setTimeout(function(){w=null,m||b.apply(k,T)},v),S&&b.apply(k,T)}},rect:function(w,T){var m=window,w=w.getBoundingClientRect(),k=T?m.pageXOffset:0,T=T?m.pageYOffset:0;return{bottom:w.bottom+T,height:w.height,left:w.left+k,right:w.right+k,top:w.top+T,width:w.width}},includes:function(b,v){return-1<b.indexOf(v)},startsWith:function(b,v){return b.substr(0,v.length)===v},truncate:function(b){for(;b.firstChild;)b.removeChild(b.firstChild)}};function l(b,v){return b.hasOwnProperty(v)&&(b[v]===!0||b[v].length)}function u(b,v,m){b.parentNode?b.parentNode.parentNode||v.appendChild(b.parentNode):v.appendChild(b),s.removeClass(b,"excluded"),m||(b.textContent=b.textContent)}function c(){var b,v;this.items.length&&(b=document.createDocumentFragment(),this.config.pagination?(v=this.pages.slice(0,this.pageIndex),s.each(v,function(m,w){s.each(w,function(k,T){u(T,b,this.customOption)},thi
  328. Ctrl+Click to expand/collapse including all childs.`,formatTitle:"Format JSON data, with proper indentation and line feeds (Ctrl+I)",insert:"Insert",insertTitle:"Insert a new field with type 'auto' before this field (Ctrl+Ins)",insertSub:"Select the type of the field to be inserted",object:"Object",ok:"Ok",redo:"Redo (Ctrl+Shift+Z)",removeText:"Remove",removeTitle:"Remove selected fields (Ctrl+Del)",removeField:"Remove this field (Ctrl+Del)",repairTitle:"Repair JSON: fix quotes and escape characters, remove comments and JSONP notation, turn JavaScript objects into JSON.",searchTitle:"Search fields and values",searchNextResultTitle:"Next result (Enter)",searchPreviousResultTitle:"Previous result (Shift + Enter)",selectNode:"Select a node...",showAll:"show all",showMore:"show more",showMoreStatus:"displaying ${visibleChilds} of ${totalChilds} items.",sort:"Sort",sortTitle:"Sort the childs of this ${type}",sortTitleShort:"Sort contents",sortFieldLabel:"Field:",sortDirectionLabel:"Direction:",sortFieldTitle:"Select the nested field by which to sort the array or object",sortAscending:"Ascending",sortAscendingTitle:"Sort the selected field in ascending order",sortDescending:"Descending",sortDescendingTitle:"Sort the selected field in descending order",string:"String",transform:"Transform",transformTitle:"Filter, sort, or transform the childs of this ${type}",transformTitleShort:"Filter, sort, or transform contents",extract:"Extract",extractTitle:"Extract this ${type}",transformQueryTitle:"Enter a JMESPath query",transformWizardLabel:"Wizard",transformWizardFilter:"Filter",transformWizardSortBy:"Sort by",transformWizardSelectFields:"Select fields",transformQueryLabel:"Query",transformPreviewLabel:"Preview",type:"Type",typeTitle:"Change the type of this field",openUrl:"Ctrl+Click or Ctrl+Enter to open url in new window",undo:"Undo last action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Field type "object". An object contains an unordered set of key/value pairs.',arrayType:'Field type "array". An array contains an ordered collection of values.',stringType:'Field type "string". Field type is not determined from the value, but always returned as string.',modeEditorTitle:"Switch Editor Mode",modeCodeText:"Code",modeCodeTitle:"Switch to code highlighter",modeFormText:"Form",modeFormTitle:"Switch to form editor",modeTextText:"Text",modeTextTitle:"Switch to plain text editor",modeTreeText:"Tree",modeTreeTitle:"Switch to tree editor",modeViewText:"View",modeViewTitle:"Switch to tree view",modePreviewText:"Preview",modePreviewTitle:"Switch to preview mode",examples:"Examples",default:"Default",containsInvalidProperties:"Contains invalid properties",containsInvalidItems:"Contains invalid items"},es:{array:"Matriz",auto:"Auto",appendText:"Agregar",appendTitle:"Agregue un nuevo campo con el tipo 'auto' después de este campo (Ctrl + Shift + Ins)",appendSubmenuTitle:"Seleccione el tipo de campo que se agregará",appendTitleAuto:"Agregue un nuevo campo con el tipo 'auto' (Ctrl + Shift + Ins)",ascending:"Ascendente",ascendingTitle:"Ordene los elementos secundarios de este ${type} en orden ascendente",actionsMenu:"Haga clic para abrir el menú de acciones (Ctrl + M)",cannotParseFieldError:"No se puede parsear el campo en JSON",cannotParseValueError:"No se puede parsear el valor en JSON",collapseAll:"Contraer todos los campos",compactTitle:"Compactar datos JSON, eliminar todos los espacios en blanco (Ctrl + Shift + I)",descending:"Descendente",descendingTitle:"Ordene los hijos de este ${type} en orden descendente",drag:"Arrastre para mover este campo (Alt + Mayús + Flechas)",duplicateKey:"llave duplicada",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos seleccionados (Ctrl + D)",duplicateField:"Duplicar este campo (Ctrl + D)",duplicateFieldError:"Nombre de campo duplicado",empty:"vacio",expandAll:"Expandir todos los campos",expandTitle:`Haga clic para expandir
  329. Ctrl+Clic para expandir/contraer incluyendo todos los niños.`,formatTitle:"Formatee los datos JSON, con la sangría y los avances de línea adecuados (Ctrl + I)",insert:"Insertar",insertTitle:"Inserte un nuevo campo con el tipo 'auto' antes de este campo (Ctrl + Ins)",insertSub:"Seleccione el tipo de campo a insertar",object:"Objeto",ok:"Ok",redo:"Rehacer (Ctrl+Mayús+Z)",removeText:"Eliminar",removeTitle:"Eliminar campos seleccionados (Ctrl+Supr)",removeField:"Eliminar este campo (Ctrl+Supr)",repairTitle:"Reparar JSON: corrija comillas y caracteres de escape, elimine comentarios y notación JSONP, convierta objetos JavaScript en JSON.",searchTitle:"Campos de búsqueda y valores",searchNextResultTitle:"Siguiente resultado (Entrar)",searchPreviousResultTitle:"Resultado anterior (Shift + Enter)",selectNode:"Seleccione un nodo...",showAll:"mostrar todo",showMore:"mostrar más",showMoreStatus:"mostrando ${visibleChilds} de ${totalChilds} elementos.",sort:"Ordenar",sortTitle:"Ordene los hijos de este ${type}",sortTitleShort:"Ordenar contenidos",sortFieldLabel:"Campo:",sortDirectionLabel:"Dirección:",sortFieldTitle:"Seleccione el campo anidado por el cual ordenar la matriz u objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar el campo seleccionado en orden ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar por el campo seleccionado, en orden descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar o transformar los hijos de este ${type}",transformTitleShort:"Filtrar, ordenar o transformar contenidos",extract:"Extraer",extractTitle:"Extrae este ${type}",transformQueryTitle:"Ingrese una consulta JMESPath",transformWizardLabel:"Wizard",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Seleccione un campo",transformQueryLabel:"Consulta",transformPreviewLabel:"Vista Previa",type:"Tipo",typeTitle:"Cambiar el tipo de campo",openUrl:"Ctrl+Click o Ctrl+Enter para abrir la URL en una nueva ventana",undo:"Deshacer la última acción (Ctrl+Z)",validationCannotMove:"No se puede mover un campo a un hijo de sí mismo.",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Tipo de campo "objeto". Un objeto contiene un conjunto desordenado de pares clave/valor.',arrayType:'Tipo de campo "matriz". Una matriz contiene una colección ordenada de valores.',stringType:'Tipo de campo "cadena". El tipo de campo no se determina a partir del valor, pero siempre se devuelve como una cadena.',modeEditorTitle:"Cambiar modo de editor",modeCodeText:"Codigo",modeCodeTitle:"Cambiar al resaltador de código",modeFormText:"Formulario",modeFormTitle:"Cambiar al editor de formularios",modeTextText:"Texto",modeTextTitle:"Cambiar al editor de texto sin formato",modeTreeText:"Arbol",modeTreeTitle:"Cambiar al editor de árbol",modeViewText:"Vista",modeViewTitle:"Cambiar a la vista de árbol",modePreviewText:"Vista Previa",modePreviewTitle:"Cambiar al modo de vista previa",examples:"Ejemplos",default:"Predeterminado",containsInvalidProperties:"Contiene propiedades no validas",containsInvalidItems:"Contiene items no validos"},"zh-CN":{array:"数组",auto:"自动",appendText:"追加",appendTitle:"在此字段后追加一个类型为“auto”的新字段 (Ctrl+Shift+Ins)",appendSubmenuTitle:"选择要追加的字段类型",appendTitleAuto:"追加类型为“auto”的新字段 (Ctrl+Shift+Ins)",ascending:"升序",ascendingTitle:"升序排列${type}的子节点",actionsMenu:"点击打开动作菜单(Ctrl+M)",cannotParseFieldError:"无法将字段解析为JSON",cannotParseValueError:"无法将值解析为JSON",collapseAll:"缩进所有字段",compactTitle:"压缩JSON数据,删除所有空格 (Ctrl+Shift+I)",descending:"降序",descendingTitle:"降序排列${type}的子节点",drag:"拖拽移动该节点(Alt+Shift+Arrows)",duplicateKey:"重复键",duplicateText:"复制",duplicateTitle:"复制选中字段(Ctrl+D)",duplicateField:"复制该字段(Ctrl+D)",duplicateFieldE
  330. Ctrl+Click 展开/收缩 包含所有子节点.`,formatTitle:"使用适当的缩进和换行符格式化JSON数据 (Ctrl+I)",insert:"插入",insertTitle:"在此字段前插入类型为“auto”的新字段 (Ctrl+Ins)",insertSub:"选择要插入的字段类型",object:"对象",ok:"Ok",redo:"重做 (Ctrl+Shift+Z)",removeText:"移除",removeTitle:"移除选中字段 (Ctrl+Del)",removeField:"移除该字段 (Ctrl+Del)",repairTitle:"修复JSON:修复引号和转义符,删除注释和JSONP表示法,将JavaScript对象转换为JSON。",selectNode:"选择一个节点...",showAll:"展示全部",showMore:"展示更多",showMoreStatus:"显示${totalChilds}${visibleChilds}项目.",sort:"排序",sortTitle:"排序${type}的子节点",sortTitleShort:"内容排序",sortFieldLabel:"字段:",sortDirectionLabel:"方向:",sortFieldTitle:"选择用于对数组或对象排序的嵌套字段",sortAscending:"升序排序",sortAscendingTitle:"按照该字段升序排序",sortDescending:"降序排序",sortDescendingTitle:"按照该字段降序排序",string:"字符串",transform:"变换",transformTitle:"筛选,排序,或者转换${type}的子节点",transformTitleShort:"筛选,排序,或者转换内容",extract:"提取",extractTitle:"提取这个 ${type}",transformQueryTitle:"输入JMESPath查询",transformWizardLabel:"向导",transformWizardFilter:"筛选",transformWizardSortBy:"排序",transformWizardSelectFields:"选择字段",transformQueryLabel:"查询",transformPreviewLabel:"预览",type:"类型",typeTitle:"更改字段类型",openUrl:"Ctrl+Click 或者 Ctrl+Enter 在新窗口打开链接",undo:"撤销上次动作 (Ctrl+Z)",validationCannotMove:"无法将字段移入其子节点",autoType:'字段类型 "auto". 字段类型由值自动确定 可以为 string,number,boolean,或者 null.',objectType:'字段类型 "object". 对象包含一组无序的键/值对.',arrayType:'字段类型 "array". 数组包含值的有序集合.',stringType:'字段类型 "string". 字段类型由值自动确定,但始终作为字符串返回.',modeCodeText:"代码",modeCodeTitle:"切换至代码高亮",modeFormText:"表单",modeFormTitle:"切换至表单编辑",modeTextText:"文本",modeTextTitle:"切换至文本编辑",modeTreeText:"树",modeTreeTitle:"切换至树编辑",modeViewText:"视图",modeViewTitle:"切换至树视图",modePreviewText:"预览",modePreviewTitle:"切换至预览模式",examples:"例子",default:"缺省",containsInvalidProperties:"包含无效的属性",containsInvalidItems:"包含无效项目"},"pt-BR":{array:"Lista",auto:"Automatico",appendText:"Adicionar",appendTitle:"Adicionar novo campo com tipo 'auto' depois deste campo (Ctrl+Shift+Ins)",appendSubmenuTitle:"Selecione o tipo do campo a ser adicionado",appendTitleAuto:"Adicionar novo campo com tipo 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendente",ascendingTitle:"Organizar filhor do tipo ${type} em crescente",actionsMenu:"Clique para abrir o menu de ações (Ctrl+M)",cannotParseFieldError:"Não é possível analisar o campo no JSON",cannotParseValueError:"Não é possível analisar o valor em JSON",collapseAll:"Fechar todos campos",compactTitle:"Dados JSON compactos, remova todos os espaços em branco (Ctrl+Shift+I)",descending:"Descendente",descendingTitle:"Organizar o filhos do tipo ${type} em decrescente",duplicateKey:"chave duplicada",drag:"Arraste para mover este campo (Alt+Shift+Arrows)",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos selecionados (Ctrl+D)",duplicateField:"Duplicar este campo (Ctrl+D)",duplicateFieldError:"Nome do campo duplicado",empty:"vazio",expandAll:"Expandir todos campos",expandTitle:`Clique para expandir/encolher este campo (Ctrl+E).
  331. Ctrl+Click para expandir/encolher incluindo todos os filhos.`,formatTitle:"Formate dados JSON, com recuo e feeds de linha adequados (Ctrl+I)",insert:"Inserir",insertTitle:"Inserir um novo campo do tipo 'auto' antes deste campo (Ctrl+Ins)",insertSub:"Selecionar o tipo de campo a ser inserido",object:"Objeto",ok:"Ok",redo:"Refazer (Ctrl+Shift+Z)",removeText:"Remover",removeTitle:"Remover campos selecionados (Ctrl+Del)",removeField:"Remover este campo (Ctrl+Del)",repairTitle:"Repare JSON: corrija aspas e caracteres de escape, remova comentários e notação JSONP, transforme objetos JavaScript em JSON.",selectNode:"Selecione um nódulo...",showAll:"mostrar todos",showMore:"mostrar mais",showMoreStatus:"exibindo ${visibleChilds} de ${totalChilds} itens.",sort:"Organizar",sortTitle:"Organizar os filhos deste ${type}",sortTitleShort:"Organizar os filhos",sortFieldLabel:"Campo:",sortDirectionLabel:"Direção:",sortFieldTitle:"Selecione um campo filho pelo qual ordenar o array ou objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar o campo selecionado por ordem ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar o campo selecionado por ordem descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar ou transformar os filhos deste ${type}",transformTitleShort:"Filtrar, ordenar ou transformar conteúdos",transformQueryTitle:"Insira uma expressão JMESPath",transformWizardLabel:"Assistente",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Selecionar campos",transformQueryLabel:"Expressão",transformPreviewLabel:"Visualizar",type:"Tipo",typeTitle:"Mudar o tipo deste campo",openUrl:"Ctrl+Click ou Ctrl+Enter para abrir link em nova janela",undo:"Desfazer último ação (Ctrl+Z)",validationCannotMove:"Não pode mover um campo como filho dele mesmo",autoType:'Campo do tipo "auto". O tipo do campo é determinao automaticamente a partir do seu valor e pode ser texto, número, verdade/falso ou nulo.',objectType:'Campo do tipo "objeto". Um objeto contém uma lista de pares com chave e valor.',arrayType:'Campo do tipo "lista". Uma lista contem uma coleção de valores ordenados.',stringType:'Campo do tipo "string". Campo do tipo nao é determinado através do seu valor, mas sempre retornara um texto.',examples:"Exemplos",default:"Revelia",containsInvalidProperties:"Contém propriedades inválidas",containsInvalidItems:"Contém itens inválidos"},tr:{array:"Dizin",auto:"Otomatik",appendText:"Ekle",appendTitle:"Bu alanın altına 'otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",appendSubmenuTitle:"Eklenecek alanın tipini seç",appendTitleAuto:"'Otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",ascending:"Artan",ascendingTitle:"${type}'ın alt tiplerini artan düzende sırala",actionsMenu:"Aksiyon menüsünü açmak için tıklayın (Ctrl+M)",collapseAll:"Tüm alanları kapat",descending:"Azalan",descendingTitle:"${type}'ın alt tiplerini azalan düzende sırala",drag:"Bu alanı taşımak için sürükleyin (Alt+Shift+Arrows)",duplicateKey:"Var olan anahtar",duplicateText:"Aşağıya kopyala",duplicateTitle:"Seçili alanlardan bir daha oluştur (Ctrl+D)",duplicateField:"Bu alandan bir daha oluştur (Ctrl+D)",duplicateFieldError:"Duplicate field name",cannotParseFieldError:"Alan JSON'a ayrıştırılamıyor",cannotParseValueError:"JSON'a değer ayrıştırılamıyor",empty:"boş",expandAll:"Tüm alanları aç",expandTitle:`Bu alanı açmak/kapatmak için tıkla (Ctrl+E).
  332. Alt alanlarda dahil tüm alanları açmak için Ctrl+Click `,insert:"Ekle",insertTitle:"Bu alanın üstüne 'otomatik' tipinde yeni bir alan ekle (Ctrl+Ins)",insertSub:"Araya eklenecek alanın tipini seç",object:"Nesne",ok:"Tamam",redo:"Yeniden yap (Ctrl+Shift+Z)",removeText:"Kaldır",removeTitle:"Seçilen alanları kaldır (Ctrl+Del)",removeField:"Bu alanı kaldır (Ctrl+Del)",selectNode:"Bir nesne seç...",showAll:"tümünü göster",showMore:"daha fazla göster",showMoreStatus:"${totalChilds} alanın ${visibleChilds} alt alanları gösteriliyor",sort:"Sırala",sortTitle:"${type}'ın alt alanlarını sırala",sortTitleShort:"İçerikleri sırala",sortFieldLabel:"Alan:",sortDirectionLabel:"Yön:",sortFieldTitle:"Diziyi veya nesneyi sıralamak için iç içe geçmiş alanı seçin",sortAscending:"Artan",sortAscendingTitle:"Seçili alanı artan düzende sırala",sortDescending:"Azalan",sortDescendingTitle:"Seçili alanı azalan düzende sırala",string:"Karakter Dizisi",transform:"Dönüştür",transformTitle:"${type}'ın alt alanlarını filtrele, sırala veya dönüştür",transformTitleShort:"İçerikleri filterele, sırala veya dönüştür",transformQueryTitle:"JMESPath sorgusu gir",transformWizardLabel:"Sihirbaz",transformWizardFilter:"Filtre",transformWizardSortBy:"Sırala",transformWizardSelectFields:"Alanları seç",transformQueryLabel:"Sorgu",transformPreviewLabel:"Önizleme",type:"Tip",typeTitle:"Bu alanın tipini değiştir",openUrl:"URL'i yeni bir pencerede açmak için Ctrl+Click veya Ctrl+Enter",undo:"Son değişikliği geri al (Ctrl+Z)",validationCannotMove:"Alt alan olarak taşınamıyor",autoType:'Alan tipi "otomatik". Alan türü otomatik olarak değerden belirlenirve bir dize, sayı, boolean veya null olabilir.',objectType:'Alan tipi "nesne". Bir nesne, sıralanmamış bir anahtar / değer çifti kümesi içerir.',arrayType:'Alan tipi "dizi". Bir dizi, düzenli değerler koleksiyonu içerir.',stringType:'Alan tipi "karakter dizisi". Alan türü değerden belirlenmez,ancak her zaman karakter dizisi olarak döndürülür.',modeCodeText:"Kod",modeCodeTitle:"Kod vurgulayıcıya geç",modeFormText:"Form",modeFormTitle:"Form düzenleyiciye geç",modeTextText:"Metin",modeTextTitle:"Düz metin düzenleyiciye geç",modeTreeText:"Ağaç",modeTreeTitle:"Ağaç düzenleyiciye geç",modeViewText:"Görünüm",modeViewTitle:"Ağaç görünümüne geç",examples:"Örnekler",default:"Varsayılan",containsInvalidProperties:"Geçersiz özellikler içeriyor",containsInvalidItems:"Geçersiz öğeler içeriyor"},ja:{array:"配列",auto:"オート",appendText:"追加",appendTitle:'次のフィールドに"オート"のフィールドを追加 (Ctrl+Shift+Ins)',appendSubmenuTitle:"追加するフィールドの型を選択してください",appendTitleAuto:'"オート"のフィールドを追加 (Ctrl+Shift+Ins)',ascending:"昇順",ascendingTitle:"${type}の子要素を昇順に並べ替え",actionsMenu:"クリックしてアクションメニューを開く (Ctrl+M)",collapseAll:"すべてを折りたたむ",descending:"降順",descendingTitle:"${type}の子要素を降順に並べ替え",drag:"ドラッグして選択中のフィールドを移動 (Alt+Shift+Arrows)",duplicateKey:"複製キー",duplicateText:"複製",duplicateTitle:"選択中のフィールドを複製 (Ctrl+D)",duplicateField:"選択中のフィールドを複製 (Ctrl+D)",duplicateFieldError:"フィールド名が重複しています",cannotParseFieldError:"JSONのフィールドを解析できません",cannotParseValueError:"JSONの値を解析できません",empty:"空",expandAll:"すべてを展開",expandTitle:`クリックしてフィールドを展開/折りたたむ (Ctrl+E).
  333. Ctrl+Click ですべての子要素を展開/折りたたむ`,insert:"挿入",insertTitle:"選択中のフィールドの前に新しいフィールドを挿入 (Ctrl+Ins)",insertSub:"挿入するフィールドの型を選択",object:"オブジェクト",ok:"実行",redo:"やり直す (Ctrl+Shift+Z)",removeText:"削除",removeTitle:"選択中のフィールドを削除 (Ctrl+Del)",removeField:"選択中のフィールドを削除 (Ctrl+Del)",selectNode:"ノードを選択...",showAll:"すべてを表示",showMore:"もっと見る",showMoreStatus:"${totalChilds}個のアイテムのうち ${visibleChilds}個を表示しています。",sort:"並べ替え",sortTitle:"${type}の子要素を並べ替え",sortTitleShort:"並べ替え",sortFieldLabel:"フィールド:",sortDirectionLabel:"順序:",sortFieldTitle:"配列またはオブジェクトを並び替えるためのフィールドを選択",sortAscending:"昇順",sortAscendingTitle:"選択中のフィールドを昇順に並び替え",sortDescending:"降順",sortDescendingTitle:"選択中のフィールドを降順に並び替え",string:"文字列",transform:"変換",transformTitle:"${type}の子要素をフィルター・並び替え・変換する",transformTitleShort:"内容をフィルター・並び替え・変換する",extract:"抽出",extractTitle:"${type}を抽出",transformQueryTitle:"JMESPathクエリを入力",transformWizardLabel:"ウィザード",transformWizardFilter:"フィルター",transformWizardSortBy:"並び替え",transformWizardSelectFields:"フィールドを選択",transformQueryLabel:"クエリ",transformPreviewLabel:"プレビュー",type:"型",typeTitle:"選択中のフィールドの型を変更",openUrl:"Ctrl+Click または Ctrl+Enter で 新規ウィンドウでURLを開く",undo:"元に戻す (Ctrl+Z)",validationCannotMove:"子要素に移動できません ",autoType:"オート: フィールドの型は値から自動的に決定されます。 (文字列・数値・ブール・null)",objectType:"オブジェクト: オブジェクトは順序が決まっていないキーと値のペア組み合わせです。",arrayType:"配列: 配列は順序が決まっている値の集合体です。",stringType:"文字列: フィールド型は値から決定されませんが、常に文字列として返されます。",modeCodeText:"コードモード",modeCodeTitle:"ハイライトモードに切り替え",modeFormText:"フォームモード",modeFormTitle:"フォームモードに切り替え",modeTextText:"テキストモード",modeTextTitle:"テキストモードに切り替え",modeTreeText:"ツリーモード",modeTreeTitle:"ツリーモードに切り替え",modeViewText:"ビューモード",modeViewTitle:"ビューモードに切り替え",modePreviewText:"プレビュー",modePreviewTitle:"プレビューに切り替え",examples:"例",default:"デフォルト",containsInvalidProperties:"無効なプロパティが含まれています",containsInvalidItems:"無効なアイテムが含まれています"},"fr-FR":{array:"Liste",auto:"Auto",appendText:"Ajouter",appendTitle:"Ajouter un champ de type 'auto' après ce champ (Ctrl+Shift+Ins)",appendSubmenuTitle:"Sélectionner le type du champ à ajouter",appendTitleAuto:"Ajouter un champ de type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendant",ascendingTitle:"Trier les enfants de ce ${type} par ordre ascendant",actionsMenu:"Ouvrir le menu des actions (Ctrl+M)",collapseAll:"Regrouper",descending:"Descendant",descendingTitle:"Trier les enfants de ce ${type} par ordre descendant",drag:"Déplacer (Alt+Shift+Arrows)",duplicateKey:"Dupliquer la clé",duplicateText:"Dupliquer",duplicateTitle:"Dupliquer les champs sélectionnés (Ctrl+D)",duplicateField:"Dupliquer ce champ (Ctrl+D)",duplicateFieldError:"Dupliquer le nom de champ",cannotParseFieldError:"Champ impossible à parser en JSON",cannotParseValueError:"Valeur impossible à parser en JSON",empty:"vide",expandAll:"Étendre",expandTitle:`Étendre/regrouper ce champ (Ctrl+E).
  334. Ctrl+Click pour étendre/regrouper avec tous les champs.`,insert:"Insérer",insertTitle:"Insérer un champ de type 'auto' avant ce champ (Ctrl+Ins)",insertSub:"Sélectionner le type de champ à insérer",object:"Objet",ok:"Ok",redo:"Rejouer (Ctrl+Shift+Z)",removeText:"Supprimer",removeTitle:"Supprimer les champs sélectionnés (Ctrl+Del)",removeField:"Supprimer ce champ (Ctrl+Del)",searchTitle:"Rechercher champs et valeurs",searchNextResultTitle:"Résultat suivant (Enter)",searchPreviousResultTitle:"Résultat précédent (Shift + Enter)",selectNode:"Sélectionner un nœud...",showAll:"voir tout",showMore:"voir plus",showMoreStatus:"${visibleChilds} éléments affichés de ${totalChilds}.",sort:"Trier",sortTitle:"Trier les champs de ce ${type}",sortTitleShort:"Trier",sortFieldLabel:"Champ:",sortDirectionLabel:"Direction:",sortFieldTitle:"Sélectionner les champs permettant de trier les listes et objet",sortAscending:"Ascendant",sortAscendingTitle:"Trier les champs sélectionnés par ordre ascendant",sortDescending:"Descendant",sortDescendingTitle:"Trier les champs sélectionnés par ordre descendant",string:"Chaîne",transform:"Transformer",transformTitle:"Filtrer, trier, or transformer les enfants de ce ${type}",transformTitleShort:"Filtrer, trier ou transformer le contenu",extract:"Extraire",extractTitle:"Extraire ce ${type}",transformQueryTitle:"Saisir une requête JMESPath",transformWizardLabel:"Assistant",transformWizardFilter:"Filtrer",transformWizardSortBy:"Trier par",transformWizardSelectFields:"Sélectionner les champs",transformQueryLabel:"Requête",transformPreviewLabel:"Prévisualisation",type:"Type",typeTitle:"Changer le type de ce champ",openUrl:"Ctrl+Click ou Ctrl+Enter pour ouvrir l'url dans une autre fenêtre",undo:"Annuler la dernière action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Champe de type "auto". Ce type de champ est automatiquement déterminé en fonction de la valeur et peut être de type "chaîne", "nombre", "booléen" ou null.',objectType:'Champ de type "objet". Un objet contient un ensemble non ordonné de paires clé/valeur.',arrayType:'Champ de type "liste". Une liste contient une collection ordonnée de valeurs.',stringType:`Champ de type "chaîne". Ce type de champ n'est pas déterminé en fonction de la valeur, mais retourne systématiquement une chaîne de caractères.`,modeEditorTitle:"Changer mode d'édition",modeCodeText:"Code",modeCodeTitle:"Activer surlignage code",modeFormText:"Formulaire",modeFormTitle:"Activer formulaire",modeTextText:"Texte",modeTextTitle:"Activer éditeur texte",modeTreeText:"Arbre",modeTreeTitle:"Activer éditeur arbre",modeViewText:"Lecture seule",modeViewTitle:"Activer vue arbre",modePreviewText:"Prévisualisation",modePreviewTitle:"Activer mode prévisualiser",examples:"Exemples",default:"Défaut",containsInvalidProperties:"Contient des propriétés non valides",containsInvalidItems:"Contient des éléments invalides"},de:{array:"Auflistung",auto:"Auto",appendText:"anhängen",appendTitle:"Fügen Sie nach diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Umschalt+Ein)",appendSubmenuTitle:"Wählen Sie den Typ des neuen Feldes",appendTitleAuto:"Ein neues Feld vom Typ 'auto' hinzufügen (Strg+Umschalt+Ein)",ascending:"Aufsteigend",ascendingTitle:"Sortieren Sie die Elemente dieses ${type} in aufsteigender Reihenfolge",actionsMenu:"Klicken Sie zum Öffnen des Aktionsmenüs (Strg+M)",cannotParseFieldError:"Feld kann nicht in JSON geparst werden",cannotParseValueError:"Wert kann nicht in JSON geparst werden",collapseAll:"Alle Felder zuklappen",compactTitle:"JSON-Daten verdichten, alle Leerzeichen entfernen (Strg+Umschalt+\\)",descending:"Absteigend",descendingTitle:"Sortieren Sie die Elemente dieses ${type} in absteigender Reihenfolge",drag:"Ziehen, um dieses Feld zu verschieben (Alt+Umschalt+Pfeile)",duplicateKey:"Doppelter Schlüssel",duplicateText:"Duplikat",duplicateTitle:"Ausgewählte Felder duplizieren (Strg+D)",duplicateField:"Dieses Feld duplizieren (Strg+D)",duplicateFieldError:"Doppelter Feldname",emp
  335. Strg+Klicken Sie, um dieses Feld einschließlich aller Elemente zu erweitern/zu kollabieren.`,formatTitle:"JSON-Daten mit korrekter Einrückung und Zeilenvorschüben formatieren (Strg+\\)",insert:"einfügen",insertTitle:"Fügen Sie vor diesem Feld ein neues Feld mit dem Typ 'auto' ein (Strg+Einfg)",insertSub:"Wählen Sie den Typ des neuen Feldes",object:"Objekt",ok:"Ok",redo:"Wiederholen (Strg+Umschalt+Z)",removeText:"entfernen",removeTitle:"Ausgewählte Felder entfernen (Strg+Entf)",removeField:"Dieses Feld entfernen (Strg+Entf)",repairTitle:"JSON reparieren: Anführungszeichen und Escape-Zeichen korrigieren, Kommentare und JSONP-Notation entfernen, JavaScript-Objekte in JSON umwandeln.",searchTitle:"Suchfelder und Werte",searchNextResultTitle:"Nächstes Ergebnis (Enter)",searchPreviousResultTitle:"Vorheriges Ergebnis (Umschalt + Eingabe)",selectNode:"Wählen Sie einen Knoten aus...",showAll:"alle anzeigen",showMore:"mehr anzeigen",showMoreStatus:"Anzeige von ${visibleChilds} von ${totalChilds}-Elementen.",sort:"Sortieren",sortTitle:"Sortieren Sie die Elemente dieses ${type}",sortTitleShort:"Inhalt sortieren",sortFieldLabel:"Feld:",sortDirectionLabel:"Richtung:",sortFieldTitle:"Wählen Sie das verschachtelte Feld, nach dem das Array oder Objekt sortiert werden soll.",sortAscending:"Aufsteigend",sortAscendingTitle:"Sortieren Sie das ausgewählte Feld in aufsteigender Reihenfolge",sortDescending:"Absteigend",sortDescendingTitle:"Sortieren Sie das ausgewählte Feld in absteigender Reihenfolge",string:"Zeichenfolge",transform:"Verwandeln",transformTitle:"Die Elemente dieses ${type} filtern, sortieren oder transformieren",transformTitleShort:"Inhalte filtern, sortieren oder transformieren",extract:"Auszug",extractTitle:"Extrahieren Sie diesen ${type}",transformQueryTitle:"Eine JMESPath-Abfrage eingeben",transformWizardLabel:"Zauberer",transformWizardFilter:"Filter",transformWizardSortBy:"Sortieren nach",transformWizardSelectFields:"Felder auswählen",transformQueryLabel:"Anfrage",transformPreviewLabel:"Vorschau",type:"Geben Sie ein.",typeTitle:"Ändern Sie den Typ dieses Feldes",openUrl:"Strg+Klicken oder Strg+Eingabe, um die URL in einem neuen Fenster zu öffnen",undo:"Letzte Aktion rückgängig machen (Strg+Z)",validationCannotMove:"Kann ein Feld nicht in ein Kind seiner selbst verschieben",autoType:'Feldtyp "auto". Der Feldtyp wird automatisch aus dem Wert bestimmt und kann ein String, eine Zahl, boolesch oder null sein.',objectType:'Feldtyp "Objekt". Ein Objekt enthält eine ungeordnete Menge von Schlüssel/Wert-Paaren.',arrayType:'Feldtyp "Array". Ein Array enthält eine geordnete Sammlung von Werten.',stringType:'Feldtyp "Zeichenfolge". Der Feldtyp wird nicht aus dem Wert bestimmt, sondern immer als Zeichenfolge zurückgegeben.',modeEditorTitle:"Editor-Modus umschalten",modeCodeText:"Code",modeCodeTitle:"Umschalten auf Code-Highlighter",modeFormText:"Formular",modeFormTitle:"Zum Formular-Editor wechseln",modeTextText:"Text",modeTextTitle:"Zum Editor für einfachen Text wechseln",modeTreeText:"Baum",modeTreeTitle:"Zum Baum-Editor wechseln",modeViewText:"Siehe",modeViewTitle:"Zur Baumansicht wechseln",modePreviewText:"Vorschau",modePreviewTitle:"In den Vorschau-Modus wechseln",examples:"Beispiele",default:"Standardmäßig",containsInvalidProperties:"Enthält ungültige Eigenschaften",containsInvalidItems:"Enthält ungültige Elemente"},ru:{array:"Массив",auto:"Авто",appendText:"Добавить",appendTitle:"Добавить новое поле с типом 'авто' после этого поля (Ctrl+Shift+Ins)",appendSubmenuTitle:"Выбрать тип поля для добавления",appendTitleAuto:"Добавить новое поле с типом 'авто' (Ctrl+Shift+Ins)",ascending:"По возрастанию",ascendingTitle:"Сортировать ${type} по возрастанию",actionsMenu:"Нажмите для открытия меню действий (Ctrl+M)",cannotParseFieldError:"Невозможно преобразовать поле в JSON",cannotParseValueError:"Нево
  336. или Ctrl+Click для раскрытия/скрытия всех потомков.`,formatTitle:"Форматирование JSON (Ctrl+I)",insert:"Вставить",insertTitle:"Вставить новое поле с типом 'авто' перед этим полем (Ctrl+Ins)",insertSub:"Выбрать тип поля для вставки",object:"Объект",ok:"ОК",redo:"Повторить (Ctrl+Shift+Z)",removeText:"Удалить",removeTitle:"Удалить выбранные поля (Ctrl+Del)",removeField:"Удалить поле (Ctrl+Del)",repairTitle:"Восстановите JSON: исправьте кавычки и escape-символы, удалите комментарии и нотацию JSONP, модифицируйте объекты JavaScript в JSON.",searchTitle:"Поиск",searchNextResultTitle:"Следующий результат (Enter)",searchPreviousResultTitle:"Предыдущий результат (Shift + Enter)",selectNode:"Выбор узла...",showAll:"показать все",showMore:"больше",showMoreStatus:"${visibleChilds} из ${totalChilds}",sort:"Сортировка",sortTitle:"Сортировка потомков типа ${type}",sortTitleShort:"Сортировка содержимого",sortFieldLabel:"Поле:",sortDirectionLabel:"Направление:",sortFieldTitle:"Выберите поле для сортировки массива или объекта",sortAscending:"По возрастанию",sortAscendingTitle:"Сортировка выбранного поря по возрастанию",sortDescending:"По убыванию",sortDescendingTitle:"Сортировка выбранного поря по убыванию",string:"Строка",transform:"Модификация",transformTitle:"Фильтрация, сортировка или модификация данных типа ${type}",transformTitleShort:"Фильтрация, сортировка или модификация данных",extract:"Извлечение",extractTitle:"Извлечь тип ${type}",transformQueryTitle:"Введите JMESpath запрос",transformWizardLabel:"Мастер",transformWizardFilter:"Фильтр",transformWizardSortBy:"Сортировка",transformWizardSelectFields:"Поля",transformQueryLabel:"Запрос",transformPreviewLabel:"Просмотр",type:"Тип",typeTitle:"Изменить тип этого поля",openUrl:"Ctrl+Click или Ctrl+Enter для открытия url в новом окне",undo:"Отменить (Ctrl+Z)",validationCannotMove:"Поле не может быть перемещено в потомка",autoType:"Тип поля автоматически определяется по значению и может быть строкой, числом, логическим значением или null.",objectType:"Объект содержит неупорядоченный набор пар ключ/значение.",arrayType:"Массив содержит упорядоченный набор значений.",stringType:"Тип поля не определяется из значения, но всегда возвращается как строка.",modeEditorTitle:"Переключение режима редактора",modeCodeText:"Код",modeCodeTitle:"Переключить в режим редактора кода",modeFormText:"Форма",modeFormTitle:"Переключить в режим формы",modeTextText:"Текст",modeTextTitle:"Переключить в режим редактора текста",modeTreeText:"Дерево",modeTreeTitle:"Переключить в режим редактора дерева",modeViewText:"Просмотр дерева",modeViewTitle:"Переключить в режим просмотра дерева",modePreviewText:"Просмотр",modePreviewTitle:"Переключить в режим просмотра",examples:"Примеры",default:"По умолчанию",containsInvalidProperties:"Содержит не�
  337. Ctrl + Click으로 모든 하위 요소를 열거나 닫습니다.`,formatTitle:"적절한 들여쓰기 및 줄바꿈으로 JSON 데이터를 정형화합니다. (Ctrl + I)",insert:"삽입",insertTitle:"선택한 요소 위에 새요소를 삽입합니다. (Ctrl + Ins)",insertSub:"삽입할 요소의 유형을 선택해주세요.",object:"객체",ok:"확인",redo:"다시 실행 (Ctrl + Shift + Z)",removeText:"삭제",removeTitle:"선택한 요소를 삭제합니다. (Ctrl + Del)",removeField:"선택한 요소를 삭제합니다. (Ctrl + Del)",repairTitle:"JSON 교정: JSON 내의 주석과 JSONP 표기법을 지우고 따옴표와 이스케이프 문자를 수정합니다.",searchTitle:"요소 또는 값 찾기",searchNextResultTitle:"다음으로 찾기 (Enter)",searchPreviousResultTitle:"이전으로 찾기 (Shift + Enter)",selectNode:"요소를 선택해주세요...",showAll:"모두보기",showMore:"더보기",showMoreStatus:"${totalChilds} 개의 항목 중 ${visibleChilds} 개를 표시합니다.",sort:"정렬",sortTitle:"선택한 ${type}의 하위 요소를 정렬합니다.",sortTitleShort:"정렬",sortFieldLabel:"요소:",sortDirectionLabel:"순서:",sortFieldTitle:"배열이나 객체를 정렬하는 요소를 선택해주세요.",sortAscending:"오름차순",sortAscendingTitle:"선택한 요소를 오름차순으로 정렬합니다.",sortDescending:"내림차순",sortDescendingTitle:"선택한 요소를 내림차순으로 정렬합니다.",string:"문자",transform:"변환",transformTitle:"선택한 ${type}의 하위 요소를 필터하거나 정렬 또는 변환합니다.",transformTitleShort:"내용을 필터하거나 정렬 또는 변환합니다.",extract:"추출",extractTitle:"선택한 ${type}의 값을 최상위에 위치시킵니다.",transformQueryTitle:"JMESPath 쿼리를 입력해주세요.",transformWizardLabel:"마법사",transformWizardFilter:"필터",transformWizardSortBy:"정렬",transformWizardSelectFields:"요소를 선택해주세요.",transformQueryLabel:"쿼리",transformPreviewLabel:"미리보기",type:"유형",typeTitle:"선택한 요소의 유형을 변경합니다.",openUrl:"Ctrl + Click 또는 Ctrl + Enter로 새 창에서 URL 열기",undo:"실행 취소 (Ctrl + Z)",validationCannotMove:"하위 요소로 이동할 수 없습니다.",autoType:"자동: 요소의 형식이 값의 유형으로 결정됩니다. 문자, 숫자, 부울, 또는 null만 허용됩니다.",objectType:"객체: 순서대로 나열되지 않은 이름/값 쌍으로 이루어진 집합입니다.",arrayType:"배열: 순서대로 나열된 값의 집합입니다.",stringType:"문자: 요소의 유형이 값에서 결정되지 않지만 항상 문자로 반환됩니다.",modeEditorTitle:"편집기 유형 변경",modeCodeText:"코드",modeCodeTitle:"형식 교정을 도와주는 기능이 포함된 문자 편집기",modeFormText:"입력 양식",modeFormTitle:"정해진 요소에 값을 입력하는 편집기",modeTextText:"문자",modeTextTitle:"단순 문자 편집기",modeTreeText:"트리",modeTreeTitle:"트리 구조로 표시되는 편집기",modeViewText:"보기",modeViewTitle:"읽기전용 트리 구조로 JSON을 표시",modePreviewText:"미리보기",modePreviewTitle:"읽기전용 문자로 JSON을 표시",examples:"예제",default:"기본값",containsInvalidProperties:"잘못된 속성이 포함되어 있습니다.",containsInvalidItems:"잘못된 항목이 포함되어 있습니다"}},u=Object.keys(l),c="en",d=typeof navigator<"u"?navigator.language||navigator.userLanguage:void 0,h=u.find(function(v){return v===d})||c;function f(v){var m;v&&((m=u.find(function(w){return w===v}))?h=m:console.error("Language not found"))}function g(v){if(v)for(var m in v)(function(w){u.find(function(k){return k===w})||u.push(w),l[w]=Object.assign({},l[c],l[w],v[w])})(m)}function b(v,m,w){var k=l[w=w||h][v]||l[c][v]||v;if(m)for(var T in m)k=k.replace("${"+T+"}",m[T]);return k}},6056:function(o,l,s){s.d(l,{J:function(){return h},r:function(){return d}});var l=s(5156),u=s.n(l),c=s(9791);function d(f,w){var b,v=w.sort,m=w.filter,w=w
  338. `:"[",C=0;C<O.length;C++){var x=O[C];if(y&&(D+=R),D+=x!==void 0&&typeof x!="function"?f(x,y,R,A):"null",C<O.length-1&&(D+=y?`,
  339. `:","),D.length>A)return D+"..."}return D+=y?`
  340. `+_+"]":"]"}if(k&&h(k)==="object"){var P,$=k,L=T,_=S,V=I,H=L?_+L:void 0,Q=!0,U=L?`{
  341. `:"{";if(typeof $.toJSON=="function")return f($.toJSON(),L,_,V);for(P in $)if(function(ue,ee){return Object.prototype.hasOwnProperty.call(ue,ee)}($,P)){var K=$[P];if(Q?Q=!1:U+=L?`,
  342. `:",",(U=(U+=L?H+'"'+P+'": ':'"'+P+'":')+f(K,L,H,V)).length>V)return U+"..."}return U+=L?`
  343. `+_+"}":"}"}}function g(k,T){for(var S="";0<T--;)S+=k;return S}var b=s(9791),v=s(4188),m='Enter a <a href="http://jmespath.org" target="_blank">JMESPath</a> query to filter, sort, or transform the JSON data.<br/>To learn JMESPath, go to <a href="http://jmespath.org/tutorial.html" target="_blank">the interactive tutorial</a>.';function w(R){var T=R.container,S=R.json,I=R.queryDescription,I=I===void 0?m:I,O=R.createQuery,y=R.executeQuery,_=R.onTransform,A=S,R='<label class="pico-modal-contents"><div class="pico-modal-header">'+(0,d.Iu)("transform")+"</div><p>"+I+'</p><div class="jsoneditor-jmespath-label">'+(0,d.Iu)("transformWizardLabel")+' </div><div id="wizard" class="jsoneditor-jmespath-block jsoneditor-jmespath-wizard"> <table class="jsoneditor-jmespath-wizard-table"> <tbody> <tr> <th>'+(0,d.Iu)("transformWizardFilter")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-filter-field" > <select id="filterField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-relation" > <select id="filterRelation"> <option value="==">==</option> <option value="!=">!=</option> <option value="<">&lt;</option> <option value="<=">&lt;=</option> <option value=">">&gt;</option> <option value=">=">&gt;=</option> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-filter-value" > <input type="text" class="value" placeholder="value..." id="filterValue" /> </div> </td> </tr> <tr> <th>'+(0,d.Iu)("transformWizardSortBy")+'</th> <td class="jsoneditor-jmespath-filter"> <div class="jsoneditor-inline jsoneditor-jmespath-sort-field"> <select id="sortField"> </select> </div> <div class="jsoneditor-inline jsoneditor-jmespath-sort-order" > <select id="sortOrder"> <option value="asc">Ascending</option> <option value="desc">Descending</option> </select> </div> </td> </tr> <tr id="selectFieldsPart"> <th>'+(0,d.Iu)("transformWizardSelectFields")+'</th> <td class="jsoneditor-jmespath-filter"> <select class="jsoneditor-jmespath-select-fields" id="selectFields" multiple></select> </td> </tr> </tbody> </table></div><div class="jsoneditor-jmespath-label">'+(0,d.Iu)("transformQueryLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="query" rows="4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" title="'+(0,d.Iu)("transformQueryTitle")+'">[*]</textarea></div><div class="jsoneditor-jmespath-label">'+(0,d.Iu)("transformPreviewLabel")+' </div><div class="jsoneditor-jmespath-block"> <textarea id="preview" class="jsoneditor-transform-preview" readonly> </textarea></div><div class="jsoneditor-jmespath-block jsoneditor-modal-actions"> <input type="submit" id="ok" value="'+(0,d.Iu)("ok")+'" autofocus /></div></div>';l()({parent:T,content:R,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate(function(D){var C=D.modalElem(),J=C.querySelector("#wizard"),x=C.querySelector("#ok"),P=C.querySelector("#filterField"),$=C.querySelector("#filterRelation"),L=C.querySelector("#filterValue"),V=C.querySelector("#sortField"),H=C.querySelector("#sortOrder"),Q=C.querySelector("#selectFields"),U=C.querySelector("#query"),K=C.querySelector("#preview");Array.isArray(A)||(J.style.fontStyle="italic",J.textContent="(wizard not available for objects, only for arrays)"),(0,b.getChildPaths)(S).forEach(function(de){var de=G(de),ae=document.createElement("option"),ae=(ae.text=de,ae.value=de,P.appendChild(ae),document.createElement("option"));ae.text=de,ae.value=de,V.ap
  344. `);return V?{row:$.line,column:$.column,text:"Schema validation error"+(L.length!==1?"s":"")+`:
  345. `+V,type:"warning",source:"jsoneditor"}:{}}),this._refreshAnnotations()),this.errorTable.setErrors(C,P),this.aceEditor&&this.aceEditor.resize(!1)},_.getTextSelection=function(){var C,x,P,$={};return this.textarea?(P=(0,T.getInputSelection)(this.textarea),this.cursorInfo&&this.cursorInfo.line===P.end.row&&this.cursorInfo.column===P.end.column?($.start=P.end,$.end=P.start):$=P,{start:$.start,end:$.end,text:this.textarea.value.substring(P.startIndex,P.endIndex)}):this.aceEditor?(P=this.aceEditor.getSelection(),C=this.aceEditor.getSelectedText(),x=P.getRange(),(P=P.getSelectionLead()).row===x.end.row&&P.column===x.end.column?$=x:($.start=x.end,$.end=x.start),{start:{row:$.start.row+1,column:$.start.column+1},end:{row:$.end.row+1,column:$.end.column+1},text:C}):void 0},_.onTextSelectionChange=function(C){typeof C=="function"&&(this._selectionChangedHandler=(0,T.debounce)(C,this.DEBOUNCE_INTERVAL))},_.setTextSelection=function(C,x){var P,$,L;C&&x&&(this.textarea?(P=(0,T.getIndexForPosition)(this.textarea,C.row,C.column),L=(0,T.getIndexForPosition)(this.textarea,x.row,x.column),-1<P&&-1<L&&(this.textarea.setSelectionRange?(this.textarea.focus(),this.textarea.setSelectionRange(P,L)):this.textarea.createTextRange&&(($=this.textarea.createTextRange()).collapse(!0),$.moveEnd("character",L),$.moveStart("character",P),$.select()),L=(this.textarea.value.match(/\n/g)||[]).length+1,P=this.textarea.scrollHeight/L,$=C.row*P,this.textarea.scrollTop=$>this.textarea.clientHeight?$-this.textarea.clientHeight/2:0)):this.aceEditor&&(L={start:{row:C.row-1,column:C.column-1},end:{row:x.row-1,column:x.column-1}},this.aceEditor.selection.setRange(L),this.aceEditor.scrollToLine(C.row-1,!0)))};var D=[{mode:"text",mixin:_,data:"text",load:R},{mode:"code",mixin:_,data:"text",load:R}]},8038:function(o,ve,ae){ae.r(ve),ae.d(ve,{treeModeMixins:function(){return be}});var l={start:function(ie,ce,pe){return ce.indexOf(ie)===0},contain:function(ie,ce,pe){return-1<ce.indexOf(ie)}},u=ae(897),c=ae(2474);function d(ie){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function h(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(d(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),d(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),d(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var f=function(){function ie(){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");this.locked=!1}var ce,pe;return ce=ie,(pe=[{key:"highlight",value:function(X){this.locked||(this.node!==X&&(this.node&&this.node.setHighlight(!1),this.node=X,this.node.setHighlight(!0)),this._cancelUnhighlight())}},{key:"unhighlight",value:function(){var X;this.locked||(X=this).node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout(function(){X.node.setHighlight(!1),X.node=void 0,X.unhighlightTimer=void 0},0))}},{key:"_cancelUnhighlight",value:function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void 0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}}])&&h(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}(),g=ae(7907),b=ae(6056),v=ae(6617),ve=ae(233),m=ae.n(ve),w=ae(2602),k=ae(9791),T=ae(6210),S=ae(2558),I=ae(4188);function O(ie){return function(ce){if(Array.isArray(ce))return R(ce)}(ie)||function(ce){if(typeof Symbol<"u"&&ce[Symbol.iterator]!=null||ce["@@iterator"]!=null)return Array.from(ce)}(ie)||A(ie)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  346. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(ie,ce){return function(pe){if(Array.isArray(pe))return pe}(ie)||function(pe,X){var Z=pe==null?null:typeof Symbol<"u"&&pe[Symbol.iterator]||pe["@@iterator"];if(Z!=null){var Y,se,fe,me,Ae=[],Be=!0,Ye=!1;try{if(fe=(Z=Z.call(pe)).next,X!==0)for(;!(Be=(Y=fe.call(Z)).done)&&(Ae.push(Y.value),Ae.length!==X);Be=!0);}catch(Qe){Ye=!0,se=Qe}finally{try{if(!Be&&Z.return!=null&&(me=Z.return(),Object(me)!==me))return}finally{if(Ye)throw se}}return Ae}}(ie,ce)||A(ie,ce)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  347. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(ie,ce){var pe,X,Z,Y,se=typeof Symbol<"u"&&ie[Symbol.iterator]||ie["@@iterator"];if(se)return X=!(pe=!0),{s:function(){se=se.call(ie)},n:function(){var fe=se.next();return pe=fe.done,fe},e:function(fe){X=!0,Z=fe},f:function(){try{pe||se.return==null||se.return()}finally{if(X)throw Z}}};if(Array.isArray(ie)||(se=A(ie))||ce&&ie&&typeof ie.length=="number")return se&&(ie=se),Y=0,{s:ce=function(){},n:function(){return Y>=ie.length?{done:!0}:{done:!1,value:ie[Y++]}},e:function(fe){throw fe},f:ce};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  348. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(ie,ce){var pe;if(ie)return typeof ie=="string"?R(ie,ce):(pe=(pe=Object.prototype.toString.call(ie).slice(8,-1))==="Object"&&ie.constructor?ie.constructor.name:pe)==="Map"||pe==="Set"?Array.from(ie):pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe)?R(ie,ce):void 0}function R(ie,ce){(ce==null||ce>ie.length)&&(ce=ie.length);for(var pe=0,X=new Array(ce);pe<ce;pe++)X[pe]=ie[pe];return X}function D(ie){return(D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ie)}function C(ie,ce){for(var pe=0;pe<ce.length;pe++){var X=ce[pe];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(ie,function(Z){return Z=function(Y,se){if(D(Y)!=="object"||Y===null)return Y;var fe=Y[Symbol.toPrimitive];if(fe===void 0)return(se==="string"?String:Number)(Y);if(fe=fe.call(Y,se||"default"),D(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Z,"string"),D(Z)==="symbol"?Z:String(Z)}(X.key),X)}}var x=function(){function ie(X,Z){if(!(this instanceof ie))throw new TypeError("Cannot call a class as a function");this.editor=X,this.dom={},this.expanded=!1,Z&&Z instanceof Object?(this.setField(Z.field,Z.fieldEditable),"value"in Z&&this.setValue(Z.value,Z.type),"internalValue"in Z&&this.setInternalValue(Z.internalValue)):(this.setField(""),this.setValue(null)),this._debouncedOnChangeValue=(0,k.debounce)(this._onChangeValue.bind(this),ie.prototype.DEBOUNCE_INTERVAL),this._debouncedOnChangeField=(0,k.debounce)(this._onChangeField.bind(this),ie.prototype.DEBOUNCE_INTERVAL),this.visibleChilds=this.getMaxVisibleChilds()}var ce,pe;return ce=ie,(pe=[{key:"getMaxVisibleChilds",value:function(){return this.editor&&this.editor.options&&this.editor.options.maxVisibleChilds?this.editor.options.maxVisibleChilds:P}},{key:"_updateEditability",value:function(){var X,Z;this.editable={field:!0,value:!0},this.editor&&(this.editable.field=this.editor.options.mode==="tree",this.editable.value=this.editor.options.mode!=="view",this.editor.options.mode!=="tree"&&this.editor.options.mode!=="form"||typeof this.editor.options.onEditable!="function"||(X=this.getValue.bind(this),typeof(Z=this.editor.options.onEditable({field:this.field,get value(){return X()},path:this.getPath()}))=="boolean"?(this.editable.field=Z,this.editable.value=Z):D(Z)==="object"&&Z!==null?(typeof Z.field=="boolean"&&(this.editable.field=Z.field),typeof Z.value=="boolean"&&(this.editable.value=Z.value)):(console.error("Invalid return value for function onEditable.","Actual value:",Z,".","Either a boolean or object { field: boolean, value: boolean } expected."),this.editable.field=!1,this.editable.value=!1)))}},{key:"getPath",value:function(){for(var X=this,Z=[];X;){var Y=X.getName();Y!==void 0&&Z.unshift(Y),X=X.parent}return Z}},{key:"getInternalPath",value:function(){for(var X=this,Z=[];X;)X.parent&&Z.unshift(X.getIndex()),X=X.parent;return Z}},{key:"getName",value:function(){return this.parent?this.parent.type!=="array"?this.field:this.index:void 0}},{key:"findNodeByPath",value:function(X){if(X){if(X.length===0)return this;if(X.length&&this.childs&&this.childs.length){for(var Z=0;Z<this.childs.length;++Z)if(""+X[0]==""+this.childs[Z].getName())return this.childs[Z].findNodeByPath(X.slice(1))}}}},{key:"findNodeByInternalPath",value:function(X){if(X){for(var se=this,Z=0;Z<X.length&&se;Z++)var Y=X[Z],se=se.childs[Y];return se}}},{key:"serialize",value:function(){return{value:this.getValue(),path:this.getPath()}}},{key:"findNode",value:function(X){for(var Z=(0,k.parsePath)(X),Y=this;Y&&0<Z.length;)(function(){var se=Z.shift();if(typeof se=="number"){if(Y.type!=="array")throw new Error("Cannot get child node at index "+se+": node is no array");Y=Y.childs[se]}else{if(Y.type!=="object")throw new Error("Cannot get child node "+se+": node is no object");Y=Y.chil
  349. `?Z+="\\n":se==="\\"?(Z+=se,Y++,(se=X.charAt(Y))!==""&&'"\\/bfnrtu'.indexOf(se)!==-1||(Z+="\\"),Z+=se):Z+=se==='"'?'\\"':se,Y++}return Z}},{key:"updateNodeName",value:function(){var X=this.childs?this.childs.length:0;if(this.type==="object"||this.type==="array"){if(this.editor.options.onNodeName)try{var Z=this.getValue.bind(this),Y=this.editor.options.onNodeName({path:this.getPath(),size:X,type:this.type,get value(){return Z()}})}catch(se){console.error("Error in onNodeName callback: ",se)}this.dom.value.textContent=this.type==="object"?"{"+(Y||X)+"}":"["+(Y||X)+"]"}}},{key:"recursivelyUpdateNodeName",value:function(){if(this.expanded&&(this.updateNodeName(),this.childs!=="undefined"))for(var X in this.childs)this.childs[X].recursivelyUpdateNodeName()}}])&&C(ce.prototype,pe),Object.defineProperty(ce,"prototype",{writable:!1}),ie}(),P=(x.prototype.DEBOUNCE_INTERVAL=150,x.prototype.MAX_SEARCH_RESULTS=999,100);function $(ie){return ie.getInternalPath()}function L(ie){return ie.getField()}function V(ie,ce){return Object.prototype.hasOwnProperty.call(ie,ce)}x.focusElement=void 0,x.select=function(ie){setTimeout(function(){(0,k.selectContentEditable)(ie)},0)},x.onDragStart=function(ie,ce){if(!Array.isArray(ie))return x.onDragStart([ie],ce);var pe,X,Z,Y,se;ie.length!==0&&(pe=ie[0],X=ie[ie.length-1],Z=pe.parent,se=x.getNodeFromTarget(ce.target),Y=pe.editor,se=(0,k.getAbsoluteTop)(se.dom.tr)-(0,k.getAbsoluteTop)(pe.dom.tr),Y.mousemove||(Y.mousemove=(0,k.addEventListener)(ce.view,"mousemove",function(fe){x.onDrag(ie,fe)})),Y.mouseup||(Y.mouseup=(0,k.addEventListener)(ce.view,"mouseup",function(fe){x.onDragEnd(ie,fe)})),Y.highlighter.lock(),Y.drag={oldCursor:document.body.style.cursor,oldSelection:Y.getDomSelection(),oldPaths:ie.map($),oldParent:Z,oldNextNode:Z.childs[X.getIndex()+1]||Z.append,oldParentPathRedo:Z.getInternalPath(),oldIndexRedo:pe.getIndex(),mouseX:ce.pageX,offsetY:se,level:pe.getLevel()},document.body.style.cursor="move",ce.preventDefault())},x.onDrag=function(ie,ce){if(!Array.isArray(ie))return x.onDrag([ie],ce);if(ie.length!==0){var pe,X,Z,Y,se,fe=ie[0].editor,me=ce.pageY-fe.drag.offsetY,Ae=ce.pageX,Be=!1,Ye=ie[0],Qe=Ye.dom.tr,nt=(0,k.getAbsoluteTop)(Qe),st=Qe.offsetHeight;if(me<nt){for(Ue=Qe;Ue=Ue.previousSibling,Te=x.getNodeFromTarget(Ue),Z=Ue?(0,k.getAbsoluteTop)(Ue):0,Ue&&me<Z;);(Te=Te&&!Te.parent?void 0:Te)||(Ue=(Qe=Qe.parentNode.firstChild)?Qe.nextSibling:void 0,(Te=x.getNodeFromTarget(Ue))===Ye&&(Te=void 0)),!(Te=Te&&Te.isVisible()&&(Z=(Ue=Te.dom.tr)?(0,k.getAbsoluteTop)(Ue):0)+st<me?void 0:Te)||fe.options.limitDragging!==!1&&Te.parent!==ie[0].parent||(ie.forEach(function(At){Te.parent.moveBefore(At,Te)}),Be=!0)}else{var Le=ie[ie.length-1];if(st=(Qe=Le.expanded&&Le.append?Le.append.getDom():Le.dom.tr)?Qe.nextSibling:void 0){for(Y=(0,k.getAbsoluteTop)(st),pe=st;X=x.getNodeFromTarget(pe),pe&&(se=pe.nextSibling?(0,k.getAbsoluteTop)(pe.nextSibling):0,se=pe?se-Y:0,X&&X.parent.childs.length===ie.length&&X.parent.childs[ie.length-1]===Le&&(nt+=27),pe=pe.nextSibling),pe&&nt+se<me;);if(X&&X.parent){for(var st=Ae-fe.drag.mouseX,st=Math.round(st/24/2),Me=fe.drag.level+st,je=X.getLevel(),Ue=X.dom.tr&&X.dom.tr.previousSibling;je<Me&&Ue;){var Te=x.getNodeFromTarget(Ue),bt=ie.some(function(ht){return ht===Te||Te.isDescendantOf(ht)});if(!bt){if(!(Te instanceof H)||(bt=Te.parent.childs,bt.length===ie.length&&bt[ie.length-1]===Le))break;je=(X=x.getNodeFromTarget(Ue)).getLevel()}Ue=Ue.previousSibling}(X=X instanceof H&&!X.isVisible()&&X.parent.showMore.isVisible()?X._nextNode():X)&&(fe.options.limitDragging===!1||X.parent===ie[0].parent)&&X.dom.tr&&X.dom.tr!==Qe.nextSibling&&(ie.forEach(function(At){X.parent.moveBefore(At,X)}),Be=!0)}}}Be&&(fe.drag.mouseX=Ae,fe.drag.level=Ye.getLevel()),fe.startAutoScroll(me),ce.preventDefault()}},x.onDragEnd=function(ie,ce){if(!Array.isArray(ie))return x.onDrag([ie],ce);var pe,X,Z,Y,se,fe,me,Ae,Be;ie.length!==0&&(fe=ie[0],pe=fe.editor,fe&&fe.dom.menu&&fe.dom.menu.focus(),X=pe.drag.oldParent.getInternalPath(),Z=fe.parent.getInternalPath(),Y=pe.drag.oldParent===fe.parent,se=pe.drag.oldNextNo
  350. `,""),dt=this.options.length,Mt=Ze.substring(this.startFrom);Ae=Ze.substring(0,this.startFrom);for(var He=0;He<dt;He++){var wt=this.options[He];if(!fe.caseSensitive&&wt.toLowerCase().indexOf(Mt.toLowerCase())===0||fe.caseSensitive&&wt.indexOf(Mt)===0){this.elementHint.innerText=Ae+Mt+wt.substring(Mt.length),this.elementHint.realInnerText=Ae+wt;break}}nt.style.left=X(Ae)+"px",bt.refresh(Mt,this.options),this.elementHint.style.width=X(this.elementHint.innerText)+10+"px",nt.style.visibility!=="hidden"&&(this.elementHint.style.width=X(this.elementHint.innerText)+nt.clientWidth+"px")}},hide:function(){st.style.visibility="hidden"},refresh:function(Pe,Ze){st.style.visibility="hidden",Me=0,st.textContent="";var Mt=window.innerHeight||document.documentElement.clientHeight,wt=st.parentNode.getBoundingClientRect(),dt=wt.top-6,Mt=Mt-wt.bottom-6,He=(Le=[],typeof fe.filter=="function"?fe.filter:l[fe.filter]),wt=He?Ze.filter(function(Ee){return He(fe.caseSensitive?Pe:Pe.toLowerCase(),fe.caseSensitive?Ee:Ee.toLowerCase(),fe)}):[];(Le=wt.map(function(Ee){var Xe=document.createElement("div"),ct=(Xe.className="item",Xe.onmouseover=Z,Xe.onmouseout=Y,Xe.onmousedown=se,Xe.__hint=Ee,Xe.textContent="",Xe.appendChild(document.createTextNode(Ee.substring(0,Pe.length))),document.createElement("b"));return ct.appendChild(document.createTextNode(Ee.substring(Pe.length))),Xe.appendChild(ct),st.appendChild(Xe),Xe})).length===0||Le.length===1&&(Pe.toLowerCase()===Le[0].__hint.toLowerCase()&&!fe.caseSensitive||Pe===Le[0].__hint&&fe.caseSensitive)||Le.length<2||(Ue.highlight(0),3*Mt<dt?(st.style.maxHeight=dt+"px",st.style.top="",st.style.bottom="100%"):(st.style.top="100%",st.style.bottom="",st.style.maxHeight=Mt+"px"),st.style.visibility="visible")},highlight:function(Pe){je!==-1&&Le[je]&&(Le[je].className="item"),Le[Pe].className="item hover",je=Pe},move:function(Pe){return st.style.visibility==="hidden"?"":(Me+Pe!==-1&&Me+Pe!==Le.length&&(Me+=Pe,Ue.highlight(Me)),Le[Me].__hint)},onmouseselection:function(){}},At=(function(Pe){var Ze=(Pe=Pe||window.event).keyCode;if(this.elementHint!=null&&Ze!==33&&Ze!==34)if(Ze===27)Te.hideDropDown(),Te.element.focus(),Pe.preventDefault(),Pe.stopPropagation();else{var dt,Mt=(Mt=this.element.innerText).replace(`
  351. `,"");if(0<=fe.confirmKeys.indexOf(Ze))Ze===9&&this.elementHint.innerText.length===0&&Te.onTab(),0<this.elementHint.innerText.length&&this.element.innerText!==this.elementHint.realInnerText&&(this.element.innerText=this.elementHint.realInnerText,Te.hideDropDown(),pe(this.element),Ze===9)&&(Te.element.focus(),Pe.preventDefault(),Pe.stopPropagation());else if(Ze===13)if(this.elementHint.innerText.length===0)Te.onEnter();else{var He=nt.style.visibility==="hidden";if(bt.hide(),He)return Te.hideDropDown(),Te.element.focus(),void Te.onEnter();this.element.innerText=this.elementHint.realInnerText,Te.hideDropDown(),pe(this.element),Pe.preventDefault(),Pe.stopPropagation()}else Ze===40?(He=Mt.substring(this.startFrom),(dt=bt.move(1))===""&&Te.onArrowDown(),this.elementHint.innerText=Ae+He+dt.substring(He.length),this.elementHint.realInnerText=Ae+dt,Pe.preventDefault(),Pe.stopPropagation()):Ze===38&&(He=Mt.substring(this.startFrom),(dt=bt.move(-1))===""&&Te.onArrowUp(),this.elementHint.innerText=Ae+He+dt.substring(He.length),this.elementHint.realInnerText=Ae+dt,Pe.preventDefault(),Pe.stopPropagation())}}).bind(Te),ht=function(Pe){Te.hideDropDown()},bt.onmouseselection=function(Pe,Ze){Ze.element.innerText=Ze.elementHint.innerText=Ae+Pe,Ze.hideDropDown(),window.setTimeout(function(){Ze.element.focus(),pe(Ze.element)},1)},Te)),this.options.history&&this.options.mode!=="view"&&(this.history=new ee(this)),this._createFrame(),this._createTable()},ae.destroy=function(){this.frame&&this.container&&this.frame.parentNode===this.container&&(this.container.removeChild(this.frame),this.frame=null),this.container=null,this.dom=null,this.clear(),this.node=null,this.focusTarget=null,this.selection=null,this.multiselection=null,this.errorNodes=null,this.validateSchema=null,this._debouncedValidate=null,this.history&&(this.history.destroy(),this.history=null),this.searchBox&&(this.searchBox.destroy(),this.searchBox=null),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.frameFocusTracker.destroy()},ae._setOptions=function(ie){var ce=this;this.options={search:!0,history:!0,mode:"tree",name:void 0,schema:null,schemaRefs:null,autocomplete:null,navigationBar:!0,mainMenuBar:!0,limitDragging:!1,onSelectionChange:null,colorPicker:!0,onColorPicker:function(pe,X,Z){var Y;de()?(Y=pe.getBoundingClientRect().top,Y=(0,k.getWindow)(pe).innerHeight-Y<300&&300<Y,new(de())({parent:pe,color:X,popup:Y?"top":"bottom",onDone:function(se){se=se.rgba[3]===1?se.hex.substr(0,7):se.hex,Z(se)}}).show()):console.warn("Cannot open color picker: the `vanilla-picker` library is not included in the bundle. Either use the full bundle or implement your own color picker using `onColorPicker`.")},timestampTag:!0,timestampFormat:null,createQuery:b.r,executeQuery:b.J,onEvent:null,enableSort:!0,enableTransform:!0},ie&&(Object.keys(ie).forEach(function(pe){ce.options[pe]=ie[pe]}),ie.limitDragging==null)&&ie.schema!=null&&(this.options.limitDragging=!0),this.setSchema(this.options.schema,this.options.schemaRefs),this._debouncedValidate=(0,k.debounce)(this._validateAndCatch.bind(this),this.DEBOUNCE_INTERVAL),ie.onSelectionChange&&this.onSelectionChange(ie.onSelectionChange),(0,g.cC)(this.options.languages),(0,g.m0)(this.options.language)},ae.set=function(ie){ie instanceof Function||ie===void 0?this.clear():(this.content.removeChild(this.table),ie={field:this.options.name,value:ie},ie=new x(this,ie),this._setRoot(ie),this._validateAndCatch(),this.node.expand(!1),this.content.appendChild(this.table)),this.history&&this.history.clear(),this.searchBox&&this.searchBox.clear()},ae.update=function(ie){var ce,pe;this.node.deepEqual(ie)||(ce=this.getSelection(),this.onChangeDisabled=!0,this.node.update(ie),this.onChangeDisabled=!1,this._validateAndCatch(),this.searchBox&&!this.searchBox.isEmpty()&&this.searchBox.forceSearch(),ce&&ce.start&&ce.end&&(ie=this.node.findNodeByPath(ce.start.path),pe=this.node.findNodeByPath(ce.end.path),ie)&&pe?this.setSelection(ce.start,ce.end):this.setSelection({},{}))},ae.get=function(){if(this.node)return this.node.getValue()},ae.getText=fu
  352. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b(Ee,Xe){(Xe==null||Xe>Ee.length)&&(Xe=Ee.length);for(var ct=0,_t=new Array(Xe);ct<Xe;ct++)_t[ct]=Ee[ct];return _t}function v(Ee){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Xe){return typeof Xe}:function(Xe){return Xe&&typeof Symbol=="function"&&Xe.constructor===Symbol&&Xe!==Symbol.prototype?"symbol":typeof Xe})(Ee)}var m=1e4,w=9466848e5;function k(Ee){try{return JSON.parse(Ee)}catch(Xe){throw I(Ee),Xe}}function T(Ee){try{return(0,c.K)(Ee)}catch{return Ee}}function S(Ee){return Ee.replace(/[\u007F-\uFFFF]/g,function(Xe){return"\\u"+("0000"+Xe.charCodeAt(0).toString(16)).slice(-4)})}function I(Ee){(d!==void 0?d:JSON).parse(Ee)}function O(Ee,Xe){for(var ct in Xe)wt(Xe,ct)&&(Ee[ct]=Xe[ct]);return Ee}function y(Ee){for(var Xe in Ee)wt(Ee,Xe)&&delete Ee[Xe];return Ee}function _(Ee){return Ee===null?"null":Ee===void 0?"undefined":Ee instanceof Number||typeof Ee=="number"?"number":Ee instanceof String||typeof Ee=="string"?"string":Ee instanceof Boolean||typeof Ee=="boolean"?"boolean":Ee instanceof RegExp?"regexp":D(Ee)?"array":"object"}var A=/^https?:\/\/\S+$/;function R(Ee){return(typeof Ee=="string"||Ee instanceof String)&&A.test(Ee)}function D(Ee){return Object.prototype.toString.call(Ee)==="[object Array]"}function C(Ee){return Ee.ownerDocument.defaultView}function x(Ee){return Ee.getBoundingClientRect().left+window.pageXOffset||document.scrollLeft||0}function P(Ee){return Ee.getBoundingClientRect().top+window.pageYOffset||document.scrollTop||0}function $(Ee,Xe){var ct=Ee.className.split(" ");ct.indexOf(Xe)===-1&&(ct.push(Xe),Ee.className=ct.join(" "))}function L(Ee){Ee.className=""}function V(Ee,_t){var ct=Ee.className.split(" "),_t=ct.indexOf(_t);_t!==-1&&(ct.splice(_t,1),Ee.className=ct.join(" "))}function H(Ee){for(var Xe=Ee.childNodes,ct=0,_t=Xe.length;ct<_t;ct++){var Qt=Xe[ct],ln=(Qt.style&&Qt.removeAttribute("style"),Qt.attributes);if(ln)for(var kn=ln.length-1;0<=kn;kn--){var hr=ln[kn];hr.specified===!0&&Qt.removeAttribute(hr.name)}H(Qt)}}function Q(Ee){var Xe;document.createRange&&((Xe=document.createRange()).selectNodeContents(Ee),Xe.collapse(!1),(Ee=window.getSelection()).removeAllRanges(),Ee.addRange(Xe))}function U(Ee){var Xe;Ee&&Ee.nodeName==="DIV"&&window.getSelection&&document.createRange&&((Xe=document.createRange()).selectNodeContents(Ee),(Ee=window.getSelection()).removeAllRanges(),Ee.addRange(Xe))}function K(){if(window.getSelection){var Ee=window.getSelection();if(Ee.getRangeAt&&Ee.rangeCount)return Ee.getRangeAt(0)}return null}function J(Ee){var Xe;Ee&&window.getSelection&&((Xe=window.getSelection()).removeAllRanges(),Xe.addRange(Ee))}function ue(){var Ee=K();return Ee&&"startOffset"in Ee&&"endOffset"in Ee&&Ee.startContainer&&Ee.startContainer===Ee.endContainer?{startOffset:Ee.startOffset,endOffset:Ee.endOffset,container:Ee.startContainer.parentNode}:null}function ee(Ee){var Xe;document.createRange&&window.getSelection&&window.getSelection()&&(Xe=document.createRange(),Ee.container.firstChild||Ee.container.appendChild(document.createTextNode("")),Xe.setStart(Ee.container.firstChild,Ee.startOffset),Xe.setEnd(Ee.container.firstChild,Ee.endOffset),J(Xe))}function N(Ee,Xe){var ct;if(Xe===void 0&&(Xe={_text:"",flush:function(){var Wr=this._text;return this._text="",Wr},set:function(Wr){this._text=Wr}}),Ee.nodeValue)return(ct=q(Ee.nodeValue))!==""?Xe.flush()+ct:"";if(Ee.hasChildNodes()){for(var _t=Ee.childNodes,Qt="",ln=0,kn=_t.length;ln<kn;ln++){var hr,pr=_t[ln];pr.nodeName==="DIV"||pr.nodeName==="P"?((hr=(hr=_t[ln-1])?hr.nodeName:void 0)&&hr!=="DIV"&&hr!=="P"&&hr!=="BR"&&(Qt!==""&&(Qt+=`
  353. `),Xe.flush()),Qt+=N(pr,Xe),Xe.set(`
  354. `)):pr.nodeName==="BR"?(Qt+=Xe.flush(),Xe.set(`
  355. `)):Qt+=N(pr,Xe)}return Qt}return""}function q(Ee){return Ee.replace(/(\b|^)\s*(\b|$)/g,function(Xe){return/\n/.exec(Xe)?"":Xe})}function G(Ee,Xe){for(var ct=Ee?Ee.parentNode:void 0;ct;){if(ct===Xe)return!0;ct=ct.parentNode}return!1}function ne(){var Ee;return le===-1&&(Ee=-1,typeof navigator<"u"&&navigator.appName==="Microsoft Internet Explorer"&&/MSIE ([0-9]+[.0-9]+)/.exec(navigator.userAgent)!=null&&(Ee=parseFloat(RegExp.$1)),le=Ee),le}var le=-1;function oe(){return typeof navigator<"u"&&navigator.userAgent.indexOf("Firefox")!==-1}function ve(Ee,Xe,ct,_t){return Ee.addEventListener?(_t===void 0&&(_t=!1),Xe==="mousewheel"&&oe()&&(Xe="DOMMouseScroll"),Ee.addEventListener(Xe,ct,_t),ct):Ee.attachEvent?(Ee.attachEvent("on"+Xe,_t=function(){return ct.call(Ee,window.event)}),_t):void 0}function de(Ee,Xe,ct,_t){Ee.removeEventListener?(_t===void 0&&(_t=!1),Xe==="mousewheel"&&oe()&&(Xe="DOMMouseScroll"),Ee.removeEventListener(Xe,ct,_t)):Ee.detachEvent&&Ee.detachEvent("on"+Xe,ct)}function ae(Ee,Xe){for(var ct=Ee.parentNode;ct;){if(ct===Xe)return!0;ct=ct.parentNode}return!1}function be(Ee){var Xe=[],ct=0;function _t(ln){for(var kn="";Ee[ct]!==void 0&&Ee[ct]!==ln;)kn+=Ee[ct],ct++;if(Ee[ct]!==ln)throw new Error("Invalid JSON path: unexpected end, character "+ln+" expected");return kn}for(;Ee[ct]!==void 0;)if(Ee[ct]===".")ct++,Xe.push(function(){for(var ln="";Ee[ct]!==void 0&&/[\w$]/.test(Ee[ct]);)ln+=Ee[ct],ct++;if(ln==="")throw new Error("Invalid JSON path: property name expected at index "+ct);return ln}());else{if(Ee[ct]!=="[")throw new Error('Invalid JSON path: unexpected character "'+Ee[ct]+'" at index '+ct);if(Ee[++ct]==="'"||Ee[ct]==='"'){var Qt=Ee[ct];if(ct++,Xe.push(_t(Qt)),Ee[ct]!==Qt)throw new Error("Invalid JSON path: closing quote ' expected at index "+ct);ct++}else{if(Qt=_t("]").trim(),Qt.length===0)throw new Error("Invalid JSON path: array value expected at index "+ct);Qt=Qt==="*"?Qt:JSON.parse(Qt),Xe.push(Qt)}if(Ee[ct]!=="]")throw new Error("Invalid JSON path: closing bracket ] expected at index "+ct);ct++}return Xe}function ie(Ee){return Ee.map(function(Xe){return typeof Xe=="number"?"["+Xe+"]":typeof Xe=="string"&&Xe.match(/^[A-Za-z0-9_$]+$/)?"."+Xe:'["'+Xe+'"]'}).join("")}function ce(Ee){var Xe,ct;return Ee.keyword==="enum"&&Array.isArray(Ee.schema)&&(ct=Ee.schema)&&(5<(ct=ct.map(function(_t){return JSON.stringify(_t)})).length&&(Xe=["("+(ct.length-5)+" more...)"],(ct=ct.slice(0,5)).push(Xe)),Ee.message="should be equal to one of: "+ct.join(", ")),Ee.keyword==="additionalProperties"&&(Ee.message="should NOT have additional property: "+Ee.params.additionalProperty),Ee}function pe(Ee){return Ee&&typeof Ee.then=="function"&&typeof Ee.catch=="function"}function X(Ee){return v(Ee)==="object"&&Array.isArray(Ee.path)&&typeof Ee.message=="string"}function Z(Ee,Xe,ct){return ct=ct!==void 0?ct:0,Xe.left-ct>=Ee.left&&Xe.right+ct<=Ee.right&&Xe.top-ct>=Ee.top&&Xe.bottom+ct<=Ee.bottom}function Y(Ee,Xe,ct){var _t;return function(){var Qt=this,ln=arguments,kn=ct&&!_t;clearTimeout(_t),_t=setTimeout(function(){_t=null,ct||Ee.apply(Qt,ln)},Xe),kn&&Ee.apply(Qt,ln)}}function se(Ee,Xe){for(var ct=Xe.length,_t=0,Qt=Ee.length,ln=Xe.length;Xe.charAt(_t)===Ee.charAt(_t)&&_t<ct;)_t++;for(;Xe.charAt(ln-1)===Ee.charAt(Qt-1)&&_t<ln&&0<Qt;)ln--,Qt--;return{start:_t,end:ln}}function fe(Ee){var Xe,ct,_t,Qt,ln=0,kn=0;return typeof Ee.selectionStart=="number"&&typeof Ee.selectionEnd=="number"?(ln=Ee.selectionStart,kn=Ee.selectionEnd):(Qt=document.selection.createRange())&&Qt.parentElement()===Ee&&(_t=Ee.value.length,Xe=Ee.value.replace(/\r\n/g,`
  356. `),(ct=Ee.createTextRange()).moveToBookmark(Qt.getBookmark()),(Qt=Ee.createTextRange()).collapse(!1),-1<ct.compareEndPoints("StartToEnd",Qt)?ln=kn=_t:(ln=-ct.moveStart("character",-_t),ln+=Xe.slice(0,ln).split(`
  357. `).length-1,-1<ct.compareEndPoints("EndToEnd",Qt)?kn=_t:(kn=-ct.moveEnd("character",-_t),kn+=Xe.slice(0,kn).split(`
  358. `).length-1))),{startIndex:ln,endIndex:kn,start:hr(ln),end:hr(kn)};function hr(pr){return pr=Ee.value.substring(0,pr),{row:(pr.match(/\n/g)||[]).length+1,column:pr.length-pr.lastIndexOf(`
  359. `)}}}function me(_t,Xe,ct){var _t=_t.value||"";return 0<Xe&&0<ct?(_t=_t.split(`
  360. `,Xe),Xe=Math.min(_t.length,Xe),ct=Math.min(_t[Xe-1].length,ct-1),ct=Xe===1?ct:ct+1,_t.slice(0,Xe-1).join(`
  361. `).length+ct):-1}function Ae(Ee,Xe){var ct,_t=[];if(Xe&&Xe.length){try{ct=h.parse(Ee)}catch{return _t}Xe.forEach(function(Qt){var ln=Be(be(Qt)),ln=ct.pointers[ln];ln&&_t.push({path:Qt,line:ln.key?ln.key.line:ln.value?ln.value.line:0,column:ln.key?ln.key.column:ln.value?ln.value.column:0})})}return _t}function Be(Ee){return Ee.map(function(Xe){return"/"+String(Xe).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function Ye(Ee){var Xe=document.createElement("div");return Xe.style.color=Ee,Xe.style.color.split(/\s+/).join("").toLowerCase()||null}function Qe(Ee){return!!Ye(Ee)}function nt(Ee,Xe){var ct;return Ee?(ct="",Ee.title&&(ct+=Ee.title),Ee.description&&(0<ct.length&&(ct+=`
  362. `),ct+=Ee.description),Ee.default&&(0<ct.length&&(ct+=`
  363. `),ct=(ct+=(0,f.Iu)("default",void 0,Xe)+`
  364. `)+JSON.stringify(Ee.default,null,2)),Array.isArray(Ee.examples)&&0<Ee.examples.length&&(0<ct.length&&(ct+=`
  365. `),ct+=(0,f.Iu)("examples",void 0,Xe)+`
  366. `,Ee.examples.forEach(function(_t,Qt){ct+=JSON.stringify(_t,null,2),Qt!==Ee.examples.length-1&&(ct+=`
  367. `)})),ct):""}function st(Ee,Xe){for(var ct=Ee,_t=0;_t<Xe.length&&ct!=null;_t++)ct=ct[Xe[_t]];return ct}function Le(Ee,Xe){for(var ct=Ee.replace(/ \(copy( \d+)?\)$/,""),_t=ct,Qt=1;Xe.indexOf(_t)!==-1;)_t=ct+" ("+("copy"+(1<Qt?" "+Qt:""))+")",Qt++;return _t}function Me(Ee,Xe){var ct={};if(Array.isArray(Ee))for(var _t=Math.min(Ee.length,m),Qt=0;Qt<_t;Qt++)(function ln(kn,hr,pr,Wr){(Array.isArray(kn)||Pe(kn))&&!Wr||(hr[pr||""]=!0),Pe(kn)&&Object.keys(kn).forEach(function(ze){ln(kn[ze],hr,pr+"."+ze,Wr)})})(Ee[Qt],ct,"",Xe);else ct[""]=!0;return Object.keys(ct).sort()}function je(Ee,ln,ct){var _t=ln&&ln!=="."?be(ln):[],Qt=ct==="desc"?-1:1,ln=Ee.slice();return ln.sort(function(kn,hr){return kn=st(kn,_t),hr=st(hr,_t),Qt*(hr<kn?1:kn<hr?-1:0)}),ln}function Ue(Ee,_t){var ct=_t==="desc"?-1:1,_t=Object.keys(Ee).sort(function(ln,kn){return ct*u()(ln,kn)}),Qt={};return _t.forEach(function(ln){Qt[ln]=Ee[ln]}),Qt}function Te(Ee){var Xe,ct;return Ee===""?"":(Xe=Ee.toLowerCase())==="null"?null:Xe==="true"||Xe!=="false"&&(/^0\d+$/.test(Ee)||(Xe=Number(Ee),ct=parseFloat(Ee),isNaN(Xe))||isNaN(ct)?Ee:Xe)}function bt(Ee,Xe){return typeof Xe=="number"&&w<Xe&&isFinite(Xe)&&Math.floor(Xe)===Xe&&!isNaN(new Date(Xe).valueOf())}function At(Ee){return Ee<900?Ee.toFixed()+" B":(Ee=Ee/1e3)<900?Ee.toFixed(1)+" KB":(Ee=Ee/1e3)<900?Ee.toFixed(1)+" MB":(Ee=Ee/1e3)<900?Ee.toFixed(1)+" GB":(Ee/1e3).toFixed(1)+" TB"}function ht(Ee,Xe){return Ee.length<=Xe?Ee:Ee.slice(0,Xe)+"..."}function Pe(Ee){return v(Ee)==="object"&&Ee!==null&&!Array.isArray(Ee)}function Ze(Ee,Xe){return Ee.indexOf(Xe)!==-1}function dt(Ee,Xe){if(Xe||Ee){if(Xe&&!Ee||!Xe&&Ee||Xe.length!==Ee.length)return!0;for(var ct,_t=0;_t<Ee.length;++_t)if(ct=function(Qt){var ln=Ee[Qt].type==="error"?Xe.find(function(kn){return kn.line===Ee[Qt].line}):Xe.find(function(kn){return kn.dataPath===Ee[Qt].dataPath&&kn.schemaPath===Ee[Qt].schemaPath});if(!ln)return{v:!0}}(_t))return ct.v}return!1}function Mt(Ee,Xe){return Ee=Ee!=null&&Ee.length?Ee:[],Xe=Xe!=null&&Xe.length?Xe:[],g(new Set(Ee.concat(Xe)))}function He(Ee){setTimeout(Ee)}function wt(Ee,Xe){return Object.prototype.hasOwnProperty.call(Ee,Xe)}},8037:function(o,a,s){var l;if(window.Picker)l=window.Picker;else try{l=s(4049)}catch{}o.exports=l},6225:function(o,a,s){function l(v,m){var w,k;return m=b(v,m),(v=h.modules[m])||(typeof(v=h.payloads[m])=="function"&&(w={id:m,uri:"",exports:k={},packaged:!0},k=v(function(T,S){return f(m,T,S)},k,w)||w.exports,h.modules[m]=k,delete h.payloads[m]),v=h.modules[m]=k||v),v}var u,c,d,h,f,g,b;o=s.nmd(o),(d=function(){return this}())||typeof window>"u"||(d=window),(h=function(v,m,w){typeof v!="string"?h.original?h.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(arguments.length==2&&(w=m),h.modules[v]||(h.payloads[v]=w,h.modules[v]=null))}).modules={},h.payloads={},f=function(v,m,w){if(typeof m=="string"){var k=l(v,m);if(k!=null)return w&&w(),k}else if(Object.prototype.toString.call(m)==="[object Array]"){for(var T=[],S=0,I=m.length;S<I;++S){var O=l(v,m[S]);if(O==null&&g.original)return;T.push(O)}return w&&w.apply(null,T)||!0}},g=function(v,m){var w=f("",v,m);return w==null&&g.original?g.original.apply(this,arguments):w},b=function(v,m){var w;if(m.indexOf("!")!==-1)return w=m.split("!"),b(v,w[0])+"!"+b(v,w[1]);if(m.charAt(0)==".")for(m=v.split("/").slice(0,-1).join("/")+"/"+m;m.indexOf(".")!==-1&&k!=m;){var k=m;m=m.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return m},c=d,(u="ace")&&(d[u]||(d[u]={}),c=d[u]),c.define&&c.define.packaged||(h.original=c.define,c.define=h,c.define.packaged=!0),c.require&&c.require.packaged||(g.original=c.require,c.require=g,c.require.packaged=!0),ace.define("ace/lib/es6-shim",["require","exports","module"],function(v,m,w){function k(T,S,I){Object.defineProperty(T,S,{value:I,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||k(String.prototype,"startsWith",function(T,S){return this.lastIndexOf(T,S=S||0)===S}),String.prototype.endsWith||k(String.prototype,"endsWith",function(T,S){return(S===void 0||S>
  368. /*# sourceURL=ace/css/`+A+" */");var C=m.createElement("style");C.appendChild(R.createTextNode(_)),A&&(C.id=A),(D=D==R?m.getDocumentHead(R):D).insertBefore(C,D.firstChild)}}}m.useStrictCSP=function(_){(k=_)==0?O():I=I||[]},m.importCssString=y,m.importCssStylsheet=function(_,A){m.buildDom(["link",{rel:"stylesheet",href:_}],m.getDocumentHead(A))},m.scrollbarWidth=function(D){var A=m.createElement("ace_inner"),R=(A.style.width="100%",A.style.minWidth="0px",A.style.height="200px",A.style.display="block",m.createElement("ace_outer")),x=R.style,D=(x.position="absolute",x.left="-10000px",x.overflow="hidden",x.width="200px",x.minWidth="0px",x.height="150px",x.display="block",R.appendChild(A),D&&D.documentElement||document&&document.documentElement);if(!D)return 0;D.appendChild(R);var C=A.offsetWidth,x=(x.overflow="scroll",A.offsetWidth);return C===x&&(x=R.clientWidth),D.removeChild(R),C-x},m.computedStyle=function(_,A){return window.getComputedStyle(_,"")||{}},m.setStyle=function(_,A,R){_[A]!==R&&(_[A]=R)},m.HAS_CSS_ANIMATION=!1,m.HAS_CSS_TRANSFORMS=!1,m.HI_DPI=!S.isWin||typeof window<"u"&&1.5<=window.devicePixelRatio,S.isChromeOS&&(m.HI_DPI=!1),typeof document<"u"&&(T=document.createElement("div"),m.HI_DPI&&T.style.transform!==void 0&&(m.HAS_CSS_TRANSFORMS=!0),S.isEdge||T.style.animationName===void 0||(m.HAS_CSS_ANIMATION=!0),T=null),m.HAS_CSS_TRANSFORMS?m.translate=function(_,A,R){_.style.transform="translate("+Math.round(A)+"px, "+Math.round(R)+"px)"}:m.translate=function(_,A,R){_.style.top=Math.round(R)+"px",_.style.left=Math.round(A)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(v,m,w){var k=v("./dom");m.get=function(T,S){var I=new XMLHttpRequest;I.open("GET",T,!0),I.onreadystatechange=function(){I.readyState===4&&S(I.responseText)},I.send(null)},m.loadScript=function(T,S){var I=k.getDocumentHead(),O=document.createElement("script");O.src=T,I.appendChild(O),O.onload=O.onreadystatechange=function(y,_){!_&&O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||(O=O.onload=O.onreadystatechange=null,_)||S()}},m.qualifyURL=function(T){var S=document.createElement("a");return S.href=T,S.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(v,m,w){m.inherits=function(k,T){k.super_=T,k.prototype=Object.create(T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}})},m.mixin=function(k,T){for(var S in T)k[S]=T[S];return k},m.implement=function(k,T){m.mixin(k,T)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(v,m,w){function k(){this.propagationStopped=!0}function T(){this.defaultPrevented=!0}var S={};S._emit=S._dispatchEvent=function(I,O){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var y=this._eventRegistry[I]||[],_=this._defaultHandlers[I];if(y.length||_){(O=typeof O=="object"&&O?O:{}).type||(O.type=I),O.stopPropagation||(O.stopPropagation=k),O.preventDefault||(O.preventDefault=T);for(var y=y.slice(),A=0;A<y.length&&(y[A](O,this),!O.propagationStopped);A++);return _&&!O.defaultPrevented?_(O,this):void 0}},S._signal=function(I,O){if(y=(this._eventRegistry||{})[I])for(var y=y.slice(),_=0;_<y.length;_++)y[_](O,this)},S.once=function(I,O){var y=this;if(this.on(I,function _(){y.off(I,_),O.apply(null,arguments)}),!O)return new Promise(function(_){O=_})},S.setDefaultHandler=function(I,O){var y,_,A=this._defaultHandlers;(A=A||(this._defaultHandlers={_disabled_:{}}))[I]&&(_=A[I],(y=A._disabled_[I])||(A._disabled_[I]=y=[]),y.push(_),(_=y.indexOf(O))!=-1)&&y.splice(_,1),A[I]=O},S.removeDefaultHandler=function(I,O){var y,_=this._defaultHandlers;_&&(y=_._disabled_[I],_[I]==O?y&&this.setDefaultHandler(I,y.pop()):y&&(_=y.indexOf(O))!=-1&&y.splice(_,1))},S.on=S.addEventListener=function(I,O,y){this._eventRegistry=this._eventRegistry||{};var _=this._eventRegistry[I];return(_=_||(this._eventRegistry[I]=[])).indexOf(O)==-1&&_[y?"unshift":"push"](O),O},S.off=S.removeListener=S.removeEventListener=function(I,O){this._eventRegistry=this._eventRegistry||{},I=this._eventRegistry[I],I&
  369. background: #f0f0f0;
  370. color: #333;
  371. }
  372. .ace-tm .ace_print-margin {
  373. width: 1px;
  374. background: #e8e8e8;
  375. }
  376. .ace-tm .ace_fold {
  377. background-color: #6B72E6;
  378. }
  379. .ace-tm {
  380. background-color: #FFFFFF;
  381. color: black;
  382. }
  383. .ace-tm .ace_cursor {
  384. color: black;
  385. }
  386. .ace-tm .ace_invisible {
  387. color: rgb(191, 191, 191);
  388. }
  389. .ace-tm .ace_storage,
  390. .ace-tm .ace_keyword {
  391. color: blue;
  392. }
  393. .ace-tm .ace_constant {
  394. color: rgb(197, 6, 11);
  395. }
  396. .ace-tm .ace_constant.ace_buildin {
  397. color: rgb(88, 72, 246);
  398. }
  399. .ace-tm .ace_constant.ace_language {
  400. color: rgb(88, 92, 246);
  401. }
  402. .ace-tm .ace_constant.ace_library {
  403. color: rgb(6, 150, 14);
  404. }
  405. .ace-tm .ace_invalid {
  406. background-color: rgba(255, 0, 0, 0.1);
  407. color: red;
  408. }
  409. .ace-tm .ace_support.ace_function {
  410. color: rgb(60, 76, 114);
  411. }
  412. .ace-tm .ace_support.ace_constant {
  413. color: rgb(6, 150, 14);
  414. }
  415. .ace-tm .ace_support.ace_type,
  416. .ace-tm .ace_support.ace_class {
  417. color: rgb(109, 121, 222);
  418. }
  419. .ace-tm .ace_keyword.ace_operator {
  420. color: rgb(104, 118, 135);
  421. }
  422. .ace-tm .ace_string {
  423. color: rgb(3, 106, 7);
  424. }
  425. .ace-tm .ace_comment {
  426. color: rgb(76, 136, 107);
  427. }
  428. .ace-tm .ace_comment.ace_doc {
  429. color: rgb(0, 102, 255);
  430. }
  431. .ace-tm .ace_comment.ace_doc.ace_tag {
  432. color: rgb(128, 159, 191);
  433. }
  434. .ace-tm .ace_constant.ace_numeric {
  435. color: rgb(0, 0, 205);
  436. }
  437. .ace-tm .ace_variable {
  438. color: rgb(49, 132, 149);
  439. }
  440. .ace-tm .ace_xml-pe {
  441. color: rgb(104, 104, 91);
  442. }
  443. .ace-tm .ace_entity.ace_name.ace_function {
  444. color: #0000A2;
  445. }
  446. .ace-tm .ace_heading {
  447. color: rgb(12, 7, 255);
  448. }
  449. .ace-tm .ace_list {
  450. color:rgb(185, 6, 144);
  451. }
  452. .ace-tm .ace_meta.ace_tag {
  453. color:rgb(0, 22, 142);
  454. }
  455. .ace-tm .ace_string.ace_regex {
  456. color: rgb(255, 0, 0)
  457. }
  458. .ace-tm .ace_marker-layer .ace_selection {
  459. background: rgb(181, 213, 255);
  460. }
  461. .ace-tm.ace_multiselect .ace_selection.ace_start {
  462. box-shadow: 0 0 3px 0px white;
  463. }
  464. .ace-tm .ace_marker-layer .ace_step {
  465. background: rgb(252, 255, 0);
  466. }
  467. .ace-tm .ace_marker-layer .ace_stack {
  468. background: rgb(164, 229, 101);
  469. }
  470. .ace-tm .ace_marker-layer .ace_bracket {
  471. margin: -1px 0 0 -1px;
  472. border: 1px solid rgb(192, 192, 192);
  473. }
  474. .ace-tm .ace_marker-layer .ace_active-line {
  475. background: rgba(0, 0, 0, 0.07);
  476. }
  477. .ace-tm .ace_gutter-active-line {
  478. background-color : #dcdcdc;
  479. }
  480. .ace-tm .ace_marker-layer .ace_selected-word {
  481. background: rgb(250, 250, 255);
  482. border: 1px solid rgb(200, 200, 250);
  483. }
  484. .ace-tm .ace_indent-guide {
  485. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
  486. }
  487. .ace-tm .ace_indent-guide-active {
  488. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
  489. }
  490. `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(v,m,w){m.isDark=!1,m.cssClass="ace-tm",m.cssText=v("./textmate-css"),m.$id="ace/theme/textmate",v("../lib/dom").importCssString(m.cssText,m.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(v,m,w){var k,T=v("./lib/lang"),S=v("./lib/net"),I=v("./lib/dom"),O=v("./lib/app_config").AppConfig,y=(w.exports=m=new O,{packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null}),_=(m.get=function(A){if(y.hasOwnProperty(A))return y[A];throw new Error("Unknown config key: "+A)},m.set=function(A,R){if(y.hasOwnProperty(A))y[A]=R;else if(this.setDefaultValue("",A,R)==0)throw new Error("Unknown config key: "+A);A=="useStrictCSP"&&I.useStrictCSP(R)},m.all=function(){return T.copyObject(y)},m.$modes={},m.moduleUrl=function(A,R){var D,C,x;return y.$moduleUrls[A]||(A=A.split("/"),D=(R=R||A[A.length-2]||"")=="snippets"?"/":"-",C=A[A.length-1],R=="worker"&&D=="-"&&(x=new RegExp("^"+R+"[\\-_]|[\\-_]"+R+"$","g"),C=C.replace(x,"")),(!C||C==R)&&1<A.length&&(C=A[A.length-2]),(x=y[R+"Path"])==null?x=y.basePath:D=="/"&&(R=D=""),x&&x.slice(-1)!="/"&&(x+="/"),x+R+D+C+this.get("suffix"))},m.setModuleUrl=function(A,R){return y.$moduleUrls[A]=R},m.setLoader=function(A){k=A},m.dynamicModules=Object.create(null),m.$loading={},m.$loaded={},m.loadModule=function(A,R){function D(P){if(P&&!m.$loading[A])return R&&R(P);if(m.$loading[A]||(m.$loading[A]=[]),m.$loading[A].push(R),!(1<m.$loading[A].length)){let $=function(){var L,V;V=function(H,Q){Q&&(m.$loaded[A]=Q),m._emit("load.module",{name:A,module:Q});var U=m.$loading[A];m.$loading[A]=null,U.forEach(function(K){K&&K(Q)})},(L=A)==="ace/theme/textmate"||L==="./theme/textmate"?V(null,v("./theme/textmate")):k?k(L,V):console.error("loader is not configured")};if(!m.get("packaged"))return $();S.loadScript(m.moduleUrl(A,x),$),_()}}var C,x;if(Array.isArray(A)&&(x=A[0],A=A[1]),m.dynamicModules[A])m.dynamicModules[A]().then(function(P){P.default?D(P.default):D(P)});else{try{C=this.$require(A)}catch{}D(C||m.$loaded[A])}},m.$require=function(A){if(typeof w.require=="function")return w.require(A)},m.setModuleLoader=function(A,R){m.dynamicModules[A]=R},function(){y.basePath||y.workerPath||y.modePath||y.themePath||Object.keys(y.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),_=function(){})});m.version="1.31.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(v,m,w){v("./lib/fixoldbrowsers");var k=v("./config"),T=(k.setLoader(function(I,O){v([I],function(y){O(null,y)})}),function(){return this||typeof window<"u"&&window}());function S(I){if(T&&T.document){k.set("packaged",I||v.packaged||w.packaged||T.define&&s.amdD.packaged);for(var O,y={},_="",I=document.currentScript||document._currentScript,A=I&&I.ownerDocument||document,R=(I&&I.src&&(_=I.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||""),A.getElementsByTagName("script")),D=0;D<R.length;D++){var C=R[D],x=C.src||C.getAttribute("src");if(x){for(var P=C.attributes,$=0,L=P.length;$<L;$++){var V=P[$];V.name.indexOf("data-ace-")===0&&(y[V.name.replace(/^data-ace-/,"").replace(/-(.)/g,function(Q,U){return U.toUpperCase()})]=V.value)}C=x.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/),C&&(_=C[1])}}for(O in _&&(y.base=y.base||_,y.packaged=!0),y.basePath=y.base,y.workerPath=y.workerPath||y.base,y.modePath=y.modePath||y.base,y.themePath=y.themePath||y.base,delete y.base,y)y[O]!==void 0&&k.set(O,y[O])}}w.exports=function(I){k.init=S,k.$require=v,I.require=v,I.define=s.amdD},S(!0)}),ace.define("ace/range",["require","exports","module"],function(v,m,w){T.prototype.isEqual=function(S){return this.start.row===S.start.row&&this.end.row===S.end.ro
  491. ab`+(ht=ht||"")+`cde fg
  492. `)!=H.value&&(H.value=q=Pe),Pe=4+(ht.length||(V.selection.isEmpty()?0:1)),G==4&&ne==Pe||H.setSelectionRange(4,Pe),G=4,ne=Pe)}:function(){if(!K&&!J&&(ae||se)){K=!0;var ht=0,Pe=0,Ze="";if(V.session){for(var dt,He=V.selection,Mt=He.getRange(),He=He.cursor.row,wt=(He===ve+1?ve=(oe=ve+1)+2*de:He===oe-1?oe=(ve=oe-1)-2*de:(He<oe-1||ve+1<He)&&(oe=de<He?He-de:0,ve=de<He?He+de:2*de),[]),Ee=oe;Ee<=ve;Ee++)wt.push(V.session.getLine(Ee));Ze=wt.join(`
  493. `),ht=be(Mt.start.row,Mt.start.column),Pe=be(Mt.end.row,Mt.end.column),Mt.start.row<oe?(dt=V.session.getLine(oe-1),ht=Mt.start.row<oe-1?0:ht,Pe+=dt.length+1,Ze=dt+`
  494. `+Ze):Mt.end.row>ve?(dt=V.session.getLine(ve+1),Pe=Mt.end.row>ve+1?dt.length:Mt.end.column,Pe+=Ze.length+1,Ze=Ze+`
  495. `+dt):$&&0<He&&(Ze=`
  496. `+Ze,Pe+=1,ht+=1),400<Ze.length&&(ht<400&&Pe<400?Ze=Ze.slice(0,400):(Ze=`
  497. `,ht==Pe?ht=Pe=0:(ht=0,Pe=1))),Mt=Ze+`
  498. `,Mt!=q&&(H.value=q=Mt,G=ne=Mt.length)}if(se&&(G=H.selectionStart,ne=H.selectionEnd),ne!=Pe||G!=ht||H.selectionEnd!=ne)try{H.setSelectionRange(ht,Pe),G=ht,ne=Pe}catch{}K=!1}},Z=(this.resetSelection=X,ae&&V.onFocus(),function(ht){return ht.selectionStart===0&&ht.selectionEnd>=q.length&&ht.value===q&&q&&ht.selectionEnd!==ne}),Y=null,se=(this.setInputHandler=function(ht){Y=ht},!(this.getInputHandler=function(){return Y})),fe=function(ht,Pe){if(se=se&&!1,U)return X(),ht&&V.onPaste(ht),U=!1,"";for(var Ze=H.selectionStart,dt=H.selectionEnd,Mt=G,He=q.length-ne,wt=ht,Ee=ht.length-Ze,Xe=ht.length-dt,ct=0;0<Mt&&q[ct]==ht[ct];)ct++,Mt--;for(wt=wt.slice(ct),ct=1;0<He&&q.length-ct>G-1&&q[q.length-ct]==ht[ht.length-ct];)ct++,He--;Ee-=ct-1,Xe-=ct-1;var _t=wt.length-ct+1;return _t<0&&(Mt=-_t,_t=0),wt=wt.slice(0,_t),Pe||wt||Ee||Mt||He||Xe?(_t=!(J=!0),S.isAndroid&&wt==". "&&(wt=" ",_t=!0),wt&&!Mt&&!He&&!Ee&&!Xe||ee?V.onTextInput(wt):V.onTextInput(wt,{extendLeft:Mt,extendRight:He,restoreStart:Ee,restoreEnd:Xe}),J=!1,q=ht,G=Ze,ne=dt,le=Xe,_t?`
  499. `:wt):""},me=function(Pe){if(K)return Ye();if(Pe&&Pe.inputType){if(Pe.inputType=="historyUndo")return V.execCommand("undo");if(Pe.inputType=="historyRedo")return V.execCommand("redo")}var Pe=H.value,Ze=fe(Pe,!0);(500<Pe.length||P.test(Ze)||$&&G<1&&G==ne)&&X()},Ae=function(ht,Pe,Ze){var dt=ht.clipboardData||window.clipboardData;if(dt&&!_){var Mt=A||Ze?"Text":"text/plain";try{return Pe?dt.setData(Mt,Pe)!==!1:dt.getData(Mt)}catch(He){if(!Ze)return Ae(He,Pe,!0)}}},Be=function(ht,Pe){var Ze=V.getCopyText();if(!Ze)return k.preventDefault(ht);Ae(ht,Ze)?(x&&(X(Ze),Q=Ze,setTimeout(function(){Q=!1},10)),Pe?V.onCut():V.onCopy(),k.preventDefault(ht)):(Q=!0,H.value=Ze,H.select(),setTimeout(function(){Q=!1,X(),Pe?V.onCut():V.onCopy()}))},Ye=(k.addCommandKeyListener(H,V.onCommandKey.bind(V),V),k.addListener(H,"select",function(ht){K||(Q?Q=!1:Z(H)?(V.selectAll(),X()):$&&H.selectionStart!=G&&X())},V),k.addListener(H,"input",me,V),k.addListener(H,"cut",ie,V),k.addListener(H,"copy",ce,V),k.addListener(H,"paste",pe,V),"oncut"in H&&"oncopy"in H&&"onpaste"in H||k.addListener(L,"keydown",function(ht){if((!S.isMac||ht.metaKey)&&ht.ctrlKey)switch(ht.keyCode){case 67:ce(ht);break;case 86:pe(ht);break;case 88:ie(ht)}},V),function(){var ht;if(K&&V.onCompositionUpdate&&!V.$readOnly)return ee?nt():void(K.useTextareaForIME?V.onCompositionUpdate(H.value):(ht=H.value,fe(ht),K.markerRange&&(K.context&&(K.markerRange.start.column=K.selectionStart=K.context.compositionStartOffset),K.markerRange.end.column=K.markerRange.start.column+ne-K.selectionStart+le)))}),Qe=function(ht){V.onCompositionEnd&&!V.$readOnly&&(K=!1,V.onCompositionEnd(),V.off("mousedown",nt),ht)&&me()};function nt(){N=!0,H.blur(),H.focus(),N=!1}var st,Le=O.delayedCall(Ye,50).schedule.bind(null,null);function Me(){clearTimeout(st),st=setTimeout(function(){ue&&(H.style.cssText=ue,ue=""),V.renderer.$isMousePressed=!1,V.renderer.$keepTextAreaAtCursor&&V.renderer.$moveTextAreaToCursor()},0)}k.addListener(H,"compositionstart",function(ht){K||!V.onCompositionStart||V.$readOnly||(K={},ee)||(ht.data&&(K.useTextareaForIME=!1),setTimeout(Ye,0),V._signal("compositionStart"),V.on("mousedown",nt),(ht=V.getSelectionRange()).end.row=ht.start.row,ht.end.column=ht.start.column,K.markerRange=ht,K.selectionStart=G,V.onCompositionStart(K),K.useTextareaForIME?(q=H.value="",ne=G=0):(H.msGetInputContext&&(K.context=H.msGetInputContext()),H.getInputContext&&(K.context=H.getInputContext())))},V),k.addListener(H,"compositionupdate",Ye,V),k.addListener(H,"keyup",function(ht){ht.keyCode==27&&H.value.length<H.selectionStart&&(K||(q=H.value),G=ne=-1,X()),Le()},V),k.addListener(H,"keydown",Le,V),k.addListener(H,"compositionend",Qe,V),this.getElement=function(){return H},this.setCommandMode=function(ht){ee=ht,H.readOnly=!1},this.setReadOnly=function(ht){ee||(H.readOnly=ht)},this.setCopyWithEmptySelection=function(ht){},this.onContextMenu=function(ht){se=!0,X(),V._emit("nativecontextmenu",{target:V,domEvent:ht}),this.moveToMouse(ht,!0)},this.moveToMouse=function(ht,dt){ue=ue||H.style.cssText,H.style.cssText=(dt?"z-index:100000;":"")+(S.isIE?"opacity:0.1;":"")+"text-indent: -"+(G+ne)*V.renderer.characterWidth*.5+"px;";function Ze(Xe){I.translate(H,Xe.clientX-wt-2,Math.min(Xe.clientY-He-2,Ee))}var dt=V.container.getBoundingClientRect(),Mt=I.computedStyle(V.container),He=dt.top+(parseInt(Mt.borderTopWidth)||0),wt=dt.left+(parseInt(dt.borderLeftWidth)||0),Ee=dt.bottom-He-H.clientHeight-2;Ze(ht),ht.type=="mousedown"&&(V.renderer.$isMousePressed=!0,clearTimeout(st),S.isWin)&&k.capture(V.container,Ze,Me)},this.onContextMenuClose=Me;function je(ht){V.textInput.onContextMenu(ht),Me()}if(k.addListener(H,"mouseup",je,V),k.addListener(H,"mousedown",function(ht){ht.preventDefault(),Me()},V),k.addListener(V.renderer.scroller,"contextmenu",je,V),k.addListener(H,"contextmenu",je,V),x){let ht=function(Pe){var Ze,dt,Mt,He;document.activeElement!==Te||At||K||Ue.$mouseHandler.isMousePressed||Q||(Ze=Te.selectionStart,dt=Te.selectionEnd,Mt=null,(He=0)==Ze?Mt=D.up:Ze==1?Mt=D.home:ne<dt&&q[dt]==`
  500. `?Mt=D.end:Ze<G&&q[Ze-1]==" "?(Mt=D.left,He=C.option):Ze<G||Ze==G&&ne!=G&&Ze==dt?Mt=D.left:ne<dt&&2<q.slice(0,dt).split(`
  501. `).length?Mt=D.down:ne<dt&&q[dt-1]==" "?(Mt=D.right,He=C.option):(ne<dt||dt==ne&&ne!=G&&Ze==dt)&&(Mt=D.right),Ze!==dt&&(He|=C.shift),Mt&&(!Ue.onCommandKey({},He,Mt)&&Ue.commands&&(Mt=D.keyCodeToString(Mt),He=Ue.commands.findKeyCommand(He,Mt))&&Ue.execCommand(He),G=Ze,ne=dt,X("")))};var Ue=V,Te=H,bt=null,At=!1;Te.addEventListener("keydown",function(Pe){bt&&clearTimeout(bt),At=!0},!0),Te.addEventListener("keyup",function(Pe){bt=setTimeout(function(){At=!1},100)},!0),document.addEventListener("selectionchange",ht),Ue.on("destroy",function(){document.removeEventListener("selectionchange",ht)})}this.destroy=function(){H.parentElement&&H.parentElement.removeChild(H)}},m.$setUserAgentForTests=function(L,V){$=L,x=V}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(T,m,w){var k=T("../lib/useragent"),T=(S.prototype.onMouseDown=function(O){var y=O.inSelection(),_=O.getDocumentPosition(),A=(this.mousedownEvent=O,this.editor),R=O.getButton();if(R!==0)!A.getSelectionRange().isEmpty()&&R!=1||A.selection.moveToPosition(_),R==2&&(A.textInput.onContextMenu(O.domEvent),k.isMozilla||O.preventDefault());else{if(this.mousedownEvent.time=Date.now(),!y||A.isFocused()||(A.focus(),!this.$focusTimeout)||this.$clickSelection||A.inMultiSelectMode)return this.captureMouse(O),this.startSelect(_,1<O.domEvent._clicks),O.preventDefault();this.setState("focusWait"),this.captureMouse(O)}},S.prototype.startSelect=function(O,y){O=O||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var _=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?_.selection.selectToPosition(O):y||_.selection.moveToPosition(O),y||this.select(),_.setStyle("ace_selecting"),this.setState("select"))},S.prototype.select=function(){var O,y=this.editor,_=y.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(O=(O=this.$clickSelection.comparePoint(_))==-1?this.$clickSelection.end:O==1?this.$clickSelection.start:(_=(O=I(this.$clickSelection,_)).cursor,O.anchor),y.selection.setSelectionAnchor(O.row,O.column)),y.selection.selectToPosition(_),y.renderer.scrollCursorIntoView()},S.prototype.extendSelectionBy=function(C){var y,_,A,R=this.editor,D=R.renderer.screenToTextCoordinates(this.x,this.y),C=R.selection[C](D.row,D.column);this.$clickSelection&&(_=this.$clickSelection.comparePoint(C.start),y=this.$clickSelection.comparePoint(C.end),_==-1&&y<=0?(A=this.$clickSelection.end,C.end.row==D.row&&C.end.column==D.column||(D=C.start)):y==1&&0<=_?(A=this.$clickSelection.start,C.start.row==D.row&&C.start.column==D.column||(D=C.end)):A=_==-1&&y==1?(D=C.end,C.start):(D=(_=I(this.$clickSelection,D)).cursor,_.anchor),R.selection.setSelectionAnchor(A.row,A.column)),R.selection.selectToPosition(D),R.renderer.scrollCursorIntoView()},S.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},S.prototype.focusWait=function(){A=this.mousedownEvent.x,O=this.mousedownEvent.y,_=this.x,y=this.y;var O,y,_=Math.sqrt(Math.pow(_-A,2)+Math.pow(y-O,2)),A=Date.now();(0<_||A-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},S.prototype.onDoubleClick=function(y){var y=y.getDocumentPosition(),_=this.editor,A=_.session.getBracketRange(y);A?(A.isEmpty()&&(A.start.column--,A.end.column++),this.setState("select")):(A=_.selection.getWordRange(y.row,y.column),this.setState("selectByWords")),this.$clickSelection=A,this.select()},S.prototype.onTripleClick=function(y){var y=y.getDocumentPosition(),_=this.editor,A=(this.setState("selectByLines"),_.getSelectionRange());A.isMultiLine()&&A.contains(y.row,y.column)?(this.$clickSelection=_.selection.getLineRange(A.start.row),this.$clickSelection.end=_.selection.getLineRange(A.end.row).end):this.$clickSelection=_.selection.getLineRange(y.row),this.select()},S.prototype.onQuadClick=function(O){var y=this.editor;y.selectAll(),this.$clickSelection=y.getSelectionRange(),this.setState("selectAll")},S.prototype.onMouseWheel=function(O){var y,_,A,R,D,C,x;if(!O.getAccelKey())return O.getShiftKey()&&O.w
  502. `))&&(this.seenBidi=!0,this.currentRow=null)},I.prototype.getDocumentRow=function(){var O=0,y=this.session.$screenRowCache;return O=y.length&&0<=(y=this.session.$getRowCacheIndex(y,this.currentRow))?this.session.$docRowCache[y]:O},I.prototype.getSplitIndex=function(){var O=0,y=this.session.$screenRowCache;if(y.length)for(var _,A=this.session.$getRowCacheIndex(y,this.currentRow);0<this.currentRow-O&&(_=this.session.$getRowCacheIndex(y,this.currentRow-O-1))===A;)A=_,O++;else O=this.currentRow;return O},I.prototype.updateRowLine=function(O,y){var _,A=(O=O===void 0?this.getDocumentRow():O)===this.session.getLength()-1?this.EOF:this.EOL,R=(this.wrapIndent=0,this.line=this.session.getLine(O),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,(!this.session.$useWrapMode||(O=this.session.$wrapData[O])&&(0<(y=y===void 0?this.getSplitIndex():y)&&O.length?(this.wrapIndent=O.indent,this.wrapOffset=this.wrapIndent*this.charWidths[k.L],this.line=y<O.length?this.line.substring(O[y-1],O[y]):this.line.substring(O[O.length-1])):this.line=this.line.substring(0,O[y]),y==O.length))&&(this.line+=this.showInvisibles?A:k.DOT),this.session),D=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(C,x){return C===" "||R.isFullWidth(C.charCodeAt(0))?(_=C===" "?R.getScreenTabSize(x+D):2,D+=_-1,T.stringRepeat(k.DOT,_)):C}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==k.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},I.prototype.updateBidiMap=function(){var O=[];k.hasBidiCharacters(this.line,O)||this.isRtlDir?this.bidiMap=k.doBidiReorder(this.line,O,this.isRtlDir):this.bidiMap={}},I.prototype.markAsDirty=function(){this.currentRow=null},I.prototype.updateCharacterWidths=function(O){var y;this.characterWidth!==O.$characterSize.width&&(this.fontMetrics=O,y=this.characterWidth=O.$characterSize.width,O=O.$measureCharWidth("ה"),this.charWidths[k.L]=this.charWidths[k.EN]=this.charWidths[k.ON_R]=y,this.charWidths[k.R]=this.charWidths[k.AN]=O,this.charWidths[k.R_H]=.45*O,this.charWidths[k.B]=this.charWidths[k.RLE]=0,this.currentRow=null)},I.prototype.setShowInvisibles=function(O){this.showInvisibles=O,this.currentRow=null},I.prototype.setEolChar=function(O){this.EOL=O},I.prototype.setContentWidth=function(O){this.contentWidth=O},I.prototype.isRtlLine=function(O){return!!this.$isRtl||(O!=null?this.session.getLine(O).charAt(0)==this.RLE:this.isRtlDir)},I.prototype.setRtlDirection=function(O,y){for(var _=O.getCursorPosition(),A=O.selection.getSelectionAnchor().row;A<=_.row;A++)y||O.session.getLine(A).charAt(0)!==O.session.$bidiHandler.RLE?y&&O.session.getLine(A).charAt(0)!==O.session.$bidiHandler.RLE&&O.session.doc.insert({column:0,row:A},O.session.$bidiHandler.RLE):O.session.doc.removeInLine(A,0,1)},I.prototype.getPosLeft=function(O){O-=this.wrapIndent;var y=this.line.charAt(0)===this.RLE?1:0,_=y<O?this.session.getOverwrite()?O:O-1:y,A=k.getVisualFromLogicalIdx(_,this.bidiMap),R=this.bidiMap.bidiLevels,D=0;!this.session.getOverwrite()&&O<=y&&R[A]%2!=0&&A++;for(var C=0;C<A;C++)D+=this.charWidths[R[C]];return!this.session.getOverwrite()&&y<O&&R[A]%2==0&&(D+=this.charWidths[R[A]]),this.wrapIndent&&(D+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(D+=this.rtlLineOffset),D},I.prototype.getSelections=function(O,y){var _,A=this.bidiMap,R=A.bidiLevels,D=[],C=0,x=Math.min(O,y)-this.wrapIndent,P=Math.max(O,y)-this.wrapIndent,$=!1,L=!1,V=0;this.wrapIndent&&(C+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var H,Q=0;Q<R.length;Q++)H=A.logicalFromVisual[Q],_=R[Q],($=x<=H&&H<P)&&!L?V=C:!$&&L&&D.push({left:V,width:C-V}),C+=this.charWidths[_],L=$;if($&&Q===R.length&&D.push({left:V,width:C-V}),this.isRtlDir)for(var U=0;U<D.length;U++)D[U].left+=this.rtlLineOffset;return D},I.prototype.offsetToCol=function(_){this.isRtlDir&&(_-=this.rtlLineOffset);var y=0,_=Math.max(_,0),A=0,R=0,D=this.bidiMap.bidiLevels,C=this.charWidths[D[R]];for(this.wrapIndent&&(_-=this.isRtlDir?-1*this.wrapOffs
  503. `||Q==`\r
  504. `){k(V);var ue="";if(S.isMaybeInsertedClosing(U,K)&&(ue=A.stringRepeat("}",I.maybeInsertedBrackets),S.clearMaybeInsertedClosing()),(J=K.substring(U.column,U.column+1))==="}"){var ee=H.findMatchingBracket({row:U.row,column:U.column+1},"}");if(!ee)return null;var N=this.$getIndent(H.getLine(ee.row))}else{if(!ue)return void S.clearMaybeInsertedClosing();N=this.$getIndent(K)}return Q=N+H.getTabString(),{text:`
  505. `+Q+`
  506. `+N+ue,selection:[1,Q.length,1,Q.length]}}S.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function($,L,V,H,Q){var U=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U=="{"){if(k(V),H.doc.getLine(Q.start.row).substring(Q.end.column,Q.end.column+1)=="}")return Q.end.column++,Q;I.maybeInsertedBrackets--}}),this.add("parens","insertion",function($,L,V,H,Q){if(Q=="(")return k(V),U=V.getSelectionRange(),(K=H.doc.getTextRange(U))!==""&&V.getWrapBehavioursEnabled()?T(U,K,"(",")"):S.isSaneInsertion(V,H)?(S.recordAutoInsert(V,H,")"),{text:"()",selection:[1,1]}):void 0;if(Q==")"){k(V);var U=V.getCursorPosition(),K=H.doc.getLine(U.row),V=K.substring(U.column,U.column+1);if(V==")"&&H.$findOpeningBracket(")",{column:U.column+1,row:U.row})!==null&&S.isAutoInsertedClosing(U,K,Q))return S.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function($,L,V,H,Q){var U=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U=="("&&(k(V),H.doc.getLine(Q.start.row).substring(Q.start.column+1,Q.start.column+2)==")"))return Q.end.column++,Q}),this.add("brackets","insertion",function($,L,V,H,Q){if(Q=="[")return k(V),U=V.getSelectionRange(),(K=H.doc.getTextRange(U))!==""&&V.getWrapBehavioursEnabled()?T(U,K,"[","]"):S.isSaneInsertion(V,H)?(S.recordAutoInsert(V,H,"]"),{text:"[]",selection:[1,1]}):void 0;if(Q=="]"){k(V);var U=V.getCursorPosition(),K=H.doc.getLine(U.row),V=K.substring(U.column,U.column+1);if(V=="]"&&H.$findOpeningBracket("]",{column:U.column+1,row:U.row})!==null&&S.isAutoInsertedClosing(U,K,Q))return S.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function($,L,V,H,Q){var U=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U=="["&&(k(V),H.doc.getLine(Q.start.row).substring(Q.start.column+1,Q.start.column+2)=="]"))return Q.end.column++,Q}),this.add("string_dquotes","insertion",function($,L,V,H,Q){var U=H.$mode.$quotes||x;if(Q.length==1&&U[Q]&&(!this.lineCommentStart||this.lineCommentStart.indexOf(Q)==-1)){k(V);var K=V.getSelectionRange(),J=H.doc.getTextRange(K);if(!(J===""||J.length==1&&U[J])&&V.getWrapBehavioursEnabled())return T(K,J,Q,Q);if(!J){var U=V.getCursorPosition(),K=H.doc.getLine(U.row),J=K.substring(U.column-1,U.column),V=K.substring(U.column,U.column+1),N=H.getTokenAt(U.row,U.column),ue=H.getTokenAt(U.row,U.column+1);if(J=="\\"&&N&&/escape/.test(N.type))return null;var ee,N=N&&/string|escape/.test(N.type),q=!ue||/string|escape/.test(ue.type);if(V==Q)(ee=N!==q)&&/string\.end/.test(ue.type)&&(ee=!1);else{if(N&&!q||N&&q||(ue=H.$mode.tokenRe,N=(ue.lastIndex=0,ue.test(J)),q=(ue.lastIndex=0,ue.test(V)),H=H.$mode.$pairQuotesAfter,!(H&&H[Q]&&H[Q].test(J))&&N||q)||V&&!/[\s;,.})\]\\]/.test(V)||(H=K[U.column-2],J==Q&&(H==Q||ue.test(H))))return null;ee=!0}return{text:ee?Q+Q:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function($,L,V,H,Q){var U=H.$mode.$quotes||x,K=H.doc.getTextRange(Q);if(!Q.isMultiLine()&&U.hasOwnProperty(K)&&(k(V),H.doc.getLine(Q.start.row).substring(Q.start.column+1,Q.start.column+2)==K))return Q.end.column++,Q}),P.closeDocComment!==!1&&this.add("doc comment end","insertion",function($,L,V,H,Q){var U;if($==="doc-start"&&(Q===`
  507. `||Q===`\r
  508. `)&&V.selection.isEmpty())return $=V.getCursorPosition(),V=H.doc.getLine($.row),H=H.doc.getLine($.row+1),U=this.$getIndent(V),/\s*\*/.test(H)?/^\s*\*/.test(V)?{text:Q+U+"* ",selection:[1,3+U.length,1,3+U.length]}:{text:Q+U+" * ",selection:[1,3+U.length,1,3+U.length]}:/\/\*\*/.test(V.substring(0,$.column))?{text:Q+U+" * "+Q+" "+U+"*/",selection:[1,4+U.length,1,4+U.length]}:void 0})}var I,O=v("../../lib/oop"),y=v("../behaviour").Behaviour,_=v("../../token_iterator").TokenIterator,A=v("../../lib/lang"),R=["text","paren.rparen","rparen","paren","punctuation.operator"],D=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],C={},x={'"':'"',"'":"'"};S.isSaneInsertion=function(P,$){var L=P.getCursorPosition(),V=new _($,L.row,L.column);if(!this.$matchTokenType(V.getCurrentToken()||"text",R)){if(/[)}\]]/.test(P.session.getLine(L.row)[L.column]))return!0;if(P=new _($,L.row,L.column+1),!this.$matchTokenType(P.getCurrentToken()||"text",R))return!1}return V.stepForward(),V.getCurrentTokenRow()!==L.row||this.$matchTokenType(V.getCurrentToken()||"text",D)},S.$matchTokenType=function(P,$){return-1<$.indexOf(P.type||P)},S.recordAutoInsert=function(P,$,L){P=P.getCursorPosition(),$=$.doc.getLine(P.row),this.isAutoInsertedClosing(P,$,I.autoInsertedLineEnd[0])||(I.autoInsertedBrackets=0),I.autoInsertedRow=P.row,I.autoInsertedLineEnd=L+$.substr(P.column),I.autoInsertedBrackets++},S.recordMaybeInsert=function(P,$,L){P=P.getCursorPosition(),$=$.doc.getLine(P.row),this.isMaybeInsertedClosing(P,$)||(I.maybeInsertedBrackets=0),I.maybeInsertedRow=P.row,I.maybeInsertedLineStart=$.substr(0,P.column)+L,I.maybeInsertedLineEnd=$.substr(P.column),I.maybeInsertedBrackets++},S.isAutoInsertedClosing=function(P,$,L){return 0<I.autoInsertedBrackets&&P.row===I.autoInsertedRow&&L===I.autoInsertedLineEnd[0]&&$.substr(P.column)===I.autoInsertedLineEnd},S.isMaybeInsertedClosing=function(P,$){return 0<I.maybeInsertedBrackets&&P.row===I.maybeInsertedRow&&$.substr(P.column)===I.maybeInsertedLineEnd&&$.substr(0,P.column)==I.maybeInsertedLineStart},S.popAutoInsertedClosing=function(){I.autoInsertedLineEnd=I.autoInsertedLineEnd.substr(1),I.autoInsertedBrackets--},S.clearMaybeInsertedClosing=function(){I&&(I.maybeInsertedBrackets=0,I.maybeInsertedRow=-1)},O.inherits(S,y),m.CstyleBehaviour=S}),ace.define("ace/unicode",["require","exports","module"],function(v,m,w){for(var k=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25
  509. `,this._signal("changeNewLineMode")},_.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
  510. `;case"unix":return`
  511. `;default:return this.$autoNewLine||`
  512. `}},_.prototype.setNewLineMode=function(A){this.$newLineMode!==A&&(this.$newLineMode=A,this._signal("changeNewLineMode"))},_.prototype.getNewLineMode=function(){return this.$newLineMode},_.prototype.isNewLine=function(A){return A==`\r
  513. `||A=="\r"||A==`
  514. `},_.prototype.getLine=function(A){return this.$lines[A]||""},_.prototype.getLines=function(A,R){return this.$lines.slice(A,R+1)},_.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},_.prototype.getLength=function(){return this.$lines.length},_.prototype.getTextRange=function(A){return this.getLinesForRange(A).join(this.getNewLineCharacter())},_.prototype.getLinesForRange=function(A){var R,D;return A.start.row===A.end.row?R=[this.getLine(A.start.row).substring(A.start.column,A.end.column)]:((R=this.getLines(A.start.row,A.end.row))[0]=(R[0]||"").substring(A.start.column),D=R.length-1,A.end.row-A.start.row==D&&(R[D]=R[D].substring(0,A.end.column))),R},_.prototype.insertLines=function(A,R){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(A,R)},_.prototype.removeLines=function(A,R){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(A,R)},_.prototype.insertNewLine=function(A){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(A,["",""])},_.prototype.insert=function(A,R){return this.getLength()<=1&&this.$detectNewLine(R),this.insertMergedLines(A,this.$split(R))},_.prototype.insertInLine=function(C,R){var D=this.clippedPos(C.row,C.column),C=this.pos(C.row,C.column+R.length);return this.applyDelta({start:D,end:C,action:"insert",lines:[R]},!0),this.clonePos(C)},_.prototype.clippedPos=function(A,R){var D=this.getLength(),D=(A===void 0?A=D:A<0?A=0:D<=A&&(A=D-1,R=void 0),this.getLine(A));return R==null&&(R=D.length),{row:A,column:R=Math.min(Math.max(R,0),D.length)}},_.prototype.clonePos=function(A){return{row:A.row,column:A.column}},_.prototype.pos=function(A,R){return{row:A,column:R}},_.prototype.$clipPosition=function(A){var R=this.getLength();return A.row>=R?(A.row=Math.max(0,R-1),A.column=this.getLine(R-1).length):(A.row=Math.max(0,A.row),A.column=Math.min(Math.max(A.column,0),this.getLine(A.row).length)),A},_.prototype.insertFullLines=function(A,R){var D=0,D=(A=Math.min(Math.max(A,0),this.getLength()))<this.getLength()?(R=R.concat([""]),0):(R=[""].concat(R),this.$lines[--A].length);this.insertMergedLines({row:A,column:D},R)},_.prototype.insertMergedLines=function(D,R){var D=this.clippedPos(D.row,D.column),C={row:D.row+R.length-1,column:(R.length==1?D.column:0)+R[R.length-1].length};return this.applyDelta({start:D,end:C,action:"insert",lines:R}),this.clonePos(C)},_.prototype.remove=function(D){var R=this.clippedPos(D.start.row,D.start.column),D=this.clippedPos(D.end.row,D.end.column);return this.applyDelta({start:R,end:D,action:"remove",lines:this.getLinesForRange({start:R,end:D})}),this.clonePos(R)},_.prototype.removeInLine=function(A,R,D){return R=this.clippedPos(A,R),A=this.clippedPos(A,D),this.applyDelta({start:R,end:A,action:"remove",lines:this.getLinesForRange({start:R,end:A})},!0),this.clonePos(R)},_.prototype.removeFullLines=function(A,R){A=Math.min(Math.max(0,A),this.getLength()-1);var P=(R=Math.min(Math.max(0,R),this.getLength()-1))==this.getLength()-1&&0<A,C=R<this.getLength()-1,x=P?A-1:A,P=P?this.getLine(x).length:0,D=C?R+1:R,C=C?0:this.getLine(D).length,x=new I(x,P,D,C),P=this.$lines.slice(A,R+1);return this.applyDelta({start:x.start,end:x.end,action:"remove",lines:this.getLinesForRange(x)}),P},_.prototype.removeNewLine=function(A){A<this.getLength()-1&&0<=A&&this.applyDelta({start:this.pos(A,this.getLine(A).length),end:this.pos(A+1,0),action:"remove",lines:["",""]})},_.prototype.replace=function(A,R){return A instanceof I||(A=I.fromPoints(A.start,A.end)),R.length===0&&A.isEmpty()?A.start:R==this.getTextRange(A)?A.end:(this.remove(A),R?this.insert(A.start,R):A.start)},_.prototype.applyDeltas=function(A){for(var R=0;R<A.length;R++)this.applyDelta(A[R])},_.prototype.revertDeltas=function(A){for(var R=A.length-1;0<=R;R--)this.revertDelta(A[R])},_.prototype.applyDelta=function(A,R){var D=A.action=="insert";(D?A.lines.length<=1&&!A.lines[0]:!I.comparePoint
  515. ---
  516. `+y(this.$redoStack)};var k=T;function T(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}k.prototype.hasUndo=k.prototype.canUndo,k.prototype.hasRedo=k.prototype.canRedo,k.prototype.isClean=k.prototype.isAtBookmark,k.prototype.markClean=k.prototype.bookmark;var S=v("./range").Range,I=S.comparePoints;S.comparePoints;function O(x){return{row:x.row,column:x.column}}function y(x){var P;return x=x||this,Array.isArray(x)?x.map(y).join(`
  517. `):(P="",x.action?(P=x.action=="insert"?"+":"-",P+="["+x.lines+"]"):x.value&&(P=Array.isArray(x.value)?x.value.map(_).join(`
  518. `):_(x.value)),x.start&&(P+=_(x)),(x.id||x.rev)&&(P+=" ("+(x.id||x.rev)+")"),P)}function _(x){return x.start.row+":"+x.start.column+"=>"+x.end.row+":"+x.end.column}function A(x,P){var $=x.action=="insert",L=P.action=="insert";if($&&L)if(0<=I(P.start,x.end))R(P,x,-1);else{if(!(I(P.start,x.start)<=0))return;R(x,P,1)}else if($&&!L)if(0<=I(P.start,x.end))R(P,x,-1);else{if(!(I(P.end,x.start)<=0))return;R(x,P,-1)}else if(!$&&L)if(0<=I(P.start,x.start))R(P,x,1);else{if(!(I(P.start,x.start)<=0))return;R(x,P,1)}else if(!$&&!L)if(0<=I(P.start,x.start))R(P,x,1);else{if(!(I(P.end,x.start)<=0))return;R(x,P,-1)}return 1}function R(x,P,$){D(x.start,P.start,P.end,$),D(x.end,P.start,P.end,$)}function D(x,P,$,L){x.row==(L==1?P:$).row&&(x.column+=L*($.column-P.column)),x.row+=L*($.row-P.row)}function C(x,P){var $=x.lines,L=x.end,H=(x.end=O(P),x.end.row-x.start.row),V=$.splice(H,$.length),H=H?P.column:P.column-x.start.column;return $.push(V[0].substring(0,H)),V[0]=V[0].substr(H),{start:O(P),end:L,lines:V,action:x.action}}m.UndoManager=k}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(v,m,w){var k=v("../range").Range;function T(S,I){this.foldData=S,Array.isArray(I)?this.folds=I:I=this.folds=[I],S=I[I.length-1],this.range=new k(I[0].start.row,I[0].start.column,S.end.row,S.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(O){O.setFoldLine(this)},this)}T.prototype.shiftRow=function(S){this.start.row+=S,this.end.row+=S,this.folds.forEach(function(I){I.start.row+=S,I.end.row+=S})},T.prototype.addFold=function(S){if(S.sameRow){if(S.start.row<this.startRow||S.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(S),this.folds.sort(function(I,O){return-I.range.compareEnd(O.start.row,O.start.column)}),0<this.range.compareEnd(S.start.row,S.start.column)?(this.end.row=S.end.row,this.end.column=S.end.column):this.range.compareStart(S.end.row,S.end.column)<0&&(this.start.row=S.start.row,this.start.column=S.start.column)}else if(S.start.row==this.end.row)this.folds.push(S),this.end.row=S.end.row,this.end.column=S.end.column;else{if(S.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(S),this.start.row=S.start.row,this.start.column=S.start.column}S.foldLine=this},T.prototype.containsRow=function(S){return S>=this.start.row&&S<=this.end.row},T.prototype.walk=function(S,I,O){var y,_,A=0,R=this.folds,D=!0;I==null&&(I=this.end.row,O=this.end.column);for(var C=0;C<R.length;C++){if((_=(y=R[C]).range.compareStart(I,O))==-1)return void S(null,I,O,A,D);if(!S(null,y.start.row,y.start.column,A,D)&&S(y.placeholder,y.start.row,y.start.column,A)||_===0)return;D=!y.sameRow,A=y.end.column}S(null,I,O,A,D)},T.prototype.getNextFoldTo=function(S,I){for(var O,y,_=0;_<this.folds.length;_++){if((y=(O=this.folds[_]).range.compareEnd(S,I))==-1)return{fold:O,kind:"after"};if(y===0)return{fold:O,kind:"inside"}}return null},T.prototype.addRemoveChars=function(S,I,O){var y,_=this.getNextFoldTo(S,I);if(_){if(y=_.fold,_.kind=="inside"&&y.start.column!=I&&y.start.row!=S)window.console&&window.console.log(S,I,y);else if(y.start.row==S){var A,R=(A=this.folds).indexOf(y);for(R===0&&(this.start.column+=O);R<A.length;R++){if((y=A[R]).start.column+=O,!y.sameRow)return;y.end.column+=O}this.end.column+=O}}},T.prototype.split=function(_,I){var O,y,_=this.getNextFoldTo(_,I);return _&&_.kind!="inside"?(I=_.fold,_=this.folds,O=this.foldData,I=_.indexOf(I),y=_[I-1],this.end.row=y.end.row,this.end.column=y.end.column,y=new T(O,_=_.splice(I,_.length-I)),O.splice(O.indexOf(this)+1,0,y),y):null},T.prototype.merge=function(S){for(var I=S.folds,O=0;O<I.length;O++)this.addFold(I[O]);var y=this.foldData;y.splice(y.indexOf(S),1)},T.prototype.toString=function(){var S=[this.range.toString()+": ["];return this.folds.forEach(function(I){S.push(" "+I.toString())}),S.push("]"),S.join(`
  519. `)},T.prototype.idxToPosition=function(S){for(var I=0,O=0;O<this.folds.length;O++){var y=this.folds[O];if((S-=y.start.column-I)<0)return{row:y.start.row,column:y.start.column+S};if((S-=y.placeholder.length)<0)return y.start;I=y.end.column}return{row:this.end.row,column:this.end.column+S}},m.FoldLine=T}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(T,m,w){var k=T("./range").Range.comparePoints,T=(S.prototype.pointIndex=function(I,O,y){for(var _=this.ranges,A=y||0;A<_.length;A++){var R=_[A],D=k(I,R.end);if(!(0<D))return R=k(I,R.start),D===0?O&&R!==0?-A-2:A:0<R||R===0&&!O?A:-A-1}return-A-1},S.prototype.add=function(I){var y=!I.isEmpty(),O=this.pointIndex(I.start,y),y=this.pointIndex(I.end,y,O=O<0?-O-1:O);return y<0?y=-y-1:y++,this.ranges.splice(O,y-O,I)},S.prototype.addList=function(I){for(var O=[],y=I.length;y--;)O.push.apply(O,this.add(I[y]));return O},S.prototype.substractPoint=function(I){if(I=this.pointIndex(I),0<=I)return this.ranges.splice(I,1)},S.prototype.merge=function(){for(var I=[],O=this.ranges,y=(O=O.sort(function(D,C){return k(D.start,C.start)}))[0],_=1;_<O.length;_++){var A=y,y=O[_],R=k(A.end,y.start);R<0||(R!=0||A.isEmpty()||y.isEmpty())&&(k(A.end,y.end)<0&&(A.end.row=y.end.row,A.end.column=y.end.column),O.splice(_,1),I.push(y),y=A,_--)}return this.ranges=O,I},S.prototype.contains=function(I,O){return 0<=this.pointIndex({row:I,column:O})},S.prototype.containsPoint=function(I){return 0<=this.pointIndex(I)},S.prototype.rangeAtPoint=function(I){if(I=this.pointIndex(I),0<=I)return this.ranges[I]},S.prototype.clipRows=function(I,O){var y=this.ranges;if(y[0].start.row>O||y[y.length-1].start.row<I)return[];for(var I=this.pointIndex({row:I,column:0}),_=this.pointIndex({row:O,column:0},I=I<0?-I-1:I),A=(_<0&&(_=-_-1),[]),R=I;R<_;R++)A.push(y[R]);return A},S.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},S.prototype.attach=function(I){this.session&&this.detach(),this.session=I,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},S.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},S.prototype.$onChange=function(I){for(var O=I.start,y=I.end,_=O.row,A=y.row,R=this.ranges,D=0,C=R.length;D<C&&!(($=R[D]).end.row>=_);D++);if(I.action=="insert")for(var x=A-_,P=-O.column+y.column;D<C&&!(($=R[D]).start.row>_);D++)$.start.row==_&&$.start.column>=O.column&&($.start.column==O.column&&this.$bias<=0||($.start.column+=P,$.start.row+=x)),$.end.row==_&&$.end.column>=O.column&&($.end.column==O.column&&this.$bias<0||($.end.column==O.column&&0<P&&D<C-1&&$.end.column>$.start.column&&$.end.column==R[D+1].start.column&&($.end.column-=P),$.end.column+=P,$.end.row+=x));else for(var $,x=_-A,P=O.column-y.column;D<C&&!(($=R[D]).start.row>A);D++)$.end.row<A&&(_<$.end.row||_==$.end.row&&O.column<$.end.column)?($.end.row=_,$.end.column=O.column):$.end.row==A?$.end.column<=y.column?(x||$.end.column>O.column)&&($.end.column=O.column,$.end.row=O.row):($.end.column+=P,$.end.row+=x):$.end.row>A&&($.end.row+=x),$.start.row<A&&(_<$.start.row||_==$.start.row&&O.column<$.start.column)?($.start.row=_,$.start.column=O.column):$.start.row==A?$.start.column<=y.column?(x||$.start.column>O.column)&&($.start.column=O.column,$.start.row=O.row):($.start.column+=P,$.start.row+=x):$.start.row>A&&($.start.row+=x);if(x!=0&&D<C)for(;D<C;D++)($=R[D]).start.row+=x,$.end.row+=x},S);function S(){this.ranges=[],this.$bias=1}T.prototype.comparePoints=k,m.RangeList=T}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(S,m,w){var k,T,I=this&&this.__extends||(k=function(A,R){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(D,C){D.__proto__=C}:function(D,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(D[x]=C[x])}))(A,R)},function(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function D(){this.constructor=A}k(A,R),A.prototype=R===null?Object.create(R):(D.prototype=R.p
  520. `},$.prototype.getWordRange=function(N,q){var G,ne=this.getLine(N),le=!1,oe=(G=(le=(le=0<q?!!ne.charAt(q-1).match(this.tokenRe):le)||!!ne.charAt(q).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(ne.slice(q-1,q+1))?/\s/:this.nonTokenRe,q);if(0<oe){for(;0<=--oe&&ne.charAt(oe).match(G););oe++}for(var ve=q;ve<ne.length&&ne.charAt(ve).match(G);)ve++;return new A(N,oe,N,ve)},$.prototype.getAWordRange=function(N,q){for(var G=this.getWordRange(N,q),ne=this.getLine(G.end.row);ne.charAt(G.end.column).match(/[ \t]/);)G.end.column+=1;return G},$.prototype.setNewLineMode=function(N){this.doc.setNewLineMode(N)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(N){this.setOption("useWorker",N)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(N){var q=N.data;this.bgTokenizer.start(q.first),this._signal("tokenizerUpdate",N)},$.prototype.setMode=function(N,q){if(N&&typeof N=="object"){if(N.getTokenizer)return this.$onChangeMode(N);var G=N,ne=G.path}else ne=N||"ace/mode/text";this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new _),this.$modes[ne]&&!G?(this.$onChangeMode(this.$modes[ne]),q&&q()):(this.$modeId=ne,I.loadModule(["mode",ne],(function(le){if(this.$modeId!==ne)return q&&q();this.$modes[ne]&&!G?this.$onChangeMode(this.$modes[ne]):le&&le.Mode&&(le=new le.Mode(G),G||((this.$modes[ne]=le).$id=ne),this.$onChangeMode(le)),q&&q()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0))},$.prototype.$onChangeMode=function(N,q){var G,ne,le;q||(this.$modeId=N.$id),this.$mode===N||(G=this.$mode,this.$mode=N,this.$stopWorker(),this.$useWorker&&this.$startWorker(),(ne=N.getTokenizer()).on!==void 0&&(le=this.onReloadTokenizer.bind(this),ne.on("update",le)),this.bgTokenizer.setTokenizer(ne),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=N.tokenRe,this.nonTokenRe=N.nonTokenRe,q)||(N.attachToSession&&N.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(N.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:G,mode:N}))},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(N){I.warn("Could not load worker",N),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(N){this.$scrollTop===N||isNaN(N)||(this.$scrollTop=N,this._signal("changeScrollTop",N))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(N){this.$scrollLeft===N||isNaN(N)||(this.$scrollLeft=N,this._signal("changeScrollLeft",N))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.prototype.getLineWidgetMaxWidth=function(){var N;return this.lineWidgetsWidth!=null?this.lineWidgetsWidth:(N=0,this.lineWidgets.forEach(function(q){q&&q.screenWidth>N&&(N=q.screenWidth)}),this.lineWidgetWidth=N)},$.prototype.$computeWidth=function(N){if(this.$modified||N){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var q=this.doc.getAllLines(),G=this.$rowLengthCache,ne=0,le=0,oe=this.$foldData[le],ve=oe?oe.start.row:1/0,de=q.length,ae=0;ae<de;ae++){if(ve<ae){if(de<=(ae=oe.end.row+1))break;ve=(oe=this.$foldData[le++])?oe.start.row:1/0}G[ae]==null&&(G[ae]=this.$getStringScreenWidth(q[ae])[0]),G[ae]>ne&&(ne=G[ae])}this.screenWidth=ne}},$.prototype.getLine=function(N){return this.doc.getLine(N)},$.prototype.getLines=function(N,q){return this.doc.getLines(N,q)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(N){return this.doc.getTextRange(N||this.selection.getRange())},$.prototype.insert=function(N,q){return this.doc.insert(N,q)},$.prototype.remove=function(N){return this.doc.remove(N)},$.prototype.removeFullLines=function(N,q)
  521. `)},this.bgTokenizer=new D(new _().getTokenizer(),this);var G=this;this.bgTokenizer.on("update",function(ne){G._signal("tokenizerUpdate",ne)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),typeof N=="object"&&N.getLine||(N=new R(N)),this.setDocument(N),this.selection=new y(this),this.$bidiHandler=new S(this),I.resetOptions(this),this.setMode(q),I._signal("session",this),this.destroyed=!1}P.$uid=0,P.prototype.$modes=I.$modes,P.prototype.getValue=P.prototype.toString,P.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},P.prototype.$overwrite=!1,P.prototype.$mode=null,P.prototype.$modeId=null,P.prototype.$scrollTop=0,P.prototype.$scrollLeft=0,P.prototype.$wrapLimit=80,P.prototype.$useWrapMode=!1,P.prototype.$wrapLimitRange={min:null,max:null},P.prototype.lineWidgets=null,P.prototype.isFullWidth=ee,k.implement(P.prototype,O);var L=1,V=2,H=3,Q=4,U=9,K=10,J=11,ue=12;function ee(N){return!(N<4352)&&(4352<=N&&N<=4447||4515<=N&&N<=4519||4602<=N&&N<=4607||9001<=N&&N<=9002||11904<=N&&N<=11929||11931<=N&&N<=12019||12032<=N&&N<=12245||12272<=N&&N<=12283||12288<=N&&N<=12350||12353<=N&&N<=12438||12441<=N&&N<=12543||12549<=N&&N<=12589||12593<=N&&N<=12686||12688<=N&&N<=12730||12736<=N&&N<=12771||12784<=N&&N<=12830||12832<=N&&N<=12871||12880<=N&&N<=13054||13056<=N&&N<=19903||19968<=N&&N<=42124||42128<=N&&N<=42182||43360<=N&&N<=43388||44032<=N&&N<=55203||55216<=N&&N<=55238||55243<=N&&N<=55291||63744<=N&&N<=64255||65040<=N&&N<=65049||65072<=N&&N<=65106||65108<=N&&N<=65126||65128<=N&&N<=65131||65281<=N&&N<=65376||65504<=N&&N<=65510)}v("./edit_session/folding").Folding.call(P.prototype),v("./edit_session/bracket_match").BracketMatch.call(P.prototype),I.defineOptions(P.prototype,"session",{wrap:{set:function(N){N&&N!="off"?N=="free"?N=!0:N=="printMargin"?N=-1:typeof N=="string"&&(N=parseInt(N,10)||!1):N=!1,this.$wrap!=N&&((this.$wrap=N)?(this.setWrapLimitRange(N=typeof N=="number"?N:null,N),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(N){(N=N=="auto"?this.$mode.type!="text":N!="text")!=this.$wrapAsCode&&(this.$wrapAsCode=N,this.$useWrapMode)&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(N){this.$useWorker=N,this.$stopWorker(),N&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(N){0<(N=parseInt(N))&&this.$tabSize!==N&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=N,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(N){this.setFoldStyle(N)},handlesSet:!0},overwrite:{set:function(N){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(N){this.doc.setNewLineMode(N)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(N){this.setMode(N)},get:function(){return this.$modeId},handlesSet:!0}}),m.EditSession=P}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(v,m,w){var k=v("./lib/lang"),T=v("./lib/oop"),S=v("./range").Range;function I(){this.$options={}}I.prototype.set=function(O){return T.mixin(this.$options,O),this},I.prototype.getOptions=function(){return k.copyObject(this.$options)},I.prototype.setOptions=function(O){this.$options=O},I.prototype.find=function(A){var y,_=this.$options,A=this.$matchIterator(A,_);return!!A&&(y=null,A.forEach(function(R,D,C,x){return y=new S(R,D,C,x),!(D==x&&_.start&&_.start.start&&_.skipCurrent!=0&&y.isEqual(_.start)&&(y=null,1))}),y)},I.prototype.findAll=fu
  522. ^`).split(`
  523. `),A=[],R=0;R<_.length;R++)try{A.push(new RegExp(_[R],y))}catch{return!1}return A},I.prototype.$matchIterator=function(O,y){var _,A,R,D,C,x,P,$,L=this.$assembleRegExp(y);return!!L&&(_=y.backwards==1,A=y.skipCurrent!=0,R=y.range,(D=(D=y.start)||(R?R[_?"end":"start"]:O.selection.getRange())).start&&(D=D[A!=_?"end":"start"]),C=R?R.start.row:0,x=R?R.end.row:O.getLength()-1,$=y.$isMultiLine?(P=L.length,function(V,H,Q){var U=_?V-P+1:V;if(!(U<0||U+P>O.getLength())){var K=O.getLine(U),V=K.search(L[0]);if(!(!_&&V<H||V===-1)){for(var J=1;J<P;J++)if((K=O.getLine(U+J)).search(L[J])==-1)return;var ue=K.match(L[P-1])[0].length;if(!(_&&H<ue))return!!Q(U,V,U+P-1,ue)||void 0}}}):_?function(V,H,Q){var U,K=O.getLine(V),J=[];for(L.lastIndex=0;U=L.exec(K);){var ue=U[0].length,ee=U.index;if(!ue){if(ee>=K.length)break;L.lastIndex=ee+=1}if(U.index+ue>H)break;J.push(U.index,ue)}for(var N=J.length-1;0<=N;N-=2){var q=J[N-1];if(Q(V,q,V,q+(ue=J[N])))return!0}}:function(V,H,Q){var U=O.getLine(V);for(L.lastIndex=H;K=L.exec(U);){var K,J=K[0].length;if(Q(V,K=K.index,V,K+J))return!0;if(!J&&(L.lastIndex=K+=1,K>=U.length))return!1}},{forEach:_?function(V){var H=D.row;if(!$(H,D.column,V)){for(H--;C<=H;H--)if($(H,Number.MAX_VALUE,V))return;if(y.wrap!=0){for(H=x,C=D.row;C<=H;H--)if($(H,Number.MAX_VALUE,V))return}}}:function(V){var H=D.row;if(!$(H,D.column,V)){for(H+=1;H<=x;H++)if($(H,0,V))return;if(y.wrap!=0){for(H=C,x=D.row;H<=x;H++)if($(H,0,V))return}}}})},m.Search=I}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(D,m,w){var k,T=this&&this.__extends||(k=function(x,P){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function($,L){$.__proto__=L}:function($,L){for(var V in L)Object.prototype.hasOwnProperty.call(L,V)&&($[V]=L[V])}))(x,P)},function(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function $(){this.constructor=x}k(x,P),x.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}),S=D("../lib/keys"),I=D("../lib/useragent"),O=S.KEY_MODS,y=(_.prototype.$init=function(x,P,$){this.platform=P||(I.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(x),this.$singleCommand=$},_.prototype.addCommand=function(x){this.commands[x.name]&&this.removeCommand(x),(this.commands[x.name]=x).bindKey&&this._buildKeyHash(x)},_.prototype.removeCommand=function(x,P){var $,L=x&&(typeof x=="string"?x:x.name),V=(x=this.commands[L],P||delete this.commands[L],this.commandKeyBinding);for($ in V){var H,Q=V[$];Q==x?delete V[$]:Array.isArray(Q)&&(H=Q.indexOf(x))!=-1&&(Q.splice(H,1),Q.length==1)&&(V[$]=Q[0])}},_.prototype.bindKey=function(x,P,$){if(typeof x=="object"&&x&&($==null&&($=x.position),x=x[this.platform]),x)return typeof P=="function"?this.addCommand({exec:P,bindKey:x,name:P.name||x}):void x.split("|").forEach(function(Q){var V="",H=(Q.indexOf(" ")!=-1&&(Q=(H=Q.split(/\s+/)).pop(),H.forEach(function(U){U=this.parseKeys(U),U=O[U.hashId]+U.key,V+=(V?" ":"")+U,this._addCommandToBinding(V,"chainKeys")},this),V+=" "),this.parseKeys(Q)),Q=O[H.hashId]+H.key;this._addCommandToBinding(V+Q,P,$)},this)},_.prototype._addCommandToBinding=function(x,P,$){var L=this.commandKeyBinding;if(P)if(!L[x]||this.$singleCommand)L[x]=P;else{Array.isArray(L[x])?(H=L[x].indexOf(P))!=-1&&L[x].splice(H,1):L[x]=[L[x]],typeof $!="number"&&($=A(P));for(var V=L[x],H=0;H<V.length&&!($<A(V[H]));H++);V.splice(H,0,P)}else delete L[x]},_.prototype.addCommands=function(x){x&&Object.keys(x).forEach(function(P){var $=x[P];if($){if(typeof $=="string")return this.bindKey($,P);typeof($=typeof $=="function"?{exec:$}:$)=="object"&&($.name||($.name=P),this.addCommand($))}},this)},_.prototype.removeCommands=function(x){Object.keys(x).forEach(function(P){this.removeCommand(x[P])},this)},_.prototype.bindKeys=function(x){Object.keys(x).forEach(function(P){this.bindKey(P,x[P])},this)},_.prototype._buildKeyHash=function(x){this.bindKey(x.bindKey,x)},_.prototype.parseKeys=function(x){var P=x.toLowerCase().split(/[\-\+]([\-\+])?/).f
  524. `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(y){y.selection.clearSelection();var _=y.getCursorPosition();y.selection.moveTo(_.row-1,Number.MAX_VALUE),y.insert(`
  525. `),_.row===0&&y.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(y){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),y.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:I("F1","F1"),exec:function(y){y.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:I(null,null),exec:function(y){y.prompt({$type:"modes"})},readOnly:!0}];for(var O=1;O<9;O++)m.commands.push({name:"foldToLevel"+O,description:"Fold To Level "+O,level:O,exec:function(y){y.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(v,m,w){var k=v("./lib/dom");function T(S){this.session=S,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}T.prototype.getRowLength=function(S){var I=this.lineWidgets&&this.lineWidgets[S]&&this.lineWidgets[S].rowCount||0;return this.$useWrapMode&&this.$wrapData[S]?this.$wrapData[S].length+1+I:1+I},T.prototype.$getWidgetScreenLength=function(){var S=0;return this.lineWidgets.forEach(function(I){I&&I.rowCount&&!I.hidden&&(S+=I.rowCount)}),S},T.prototype.$onChangeEditor=function(S){this.attach(S.editor)},T.prototype.attach=function(S){S&&S.widgetManager&&S.widgetManager!=this&&S.widgetManager.detach(),this.editor!=S&&(this.detach(),this.editor=S)&&(S.widgetManager=this,S.renderer.on("beforeRender",this.measureWidgets),S.renderer.on("afterRender",this.renderWidgets))},T.prototype.detach=function(S){var I=this.editor;I&&(this.editor=null,I.widgetManager=null,I.renderer.off("beforeRender",this.measureWidgets),I.renderer.off("afterRender",this.renderWidgets),I=this.session.lineWidgets)&&I.forEach(function(O){O&&O.el&&O.el.parentNode&&(O._inDocument=!1,O.el.parentNode.removeChild(O.el))})},T.prototype.updateOnFold=function(S,I){var O=I.lineWidgets;if(O&&S.action){for(var I=S.data,y=I.start.row,_=I.end.row,A=S.action=="add",R=y+1;R<_;R++)O[R]&&(O[R].hidden=A);O[_]&&(A?O[y]?O[_].hidden=A:O[y]=O[_]:(O[y]==O[_]&&(O[y]=void 0),O[_].hidden=A))}},T.prototype.updateOnChange=function(S){var I,O,y,_=this.session.lineWidgets;_&&(I=S.start.row,(O=S.end.row-I)!=0)&&(S.action=="remove"?(y=_.splice(I+1,O),!_[I]&&y[y.length-1]&&(_[I]=y.pop()),y.forEach(function(A){A&&this.removeLineWidget(A)},this)):(y=new Array(O),_[I]&&_[I].column!=null&&S.start.column>_[I].column&&I++,y.unshift(I,0),_.splice.apply(_,y)),this.$updateRows())},T.prototype.$updateRows=function(){var S,I=this.session.lineWidgets;I&&(S=!0,I.forEach(function(O,y){if(O)for(S=!1,O.row=y;O.$oldWidget;)O.$oldWidget.row=y,O=O.$oldWidget}),S)&&(this.session.lineWidgets=null)},T.prototype.$registerLineWidget=function(S){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var I=this.session.lineWidgets[S.row];return I&&(S.$oldWidget=I).el&&I.el.parentNode&&(I.el.parentNode.removeChild(I.el),I._inDocument=!1),this.session.lineWidgets[S.row]=S},T.prototype.addLineWidget=function(S){var I,O,y;return this.$registerLineWidget(S),S.session=this.session,this.editor&&(I=this.editor.renderer,S.html&&!S.el&&(S.el=k.createElement("div"),S.el.innerHTML=S.html),S.text&&!S.el&&(S.el=k.createElement("div"),S.el.textContent=S.text),S.el&&(k.addCssClass(S.el,"ace_lineWidgetContainer"),S.className&&k.addCssClass(S.el,S.className),S.el.style.position="absolute",S.el.style.zIndex=5,I.container.appendChild(S.el),S._inDocument=!0,S.coverGutter||(S.el.style.zIndex=3),S.pixelHeight==null)&&(S.pixelHeight=S.el.offsetHeight)
  526. `)==-1&&((ae=new x.fromPoints(de,de)).end.column+=G.length,this.session.remove(ae)):(ae=this.getSelectionRange(),de=this.session.remove(ae),this.clearSelection()),G!=`
  527. `&&G!=`\r
  528. `||(ie=oe.getLine(de.row),de.column>ie.search(/\S|$/)&&(be=ie.substr(de.column).search(/\S|$/),oe.doc.removeInLine(de.row,de.column,de.column+be))),this.clearSelection(),de.column),be=oe.getState(de.row),ie=oe.getLine(de.row),ce=ve.checkOutdent(be,ie,G);oe.insert(de,G),le&&le.selection&&(le.selection.length==2?this.selection.setSelectionRange(new x(de.row,ae+le.selection[0],de.row,ae+le.selection[1])):this.selection.setSelectionRange(new x(de.row+le.selection[0],le.selection[1],de.row+le.selection[2],le.selection[3]))),this.$enableAutoIndent&&(oe.getDocument().isNewLine(G)&&(ae=ve.getNextLineIndent(be,ie.slice(0,de.column),oe.getTabString()),oe.insert({row:de.row+1,column:0},ae)),ce)&&ve.autoOutdent(be,oe,de.row)},N.prototype.autoIndent=function(){for(var G,ne,le,oe,ve,de=this.session,ae=de.getMode(),be=(le=this.selection.isEmpty()?(ne=0,de.doc.getLength()-1):(ne=(G=this.getSelectionRange()).start.row,G.end.row),""),ie="",ce=de.getTabString(),pe=ne;pe<=le;pe++)0<pe&&(be=de.getState(pe-1),oe=de.getLine(pe-1),ie=ae.getNextLineIndent(be,oe,ce)),oe=de.getLine(pe),ie!==(ve=ae.$getIndent(oe))&&(0<ve.length&&(ve=new x(pe,0,pe,ve.length),de.remove(ve)),0<ie.length)&&de.insert({row:pe,column:0},ie),ae.autoOutdent(be,de,pe)},N.prototype.onTextInput=function(G,ne){if(!ne)return this.keyBinding.onTextInput(G);this.startOperation({command:{name:"insertstring"}}),G=this.applyComposition.bind(this,G,ne),this.selection.rangeCount?this.forEachSelection(G):G(),this.endOperation()},N.prototype.applyComposition=function(G,ne){var le;(ne.extendLeft||ne.extendRight)&&((le=this.selection.getRange()).start.column-=ne.extendLeft,le.end.column+=ne.extendRight,le.start.column<0&&(le.start.row--,le.start.column+=this.session.getLine(le.start.row).length+1),this.selection.setRange(le),G||le.isEmpty()||this.remove()),!G&&this.selection.isEmpty()||this.insert(G,!0),(ne.restoreStart||ne.restoreEnd)&&((le=this.selection.getRange()).start.column-=ne.restoreStart,le.end.column-=ne.restoreEnd,this.selection.setRange(le))},N.prototype.onCommandKey=function(G,ne,le){return this.keyBinding.onCommandKey(G,ne,le)},N.prototype.setOverwrite=function(G){this.session.setOverwrite(G)},N.prototype.getOverwrite=function(){return this.session.getOverwrite()},N.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},N.prototype.setScrollSpeed=function(G){this.setOption("scrollSpeed",G)},N.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},N.prototype.setDragDelay=function(G){this.setOption("dragDelay",G)},N.prototype.getDragDelay=function(){return this.getOption("dragDelay")},N.prototype.setSelectionStyle=function(G){this.setOption("selectionStyle",G)},N.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},N.prototype.setHighlightActiveLine=function(G){this.setOption("highlightActiveLine",G)},N.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},N.prototype.setHighlightGutterLine=function(G){this.setOption("highlightGutterLine",G)},N.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},N.prototype.setHighlightSelectedWord=function(G){this.setOption("highlightSelectedWord",G)},N.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},N.prototype.setAnimatedScroll=function(G){this.renderer.setAnimatedScroll(G)},N.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},N.prototype.setShowInvisibles=function(G){this.renderer.setShowInvisibles(G)},N.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},N.prototype.setDisplayIndentGuides=function(G){this.renderer.setDisplayIndentGuides(G)},N.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},N.prototype.setHighlightIndentGuides=function(G){this.renderer.setHighlightIndentGuides(G)},N.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},N.prototype.setShowPrintMargin=function(G){this.renderer.setShowPrintMargin(G)},N.prototype.getSho
  529. `&&(oe=ne.getLine(ve.end.row),/^\s+$/.test(oe))&&(ve.end.column=oe.length),le)&&(ve=le),this.session.remove(ve),this.clearSelection()},N.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},N.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var G=this.getSelectionRange();G.start.column==G.end.column&&G.start.row==G.end.row&&(G.end.column=0,G.end.row++),this.session.remove(G),this.clearSelection()},N.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var G=this.getCursorPosition();this.insert(`
  530. `),this.moveCursorToPosition(G)},N.prototype.setGhostText=function(G,ne){this.session.widgetManager||(this.session.widgetManager=new Q(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(G,ne)},N.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},N.prototype.transposeLetters=function(){var G,ne,le,oe;this.selection.isEmpty()&&(ne=(G=this.getCursorPosition()).column)!==0&&(oe=ne<(oe=this.session.getLine(G.row)).length?(le=oe.charAt(ne)+oe.charAt(ne-1),new x(G.row,ne-1,G.row,ne+1)):(le=oe.charAt(ne-1)+oe.charAt(ne-2),new x(G.row,ne-2,G.row,ne)),this.session.replace(oe,le),this.session.selection.moveToPosition(oe.end))},N.prototype.toLowerCase=function(){var G=this.getSelectionRange(),ne=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),le=this.session.getTextRange(ne);this.session.replace(ne,le.toLowerCase()),this.selection.setSelectionRange(G)},N.prototype.toUpperCase=function(){var G=this.getSelectionRange(),ne=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),le=this.session.getTextRange(ne);this.session.replace(ne,le.toUpperCase()),this.selection.setSelectionRange(G)},N.prototype.indent=function(){var G=this.session,ne=this.getSelectionRange();if(!(ne.start.row<ne.end.row)){if(ne.start.column<ne.end.column){var le,de=G.getTextRange(ne);if(!/^\s+$/.test(de))return le=this.$getSelectedRows(),void G.indentRows(le.first,le.last," ")}var oe=G.getLine(ne.start.row),de=ne.start,ve=G.getTabSize(),de=G.documentToScreenColumn(de.row,de.column);if(this.session.getUseSoftTabs())var ae=ve-de%ve,be=I.stringRepeat(" ",ae);else{for(ae=de%ve;oe[ne.start.column-1]==" "&&ae;)ne.start.column--,ae--;this.selection.setSelectionRange(ne),be=" "}return this.insert(be)}le=this.$getSelectedRows(),G.indentRows(le.first,le.last," ")},N.prototype.blockIndent=function(){var G=this.$getSelectedRows();this.session.indentRows(G.first,G.last," ")},N.prototype.blockOutdent=function(){var G=this.session.getSelection();this.session.outdentRows(G.getRange())},N.prototype.sortLines=function(){for(var G=this.$getSelectedRows(),ne=this.session,le=[],oe=G.first;oe<=G.last;oe++)le.push(ne.getLine(oe));le.sort(function(ae,be){return ae.toLowerCase()<be.toLowerCase()?-1:ae.toLowerCase()>be.toLowerCase()?1:0});for(var ve=new x(0,0,0,0),oe=G.first;oe<=G.last;oe++){var de=ne.getLine(oe);ve.start.row=oe,ve.end.row=oe,ve.end.column=de.length,ne.replace(ve,le[oe-G.first])}},N.prototype.toggleCommentLines=function(){var G=this.session.getState(this.getCursorPosition().row),ne=this.$getSelectedRows();this.session.getMode().toggleCommentLines(G,this.session,ne.first,ne.last)},N.prototype.toggleBlockComment=function(){var G=this.getCursorPosition(),ne=this.session.getState(G.row),le=this.getSelectionRange();this.session.getMode().toggleBlockComment(ne,this.session,le,G)},N.prototype.getNumberAt=function(G,ne){for(var le=/[\-]?[0-9]+(?:\.[0-9]+)?/g,oe=(le.lastIndex=0,this.session.getLine(G));le.lastIndex<ne;){var ve=le.exec(oe);if(ve.index<=ne&&ve.index+ve[0].length>=ne)return{value:ve[0],start:ve.index,end:ve.index+ve[0].length}}return null},N.prototype.modifyNumber=function(G){var ne,le,oe,ve=this.selection.getCursor().row,de=this.selection.getCursor().column,ae=new x(ve,de-1,ve,de),ae=this.session.getTextRange(ae);!isNaN(parseFloat(ae))&&isFinite(ae)?(ae=this.getNumberAt(ve,de))&&(oe=0<=ae.value.indexOf(".")?ae.start+ae.value.indexOf(".")+1:ae.end,ne=ae.start+ae.value.length-oe,le=parseFloat(ae.value),le*=Math.pow(10,ne),oe!==ae.end&&de<oe?G*=Math.pow(10,ae.end-de-1):G*=Math.pow(10,ae.end-de),oe=(le=(le+=G)/Math.pow(10,ne)).toFixed(ne),G=new x(ve,ae.start,ve,ae.end),this.session.replace(G,oe),this.moveCursorTo(ve,Math.max(ae.start+1,de+oe.length-ae.value.length))):this.toggleWord()},N.prototype.toggleWord=function(){for(var G,ne=this.selection.getCursor().row,le=this.selection.getCursor().column,oe=(this.selection.selectWord(),this.getSelectedText()),ve=this.selection.getWordRange().start.column,de=oe.replace(/([a-z]+|[A-Z]+)(?=[A-Z_
  531. `&&D.getNewLineMode()!="windows"?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=D)return this.EOL_CHAR=D,!0},R.prototype.setPadding=function(D){this.$padding=D,this.element.style.margin="0 "+D+"px"},R.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},R.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},R.prototype.$setFontMetrics=function(D){this.$fontMetrics=D,this.$fontMetrics.on("changeCharacterSize",(function(C){this._signal("changeCharacterSize",C)}).bind(this)),this.$pollSizeChanges()},R.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},R.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},R.prototype.setSession=function(D){(this.session=D)&&this.$computeTabString()},R.prototype.setShowInvisibles=function(D){return this.showInvisibles!=D&&(typeof(this.showInvisibles=D)=="string"?(this.showSpaces=/tab/i.test(D),this.showTabs=/space/i.test(D),this.showEOL=/eol/i.test(D)):this.showSpaces=this.showTabs=this.showEOL=D,this.$computeTabString(),!0)},R.prototype.setDisplayIndentGuides=function(D){return this.displayIndentGuides!=D&&(this.displayIndentGuides=D,this.$computeTabString(),!0)},R.prototype.setHighlightIndentGuides=function(D){return this.$highlightIndentGuides!==D&&(this.$highlightIndentGuides=D)},R.prototype.$computeTabString=function(){for(var D,C,x,P,$,L,V=this.session.getTabSize(),H=(this.tabSize=V,this.$tabStrings=[0]),Q=1;Q<V+1;Q++)this.showTabs?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",L.textContent=S.stringRepeat(this.TAB_CHAR,Q),H.push(L)):H.push(this.dom.createTextNode(S.stringRepeat(" ",Q),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,D="ace_indent-guide",C=this.showSpaces?" ace_invisible ace_invisible_space":"",x=this.showSpaces?S.stringRepeat(this.SPACE_CHAR,this.tabSize):S.stringRepeat(" ",this.tabSize),P=this.showTabs?" ace_invisible ace_invisible_tab":"",$=this.showTabs?S.stringRepeat(this.TAB_CHAR,this.tabSize):x,(L=this.dom.createElement("span")).className=D+C,L.textContent=x,this.$tabStrings[" "]=L,(L=this.dom.createElement("span")).className=D+P,L.textContent=$,this.$tabStrings[" "]=L)},R.prototype.updateLines=function(D,C,x){if(this.config.lastRow!=D.lastRow||this.config.firstRow!=D.firstRow)return this.update(D);this.config=D;for(var P=Math.max(C,D.firstRow),$=Math.min(x,D.lastRow),L=this.element.childNodes,V=0,H=D.firstRow;H<P;H++){if(Q=this.session.getFoldLine(H)){if(Q.containsRow(P)){P=Q.start.row;break}H=Q.end.row}V++}for(var Q,U=!1,H=P,K=(Q=this.session.getNextFoldLine(H))?Q.start.row:1/0;K<H&&(H=Q.end.row+1,K=(Q=this.session.getNextFoldLine(H,Q))?Q.start.row:1/0),!($<H);){var J,ue=L[V++];ue&&(this.dom.removeChildren(ue),this.$renderLine(ue,H,H==K&&Q),U&&(ue.style.top=this.$lines.computeLineTop(H,D,this.session)+"px"),J=D.lineHeight*this.session.getRowLength(H)+"px",ue.style.height!=J)&&(U=!0,ue.style.height=J),H++}if(U)for(;V<this.$lines.cells.length;){var ee=this.$lines.cells[V++];ee.element.style.top=this.$lines.computeLineTop(ee.row,D,this.session)+"px"}},R.prototype.scrollLines=function(D){var C=this.config;if(this.config=D,this.$lines.pageChanged(C,D))return this.update(D);this.$lines.moveContainer(D);var x=D.lastRow,P=C?C.lastRow:-1;if(!C||P<D.firstRow)return this.update(D);if(x<C.firstRow)return this.update(D);if(!C||C.lastRow<D.firstRow)return this.update(D);if(D.lastRow<C.firstRow)return this.update(D);if(C.firstRow<D.firstRow)for(var $=this.session.getFoldedRowCount(C.firstRow,D.firstRow-1);0<$;$--)this.$lines.shift();if(C.lastRow>D.lastRow)for($=this.session.getFoldedRowCount(D.lastRow+1,C.lastRow);0<$;$--)this.$lines.pop();D.firstRow<C.firstRow&&this.$lines.unshift(this.$renderLinesFragment(D,D.firstRow,C.firstRow-1)),D.lastRow>C.lastRow&&this.$lines.push(this.$renderLinesFragment(D,C.lastRow+1,D.lastRow)),this.$highlightIndentGuide()},R.prototype.$renderLinesFragment=function(D,C,x){for(var P=[],$=C,L=this.session.getNextFoldLine($
  532. position: absolute;
  533. background: rgba(128, 128, 128, 0.6);
  534. -moz-box-sizing: border-box;
  535. box-sizing: border-box;
  536. border: 1px solid #bbb;
  537. border-radius: 2px;
  538. z-index: 8;
  539. }
  540. .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
  541. position: absolute;
  542. z-index: 6;
  543. background: none;
  544. overflow: hidden!important;
  545. }
  546. .ace_editor>.ace_sb-v {
  547. z-index: 6;
  548. right: 0;
  549. top: 0;
  550. width: 12px;
  551. }
  552. .ace_editor>.ace_sb-v div {
  553. z-index: 8;
  554. right: 0;
  555. width: 100%;
  556. }
  557. .ace_editor>.ace_sb-h {
  558. bottom: 0;
  559. left: 0;
  560. height: 12px;
  561. }
  562. .ace_editor>.ace_sb-h div {
  563. bottom: 0;
  564. height: 100%;
  565. }
  566. .ace_editor>.ace_sb_grabbed {
  567. z-index: 8;
  568. background: #000;
  569. }`,"ace_scrollbar.css",!1),y.prototype.setVisible=function(P){this.element.style.display=P?"":"none",this.isVisible=P,this.coeff=1},y);function y(P,$){this.element=S.createElement("div"),this.element.className="ace_sb"+$,this.inner=S.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,P.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,I.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}A.implement(O.prototype,C),T(R,_=O),R.prototype.onMouseDown=function(P,$){var L,V,H,Q,U;if(P==="mousedown"&&I.getButton($)===0&&$.detail!==2)return $.target===this.inner?(L=this,V=$.clientY,H=$.clientY,Q=this.thumbTop,I.capture(this.inner,function(K){V=K.clientY},function(){clearInterval(U)}),U=setInterval(function(){var K;V!==void 0&&(K=L.scrollTopFromThumbTop(Q+V-H))!==L.scrollTop&&L._emit("scroll",{data:K})},20)):(P=$.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(P)})),I.preventDefault($)},R.prototype.getHeight=function(){return this.height},R.prototype.scrollTopFromThumbTop=function(P){return P=P*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight),(P>>=0)<0?P=0:P>this.pageHeight-this.viewHeight&&(P=this.pageHeight-this.viewHeight),P},R.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},R.prototype.setHeight=function(P){this.height=Math.max(0,P),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},R.prototype.setScrollHeight=function(P,$){(this.pageHeight!==P||$)&&(this.pageHeight=P,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},R.prototype.setScrollTop=function(P){this.scrollTop=P,this.thumbTop=(P=P<0?0:P)*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"};var _,A=R;function R(P,$){var L=_.call(this,P,"-v")||this;return L.scrollTop=0,L.scrollHeight=0,L.parent=P,L.width=L.VScrollWidth,L.renderer=$,L.inner.style.width=L.element.style.width=(L.width||15)+"px",L.$minWidth=0,L}A.prototype.setInnerHeight=A.prototype.setScrollHeight,T(x,D=O),x.prototype.onMouseDown=function(P,$){var L,V,H,Q,U;if(P==="mousedown"&&I.getButton($)===0&&$.detail!==2)return $.target===this.inner?(L=this,V=$.clientX,H=$.clientX,Q=this.thumbLeft,I.capture(this.inner,function(K){V=K.clientX},function(){clearInterval(U)}),U=setInterval(function(){var K;V!==void 0&&(K=L.scrollLeftFromThumbLeft(Q+V-H))!==L.scrollLeft&&L._emit("scroll",{data:K})},20)):(P=$.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(P)})),I.preventDefault($)},x.prototype.getHeight=function(){return this.isVisible?this.height:0},x.prototype.scrollLeftFromThumbLeft=function(P){return P=P*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth),(P>>=0)<0?P=0:P>this.pageWidth-this.viewWidth&&(P=this.pageWidth-this.viewWidth),P},x.prototype.setWidth=function(P){this.width=Math.max(0,P),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},x.prototype.setScrollWidth=function(P,$){(this.pageWidth!==P||$)&&(this.pageWidth=P,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},x.prototype.setScrollLeft=function(P){th
  570. .ace_br1 {border-top-left-radius : 3px;}
  571. .ace_br2 {border-top-right-radius : 3px;}
  572. .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
  573. .ace_br4 {border-bottom-right-radius: 3px;}
  574. .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
  575. .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
  576. .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
  577. .ace_br8 {border-bottom-left-radius : 3px;}
  578. .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
  579. .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
  580. .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
  581. .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  582. .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  583. .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  584. .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
  585. .ace_editor {
  586. position: relative;
  587. overflow: hidden;
  588. padding: 0;
  589. font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
  590. direction: ltr;
  591. text-align: left;
  592. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  593. }
  594. .ace_scroller {
  595. position: absolute;
  596. overflow: hidden;
  597. top: 0;
  598. bottom: 0;
  599. background-color: inherit;
  600. -ms-user-select: none;
  601. -moz-user-select: none;
  602. -webkit-user-select: none;
  603. user-select: none;
  604. cursor: text;
  605. }
  606. .ace_content {
  607. position: absolute;
  608. box-sizing: border-box;
  609. min-width: 100%;
  610. contain: style size layout;
  611. font-variant-ligatures: no-common-ligatures;
  612. }
  613. .ace_keyboard-focus:focus {
  614. box-shadow: inset 0 0 0 2px #5E9ED6;
  615. outline: none;
  616. }
  617. .ace_dragging .ace_scroller:before{
  618. position: absolute;
  619. top: 0;
  620. left: 0;
  621. right: 0;
  622. bottom: 0;
  623. content: '';
  624. background: rgba(250, 250, 250, 0.01);
  625. z-index: 1000;
  626. }
  627. .ace_dragging.ace_dark .ace_scroller:before{
  628. background: rgba(0, 0, 0, 0.01);
  629. }
  630. .ace_gutter {
  631. position: absolute;
  632. overflow : hidden;
  633. width: auto;
  634. top: 0;
  635. bottom: 0;
  636. left: 0;
  637. cursor: default;
  638. z-index: 4;
  639. -ms-user-select: none;
  640. -moz-user-select: none;
  641. -webkit-user-select: none;
  642. user-select: none;
  643. contain: style size layout;
  644. }
  645. .ace_gutter-active-line {
  646. position: absolute;
  647. left: 0;
  648. right: 0;
  649. }
  650. .ace_scroller.ace_scroll-left:after {
  651. content: "";
  652. position: absolute;
  653. top: 0;
  654. right: 0;
  655. bottom: 0;
  656. left: 0;
  657. box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
  658. pointer-events: none;
  659. }
  660. .ace_gutter-cell, .ace_gutter-cell_svg-icons {
  661. position: absolute;
  662. top: 0;
  663. left: 0;
  664. right: 0;
  665. padding-left: 19px;
  666. padding-right: 6px;
  667. background-repeat: no-repeat;
  668. }
  669. .ace_gutter-cell_svg-icons .ace_gutter_annotation {
  670. margin-left: -14px;
  671. float: left;
  672. }
  673. .ace_gutter-cell .ace_gutter_annotation {
  674. margin-left: -19px;
  675. float: left;
  676. }
  677. .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
  678. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
  679. background-repeat: no-repeat;
  680. background-position: 2px center;
  681. }
  682. .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
  683. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
  684. background-repeat: no-repeat;
  685. background-position: 2px center;
  686. }
  687. .ace_gutter-cell.ace_info, .ace_icon.ace_info {
  688. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
  689. background-repeat: no-repeat;
  690. background-position: 2px center;
  691. }
  692. .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
  693. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
  694. }
  695. .ace_icon_svg.ace_error {
  696. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
  697. background-color: crimson;
  698. }
  699. .ace_icon_svg.ace_warning {
  700. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
  701. background-color: darkorange;
  702. }
  703. .ace_icon_svg.ace_info {
  704. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
  705. background-color: royalblue;
  706. }
  707. .ace_icon_svg.ace_error_fold {
  708. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
  709. background-color: crimson;
  710. }
  711. .ace_icon_svg.ace_warning_fold {
  712. -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
  713. background-color: darkorange;
  714. }
  715. .ace_scrollbar {
  716. contain: strict;
  717. position: absolute;
  718. right: 0;
  719. bottom: 0;
  720. z-index: 6;
  721. }
  722. .ace_scrollbar-inner {
  723. position: absolute;
  724. cursor: text;
  725. left: 0;
  726. top: 0;
  727. }
  728. .ace_scrollbar-v{
  729. overflow-x: hidden;
  730. overflow-y: scroll;
  731. top: 0;
  732. }
  733. .ace_scrollbar-h {
  734. overflow-x: scroll;
  735. overflow-y: hidden;
  736. left: 0;
  737. }
  738. .ace_print-margin {
  739. position: absolute;
  740. height: 100%;
  741. }
  742. .ace_text-input {
  743. position: absolute;
  744. z-index: 0;
  745. width: 0.5em;
  746. height: 1em;
  747. opacity: 0;
  748. background: transparent;
  749. -moz-appearance: none;
  750. appearance: none;
  751. border: none;
  752. resize: none;
  753. outline: none;
  754. overflow: hidden;
  755. font: inherit;
  756. padding: 0 1px;
  757. margin: 0 -1px;
  758. contain: strict;
  759. -ms-user-select: text;
  760. -moz-user-select: text;
  761. -webkit-user-select: text;
  762. user-select: text;
  763. /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
  764. white-space: pre!important;
  765. }
  766. .ace_text-input.ace_composition {
  767. background: transparent;
  768. color: inherit;
  769. z-index: 1000;
  770. opacity: 1;
  771. }
  772. .ace_composition_placeholder { color: transparent }
  773. .ace_composition_marker {
  774. border-bottom: 1px solid;
  775. position: absolute;
  776. border-radius: 0;
  777. margin-top: 1px;
  778. }
  779. [ace_nocontext=true] {
  780. transform: none!important;
  781. filter: none!important;
  782. clip-path: none!important;
  783. mask : none!important;
  784. contain: none!important;
  785. perspective: none!important;
  786. mix-blend-mode: initial!important;
  787. z-index: auto;
  788. }
  789. .ace_layer {
  790. z-index: 1;
  791. position: absolute;
  792. overflow: hidden;
  793. /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
  794. word-wrap: normal;
  795. white-space: pre;
  796. height: 100%;
  797. width: 100%;
  798. box-sizing: border-box;
  799. /* setting pointer-events: auto; on node under the mouse, which changes
  800. during scroll, will break mouse wheel scrolling in Safari */
  801. pointer-events: none;
  802. }
  803. .ace_gutter-layer {
  804. position: relative;
  805. width: auto;
  806. text-align: right;
  807. pointer-events: auto;
  808. height: 1000000px;
  809. contain: style size layout;
  810. }
  811. .ace_text-layer {
  812. font: inherit !important;
  813. position: absolute;
  814. height: 1000000px;
  815. width: 1000000px;
  816. contain: style size layout;
  817. }
  818. .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
  819. contain: style size layout;
  820. position: absolute;
  821. top: 0;
  822. left: 0;
  823. right: 0;
  824. }
  825. .ace_hidpi .ace_text-layer,
  826. .ace_hidpi .ace_gutter-layer,
  827. .ace_hidpi .ace_content,
  828. .ace_hidpi .ace_gutter {
  829. contain: strict;
  830. }
  831. .ace_hidpi .ace_text-layer > .ace_line,
  832. .ace_hidpi .ace_text-layer > .ace_line_group {
  833. contain: strict;
  834. }
  835. .ace_cjk {
  836. display: inline-block;
  837. text-align: center;
  838. }
  839. .ace_cursor-layer {
  840. z-index: 4;
  841. }
  842. .ace_cursor {
  843. z-index: 4;
  844. position: absolute;
  845. box-sizing: border-box;
  846. border-left: 2px solid;
  847. /* workaround for smooth cursor repaintng whole screen in chrome */
  848. transform: translatez(0);
  849. }
  850. .ace_multiselect .ace_cursor {
  851. border-left-width: 1px;
  852. }
  853. .ace_slim-cursors .ace_cursor {
  854. border-left-width: 1px;
  855. }
  856. .ace_overwrite-cursors .ace_cursor {
  857. border-left-width: 0;
  858. border-bottom: 1px solid;
  859. }
  860. .ace_hidden-cursors .ace_cursor {
  861. opacity: 0.2;
  862. }
  863. .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
  864. opacity: 0;
  865. }
  866. .ace_smooth-blinking .ace_cursor {
  867. transition: opacity 0.18s;
  868. }
  869. .ace_animate-blinking .ace_cursor {
  870. animation-duration: 1000ms;
  871. animation-timing-function: step-end;
  872. animation-name: blink-ace-animate;
  873. animation-iteration-count: infinite;
  874. }
  875. .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
  876. animation-duration: 1000ms;
  877. animation-timing-function: ease-in-out;
  878. animation-name: blink-ace-animate-smooth;
  879. }
  880. @keyframes blink-ace-animate {
  881. from, to { opacity: 1; }
  882. 60% { opacity: 0; }
  883. }
  884. @keyframes blink-ace-animate-smooth {
  885. from, to { opacity: 1; }
  886. 45% { opacity: 1; }
  887. 60% { opacity: 0; }
  888. 85% { opacity: 0; }
  889. }
  890. .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
  891. position: absolute;
  892. z-index: 3;
  893. }
  894. .ace_marker-layer .ace_selection {
  895. position: absolute;
  896. z-index: 5;
  897. }
  898. .ace_marker-layer .ace_bracket {
  899. position: absolute;
  900. z-index: 6;
  901. }
  902. .ace_marker-layer .ace_error_bracket {
  903. position: absolute;
  904. border-bottom: 1px solid #DE5555;
  905. border-radius: 0;
  906. }
  907. .ace_marker-layer .ace_active-line {
  908. position: absolute;
  909. z-index: 2;
  910. }
  911. .ace_marker-layer .ace_selected-word {
  912. position: absolute;
  913. z-index: 4;
  914. box-sizing: border-box;
  915. }
  916. .ace_line .ace_fold {
  917. box-sizing: border-box;
  918. display: inline-block;
  919. height: 11px;
  920. margin-top: -2px;
  921. vertical-align: middle;
  922. background-image:
  923. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
  924. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
  925. background-repeat: no-repeat, repeat-x;
  926. background-position: center center, top left;
  927. color: transparent;
  928. border: 1px solid black;
  929. border-radius: 2px;
  930. cursor: pointer;
  931. pointer-events: auto;
  932. }
  933. .ace_dark .ace_fold {
  934. }
  935. .ace_fold:hover{
  936. background-image:
  937. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
  938. url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
  939. }
  940. .ace_tooltip {
  941. background-color: #f5f5f5;
  942. border: 1px solid gray;
  943. border-radius: 1px;
  944. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  945. color: black;
  946. max-width: 100%;
  947. padding: 3px 4px;
  948. position: fixed;
  949. z-index: 999999;
  950. box-sizing: border-box;
  951. cursor: default;
  952. white-space: pre;
  953. word-wrap: break-word;
  954. line-height: normal;
  955. font-style: normal;
  956. font-weight: normal;
  957. letter-spacing: normal;
  958. pointer-events: none;
  959. }
  960. .ace_tooltip.ace_dark {
  961. background-color: #636363;
  962. color: #fff;
  963. }
  964. .ace_tooltip:focus {
  965. outline: 1px solid #5E9ED6;
  966. }
  967. .ace_icon {
  968. display: inline-block;
  969. width: 18px;
  970. vertical-align: top;
  971. }
  972. .ace_icon_svg {
  973. display: inline-block;
  974. width: 12px;
  975. vertical-align: top;
  976. -webkit-mask-repeat: no-repeat;
  977. -webkit-mask-size: 12px;
  978. -webkit-mask-position: center;
  979. }
  980. .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
  981. padding-right: 13px;
  982. }
  983. .ace_fold-widget {
  984. box-sizing: border-box;
  985. margin: 0 -12px 0 1px;
  986. display: none;
  987. width: 11px;
  988. vertical-align: top;
  989. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
  990. background-repeat: no-repeat;
  991. background-position: center;
  992. border-radius: 3px;
  993. border: 1px solid transparent;
  994. cursor: pointer;
  995. }
  996. .ace_folding-enabled .ace_fold-widget {
  997. display: inline-block;
  998. }
  999. .ace_fold-widget.ace_end {
  1000. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
  1001. }
  1002. .ace_fold-widget.ace_closed {
  1003. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
  1004. }
  1005. .ace_fold-widget:hover {
  1006. border: 1px solid rgba(0, 0, 0, 0.3);
  1007. background-color: rgba(255, 255, 255, 0.2);
  1008. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  1009. }
  1010. .ace_fold-widget:active {
  1011. border: 1px solid rgba(0, 0, 0, 0.4);
  1012. background-color: rgba(0, 0, 0, 0.05);
  1013. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  1014. }
  1015. /**
  1016. * Dark version for fold widgets
  1017. */
  1018. .ace_dark .ace_fold-widget {
  1019. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
  1020. }
  1021. .ace_dark .ace_fold-widget.ace_end {
  1022. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
  1023. }
  1024. .ace_dark .ace_fold-widget.ace_closed {
  1025. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
  1026. }
  1027. .ace_dark .ace_fold-widget:hover {
  1028. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  1029. background-color: rgba(255, 255, 255, 0.1);
  1030. }
  1031. .ace_dark .ace_fold-widget:active {
  1032. box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
  1033. }
  1034. .ace_inline_button {
  1035. border: 1px solid lightgray;
  1036. display: inline-block;
  1037. margin: -1px 8px;
  1038. padding: 0 5px;
  1039. pointer-events: auto;
  1040. cursor: pointer;
  1041. }
  1042. .ace_inline_button:hover {
  1043. border-color: gray;
  1044. background: rgba(200,200,200,0.2);
  1045. display: inline-block;
  1046. pointer-events: auto;
  1047. }
  1048. .ace_fold-widget.ace_invalid {
  1049. background-color: #FFB4B4;
  1050. border-color: #DE5555;
  1051. }
  1052. .ace_fade-fold-widgets .ace_fold-widget {
  1053. transition: opacity 0.4s ease 0.05s;
  1054. opacity: 0;
  1055. }
  1056. .ace_fade-fold-widgets:hover .ace_fold-widget {
  1057. transition: opacity 0.05s ease 0.05s;
  1058. opacity:1;
  1059. }
  1060. .ace_underline {
  1061. text-decoration: underline;
  1062. }
  1063. .ace_bold {
  1064. font-weight: bold;
  1065. }
  1066. .ace_nobold .ace_bold {
  1067. font-weight: normal;
  1068. }
  1069. .ace_italic {
  1070. font-style: italic;
  1071. }
  1072. .ace_error-marker {
  1073. background-color: rgba(255, 0, 0,0.2);
  1074. position: absolute;
  1075. z-index: 9;
  1076. }
  1077. .ace_highlight-marker {
  1078. background-color: rgba(255, 255, 0,0.2);
  1079. position: absolute;
  1080. z-index: 8;
  1081. }
  1082. .ace_mobile-menu {
  1083. position: absolute;
  1084. line-height: 1.5;
  1085. border-radius: 4px;
  1086. -ms-user-select: none;
  1087. -moz-user-select: none;
  1088. -webkit-user-select: none;
  1089. user-select: none;
  1090. background: white;
  1091. box-shadow: 1px 3px 2px grey;
  1092. border: 1px solid #dcdcdc;
  1093. color: black;
  1094. }
  1095. .ace_dark > .ace_mobile-menu {
  1096. background: #333;
  1097. color: #ccc;
  1098. box-shadow: 1px 3px 2px grey;
  1099. border: 1px solid #444;
  1100. }
  1101. .ace_mobile-button {
  1102. padding: 2px;
  1103. cursor: pointer;
  1104. overflow: hidden;
  1105. }
  1106. .ace_mobile-button:hover {
  1107. background-color: #eee;
  1108. opacity:1;
  1109. }
  1110. .ace_mobile-button:active {
  1111. background-color: #ddd;
  1112. }
  1113. .ace_placeholder {
  1114. font-family: arial;
  1115. transform: scale(0.9);
  1116. transform-origin: left;
  1117. white-space: pre;
  1118. opacity: 0.7;
  1119. margin: 0 10px;
  1120. }
  1121. .ace_ghost_text {
  1122. opacity: 0.5;
  1123. font-style: italic;
  1124. white-space: pre;
  1125. }
  1126. .ace_screenreader-only {
  1127. position:absolute;
  1128. left:-10000px;
  1129. top:auto;
  1130. width:1px;
  1131. height:1px;
  1132. overflow:hidden;
  1133. }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(S,m,w){var k=S("../lib/dom"),T=S("../lib/oop"),S=S("../lib/event_emitter").EventEmitter,I=(O.prototype.$updateDecorators=function(y){var _=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light,A=(y&&(this.maxHeight=y.maxHeight,this.lineHeight=y.lineHeight,this.canvasHeight=y.height,(y.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight),this.canvas.getContext("2d")),R=this.renderer.session.$annotations;if(A.clearRect(0,0,this.canvas.width,this.canvas.height),R)for(var D={info:1,warning:2,error:3},C=(R.forEach(function(Q){Q.priority=D[Q.type]||null}),R=R.sort(function(Q,U){return Q.priority<U.priority?-1:Q.priority>U.priority?1:0}),this.renderer.session.$foldData),x=0;x<R.length;x++){var P,H=R[x].row,$=this.compensateFoldRows(H,C),L=Math.round((H-$)*this.lineHeight*this.heightRatio),V=Math.round((H-$)*this.lineHeight*this.heightRatio),H=Math.round(((H-$)*this.lineHeight+this.lineHeight)*this.heightRatio);H-V<this.minDecorationHeight&&((P=(V+H)/2|0)<this.halfMinDecorationHeight?P=this.halfMinDecorationHeight:P+this.halfMinDecorationHeight>this.canvasHeight&&(P=this.canvasHeight-this.halfMinDecorationHeight),V=Math.round(P-this.halfMinDecorationHeight),H=Math.round(P+this.halfMinDecorationHeight)),A.fillStyle=_[R[x].type]||null,A.fillRect(0,L,this.canvasWidth,H-V)}y=this.renderer.session.selection.getCursor(),y&&($=this.compensateFoldRows(y.row,C),L=Math.round((y.row-$)*this.lineHeight*this.heightRatio),A.fillStyle="rgba(0, 0, 0, 0.5)",A.fillRect(0,L,this.canvasWidth,2))},O.prototype.compensateFoldRows=function(y,_){var A=0;if(_&&0<_.length)for(var R=0;R<_.length;R++)y>_[R].start.row&&y<_[R].end.row?A+=y-_[R].start.row:y>=_[R].end.row&&(A+=_[R].end.row-_[R].start.row);return A},O);function O(y,_){this.canvas=k.createElement("canvas"),this.renderer=_,this.pixelRatio=1,this.maxHeight=_.layerConfig.maxHeight,this.lineHeight=_.layerConfig.lineHeight,this.canvasHeight=y.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=y.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},y.element.appendChild(this.canvas)}T.implement(I.prototype,S),m.Decorator=I}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(U,m,w){var k=U("./lib/oop"),T=U("./lib/dom"),S=U("./lib/lang"),I=U("./config"),O=U("./layer/gutter").Gutter,y=U("./layer/marker").Marker,_=U("./layer/text").Text,A=U("./layer/cursor").Cursor,R=U("./scrollbar").HScrollBar,D=U("./scrollbar").VScrollBar,C=U("./scrollbar_custom").HScrollBar,x=U("./scrollbar_custom").VScrollBar,P=U("./renderloop").RenderLoop,$=U("./layer/font_metrics").FontMetrics,L=U("./lib/event_emitter").EventEmitter,V=U("./css/editor-css"),H=U("./layer/decorators").Decorator,Q=U("./lib/useragent"),U=(T.importCssString(V,"ace_editor.css",!1),K.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight
  1134. `));this.addToken(N[0],"ghost_text",ee.row,ee.column),this.$ghostText={text:J,position:{row:ee.row,column:ee.column}},1<N.length&&(this.$ghostTextWidget={text:N.slice(1).join(`
  1135. `),row:ee.row,column:ee.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},K.prototype.removeGhostText=function(){var J;this.$ghostText&&(J=this.$ghostText.position,this.removeExtraToken(J.row,J.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null)},K.prototype.addToken=function(J,ue,ee,N){var q=this.session,G=(q.bgTokenizer.lines[ee]=null,{type:ue,value:J}),ne=q.getTokens(ee);if(N!=null&&ne.length)for(var le=0,oe=0;oe<ne.length;oe++){var ve=ne[oe];if(N<=(le+=ve.value.length)){var ae=ve.value.length-(le-N),de=ve.value.slice(0,ae),ae=ve.value.slice(ae);ne.splice(oe,1,{type:ve.type,value:de},G,{type:ve.type,value:ae});break}}else ne.push(G);this.updateLines(ee,ee)},K.prototype.removeExtraToken=function(J,ue){this.session.bgTokenizer.lines[J]=null,this.updateLines(J,J)},K.prototype.setTheme=function(J,ue){var ee,N=this;function q(G){if(N.$themeId!=J)return ue&&ue();if(!G||!G.cssClass)throw new Error("couldn't load module "+J+" or it didn't call define");G.$id&&(N.$themeId=G.$id),T.importCssString(G.cssText,G.cssClass,N.container),N.theme&&T.removeCssClass(N.container,N.theme.cssClass);var ne="padding"in G?G.padding:"padding"in(N.theme||{})?4:N.$padding;N.$padding&&ne!=N.$padding&&N.setPadding(ne),N.$theme=G.cssClass,N.theme=G,T.addCssClass(N.container,G.cssClass),T.setCssClass(N.container,"ace_dark",G.isDark),N.$size&&(N.$size.width=0,N.$updateSizeAsync()),N._dispatchEvent("themeLoaded",{theme:G}),ue&&ue()}this.$themeId=J,N._dispatchEvent("themeChange",{theme:J}),J&&typeof J!="string"?q(J):(ee=J||this.$options.theme.initialValue,I.loadModule(["theme",ee],q))},K.prototype.getTheme=function(){return this.$themeId},K.prototype.setStyle=function(J,ue){T.setCssClass(this.container,J,ue!==!1)},K.prototype.unsetStyle=function(J){T.removeCssClass(this.container,J)},K.prototype.setCursorStyle=function(J){T.setStyle(this.scroller.style,"cursor",J)},K.prototype.setMouseCursor=function(J){T.setStyle(this.scroller.style,"cursor",J)},K.prototype.attachToShadowRoot=function(){T.importCssString(V,"ace_editor.css",this.container)},K.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},K.prototype.$updateCustomScrollbar=function(J){var ue=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,J===!0?(this.scrollBarV=new x(this.container,this),this.scrollBarH=new C(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollTop(ee.data-ue.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollLeft(ee.data-ue.scrollMargin.left)}),this.$scrollDecorator=new H(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new D(this.container,this),this.scrollBarH=new R(this.container,this),this.scrollBarV.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollTop(ee.data-ue.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(ee){ue.$scrollAnimation||ue.session.setScrollLeft(ee.data-ue.scrollMargin.left)}))},K.prototype.$addResizeObserver=function(){var J;window.ResizeObserver&&!this.$resizeObserver&&((J=this).$resizeTimer=S.delayedCall(function(){J.destroyed||J.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var ee=N[0].contentRect.width,N=N[0].contentRect.height;1<Math.abs(J.$size.width-ee)||1<Math.abs(J.$size.height-N)?J.$resizeTimer.delay():J.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container))},K);function K(N,ue){var ee=this,N=(this.container=N||T.createElement("div"),T.addCssClass(this.container,"ace_editor"),T.HI_DPI&&T.addCssClas
  1136. `)+`
  1137. `),P||(L.start.column=0,L.end.column=ee[ee.length-1].length),this.selection.setRange(L)}},this.$reAlignText=function(C,x){var P,$,L,V=!0,H=!0;return C.map(function(K){var J=K.match(/(\s*)(.*?)(\s*)([=:].*)/);return J?(P==null?(P=J[1].length,$=J[2].length,L=J[3].length):(P+$+L!=J[1].length+J[2].length+J[3].length&&(H=!1),P!=J[1].length&&(V=!1),P>J[1].length&&(P=J[1].length),$<J[2].length&&($=J[2].length),L>J[3].length&&(L=J[3].length)),J):[K]}).map(x?U:V?H?function(K){return K[2]?Q(P+$-K[2].length)+K[2]+Q(L)+K[4].replace(/^([=:])\s+/,"$1 "):K[0]}:U:function(K){return K[2]?Q(P)+K[2]+Q(L)+K[4].replace(/^([=:])\s+/,"$1 "):K[0]});function Q(K){return y.stringRepeat(" ",K)}function U(K){return K[2]?Q(P)+K[2]+Q($-K[2].length+L)+K[4].replace(/^([=:])\s+/,"$1 "):K[0]}}}).call(R.prototype),m.onSessionChange=function(P){var x=P.session,P=(x&&!x.multiSelect&&(x.$selectionMarkers=[],x.selection.$initRangeList(),x.multiSelect=x.selection),this.multiSelect=x&&x.multiSelect,P.oldSession);P&&(P.multiSelect.off("addRange",this.$onAddRange),P.multiSelect.off("removeRange",this.$onRemoveRange),P.multiSelect.off("multiSelect",this.$onMultiSelect),P.multiSelect.off("singleSelect",this.$onSingleSelect),P.multiSelect.lead.off("change",this.$checkMultiselectChange),P.multiSelect.anchor.off("change",this.$checkMultiselectChange)),x&&(x.multiSelect.on("addRange",this.$onAddRange),x.multiSelect.on("removeRange",this.$onRemoveRange),x.multiSelect.on("multiSelect",this.$onMultiSelect),x.multiSelect.on("singleSelect",this.$onSingleSelect),x.multiSelect.lead.on("change",this.$checkMultiselectChange),x.multiSelect.anchor.on("change",this.$checkMultiselectChange)),x&&this.inMultiSelectMode!=x.selection.inMultiSelectMode&&(x.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},m.MultiSelect=D,v("./config").defineOptions(R.prototype,"editor",{enableMultiselect:{set:function(C){D(this),C?this.on("mousedown",I):this.off("mousedown",I)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(T,m,w){var k=T("../../range").Range,T=m.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(S,I,O){return S=S.getLine(O),this.foldingStartMarker.test(S)?"start":I=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(S)?"end":""},this.getFoldWidgetRange=function(S,I,O){return null},this.indentationBlock=function(S,I,O){var y=/\S/,_=S.getLine(I),A=_.search(y);if(A!=-1){for(var R,O=O||_.length,D=S.getLength(),_=I,C=I;++I<D;){var x=S.getLine(I).search(y);if(x!=-1){if(x<=A&&(x=S.getTokenAt(I,0),!x||x.type!=="string"))break;C=I}}return _<C?(R=S.getLine(C).length,new k(_,O,C,R)):void 0}},this.openingBracketBlock=function(S,I,O,y,_){if(O={row:O,column:y+1},y=S.$findClosingBracket(I,O,_),y)return(I=(I=S.foldWidgets[y.row])==null?S.getFoldWidget(y.row):I)=="start"&&y.row>O.row&&(y.row--,y.column=S.getLine(y.row).length),k.fromPoints(O,y)},this.closingBracketBlock=function(S,I,O,y,_){if(O={row:O,column:y},y=S.$findOpeningBracket(I,O),y)return y.column++,O.column--,k.fromPoints(y,O)}}).call(T.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(v,m,w){var k=v("../line_widgets").LineWidgets,T=v("../lib/dom"),S=v("../range").Range,I=v("../config").nls;function O(y,_,A){var R=y.getAnnotations().sort(S.comparePoints);if(R.length){var D=function(P,$,L){for(var V=0,H=P.length-1;V<=H;){var Q=V+H>>1,U=L($,P[Q]);if(0<U)V=1+Q;else{if(!(U<0))return Q;H=Q-1}}return-(V+1)}(R,{row:_,column:-1},S.comparePoints),C=((D=D<0?-D-1:D)>=R.length?D=0<A?0:R.length-1:D===0&&A<0&&(D=R.length-1),R[D]);if(C&&A){if(C.row===_){for(;(C=R[D+=A])&&C.row===_;);if(!C)return R.slice()}var x=[];for(_=C.row;x[A<0?"unshift":"push"](C),(C=R[D+=A])&&C.row==_;);return x.length&&x}}}m.showErrorMarker=function(y,$){var A,R=y.session,D=(R.widgetManager||(R.widgetManager=new k(R),R.widgetManager.attach(y)),y.getCu
  1138. .error_widget_wrapper {
  1139. background: inherit;
  1140. color: inherit;
  1141. border:none
  1142. }
  1143. .error_widget {
  1144. border-top: solid 2px;
  1145. border-bottom: solid 2px;
  1146. margin: 5px 0;
  1147. padding: 10px 40px;
  1148. white-space: pre-wrap;
  1149. }
  1150. .error_widget.ace_error, .error_widget_arrow.ace_error{
  1151. border-color: #ff5a5a
  1152. }
  1153. .error_widget.ace_warning, .error_widget_arrow.ace_warning{
  1154. border-color: #F1D817
  1155. }
  1156. .error_widget.ace_info, .error_widget_arrow.ace_info{
  1157. border-color: #5a5a5a
  1158. }
  1159. .error_widget.ace_ok, .error_widget_arrow.ace_ok{
  1160. border-color: #5aaa5a
  1161. }
  1162. .error_widget_arrow {
  1163. position: absolute;
  1164. border: solid 5px;
  1165. border-top-color: transparent!important;
  1166. border-right-color: transparent!important;
  1167. border-left-color: transparent!important;
  1168. top: -5px;
  1169. }
  1170. `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(v,m,w){v("./loader_build")(m);var k=v("./lib/dom"),T=v("./range").Range,S=v("./editor").Editor,I=v("./edit_session").EditSession,O=v("./undomanager").UndoManager,y=v("./virtual_renderer").VirtualRenderer;v("./worker/worker_client"),v("./keyboard/hash_handler"),v("./placeholder"),v("./multi_select"),v("./mode/folding/fold_mode"),v("./theme/textmate"),v("./ext/error_marker"),m.config=v("./config"),m.edit=function(_,A){if(typeof _=="string"){var R=_;if(!(_=document.getElementById(R)))throw new Error("ace.edit can't find div #"+R)}var D,C;return _&&_.env&&_.env.editor instanceof S?_.env.editor:(R="",_&&/input|textarea/i.test(_.tagName)?(R=(D=_).value,_=k.createElement("pre"),D.parentNode.replaceChild(_,D)):_&&(R=_.textContent,_.innerHTML=""),R=m.createEditSession(R),_=new S(new y(_),R,A),C={document:R,editor:_,onResize:_.resize.bind(_,null)},D&&(C.textarea=D),_.on("destroy",function(){C.editor.container.env=null}),_.container.env=_.env=C,_)},m.createEditSession=function(_,A){return _=new I(_,A),_.setUndoManager(new O),_},m.Range=T,m.Editor=S,m.EditSession=I,m.UndoManager=O,m.VirtualRenderer=y,m.version=m.config.version}),ace.require(["ace/ace"],function(v){v&&(v.config.init(!0),v.define=ace.define);var m,w=function(){return this}();for(m in(w=(w=w||typeof window>"u"?w:window)||typeof self>"u"?w:self).ace||(w.ace=v),v)v.hasOwnProperty(m)&&(w.ace[m]=v[m]);w.ace.default=w.ace,o&&(o.exports=w.ace)})},4317:function(o,a,s){o=s.nmd(o),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(l,u,c){var d=l("./lib/dom"),D=l("./lib/oop"),h=l("./lib/event_emitter").EventEmitter,f=l("./lib/lang"),g=l("./range").Range,b=l("./range_list").RangeList,v=l("./keyboard/hash_handler").HashHandler,m=l("./tokenizer").Tokenizer,w=l("./clipboard"),k={CURRENT_WORD:function(C){return C.session.getTextRange(C.session.getWordRange())},SELECTION:function(C,x,P){return C=C.session.getTextRange(),P?C.replace(/\n\r?([ \t]*\S)/g,`
  1171. `+P+"$1"):C},CURRENT_LINE:function(C){return C.session.getLine(C.getCursorPosition().row)},PREV_LINE:function(C){return C.session.getLine(C.getCursorPosition().row-1)},LINE_INDEX:function(C){return C.getCursorPosition().row},LINE_NUMBER:function(C){return C.getCursorPosition().row+1},SOFT_TABS:function(C){return C.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(C){return C.session.getTabSize()},CLIPBOARD:function(C){return w.getText&&w.getText()},FILENAME:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0]},FILENAME_BASE:function(C){return/[^/\\]*$/.exec(this.FILEPATH(C))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(C){return this.FILEPATH(C).replace(/[^/\\]*$/,"")},FILEPATH:function(C){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(C){return C=C.session.$mode||{},C.blockComment&&C.blockComment.start||""},BLOCK_COMMENT_END:function(C){return C=C.session.$mode||{},C.blockComment&&C.blockComment.end||""},LINE_COMMENT:function(C){return(C.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:T.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:T.bind(null,{year:"2-digit"}),CURRENT_MONTH:T.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:T.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:T.bind(null,{month:"short"}),CURRENT_DATE:T.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:T.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:T.bind(null,{weekday:"short"}),CURRENT_HOUR:T.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:T.bind(null,{minute:"2-digit"}),CURRENT_SECOND:T.bind(null,{second:"2-digit"})};function T(C){return C=new Date().toLocaleString("en-us",C),C.length==1?"0"+C:C}k.SELECTED_TEXT=k.SELECTION,I.prototype.getTokenizer=function(){return I.$tokenizer||this.createTokenizer()},I.prototype.createTokenizer=function(){function C($){return $=$.substr(1),/^\d+$/.test($)?[{tabstopId:parseInt($,10)}]:[{text:$}]}function x($){return"(?:[^\\\\"+$+"]|\\\\.)"}var P={regex:"/("+x("/")+"+)/",onMatch:function($,L,V){return V=V[0],V.fmtString=!0,V.guard=$.slice(1,-1),V.flag=""},next:"formatString"};return I.$tokenizer=new m({start:[{regex:/\\./,onMatch:function($,L,V){var H=$[1];return[$=H=="}"&&V.length||"`$\\".indexOf(H)!=-1?H:$]}},{regex:/}/,onMatch:function($,L,V){return[V.length?V.shift():$]}},{regex:/\$(?:\d+|\w+)/,onMatch:C},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function($,L,V){return $=C($.substr(1)),V.unshift($[0]),$},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+x("\\|")+"*\\|",onMatch:function($,L,V){return $=$.slice(1,-1).replace(/\\[,|\\]|,/g,function(H){return H.length==2?H[1]:"\0"}).split("\0").map(function(H){return{value:H}}),[(V[0].choices=$)[0]]},next:"start"},P,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function($,L,V){return V.length&&V[0].expectElse?(V[0].expectElse=!1,V[0].ifEnd={elseEnd:V[0]},[V[0].ifEnd]):":"}},{regex:/\\./,onMatch:function($,L,V){var H=$[1];return H=="}"&&V.length||"`$\\".indexOf(H)!=-1?$=H:H=="n"?$=`
  1172. `:H=="t"?$=" ":"ulULE".indexOf(H)!=-1&&($={changeCase:H,local:"a"<H}),[$]}},{regex:"/\\w*}",onMatch:function($,L,V){return V=V.shift(),V&&(V.flag=$.slice(1,-1)),this.next=V&&V.tabstopId?"start":"",[V||$]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function($,L,V){return[{text:$.slice(1)}]}},{regex:/\${\w+/,onMatch:function($,L,V){return $={text:$.slice(2)},V.unshift($),[$]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function($,L,V){return V=V.shift(),this.next=V&&V.tabstopId?"start":"",[V||$]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function($,L,V){return V[0].formatFunction=$.slice(2,-1),[V.shift()]},next:"formatString"},P,{regex:/:[\?\-+]?/,onMatch:function($,L,V){$[1]=="+"&&(V[0].ifEnd=V[0]),$[1]=="?"&&(V[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},I.prototype.tokenizeTmSnippet=function(C,x){return this.getTokenizer().getLineTokens(C,x).tokens.map(function(P){return P.value||P})},I.prototype.getVariableValue=function(C,x,P){var $;return/^\d+$/.test(x)?(this.variables.__||{})[x]||"":/^[A-Z]\d+$/.test(x)?(this.variables[x[0]+"__"]||{})[x.substr(1)]||"":(x=x.replace(/^TM_/,""),!this.variables.hasOwnProperty(x)||($=typeof($=this.variables[x])=="function"?this.variables[x](C,x,P):$)==null?"":$)},I.prototype.tmStrFormat=function(C,x,P){var $,L,V,H;return x.fmt?($=x.flag||"",L=x.guard,L=new RegExp(L,$.replace(/[^gim]/g,"")),V=typeof x.fmt=="string"?this.tokenizeTmSnippet(x.fmt,"formatString"):x.fmt,H=this,C.replace(L,function(){for(var Q=H.variables.__,U=(H.variables.__=[].slice.call(arguments),H.resolveVariables(V,P)),K="E",J=0;J<U.length;J++){var ue,ee=U[J];typeof ee=="object"?(U[J]="",ee.changeCase&&ee.local?(ue=U[J+1])&&typeof ue=="string"&&(ee.changeCase=="u"?U[J]=ue[0].toUpperCase():U[J]=ue[0].toLowerCase(),U[J+1]=ue.substr(1)):ee.changeCase&&(K=ee.changeCase)):K=="U"?U[J]=ee.toUpperCase():K=="L"&&(U[J]=ee.toLowerCase())}return H.variables.__=Q,U.join("")})):C},I.prototype.tmFormatFunction=function(C,x,P){return x.formatFunction=="upcase"?C.toUpperCase():x.formatFunction=="downcase"?C.toLowerCase():C},I.prototype.resolveVariables=function(C,x){for(var P=[],$="",L=!0,V=0;V<C.length;V++){var H,Q=C[V];typeof Q=="string"?(P.push(Q),Q==`
  1173. `?(L=!0,$=""):L&&($=/^\t*/.exec(Q)[0],L=/\S/.test(Q))):Q&&(L=!1,Q.fmtString&&((H=C.indexOf(Q,V+1))==-1&&(H=C.length),Q.fmt=C.slice(V+1,H),V=H),Q.text?(H=this.getVariableValue(x,Q.text,$)+"",Q.fmtString&&(H=this.tmStrFormat(H,Q,x)),(H=Q.formatFunction?this.tmFormatFunction(H,Q,x):H)&&!Q.ifEnd?(P.push(H),U(Q)):!H&&Q.ifEnd&&U(Q.ifEnd)):Q.elseEnd?U(Q.elseEnd):Q.tabstopId==null&&Q.changeCase==null||P.push(Q))}function U(K){K=C.indexOf(K,V+1),K!=-1&&(V=K)}return P},I.prototype.getDisplayTextForSnippet=function(C,x){return O.call(this,C,x).text},I.prototype.insertSnippetForSelection=function(Q,$,L){var $=O.call(this,Q,$,L=L===void 0?{}:L),L=Q.getSelectionRange(),V=Q.session.replace(L,$.text),H=new y(Q),Q=Q.inVirtualSelectionMode&&Q.selection.index;H.addTabstops($.tabstops,L.start,V,Q)},I.prototype.insertSnippet=function(C,x,P){P===void 0&&(P={});var $=this;if(C.inVirtualSelectionMode)return $.insertSnippetForSelection(C,x,P);C.forEachSelection(function(){$.insertSnippetForSelection(C,x,P)},null,{keepOrder:!0}),C.tabstopManager&&C.tabstopManager.tabNext()},I.prototype.$getScope=function(C){var x,P=C.session.$mode.$id||"";return(P=P.split("/").pop())!=="html"&&P!=="php"||(P!=="php"||C.session.$mode.inlinePhp||(P="html"),x=C.getCursorPosition(),(C=typeof(C=C.session.getState(x.row))=="object"?C[0]:C).substring&&(C.substring(0,3)=="js-"?P="javascript":C.substring(0,4)=="css-"?P="css":C.substring(0,4)=="php-"&&(P="php"))),P},I.prototype.getActiveScopes=function(x){var x=this.$getScope(x),P=[x],$=this.snippetMap;return $[x]&&$[x].includeScopes&&P.push.apply(P,$[x].includeScopes),P.push("_"),P},I.prototype.expandWithTab=function(C,x){var P=this,$=C.forEachSelection(function(){return P.expandSnippetForSelection(C,x)},null,{keepOrder:!0});return $&&C.tabstopManager&&C.tabstopManager.tabNext(),$},I.prototype.expandSnippetForSelection=function(C,x){var P,$=C.getCursorPosition(),L=C.session.getLine($.row),V=L.substring(0,$.column),H=L.substr($.column),Q=this.snippetMap;return this.getActiveScopes(C).some(function(U){return U=Q[U],!!(P=U?this.findMatchingSnippet(U,V,H):P)},this),!!P&&(x&&x.dryRun||(C.session.doc.removeInLine($.row,$.column-P.replaceBefore.length,$.column+P.replaceAfter.length),this.variables.M__=P.matchBefore,this.variables.T__=P.matchAfter,this.insertSnippetForSelection(C,P.content),this.variables.M__=this.variables.T__=null),!0)},I.prototype.findMatchingSnippet=function(C,x,P){for(var $=C.length;$--;){var L=C[$];if((!L.startRe||L.startRe.test(x))&&(!L.endRe||L.endRe.test(P))&&(L.startRe||L.endRe))return L.matchBefore=L.startRe?L.startRe.exec(x):[""],L.matchAfter=L.endRe?L.endRe.exec(P):[""],L.replaceBefore=L.triggerRe?L.triggerRe.exec(x)[0]:"",L.replaceAfter=L.endTriggerRe?L.endTriggerRe.exec(P)[0]:"",L}},I.prototype.register=function(C,x){var P=this.snippetMap,$=this.snippetNameMap,L=this;function V(U){return(U=U&&!/^\^?\(.*\)\$?$|^\\b$/.test(U)?"(?:"+U+")":U)||""}function H(U,K,J){return U=V(U),K=V(K),(U=K+U)&&U[U.length-1]!="$"&&(U+="$"),new RegExp(U)}function Q(U){U.scope||(U.scope=x||"_"),x=U.scope,P[x]||(P[x]=[],$[x]={});var K,J=$[x];U.name&&((K=J[U.name])&&L.unregister(K),J[U.name]=U),P[x].push(U),U.prefix&&(U.tabTrigger=U.prefix),!U.content&&U.body&&(U.content=Array.isArray(U.body)?U.body.join(`
  1174. `):U.body),U.tabTrigger&&!U.trigger&&(!U.guard&&/^\w/.test(U.tabTrigger)&&(U.guard="\\b"),U.trigger=f.escapeRegExp(U.tabTrigger)),(U.trigger||U.guard||U.endTrigger||U.endGuard)&&(U.startRe=H(U.trigger,U.guard),U.triggerRe=new RegExp(U.trigger),U.endRe=H(U.endTrigger,U.endGuard),U.endTriggerRe=new RegExp(U.endTrigger))}C=C||[],Array.isArray(C)?C.forEach(Q):Object.keys(C).forEach(function(U){Q(C[U])}),this._signal("registerSnippets",{scope:x})},I.prototype.unregister=function(C,x){var P=this.snippetMap,$=this.snippetNameMap;function L(V){var H=$[V.scope||x];H&&H[V.name]&&(delete H[V.name],0<=(V=(H=P[V.scope||x])&&H.indexOf(V)))&&H.splice(V,1)}C.content?L(C):Array.isArray(C)&&C.forEach(L)},I.prototype.parseSnippetFile=function(C){C=C.replace(/\r/g,"");for(var x,P,$,L=[],V={},H=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;P=H.exec(C);){if(P[1])try{V=JSON.parse(P[1]),L.push(V)}catch{}P[4]?(V.content=P[4].replace(/^\t/gm,""),L.push(V),V={}):(x=P[2],P=P[3],x=="regex"?(V.guard=($=/\/((?:[^\/\\]|\\.)*)|$/g).exec(P)[1],V.trigger=$.exec(P)[1],V.endTrigger=$.exec(P)[1],V.endGuard=$.exec(P)[1]):x=="snippet"?(V.tabTrigger=P.match(/^\S*/)[0],V.name||(V.name=P)):x&&(V[x]=P))}return L},I.prototype.getSnippetByName=function(C,x){var P,$=this.snippetNameMap;return this.getActiveScopes(x).some(function(L){return L=$[L],!!(P=L?L[C]:P)},this),P};var S=I;function I(){this.snippetMap={},this.snippetNameMap={},this.variables=k}D.implement(S.prototype,h);var O=function(C,x,P){P===void 0&&(P={});for(var $=C.getCursorPosition(),L=C.session.getLine($.row),V=C.session.getTabString(),H=L.match(/^\s*/)[0],Q=($.column<H.length&&(H=H.slice(0,$.column)),x=x.replace(/\r/g,""),this.tokenizeTmSnippet(x)),U=(Q=(Q=this.resolveVariables(Q,C)).map(function(oe){return oe!=`
  1175. `||P.excludeExtraIndent?typeof oe=="string"?oe.replace(/\t/g,V):oe:oe+H}),[]),K=(Q.forEach(function(oe,ve){var de,ae,be;typeof oe=="object"&&(be=oe.tabstopId,(de=U[be])||((de=U[be]=[]).index=be,de.value="",de.parents={}),de.indexOf(oe)===-1)&&(oe.choices&&!de.choices&&(de.choices=oe.choices),de.push(oe),(ae=Q.indexOf(oe,ve+1))!==-1)&&((be=Q.slice(ve+1,ae)).some(function(ie){return typeof ie=="object"})&&!de.value?de.value=be:!be.length||de.value&&typeof de.value=="string"||(de.value=be.join("")))}),U.forEach(function(oe){oe.length=0}),{}),J=0;J<Q.length;J++){var ue,ee,N,q=Q[J];typeof q=="object"&&(N=q.tabstopId,ue=U[N],ee=Q.indexOf(q,J+1),K[N]?K[N]===q&&(delete K[N],Object.keys(K).forEach(function(oe){ue.parents[oe]=!0})):(K[N]=q,typeof(N=ue.value)!="string"?N=function(oe){for(var ve=[],de=0;de<oe.length;de++){if(typeof(ae=oe[de])=="object"){if(K[ae.tabstopId])continue;var ae=ve[oe.lastIndexOf(ae,de-1)]||{tabstopId:ae.tabstopId}}ve[de]=ae}return ve}(N):q.fmt&&(N=this.tmStrFormat(N,q,C)),Q.splice.apply(Q,[J+1,Math.max(0,ee-J)].concat(N,q)),ue.indexOf(q)===-1&&ue.push(q)))}var G=0,ne=0,le="";return Q.forEach(function(oe){var ve;typeof oe=="string"?(1<(ve=oe.split(`
  1176. `)).length?(ne=ve[ve.length-1].length,G+=ve.length-1):ne+=oe.length,le+=oe):oe&&(oe.start?oe.end={row:G,column:ne}:oe.start={row:G,column:ne})}),{text:le,tabstops:U,tokens:Q}},y=(_.prototype.attach=function(C){this.$openTabstops=null,this.selectedTabstop=null,this.editor=C,this.session=C.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},_.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},_.prototype.onChange=function(C){for(var x=C.action[0]=="r",P=this.selectedTabstop||{},$=P.parents||{},L=this.tabstops.slice(),V=0;V<L.length;V++){var H=L[V],Q=H==P||$[H.index];if(H.rangeList.$bias=Q?0:1,C.action=="remove"&&H!==P)for(var Q=H.parents&&H.parents[P.index],U=(U=H.rangeList.pointIndex(C.start,Q))<0?-U-1:U+1,Q=H.rangeList.pointIndex(C.end,Q),K=H.rangeList.ranges.slice(U,Q<0?-Q-1:Q-1),J=0;J<K.length;J++)this.removeRange(K[J]);H.rangeList.$onChange(C)}var ue=this.session;this.$inChange||!x||ue.getLength()!=1||ue.getValue()||this.detach()},_.prototype.updateLinkedFields=function(){var C=this.selectedTabstop;if(C&&C.hasLinkedRanges&&C.firstNonLinked){this.$inChange=!0;for(var x=this.session,P=x.getTextRange(C.firstNonLinked),$=0;$<C.length;$++){var L,V=C[$];V.linked&&(L=V.original,L=u.snippetManager.tmStrFormat(P,L,this.editor),x.replace(V,L))}this.$inChange=!1}},_.prototype.onAfterExec=function(C){C.command&&!C.command.readOnly&&this.updateLinkedFields()},_.prototype.onChangeSelection=function(){if(this.editor){for(var C=this.editor.selection.lead,x=this.editor.selection.anchor,P=this.editor.selection.isEmpty(),$=0;$<this.ranges.length;$++)if(!this.ranges[$].linked){var L=this.ranges[$].contains(C.row,C.column),V=P||this.ranges[$].contains(x.row,x.column);if(L&&V)return}this.detach()}},_.prototype.onChangeSession=function(){this.detach()},_.prototype.tabNext=function(P){var x=this.tabstops.length,P=this.index+(P||1),P=Math.min(Math.max(P,1),x);this.selectTabstop(P=P==x?0:P),P===0&&this.detach()},_.prototype.selectTabstop=function(C){this.$openTabstops=null;var x=this.tabstops[this.index];if(x&&this.addTabstopMarkers(x),this.index=C,(x=this.tabstops[this.index])&&x.length){if(C=(this.selectedTabstop=x).firstNonLinked||x,x.choices&&(C.cursor=C.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(C);else{var P=this.editor.multiSelect;P.toSingleRange(C);for(var $=0;$<x.length;$++)x.hasLinkedRanges&&x[$].linked||P.addRange(x[$].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},_.prototype.addTabstops=function(C,x,P){var $=this.useLink||!this.editor.getOption("enableMultiselect");this.$openTabstops||(this.$openTabstops=[]),C[0]||(P=g.fromPoints(P,P),R(P.start,x),R(P.end,x),C[0]=[P],C[0].index=0);var L=[this.index+1,0],V=this.ranges;C.forEach(function(H,Q){for(var U=this.$openTabstops[Q]||H,K=0;K<H.length;K++){var J=H[K],ue=g.fromPoints(J.start,J.end||J.start);A(ue.start,x),A(ue.end,x),ue.original=J,ue.tabstop=U,V.push(ue),U!=H?U.unshift(ue):U[K]=ue,J.fmtString||U.firstNonLinked&&$?(ue.linked=!0,U.hasLinkedRanges=!0):U.firstNonLinked||(U.firstNonLinked=ue)}U.firstNonLinked||(U.hasLinkedRanges=!1),U===H&&(L.push(U),this.$openTabstops[Q]=U),this.addTabstopMarkers(U),U.rangeList=U.rangeList||new b,U.rangeList.$bias=0,U.rangeList.addList(U)},this),2<L.length&&(this.tabstops.length&&L.p
  1177. .ace_snippet-marker {
  1178. -moz-box-sizing: border-box;
  1179. box-sizing: border-box;
  1180. background: rgba(194, 193, 208, 0.09);
  1181. border: 1px dotted rgba(211, 208, 235, 0.62);
  1182. position: absolute;
  1183. }`,"snippets.css",!1),u.snippetManager=new S,l("./editor").Editor);(function(){this.insertSnippet=function(C,x){return u.snippetManager.insertSnippet(this,C,x)},this.expandSnippet=function(C){return u.snippetManager.expandWithTab(this,C)}}).call(D.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(l,u,c){function d(S){return"suggest-aria-id:".concat(S)}function h(S){return(S=new g(S)).$maxLines=4,(S=new b(S)).setHighlightActiveLine(!1),S.setShowPrintMargin(!1),S.renderer.setShowGutter(!1),S.renderer.setHighlightGutterLine(!1),S.$mouseHandler.$focusTimeout=0,S.$highlightTagPending=!0,S}function f(S){function I(){}function O(){C(-1)}var y,_=k.createElement("div"),A=new h(_),R=(S&&S.appendChild(_),_.style.display="none",A.renderer.content.style.cursor="default",A.renderer.setStyle("ace_autocomplete"),A.renderer.$textLayer.element.setAttribute("role","listbox"),A.renderer.$textLayer.element.setAttribute("aria-label",T("Autocomplete suggestions")),A.renderer.textarea.setAttribute("aria-hidden","true"),A.setOption("displayIndentGuides",!1),A.setOption("dragDelay",150),A.focus=I,A.$isFocused=!0,A.renderer.$cursorLayer.restartTimer=I,A.renderer.$cursorLayer.element.style.opacity=0,A.renderer.$maxLines=8,A.renderer.$keepTextAreaAtCursor=!1,A.setHighlightActiveLine(!1),A.session.highlight(""),A.session.$searchHighlight.clazz="ace_highlight-marker",A.on("mousedown",function(x){var P=x.getDocumentPosition();A.selection.moveToPosition(P),D.start.row=D.end.row=P.row,x.stop()}),new v(-1,0,-1,1/0)),D=new v(-1,0,-1,1/0),C=(D.id=A.session.addMarker(D,"ace_active-line","fullLine"),A.setSelectOnHover=function(x){x?R.id&&(A.session.removeMarker(R.id),R.id=null):R.id=A.session.addMarker(R,"ace_line-hover","fullLine")},A.setSelectOnHover(!1),A.on("mousemove",function(x){var P;y?y.x==x.x&&y.y==x.y||((y=x).scrollTop=A.renderer.scrollTop,A.isMouseOver=!0,P=y.getDocumentPosition().row,R.start.row!=P&&(R.id||A.setRow(P),C(P))):y=x}),A.renderer.on("beforeRender",function(){var x;y&&R.start.row!=-1&&(y.$pos=null,x=y.getDocumentPosition().row,R.id||A.setRow(x),C(x,!0))}),A.renderer.on("afterRender",function(){var x,P=A.getRow(),$=A.renderer.$textLayer,L=$.element.childNodes[P-$.config.firstRow],V=document.activeElement;L!==$.selectedNode&&$.selectedNode&&(k.removeCssClass($.selectedNode,"ace_selected"),V.removeAttribute("aria-activedescendant"),$.selectedNode.removeAttribute("id")),($.selectedNode=L)&&(k.addCssClass(L,"ace_selected"),x=d(P),L.id=x,$.element.setAttribute("aria-activedescendant",x),V.setAttribute("aria-activedescendant",x),L.setAttribute("role","option"),L.setAttribute("aria-label",A.getData(P).value),L.setAttribute("aria-setsize",A.data.length),L.setAttribute("aria-posinset",P+1),L.setAttribute("aria-describedby","doc-tooltip"))}),function(x,P){x!==R.start.row&&(R.start.row=R.end.row=x,P||A.session._emit("changeBackMarker"),A._emit("changeHoverMarker"))});return A.getHoveredRow=function(){return R.start.row},m.addListener(A.container,"mouseout",function(){A.isMouseOver=!1,O()}),A.on("hide",O),A.on("changeSelection",O),A.session.doc.getLength=function(){return A.data.length},A.session.doc.getLine=function(x){return x=A.data[x],typeof x=="string"?x:x&&x.value||""},(S=A.session.bgTokenizer).$tokenizeRow=function(x){var P=A.data[x],$=[];if(P){for(var L,V,H=(P=typeof P=="string"?{value:P}:P).caption||P.value||P.name,Q=H.toLowerCase(),U=(A.filterText||"").toLowerCase(),K=0,J=0,ue=0;ue<=U.length;ue++)ue!=J&&(P.matchMask&1<<ue||ue==U.length)&&(L=U.slice(J,ue),J=ue,(V=Q.indexOf(L,K))!=-1)&&(ee(H.slice(K,V),""),K=V+L.length,ee(H.slice(V,K),"completion-highlight"));ee(H.slice(K,H.length),""),$.push({type:"completion-spacer",value:" "}),P.meta&&$.push({type:"completion-meta",value:P.meta}),P.message&&$.push({type:"completion-message",value:P.message})}return $;function ee(N,q){N&&$.push({type:(P.className||"")+(q||""),value:N})}},S.$updateOnChange=I,S.start=I,A.session.$computeWidth=function(){return this
  1184. `,x.length),-1),A.data=x||[],A.setRow(0)},A.getData=function(x){return A.data[x]},A.getRow=function(){return D.start.row},A.setRow=function(x){x=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,x)),D.start.row!=x&&(A.selection.clearSelection(),D.start.row=D.end.row=x||0,A.session._emit("changeBackMarker"),A.moveCursorTo(x||0,0),A.isOpen)&&A._signal("select")},A.on("changeSelection",function(){A.isOpen&&A.setRow(A.selection.lead.row),A.renderer.scrollCursorIntoView()}),A.hide=function(){this.container.style.display="none",A.anchorPos=null,A.anchor=null,A.isOpen&&(A.isOpen=!1,this._signal("hide"))},A.tryShow=function(x,P,$,L){if(L||!A.isOpen||!A.anchorPos||!A.anchor||A.anchorPos.top!==x.top||A.anchorPos.left!==x.left||A.anchor!==$){var V=this.container,H=window.innerHeight,Q=window.innerWidth,U=this.renderer,K=U.$maxLines*P*1.4,J={top:0,bottom:0,left:0},ue=H-x.top-3*this.$borderSize-P,ee=x.top-3*this.$borderSize,P=(($=$||(ee<=ue||K<=ue?"bottom":"top"))==="top"?(J.bottom=x.top-this.$borderSize,J.top=J.bottom-K):$==="bottom"&&(J.top=x.top+P+this.$borderSize,J.bottom=J.top+K),0<=J.top&&J.bottom<=H);if(!L&&!P)return!1;U.$maxPixelHeight=P?null:$==="top"?ee:ue,$==="top"?(V.style.top="",V.style.bottom=H-J.bottom+"px",A.isTopdown=!1):(V.style.top=J.top+"px",V.style.bottom="",A.isTopdown=!0),V.style.display="",K=x.left,K+V.offsetWidth>Q&&(K=Q-V.offsetWidth),V.style.left=K+"px",V.style.right="",A.isOpen||(A.isOpen=!0,this._signal("show"),y=null),A.anchorPos=x,A.anchor=$}return!0},A.show=function(x,P,$){this.tryShow(x,P,$?"bottom":void 0,!0)},A.goTo=function(x){var P=this.getRow(),$=this.session.getLength()-1;switch(x){case"up":P=P<=0?$:P-1;break;case"down":P=$<=P?-1:P+1;break;case"start":P=0;break;case"end":P=$}this.setRow(P)},A.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},A.$imageSize=0,A.$borderSize=1,A}var g=l("../virtual_renderer").VirtualRenderer,b=l("../editor").Editor,v=l("../range").Range,m=l("../lib/event"),w=l("../lib/lang"),k=l("../lib/dom"),T=l("../config").nls;k.importCssString(`
  1185. .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
  1186. background-color: #CAD6FA;
  1187. z-index: 1;
  1188. }
  1189. .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
  1190. background-color: #3a674e;
  1191. }
  1192. .ace_editor.ace_autocomplete .ace_line-hover {
  1193. border: 1px solid #abbffe;
  1194. margin-top: -1px;
  1195. background: rgba(233,233,253,0.4);
  1196. position: absolute;
  1197. z-index: 2;
  1198. }
  1199. .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
  1200. border: 1px solid rgba(109, 150, 13, 0.8);
  1201. background: rgba(58, 103, 78, 0.62);
  1202. }
  1203. .ace_completion-meta {
  1204. opacity: 0.5;
  1205. margin-left: 0.9em;
  1206. }
  1207. .ace_completion-message {
  1208. margin-left: 0.9em;
  1209. color: blue;
  1210. }
  1211. .ace_editor.ace_autocomplete .ace_completion-highlight{
  1212. color: #2d69c7;
  1213. }
  1214. .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
  1215. color: #93ca12;
  1216. }
  1217. .ace_editor.ace_autocomplete {
  1218. width: 300px;
  1219. z-index: 200000;
  1220. border: 1px lightgray solid;
  1221. position: fixed;
  1222. box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  1223. line-height: 1.4;
  1224. background: #fefefe;
  1225. color: #111;
  1226. }
  1227. .ace_dark.ace_editor.ace_autocomplete {
  1228. border: 1px #484747 solid;
  1229. box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
  1230. line-height: 1.4;
  1231. background: #25282c;
  1232. color: #c1c1c1;
  1233. }
  1234. .ace_autocomplete .ace_text-layer {
  1235. width: calc(100% - 8px);
  1236. }
  1237. .ace_autocomplete .ace_line {
  1238. display: flex;
  1239. align-items: center;
  1240. }
  1241. .ace_autocomplete .ace_line > * {
  1242. min-width: 0;
  1243. flex: 0 0 auto;
  1244. }
  1245. .ace_autocomplete .ace_line .ace_ {
  1246. flex: 0 1 auto;
  1247. overflow: hidden;
  1248. white-space: nowrap;
  1249. text-overflow: ellipsis;
  1250. }
  1251. .ace_autocomplete .ace_completion-spacer {
  1252. flex: 1;
  1253. }
  1254. .ace_autocomplete.ace_loading:after {
  1255. content: "";
  1256. position: absolute;
  1257. top: 0px;
  1258. height: 2px;
  1259. width: 8%;
  1260. background: blue;
  1261. z-index: 100;
  1262. animation: ace_progress 3s infinite linear;
  1263. animation-delay: 300ms;
  1264. transform: translateX(-100%) scaleX(1);
  1265. }
  1266. @keyframes ace_progress {
  1267. 0% { transform: translateX(-100%) scaleX(1) }
  1268. 50% { transform: translateX(625%) scaleX(2) }
  1269. 100% { transform: translateX(1500%) scaleX(3) }
  1270. }
  1271. @media (prefers-reduced-motion) {
  1272. .ace_autocomplete.ace_loading:after {
  1273. transform: translateX(625%) scaleX(2);
  1274. animation: none;
  1275. }
  1276. }
  1277. `,"autocompletion.css",!1),u.AcePopup=f,u.$singleLineEditor=h,u.getAriaId=d}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(l,u,c){function d(h){this.editor=h,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}d.prototype.setScreenReaderContent=function(h){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),f=this.popup.renderer.$textLayer,g=f.element.childNodes[g-f.config.firstRow];if(g){for(var b="doc-tooltip ",v=0;v<this._lines.length;v++)b+="ace-inline-screenreader-line-".concat(v," ");g.setAttribute("aria-describedby",b)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=h.split(/\r\n|\r|\n/),h=this.createCodeBlock(),this.screenReaderDiv.appendChild(h)},d.prototype.destroy=function(){this.screenReaderDiv.remove()},d.prototype.createCodeBlock=function(){var h=document.createElement("pre");h.setAttribute("id","ace-inline-screenreader");for(var f=0;f<this._lines.length;f++){var g=document.createElement("code"),b=(g.setAttribute("id","ace-inline-screenreader-line-".concat(f)),document.createTextNode(this._lines[f]));g.appendChild(b),h.appendChild(g)}return h},u.AceInlineScreenReader=d}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(l,u,c){var d=l("../snippets").snippetManager,h=l("./inline_screenreader").AceInlineScreenReader;function f(){this.editor=null}f.prototype.show=function(g,b,v){if(v=v||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!b)return!1;this.inlineScreenReader||(this.inlineScreenReader=new h(g));var m=b.snippet?d.getDisplayTextForSnippet(g,b.snippet):b.value;return!(b.hideInlinePreview||!m||!m.startsWith(v)||(this.editor=g,this.inlineScreenReader.setScreenReaderContent(m),(m=m.slice(v.length))===""?g.removeGhostText():g.setGhostText(m),0))},f.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},f.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},f.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},u.AceInline=f}),ace.define("ace/autocomplete/util",["require","exports","module"],function(l,u,c){u.parForEach=function(h,f,g){var b=0,v=h.length;v===0&&g();for(var m=0;m<v;m++)f(h[m],function(w,k){++b===v&&g(w,k)})};var d=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;u.retrievePrecedingIdentifier=function(h,f,g){g=g||d;for(var b=[],v=f-1;0<=v&&g.test(h[v]);v--)b.push(h[v]);return b.reverse().join("")},u.retrieveFollowingIdentifier=function(h,f,g){g=g||d;for(var b=[],v=f;v<h.length&&g.test(h[v]);v++)b.push(h[v]);return b},u.getCompletionPrefix=function(h){var f,g=h.getCursorPosition(),b=h.session.getLine(g.row);return h.completers.forEach((function(v){v.identifierRegexps&&v.identifierRegexps.forEach((function(m){!f&&m&&(f=this.retrievePrecedingIdentifier(b,g.column,m))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(b,g.column)},u.triggerAutocomplete=function(h){var f=h.getCursorPosition(),g=h.session.getLine(f.row)[f.column===0?0:f.column-1];return h.completers.some(function(b){if(b.triggerCharacters&&Array.isArray(b.triggerCharacters))return b.triggerCharacters.includes(g)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event"],function(l,u,c){function d(D,C){C.completer&&C.completer.destroy()}var h=l("./keyboard/hash_handler").HashHandler,f=l("./autocomplete/popup").AcePopup,g=l("./autocomplete/inline").AceInline,b=l("./autocompl
  1278. /* ------------------------------------------------------------------------------------------
  1279. * Editor Search Form
  1280. * --------------------------------------------------------------------------------------- */
  1281. .ace_search {
  1282. background-color: #ddd;
  1283. color: #666;
  1284. border: 1px solid #cbcbcb;
  1285. border-top: 0 none;
  1286. overflow: hidden;
  1287. margin: 0;
  1288. padding: 4px 6px 0 4px;
  1289. position: absolute;
  1290. top: 0;
  1291. z-index: 99;
  1292. white-space: normal;
  1293. }
  1294. .ace_search.left {
  1295. border-left: 0 none;
  1296. border-radius: 0px 0px 5px 0px;
  1297. left: 0;
  1298. }
  1299. .ace_search.right {
  1300. border-radius: 0px 0px 0px 5px;
  1301. border-right: 0 none;
  1302. right: 0;
  1303. }
  1304. .ace_search_form, .ace_replace_form {
  1305. margin: 0 20px 4px 0;
  1306. overflow: hidden;
  1307. line-height: 1.9;
  1308. }
  1309. .ace_replace_form {
  1310. margin-right: 0;
  1311. }
  1312. .ace_search_form.ace_nomatch {
  1313. outline: 1px solid red;
  1314. }
  1315. .ace_search_field {
  1316. border-radius: 3px 0 0 3px;
  1317. background-color: white;
  1318. color: black;
  1319. border: 1px solid #cbcbcb;
  1320. border-right: 0 none;
  1321. outline: 0;
  1322. padding: 0;
  1323. font-size: inherit;
  1324. margin: 0;
  1325. line-height: inherit;
  1326. padding: 0 6px;
  1327. min-width: 17em;
  1328. vertical-align: top;
  1329. min-height: 1.8em;
  1330. box-sizing: content-box;
  1331. }
  1332. .ace_searchbtn {
  1333. border: 1px solid #cbcbcb;
  1334. line-height: inherit;
  1335. display: inline-block;
  1336. padding: 0 6px;
  1337. background: #fff;
  1338. border-right: 0 none;
  1339. border-left: 1px solid #dcdcdc;
  1340. cursor: pointer;
  1341. margin: 0;
  1342. position: relative;
  1343. color: #666;
  1344. }
  1345. .ace_searchbtn:last-child {
  1346. border-radius: 0 3px 3px 0;
  1347. border-right: 1px solid #cbcbcb;
  1348. }
  1349. .ace_searchbtn:disabled {
  1350. background: none;
  1351. cursor: default;
  1352. }
  1353. .ace_searchbtn:hover {
  1354. background-color: #eef1f6;
  1355. }
  1356. .ace_searchbtn.prev, .ace_searchbtn.next {
  1357. padding: 0px 0.7em
  1358. }
  1359. .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
  1360. content: "";
  1361. border: solid 2px #888;
  1362. width: 0.5em;
  1363. height: 0.5em;
  1364. border-width: 2px 0 0 2px;
  1365. display:inline-block;
  1366. transform: rotate(-45deg);
  1367. }
  1368. .ace_searchbtn.next:after {
  1369. border-width: 0 2px 2px 0 ;
  1370. }
  1371. .ace_searchbtn_close {
  1372. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
  1373. border-radius: 50%;
  1374. border: 0 none;
  1375. color: #656565;
  1376. cursor: pointer;
  1377. font: 16px/16px Arial;
  1378. padding: 0;
  1379. height: 14px;
  1380. width: 14px;
  1381. top: 9px;
  1382. right: 7px;
  1383. position: absolute;
  1384. }
  1385. .ace_searchbtn_close:hover {
  1386. background-color: #656565;
  1387. background-position: 50% 100%;
  1388. color: white;
  1389. }
  1390. .ace_button {
  1391. margin-left: 2px;
  1392. cursor: pointer;
  1393. -webkit-user-select: none;
  1394. -moz-user-select: none;
  1395. -o-user-select: none;
  1396. -ms-user-select: none;
  1397. user-select: none;
  1398. overflow: hidden;
  1399. opacity: 0.7;
  1400. border: 1px solid rgba(100,100,100,0.23);
  1401. padding: 1px;
  1402. box-sizing: border-box!important;
  1403. color: black;
  1404. }
  1405. .ace_button:hover {
  1406. background-color: #eee;
  1407. opacity:1;
  1408. }
  1409. .ace_button:active {
  1410. background-color: #ddd;
  1411. }
  1412. .ace_button.checked {
  1413. border-color: #3399ff;
  1414. opacity:1;
  1415. }
  1416. .ace_search_options{
  1417. margin-bottom: 3px;
  1418. text-align: right;
  1419. -webkit-user-select: none;
  1420. -moz-user-select: none;
  1421. -o-user-select: none;
  1422. -ms-user-select: none;
  1423. user-select: none;
  1424. clear: both;
  1425. }
  1426. .ace_search_counter {
  1427. float: left;
  1428. font-family: arial;
  1429. padding: 0 8px;
  1430. }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(l,u,c){var d=l("../lib/dom"),h=l("../lib/lang"),f=l("../lib/event"),g=l("./searchbox-css"),b=l("../keyboard/hash_handler").HashHandler,v=l("../lib/keys"),m=l("../config").nls,w=(d.importCssString(g,"ace_searchbox",!1),k.prototype.setEditor=function(T){T.searchBox=this,T.renderer.scroller.appendChild(this.element),this.editor=T},k.prototype.setSession=function(T){this.searchRange=null,this.$syncOptions(!0)},k.prototype.$initElements=function(T){this.searchBox=T.querySelector(".ace_search_form"),this.replaceBox=T.querySelector(".ace_replace_form"),this.searchOption=T.querySelector("[action=searchInSelection]"),this.replaceOption=T.querySelector("[action=toggleReplace]"),this.regExpOption=T.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=T.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=T.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=T.querySelector(".ace_search_counter")},k.prototype.$init=function(){var T=this.element,S=(this.$initElements(T),this);f.addListener(T,"mousedown",function(I){setTimeout(function(){S.activeInput.focus()},0),f.stopPropagation(I)}),f.addListener(T,"click",function(I){var O=(I.target||I.srcElement).getAttribute("action");O&&S[O]?S[O]():S.$searchBarKb.commands[O]&&S.$searchBarKb.commands[O].exec(S),f.stopPropagation(I)}),f.addCommandKeyListener(T,function(I,O,y){y=v.keyCodeToString(y),O=S.$searchBarKb.findKeyCommand(O,y),O&&O.exec&&(O.exec(S),f.stopEvent(I))}),this.$onChange=h.delayedCall(function(){S.find(!1,!1)}),f.addListener(this.searchInput,"input",function(){S.$onChange.schedule(20)}),f.addListener(this.searchInput,"focus",function(){S.activeInput=S.searchInput,S.searchInput.value&&S.highlight()}),f.addListener(this.replaceInput,"focus",function(){S.activeInput=S.replaceInput,S.searchInput.value&&S.highlight()})},k.prototype.setSearchRange=function(T){(this.searchRange=T)?this.searchRangeMarker=this.editor.session.addMarker(T,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},k.prototype.$syncOptions=function(T){d.setCssClass(this.replaceOption,"checked",this.searchRange),d.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",d.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),d.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),d.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var S=this.editor.getReadOnly();this.replaceOption.style.display=S?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!S?"":"none",this.find(!1,!1,T)},k.prototype.highlight=function(T){this.editor.session.highlight(T||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},k.prototype.find=function(T,S,I){T=!this.editor.find(this.searchInput.value,{skipCurrent:T,backwards:S,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:I,range:this.searchRange})&&this.searchInput.value,d.setCssClass(this.searchBox,"ace_nomatch",T),this.editor._emit("findSearchBox",{match:!T}),this.highlight(),this.updateCounter()},k.prototype.updateCounter=function(){var T=this.editor,S=T.$search.$options.re,I=0,O=0;if(S){var y,_,A=this.searchRange?T.session.getTextRange(this.searchRange):T.getValue(),R=T.session.doc.positionToIndex(T.selection.anchor);for(this.searchRange&&(R-=T.session.doc.positionToIndex(this.searchRange.start)),S.lastIndex=0;(_=S.exec(A))&&((y=_.index)<=R&&O++,!(999<++I))&&(_[0]||(S.lastIndex=y+=1,!(y>=A.length))););}this.searchCounter.textContent=m("$0 of $1",[O,999<I?"999+":I])},k.prototy
  1431. `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},l=97,u=(a.parse=function(S,I,O){var y={},_=0,A=0,R=0,D=O&&O.bigint&&typeof BigInt<"u";return{data:C("",!0),pointers:y};function C(N,q){x(),Q(N,"value");var G,ne=L();switch(ne){case"t":$("rue"),G=!0;break;case"f":$("alse"),G=!1;break;case"n":$("ull"),G=null;break;case'"':G=P();break;case"[":G=function(le){x();var oe=[],ve=0;if(L()!="]")for(V();;){oe.push(C(le+"/"+ve)),x();var de=L();if(de=="]")break;de!=","&&ue(),x(),ve++}return oe}(N);break;case"{":G=function(le){x();var oe={};if(L()!="}")for(V();;){var ae=K(),ve=(L()!='"'&&ue(),P()),de=le+"/"+T(ve),ae=(U(de,"key",ae),Q(de,"keyEnd"),x(),L()!=":"&&ue(),x(),oe[ve]=C(de),x(),L());if(ae=="}")break;ae!=","&&ue(),x()}return oe}(N);break;default:V(),0<="-0123456789".indexOf(ne)?G=function(){var le="",oe=!0;S[R]=="-"&&(le+=L()),le+=(S[R]=="0"?L:H)(),S[R]=="."&&(le+=L()+H(),oe=!1),S[R]!="e"&&S[R]!="E"||(le+=L(),S[R]!="+"&&S[R]!="-"||(le+=L()),le+=H(),oe=!1);var ve=+le;return D&&oe&&(ve>Number.MAX_SAFE_INTEGER||ve<Number.MIN_SAFE_INTEGER)?BigInt(le):ve}():J()}return Q(N,"valueEnd"),x(),q&&R<S.length&&J(),G}function x(){e:for(;R<S.length;){switch(S[R]){case" ":A++;break;case" ":A+=4;break;case"\r":A=0;break;case`
  1432. `:A=0,_++;break;default:break e}R++}}function P(){for(var N,q="";(N=L())!='"';)N=="\\"?(N=L())in s?q+=s[N]:N=="u"?q+=function(){for(var G=4,ne=0;G--;){ne<<=4;var le=L().toLowerCase();"a"<=le&&le<="f"?ne+=le.charCodeAt()-l+10:"0"<=le&&le<="9"?ne+=+le:ue()}return String.fromCharCode(ne)}():ue():q+=N;return q}function $(N){for(var q=0;q<N.length;q++)L()!==N[q]&&ue()}function L(){ee();var N=S[R];return R++,A++,N}function V(){R--,A--}function H(){for(var N="";"0"<=S[R]&&S[R]<="9";)N+=L();if(N.length)return N;ee(),J()}function Q(N,q){U(N,q,K())}function U(N,q,G){y[N]=y[N]||{},y[N][q]=G}function K(){return{line:_,column:A,pos:R}}function J(){throw new SyntaxError("Unexpected token "+S[R]+" in JSON at position "+R)}function ue(){V(),J()}function ee(){if(R>=S.length)throw new SyntaxError("Unexpected end of JSON input")}},a.stringify=function(S,I,O){if(c(S)){var y=0;switch(typeof(A=typeof O=="object"?O.space:O)){case"number":var _=10<A?10:A<0?0:Math.floor(A),A=_&&J(_," "),R=_,D=_;break;case"string":A=A.slice(0,10);for(var C=D=R=0;C<A.length;C++){switch(A[C]){case" ":D++;break;case" ":D+=4;break;case"\r":D=0;break;case`
  1433. `:D=0,y++;break;default:throw new Error("whitespace characters not allowed in JSON")}R++}break;default:A=void 0}var x="",P={},$=0,L=0,V=0,H=O&&O.es6&&typeof Map=="function";return function ue(ee,N,q){switch(K(q,"value"),typeof ee){case"number":case"bigint":case"boolean":Q(""+ee);break;case"string":Q(m(ee));break;case"object":ee===null?Q("null"):typeof ee.toJSON=="function"?Q(m(ee.toJSON())):Array.isArray(ee)?G():H?ee.constructor.BYTES_PER_ELEMENT?G():ee instanceof Map?le():ee instanceof Set?le(!0):ne():ne()}K(q,"valueEnd");function G(){if(ee.length){Q("[");for(var oe=N+1,ve=0;ve<ee.length;ve++){ve&&Q(","),U(oe);var de=c(ee[ve])?ee[ve]:null,ae=q+"/"+ve;ue(de,oe,ae)}U(N),Q("]")}else Q("[]")}function ne(){var oe=Object.keys(ee);if(oe.length){Q("{");for(var ve=N+1,de=0;de<oe.length;de++){var ae,be=oe[de],ie=ee[be];c(ie)&&(de&&Q(","),ae=q+"/"+T(be),U(ve),K(ae,"key"),Q(m(be)),K(ae,"keyEnd"),Q(":"),A&&Q(" "),ue(ie,ve,ae))}U(N),Q("}")}else Q("{}")}function le(oe){if(ee.size){Q("{");for(var ve=N+1,de=!0,ae=ee.entries(),be=ae.next();!be.done;){var ie,pe=be.value,ce=pe[0],pe=!!oe||pe[1];c(pe)&&(de||Q(","),de=!1,ie=q+"/"+T(ce),U(ve),K(ie,"key"),Q(m(ce)),K(ie,"keyEnd"),Q(":"),A&&Q(" "),ue(pe,ve,ie)),be=ae.next()}U(N),Q("}")}else Q("{}")}}(S,0,""),{json:x,pointers:P}}function Q(ue){L+=ue.length,V+=ue.length,x+=ue}function U(ue){if(A){for(x+=`
  1434. `+J(ue,A),$++,L=0;ue--;)y?($+=y,L=D):L+=D,V+=R;V+=1}}function K(ue,ee){P[ue]=P[ue]||{},P[ue][ee]={line:$,column:L,pos:V}}function J(ue,ee){return Array(ue+1).join(ee)}},["number","bigint","boolean","string","object"]);function c(S){return 0<=u.indexOf(typeof S)}var d=/"|\\/g,h=/[\b]/g,f=/\f/g,g=/\n/g,b=/\r/g,v=/\t/g;function m(S){return'"'+(S=S.replace(d,"\\$&").replace(f,"\\f").replace(h,"\\b").replace(g,"\\n").replace(b,"\\r").replace(v,"\\t"))+'"'}var w=/~/g,k=/\//g;function T(S){return S.replace(w,"~0").replace(k,"~1")}},483:function(o,a){var s,l;(function(){l=[],(l=typeof(s=function(){function u(O){return typeof Node=="object"?O instanceof Node:O&&typeof O=="object"&&typeof O.nodeType=="number"}function c(O){return typeof O=="string"}function d(){var O=[];return{watch:O.push.bind(O),trigger:function(y,_){for(var A=!0,R={detail:_,preventDefault:function(){A=!1}},D=0;D<O.length;D++)O[D](y,R);return A}}}function h(O){return window.getComputedStyle(O).display==="none"}function f(O){this.elem=O}function g(O,y){return f.make(O("parent")).clazz("pico-overlay").clazz(O("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(O("overlayStyles",{opacity:.5,background:"#000"})).onClick(function(){O("overlayClose",!0)&&y()})}f.make=function(O,y){typeof O=="string"&&(O=document.querySelector(O));var _=document.createElement(y||"div");return(O||document.body).appendChild(_),new f(_)},f.prototype={child:function(O){return f.make(this.elem,O)},stylize:function(O){O=O||{},typeof O.opacity<"u"&&(O.filter="alpha(opacity="+O.opacity*100+")");for(var y in O)O.hasOwnProperty(y)&&(this.elem.style[y]=O[y]);return this},clazz:function(O){return this.elem.className+=" "+O,this},html:function(O){return u(O)?this.elem.appendChild(O):this.elem.innerHTML=O,this},onClick:function(O){return this.elem.addEventListener("click",O),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(O,y){return y!==void 0&&this.elem.setAttribute(O,y),this},anyAncestor:function(O){for(var y=this.elem;y;){if(O(new f(y)))return!0;y=y.parentNode}return!1},isVisible:function(){return!h(this.elem)}};var b=1;function v(O,y){var _=O("width","auto");typeof _=="number"&&(_=""+_+"px");var A=O("modalId","pico-"+b++),R=f.make(O("parent")).clazz("pico-content").clazz(O("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:_,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(O("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(O("content")).attr("id",A).attr("role","dialog").attr("aria-labelledby",O("ariaLabelledBy")).attr("aria-describedby",O("ariaDescribedBy",A)).onClick(function(D){var C=new f(D.target).anyAncestor(function(x){return/\bpico-close\b/.test(x.elem.className)});C&&y()});return R}function m(O,y){if(y("closeButton",!0))return O.child("button").html(y("closeHtml","&#xD7;")).clazz("pico-close").clazz(y("closeClass","")).stylize(y("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",y("close-label","Close"))}function w(O){return function(){return O().elem}}var k=d(),T=d();function S(O,y){function _(x,P){var $=x.msMatchesSelector||x.webkitMatchesSelector||x.matches;return $.call(x,P)}function A(x){return h(x)||_(x,":disabled")||x.hasAttribute("contenteditable")?!1:x.hasAttribute("tabindex")||_(x,"input,select,textarea,button,a[href],area[href],iframe")}function R(x){for(var P=x.getElementsByTagName("*"),$=0;$<P.length;$++)if(A(P[$]))return P[$]}function D(x){for(var P=x.getElementsByTagName("*
  1435. linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,v=360,m="keydown",w="mousedown",k="focusin";function T(_,A){return(A||document).querySelector(_)}function S(_){_.preventDefault(),_.stopPropagation()}function I(_,A,R,D,C){_.add(A,m,function(x){R.indexOf(x.key)>=0&&D(x)})}var O=function(){function _(A){a(this,_),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new h,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(A)}return s(_,[{key:"setOptions",value:function(A){var R=this;if(!A)return;var D=this.settings;function C(L,V,H){for(var Q in L)V[Q]=L[Q]}if(A instanceof HTMLElement)D.parent=A;else{D.parent&&A.parent&&D.parent!==A.parent&&(this._events.remove(D.parent),this._popupInited=!1),C(A,D),A.onChange&&(this.onChange=A.onChange),A.onDone&&(this.onDone=A.onDone),A.onOpen&&(this.onOpen=A.onOpen),A.onClose&&(this.onClose=A.onClose);var x=A.color||A.colour;x&&this._setColor(x)}var P=D.parent;if(P&&D.popup&&!this._popupInited){var $=function(L){return R.openHandler(L)};this._events.add(P,"click",$),I(this._events,P,[" ","Spacebar","Enter"],$),this._popupInited=!0}else A.parent&&!D.popup&&this.show()}},{key:"openHandler",value:function(A){if(this.show()){A&&A.preventDefault(),this.settings.parent.style.pointerEvents="none";var R=A&&A.type===m?this._domEdit:this.domElement;setTimeout(function(){return R.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(A){var R=A&&A.type,D=!1;if(!A)D=!0;else if(R===w||R===k){var C=(this.__containedEvent||0)+100;A.timeStamp>C&&(D=!0)}else S(A),D=!0;D&&this.hide()&&(this.settings.parent.style.pointerEvents="",R!==w&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(A,R){this.closeHandler(),this.setOptions(A),R&&this.openHandler()}},{key:"setColor",value:function(A,R){this._setColor(A,{silent:R})}},{key:"_setColor",value:function(A,R){if(typeof A=="string"&&(A=A.trim()),!!A){R=R||{};var D=void 0;try{D=new d(A)}catch(x){if(R.failSilently)return;throw x}if(!this.settings.alpha){var C=D.hsla;C[3]=1,D.hsla=C}this.colour=this.color=D,this._setHSLA(null,null,null,null,R)}}},{key:"setColour",value:function(A,R){this.setColor(A,R)}},{key:"show",value:function(){var A=this.settings.parent;if(!A)return!1;if(this.domElement){var R=this._toggleDOM(!0);return this._setPosition(),R}var D=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',C=f(D);return this.domElement=C,this._domH=T(".picker_hue",C),this._domSL=T(".picker_sl",C),this._domA=T(".picker_alpha",C),this._domEdit=T(".picker_editor input",C),this._domSample=T(".picker_sample",C),this._domOkay=T(".picker_done button",C),this._domCancel=T(".picker_cancel button",C),C.classList.add("layout_"+this.settings.layout),this.settings.alpha||C.classList.add("no_alpha"),this.settings.editor||C.classList.add("no_editor"),this.settings.cancelButton||C.classList.add("no_cancel"),this._ifPopup(function(){return C.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var A=this,R=this,D=this.domElement,C=this._events;function x(L,V,H){C.add(L,V,H)}x(D,"click",function(L){return L.preventD
  1436. `,r:"\r",t:" "};function ht(Pe){var Ze=0,dt="";if(!Ee())throw new b("Unexpected end of json string",Pe.length);var Mt=_t(K);if(Mt&&Xe(),Ye(Pe[Ze])&&/[,\n][ \t\r]*$/.test(dt)){Mt||(dt=Te(dt,","));for(var He=!0,wt=!0;wt;)He?He=!1:_t(K)||(dt=Te(dt,",")),wt=Ee();wt||(dt=Ue(dt,",")),dt=`[
  1437. `.concat(dt,`
  1438. ]`)}else Mt&&(dt=Ue(dt,","));if(Ze>=Pe.length)return dt;throw new b("Unexpected character "+JSON.stringify(Pe[Ze]),Ze);function Ee(){Xe();var Ke=function(){if(Pe.charCodeAt(Ze)!==k)return!1;dt+="{",Ze++,Xe();for(var et=!0;Ze<Pe.length&&Pe.charCodeAt(Ze)!==T;){if(et?et=!1:(_t(K)||(dt=Te(dt,",")),Xe()),!(ln()||hr())){Pe.charCodeAt(Ze)===T||Pe.charCodeAt(Ze)===k||Pe.charCodeAt(Ze)===I||Pe.charCodeAt(Ze)===S||Pe[Ze]===void 0?dt=Ue(dt,","):function(){throw new b("Object key expected",Ze)}();break}Xe();var $t=_t(ue);$t||(Ye(Pe[Ze])?dt=Te(dt,":"):ze()),Ee()||($t?function(){throw new b("Object value expected",Ze)}:ze)()}return Pe.charCodeAt(Ze)===T?(dt+="}",Ze++):dt=Te(dt,"}"),!0}()||function(){if(Pe.charCodeAt(Ze)!==S)return!1;dt+="[",Ze++,Xe();for(var et=!0;Ze<Pe.length&&Pe.charCodeAt(Ze)!==I;)if(et?et=!1:_t(K)||(dt=Te(dt,",")),!Ee()){dt=Ue(dt,",");break}return Pe.charCodeAt(Ze)===I?(dt+="]",Ze++):dt=Te(dt,"]"),!0}()||ln()||function(){var et=Ze;if(Pe.charCodeAt(Ze)===L&&(Ze++,Wr(et)))return!0;if(Pe.charCodeAt(Ze)===H)Ze++;else if(function($t){return Q<=$t&&$t<=U}(Pe.charCodeAt(Ze)))for(Ze++;Ae(Pe.charCodeAt(Ze));)Ze++;if(Pe.charCodeAt(Ze)===J){if(Ze++,Wr(et))return!0;for(;Ae(Pe.charCodeAt(Ze));)Ze++}if(Pe.charCodeAt(Ze)===ne||Pe.charCodeAt(Ze)===G){if(Ze++,Pe.charCodeAt(Ze)!==L&&Pe.charCodeAt(Ze)!==$||Ze++,Wr(et))return!0;for(;Ae(Pe.charCodeAt(Ze));)Ze++}return et<Ze?(dt+=Pe.slice(et,Ze),!0):!1}()||kn("true","true")||kn("false","false")||kn("null","null")||kn("True","true")||kn("False","false")||kn("None","null")||hr();return Xe(),Ke}function Xe(){for(ct();function(){if(Pe.charCodeAt(Ze)===m&&Pe.charCodeAt(Ze+1)===w){for(;Ze<Pe.length&&!function(Ke,et){return Ke[et]==="*"&&Ke[et+1]==="/"}(Pe,Ze);)Ze++;Ze+=2}else{if(Pe.charCodeAt(Ze)!==m||Pe.charCodeAt(Ze+1)!==m)return!1;for(;Ze<Pe.length&&Pe.charCodeAt(Ze)!==A;)Ze++}return!0}()&&ct(););}function ct(){for(var Ke,et,$t="";(Ke=nt(Pe.charCodeAt(Ze)))||(et=Pe.charCodeAt(Ze))===ve||de<=et&&et<=ae||et===be||et===ie||et===ce;)$t+=Ke?Pe[Ze]:" ",Ze++;return 0<$t.length&&(dt+=$t,!0)}function _t(Ke){return Pe.charCodeAt(Ze)===Ke&&(dt+=Pe[Ze],Ze++,!0)}function Qt(){return Ke=v,Pe.charCodeAt(Ze)===Ke&&(Ze++,!0);var Ke}function ln(){var Ke,et=Pe.charCodeAt(Ze)===v;if(et&&(Ze++,et=!0),st(Pe.charCodeAt(Ze))){var $t=je(Pe.charCodeAt(Ze))?je:Me(Pe.charCodeAt(Ze))?Me:Le;for(dt+='"',Ze++;Ze<Pe.length&&!$t(Pe.charCodeAt(Ze));){if(Pe.charCodeAt(Ze)===v){var Lt=Pe[Ze+1];if(At[Lt]!==void 0)dt+=Pe.slice(Ze,Ze+2),Ze+=2;else if(Lt==="u"){if(!(me(Pe.charCodeAt(Ze+2))&&me(Pe.charCodeAt(Ze+3))&&me(Pe.charCodeAt(Ze+4))&&me(Pe.charCodeAt(Ze+5)))){qe=Mn=void 0;for(var Mn=Ze,qe=Mn+2;/\w/.test(Pe[qe]);)qe++;throw Mn=Pe.slice(Mn,qe),new b('Invalid unicode character "'.concat(Mn,'"'),Ze)}dt+=Pe.slice(Ze,Ze+6),Ze+=6}else dt+=Lt,Ze+=2}else{if(Mn=Pe[Ze],Lt=Pe.charCodeAt(Ze),Lt===P&&Pe.charCodeAt(Ze-1)!==v)dt+="\\"+Mn;else if((Ke=Lt)===A||Ke===D||Ke===R||Ke===C||Ke===x)dt+=bt[Mn];else{if(!(32<=(Ke=Lt)&&Ke<=1114111))throw new b("Invalid character "+JSON.stringify(Mn),Ze);dt+=Mn}Ze++}et&&Qt()}for(st(Pe.charCodeAt(Ze))?(Pe.charCodeAt(Ze),dt+='"',Ze++):dt+='"',Xe();Pe.charCodeAt(Ze)===$;){Ze++,Xe();var kt=(dt=Ue(dt,'"',!0)).length;ln(),dt=function(Ut,nn,Cn){return Ut.substring(0,nn)+Ut.substring(nn+Cn)}(dt,kt,1)}return!0}return!1}function kn(Ke,et){return Pe.slice(Ze,Ze+Ke.length)===Ke&&(dt+=et,Ze+=Ke.length,!0)}function hr(){for(var Ke,et=Ze;Ze<Pe.length&&(Ke=Pe[Ze],!(Be.test(Ke)||Ke&&st(Ke.charCodeAt(0))));)Ze++;if(et<Ze){if(Pe.charCodeAt(Ze)===O)Ze++,Ee(),Pe.charCodeAt(Ze)===y&&(Ze++,Pe.charCodeAt(Ze)===ee)&&Ze++;else{for(;nt(Pe.charCodeAt(Ze-1))&&0<Ze;)Ze--;et=Pe.slice(et,Ze),dt+=JSON.stringify(et)}return!0}}function pr(Ke){if(!Ae(Pe.charCodeAt(Ze)))throw Ke=Pe.slice(Ke,Ze),new b("Invalid number '".concat(Ke,"', expecting a digit ").concat(Pe[Ze]?"but got '".concat(Pe[Ze],"'"):"but reached end of input"),2)}function Wr(Ke){if(Ze>=Pe.length)return dt+=Pe.slice(Ke,Ze)+"0",1;pr(Ke)}function ze(){throw new b("Colon expected",Ze)}}},894:function(o){o.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#"
  1439. `),n=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="code-block">${e}</span>${n.join("")}`},Cat=(e,t)=>{if(!e||!t)return 0;const n=e==null?void 0:e.getBoundingClientRect();if(t===document.documentElement)return n.top-t.clientTop;const r=t==null?void 0:t.getBoundingClientRect();return n.top-r.top},Oat=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,Hie=(e,t)=>{const n=r=>{const i=e.parentElement||document.body,o=i.offsetWidth,a=i.offsetHeight,{clientWidth:s}=document.documentElement,{clientHeight:l}=document.documentElement,u=r.offsetX,c=r.offsetY,d=f=>{let g=f.x+document.body.scrollLeft-document.body.clientLeft-u,b=f.y+document.body.scrollTop-document.body.clientTop-c;g=g<1?1:g<s-o-1?g:s-o-1,b=b<1?1:b<l-a-1?b:l-a-1,t?t(g,b):(i.style.left=`${g}px`,i.style.top=`${b}px`)};document.addEventListener("mousemove",d);const h=()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)};document.addEventListener("mouseup",h)};return e.addEventListener("mousedown",n),()=>{e.removeEventListener("mousedown",n)}},Hc=(e,t="")=>{const n=document.getElementById(e.id),r=e.onload;e.onload=null;const i=function(o){typeof r=="function"&&r.bind(this)(o),e.removeEventListener("load",i)};n?t!==""&&(n.addEventListener("load",i),Reflect.get(window,t)&&n.dispatchEvent(new Event("load"))):(e.addEventListener("load",i),document.head.appendChild(e))},xat=FL((e,t,n)=>{const r=document.getElementById(e);r&&r.setAttribute(t,n)},10),Sat=ft({props:{name:{type:String,default:""}},setup(e){return()=>ha.iconfontType==="svg"?xe("svg",{class:`${gt}-icon`,"aria-hidden":"true"},[xe("use",{"xlink:href":`#${gt}-icon-${e.name}`},null)]):xe("i",{class:`${gt}-iconfont ${gt}-icon-${e.name}`},null)}}),xi=ft({props:{name:{type:String,default:""}},setup(e){const t=Ht("customIcon");return()=>{const n=t.value[e.name];return typeof n=="object"?typeof n.component=="object"?Yn(n.component,n.props):xe("span",{innerHTML:n.component},null):xe(Sat,{name:e.name},null)}}}),Aat={title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}}},XC=ft({name:"MdModal",props:Aat,emits:["onClose"],setup(e,t){const n=Re(e.visible),r=Re([`${gt}-modal`]),i=Re(),o=Re();let a=()=>{};const s=Br({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),l=Oe(()=>e.isFullscreen?{width:"100%",height:"100%"}:{width:e.width,height:e.height});return _n(()=>{a=Hie(o.value,(u,c)=>{s.initPos.left=u+"px",s.initPos.top=c+"px"})}),Mo(()=>{a()}),Pt(()=>e.isFullscreen,u=>{u?a():a=Hie(o.value,(c,d)=>{s.initPos.left=c+"px",s.initPos.top=d+"px"})}),Pt(()=>e.visible,u=>{u?(r.value.push("zoom-in"),n.value=u,mn(()=>{const c=i.value.offsetWidth/2,d=i.value.offsetHeight/2,h=document.documentElement.clientWidth/2,f=document.documentElement.clientHeight/2;s.initPos.left=h-c+"px",s.initPos.top=f-d+"px"}),setTimeout(()=>{r.value=r.value.filter(c=>c!=="zoom-in")},140)):(r.value.push("zoom-out"),setTimeout(()=>{r.value=r.value.filter(c=>c!=="zoom-out"),n.value=u},130))}),()=>{const u=Kc({ctx:t}),c=Kc({props:e,ctx:t},"title");return xe("div",{style:{display:n.value?"block":"none"}},[xe("div",{class:`${gt}-modal-mask`,onClick:()=>{e.onClose?e.onClose():t.emit("onClose")}},null),xe("div",{class:r.value,style:{...s.initPos,...l.value},ref:i},[xe("div",{class:`${gt}-modal-header`,ref:o},[c||""]),xe("div",{class:`${gt}-modal-body`},[u]),xe("div",{class:`${gt}-modal-func`},[e.showAdjust&&xe("div",{class:`${gt}-modal-adjust`,onClick:d=>{d.stopPropagation(),e.isFullscreen?s.initPos=s.historyPos:(s.historyPos=s.initPos,s.initPos={left:"0",top:"0"}),e.onAdjust(!e.isFullscreen)}},[xe(xi,{name:e.isFullscreen?"suoxiao":"fangda"},null)]),xe("div",{class:`${gt}-modal-close`,onClick:d=>{d.stopPropagation(),e.onClose?e.onClose():t.emit("onClose")}},[xe(xi,{name:"close"},null)])])])])}}});XC.in
  1440. `){[t,n]=PO(this,t,n);let i="";for(let o=0,a=0;o<=n&&a<this.text.length;a++){let s=this.text[a],l=o+s.length;o>t&&a&&(i+=r),t<l&&n>o&&(i+=s.slice(Math.max(0,t-o),n-o)),o=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let o of t)r.push(o),i+=o.length+1,r.length==32&&(n.push(new Ia(r,i)),r=[],i=-1);return i>-1&&n.push(new Ia(r,i)),n}}class pp extends Ti{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,i);i=s+1,r=l+1}}decompose(t,n,r,i){for(let o=0,a=0;a<=n&&o<this.children.length;o++){let s=this.children[o],l=a+s.length;if(t<=l&&n>=a){let u=i&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if([t,n]=PO(this,t,n),r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(t>=o&&n<=s){let l=a.replace(t-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new pp(c,this.length-(n-t)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
  1441. `){[t,n]=PO(this,t,n);let i="";for(let o=0,a=0;o<this.children.length&&a<=n;o++){let s=this.children[o],l=a+s.length;a>t&&o&&(i+=r),t<l&&n>a&&(i+=s.sliceString(t-a,n-a,r)),a=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof pp))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=t.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let f of t)r+=f.lines;if(r<32){let f=[];for(let g of t)g.flatten(f);return new Ia(f,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function d(f){let g;if(f.lines>o&&f instanceof pp)for(let b of f.children)d(b);else f.lines>a&&(l>a||!l)?(h(),s.push(f)):f instanceof Ia&&l&&(g=c[c.length-1])instanceof Ia&&f.lines+g.lines<=32?(l+=f.lines,u+=f.length+1,c[c.length-1]=new Ia(g.text.concat(f.text),g.length+1+f.length)):(l+f.lines>i&&h(),l+=f.lines,u+=f.length+1,c.push(f))}function h(){l!=0&&(s.push(c.length==1?c[0]:pp.from(c,u)),u=-1,l=c.length=0)}for(let f of t)d(f);return h(),s.length==1?s[0]:new pp(s,n)}}Ti.empty=new Ia([""],0);function Iat(e){let t=-1;for(let n of e)t+=n.length+1;return t}function _3(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o<e.length&&i<=r;o++){let s=e[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(t[t.length-1]+=s,a=!1):t.push(s)),i=l+1}return t}function zie(e,t,n){return _3(e,[""],t,n)}class Rk{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof Ia?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,s=i instanceof Ia?i.text.length:i.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
  1442. `,this;t--}else if(i instanceof Ia){let l=i.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[a+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Ia?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Ixe{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new Rk(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class kxe{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Ti.prototype[Symbol.iterator]=function(){return this.iter()},Rk.prototype[Symbol.iterator]=Ixe.prototype[Symbol.iterator]=kxe.prototype[Symbol.iterator]=function(){return this});let kat=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function PO(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let YC="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;e<YC.length;e++)YC[e]+=YC[e-1];function Eat(e){for(let t=1;t<YC.length;t+=2)if(YC[t]>e)return YC[t-1]<=e;return!1}function Zie(e){return e>=127462&&e<=127487}const Gie=8205;function $l(e,t,n=!0,r=!0){return(n?Exe:_at)(e,t,r)}function Exe(e,t,n){if(t==e.length)return t;t&&_xe(e.charCodeAt(t))&&Txe(e.charCodeAt(t-1))&&t--;let r=jd(e,t);for(t+=fv(r);t<e.length;){let i=jd(e,t);if(r==Gie||i==Gie||n&&Eat(i))t+=fv(i),r=i;else if(Zie(i)){let o=0,a=t-2;for(;a>=0&&Zie(jd(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function _at(e,t,n){for(;t>0;){let r=Exe(e,t-2,n);if(r<t)return r;t--}return 0}function _xe(e){return e>=56320&&e<57344}function Txe(e){return e>=55296&&e<56320}function jd(e,t){let n=e.charCod
  1443. `}get readOnly(){return this.facet(Nxe)}phrase(t,...n){for(let r of this.facet(Ai.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let o=+(i||1);return!o||o>n.length?r:n[o-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let o of this.facet($xe))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return jat(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=$l(n,a,!1);if(o(n.slice(l,a))!=ig.Word)break;a=l}for(;s<i;){let l=$l(n,s);if(o(n.slice(s,l))!=ig.Word)break;s=l}return a==s?null:tn.range(a+r,s+r)}}Ai.allowMultipleSelections=qW;Ai.tabSize=ir.define({combine:e=>e.length?e[0]:4});Ai.lineSeparator=Mxe;Ai.readOnly=Nxe;Ai.phrases=ir.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Ai.languageData=$xe;Ai.changeFilter=Lxe;Ai.transactionFilter=Bxe;Ai.transactionExtender=Fxe;$v.reconfigure=oo.define();function jL(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class Jb{eq(t){return this==t}range(t,n=t){return tH.create(t,n,this)}}Jb.prototype.startSide=Jb.prototype.endSide=0;Jb.prototype.point=!1;Jb.prototype.mapMode=Rl.TrackDel;let tH=class Wxe{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Wxe(t,n,r)}};function nH(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class vX{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);o<a;o++)if(i(this.from[o]+t,this.to[o]+t,this.value[o])===!1)return!1}map(t,n){let r=[],i=[],o=[],a=-1,s=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],c=this.from[l]+t,d=this.to[l]+t,h,f;if(c==d){let g=n.mapPos(c,u.startSide,u.mapMode);if(g==null||(h=f=g,u.startSide!=u.endSide&&(f=n.mapPos(c,u.endSide),f<h)))continue}else if(h=n.mapPos(c,u.startSide),f=n.mapPos(d,u.endSide),h>f||h==f&&u.startSide>0&&u.endSide<=0)continue;(f-h||u.endSide-u.startSide)<0||(a<0&&(a=h),u.point&&(s=Math.max(s,f-h)),r.push(u),i.push(h-a),o.push(f-a))}return{mapped:r.length?new vX(i,o,r,s):null,pos:a}}}class Do{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Do(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(nH)),this.isEmpty)return n.length?Do.of(n):this;let s=new Hxe(this,null,-1).goto(0),l=0,u=[],c=new DO;for(;s.value||l<n.length;)if(l<n.length&&(s.from-n[l].from||s.startSide-n[l].value.startSide)>=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(s.chunkIndex)<n[l].from)&&(!a||i>this.chunkEnd(s.chunkIndex)||o<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||i>s.to||o<s.from||a(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||u.push(tH.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?Do.empty:this.nextLayer.update({add:u,filter:a
  1444. `)}static newName(){let t=Jie[qie]||1;return Jie[qie]=t+1,iH+t.toString(36)}static mount(t,n,r){let i=t[oH],o=r&&r.nonce;i?o&&i.setNonce(o):i=new zat(t,o),i.mount(Array.isArray(n)?n:[n])}}let eoe=new Map;class zat{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=eoe.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[oH]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],eoe.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let o=t.head||t;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],t[oH]=this}mount(t){let n=this.sheet,r=0,i=0;for(let o=0;o<t.length;o++){let a=t[o],s=this.modules.indexOf(a);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),s==-1){if(this.modules.splice(i++,0,a),n)for(let l=0;l<a.rules.length;l++)n.insertRule(a.rules[l],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=a.rules.length,i++}}if(!n){let o="";for(let a=0;a<this.modules.length;a++)o+=this.modules[a].getRules()+`
  1445. `;this.styleTag.textContent=o}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}var p0={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q2={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Zat=typeof navigator<"u"&&/Mac/.test(navigator.platform),Gat=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ms=0;Ms<10;Ms++)p0[48+Ms]=p0[96+Ms]=String(Ms);for(var Ms=1;Ms<=24;Ms++)p0[Ms+111]="F"+Ms;for(var Ms=65;Ms<=90;Ms++)p0[Ms]=String.fromCharCode(Ms+32),q2[Ms]=String.fromCharCode(Ms);for(var nN in p0)q2.hasOwnProperty(nN)||(q2[nN]=p0[nN]);function Qat(e){var t=Zat&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Gat&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?q2:p0)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function s5(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function aH(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Uat(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function P3(e,t){if(!t.anchorNode)return!1;try{return aH(e,t.anchorNode)}catch{return!1}}function RO(e){return e.nodeType==3?e1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function Mk(e,t,n,r){return n?toe(e,t,n,r,-1)||toe(e,t,n,r,1):!1}function J2(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function toe(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Cg(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=J2(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?Cg(e):0}else return!1}}function Cg(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function WL(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Xat(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function zxe(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Yat(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(c.nodeType==1){let h,f=c==l.body,g=1,b=1;if(f)h=Xat(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let w=c.getBoundingClientRect();({scaleX:g,scaleY:b}=zxe(c,w)),h={left:w.left,right:w.left+c.clientWidth*g,top:w.top,bottom:w.top+c.clientHeight*b}}let v=0,m=0;if(i=="nearest")t.top<h.top?(m=-(h.top-t.top+a),n>0&&t.bottom>h.bottom+m&&(m=t.bottom-h.bottom+m+a)):t.bottom>h.bottom&&(m=t.bottom-h.bottom+a,n<0&&t.top-m<h.top&&(m=-(h.top+m-t.top+a)));else{let w=t.bottom-t.top,k=h.bottom-h.top;m=(i=="center"&&w<=k?t.top+w/2-k/2:i=="start"||i=="center"&&n<0?t.top-a:t.bottom-k+a)-h.top}if(r=="nearest"?t.left<h.left?(v=-(h.left-t.left+o),n>0&&t.right>h.right+v&&(v=t.right-h.right+v+o)):t.right>h.right&&(v=t.right-h.right+o,n<0&&t.left<h.left+v&&(v=-(h.left+v-t.left+o))):v=(r=="center"?t.left+(t.right-t.left)/
  1446. `,i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function _st(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return o=>{let a=r(o);return i==ig.Space&&(i=a),i==a}}function Tst(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return tn.cursor(i,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let f=e.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-f.from))),s=(o<0?f.top:f.bottom)+c}let d=l.left+a,h=r??e.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let g=s+(h+f)*o,b=xSe(e,{x:d,y:g},!1,o);if(g<l.top||g>l.bottom||(o<0?b<i:b>i)){let v=e.docView.coordsForChar(b),m=!v||g<v.top?-1:1;return tn.cursor(b,m,void 0,a)}}}function D3(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,(o,a,s)=>{if(t>o&&t<a){let l=r||n||(t-o<a-t?-1:1);t=l<0?o:a,r=l}});if(!r)return t}}function aN(e,t,n){let r=D3(e.state.facet(OX).map(i=>i(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:tn.cursor(r,r<n.from?1:-1)}class Pst{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,zn.safari&&t.contentDOM.addEventListener("input",()=>null),zn.gecko&&Qst(t.contentDOM.ownerDocument)}handleEvent(t){!Nst(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=Dst(t),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&ASe.indexOf(t.keyCode)<0&&(this.view.inputState.lastEscPress=0),zn.android&&zn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return zn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=SSe.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||Rst.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,qC(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:zn.safari&&!zn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function voe(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){eh(n.state,i)}}}function Dst(e){let t=Object.create(null);function n(r)
  1447. `&&e.lineWrapping&&(r&&(r=tn.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ti.of([" "])}),n){if(zn.ios&&e.inputState.flushIOSKey()||zn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&qC(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.length<n.to-n.from&&n.to>i.head)&&qC(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&qC(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=clt(e,n,r));return e.state.facet(hSe).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function clt(e,t,n){let r,i=e.state,o=i.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=o.from<t.from?i.sliceDoc(o.from,t.from):"",l=o.to>t.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=i.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u=e.state.sliceDoc(t.from,t.to),c,d=n&&CSe(e,n.main.head);if(d){let g=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-g}}else c=e.state.doc.lineAt(o.head);let h=o.to-t.to,f=o.to-o.from;r=i.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:s,range:l||g.map(s)};let b=g.to-h,v=b-u.length;if(g.to-g.from!=f||e.state.sliceDoc(v,b)!=u||g.to>=c.from&&g.from<=c.to)return{range:g};let m=i.changes({from:v,to:b,insert:t.insert}),w=g.to-o.to;return{changes:m,range:l?tn.range(Math.max(0,l.anchor+w),Math.max(0,l.head+w)):g.map(m)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function dlt(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let a=e.length,s=t.length;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a<o&&e.length<t.length){let l=n<=o&&n>=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s<o){let l=n<=o&&n>=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function hlt(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new Poe(n,r)),(i!=n||o!=r)&&t.push(new Poe(i,o))),t}function plt(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?tn.single(n+t,r+t):null}const flt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},lN=zn.ie&&zn.ie_version<=11;class glt{constructor(t){this.view=t,this.active=!1,this.selectionRange=new qat,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(zn.ie&&zn.ie_version<=11||zn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),lN&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon
  1448. --Ÿ­؜\u2028\u2029\uFEFF-]`,SH),Mlt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let uN=null;function Llt(){var e;if(uN==null&&typeof document<"u"&&document.body){let t=document.body.style;uN=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return uN||!1}const M3=ir.define({combine(e){let t=jL(e,{render:null,specialChars:$lt,addSpecialChars:null});return(t.replaceTabs=!Llt())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,SH)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,SH)),t}});function Blt(e={}){return[M3.of(e),Flt()]}let Noe=null;function Flt(){return Noe||(Noe=ud.fromClass(class{constructor(e){this.view=e,this.decorations=na.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(M3)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Rlt({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=jd(t[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=Wp(a.text,s,r-a.from);return na.replace({widget:new Wlt((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=na.replace({widget:new jlt(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(M3);e.startState.facet(M3)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const Nlt="•";function Vlt(e){return e>=32?Nlt:e==10?"␤":String.fromCharCode(9216+e)}class jlt extends _1{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=Vlt(this.code),r=t.state.phrase("Control character")+" "+(Mlt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Wlt extends _1{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}class Hlt extends _1{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let n=t.firstChild?RO(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),i=WL(n[0],r.direction!="rtl"),o=parseInt(r.lineHeight);return i.bottom-i.top>o*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+o}:i}ignoreEvent(){return!1}}function zlt(e){return ud.fromClass(class{constructor(t){this.view=t,this.placeholder=e?na.set([na.widget({widget:new Hlt(e),side:1}).range(0)]):na.none}get decorations(){return this.view.state.doc.length?na.none:this.placeholder}},{decorations:t=>t.decorations})}const yA="-10000px";class Zlt{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;l<o.length;l++){let u=o[l],c=-1;
  1449. `&&(t="");else{let n=t.indexOf(`
  1450. `);n>-1&&(t=t.slice(0,n))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let r=this.rangeIndex;;){let i=this.ranges[r].to;if(i>=n||(t=t.slice(0,i-(n-t.length)),r++,r==this.ranges.length))break;let o=this.ranges[r].from,a=this.lineAfter(o);t+=a,n=o+a.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;let o=this.ranges[++this.rangeIndex].from;t+=o-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,n,r,i){if(this.ranges.length>1){i=this.skipGapsTo(t,i,1),t+=i;let o=this.chunk.length;i=this.skipGapsTo(n,i,-1),n+=i,r+=this.chunk.length-o}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new lAe(t,e?e.state.tabSize:4,e?r1(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let a=cAe(i.token,o,this.state);if(a&&(r=this.emitToken(this.lang.tokenTable.resolve(a),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=ai.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Fut,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new ai(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new ai(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function cAe(e,t,n){t.start=t.pos;for(let r=0;r<10;r++){let i=e(t,n);if(t.pos>t.start)return i}throw new Error("Stream parser failed to advance stream.")}const DX=Object.create(null),iE=[Xa.none],Fut=new Rx(iE),nae=[],rae=Object.create(null),dAe=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])dAe[e]=pAe(DX,t);class hAe{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),dAe)}resolve(t){return t?this.table[t]||(this.table[t]=pAe(this.extra,t)):0}}const Nut=new hAe(DX);function gN(e,t){nae.indexOf(e)>-1||(nae.push(e),console.warn(t))}function pAe(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let u of s.split(".")){let c=e[u]||Ne[u];c?typeof c=="function"?l.length?l=l.map(c):gN(u,`Modifier ${u} used at start of tag`):l.length?gN(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:gN(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=rae[i];if(o)return o.id;let a=rae[i]=Xa.define({id:iE.length,name:r,props:[$x({[r]:n})]});return iE.push(a),a.id}function Vut(e){let t=Xa.define({id:iE.length,name:"Document",props:[Av.add(()=>e)],top:!0});return iE.push(t),t}ra.RTL,ra.LTR;const jut=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=$X(e.state,n.from);return r.line?Wut(e):r.block?zut(e):!1};function RX(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}const Wut=RX(Qut,0),Hut=RX(fAe,0),zut=RX((e,t)=>fAe(e,t,Gut(t)),0);function $X(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const CA=50;function Zut(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-CA,r),a=e.sliceDoc(i,i+CA),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,d;i-r<=2*CA?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+CA),d=e.sliceDoc(i-CA,i));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(d)[0].length,g=d.le
  1451. `+n.scrub(),o=this.advance(i);return o>-1&&o<i.length?this.complete(t,r,o):!1}finish(t,n){return(this.stage==2||this.stage==3)&&Bk(n.content,this.pos)==n.content.length?this.complete(t,n,n.content.length):!1}complete(t,n,r){return t.addLeafElement(n,wi(gn.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(t){return t?(this.pos=t.to-this.start,this.elts.push(t),this.stage++,!0):(t===!1&&(this.stage=-1),!1)}advance(t){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(yIe(t,this.pos,this.start,!0)))return-1;if(t.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(wi(gn.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(mIe(t,Bk(t,this.pos),this.start)))return-1}else if(this.stage==2){let n=Bk(t,this.pos),r=0;if(n>this.pos){let i=vIe(t,n,this.start);if(i){let o=yN(t,i.to-this.start);o>0&&(this.nextStage(i),r=o)}}return r||(r=yN(t,this.pos)),r>0&&r<t.length?r:-1}else return yN(t,this.pos)}}}function yN(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!Cd(n))return-1}return t}class Ndt{nextLine(t,n,r){let i=n.depth<t.stack.length?-1:aIe(n),o=n.next;if(i<0)return!1;let a=wi(gn.HeaderMark,t.lineStart+n.pos,t.lineStart+i);return t.nextLine(),t.addLeafElement(r,wi(o==61?gn.SetextHeading1:gn.SetextHeading2,r.start,t.prevLineEnd(),[...t.parser.parseInline(r.content,r.start),a])),!0}finish(){return!1}}const Vdt={LinkReference(e,t){return t.content.charCodeAt(0)==91?new Fdt(t):null},SetextHeading(){return new Ndt}},jdt=[(e,t)=>oIe(t)>=0,(e,t)=>nIe(t)>=0,(e,t)=>rIe(t)>=0,(e,t)=>HX(t,e,!0)>=0,(e,t)=>zX(t,e,!0)>=0,(e,t)=>WX(t,e,!0)>=0,(e,t)=>uIe(t,e,!0)>=0],Wdt={text:"",end:0};class Hdt{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.line=new Bdt,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=v5.create(gn.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new Qdt(r,n):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:t}=this;for(;;){for(let r=0;;){let i=t.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<t.markers.length&&(!i||t.markers[r].from<i.end);){let o=t.markers[r++];this.addNode(o.type,o.from,o.to)}if(!i)break;this.finishContext()}if(t.pos<t.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(t.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let i=r(this,t);if(i!=!1){if(i==!0)return null;t.forward();continue e}}break}let n=new Ldt(this.lineStart+t.pos,t.text.slice(t.pos));for(let r of this.parser.leafBlockParsers)if(r){let i=r(this,n);i&&n.parsers.push(i)}e:for(;this.nextLine()&&t.pos!=t.text.length;){if(t.indent<t.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,t,n))break e}for(let r of n.parsers)if(r.nextLine(this,t,n))return null;n.content+=`
  1452. `+t.scrub();for(let r of t.markers)n.marks.push(r)}return this.finishLeaf(n),null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}reuseFragment(t){if(!this.fragments.moveTo(this.absoluteLineStart+t,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=bIe(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(t=this.depth-1){return this.parser.nodeSet.types[this.stack[t].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(t){let n=Wdt;if(n.end=t,t>=this.to)n.text="";else if(n.text=this.lineChunkAt(t),n.end+=n.text.length,this.ranges.length>1){let r=this.absoluteLineStart,i=this.rangeI;for(;this.ranges[i].to<n.end;){i++;let o=this.ranges[i].from,a=this.lineChunkAt(o);n.end=o+a.length,n.text=n.text.slice(0,this.ranges[i-1].to-r)+a,r=n.end-n.text.length}}return n}readLine(){let{line:t}=this,{text:n,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,t.reset(n);t.depth<this.stack.length;t.depth++){let i=this.stack[t.depth],o=this.parser.skipContextMarkup[i.type];if(!o)throw new Error("Unhandled block context "+gn[i.type]);if(!o(i,this,t))break;t.forward()}}lineChunkAt(t){let n=this.input.chunk(t),r;if(this.input.lineChunks)r=n==`
  1453. `?"":n;else{let i=n.indexOf(`
  1454. `);r=i<0?n:n.slice(0,i)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=v5.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new ai(this.parser.nodeSet.types[t],VO,VO,(r??this.prevLineEnd())-n)),this.block.addChild(t,n-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,n){this.addNode(this.buffer.writeElements(FH(n.children,t.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let t=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(t.toTree(this.parser.nodeSet),t.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?cIe(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let r of t.parsers)if(r.finish(this,t))return;let n=FH(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(gn.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?wi(this.parser.getNodeType(t),n,r,i):new pIe(t,n)}get buffer(){return new hIe(this.parser.nodeSet)}}function cIe(e,t,n,r,i){let o=e[t].to,a=[],s=[],l=n.from+r;function u(c,d){for(;d?c>=o:c>o;){let h=e[t+1].from-o;r+=h,c+=h,t++,o=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let d=c.from+r,h,f=i.get(c.tree);f?h=f:c.to+r>o?(h=cIe(e,t,c,r,i),u(c.to+r,!1)):h=c.toTree(),a.push(h),s.push(d-l)}return u(n.to+r,!1),new ai(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class qL extends ZL{constructor(t,n,r,i,o,a,s,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=o,this.skipContextMarkup=a,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of t.types)this.nodeTypes[c.name]=c.id}createParse(t,n,r){let i=new Hdt(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=BH(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,o=this.blockParsers.slice(),a=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(OA(n.defineNodes)){i=Object.assign({},i);let h=r.types.slice(),f;for(let g of n.defineNodes){let{name:b,block:v,composite:m,style:w}=typeof g=="string"?{name:g}:g;if(h.some(S=>S.name==b))continue;m&&(i[h.length]=(S,I,O)=>m(I,O,S.value));let k=h.length,T=m?["Block","BlockContext"]:v?k>=gn.ATXHeading1&&k<=gn.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;h.push(Xa.define({id:k,name:b,props:T&&[[Ir.group,T]]})),w&&(f||(f={}),Array.isArray(w)||w instanceof Uf?f[b]=w:Object.assign(f,w))}r=new Rx(h),f&&(r=r.extend($x(f)))}if(OA(n.props)&&(r=r.extend(...n.props)),OA(n.remove))for(let h of n.remove){let f=this.blockNames.indexOf(h),g=this.inlineNames.indexOf(h);f>-1&&(o[f]=a[f]=void 0),g>-1&&(l[g]=void 0)}if(OA(n.parseBlock))for(let h of n.parseBlock){let f=s.indexOf(h.name);if(f>-1)o[f]=h.parse,a[f]=h.leaf;else{let g=h.before?ND(s,h.before):h.after?ND(s,h.after)+1:s.length-1;o.splice(g,0,h.parse),a.splice(g,0,h.leaf),s.splice(g,0,h.name)}h.endLeaf&&c.push(h.endLeaf)}if(OA(n.parseInline))for(let h of n.parseInline){let f=u.indexOf(h.name);if(f>-1)l[f]=h.parse;else{let g=h.before?ND(u,h.before):h.after?ND(u,h.after)+1:u.length-1;l.splice(g,0,h.parse),u.splice(g,0,h.name)}}return n.wrap&&(d=d.concat(n.wrap)),new qL(r,o,a,s,c,i,l,u,d)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new Zdt(this,t,n);e:for(let i=n;i<r.end;){let o=r.char(i);for(let a of this.inlineParsers)if(a){let s=a(r,o,i);if(s>=0){i=s;continue e}}i++}return
  1455. `;)i--;this.fragmentEnd=i?i-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(Ir.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,o=i,a=e.block.children.length,s=o,l=a;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let u=bIe(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,u);else{let c=new ai(e.parser.nodeSet.types[gn.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(c,t.tree),e.addNode(c,u)}if(t.type.is("Block")&&(Gdt.indexOf(t.type.id)<0?(o=t.to-n,a=e.block.children.length):(o=s,a=l,s=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-i}};function bIe(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,o=t[r].from;i<e&&(n-=o-i)}return n}const Udt=$x({"Blockquote/...":Ne.quote,HorizontalRule:Ne.contentSeparator,"ATXHeading1/... SetextHeading1/...":Ne.heading1,"ATXHeading2/... SetextHeading2/...":Ne.heading2,"ATXHeading3/...":Ne.heading3,"ATXHeading4/...":Ne.heading4,"ATXHeading5/...":Ne.heading5,"ATXHeading6/...":Ne.heading6,"Comment CommentBlock":Ne.comment,Escape:Ne.escape,Entity:Ne.character,"Emphasis/...":Ne.emphasis,"StrongEmphasis/...":Ne.strong,"Link/... Image/...":Ne.link,"OrderedList/... BulletList/...":Ne.list,"BlockQuote/...":Ne.quote,"InlineCode CodeText":Ne.monospace,"URL Autolink":Ne.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Ne.processingInstruction,"CodeInfo LinkLabel":Ne.labelName,LinkTitle:Ne.string,Paragraph:Ne.content}),Xdt=new qL(new Rx(dIe).extend(Udt),Object.keys(FD).map(e=>FD[e]),Object.keys(FD).map(e=>Vdt[e]),Object.keys(FD),jdt,tIe,Object.keys(bN).map(e=>bN[e]),Object.keys(bN),[]);function Ydt(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function Kdt(e){let{codeParser:t,htmlParser:n}=e;return{wrap:YSe((r,i)=>{let o=r.type.id;if(t&&(o==gn.CodeBlock||o==gn.FencedCode)){let a="";if(o==gn.FencedCode){let l=r.node.getChild(gn.CodeInfo);l&&(a=i.read(l.from,l.to))}let s=t(a);if(s)return{parser:s,overlay:l=>l.type.id==gn.CodeText}}else if(n&&(o==gn.HTMLBlock||o==gn.HTMLTag))return{parser:n,overlay:Ydt(r.node,r.from,r.to)};return null})}}const qdt={resolve:"Strikethrough",mark:"StrikethroughMark"},Jdt={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ne.strikethrough}},{name:"StrikethroughMark",style:Ne.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=lE.test(r),l=lE.test(i);return e.addDelimiter(qdt,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Fk(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d<t.length;d++){let h=t.charCodeAt(d);h==124&&!u?((!a||s>-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||h!=32&&h!=9)&&(s<0&&(s=d),l=d+1),u=!u&&h==92}return s>-1&&(o++,r&&c()),o}function xae(e,t){for(let n=t;n<e.length;n++){let r=e.charCodeAt(n);if(r==124)return!0;r==92&&n++}return!1}const wIe=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class Sae{constructor(){this.rows=null}nextLine(t,n,r){if(this.rows==null){this.rows=!1;let i;if((n.next==45||n.next==58||n.next==124)&&wIe.test(i=n.text.slice(n.pos))){let o=[];Fk(t,r.content,0,o,r.start)==Fk(t,i,n.pos)&&(this.rows=[t.elt("TableHeader",r.start,r.start+r.content.length,o),t.elt("TableDelimiter",t.lineStart+n.pos,t.lineStart+n.text.length)])}}else if(this.rows){let i=[];Fk(t,n.text,n.pos,i,t.lineStart),this.rows.push(t.elt("TableRow",t.lineStart+n.pos,t.lineStart+n.te
  1456. \${}
  1457. } catch (\${error}) {
  1458. \${}
  1459. }`,{label:"try",detail:"/ catch block",type:"keyword"}),Jl("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Jl(`if (\${}) {
  1460. \${}
  1461. } else {
  1462. \${}
  1463. }`,{label:"if",detail:"/ else block",type:"keyword"}),Jl(`class \${name} {
  1464. constructor(\${params}) {
  1465. \${}
  1466. }
  1467. }`,{label:"class",detail:"definition",type:"keyword"}),Jl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Jl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],WIe=QX.concat([Jl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Jl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Jl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),qae=new XSe,HIe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function SA(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const eft=["FunctionDeclaration"],tft={FunctionDeclaration:SA("function"),ClassDeclaration:SA("class"),ClassExpression:()=>!0,EnumDeclaration:SA("constant"),TypeAliasDeclaration:SA("type"),NamespaceDeclaration:SA("namespace"),VariableDefinition(e,t){e.matchContext(eft)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function zIe(e,t){let n=qae.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(vo.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=tft[a.name];if(s&&s(a,o)||HIe.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of zIe(e,a.node))r.push(s);return!1}}),qae.set(t,r),r}const x5=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,UX=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function ZIe(e){let t=oa(e.state).resolveInner(e.pos,-1);if(UX.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&x5.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)HIe.has(i.name)&&(r=r.concat(zIe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:x5}}function kN(e,t,n){var r;let i=[];for(;;){let o=t.firstChild,a;if((o==null?void 0:o.name)=="VariableName")return i.push(e(o)),{path:i.reverse(),name:n};if((o==null?void 0:o.name)=="MemberExpression"&&((r=a=o.lastChild)===null||r===void 0?void 0:r.name)=="PropertyName")i.push(e(a)),t=o;else return null}}function GIe(e){let t=r=>e.state.doc.sliceString(r.from,r.to),n=oa(e.state).resolveInner(e.pos,-1);return n.name=="PropertyName"?kN(t,n.parent,t(n)):(n.name=="."||n.name=="?.")&&n.parent.name=="MemberExpression"?kN(t,n.parent,""):UX.indexOf(n.name)>-1?null:n.name=="VariableName"||n.to-n.from<20&&x5.test(t(n))?{path:[],name:t(n)}:n.name=="MemberExpression"?kN(t,n,""):e.explicit?{path:[],name:""}:null}function nft(e,t){let n=[],r=new Set;for(let i=0;;i++){for(let a of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(a)||r.has(a))continue;r.add(a);let s;try{s=e[a]}catch{continue}n.push({label:a,type:typeof s=="function"?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-i})}let o=Object.getPrototypeOf(e);if(!o)return n;e=o}}function rft(e){let t=new Map;return n=>{let r=GIe(n);if(!r)return null;let i=e;for(let a of r.path)if(i=i[a],!i)return null;let o=t.get(i);return o||t.set(i,o=nft(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:x5}}}const Jc=LO.define({name:"javascript",parser:Jpt.configure({props:[M_.add({IfStatement:B3({except:/^\s*({|else\b)/}),TryStatement:B3({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Aut,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Sut({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":B3({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}
  1468. Expects a CSS selector, a Node element, a NodeList or an array.
  1469. See: https://github.com/francoischalifour/medium-zoom`)}},Sft=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},Aft=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.width,o=t.height,a=e.cloneNode(),s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=n+s+"px",a.style.left=r+l+"px",a.style.width=i+"px",a.style.height=o+"px",a.style.transform="",a},Rw=function(e,t){var n=Wy({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},Ift=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(R){function D(){}R(D,D)},i=function(R){var D=R.target;if(D===_){g();return}k.indexOf(D)!==-1&&b({target:D})},o=function(){if(!(S||!y.original)){var R=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(I-R)>O.scrollOffset&&setTimeout(g,150)}},a=function(R){var D=R.key||R.keyCode;(D==="Escape"||D==="Esc"||D===27)&&g()},s=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R;if(R.background&&(_.style.background=R.background),R.container&&R.container instanceof Object&&(D.container=Wy({},O.container,R.container)),R.template){var C=V3(R.template)?R.template:document.querySelector(R.template);D.template=C}return O=Wy({},O,D),k.forEach(function(x){x.dispatchEvent(Rw("medium-zoom:update",{detail:{zoom:A}}))}),A},l=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Wy({},O,R))},u=function(){for(var R=arguments.length,D=Array(R),C=0;C<R;C++)D[C]=arguments[C];var x=D.reduce(function(P,$){return[].concat(P,ase($))},[]);return x.filter(function(P){return k.indexOf(P)===-1}).forEach(function(P){k.push(P),P.classList.add("medium-zoom-image")}),T.forEach(function(P){var $=P.type,L=P.listener,V=P.options;x.forEach(function(H){H.addEventListener($,L,V)})}),A},c=function(){for(var R=arguments.length,D=Array(R),C=0;C<R;C++)D[C]=arguments[C];y.zoomed&&g();var x=D.length>0?D.reduce(function(P,$){return[].concat(P,ase($))},[]):k;return x.forEach(function(P){P.classList.remove("medium-zoom-image"),P.dispatchEvent(Rw("medium-zoom:detach",{detail:{zoom:A}}))}),k=k.filter(function(P){return x.indexOf(P)===-1}),A},d=function(R,D){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return k.forEach(function(x){x.addEventListener("medium-zoom:"+R,D,C)}),T.push({type:"medium-zoom:"+R,listener:D,options:C}),A},h=function(R,D){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return k.forEach(function(x){x.removeEventListener("medium-zoom:"+R,D,C)}),T=T.filter(function(x){return!(x.type==="medium-zoom:"+R&&x.listener.toString()===D.toString())}),A},f=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.target,C=function(){var x={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},P=void 0,$=void 0;if(O.container)if(O.container instanceof Object)x=Wy({},x,O.container),P=x.width-x.left-x.right-O.margin*2,$=x.height-x.top-x.bottom-O.margin*2;else{var L=V3(O.container)?O.container:document.querySelector(O.container),V=L.getBoundingClientRect(),H=V.width,Q=V.height,U=V.left,K=V.top;x=Wy({},x,{width:H,height:Q,left:U,top:K})}P=P||x.width-O.margin*2,$=$||x.height-O.margin*2;var J=y.zoomedHd||y.original,ue=ose(J)?P:J.naturalWidth||P,ee=ose(J)?$:J.naturalHeight||$,N=J.getBoundingClientRect(),q=N.top,G=N.left,ne=N.width,le=N.height,oe=Math.min(Math.max(ne,ue),P)/ne,ve=Math.min(Math.max(le,ee),$)/le,de=Math.min(oe,ve),ae=(-G+(P-ne)/2+O.margin+x.left)/de,be=(-q+($-le)/2+O.margin+x.top)/de,ie="scale("+de+") translate3d("+ae+"px, "+be+"px, 0)";y.zoomed.style.transform=ie,y.zoomedHd&&(y.zoomedHd.
  1470. `,dDt="∄",hDt="∄",pDt="𝔑",fDt="𝔫",gDt="≧̸",mDt="≱",vDt="≱",yDt="≧̸",bDt="⩾̸",wDt="⩾̸",CDt="⋙̸",ODt="≵",xDt="≫⃒",SDt="≯",ADt="≯",IDt="≫̸",kDt="↮",EDt="⇎",_Dt="⫲",TDt="∋",PDt="⋼",DDt="⋺",RDt="∋",$Dt="Њ",MDt="њ",LDt="↚",BDt="⇍",FDt="‥",NDt="≦̸",VDt="≰",jDt="↚",WDt="⇍",HDt="↮",zDt="⇎",ZDt="≰",GDt="≦̸",QDt="⩽̸",UDt="⩽̸",XDt="≮",YDt="⋘̸",KDt="≴",qDt="≪⃒",JDt="≮",eRt="⋪",tRt="⋬",nRt="≪̸",rRt="∤",iRt="⁠",oRt=" ",aRt="𝕟",sRt="ℕ",lRt="⫬",uRt="¬",cRt="≢",dRt="≭",hRt="∦",pRt="∉",fRt="≠",gRt="≂̸",mRt="∄",vRt="≯",yRt="≱",bRt="≧̸",wRt="≫̸",CRt="≹",ORt="⩾̸",xRt="≵",SRt="≎̸",ARt="≏̸",IRt="∉",kRt="⋵̸",ERt="⋹̸",_Rt="∉",TRt="⋷",PRt="⋶",DRt="⧏̸",RRt="⋪",$Rt="⋬",MRt="≮",LRt="≰",BRt="≸",FRt="≪̸",NRt="⩽̸",VRt="≴",jRt="⪢̸",WRt="⪡̸",HRt="∌",zRt="∌",ZRt="⋾",GRt="⋽",QRt="⊀",URt="⪯̸",XRt="⋠",YRt="∌",KRt="⧐̸",qRt="⋫",JRt="⋭",e3t="⊏̸",t3t="⋢",n3t="⊐̸",r3t="⋣",i3t="⊂⃒",o3t="⊈",a3t="⊁",s3t="⪰̸",l3t="⋡",u3t="≿̸",c3t="⊃⃒",d3t="⊉",h3t="≁",p3t="≄",f3t="≇",g3t="≉",m3t="∤",v3t="∦",y3t="∦",b3t="⫽⃥",w3t="∂̸",C3t="⨔",O3t="⊀",x3t="⋠",S3t="⊀",A3t="⪯̸",I3t="⪯̸",k3t="⤳̸",E3t="↛",_3t="⇏",T3t="↝̸",P3t="↛",D3t="⇏",R3t="⋫",$3t="⋭",M3t="⊁",L3t="⋡",B3t="⪰̸",F3t="𝒩",N3t="𝓃",V3t="∤",j3t="∦",W3t="≁",H3t="≄",z3t="≄",Z3t="∤",G3t="∦",Q3t="⋢",U3t="⋣",X3t="⊄",Y3t="⫅̸",K3t="⊈",q3t="⊂⃒",J3t="⊈",e$t="⫅̸",t$t="⊁",n$t="⪰̸",r$t="⊅",i$t="⫆̸",o$t="⊉",a$t="⊃⃒",s$t="⊉",l$t="⫆̸",u$t="≹",c$t="Ñ",d$t="ñ",h$t="≸",p$t="⋪",f$t="⋬",g$t="⋫",m$t="⋭",v$t="Ν",y$t="ν",b$t="#",w$t="№",C$t=" ",O$t="≍⃒",x$t="⊬",S$t="⊭",A$t="⊮",I$t="⊯",k$t="≥⃒",E$t=">⃒",_$t="⤄",T$t="⧞",P$t="⤂",D$t="≤⃒",R$t="<⃒",$$t="⊴⃒",M$t="⤃",L$t="⊵⃒",B$t="∼⃒",F$t="⤣",N$t="↖",V$t="⇖",j$t="↖",W$t="⤧",H$t="Ó",z$t="ó",Z$t="⊛",G$t="Ô",Q$t="ô",U$t="⊚",X$t="О",Y$t="о",K$t="⊝",q$t="Ő",J$t="ő",e5t="⨸",t5t="⊙",n5t="⦼",r5t="Œ",i5t="œ",o5t="⦿",a5t="𝔒",s5t="𝔬",l5t="˛",u5t="Ò",c5t="ò",d5t="⧁",h5t="⦵",p5t="Ω",f5t="∮",g5t="↺",m5t="⦾",v5t="⦻",y5t="‾",b5t="⧀",w5t="Ō",C5t="ō",O5t="Ω",x5t="ω",S5t="Ο",A5t="ο",I5t="⦶",k5t="⊖",E5t="𝕆",_5t="𝕠",T5t="⦷",P5t="“",D5t="‘",R5t="⦹",$5t="⊕",M5t="↻",L5t="⩔",B5t="∨",F5t="⩝",N5t="ℴ",V5t="ℴ",j5t="ª",W5t="º",H5t="⊶",z5t="⩖",Z5t="⩗",G5t="⩛",Q5t="Ⓢ",U5t="𝒪",X5t="ℴ",Y5t="Ø",K5t="ø",q5t="⊘",J5t="Õ",e4t="õ",t4t="⨶",n4t="⨷",r4t="⊗",i4t="Ö",o4t="ö",a4t="⌽",s4t="‾",l4t="⏞",u4t="⎴",c4t="⏜",d4t="¶",h4t="∥",p4t="∥",f4t="⫳",g4t="⫽",m4t="∂",v4t="∂",y4t="П",b4t="п",w4t="%",C4t=".",O4t="‰",x4t="⊥",S4t="‱",A4t="𝔓",I4t="𝔭",k4t="Φ",E4t="φ",_4t="ϕ",T4t="ℳ",P4t="☎",D4t="Π",R4t="π",$4t="⋔",M4t="ϖ",L4t="ℏ",B4t="ℎ",F4t="ℏ",N4t="⨣",V4t="⊞",j4t="⨢",W4t="+",H4t="∔",z4t="⨥",Z4t="⩲",G4t="±",Q4t="±",U4t="⨦",X4t="⨧",Y4t="±",K4t="ℌ",q4t="⨕",J4t="𝕡",eMt="ℙ",tMt="£",nMt="⪷",rMt="⪻",iMt="≺",oMt="≼",aMt="⪷",sMt="≺",lMt="≼",uMt="≺",cMt="⪯",dMt="≼",hMt="≾",pMt="⪯",fMt="⪹",gMt="⪵",mMt="⋨",vMt="⪯",yMt="⪳",bMt="≾",wMt="′",CMt="″",OMt="ℙ",xMt="⪹",SMt="⪵",AMt="⋨",IMt="∏",kMt="∏",EMt="⌮",_Mt="⌒",TMt="⌓",PMt="∝",DMt="∝",RMt="∷",$Mt="∝",MMt="≾",LMt="⊰",BMt="𝒫",FMt="𝓅",NMt="Ψ",VMt="ψ",jMt=" ",WMt="𝔔",HMt="𝔮",zMt="⨌",ZMt="𝕢",GMt="ℚ",QMt="⁗",UMt="𝒬",XMt="𝓆",YMt="ℍ",KMt="⨖",qMt="?",JMt="≟",eLt='"',tLt='"',nLt="⇛",rLt="∽̱",iLt="Ŕ",oLt="ŕ",aLt="√",sLt="⦳",lLt="⟩",uLt="⟫",cLt="⦒",dLt="⦥",hLt="⟩",pLt="»",fLt="⥵",gLt="⇥",mLt="⤠",vLt="⤳",yLt="→",bLt="↠",wLt="⇒",CLt="⤞",OLt="↪",xLt="↬",SLt="⥅",ALt="⥴",ILt="⤖",kLt="↣",ELt="↝",_Lt="⤚",TLt="⤜",PLt="∶",DLt="ℚ",RLt="⤍",$Lt=
  1471. `," "],czt=["{","}","|","\\","^","`"].concat(uzt),dzt=["'"].concat(czt),cse=["%","/","?",";","#"].concat(dzt),dse=["/","?","#"],hzt=255,hse=/^[+a-z0-9A-Z_-]{0,63}$/,pzt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pse={javascript:!0,"javascript:":!0},fse={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function fzt(e,t){if(e&&e instanceof S5)return e;var n=new S5;return n.parse(e,t),n}S5.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&e.split("#").length===1){var l=lzt.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=azt.exec(s);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(u&&pse[u])&&(s=s.substr(2),this.slashes=!0)),!pse[u]&&(a||u&&!fse[u])){var c=-1;for(n=0;n<dse.length;n++)o=s.indexOf(dse[n]),o!==-1&&(c===-1||o<c)&&(c=o);var d,h;for(c===-1?h=s.lastIndexOf("@"):h=s.lastIndexOf("@",c),h!==-1&&(d=s.slice(0,h),s=s.slice(h+1),this.auth=d),c=-1,n=0;n<cse.length;n++)o=s.indexOf(cse[n]),o!==-1&&(c===-1||o<c)&&(c=o);c===-1&&(c=s.length),s[c-1]===":"&&c--;var f=s.slice(0,c);s=s.slice(c),this.parseHost(f),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var b=this.hostname.split(/\./);for(n=0,r=b.length;n<r;n++){var v=b[n];if(v&&!v.match(hse)){for(var m="",w=0,k=v.length;w<k;w++)v.charCodeAt(w)>127?m+="x":m+=v[w];if(!m.match(hse)){var T=b.slice(0,n),S=b.slice(n+1),I=v.match(pzt);I&&(T.push(I[1]),S.unshift(I[2])),S.length&&(s=S.join(".")+s),this.hostname=T.join(".");break}}}}this.hostname.length>hzt&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var O=s.indexOf("#");O!==-1&&(this.hash=s.substr(O),s=s.slice(0,O));var y=s.indexOf("?");return y!==-1&&(this.search=s.substr(y),s=s.slice(0,y)),s&&(this.pathname=s),fse[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};S5.prototype.parseHost=function(e){var t=szt.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var gzt=fzt;Nx.encode=nzt;Nx.decode=izt;Nx.format=ozt;Nx.parse=gzt;var $w={},gse,mse;function wke(){return mse||(mse=1,gse=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),gse}var vse,yse;function Cke(){return yse||(yse=1,vse=/[\0-\x1F\x7F-\x9F]/),vse}var bse,wse;function mzt(){return wse||(wse=1,bse=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),bse}var Cse,Ose;function Oke(){return Ose||(Ose=1,Cse=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Cse}var xse;function vzt(){return xse||(xse=1,$w.Any=wke(),$w.Cc=Cke(),$w.Cf=mzt(),$w.P=nY,$w.Z=Oke()),$w}(function(e){function t(x){return Object.prototype.toString.call(x)}function n(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(x,P){return r.call(x,P)}function o(x){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function($){if($){if(typeof $!="object")throw new TypeError($+"must be object");Object.keys($).forEach(function(L){x[L]=$[L]})}}),x}function a(x,P,$){return[].concat(x.slice(0,P),$,x.slice(P+1))}function s(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function l(x){if(x>65535){x-=65536;var P=55296+(x>>10),$=56320+(x&1023);return String.fromCharCode(P,$)}return String.fromCharCode(x)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(u.source+"|"+c.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,f=bke;function g(x,P){var $;return i(f,P)?f[P]:P.charCodeAt(0)===35&&h.test(P)&&($=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),s($))?l($):x}function b(x){return x.indexOf("\\")<0?x:x.replace(u,"$1")}func
  1472. `};rf.fence=function(e,t,n,r,i){var o=e[t],a=o.info?xzt(o.info).trim():"",s="",l="",u,c,d,h,f;return a&&(d=a.split(/(\s+)/g),s=d[0],l=d.slice(2).join("")),n.highlight?u=n.highlight(o.content,s,l)||i1(o.content):u=i1(o.content),u.indexOf("<pre")===0?u+`
  1473. `:a?(c=o.attrIndex("class"),h=o.attrs?o.attrs.slice():[],c<0?h.push(["class",n.langPrefix+s]):(h[c]=h[c].slice(),h[c][1]+=" "+n.langPrefix+s),f={attrs:h},"<pre><code"+i.renderAttrs(f)+">"+u+`</code></pre>
  1474. `):"<pre><code"+i.renderAttrs(o)+">"+u+`</code></pre>
  1475. `};rf.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)};rf.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
  1476. `:`<br>
  1477. `};rf.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
  1478. `:`<br>
  1479. `:`
  1480. `};rf.text=function(e,t){return i1(e[t].content)};rf.html_block=function(e,t){return e[t].content};rf.html_inline=function(e,t){return e[t].content};function Vx(){this.rules=Ozt({},rf)}Vx.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i1(e.attrs[t][0])+'="'+i1(e.attrs[t][1])+'"';return r};Vx.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
  1481. `),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,a.nesting===1&&t+1<e.length&&(r=e[t+1],(r.type==="inline"||r.hidden||r.nesting===-1&&r.tag===a.tag)&&(o=!1))),i+=o?`>
  1482. `:">",i)};Vx.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)r=e[a].type,typeof o[r]<"u"?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i};Vx.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)e[i].type==="text"?r+=e[i].content:e[i].type==="image"?r+=this.renderInlineAsText(e[i].children,t,n):e[i].type==="softbreak"&&(r+=`
  1483. `);return r};Vx.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)o=e[r].type,o==="inline"?a+=this.renderInline(e[r].children,t,n):typeof s[o]<"u"?a+=s[o](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var Szt=Vx;function Oh(){this.__rules__=[],this.__cache__=null}Oh.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Oh.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Oh.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Oh.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Oh.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Oh.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Oh.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(r){var i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};Oh.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Oh.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(r){var i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};Oh.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var rY=Oh,Azt=/\r\n?|\n/g,Izt=/\0/g,kzt=function(e){var t;t=e.src.replace(Azt,`
  1484. `),t=t.replace(Izt,"�"),e.src=t},Ezt=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},_zt=function(e){var t=e.tokens,n,r,i;for(r=0,i=t.length;r<i;r++)n=t[r],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)},Tzt=Mi.arrayReplaceAt;function Pzt(e){return/^<a[>\s]/i.test(e)}function Dzt(e){return/^<\/a\s*>/i.test(e)}var Rzt=function(e){var t,n,r,i,o,a,s,l,u,c,d,h,f,g,b,v,m=e.tokens,w;if(e.md.options.linkify){for(n=0,r=m.length;n<r;n++)if(!(m[n].type!=="inline"||!e.md.linkify.pretest(m[n].content)))for(i=m[n].children,f=0,t=i.length-1;t>=0;t--){if(a=i[t],a.type==="link_close"){for(t--;i[t].level!==a.level&&i[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(Pzt(a.content)&&f>0&&f--,Dzt(a.content)&&f++),!(f>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,w=e.md.linkify.match(u),s=[],h=a.level,d=0,w.length>0&&w[0].index===0&&t>0&&i[t-1].type==="text_special"&&(w=w.slice(1)),l=0;l<w.length;l++)g=w[l].url,b=e.md.normalizeLink(g),e.md.validateLink(b)&&(v=w[l].text,w[l].schema?w[l].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),c=w[l].index,c>d&&(o=new e.Token("text","",0),o.content=u.slice(d,c),o.level=h,s.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=h++,o.markup="linkify",o.info="auto",s.push(o),o=new e.Token("text","",0),o.content=v,o.level=h,s.push(o),o=new e.Token("link_close","a",-1),o.level=--h,o.markup="linkify",o.info="auto",s.push(o),d=w[l].lastIndex);d<u.length&&(o=new e.Token("text","",0),o.content=u.slice(d),o.level=h,s.push(o)),m[n].children=i=Tzt(i,t,s)}}}},xke=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,$zt=/\((c|tm|r)\)/i,Mzt=/\((c|tm|r)\)/ig,Lzt={c:"©",r:"®",tm:"™"};function Bzt(e,t){return Lzt[t.toLowerCase()]}function Fzt(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!r&&(n.content=n.content.replace(Mzt,Bzt)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function Nzt(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!r&&xke.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var Vzt=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&($zt.test(e.tokens[t].content)&&Fzt(e.tokens[t].children),xke.test(e.tokens[t].content)&&Nzt(e.tokens[t].children))},Ase=Mi.isWhiteSpace,Ise=Mi.isPunctChar,kse=Mi.isMdAsciiPunct,jzt=/['"]/,Ese=/['"]/g,_se="’";function HD(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Wzt(e,t){var n,r,i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S,I;for(T=[],n=0;n<e.length;n++){for(r=e[n],l=e[n].level,w=T.length-1;w>=0&&!(T[w].level<=l);w--);if(T.length=w+1,r.type==="text"){i=r.content,a=0,s=i.length;e:for(;a<s&&(Ese.lastIndex=a,o=Ese.exec(i),!!o);){if(v=m=!0,a=o.index+1,k=o[0]==="'",c=32,o.index-1>=0)c=i.charCodeAt(o.index-1);else for(w=n-1;w>=0&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w--)if(e[w].content){c=e[w].content.charCodeAt(e[w].content.length-1);break}if(d=32,a<s)d=i.charCodeAt(a);else for(w=n+1;w<e.length&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w++)if(e[w].content){d=e[w].content.charCodeAt(0);break}if(h=kse(c)||Ise(String.fromCharCode(c)),f=kse(d)||Ise(String.fromCharCode(d)),g=Ase(c),b=Ase(d),b?v=!1:f&&(g||h||(v=!1)),g?m=!1:h&&(b||f||(m=!1)),d===34&&o[0]==='"'&&c>=48&&c<=57&&(m=v=!1),v&&m&&(v=h,m=f),!v&&!m){k&&(r.content=HD(r.content,o.index,_se));continue}if(m){for(w=T.length-1;w>=0&&(u=T[w],!(T[w].level<l));w--)if(u.single===k&&T[w].level===l){u=T[w],k?(S=t.md.options.quotes[2],I=t.m
  1485. `,o.map=[t,e.line],!0},Kzt=function(e,t,n,r){var i,o,a,s,l,u,c,d=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||(i=e.src.charCodeAt(h),i!==126&&i!==96)||(l=h,h=e.skipChars(h,i),o=h-l,o<3)||(c=e.src.slice(l,h),a=e.src.slice(h,f),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(s=t;s++,!(s>=n||(h=l=e.bMarks[s]+e.tShift[s],f=e.eMarks[s],h<f&&e.sCount[s]<e.blkIndent));)if(e.src.charCodeAt(h)===i&&!(e.sCount[s]-e.blkIndent>=4)&&(h=e.skipChars(h,i),!(h-l<o)&&(h=e.skipSpaces(h),!(h<f)))){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),u=e.push("fence","code",0),u.info=a,u.content=e.getLines(t+1,s,o,!0),u.markup=c,u.map=[t,e.line],!0},qzt=Mi.isSpace,Jzt=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S,I,O,y=e.lineMax,_=e.bMarks[t]+e.tShift[t],A=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(_)!==62)return!1;if(r)return!0;for(f=[],g=[],m=[],w=[],S=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=t;d<n&&(O=e.sCount[d]<e.blkIndent,_=e.bMarks[d]+e.tShift[d],A=e.eMarks[d],!(_>=A));d++){if(e.src.charCodeAt(_++)===62&&!O){for(s=e.sCount[d]+1,e.src.charCodeAt(_)===32?(_++,s++,i=!1,k=!0):e.src.charCodeAt(_)===9?(k=!0,(e.bsCount[d]+s)%4===3?(_++,s++,i=!1):i=!0):k=!1,h=s,f.push(e.bMarks[d]),e.bMarks[d]=_;_<A&&(o=e.src.charCodeAt(_),qzt(o));)o===9?h+=4-(h+e.bsCount[d]+(i?1:0))%4:h++,_++;u=_>=A,g.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(k?1:0),m.push(e.sCount[d]),e.sCount[d]=h-s,w.push(e.tShift[d]),e.tShift[d]=_-e.bMarks[d];continue}if(u)break;for(T=!1,a=0,l=S.length;a<l;a++)if(S[a](e,d,n,!0)){T=!0;break}if(T){e.lineMax=d,e.blkIndent!==0&&(f.push(e.bMarks[d]),g.push(e.bsCount[d]),w.push(e.tShift[d]),m.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}f.push(e.bMarks[d]),g.push(e.bsCount[d]),w.push(e.tShift[d]),m.push(e.sCount[d]),e.sCount[d]=-1}for(b=e.blkIndent,e.blkIndent=0,I=e.push("blockquote_open","blockquote",1),I.markup=">",I.map=c=[t,0],e.md.block.tokenize(e,t,d),I=e.push("blockquote_close","blockquote",-1),I.markup=">",e.lineMax=y,e.parentType=v,c[1]=e.line,a=0;a<w.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=w[a],e.sCount[a+t]=m[a],e.bsCount[a+t]=g[a];return e.blkIndent=b,!0},eZt=Mi.isSpace,tZt=function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(i=e.src.charCodeAt(l++),i!==42&&i!==45&&i!==95))return!1;for(o=1;l<u;){if(a=e.src.charCodeAt(l++),a!==i&&!eZt(a))return!1;a===i&&o++}return o<3?!1:(r||(e.line=t+1,s=e.push("hr","hr",0),s.map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i))),!0)},Ake=Mi.isSpace;function Pse(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=e.src.charCodeAt(r),!Ake(o))?-1:r}function Dse(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o||(n=e.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=e.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=e.src.charCodeAt(i),!Ake(n))?-1:i}function nZt(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}var rZt=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,g,b,v,m,w,k,T,S,I,O,y,_,A,R,D,C,x,P=t,$=!1,L=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(r&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&($=!0),(_=Dse(e,P))>=0){if(c=!0,R=e.bMarks[P]+e.tShift[P],v=Number(e.src.slice(R,_-1)),$&&v!==1)return!1}else if((_=Pse(e,P))>=0)c=!1;else return!1;if($&&e.skipSpaces(_)>=e.eMarks[P])return!1;if(r)return!0;for(b=e.src.charCodeAt(_-1),g=e.tokens.length,c?(x=e.push("ordered_list_open","ol",1),v!==1&&(x.attrs=[["start",v]])):x=e.push("bullet_list_open","ul",1),x.map=f=[P,0],x.markup=String.fromCharCode(b),A=!1,C=e.md.block.ruler.getRules("list"),T=e.parentType,e.parentType="list";P<n;){for(y=_,m=e.eMarks[P],u=w=e.sCount[P]+_-(e.bMarks[P]+e.tShift[P]);
  1486. `:"")+e.getLines(t+1,a,e.tShift[t],!0)+(o&&o.trim()?o:""),d.map=[t,e.line],d.markup="$$",!0},EQt=(e,t)=>{const n=i=>{if(t.katexRef.value){const o=t.katexRef.value.renderToString(i,{throwOnError:!1});return`<span class="${gt}-katex-inline" data-processed>${o}</span>`}else return`<span class="${gt}-katex-inline">${i}</span>`},r=(i,o)=>{if(t.katexRef.value){const a=t.katexRef.value.renderToString(i,{throwOnError:!1,displayMode:!0});return`<p class="${gt}-katex-block" data-line=${o} data-processed>${a}</p>`}else return`<p class="${gt}-katex-block" data-line=${o}>${i}</p>`};e.inline.ruler.after("escape","math_inline",IQt),e.block.ruler.after("blockquote","math_block",kQt,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=(i,o)=>n(i[o].content),e.renderer.rules.math_block=(i,o)=>r(i[o].content,i[o].map[0])+`
  1487. `},_Qt=EQt,TQt=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",i=r.charCodeAt(0),o=r.length;let a="",s="";const l=(c,d,h,f,g)=>{const b=c[d];return b.type==="admonition_open"?(c[d].attrPush(["class",`${gt}-admonition ${gt}-admonition-${b.info}`]),c[d].attrSet("data-line",String(c[d].map[0]))):b.type==="admonition_title_open"&&c[d].attrPush(["class",`${gt}-admonition-title`]),g.renderToken(c,d,h)},u=c=>{const d=c.trim().split(" ",2);s="",a=d[0],d.length>1&&(s=c.substring(a.length+2)),(s===""||!s)&&(s=a)};e.block.ruler.before("code","admonition",(c,d,h,f)=>{let g,b,v,m=!1,w=c.bMarks[d]+c.tShift[d],k=c.eMarks[d];if(i!==c.src.charCodeAt(w))return!1;for(g=w+1;g<=k&&r[(g-w)%o]===c.src[g];g++);const T=Math.floor((g-w)/o);if(T!==n)return!1;g-=(g-w)%o;const S=c.src.slice(w,g),I=c.src.slice(g,k);if(u(I),f)return!0;for(b=d;b++,!(b>=h||(w=c.bMarks[b]+c.tShift[b],k=c.eMarks[b],w<k&&c.sCount[b]<c.blkIndent));)if(i===c.src.charCodeAt(w)&&!(c.sCount[b]-c.blkIndent>=4)){for(g=w+1;g<=k&&r[(g-w)%o]===c.src[g];g++);if(!(Math.floor((g-w)/o)<T)&&(g-=(g-w)%o,g=c.skipSpaces(g),!(g<k))){m=!0;break}}const O=c.parentType,y=c.lineMax;return c.parentType="root",c.lineMax=b,v=c.push("admonition_open","div",1),v.markup=S,v.block=!0,v.info=a,v.map=[d,b],v=c.push("admonition_title_open","p",1),v.markup=S+" "+a,v.map=[d,b],v=c.push("inline","",0),v.content=s,v.map=[d,c.line-1],v.children=[],v=c.push("admonition_title_close","p",-1),v.markup=S+" "+a,c.md.block.tokenize(c,d+1,b),v=c.push("admonition_close","div",-1),v.markup=c.src.slice(w,g),v.block=!0,c.parentType=O,c.lineMax=y,c.line=b+(m?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},PQt=TQt,DQt=(e,t)=>{e.renderer.rules.heading_open=(n,r)=>{var i;const o=n[r],a=((i=n[r+1].children)==null?void 0:i.reduce((l,u)=>l+(u.content||""),""))||"",s=o.markup.length;return t.headsRef.value.push({text:a,level:s}),o.map&&o.level===0&&(o.attrSet("data-line",String(o.map[0])),o.attrSet("id",t.mdHeadingId(a,s,t.headsRef.value.length))),e.renderer.renderToken(n,r,t)},e.renderer.rules.heading_close=(n,r,i,o,a)=>a.renderToken(n,r,i)},RQt=DQt,$Qt=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/;function o(u){return u.info?r(u.info).trim():""}function a(u){const c=o(u),[d=null,h=""]=(i.exec(c)||[]).slice(1);return[d,h]}function s(u){const c=o(u);return c?c.split(/(\s+)/g)[0]:""}const l=(u,c,d,h,f)=>{if(u[c].hidden)return"";const[g,b]=a(u[c]);if(g===null)return n(u,c,d,h,f);let v,m,w,k,T="",S="";for(let I=c;I<u.length&&(v=u[I],[m,w]=a(v),m===g);I++)v.info=v.info.replace(i,""),v.hidden=!0,k=I-c>0?"":" checked",T+=`<li><input type="radio" name="label-group-${t.editorId}-${c}"${k}><label for="group-${t.editorId}-${c}-tab-${I-c}" onclick="this.previousElementSibling.click()">${w||s(v)}</label></li>
  1488. `,S+=`<input type="radio" id="group-${t.editorId}-${c}-tab-${I-c}" name="group-${t.editorId}-${c}"${k}>
  1489. `+n(u,I,d,h,f);return`<div class="code-tabs">
  1490. <ul>
  1491. `+T+`</ul>
  1492. `+S+"</div>"};e.renderer.rules.fence=l},MQt=$Qt,LQt=e=>{["paragraph_open","table_open","ordered_list_open","bullet_list_open","blockquote_open","hr","html_block","fence"].forEach(t=>{const n=e.renderer.rules[t];n?e.renderer.rules[t]=(r,i,o,a,s)=>{let l;const u=n(r,i,o,a,s);return r[i].map&&r[i].level===0&&!/^<!--/.test(u)?(l=r[i].map[0],u.replace(/^(<[^>]*)/,`$1 data-line="${l}"`)):u}:e.renderer.rules[t]=(r,i,o,a,s)=>{let l;return r[i].map&&r[i].level===0&&(l=r[i].map[0],r[i].attrSet("data-line",String(l))),s.renderToken(r,i,o)}})},BQt=(e,t)=>{const{editorConfig:n,markdownItConfig:r,markdownItPlugins:i}=ha,o=Ht("editorId"),a=Ht("showCodeRowNumber"),s=Ht("theme"),l=Re([]),u=bQt(e),c=xQt(e),{reRenderRef:d,replaceMermaid:h}=CQt(e),f=ZGt({html:!0,breaks:!0});r(f,{editorId:o});const g=[{type:"katex",plugin:_Qt,options:{katexRef:c}},{type:"image",plugin:QGt,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:PQt,options:{}},{type:"taskList",plugin:aQt,options:{}},{type:"heading",plugin:RQt,options:{mdHeadingId:e.mdHeadingId,headsRef:l}},{type:"codeTabs",plugin:MQt,options:{editorId:o}}];e.noMermaid||g.push({type:"mermaid",plugin:AQt,options:{themeRef:s}}),i(g,{editorId:o}).forEach(T=>{f.use(T.plugin,T.options)});const b=f.options.highlight;f.set({highlight:(T,S,I)=>{if(b){const _=b(T,S,I);if(_)return _}let O;!e.noHighlight&&u.value?u.value.getLanguage(S)?O=u.value.highlight(T,{language:S,ignoreIllegals:!0}).value:O=u.value.highlightAuto(T).value:O=f.utils.escapeHtml(T);const y=a?wat(O.replace(/^\n+|\n+$/g,"")):`<span class="code-block">${O.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${S}" language=${S}>${y}</code></pre>`}}),LQt(f);const v=Re(e.sanitize(f.render(e.modelValue))),m=()=>{$n.emit(o,E3,v.value),e.onHtmlChanged(v.value),e.onGetCatalog(l.value),$n.emit(o,GW,l.value),h()};_n(m);const w=FL(async()=>{l.value=[],v.value=e.sanitize(f.render(e.modelValue)),m()},(n==null?void 0:n.renderDelay)!==void 0?n==null?void 0:n.renderDelay:t?0:500),k=Oe(()=>(e.noKatex||c.value)&&(e.noHighlight||u.value));return Pt([yo(e,"modelValue"),k,d],w),_n(()=>{$n.on(o,{name:Axe,callback(){$n.emit(o,GW,l.value)}})}),{html:v}},FQt=BQt,Xke={modelValue:{type:String,default:""},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function}},NQt={...Xke,onChange:{type:Function,default:()=>{}},placeholder:{type:String,default:""},scrollAuto:{type:Boolean},autofocus:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},maxlength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function,default:()=>{}},onFocus:{type:Function,default:()=>{}},noPrettier:{type:Boolean},completions:{type:Array},catalogVisible:{type:Boolean},theme:{type:String,default:"light"},onInput:{type:Function},onDrop:{type:Function,default:()=>{}},inputBoxWitdh:{type:String},onInputBoxWitdhChange:{type:Function}},Yke=ft({name:"ContentPreview",props:Xke,setup(e){const t=Ht("editorId"),n=Ht("previewTheme"),r=Ht("showCodeRowNumber"),{html:i}=FQt(e,e.previewOnly);return vQt(e,i),fQt(e,i),()=>xe(un,null,[xe("div",{id:`${t}-preview-wrapper`,class:`${gt}-preview-wrapper`,"data-show":e.setting.preview,key:"content-preview-wrapper"},[xe("article",{id:`${t}-preview`,class:[`${gt}-preview`,`${n==null?void 0:n.value}-theme`,r&&`${gt}-scrn`],innerHTML:i.value},null)]),!e.previewOnly&&xe("div",{id:`${t}-html-wrapper`,class:`${gt}-preview-wrapper`,"data-show":e.setting.htmlPreview,key:"html-preview-wrapper"},[xe("div",{class:`${gt}-html`},[i.value])])])}}),VQt=(e,t)=>{const{editorId:n}=e,r=Br({buildFinished:!1,html:""});Pt(()=>e.modelValue,()=>{r.buildFinished=!1}),_n(()=>{$n.on(n,{name:E3,callback(i){r.buildFinished=!0,r.html=i}}),$n.on(n,{name:NL,call
  1493. ${v}
  1494. \`\`\`
  1495. `,c=3,d=3+m.length-u.length;break}case"table":{u="|";const{selectedShape:v={x:1,y:1}}=n,{x:m,y:w}=v;for(let k=0;k<=w;k++)u+=" col |";u+=`
  1496. |`;for(let k=0;k<=w;k++)u+=" - |";for(let k=0;k<=m;k++){u+=`
  1497. |`;for(let T=0;T<=w;T++)u+=" content |"}c=2,d=5-u.length;break}case"link":{const{desc:v,url:m}=n;u=`[${v}](${m})`,h=!1;break}case"image":{const{desc:v,url:m,urls:w}=n;w instanceof Array?u=w.reduce((k,T)=>k+`![${v}](${T})
  1498. `,""):u=`![${v}](${m})
  1499. `,h=!1;break}case"flow":{u=`\`\`\`mermaid
  1500. ${(b==null?void 0:b.flow)||`flowchart TD
  1501. Start --> Stop`}
  1502. \`\`\`
  1503. `,c=3,d=10-u.length;break}case"sequence":{u=`\`\`\`mermaid
  1504. ${(b==null?void 0:b.sequence)||`sequenceDiagram
  1505. A->>B: hello!
  1506. B-->>A: hi!
  1507. A-)B: bye!`}
  1508. \`\`\`
  1509. `,c=3,d=10-u.length;break}case"gantt":{u=`\`\`\`mermaid
  1510. ${(b==null?void 0:b.gantt)||`gantt
  1511. title A Gantt Diagram
  1512. dateFormat YYYY-MM-DD
  1513. section Section
  1514. A task :a1, 2014-01-01, 30d
  1515. Another task :after a1, 20d`}
  1516. \`\`\`
  1517. `,c=3,d=10-u.length;break}case"class":{u=`\`\`\`mermaid
  1518. ${(b==null?void 0:b.class)||`classDiagram
  1519. class Animal
  1520. Vehicle <|-- Car`}
  1521. \`\`\`
  1522. `,c=3,d=10-u.length;break}case"state":{u=`\`\`\`mermaid
  1523. ${(b==null?void 0:b.state)||`stateDiagram-v2
  1524. s1 --> s2`}
  1525. \`\`\`
  1526. `,c=3,d=10-u.length;break}case"pie":{u=`\`\`\`mermaid
  1527. ${(b==null?void 0:b.pie)||`pie title Pets adopted by volunteers
  1528. "Dogs" : 386
  1529. "Cats" : 85
  1530. "Rats" : 15`}
  1531. \`\`\`
  1532. `,c=3,d=10-u.length;break}case"relationship":{u=`\`\`\`mermaid
  1533. ${(b==null?void 0:b.relationship)||`erDiagram
  1534. CAR ||--o{ NAMED-DRIVER : allows
  1535. PERSON ||--o{ NAMED-DRIVER : is`}
  1536. \`\`\`
  1537. `,c=3,d=10-u.length;break}case"journey":{u=`\`\`\`mermaid
  1538. ${(b==null?void 0:b.journey)||`journey
  1539. title My working day
  1540. section Go to work
  1541. Make tea: 5: Me
  1542. Go upstairs: 3: Me
  1543. Do work: 1: Me, Cat
  1544. section Go home
  1545. Go downstairs: 5: Me
  1546. Sit down: 5: Me`}
  1547. \`\`\`
  1548. `,c=3,d=10-u.length;break}case"katexInline":{u="$$",c=1,d=-1;break}case"katexBlock":{u=`$$
  1549. $$
  1550. `,c=3,d=-4;break}case"universal":{const{generate:v}=n,m=v(g);u=m.targetValue,h=m.select||!0,c=m.deviationStart||0,d=m.deviationEnd||0}}return{text:u,options:{select:h,deviationStart:c,deviationEnd:d,replaceAll:f}}},SUt="#e5c07b",qse="var(--md-color)",AUt="#56b6c2",IUt="#ffffff",ik="var(--md-color)",Jse="#e5c07b",kUt="#e5c07b",EUt="var(--md-color)",ele="#d19a66",_Ut="#c678dd",TUt="#21252b",PUt="#2c313a",tle="var(--md-bk-color)",zN="var(--md-bk-color)",DUt="#ceedfa33",nle="#528bff",RUt=ar.theme({"&":{color:ik,backgroundColor:tle},".cm-content":{caretColor:nle},".cm-cursor, .cm-dropCursor":{borderLeftColor:nle},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:DUt},".cm-panels":{backgroundColor:TUt,color:ik},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:tle,color:ik,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:PUt},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"1px solid var(--md-border-color)",backgroundColor:zN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:zN,borderBottomColor:zN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{color:ik}}},{dark:!0}),$Ut=Lx.define([{tag:Ne.keyword,color:_Ut},{tag:[Ne.name,Ne.deleted,Ne.character,Ne.propertyName,Ne.macroName],color:qse},{tag:[Ne.function(Ne.variableName),Ne.labelName],color:kUt},{tag:[Ne.color,Ne.constant(Ne.name),Ne.standard(Ne.name)],color:ele},{tag:[Ne.definition(Ne.name),Ne.separator],color:ik},{tag:[Ne.typeName,Ne.className,Ne.number,Ne.changed,Ne.annotation,Ne.modifier,Ne.self,Ne.namespace],color:SUt},{tag:[Ne.operator,Ne.operatorKeyword,Ne.url,Ne.escape,Ne.regexp,Ne.link,Ne.special(Ne.string)],color:AUt},{tag:[Ne.meta,Ne.comment],color:Jse},{tag:Ne.strong,fontWeight:"bold"},{tag:Ne.emphasis,fontStyle:"italic"},{tag:Ne.strikethrough,textDecoration:"line-through"},{tag:Ne.link,color:Jse,textDecoration:"underline"},{tag:Ne.heading,fontWeight:"bold",color:qse},{tag:[Ne.atom,Ne.bool,Ne.special(Ne.variableName)],color:ele},{tag:[Ne.processingInstruction,Ne.string,Ne.inserted],color:EUt},{tag:Ne.invalid,color:IUt}]),rle=[RUt,_X($Ut)],MUt="#e5c07b",ile="#3f4a54",LUt="#56b6c2",BUt="#fff",ok="#3f4a54",ole="#2d8cf0",FUt="#2d8cf0",NUt="#3f4a54",ale="#d19a66",VUt="#c678dd",jUt="#21252b",WUt="#ceedfa33",sle="var(--md-bk-color)",ZN="var(--md-bk-color)",HUt="#bad5fa",lle="#3f4a54",zUt=ar.theme({"&":{color:ok,backgroundColor:sle},".cm-content":{caretColor:lle},".cm-cursor, .cm-dropCursor":{borderLeftColor:lle},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:HUt},".cm-panels":{backgroundColor:jUt,color:ok},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:sle,color:ok,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:WUt},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"1px solid
  1551. | - | - | - |
  1552. | content | content | content |
  1553. | content | content | content |`},{label:"$",type:"text",apply:GD("$","","","$","type")},{label:"$$",type:"text",apply:GD("$$","",`
  1554. `,`
  1555. $$`,"title")},...["note","abstract","info","tip","success","question","warning","failure","danger","bug","example","quote","hint","caution","error","attention"].map(i=>({label:`!!! ${i}`,type:"text",apply:GD("!!!",` ${i}`," Title",`
  1556. !!!`,"title")}))]}};return Pdt({override:e?[t,...e]:[t]})},dle=GUt,Lw=e=>{const t=new $v;return n=>(t.get(e.state)?e.dispatch({effects:t.reconfigure(n)}):e.dispatch({effects:oo.appendConfig.of(t.of(n))}),!0)};let QUt=class{constructor(e){Om(this,"view"),Om(this,"maxLength",Number.MAX_SAFE_INTEGER),Om(this,"toggleTabSize"),Om(this,"togglePlaceholder"),Om(this,"setExtensions"),Om(this,"toggleDisabled"),Om(this,"toggleReadOnly"),Om(this,"toggleMaxlength"),this.view=e,this.toggleTabSize=Lw(this.view),this.togglePlaceholder=Lw(this.view),this.setExtensions=Lw(this.view),this.toggleDisabled=Lw(this.view),this.toggleReadOnly=Lw(this.view),this.toggleMaxlength=Lw(this.view)}getValue(){return this.view.state.doc.toString()}setValue(e,t=0,n=this.view.state.doc.length){this.view.dispatch({changes:{from:t,to:n,insert:e}})}getSelectedText(){const{from:e,to:t}=this.view.state.selection.main;return this.view.state.sliceDoc(e,t)}replaceSelectedText(e,t={select:!0,deviationStart:0,deviationEnd:0,replaceAll:!1},n){try{if(t.replaceAll){if(this.setValue(e),e.length>this.maxLength)throw new Error("The input text is too long");return}if(this.view.state.doc.length-this.getSelectedText().length+e.length>this.maxLength)throw new Error("The input text is too long");const{from:r}=this.view.state.selection.main;if(this.view.dispatch(this.view.state.replaceSelection(e)),t.select){const i=r+e.length+t.deviationEnd;this.view.dispatch({selection:tn.create([tn.range(r+t.deviationStart,i),tn.cursor(i)],1)})}this.view.focus()}catch(r){if(r.message==="The input text is too long")$n.emit(n,k1,{name:"overlength",message:r.message,data:e});else throw r}}setTabSize(e){this.toggleTabSize([Ai.tabSize.of(e),Mx.of(" ".repeat(e))])}setPlaceholder(e){this.togglePlaceholder(zlt(e))}focus(e){if(this.view.focus(),!e)return;let t=0,n=0,r=0;switch(e){case"start":break;case"end":{t=n=r=this.getValue().length;break}default:t=e.rangeAnchor||e.cursorPos,n=e.rangeHead||e.cursorPos,r=e.cursorPos}this.view.dispatch({scrollIntoView:!0,selection:tn.create([tn.range(t,n),tn.cursor(r)],1)})}setDisabled(e){this.toggleDisabled([ar.editable.of(!e)])}setReadOnly(e){this.toggleReadOnly([Ai.readOnly.of(e)])}setMaxLength(e){this.maxLength=e,this.toggleMaxlength([Ai.changeFilter.of(t=>t.newDoc.length<=e)])}};const UUt=e=>{const t=Ht("editorId");return n=>{if(!n.clipboardData)return;if(n.clipboardData.files.length>0){const{files:i}=n.clipboardData;$n.emit(t,VL,Array.from(i).filter(o=>/image\/.*/.test(o.type))),n.preventDefault();return}if(e.autoDetectCode&&n.clipboardData.types.includes("vscode-editor-data")){const i=JSON.parse(n.clipboardData.getData("vscode-editor-data"));$n.emit(t,Eo,"code",{mode:i.mode,text:n.clipboardData.getData("text/plain")}),n.preventDefault();return}const r=n.clipboardData.getData("text/plain");e.maxlength&&r.length+e.modelValue.length>e.maxlength&&$n.emit(t,k1,{name:"overlength",message:"The input text is too long",data:r})}},XUt=UUt,YUt=e=>{const t=Ht("editorId");_n(()=>{$n.on(t,{name:Oxe,callback(n){var r;(r=e.value)==null||r.focus(n)}})})},KUt=YUt,qUt=(e,t)=>[{key:"Ctrl-b",mac:"Cmd-b",run:()=>($n.emit(e,Eo,"bold"),!0)},{key:"Ctrl-d",mac:"Cmd-d",run:WAe,preventDefault:!0},{key:"Ctrl-s",mac:"Cmd-s",run:n=>($n.emit(e,NL,n.state.doc.toString()),!0),shift:()=>($n.emit(e,Eo,"strikeThrough"),!0)},{key:"Ctrl-u",mac:"Cmd-u",run:()=>($n.emit(e,Eo,"underline"),!0),shift:()=>($n.emit(e,Eo,"unorderedList"),!0)},{key:"Ctrl-i",mac:"Cmd-i",run:()=>($n.emit(e,Eo,"italic"),!0),shift:()=>($n.emit(e,ZW,"image"),!0)},{key:"Ctrl-1",mac:"Cmd-1",run:()=>($n.emit(e,Eo,"h1"),!0)},{key:"Ctrl-2",mac:"Cmd-2",run:()=>($n.emit(e,Eo,"h2"),!0)},{key:"Ctrl-3",mac:"Cmd-3",run:()=>($n.emit(e,Eo,"h3"),!0)},{key:"Ctrl-4",mac:"Cmd-4",run:()=>($n.emit(e,Eo,"h4"),!0)},{key:"Ctrl-5",mac:"Cmd-5",run:()=>($n.emit(e,Eo,"h5"),!0)},{key:"Ctrl-6",mac:"Cmd-6",run:()=>($n.emit(e,Eo,"h6"),!0)},{key:"Ctrl-ArrowUp",mac:"Cmd-ArrowUp",run:()=>($n.emit(e,Eo,"sup"),!0)},{key:"Ctrl-ArrowDown",mac:"Cmd-ArrowDown",run:()=>($n.emit(e,Eo,"sub"),!0)},{key:"Ctrl-o",mac:"Cmd-o",run:()=>($n.emit(e,Eo,"orderedList"),!0)},{ke
  1557. `),t),`
  1558. `);return e},TYt=function(e,t){Gc(t)&&"cause"in t&&Tl(e,"cause",t.cause)},hg={},PYt=gl("iterator"),DYt=Array.prototype,m2e={};m2e[gl("toStringTag")]="z";var CY=String(m2e)==="[object z]",RYt=gl("toStringTag"),$Yt=Mr.Object,MYt=Cb(function(){return arguments}())=="Arguments",Z_=CY?Cb:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=$Yt(e),RYt))=="string"?n:MYt?Cb(t):(r=Cb(t))=="Object"&&Ws(t.callee)?"Arguments":r},LYt=gl("iterator"),Tle=function(e){if(e!=null)return T5(e,LYt)||T5(e,"@@iterator")||hg[Z_(e)]},BYt=Mr.TypeError,Ple=function(e,t,n){var r,i;ac(e);try{if(!(r=T5(e,"return"))){if(t==="throw")throw n;return n}r=ec(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return ac(r),n},FYt=Mr.TypeError,J3=function(e,t){this.stopped=e,this.result=t},Dle=J3.prototype,NYt=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=vY(t,c),b=function(m){return r&&Ple(r,"normal",m),new J3(!0,m)},v=function(m){return d?(ac(m),f?g(m[0],m[1],b):g(m[0],m[1])):f?g(m,b):g(m)};if(h)r=e;else{if(!(i=Tle(e)))throw FYt(ez(e)+" is not iterable");if(function(m){return m!==void 0&&(hg.Array===m||DYt[PYt]===m)}(i)){for(o=0,a=H_(e);a>o;o++)if((s=v(e[o]))&&hE(Dle,s))return s;return new J3(!1)}r=function(m,w){var k=arguments.length<2?Tle(m):w;if(mY(k))return ac(ec(k,m));throw BYt(ez(m)+" is not iterable")}(e,i)}for(l=r.next;!(u=ec(l,r)).done;){try{s=v(u.value)}catch(m){Ple(r,"throw",m)}if(typeof s=="object"&&s&&hE(Dle,s))return s}return new J3(!1)},VYt=Mr.String,pE=function(e){if(Z_(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return VYt(e)},jYt=function(e,t){return e===void 0?arguments.length<2?"":t:pE(e)},WYt=!mu(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",th(1,7)),e.stack!==7)}),HYt=gl("toStringTag"),M5=Mr.Error,zYt=[].push,fE=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=hE(XN,this);R5?n=R5(new M5(void 0),i?D5(this):XN):(n=i?this:Sg(XN),Tl(n,HYt,"Error")),Tl(n,"message",jYt(t,"")),WYt&&Tl(n,"stack",_Yt(n.stack,1)),TYt(n,r);var o=[];return NYt(e,zYt,{that:o}),Tl(n,"errors",o),n};R5?R5(fE,M5):function(e,t){for(var n=bYt(t),r=M0.f,i=lB.f,o=0;o<n.length;o++){var a=n[o];ui(e,a)||r(e,a,i(t,a))}}(fE,M5);var XN=fE.prototype=Sg(M5.prototype,{constructor:th(1,fE),message:th(1,""),name:th(1,"AggregateError")});Kf({global:!0},{AggregateError:fE});var ZYt=Co(Function.toString);Ws(Bv.inspectSource)||(Bv.inspectSource=function(e){return ZYt(e)});var L5,Qk,B5,v2e=Bv.inspectSource,Rle=Mr.WeakMap,GYt=Ws(Rle)&&/native code/.test(v2e(Rle)),az=Mr.TypeError,QYt=Mr.WeakMap;if(GYt||Bv.state){var Ay=Bv.state||(Bv.state=new QYt),UYt=Co(Ay.get),$le=Co(Ay.has),XYt=Co(Ay.set);L5=function(e,t){if($le(Ay,e))throw new az("Object already initialized");return t.facade=e,XYt(Ay,e,t),t},Qk=function(e){return UYt(Ay,e)||{}},B5=function(e){return $le(Ay,e)}}else{var Bw=uB("state");z_[Bw]=!0,L5=function(e,t){if(ui(e,Bw))throw new az("Object already initialized");return t.facade=e,Tl(e,Bw,t),t},Qk=function(e){return ui(e,Bw)?e[Bw]:{}},B5=function(e){return ui(e,Bw)}}var Iv,Mle,Lle,zx={set:L5,get:Qk,has:B5,enforce:function(e){return B5(e)?Qk(e):L5(e,{})},getterFor:function(e){return function(t){var n;if(!Gc(t)||(n=Qk(t)).type!==e)throw az("Incompatible receiver, "+e+" required");return n}}},y2e=Function.prototype,YYt=du&&Object.getOwnPropertyDescriptor,YN=ui(y2e,"name"),KYt={EXISTS:YN,PROPER:YN&&(function(){}).name==="something",CONFIGURABLE:YN&&(!du||du&&YYt(y2e,"name").configurable)},F5=function(e,t,n,r){Tl(e,t,n)},sz=gl("iterator"),b2e=!1;[].keys&&("next"in(Lle=[].keys())?(Mle=D5(D5(Lle)))!==Object.prototype&&(Iv=Mle):b2e=!0);var qYt=Iv==null||mu(function(){var e={};return Iv[sz].call(e)!==e});Iv=qYt?{}:Sg(Iv),Ws(Iv[sz])||F5(Iv,sz,function(){return this});var w2e={IteratorPrototype:Iv,BUGGY_SAFARI_ITERATORS:b2e},JYt=CY?{}.toString:function(){return"[object "+Z_(this)+"]"},eKt=M0.f,Ble=gl("toStringTag"),N5=function(e,t,n,r){if(e){var i=n?e:e.prototype;ui(i,Bl
  1559. `)&&e.flags==="s")}),kqt=kr.RegExp,Eqt=xs(function(){var e=kqt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),_qt=o1.get,Tqt=AY("native-string-replace",String.prototype.replace),z5=RegExp.prototype.exec,mz=z5,Pqt=Gi("".charAt),Dqt=Gi("".indexOf),Rqt=Gi("".replace),o6=Gi("".slice),a6=(i6=/b*/g,Ns(z5,iue=/a/,"a"),Ns(z5,i6,"a"),iue.lastIndex!==0||i6.lastIndex!==0),oue=Cqt.BROKEN_CARET,s6=/()??/.exec("")[1]!==void 0;(a6||s6||oue||Iqt||Eqt)&&(mz=function(e){var t,n,r,i,o,a,s,l=this,u=_qt(l),c=Ab(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Ns(mz,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=oue&&l.sticky,g=Ns(yqt,l),b=l.source,v=0,m=c;if(f&&(g=Rqt(g,"y",""),Dqt(g,"g")===-1&&(g+="g"),m=o6(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Pqt(c,l.lastIndex-1)!==`
  1560. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),s6&&(n=new RegExp("^"+b+"$(?!\\s)",g)),a6&&(r=l.lastIndex),i=Ns(z5,f?n:l,m),f?i?(i.input=o6(i.input,v),i[0]=o6(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:a6&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),s6&&i&&i.length>1&&Ns(Tqt,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=X_(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var Z5=mz;U_({target:"RegExp",proto:!0,forced:/./.exec!==Z5},{exec:Z5});var $qt=Vl("species"),aue=RegExp.prototype,Mqt=Gi("".charAt),sue=Gi("".charCodeAt),Lqt=Gi("".slice),lue=function(e){return function(t,n){var r,i,o=Ab(cB(t)),a=$Y(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=sue(o,a))<55296||r>56319||a+1===s||(i=sue(o,a+1))<56320||i>57343?e?Mqt(o,a):r:e?Lqt(o,a,a+2):i-56320+(r-55296<<10)+65536}},R2e={codeAt:lue(!1),charAt:lue(!0)},Bqt=R2e.charAt,Fqt=function(e,t,n){return t+(n?Bqt(e,t).length:1)},Nqt=kr.TypeError,uue=function(e,t){var n=e.exec;if(us(n)){var r=Ns(n,e,t);return r!==null&&sc(r),r}if(xb(e)==="RegExp")return Ns(Z5,e,t);throw Nqt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var i=Vl(e),o=!xs(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!xs(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[$qt]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Gi(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=Gi(u),b=c.exec;return b===Z5||b===aue.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});a1(String.prototype,e,l[0]),a1(aue,i,l[1])}})("match",function(e,t,n){return[function(r){var i=cB(this),o=r==null?void 0:gE(r,e);return o?Ns(o,r,i):new RegExp(r)[e](Ab(i))},function(r){var i=sc(this),o=Ab(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return uue(i,o);var s=i.unicode;i.lastIndex=0;for(var l,u=[],c=0;(l=uue(i,o))!==null;){var d=Ab(l[0]);u[c]=d,d===""&&(i.lastIndex=Fqt(o,k2e(i.lastIndex),s)),c++}return c===0?null:u}]}),U_({global:!0},{globalThis:kr});var Vqt=!xs(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),cue=PY("IE_PROTO"),vz=kr.Object,jqt=vz.prototype,mE=Vqt?vz.getPrototypeOf:function(e){var t=IY(e);if(hu(t,cue))return t[cue];var n=t.constructor;return us(n)&&t instanceof n?n.prototype:t instanceof vz?jqt:null},Wqt=kr.String,Hqt=kr.TypeError,zO=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return sc(r),function(o){if(typeof o=="object"||us(o))return o;throw Hqt("Can't set "+Wqt(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),zqt=kr.Array,Zqt=Math.max,Gqt=Gi("".replace),Qqt=Gi("".split),Uqt=Gi([].join),yz=String(Error("zxcasd").stack),$2e=/\n\s*at [^:]*:[^\n]*/,Xqt=$2e.test(yz),Yqt=/@[^\n]*\n/.test(yz)&&!/zxcasd/.test(yz),Kqt=function(e,t){if(typeof e!="string")return e;if(Xqt)for(;t--;)e=Gqt(e,$2e,"");else if(Yqt)return Uqt(function(n,r,i){for(var o,a,s,l,u=dB(n),c=gz(r,u),d=gz(u,u),h=zqt(Zqt(d-c,0)),f=0;c<d;c++,f++)o=h,a=f,s=n[c],l=void 0,(l=kY(a))in o?Gx.f(o,l,Fv(0,s)):o[l]=s;return h.length=f,h}(Qqt(e,`
  1561. `),t),`
  1562. `);return e},qqt=function(e,t){Op(t)&&"cause"in t&&au(e,"cause",t.cause)},due=Gi(Gi.bind),M2e=function(e,t){return xY(e),t===void 0?e:due?due(e,t):function(){return e.apply(t,arguments)}},ZO={},Jqt=Vl("iterator"),eJt=Array.prototype,tJt=Vl("iterator"),hue=function(e){if(e!=null)return gE(e,tJt)||gE(e,"@@iterator")||ZO[hB(e)]},nJt=kr.TypeError,pue=function(e,t,n){var r,i;sc(e);try{if(!(r=gE(e,"return"))){if(t==="throw")throw n;return n}r=Ns(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return sc(r),n},rJt=kr.TypeError,n$=function(e,t){this.stopped=e,this.result=t},fue=n$.prototype,iJt=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=M2e(t,c),b=function(m){return r&&pue(r,"normal",m),new n$(!0,m)},v=function(m){return d?(sc(m),f?g(m[0],m[1],b):g(m[0],m[1])):f?g(m,b):g(m)};if(h)r=e;else{if(!(i=hue(e)))throw rJt(hz(e)+" is not iterable");if(function(m){return m!==void 0&&(ZO.Array===m||eJt[Jqt]===m)}(i)){for(o=0,a=dB(e);a>o;o++)if((s=v(e[o]))&&V5(fue,s))return s;return new n$(!1)}r=function(m,w){var k=arguments.length<2?hue(m):w;if(xY(k))return sc(Ns(k,m));throw nJt(hz(m)+" is not iterable")}(e,i)}for(l=r.next;!(u=Ns(l,r)).done;){try{s=v(u.value)}catch(m){pue(r,"throw",m)}if(typeof s=="object"&&s&&V5(fue,s))return s}return new n$(!1)},oJt=function(e,t){return e===void 0?arguments.length<2?"":t:Ab(e)},aJt=!xs(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fv(1,7)),e.stack!==7)}),sJt=Vl("toStringTag"),G5=kr.Error,lJt=[].push,vE=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=V5(l6,this);zO?n=zO(new G5(void 0),i?mE(this):l6):(n=i?this:X_(l6),au(n,sJt,"Error")),au(n,"message",oJt(t,"")),aJt&&au(n,"stack",Kqt(n.stack,1)),qqt(n,r);var o=[];return iJt(e,lJt,{that:o}),au(n,"errors",o),n};zO?zO(vE,G5):_2e(vE,G5);var l6=vE.prototype=X_(G5.prototype,{constructor:Fv(1,vE),message:Fv(1,""),name:Fv(1,"AggregateError")});U_({global:!0},{AggregateError:vE});var bz=Vl("unscopables"),wz=Array.prototype;wz[bz]==null&&Gx.f(wz,bz,{configurable:!0,value:X_(null)});var Ib,gue,mue,u6=function(e){wz[bz][e]=!0},Cz=Vl("iterator"),L2e=!1;[].keys&&("next"in(mue=[].keys())?(gue=mE(mE(mue)))!==Object.prototype&&(Ib=gue):L2e=!0);var uJt=Ib==null||xs(function(){var e={};return Ib[Cz].call(e)!==e});uJt&&(Ib={}),us(Ib[Cz])||a1(Ib,Cz,function(){return this});var FY={IteratorPrototype:Ib,BUGGY_SAFARI_ITERATORS:L2e},cJt=Gx.f,vue=Vl("toStringTag"),yue=function(e,t,n){e&&!hu(e=n?e:e.prototype,vue)&&cJt(e,vue,{configurable:!0,value:t})},dJt=FY.IteratorPrototype,hJt=function(){return this},pJt=RY.PROPER,fJt=RY.CONFIGURABLE,bue=FY.IteratorPrototype,c6=FY.BUGGY_SAFARI_ITERATORS,TA=Vl("iterator"),gJt=function(){return this},B2e=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=X_(dJt,{next:Fv(+!k,w)}),yue(v,T,!1),ZO[T]=hJt})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!c6&&v in h)return h[v];switch(v){case"keys":case"values":case"entries":return function(){return new n(this,v)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,h=e.prototype,f=h[TA]||h["@@iterator"]||i&&h[i],g=!c6&&f||u(i),b=t=="Array"&&h.entries||f;return b&&(s=mE(b.call(new e)))!==Object.prototype&&s.next&&(mE(s)!==bue&&(zO?zO(s,bue):us(s[TA])||a1(s,TA,gJt)),yue(s,c,!0)),pJt&&i=="values"&&f&&f.name!=="values"&&(fJt?au(h,"name","values"):(d=!0,g=function(){return Ns(f,this)})),i&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||U_({target:t,proto:!0,forced:c6||d},l)),h[TA]!==g&&a1(h,TA,g,{name:i}),ZO[t]=g,l},mJt=o1.set,vJt=o1.getterFor("Array Iterator"),ak=B2e(Array,"Array",function(e,t){mJt(this,{type:"Array Iterator",target:Zx(e),index:0,kind:t})},function(){var e=vJt(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");ZO.Arguments=ZO.Array,u6("keys"),u6("values"),u6("entries");var yJt=R2e.charAt,bJt=o1.set,wJt=o1.getterFor("String Iterator");B2e(String,"String",funct
  1563. Sorry, wangEditor V5+ versions do not support IE browser.`),Oue(),xue()):global&&!((d6=global.navigator)===null||d6===void 0)&&d6.userAgent.match("QQBrowser")&&(Oue(),xue());function Oue(){typeof globalThis>"u"&&(window.globalThis=window)}function xue(){fKt===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Sue,U5=Array.isArray||function(e){return Cb(e)=="Array"},V2e=function(){},CJt=[],j2e=Wx("Reflect","construct"),NY=/^\s*(?:class|function)\b/,OJt=Co(NY.exec),xJt=!NY.exec(V2e),PA=function(e){if(!Ws(e))return!1;try{return j2e(V2e,CJt,e),!0}catch{return!1}},SJt=!j2e||mu(function(){var e;return PA(PA.call)||!PA(Object)||!PA(function(){e=!0})||e})?function(e){if(!Ws(e))return!1;switch(Z_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xJt||!!OJt(NY,v2e(e))}:PA,AJt=gl("species"),Aue=Mr.Array,W2e=function(e,t){return new(function(n){var r;return U5(n)&&(r=n.constructor,(SJt(r)&&(r===Aue||U5(r.prototype))||Gc(r)&&(r=r[AJt])===null)&&(r=void 0)),r===void 0?Aue:r}(e))(t===0?0:t)},IJt=gl("species"),H2e=gl("isConcatSpreadable"),Iue=Mr.TypeError,kJt=_5>=51||!mu(function(){var e=[];return e[H2e]=!1,e.concat()[0]!==e}),EJt=(Sue="concat",_5>=51||!mu(function(){var e=[];return(e.constructor={})[IJt]=function(){return{foo:1}},e[Sue](Boolean).foo!==1})),_Jt=function(e){if(!Gc(e))return!1;var t=e[H2e];return t!==void 0?!!t:U5(e)};Kf({target:"Array",proto:!0,forced:!kJt||!EJt},{concat:function(e){var t,n,r,i,o,a=j_(this),s=W2e(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(_Jt(o=t===-1?a:arguments[t])){if(l+(i=H_(o))>9007199254740991)throw Iue("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&iz(s,l,o[n])}else{if(l>=9007199254740991)throw Iue("Maximum allowed index exceeded");iz(s,l++,o)}return s.length=l,s}});var kue=bY.f,Eue=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],z2e={f:function(e){return Eue&&Cb(e)=="Window"?function(t){try{return kue(t)}catch{return f2e(Eue)}}(e):kue(af(e))}},TJt=Co([].slice),VY={f:gl},PJt=M0.f,Sa=function(e){var t=Gu.Symbol||(Gu.Symbol={});ui(t,e)||PJt(t,e,{value:VY.f(e)})},_ue=Co([].push),Am=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=j_(l),b=l2e(g),v=vY(u,c),m=H_(b),w=0,k=d||W2e,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:_ue(T,h)}else switch(e){case 4:return!1;case 7:_ue(T,h)}return o?-1:r||i?i:T}},pB={forEach:Am(0),map:Am(1),filter:Am(2),some:Am(3),every:Am(4),find:Am(5),findIndex:Am(6),filterReject:Am(7)}.forEach,nu=uB("hidden"),Tue=gl("toPrimitive"),DJt=zx.set,Pue=zx.getterFor("Symbol"),Gd=Object.prototype,vv=Mr.Symbol,kv=vv&&vv.prototype,Due=Mr.TypeError,m6=Mr.QObject,DA=Wx("JSON","stringify"),Z2e=lB.f,yv=M0.f,G2e=z2e.f,RJt=pY.f,Q2e=Co([].push),Ag=P1("symbols"),Y_=P1("op-symbols"),v6=P1("string-to-symbol-registry"),y6=P1("symbol-to-string-registry"),$Jt=P1("wks"),b6=!m6||!m6.prototype||!m6.prototype.findChild,Oz=du&&mu(function(){return Sg(yv({},"a",{get:function(){return yv(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=Z2e(Gd,t);r&&delete Gd[t],yv(e,t,n),r&&e!==Gd&&yv(Gd,t,r)}:yv,w6=function(e,t){var n=Ag[e]=Sg(kv);return DJt(n,{type:"Symbol",tag:e,description:t}),du||(n.description=t),n},X5=function(e,t,n){e===Gd&&X5(Y_,t,n),ac(e);var r=Hx(t);return ac(n),ui(Ag,r)?(n.enumerable?(ui(e,nu)&&e[nu][r]&&(e[nu][r]=!1),n=Sg(n,{enumerable:th(0,!1)})):(ui(e,nu)||yv(e,nu,th(1,{})),e[nu][r]=!0),Oz(e,r,n)):yv(e,r,n)},Rue=function(e,t){ac(e);var n=af(t),r=wY(n).concat(xz(n));return pB(r,function(i){du&&!ec(U2e,n,i)||X5(e,i,n[i])}),e},U2e=function(e){var t=Hx(e),n=ec(RJt,this,t);return!(this===Gd&&ui(Ag,t)&&!ui(Y_,t))&&(!(n||!ui(this,t)||!ui(Ag,t)||ui(this,nu)&&this[nu][t])||n)},$ue=function(e,t){var n=af(e),r=Hx(t);if(n!==Gd||!ui(Ag,r)||ui(Y_,r)){var i=Z2e(n,r);return!i||!ui(Ag,r)||ui(n,nu)&&n[nu][r]||(i.enumerable=!0),i}},Mue=function(e){var t=G2e(af(e)),n=[];return pB(t,functi
  1564. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  1565. *
  1566. * Copyright (c) 2014-2017, Jon Schlinkert.
  1567. * Released under the MIT License.
  1568. */function Lue(e){return Object.prototype.toString.call(e)==="[object Object]"}function qs(e){var t,n;return Lue(e)!==!1&&((t=e.constructor)===void 0||Lue(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function zd(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(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s1(e){return!!e&&!!e[lc]}function l1(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)===UJt}(e)||Array.isArray(e)||!!e[zue]||!!e.constructor[zue]||jY(e)||WY(e))}function yE(e,t,n){n===void 0&&(n=!1),GO(e)===0?(n?Object.keys:QY)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function GO(e){var t=e[lc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:jY(e)?2:WY(e)?3:0}function Sz(e,t){return GO(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Y2e(e,t,n){var r=GO(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function jY(e){return GJt&&e instanceof Map}function WY(e){return QJt&&e instanceof Set}function Hy(e){return e.o||e.t}function HY(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=XJt(e);delete t[lc];for(var n=QY(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function zY(e,t){return t===void 0&&(t=!1),ZY(e)||s1(e)||!l1(e)||(GO(e)>1&&(e.set=e.add=e.clear=e.delete=HJt),Object.freeze(e),t&&yE(e,function(n,r){return zY(r,!0)},!0)),e}function HJt(){zd(2)}function ZY(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function pg(e){var t=YJt[e];return t||zd(18,e),t}function Bue(){return bE}function C6(e,t){t&&(pg("Patches"),e.u=[],e.s=[],e.v=t)}function Y5(e){Az(e),e.p.forEach(zJt),e.p=null}function Az(e){e===bE&&(bE=e.l)}function Fue(e){return bE={p:[],l:bE,h:e,m:!0,_:0}}function zJt(e){var t=e[lc];t.i===0||t.i===1?t.j():t.O=!0}function O6(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||pg("ES5").S(t,e,r),r?(n[lc].P&&(Y5(t),zd(4)),l1(e)&&(e=K5(t,e),t.l||q5(t,e)),t.u&&pg("Patches").M(n[lc],e,t.u,t.s)):e=K5(t,n,[]),Y5(t),t.u&&t.v(t.u,t.s),e!==K2e?e:void 0}function K5(e,t,n){if(ZY(t))return t;var r=t[lc];if(!r)return yE(t,function(o,a){return Nue(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return q5(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=HY(r.k):r.o;yE(r.i===3?new Set(i):i,function(o,a){return Nue(e,r,i,o,a,n)}),q5(e,i,!1),n&&e.u&&pg("Patches").R(r,n,e.u,e.s)}return r.o}function Nue(e,t,n,r,i,o){if(s1(i)){var a=K5(e,i,o&&t&&t.i!==3&&!Sz(t.D,r)?o.concat(r):void 0);if(Y2e(n,r,a),!s1(a))return;e.m=!1}if(l1(i)&&!ZY(i)){if(!e.h.F&&e._<1)return;K5(e,i),t&&t.A.l||q5(e,i)}}function q5(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&zY(t,n)}function x6(e,t){var n=e[lc];return(n?Hy(n):e)[t]}function Vue(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 Iz(e){e.P||(e.P=!0,e.l&&Iz(e.l))}function S6(e){e.o||(e.o=HY(e.t))}function kz(e,t,n){var r=jY(t)?pg("MapSet").N(t,n):WY(t)?pg("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Bue(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=r$;a&&(l=[s],u=i$);var c=Proxy.revocable(l,u),d=c.revoke,h=c.proxy;return s.k=h,s.j=d,h}(t,n):pg("ES5").J(t,n);return(n?n.A:Bue()).p.push(r),r}function ZJt(e){return s1(e)||zd(22,e),function t(n){if(!l1(n))return n;var r,i=n[lc],o=GO(n);if(i){if(!i.P&&(i.i<4||!pg("ES5").K(i)))return i.t;i.I=!0,r=jue(n,o),i.I=!1}else r=jue(n,o);return yE(r,function(a,s){i&&function(l,u){return GO(l)===2?l.get(u):l[u]}(i.t,a)===s||Y2e(r,a,t(s))}),o===3?new Set(r):r}(e)}f
  1569. 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.
  1570. `));var d=r(e).pop();if(vn.has(e,d)){var h=_e.node(e,d);e.normalizeNode(h)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=_e.path(e,t,n),i=Ot.parent(r);return _e.node(e,i)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(Ot.isPath(t)){if(i==="start"){var[,o]=vn.first(e,t);t=o}else if(i==="end"){var[,a]=vn.last(e,t);t=a}}return Vt.isRange(t)&&(t=i==="start"?Vt.start(t):i==="end"?Vt.end(t):Ot.common(t.anchor.path,t.focus.path)),Vr.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>vn.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:o}=i;return _e.pathRefs(e).delete(i),i.current=null,o}};return _e.pathRefs(e).add(i),i},pathRefs(e){var t=Uue.get(e);return t||(t=new Set,Uue.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(Ot.isPath(t)){var i;if(r==="end"){var[,o]=vn.last(e,t);i=o}else{var[,a]=vn.first(e,t);i=a}var s=vn.get(e,i);if(!In.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:i,offset:r==="end"?s.text.length:0}}if(Vt.isRange(t)){var[l,u]=Vt.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,i={current:t,affinity:r,unref(){var{current:o}=i;return _e.pointRefs(e).delete(i),i.current=null,o}};return _e.pointRefs(e).add(i),i},pointRefs(e){var t=Xue.get(e);return t||(t=new Set,Xue.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:i=!1,voids:o=!1}=t;if(n){var a=_e.range(e,n),[s,l]=Vt.edges(a),u=i?l:s,c=!1,d="",h=0,f=0,g=0;for(var[b,v]of _e.nodes(e,{at:n,reverse:i,voids:o})){if(jn.isElement(b)){if(!o&&e.isVoid(b)){yield _e.start(e,v);continue}if(e.isInline(b))continue;if(_e.hasInlines(e,b)){var m=Ot.isAncestor(v,l.path)?l:_e.end(e,v),w=Ot.isAncestor(v,s.path)?s:_e.start(e,v);d=_e.string(e,{anchor:w,focus:m},{voids:o}),c=!0}}if(In.isText(b)){var k=Ot.equals(v,u.path);for(k?(f=i?u.offset:b.text.length-u.offset,g=u.offset):(f=b.text.length,g=i?f:0),(k||c||r==="offset")&&(yield{path:v,offset:g},c=!1);;){if(h===0){if(d==="")break;h=T(d,r,i),d=_z(d,h,i)[1]}if(g=i?g-h:g+h,(f-=h)<0){h=-f;break}h=0,yield{path:v,offset:g}}}}}function T(S,I,O){return I==="character"?Ez(S,O):I==="word"?function(y){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],A=0,R=!1;y.length>0;){var D=Ez(y,_),[C,x]=_z(y,D,_);if(ren(C,x,_))R=!0,A+=D;else{if(R)break;A+=D}y=x}return A}(S,O):I==="line"||I==="block"?S.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=_e.before(e,o,{voids:r});if(a){var[,s]=_e.first(e,[]),l=[a.path,s];if(Ot.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(Ot.isPath(o)){var[u]=_e.parent(e,o);i=d=>u.children.includes(d)}else i=()=>!0;var[c]=_e.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}},range:(e,t,n)=>Vt.isRange(t)&&!n?t:{anchor:_e.start(e,t),focus:_e.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:o}=i;return _e.rangeRefs(e).delete(i),i.current=null,o}};return _e.rangeRefs(e).add(i),i},rangeRefs(e){var t=Yue.get(e);return t||(t=new Set,Yue.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Que.set(e,t)},start:(e,t)=>_e.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=_e.range(e,t),[o,a]=Vt.edges(i),s="";for(var[l,u]of _e.nodes(e,{at:i,match:In.isText,voids:r})){var c=l.text;Ot.equals(u,a.path)&&(c=c.slice(0,a.offset)),Ot.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var
  1571. * Takes a string with placeholder variables like `%{smart_count} file selected`
  1572. * and replaces it with values from options `{smart_count: 5}`
  1573. *
  1574. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  1575. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  1576. *
  1577. * @param {string} phrase that needs interpolation, with placeholders
  1578. * @param {object} options with values that will be used to replace placeholders
  1579. * @returns {any[]} interpolated
  1580. */function Qce(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const i of Object.keys(t))if(i!=="_"){let o=t[i];typeof o=="string"&&(o=n[Symbol.replace](o,"$$$$")),r=Nnn(r,new RegExp(`%\\{${i}\\}`,"g"),o)}return r}var _Ee=(jw=Fnn("apply"),class{constructor(e){Object.defineProperty(this,jw,{value:Vnn}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(Gce(this,jw)[jw],this):Gce(this,jw)[jw](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,i){return Object.prototype.hasOwnProperty.call(r,i)}(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 Qce(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 Qce(n,t)}});function Vnn(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 TEe=function(){var e={},t=e._fns={};return e.emit=function(n,r,i,o,a,s,l){var u=function(c){for(var d=t[c]?t[c]:[],h=c.indexOf(":"),f=h===-1?[c]:[c.substring(0,h),c.substring(h+1)],g=Object.keys(t),b=0,v=g.length;b<v;b++){var m=g[b];if(m==="*"&&(d=d.concat(t[m])),f.length===2&&f[0]===m){d=d.concat(t[m]);break}}return d}(n);u.length&&function(c,d,h){for(var f=0,g=d.length;f<g&&d[f];f++)d[f].event=c,d[f].apply(d[f],h)}(n,u,[r,i,o,a,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function i(){r.apply(this,arguments),e.off(n,i)})},e.off=function(n,r){var i=[];if(n&&r)for(var o=this._fns[n],a=0,s=o?o.length:0;a<s;a++)o[a]!==r&&i.push(o[a]);i.length?this._fns[n]=i:delete this._fns[n]},e},jnn={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:Wnn}=jnn,Uce=e=>crypto.getRandomValues(new Uint8Array(e)),Xce=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let o="";for(;;){let a=n(i),s=i;for(;s--;)if(o+=e[a[s]&r]||"",o.length===t)return o}}};var Hnn={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)=>Xce(e,t,Uce),customRandom:Xce,urlAlphabet:Wnn,random:Uce},M6=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 i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i};function PEe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}PEe.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)i[t]!=="*"&&(r=t<n.length&&i[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 a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var znn=/[\/\+\.]/,Znn=function(e,t){function n(r){var i=function(o,a,s){var l=new PEe(o,s||/[\/\.]/);return a!==void 0?l.match(a):l}(r,e,znn);return i&&i.length>=2}return t?n(t.split(";")[0]):n},Gnn=0;function Qnn(e){return"__private_"+Gnn+++"_"+e}var L6=Qnn("publish");class DEe{constructor(){Object.defineProperty(this,L6,{value:Unn}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,function(i,o){if(!Object.prototype.hasOwnProperty.call(i,o))throw new TypeError("attempted to use private field on non-instance");return i}(this,L6)[L6](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function Unn(){for(var e=argument
  1581. id: ${r[o].id}
  1582. type: ${r[o].type}`)}),r.length>0&&Hn(this,NA)[NA](),i.length>0){let o=`Multiple errors occurred while adding files:
  1583. `;if(i.forEach(a=>{o+=`
  1584. * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(i,o);{const a=new Error(o);throw a.errors=i,a}}}removeFiles(t,n){const{files:r,currentUploads:i}=this.getState(),o={...r},a={...i},s=Object.create(null);function l(d){return s[d]===void 0}t.forEach(d=>{r[d]&&(s[d]=r[d],delete o[d])}),Object.keys(a).forEach(d=>{const h=i[d].fileIDs.filter(l);h.length!==0?a[d]={...i[d],fileIDs:h}:delete a[d]});const u={currentUploads:a,files:o};Object.keys(o).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(i=>t[i].error);if(n.forEach(i=>{const o={...t[i],isPaused:!1,error:null};t[i]=o}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Hn(this,Ff)[Ff](n,{forceAllowNewUpload:!0});return Hn(this,Nf)[Nf](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=Hn(this,Ff)[Ff]([t],{forceAllowNewUpload:!0});return Hn(this,Nf)[Nf](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,h)=>d+h.progress.percentage,0),c=Math.round(u/l*100);return void this.setState({totalProgress:c})}let i=n.reduce((l,u)=>l+u.progress.bytesTotal,0);const o=i/n.length;i+=o*r.length;let a=0;n.forEach(l=>{a+=l.progress.bytesUploaded}),r.forEach(l=>{a+=o*(l.progress.percentage||0)/100});let s=i===0?0:Math.round(a/i*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
  1585. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${i} v${t.VERSION}`),r.type in Hn(this,Ts)[Ts]?Hn(this,Ts)[Ts][r.type].push(r):Hn(this,Ts)[Ts][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Hn(this,Ts)[Ts])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[MEe](t){return Hn(this,Ts)[Ts][t]}iteratePlugins(t){Object.values(Hn(this,Ts)[Ts]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Hn(this,Ts)[Ts][t.type],r=n.findIndex(o=>o.id===t.id);r!==-1&&n.splice(r,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Hn(this,LA)[LA](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Hn(this,Hd)[Hd]),window.removeEventListener("offline",Hn(this,Hd)[Hd]))}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 i=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:i?t.message:t,details:i?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]?Hn(this,Nf)[Nf](t):(Hn(this,hb)[hb](t),Promise.reject(new Error("Nonexistent upload")))}[LEe](){return Hn(this,Ff)[Ff](...arguments)}addResultData(t,n){if(!Hn(this,j6)[j6](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),i={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:i}})}upload(){var t;(t=Hn(this,Ts)[Ts].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(()=>{Hn(this,F6)[F6](n),Hn(this,N6)[N6](n)}).catch(i=>{Hn(this,rs)[rs](i)}).then(()=>{const{currentUploads:i}=this.getState(),o=Object.values(i).flatMap(l=>l.fileIDs),a=[];Object.keys(n).forEach(l=>{const u=this.getFile(l);u.progress.uploadStarted||o.indexOf(l)!==-1||a.push(u.id)});const s=Hn(this,Ff)[Ff](a);return Hn(this,Nf)[Nf](s)}).catch(i=>{Hn(this,rs)[rs](i,{showInformer:!1})}))}}function nrn(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.opts.restrictions;if(o&&t.length+1>o)throw new gp(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?!!e.type&&Znn(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=a.join(", ");throw new gp(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(i&&e.size!=null){let s=0;if(s+=e.size,t.forEach(l=>{s+=l.size}),s>i)throw new gp(this.i18n("exceedsSize",{size:M6(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new gp(this.i18n("exceedsSize",{size:M6(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new gp(this.i18n("inferiorSize",{size:M6(r)}))}function rrn(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new gp(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function irn(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let o=0;o<t.length;o++)if(!n.call(e.meta,t[o])||e.meta[t[o]]===""){const a=new gp(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),Hn(this,rs)[rs](a,{file:e,showInforme
  1586. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  1587. *
  1588. * Copyright (c) 2014-2017, Jon Schlinkert.
  1589. * Released under the MIT License.
  1590. */function Tde(e){return Object.prototype.toString.call(e)==="[object Object]"}zo({target:"Object",stat:!0,forced:Jin},{keys:function(e){return aO(L0(e))}});var eon={isHistory(e){return Tde(t=e)!==!1&&((n=t.constructor)===void 0||Tde(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ev.isOperationList(e.redos[0]))&&(e.undos.length===0||Ev.isOperationList(e.undos[0]));var t,n,r}},e8=new WeakMap,t8=new WeakMap,LC={isHistoryEditor:e=>eon.isHistory(e.history)&&_e.isEditor(e),isMerging:e=>t8.get(e),isSaving:e=>e8.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=LC.isMerging(e);t8.set(e,!1),t(),t8.set(e,n)},withoutSaving(e,t){var n=LC.isSaving(e);e8.set(e,!1),t(),e8.set(e,n)}},ton=hn.String,Ki=function(e){if(xB(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ton(e)},hK=function(){var e=_a(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},non=Qx.PROPER,Jz=RegExp.prototype,n_e=Jz.toString,ron=Zn(hK),ion=Pi(function(){return n_e.call({source:"a",flags:"b"})!="/a/b"}),oon=non&&n_e.name!="toString";(ion||oon)&&pu(RegExp.prototype,"toString",function(){var e=_a(this),t=Ki(e.source),n=e.flags;return"/"+t+"/"+Ki(n===void 0&&c1(Jz,e)&&!("flags"in Jz)?ron(e):n)},{unsafe:!0});var oR,aon=ys?Object.defineProperties:function(e,t){_a(e);for(var n,r=B0(t),i=aO(t),o=i.length,a=0;o>a;)xh.f(e,n=i[a++],r[n]);return e},eZ=L1("document","documentElement"),r_e=cK("IE_PROTO"),n8=function(){},i_e=function(e){return"<script>"+e+"<\/script>"},Pde=function(e){e.write(i_e("")),e.close();var t=e.parentWindow.Object;return e=null,t},l$=function(){try{oR=new ActiveXObject("htmlfile")}catch{}var e,t;l$=typeof document<"u"?document.domain&&oR?Pde(oR):((t=xE("iframe")).style.display="none",eZ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(i_e("document.F=Object")),e.close(),e.F):Pde(oR);for(var n=m4.length;n--;)delete l$.prototype[m4[n]];return l$()};OB[r_e]=!0;var IB=Object.create||function(e,t){var n;return e!==null?(n8.prototype=_a(e),n=new n8,n8.prototype=null,n[r_e]=e):n=l$(),t===void 0?n:aon(n,t)},tZ=Yo("unscopables"),nZ=Array.prototype;nZ[tZ]==null&&xh.f(nZ,tZ,{configurable:!0,value:IB(null)});var qk=function(e){nZ[tZ][e]=!0},son=JEe.includes;zo({target:"Array",proto:!0},{includes:function(e){return son(this,e,arguments.length>1?arguments[1]:void 0)}}),qk("includes");var lon=Yo("match"),pK=function(e){var t;return bo(e)&&((t=e[lon])!==void 0?!!t:rh(e)=="RegExp")},uon=hn.TypeError,fK=function(e){if(pK(e))throw uon("The method doesn't accept regular expressions");return e},con=Yo("match"),gK=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[con]=!1,"/./"[e](t)}catch{}}return!1},don=Zn("".indexOf);zo({target:"String",proto:!0,forced:!gK("includes")},{includes:function(e){return!!~don(Ki(pd(this)),Ki(fK(e)),arguments.length>1?arguments[1]:void 0)}});var hon=/"/g,pon=Zn("".replace);zo({target:"String",proto:!0,forced:Pi(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Ki(pd(this)),r="<a",(r+=' name="'+pon(Ki(t),hon,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var rZ=function(e,t,n){var r,i;_a(e);try{if(!(r=d1(e,"return"))){if(t==="throw")throw n;return n}r=fi(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return _a(r),n},fon=function(e,t,n,r){try{return r?t(_a(n)[0],n[1]):t(n)}catch(i){rZ(e,"throw",i)}},ox={},gon=Yo("iterator"),mon=Array.prototype,o_e=function(e){return e!==void 0&&(ox.Array===e||mon[gon]===e)},IE=function(e,t,n){var r=uK(t);r in e?xh.f(e,r,wB(0,n)):e[r]=n},von=Yo("iterator"),mK=function(e){if(e!=null)return d1(e,von)||d1(e,"@@iterator")||ox[xB(e)]},yon=hn.TypeError,a_e=function(e,t){var n=arguments.length<2?mK(e):t;if(y0(n))return _a(fi(n,e));throw yon(bB(e)+" is not iterable")},Dde=hn.Array,s_e=Yo("iterator"),l_e=!1;try{var bon=0,Rde={next:function(){return{done:!!bon++}},return:function(){l_e=!0}};Rd
  1591. `)&&e.flags==="s")}),Xon=hn.RegExp,OK=Pi(function(){var e=Xon("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Yon=ul.get,Kon=oK("native-string-replace",String.prototype.replace),b4=RegExp.prototype.exec,sZ=b4,qon=Zn("".charAt),Jon=Zn("".indexOf),ean=Zn("".replace),i8=Zn("".slice),o8=function(){var e=/a/,t=/b*/g;return fi(b4,e,"a"),fi(b4,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Wde=EB.BROKEN_CARET,a8=/()??/.exec("")[1]!==void 0;(o8||a8||Wde||CK||OK)&&(sZ=function(e){var t,n,r,i,o,a,s,l=this,u=Yon(l),c=Ki(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=fi(sZ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Wde&&l.sticky,g=fi(hK,l),b=l.source,v=0,m=c;if(f&&(g=ean(g,"y",""),Jon(g,"g")===-1&&(g+="g"),m=i8(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&qon(c,l.lastIndex-1)!==`
  1592. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),a8&&(n=new RegExp("^"+b+"$(?!\\s)",g)),o8&&(r=l.lastIndex),i=fi(b4,f?n:l,m),f?i?(i.input=i8(i.input,v),i[0]=i8(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:o8&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),a8&&i&&i.length>1&&fi(Kon,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=IB(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var kE=sZ;zo({target:"RegExp",proto:!0,forced:/./.exec!==kE},{exec:kE});var xK=Function.prototype,Hde=xK.apply,tan=xK.bind,zde=xK.call,SK=typeof Reflect=="object"&&Reflect.apply||(tan?zde.bind(Hde):function(){return zde.apply(Hde,arguments)}),nan=Yo("species"),s8=RegExp.prototype,AK=function(e,t,n,r){var i=Yo(e),o=!Pi(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Pi(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[nan]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Zn(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=Zn(u),b=c.exec;return b===kE||b===s8.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});pu(String.prototype,e,l[0]),pu(s8,i,l[1])}r&&nh(s8[i],"sham",!0)},ran=u_e.charAt,IK=function(e,t,n){return t+(n?ran(e,t).length:1)},ian=Math.floor,l8=Zn("".charAt),oan=Zn("".replace),u8=Zn("".slice),aan=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,san=/\$([$&'`]|\d{1,2})/g,lan=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=san;return i!==void 0&&(i=L0(i),l=aan),oan(o,l,function(u,c){var d;switch(l8(c,0)){case"$":return"$";case"&":return e;case"`":return u8(t,0,n);case"'":return u8(t,a);case"<":d=i[u8(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=ian(h/10);return f===0?u:f<=s?r[f-1]===void 0?l8(c,1):r[f-1]+l8(c,1):u}d=r[h-1]}return d===void 0?"":d})},uan=hn.TypeError,EE=function(e,t){var n=e.exec;if(Qi(n)){var r=fi(n,e,t);return r!==null&&_a(r),r}if(rh(e)==="RegExp")return fi(kE,e,t);throw uan("RegExp#exec called on incompatible receiver")},lZ=Yo("replace"),can=Math.max,dan=Math.min,han=Zn([].concat),c8=Zn([].push),Zde=Zn("".indexOf),Gde=Zn("".slice),pan="a".replace(/./,"$0")==="$0",Qde=!!/./[lZ]&&/./[lZ]("a","$0")==="";AK("replace",function(e,t,n){var r=Qde?"$":"$0";return[function(i,o){var a=pd(this),s=i==null?void 0:d1(i,lZ);return s?fi(s,i,a,o):fi(t,Ki(a),i,o)},function(i,o){var a=_a(this),s=Ki(i);if(typeof o=="string"&&Zde(o,r)===-1&&Zde(o,"$<")===-1){var l=n(t,a,s,o);if(l.done)return l.value}var u=Qi(o);u||(o=Ki(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var h=[];;){var f=EE(a,s);if(f===null||(c8(h,f),!c))break;Ki(f[0])===""&&(a.lastIndex=IK(s,Ux(a.lastIndex),d))}for(var g,b="",v=0,m=0;m<h.length;m++){for(var w=Ki((f=h[m])[0]),k=can(dan(tT(f.index),s.length),0),T=[],S=1;S<f.length;S++)c8(T,(g=f[S])===void 0?g:String(g));var I=f.groups;if(u){var O=han([w],T,k,s);I!==void 0&&c8(O,I);var y=Ki(SK(o,void 0,O))}else y=lan(w,s,k,T,I,o);k>=v&&(b+=Gde(s,v,k)+y,v=k+w.length)}return b+Gde(s,v)}]},!!Pi(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!pan||Qde);/*! *****************************************************************************
  1593. Copyright (c) Microsoft Corporation.
  1594. Permission to use, copy, modify, and/or distribute this software for any
  1595. purpose with or without fee is hereby granted.
  1596. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1597. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1598. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1599. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1600. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1601. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1602. PERFORMANCE OF THIS SOFTWARE.
  1603. ***************************************************************************** */var uZ=function(e,t){return uZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},uZ(e,t)};function Yx(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}uZ(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var jc=function(){return jc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jc.apply(this,arguments)};function Wc(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 si(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function cZ(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var fan=0,Ude=function(){this.id=""+fan++},gan=ul.set,man=ul.getterFor("Array Iterator"),uk=bK(Array,"Array",function(e,t){gan(this,{type:"Array Iterator",target:B0(e),index:0,kind:t})},function(){var e=man(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");ox.Arguments=ox.Array,qk("keys"),qk("values"),qk("entries");var sx=function(e,t,n){for(var r in t)pu(e,r,t[r],n);return e},van=hn.Array,yan=Math.max,dZ=function(e,t,n){for(var r=B1(e),i=ix(t,r),o=ix(n===void 0?r:n,r),a=van(yan(o-i,0)),s=0;i<o;i++,s++)IE(a,s,e[i]);return a.length=s,a},Xde=SE.f,Yde=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ban={f:function(e){return Yde&&rh(e)=="Window"?function(t){try{return Xde(t)}catch{return dZ(Yde)}}(e):Xde(B0(e))}},Kde=Pi(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),sR=Object.isExtensible,pb=Pi(function(){sR(1)})||Kde?function(e){return!!bo(e)&&(!Kde||rh(e)!="ArrayBuffer")&&(!sR||sR(e))}:sR,wan=!Pi(function(){return Object.isExtensible(Object.preventExtensions({}))}),_B=eT(function(e){var t=xh.f,n=!1,r=aK("meta"),i=0,o=function(s){t(s,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=SE.f,l=Zn([].splice),u={};u[r]=1,s(u).length&&(SE.f=function(c){for(var d=s(c),h=0,f=d.length;h<f;h++)if(d[h]===r){l(d,h,1);break}return d},zo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ban.f}))},fastKey:function(s,l){if(!bo(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ea(s,r)){if(!pb(s))return"F";if(!l)return"E";o(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ea(s,r)){if(!pb(s))return!0;if(!l)return!1;o(s)}return s[r].weakData},onFreeze:function(s){return wan&&n&&pb(s)&&!Ea(s,r)&&o(s),s}};OB[r]=!0}),Can=hn.TypeError,u$=function(e,t){this.stopped=e,this.result=t},qde=u$.prototype,_E=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=h1(t,c),b=function(m){return r&&rZ(r,"normal",m),new u$(!0,m)},v=function(m){return d?(_a(m),f?g(m[0],m[1],b):g(m[0],m[1])):f?g(m,b):g(m)};if(h)r=e;else{if(!(i=mK(e)))throw Can(bB(e)+" is not iterable");if(o_e(i)){for(o=0,a=B1(e);a>o;o++)if((s=v(e[o]))&&c1(qde,s))return s;return new u$(!1)}r=a_e(e,i)}for(l=r.next;!(u=fi(l,r)).done;){try{s=v(u.value)}catch(m){rZ(r,"throw",m)}if(typeof s=="object"&&s&&c1(qde,s))return s}return new u$(!1)},Oan=hn.TypeError,TB=function(e,t){if(c1(t,e
  1604. `)}return i};function C_e(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;o==3?t(i,e):o!=1&&o!=9&&o!=11||C_e(i,t)}}function che(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==mp.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Qs=mp||(mp={}))[Qs.ELEMENT_NODE=1]="ELEMENT_NODE",Qs[Qs.TEXT_NODE=3]="TEXT_NODE",Qs[Qs.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Qs[Qs.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Qs[Qs.COMMENT_NODE=8]="COMMENT_NODE",Qs[Qs.DOCUMENT_NODE=9]="DOCUMENT_NODE",Qs[Qs.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Qs[Qs.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var yZ=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Jk=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),YA=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Man=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Lan=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),bZ=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),KA=!Lan&&!Man&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",tt={getWindow:function(e){var t=y_e.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=d$.get(t);return n||(n=new Ude,d$.set(t,n)),n},setNewKey:function(e){var t=new Ude;d$.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=lx.get(r);if(i==null){if(_e.isEditor(r))return n;break}var o=TE.get(r);if(o==null)break;n.unshift(o),r=i}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=tt.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return lx.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=tt.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[tt.findPath(e,t)[0]];return vn.get(e,n)},toDOMNode:function(e,t){var n;if(_e.isEditor(t))n=_K.get(e);else{var r=tt.findKey(e,t);n=mZ.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,i=n.editable,o=i!==void 0&&i,a=tt.toDOMNode(e,e);try{r=Vd(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]")===a&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=Vt.isBackward(t),o=tt.toDOMPoint(e,n),a=Vt.isCollapsed(t)?o:tt.toDOMPoint(e,r),s=tt.getWindow(e).document.createRange(),l=si(i?a:o,2),u=l[0],c=l[1],d=si(i?o:a,2),h=d[0],f=d[1],g=!!(Vd(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),b=!!(Vd(h)?h:h.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,g?1:c),s.setEnd(h,b?1:f),s},toDOMPoint:function(e,t){var n,r,i,o=si(_e.node(e,t.path),1)[0],a=tt.toDOMNode(e,o);_e.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Wc(s),c=u.next();!c.done;c=u.next()){var d=c.value,h=d.childNodes[0];if(h!=null&&h.textContent!=null){var f=h.textContent.length,g=d.getAttribute("data-slate-length"),b=l+(g==null?f:parseInt(g,10));if(t.offset<=b){i=[h,Math.min(f,Math.max(0,t.offset-l))];break}l=b}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=Vd(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?C4.get(n):null;if(!r)throw new Error("Cannot res
  1605. `))&&d--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=tt.toSlateNode(e,c);return{path:tt.findPath(e,m),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return _e.hasPath(e,n.path)&&_e.hasPath(e,r.path)},getNodeType:function(e){return jn.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return vn.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=_e.nodes(e,{universal:!0});try{for(var o=Wc(i),a=o.next();!a.done;a=o.next()){var s=si(a.value,1)[0];jn.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=si(_e.nodes(e,{match:function(o){return n.checkNodeType(o,t)},universal:!0}),1),i=r[0];return i==null?null:i[0]},getSelectedTextNode:function(e){var t=si(_e.nodes(e,{match:function(r){return In.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=si(_e.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&si(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(_e.isEnd(e,n.anchor,t)||_e.isEnd(e,n.focus,t))},getTextarea:function(e){var t=hZ.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return PB.get(e)||null},getHoverbar:function(e){return w4.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,o=tt.getTextarea(e).$textArea,a=o==null?void 0:o[0].childNodes;if(a)try{for(var s=Wc(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(b){t={error:b}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=_e.nodes(e,{match:function(b){return!(!jn.isElement(b)||e.isInline(b))},universal:!0});try{for(var d=Wc(c),h=d.next();!h.done;h=d.next()){var f=h.value;if(f!=null){var g=f[0];C_e(tt.toDOMNode(e,g),function(b,v){var m=ut(v);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||v.removeChild(b)})}}}catch(b){r={error:b}}finally{try{h&&!h.done&&(i=d.return)&&i.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=_e.nodes(e,{match:function(s){return e.isVoid(s)}}),i=0;try{for(var o=Wc(r),a=o.next();!a.done;a=o.next())a.value,i++}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||Vt.isExpanded(t))return!1;var n=tt.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=_e.node(e,t);if(n==null)return!1;var r=si(n,1)[0].children;return r.length===1&&r[0].text===""}},Ban=1,O_e={},PE={},Fan=Xx.filter,Nan=kB("filter");zo({target:"Array",proto:!0,forced:!Nan},{filter:function(e){return Fan(this,e,arguments.length>1?arguments[1]:void 0)}});var wZ=`
  1606. \v\f\r                 \u2028\u2029\uFEFF`,dhe=Zn("".replace),x4="["+wZ+"]",Van=RegExp("^"+x4+x4+"*"),jan=RegExp(x4+x4+"*$"),v8=function(e){return function(t){var n=Ki(pd(t));return 1&e&&(n=dhe(n,Van,"")),2&e&&(n=dhe(n,jan,"")),n}},Wan={start:v8(1),end:v8(2),trim:v8(3)},Han=Qx.PROPER,zan=Wan.trim;zo({target:"String",proto:!0,forced:function(e){return Pi(function(){return!!wZ[e]()||"​…᠎"[e]()!=="​…᠎"||Han&&wZ[e].name!==e})}("trim")},{trim:function(){return zan(this)}});var CZ=[],x_e={};function Zan(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var DE,zw,hhe,y8,S4=hn.Promise,phe=Yo("species"),PK=function(e){var t=L1(e),n=xh.f;ys&&t&&!t[phe]&&n(t,phe,{configurable:!0,get:function(){return this}})},Gan=hn.TypeError,Qan=Yo("species"),S_e=function(e,t){var n,r=_a(e).constructor;return r===void 0||(n=_a(r)[Qan])==null?t:function(i){if(AB(i))return i;throw Gan(bB(i)+" is not a constructor")}(n)},A_e=Zn([].slice),I_e=/(?:ipad|iphone|ipod).*applewebkit/i.test(oO),jv=rh(hn.process)=="process",OZ=hn.setImmediate,xZ=hn.clearImmediate,Uan=hn.process,b8=hn.Dispatch,Xan=hn.Function,fhe=hn.MessageChannel,Yan=hn.String,w8=0,e2={};try{DE=hn.location}catch{}var DK=function(e){if(Ea(e2,e)){var t=e2[e];delete e2[e],t()}},C8=function(e){return function(){DK(e)}},ghe=function(e){DK(e.data)},mhe=function(e){hn.postMessage(Yan(e),DE.protocol+"//"+DE.host)};OZ&&xZ||(OZ=function(e){var t=A_e(arguments,1);return e2[++w8]=function(){SK(Qi(e)?e:Xan(e),void 0,t)},zw(w8),w8},xZ=function(e){delete e2[e]},jv?zw=function(e){Uan.nextTick(C8(e))}:b8&&b8.now?zw=function(e){b8.now(C8(e))}:fhe&&!I_e?(y8=(hhe=new fhe).port2,hhe.port1.onmessage=ghe,zw=h1(y8.postMessage,y8)):hn.addEventListener&&Qi(hn.postMessage)&&!hn.importScripts&&DE&&DE.protocol!=="file:"&&!Pi(mhe)?(zw=mhe,hn.addEventListener("message",ghe,!1)):zw="onreadystatechange"in xE("script")?function(e){eZ.appendChild(xE("script")).onreadystatechange=function(){eZ.removeChild(this),DK(e)}}:function(e){setTimeout(C8(e),0)});var qA,nb,t2,SC,O8,x8,S8,vhe,k_e={set:OZ,clear:xZ},Kan=/ipad|iphone|ipod/i.test(oO)&&hn.Pebble!==void 0,qan=/web0s(?!.*chrome)/i.test(oO),Jan=nT.f,A8=k_e.set,yhe=hn.MutationObserver||hn.WebKitMutationObserver,bhe=hn.document,whe=hn.process,hR=hn.Promise,Che=Jan(hn,"queueMicrotask"),E_e=Che&&Che.value;E_e||(qA=function(){var e,t;for(jv&&(e=whe.domain)&&e.exit();nb;){t=nb.fn,nb=nb.next;try{t()}catch(n){throw nb?SC():t2=void 0,n}}t2=void 0,e&&e.enter()},I_e||jv||qan||!yhe||!bhe?!Kan&&hR&&hR.resolve?((S8=hR.resolve(void 0)).constructor=hR,vhe=h1(S8.then,S8),SC=function(){vhe(qA)}):jv?SC=function(){whe.nextTick(qA)}:(A8=h1(A8,hn),SC=function(){A8(qA)}):(O8=!0,x8=bhe.createTextNode(""),new yhe(qA).observe(x8,{characterData:!0}),SC=function(){x8.data=O8=!O8}));var I8,Ohe,__e,xhe,T_e=E_e||function(e){var t={fn:e,next:void 0};t2&&(t2.next=t),nb||(nb=t,SC()),t2=t},esn=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=y0(t),this.reject=y0(n)},RK={f:function(e){return new esn(e)}},SZ=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},tsn=typeof window=="object",P_e=k_e.set,nsn=Yo("species"),up="Promise",She=ul.getterFor(up),rsn=ul.set,isn=ul.getterFor(up),Zy=S4&&S4.prototype,xp=S4,JA=Zy,D_e=hn.TypeError,AZ=hn.document,$K=hn.process,sO=RK.f,osn=sO,asn=!!(AZ&&AZ.createEvent&&hn.dispatchEvent),R_e=Qi(hn.PromiseRejectionEvent),$_e=!1,n2=AE(up,function(){var e=CB(xp),t=e!==String(xp);if(!t&&OE===66)return!0;if(OE>=51&&/native code/.test(e))return!1;var n=new xp(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[nsn]=r,!($_e=n.then(function(){})instanceof r)||!t&&tsn&&!R_e}),ssn=n2||!vK(function(e){xp.all(e).catch(function(){})}),M_e=function(e){var t;return!(!bo(e)||!Qi(t=e.then))&&t},MK=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;T_e(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,d=u.resolve,h=u.reject,f=u.domain;t
  1607. `)>=0)return;c&&(c=H_e(c),Dhe(s,c)||s.push({text:c}))}}else{if(u.nodeName==="BR")return void(Dhe(s,`
  1608. `)||s.push({text:`
  1609. `}));var d=BK(ut(u),a);Array.isArray(d)?d.forEach(function(h){return s.push(h)}):s.push(d)}}),s)}(e,t),r=function(o){for(var a in A4)if(o[0].matches(a))return A4[a];return Isn}(e),i=r(e[0],n,t);return Array.isArray(i)||(i=[i]),i.forEach(function(o){_e.isVoid(t,o)||(n.length===0&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),LK.forEach(function(a){o=a(e[0],o,t)}))}),i}function _8(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
  1610. `));var n=e[0].textContent||"";n=function(i){return i.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=H_e(n)};return LK.forEach(function(i){r=i(e[0],r,t)}),r}function BK(e,t){j_e.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=ut(o(e[0])))});var n=che(e);return n==="span"?e.attr("data-w-e-type")?E8(e,t):_8(e,t):n==="code"?che(e.parent())==="pre"?E8(e,t):_8(e,t):V_e.includes(n)?_8(e,t):E8(e,t)}function z_e(e,t,n){var r=ut(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function Rhe(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(i){return"<p>"+i+"</p>"}).join(""));var r=ut("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(i){var o=BK(ut(i),e);Array.isArray(o)?o.forEach(function(a){return n.push(a)}):n.push(o)}),n}var ksn=xh.f,$he=_B.fastKey,Mhe=ul.set,T8=ul.getterFor,Esn={getConstructor:function(e,t,n,r){var i=e(function(u,c){TB(u,o),Mhe(u,{type:t,index:IB(null),first:void 0,last:void 0,size:0}),ys||(u.size=0),c!=null&&_E(c,u[r],{that:u,AS_ENTRIES:n})}),o=i.prototype,a=T8(t),s=function(u,c,d){var h,f,g=a(u),b=l(u,c);return b?b.value=d:(g.last=b={index:f=$he(c,!0),key:c,value:d,previous:h=g.last,next:void 0,removed:!1},g.first||(g.first=b),h&&(h.next=b),ys?g.size++:u.size++,f!=="F"&&(g.index[f]=b)),u},l=function(u,c){var d,h=a(u),f=$he(c);if(f!=="F")return h.index[f];for(d=h.first;d;d=d.next)if(d.key==c)return d};return sx(o,{clear:function(){for(var u=a(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,ys?u.size=0:this.size=0},delete:function(u){var c=this,d=a(c),h=l(c,u);if(h){var f=h.next,g=h.previous;delete d.index[h.index],h.removed=!0,g&&(g.next=f),f&&(f.previous=g),d.first==h&&(d.first=f),d.last==h&&(d.last=g),ys?d.size--:c.size--}return!!h},forEach:function(u){for(var c,d=a(this),h=h1(u,arguments.length>1?arguments[1]:void 0);c=c?c.next:d.first;)for(h(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(u){return!!l(this,u)}}),sx(o,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)}}),ys&&ksn(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=T8(t),o=T8(r);bK(e,t,function(a,s){Mhe(this,{type:r,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return a.target&&(a.last=l=l?l.next:a.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),PK(t)}};p_e("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Esn);var Lhe=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Bhe(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):Rt.insertNodes(e,t,{mode:"highest"})}var _sn=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=si(Vt.edges(i),2),a=o[0],s=o[1],l=_e.void(t,{at:a.path}),u=_e.void(t,{at:s.path});if(!Vt.isCollapsed(i)||l){var c=tt.toDOMRange(t,i),d=c.cloneContents(),h=d.childNodes[0];if(d.childNodes.forEach(function(S){S.textContent&&S.textContent.trim()!==""&&(h=S)}),u){var f=si(u,1)[0],g=c.cloneRange(),b=tt.toDOMNode(t,f);g.setEndAfter(b),d=g.cloneContents()}if(l&&(h=d.querySelector("[data-slate-spacer]")),Array.from(d.querySelectorAll("[data-slate-zero-width]")).forEach(function(S){var I=S.getAttribute("data-slate-zero-width")==="n";S.textContent=I?`
  1611. `:""}),b_e(h)){var v=h.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(h),d.appendChild(v),h=v}var m=t.getFragment(),w=JSON.stringify(m),k=window.btoa(encodeURIComponent(w));h.setAttribute("data-slate-fragment",k),r.setData("application/x-slate-fragment",k);var T=d.ownerDocument.createElement("div");return T.appendChild(d),T.setAttribute("hidden","true"),d.ownerDocument.body.appendChild(T),r.setData("text/html",T.innerHTML),r.setData("text/plain",$an(T)),d.ownerDocument.body.removeChild(T),r}}},t.insertData=function(r){var i,o,a=r.getData("application/x-slate-fragment");if(a){var s=decodeURIComponent(window.atob(a)),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/),h=!1;try{for(var f=Wc(d),g=f.next();!g.done;g=f.next()){var b=g.value;h&&Rt.splitNodes(t,{always:!0}),n(b),h=!0}}catch(v){i={error:v}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}}},t},ck=function(e){return e!=null},Tsn={object:!0,function:!0,undefined:!0},Psn=/^\s*class[\s{/}]/,Dsn=Function.prototype.toString,Fhe=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!!ck(r)&&hasOwnProperty.call(Tsn,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!Psn.test(Dsn.call(e))},FK=function(e){return e!=null},Rsn=Object.keys,$sn=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return Rsn(FK(e)?Object(e):e)},Msn=function(e){if(!FK(e))throw new TypeError("Cannot use null or undefined");return e},Lsn=Math.max,Nhe=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,o=Lsn(arguments.length,2);for(e=Object(Msn(e)),i=function(a){try{e[a]=t[a]}catch(s){n||(n=s)}},r=1;r<o;++r)$sn(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},Bsn=Array.prototype.forEach,Fsn=Object.create,Nsn=function(e,t){var n;for(n in e)t[n]=e[n]},Vhe=function(e){var t=Fsn(null);return Bsn.call(arguments,function(n){FK(n)&&Nsn(Object(n),t)}),t},P8="razdwatrzy",Vsn=String.prototype.indexOf,tI=typeof P8.contains=="function"&&P8.contains("dwa")===!0&&P8.contains("foo")===!1?String.prototype.contains:function(e){return Vsn.call(this,e,arguments[1])>-1},fR=eT(function(e){var t=e.exports=function(n,r){var i,o,a,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],ck(n)?(i=tI.call(n,"c"),o=tI.call(n,"e"),a=tI.call(n,"w")):(i=a=!0,o=!1),l={value:r,configurable:i,enumerable:o,writable:a},s?Nhe(Vhe(s),l):l};t.gs=function(n,r,i){var o,a,s,l;return typeof n!="string"?(s=i,i=r,r=n,n=null):s=arguments[3],ck(r)?Fhe(r)?ck(i)?Fhe(i)||(s=i,i=void 0):i=void 0:(s=r,r=i=void 0):r=void 0,ck(n)?(o=tI.call(n,"c"),a=tI.call(n,"e")):(o=!0,a=!1),l={get:r,set:i,configurable:o,enumerable:a},s?Nhe(Vhe(s),l):l}}),D8=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},jsn=eT(function(e,t){var n,r,i,o,a,s,l,u=Function.prototype.apply,c=Function.prototype.call,d=Object.create,h=Object.defineProperty,f=Object.defineProperties,g=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var w;return D8(m),g.call(this,"__ee__")?w=this.__ee__:(w=b.value=d(null),h(this,"__ee__",b),b.value=null),w[v]?typeof w[v]=="object"?w[v].push(m):w[v]=[w[v],m]:w[v]=m,this},r=function(v,m){var w,k;return D8(m),k=this,n.call(this,v,w=function(){i.call(k,v,w),u.call(m,this,arguments)}),w.__eeOnceListener__=m,this},i=function(v,m){var w,k,T,S;if(D8(m),!g.call(this,"__ee__"))return this;if(!(w=this.__ee__)[v])return this;if(typeof(k=w[v])=="object")for(S=0;T=k[S];++S)T!==m&&T.__eeOnceListener__!==m||(k.length===2?w[v]=k[S?0:1]:k.splice(S,1));else k!==m&&k.__eeOn
  1612. `:e)}function $8(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),mr("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?mr("br",null):null)}function _Z(e,t,n,r){return TE.set(e,t),lx.set(e,n),jn.isElement(e)?function(i,o){var a,s=tt.findKey(o,i),l=o.isInline(i),u=_e.isVoid(o,i),c=N_e(s.id),d={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":l},h=i.type,f=i.children,g=f===void 0?[]:f,b=function(S){return Q_e[S]||Jsn}(h);a=u?null:g.map(function(S,I){return _Z(S,I,i,o)});var v=b(i,a,o);if(u){d["data-slate-void"]=!0;var m=l?"span":"div",w=si(vn.texts(i),1),k=si(w[0],1)[0],T=mr(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},_Z(k,0,i,o));v=mr(m,{style:{position:"relative"}},v,T),TE.set(k,0),lx.set(k,i)}return v.data==null&&(v.data={}),Object.assign(v.data,d),u||l||(v=function(S,I){var O=I;return EZ.forEach(function(y){O=y(S,I)}),O}(i,v)),fd(function(){var S=vZ(c);S!=null&&(mZ.set(s,S),O4.set(i,S),C4.set(S,i))}),v}(e,r):function(i,o,a){if(i.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(i));var s=tt.findKey(a,i),l=a.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=tt.findPath(a,i),c=l([i,u]),d=In.decorations(i,c),h=d.map(function(b,v){var m=function(w,k,T,S,I){k===void 0&&(k=!1);var O=w.text,y=tt.findPath(I,T),_=Ot.parent(y);if(_e.isEditor(S))throw new Error("Text node "+JSON.stringify(T)+" parent is Editor");return I.isVoid(S)?$8(vn.string(S).length):O!==""||S.children[S.children.length-1]!==T||I.isInline(S)||_e.string(I,_)!==""?O===""?$8():k&&O.slice(-1)===`
  1613. `?Zhe(O,!0):Zhe(O):$8(0,!0)}(b,v===d.length-1,i,o,a);return m=function(w,k){var T=k;return EZ.forEach(function(S){T=S(w,T)}),T}(b,m),mr("span",{"data-slate-leaf":!0},m)}),f=function(b){return"w-e-text-"+b}(s.id),g=mr("span",{"data-slate-node":"text",id:f,key:s.id},h);return fd(function(){var b=vZ(f);b!=null&&(mZ.set(s,b),O4.set(i,b),C4.set(b,i))}),g}(e,n,r)}function eln(e,t){var n,r=e.$scroll,i=function(b){return"w-e-textarea-"+b}(e.id),o=t.getConfig(),a=o.readOnly,s=o.autoFocus,l=function(b,v){return v===void 0&&(v=!1),rx("div#"+b,{props:{contentEditable:!v}})}(i,a),u=t.children||[];l.children=u.map(function(b,v){var m=_Z(b,v,t,t);return G_e(m),m});var c=ihe.get(e);if(c==null&&(c=!0),c){var d=function(b,v){return ut(`<div
  1614. id="`+b+`"
  1615. data-slate-editor
  1616. data-slate-node="value"
  1617. suppressContentEditableWarning
  1618. role="textarea"
  1619. spellCheck="true"
  1620. autoCorrect="true"
  1621. autoCapitalize="true"
  1622. ></div>`)}(i);r.append(d),e.$textArea=d,n=d[0],(f=ztn([Gtn,Ytn,qtn,Qtn,Xtn,Ztn]))(n,l),ihe.set(e,!1),ohe.set(e,f)}else{var h=ahe.get(e),f=ohe.get(e);if(h==null||f==null)return;n=h.elm,f(h,l)}if(n!=null||(n=vZ(i))!=null){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var g=TK(n);g&&y_e.set(t,g)}_K.set(t,n),O4.set(t,n),C4.set(n,t),ahe.set(e,l)}}function Ghe(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Qhe(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function M8(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Qhe(n.overflowY,t)||Qhe(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function mR(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}function Uhe(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l=typeof a=="function"?a:function(le){return le!==a};if(!Ghe(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],d=e;Ghe(d)&&l(d);){if((d=d.parentElement)===u){c.push(d);break}d!=null&&d===document.body&&M8(d)&&!M8(document.documentElement)||d!=null&&M8(d,s)&&c.push(d)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,f=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,w=v.width,k=v.top,T=v.right,S=v.bottom,I=v.left,O=i==="start"||i==="nearest"?k:i==="end"?S:k+m/2,y=o==="center"?I+w/2:o==="end"?T:I,_=[],A=0;A<c.length;A++){var R=c[A],D=R.getBoundingClientRect(),C=D.height,x=D.width,P=D.top,$=D.right,L=D.bottom,V=D.left;if(r==="if-needed"&&k>=0&&I>=0&&S<=f&&T<=h&&k>=P&&S<=L&&I>=V&&T<=$)return _;var H=getComputedStyle(R),Q=parseInt(H.borderLeftWidth,10),U=parseInt(H.borderTopWidth,10),K=parseInt(H.borderRightWidth,10),J=parseInt(H.borderBottomWidth,10),ue=0,ee=0,N="offsetWidth"in R?R.offsetWidth-R.clientWidth-Q-K:0,q="offsetHeight"in R?R.offsetHeight-R.clientHeight-U-J:0;if(u===R)ue=i==="start"?O:i==="end"?O-f:i==="nearest"?mR(b,b+f,f,U,J,b+O,b+O+m,m):O-f/2,ee=o==="start"?y:o==="center"?y-h/2:o==="end"?y-h:mR(g,g+h,h,Q,K,g+y,g+y+w,w),ue=Math.max(0,ue+b),ee=Math.max(0,ee+g);else{ue=i==="start"?O-P-U:i==="end"?O-L+J+q:i==="nearest"?mR(P,L,C,U,J+q,O,O+m,m):O-(P+C/2)+q/2,ee=o==="start"?y-V-Q:o==="center"?y-(V+x/2)+N/2:o==="end"?y-$+K+N:mR(V,$,x,Q,K+N,y,y+w,w);var G=R.scrollLeft,ne=R.scrollTop;O+=ne-(ue=Math.max(0,Math.min(ne+ue,R.scrollHeight-C+q))),y+=G-(ee=Math.max(0,Math.min(G+ee,R.scrollWidth-x+N)))}_.push({el:R,top:ue,left:ee})}return _}function Xhe(e){return e===Object(e)&&Object.keys(e).length!==0}function Pc(e,t){return p1(t)&&tt.hasDOMNode(e,t,{editable:!0})}function Yhe(e,t){if(e.getConfig().readOnly)return!1;var n=IC(e,t)&&tt.toSlateNode(e,t);return _e.isVoid(e,n)}function IC(e,t){return p1(t)&&tt.hasDOMNode(e,t)}function U_e(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=tt.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var s=_K.get(t),l=!1;if(s.contains(o.anchorNode)&&s.contains(o.focusNode)&&(l=!0),a&&l&&r){var u=tt.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(u&&Vt.equals(u,r)){var c=!0;if(Vt.isCollapsed(r)){var d=o.anchorNode,h=o.anchorOffset;if(d===s){var f=s.childNodes,g=void 0;(g=f[h])&&g.matches("table")&&(c=!1),(g=f[h-1])&&g.matches("table")&&(c=!1)}}if(c)return}}if(!r||tt.hasRange(t,r)){e.isUpdatingSelection=!0;var b=r&&tt.toDOMRange(t,r);if(b){Vt.isBackward(r)?o.setBaseAndExtent(b.endContainer,b.endOffset,b.startContainer,b.startOffset):o.setBaseAndExtent(b.startContainer,b.startOffset,b.endContainer,b.endOffset);var v=b.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=b.getBoundingClientRect.bind(b
  1623. `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}AK("match",function(e,t,n){return[function(r){var i=pd(this),o=r==null?void 0:d1(r,e);return o?fi(o,r,i):new RegExp(r)[e](Ki(i))},function(r){var i=_a(this),o=Ki(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return EE(i,o);var s=i.unicode;i.lastIndex=0;for(var l,u=[],c=0;(l=EE(i,o))!==null;){var d=Ki(l[0]);u[c]=d,d===""&&(i.lastIndex=IK(o,Ux(i.lastIndex),s)),c++}return c===0?null:u}]});var zK=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=ut('<div class="w-e-bar-item"></div>'),this.$button=ut('<button type="button"></button>'),this.disabled=!1,this.menu=n;var o=n.tag,a=n.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,c=n.iconSvg,d=c===void 0?"":c,h=this.$button;if(d){var f=ut(d);WK(f),h.append(f)}else h.text(s);Y_e(h,d,s,u,r),r&&d&&h.append(ut('<span class="title">'+s+"</span>")),a&&h.css("width",a+"px"),h.attr("data-menu-key",t),this.$elem.append(h),fd(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Uu(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Uu(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Uu(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Uu(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var i="disabled";r?n.addClass(i):n.removeClass(i),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),sln=function(e){function t(n,r,i){return i===void 0&&(i=!1),e.call(this,n,r,i)||this}return Yx(t,e),t.prototype.onButtonClick=function(){},t}(zK),ZK=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=gZ.get(t);n==null&&(n=new Set,gZ.set(t,n)),n.add(this),c$.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=c$.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=c$.get(this);t&&t.emit("modalOrPanelHide")}},e}(),lln=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=ut('<div class="w-e-drop-panel"></div>'),r}return Yx(t,e),t.prototype.genSelfElem=function(){return null},t}(ZK),uln=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var a=HK();o.$button.append(a)}return o}return Yx(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=Uu(this);if(this.dropPanel==null){var i=new lln(r),o=n.getPanelContentElem(r);i.renderContent(o),i.appendTo(this.$elem),i.show(),this.dropPanel=i}else{var a=this.dropPanel;a.isShow?a.hide():(o=n.getPanelContentElem(r),a.renderContent(o),a.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}(zK),cln=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=ut('<div class="w-e-modal"></div>'),i.width=0,r&&(i.width=r);var o=i.$elem;return o.on("click",function(a){return a.stopPropagation()}),o.on("keyup",function(a){a.code==="Escape"&&(i.hide(),n.restoreSelection())}),i}return Yx(t,e),t.prototype.genSelfElem=function(){var n=this,r=ut('<span class="btn-close"><svg viewBox="0 0 1024 10
  1624. `)},w.getSelectionText=function(){var O=w.selection;return O==null?"":_e.string(m,O)},w.getElemsByType=function(O,y){var _,A;y===void 0&&(y=!1);var R=[],D=_e.nodes(w,{at:[],universal:!0});try{for(var C=Wc(D),x=C.next();!x.done;x=C.next()){var P=si(x.value,1)[0];if(jn.isElement(P)&&(y?P.type.indexOf(O)>=0:P.type===O)){var $=N_e(tt.findKey(w,P).id);R.push(jc(jc({},P),{id:$}))}}}catch(L){_={error:L}}finally{try{x&&!x.done&&(A=C.return)&&A.call(C)}finally{if(_)throw _.error}}return R},w.getElemsByTypePrefix=function(O){return w.getElemsByType(O,!0)},w.isEmpty=function(){var O=w.children,y=O===void 0?[]:O;if(y.length>1)return!1;var _=y[0];if(_==null)return!0;if(jn.isElement(_)&&_.type==="paragraph"){var A=_.children,R=A===void 0?[]:A;if(R.length>1)return!1;var D=R[0];if(D==null||In.isText(D)&&D.text==="")return!0}return!1},w.clear=function(){Rt.delete(w,{at:{anchor:_e.start(w,[]),focus:_e.end(w,[])}}),w.children.length===0&&Rt.insertNodes(w,[{type:"paragraph",children:[{text:""}]}])},w.getParentNode=function(O){return tt.getParentNode(w,O)},w.dangerouslyInsertHtml=function(O,y){if(O===void 0&&(O=""),y===void 0&&(y=!1),O){var _=document.createElement("div");_.innerHTML=O;var A=Array.from(_.childNodes);if(A=A.filter(function(x){var P=x.nodeType,$=x.nodeName;return P===mp.TEXT_NODE||P===mp.ELEMENT_NODE&&!Lhe.has($.toLowerCase())}),A.length!==0){var R=w.selection;if(R!=null){var D=null;tt.isSelectedEmptyParagraph(w)&&!y&&(D=[R.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var C=0;A.forEach(function(x){var P=x.nodeType,$=x.nodeName,L=x.textContent,V=L===void 0?"":L;if(P!==mp.TEXT_NODE)if($!=="BR"){var H=x,Q=!1;if(V_e.includes($.toLowerCase()))Q=!0;else for(var U in A4)if(H.matches(U)){Q=!0;break}if(Q){var K=BK(ut(H),w);return Array.isArray(K)?(K.forEach(function(ue){return Bhe(w,ue)}),C++):(Bhe(w,K),C++),void(tt.isSelectedVoidNode(w)&&w.move(1))}var J=window.getComputedStyle(H).display;tt.isSelectedEmptyParagraph(w)||J.indexOf("inline")<0&&w.insertBreak(),w.dangerouslyInsertHtml(H.innerHTML,!0)}else w.insertText(`
  1625. `);else{if(!V||!V.trim())return;w.insertNode({text:V})}}),C&&D&&tt.isEmptyPath(w,D)&&Rt.removeNodes(w,{at:D}),_.remove()}}}},w.setHtml=function(O){O===void 0&&(O="");var y=w.isDisabled(),_=w.isFocused(),A=JSON.stringify(w.selection);w.enable(),w.focus(),w.clear();var R=Rhe(w,O);if(Rt.insertFragment(w,R),_||(w.deselect(),w.blur()),y&&(w.deselect(),w.disable()),w.isFocused())try{w.select(JSON.parse(A))}catch{w.select(_e.start(w,[]))}},w}(function(m){var w=m;return w.getAllMenuKeys=function(){var k=[];for(var T in PE)k.push(T);return k},w.getConfig=function(){var k=rhe.get(w);if(k==null)throw new Error("Can not get editor config");return k},w.getMenuConfig=function(k){var T=w.getConfig().MENU_CONF;return(T===void 0?{}:T)[k]||{}},w.alert=function(k,T){T===void 0&&(T="info");var S=w.getConfig().customAlert;S&&S(k,T)},w}(function(m){var w=_sn(qJt());return w.id="wangEditor-"+Ban++,w.isDestroyed=!1,w.isFullScreen=!1,w.focus=function(k){if(tt.toDOMNode(w,w).focus({preventScroll:!0}),_b.set(w,!0),k){var T=_e.end(w,[]);Rt.select(w,T)}else{var S=g8.get(w);S?Rt.select(w,S):Rt.select(w,_e.start(w,[]))}},w.isFocused=function(){return!!_b.get(w)},w.blur=function(){tt.toDOMNode(w,w).blur(),Rt.deselect(w),_b.set(w,!1)},w.updateView=function(){tt.getTextarea(w).changeViewState();var k=tt.getToolbar(w);k&&k.changeToolbarState();var T=tt.getHoverbar(w);T&&T.changeHoverbarState()},w.destroy=function(){if(!w.isDestroyed){var k=tt.getTextarea(w);k.destroy(),hZ.delete(w),pZ.delete(k);var T=tt.getToolbar(w);T&&(T.destroy(),PB.delete(w),kK.delete(T));var S=tt.getHoverbar(w);S&&(S.destroy(),w4.delete(w),fZ.delete(S)),w.isDestroyed=!0,w.emit("destroyed")}},w.scrollToElem=function(k){if(!w.getConfig().scroll){var T="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return T+=`
  1626. You has disabled editor scroll, please do this yourself`,void console.warn(T)}var S=ut("#"+k);if(S.length!==0){var I=S[0];if(!tt.hasDOMNode(w,I))return T="Element (found by id is '"+k+"') is not in editor DOM",T+=`
  1627. 通过 id '`+k+"' 找到的 element 不在 editor DOM 之内",void console.error(T,I);var O=tt.getTextarea(w),y=O.$textAreaContainer,_=O.$scroll,A=S.offset().top,R=y.offset().top;_[0].scrollBy({top:A-R,behavior:"smooth"})}},w.showProgressBar=function(k){k<1||tt.getTextarea(w).changeProgress(k)},w.hidePanelOrModal=function(){var k=gZ.get(w);k!=null&&k.forEach(function(T){return T.hide()})},w.enable=function(){w.getConfig().readOnly=!1,w.updateView()},w.disable=function(){w.getConfig().readOnly=!0,w.updateView()},w.isDisabled=function(){return w.getConfig().readOnly},w.toDOMNode=function(k){return tt.toDOMNode(w,k)},w.fullScreen=function(){if(!w.isFullScreen){var k=null,T=tt.getToolbar(w);T&&(k=T.$box);var S=tt.getTextarea(w).$box.parent();if(k&&k.parent()[0]!==S[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
  1628. 不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);S.addClass("w-e-full-screen-container");var I=S.css("z-index");S.attr("data-z-index",I.toString()),w.isFullScreen=!0,w.emit("fullScreen")}},w.unFullScreen=function(){if(w.isFullScreen){var k=tt.getTextarea(w).$box.parent();setTimeout(function(){k.removeClass("w-e-full-screen-container"),w.isFullScreen=!1,w.emit("unFullScreen")},200)}},w.getEditableContainer=function(){return tt.getTextarea(w).$textAreaContainer[0]},w}()))))));if(n&&function(m,w){return z_e(m,"data-w-e-textarea",w)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var w=EEe(O_e),k={},T=m.MENU_CONF,S=T===void 0?{}:T;return KY(w,function(I,O){k[O]=jc(jc({},I),S[O]||{})}),delete m.MENU_CONF,jc({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:k,hoverbarKeys:{},customAlert:function(I,O){window.alert(O+`:
  1629. `+I)}},m)}(i);rhe.set(u,c);var d=c.hoverbarKeys,h=d===void 0?{}:d;if(l.forEach(function(m){u=m(u)}),a!=null&&(u.children=Rhe(u,a)),o&&o.length&&(u.children=o),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),tt.normalizeContent(u),n){var f=new aln(n);hZ.set(u,f),pZ.set(f,u),f.changeViewState(),fd(function(){var m=f.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
  1630. Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var g=void 0;Object.keys(h).length>0&&(g=new gln,fZ.set(g,u),w4.set(u,g)),u.on("change",function(){u.hidePanelOrModal()}),u.on("scroll",function(){u.hidePanelOrModal()})}else u.children.forEach(function(m,w){return q_e(m,w,u,u)});var b=c.onCreated,v=c.onDestroyed;return b&&u.on("created",function(){return b(u)}),v&&u.on("destroyed",function(){return v(u)}),fd(function(){return u.emit("created")}),u}var vln=kB("splice"),yln=hn.TypeError,bln=Math.max,wln=Math.min;zo({target:"Array",proto:!0,forced:!vln},{splice:function(e,t){var n,r,i,o,a,s,l=L0(this),u=B1(l),c=ix(e,u),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=u-c):(n=d-2,r=wln(bln(tT(t),0),u-c)),u+n-r>9007199254740991)throw yln("Maximum allowed length exceeded");for(i=XEe(l,r),o=0;o<r;o++)(a=c+o)in l&&IE(i,o,l[a]);if(i.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:delete l[s];for(o=u;o>u-r+n;o--)delete l[o-1]}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+c]=arguments[o+2];return l.length=u-r+n,i}});var Cln=function(){function e(t,n){var r=this;this.$toolbar=ut('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=kEe(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var i=ut(t);if(i.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=i;var o=this.$toolbar;o.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),i.append(o),fd(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,i=this.config,o=i.toolbarKeys,a=o===void 0?[]:o,s=i.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=i.excludeKeys,c=u===void 0?[]:u,d=EEe(a);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach(function(g,b){d.splice(l.index+b,0,g)}));var h=d.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),f=h.length;h.forEach(function(g,b){if(g==="|"){if(b===0||b+1===f||n==="|")return;var v=X_e();return r.append(v),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,i=function(u){return new qhe(u)}(t),o=t.menuKeys,a=o===void 0?[]:o,s=this.config.excludeKeys,l=s===void 0?[]:s;a.forEach(function(u){l.includes(u)||n.registerSingleItem(u,i)}),r.append(i.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof qhe,o=this.menus,a=o[t];if(a==null){var s=PE[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");a=s(),o[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
  1631. 重复注册了菜单栏 menu '`+t+"'");var l=K_e(t,a,i);this.toolbarItems.push(l),EK.set(l,r),i?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=kK.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}(),Oln=Qx.EXISTS,xln=xh.f,J_e=Function.prototype,Sln=Zn(J_e.toString),eTe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Aln=Zn(eTe.exec);function tTe(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,i=r===void 0?"":r,o=e.maxFileSize,a=o===void 0?10485760:o,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,c=u===void 0?{}:u,d=e.metaWithUrl,h=d!==void 0&&d,f=e.headers,g=f===void 0?{}:f,b=e.withCredentials,v=b!==void 0&&b,m=e.timeout,w=m===void 0?1e4:m,k=e.onBeforeUpload,T=k===void 0?function(C){return C}:k,S=e.onSuccess,I=S===void 0?function(C,x){}:S,O=e.onError,y=O===void 0?function(C,x,P){console.error(C.name+" upload error",x,P)}:O,_=e.onProgress,A=_===void 0?function(C){}:_;if(!n)throw new Error(`Cannot get upload server address
  1632. 没有配置上传地址`);if(!i)throw new Error(`Cannot get fieldName
  1633. 没有配置 fieldName`);var R=n;h&&(R=function(C,x){var P=si(C.split("#"),2),$=P[0],L=P[1],V=[];KY(x,function(Q,U){V.push(U+"="+Q)});var H=V.join("&");return $=$.indexOf("?")>0?$+"&"+H:$+"?"+H,L?$+"#"+L:$}(R,c));var D=new sk({onBeforeUpload:T,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(qrn,{endpoint:R,headers:g,formData:!0,fieldName:i,bundle:!0,withCredentials:v,timeout:w});return D.on("upload-success",function(C,x){var P=x.body,$=P===void 0?{}:P;try{I(C,$)}catch(L){console.error("wangEditor upload file - onSuccess error",L)}D.removeFile(C.id)}),D.on("progress",function(C){C<1||A(C)}),D.on("upload-error",function(C,x,P){try{y(C,x,P)}catch($){console.error("wangEditor upload file - onError error",$)}D.removeFile(C.id)}),D.on("restriction-failed",function(C,x){try{y(C,x)}catch(P){console.error("wangEditor upload file - onError error",P)}D.removeFile(C.id)}),D}function Wv(e){return Wv=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},Wv(e)}function Iln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ja(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(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){Iln(e,i,n[i])})}return e}function $g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function epe(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 Mg(e,t,n){return t&&epe(e.prototype,t),n&&epe(e,n),e}function f1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RE(e,t){if(t&&(Wv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f1(e)}function ux(e){return ux=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ux(e)}function TZ(e,t){return TZ=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},TZ(e,t)}function DB(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&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&TZ(e,t)}ys&&!Oln&&xln(J_e,"name",{configurable:!0,get:function(){try{return Aln(eTe,Sln(this))[1]}catch{return""}}});var kln={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)}},ag=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$g(this,e),this.init(t,n)}return Mg(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||kln,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,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[
  1634. `)&&e.flags==="s")}),lcn=Dr.RegExp,ucn=Go(function(){var e=lcn("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ccn=BZ.get,dcn=KK("native-string-replace",String.prototype.replace),$4=RegExp.prototype.exec,NZ=$4,hcn=cr("".charAt),pcn=cr("".indexOf),fcn=cr("".replace),G8=cr("".slice),Q8=(Z8=/b*/g,ka($4,Epe=/a/,"a"),ka($4,Z8,"a"),Epe.lastIndex!==0||Z8.lastIndex!==0),_pe=STe.BROKEN_CARET,U8=/()??/.exec("")[1]!==void 0;(Q8||U8||_pe||scn||ucn)&&(NZ=function(e){var t,n,r,i,o,a,s,l=this,u=ccn(l),c=Ho(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ka(NZ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=_pe&&l.sticky,g=ka(xTe,l),b=l.source,v=0,m=c;if(f&&(g=fcn(g,"y",""),pcn(g,"g")===-1&&(g+="g"),m=G8(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&hcn(c,l.lastIndex-1)!==`
  1635. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),U8&&(n=new RegExp("^"+b+"$(?!\\s)",g)),Q8&&(r=l.lastIndex),i=ka($4,f?n:l,m),f?i?(i.input=G8(i.input,v),i[0]=G8(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Q8&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),U8&&i&&i.length>1&&ka(dcn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=kTe(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var LE=NZ;as({target:"RegExp",proto:!0,forced:/./.exec!==LE},{exec:LE});var uq=Function.prototype,Tpe=uq.apply,gcn=uq.bind,Ppe=uq.call,ETe=typeof Reflect=="object"&&Reflect.apply||(gcn?Ppe.bind(Tpe):function(){return Ppe.apply(Tpe,arguments)}),mcn=pc("species"),X8=RegExp.prototype,cq=function(e,t,n,r){var i=pc(e),o=!Go(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Go(function(){var u=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[mcn]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=cr(/./[i]),l=t(i,""[e],function(u,c,d,h,f){var g=cr(u),b=c.exec;return b===LE||b===X8.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});$E(String.prototype,e,l[0]),$E(X8,i,l[1])}r&&cx(X8[i],"sham",!0)},vcn=cr("".charAt),Dpe=cr("".charCodeAt),ycn=cr("".slice),bcn=function(e){return function(t,n){var r,i,o=Ho(gd(t)),a=eS(n),s=o.length;return a<0||a>=s?"":(r=Dpe(o,a))<55296||r>56319||a+1===s||(i=Dpe(o,a+1))<56320||i>57343?vcn(o,a):ycn(o,a,a+2)}},wcn=bcn(),dq=function(e,t,n){return t+(n?wcn(e,t).length:1)},Ccn=Math.floor,Y8=cr("".charAt),Ocn=cr("".replace),K8=cr("".slice),xcn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Scn=/\$([$&'`]|\d{1,2})/g,Acn=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Scn;return i!==void 0&&(i=oT(i),l=xcn),Ocn(o,l,function(u,c){var d;switch(Y8(c,0)){case"$":return"$";case"&":return e;case"`":return K8(t,0,n);case"'":return K8(t,a);case"<":d=i[K8(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=Ccn(h/10);return f===0?u:f<=s?r[f-1]===void 0?Y8(c,1):r[f-1]+Y8(c,1):u}d=r[h-1]}return d===void 0?"":d})},Icn=Dr.TypeError,BE=function(e,t){var n=e.exec;if(cl(n)){var r=ka(n,e,t);return r!==null&&nc(r),r}if(Hv(e)==="RegExp")return ka(LE,e,t);throw Icn("RegExp#exec called on incompatible receiver")},VZ=pc("replace"),kcn=Math.max,Ecn=Math.min,_cn=cr([].concat),q8=cr([].push),Rpe=cr("".indexOf),$pe=cr("".slice),Tcn="a".replace(/./,"$0")==="$0",Mpe=!!/./[VZ]&&/./[VZ]("a","$0")==="";cq("replace",function(e,t,n){var r=Mpe?"$":"$0";return[function(i,o){var a=gd(this),s=i==null?void 0:LB(i,VZ);return s?ka(s,i,a,o):ka(t,Ho(a),i,o)},function(i,o){var a=nc(this),s=Ho(i);if(typeof o=="string"&&Rpe(o,r)===-1&&Rpe(o,"$<")===-1){var l=n(t,a,s,o);if(l.done)return l.value}var u=cl(o);u||(o=Ho(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var h=[];;){var f=BE(a,s);if(f===null||(q8(h,f),!c))break;Ho(f[0])===""&&(a.lastIndex=dq(s,aT(a.lastIndex),d))}for(var g,b="",v=0,m=0;m<h.length;m++){for(var w=Ho((f=h[m])[0]),k=kcn(Ecn(eS(f.index),s.length),0),T=[],S=1;S<f.length;S++)q8(T,(g=f[S])===void 0?g:String(g));var I=f.groups;if(u){var O=_cn([w],T,k,s);I!==void 0&&q8(O,I);var y=Ho(ETe(o,void 0,O))}else y=Acn(w,s,k,T,I,o);k>=v&&(b+=$pe(s,v,k)+y,v=k+w.length)}return b+$pe(s,v)}]},!!Go(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Tcn||Mpe);var jZ=pc("unscopables"),WZ=Array.prototype;WZ[jZ]==null&&Jx.f(WZ,jZ,{configurable:!0,value:kTe(null)});var _Te=function(e){WZ[jZ][e]=!0},Pcn=NB.find,Lpe=!0;"find"in[]&&Array(1).find(function(){Lpe=!1}),as({target:"Array",proto:!0,forced:Lpe},{find:function(e){return Pcn(this,e,arguments.length>1?arguments[1]:void 0)}}),_Te("find");var Dcn=pc("match"),TTe=function(e){var t;return Qd(e)&&((t=e[Dcn])!==void 0?!!t:Hv(e)=="RegExp")},Rcn=Dr.TypeError,$cn=pc("species"),PTe=function(e,t,n){var r=qK(t);r in e?Jx.f(e,r,UK(0,n)):e[r]=n},Mcn=Dr.Array,Lcn=Math.max,Bpe=function(e,t,n){for(var r=FB(e),i=ME(t,r),o=ME(n===void 0?r:n,r),
  1636. \v\f\r                 \u2028\u2029\uFEFF`,Fpe=cr("".replace),M4="["+HZ+"]",Ncn=RegExp("^"+M4+M4+"*"),Vcn=RegExp(M4+M4+"*$"),J8=function(e){return function(t){var n=Ho(gd(t));return 1&e&&(n=Fpe(n,Ncn,"")),2&e&&(n=Fpe(n,Vcn,"")),n}},jcn={start:J8(1),end:J8(2),trim:J8(3)},Wcn=BB.PROPER,Hcn=jcn.trim;function hq(e){return ut("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function tS(e){return e.length===0?"":e[0].outerHTML}function nS(e){return e.length?e[0].tagName.toLowerCase():""}function ih(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}as({target:"String",proto:!0,forced:Go(function(){return!!HZ.trim()||"​…᠎".trim()!=="​…᠎"||Wcn&&HZ.trim.name!=="trim"})},{trim:function(){return Hcn(this)}}),as({global:!0},{globalThis:Dr}),a4&&(ut.fn.css=a4),hd&&(ut.fn.append=hd),Ace&&(ut.fn.prepend=Ace),QO&&(ut.fn.addClass=QO),UO&&(ut.fn.removeClass=UO),XO&&(ut.fn.hasClass=XO),Zp&&(ut.fn.on=Zp),Cce&&(ut.fn.off=Cce),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),n4&&(ut.fn.removeAttr=n4),KO&&(ut.fn.hide=KO),o4&&(ut.fn.show=o4),u4&&(ut.fn.parents=u4),YO&&(ut.fn.dataset=YO),zp&&(ut.fn.val=zp),l4&&(ut.fn.text=l4),m0&&(ut.fn.html=m0),ex&&(ut.fn.children=ex),tx&&(ut.fn.remove=tx),JO&&(ut.fn.find=JO),r4&&(ut.fn.width=r4),i4&&(ut.fn.height=i4),xce&&(ut.fn.filter=xce),nx&&(ut.fn.empty=nx);var zcn={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);return(t=t.filter(function(i){return!!In.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},zZ=function(e,t){return zZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zZ(e,t);/*! *****************************************************************************
  1637. Copyright (c) Microsoft Corporation.
  1638. Permission to use, copy, modify, and/or distribute this software for any
  1639. purpose with or without fee is hereby granted.
  1640. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1641. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1642. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1643. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1644. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1645. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1646. PERFORMANCE OF THIS SOFTWARE.
  1647. ***************************************************************************** */};function Lo(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}zZ(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var w0=function(){return w0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w0.apply(this,arguments)};function F0(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(a,s)}l((r=r.apply(e,[])).next())})}function N0(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function RTe(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 mi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Npe(e){var t=mi(_e.nodes(e,{match:function(o){return e.children[0]===o},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!jn.isElement(n)||n.type==="paragraph"||vn.string(n)!=="")return!1;var r=n.children,i=r===void 0?[]:r;return!!In.isText(i[0])&&(Rt.setNodes(e,{type:"paragraph"}),!0)}var Zcn={renderElems:[Yln],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[zcn],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){Npe(r)||t(i)},r.deleteForward=function(i){Npe(r)||n(i)},r}},Gcn=/"/g,Qcn=cr("".replace),dk=function(e,t,n,r){var i=Ho(gd(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+Qcn(Ho(r),Gcn,"&quot;")+'"'),o+">"+i+"</"+t+">"},hk=function(e){return Go(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function eV(e,t){var n=t,r=e,i=r.bold,o=r.italic,a=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Py(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}as({target:"String",proto:!0,forced:hk("bold")},{bold:function(){return dk(this,"b","","")}}),as({target:"String",proto:!0,forced:hk("italics")},{italics:function(){return dk(this,"i","","")}}),as({target:"String",proto:!0,forced:hk("sub")},{sub:function(){return dk(this,"sub","","")}}),as({target:"String",proto:!0,forced:hk("sup")},{sup:function(){return
  1648. <li data-value="0" class="clear">
  1649. <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>
  1650. `+s+`
  1651. </li>
  1652. `);return i.prepend(l),i[0]},e}(),qdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("color.color"),n.iconSvg=ndn,n.mark="color",n}return Lo(t,e),t}(ZTe),Jdn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=yn("color.bgColor"),n.iconSvg=rdn,n.mark="bgColor",n}return Lo(t,e),t}(ZTe),Gpe=["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)"],ehn={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&g1(o,{color:r}),i&&g1(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!In.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((hq(t)||nS(n=ut(t))!=="span")&&(n=ut("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),tS(n)):t},preParseHtml:[Kdn],parseStyleHtml:function(e,t,n){var r=ut(e);if(!In.isText(t))return t;var i=t,o=ih(r,"color");o&&(i.color=o);var a=ih(r,"background-color");return a||(a=ih(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new qdn},config:{colors:Gpe}},{key:"bgColor",factory:function(){return new Jdn},config:{colors:Gpe}}]},thn=/^(?:\w+:)?\/\/(\S+)$/,nhn=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,rhn=/^[^\s\.]+\.\S{2,}$/,ihn=vTe.includes;function VB(e){return e===void 0&&(e="r"),e+"-"+pEe()}function pq(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function GTe(e,t,n,r){return F0(this,void 0,void 0,function(){var i,o;return N0(this,function(a){switch(a.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(o=a.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function QTe(e,t,n){return F0(this,void 0,void 0,function(){var r;return N0(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function fq(e){return e.selection==null||!!tt.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function oV(e,t){return{type:"link",url:pq(e),children:t?[{text:t}]:[]}}function UTe(e,t,n){return F0(this,void 0,void 0,function(){var r,i,o;return N0(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),fq(e)?[2]:[4,GTe("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,QTe("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null||(Vt.isCollapsed(i)?(e.insertText(" "),o=oV(r,t),Rt.insertNodes(e,o),e.insertFragment([{text:" "}])):_e.string(e,i)!==t?(e.deleteFragment(),o=oV(r,t),Rt.insertNodes(e,o)):(o=oV(r),Rt.wrapNodes(e,o,{split:!0}),Rt.collapse(e,{edge:"end"}))),[2]}})})}as({target:"Array",proto:!0},{includes:function(e){return ihn(this,e,arguments.length>1?argume
  1653. `)return e.deleteBackward("character"),void Rt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
  1654. `)},r}},Fhn=function(){function e(){this.title=yn("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||!!mi(_e.nodes(t,{match:function(n){return tt.getNodeType(n)==="pre"||!!_e.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=ut('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(o){var a=o.target;if(a!=null){o.preventDefault();var s=ut(a).text();t.insertText(s)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var i=t.getMenuConfig("emotion").emotions;return(i===void 0?[]:i).forEach(function(o){var a=ut("<li>"+o+"</li>");r.append(a)}),r[0]},e}(),Nhn={menus:[{key:"emotion",factory:function(){return new Fhn},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Vhn={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},jhn={selector:"font",preParseHtml:function(e){var t=ut(e);if(nS(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Vhn[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Whn=cr("".indexOf);as({target:"String",proto:!0,forced:!jTe("includes")},{includes:function(e){return!!~Whn(Ho(gd(this)),Ho(VTe(e)),arguments.length>1?arguments[1]:void 0)}});var Lm,f$,OR=function(e){return e&&e.Math==Math&&e},Zr=OR(typeof globalThis=="object"&&globalThis)||OR(typeof window=="object"&&window)||OR(typeof self=="object"&&self)||OR(typeof _4=="object"&&_4)||function(){return this}()||Function("return this")(),mq=Function.prototype,Jpe=mq.apply,Hhn=mq.bind,efe=mq.call,JTe=typeof Reflect=="object"&&Reflect.apply||(Hhn?efe.bind(Jpe):function(){return efe.apply(Jpe,arguments)}),ePe=Function.prototype,QZ=ePe.bind,UZ=ePe.call,zhn=QZ&&QZ.bind(UZ),fa=QZ?function(e){return e&&zhn(UZ,e)}:function(e){return e&&function(){return UZ.apply(e,arguments)}},dl=function(e){return typeof e=="function"},uc=function(e){try{return!!e()}catch{return!0}},fu=!uc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),dI=Function.prototype.call,$p=dI.bind?dI.bind(dI):function(){return dI.apply(dI,arguments)},tfe={}.propertyIsEnumerable,nfe=Object.getOwnPropertyDescriptor,Zhn=nfe&&!tfe.call({1:2},1)?function(e){var t=nfe(this,e);return!!t&&t.enumerable}:tfe,vq={f:Zhn},m1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ghn=fa({}.toString),Qhn=fa("".slice),Rb=function(e){return Qhn(Ghn(e),8,-1)},uV=Zr.Object,Uhn=fa("".split),tPe=uc(function(){return!uV("z").propertyIsEnumerable(0)})?function(e){return Rb(e)=="String"?Uhn(e,""):uV(e)}:uV,Xhn=Zr.TypeError,yq=function(e){if(e==null)throw Xhn("Can't call method on "+e);return e},lf=function(e){return tPe(yq(e))},Ud=function(e){return typeof e=="object"?e!==null:dl(e)},Fc={},r
  1655. `).map(function(o){return{type:"paragraph",children:[{text:o}]}});Rt.insertNodes(t,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,i,o=[],a=_e.nodes(t,{match:function(d){return t.children.includes(d)},universal:!0});try{for(var s=RTe(a),l=s.next();!l.done;l=s.next()){var u=mi(l.value,1)[0];u&&o.push(vn.string(u))}}catch(d){r={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}Rt.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(`
  1656. `)}]}]};Rt.insertNodes(t,c,{mode:"highest"})},e}(),rgn={key:"codeBlock",factory:function(){return new ngn}};as({target:"String",proto:!0,forced:hk("anchor")},{anchor:function(e){return dk(this,"a","name",e)}}),cq("match",function(e,t,n){return[function(r){var i=gd(this),o=r==null?void 0:LB(r,e);return o?ka(o,r,i):new RegExp(r)[e](Ho(i))},function(r){var i=nc(this),o=Ho(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return BE(i,o);var s=i.unicode;i.lastIndex=0;for(var l,u=[],c=0;(l=BE(i,o))!==null;){var d=Ho(l[0]);u[c]=d,d===""&&(i.lastIndex=dq(o,aT(i.lastIndex),s)),c++}return c===0?null:u}]});var ign={type:"pre",renderElem:function(e,t,n){return mr("pre",null,t)}},ogn={type:"code",renderElem:function(e,t,n){return mr("code",null,t)}},agn={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=ut(e);return(t=t.filter(function(i){return tt.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return tt.getNodeType(i)==="code"})}}},sgn={menus:[rgn],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=tt.getSelectedNodeByType(i,"code");if(o!=null){var a=function(u,c){var d=c.selection;if(d==null)return"";var h=vn.string(u),f=d.anchor.offset,g=h.slice(0,f).split(`
  1657. `),b=g.length;return b===0?"":g[b-1]}(o,i);if(a){var s=a.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void i.insertText(`
  1658. `+l)}}i.insertText(`
  1659. `)}else t()},i.normalizeNode=function(o){var a=mi(o,2),s=a[0],l=a[1],u=tt.getNodeType(s);return u==="code"&&l.length<=1&&Rt.setNodes(i,{type:"paragraph"},{at:l}),u==="pre"&&(tt.isLastNode(i,s)&&Rt.insertNodes(i,tt.genEmptyParagraph(),{at:[l[0]+1]}),tt.getNodeType(s.children[0])!=="code"&&(Rt.unwrapNodes(i),Rt.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([s,l])},i.insertData=function(o){if(tt.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");_e.insertText(i,a)}else r(o)},i},renderElems:[ign,ogn],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=ut(e);if(nS(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:ut(e)[0].textContent||""}]}}},agn]},lgn=function(){function e(){this.title=yn("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}(),ugn={menus:[{key:"fullScreen",factory:function(){return new lgn}}]},cgn=function(){function e(){this.title=yn("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||!!Vt.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];Rt.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(_e.start(t,i))}},e}(),dgn=[Odn,ehn,$fn,Ffn,Hfn,Zfn,Shn,Kfn,Nhn,dhn,sgn,Bhn,Xdn,Zcn,Ehn,Ufn,ugn,{menus:[{key:"enter",factory:function(){return new cgn}}]}];vu("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),vu("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Lfe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fm,m$,AR=function(e){return e&&e.Math==Math&&e},vr=AR(typeof globalThis=="object"&&globalThis)||AR(typeof window=="object"&&window)||AR(typeof self=="object"&&self)||AR(typeof Lfe=="object"&&Lfe)||fun
  1660. Copyright (c) Microsoft Corporation.
  1661. Permission to use, copy, modify, and/or distribute this software for any
  1662. purpose with or without fee is hereby granted.
  1663. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1664. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1665. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1666. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1667. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1668. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1669. PERFORMANCE OF THIS SOFTWARE.
  1670. ***************************************************************************** */};function iDe(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}CG(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function wge(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 s2(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Cge(e){return _e.nodes(e,{at:e.selection||void 0,match:function(t){return tt.findPath(e,t).length===1}})}var nvn=MPe.includes;O0({target:"Array",proto:!0},{includes:function(e){return nvn(this,e,arguments.length>1?arguments[1]:void 0)}}),o2("includes");var Oge,RV,rvn=function(){var e=yu(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},zq=vr.RegExp,OG=ia(function(){var e=zq("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),ivn=OG||ia(function(){return!zq("a","y").sticky}),ovn={BROKEN_CARET:OG||ia(function(){var e=zq("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:ivn,UNSUPPORTED_Y:OG},avn=vr.RegExp,svn=ia(function(){var e=avn(".","s");return!(e.dotAll&&e.exec(`
  1671. `)&&e.flags==="s")}),lvn=vr.RegExp,uvn=ia(function(){var e=lvn("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),cvn=Gp.get,dvn=Eq("native-string-replace",String.prototype.replace),J4=RegExp.prototype.exec,xG=J4,hvn=Kr("".charAt),pvn=Kr("".indexOf),fvn=Kr("".replace),$V=Kr("".slice),MV=(RV=/b*/g,Cs(J4,Oge=/a/,"a"),Cs(J4,RV,"a"),Oge.lastIndex!==0||RV.lastIndex!==0),xge=ovn.BROKEN_CARET,LV=/()??/.exec("")[1]!==void 0;(MV||LV||xge||svn||uvn)&&(xG=function(e){var t,n,r,i,o,a,s,l=this,u=cvn(l),c=qf(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Cs(xG,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=xge&&l.sticky,g=Cs(rvn,l),b=l.source,v=0,m=c;if(f&&(g=fvn(g,"y",""),pvn(g,"g")===-1&&(g+="g"),m=$V(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&hvn(c,l.lastIndex-1)!==`
  1672. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),LV&&(n=new RegExp("^"+b+"$(?!\\s)",g)),MV&&(r=l.lastIndex),i=Cs(J4,f?n:l,m),f?i?(i.input=$V(i.input,v),i[0]=$V(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:MV&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),LV&&i&&i.length>1&&Cs(dvn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=Mq(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var eM=xG;O0({target:"RegExp",proto:!0,forced:/./.exec!==eM},{exec:eM});var oDe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return tt.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||!!tt.getSelectedElems(t).some(function(n){if(_e.isVoid(t,n)&&_e.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)?Rt.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Rt.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),gvn='<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>',mvn='<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>',vvn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=yn("listModule.unOrderedList"),n.iconSvg=gvn,n}return iDe(t,e),t}(oDe),yvn=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=yn("listModule.orderedList"),n.iconSvg=mvn,n}return iDe(t,e),t}(oDe),bvn={key:"bulletedList",factory:function(){return new vvn}},wvn={key:"numberedList",factory:function(){return new yvn}},Sge=[],Cvn={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,o=i!==void 0&&i?"ol":"ul",a=function(u){var c=wG.get(u);if(c==null)return 0;var d=u,h=d.type,f=d.ordered,g=f!==void 0&&f,b=d.level,v=b===void 0?0:b,m=tt.findPath(c,u);if(m[0]===0)return v+1;var w=Ot.previous(m),k=_e.node(c,w);if(!k)return 0;var T=s2(k,1)[0];if(tt.getNodeType(T)!==h)return v+1;var S=T,I=S.ordered,O=I!==void 0&&I,y=S.level,_=y===void 0?0:y;return _<v?v-_:_>v?0:_===v?O===g?0:1:0}(e);if(a>0)for(var s=0;s<a;s++)n+="<"+o+">",Sge.push(o);var l=function(u){var c=wG.get(u);if(c==null)return 0;var d=u,h=d.type,f=d.ordered,g=f!==void 0&&f,b=d.level,v=b===void 0?0:b,m=tt.findPath(c,u);if(m[0]===c.children.length-1)return v+1;var w=Ot.next(m),k=_e.node(c,w);if(!k)return 0;var T=s2(k,1)[0];if(tt.getNodeType(T)!==h)return v+1;var S=T,I=S.ordered,O=I!==void 0&&I,y=S.level,_=y===void 0?0:y;return _<v?v-_:_>v?0:_===v?O===g?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+Sge.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Ovn=Hs("species"),xvn=Hq.filter,Svn=aG>=51||!ia(function(){var e=[];return(e.constructor={})[Ovn]=function(){return{foo:1}},e.filter(Boolean).foo!==1});O0({target:"Array",proto:!0,forced:!Svn},{filter:function(e){return xvn(this,e,arguments.length>1?arguments[1]:void 0)}});var Zq=Function.prototype,Age=Zq.apply,Avn=Zq.bind,Ige=Zq.call,Ivn=typeof Reflect=="object"&&Reflect.apply||(Avn?Ige.bind(Age):function(){return Ige.apply(Age,arguments)}),kge=(Hs("species"),RegExp.prototype),kvn=ZPe.charAt,Evn=function(e,t,n){return t+(n?kvn(e,t).length:1)},_vn=Math.floor,BV=Kr("".charAt),Tvn=Kr("".replace),FV=Kr("".slice),Pvn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dvn=/\$([$&'`]|\d{1,2})/g,Rvn=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Dvn;return i!==void 0&&(i=gT(i
  1673. `)&&e.flags==="s")}),K0n=Qr.RegExp,q0n=Ya(function(){var e=K0n("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),J0n=PG.get,eyn=Yq("native-string-replace",String.prototype.replace),iM=RegExp.prototype.exec,RG=iM,tyn=ti("".charAt),nyn=ti("".indexOf),ryn=ti("".replace),QV=ti("".slice),UV=(GV=/b*/g,is(iM,Gge=/a/,"a"),is(iM,GV,"a"),Gge.lastIndex!==0||GV.lastIndex!==0),Qge=ODe.BROKEN_CARET,XV=/()??/.exec("")[1]!==void 0;(UV||XV||Qge||Y0n||q0n)&&(RG=function(e){var t,n,r,i,o,a,s,l=this,u=J0n(l),c=el(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=is(RG,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Qge&&l.sticky,g=is(CDe,l),b=l.source,v=0,m=c;if(f&&(g=ryn(g,"y",""),nyn(g,"g")===-1&&(g+="g"),m=QV(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&tyn(c,l.lastIndex-1)!==`
  1674. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),XV&&(n=new RegExp("^"+b+"$(?!\\s)",g)),UV&&(r=l.lastIndex),i=is(iM,f?n:l,m),f?i?(i.input=QV(i.input,v),i[0]=QV(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:UV&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),XV&&i&&i.length>1&&is(eyn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=ADe(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var jE=RG;A0({target:"RegExp",proto:!0,forced:/./.exec!==jE},{exec:jE});var oM=Array.isArray||function(e){return Uv(e)=="Array"},IDe=function(){},iyn=[],kDe=wT("Reflect","construct"),sJ=/^\s*(?:class|function)\b/,oyn=ti(sJ.exec),ayn=!sJ.exec(IDe),xI=function(e){if(!hl(e))return!1;try{return kDe(IDe,iyn,e),!0}catch{return!1}},lJ=!kDe||Ya(function(){var e;return xI(xI.call)||!xI(Object)||!xI(function(){e=!0})||e})?function(e){if(!hl(e))return!1;switch(oJ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ayn||!!oyn(sJ,eJ(e))}:xI,EDe=function(e,t,n){var r=qq(t);r in e?CT.f(e,r,Gq(0,n)):e[r]=n},syn=Od("species"),uJ=function(e){return kG>=51||!Ya(function(){var t=[];return(t.constructor={})[syn]=function(){return{foo:1}},t[e](Boolean).foo!==1})},lyn=ti([].slice),uyn=uJ("slice"),cyn=Od("species"),YV=Qr.Array,dyn=Math.max;function gh(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Uge(e){var t=e.selection;if(t==null)return!1;var n=gh(_e.nodes(e,{match:function(o){return tt.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=gh(n,2)[1],i=_e.start(e,r);if(Vr.equals(t.anchor,i))return!0}return!1}function Xge(e,t){var n,r,i=_e.nodes(e,{at:t,match:function(l){return tt.getNodeType(l)==="table"}}),o=!1;try{for(var a=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.")}(i),s=a.next();!s.done;s=a.next())s.value,o=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}A0({target:"Array",proto:!0,forced:!uyn},{slice:function(e,t){var n,r,i,o=bT(this),a=qB(o),s=VE(e,a),l=VE(t===void 0?a:t,a);if(oM(o)&&(n=o.constructor,(lJ(n)&&(n===YV||oM(n.prototype))||Yd(n)&&(n=n[cyn])===null)&&(n=void 0),n===YV||n===void 0))return lyn(o,s,l);for(r=new(n===void 0?YV:n)(dyn(l-s,0)),i=0;s<l;s++,i++)s in o&&EDe(r,i,o[s]);return r.length=i,r}});var Yge=ti(ti.bind),hyn=Od("species"),Kge=Qr.Array,pyn=function(e,t){return new(function(n){var r;return oM(n)&&(r=n.constructor,(lJ(r)&&(r===Kge||oM(r.prototype))||Yd(r)&&(r=r[hyn])===null)&&(r=void 0)),r===void 0?Kge:r}(e))(t===0?0:t)},qge=ti([].push),jm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=Kq(l),b=cDe(g),v=function(S,I){return pDe(S),I===void 0?S:Yge?Yge(S,I):function(){return S.apply(I,arguments)}}(u,c),m=qB(b),w=0,k=d||pyn,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:qge(T,h)}else switch(e){case 4:return!1;case 7:qge(T,h)}return o?-1:r||i?i:T}},JB={forEach:jm(0),map:jm(1),filter:jm(2),some:jm(3),every:jm(4),find:jm(5),findIndex:jm(6),filterReject:jm(7)},fyn=JB.map;A0({target:"Array",proto:!0,forced:!uJ("map")},{map:function(e){return fyn(this,e,arguments.length>1?arguments[1]:void 0)}});var gyn=iJ?{}.toString:function(){return"[object "+oJ(this)+"]"};function e9(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function _De(e){return e9(e).every(function(t){return!!t.isHeader})}iJ||NE(Object.prototype,"toString",gyn,{unsafe:!0});var myn=nJ.PROPER,$G=RegExp.prototype,
  1675. \v\f\r                 \u2028\u2029\uFEFF`,ime=ti("".replace),aM="["+FG+"]",Myn=RegExp("^"+aM+aM+"*"),Lyn=RegExp(aM+aM+"*$"),qV=function(e){return function(t){var n=el(S0(t));return 1&e&&(n=ime(n,Myn,"")),2&e&&(n=ime(n,Lyn,"")),n}},Byn={start:qV(1),end:qV(2),trim:qV(3)},Fyn=nJ.PROPER,Nyn=Byn.trim;function MDe(e){return e.length?e[0].tagName.toLowerCase():""}A0({target:"String",proto:!0,forced:function(e){return Ya(function(){return!!FG[e]()||"​…᠎"[e]()!=="​…᠎"||Fyn&&FG[e].name!==e})}("trim")},{trim:function(){return Nyn(this)}}),A0({global:!0},{globalThis:Qr}),hd&&(ut.fn.append=hd),Zp&&(ut.fn.on=Zp),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),zp&&(ut.fn.val=zp),m0&&(ut.fn.html=m0),YO&&(ut.fn.dataset=YO),QO&&(ut.fn.addClass=QO),UO&&(ut.fn.removeClass=UO),ex&&(ut.fn.children=ex),s4&&(ut.fn.each=s4),JO&&(ut.fn.find=JO);var WE=!1,LDe=0,BDe=0,HE=null,zE=null,u2=ut("body");function FDe(e){WE=!1,zE=null,HE=null,u2.off("mousemove",NDe),u2.off("mouseup",FDe)}u2.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(),WE=!0;var n=e.clientX;LDe=n;var r=t.getBoundingClientRect().width;BDe=r,u2.on("mousemove",NDe),u2.on("mouseup",FDe)}});var NDe=u1(function(e){if(WE&&zE!=null&&HE!=null){e.preventDefault();var t=e.clientX,n=BDe+(t-LDe);(n=Math.floor(100*n)/100)<30&&(n=30),Rt.setNodes(zE,{width:n.toString()},{at:HE})}},100),Vyn={type:"table",renderElem:function(e,t,n){var r=function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||Vt.isCollapsed(u))return!0;var c=u.anchor,d=u.focus,h=tt.findPath(s,l),f=_e.start(s,h),g=_e.end(s,h),b=Vr.compare(c,g)<=0&&Vr.compare(c,f)>=0,v=Vr.compare(d,g)<=0&&Vr.compare(d,f)>=0;return!!(b&&v&&Ot.equals(c.path.slice(0,3),d.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=mr("div",{className:"table-container","data-selected":tt.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=tt.findPath(n,e),u=_e.start(n,l),c=n.selection;c!=null?c.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},mr("table",{width:o,contentEditable:r},mr("colgroup",null,e9(e).map(function(s){var l=s.width;return mr("col",{width:l===void 0?"auto":l})})),mr("tbody",null,t)));return a}},jyn={type:"table-row",renderElem:function(e,t,n){return mr("tr",null,t)}},Wyn={type:"table-cell",renderElem:function(e,t,n){var r=function(h,f){var g=tt.getParentNode(h,f);if(g==null)return!1;var b=tt.getParentNode(h,g);return b!=null&&e9(b).some(function(v){return v===f})}(n,e),i=e,o=i.colSpan,a=o===void 0?1:o,s=i.rowSpan,l=s===void 0?1:s,u=i.isHeader,c=u!==void 0&&u;if(!r)return mr("td",{colSpan:a,rowSpan:l},t);var d=mr(c?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:u1(function(h){var f=this.elm;if(f!=null){var g=f.getBoundingClientRect(),b=g.left,v=g.width,m=g.top,w=g.height,k=h.clientX,T=h.clientY;WE||(k>b+v-5&&k<b+v&&T>m&&T<m+w?(f.style.cursor="col-resize",zE=n,HE=tt.findPath(n,e)):WE||(f.style.cursor="auto",zE=null,HE=null))}},100)}},t);return d}},Hyn={selector:"table",preParseHtml:function(e){var t=ut(e);if(MDe(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]}},zyn=JB.filter;A0({target:"Array",proto:!0,forced:!uJ("filter")},{filter:function(e){return zyn(this,e,arguments.length>1?arguments[1]:void 0)}});var Zyn=Math.floor,JV=ti("".charAt),Gyn=ti("".replace),ej=ti("".slice),Qyn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uyn=/\$([$&'`]|\d{1,2})/g,Xyn=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Uyn;return i!==void 0&&(i=Kq(i),l=Qyn),Gyn(o,l,function(u,c){var d;switch(JV(c,0)){case"$":return"$";case"&":return e;case"`":return ej(t,0,n);case"'":return ej(t,a);case"<":d=i[ej(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=Zyn(h/10);return f===0?u:f<=s?r[f-1]===void 0?JV(c,1):r[f-1]+JV(c,1):u}d=r[h-1]}return d===void 0?"":d})},NG=Od("replace"),Yyn=Math.max,Kyn=Math.min,qyn=ti([].concat),tj=ti([].push),ome=ti("".indexOf),
  1676. `)},l.deleteBackward=function(u){if(!Uge(l)){var c=l.selection;if(c){var d=_e.before(l,c);if(d){var h=Xge(l,d),f=Xge(l,c);if(h&&!f)return}}n(u)}},l.handleTab=function(){var u;if(tt.getSelectedNodeByType(l,"table")){var c=_e.above(e);tt.checkNodeType(c[0],"table-cell")&&Rt.select(e,c[1]);var d=_e.next(e);if(d)d[0]&&d[0].text&&(d=(u=_e.above(e,{at:d[1]}))!==null&&u!==void 0?u:d),Rt.select(e,d[1]);else{var h=l.children||[],f=h.length;if(tt.checkNodeType(h[f-1],"table")){var g=tt.genEmptyParagraph();Rt.insertNodes(l,g,{at:[f]}),l.handleTab()}}}else a()},l.deleteForward=function(u){Uge(l)||r(u)},l.normalizeNode=function(u){var c=gh(u,2),d=c[0],h=c[1];if(tt.getNodeType(d)!=="table")return i([d,h]);if(tt.isLastNode(l,d)){var f=tt.genEmptyParagraph();Rt.insertNodes(l,f,{at:[h[0]+1]})}},l.insertData=function(u){if(tt.getSelectedNodeByType(l,"table")!=null){var c=u.getData("text/plain");c===`
  1677. `||/<img[^>]+>/.test(u.getData("text/html"))?o(u):_e.insertText(l,c)}else o(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var c=tt.getSelectedNodeByType(l,"table-cell");if(c!=null){var d=u.anchor,h=u.focus;if(Ot.equals(d.path.slice(0,3),h.path.slice(0,3)))if(vn.string(c).length!==0){var f=tt.findPath(l,c),g={anchor:_e.start(l,f),focus:_e.end(l,f)};l.select(g)}else s();else s()}else s()}else s()},l}};vu("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"}}),vu("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
  1678. Copyright (c) Microsoft Corporation.
  1679. Permission to use, copy, modify, and/or distribute this software for any
  1680. purpose with or without fee is hereby granted.
  1681. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1682. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1683. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1684. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1685. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1686. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1687. PERFORMANCE OF THIS SOFTWARE.
  1688. ***************************************************************************** */var sM=function(){return sM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},sM.apply(this,arguments)};function t9(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(a,s)}l((r=r.apply(e,[])).next())})}function n9(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function Nb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function gbn(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(i){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&i[o],s=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(o?"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(i){t[i]=e[i]&&function(o){return new Promise(function(a,s){(function(l,u,c,d){Promise.resolve(d).then(function(h){l({value:h,done:c})},u)})(a,s,(o=e[i](o)).done,o.value)})}}}var cme=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dJ(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wm,C$,$R=function(e){return e&&e.Math==Math&&e},wn=$R(typeof globalThis=="object"&&globalThis)||$R(typeof window=="object"&&window)||$R(typeof self=="object"&&self)||$R(typeof cme=="object"&&cme)||function(){return this}()||Function("return this")(),lo=function(e){try{return!!e()}catch{return!0}},Qp=!lo(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),AI=Function.prototype.call,ao=AI.bind?AI.bind(AI):function(){return AI.apply(AI,arguments)},dme={}.propertyIsEnumerable,hme=Object.getOwnPropertyDescriptor,mbn={f:hme&&!dme.call({1:2},1)?function(e){var t=hme(this,e);return!!t&&t.enumerable}:dme},r9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},jDe=Function.prototype,VG=jDe.bind,jG=jDe.call,vbn=VG&&VG.bind(jG),Er=VG?function(e){return e&&vbn(jG,e)}:function(e){return e&&function(){return jG.apply(e,arguments)}},ybn=Er({}.toString),bbn=Er("".slice),Mp=function(e){return bbn(ybn(e),8,-1)},oj=wn.Object,wbn=Er("".split),hJ=lo(function(){return!oj("z").propertyIsEnumerable(0)})?function(e){return Mp(e)=="String"?wbn(e,""):oj(e)}:oj,Cbn=wn.TypeError,xT=function(e){if(e==null)throw Cbn("Can't call method on "+e);return e},V0=function(e){return hJ(xT(e))},Ui=function(e){retu
  1689. \v\f\r                 \u2028\u2029\uFEFF`,Ame=Er("".replace),fM="["+ZG+"]",h1n=RegExp("^"+fM+fM+"*"),p1n=RegExp(fM+fM+"*$"),lj=function(e){return function(t){var n=Nc(xT(t));return 1&e&&(n=Ame(n,h1n,"")),2&e&&(n=Ame(n,p1n,"")),n}},f1n={start:lj(1),end:lj(2),trim:lj(3)},g1n=sS.PROPER,m1n=f1n.trim;function Ime(e){return e.length?e[0].tagName.toLowerCase():""}function XDe(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=ut(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}su({target:"String",proto:!0,forced:lo(function(){return!!ZG.trim()||"​…᠎".trim()!=="​…᠎"||g1n&&ZG.trim.name!=="trim"})},{trim:function(){return m1n(this)}}),su({global:!0},{globalThis:wn}),hd&&(ut.fn.append=hd),Zp&&(ut.fn.on=Zp),v0&&(ut.fn.focus=v0),dd&&(ut.fn.attr=dd),zp&&(ut.fn.val=zp),m0&&(ut.fn.html=m0),qO&&(ut.fn.parent=qO),XO&&(ut.fn.hasClass=XO),nx&&(ut.fn.empty=nx);var MR,v1n={type:"video",renderElem:function(e,t,n){var r,i=e,o=i.src,a=o===void 0?"":o,s=i.poster,l=s===void 0?"":s,u=i.width,c=u===void 0?"auto":u,d=i.height,h=d===void 0?"auto":d,f=tt.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=mr("div",{className:"w-e-textarea-video-container","data-selected":f?"true":"",innerHTML:XDe(a,c,h)});else{var g=mr("video",{poster:l,controls:!0},mr("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
  1690. 抱歉浏览器不支持 video 视频`);c!=="auto"&&(g.data.width=c),h!=="auto"&&(g.data.height=h),r=mr("div",{className:"w-e-textarea-video-container","data-selected":f?"true":""},g)}return rx("div",{props:{contentEditable:!1},on:{mousedown:function(b){return b.preventDefault()}}},r)}},y1n={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?"":r,o=n.poster,a=o===void 0?"":o,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>
  1691. `;return i.trim().indexOf("<iframe ")===0?d+=XDe(i,l,c):d+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',d+`
  1692. </div>`}},b1n=Object.keys||function(e){return QDe(e,dM)},w1n=Qp?Object.defineProperties:function(e,t){Ss(e);for(var n,r=V0(t),i=b1n(t),o=i.length,a=0;o>a;)Lg.f(e,n=i[a++],r[n]);return e},GG=b1("document","documentElement"),YDe=bJ("IE_PROTO"),uj=function(){},KDe=function(e){return"<script>"+e+"<\/script>"},kme=function(e){e.write(KDe("")),e.close();var t=e.parentWindow.Object;return e=null,t},O$=function(){try{MR=new ActiveXObject("htmlfile")}catch{}var e,t;O$=typeof document<"u"?document.domain&&MR?kme(MR):((t=UE("iframe")).style.display="none",GG.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(KDe("document.F=Object")),e.close(),e.F):kme(MR);for(var n=dM.length;n--;)delete O$.prototype[dM[n]];return O$()};a9[YDe]=!0;var CJ=Object.create||function(e,t){var n;return e!==null?(uj.prototype=Ss(e),n=new uj,uj.prototype=null,n[YDe]=e):n=O$(),t===void 0?n:w1n(n,t)},QG=Pa("unscopables"),UG=Array.prototype;UG[QG]==null&&Lg.f(UG,QG,{configurable:!0,value:CJ(null)});var d2=function(e){UG[QG][e]=!0},C1n=GDe.includes;su({target:"Array",proto:!0},{includes:function(e){return C1n(this,e,arguments.length>1?arguments[1]:void 0)}}),d2("includes");var O1n={selector:"iframe,video,p",preParseHtml:function(e){var t=ut(e),n=t;if(Ime(t)==="p"){var r=t.children();if(r.length===1){var i=r[0],o=i.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=ut(i))}}var a=Ime(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=ut('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},Eme=Er(Er.bind),YE=function(e,t){return I0(e),t===void 0?e:Eme?Eme(e,t):function(){return e.apply(t,arguments)}},gM=Array.isArray||function(e){return Mp(e)=="Array"},qDe=function(){},x1n=[],JDe=b1("Reflect","construct"),OJ=/^\s*(?:class|function)\b/,S1n=Er(OJ.exec),A1n=!OJ.exec(qDe),kI=function(e){if(!Ui(e))return!1;try{return JDe(qDe,x1n,e),!0}catch{return!1}},xJ=!JDe||lo(function(){var e;return kI(kI.call)||!kI(Object)||!kI(function(){e=!0})||e})?function(e){if(!Ui(e))return!1;switch(l9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return A1n||!!S1n(OJ,o9(e))}:kI,I1n=Pa("species"),_me=wn.Array,k1n=function(e,t){return new(function(n){var r;return gM(n)&&(r=n.constructor,(xJ(r)&&(r===_me||gM(r.prototype))||$o(r)&&(r=r[I1n])===null)&&(r=void 0)),r===void 0?_me:r}(e))(t===0?0:t)},Tme=Er([].push),Hm=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,s=e==5||o;return function(l,u,c,d){for(var h,f,g=i9(l),b=hJ(g),v=YE(u,c),m=ST(b),w=0,k=d||k1n,T=t?k(l,m):n||a?k(l,0):void 0;m>w;w++)if((s||w in b)&&(f=v(h=b[w],w,g),e))if(t)T[w]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:Tme(T,h)}else switch(e){case 4:return!1;case 7:Tme(T,h)}return o?-1:r||i?i:T}},SJ={forEach:Hm(0),map:Hm(1),filter:Hm(2),some:Hm(3),every:Hm(4),find:Hm(5),findIndex:Hm(6),filterReject:Hm(7)},E1n=SJ.find,Pme=!0;"find"in[]&&Array(1).find(function(){Pme=!1}),su({target:"Array",proto:!0,forced:Pme},{find:function(e){return E1n(this,e,arguments.length>1?arguments[1]:void 0)}}),d2("find");var _1n=wJ?{}.toString:function(){return"[object "+l9(this)+"]"};function Dme(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:""}]}}wJ||md(Object.prototype,"toString",_1n,{unsafe:!0});var Rme,cj,T1n={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=ut(e),i="",o="",a="auto",s="auto",l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",Dme(i=l[0].outerHTML,o,a,s);var u=r.find("video");return(i=u.attr("src")||"")||u.length>0&&(i=u.find("source").attr("src")||""),a=u.attr("width")||"auto",s=u.attr("height")||"auto",Dme(i,o=u.attr("poster")||"",a,s)}},eRe=function(){var e=Ss(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},AJ=wn.RegExp,XG=lo(function(){var e=AJ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),P
  1693. `)&&e.flags==="s")}),M1n=wn.RegExp,L1n=lo(function(){var e=M1n("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),B1n=cc.get,F1n=gJ("native-string-replace",String.prototype.replace),mM=RegExp.prototype.exec,YG=mM,N1n=Er("".charAt),V1n=Er("".indexOf),j1n=Er("".replace),dj=Er("".slice),hj=(cj=/b*/g,ao(mM,Rme=/a/,"a"),ao(mM,cj,"a"),Rme.lastIndex!==0||cj.lastIndex!==0),$me=D1n.BROKEN_CARET,pj=/()??/.exec("")[1]!==void 0;(hj||pj||$me||$1n||L1n)&&(YG=function(e){var t,n,r,i,o,a,s,l=this,u=B1n(l),c=Nc(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=ao(YG,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=$me&&l.sticky,g=ao(eRe,l),b=l.source,v=0,m=c;if(f&&(g=j1n(g,"y",""),V1n(g,"g")===-1&&(g+="g"),m=dj(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&N1n(c,l.lastIndex-1)!==`
  1694. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),pj&&(n=new RegExp("^"+b+"$(?!\\s)",g)),hj&&(r=l.lastIndex),i=ao(mM,f?n:l,m),f?i?(i.input=dj(i.input,v),i[0]=dj(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:hj&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),pj&&i&&i.length>1&&ao(F1n,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=CJ(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var vM=YG;su({target:"RegExp",proto:!0,forced:/./.exec!==vM},{exec:vM});var IJ=Function.prototype,Mme=IJ.apply,W1n=IJ.bind,Lme=IJ.call,tRe=typeof Reflect=="object"&&Reflect.apply||(W1n?Lme.bind(Mme):function(){return Lme.apply(Mme,arguments)}),Bme=(Pa("species"),RegExp.prototype),H1n=Er("".charAt),Fme=Er("".charCodeAt),z1n=Er("".slice),Nme=function(e){return function(t,n){var r,i,o=Nc(xT(t)),a=s9(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Fme(o,a))<55296||r>56319||a+1===s||(i=Fme(o,a+1))<56320||i>57343?e?H1n(o,a):r:e?z1n(o,a,a+2):i-56320+(r-55296<<10)+65536}},nRe={codeAt:Nme(!1),charAt:Nme(!0)},Z1n=nRe.charAt,G1n=function(e,t,n){return t+(n?Z1n(e,t).length:1)},Q1n=Math.floor,fj=Er("".charAt),U1n=Er("".replace),gj=Er("".slice),X1n=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Y1n=/\$([$&'`]|\d{1,2})/g,K1n=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Y1n;return i!==void 0&&(i=i9(i),l=X1n),U1n(o,l,function(u,c){var d;switch(fj(c,0)){case"$":return"$";case"&":return e;case"`":return gj(t,0,n);case"'":return gj(t,a);case"<":d=i[gj(c,1,-1)];break;default:var h=+c;if(h===0)return u;if(h>s){var f=Q1n(h/10);return f===0?u:f<=s?r[f-1]===void 0?fj(c,1):r[f-1]+fj(c,1):u}d=r[h-1]}return d===void 0?"":d})},q1n=wn.TypeError,J1n=function(e,t){var n=e.exec;if(Ui(n)){var r=ao(n,e,t);return r!==null&&Ss(r),r}if(Mp(e)==="RegExp")return ao(vM,e,t);throw q1n("RegExp#exec called on incompatible receiver")},KG=Pa("replace"),ewn=Math.max,twn=Math.min,nwn=Er([].concat),mj=Er([].push),Vme=Er("".indexOf),jme=Er("".slice),rwn="a".replace(/./,"$0")==="$0",Wme=!!/./[KG]&&/./[KG]("a","$0")==="";function rRe(e){return e+"-"+pEe()}(function(e,t,n,r){var i=Pa(e),o=!lo(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!lo(function(){var u=!1,c=/a/;return c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Er(/./[i]),l=function(u,c,d){var h=Wme?"$":"$0";return[function(f,g){var b=xT(this),v=f==null?void 0:QE(f,KG);return v?ao(v,f,b,g):ao(c,Nc(b),f,g)},function(f,g){var b=Ss(this),v=Nc(f);if(typeof g=="string"&&Vme(g,h)===-1&&Vme(g,"$<")===-1){var m=d(c,b,v,g);if(m.done)return m.value}var w=Ui(g);w||(g=Nc(g));var k=b.global;if(k){var T=b.unicode;b.lastIndex=0}for(var S=[];;){var I=J1n(b,v);if(I===null||(mj(S,I),!k))break;Nc(I[0])===""&&(b.lastIndex=G1n(v,ZDe(b.lastIndex),T))}for(var O,y="",_=0,A=0;A<S.length;A++){for(var R=Nc((I=S[A])[0]),D=ewn(twn(s9(I.index),v.length),0),C=[],x=1;x<I.length;x++)mj(C,(O=I[x])===void 0?O:String(O));var P=I.groups;if(w){var $=nwn([R],C,D,v);P!==void 0&&mj($,P);var L=Nc(tRe(g,void 0,$))}else L=K1n(R,v,D,C,P,g);D>=_&&(y+=jme(v,_,D)+L,_=D+R.length)}return y+jme(v,_)}]}(0,""[e],function(u,c,d,h,f){var g=Er(u),b=c.exec;return b===vM||b===Bme.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});md(String.prototype,e,l[0]),md(Bme,i,l[1])}})("replace",0,!!lo(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!rwn||Wme);var yM=wn.Promise,bM=function(e,t,n){for(var r in t)md(e,r,t[r],n);return e},iwn=wn.String,own=wn.TypeError,px=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Er(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return Ss(r),function(o){if(typeof o=="object"||Ui(o))return o;throw own("Can't set "+iwn(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),awn=Lg.f,Hme=Pa("toStringTag"),wM=function(e,t,n){e&&!za(e=n?e:e.prototype,Hme)&&awn(e,Hme,{configurable:!0,value:t})},zme=Pa("species"),swn=wn.TypeError,kJ=function(
  1695. `)&&e.flags==="s")}),$On=bn.RegExp,MOn=Oo(function(){var e=$On("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),LOn=dc.get,BOn=FJ("native-string-replace",String.prototype.replace),TM=RegExp.prototype.exec,pQ=TM,FOn=Gr("".charAt),NOn=Gr("".indexOf),VOn=Gr("".replace),jj=Gr("".slice),Wj=(Vj=/b*/g,Vi(TM,Lve=/a/,"a"),Vi(TM,Vj,"a"),Lve.lastIndex!==0||Vj.lastIndex!==0),Bve=HRe.BROKEN_CARET,Hj=/()??/.exec("")[1]!==void 0;(Wj||Hj||Bve||ROn||MOn)&&(pQ=function(e){var t,n,r,i,o,a,s,l=this,u=LOn(l),c=e0(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Vi(pQ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Bve&&l.sticky,g=Vi(WRe,l),b=l.source,v=0,m=c;if(f&&(g=VOn(g,"y",""),NOn(g,"g")===-1&&(g+="g"),m=jj(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&FOn(c,l.lastIndex-1)!==`
  1696. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),Hj&&(n=new RegExp("^"+b+"$(?!\\s)",g)),Wj&&(r=l.lastIndex),i=Vi(TM,f?n:l,m),f?i?(i.input=jj(i.input,v),i[0]=jj(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Wj&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),Hj&&i&&i.length>1&&Vi(BOn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=XJ(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var o_=pQ;Ap({target:"RegExp",proto:!0,forced:/./.exec!==o_},{exec:o_});var YJ=Function.prototype,Fve=YJ.apply,jOn=YJ.bind,Nve=YJ.call,GRe=typeof Reflect=="object"&&Reflect.apply||(jOn?Nve.bind(Fve):function(){return Nve.apply(Fve,arguments)}),WOn=Da("species"),zj=RegExp.prototype,HOn=Da("match"),zOn=bn.TypeError,ZOn=Da("species"),QRe=function(e,t){var n,r=As(e).constructor;return r===void 0||(n=As(r)[ZOn])==null?t:function(i){if(QJ(i))return i;throw zOn(xM(i)+" is not a constructor")}(n)},GOn=Gr("".charAt),Vve=Gr("".charCodeAt),QOn=Gr("".slice),jve=function(e){return function(t,n){var r,i,o=e0(JE(t)),a=zJ(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Vve(o,a))<55296||r>56319||a+1===s||(i=Vve(o,a+1))<56320||i>57343?e?GOn(o,a):r:e?QOn(o,a,a+2):i-56320+(r-55296<<10)+65536}},URe={codeAt:jve(!1),charAt:jve(!0)},UOn=URe.charAt,XOn=function(e,t,n){return t+(n?UOn(e,t).length:1)},YOn=bn.Array,KOn=Math.max,fQ=function(e,t,n){for(var r=kT(e),i=i_(t,r),o=i_(n===void 0?r:n,r),a=YOn(KOn(o-i,0)),s=0;i<o;i++,s++)VRe(a,s,e[i]);return a.length=s,a},qOn=bn.TypeError,Wve=function(e,t){var n=e.exec;if(Ji(n)){var r=Vi(n,e,t);return r!==null&&As(r),r}if(oh(e)==="RegExp")return Vi(o_,e,t);throw qOn("RegExp#exec called on incompatible receiver")},lC=HRe.UNSUPPORTED_Y,JOn=Math.min,XRe=[].push,exn=Gr(/./.exec),uC=Gr(XRe),LI=Gr("".slice);(function(e,t,n,r){var i=Da(e),o=!Oo(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Oo(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[WOn]=function(){return c},c.flags="",c[i]=/./[i],c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=Gr(/./[i]),l=function(u,c,d){var h;return h="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(f,g){var b,v,m=e0(JE(this)),w=g===void 0?4294967295:g>>>0;if(w===0)return[];if(f===void 0)return[m];if(!wo(b=f)||!((v=b[HOn])!==void 0?v:oh(b)=="RegExp"))return Vi(c,m,f,w);for(var k,T,S,I=[],O=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(f.sticky?"y":""),y=0,_=new RegExp(f.source,O+"g");(k=Vi(o_,_,m))&&!((T=_.lastIndex)>y&&(uC(I,LI(m,y,k.index)),k.length>1&&k.index<m.length&&GRe(XRe,I,fQ(k,1)),S=k[0].length,y=T,I.length>=w));)_.lastIndex===k.index&&_.lastIndex++;return y===m.length?!S&&exn(_,"")||uC(I,""):uC(I,LI(m,y)),I.length>w?fQ(I,0,w):I}:"0".split(void 0,0).length?function(f,g){return f===void 0&&g===0?[]:Vi(c,this,f,g)}:c,[function(f,g){var b=JE(this),v=f==null?void 0:n_(f,u);return v?Vi(v,f,b,g):Vi(h,e0(b),f,g)},function(f,g){var b=As(this),v=e0(f),m=d(h,b,v,g,h!==c);if(m.done)return m.value;var w=QRe(b,RegExp),k=b.unicode,T=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")+(lC?"g":"y"),S=new w(lC?"^(?:"+b.source+")":b,T),I=g===void 0?4294967295:g>>>0;if(I===0)return[];if(v.length===0)return Wve(S,v)===null?[v]:[];for(var O=0,y=0,_=[];y<v.length;){S.lastIndex=lC?0:y;var A,R=Wve(S,lC?LI(v,y):v);if(R===null||(A=JOn(MRe(S.lastIndex+(lC?y:0)),v.length))===O)y=XOn(v,y,k);else{if(uC(_,LI(v,O,y)),_.length===I)return _;for(var D=1;D<=R.length-1;D++)if(uC(_,R[D]),_.length===I)return _;y=O=A}}return uC(_,LI(v,O)),_}]}(i,""[e],function(u,c,d,h,f){var g=Gr(u),b=c.exec;return b===o_||b===zj.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});vd(String.prototype,e,l[0]),vd(zj,i,l[1])}r&&Lp(zj[i],"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]!
  1697. Copyright (c) Microsoft Corporation.
  1698. Permission to use, copy, modify, and/or distribute this software for any
  1699. purpose with or without fee is hereby granted.
  1700. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1701. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1702. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1703. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1704. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1705. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1706. PERFORMANCE OF THIS SOFTWARE.
  1707. ***************************************************************************** */var PM=function(){return PM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},PM.apply(this,arguments)};function KJ(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){var c;u.done?i(u.value):(c=u.value,c instanceof n?c:new n(function(d){d(c)})).then(a,s)}l((r=r.apply(e,[])).next())})}function qJ(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,u])}}}function txn(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(i){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&i[o],s=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(o?"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(i){t[i]=e[i]&&function(o){return new Promise(function(a,s){(function(l,u,c,d){Promise.resolve(d).then(function(h){l({value:h,done:c})},u)})(a,s,(o=e[i](o)).done,o.value)})}}}var gQ=Da("unscopables"),mQ=Array.prototype;mQ[gQ]==null&&Bg.f(mQ,gQ,{configurable:!0,value:XJ(null)});var Hb,Hve,zve,Zj=function(e){mQ[gQ][e]=!0},gx={},nxn=!Oo(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Zve=HJ("IE_PROTO"),vQ=bn.Object,rxn=vQ.prototype,DM=nxn?vQ.getPrototypeOf:function(e){var t=NJ(e);if(Za(t,Zve))return t[Zve];var n=t.constructor;return Ji(n)&&t instanceof n?n.prototype:t instanceof vQ?rxn:null},yQ=Da("iterator"),YRe=!1;[].keys&&("next"in(zve=[].keys())?(Hve=DM(DM(zve)))!==Object.prototype&&(Hb=Hve):YRe=!0);var ixn=Hb==null||Oo(function(){var e={};return Hb[yQ].call(e)!==e});ixn&&(Hb={}),Ji(Hb[yQ])||vd(Hb,yQ,function(){return this});var JJ={IteratorPrototype:Hb,BUGGY_SAFARI_ITERATORS:YRe},oxn=Bg.f,Gve=Da("toStringTag"),RM=function(e,t,n){e&&!Za(e=n?e:e.prototype,Gve)&&oxn(e,Gve,{configurable:!0,value:t})},axn=JJ.IteratorPrototype,sxn=function(){return this},lxn=bn.String,uxn=bn.TypeError,mx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return As(r),function(o){if(typeof o=="object"||Ji(o))return o;throw uxn("Can't set "+lxn(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),cxn=IT.PROPER,dxn=IT.CONFIGURABLE,Qve=JJ.IteratorPrototype,Gj=JJ.BUGGY_SAFARI_ITERATORS,BI=Da("iterator"),hxn=function(){return this},KRe=function(e,t,n,r,i,o,a){(function(v,m,w,k){var T=m+" Iterator";v.prototype=XJ(axn,{next:u9(1,w)}),RM(v,T,!1),gx[T]=sxn})(n,t,r);var s,l,u=function(v){if(v===i&&g)return g;if(!Gj&&v in h)return h[v];switch(v){case"keys":case"values":case"entries"
  1708. * Prism: Lightweight, robust, elegant syntax highlighting
  1709. *
  1710. * @license MIT <https://opensource.org/licenses/MIT>
  1711. * @author Lea Verou <https://lea.verou.me>
  1712. * @namespace
  1713. * @public
  1714. */e.exports&&(e.exports=t),FM!==void 0&&(FM.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 i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",a)}}),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 i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\
  1715. `)&&e.flags==="s")}),_An=Jr.RegExp,TAn=Os(function(){var e=_An("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),PAn=TQ.get,DAn=uee("native-string-replace",String.prototype.replace),WM=RegExp.prototype.exec,RQ=WM,RAn=$i("".charAt),$An=$i("".indexOf),MAn=$i("".replace),y7=$i("".slice),b7=(v7=/b*/g,bs(WM,X0e=/a/,"a"),bs(WM,v7,"a"),X0e.lastIndex!==0||v7.lastIndex!==0),Y0e=G3e.BROKEN_CARET,w7=/()??/.exec("")[1]!==void 0;(b7||w7||Y0e||EAn||TAn)&&(RQ=function(e){var t,n,r,i,o,a,s,l=this,u=PAn(l),c=gg(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=bs(RQ,d,c),l.lastIndex=d.lastIndex,t;var h=u.groups,f=Y0e&&l.sticky,g=bs(Z3e,l),b=l.source,v=0,m=c;if(f&&(g=MAn(g,"y",""),$An(g,"g")===-1&&(g+="g"),m=y7(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&RAn(c,l.lastIndex-1)!==`
  1716. `)&&(b="(?: "+b+")",m=" "+m,v++),n=new RegExp("^(?:"+b+")",g)),w7&&(n=new RegExp("^"+b+"$(?!\\s)",g)),b7&&(r=l.lastIndex),i=bs(WM,f?n:l,m),f?i?(i.input=y7(i.input,v),i[0]=y7(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:b7&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),w7&&i&&i.length>1&&bs(DAn,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&h)for(i.groups=a=IAn(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var u_=RQ;g9({target:"RegExp",proto:!0,forced:/./.exec!==u_},{exec:u_});var See=Function.prototype,K0e=See.apply,LAn=See.bind,q0e=See.call,BAn=typeof Reflect=="object"&&Reflect.apply||(LAn?q0e.bind(K0e):function(){return q0e.apply(K0e,arguments)}),FAn=W0("species"),C7=RegExp.prototype,NAn=W0("match"),VAn=Jr.TypeError,jAn=W0("species"),WAn=$i("".charAt),J0e=$i("".charCodeAt),HAn=$i("".slice),zAn=function(e){return function(t,n){var r,i,o=gg(vx(t)),a=wee(n),s=o.length;return a<0||a>=s?"":(r=J0e(o,a))<55296||r>56319||a+1===s||(i=J0e(o,a+1))<56320||i>57343?WAn(o,a):HAn(o,a,a+2)}},ZAn=zAn(),GAn=function(e,t,n){return t+(n?ZAn(e,t).length:1)},QAn=Jr.Array,UAn=Math.max,eye=function(e,t,n){for(var r,i,o,a,s=Cee(e),l=PQ(t,s),u=PQ(n===void 0?s:n,s),c=QAn(UAn(u-l,0)),d=0;l<u;l++,d++)r=c,i=d,o=e[l],(a=fee(i))in r?p9.f(r,a,gee(0,o)):r[a]=o;return c.length=d,c},XAn=Jr.TypeError,tye=function(e,t){var n=e.exec;if(Nl(n)){var r=bs(n,e,t);return r!==null&&ah(r),r}if(r0(e)==="RegExp")return bs(u_,e,t);throw XAn("RegExp#exec called on incompatible receiver")},pC=G3e.UNSUPPORTED_Y,YAn=Math.min,X3e=[].push,KAn=$i(/./.exec),fC=$i(X3e),ZI=$i("".slice);(function(e,t,n,r){var i=W0(e),o=!Os(function(){var u={};return u[i]=function(){return 7},""[e](u)!=7}),a=o&&!Os(function(){var u=!1,c=/a/;return(c={}).constructor={},c.constructor[FAn]=function(){return c},c.flags="",c[i]=/./[i],c.exec=function(){return u=!0,null},c[i](""),!u});if(!o||!a||n){var s=$i(/./[i]),l=function(u,c,d){var h;return h="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(f,g){var b,v,m=gg(vx(this)),w=g===void 0?4294967295:g>>>0;if(w===0)return[];if(f===void 0)return[m];if(!kp(b=f)||!((v=b[NAn])!==void 0?v:r0(b)=="RegExp"))return bs(c,m,f,w);for(var k,T,S,I=[],O=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(f.sticky?"y":""),y=0,_=new RegExp(f.source,O+"g");(k=bs(u_,_,m))&&!((T=_.lastIndex)>y&&(fC(I,ZI(m,y,k.index)),k.length>1&&k.index<m.length&&BAn(X3e,I,eye(k,1)),S=k[0].length,y=T,I.length>=w));)_.lastIndex===k.index&&_.lastIndex++;return y===m.length?!S&&KAn(_,"")||fC(I,""):fC(I,ZI(m,y)),I.length>w?eye(I,0,w):I}:"0".split(void 0,0).length?function(f,g){return f===void 0&&g===0?[]:bs(c,this,f,g)}:c,[function(f,g){var b=vx(this),v=f==null?void 0:P3e(f,u);return v?bs(v,f,b,g):bs(h,gg(b),f,g)},function(f,g){var b=ah(this),v=gg(f),m=d(h,b,v,g,h!==c);if(m.done)return m.value;var w=function(C,x){var P,$=ah(C).constructor;return $===void 0||(P=ah($)[jAn])==null?x:function(L){if(F3e(L))return L;throw VAn(_3e(L)+" is not a constructor")}(P)}(b,RegExp),k=b.unicode,T=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")+(pC?"g":"y"),S=new w(pC?"^(?:"+b.source+")":b,T),I=g===void 0?4294967295:g>>>0;if(I===0)return[];if(v.length===0)return tye(S,v)===null?[v]:[];for(var O=0,y=0,_=[];y<v.length;){S.lastIndex=pC?0:y;var A,R=tye(S,pC?ZI(v,y):v);if(R===null||(A=YAn(M3e(S.lastIndex+(pC?y:0)),v.length))===O)y=GAn(v,y,k);else{if(fC(_,ZI(v,O,y)),_.length===I)return _;for(var D=1;D<=R.length-1;D++)if(fC(_,R[D]),_.length===I)return _;y=O=A}}return fC(_,ZI(v,O)),_}]}(i,""[e],function(u,c,d,h,f){var g=$i(u),b=c.exec;return b===u_||b===C7.exec?o&&!f?{done:!0,value:s(c,d,h)}:{done:!0,value:g(d,c,h)}:{done:!1}});l_(String.prototype,e,l[0]),l_(C7,i,l[1])}r&&yx(C7[i],"sham",!0)})("split",0,!!Os(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"}),pC),g9({global:!0},{g
  1717. Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ta(ta({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ta(ta({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ta(ta({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ta(ta({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,i){var o=r.key,a=r.factory,s=r.config,l=jc(jc({},s),i||{});if(PE[o]!=null)throw new Error("Duplicated key '"+o+"' in menu items");PE[o]=a,function(u,c){c!=null&&(O_e[u]=c)}(o,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,i=n.renderElem;Q_e[r||""]=i})(t)},e.registerRenderStyle=function(t){(function(n){EZ.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,i=n.elemToHtml;x_e[r||""]=i})(t)},e.registerStyleToHtml=function(t){(function(n){CZ.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){j_e.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,i=n.parseElemHtml;A4[r]=i})(t)},e.registerParseStyleHtml=function(t){(function(n){LK.push(n)})(t)},e.registerModule=function(t){Uy(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
  1718. Copyright (c) Microsoft Corporation.
  1719. Permission to use, copy, modify, and/or distribute this software for any
  1720. purpose with or without fee is hereby granted.
  1721. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1722. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1723. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1724. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1725. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1726. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1727. PERFORMANCE OF THIS SOFTWARE.
  1728. ***************************************************************************** */function Uy(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach(function(c){return ms.registerMenu(c)}),n&&n.forEach(function(c){return ms.registerRenderElem(c)}),r&&ms.registerRenderStyle(r),i&&i.forEach(function(c){return ms.registerElemToHtml(c)}),o&&ms.registerStyleToHtml(o),a&&a.forEach(function(c){return ms.registerPreParseHtml(c)}),s&&s.forEach(function(c){return ms.registerParseElemHtml(c)}),l&&ms.registerParseStyleHtml(l),u&&ms.registerPlugin(u)}dgn.forEach(function(e){return Uy(e)}),Uy(Wvn),Uy(fbn),Uy(xCn),Uy(fSn),Uy(rIn);var q3e='<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>',J3e={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"]}},aIn={hoverbarKeys:ta(ta({},J3e),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};ms.setEditorConfig(ta(ta({},aIn),{decorate:K3e}));var sIn={hoverbarKeys:J3e};ms.setSimpleEditorConfig(ta(ta({},sIn),{decorate:K3e}));var lIn={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:yn("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:yn("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:yn("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:yn("editor.image"),iconSvg:q3e,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:yn("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"]};ms.setToolbarConfig(lIn);var uIn={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:yn("editor.image"),iconSvg:q3e,menuKeys:["insertImage","uploadImage"]},"inse
  1729. Please use '@${e}' event instead of props`,t}var e$e=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const bIn=ft({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=Re(null),r=so(null),i=Re(""),o=()=>{if(!n.value)return;const s=qr(e.defaultContent);cIn({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:yIn(vIn({},e.defaultConfig),{onCreated(l){if(r.value=l,t.emit("onCreated",l),e.defaultConfig.onCreated){const u=Um("onCreated");throw new Error(u)}},onChange(l){const u=l.getHtml();if(i.value=u,t.emit("update:modelValue",u),t.emit("onChange",l),e.defaultConfig.onChange){const c=Um("onChange");throw new Error(c)}},onDestroyed(l){if(t.emit("onDestroyed",l),e.defaultConfig.onDestroyed){const u=Um("onDestroyed");throw new Error(u)}},onMaxLength(l){if(t.emit("onMaxLength",l),e.defaultConfig.onMaxLength){const u=Um("onMaxLength");throw new Error(u)}},onFocus(l){if(t.emit("onFocus",l),e.defaultConfig.onFocus){const u=Um("onFocus");throw new Error(u)}},onBlur(l){if(t.emit("onBlur",l),e.defaultConfig.onBlur){const u=Um("onBlur");throw new Error(u)}},customAlert(l,u){if(t.emit("customAlert",l,u),e.defaultConfig.customAlert){const c=Um("customAlert");throw new Error(c)}},customPaste:(l,u)=>{if(e.defaultConfig.customPaste){const d=Um("customPaste");throw new Error(d)}let c;return t.emit("customPaste",l,u,d=>{c=d}),c}})})};function a(s){const l=r.value;l!=null&&l.setHtml(s)}return _n(()=>{o()}),Pt(()=>e.modelValue,s=>{s!==i.value&&a(s)}),{box:n}}}),wIn={ref:"box",style:{height:"100%"}};function CIn(e,t,n,r,i,o){return Ce(),We("div",wIn,null,512)}var OIn=e$e(bIn,[["render",CIn]]);const xIn=ft({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Re(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");tt.getToolbar(r)||dIn({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Uc(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),SIn={ref:"selector"};function AIn(e,t,n,r,i,o){return Ce(),We("div",SIn,null,512)}var IIn=e$e(xIn,[["render",AIn]]);const kIn={style:{border:"1px solid #ccc"}},EIn={__name:"RichText",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Oe({get(){return n.modelValue},set(u){r("update:modelValue",u)}}),o=so(),a={},s={placeholder:"请输入内容..."};Mo(()=>{const u=o.value;u!=null&&u.destroy()});const l=u=>{o.value=u};return(u,c)=>(Ce(),We("div",kIn,[xe(W(IIn),{style:{"border-bottom":"1px solid #ccc"},editor:o.value,defaultConfig:a,mode:"default"},null,8,["editor"]),xe(W(OIn),jr({style:{height:"500px","overflow-y":"hidden"},modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),defaultConfig:s,mode:"default",onOnCreated:l},u.$attrs),null,16,["modelValue"])]))}},_In={name:"富文本编辑器",component:EIn,icon:"rich",type:"basic",order:11.5,initialValues:{label:"富文本编辑器",component:"RichText"},attr:OXt},t$e=Object.freeze(Object.defineProperty({__proto__:null,default:_In},Symbol.toStringTag,{value:"Module"})),TIn={class:"footer"},PIn={__name:"Select",props:{modelValue:{},options:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},mode:{type:String,default:"static"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},autoSelectedFirst:{type:Boolean,default:!1},api:Object,name:String,filterKey:{default:"filter",type:String},formatter:Function,sort:Boolean,tableDrop:Boolean,columns:{default:()=>[],type:Array},scrollLoad:Boolean},emits:["update:modelValue","onChangeSelect"],setup(e,{emit:t}){const n=e,r=t,i=qb(8)+"-popper",{selectVal:o,currentOptions:a,selectChange:s,loading:l,fetchData:u,isMax:c}=T_(n,r),d=()=>{n.scrollLoad&&u()};return(h,f)=>{const g=o0("loading"),b=o0("selectLoadMore");return Kn((Ce(),mt(W(Cet),jr({modelValue:W(
  1730. * Sortable 1.14.0
  1731. * @author RubaXa <trash@rubaxa.org>
  1732. * @author owenm <owen23355@gmail.com>
  1733. * @license MIT
  1734. */function oye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oye(Object(n),!0).forEach(function(r){fkn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oye(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T$(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T$=function(t){return typeof t}:T$=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T$(e)}function fkn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _g(){return _g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(this,arguments)}function gkn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mkn(e,t){if(e==null)return{};var n=gkn(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var vkn="1.14.0";function mg(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Fg=mg(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),DT=mg(/Edge/i),aye=mg(/firefox/i),w2=mg(/safari/i)&&!mg(/chrome/i)&&!mg(/android/i),d$e=mg(/iP(ad|od|hone)/i),ykn=mg(/chrome/i)&&mg(/android/i),h$e={capture:!1,passive:!1};function Ri(e,t,n){e.addEventListener(t,n,!Fg&&h$e)}function Si(e,t,n){e.removeEventListener(t,n,!Fg&&h$e)}function HM(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function bkn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ap(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&HM(e,t):HM(e,t))||r&&e===n)return e;if(e===n)break}while(e=bkn(e))}return null}var sye=/\s+/g;function Nu(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(sye," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(sye," ")}}function wr(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function yO(e,t){var n="";if(typeof e=="string")n=e;else do{var r=wr(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function p$e(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Bp(){var e=document.scrollingElement;return e||document.documentElement}function ts(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,a,s,l,u,c,d;if(e!==window&&e.parentNode&&e!==Bp()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Fg))do if(i&&i.getBoundingClientRect&&(wr(i,"transform")!=="none"||n&&wr(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(wr(i,"border-top-width")),s-=h.left+parseInt(wr(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==wi
  1735. <schema-form :schema="schema" footer @onFinish="onFinish" />
  1736. </template>
  1737. <script setup>
  1738. const onFinish = (values) => {
  1739. alert(JSON.stringify(values))
  1740. }
  1741. const schema = ${e}
  1742. <\/script>
  1743. `,fEn={__name:"CodeMirror",props:{schema:Object,readOnly:Boolean},setup(e){const t=e,n=Re(""),r=Re(),i=Br({mode:"text/javascript",lineNumbers:!0,smartIndent:!0,indentUnit:4,foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,styleActiveLine:!0,readOnly:t.readOnly});return _n(()=>{n.value=pEn(JSON.stringify(t.schema,null,2)),r.value.refresh()}),qp(()=>{var o;(o=r.value)==null||o.destroy()}),(o,a)=>(Ce(),mt(W(rxe),{value:n.value,"onUpdate:value":a[0]||(a[0]=s=>n.value=s),options:i,border:"",ref_key:"cmRef",ref:r},null,8,["value","options"]))}},gEn=e=>{e.directive("selectLoadMore",{mounted:function(t,n){mn(()=>{const r=document.querySelector(`.${n.arg} .el-select-dropdown__wrap`);r&&r.addEventListener("scroll",function(){this.scrollHeight-this.scrollTop-5<=this.clientHeight&&n.value()})})}})},mEn=e=>{e.directive("tableLoadMore",{mounted:function(t,n){mn(()=>{t.querySelector(".el-scrollbar__wrap").addEventListener("scroll",function(){this.scrollHeight-this.scrollTop-5<=this.clientHeight&&n.value()})})}})},vEn=e=>{e.directive("loading",qrt.directive)},yEn=Object.freeze(Object.defineProperty({__proto__:null,loading:vEn,selectLoadMore:gEn,tableLoadMore:mEn},Symbol.toStringTag,{value:"Module"})),bEn=e=>{const t={};return Object.entries(Aee).forEach(([n,r])=>{const i=e[n];return i?t[n]={...r,component:i.component,modelName:i.modelName||"modelValue",attr:i.attr||r.attr}:t[n]={...r,modelName:"modelValue"}}),t},wEn=Object.assign({}),CEn=Object.entries(wEn).map(([e])=>{const t=e.match(/\/([^\/]+)\.vue$/);return t&&t[1]}),OEn=({component:e,propKey:t,iconList:n}={})=>({component:e||Iee,propKey:t||"name",iconList:n||CEn}),xEn=[lS,rEn,ukn,ckn,Iee],SEn=function(e,t={}){const{request:n=D1e,getSchema:r,customElements:i={},iconSelectConfig:o}=t;e.provide(R0,{request:n,getSchema:r,elements:bEn(i),iconSelectConfig:OEn(o)}),xEn.forEach(a=>{e.component(a.name,a)}),Object.values(yEn).forEach(a=>a(e))},AEn={install:SEn};/*!
  1744. * vue-router v4.4.4
  1745. * (c) 2024 Eduardo San Martin Morote
  1746. * @license MIT
  1747. */const TC=typeof document<"u";function L$e(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IEn(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&L$e(e.default)}const zi=Object.assign;function R7(e,t){const n={};for(const r in t){const i=t[r];n[r]=mh(i)?i.map(e):e(i)}return n}const A2=()=>{},mh=Array.isArray,B$e=/#/g,kEn=/&/g,EEn=/\//g,_En=/=/g,TEn=/\?/g,F$e=/\+/g,PEn=/%5B/g,DEn=/%5D/g,N$e=/%5E/g,REn=/%60/g,V$e=/%7B/g,$En=/%7C/g,j$e=/%7D/g,MEn=/%20/g;function Mee(e){return encodeURI(""+e).replace($En,"|").replace(PEn,"[").replace(DEn,"]")}function LEn(e){return Mee(e).replace(V$e,"{").replace(j$e,"}").replace(N$e,"^")}function VQ(e){return Mee(e).replace(F$e,"%2B").replace(MEn,"+").replace(B$e,"%23").replace(kEn,"%26").replace(REn,"`").replace(V$e,"{").replace(j$e,"}").replace(N$e,"^")}function BEn(e){return VQ(e).replace(_En,"%3D")}function FEn(e){return Mee(e).replace(B$e,"%23").replace(TEn,"%3F")}function NEn(e){return e==null?"":FEn(e).replace(EEn,"%2F")}function c_(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const VEn=/\/$/,jEn=e=>e.replace(VEn,"");function $7(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=ZEn(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:c_(a)}}function WEn(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bye(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function HEn(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&wx(t.matched[r],n.matched[i])&&W$e(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wx(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function W$e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!zEn(e[n],t[n]))return!1;return!0}function zEn(e,t){return mh(e)?wye(e,t):mh(t)?wye(t,e):e===t}function wye(e,t){return mh(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ZEn(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const Xm={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var d_;(function(e){e.pop="pop",e.push="push"})(d_||(d_={}));var I2;(function(e){e.back="back",e.forward="forward",e.unknown=""})(I2||(I2={}));function GEn(e){if(!e)if(TC){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jEn(e)}const QEn=/^[^#]+#/;function UEn(e,t){return e.replace(QEn,"#")+t}function XEn(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 v9=()=>({left:window.scrollX,top:window.scrollY});function YEn(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=XEn(i,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 Cye(e,t){return(history.state?history.state.position-t:-1)+e}const jQ=new Map;function KEn(e,t){jQ.set(e,t)}function qEn(e){const t=jQ.get(e);return jQ.delete(e),t}let JEn=()=>location.protocol+"//"+location.host;function H$e(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),bye(l,"")}return bye(n,e)+r+i}function e_n(e,t,n,r){let i=[],o=[],a=null;const s=({state:h})=>{const f=H$e(e,location),g=n.value,b=t.value