1671 lines
1.4 MiB
JavaScript
Raw Normal View History

2025-05-29 15:03:59 +08:00
var qe=Object.defineProperty,Ne=Object.defineProperties;var Re=Object.getOwnPropertyDescriptors;var Oe=Object.getOwnPropertySymbols;var Fe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var Le=(n,c,e)=>c in n?qe(n,c,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[c]=e,Se=(n,c)=>{for(var e in c||(c={}))Fe.call(c,e)&&Le(n,e,c[e]);if(Oe)for(var e of Oe(c))Ie.call(c,e)&&Le(n,e,c[e]);return n},ke=(n,c)=>Ne(n,Re(c));(function(n,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(n=typeof globalThis!="undefined"?globalThis:n||self,n.VFormDesigner=c(n.Vue))})(this,function(require$$0$1){"use strict";function _interopDefaultLegacy(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var require$$0__default=_interopDefaultLegacy(require$$0$1),commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var axios$2={exports:{}},bind$2=function(c,e){return function(){for(var g=new Array(arguments.length),m=0;m<g.length;m++)g[m]=arguments[m];return c.apply(e,g)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(n){return toString.call(n)==="[object Array]"}function isUndefined(n){return typeof n=="undefined"}function isBuffer(n){return n!==null&&!isUndefined(n)&&n.constructor!==null&&!isUndefined(n.constructor)&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function isArrayBuffer(n){return toString.call(n)==="[object ArrayBuffer]"}function isFormData(n){return typeof FormData!="undefined"&&n instanceof FormData}function isArrayBufferView(n){var c;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?c=ArrayBuffer.isView(n):c=n&&n.buffer&&n.buffer instanceof ArrayBuffer,c}function isString(n){return typeof n=="string"}function isNumber(n){return typeof n=="number"}function isObject(n){return n!==null&&typeof n=="object"}function isPlainObject(n){if(toString.call(n)!=="[object Object]")return!1;var c=Object.getPrototypeOf(n);return c===null||c===Object.prototype}function isDate(n){return toString.call(n)==="[object Date]"}function isFile(n){return toString.call(n)==="[object File]"}function isBlob(n){return toString.call(n)==="[object Blob]"}function isFunction(n){return toString.call(n)==="[object Function]"}function isStream(n){return isObject(n)&&isFunction(n.pipe)}function isURLSearchParams(n){return typeof URLSearchParams!="undefined"&&n instanceof URLSearchParams}function trim(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach(n,c){if(!(n===null||typeof n=="undefined"))if(typeof n!="object"&&(n=[n]),isArray(n))for(var e=0,p=n.length;e<p;e++)c.call(null,n[e],e,n);else for(var g in n)Object.prototype.hasOwnProperty.call(n,g)&&c.call(null,n[g],g,n)}function merge(){var n={};function c(g,m){isPlainObject(n[m])&&isPlainObject(g)?n[m]=merge(n[m],g):isPlainObject(g)?n[m]=merge({},g):isArray(g)?n[m]=g.slice():n[m]=g}for(var e=0,p=arguments.length;e<p;e++)forEach(arguments[e],c);return n}function extend$1(n,c,e){return forEach(c,function(g,m){e&&typeof g=="function"?n[m]=bind$1(g,e):n[m]=g}),n}function stripBOM(n){return n.charCodeAt(0)===65279&&(n=n.slice(1)),n}var utils$d={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend:extend$1,trim,stripBOM},utils$c=utils$d;function encode(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildUR
`),function(d){if(m=d.indexOf(":"),p=utils$8.trim(d.substr(0,m)).toLowerCase(),g=utils$8.trim(d.substr(m+1)),p){if(e[p]&&ignoreDuplicateOf.indexOf(p)>=0)return;p==="set-cookie"?e[p]=(e[p]?e[p]:[]).concat([g]):e[p]=e[p]?e[p]+", "+g:g}}),e},utils$7=utils$d,isURLSameOrigin$1=utils$7.isStandardBrowserEnv()?function(){var c=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a"),p;function g(m){var s=m;return c&&(e.setAttribute("href",s),s=e.href),e.setAttribute("href",s),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return p=g(window.location.href),function(s){var d=utils$7.isString(s)?g(s):s;return d.protocol===p.protocol&&d.host===p.host}}():function(){return function(){return!0}}();function Cancel$3(n){this.message=n}Cancel$3.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$6=utils$d,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,defaults$5=defaults_1,Cancel$2=Cancel_1,xhr=function(c){return new Promise(function(p,g){var m=c.data,s=c.headers,d=c.responseType,i;function f(){c.cancelToken&&c.cancelToken.unsubscribe(i),c.signal&&c.signal.removeEventListener("abort",i)}utils$6.isFormData(m)&&delete s["Content-Type"];var r=new XMLHttpRequest;if(c.auth){var o=c.auth.username||"",t=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";s.Authorization="Basic "+btoa(o+":"+t)}var l=buildFullPath(c.baseURL,c.url);r.open(c.method.toUpperCase(),buildURL$1(l,c.params,c.paramsSerializer),!0),r.timeout=c.timeout;function a(){if(!!r){var h="getAllResponseHeaders"in r?parseHeaders(r.getAllResponseHeaders()):null,$=!d||d==="text"||d==="json"?r.responseText:r.response,v={data:$,status:r.status,statusText:r.statusText,headers:h,config:c,request:r};settle(function(y){p(y),f()},function(y){g(y),f()},v),r=null}}if("onloadend"in r?r.onloadend=a:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(a)},r.onabort=function(){!r||(g(createError("Request aborted",c,"ECONNABORTED",r)),r=null)},r.onerror=function(){g(createError("Network Error",c,null,r)),r=null},r.ontimeout=function(){var $=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",v=c.transitional||defaults$5.transitional;c.timeoutErrorMessage&&($=c.timeoutErrorMessage),g(createError($,c,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",r)),r=null},utils$6.isStandardBrowserEnv()){var u=(c.withCredentials||isURLSameOrigin(l))&&c.xsrfCookieName?cookies.read(c.xsrfCookieName):void 0;u&&(s[c.xsrfHeaderName]=u)}"setRequestHeader"in r&&utils$6.forEach(s,function($,v){typeof m=="undefined"&&v.toLowerCase()==="content-type"?delete s[v]:r.setRequestHeader(v,$)}),utils$6.isUndefined(c.withCredentials)||(r.withCredentials=!!c.withCredentials),d&&d!=="json"&&(r.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&r.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(i=function(h){!r||(g(!h||h&&h.type?new Cancel$2("canceled"):h),r.abort(),r=null)},c.cancelToken&&c.cancelToken.subscribe(i),c.signal&&(c.signal.aborted?i():c.signal.addEventListener("abort",i))),m||(m=null),r.send(m)})},utils$5=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(n,c){!utils$5.isUndefined(n)&&utils$5.isUndefined(n["Content-Type"])&&(n["Content-Type"]=c)}function getDefaultAdapter(){var n;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(n,c){(function(p,g){n.exports=g()})(commonjsGlobal,function(){return function(){var e={686:function(m,s,d){d.d(s,{default:function(){return R}});var i=d(279),f=d.n(i),r=d(370),o=d.n(r),t=d(817),l=d.n(t);function a(B){try{return document.execCommand(B)}catch{return!1}}var u=function(D){var P=l()(D);return a("cut"),P},h=u;function $(B){var D=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[D?"right":"left"]="-9999px";var j=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(j,"px"),P.setAttribute("readonly",""),P.value=B,P}var v=function(D,P){var j=$(D);P.container.appendChild(j);var V=l()(j);return a("copy"),j.remove(),V},w=function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},j="";return typeof D=="string"?j=v(D,P):D instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(D==null?void 0:D.type)?j=v(D.value,P):(j=l()(D),a("copy")),j},y=w;function _(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(P){return typeof P}:_=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},_(B)}var b=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=D.action,j=P===void 0?"copy":P,V=D.container,W=D.target,H=D.text;if(j!=="copy"&&j!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(W!==void 0)if(W&&_(W)==="object"&&W.nodeType===1){if(j==="copy"&&W.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(j==="cut"&&(W.hasAttribute("readonly")||W.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(H)return y(H,{container:V});if(W)return j==="cut"?h(W):y(W,{container:V})},S=b;function M(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(P){return typeof P}:M=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},M(B)}function O(B,D){if(!(B instanceof D))throw new TypeError("Cannot call a class as a function")}function k(B,D){for(var P=0;P<D.length;P++){var j=D[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(B,j.key,j)}}function A(B,D,P){return D&&k(B.prototype,D),P&&k(B,P),B}function T(B,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(D&&D.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),D&&E(B,D)}function E(B,D){return E=Object.setPrototypeOf||function(j,V){return j.__proto__=V,j},E(B,D)}function C(B){var D=q();return function(){var j=N(B),V;if(D){var W=N(this).constructor;V=Reflect.construct(j,arguments,W)}else V=j.apply(this,arguments);return x(this,V)}}function x(B,D){return D&&(M(D)==="object"||typeof D=="function")?D:L(B)}function L(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function q(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function N(B){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},N(B)}function F(B,D){var P="data-clipboard-".concat(B);if(!!D.hasAttribute(P))return D.getAttribute(P)}var I=function(B){T(P,B);var D=C(P);function P(j,V){var W;return O(this,P),W=D.call(this),W.resolveOptions(V),W.listenClick(j),W}return A(P,[{key:"resolveOptions",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeo
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(n,c){(function(p,g){n.exports=g()})(typeof self!="undefined"?self:commonjsGlobal,function(){return function(e){var p={};function g(m){if(p[m])return p[m].exports;var s=p[m]={i:m,l:!1,exports:{}};return e[m].call(s.exports,s,s.exports,g),s.l=!0,s.exports}return g.m=e,g.c=p,g.d=function(m,s,d){g.o(m,s)||Object.defineProperty(m,s,{configurable:!1,enumerable:!0,get:d})},g.n=function(m){var s=m&&m.__esModule?function(){return m.default}:function(){return m};return g.d(s,"a",s),s},g.o=function(m,s){return Object.prototype.hasOwnProperty.call(m,s)},g.p="",g(g.s=109)}([function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0});var m=g(17),s=g(18),d=g(19),i=g(45),f=g(46),r=g(47),o=g(48),t=g(49),l=g(12),a=g(32),u=g(33),h=g(31),$=g(1),v={Scope:$.Scope,create:$.create,find:$.find,query:$.query,register:$.register,Container:m.default,Format:s.default,Leaf:d.default,Embed:o.default,Scroll:i.default,Block:r.default,Inline:f.default,Text:t.default,Attributor:{Attribute:l.default,Class:a.default,Style:u.default,Store:h.default}};p.default=v},function(e,p,g){var m=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,v){$.__proto__=v}||function($,v){for(var w in v)v.hasOwnProperty(w)&&($[w]=v[w])};return function($,v){h($,v);function w(){this.constructor=$}$.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}();Object.defineProperty(p,"__esModule",{value:!0});var s=function(h){m($,h);function $(v){var w=this;return v="[Parchment] "+v,w=h.call(this,v)||this,w.message=v,w.name=w.constructor.name,w}return $}(Error);p.ParchmentError=s;var d={},i={},f={},r={};p.DATA_KEY="__blot";var o;(function(h){h[h.TYPE=3]="TYPE",h[h.LEVEL=12]="LEVEL",h[h.ATTRIBUTE=13]="ATTRIBUTE",h[h.BLOT=14]="BLOT",h[h.INLINE=7]="INLINE",h[h.BLOCK=11]="BLOCK",h[h.BLOCK_BLOT=10]="BLOCK_BLOT",h[h.INLINE_BLOT=6]="INLINE_BLOT",h[h.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",h[h.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",h[h.ANY=15]="ANY"})(o=p.Scope||(p.Scope={}));function t(h,$){var v=a(h);if(v==null)throw new s("Unable to create "+h+" blot");var w=v,y=h instanceof Node||h.nodeType===Node.TEXT_NODE?h:w.create($);return new w(y,$)}p.create=t;function l(h,$){return $===void 0&&($=!1),h==null?null:h[p.DATA_KEY]!=null?h[p.DATA_KEY].blot:$?l(h.parentNode,$):null}p.find=l;function a(h,$){$===void 0&&($=o.ANY);var v;if(typeof h=="string")v=r[h]||d[h];else if(h instanceof Text||h.nodeType===Node.TEXT_NODE)v=r.text;else if(typeof h=="number")h&o.LEVEL&o.BLOCK?v=r.block:h&o.LEVEL&o.INLINE&&(v=r.inline);else if(h instanceof HTMLElement){var w=(h.getAttribute("class")||"").split(/\s+/);for(var y in w)if(v=i[w[y]],v)break;v=v||f[h.tagName]}return v==null?null:$&o.LEVEL&v.scope&&$&o.TYPE&v.scope?v:null}p.query=a;function u(){for(var h=[],$=0;$<arguments.length;$++)h[$]=arguments[$];if(h.length>1)return h.map(function(y){return u(y)});var v=h[0];if(typeof v.blotName!="string"&&typeof v.attrName!="string")throw new s("Invalid definition");if(v.blotName==="abstract")throw new s("Cannot register abstract class");if(r[v.blotName||v.attrName]=v,typeof v.keyName=="string")d[v.keyName]=v;else if(v.className!=null&&(i[v.className]=v),v.tagName!=null){Array.isArray(v.tagName)?v.tagName=v.tagName.map(function(y){return y.toUpperCase()}):v.tagName=v.tagName.toUpperCase();var w=Array.isArray(v.tagName)?v.tagName:[v.tagName];w.forEach(function(y){(f[y]==null||v.className==null)&&(f[y]=v)})}return v}p.register=u},function(e,p,g){var m=g(51),s=g(11),d=g(3),i=g(20),f=String.fromCharCode(0),r=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};r.prototype.insert=function(o,t){var l={};return o.length===0?this:(l.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(l.attributes=t),this.push(l))},r.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},r.prototype.retain=function(o,t){if(o<=0)return this;var l={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(l.attributes=t),this.push(l)},r.prototype.push=function(o){var t=this.ops.length,
`;for(var l=i.iterator(this.ops),a=new r,u=0;l.hasNext();){if(l.peekType()!=="insert")return;var h=l.peek(),$=i.length(h)-l.peekLength(),v=typeof h.insert=="string"?h.insert.indexOf(t,$)-$:-1;if(v<0)a.push(l.next());else if(v>0)a.push(l.next(v));else{if(o(a,l.next(1).attributes||{},u)===!1)return;u+=1,a=new r}}a.length()>0&&o(a,{},u)},r.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var l=i.iterator(this.ops),a=i.iterator(o.ops),u=new r;l.hasNext()||a.hasNext();)if(l.peekType()==="insert"&&(t||a.peekType()!=="insert"))u.retain(i.length(l.next()));else if(a.peekType()==="insert")u.push(a.next());else{var h=Math.min(l.peekLength(),a.peekLength()),$=l.next(h),v=a.next(h);if($.delete)continue;v.delete?u.push(v):u.retain(h,i.attributes.transform($.attributes,v.attributes,t))}return u.chop()},r.prototype.transformPosition=function(o,t){t=!!t;for(var l=i.iterator(this.ops),a=0;l.hasNext()&&a<=o;){var u=l.peekLength(),h=l.peekType();if(l.next(),h==="delete"){o-=Math.min(u,o-a);continue}else h==="insert"&&(a<o||!t)&&(o+=u);a+=u}return o},e.exports=r},function(e,p){var g=Object.prototype.hasOwnProperty,m=Object.prototype.toString,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):m.call(l)==="[object Array]"},f=function(l){if(!l||m.call(l)!=="[object Object]")return!1;var a=g.call(l,"constructor"),u=l.constructor&&l.constructor.prototype&&g.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!a&&!u)return!1;var h;for(h in l);return typeof h=="undefined"||g.call(l,h)},r=function(l,a){s&&a.name==="__proto__"?s(l,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):l[a.name]=a.newValue},o=function(l,a){if(a==="__proto__")if(g.call(l,a)){if(d)return d(l,a).value}else return;return l[a]};e.exports=function t(){var l,a,u,h,$,v,w=arguments[0],y=1,_=arguments.length,b=!1;for(typeof w=="boolean"&&(b=w,w=arguments[1]||{},y=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});y<_;++y)if(l=arguments[y],l!=null)for(a in l)u=o(w,a),h=o(l,a),w!==h&&(b&&h&&(f(h)||($=i(h)))?($?($=!1,v=u&&i(u)?u:[]):v=u&&f(u)?u:{},r(w,{name:a,newValue:t(b,v,h)})):typeof h!="undefined"&&r(w,{name:a,newValue:h}));return w}},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var m=function(){function A(T,E){for(var C=0;C<E.length;C++){var x=E[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}return function(T,E,C){return E&&A(T.prototype,E),C&&A(T,C),T}}(),s=function A(T,E,C){T===null&&(T=Function.prototype);var x=Object.getOwnPropertyDescriptor(T,E);if(x===void 0){var L=Object.getPrototypeOf(T);return L===null?void 0:A(L,E,C)}else{if("value"in x)return x.value;var q=x.get;return q===void 0?void 0:q.call(C)}},d=g(3),i=w(d),f=g(2),r=w(f),o=g(0),t=w(o),l=g(16),a=w(l),u=g(6),h=w(u),$=g(7),v=w($);function w(A){return A&&A.__esModule?A:{default:A}}function y(A,T){if(!(A instanceof T))throw new TypeError("Cannot call a class as a function")}function _(A,T){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:A}function b(A,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);A.prototype=Object.create(T&&T.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(A,T):A.__proto__=T)}var S=1,M=function(A){b(T,A);function T(){return y(this,T),_(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return m(T,[{key:"attach",value:function(){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new r.default().insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(C
`)){var q=t.default.create(O.blotName);this.parent.insertBefore(q,C===0?this:this.next),q.insertAt(0,x.slice(0,-1))}else s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,C,x,L)}}]),T}(t.default.Embed);M.scope=t.default.Scope.BLOCK_BLOT;var O=function(A){b(T,A);function T(E){y(this,T);var C=_(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,E));return C.cache={},C}return m(T,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(C,x){return x.length()===0?C:C.insert(x.value(),k(x))},new r.default).insert(`
`,k(this))),this.cache.delta}},{key:"deleteAt",value:function(C,x){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,C,x),this.cache={}}},{key:"formatAt",value:function(C,x,L,q){x<=0||(t.default.query(L,t.default.Scope.BLOCK)?C+x===this.length()&&this.format(L,q):s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,C,Math.min(x,this.length()-C-1),L,q),this.cache={})}},{key:"insertAt",value:function(C,x,L){if(L!=null)return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,C,x,L);if(x.length!==0){var q=x.split(`
`),N=q.shift();N.length>0&&(C<this.length()-1||this.children.tail==null?s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,Math.min(C,this.length()-1),N):this.children.tail.insertAt(this.children.tail.length(),N),this.cache={});var F=this;q.reduce(function(I,R){return F=F.split(I,!0),F.insertAt(0,R),R.length},C+N.length)}}},{key:"insertBefore",value:function(C,x){var L=this.children.head;s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,C,x),L instanceof a.default&&L.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(C,x){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"moveChildren",this).call(this,C,x),this.cache={}}},{key:"optimize",value:function(C){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,C),this.cache={}}},{key:"path",value:function(C){return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,C,!0)}},{key:"removeChild",value:function(C){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"removeChild",this).call(this,C),this.cache={}}},{key:"split",value:function(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(x&&(C===0||C>=this.length()-S)){var L=this.clone();return C===0?(this.parent.insertBefore(L,this),this):(this.parent.insertBefore(L,this.next),L)}else{var q=s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"split",this).call(this,C,x);return this.cache={},q}}}]),T}(t.default.Block);O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[h.default,t.default.Embed,v.default];function k(A){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return A==null||(typeof A.formats=="function"&&(T=(0,i.default)(T,A.formats())),A.parent==null||A.parent.blotName=="scroll"||A.parent.statics.scope!==A.statics.scope)?T:k(A.parent,T)}p.bubbleFormats=k,p.BlockEmbed=M,p.default=O},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},s=function(){function F(I,R){var B=[],D=!0,P=!1,j=void 0;try{for(var V=I[Symbol.iterator](),W;!(D=(W=V.next()).done)&&(B.push(W.value),!(R&&B.length===R));D=!0);}catch(H){P=!0,j=H}finally{try{!D&&V.return&&V.return()}finally{if(P)throw j}}return B}return function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return F(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function F(I,R){for(var B=0;B<R.length;B++){var D=R[B];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}return function(I,R,B){return R&&F(I.prototype,R),B&&F(I,B),I}}();g(50);var i=g(2),f=k(i),r=g(14),o=k(r),t=g(8),l=k(t),a=g(9),u=k(a),h=g(0),$=k(h),v=g(15),w=k(v),y=g(3),_=k(y),b=g(10),S=k(b),M=g(34),O=k(M);function k(F){return F&&F.__esModule?F:{default:F}}function A(F,I,R){return I in F?Object.defineProperty(F,I,{value:R,enumerable:!0,configurable:!0,writable:!0}):F[I]=R,F}function T(F,I){if(!(F instanceof I))throw new TypeError("Cannot call a class as a function")}var E=(0,S.default)("quill"),C=function(){d(F,null,[{key:"debug",value:function(R){R===!0&&(R="log"),S.default.level(R)}},{key:"find",value:function(R){return R.__quill||$.default.find(R)}},{key:"import",value:function(R){return this.imports[R]==null&&E.error("Cannot import "+R+". Are you sure it was registered?"),this.imports[R]}},{key:"register",value:function(R,B){var D=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof R!="string"){var j=R.attrName||R.blotName;typeof j=="string"?this.register("formats/"+j,R,B):Object.keys(R).forE
`&&(B.editor.deleteText(B.getLength()-1,1),V.delete(1));var H=j.compose(V);return H},D)}},{key:"setSelection",value:function(R,B,D){if(R==null)this.selection.setRange(null,B||F.sources.API);else{var P=q(R,B,D),j=s(P,4);R=j[0],B=j[1],D=j[3],this.selection.setRange(new v.Range(R,B),D),D!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API,D=new f.default().insert(R);return this.setContents(D,B)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,B=this.scroll.update(R);return this.selection.update(R),B}},{key:"updateContents",value:function(R){var B=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return L.call(this,function(){return R=new f.default(R),B.editor.applyDelta(R,D)},D,!0)}}]),F}();C.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},C.events=l.default.events,C.sources=l.default.sources,C.version="1.3.7",C.imports={delta:f.default,parchment:$.default,"core/module":u.default,"core/theme":O.default};function x(F,I){if(I=(0,_.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},I),!I.theme||I.theme===C.DEFAULTS.theme)I.theme=O.default;else if(I.theme=C.import("themes/"+I.theme),I.theme==null)throw new Error("Invalid theme "+I.theme+". Did you register it?");var R=(0,_.default)(!0,{},I.theme.DEFAULTS);[R,I].forEach(function(P){P.modules=P.modules||{},Object.keys(P.modules).forEach(function(j){P.modules[j]===!0&&(P.modules[j]={})})});var B=Object.keys(R.modules).concat(Object.keys(I.modules)),D=B.reduce(function(P,j){var V=C.import("modules/"+j);return V==null?E.error("Cannot load "+j+" module. Are you sure you registered it?"):P[j]=V.DEFAULTS||{},P},{});return I.modules!=null&&I.modules.toolbar&&I.modules.toolbar.constructor!==Object&&(I.modules.toolbar={container:I.modules.toolbar}),I=(0,_.default)(!0,{},C.DEFAULTS,{modules:D},R,I),["bounds","container","scrollingContainer"].forEach(function(P){typeof I[P]=="string"&&(I[P]=document.querySelector(I[P]))}),I.modules=Object.keys(I.modules).reduce(function(P,j){return I.modules[j]&&(P[j]=I.modules[j]),P},{}),I}function L(F,I,R,B){if(this.options.strict&&!this.isEnabled()&&I===l.default.sources.USER)return new f.default;var D=R==null?null:this.getSelection(),P=this.editor.delta,j=F();if(D!=null&&(R===!0&&(R=D.index),B==null?D=N(D,j,I):B!==0&&(D=N(D,R,B,I)),this.setSelection(D,l.default.sources.SILENT)),j.length()>0){var V,W=[l.default.events.TEXT_CHANGE,j,P,I];if((V=this.emitter).emit.apply(V,[l.default.events.EDITOR_CHANGE].concat(W)),I!==l.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,W)}}return j}function q(F,I,R,B,D){var P={};return typeof F.index=="number"&&typeof F.length=="number"?typeof I!="number"?(D=B,B=R,R=I,I=F.length,F=F.index):(I=F.length,F=F.index):typeof I!="number"&&(D=B,B=R,R=I,I=0),(typeof R=="undefined"?"undefined":m(R))==="object"?(P=R,D=B):typeof R=="string"&&(B!=null?P[R]=B:D=R),D=D||l.default.sources.API,[F,I,P,D]}function N(F,I,R,B){if(F==null)return null;var D=void 0,P=void 0;if(I instanceof f.default){var j=[F.index,F.index+F.length].map(function(z){return I.transformPosition(z,B!==l.default.sources.USER)}),V=s(j,2);D=V[0],P=V[1]}else{var W=[F.index,F.index+F.length].map(function(z){return z<I||z===I&&B===l.default.sources.USER?z:R>=0?z+R:Math.max(I,z+R)}),H=s(W,2);D=H[0],P=H[1]}return new v.Range(D,P-D)}p.expandConfig=x,p.overload=q,p.default=C},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0});var m=function(){function h($,v){for(var w=0;w<v.length;w++){var y=v[w];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty($,y.key,y)}}return function($,v,w){return v&&h($.prototype,v),w&&h($,w),$}}(),s=function h($,v,w){$===null&&($=Function.prototype);var y=Object.getOwnPropertyDescriptor($,v);if(y===void 0){var _=Object.getPrototypeOf($);
`)&&(T=T.slice(0,-1)),T.split(`
`).reduce(function(E,C){return E.insert(C).insert(`
`,A.formats())},new f.default)}},{key:"format",value:function(A,T){if(!(A===this.statics.blotName&&T)){var E=this.descendant($.default,this.length()-1),C=m(E,1),x=C[0];x!=null&&x.deleteAt(x.length()-1,1),d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,A,T)}}},{key:"formatAt",value:function(A,T,E,C){if(T!==0&&!(o.default.query(E,o.default.Scope.BLOCK)==null||E===this.statics.blotName&&C===this.statics.formats(this.domNode))){var x=this.newlineIndex(A);if(!(x<0||x>=A+T)){var L=this.newlineIndex(A,!0)+1,q=x-L+1,N=this.isolate(L,q),F=N.next;N.format(E,C),F instanceof O&&F.formatAt(0,A-L+T-q,E,C)}}}},{key:"insertAt",value:function(A,T,E){if(E==null){var C=this.descendant($.default,A),x=m(C,2),L=x[0],q=x[1];L.insertAt(q,T)}}},{key:"length",value:function(){var A=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?A:A+1}},{key:"newlineIndex",value:function(A){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(T)return this.domNode.textContent.slice(0,A).lastIndexOf(`
`);var E=this.domNode.textContent.slice(A).indexOf(`
`);return E>-1?A+E:-1}},{key:"optimize",value:function(A){this.domNode.textContent.endsWith(`
`)||this.appendChild(o.default.create("text",`
`)),d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,A);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===T.statics.formats(T.domNode)&&(T.optimize(A),T.moveChildren(this),T.remove())}},{key:"replace",value:function(A){d(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,A),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(T){var E=o.default.find(T);E==null?T.parentNode.removeChild(T):E instanceof o.default.Embed?E.remove():E.unwrap()})}}],[{key:"create",value:function(A){var T=d(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return T.setAttribute("spellcheck",!1),T}},{key:"formats",value:function(){return!0}}]),O}(l.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",p.Code=b,p.default=S},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0});var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},s=function(){function F(I,R){var B=[],D=!0,P=!1,j=void 0;try{for(var V=I[Symbol.iterator](),W;!(D=(W=V.next()).done)&&(B.push(W.value),!(R&&B.length===R));D=!0);}catch(H){P=!0,j=H}finally{try{!D&&V.return&&V.return()}finally{if(P)throw j}}return B}return function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return F(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function F(I,R){for(var B=0;B<R.length;B++){var D=R[B];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}return function(I,R,B){return R&&F(I.prototype,R),B&&F(I,B),I}}(),i=g(2),f=T(i),r=g(20),o=T(r),t=g(0),l=T(t),a=g(13),u=T(a),h=g(24),$=T(h),v=g(4),w=T(v),y=g(16),_=T(y),b=g(21),S=T(b),M=g(11),O=T(M),k=g(3),A=T(k);function T(F){return F&&F.__esModule?F:{default:F}}function E(F,I,R){return I in F?Object.defineProperty(F,I,{value:R,enumerable:!0,configurable:!0,writable:!0}):F[I]=R,F}function C(F,I){if(!(F instanceof I))throw new TypeError("Cannot call a class as a function")}var x=/^[ -~]*$/,L=function(){function F(I){C(this,F),this.scroll=I,this.delta=this.getDelta()}return d(F,[{key:"applyDelta",value:function(R){var B=this,D=!1;this.scroll.update();var P=this.scroll.length();return this.scroll.batchStart(),R=N(R),R.reduce(function(j,V){var W=V.retain||V.delete||V.insert.length||1,H=V.attributes||{};if(V.insert!=null){if(typeof V.insert=="string"){var z=V.insert;z.endsWith(`
`)&&D&&(D=!1,z=z.slice(0,-1)),j>=P&&!z.endsWith(`
`)&&(D=!0),B.scroll.insertAt(j,z);var U=B.scroll.line(j),Z=s(U,2),ne=Z[0],re=Z[1],ue=(0,A.default)({},(0,v.bubbleFormats)(ne));if(ne instanceof w.default){var fe=ne.descendant(l.default.Leaf,re),ye=s(fe,1),_e=ye[0];ue=(0,A.default)(ue,(0,v.bubbleFormats)(_e))}H=o.default.attributes.diff(ue,H)||{}}else if(m(V.insert)==="object"){var X=Object.keys(V.insert)[0];if(X==null)return j;B.scroll.insertAt(j,X,V.insert[X])}P+=W}return Object.keys(H).forEach(function(Q){B.scroll.formatAt(j,W,Q,H[Q])}),j+W},0),R.reduce(function(j,V){return typeof V.delete=="number"?(B.scroll.deleteAt(j,V.delete),j):j+(V.retain||V.insert.length||1)},0),this.scroll.batchEnd(),this.update(R)}},{key:"deleteText",value:function(R,B){return this.scroll.deleteAt(R,B),this.update(new f.default().retain(R).delete(B))}},{key:"formatLine",value:function(R,B){var D=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(P).forEach(function(j){if(!(D.scroll.whitelist!=null&&!D.scroll.whitelist[j])){var V=D.scroll.lines(R,Math.max(B,1)),W=B;V.forEach(function(H){var z=H.length();if(!(H instanceof u.default))H.format(j,P[j]);else{var U=R-H.offset(D.scroll),Z=H.newlineIndex(U+W)-U+1;H.formatAt(U,Z,j,P[j])}W-=z})}}),this.scroll.optimize(),this.update(new f.default().retain(R).retain(B,(0,S.default)(P)))}},{key:"formatText",value:function(R,B){var D=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(P).forEach(function(j){D.scroll.formatAt(R,B,j,P[j])}),this.update(new f.default().retain(R).retain(B,(0,S.default)(P)))}},{key:"getContents",value:function(R,B){return this.delta.slice(R,R+B)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(R,B){return R.concat(B.delta())},new f.default)}},{key:"getFormat",value:function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=[],P=[];B===0?this.scroll.path(R).forEach(function(V){var W=s(V,1),H=W[0];H instanceof w.default?D.push(H):H instanceof l.default.Leaf&&P.push(H)}):(D=this.scroll.lines(R,B),P=this.scroll.descendants(l.default.Leaf,R,B));var j=[D,P].map(function(V){if(V.length===0)return{};for(var W=(0,v.bubbleFormats)(V.shift());Object.keys(W).length>0;){var H=V.shift();if(H==null)return W;W=q((0,v.bubbleFormats)(H),W)}return W});return A.default.apply(A.default,j)}},{key:"getText",value:function(R,B){return this.getContents(R,B).filter(function(D){return typeof D.insert=="string"}).map(function(D){return D.insert}).join("")}},{key:"insertEmbed",value:function(R,B,D){return this.scroll.insertAt(R,B,D),this.update(new f.default().retain(R).insert(E({},B,D)))}},{key:"insertText",value:function(R,B){var D=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B=B.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(R,B),Object.keys(P).forEach(function(j){D.scroll.formatAt(R,B.length,j,P[j])}),this.update(new f.default().retain(R).insert(B,(0,S.default)(P)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var R=this.scroll.children.head;return R.statics.blotName!==w.default.blotName||R.children.length>1?!1:R.children.head instanceof _.default}},{key:"removeFormat",value:function(R,B){var D=this.getText(R,B),P=this.scroll.line(R+B),j=s(P,2),V=j[0],W=j[1],H=0,z=new f.default;V!=null&&(V instanceof u.default?H=V.newlineIndex(W)-W+1:H=V.length()-W,z=V.delta().slice(W,W+H-1).insert(`
`));var U=this.getContents(R,B+H),Z=U.diff(new f.default().insert(D).concat(z)),ne=new f.default().retain(R).concat(Z);return this.applyDelta(ne)}},{key:"update",value:function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,P=this.delta;if(B.length===1&&B[0].type==="characterData"&&B[0].target.data.match(x)&&l.default.find(B[0].target)){var j=l.default.find(B[0].target),V=(0,v.bubbleFormats)(j),W=j.offset(this.scroll),H=B[0].oldValue.replace($.default.CONTENTS,""),z=new f.default().insert(H),U=new f.default().insert(j.value()),Z=new f.default().retain(W).concat(z.diff(U,D));R=Z.reduce(function(ne,re){return re.insert?ne.insert(re.insert,V):ne.push(re)},new f.default),this.delta=P.compose(R)}else this.delta=this.getDelta(),(!R||!(0,O.default)(P.compose(R),this.delta))&&(R=P.diff(this.delta,D));return R}}]),F}();function q(F,I){return Object.keys(I).reduce(function(R,B){return F[B]==null||(I[B]===F[B]?R[B]=I[B]:Array.isArray(I[B])?I[B].indexOf(F[B])<0&&(R[B]=I[B].concat([F[B]])):R[B]=[I[B],F[B]]),R},{})}function N(F){return F.reduce(function(I,R){if(R.insert===1){var B=(0,S.default)(R.attributes);return delete B.image,I.insert({image:R.attributes.image},B)}if(R.attributes!=null&&(R.attributes.list===!0||R.attributes.bullet===!0)&&(R=(0,S.default)(R),R.attributes.list?R.attributes.list="ordered":(R.attributes.list="bullet",delete R.attributes.bullet)),typeof R.insert=="string"){var D=R.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return I.insert(D,R.attributes)}return I.push(R)},new f.default)}p.default=L},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var m=function(){function M(O,k){var A=[],T=!0,E=!1,C=void 0;try{for(var x=O[Symbol.iterator](),L;!(T=(L=x.next()).done)&&(A.push(L.value),!(k&&A.length===k));T=!0);}catch(q){E=!0,C=q}finally{try{!T&&x.return&&x.return()}finally{if(E)throw C}}return A}return function(O,k){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return M(O,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function M(O,k){for(var A=0;A<k.length;A++){var T=k[A];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(O,T.key,T)}}return function(O,k,A){return k&&M(O.prototype,k),A&&M(O,A),O}}(),d=g(0),i=$(d),f=g(21),r=$(f),o=g(11),t=$(o),l=g(8),a=$(l),u=g(10),h=$(u);function $(M){return M&&M.__esModule?M:{default:M}}function v(M){if(Array.isArray(M)){for(var O=0,k=Array(M.length);O<M.length;O++)k[O]=M[O];return k}else return Array.from(M)}function w(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}var y=(0,h.default)("quill:selection"),_=function M(O){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,M),this.index=O,this.length=k},b=function(){function M(O,k){var A=this;w(this,M),this.emitter=k,this.scroll=O,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){A.mouseDown||setTimeout(A.update.bind(A,a.default.sources.USER),1)}),this.emitter.on(a.default.events.EDITOR_CHANGE,function(T,E){T===a.default.events.TEXT_CHANGE&&E.length()>0&&A.update(a.default.sources.SILENT)}),this.emitter.on(a.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!A.hasFocus()){var T=A.getNativeRange();T!=null&&T.start.node!==A.cursor.textNode&&A.emitter.once(a.default.events.SCROLL_UPDATE,function(){try{A.setNativeRange(T.start.node,T.start.offset,T.end.node,T.end.offset)}catch{}})}}),this.emitter.on(a.default.events.SCROLL_OPTIMIZE,function(T,E){if(E.range){var C=E.range,x=C.startNode,L=C.startOffset,q=C.endNode,N=C.endOffset;A.setNativeRange(x,L,q,N)}}),this.update(a.default.sources.SILENT)}return s(M,[{key:"handleComposition",value:function(){var k=this;this.root.addEventListener("compositionstart",function(){k.composing=!0}),this.root.addEventListener("compositionend",function(){if(k.composing=!1,k.cursor.parent){var A=k.cursor.restore();if(!A)return;setTimeout(function(){k.setNativeRange(A.startNode,A.startOffset,A.endNode,A.endOffset)},1)}})}},{key:"handleDragging",value:function(){var k=this;this.emitter.listenDOM("mousedown",document.body,function(){k.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){k.mouseDown=!1,k.update(a.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(k,A){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[k])){this.scroll.update();var T=this.getNativeRange();if(!(T==null||!T.native.collapsed||i.default.query(k,i.default.Scope.BLOCK))){if(T.start.node!==this.cursor.textNode){var E=i.default.find(T.start.node,!1);if(E==null)return;if(E instanceof i.default.Leaf){var C=E.split(T.start.offset);E.parent.insertBefore(this.cursor,C)}else E.insertBefore(this.cursor,T.start.node);this.cursor.attach()}this.cursor.format(k,A),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=this.scroll.length();k=Math.min(k,T-1),A=Math.min(k+A,T-1)-k;var E=void 0,C=this.scroll.leaf(k),x=m(C,2),L=x[0],q=x[1];if(L==null)return null;var N=L.position(q,!0),F=m(N,2);E=F[0],q=F[1];var I=document.createRange();if(A>0){I.setStart(E,q);var R=this.scroll.leaf(
`)&&(C=C.slice(0,-1)),L.insertAt(0,C,x)}else{var q=f.default.create(C,x);this.appendChild(q)}else d(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertAt",this).call(this,E,C,x);this.optimize()}}},{key:"insertBefore",value:function(E,C){if(E.statics.scope===f.default.Scope.INLINE_BLOT){var x=f.default.create(this.statics.defaultChild);x.appendChild(E),E=x}d(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,E,C)}},{key:"leaf",value:function(E){return this.path(E).pop()||[null,-1]}},{key:"line",value:function(E){return E===this.length()?this.line(E-1):this.descendant(M,E)}},{key:"lines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,x=function L(q,N,F){var I=[],R=F;return q.children.forEachAt(N,F,function(B,D,P){M(B)?I.push(B):B instanceof f.default.Container&&(I=I.concat(L(B,D,R))),R-=P}),I};return x(this,E,C)}},{key:"optimize",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(d(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,E,C),E.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,E,C))}},{key:"path",value:function(E){return d(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"path",this).call(this,E).slice(1)}},{key:"update",value:function(E){if(this.batch!==!0){var C=o.default.sources.USER;typeof E=="string"&&(C=E),Array.isArray(E)||(E=this.observer.takeRecords()),E.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,C,E),d(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"update",this).call(this,E.concat([])),E.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,C,E)}}}]),A}(f.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[l.default,t.BlockEmbed,w.default],p.default=O},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},s=function(){function V(W,H){var z=[],U=!0,Z=!1,ne=void 0;try{for(var re=W[Symbol.iterator](),ue;!(U=(ue=re.next()).done)&&(z.push(ue.value),!(H&&z.length===H));U=!0);}catch(fe){Z=!0,ne=fe}finally{try{!U&&re.return&&re.return()}finally{if(Z)throw ne}}return z}return function(W,H){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return V(W,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function V(W,H){for(var z=0;z<H.length;z++){var U=H[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(W,U.key,U)}}return function(W,H,z){return H&&V(W.prototype,H),z&&V(W,z),W}}(),i=g(21),f=k(i),r=g(11),o=k(r),t=g(3),l=k(t),a=g(2),u=k(a),h=g(20),$=k(h),v=g(0),w=k(v),y=g(5),_=k(y),b=g(10),S=k(b),M=g(9),O=k(M);function k(V){return V&&V.__esModule?V:{default:V}}function A(V,W,H){return W in V?Object.defineProperty(V,W,{value:H,enumerable:!0,configurable:!0,writable:!0}):V[W]=H,V}function T(V,W){if(!(V instanceof W))throw new TypeError("Cannot call a class as a function")}function E(V,W){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:V}function C(V,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);V.prototype=Object.create(W&&W.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(V,W):V.__proto__=W)}var x=(0,S.default)("quill:keyboard"),L=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",q=function(V){C(W,V),d(W,null,[{key:"match",value:function(z,U){return U=j(U),["altKey","ctrlKey","metaKey","shiftKey"].s
`,ne).retain(U.length()-Z-1).retain(1,{list:"unchecked"});this.quill.updateContents(re,_.default.sources.USER),this.quill.setSelection(W.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:q.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(W,H){var z=this.quill.getLine(W.index),U=s(z,2),Z=U[0],ne=U[1],re=new u.default().retain(W.index).insert(`
`,H.format).retain(Z.length()-ne-1).retain(1,{header:null});this.quill.updateContents(re,_.default.sources.USER),this.quill.setSelection(W.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(W,H){var z=H.prefix.length,U=this.quill.getLine(W.index),Z=s(U,2),ne=Z[0],re=Z[1];if(re>z)return!0;var ue=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":ue="unchecked";break;case"[x]":ue="checked";break;case"-":case"*":ue="bullet";break;default:ue="ordered"}this.quill.insertText(W.index," ",_.default.sources.USER),this.quill.history.cutoff();var fe=new u.default().retain(W.index-re).delete(z+1).retain(ne.length()-2-re).retain(1,{list:ue});this.quill.updateContents(fe,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(W.index-z,_.default.sources.SILENT)}},"code exit":{key:q.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(W){var H=this.quill.getLine(W.index),z=s(H,2),U=z[0],Z=z[1],ne=new u.default().retain(W.index+U.length()-Z-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,_.default.sources.USER)}},"embed left":N(q.keys.LEFT,!1),"embed left shift":N(q.keys.LEFT,!0),"embed right":N(q.keys.RIGHT,!1),"embed right shift":N(q.keys.RIGHT,!0)}};function N(V,W){var H,z=V===q.keys.LEFT?"prefix":"suffix";return H={key:V,shiftKey:W,altKey:null},A(H,z,/^$/),A(H,"handler",function(Z){var ne=Z.index;V===q.keys.RIGHT&&(ne+=Z.length+1);var re=this.quill.getLeaf(ne),ue=s(re,1),fe=ue[0];return fe instanceof w.default.Embed?(V===q.keys.LEFT?W?this.quill.setSelection(Z.index-1,Z.length+1,_.default.sources.USER):this.quill.setSelection(Z.index-1,_.default.sources.USER):W?this.quill.setSelection(Z.index,Z.length+1,_.default.sources.USER):this.quill.setSelection(Z.index+Z.length+1,_.default.sources.USER),!1):!0}),H}function F(V,W){if(!(V.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(V.index),z=s(H,1),U=z[0],Z={};if(W.offset===0){var ne=this.quill.getLine(V.index-1),re=s(ne,1),ue=re[0];if(ue!=null&&ue.length()>1){var fe=U.formats(),ye=this.quill.getFormat(V.index-1,1);Z=$.default.attributes.diff(fe,ye)||{}}}var _e=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(W.prefix)?2:1;this.quill.deleteText(V.index-_e,_e,_.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(V.index-_e,_e,Z,_.default.sources.USER),this.quill.focus()}}function I(V,W){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(W.suffix)?2:1;if(!(V.index>=this.quill.getLength()-H)){var z={},U=0,Z=this.quill.getLine(V.index),ne=s(Z,1),re=ne[0];if(W.offset>=re.length()-1){var ue=this.quill.getLine(V.index+1),fe=s(ue,1),ye=fe[0];if(ye){var _e=re.formats(),X=this.quill.getFormat(V.index,1);z=$.default.attributes.diff(_e,X)||{},U=ye.length()}}this.quill.deleteText(V.index,H,_.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(V.index+U-1,H,z,_.default.sources.USER)}}function R(V){var W=this.quill.getLines(V),H={};if(W.length>1){var z=W[0].formats(),U=W[W.length-1].formats();H=$.default.attributes.diff(U,z)||{}}this.quill.deleteText(V,_.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(V.index,1,H,_.default.sources.USER),this.quill.setSelection(V.index,_.default.sources.SILENT),this.quill.focus()}function B(V,W){var H=this;V.length>0&&this.quill.scroll.deleteAt(V.index,V.length);var z=Object.keys(W.format).reduce(function(U,Z){return w.default.query(Z,w.default.Scope.BLOCK)&&!Array.isArray(W.format[Z])&&(U[Z]=W.format[Z]),U},{});this.quill.insertText(V.index,`
`,z,_.default.sources.USER),this.quill.setSelection(V.index+1,_.default.sources.SILENT),this.quill.focus(),Object.keys(W.format).forEach(function(U){z[U]==null&&(Array.isArray(W.format[U])||U!=="link"&&H.quill.format(U,W.format[U],_.default.sources.USER))})}function D(V){return{key:q.keys.TAB,shiftKey:!V,format:{"code-block":!0},handler:function(H){var z=w.default.query("code-block"),U=H.index,Z=H.length,ne=this.quill.scroll.descendant(z,U),re=s(ne,2),ue=re[0],fe=re[1];if(ue!=null){var ye=this.quill.getIndex(ue),_e=ue.newlineIndex(fe,!0)+1,X=ue.newlineIndex(ye+fe+Z),Q=ue.domNode.textContent.slice(_e,X).split(`
`);fe=0,Q.forEach(function(ie,ae){V?(ue.insertAt(_e+fe,z.TAB),fe+=z.TAB.length,ae===0?U+=z.TAB.length:Z+=z.TAB.length):ie.startsWith(z.TAB)&&(ue.deleteAt(_e+fe,z.TAB.length),fe-=z.TAB.length,ae===0?U-=z.TAB.length:Z-=z.TAB.length),fe+=ie.length+1}),this.quill.update(_.default.sources.USER),this.quill.setSelection(U,Z,_.default.sources.SILENT)}}}}function P(V){return{key:V[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(V,!z.format[V],_.default.sources.USER)}}}function j(V){if(typeof V=="string"||typeof V=="number")return j({key:V});if((typeof V=="undefined"?"undefined":m(V))==="object"&&(V=(0,f.default)(V,!1)),typeof V.key=="string")if(q.keys[V.key.toUpperCase()]!=null)V.key=q.keys[V.key.toUpperCase()];else if(V.key.length===1)V.key=V.key.toUpperCase().charCodeAt(0);else return null;return V.shortKey&&(V[L]=V.shortKey,delete V.shortKey),V}p.default=q,p.SHORTKEY=L},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0});var m=function(){function $(v,w){var y=[],_=!0,b=!1,S=void 0;try{for(var M=v[Symbol.iterator](),O;!(_=(O=M.next()).done)&&(y.push(O.value),!(w&&y.length===w));_=!0);}catch(k){b=!0,S=k}finally{try{!_&&M.return&&M.return()}finally{if(b)throw S}}return y}return function(v,w){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return $(v,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function $(v,w,y){v===null&&(v=Function.prototype);var _=Object.getOwnPropertyDescriptor(v,w);if(_===void 0){var b=Object.getPrototypeOf(v);return b===null?void 0:$(b,w,y)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(y)}},d=function(){function $(v,w){for(var y=0;y<w.length;y++){var _=w[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,w,y){return w&&$(v.prototype,w),y&&$(v,y),v}}(),i=g(0),f=t(i),r=g(7),o=t(r);function t($){return $&&$.__esModule?$:{default:$}}function l($,v){if(!($ instanceof v))throw new TypeError("Cannot call a class as a function")}function a($,v){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:$}function u($,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);$.prototype=Object.create(v&&v.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf($,v):$.__proto__=v)}var h=function($){u(v,$),d(v,null,[{key:"value",value:function(){}}]);function v(w,y){l(this,v);var _=a(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,w));return _.selection=y,_.textNode=document.createTextNode(v.CONTENTS),_.domNode.appendChild(_.textNode),_._length=0,_}return d(v,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,_){if(this._length!==0)return s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,y,_);for(var b=this,S=0;b!=null&&b.statics.scope!==f.default.Scope.BLOCK_BLOT;)S+=b.offset(b.parent),b=b.parent;b!=null&&(this._length=v.CONTENTS.length,b.optimize(),b.formatAt(S,v.CONTENTS.length,y,_),this._length=0)}},{key:"index",value:function(y,_){return y===this.textNode?0:s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"index",this).call(this,y,_)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,_=this.selection.getNativeRange(),b=void 0,S=void 0,M=void 0;if(_!=null&&_.start.node===y&&_.end.node===y){var O=[y,_.start.offset,_.end.offset];b=O[0],S=O[1],M=O[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.
`):y.attributes!=null?Object.keys(y.attributes).some(function(_){return d.default.query(_,d.default.Scope.BLOCK)!=null}):!1}function v(w){var y=w.reduce(function(b,S){return b+=S.delete||0,b},0),_=w.length()-y;return $(w)&&(_-=1),_}p.default=h,p.getLastChangeIndex=v},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var m=function(){function B(D,P){for(var j=0;j<P.length;j++){var V=P[j];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(D,V.key,V)}}return function(D,P,j){return P&&B(D.prototype,P),j&&B(D,j),D}}(),s=function B(D,P,j){D===null&&(D=Function.prototype);var V=Object.getOwnPropertyDescriptor(D,P);if(V===void 0){var W=Object.getPrototypeOf(D);return W===null?void 0:B(W,P,j)}else{if("value"in V)return V.value;var H=V.get;return H===void 0?void 0:H.call(j)}},d=g(3),i=O(d),f=g(2),r=O(f),o=g(8),t=O(o),l=g(23),a=O(l),u=g(34),h=O(u),$=g(59),v=O($),w=g(60),y=O(w),_=g(28),b=O(_),S=g(61),M=O(S);function O(B){return B&&B.__esModule?B:{default:B}}function k(B,D){if(!(B instanceof D))throw new TypeError("Cannot call a class as a function")}function A(B,D){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:B}function T(B,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);B.prototype=Object.create(D&&D.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(B,D):B.__proto__=D)}var E=[!1,"center","right","justify"],C=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x=[!1,"serif","monospace"],L=["1","2","3",!1],q=["small",!1,"large","huge"],N=function(B){T(D,B);function D(P,j){k(this,D);var V=A(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,P,j)),W=function H(z){if(!document.body.contains(P.root))return document.body.removeEventListener("click",H);V.tooltip!=null&&!V.tooltip.root.contains(z.target)&&document.activeElement!==V.tooltip.textbox&&!V.quill.hasFocus()&&V.tooltip.hide(),V.pickers!=null&&V.pickers.forEach(function(U){U.container.contains(z.target)||U.close()})};return P.emitter.listenDOM("click",document.body,W),V}return m(D,[{key:"addModule",value:function(j){var V=s(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(V),V}},{key:"buildButtons",value:function(j,V){j.forEach(function(W){var H=W.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),V[z]!=null))if(z==="direction")W.innerHTML=V[z][""]+V[z].rtl;else if(typeof V[z]=="string")W.innerHTML=V[z];else{var U=W.value||"";U!=null&&V[z][U]&&(W.innerHTML=V[z][U])}})})}},{key:"buildPickers",value:function(j,V){var W=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&R(z,E),new y.default(z,V.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var U=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&R(z,C,U==="background"?"#ffffff":"#000000"),new v.default(z,V[U])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?R(z,x):z.classList.contains("ql-header")?R(z,L):z.classList.contains("ql-size")&&R(z,q)),new b.default(z)});var H=function(){W.pickers.forEach(function(U){U.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,H)}}]),D}(h.default);N.DEFAULTS=(0,i.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var D=this,P=this.container.querySelecto
`)&&le.ops[le.ops.length-1].attributes==null&&(le=le.compose(new o.default().retain(le.length()-1).delete(1))),q.log("convert",this.container.innerHTML,le),this.container.innerHTML="",le}},{key:"dangerouslyPasteHTML",value:function(ae,te){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof ae=="string")this.quill.setContents(this.convert(ae),te),this.quill.setSelection(0,u.default.sources.SILENT);else{var $e=this.convert(te);this.quill.updateContents(new o.default().retain(ae).concat($e),ge),this.quill.setSelection(ae+$e.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(ae){var te=this;if(!(ae.defaultPrevented||!this.quill.isEnabled())){var ge=this.quill.getSelection(),$e=new o.default().retain(ge.index),be=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){$e=$e.concat(te.convert()).delete(ge.length),te.quill.updateContents($e,u.default.sources.USER),te.quill.setSelection($e.length()-ge.length,u.default.sources.SILENT),te.quill.scrollingContainer.scrollTop=be,te.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ae=this,te=[],ge=[];return this.matchers.forEach(function($e){var be=s($e,2),J=be[0],se=be[1];switch(J){case Node.TEXT_NODE:ge.push(se);break;case Node.ELEMENT_NODE:te.push(se);break;default:[].forEach.call(ae.container.querySelectorAll(J),function(le){le[N]=le[N]||[],le[N].push(se)});break}}),[te,ge]}}]),Q}(w.default);B.DEFAULTS={matchers:[],matchVisual:!0};function D(X,Q,ie){return(typeof Q=="undefined"?"undefined":m(Q))==="object"?Object.keys(Q).reduce(function(ae,te){return D(ae,te,Q[te])},X):X.reduce(function(ae,te){return te.attributes&&te.attributes[Q]?ae.push(te):ae.insert(te.insert,(0,f.default)({},E({},Q,ie),te.attributes))},new o.default)}function P(X){if(X.nodeType!==Node.ELEMENT_NODE)return{};var Q="__ql-computed-style";return X[Q]||(X[Q]=window.getComputedStyle(X))}function j(X,Q){for(var ie="",ae=X.ops.length-1;ae>=0&&ie.length<Q.length;--ae){var te=X.ops[ae];if(typeof te.insert!="string")break;ie=te.insert+ie}return ie.slice(-1*Q.length)===Q}function V(X){if(X.childNodes.length===0)return!1;var Q=P(X);return["block","list-item"].indexOf(Q.display)>-1}function W(X,Q,ie){return X.nodeType===X.TEXT_NODE?ie.reduce(function(ae,te){return te(X,ae)},new o.default):X.nodeType===X.ELEMENT_NODE?[].reduce.call(X.childNodes||[],function(ae,te){var ge=W(te,Q,ie);return te.nodeType===X.ELEMENT_NODE&&(ge=Q.reduce(function($e,be){return be(te,$e)},ge),ge=(te[N]||[]).reduce(function($e,be){return be(te,$e)},ge)),ae.concat(ge)},new o.default):new o.default}function H(X,Q,ie){return D(ie,X,!0)}function z(X,Q){var ie=l.default.Attributor.Attribute.keys(X),ae=l.default.Attributor.Class.keys(X),te=l.default.Attributor.Style.keys(X),ge={};return ie.concat(ae).concat(te).forEach(function($e){var be=l.default.query($e,l.default.Scope.ATTRIBUTE);be!=null&&(ge[be.attrName]=be.value(X),ge[be.attrName])||(be=I[$e],be!=null&&(be.attrName===$e||be.keyName===$e)&&(ge[be.attrName]=be.value(X)||void 0),be=R[$e],be!=null&&(be.attrName===$e||be.keyName===$e)&&(be=R[$e],ge[be.attrName]=be.value(X)||void 0))}),Object.keys(ge).length>0&&(Q=D(Q,ge)),Q}function U(X,Q){var ie=l.default.query(X);if(ie==null)return Q;if(ie.prototype instanceof l.default.Embed){var ae={},te=ie.value(X);te!=null&&(ae[ie.blotName]=te,Q=new o.default().insert(ae,ie.formats(X)))}else typeof ie.formats=="function"&&(Q=D(Q,ie.blotName,ie.formats(X)));return Q}function Z(X,Q){return j(Q,`
`)||Q.insert(`
`),Q}function ne(){return new o.default}function re(X,Q){var ie=l.default.query(X);if(ie==null||ie.blotName!=="list-item"||!j(Q,`
`))return Q;for(var ae=-1,te=X.parentNode;!te.classList.contains("ql-clipboard");)(l.default.query(te)||{}).blotName==="list"&&(ae+=1),te=te.parentNode;return ae<=0?Q:Q.compose(new o.default().retain(Q.length()-1).retain(1,{indent:ae}))}function ue(X,Q){return j(Q,`
`)||(V(X)||Q.length()>0&&X.nextSibling&&V(X.nextSibling))&&Q.insert(`
`),Q}function fe(X,Q){if(V(X)&&X.nextElementSibling!=null&&!j(Q,`
`)){var ie=X.offsetHeight+parseFloat(P(X).marginTop)+parseFloat(P(X).marginBottom);X.nextElementSibling.offsetTop>X.offsetTop+ie*1.5&&Q.insert(`
`)}return Q}function ye(X,Q){var ie={},ae=X.style||{};return ae.fontStyle&&P(X).fontStyle==="italic"&&(ie.italic=!0),ae.fontWeight&&(P(X).fontWeight.startsWith("bold")||parseInt(P(X).fontWeight)>=700)&&(ie.bold=!0),Object.keys(ie).length>0&&(Q=D(Q,ie)),parseFloat(ae.textIndent||0)>0&&(Q=new o.default().insert(" ").concat(Q)),Q}function _e(X,Q){var ie=X.data;if(X.parentNode.tagName==="O:P")return Q.insert(ie.trim());if(ie.trim().length===0&&X.parentNode.classList.contains("ql-clipboard"))return Q;if(!P(X.parentNode).whiteSpace.startsWith("pre")){var ae=function(ge,$e){return $e=$e.replace(/[^\u00a0]/g,""),$e.length<1&&ge?" ":$e};ie=ie.replace(/\r\n/g," ").replace(/\n/g," "),ie=ie.replace(/\s\s+/g,ae.bind(ae,!0)),(X.previousSibling==null&&V(X.parentNode)||X.previousSibling!=null&&V(X.previousSibling))&&(ie=ie.replace(/^\s+/,ae.bind(ae,!1))),(X.nextSibling==null&&V(X.parentNode)||X.nextSibling!=null&&V(X.nextSibling))&&(ie=ie.replace(/\s+$/,ae.bind(ae,!1)))}return Q.insert(ie)}p.default=B,p.matchAttributor=z,p.matchBlot=U,p.matchNewline=ue,p.matchSpacing=fe,p.matchText=_e},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0});var m=function(){function a(u,h){for(var $=0;$<h.length;$++){var v=h[$];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(u,v.key,v)}}return function(u,h,$){return h&&a(u.prototype,h),$&&a(u,$),u}}(),s=function a(u,h,$){u===null&&(u=Function.prototype);var v=Object.getOwnPropertyDescriptor(u,h);if(v===void 0){var w=Object.getPrototypeOf(u);return w===null?void 0:a(w,h,$)}else{if("value"in v)return v.value;var y=v.get;return y===void 0?void 0:y.call($)}},d=g(6),i=f(d);function f(a){return a&&a.__esModule?a:{default:a}}function r(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function o(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function t(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){t(u,a);function u(){return r(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return m(u,[{key:"optimize",value:function($){s(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,$),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u}(i.default);l.blotName="bold",l.tagName=["STRONG","B"],p.default=l},function(e,p,g){Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var m=function(){function A(T,E){var C=[],x=!0,L=!1,q=void 0;try{for(var N=T[Symbol.iterator](),F;!(x=(F=N.next()).done)&&(C.push(F.value),!(E&&C.length===E));x=!0);}catch(I){L=!0,q=I}finally{try{!x&&N.return&&N.return()}finally{if(L)throw q}}return C}return function(T,E){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return A(T,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(T,E){for(var C=0;C<E.length;C++){var x=E[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}return function(T,E,C){return E&&A(T.prototype,E),C&&A(T,C),T}}(),d=g(2),i=$(d),f=g(0),r=$(f),o=g(5),t=$(o),l=g(10),a=$(l),u=g(9),h=$(u);function $(A){return A&&A.__esModule?A:{default:A}}function v(A,T,E){return T in A?Object.defineProperty(A,T,{value:E,enumerable:!0,configurable:!0,writable:!0}):A[T]=E,A}function w(A,T){if(!(A instanceof T))throw new TypeError("Cannot call a class as a function")}function y(A,T){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&
e.setDisabled&&e.setDisabled(!0)}})},enableForm(){Object.keys(this.widgetRefList).forEach(c=>{let e=this.getWidgetRef(c);if(e)if(!!e.widget&&e.widget.type==="sub-form")e.enableSubForm();else{//!!foundW.setDisabled && foundW.setDisabled(false)
e.setDisabled&&e.setDisabled(!1)}})},resetForm(){Object.keys(this.subFormRefList).forEach(e=>{this.subFormRefList[e].resetSubForm&&this.subFormRefList[e].resetSubForm()}),Object.keys(this.widgetRefList).forEach(e=>{let p=this.getWidgetRef(e);!!p&&!p.subFormItemFlag&&!!p.resetField&&p.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate(n){this.$refs.renderForm.clearValidate(n)},validateForm(n){this.$refs.renderForm.validate(c=>{n(c)})},validateFields(){},disableWidgets(n){n&&(typeof n=="string"?this.findWidgetAndSetDisabled(n,!0):Array.isArray(n)&&n.forEach(c=>{this.findWidgetAndSetDisabled(c,!0)}))},enableWidgets(n){n&&(typeof n=="string"?this.findWidgetAndSetDisabled(n,!1):Array.isArray(n)&&n.forEach(c=>{this.findWidgetAndSetDisabled(c,!1)}))},hideWidgets(n){n&&(typeof n=="string"?this.findWidgetAndSetHidden(n,!0):Array.isArray(n)&&n.forEach(c=>{this.findWidgetAndSetHidden(c,!0)}))},showWidgets(n){n&&(typeof n=="string"?this.findWidgetAndSetHidden(n,!1):Array.isArray(n)&&n.forEach(c=>{this.findWidgetAndSetHidden(c,!1)}))},getFieldWidgets(){return getAllFieldWidgets(this.formJsonObj.widgetList)},getContainerWidgets(){return getAllContainerWidgets(this.formJsonObj.widgetList)},addEC(n,c){this.externalComponents[n]=c},hasEC(n){return this.externalComponents.hasOwnProperty(n)},getEC(n){return this.externalComponents[n]},getGlobalDsv(){return this.globalDsv}}};function _sfc_render$2C(n,c,e,p,g,m){const s=require$$0$1.resolveComponent("el-form");return require$$0$1.openBlock(),require$$0$1.createBlock(s,{"label-position":m.labelPosition,size:m.size,class:require$$0$1.normalizeClass([[m.customClass],"render-form"]),"label-width":m.labelWidth,"validate-on-rule-change":!1,model:g.formDataModel,ref:"renderForm",onSubmit:c[0]||(c[0]=require$$0$1.withModifiers(()=>{},["prevent"]))},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(m.widgetList,(d,i)=>(require$$0$1.openBlock(),require$$0$1.createElementBlock(require$$0$1.Fragment,null,[d.category==="container"?(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(m.getContainerWidgetName(d)),{widget:d,key:d.id,"parent-list":m.widgetList,"index-of-parent-list":i,"parent-widget":null},require$$0$1.createSlots({_:2},[require$$0$1.renderList(Object.keys(n.$slots),f=>({name:f,fn:require$$0$1.withCtx(r=>[require$$0$1.renderSlot(n.$slots,f,require$$0$1.mergeProps({ref_for:!0},r),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list"])):(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(m.getWidgetName(d)),{field:d,"form-model":g.formDataModel,designer:null,key:d.id,"parent-list":m.widgetList,"index-of-parent-list":i,"parent-widget":null},require$$0$1.createSlots({_:2},[require$$0$1.renderList(Object.keys(n.$slots),f=>({name:f,fn:require$$0$1.withCtx(r=>[require$$0$1.renderSlot(n.$slots,f,require$$0$1.mergeProps({ref_for:!0},r),void 0,!0)])}))]),1032,["field","form-model","parent-list","index-of-parent-list"]))],64))),256))]),_:3},8,["label-position","size","class","label-width","model"])}var VFormRender=_export_sfc$1(_sfc_main$2C,[["render",_sfc_render$2C],["__scopeId","data-v-544703a2"]]),ace$2={exports:{}};(function(n,c){(function(){var e="ace",p=function(){return this}();!p&&typeof window!="undefined"&&(p=window);var g=function(r,o,t){if(typeof r!="string"){g.original?g.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(t=o),g.modules[r]||(g.payloads[r]=t,g.modules[r]=null)};g.modules={},g.payloads={};var m=function(r,o,t){if(typeof o=="string"){var l=i(r,o);if(l!=null)return t&&t(),l}else if(Object.prototype.toString.call(o)==="[object Array]"){for(var a=[],u=0,h=o.length;u<h;++u){var $=i(r,o[u]);if($==null&&s.original)return;a.push($)}return t&&t.apply(null,a)||!0}},s=function(r,o){var t=m("",r,o);return t==null&&s.original?s.original.apply(this,arguments):t},d=function(r,o){if(o.indexOf("!")!=
/*# sourceURL=ace/css/`+l+" */");var $=p.createElement("style");$.appendChild(h.createTextNode(t)),l&&($.id=l),u==h&&(u=p.getDocumentHead(h)),u.insertBefore($,u.firstChild)}}}if(p.importCssString=r,p.importCssStylsheet=function(t,l){p.buildDom(["link",{rel:"stylesheet",href:t}],p.getDocumentHead(l))},p.scrollbarWidth=function(t){var l=p.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var a=p.createElement("ace_outer"),u=a.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",a.appendChild(l);var h=t&&t.documentElement||document&&document.documentElement;if(!h)return 0;h.appendChild(a);var $=l.offsetWidth;u.overflow="scroll";var v=l.offsetWidth;return $===v&&(v=a.clientWidth),h.removeChild(a),$-v},p.computedStyle=function(t,l){return window.getComputedStyle(t,"")||{}},p.setStyle=function(t,l,a){t[l]!==a&&(t[l]=a)},p.HAS_CSS_ANIMATION=!1,p.HAS_CSS_TRANSFORMS=!1,p.HI_DPI=m.isWin?typeof window!="undefined"&&window.devicePixelRatio>=1.5:!0,m.isChromeOS&&(p.HI_DPI=!1),typeof document!="undefined"){var o=document.createElement("div");p.HI_DPI&&o.style.transform!==void 0&&(p.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&typeof o.style.animationName!="undefined"&&(p.HAS_CSS_ANIMATION=!0),o=null}p.HAS_CSS_TRANSFORMS?p.translate=function(t,l,a){t.style.transform="translate("+Math.round(l)+"px, "+Math.round(a)+"px)"}:p.translate=function(t,l,a){t.style.top=Math.round(a)+"px",t.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,p,g){/*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/var m=e("./dom");p.get=function(s,d){var i=new XMLHttpRequest;i.open("GET",s,!0),i.onreadystatechange=function(){i.readyState===4&&d(i.responseText)},i.send(null)},p.loadScript=function(s,d){var i=m.getDocumentHead(),f=document.createElement("script");f.src=s,i.appendChild(f),f.onload=f.onreadystatechange=function(r,o){(o||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,o||d())}},p.qualifyURL=function(s){var d=document.createElement("a");return d.href=s,d.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,p,g){p.inherits=function(m,s){m.super_=s,m.prototype=Object.create(s.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})},p.mixin=function(m,s){for(var d in s)m[d]=s[d];return m},p.implement=function(m,s){p.mixin(m,s)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,p,g){var m={},s=function(){this.propagationStopped=!0},d=function(){this.defaultPrevented=!0};m._emit=m._dispatchEvent=function(i,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var r=this._eventRegistry[i]||[],o=this._defaultHandlers[i];if(!(!r.length&&!o)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=i),f.stopPropagation||(f.stopPropagation=s),f.preventDefault||(f.preventDefault=d),r=r.slice();for(var t=0;t<r.length&&(r[t](f,this),!f.propagationStopped);t++);if(o&&!f.defaultPrevented)return o(f,this)}},m._signal=function(i,f){var r=(this._eventRegistry||{})[i];if(!!r){r=r.slice();for(var o=0;o<r.length;o++)r[o](f,this)}},m.once=function(i,f){var r=this;if(this.on(i,function o(){r.off(i,o),f.apply(null,arguments)}),!f)return new Promise(function(o){f=o})},m.setDefaultHandler=function(i,f){var r=this._defaultHandlers;if(r||(r=this._defaultHandlers={_disabled_:{}}),r[i]){var o=r[i],t=r._disabled_[i];t||(r._disabled_[i]=t=[]),t.push(o);var l=t.indexOf(f);l!=-1&&t.splice(l,1)}r[i]=f},m.removeDefaultHandler=function(i,f){var r=this._defaultHandlers;if(!!r){var o=r._disabled_[i];if(r[i]==f)o&&this.setDefaultHandler(i,o.pop());else if(o){var t=o.indexOf(f);t!=-1&&o.splice(t,1)}}},m.on=m.addEventListener=function(i,f,r){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[i];return o||(o=this._eventRegistry[i]=[]),o.indexOf(f)==-1&&o[r?"unshift":"push"](f),f},m.off=m.removeListener=m.removeEventListener=function(i,f){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[i];if(!!r){var o=r.indexOf(f);o!==-1&&r.splice(o,1)}},m.removeAllListeners=function(i){i||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[i]=void 0),this._defaultHandlers&&(this._defaultHandlers[i]=void 0)},p.EventEmitter=m}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,p,g){p.reportError=function(s,d){var i=new Error(s);i.data=d,typeof console=="object"&&console.error&&console.error(i),setTimeout(function(){throw i})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,p,g){var m={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"
background: #f0f0f0;
color: #333;
}
.ace-tm .ace_print-margin {
width: 1px;
background: #e8e8e8;
}
.ace-tm .ace_fold {
background-color: #6B72E6;
}
.ace-tm {
background-color: #FFFFFF;
color: black;
}
.ace-tm .ace_cursor {
color: black;
}
.ace-tm .ace_invisible {
color: rgb(191, 191, 191);
}
.ace-tm .ace_storage,
.ace-tm .ace_keyword {
color: blue;
}
.ace-tm .ace_constant {
color: rgb(197, 6, 11);
}
.ace-tm .ace_constant.ace_buildin {
color: rgb(88, 72, 246);
}
.ace-tm .ace_constant.ace_language {
color: rgb(88, 92, 246);
}
.ace-tm .ace_constant.ace_library {
color: rgb(6, 150, 14);
}
.ace-tm .ace_invalid {
background-color: rgba(255, 0, 0, 0.1);
color: red;
}
.ace-tm .ace_support.ace_function {
color: rgb(60, 76, 114);
}
.ace-tm .ace_support.ace_constant {
color: rgb(6, 150, 14);
}
.ace-tm .ace_support.ace_type,
.ace-tm .ace_support.ace_class {
color: rgb(109, 121, 222);
}
.ace-tm .ace_keyword.ace_operator {
color: rgb(104, 118, 135);
}
.ace-tm .ace_string {
color: rgb(3, 106, 7);
}
.ace-tm .ace_comment {
color: rgb(76, 136, 107);
}
.ace-tm .ace_comment.ace_doc {
color: rgb(0, 102, 255);
}
.ace-tm .ace_comment.ace_doc.ace_tag {
color: rgb(128, 159, 191);
}
.ace-tm .ace_constant.ace_numeric {
color: rgb(0, 0, 205);
}
.ace-tm .ace_variable {
color: rgb(49, 132, 149);
}
.ace-tm .ace_xml-pe {
color: rgb(104, 104, 91);
}
.ace-tm .ace_entity.ace_name.ace_function {
color: #0000A2;
}
.ace-tm .ace_heading {
color: rgb(12, 7, 255);
}
.ace-tm .ace_list {
color:rgb(185, 6, 144);
}
.ace-tm .ace_meta.ace_tag {
color:rgb(0, 22, 142);
}
.ace-tm .ace_string.ace_regex {
color: rgb(255, 0, 0)
}
.ace-tm .ace_marker-layer .ace_selection {
background: rgb(181, 213, 255);
}
.ace-tm.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px white;
}
.ace-tm .ace_marker-layer .ace_step {
background: rgb(252, 255, 0);
}
.ace-tm .ace_marker-layer .ace_stack {
background: rgb(164, 229, 101);
}
.ace-tm .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid rgb(192, 192, 192);
}
.ace-tm .ace_marker-layer .ace_active-line {
background: rgba(0, 0, 0, 0.07);
}
.ace-tm .ace_gutter-active-line {
background-color : #dcdcdc;
}
.ace-tm .ace_marker-layer .ace_selected-word {
background: rgb(250, 250, 255);
border: 1px solid rgb(200, 200, 250);
}
.ace-tm .ace_indent-guide {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}
.ace-tm .ace_indent-guide-active {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,p,g){p.isDark=!1,p.cssClass="ace-tm",p.cssText=e("./textmate-css"),p.$id="ace/theme/textmate";var m=e("../lib/dom");m.importCssString(p.cssText,p.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(e,p,g){var m=e("./lib/lang"),s=e("./lib/net"),d=e("./lib/dom"),i=e("./lib/app_config").AppConfig;g.exports=p=new i;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};p.get=function(l){if(!f.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return f[l]},p.set=function(l,a){if(f.hasOwnProperty(l))f[l]=a;else if(this.setDefaultValue("",l,a)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&d.useStrictCSP(a)},p.all=function(){return m.copyObject(f)},p.$modes={},p.moduleUrl=function(l,a){if(f.$moduleUrls[l])return f.$moduleUrls[l];var u=l.split("/");a=a||u[u.length-2]||"";var h=a=="snippets"?"/":"-",$=u[u.length-1];if(a=="worker"&&h=="-"){var v=new RegExp("^"+a+"[\\-_]|[\\-_]"+a+"$","g");$=$.replace(v,"")}(!$||$==a)&&u.length>1&&($=u[u.length-2]);var w=f[a+"Path"];return w==null?w=f.basePath:h=="/"&&(a=h=""),w&&w.slice(-1)!="/"&&(w+="/"),w+a+h+$+this.get("suffix")},p.setModuleUrl=function(l,a){return f.$moduleUrls[l]=a};var r=function(l,a){if(l==="ace/theme/textmate"||l==="./theme/textmate")return a(null,e("./theme/textmate"));if(o)return o(l,a);console.error("loader is not configured")},o;p.setLoader=function(l){o=l},p.dynamicModules=Object.create(null),p.$loading={},p.$loaded={},p.loadModule=function(l,a){var u;if(Array.isArray(l))var h=l[0],$=l[1];else if(typeof l=="string")var $=l;var v=function(w){if(w&&!p.$loading[$])return a&&a(w);if(p.$loading[$]||(p.$loading[$]=[]),p.$loading[$].push(a),!(p.$loading[$].length>1)){var y=function(){r($,function(_,b){b&&(p.$loaded[$]=b),p._emit("load.module",{name:$,module:b});var S=p.$loading[$];p.$loading[$]=null,S.forEach(function(M){M&&M(b)})})};if(!p.get("packaged"))return y();s.loadScript(p.moduleUrl($,h),y),t()}};if(p.dynamicModules[$])p.dynamicModules[$]().then(function(w){w.default?v(w.default):v(w)});else{try{u=this.$require($)}catch{}v(u||p.$loaded[$])}},p.$require=function(l){if(typeof g.require=="function"){var a="require";return g[a](l)}},p.setModuleLoader=function(l,a){p.dynamicModules[l]=a};var t=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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"),t=function(){})};p.version="1.41.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,p,g){e("./lib/fixoldbrowsers");var m=e("./config");m.setLoader(function(f,r){e([f],function(o){r(null,o)})});var s=function(){return this||typeof window!="undefined"&&window}();g.exports=function(f){m.init=d,m.$require=e,f.require=e},d(!0);function d(f){if(!(!s||!s.document)){m.set("packaged",f||e.packaged||g.packaged||s.define&&(void 0).packaged);var r={},o="",t=document.currentScript||document._currentScript,l=t&&t.ownerDocument||document;t&&t.src&&(o=t.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=l.getElementsByTagName("script"),u=0;u<a.length;u++){var h=a[u],$=h.src||h.getAttribute("src");if(!!$){for(var v=h.attributes,w=0,y=v.length;w<y;w++){var _=v[w];_.name.indexOf("data-ace-")===0&&(r[i(_.name.replace(/^data-ace-/,""))]=_.value)}var b=$.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(o=b[1])}}o&&(r.base=r.base||o,r.packaged=!0),r.basePath=r.base,r.workerPath=r.workerPath||r.base,r.modePath=r.modePath||r.base,r.themePath=r.themePath||r.base,delete r.base;for(var S in r)typeof r[S]!="undefined"&&m.set(S,r[S])}}function i(f){return f.replace(/-(.)/g,function(r,o){ret
ab`+J+`cde fg
`;se!=S.value&&(S.value=x=se);var le=4,K=4+(J.length||(b.selection.isEmpty()?0:1));(L!=le||q!=K)&&S.setSelectionRange(le,K),L=le,q=K}}:function(){if(!(k||A)&&!(!B&&!H)){k=!0;var J=0,se=0,le="";if(b.session){var K=b.selection,G=K.getRange(),Y=K.cursor.row;Y===I+1?(F=I+1,I=F+2*R):Y===F-1?(I=F-1,F=I-2*R):(Y<F-1||Y>I+1)&&(F=Y>R?Y-R:0,I=Y>R?Y+R:2*R);for(var ee=[],oe=F;oe<=I;oe++)ee.push(b.session.getLine(oe));if(le=ee.join(`
`),J=D(G.start.row,G.start.column),se=D(G.end.row,G.end.column),G.start.row<F){var de=b.session.getLine(F-1);J=G.start.row<F-1?0:J,se+=de.length+1,le=de+`
`+le}else if(G.end.row>I){var ce=b.session.getLine(I+1);se=G.end.row>I+1?ce.length:G.end.column,se+=le.length+1,le=le+`
`+ce}else w&&Y>0&&(le=`
`+le,se+=1,J+=1);le.length>a&&(J<a&&se<a?le=le.slice(0,a):(le=`
`,J==se?J=se=0:(J=0,se=1)));var ve=le+`
`;ve!=x&&(S.value=x=ve,L=q=ve.length)}if(H&&(L=S.selectionStart,q=S.selectionEnd),q!=se||L!=J||S.selectionEnd!=q)try{S.setSelectionRange(J,se),L=J,q=se}catch{}k=!1}};this.resetSelection=P,B&&b.onFocus();var j=function(J){return J.selectionStart===0&&J.selectionEnd>=x.length&&J.value===x&&x&&J.selectionEnd!==q},V=function(J){k||(M?M=!1:j(S)?(b.selectAll(),P()):w&&S.selectionStart!=L&&P())},W=null;this.setInputHandler=function(J){W=J},this.getInputHandler=function(){return W};var H=!1,z=function(J,se){if(H&&(H=!1),O)return P(),J&&b.onPaste(J),O=!1,"";for(var le=S.selectionStart,K=S.selectionEnd,G=L,Y=x.length-q,ee=J,oe=J.length-le,de=J.length-K,ce=0;G>0&&x[ce]==J[ce];)ce++,G--;for(ee=ee.slice(ce),ce=1;Y>0&&x.length-ce>L-1&&x[x.length-ce]==J[J.length-ce];)ce++,Y--;oe-=ce-1,de-=ce-1;var ve=ee.length-ce+1;if(ve<0&&(G=-ve,ve=0),ee=ee.slice(0,ve),!se&&!ee&&!oe&&!G&&!Y&&!de)return"";A=!0;var xe=!1;return d.isAndroid&&ee==". "&&(ee=" ",xe=!0),ee&&!G&&!Y&&!oe&&!de||E?b.onTextInput(ee):b.onTextInput(ee,{extendLeft:G,extendRight:Y,restoreStart:oe,restoreEnd:de}),A=!1,x=J,L=le,q=K,N=de,xe?`
`:ee},U=function(J){if(k)return _e();if(J&&J.inputType){if(J.inputType=="historyUndo")return b.execCommand("undo");if(J.inputType=="historyRedo")return b.execCommand("redo")}var se=S.value,le=z(se,!0);(se.length>a+100||v.test(le)||w&&L<1&&L==q)&&P()},Z=function(J,se,le){var K=J.clipboardData||window.clipboardData;if(!(!K||o)){var G=t||le?"Text":"text/plain";try{return se?K.setData(G,se)!==!1:K.getData(G)}catch(Y){if(!le)return Z(Y,se,!0)}}},ne=function(J,se){var le=b.getCopyText();if(!le)return m.preventDefault(J);Z(J,le)?($&&(P(le),M=le,setTimeout(function(){M=!1},10)),se?b.onCut():b.onCopy(),m.preventDefault(J)):(M=!0,S.value=le,S.select(),setTimeout(function(){M=!1,P(),se?b.onCut():b.onCopy()}))},re=function(J){ne(J,!0)},ue=function(J){ne(J,!1)},fe=function(J){var se=Z(J);r.pasteCancelled()||(typeof se=="string"?(se&&b.onPaste(se,J),d.isIE&&setTimeout(P),m.preventDefault(J)):(S.value="",O=!0))};m.addCommandKeyListener(S,function(J,se,le){if(!k)return b.onCommandKey(J,se,le)},b),m.addListener(S,"select",V,b),m.addListener(S,"input",U,b),m.addListener(S,"cut",re,b),m.addListener(S,"copy",ue,b),m.addListener(S,"paste",fe,b),(!("oncut"in S)||!("oncopy"in S)||!("onpaste"in S))&&m.addListener(_,"keydown",function(J){if(!(d.isMac&&!J.metaKey||!J.ctrlKey))switch(J.keyCode){case 67:ue(J);break;case 86:fe(J);break;case 88:re(J);break}},b);var ye=function(J){if(!(k||!b.onCompositionStart||b.$readOnly)&&(k={},!E)){J.data&&(k.useTextareaForIME=!1),setTimeout(_e,0),b._signal("compositionStart"),b.on("mousedown",Q);var se=b.getSelectionRange();se.end.row=se.start.row,se.end.column=se.start.column,k.markerRange=se,k.selectionStart=L,b.onCompositionStart(k),k.useTextareaForIME?(x=S.value="",L=0,q=0):(S.msGetInputContext&&(k.context=S.msGetInputContext()),S.getInputContext&&(k.context=S.getInputContext()))}},_e=function(){if(!(!k||!b.onCompositionUpdate||b.$readOnly)){if(E)return Q();if(k.useTextareaForIME)b.onCompositionUpdate(S.value);else{var J=S.value;z(J),k.markerRange&&(k.context&&(k.markerRange.start.column=k.selectionStart=k.context.compositionStartOffset),k.markerRange.end.column=k.markerRange.start.column+q-k.selectionStart+N)}}},X=function(J){!b.onCompositionEnd||b.$readOnly||(k=!1,b.onCompositionEnd(),b.off("mousedown",Q),J&&U())};function Q(){C=!0,S.blur(),S.focus(),C=!1}var ie=f.delayedCall(_e,50).schedule.bind(null,null);function ae(J){J.keyCode==27&&S.value.length<S.selectionStart&&(k||(x=S.value),L=q=-1,P()),ie()}m.addListener(S,"compositionstart",ye,b),m.addListener(S,"compositionupdate",_e,b),m.addListener(S,"keyup",ae,b),m.addListener(S,"keydown",ie,b),m.addListener(S,"compositionend",X,b),this.getElement=function(){return S},this.setCommandMode=function(J){E=J,S.readOnly=!1},this.setReadOnly=function(J){E||(S.readOnly=J)},this.setCopyWithEmptySelection=function(J){},this.onContextMenu=function(J){H=!0,P(),b._emit("nativecontextmenu",{target:b,domEvent:J}),this.moveToMouse(J,!0)},this.moveToMouse=function(J,se){T||(T=S.style.cssText),S.style.cssText=(se?"z-index:100000;":"")+(d.isIE?"opacity:0.1;":"")+"text-indent: -"+(L+q)*b.renderer.characterWidth*.5+"px;";var le=b.container.getBoundingClientRect(),K=i.computedStyle(b.container),G=le.top+(parseInt(K.borderTopWidth)||0),Y=le.left+(parseInt(K.borderLeftWidth)||0),ee=le.bottom-G-S.clientHeight-2,oe=function(de){i.translate(S,de.clientX-Y-2,Math.min(de.clientY-G-2,ee))};oe(J),J.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(te),d.isWin&&m.capture(b.container,oe,ge))},this.onContextMenuClose=ge;var te;function ge(){clearTimeout(te),te=setTimeout(function(){T&&(S.style.cssText=T,T=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var $e=function(J){b.textInput.onContextMenu(J),ge()};m.addListener(S,"mouseup",$e,b),m.addListener(S,"mousedown",function(J){J.preventDefault(),ge()},b),m.addListener(b.renderer.scroller,"contextmenu",$e,b),m.addListener(S,"contextmenu",$e,b),$&&be(_,b,S);function be(J,se,le){var K=null,G=!1;le.addEventListener("keydown",function(ee){K&&clearTimeout(K),G=!0},!0),le.addEv
`?ce=u.end:oe<L&&x[oe-1]==" "?(ce=u.left,ve=h.option):oe<L||oe==L&&q!=L&&oe==de?ce=u.left:de>q&&x.slice(0,de).split(`
`).length>2?ce=u.down:de>q&&x[de-1]==" "?(ce=u.right,ve=h.option):(de>q||de==q&&q!=L&&oe==de)&&(ce=u.right),oe!==de&&(ve|=h.shift),ce){var xe=se.onCommandKey({},ve,ce);if(!xe&&se.commands){ce=u.keyCodeToString(ce);var me=se.commands.findKeyCommand(ve,ce);me&&se.execCommand(me)}L=oe,q=de,P("")}}};document.addEventListener("selectionchange",Y),se.on("destroy",function(){document.removeEventListener("selectionchange",Y)})}this.destroy=function(){S.parentElement&&S.parentElement.removeChild(S)}},p.TextInput=y,p.$setUserAgentForTests=function(_,b){w=_,$=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,p,g){var m=e("../lib/useragent"),s=0,d=550,i=function(){function o(t){t.$clickSelection=null;var l=t.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(u){t[u]=this[u]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}return o.prototype.onMouseDown=function(t){var l=t.inSelection(),a=t.getDocumentPosition();this.mousedownEvent=t;var u=this.editor,h=t.getButton();if(h!==0){var $=u.getSelectionRange(),v=$.isEmpty();(v||h==1)&&u.selection.moveToPosition(a),h==2&&(u.textInput.onContextMenu(t.domEvent),m.isMozilla||t.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(t);return}return this.captureMouse(t),this.startSelect(a,t.domEvent._clicks>1),t.preventDefault()},o.prototype.startSelect=function(t,l){t=t||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(t):l||a.selection.moveToPosition(t),l||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},o.prototype.select=function(){var t,l=this.editor,a=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(a);if(u==-1)t=this.$clickSelection.end;else if(u==1)t=this.$clickSelection.start;else{var h=r(this.$clickSelection,a);a=h.cursor,t=h.anchor}l.selection.setSelectionAnchor(t.row,t.column)}l.selection.selectToPosition(a),l.renderer.scrollCursorIntoView()},o.prototype.extendSelectionBy=function(t){var l,a=this.editor,u=a.renderer.screenToTextCoordinates(this.x,this.y),h=a.selection[t](u.row,u.column);if(this.$clickSelection){var $=this.$clickSelection.comparePoint(h.start),v=this.$clickSelection.comparePoint(h.end);if($==-1&&v<=0)l=this.$clickSelection.end,(h.end.row!=u.row||h.end.column!=u.column)&&(u=h.start);else if(v==1&&$>=0)l=this.$clickSelection.start,(h.start.row!=u.row||h.start.column!=u.column)&&(u=h.end);else if($==-1&&v==1)u=h.end,l=h.start;else{var w=r(this.$clickSelection,u);u=w.cursor,l=w.anchor}a.selection.setSelectionAnchor(l.row,l.column)}a.selection.selectToPosition(u),a.renderer.scrollCursorIntoView()},o.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},o.prototype.focusWait=function(){var t=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(t>s||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},o.prototype.onDoubleClick=function(t){var l=t.getDocumentPosition(),a=this.editor,u=a.session,h=u.getBracketRange(l);h?(h.isEmpty()&&(h.start.column--,h.end.column++),this.setState("select")):(h=a.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=h,this.select()},o.prototype.onTripleClick=function(t){var l=t.getDocumentPosition(),a=
`))&&(this.seenBidi=!0,this.currentRow=null)},f.prototype.getDocumentRow=function(){var r=0,o=this.session.$screenRowCache;if(o.length){var t=this.session.$getRowCacheIndex(o,this.currentRow);t>=0&&(r=this.session.$docRowCache[t])}return r},f.prototype.getSplitIndex=function(){var r=0,o=this.session.$screenRowCache;if(o.length)for(var t,l=this.session.$getRowCacheIndex(o,this.currentRow);this.currentRow-r>0&&(t=this.session.$getRowCacheIndex(o,this.currentRow-r-1),t===l);)l=t,r++;else r=this.currentRow;return r},f.prototype.updateRowLine=function(r,o){r===void 0&&(r=this.getDocumentRow());var t=r===this.session.getLength()-1,l=t?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(r),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var a=this.session.$wrapData[r];a&&(o===void 0&&(o=this.getSplitIndex()),o>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[m.L],this.line=o<a.length?this.line.substring(a[o-1],a[o]):this.line.substring(a[a.length-1])):this.line=this.line.substring(0,a[o]),o==a.length&&(this.line+=this.showInvisibles?l:m.DOT))}else this.line+=this.showInvisibles?l:m.DOT;var u=this.session,h=0,$;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(v,w){return v===" "||u.isFullWidth(v.charCodeAt(0))?($=v===" "?u.getScreenTabSize(w+h):2,h+=$-1,s.stringRepeat(m.DOT,$)):v}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==m.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},f.prototype.updateBidiMap=function(){var r=[];m.hasBidiCharacters(this.line,r)||this.isRtlDir?this.bidiMap=m.doBidiReorder(this.line,r,this.isRtlDir):this.bidiMap={}},f.prototype.markAsDirty=function(){this.currentRow=null},f.prototype.updateCharacterWidths=function(r){if(this.characterWidth!==r.$characterSize.width){this.fontMetrics=r;var o=this.characterWidth=r.$characterSize.width,t=r.$measureCharWidth("\u05D4");this.charWidths[m.L]=this.charWidths[m.EN]=this.charWidths[m.ON_R]=o,this.charWidths[m.R]=this.charWidths[m.AN]=t,this.charWidths[m.R_H]=t*.45,this.charWidths[m.B]=this.charWidths[m.RLE]=0,this.currentRow=null}},f.prototype.setShowInvisibles=function(r){this.showInvisibles=r,this.currentRow=null},f.prototype.setEolChar=function(r){this.EOL=r},f.prototype.setContentWidth=function(r){this.contentWidth=r},f.prototype.isRtlLine=function(r){return this.$isRtl?!0:r!=null?this.session.getLine(r).charAt(0)==this.RLE:this.isRtlDir},f.prototype.setRtlDirection=function(r,o){for(var t=r.getCursorPosition(),l=r.selection.getSelectionAnchor().row;l<=t.row;l++)!o&&r.session.getLine(l).charAt(0)===r.session.$bidiHandler.RLE?r.session.doc.removeInLine(l,0,1):o&&r.session.getLine(l).charAt(0)!==r.session.$bidiHandler.RLE&&r.session.doc.insert({column:0,row:l},r.session.$bidiHandler.RLE)},f.prototype.getPosLeft=function(r){r-=this.wrapIndent;var o=this.line.charAt(0)===this.RLE?1:0,t=r>o?this.session.getOverwrite()?r:r-1:o,l=m.getVisualFromLogicalIdx(t,this.bidiMap),a=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&r<=o&&a[l]%2!=0&&l++;for(var h=0;h<l;h++)u+=this.charWidths[a[h]];return!this.session.getOverwrite()&&r>o&&a[l]%2==0&&(u+=this.charWidths[a[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},f.prototype.getSelections=function(r,o){var t=this.bidiMap,l=t.bidiLevels,a,u=[],h=0,$=Math.min(r,o)-this.wrapIndent,v=Math.max(r,o)-this.wrapIndent,w=!1,y=!1,_=0;this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,S=0;S<l.length;S++)b=t.logicalFromVisual[S],a=l[S],w=b>=$&&b<v,w&&!y?_=h:!w&&y&&u.push({left:_,width:h-_}),h+=this.charWidths[a],y=w;if(w&&S===l.length&&u.push({left:_,width:h-_}),this.isRtlDir)for(var M=0;M<u.length;M++)u[M].left+=this.rtlLineOffset;return u},f.prototype.offsetToCol=function(r){this.isRtlDir&&(r-=this.rtlLineOffset);var o=0,r=Math.max(r,0),t=0,l=0,a=this.bidiMap.bidiLevels,u=this.
`||b==`\r
`){a(y);var x="";h.isMaybeInsertedClosing(S,M)&&(x=i.stringRepeat("}",o.maybeInsertedBrackets),h.clearMaybeInsertedClosing());var E=M.substring(S.column,S.column+1);if(E==="}"){var L=_.findMatchingBracket({row:S.row,column:S.column+1},"}");if(!L)return null;var q=this.$getIndent(_.getLine(L.row))}else if(x)var q=this.$getIndent(M);else{h.clearMaybeInsertedClosing();return}var N=q+_.getTabString();return{text:`
`+N+`
`+q+x,selection:[1,N.length,1,N.length]}}else h.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(v,w,y,_,b){var S=_.doc.getTextRange(b);if(!b.isMultiLine()&&S=="{"){a(y);var M=_.doc.getLine(b.start.row),O=M.substring(b.end.column,b.end.column+1);if(O=="}")return b.end.column++,b;o.maybeInsertedBrackets--}}),this.add("parens","insertion",function(v,w,y,_,b){if(b=="("){a(y);var S=y.getSelectionRange(),M=_.doc.getTextRange(S);if(M!==""&&y.getWrapBehavioursEnabled())return u(S,M,"(",")");if(h.isSaneInsertion(y,_))return h.recordAutoInsert(y,_,")"),{text:"()",selection:[1,1]}}else if(b==")"){a(y);var O=y.getCursorPosition(),k=_.doc.getLine(O.row),A=k.substring(O.column,O.column+1);if(A==")"){var T=_.$findOpeningBracket(")",{column:O.column+1,row:O.row});if(T!==null&&h.isAutoInsertedClosing(O,k,b))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(v,w,y,_,b){var S=_.doc.getTextRange(b);if(!b.isMultiLine()&&S=="("){a(y);var M=_.doc.getLine(b.start.row),O=M.substring(b.start.column+1,b.start.column+2);if(O==")")return b.end.column++,b}}),this.add("brackets","insertion",function(v,w,y,_,b){if(b=="["){a(y);var S=y.getSelectionRange(),M=_.doc.getTextRange(S);if(M!==""&&y.getWrapBehavioursEnabled())return u(S,M,"[","]");if(h.isSaneInsertion(y,_))return h.recordAutoInsert(y,_,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){a(y);var O=y.getCursorPosition(),k=_.doc.getLine(O.row),A=k.substring(O.column,O.column+1);if(A=="]"){var T=_.$findOpeningBracket("]",{column:O.column+1,row:O.row});if(T!==null&&h.isAutoInsertedClosing(O,k,b))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(v,w,y,_,b){var S=_.doc.getTextRange(b);if(!b.isMultiLine()&&S=="["){a(y);var M=_.doc.getLine(b.start.row),O=M.substring(b.start.column+1,b.start.column+2);if(O=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(v,w,y,_,b){var S=_.$mode.$quotes||l;if(b.length==1&&S[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;a(y);var M=b,O=y.getSelectionRange(),k=_.doc.getTextRange(O);if(k!==""&&(k.length!=1||!S[k])&&y.getWrapBehavioursEnabled())return u(O,k,M,M);if(!k){var A=y.getCursorPosition(),T=_.doc.getLine(A.row),E=T.substring(A.column-1,A.column),C=T.substring(A.column,A.column+1),x=_.getTokenAt(A.row,A.column),L=_.getTokenAt(A.row,A.column+1);if(E=="\\"&&x&&/escape/.test(x.type))return null;var q=x&&/string|escape/.test(x.type),N=!L||/string|escape/.test(L.type),F;if(C==M)F=q!==N,F&&/string\.end/.test(L.type)&&(F=!1);else{if(q&&!N||q&&N)return null;var I=_.$mode.tokenRe;I.lastIndex=0;var R=I.test(E);I.lastIndex=0;var B=I.test(C),D=_.$mode.$pairQuotesAfter,P=D&&D[M]&&D[M].test(E);if(!P&&R||B||C&&!/[\s;,.})\]\\]/.test(C))return null;var j=T[A.column-2];if(E==M&&(j==M||I.test(j)))return null;F=!0}return{text:F?M+M:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(v,w,y,_,b){var S=_.$mode.$quotes||l,M=_.doc.getTextRange(b);if(!b.isMultiLine()&&S.hasOwnProperty(M)){a(y);var O=_.doc.getLine(b.start.row),k=O.substring(b.start.column+1,b.start.column+2);if(k==M)return b.end.column++,b}}),$.closeDocComment!==!1&&this.add("doc comment end","insertion",function(v,w,y,_,b){if(v==="doc-start"&&(b===`
`||b===`\r
`)&&y.selection.isEmpty()){var S=y.getCursorPosition();if(S.column===0)return;for(var M=_.doc.getLine(S.row),O=_.doc.getLine(S.row+1),k=_.getTokens(S.row),A=0,T=0;T<k.length;T++){A+=k[T].value.length;var E=k[T];if(A>=S.column){if(A===S.column){if(!/\.doc/.test(E.type))return;if(/\*\//.test(E.value)){var C=k[T+1];if(!C||!/\.doc/.test(C.type))return}}var x=S.column-(A-E.value.length),L=E.value.indexOf("*/"),q=E.value.indexOf("/**",L>-1?L+2:0);if(q!==-1&&x>q&&x<q+3||L!==-1&&q!==-1&&x>=L&&x<=q||!/\.doc/.test(E.type))return;break}}var N=this.$getIndent(M);if(/\s*\*/.test(O))return/^\s*\*/.test(M)?{text:b+N+"* ",selection:[1,2+N.length,1,2+N.length]}:{text:b+N+" * ",selection:[1,3+N.length,1,3+N.length]};if(/\/\*\*/.test(M.substring(0,S.column)))return{text:b+N+" * "+b+" "+N+"*/",selection:[1,4+N.length,1,4+N.length]}}})},h.isSaneInsertion=function($,v){var w=$.getCursorPosition(),y=new d(v,w.row,w.column);if(!this.$matchTokenType(y.getCurrentToken()||"text",f)){if(/[)}\]]/.test($.session.getLine(w.row)[w.column]))return!0;var _=new d(v,w.row,w.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",f))return!1}return y.stepForward(),y.getCurrentTokenRow()!==w.row||this.$matchTokenType(y.getCurrentToken()||"text",r)},h.$matchTokenType=function($,v){return v.indexOf($.type||$)>-1},h.recordAutoInsert=function($,v,w){var y=$.getCursorPosition(),_=v.doc.getLine(y.row);this.isAutoInsertedClosing(y,_,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=y.row,o.autoInsertedLineEnd=w+_.substr(y.column),o.autoInsertedBrackets++},h.recordMaybeInsert=function($,v,w){var y=$.getCursorPosition(),_=v.doc.getLine(y.row);this.isMaybeInsertedClosing(y,_)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=y.row,o.maybeInsertedLineStart=_.substr(0,y.column)+w,o.maybeInsertedLineEnd=_.substr(y.column),o.maybeInsertedBrackets++},h.isAutoInsertedClosing=function($,v,w){return o.autoInsertedBrackets>0&&$.row===o.autoInsertedRow&&w===o.autoInsertedLineEnd[0]&&v.substr($.column)===o.autoInsertedLineEnd},h.isMaybeInsertedClosing=function($,v){return o.maybeInsertedBrackets>0&&$.row===o.maybeInsertedRow&&v.substr($.column)===o.maybeInsertedLineEnd&&v.substr(0,$.column)==o.maybeInsertedLineStart},h.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},h.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},m.inherits(h,s),p.CstyleBehaviour=h}),ace.define("ace/unicode",["require","exports","module"],function(e,p,g){for(var m=[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,
`,this._signal("changeNewLineMode")},o.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},o.prototype.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},o.prototype.getNewLineMode=function(){return this.$newLineMode},o.prototype.isNewLine=function(t){return t==`\r
`||t=="\r"||t==`
`},o.prototype.getLine=function(t){return this.$lines[t]||""},o.prototype.getLines=function(t,l){return this.$lines.slice(t,l+1)},o.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},o.prototype.getLength=function(){return this.$lines.length},o.prototype.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},o.prototype.getLinesForRange=function(t){var l;if(t.start.row===t.end.row)l=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{l=this.getLines(t.start.row,t.end.row),l[0]=(l[0]||"").substring(t.start.column);var a=l.length-1;t.end.row-t.start.row==a&&(l[a]=l[a].substring(0,t.end.column))}return l},o.prototype.insertLines=function(t,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,l)},o.prototype.removeLines=function(t,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,l)},o.prototype.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},o.prototype.insert=function(t,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(t,this.$split(l))},o.prototype.insertInLine=function(t,l){var a=this.clippedPos(t.row,t.column),u=this.pos(t.row,t.column+l.length);return this.applyDelta({start:a,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},o.prototype.clippedPos=function(t,l){var a=this.getLength();t===void 0?t=a:t<0?t=0:t>=a&&(t=a-1,l=void 0);var u=this.getLine(t);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.length),{row:t,column:l}},o.prototype.clonePos=function(t){return{row:t.row,column:t.column}},o.prototype.pos=function(t,l){return{row:t,column:l}},o.prototype.$clipPosition=function(t){var l=this.getLength();return t.row>=l?(t.row=Math.max(0,l-1),t.column=this.getLine(l-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},o.prototype.insertFullLines=function(t,l){t=Math.min(Math.max(t,0),this.getLength());var a=0;t<this.getLength()?(l=l.concat([""]),a=0):(l=[""].concat(l),t--,a=this.$lines[t].length),this.insertMergedLines({row:t,column:a},l)},o.prototype.insertMergedLines=function(t,l){var a=this.clippedPos(t.row,t.column),u={row:a.row+l.length-1,column:(l.length==1?a.column:0)+l[l.length-1].length};return this.applyDelta({start:a,end:u,action:"insert",lines:l}),this.clonePos(u)},o.prototype.remove=function(t){var l=this.clippedPos(t.start.row,t.start.column),a=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:l,end:a,action:"remove",lines:this.getLinesForRange({start:l,end:a})}),this.clonePos(l)},o.prototype.removeInLine=function(t,l,a){var u=this.clippedPos(t,l),h=this.clippedPos(t,a);return this.applyDelta({start:u,end:h,action:"remove",lines:this.getLinesForRange({start:u,end:h})},!0),this.clonePos(u)},o.prototype.removeFullLines=function(t,l){t=Math.min(Math.max(0,t),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var a=l==this.getLength()-1&&t>0,u=l<this.getLength()-1,h=a?t-1:t,$=a?this.getLine(h).length:0,v=u?l+1:l,w=u?0:this.getLine(v).length,y=new i(h,$,v,w),_=this.$lines.slice(t,l+1);return this.applyDelta({start:y.start,end:y.end,action:"remove",lines:this.getLinesForRange(y)}),_},o.prototype.removeNewLine=function(t){t<this.getLength()-1&&t>=0&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},o.prototype.replace=function(t,l){if(t instanceof i||(t=i.fromPoints(t.start,t.end)),l.length===0&&t.isEmpty())return t.start;if(l==this.getTextRange(t))return t.end;this.remove(t);var a;return l?a=this.insert(t.start,l):a=t.start,a},o.prototype.applyDeltas=function(t){for(var l=0;l<t.length;l++)this.applyDelta(t[l])},o.prototype.revertDeltas=function(t){for(var l=t.length-1;l>=0;l--)this.revertDelta(t[l])},o.prototype.applyDelta=function(t,l){var a=t.action=="insert"
---
`+o(this.$redoStack)},_}();m.prototype.hasUndo=m.prototype.canUndo,m.prototype.hasRedo=m.prototype.canRedo,m.prototype.isClean=m.prototype.isAtBookmark,m.prototype.markClean=m.prototype.bookmark;function s(_,b){for(var S=b;S--;){var M=_[S];if(M&&!M[0].ignore){for(;S<b-1;){var O=a(_[S],_[S+1]);_[S]=O[0],_[S+1]=O[1],S++}return!0}}}var d=e("./range").Range,i=d.comparePoints;d.comparePoints;function f(_){return{row:_.row,column:_.column}}function r(_){return{start:f(_.start),end:f(_.end),action:_.action,lines:_.lines.slice()}}function o(_){if(_=_||this,Array.isArray(_))return _.map(o).join(`
`);var b="";return _.action?(b=_.action=="insert"?"+":"-",b+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?b=_.value.map(t).join(`
`):b=t(_.value)),_.start&&(b+=t(_)),(_.id||_.rev)&&(b+=" ("+(_.id||_.rev)+")"),b}function t(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function l(_,b){var S=_.action=="insert",M=b.action=="insert";if(S&&M)if(i(b.start,_.end)>=0)h(b,_,-1);else if(i(b.start,_.start)<=0)h(_,b,1);else return null;else if(S&&!M)if(i(b.start,_.end)>=0)h(b,_,-1);else if(i(b.end,_.start)<=0)h(_,b,-1);else return null;else if(!S&&M)if(i(b.start,_.start)>=0)h(b,_,1);else if(i(b.start,_.start)<=0)h(_,b,1);else return null;else if(!S&&!M)if(i(b.start,_.start)>=0)h(b,_,1);else if(i(b.end,_.start)<=0)h(_,b,-1);else return null;return[b,_]}function a(_,b){for(var S=_.length;S--;)for(var M=0;M<b.length;M++)if(!l(_[S],b[M])){for(;S<_.length;){for(;M--;)l(b[M],_[S]);M=b.length,S++}return[_,b]}return _.selectionBefore=b.selectionBefore=_.selectionAfter=b.selectionAfter=null,[b,_]}function u(_,b){var S=_.action=="insert",M=b.action=="insert";if(S&&M)i(_.start,b.start)<0?h(b,_,1):h(_,b,1);else if(S&&!M)i(_.start,b.end)>=0?h(_,b,-1):(i(_.start,b.start)<=0||h(_,d.fromPoints(b.start,_.start),-1),h(b,_,1));else if(!S&&M)i(b.start,_.end)>=0?h(b,_,-1):(i(b.start,_.start)<=0||h(b,d.fromPoints(_.start,b.start),-1),h(_,b,1));else if(!S&&!M)if(i(b.start,_.end)>=0)h(b,_,-1);else if(i(b.end,_.start)<=0)h(_,b,-1);else{var O,k;return i(_.start,b.start)<0&&(O=_,_=v(_,b.start)),i(_.end,b.end)>0&&(k=v(_,b.end)),$(b.end,_.start,_.end,-1),k&&!O&&(_.lines=k.lines,_.start=k.start,_.end=k.end,k=_),[b,O,k].filter(Boolean)}return[b,_]}function h(_,b,S){$(_.start,b.start,b.end,S),$(_.end,b.start,b.end,S)}function $(_,b,S,M){_.row==(M==1?b:S).row&&(_.column+=M*(S.column-b.column)),_.row+=M*(S.row-b.row)}function v(_,b){var S=_.lines,M=_.end;_.end=f(b);var O=_.end.row-_.start.row,k=S.splice(O,S.length),A=O?b.column:b.column-_.start.column;S.push(k[0].substring(0,A)),k[0]=k[0].substr(A);var T={start:f(b),end:M,lines:k,action:_.action};return T}function w(_,b){b=r(b);for(var S=_.length;S--;){for(var M=_[S],O=0;O<M.length;O++){var k=M[O],A=u(k,b);b=A[0],A.length!=2&&(A[2]?(M.splice(O+1,1,A[1],A[2]),O++):A[1]||(M.splice(O,1),O--))}M.length||_.splice(S,1)}return _}function y(_,b){for(var S=0;S<b.length;S++)for(var M=b[S],O=0;O<M.length;O++)w(_,M[O])}p.UndoManager=m}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,p,g){var m=e("../range").Range,s=function(){function d(i,f){this.foldData=i,Array.isArray(f)?this.folds=f:f=this.folds=[f];var r=f[f.length-1];this.range=new m(f[0].start.row,f[0].start.column,r.end.row,r.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(o){o.setFoldLine(this)},this)}return d.prototype.shiftRow=function(i){this.start.row+=i,this.end.row+=i,this.folds.forEach(function(f){f.start.row+=i,f.end.row+=i})},d.prototype.addFold=function(i){if(i.sameRow){if(i.start.row<this.startRow||i.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(i),this.folds.sort(function(f,r){return-f.range.compareEnd(r.start.row,r.start.column)}),this.range.compareEnd(i.start.row,i.start.column)>0?(this.end.row=i.end.row,this.end.column=i.end.column):this.range.compareStart(i.end.row,i.end.column)<0&&(this.start.row=i.start.row,this.start.column=i.start.column)}else if(i.start.row==this.end.row)this.folds.push(i),this.end.row=i.end.row,this.end.column=i.end.column;else if(i.end.row==this.start.row)this.folds.unshift(i),this.start.row=i.start.row,this.start.column=i.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");i.foldLine=this},d.prototype.containsRow=function(i){return i>=this.start.row&&i<=this.end.row},d.prototype.walk=function(i,f,r){var o=0,t=this.folds,l,a,u,h=!0;f==null&&(f=this.end.row,r=this.end.column);for(var $=0;$<t.length;$++){if(l=t[$],a=l.range.compareStart(f,r),a==-1){i(null,f,r,o,h);return}if(u=i(null,l.start.row,l.start.column,o,h),u=!u&&i(l.placeholder,l.start.row,l.start.column,o),u||a===0)return;h=!l.sameRow,o=l.end.column}i(null,f,r,o,h)},d.prot
`)},d.prototype.idxToPosition=function(i){for(var f=0,r=0;r<this.folds.length;r++){var o=this.folds[r];if(i-=o.start.column-f,i<0)return{row:o.start.row,column:o.start.column+i};if(i-=o.placeholder.length,i<0)return o.start;f=o.end.column}return{row:this.end.row,column:this.end.column+i}},d}();p.FoldLine=s}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,p,g){var m=e("./range").Range,s=m.comparePoints,d=function(){function i(){this.ranges=[],this.$bias=1}return i.prototype.pointIndex=function(f,r,o){for(var t=this.ranges,l=o||0;l<t.length;l++){var a=t[l],u=s(f,a.end);if(!(u>0)){var h=s(f,a.start);return u===0?r&&h!==0?-l-2:l:h>0||h===0&&!r?l:-l-1}}return-l-1},i.prototype.add=function(f){var r=!f.isEmpty(),o=this.pointIndex(f.start,r);o<0&&(o=-o-1);var t=this.pointIndex(f.end,r,o);return t<0?t=-t-1:t++,this.ranges.splice(o,t-o,f)},i.prototype.addList=function(f){for(var r=[],o=f.length;o--;)r.push.apply(r,this.add(f[o]));return r},i.prototype.substractPoint=function(f){var r=this.pointIndex(f);if(r>=0)return this.ranges.splice(r,1)},i.prototype.merge=function(){var f=[],r=this.ranges;r=r.sort(function(u,h){return s(u.start,h.start)});for(var o=r[0],t,l=1;l<r.length;l++){t=o,o=r[l];var a=s(t.end,o.start);a<0||a==0&&!t.isEmpty()&&!o.isEmpty()||(s(t.end,o.end)<0&&(t.end.row=o.end.row,t.end.column=o.end.column),r.splice(l,1),f.push(o),o=t,l--)}return this.ranges=r,f},i.prototype.contains=function(f,r){return this.pointIndex({row:f,column:r})>=0},i.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},i.prototype.rangeAtPoint=function(f){var r=this.pointIndex(f);if(r>=0)return this.ranges[r]},i.prototype.clipRows=function(f,r){var o=this.ranges;if(o[0].start.row>r||o[o.length-1].start.row<f)return[];var t=this.pointIndex({row:f,column:0});t<0&&(t=-t-1);var l=this.pointIndex({row:r,column:0},t);l<0&&(l=-l-1);for(var a=[],u=t;u<l;u++)a.push(o[u]);return a},i.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},i.prototype.attach=function(f){this.session&&this.detach(),this.session=f,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},i.prototype.detach=function(){!this.session||(this.session.removeListener("change",this.onChange),this.session=null)},i.prototype.$onChange=function(f){for(var r=f.start,o=f.end,t=r.row,l=o.row,a=this.ranges,u=0,h=a.length;u<h;u++){var $=a[u];if($.end.row>=t)break}if(f.action=="insert")for(var v=l-t,w=-r.column+o.column;u<h;u++){var $=a[u];if($.start.row>t)break;if($.start.row==t&&$.start.column>=r.column&&($.start.column==r.column&&this.$bias<=0||($.start.column+=w,$.start.row+=v)),$.end.row==t&&$.end.column>=r.column){if($.end.column==r.column&&this.$bias<0)continue;$.end.column==r.column&&w>0&&u<h-1&&$.end.column>$.start.column&&$.end.column==a[u+1].start.column&&($.end.column-=w),$.end.column+=w,$.end.row+=v}}else for(var v=t-l,w=r.column-o.column;u<h;u++){var $=a[u];if($.start.row>l)break;$.end.row<l&&(t<$.end.row||t==$.end.row&&r.column<$.end.column)?($.end.row=t,$.end.column=r.column):$.end.row==l?$.end.column<=o.column?(v||$.end.column>r.column)&&($.end.column=r.column,$.end.row=r.row):($.end.column+=w,$.end.row+=v):$.end.row>l&&($.end.row+=v),$.start.row<l&&(t<$.start.row||t==$.start.row&&r.column<$.start.column)?($.start.row=t,$.start.column=r.column):$.start.row==l?$.start.column<=o.column?(v||$.start.column>r.column)&&($.start.column=r.column,$.start.row=r.row):($.start.column+=w,$.start.row+=v):$.start.row>l&&($.start.row+=v)}if(v!=0&&u<h)for(;u<h;u++){var $=a[u];$.start.row+=v,$.end.row+=v}},i}();d.prototype.comparePoints=s,p.RangeList=d}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,p,g){var m=this&&this.__extends||function(){var t=function(l,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var $ in h)Object.prototype.hasOwnProperty.call(h,$)&&(u[$]=h[$])},t(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new u(new o().getTokenizer(),this);var x=this;this.bgTokenizer.on("update",function(L){x._signal("tokenizerUpdate",L)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof E!="object"||!E.getLine)&&(E=new a(E)),this.setDocument(E),this.selection=new r(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new d(this),i.resetOptions(this),this.setMode(C),i._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return T.prototype.$initOperationListeners=function(){var E=this;this.curOp=null,this.on("change",function(){E.curOp||(E.startOperation(),E.curOp.selectionBefore=E.$lastSel),E.curOp.docChanged=!0},!0),this.on("changeSelection",function(){E.curOp||(E.startOperation(),E.curOp.selectionBefore=E.$lastSel),E.curOp.selectionChanged=!0},!0),this.$operationResetTimer=s.delayedCall(this.endOperation.bind(this,!0))},T.prototype.startOperation=function(E){if(this.curOp){if(!E||this.curOp.command)return;this.prevOp=this.curOp}E||(E={}),this.$operationResetTimer.schedule(),this.curOp={command:E.command||{},args:E.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",E)},T.prototype.endOperation=function(E){if(this.curOp){if(E&&E.returnValue===!1){this.curOp=null,this._signal("endOperation",E);return}if(E==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var C=this.selection.toJSON();this.curOp.selectionAfter=C,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(C),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",E)}},T.prototype.setDocument=function(E){this.doc&&this.doc.off("change",this.$onChange),this.doc=E,E.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},T.prototype.getDocument=function(){return this.doc},Object.defineProperty(T.prototype,"widgetManager",{get:function(){var E=new l(this);return this.widgetManager=E,this.$editor&&E.attach(this.$editor),E},set:function(E){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:E})},enumerable:!1,configurable:!0}),T.prototype.$resetRowCache=function(E){if(!E){this.$docRowCache=[],this.$screenRowCache=[];return}var C=this.$docRowCache.length,x=this.$getRowCacheIndex(this.$docRowCache,E)+1;C>x&&(this.$docRowCache.splice(x,C),this.$screenRowCache.splice(x,C))},T.prototype.$getRowCacheIndex=function(E,C){for(var x=0,L=E.length-1;x<=L;){var q=x+L>>1,N=E[q];if(C>N)x=q+1;else if(C<N)L=q-1;else return q}return x-1},T.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},T.prototype.onChangeFold=function(E){var C=E.data;this.$resetRowCache(C.start.row)},T.prototype.onChange=function(E){this.$modified=!0,this.$bidiHandler.onChange(E),this.$resetRowCache(E.start.row);var C=this.$updateInternalDataOnChange(E);!this.$fromUndo&&this.$undoManager&&(C&&C.length&&(this.$undoManager.add({action:"removeFolds",folds:C},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(E,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(E),this._signal("change",E)},T.prototype.onSelectionChange=function(){this._signal("changeSelection")},T.prototype.setValue=function(E){this.doc.setValue(E),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},T.fromJSON=function(E){typeof E=="string"&&(E=JSON.parse(E));var C=new $;C.$undoStack=E.history.undo,C.$redoStack=E.history.redo,C.mark=E.history.mark,C.$rev=E.history.rev;var x=new T(E.value);return E.folds.forEach(function(L){x.addFold("...",t.fromPoints(L.start,L.end))}),x.setAnnotations(E.annotations),x.setBreakpoints(E.breakpoints),x.setMode(E.mode),x.setSc
`},T.prototype.getWordRange=function(E,C){var x=this.getLine(E),L=!1;if(C>0&&(L=!!x.charAt(C-1).match(this.tokenRe)),L||(L=!!x.charAt(C).match(this.tokenRe)),L)var q=this.tokenRe;else if(/^\s+$/.test(x.slice(C-1,C+1)))var q=/\s/;else var q=this.nonTokenRe;var N=C;if(N>0){do N--;while(N>=0&&x.charAt(N).match(q));N++}for(var F=C;F<x.length&&x.charAt(F).match(q);)F++;return new t(E,N,E,F)},T.prototype.getAWordRange=function(E,C){for(var x=this.getWordRange(E,C),L=this.getLine(x.end.row);L.charAt(x.end.column).match(/[ \t]/);)x.end.column+=1;return x},T.prototype.setNewLineMode=function(E){this.doc.setNewLineMode(E)},T.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},T.prototype.setUseWorker=function(E){this.setOption("useWorker",E)},T.prototype.getUseWorker=function(){return this.$useWorker},T.prototype.onReloadTokenizer=function(E){var C=E.data;this.bgTokenizer.start(C.first),this._signal("tokenizerUpdate",E)},T.prototype.setMode=function(E,C){if(E&&typeof E=="object"){if(E.getTokenizer)return this.$onChangeMode(E);var x=E,L=x.path}else L=E||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new o),this.$modes[L]&&!x){this.$onChangeMode(this.$modes[L]),C&&C();return}this.$modeId=L,i.loadModule(["mode",L],function(q){if(!this.destroyed){if(this.$modeId!==L)return C&&C();this.$modes[L]&&!x?this.$onChangeMode(this.$modes[L]):q&&q.Mode&&(q=new q.Mode(x),x||(this.$modes[L]=q,q.$id=L),this.$onChangeMode(q)),C&&C()}}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},T.prototype.$onChangeMode=function(E,C){if(C||(this.$modeId=E.$id),this.$mode!==E){var x=this.$mode;this.$mode=E,this.$stopWorker(),this.$useWorker&&this.$startWorker();var L=E.getTokenizer();if(L.on!==void 0){var q=this.onReloadTokenizer.bind(this);L.on("update",q)}this.bgTokenizer.setTokenizer(L),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=E.tokenRe,this.nonTokenRe=E.nonTokenRe,C||(E.attachToSession&&E.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(E.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:x,mode:E}))}},T.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},T.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(E){i.warn("Could not load worker",E),this.$worker=null}},T.prototype.getMode=function(){return this.$mode},T.prototype.setScrollTop=function(E){this.$scrollTop===E||isNaN(E)||(this.$scrollTop=E,this._signal("changeScrollTop",E))},T.prototype.getScrollTop=function(){return this.$scrollTop},T.prototype.setScrollLeft=function(E){this.$scrollLeft===E||isNaN(E)||(this.$scrollLeft=E,this._signal("changeScrollLeft",E))},T.prototype.getScrollLeft=function(){return this.$scrollLeft},T.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},T.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var E=0;return this.lineWidgets.forEach(function(C){C&&C.screenWidth>E&&(E=C.screenWidth)}),this.lineWidgetWidth=E},T.prototype.$computeWidth=function(E){if(this.$modified||E){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),x=this.$rowLengthCache,L=0,q=0,N=this.$foldData[q],F=N?N.start.row:1/0,I=C.length,R=0;R<I;R++){if(R>F){if(R=N.end.row+1,R>=I)break;N=this.$foldData[q++],F=N?N.start.row:1/0}x[R]==null&&(x[R]=this.$getStringScreenWidth(C[R])[0]),x[R]>L&&(L=x[R])}this.screenWidth=L}},T.prototype.getLine=function(E){return this.doc.getLine(E)},T.prototype.getLines=function(E,C){return this.doc.getLines(E,C)},T.prototype.getLength=function(){return this.doc.getLength()},T.prototype.getTextRange=function(E){return this.doc.getTextRange(E||this.selection.getRange())},T.prototype.insert=function(E,C){return this.doc.insert(E,C)},T.prototype.remove=function(E){return this.doc.remove(E)},T.prototype.removeFullLines=function(E,C){
`;break;case a.t:u+=" ";break}continue}if(v===a.DollarSign){if(h++,h>=$){u+="$";break}var y=l.charCodeAt(h);if(y===a.DollarSign){u+="$$";continue}if(y===a.Digit0||y===a.Ampersand){u+="$&";continue}if(a.Digit1<=y&&y<=a.Digit9){u+="$"+l[h];continue}}u+=l[h]}return u||l},t.prototype.replace=function(l,a){var u=this.$options,h=this.$assembleRegExp(u);if(u.$isMultiLine)return a;if(!!h){var $=this.$isMultilineSearch(u);$&&(l=l.replace(/\r\n|\r|\n/g,`
`));var v=h.exec(l);if(!v||!$&&v[0].length!=l.length)return null;if(a=u.regExp?this.parseReplaceString(a):a.replace(/\$/g,"$$$$"),a=l.replace(h,a),u.preserveCase){a=a.split("");for(var w=Math.min(l.length,l.length);w--;){var y=l[w];y&&y.toLowerCase()!=y?a[w]=a[w].toUpperCase():a[w]=a[w].toLowerCase()}a=a.join("")}return a}},t.prototype.$assembleRegExp=function(l,a){if(l.needle instanceof RegExp)return l.re=l.needle;var u=l.needle;if(!l.needle)return l.re=!1;l.regExp||(u=m.escapeRegExp(u));var h=l.caseSensitive?"gm":"gmi";try{new RegExp(u,"u"),l.$supportsUnicodeFlag=!0,h+="u"}catch{l.$supportsUnicodeFlag=!1}if(l.wholeWord&&(u=f(u,l)),l.$isMultiLine=!a&&/[\n\r]/.test(u),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(u,h);try{var $=new RegExp(u,h)}catch{$=!1}return l.re=$},t.prototype.$assembleMultilineRegExp=function(l,a){for(var u=l.replace(/\r\n|\r|\n/g,`$
^`).split(`
`),h=[],$=0;$<u.length;$++)try{h.push(new RegExp(u[$],a))}catch{return!1}return h},t.prototype.$isMultilineSearch=function(l){return l.re&&/\\r\\n|\\r|\\n/.test(l.re.source)&&l.regExp&&!l.$isMultiLine},t.prototype.$multiLineForward=function(l,a,u,h){for(var $,v=o(l,u),w=u;w<=h;){for(var y=0;y<v&&!(w>h);y++){var _=l.getLine(w++);$=$==null?_:$+`
`+_}var b=a.exec($);if(a.lastIndex=0,b){var S=$.slice(0,b.index).split(`
`),M=b[0].split(`
`),O=u+S.length-1,k=S[S.length-1].length,A=O+M.length-1,T=M.length==1?k+M[0].length:M[M.length-1].length;return{startRow:O,startCol:k,endRow:A,endCol:T}}}return null},t.prototype.$multiLineBackward=function(l,a,u,h,$){for(var v,w=o(l,h),y=l.getLine(h).length-u,_=h;_>=$;){for(var b=0;b<w&&_>=$;b++){var S=l.getLine(_--);v=v==null?S:S+`
`+v}var M=r(v,a,y);if(M){var O=v.slice(0,M.index).split(`
`),k=M[0].split(`
`),A=_+O.length,T=O[O.length-1].length,E=A+k.length-1,C=k.length==1?T+k[0].length:k[k.length-1].length;return{startRow:A,startCol:T,endRow:E,endCol:C}}}return null},t.prototype.$matchIterator=function(l,a){var u=this.$assembleRegExp(a);if(!u)return!1;var h=this.$isMultilineSearch(a),$=this.$multiLineForward,v=this.$multiLineBackward,w=a.backwards==!0,y=a.skipCurrent!=!1,_=u.unicode,b=a.range,S=a.start;S||(S=b?b[w?"end":"start"]:l.selection.getRange()),S.start&&(S=S[y!=w?"end":"start"]);var M=b?b.start.row:0,O=b?b.end.row:l.getLength()-1;if(w)var k=function(E){var C=S.row;if(!T(C,S.column,E)){for(C--;C>=M;C--)if(T(C,Number.MAX_VALUE,E))return;if(a.wrap!=!1){for(C=O,M=S.row;C>=M;C--)if(T(C,Number.MAX_VALUE,E))return}}};else var k=function(C){var x=S.row;if(!T(x,S.column,C)){for(x=x+1;x<=O;x++)if(T(x,0,C))return;if(a.wrap!=!1){for(x=M,O=S.row;x<=O;x++)if(T(x,0,C))return}}};if(a.$isMultiLine)var A=u.length,T=function(E,C,x){var L=w?E-A+1:E;if(!(L<0||L+A>l.getLength())){var q=l.getLine(L),N=q.search(u[0]);if(!(!w&&N<C||N===-1)){for(var F=1;F<A;F++)if(q=l.getLine(L+F),q.search(u[F])==-1)return;var I=q.match(u[A-1])[0].length;if(!(w&&I>C)&&x(L,N,L+A-1,I))return!0}}};else if(w)var T=function(C,x,L){if(h){var q=v(l,u,x,C,M);if(!q)return!1;if(L(q.startRow,q.startCol,q.endRow,q.endCol))return!0}else{var N=l.getLine(C),F=[],I,R=0;for(u.lastIndex=0;I=u.exec(N);){var B=I[0].length;if(R=I.index,!B){if(R>=N.length)break;u.lastIndex=R+=m.skipEmptyMatch(N,R,_)}if(I.index+B>x)break;F.push(I.index,B)}for(var D=F.length-1;D>=0;D-=2){var P=F[D-1],B=F[D];if(L(C,P,C,P+B))return!0}}};else var T=function(C,x,L){if(u.lastIndex=x,h){var q=$(l,u,C,O);if(q){var N=q.endRow<=O?q.endRow-1:O;N>C&&(C=N)}if(!q)return!1;if(L(q.startRow,q.startCol,q.endRow,q.endCol))return!0}else for(var F=l.getLine(C),I,R;R=u.exec(F);){var B=R[0].length;if(I=R.index,L(C,I,C,I+B))return!0;if(!B&&(u.lastIndex=I+=m.skipEmptyMatch(F,I,_),I>=F.length))return!1}};return{forEach:k}},t}();function f(t,l){var a=m.supportsLookbehind();function u(w,y){y===void 0&&(y=!0);var _=a&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return _.test(w)||l.regExp?a&&l.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(t),$=h[0],v=h[h.length-1];return u($)+t+u(v,!1)}function r(t,l,a){for(var u=null,h=0;h<=t.length;){l.lastIndex=h;var $=l.exec(t);if(!$)break;var v=$.index+$[0].length;if(v>t.length-a)break;(!u||v>u.index+u[0].length)&&(u=$),h=$.index+1}return u}function o(t,l){var a=5e3,u={row:l,column:0},h=t.doc.positionToIndex(u),$=h+a,v=t.doc.indexToPosition($),w=v.row;return w+1}p.Search=i}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,p,g){var m=this&&this.__extends||function(){var t=function(l,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var $ in h)Object.prototype.hasOwnProperty.call(h,$)&&(u[$]=h[$])},t(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");t(l,a);function u(){this.constructor=l}l.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}}(),s=e("../lib/keys"),d=e("../lib/useragent"),i=s.KEY_MODS,f=function(){function t(l,a){this.$init(l,a,!1)}return t.prototype.$init=function(l,a,u){this.platform=a||(d.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},t.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},t.prototype.removeCommand=function(l,a){var u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],a||delete this.commands[u];var h=this.commandKeyBinding;for(var $ in h){var v=h[$];if(v==l)delete h[$];else if(Array.isArray(v)){var w=v.indexOf(l);w!=-1&&(v.splice(w,1),v.length==1&&(h[$]=v[0]))}}},t.prototype.bindKey=function(l,a,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof a=="fun
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(r){r.selection.clearSelection();var o=r.getCursorPosition();r.selection.moveTo(o.row-1,Number.MAX_VALUE),r.insert(`
`),o.row===0&&r.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(r){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),r.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:i("F1","F1"),exec:function(r){r.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:i(null,null),exec:function(r){r.prompt({$type:"modes"})},readOnly:!0}];for(var f=1;f<9;f++)p.commands.push({name:"foldToLevel"+f,description:"Fold To Level "+f,level:f,exec:function(r){r.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,p,g){var m=e("../lib/keys"),s=e("../mouse/default_gutter_handler").GutterTooltip,d=function(){function f(r){this.editor=r,this.gutterLayer=r.renderer.$gutterLayer,this.element=r.renderer.$gutter,this.lines=r.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new s(this.editor)}return f.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},f.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},f.prototype.$onGutterKeyDown=function(r){if(this.annotationTooltip.isOpen){r.preventDefault(),r.keyCode===m.escape&&this.annotationTooltip.hideTooltip();return}if(r.target===this.element){if(r.keyCode!=m.enter)return;r.preventDefault();var o=this.editor.getCursorPosition().row;this.editor.isRowVisible(o)||this.editor.scrollToLine(o,!0,!0),setTimeout(function(){var t=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldLaneWidget(t),a=this.$findNearestAnnotation(t);if(!(l===null&&a===null)){var u=this.$findClosestNumber(l,a,t);if(u===l)if(this.activeLane="fold",this.activeRowIndex=l,this.$isCustomWidgetVisible(l)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}.bind(this),10);return}this.$handleGutterKeyboardInteraction(r),setTimeout(function(){this.editor._signal("gutterkeydown",new i(r,this))}.bind(this),10)},f.prototype.$handleGutterKeyboardInteraction=function(r){if(r.keyCode===m.tab){r.preventDefault();return}if(r.keyCode===m.escape){r.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(r.keyCode===m.up){switch(r.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(r.keyCode===m.down){switch(r.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(r.keyCode===m.left){r.preventDefault(),this.$switchLane("annotation");return}if(r.keyCode===m.right){r.preventDefault(),this.$switchLane("fold");return}if(r.keyCode===m.enter||r.keyCode===m.space){switch(r.preventDefault(),this.activeLane){case"fold":var o=this.$rowIndexToRow(this.activeRowIndex),t=this.editor.session.$gutterCustomWidgets[o];if(t)t.callbacks&&t.callbacks.onClick&&t.callbacks.onClick(r,o);else if(this.gutterLayer.session.foldWidgets[o]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),r),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==o&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(o),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")br
`)==-1){var R=h.fromPoints(F,F);R.end.column+=x.length,this.session.remove(R)}}else{var R=this.getSelectionRange();F=this.session.remove(R),this.clearSelection()}if(x==`
`||x==`\r
`){var j=q.getLine(F.row);if(F.column>j.search(/\S|$/)){var B=j.substr(F.column).search(/\S|$/);q.doc.removeInLine(F.row,F.column,F.column+B)}}this.clearSelection();var D=F.column,P=q.getState(F.row),j=q.getLine(F.row),V=N.checkOutdent(P,j,x);if(q.insert(F,x),I&&I.selection&&(I.selection.length==2?this.selection.setSelectionRange(new h(F.row,D+I.selection[0],F.row,D+I.selection[1])):this.selection.setSelectionRange(new h(F.row+I.selection[0],I.selection[1],F.row+I.selection[2],I.selection[3]))),this.$enableAutoIndent){if(q.getDocument().isNewLine(x)){var W=N.getNextLineIndent(P,j.slice(0,F.column),q.getTabString());q.insert({row:F.row+1,column:0},W)}V&&N.autoOutdent(P,q,F.row)}},C.prototype.autoIndent=function(){for(var x=this.session,L=x.getMode(),q=this.selection.isEmpty()?[new h(0,0,x.doc.getLength()-1,0)]:this.selection.getAllRanges(),N="",F="",I="",R=x.getTabString(),B=0;B<q.length;B++)for(var D=q[B].start.row,P=q[B].end.row,j=D;j<=P;j++){j>0&&(N=x.getState(j-1),F=x.getLine(j-1),I=L.getNextLineIndent(N,F,R));var V=x.getLine(j),W=L.$getIndent(V);if(I!==W){if(W.length>0){var H=new h(j,0,j,W.length);x.remove(H)}I.length>0&&x.insert({row:j,column:0},I)}L.autoOutdent(N,x,j)}},C.prototype.onTextInput=function(x,L){if(!L)return this.keyBinding.onTextInput(x);this.startOperation({command:{name:"insertstring"}});var q=this.applyComposition.bind(this,x,L);this.selection.rangeCount?this.forEachSelection(q):q(),this.endOperation()},C.prototype.applyComposition=function(x,L){if(L.extendLeft||L.extendRight){var q=this.selection.getRange();q.start.column-=L.extendLeft,q.end.column+=L.extendRight,q.start.column<0&&(q.start.row--,q.start.column+=this.session.getLine(q.start.row).length+1),this.selection.setRange(q),!x&&!q.isEmpty()&&this.remove()}if((x||!this.selection.isEmpty())&&this.insert(x,!0),L.restoreStart||L.restoreEnd){var q=this.selection.getRange();q.start.column-=L.restoreStart,q.end.column-=L.restoreEnd,this.selection.setRange(q)}},C.prototype.onCommandKey=function(x,L,q){return this.keyBinding.onCommandKey(x,L,q)},C.prototype.setOverwrite=function(x){this.session.setOverwrite(x)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(x){this.setOption("scrollSpeed",x)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(x){this.setOption("dragDelay",x)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(x){this.setOption("selectionStyle",x)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(x){this.setOption("highlightActiveLine",x)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(x){this.setOption("highlightSelectedWord",x)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(x){this.renderer.setAnimatedScroll(x)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(x){this.renderer.setShowInvisibles(x)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(x){this.renderer.setDisplayIndentGuides(x)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(x){this.renderer.setHighlightIndentGuides(x)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(x){this.renderer.setShowPrintMargin(x)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMa
`){var R=q.getLine(L.end.row);/^\s+$/.test(R)&&(L.end.column=R.length)}}F&&(L=F)}this.session.remove(L),this.clearSelection()},C.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var x=this.getSelectionRange();x.start.column==x.end.column&&x.start.row==x.end.row&&(x.end.column=0,x.end.row++),this.session.remove(x),this.clearSelection()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var x=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(x)},C.prototype.setGhostText=function(x,L){this.renderer.setGhostText(x,L)},C.prototype.removeGhostText=function(){this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(!!this.selection.isEmpty()){var x=this.getCursorPosition(),L=x.column;if(L!==0){var q=this.session.getLine(x.row),N,F;L<q.length?(N=q.charAt(L)+q.charAt(L-1),F=new h(x.row,L-1,x.row,L+1)):(N=q.charAt(L-1)+q.charAt(L-2),F=new h(x.row,L-2,x.row,L)),this.session.replace(F,N),this.session.selection.moveToPosition(F.end)}}},C.prototype.toLowerCase=function(){var x=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),q=this.session.getTextRange(L);this.session.replace(L,q.toLowerCase()),this.selection.setSelectionRange(x)},C.prototype.toUpperCase=function(){var x=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var L=this.getSelectionRange(),q=this.session.getTextRange(L);this.session.replace(L,q.toUpperCase()),this.selection.setSelectionRange(x)},C.prototype.indent=function(){var x=this.session,L=this.getSelectionRange();if(L.start.row<L.end.row){var q=this.$getSelectedRows();x.indentRows(q.first,q.last," ");return}else if(L.start.column<L.end.column){var N=x.getTextRange(L);if(!/^\s+$/.test(N)){var q=this.$getSelectedRows();x.indentRows(q.first,q.last," ");return}}var F=x.getLine(L.start.row),I=L.start,R=x.getTabSize(),B=x.documentToScreenColumn(I.row,I.column);if(this.session.getUseSoftTabs())var D=R-B%R,P=i.stringRepeat(" ",D);else{for(var D=B%R;F[L.start.column-1]==" "&&D;)L.start.column--,D--;this.selection.setSelectionRange(L),P=" "}return this.insert(P)},C.prototype.blockIndent=function(){var x=this.$getSelectedRows();this.session.indentRows(x.first,x.last," ")},C.prototype.blockOutdent=function(){var x=this.session.getSelection();this.session.outdentRows(x.getRange())},C.prototype.sortLines=function(){for(var x=this.$getSelectedRows(),L=this.session,q=[],N=x.first;N<=x.last;N++)q.push(L.getLine(N));q.sort(function(R,B){return R.toLowerCase()<B.toLowerCase()?-1:R.toLowerCase()>B.toLowerCase()?1:0});for(var F=new h(0,0,0,0),N=x.first;N<=x.last;N++){var I=L.getLine(N);F.start.row=N,F.end.row=N,F.end.column=I.length,L.replace(F,q[N-x.first])}},C.prototype.toggleCommentLines=function(){var x=this.session.getState(this.getCursorPosition().row),L=this.$getSelectedRows();this.session.getMode().toggleCommentLines(x,this.session,L.first,L.last)},C.prototype.toggleBlockComment=function(){var x=this.getCursorPosition(),L=this.session.getState(x.row),q=this.getSelectionRange();this.session.getMode().toggleBlockComment(L,this.session,q,x)},C.prototype.getNumberAt=function(x,L){var q=/[\-]?[0-9]+(?:\.[0-9]+)?/g;q.lastIndex=0;for(var N=this.session.getLine(x);q.lastIndex<L;){var F=q.exec(N);if(F.index<=L&&F.index+F[0].length>=L){var I={value:F[0],start:F.index,end:F.index+F[0].length};return I}}return null},C.prototype.modifyNumber=function(x){var L=this.selection.getCursor().row,q=this.selection.getCursor().column,N=new h(L,q-1,L,q),F=this.session.getTextRange(N);if(!isNaN(parseFloat(F))&&isFinite(F)){var I=this.getNumberAt(L,q);if(I){var R=I.value.indexOf(".")>=0?I.start+I.value.indexOf(".")+1:I.end,B=I.start+I.value.length-R,D=parseFloat(I.value);D*=Math.pow(10,B),R!==I.end&&q<R?x*=Math.pow(10,I.end-q-1):x*=Math.pow(10,I.end-q),D+=x,D/=Math.pow(10,B);var P=D.toFixed(B),j=new h(L,I.start,L,I.end);this.session.replace(j,P),this.moveCursorTo(L,Math.max(I.start+1,q+P.length-I.value.length))}}else this.toggleWord()},C.prototype.toggleWord=function(){var x=this.selection.getCursor().row,L=this.selection.getCursor().column;this.selection.selectWord();var q=this.getSelectedText(),N=this.selection.getWordRange().start.column,F=q.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),I=L-N-1;I<0&&(I=0);var R=0,B=0,D=this;q.match(/[A-Za-z0-9_]+/)&&F.forEach(function(ne,re){B=R+ne.length,I>=R&&I<=B&&(q=ne,D.selection.clearSelection(),D.moveCursorTo(x,R+N),D.selection.selectTo(x,B+N)),R=B});for(var P=this.$toggleWordPairs,j,V=0;V<P.length
`&&a.getNewLineMode()!="windows",h=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=h)return this.EOL_CHAR=h,!0},l.prototype.setPadding=function(a){this.$padding=a,this.element.style.margin="0 "+a+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(a){this.$fontMetrics=a,this.$fontMetrics.on("changeCharacterSize",function(u){this._signal("changeCharacterSize",u)}.bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(a){this.session=a,a&&this.$computeTabString()},l.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},l.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},l.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var u=this.$tabStrings=[0],h=1;h<a+1;h++)if(this.showTabs){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_tab",$.textContent=d.stringRepeat(this.TAB_CHAR,h),u.push($)}else u.push(this.dom.createTextNode(d.stringRepeat(" ",h),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var v="ace_indent-guide",w=this.showSpaces?" ace_invisible ace_invisible_space":"",y=this.showSpaces?d.stringRepeat(this.SPACE_CHAR,this.tabSize):d.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?d.stringRepeat(this.TAB_CHAR,this.tabSize):y,$=this.dom.createElement("span");$.className=v+w,$.textContent=y,this.$tabStrings[" "]=$;var $=this.dom.createElement("span");$.className=v+_,$.textContent=b,this.$tabStrings[" "]=$}},l.prototype.updateLines=function(a,u,h){if(this.config.lastRow!=a.lastRow||this.config.firstRow!=a.firstRow)return this.update(a);this.config=a;for(var $=Math.max(u,a.firstRow),v=Math.min(h,a.lastRow),w=this.element.childNodes,y=0,b=a.firstRow;b<$;b++){var S=this.session.getFoldLine(b);if(S)if(S.containsRow($)){$=S.start.row;break}else b=S.end.row;y++}for(var _=!1,b=$,S=this.session.getNextFoldLine(b),M=S?S.start.row:1/0;b>M&&(b=S.end.row+1,S=this.session.getNextFoldLine(b,S),M=S?S.start.row:1/0),!(b>v);){var O=w[y++];if(O){this.dom.removeChildren(O),this.$renderLine(O,b,b==M?S:!1),_&&(O.style.top=this.$lines.computeLineTop(b,a,this.session)+"px");var k=a.lineHeight*this.session.getRowLength(b)+"px";O.style.height!=k&&(_=!0,O.style.height=k)}b++}if(_)for(;y<this.$lines.cells.length;){var A=this.$lines.cells[y++];A.element.style.top=this.$lines.computeLineTop(A.row,a,this.session)+"px"}},l.prototype.scrollLines=function(a){var u=this.config;if(this.config=a,this.$lines.pageChanged(u,a))return this.update(a);this.$lines.moveContainer(a);var h=a.lastRow,$=u?u.lastRow:-1;if(!u||$<a.firstRow)return this.update(a);if(h<u.firstRow)return this.update(a);if(!u||u.lastRow<a.firstRow)return this.update(a);if(a.lastRow<u.firstRow)return this.update(a);if(u.firstRow<a.firstRow)for(var v=this.session.getFoldedRowCount(u.firstRow,a.firstRow-1);v>0;v--)this.$lines.shift();if(u.lastRow>a.lastRow)for(var v=this.session.getFoldedRowCount(a.lastRow+1,u.lastRow);v>0;v--)this.$lines.pop();a.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(a,a.firstRow,u.firstRow-1)),a.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(a,u.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(a,u,h){for(var $=[],v=u,w=t
position: absolute;
background: rgba(128, 128, 128, 0.6);
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #bbb;
border-radius: 2px;
z-index: 8;
}
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
position: absolute;
z-index: 6;
background: none;
overflow: hidden!important;
}
.ace_editor>.ace_sb-v {
z-index: 6;
right: 0;
top: 0;
width: 12px;
}
.ace_editor>.ace_sb-v div {
z-index: 8;
right: 0;
width: 100%;
}
.ace_editor>.ace_sb-h {
bottom: 0;
left: 0;
height: 12px;
}
.ace_editor>.ace_sb-h div {
bottom: 0;
height: 100%;
}
.ace_editor>.ace_sb_grabbed {
z-index: 8;
background: #000;
}`,"ace_scrollbar.css",!1);var r=function(){function l(a,u){this.element=d.createElement("div"),this.element.className="ace_sb"+u,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,i.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},l}();s.implement(r.prototype,f);var o=function(l){m(a,l);function a(u,h){var $=l.call(this,u,"-v")||this;return $.scrollTop=0,$.scrollHeight=0,$.parent=u,$.width=$.VScrollWidth,$.renderer=h,$.inner.style.width=$.element.style.width=($.width||15)+"px",$.$minWidth=0,$}return a.prototype.onMouseDown=function(u,h){if(u==="mousedown"&&!(i.getButton(h)!==0||h.detail===2)){if(h.target===this.inner){var $=this,v=h.clientY,w=function(k){v=k.clientY},y=function(){clearInterval(M)},_=h.clientY,b=this.thumbTop,S=function(){if(v!==void 0){var k=$.scrollTopFromThumbTop(b+v-_);k!==$.scrollTop&&$._emit("scroll",{data:k})}};i.capture(this.inner,w,y);var M=setInterval(S,20);return i.preventDefault(h)}var O=h.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(O)}),i.preventDefault(h)}},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(u){var h=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return h=h>>0,h<0?h=0:h>this.pageHeight-this.viewHeight&&(h=this.pageHeight-this.viewHeight),h},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(u,h){this.pageHeight===u&&!h||(this.pageHeight=u,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})))},a.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},a}(r);o.prototype.setInnerHeight=o.prototype.setScrollHeight;var t=function(l){m(a,l);function a(u,h){var $=l.call(this,u,"-h")||this;return $.scrollLeft=0,$.scrollWidth=0,$.height=$.HScrollHeight,$.inner.style.height=$.element.style.height=($.height||12)+"px",$.renderer=h,$}return a.prototype.onMouseDown=function(u,h){if(u==="mousedown"&&!(i.getButton(h)!==0||h.detail===2)){if(h.target===this.inner){var $=this,v=h.clientX,w=function(k){v=k.clientX},y=function(){clearInterval(M)},_=h.clientX,b=this.thumbLeft,S=function(){if(v!==void 0){var k=$.scrollLeftFromThumbLeft(b+v-_);k!==$.scrollLeft&&$._emit("scroll",{data:k})}};i.capture(this.inner,w,y);var M=setInterval(S,20);return i.preventDefault(h)}var O=h.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(O)}),i.preventDefault(h)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.prototype.scrollLeftFromThumbLeft=function(u){var h=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return h=h>>0,h<0?h=0:h>this.pageWidth-this.viewWidth&&(h=this.pageWidth-this.viewWidth),h},a.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},a.prototype.setScrollWidth=function(u,h){this.pageWidth===u&&!h||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>t
.ace_br1 {border-top-left-radius : 3px;}
.ace_br2 {border-top-right-radius : 3px;}
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
.ace_br4 {border-bottom-right-radius: 3px;}
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
.ace_br8 {border-bottom-left-radius : 3px;}
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.ace_editor {
position: relative;
overflow: hidden;
padding: 0;
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
direction: ltr;
text-align: left;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
forced-color-adjust: none;
}
.ace_scroller {
position: absolute;
overflow: hidden;
top: 0;
bottom: 0;
background-color: inherit;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
cursor: text;
}
.ace_content {
position: absolute;
box-sizing: border-box;
min-width: 100%;
contain: style size layout;
font-variant-ligatures: no-common-ligatures;
}
.ace_invisible {
font-variant-ligatures: none;
}
.ace_keyboard-focus:focus {
box-shadow: inset 0 0 0 2px #5E9ED6;
outline: none;
}
.ace_dragging .ace_scroller:before{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
background: rgba(250, 250, 250, 0.01);
z-index: 1000;
}
.ace_dragging.ace_dark .ace_scroller:before{
background: rgba(0, 0, 0, 0.01);
}
.ace_gutter {
position: absolute;
overflow : hidden;
width: auto;
top: 0;
bottom: 0;
left: 0;
cursor: default;
z-index: 4;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
contain: style size layout;
}
.ace_gutter-active-line {
position: absolute;
left: 0;
right: 0;
}
.ace_scroller.ace_scroll-left:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
pointer-events: none;
}
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
position: absolute;
top: 0;
left: 0;
right: 0;
padding-left: 19px;
padding-right: 6px;
background-repeat: no-repeat;
}
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
margin-left: -14px;
float: left;
}
.ace_gutter-cell .ace_gutter_annotation {
margin-left: -19px;
float: left;
}
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
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==");
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
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==");
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
}
.ace_icon_svg.ace_error {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
background-color: crimson;
}
.ace_icon_svg.ace_security {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
background-color: crimson;
}
.ace_icon_svg.ace_warning {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
background-color: darkorange;
}
.ace_icon_svg.ace_info {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
background-color: royalblue;
}
.ace_icon_svg.ace_hint {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
background-color: silver;
}
.ace_icon_svg.ace_error_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
background-color: crimson;
}
.ace_icon_svg.ace_security_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
background-color: darkorange;
}
.ace_scrollbar {
contain: strict;
position: absolute;
right: 0;
bottom: 0;
z-index: 6;
}
.ace_scrollbar-inner {
position: absolute;
cursor: text;
left: 0;
top: 0;
}
.ace_scrollbar-v{
overflow-x: hidden;
overflow-y: scroll;
top: 0;
}
.ace_scrollbar-h {
overflow-x: scroll;
overflow-y: hidden;
left: 0;
}
.ace_print-margin {
position: absolute;
height: 100%;
}
.ace_text-input {
position: absolute;
z-index: 0;
width: 0.5em;
height: 1em;
opacity: 0;
background: transparent;
-moz-appearance: none;
appearance: none;
border: none;
resize: none;
outline: none;
overflow: hidden;
font: inherit;
padding: 0 1px;
margin: 0 -1px;
contain: strict;
-ms-user-select: text;
-moz-user-select: text;
-webkit-user-select: text;
user-select: text;
/*with \`pre-line\` chrome inserts &nbsp; instead of space*/
white-space: pre!important;
}
.ace_text-input.ace_composition {
background: transparent;
color: inherit;
z-index: 1000;
opacity: 1;
}
.ace_composition_placeholder { color: transparent }
.ace_composition_marker {
border-bottom: 1px solid;
position: absolute;
border-radius: 0;
margin-top: 1px;
}
[ace_nocontext=true] {
transform: none!important;
filter: none!important;
clip-path: none!important;
mask : none!important;
contain: none!important;
perspective: none!important;
mix-blend-mode: initial!important;
z-index: auto;
}
.ace_layer {
z-index: 1;
position: absolute;
overflow: hidden;
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
word-wrap: normal;
white-space: pre;
height: 100%;
width: 100%;
box-sizing: border-box;
/* setting pointer-events: auto; on node under the mouse, which changes
during scroll, will break mouse wheel scrolling in Safari */
pointer-events: none;
}
.ace_gutter-layer {
position: relative;
width: auto;
text-align: right;
pointer-events: auto;
height: 1000000px;
contain: style size layout;
}
.ace_text-layer {
font: inherit !important;
position: absolute;
height: 1000000px;
width: 1000000px;
contain: style size layout;
}
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
contain: style size layout;
position: absolute;
top: 0;
left: 0;
right: 0;
}
.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line,
.ace_hidpi .ace_text-layer > .ace_line_group {
contain: strict;
}
.ace_cjk {
display: inline-block;
text-align: center;
}
.ace_cursor-layer {
z-index: 4;
}
.ace_cursor {
z-index: 4;
position: absolute;
box-sizing: border-box;
border-left: 2px solid;
/* workaround for smooth cursor repaintng whole screen in chrome */
transform: translatez(0);
}
.ace_multiselect .ace_cursor {
border-left-width: 1px;
}
.ace_slim-cursors .ace_cursor {
border-left-width: 1px;
}
.ace_overwrite-cursors .ace_cursor {
border-left-width: 0;
border-bottom: 1px solid;
}
.ace_hidden-cursors .ace_cursor {
opacity: 0.2;
}
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
opacity: 0;
}
.ace_smooth-blinking .ace_cursor {
transition: opacity 0.18s;
}
.ace_animate-blinking .ace_cursor {
animation-duration: 1000ms;
animation-timing-function: step-end;
animation-name: blink-ace-animate;
animation-iteration-count: infinite;
}
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
animation-duration: 1000ms;
animation-timing-function: ease-in-out;
animation-name: blink-ace-animate-smooth;
}
@keyframes blink-ace-animate {
from, to { opacity: 1; }
60% { opacity: 0; }
}
@keyframes blink-ace-animate-smooth {
from, to { opacity: 1; }
45% { opacity: 1; }
60% { opacity: 0; }
85% { opacity: 0; }
}
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
position: absolute;
z-index: 3;
}
.ace_marker-layer .ace_selection {
position: absolute;
z-index: 5;
}
.ace_marker-layer .ace_bracket {
position: absolute;
z-index: 6;
}
.ace_marker-layer .ace_error_bracket {
position: absolute;
border-bottom: 1px solid #DE5555;
border-radius: 0;
}
.ace_marker-layer .ace_active-line {
position: absolute;
z-index: 2;
}
.ace_marker-layer .ace_selected-word {
position: absolute;
z-index: 4;
box-sizing: border-box;
}
.ace_line .ace_fold {
box-sizing: border-box;
display: inline-block;
height: 11px;
margin-top: -2px;
vertical-align: middle;
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
background-repeat: no-repeat, repeat-x;
background-position: center center, top left;
color: transparent;
border: 1px solid black;
border-radius: 2px;
cursor: pointer;
pointer-events: auto;
}
.ace_dark .ace_fold {
}
.ace_fold:hover{
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
}
.ace_tooltip {
background-color: #f5f5f5;
border: 1px solid gray;
border-radius: 1px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
color: black;
padding: 3px 4px;
position: fixed;
z-index: 999999;
box-sizing: border-box;
cursor: default;
white-space: pre-wrap;
word-wrap: break-word;
line-height: normal;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
pointer-events: none;
overflow: auto;
max-width: min(33em, 66vw);
overscroll-behavior: contain;
}
.ace_tooltip pre {
white-space: pre-wrap;
}
.ace_tooltip.ace_dark {
background-color: #636363;
color: #fff;
}
.ace_tooltip:focus {
outline: 1px solid #5E9ED6;
}
.ace_icon {
display: inline-block;
width: 18px;
vertical-align: top;
}
.ace_icon_svg {
display: inline-block;
width: 12px;
vertical-align: top;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: 12px;
-webkit-mask-position: center;
}
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
padding-right: 13px;
}
.ace_fold-widget, .ace_custom-widget {
box-sizing: border-box;
margin: 0 -12px 0 1px;
display: none;
width: 11px;
vertical-align: top;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
background-repeat: no-repeat;
background-position: center;
border-radius: 3px;
border: 1px solid transparent;
cursor: pointer;
}
.ace_custom-widget {
background: none;
}
.ace_folding-enabled .ace_fold-widget {
display: inline-block;
}
.ace_fold-widget.ace_end {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
}
.ace_fold-widget.ace_closed {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
}
.ace_fold-widget:hover {
border: 1px solid rgba(0, 0, 0, 0.3);
background-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}
.ace_fold-widget:active {
border: 1px solid rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/**
* Dark version for fold widgets
*/
.ace_dark .ace_fold-widget {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
}
.ace_dark .ace_fold-widget.ace_end {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget.ace_closed {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget:hover {
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.1);
}
.ace_dark .ace_fold-widget:active {
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}
.ace_inline_button {
border: 1px solid lightgray;
display: inline-block;
margin: -1px 8px;
padding: 0 5px;
pointer-events: auto;
cursor: pointer;
}
.ace_inline_button:hover {
border-color: gray;
background: rgba(200,200,200,0.2);
display: inline-block;
pointer-events: auto;
}
.ace_fold-widget.ace_invalid {
background-color: #FFB4B4;
border-color: #DE5555;
}
.ace_fade-fold-widgets .ace_fold-widget {
transition: opacity 0.4s ease 0.05s;
opacity: 0;
}
.ace_fade-fold-widgets:hover .ace_fold-widget {
transition: opacity 0.05s ease 0.05s;
opacity:1;
}
.ace_underline {
text-decoration: underline;
}
.ace_bold {
font-weight: bold;
}
.ace_nobold .ace_bold {
font-weight: normal;
}
.ace_italic {
font-style: italic;
}
.ace_error-marker {
background-color: rgba(255, 0, 0,0.2);
position: absolute;
z-index: 9;
}
.ace_highlight-marker {
background-color: rgba(255, 255, 0,0.2);
position: absolute;
z-index: 8;
}
.ace_mobile-menu {
position: absolute;
line-height: 1.5;
border-radius: 4px;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
background: white;
box-shadow: 1px 3px 2px grey;
border: 1px solid #dcdcdc;
color: black;
}
.ace_dark > .ace_mobile-menu {
background: #333;
color: #ccc;
box-shadow: 1px 3px 2px grey;
border: 1px solid #444;
}
.ace_mobile-button {
padding: 2px;
cursor: pointer;
overflow: hidden;
}
.ace_mobile-button:hover {
background-color: #eee;
opacity:1;
}
.ace_mobile-button:active {
background-color: #ddd;
}
.ace_placeholder {
position: relative;
font-family: arial;
transform: scale(0.9);
transform-origin: left;
white-space: pre;
opacity: 0.7;
margin: 0 10px;
z-index: 1;
}
.ace_ghost_text {
opacity: 0.5;
font-style: italic;
}
.ace_ghost_text_container > div {
white-space: pre;
}
.ghost_text_line_wrapped::after {
content: "\u21A9";
position: absolute;
}
.ace_lineWidgetContainer.ace_ghost_text {
margin: 0px 4px
}
.ace_screenreader-only {
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}
.ace_hidden_token {
display: none;
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,p,g){var m=e("../lib/dom"),s=e("../lib/oop"),d=e("../lib/event_emitter").EventEmitter,i=function(){function f(r,o){this.parentEl=r,this.canvas=m.createElement("canvas"),this.renderer=o,this.pixelRatio=1,this.maxHeight=o.layerConfig.maxHeight,this.lineHeight=o.layerConfig.lineHeight,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.style.top=0+"px",this.canvas.style.right=0+"px",this.canvas.style.zIndex=7+"px",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)"},this.setDimensions(),r.element.appendChild(this.canvas)}return f.prototype.$updateDecorators=function(r){var o=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;this.setDimensions(r);var t=this.canvas.getContext("2d");function l(O,k){return O.priority<k.priority?-1:O.priority>k.priority?1:0}var a=this.renderer.session.$annotations;if(t.clearRect(0,0,this.canvas.width,this.canvas.height),a){var u={info:1,warning:2,error:3};a.forEach(function(O){O.priority=u[O.type]||null}),a=a.sort(l);for(var h=0;h<a.length;h++){var $=a[h].row,v=this.compensateFoldRows($),w=Math.round(($-v)*this.lineHeight*this.heightRatio),y=Math.round(($-v)*this.lineHeight*this.heightRatio),_=Math.round((($-v)*this.lineHeight+this.lineHeight)*this.heightRatio),b=_-y;if(b<this.minDecorationHeight){var S=(y+_)/2|0;S<this.halfMinDecorationHeight?S=this.halfMinDecorationHeight:S+this.halfMinDecorationHeight>this.canvasHeight&&(S=this.canvasHeight-this.halfMinDecorationHeight),y=Math.round(S-this.halfMinDecorationHeight),_=Math.round(S+this.halfMinDecorationHeight)}t.fillStyle=o[a[h].type]||null,t.fillRect(0,w,this.canvasWidth,_-y)}}var M=this.renderer.session.selection.getCursor();if(M){var v=this.compensateFoldRows(M.row),w=Math.round((M.row-v)*this.lineHeight*this.heightRatio);t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,w,this.canvasWidth,2)}},f.prototype.compensateFoldRows=function(r){var o=this.renderer.session.$foldData,t=0;if(o&&o.length>0)for(var l=0;l<o.length;l++)r>o[l].start.row&&r<o[l].end.row?t+=r-o[l].start.row:r>=o[l].end.row&&(t+=o[l].end.row-o[l].start.row);return t},f.prototype.compensateLineWidgets=function(r){var o=this.renderer.session.widgetManager;if(o){var t=0;return o.lineWidgets.forEach(function(l,a){r>a&&(t+=l.rowCount||0)}),t-1}return 0},f.prototype.setDimensions=function(r){r?(this.maxHeight=r.maxHeight,this.lineHeight=r.lineHeight,this.canvasHeight=r.height,this.maxHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight):(this.canvasHeight=this.parentEl.parent.scrollHeight||this.canvasHeight,this.canvasWidth=this.parentEl.width||this.canvasWidth,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight)},f}();s.implement(i.prototype,d),p.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","ace/layer/text_util"],function(e,p,g){var m=e("./lib/oop"),s=e("./lib/dom"),d=e("./lib/lang"),i=e("./config"),f=e("./layer/gutter").Gutter,r=e("./layer/marker").Marker,o=e("./layer/text").Text,t=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,a=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,h=e("./scrollbar_custom").VScrollBar,$=e("./renderloop").RenderLoop,v=e("./layer/font_metrics").FontMetrics,w=e("./lib/event_emitter").EventEmitter,y=e("./css/editor-css"),_=e("./layer/decorators").Decorator,b
`)+`
`),T||(O.start.column=0,O.end.column=x[x.length-1].length),this.selection.setRange(O)}else{M.forEach(function(F){_.substractPoint(F.cursor)});var L=0,q=1/0,N=b.map(function(F){var I=F.cursor,R=y.getLine(I.row),B=R.substr(I.column).search(/\S/g);return B==-1&&(B=0),I.column>L&&(L=I.column),B<q&&(q=B),B});b.forEach(function(F,I){var R=F.cursor,B=L-R.column,D=N[I]-q;B>D?y.insert(R,r.stringRepeat(" ",B-D)):y.remove(new s(R.row,R.column,R.row,R.column-B+D)),F.start.column=F.end.column=L,F.start.row=F.end.row=R.row,F.cursor=F.end}),_.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(y,_){var b=!0,S=!0,M,O,k;return y.map(function(x){var L=x.match(/(\s*)(.*?)(\s*)([=:].*)/);return L?M==null?(M=L[1].length,O=L[2].length,k=L[3].length,L):(M+O+k!=L[1].length+L[2].length+L[3].length&&(S=!1),M!=L[1].length&&(b=!1),M>L[1].length&&(M=L[1].length),O<L[2].length&&(O=L[2].length),k>L[3].length&&(k=L[3].length),L):[x]}).map(_?T:b?S?E:T:C);function A(x){return r.stringRepeat(" ",x)}function T(x){return x[2]?A(M)+x[2]+A(O-x[2].length+k)+x[4].replace(/^([=:])\s+/,"$1 "):x[0]}function E(x){return x[2]?A(M+O-x[2].length)+x[2]+A(k)+x[4].replace(/^([=:])\s+/,"$1 "):x[0]}function C(x){return x[2]?A(M)+x[2]+A(k)+x[4].replace(/^([=:])\s+/,"$1 "):x[0]}}}).call(h.prototype);function $(y,_){return y.row==_.row&&y.column==_.column}p.onSessionChange=function(y){var _=y.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var b=y.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function v(y){y.$multiselectOnSessionChange||(y.$onAddRange=y.$onAddRange.bind(y),y.$onRemoveRange=y.$onRemoveRange.bind(y),y.$onMultiSelect=y.$onMultiSelect.bind(y),y.$onSingleSelect=y.$onSingleSelect.bind(y),y.$multiselectOnSessionChange=p.onSessionChange.bind(y),y.$checkMultiselectChange=y.$checkMultiselectChange.bind(y),y.$multiselectOnSessionChange(y),y.on("changeSession",y.$multiselectOnSessionChange),y.on("mousedown",i),y.commands.addCommands(o.defaultCommands),w(y))}function w(y){if(!y.textInput)return;var _=y.textInput.getElement(),b=!1;f.addListener(_,"keydown",function(M){var O=M.keyCode==18&&!(M.ctrlKey||M.shiftKey||M.metaKey);y.$blockSelectEnabled&&O?b||(y.renderer.setMouseCursor("crosshair"),b=!0):b&&S()},y),f.addListener(_,"keyup",S,y),f.addListener(_,"blur",S,y);function S(M){b&&(y.renderer.setMouseCursor(""),b=!1)}}p.MultiSelect=v,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(y){v(this),y?this.on("mousedown",i):this.off("mousedown",i)},value:!0},enableBlockSelect:{set:function(y){this.$blockSelectEnabled=y},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,p,g){var m=e("../../range").Range,s=p.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,i,f){var r=d.getLine(f);return this.foldingStartMarker.test(r)?"start":i=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(d,i,f){return null},this.indentationBlock=function(d,i,f){var r=/\S/,o=d.getLine(i),t=o.search(r);if(t!=-1){for(var l=f||o.length,a=d.getLength(),u=i,h=i;++i<a;){var $=d.ge
.error_widget_wrapper {
background: inherit;
color: inherit;
border:none
}
.error_widget {
border-top: solid 2px;
border-bottom: solid 2px;
margin: 5px 0;
padding: 10px 40px;
white-space: pre-wrap;
}
.error_widget.ace_error, .error_widget_arrow.ace_error{
border-color: #ff5a5a
}
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
border-color: #F1D817
}
.error_widget.ace_info, .error_widget_arrow.ace_info{
border-color: #5a5a5a
}
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
border-color: #5aaa5a
}
.error_widget_arrow {
position: absolute;
border: solid 5px;
border-top-color: transparent!important;
border-right-color: transparent!important;
border-left-color: transparent!important;
top: -5px;
}
`,"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(e,p,g){e("./loader_build")(p);var m=e("./lib/dom"),s=e("./range").Range,d=e("./editor").Editor,i=e("./edit_session").EditSession,f=e("./undomanager").UndoManager,r=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),p.config=e("./config"),p.edit=function(t,l){if(typeof t=="string"){var a=t;if(t=document.getElementById(a),!t)throw new Error("ace.edit can't find div #"+a)}if(t&&t.env&&t.env.editor instanceof d)return t.env.editor;var u="";if(t&&/input|textarea/i.test(t.tagName)){var h=t;u=h.value,t=m.createElement("pre"),h.parentNode.replaceChild(t,h)}else t&&(u=t.textContent,t.innerHTML="");var $=p.createEditSession(u),v=new d(new r(t),$,l),w={document:$,editor:v,onResize:v.resize.bind(v,null)};return h&&(w.textarea=h),v.on("destroy",function(){w.editor.container.env=null}),v.container.env=v.env=w,v},p.createEditSession=function(t,l){var a=new i(t,l);return a.setUndoManager(new f),a},p.Range=s,p.Editor=d,p.EditSession=i,p.UndoManager=f,p.VirtualRenderer=r;var o=p.config.version;p.version=o}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var p=function(){return this}();!p&&typeof window!="undefined"&&(p=window),!p&&typeof self!="undefined"&&(p=self),p.ace||(p.ace=e);for(var g in e)e.hasOwnProperty(g)&&(p.ace[g]=e[g]);p.ace.default=p.ace,n&&(n.exports=p.ace)})}()})(ace$2);var ace$1=ace$2.exports,themeSqlserver={exports:{}};(function(n,c){ace.define("ace/theme/sqlserver-css",["require","exports","module"],function(e,p,g){g.exports=`.ace-sqlserver .ace_gutter {
background: #ebebeb;
color: #333;
overflow: hidden;
}
.ace-sqlserver .ace_print-margin {
width: 1px;
background: #e8e8e8;
}
.ace-sqlserver {
background-color: #FFFFFF;
color: black;
}
.ace-sqlserver .ace_identifier {
color: black;
}
.ace-sqlserver .ace_keyword {
color: #0000FF;
}
.ace-sqlserver .ace_numeric {
color: black;
}
.ace-sqlserver .ace_storage {
color: #11B7BE;
}
.ace-sqlserver .ace_keyword.ace_operator,
.ace-sqlserver .ace_lparen,
.ace-sqlserver .ace_rparen,
.ace-sqlserver .ace_punctuation {
color: #808080;
}
.ace-sqlserver .ace_set.ace_statement {
color: #0000FF;
text-decoration: underline;
}
.ace-sqlserver .ace_cursor {
color: black;
}
.ace-sqlserver .ace_invisible {
color: rgb(191, 191, 191);
}
.ace-sqlserver .ace_constant.ace_buildin {
color: rgb(88, 72, 246);
}
.ace-sqlserver .ace_constant.ace_language {
color: #979797;
}
.ace-sqlserver .ace_constant.ace_library {
color: rgb(6, 150, 14);
}
.ace-sqlserver .ace_invalid {
background-color: rgb(153, 0, 0);
color: white;
}
.ace-sqlserver .ace_support.ace_function {
color: #FF00FF;
}
.ace-sqlserver .ace_support.ace_constant {
color: rgb(6, 150, 14);
}
.ace-sqlserver .ace_class {
color: #008080;
}
.ace-sqlserver .ace_support.ace_other {
color: #6D79DE;
}
.ace-sqlserver .ace_variable.ace_parameter {
font-style: italic;
color: #FD971F;
}
.ace-sqlserver .ace_comment {
color: #008000;
}
.ace-sqlserver .ace_constant.ace_numeric {
color: black;
}
.ace-sqlserver .ace_variable {
color: rgb(49, 132, 149);
}
.ace-sqlserver .ace_xml-pe {
color: rgb(104, 104, 91);
}
.ace-sqlserver .ace_support.ace_storedprocedure {
color: #800000;
}
.ace-sqlserver .ace_heading {
color: rgb(12, 7, 255);
}
.ace-sqlserver .ace_list {
color: rgb(185, 6, 144);
}
.ace-sqlserver .ace_marker-layer .ace_selection {
background: rgb(181, 213, 255);
}
.ace-sqlserver .ace_marker-layer .ace_step {
background: rgb(252, 255, 0);
}
.ace-sqlserver .ace_marker-layer .ace_stack {
background: rgb(164, 229, 101);
}
.ace-sqlserver .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid rgb(192, 192, 192);
}
.ace-sqlserver .ace_marker-layer .ace_active-line {
background: rgba(0, 0, 0, 0.07);
}
.ace-sqlserver .ace_gutter-active-line {
background-color: #dcdcdc;
}
.ace-sqlserver .ace_marker-layer .ace_selected-word {
background: rgb(250, 250, 255);
border: 1px solid rgb(200, 200, 250);
}
.ace-sqlserver .ace_meta.ace_tag {
color: #0000FF;
}
.ace-sqlserver .ace_string.ace_regex {
color: #FF0000;
}
.ace-sqlserver .ace_string {
color: #FF0000;
}
.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {
color: #994409;
}
.ace-sqlserver .ace_indent-guide {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}
.ace-sqlserver .ace_indent-guide-active {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/sqlserver",["require","exports","module","ace/theme/sqlserver-css","ace/lib/dom"],function(e,p,g){p.isDark=!1,p.cssClass="ace-sqlserver",p.cssText=e("./sqlserver-css");var m=e("../lib/dom");m.importCssString(p.cssText,p.cssClass,!1)}),function(){ace.require(["ace/theme/sqlserver"],function(e){n&&(n.exports=e)})}()})(themeSqlserver);var modeJavascript={exports:{}};(function(n,c){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,p,g){var m=e("../lib/oop"),s=e("./text_highlight_rules").TextHighlightRules,d=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},d.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};m.inherits(d,s),d.getTagRule=function(i){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},d.getStartRule=function(i){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:i}},d.getEndRule=function(i){return{token:"comment.doc",regex:"\\*\\/",next:i}},p.JsDocCommentHighlightRules=d}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,p,g){function m(){var t=r.replace("\\d","\\d\\-"),l={onMatch:function(u,h,$){var v=u.charAt(1)=="/"?2:1;return v==1?(h!=this.nextState?$.unshift(this.next,this.nextState,0):$.unshift(this.next),$[2]++):v==2&&h==this.nextState&&($[1]--,(!$[1]||$[1]<0)&&($.shift(),$.shift())),[{type:"meta.tag.punctuation."+(v==1?"":"end-")+"tag-open.xml",value:u.slice(0,v)},{type:"meta.tag.tag-name.xml",value:u.substr(v)}]},regex:"</?(?:"+t+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(l);var a={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[a,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,h,$){return h==$[0]&&$.shift(),u.length==2&&($[0]==this.nextState&&$[1]--,(!$[1]||$[1]<0)&&$.splice(0,2)),this.next=$[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},a,s("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",r
`){var u=t.getCursorPosition(),h=l.getLine(u.row),$=new i(l,u.row,u.column),v=$.getCurrentToken();if(m(v,"")&&v.type.indexOf("tag-close")!==-1){if(v.value=="/>")return;for(;v&&v.type.indexOf("tag-name")===-1;)v=$.stepBackward();if(!v)return;var w=v.value,y=$.getCurrentTokenRow();if(v=$.stepBackward(),!v||v.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[w]||!this.voidElements){var _=l.getTokenAt(u.row,u.column+1),h=l.getLine(y),b=this.$getIndent(h),S=b+l.getTabString();return _&&_.value==="</"?{text:`
`+S+`
`+b,selection:[1,S.length,1,S.length]}:{text:`
`+S}}}}})};s.inherits(f,d),p.XmlBehaviour=f}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,p,g){var m=e("../../lib/oop"),s=e("../../token_iterator").TokenIterator,d=e("../behaviour/cstyle").CstyleBehaviour,i=e("../behaviour/xml").XmlBehaviour,f=function(){var r=new i({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(r),this.inherit(d),this.add("autoclosing-fragment","insertion",function(o,t,l,a,u){if(u==">"){var h=l.getSelectionRange().start,$=new s(a,h.row,h.column),v=$.getCurrentToken()||$.stepBackward();if(!v)return;if(v.value=="<")return{text:"></>",selection:[1,1]}}})};m.inherits(f,d),p.JavaScriptBehaviour=f}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,p,g){function m(o,t){return o&&o.type&&o.type.lastIndexOf(t+".xml")>-1}var s=e("../../lib/oop"),d=e("../../range").Range,i=e("./fold_mode").FoldMode,f=p.FoldMode=function(o,t){i.call(this),this.voidElements=o||{},this.optionalEndTags=s.mixin({},this.voidElements),t&&s.mixin(this.optionalEndTags,t)};s.inherits(f,i);var r=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(o,t,l){var a=this._getFirstTagInLine(o,l);return a?a.closing||!a.tagName&&a.selfClosing?t==="markbeginend"?"end":"":!a.tagName||a.selfClosing||this.voidElements.hasOwnProperty(a.tagName.toLowerCase())||this._findEndTagInLine(o,l,a.tagName,a.end.column)?"":"start":this.getCommentFoldWidget(o,l)},this.getCommentFoldWidget=function(o,t){return/comment/.test(o.getState(t))&&/<!-/.test(o.getLine(t))?"start":""},this._getFirstTagInLine=function(o,t){for(var l=o.getTokens(t),a=new r,u=0;u<l.length;u++){var h=l[u];if(m(h,"tag-open")){if(a.end.column=a.start.column+h.value.length,a.closing=m(h,"end-tag-open"),h=l[++u],!h)return null;if(a.tagName=h.value,h.value===""){if(h=l[++u],!h)return null;a.tagName=h.value}for(a.end.column+=h.value.length,u++;u<l.length;u++)if(h=l[u],a.end.column+=h.value.length,m(h,"tag-close")){a.selfClosing=h.value=="/>";break}return a}if(m(h,"tag-close"))return a.selfClosing=h.value=="/>",a;a.start.column+=h.value.length}return null},this._findEndTagInLine=function(o,t,l,a){for(var u=o.getTokens(t),h=0,$=0;$<u.length;$++){var v=u[$];if(h+=v.value.length,!(h<a-1)&&m(v,"end-tag-open")&&(v=u[$+1],m(v,"tag-name")&&v.value===""&&(v=u[$+2]),v&&v.value==l))return!0}return!1},this.getFoldWidgetRange=function(o,t,l){var a=this._getFirstTagInLine(o,l);if(!a)return this.getCommentFoldWidget(o,l)&&o.getCommentFoldRange(l,o.getLine(l).length);var u=o.getMatchingTags({row:l,column:0});if(u)return new d(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(f.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,p,g){var m=e("../../lib/oop"),s=e("../../range").Range,d=e("./fold_mode").FoldMode,i=p.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};m.inherits(i,d),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,r,o){var t=f.getLine(o);if(this.singleLineBlockCommentRe.test(t)&&!this.startRegionRe.test(t)&&!this.tripleStarBlockCommentRe.test(t))return"";var l=this._getFoldWidgetBase(f,r,o);return!l&&this.startRegionRe.test(t)?"start":l},this.getFoldWidgetRange=function(f,r,o,t){var l=f.getLine(o);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(f,l,o);var a=
`+M+"$1"):O},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return a.getText&&a.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var S=b.session.$mode||{};return S.blockComment&&S.blockComment.start||""},BLOCK_COMMENT_END:function(b){var S=b.session.$mode||{};return S.blockComment&&S.blockComment.end||""},LINE_COMMENT:function(b){var S=b.session.$mode||{};return S.lineCommentStart||""},CURRENT_YEAR:m.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:m.bind(null,{year:"2-digit"}),CURRENT_MONTH:m.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:m.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:m.bind(null,{month:"short"}),CURRENT_DATE:m.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:m.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:m.bind(null,{weekday:"short"}),CURRENT_HOUR:m.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:m.bind(null,{minute:"2-digit"}),CURRENT_SECOND:m.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var h=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function S(k){return k=k.substr(1),/^\d+$/.test(k)?[{tabstopId:parseInt(k,10)}]:[{text:k}]}function M(k){return"(?:[^\\\\"+k+"]|\\\\.)"}var O={regex:"/("+M("/")+"+)/",onMatch:function(k,A,T){var E=T[0];return E.fmtString=!0,E.guard=k.slice(1,-1),E.flag="",""},next:"formatString"};return b.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(k,A,T){var E=k[1];return(E=="}"&&T.length||"`$\\".indexOf(E)!=-1)&&(k=E),[k]}},{regex:/}/,onMatch:function(k,A,T){return[T.length?T.shift():k]}},{regex:/\$(?:\d+|\w+)/,onMatch:S},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(k,A,T){var E=S(k.substr(1));return T.unshift(E[0]),E},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+M("\\|")+"*\\|",onMatch:function(k,A,T){var E=k.slice(1,-1).replace(/\\[,|\\]|,/g,function(C){return C.length==2?C[1]:"\0"}).split("\0").map(function(C){return{value:C}});return T[0].choices=E,[E[0]]},next:"start"},O,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(k,A,T){return T.length&&T[0].expectElse?(T[0].expectElse=!1,T[0].ifEnd={elseEnd:T[0]},[T[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(k,A,T){var E=k[1];return E=="}"&&T.length||"`$\\".indexOf(E)!=-1?k=E:E=="n"?k=`
`:E=="t"?k=" ":"ulULE".indexOf(E)!=-1&&(k={changeCase:E,local:E>"a"}),[k]}},{regex:"/\\w*}",onMatch:function(k,A,T){var E=T.shift();return E&&(E.flag=k.slice(1,-1)),this.next=E&&E.tabstopId?"start":"",[E||k]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(k,A,T){return[{text:k.slice(1)}]}},{regex:/\${\w+/,onMatch:function(k,A,T){var E={text:k.slice(2)};return T.unshift(E),[E]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(k,A,T){var E=T.shift();return this.next=E&&E.tabstopId?"start":"",[E||k]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(k,A,T){var E=T[0];return E.formatFunction=k.slice(2,-1),[T.shift()]},next:"formatString"},O,{regex:/:[\?\-+]?/,onMatch:function(k,A,T){k[1]=="+"&&(T[0].ifEnd=T[0]),k[1]=="?"&&(T[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(S,M){return this.getTokenizer().getLineTokens(S,M).tokens.map(function(O){return O.value||O})},b.prototype.getVariableValue=function(S,M,O){if(/^\d+$/.test(M))return(this.variables.__||{})[M]||"";if(/^[A-Z]\d+$/.test(M))return(this.variables[M[0]+"__"]||{})[M.substr(1)]||"";if(M=M.replace(/^TM_/,""),!this.variables.hasOwnProperty(M))return"";var k=this.variables[M];return typeof k=="function"&&(k=this.variables[M](S,M,O)),k==null?"":k},b.prototype.tmStrFormat=function(S,M,O){if(!M.fmt)return S;var k=M.flag||"",A=M.guard;A=new RegExp(A,k.replace(/[^gim]/g,""));var T=typeof M.fmt=="string"?this.tokenizeTmSnippet(M.fmt,"formatString"):M.fmt,E=this,C=S.replace(A,function(){var x=E.variables.__;E.variables.__=[].slice.call(arguments);for(var L=E.resolveVariables(T,O),q="E",N=0;N<L.length;N++){var F=L[N];if(typeof F=="object")if(L[N]="",F.changeCase&&F.local){var I=L[N+1];I&&typeof I=="string"&&(F.changeCase=="u"?L[N]=I[0].toUpperCase():L[N]=I[0].toLowerCase(),L[N+1]=I.substr(1))}else F.changeCase&&(q=F.changeCase);else q=="U"?L[N]=F.toUpperCase():q=="L"&&(L[N]=F.toLowerCase())}return E.variables.__=x,L.join("")});return C},b.prototype.tmFormatFunction=function(S,M,O){return M.formatFunction=="upcase"?S.toUpperCase():M.formatFunction=="downcase"?S.toLowerCase():S},b.prototype.resolveVariables=function(S,M){function O(q){var N=S.indexOf(q,E+1);N!=-1&&(E=N)}for(var k=[],A="",T=!0,E=0;E<S.length;E++){var C=S[E];if(typeof C=="string"){k.push(C),C==`
`?(T=!0,A=""):T&&(A=/^\t*/.exec(C)[0],T=/\S/.test(C));continue}if(!!C){if(T=!1,C.fmtString){var x=S.indexOf(C,E+1);x==-1&&(x=S.length),C.fmt=S.slice(E+1,x),E=x}if(C.text){var L=this.getVariableValue(M,C.text,A)+"";C.fmtString&&(L=this.tmStrFormat(L,C,M)),C.formatFunction&&(L=this.tmFormatFunction(L,C,M)),L&&!C.ifEnd?(k.push(L),O(C)):!L&&C.ifEnd&&O(C.ifEnd)}else C.elseEnd?O(C.elseEnd):(C.tabstopId!=null||C.changeCase!=null)&&k.push(C)}}return k},b.prototype.getDisplayTextForSnippet=function(S,M){var O=$.call(this,S,M);return O.text},b.prototype.insertSnippetForSelection=function(S,M,O){O===void 0&&(O={});var k=$.call(this,S,M,O),A=S.getSelectionRange(),T=S.session.replace(A,k.text),E=new v(S),C=S.inVirtualSelectionMode&&S.selection.index;E.addTabstops(k.tabstops,A.start,T,C)},b.prototype.insertSnippet=function(S,M,O){O===void 0&&(O={});var k=this;if(S.inVirtualSelectionMode)return k.insertSnippetForSelection(S,M,O);S.forEachSelection(function(){k.insertSnippetForSelection(S,M,O)},null,{keepOrder:!0}),S.tabstopManager&&S.tabstopManager.tabNext()},b.prototype.$getScope=function(S){var M=S.session.$mode.$id||"";if(M=M.split("/").pop(),M==="html"||M==="php"){M==="php"&&!S.session.$mode.inlinePhp&&(M="html");var O=S.getCursorPosition(),k=S.session.getState(O.row);typeof k=="object"&&(k=k[0]),k.substring&&(k.substring(0,3)=="js-"?M="javascript":k.substring(0,4)=="css-"?M="css":k.substring(0,4)=="php-"&&(M="php"))}return M},b.prototype.getActiveScopes=function(S){var M=this.$getScope(S),O=[M],k=this.snippetMap;return k[M]&&k[M].includeScopes&&O.push.apply(O,k[M].includeScopes),O.push("_"),O},b.prototype.expandWithTab=function(S,M){var O=this,k=S.forEachSelection(function(){return O.expandSnippetForSelection(S,M)},null,{keepOrder:!0});return k&&S.tabstopManager&&S.tabstopManager.tabNext(),k},b.prototype.expandSnippetForSelection=function(S,M){var O=S.getCursorPosition(),k=S.session.getLine(O.row),A=k.substring(0,O.column),T=k.substr(O.column),E=this.snippetMap,C;return this.getActiveScopes(S).some(function(x){var L=E[x];return L&&(C=this.findMatchingSnippet(L,A,T)),!!C},this),C?(M&&M.dryRun||(S.session.doc.removeInLine(O.row,O.column-C.replaceBefore.length,O.column+C.replaceAfter.length),this.variables.M__=C.matchBefore,this.variables.T__=C.matchAfter,this.insertSnippetForSelection(S,C.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(S,M,O){for(var k=S.length;k--;){var A=S[k];if(!(A.startRe&&!A.startRe.test(M))&&!(A.endRe&&!A.endRe.test(O))&&!(!A.startRe&&!A.endRe))return A.matchBefore=A.startRe?A.startRe.exec(M):[""],A.matchAfter=A.endRe?A.endRe.exec(O):[""],A.replaceBefore=A.triggerRe?A.triggerRe.exec(M)[0]:"",A.replaceAfter=A.endTriggerRe?A.endTriggerRe.exec(O)[0]:"",A}},b.prototype.register=function(S,M){function O(x){return x&&!/^\^?\(.*\)\$?$|^\\b$/.test(x)&&(x="(?:"+x+")"),x||""}function k(x,L,q){return x=O(x),L=O(L),q?(x=L+x,x&&x[x.length-1]!="$"&&(x+="$")):(x+=L,x&&x[0]!="^"&&(x="^"+x)),new RegExp(x)}function A(x){x.scope||(x.scope=M||"_"),M=x.scope,T[M]||(T[M]=[],E[M]={});var L=E[M];if(x.name){var q=L[x.name];q&&C.unregister(q),L[x.name]=x}T[M].push(x),x.prefix&&(x.tabTrigger=x.prefix),!x.content&&x.body&&(x.content=Array.isArray(x.body)?x.body.join(`
`):x.body),x.tabTrigger&&!x.trigger&&(!x.guard&&/^\w/.test(x.tabTrigger)&&(x.guard="\\b"),x.trigger=f.escapeRegExp(x.tabTrigger)),!(!x.trigger&&!x.guard&&!x.endTrigger&&!x.endGuard)&&(x.startRe=k(x.trigger,x.guard,!0),x.triggerRe=new RegExp(x.trigger),x.endRe=k(x.endTrigger,x.endGuard,!0),x.endTriggerRe=new RegExp(x.endTrigger))}var T=this.snippetMap,E=this.snippetNameMap,C=this;S||(S=[]),Array.isArray(S)?S.forEach(A):Object.keys(S).forEach(function(x){A(S[x])}),this._signal("registerSnippets",{scope:M})},b.prototype.unregister=function(S,M){function O(T){var E=A[T.scope||M];if(E&&E[T.name]){delete E[T.name];var C=k[T.scope||M],x=C&&C.indexOf(T);x>=0&&C.splice(x,1)}}var k=this.snippetMap,A=this.snippetNameMap;S.content?O(S):Array.isArray(S)&&S.forEach(O)},b.prototype.parseSnippetFile=function(S){S=S.replace(/\r/g,"");for(var M=[],O={},k=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,A;A=k.exec(S);){if(A[1])try{O=JSON.parse(A[1]),M.push(O)}catch{}if(A[4])O.content=A[4].replace(/^\t/gm,""),M.push(O),O={};else{var T=A[2],E=A[3];if(T=="regex"){var C=/\/((?:[^\/\\]|\\.)*)|$/g;O.guard=C.exec(E)[1],O.trigger=C.exec(E)[1],O.endTrigger=C.exec(E)[1],O.endGuard=C.exec(E)[1]}else T=="snippet"?(O.tabTrigger=E.match(/^\S*/)[0],O.name||(O.name=E)):T&&(O[T]=E)}}return M},b.prototype.getSnippetByName=function(S,M){var O=this.snippetNameMap,k;return this.getActiveScopes(M).some(function(A){var T=O[A];return T&&(k=T[S]),!!k},this),k},b}();d.implement(h.prototype,i);var $=function(b,S,M){function O(V){for(var W=[],H=0;H<V.length;H++){var z=V[H];if(typeof z=="object"){if(L[z.tabstopId])continue;var U=V.lastIndexOf(z,H-1);z=W[U]||{tabstopId:z.tabstopId}}W[H]=z}return W}M===void 0&&(M={});var k=b.getCursorPosition(),A=b.session.getLine(k.row),T=b.session.getTabString(),E=A.match(/^\s*/)[0];k.column<E.length&&(E=E.slice(0,k.column)),S=S.replace(/\r/g,"");var C=this.tokenizeTmSnippet(S);C=this.resolveVariables(C,b),C=C.map(function(V){return V==`
`&&!M.excludeExtraIndent?V+E:typeof V=="string"?V.replace(/\t/g,T):V});var x=[];C.forEach(function(V,W){if(typeof V=="object"){var H=V.tabstopId,z=x[H];if(z||(z=x[H]=[],z.index=H,z.value="",z.parents={}),z.indexOf(V)===-1){V.choices&&!z.choices&&(z.choices=V.choices),z.push(V);var U=C.indexOf(V,W+1);if(U!==-1){var Z=C.slice(W+1,U),ne=Z.some(function(re){return typeof re=="object"});ne&&!z.value?z.value=Z:Z.length&&(!z.value||typeof z.value!="string")&&(z.value=Z.join(""))}}}}),x.forEach(function(V){V.length=0});for(var L={},q=0;q<C.length;q++){var N=C[q];if(typeof N=="object"){var F=N.tabstopId,I=x[F],R=C.indexOf(N,q+1);if(L[F]){L[F]===N&&(delete L[F],Object.keys(L).forEach(function(V){I.parents[V]=!0}));continue}L[F]=N;var B=I.value;typeof B!="string"?B=O(B):N.fmt&&(B=this.tmStrFormat(B,N,b)),C.splice.apply(C,[q+1,Math.max(0,R-q)].concat(B,N)),I.indexOf(N)===-1&&I.push(N)}}var D=0,P=0,j="";return C.forEach(function(V){if(typeof V=="string"){var W=V.split(`
`);W.length>1?(P=W[W.length-1].length,D+=W.length-1):P+=V.length,j+=V}else V&&(V.start?V.end={row:D,column:P}:V.start={row:D,column:P})}),{text:j,tabstops:x,tokens:C}},v=function(){function b(S){if(this.index=0,this.ranges=[],this.tabstops=[],S.tabstopManager)return S.tabstopManager;S.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(S)}return b.prototype.attach=function(S){this.$openTabstops=null,this.selectedTabstop=null,this.editor=S,this.session=S.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)},b.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},b.prototype.onChange=function(S){for(var M=S.action[0]=="r",O=this.selectedTabstop||{},k=O.parents||{},A=this.tabstops.slice(),T=0;T<A.length;T++){var E=A[T],C=E==O||k[E.index];if(E.rangeList.$bias=C?0:1,S.action=="remove"&&E!==O){var x=E.parents&&E.parents[O.index],L=E.rangeList.pointIndex(S.start,x);L=L<0?-L-1:L+1;var q=E.rangeList.pointIndex(S.end,x);q=q<0?-q-1:q-1;for(var N=E.rangeList.ranges.slice(L,q),F=0;F<N.length;F++)this.removeRange(N[F])}E.rangeList.$onChange(S)}var I=this.session;!this.$inChange&&M&&I.getLength()==1&&!I.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var S=this.selectedTabstop;if(!(!S||!S.hasLinkedRanges||!S.firstNonLinked)){this.$inChange=!0;for(var M=this.session,O=M.getTextRange(S.firstNonLinked),k=0;k<S.length;k++){var A=S[k];if(!!A.linked){var T=A.original,E=p.snippetManager.tmStrFormat(O,T,this.editor);M.replace(A,E)}}this.$inChange=!1}},b.prototype.onAfterExec=function(S){S.command&&!S.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(!!this.editor){for(var S=this.editor.selection.lead,M=this.editor.selection.anchor,O=this.editor.selection.isEmpty(),k=0;k<this.ranges.length;k++)if(!this.ranges[k].linked){var A=this.ranges[k].contains(S.row,S.column),T=O||this.ranges[k].contains(M.row,M.column);if(A&&T)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(S){var M=this.tabstops.length,O=this.index+(S||1);O=Math.min(Math.max(O,1),M),O==M&&(O=0),this.selectTabstop(O),this.updateTabstopMarkers(),O===0&&this.detach()},b.prototype.selectTabstop=function(S){this.$openTabstops=null;var M=this.tabstops[this.index];if(M&&this.addTabstopMarkers(M),this.index=S,M=this.tabstops[this.index],!(!M||!M.length)){this.selectedTabstop=M;var O=M.firstNonLinked||M;if(M.choices&&(O.cursor=O.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(O);else{var k=this.editor.multiSelect;k.toSingleRange(O);for(var A=0;A<M.length;A++)M.hasLinkedRanges&&M[A].linked||k.addRange(M[A].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(S,M,O){var k=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!S[0]){var A=r.fromPoints(O,O);y(A.start,M),y(A.end,M),S[0]=[A],S[0].index=0}var T=this.index,E=[T+1,0],C=this.ranges,x=this.snippetId=(this.snippetId||0)+1;S.forEach(function(L,q){var N=this.$openTabstops[q]||L;N.snippetId=x;for(v
.ace_snippet-marker {
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(194, 193, 208, 0.09);
border: 1px dotted rgba(211, 208, 235, 0.62);
position: absolute;
}`,"snippets.css",!1),p.snippetManager=new h;var _=e("./editor").Editor;(function(){this.insertSnippet=function(b,S){return p.snippetManager.insertSnippet(this,b,S)},this.expandSnippet=function(b){return p.snippetManager.expandWithTab(this,b)}}).call(_.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","ace/lib/useragent"],function(e,p,g){var m=e("../virtual_renderer").VirtualRenderer,s=e("../editor").Editor,d=e("../range").Range,i=e("../lib/event"),f=e("../lib/lang"),r=e("../lib/dom"),o=e("../config").nls,t=e("./../lib/useragent"),l=function(w){return"suggest-aria-id:".concat(w)},a=t.isSafari?"menu":"listbox",u=t.isSafari?"menuitem":"option",h=t.isSafari?"aria-current":"aria-selected",$=function(w){var y=new m(w);y.$maxLines=4;var _=new s(y);return _.setHighlightActiveLine(!1),_.setShowPrintMargin(!1),_.renderer.setShowGutter(!1),_.renderer.setHighlightGutterLine(!1),_.$mouseHandler.$focusTimeout=0,_.$highlightTagPending=!0,_},v=function(){function w(y){var _=r.createElement("div"),b=$(_);y&&y.appendChild(_),_.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",a),b.renderer.$textLayer.element.setAttribute("aria-roledescription",o("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",o("autocomplete.popup.aria-label","Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var S=function(){};b.focus=S,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=S,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(C){var x=C.getDocumentPosition();b.selection.moveToPosition(x),k.start.row=k.end.row=x.row,C.stop()});var M,O=new d(-1,0,-1,1/0),k=new d(-1,0,-1,1/0);k.id=b.session.addMarker(k,"ace_active-line","fullLine"),b.setSelectOnHover=function(C){C?O.id&&(b.session.removeMarker(O.id),O.id=null):O.id=b.session.addMarker(O,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(C){if(!M){M=C;return}if(!(M.x==C.x&&M.y==C.y)){M=C,M.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var x=M.getDocumentPosition().row;O.start.row!=x&&(O.id||b.setRow(x),T(x))}}),b.renderer.on("beforeRender",function(){if(M&&O.start.row!=-1){M.$pos=null;var C=M.getDocumentPosition().row;O.id||b.setRow(C),T(C,!0)}}),b.renderer.on("afterRender",function(){for(var C=b.renderer.$textLayer,x=C.config.firstRow,L=C.config.lastRow;x<=L;x++){var q=C.element.childNodes[x-C.config.firstRow];q.setAttribute("role",u),q.setAttribute("aria-roledescription",o("autocomplete.popup.item.aria-roledescription","item")),q.setAttribute("aria-setsize",b.data.length),q.setAttribute("aria-describedby","doc-tooltip"),q.setAttribute("aria-posinset",x+1);var N=b.getData(x);if(N){var F="".concat(N.caption||N.value).concat(N.meta?", ".concat(N.meta):"");q.setAttribute("aria-label",F)}var I=q.querySelectorAll(".ace_completion-highlight");I.forEach(function(R){R.setAttribute("role","mark")})}}),b.renderer.on("afterRender",function(){var C=b.getRow(),x=b.renderer.$textLayer,L=x.element.childNodes[C-x.config.firstRow],q=document.activeElement;if(L!==b.selectedNode&&b.selectedNode&&(r.removeCssClass(b.selectedNode,"ace_selected"),b.selectedNode.removeAttribute(h),b.selectedNode.removeAttribute("id")),q.removeAttribute("aria-activedescendant"),b.selectedNode=L,L){var N=l(C);r.addCssClass(L,"ace_selected"),L.id=N,x.element.setAttribute("aria-activedescendant",N),q.setAttribute("aria-activedescendant",N),L.setAttribute(h,"true")}});var A=function(){T(-1)},T=function(C,x){C!==O.start.row&&(O.start.row=O.end.row=C,x||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getH
`,C.length),-1),b.data=C||[],b.setRow(0)},b.getData=function(C){return b.data[C]},b.getRow=function(){return k.start.row},b.setRow=function(C){C=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,C)),k.start.row!=C&&(b.selection.clearSelection(),k.start.row=k.end.row=C||0,b.session._emit("changeBackMarker"),b.moveCursorTo(C||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function(C,x,L,q){if(!q&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===C.top&&b.anchorPos.left===C.left&&b.anchor===L)return!0;var N=this.container,F=this.renderer.scrollBar.width||10,I=window.innerHeight-F,R=window.innerWidth-F,B=this.renderer,D=B.$maxLines*x*1.4,P={top:0,bottom:0,left:0},j=I-C.top-3*this.$borderSize-x,V=C.top-3*this.$borderSize;L||(V<=j||j>=D?L="bottom":L="top"),L==="top"?(P.bottom=C.top-this.$borderSize,P.top=P.bottom-D):L==="bottom"&&(P.top=C.top+x+this.$borderSize,P.bottom=P.top+D);var W=P.top>=0&&P.bottom<=I;if(!q&&!W)return!1;W?B.$maxPixelHeight=null:L==="top"?B.$maxPixelHeight=V:B.$maxPixelHeight=j,L==="top"?(N.style.top="",N.style.bottom=I+F-P.bottom+"px",b.isTopdown=!1):(N.style.top=P.top+"px",N.style.bottom="",b.isTopdown=!0),N.style.display="";var H=C.left;return H+N.offsetWidth>R&&(H=R-N.offsetWidth),N.style.left=H+"px",N.style.right="",b.isOpen||(b.isOpen=!0,this._signal("show"),M=null),b.anchorPos=C,b.anchor=L,!0},b.show=function(C,x,L){this.tryShow(C,x,L?"bottom":void 0,!0)},b.goTo=function(C){var x=this.getRow(),L=this.session.getLength()-1;switch(C){case"up":x=x<=0?L:x-1;break;case"down":x=x>=L?-1:x+1;break;case"start":x=0;break;case"end":x=L}this.setRow(x)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return w}();r.importCssString(`
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #CAD6FA;
z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid #abbffe;
margin-top: -1px;
background: rgba(233,233,253,0.4);
position: absolute;
z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid rgba(109, 150, 13, 0.8);
background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
opacity: 0.5;
margin-left: 0.9em;
}
.ace_completion-message {
margin-left: 0.9em;
color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight{
color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
color: #93ca12;
}
.ace_editor.ace_autocomplete {
width: 300px;
z-index: 200000;
border: 1px lightgray solid;
position: fixed;
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
line-height: 1.4;
background: #fefefe;
color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
border: 1px #484747 solid;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
line-height: 1.4;
background: #25282c;
color: #c1c1c1;
}
.ace_autocomplete .ace_text-layer {
width: calc(100% - 8px);
}
.ace_autocomplete .ace_line {
display: flex;
align-items: center;
}
.ace_autocomplete .ace_line > * {
min-width: 0;
flex: 0 0 auto;
}
.ace_autocomplete .ace_line .ace_ {
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
}
.ace_autocomplete .ace_completion-spacer {
flex: 1;
}
.ace_autocomplete.ace_loading:after {
content: "";
position: absolute;
top: 0px;
height: 2px;
width: 8%;
background: blue;
z-index: 100;
animation: ace_progress 3s infinite linear;
animation-delay: 300ms;
transform: translateX(-100%) scaleX(1);
}
@keyframes ace_progress {
0% { transform: translateX(-100%) scaleX(1) }
50% { transform: translateX(625%) scaleX(2) }
100% { transform: translateX(1500%) scaleX(3) }
}
@media (prefers-reduced-motion) {
.ace_autocomplete.ace_loading:after {
transform: translateX(625%) scaleX(2);
animation: none;
}
}
`,"autocompletion.css",!1),p.AcePopup=v,p.$singleLineEditor=$,p.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,p,g){var m=function(){function s(d){this.editor=d,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return s.prototype.setScreenReaderContent=function(d){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var f=this.popup.getRow(),r=this.popup.renderer.$textLayer,o=r.element.childNodes[f-r.config.firstRow];if(o){for(var t="doc-tooltip ",l=0;l<this._lines.length;l++)t+="ace-inline-screenreader-line-".concat(l," ");o.setAttribute("aria-describedby",t)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=d.split(/\r\n|\r|\n/);var i=this.createCodeBlock();this.screenReaderDiv.appendChild(i)},s.prototype.destroy=function(){this.screenReaderDiv.remove()},s.prototype.createCodeBlock=function(){var d=document.createElement("pre");d.setAttribute("id","ace-inline-screenreader");for(var i=0;i<this._lines.length;i++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(i));var r=document.createTextNode(this._lines[i]);f.appendChild(r),d.appendChild(f)}return d},s}();p.AceInlineScreenReader=m}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,p,g){var m=e("../snippets").snippetManager,s=e("./inline_screenreader").AceInlineScreenReader,d=function(){function i(){this.editor=null}return i.prototype.show=function(f,r,o){if(o=o||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!r)return!1;this.inlineScreenReader||(this.inlineScreenReader=new s(f));var t=r.snippet?m.getDisplayTextForSnippet(f,r.snippet):r.value;return r.hideInlinePreview||!t||!t.startsWith(o)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(t),t=t.slice(o.length),t===""?f.removeGhostText():f.setGhostText(t),!0)},i.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},i.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},i.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},i}();p.AceInline=d}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,p,g){p.parForEach=function(s,d,i){var f=0,r=s.length;r===0&&i();for(var o=0;o<r;o++)d(s[o],function(t,l){f++,f===r&&i(t,l)})};var m=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;p.retrievePrecedingIdentifier=function(s,d,i){i=i||m;for(var f=[],r=d-1;r>=0&&i.test(s[r]);r--)f.push(s[r]);return f.reverse().join("")},p.retrieveFollowingIdentifier=function(s,d,i){i=i||m;for(var f=[],r=d;r<s.length&&i.test(s[r]);r++)f.push(s[r]);return f},p.getCompletionPrefix=function(s){var d=s.getCursorPosition(),i=s.session.getLine(d.row),f;return s.completers.forEach(function(r){r.identifierRegexps&&r.identifierRegexps.forEach(function(o){!f&&o&&(f=this.retrievePrecedingIdentifier(i,d.column,o))}.bind(this))}.bind(this)),f||this.retrievePrecedingIdentifier(i,d.column)},p.triggerAutocomplete=function(s,d){var d=d==null?s.session.getPrecedingCharacter():d;return s.completers.some(function(i){if(i.triggerCharacters&&Array.isArray(i.triggerCharacters))return i.triggerCharacters.includes(d)})}}),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","ace/lib/scroll"],function(e,p,g){var m=e("./keyboard/hash_handler").HashHandler,s=e("./autocomplete/popup").AcePopup,d=e("./autocomplete/inline").AceInline,i=e("./autocomplete/p
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<title>VForm Demo</title>
<link rel="stylesheet" href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-plus/2.0.4/index.min.css" />
<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform3/render.style.css?t=20220129">
<style type="text/css">
</style>
</head>
<body>
<div id="app">
<v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">
</v-form-render>
<el-button type="primary" @click="submitForm">Submit</el-button>
</div>
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/3.2.30/vue.global.min.js"><\/script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-plus/2.0.4/index.full.min.js"><\/script>
<script src="https://ks3-cn-beijing.ksyun.com/vform3/render.umd.js?t=20220129"><\/script>
<script>
const { createApp } = Vue;
const app = createApp({
data() {
return {
formJson: ${e},
formData: {},
optionData: {}
}
},
methods: {
submitForm() {
this.$refs.vFormRef.getFormData().then( (formData) => {
// Form Validation OK
alert( JSON.stringify(formData) )
}).catch( function(error) {
// Form Validation Failed
alert(error)
})
}
}
});
app.use(ElementPlus)
app.use(VFormRender)
app.mount("#app");
<\/script>
</body>
</html>`:`<template>
<div>
<v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">
</v-form-render>
<el-button type="primary" @click="submitForm">Submit</el-button>
</div>
</template>
<script setup>
import { ref, reactive } from 'vue'
import { ElMessage } from 'element-plus'
const formJson = reactive(${e})
const formData = reactive({})
const optionData = reactive({})
const vFormRef = ref(null)
const submitForm = () => {
vFormRef.value.getFormData().then(formData => {
// Form Validation OK
alert( JSON.stringify(formData) )
}).catch(error => {
// Form Validation failed
ElMessage.error(error)
})
}
<\/script>`};function buildDefaultValueListFn(n,c,e){return function(p){const g=p.options,m=g.defaultValue;isNotNull(m)?e.push(`${g.name}: ${JSON.stringify(m)},`):e.push(`${g.name}: null,`)}}function buildRulesListFn(formConfig,widgetList,resultList){return function(fieldWidget){const fop=fieldWidget.options;let fieldRules=[];if(fop.required&&fieldRules.push(`{
required: true,
message: '${translate("render.hint.fieldRequired")}',
}`),fop.validation){let vldName=fop.validation;FormValidators[vldName]?fieldRules.push(`{
pattern: ${eval(getRegExp(vldName))},
trigger: ['blur', 'change'],
message: '${fop.validationHint}'
}`):fieldRules.push(`{
pattern: '${eval(vldName)}',
trigger: ['blur', 'change'],
message: '${fop.validationHint}'
}`)}fieldRules.length>0&&resultList.push(`${fop.name}: [${fieldRules.join(",")}],`)}}function buildFieldOptionsFn(n,c,e){return function(p){const g=p.options,m=p.type;(m==="radio"||m==="checkbox"||m==="select"||m==="cascader")&&e.push(`${g.name}Options: ${JSON.stringify(g.optionItems)},`)}}function buildUploadDataFn(n,c,e){return function(p){const g=p.options,m=p.type;(m==="picture-upload"||m==="file-upload")&&(e.push(`${g.name}FileList: [],`),e.push(`${g.name}UploadHeaders: {},`),e.push(`${g.name}UploadData: {},`))}}function buildActiveTabs(n,c){let e=[];return traverseContainerWidgets(c,function(g){const m=g.options;g.type==="tab"&&g.tabs.length>0&&e.push(`'${m.name}ActiveTab': '${g.tabs[0].options.name}',`)}),e}const genVue2JS=function(n,c){let e=[],p=[],g=[],m=[];traverseFieldWidgets(c,i=>{buildDefaultValueListFn(n,c,e)(i),buildRulesListFn(n,c,p)(i),buildFieldOptionsFn(n,c,g)(i),buildUploadDataFn(n,c,m)(i)});const s=buildActiveTabs(n,c);return` export default {
components: {},
props: {},
data() {
return {
${n.modelName}: {
${e.join(`
`)}
},
${n.rulesName}: {
${p.join(`
`)}
},
${s.join(`
`)}
${g.join(`
`)}
${m.join(`
`)}
}
},
computed: {},
watch: {},
created() {
},
mounted() {
},
methods: {
submitForm() {
this.$refs['vForm'].validate(valid => {
if (!valid) return
//TODO: \u63D0\u4EA4\u8868\u5355
})
},
resetForm() {
this.$refs['vForm'].resetFields()
}
}
}`};let beautifierObj;const beautifierOpts={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function loadBeautifier(n){if(beautifierObj){n(beautifierObj);return}loadRemoteScript(BEAUTIFIER_PATH,()=>{beautifierObj=beautifier,n(beautifierObj)})}const genVue3JS=function(n,c){let e=[],p=[],g=[],m=[];traverseFieldWidgets(c,i=>{buildDefaultValueListFn(n,c,e)(i),buildRulesListFn(n,c,p)(i),buildFieldOptionsFn(n,c,g)(i),buildUploadDataFn(n,c,m)(i)});const s=buildActiveTabs(n,c);return` import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'
export default defineComponent({
components: {},
props: {},
setup() {
const state = reactive({
${n.modelName}: {
${e.join(`
`)}
},
${n.rulesName}: {
${p.join(`
`)}
},
${s.join(`
`)}
${g.join(`
`)}
${m.join(`
`)}
})
const instance = getCurrentInstance()
const submitForm = () => {
instance.proxy.$refs['vForm'].validate(valid => {
if (!valid) return
//TODO: \u63D0\u4EA4\u8868\u5355
})
}
const resetForm = () => {
instance.proxy.$refs['vForm'].resetFields()
}
return {
...toRefs(state),
submitForm,
resetForm
}
}
})`};function buildClassAttr(n,c){const e=n.options;let p=[];return!!c&&p.push(c),!!e.customClass&&e.customClass.length>0&&p.push(e.customClass.join(" ")),p.length>0?`class="${p.join(" ")}"`:""}const containerTemplates={grid:(n,c)=>`<el-row ${buildClassAttr(n)}>
${n.cols.map(g=>{const m=g.options,s=m.responsive?"":`:span="${m.span}"`,d=m.responsive?`:md="${m.md}"`:"",i=m.responsive?`:sm="${m.sm}"`:"",f=m.responsive?`:xs="${m.xs}"`:"",r=m.offset?`:offset="${m.offset}"`:"",o=m.push?`:push="${m.push}"`:"",t=m.pull?`:pull="${m.pull}"`:"",l=buildClassAttr(g,"grid-cell");return`<el-col ${s} ${d} ${i} ${f} ${r} ${o} ${t} ${l}>
${g.widgetList.map(a=>a.category==="container"?buildContainerWidget(a,c):buildFieldWidget(a,c)).join("")}
</el-col>`}).join("")}
</el-row>`,table:(n,c)=>`<div class="table-container">
<table ${buildClassAttr(n,"table-layout")}><tbody>
${n.rows.map(g=>`<tr>${g.cols.filter(m=>!m.merged).map(m=>{const s=m.options,d=buildClassAttr(m,"table-cell"),i=!isNaN(s.colspan)&&s.colspan!==1?`colspan="${s.colspan}"`:"",f=!isNaN(s.rowspan)&&s.rowspan!==1?`rowspan="${s.rowspan}"`:"";let r=[];!!s.cellWidth&&r.push("width: "+s.cellWidth+" !important"),!!s.cellHeight&&r.push("height: "+s.cellHeight+" !important");let o=r.length>0?`style="${r.join(";")}"`:"";return`<td ${d} ${i} ${f} ${o}>${m.widgetList.map(t=>t.category==="container"?buildContainerWidget(t,c):buildFieldWidget(t,c)).join("")}
</td>`}).join("")}</tr>`).join("")}
</tbody></table>
</div>`,tab:(n,c)=>{const e=buildClassAttr(n);return`<div class="tab-container">
<el-tabs ${n.tabs&&n.tabs.length>0?`v-model="${n.options.name}ActiveTab"`:""} type="${n.displayType}" ${e}>
${n.tabs.map(m=>{const s=m.options,d=s.disabled===!0?"disabled":"";return`<el-tab-pane name="${s.name}" label="${s.label}" ${d}>
${m.widgetList.map(i=>i.category==="container"?buildContainerWidget(i,c):buildFieldWidget(i,c)).join("")}</el-tab-pane>`}).join("")}
</el-tabs>
</div>`},"sub-form":(n,c)=>{}};function buildContainerWidget(n,c){return containerTemplates[n.type]?containerTemplates[n.type](n,c):null}function getElAttrs(n,c){let e=n.options;return{vModel:`v-model="${c.modelName}.${e.name}"`,readonly:e.readonly?'readonly="true"':"",disabled:e.disabled?':disabled="true"':"",size:e.size?`size="${e.size}"`:"",type:e.type?`type="${e.type==="number"?"text":e.type}"`:"",showPassword:e.showPassword?`:show-password="${e.showPassword}"`:"",placeholder:e.placeholder?`placeholder="${e.placeholder}"`:"",rows:isNotNull(e.rows)&&!isNaN(e.rows)?`rows="${e.rows}"`:"",clearable:e.clearable?"clearable":"",minlength:isNotNull(e.minLength)&&!isNaN(e.minLength)?`:minlength="${e.minLength}"`:"",maxlength:isNotNull(e.maxLength)&&!isNaN(e.maxLength)?`:maxlength="${e.maxLength}"`:"",showWordLimit:e.showWordLimit?':show-word-limit="true"':"",prefixIcon:e.prefixIcon?`prefix-icon="${e.prefixIcon}"`:"",suffixIcon:e.suffixIcon?`suffix-icon="${e.suffixIcon}"`:"",controlsPosition:e.controlsPosition==="right"?'controls-position="right"':"",min:isNotNull(e.min)&&!isNaN(e.min)?`:min="${e.min}"`:"",max:isNotNull(e.max)&&!isNaN(e.max)?`:max="${e.max}"`:"",precision:isNotNull(e.precision)&&!isNaN(e.precision)?`:precision="${e.precision}"`:"",step:isNotNull(e.step)&&!isNaN(e.step)?`:step="${e.step}"`:"",filterable:e.filterable?"filterable":"",allowCreate:e.allowCreate?"allow-create":"",defaultFirstOption:!!e.filterable&&!!e.allowCreate?"default-first-option":"",multiple:e.multiple?"multiple":"",multipleLimit:!isNaN(e.multipleLimit)&&e.multipleLimit>0?`:multiple-limit="${e.multipleLimit}"`:"",automaticDropdown:e.automaticDropdown?"automatic-dropdown":"",remote:e.remote?"remote":"",format:e.format?`format="${e.format}"`:"",valueFormat:e.valueFormat?`value-format="${e.valueFormat}"`:"",editable:e.editable?`:editable="${e.editable}"`:"",startPlaceholder:e.startPlaceholder?`start-placeholder="${e.startPlaceholder}"`:"",endPlaceholder:e.endPlaceholder?`end-placeholder="${e.endPlaceholder}"`:"",activeText:e.activeText?`active-text="${e.activeText}"`:"",inactiveText:e.inactiveText?`inactive-text="${e.inactiveText}"`:"",activeColor:e.activeColor?`active-color="${e.activeColor}"`:"",inactiveColor:e.inactiveColor?`inactive-color="${e.inactiveColor}"`:"",switchWidth:!isNaN(e.switchWidth)&&e.switchWidth!==40?`:width="${e.switchWidth}"`:"",rateMax:!isNaN(e.max)&&e.max!==5?`:max="${e.max}"`:"",lowThreshold:!isNaN(e.lowThreshold)&&e.lowThreshold!==2?`:low-threshold="${e.lowThreshold}"`:"",highThreshold:!isNaN(e.highThreshold)&&e.highThreshold!==4?`:high-threshold="${e.highThreshold}"`:"",allowHalf:e.allowHalf?"allow-half":"",showText:e.showText?"show-text":"",showScore:e.showScore?"show-score":"",sliderMin:!isNaN(e.min)&&e.min!==0?`:min="${e.min}"`:"",sliderMax:!isNaN(e.max)&&e.max!==100?`:max="${e.max}"`:"",sliderStep:!isNaN(e.step)&&e.step!==1?`:step="${e.step}"`:"",sliderRange:e.range?"range":"",sliderVertical:e.vertical?"vertical":"",uploadAction:e.uploadURL?`action="${e.uploadURL}"`:"",withCredentials:e.withCredentials?"with-credentials":"",multipleSelect:e.multipleSelect?"multiple":"",showFileList:e.showFileList?"show-file-list":"",limit:isNaN(e.limit)?"":`:limit="${e.limit}"`,uploadTipSlotChild:e.uploadTip?`<template #tip><div class="el-upload__tip">${e.uploadTip}</div></template>`:"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:e.type?`type="${e.type}"`:"",buttonPlain:e.plain?"plain":"",buttonRound:e.round?"round":"",buttonCircle:e.circle?"circle":"",buttonIcon:e.icon?`icon="${e.icon}"`:"",contentPosition:!!e.contentPosition&&e.contentPosition!=="center"?`content-position="${e.contentPosition}"`:"",appendButtonChild:e.appendButton?`<template #append><el-button class="${e.buttonIcon}" ${e.appendButtonDisabled?"disabled":""}></el-button></template>`:""}}function buildRadioChildren(n,c){let e=n.options;const p=e.buttonStyle?"el-radio-button":"el-radio",g=e.border?"border":"",m=`style="{display: ${e.disp
:disabled="item.disabled" ${g} ${m}>{{item.label}}</${p}>`}function buildCheckboxChildren(n,c){let e=n.options;const p=e.buttonStyle?"el-checkbox-button":"el-checkbox",g=e.border?"border":"",m=`style="{display: ${e.displayStyle}}"`;return`<${p} v-for="(item, index) in ${e.name}Options" :key="index" :label="item.value"
:disabled="item.disabled" ${g} ${m}>{{item.label}}</${p}>`}function buildSelectChildren(n,c){let e=n.options;const p="el-option";return`<${p} v-for="(item, index) in ${e.name}Options" :key="index" :label="item.label"
:value="item.value" :disabled="item.disabled"></${p}>`}const elTemplates={input:(n,c)=>{const{vModel:e,readonly:p,disabled:g,size:m,type:s,showPassword:d,placeholder:i,clearable:f,minlength:r,maxlength:o,showWordLimit:t,prefixIcon:l,suffixIcon:a,appendButtonChild:u}=getElAttrs(n,c);return`<el-input ${e} ${p} ${g} ${m} ${s} ${d} ${i} ${f}
${r} ${o} ${t} ${l} ${a}>${u}</el-input>`},textarea:(n,c)=>{const{vModel:e,readonly:p,disabled:g,size:m,type:s,showPassword:d,placeholder:i,rows:f,clearable:r,minlength:o,maxlength:t,showWordLimit:l}=getElAttrs(n,c);return`<el-input type="textarea" ${e} ${p} ${g} ${m} ${s} ${d} ${i}
${f} ${r} ${o} ${t} ${l}></el-input>`},number:(n,c)=>{const{vModel:e,disabled:p,size:g,type:m,showPassword:s,placeholder:d,controlsPosition:i,min:f,max:r,precision:o,step:t}=getElAttrs(n,c);return`<el-input-number ${e} class="full-width-input" ${p} ${g} ${m} ${s}
${d} ${i} ${f} ${r} ${o} ${t}></el-input-number>`},radio:(n,c)=>{const{vModel:e,disabled:p,size:g}=getElAttrs(n,c),m=buildRadioChildren(n);return`<el-radio-group ${e} ${p} ${g}>${m}</el-radio-group>`},checkbox:(n,c)=>{const{vModel:e,disabled:p,size:g}=getElAttrs(n,c),m=buildCheckboxChildren(n);return`<el-checkbox-group ${e} ${p} ${g}>${m}</el-checkbox-group>`},select:(n,c)=>{const{vModel:e,disabled:p,size:g,clearable:m,filterable:s,allowCreate:d,defaultFirstOption:i,automaticDropdown:f,multiple:r,multipleLimit:o,remote:t,placeholder:l}=getElAttrs(n,c),a=buildSelectChildren(n);return`<el-select ${e} class="full-width-input" ${p} ${g} ${m} ${s}
${d} ${i} ${f} ${r} ${o} ${l}
${t}>${a}</el-select>`},time:(n,c)=>{const{vModel:e,readonly:p,disabled:g,size:m,placeholder:s,clearable:d,format:i,editable:f}=getElAttrs(n,c);return`<el-time-picker ${e} class="full-width-input" ${p} ${g} ${m} ${i}
value-format="HH:mm:ss" ${s} ${d} ${f}></el-time-picker>`},"time-range":(n,c)=>{const{vModel:e,readonly:p,disabled:g,size:m,startPlaceholder:s,endPlaceholder:d,clearable:i,format:f,editable:r}=getElAttrs(n,c);return`<el-time-picker is-range ${e} class="full-width-input" ${p} ${g} ${m} ${f}
value-format="HH:mm:ss" ${s} ${d} ${i} ${r}></el-time-picker>`},date:(n,c)=>{const{vModel:e,readonly:p,disabled:g,size:m,type:s,placeholder:d,clearable:i,format:f,valueFormat:r,editable:o}=getElAttrs(n,c);return`<el-date-picker ${e} ${s} class="full-width-input" ${p} ${g} ${m} ${f}
${r} ${d} ${i} ${o}></el-date-picker>`},"date-range":(n,c)=>{const{vModel:e,readonly:p,disabled:g,size:m,type:s,startPlaceholder:d,endPlaceholder:i,clearable:f,format:r,valueFormat:o,editable:t}=getElAttrs(n,c);return`<el-date-picker is-range ${e} ${s} class="full-width-input" ${p} ${g} ${m} ${r}
${o} ${d} ${i} ${f} ${t}></el-date-picker>`},switch:(n,c)=>{const{vModel:e,disabled:p,activeText:g,inactiveText:m,activeColor:s,inactiveColor:d,switchWidth:i}=getElAttrs(n,c);return`<el-switch ${e} ${p} ${g} ${m} ${s} ${d}
${i}></el-switch>`},rate:(n,c)=>{const{vModel:e,disabled:p,rateMax:g,lowThreshold:m,highThreshold:s,allowHalf:d,showText:i,showScore:f}=getElAttrs(n,c);return`<el-rate ${e} ${p} ${g} ${m} ${s} ${d}
${i} ${f}></el-rate>`},color:(n,c)=>{const{vModel:e,disabled:p,size:g}=getElAttrs(n,c);return`<el-color-picker ${e} ${p} ${g}></el-color-picker>`},slider:(n,c)=>{const{vModel:e,disabled:p,sliderMin:g,sliderMax:m,sliderStep:s,sliderRange:d,sliderVertical:i}=getElAttrs(n,c);return`<el-slider ${e} ${p} ${g} ${m} ${s} ${d}
${i}></el-slider>`},"picture-upload":(n,c)=>{const{vModel:e,disabled:p,uploadAction:g,withCredentials:m,multipleSelect:s,showFileList:d,limit:i,uploadTipSlotChild:f,pictureUploadIconChild:r}=getElAttrs(n,c);let o=n.options;return`<el-upload :file-list="${o.name}FileList" :headers="${o.name}UploadHeaders" :data="${o.name}UploadData"
${p} ${g} list-type="picture-card" ${m} ${s} ${d}
${i}>${f} ${r}</el-upload>`},"file-upload":(n,c)=>{const{vModel:e,disabled:p,uploadAction:g,withCredentials:m,multipleSelect:s,showFileList:d,limit:i,uploadTipSlotChild:f,fileUploadIconChild:r}=getElAttrs(n,c);let o=n.options;return`<el-upload :file-list="${o.name}FileList" :headers="${o.name}UploadHeaders" :data="${o.name}UploadData"
${p} ${g} list-type="picture-card" ${m} ${s} ${d}
${i}>${f} ${r}</el-upload>`},"rich-editor":(n,c)=>{const{vModel:e,disabled:p,placeholder:g}=getElAttrs(n,c);return`<vue-editor ${e} ${p} ${g}></vue-editor>`},cascader:(n,c)=>{const{vModel:e,disabled:p,size:g,clearable:m,filterable:s,placeholder:d}=getElAttrs(n,c),f=`:options="${n.options.name}Options"`;return`<el-cascader ${e} class="full-width-input" ${f} ${p} ${g} ${m}
${s} ${d}></el-cascader>`},"static-text":(n,c)=>`<div>${n.options.textContent}</div>`,"html-text":(n,c)=>`<div v-html="${n.options.htmlContent}"></div>`,button:(n,c)=>{const{buttonType:e,buttonPlain:p,buttonRound:g,buttonCircle:m,buttonIcon:s,disabled:d}=getElAttrs(n,c);return`<el-button ${e} ${p} ${g} ${m} ${s}
${d}>${n.options.label}</el-button>`},divider:(n,c)=>{const{contentPosition:e}=getElAttrs(n,c);return`<el-divider direction="horizontal" ${e}></el-divider>`}};function buildFieldWidget(n,c){let e=n.options;const p=e.labelHidden?"":e.label,g=e.labelHidden?'label-width="0"':e.labelWidth?`label-width="${e.labelWidth}px"`:"",m=e.labelTooltip?`title="${e.labelTooltip}"`:"",s=`prop="${e.name}"`;let d=[];!!e.required&&d.push("required"),!!e.customClass&&e.customClass.length>0&&d.push(e.customClass.join(" ")),e.labelAlign?e.labelAlign!=="label-left-align"&&d.push(e.labelAlign):n.formItemFlag&&c.labelAlign!=="label-left-align"&&d.push(c.labelAlign),n.formItemFlag||d.push("static-content-item");const i=d.length>0?`class="${d.join(" ")}"`:"";let f=`<template #label><span class="custom-label">${e.labelIconPosition==="front"?e.labelTooltip?`<el-tooltip content="${e.labelTooltip}" effect="light"><i class="${e.labelIconClass}"></i></el-tooltip>${e.label}`:`<i class="${e.labelIconClass}"></i>${e.label}`:e.labelTooltip?`${e.label}<el-tooltip content="${e.labelTooltip}" effect="light"><i class="${e.labelIconClass}"></i></el-tooltip>`:`${e.label}<i class="${e.labelIconClass}"></i>`}
</span></template>`;!e.labelIconClass&&(f="");const r=elTemplates[n.type]?elTemplates[n.type](n,c):null,o=!!n.formItemFlag,t=e.hidden?'v-show="false"':"";return o?`<el-form-item label="${p}" ${g} ${m} ${s} ${i}>
${f}
${r}
</el-form-item>`:`<div ${i} ${t}>${r}</div>`}function genTemplate(n,c,e=!1){const p=e?"@submit.prevent":"@submit.native.prevent";let g=[];return c.forEach(s=>{s.category==="container"?g.push(buildContainerWidget(s,n)):g.push(buildFieldWidget(s,n))}),` <el-form :model="${n.modelName}" ref="${n.refName}" :rules="${n.rulesName}"
label-position="${n.labelPosition}" label-width="${n.labelWidth}px" size="${n.size||"default"}"
${p}>
${g?g.join(`
`):""}
</el-form>`}const genGlobalCSS=function(n){return` .el-input-number.full-width-input, .el-cascader.full-width-input {
width: 100% !important;
}
.el-form-item--medium {
.el-radio {
line-height: 36px !important;
}
.el-rate{
margin-top: 8px;
}
}
.el-form-item--small {
.el-radio {
line-height: 32px !important;
}
.el-rate{
margin-top: 6px;
}
}
.el-form-item--mini {
.el-radio {
line-height: 28px !important;
}
.el-rate{
margin-top: 4px;
}
}
.clear-fix:before, .clear-fix:after {
display: table;
content: "";
}
.clear-fix:after {
clear: both;
}
.float-right {
float: right;
}
${n.cssCode}`},genScopedCSS=function(n,c=!1){return` div.table-container {
table.table-layout {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
td.table-cell {
display: table-cell;
height: 36px;
border: 1px solid #e1e2e3;
}
}
}
div.tab-container {
}
.label-left-align ${c?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {
text-align: left;
}
.label-center-align ${c?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {
text-align: center;
}
.label-right-align ${c?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"} {
text-align: right;
}
.custom-label {
}
.static-content-item {
min-height: 20px;
display: flex;
align-items: center;
${c?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"} {
margin: 0;
}
}`},registerCWGenerator=function(n,c){containerTemplates[n]=c},registerFWGenerator=function(n,c){elTemplates[n]=c},genSFC=function(n,c,e,p=!1){const g=e.html(genTemplate(n,c,p),beautifierOpts.html),m=e.js(p?genVue3JS(n,c):genVue2JS(n,c),beautifierOpts.js),s=e.css(genGlobalCSS(n),beautifierOpts.css),d=e.css(genScopedCSS(n,p),beautifierOpts.css);return`<!--
Codes Generated By VForm:
https://www.vform666.com
-->
<template>
${g}
</template>
<script>
${m}
<\/script>
<style lang="scss">
${s}
</style>
<style lang="scss" scoped>
${d}
</style>`};var FileSaver_min={exports:{}};(function(n,c){(function(e,p){p()})(commonjsGlobal,function(){function e(f,r){return typeof r=="undefined"?r={autoBom:!1}:typeof r!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function p(f,r,o){var t=new XMLHttpRequest;t.open("GET",f),t.responseType="blob",t.onload=function(){i(t.response,r,o)},t.onerror=function(){console.error("could not download file")},t.send()}function g(f){var r=new XMLHttpRequest;r.open("HEAD",f,!1);try{r.send()}catch{}return 200<=r.status&&299>=r.status}function m(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(r)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,d=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!d?function(f,r,o){var t=s.URL||s.webkitURL,l=document.createElement("a");r=r||f.name||"download",l.download=r,l.rel="noopener",typeof f=="string"?(l.href=f,l.origin===location.origin?m(l):g(l.href)?p(f,r,o):m(l,l.target="_blank")):(l.href=t.createObjectURL(f),setTimeout(function(){t.revokeObjectURL(l.href)},4e4),setTimeout(function(){m(l)},0))}:"msSaveOrOpenBlob"in navigator?function(f,r,o){if(r=r||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(e(f,o),r);else if(g(f))p(f,r,o);else{var t=document.createElement("a");t.href=f,t.target="_blank",setTimeout(function(){m(t)})}}:function(f,r,o,t){if(t=t||open("","_blank"),t&&(t.document.title=t.document.body.innerText="downloading..."),typeof f=="string")return p(f,r,o);var l=f.type==="application/octet-stream",a=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&a||d)&&typeof FileReader!="undefined"){var h=new FileReader;h.onloadend=function(){var w=h.result;w=u?w:w.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=w:location=w,t=null},h.readAsDataURL(f)}else{var $=s.URL||s.webkitURL,v=$.createObjectURL(f);t?t.location=v:location.href=v,t=null,setTimeout(function(){$.revokeObjectURL(v)},4e4)}});s.saveAs=i.saveAs=i,n.exports=i})})(FileSaver_min);var index_vue_vue_type_style_index_0_scoped_true_lang$3="";const _sfc_main$2A={name:"ToolbarPanel",mixins:[i18n$1],components:{VFormRender,CodeEditor,Clipboard,SvgIcon},props:{designer:Object,globalDsv:{type:Object,default:()=>({})}},inject:["getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),toolbarWidth:460,showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}],select001:[{label:"\u8FA3\u6912",value:1},{label:"\u83E0\u841D",value:2},{label:"\u4E11\u6A58\u5B50",value:3}]}}},computed:{formJson(){return{widgetList:deepClone(this.designer.widgetList),formConfig:deepClone(this.designer.formConfig)}},undoDisabled(){return!this.designer.undoEnabled()},redoDisabled(){return!this.designer.redoEnabled()},layoutType(){return this.designer.getLayoutType()},designerDsv(){return this.globalDsv}},watch:{"designer.widgetList":{deep:!0,handler(n){}}},mounted(){let n=this.designerConfig.toolbarMaxWidth||460,c=this.designerConfig.toolbarMinWidth||300,e=window.innerWidth-260-300-320-80;this.too
`:this.optionLines+=n.value+this.separator+n.label+`
`}),this.showImportDialogFlag=!0},saveOptions(){let n=this.optionLines.split(`
`);n.length>0?(this.optionModel.optionItems=[],n.forEach(c=>{!!c&&!!c.trim()&&(c.indexOf(this.separator)!==-1?this.optionModel.optionItems.push({value:c.split(this.separator)[0],label:c.split(this.separator)[1]}):this.optionModel.optionItems.push({value:c,label:c}))})):this.optionModel.optionItems=[],this.showImportDialogFlag=!1},resetDefault(){this.selectedWidget.type==="checkbox"||this.selectedWidget.type==="select"&&this.selectedWidget.options.multiple?this.optionModel.defaultValue=[]:this.optionModel.defaultValue="",this.emitDefaultValueChange()},importCascaderOptions(){this.cascaderOptions=JSON.stringify(this.optionModel.optionItems,null," "),this.showImportCascaderDialogFlag=!0},saveCascaderOptions(){try{let n=JSON.parse(this.cascaderOptions);this.optionModel.optionItems=n,this.showImportCascaderDialogFlag=!1}catch(n){this.$message.error(this.i18nt("designer.hint.invalidOptionsData")+n.message)}}}},_hoisted_1$q={class:"option-items-pane"},_hoisted_2$h={key:2,class:"full-width-input"},_hoisted_3$f={key:3},_hoisted_4$8={key:4},_hoisted_5$5={key:5,class:""},_hoisted_6$4={class:"dialog-footer"},_hoisted_7$2={key:6,class:""},_hoisted_8$2={class:"dialog-footer"};function _sfc_render$20(n,c,e,p,g,m){const s=require$$0$1.resolveComponent("el-input"),d=require$$0$1.resolveComponent("el-button"),i=require$$0$1.resolveComponent("el-radio"),f=require$$0$1.resolveComponent("draggable"),r=require$$0$1.resolveComponent("el-radio-group"),o=require$$0$1.resolveComponent("el-checkbox"),t=require$$0$1.resolveComponent("el-checkbox-group"),l=require$$0$1.resolveComponent("el-cascader"),a=require$$0$1.resolveComponent("el-form-item"),u=require$$0$1.resolveComponent("el-dialog"),h=require$$0$1.resolveComponent("code-editor"),$=require$$0$1.resolveDirective("drag");return require$$0$1.openBlock(),require$$0$1.createElementBlock("div",_hoisted_1$q,[e.selectedWidget.type==="radio"||e.selectedWidget.type==="select"&&!e.selectedWidget.options.multiple?(require$$0$1.openBlock(),require$$0$1.createBlock(r,{key:0,modelValue:m.optionModel.defaultValue,"onUpdate:modelValue":c[0]||(c[0]=v=>m.optionModel.defaultValue=v),onChange:m.emitDefaultValueChange},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(f,require$$0$1.mergeProps({tag:"ul",list:m.optionModel.optionItems,"item-key":"id"},{group:"optionsGroup",ghostClass:"ghost",handle:".drag-option"}),{item:require$$0$1.withCtx(({element:v,index:w})=>[require$$0$1.createElementVNode("li",null,[require$$0$1.createVNode(i,{value:v.value},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(s,{modelValue:v.value,"onUpdate:modelValue":y=>v.value=y,size:"small",style:{width:"100px"}},null,8,["modelValue","onUpdate:modelValue"]),require$$0$1.createVNode(s,{modelValue:v.label,"onUpdate:modelValue":y=>v.label=y,size:"small",style:{width:"100px"}},null,8,["modelValue","onUpdate:modelValue"]),c[9]||(c[9]=require$$0$1.createElementVNode("i",{class:"iconfont icon-drag drag-option"},null,-1)),require$$0$1.createVNode(d,{circle:"",plain:"",size:"small",type:"danger",onClick:y=>m.deleteOption(v,w),icon:"el-icon-minus",class:"col-delete-button"},null,8,["onClick"])]),_:2},1032,["value"])])]),_:1},16,["list"])]),_:1},8,["modelValue","onChange"])):e.selectedWidget.type==="checkbox"||e.selectedWidget.type==="select"&&e.selectedWidget.options.multiple?(require$$0$1.openBlock(),require$$0$1.createBlock(t,{key:1,modelValue:m.optionModel.defaultValue,"onUpdate:modelValue":c[1]||(c[1]=v=>m.optionModel.defaultValue=v),onChange:m.emitDefaultValueChange},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(f,require$$0$1.mergeProps({tag:"ul",list:m.optionModel.optionItems,"item-key":"id"},{group:"optionsGroup",ghostClass:"ghost",handle:".drag-option"}),{item:require$$0$1.withCtx(({element:v,index:w})=>[require$$0$1.createElementVNode("li",null,[require$$0$1.createVNode(o,{label:v.value},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(s,{modelValue:v.value,"onUpdate:modelValue":y=>v.value=y,size:"small",style:{width:"100px"}},null,8,["modelValue","onUpdate:modelValue"]),require$$0$1.createV
/*
if ((value > 100) || (value < 0)) {
callback(new Error('error message')) //fail
} else {
callback(); //pass
}
*/`),this.showWidgetEventDialogFlag=!0},saveEventHandler(){const n=this.$refs.ecEditor.getEditorAnnotations();let c=!1;if(!!n&&n.length>0&&(n.forEach(e=>{e.type==="error"&&(c=!0)}),c)){this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning"));return}this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1}}},_hoisted_1$i={key:0,class:""},_hoisted_2$f={class:"dialog-footer"};function _sfc_render$k(n,c,e,p,g,m){const s=require$$0$1.resolveComponent("el-collapse-item"),d=require$$0$1.resolveComponent("el-collapse"),i=require$$0$1.resolveComponent("el-form"),f=require$$0$1.resolveComponent("el-scrollbar"),r=require$$0$1.resolveComponent("el-tab-pane"),o=require$$0$1.resolveComponent("form-setting"),t=require$$0$1.resolveComponent("el-tabs"),l=require$$0$1.resolveComponent("el-alert"),a=require$$0$1.resolveComponent("code-editor"),u=require$$0$1.resolveComponent("el-button"),h=require$$0$1.resolveComponent("el-dialog"),$=require$$0$1.resolveComponent("el-container"),v=require$$0$1.resolveDirective("drag");return require$$0$1.openBlock(),require$$0$1.createBlock($,{class:"panel-container"},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(t,{modelValue:g.activeTab,"onUpdate:modelValue":c[4]||(c[4]=w=>g.activeTab=w),style:{height:"100%",width:"100%",overflow:"hidden"}},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(r,{label:n.i18nt("designer.hint.widgetSetting"),name:"1"},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(f,{class:"setting-scrollbar",style:require$$0$1.normalizeStyle({height:g.scrollerHeight})},{default:require$$0$1.withCtx(()=>[!!e.designer.selectedWidget&&!e.designer.selectedWidget.category?(require$$0$1.openBlock(),require$$0$1.createBlock(i,{key:0,model:m.optionModel,size:"small","label-position":"left","label-width":"120px",class:"setting-form",onSubmit:c[1]||(c[1]=require$$0$1.withModifiers(()=>{},["prevent"]))},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(d,{modelValue:g.widgetActiveCollapseNames,"onUpdate:modelValue":c[0]||(c[0]=w=>g.widgetActiveCollapseNames=w),class:"setting-collapse"},{default:require$$0$1.withCtx(()=>[m.showCollapse(g.commonProps)?(require$$0$1.openBlock(),require$$0$1.createBlock(s,{key:0,name:"1",title:n.i18nt("designer.setting.commonSetting")},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(g.commonProps,(w,y)=>(require$$0$1.openBlock(),require$$0$1.createElementBlock(require$$0$1.Fragment,null,[m.hasPropEditor(y,w)?(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(m.getPropEditor(y,w)),{key:0,designer:e.designer,"selected-widget":e.selectedWidget,"option-model":m.optionModel},null,8,["designer","selected-widget","option-model"])):require$$0$1.createCommentVNode("",!0)],64))),256))]),_:1},8,["title"])):require$$0$1.createCommentVNode("",!0),m.showCollapse(g.advProps)?(require$$0$1.openBlock(),require$$0$1.createBlock(s,{key:1,name:"2",title:n.i18nt("designer.setting.advancedSetting")},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(g.advProps,(w,y)=>(require$$0$1.openBlock(),require$$0$1.createElementBlock(require$$0$1.Fragment,null,[m.hasPropEditor(y,w)?(require$$0$1.openBlock(),require$$0$1.createBlock(require$$0$1.resolveDynamicComponent(m.getPropEditor(y,w)),{key:0,designer:e.designer,"selected-widget":e.selectedWidget,"option-model":m.optionModel},null,8,["designer","selected-widget","option-model"])):require$$0$1.createCommentVNode("",!0)],64))),256))]),_:1},8,["title"])):require$$0$1.createCommentVNode("",!0),m.showEventCollapse()&&m.showCollapse(g.eventProps)?(require$$0$1.openBlock(),require$$0$1.createBlock(s,{key:2,name:"3",title:n.i18nt("designer.setting.eventSetting")},{default:require$$0$1.withCtx(()=>[(require$$0$1.openBlock(!0),require$$0$1.createElementBlock(require$$0$1.Fragment,null,require$$0$1.renderList(g.eventProps,(w,y)
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function ownKeys(n,c){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);c&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(n,g).enumerable})),e.push.apply(e,p)}return e}function _objectSpread2(n){for(var c=1;c<arguments.length;c++){var e=arguments[c]!=null?arguments[c]:{};c%2?ownKeys(Object(e),!0).forEach(function(p){_defineProperty(n,p,e[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys(Object(e)).forEach(function(p){Object.defineProperty(n,p,Object.getOwnPropertyDescriptor(e,p))})}return n}function _typeof(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(c){return typeof c}:_typeof=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},_typeof(n)}function _defineProperty(n,c,e){return c in n?Object.defineProperty(n,c,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[c]=e,n}function _extends(){return _extends=Object.assign||function(n){for(var c=1;c<arguments.length;c++){var e=arguments[c];for(var p in e)Object.prototype.hasOwnProperty.call(e,p)&&(n[p]=e[p])}return n},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(n,c){if(n==null)return{};var e={},p=Object.keys(n),g,m;for(m=0;m<p.length;m++)g=p[m],!(c.indexOf(g)>=0)&&(e[g]=n[g]);return e}function _objectWithoutProperties(n,c){if(n==null)return{};var e=_objectWithoutPropertiesLoose(n,c),p,g;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(n);for(g=0;g<m.length;g++)p=m[g],!(c.indexOf(p)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,p)||(e[p]=n[p]))}return e}var version="1.14.0";function userAgent(n){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(n)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(n,c,e){n.addEventListener(c,e,!IE11OrLess&&captureMode)}function off(n,c,e){n.removeEventListener(c,e,!IE11OrLess&&captureMode)}function matches(n,c){if(!!c){if(c[0]===">"&&(c=c.substring(1)),n)try{if(n.matches)return n.matches(c);if(n.msMatchesSelector)return n.msMatchesSelector(c);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(c)}catch{return!1}return!1}}function getParentOrHost(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function closest(n,c,e,p){if(n){e=e||document;do{if(c!=null&&(c[0]===">"?n.parentNode===e&&matches(n,c):matches(n,c))||p&&n===e)return n;if(n===e)break}while(n=getParentOrHost(n))}return null}var R_SPACE=/\s+/g;function toggleClass(n,c,e){if(n&&c)if(n.classList)n.classList[e?"add":"remove"](c);else{var p=(" "+n.className+" ").replace(R_SPACE," ").replace(" "+c+" "," ");n.className=(p+(e?" "+c:"")).replace(R_SPACE," ")}}function css(n,c,e){var p=n&&n.style;if(p){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),c===void 0?e:e[c];!(c in p)&&c.indexOf("webkit")===-1&&(c="-webkit-"+c),p[c]=e+(typeof e=="string"?"":"px")}}function matrix(n,c){var e="";if(typeof n=="string")e=n;else do{var p=css(n,"transform");p&&p!=="none"&&(e=p+" "+e)}while(!c&&(n=n.parentNode));var g=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return g&&new g(e)}function find(n,c,e){if(n){var p=n.getElementsByTagName(c),g=0,m=p.length;if(e)for(;g<m;g++)e(p[g],g);return p}return[]}function getWindowScrollingElement(){var n=document.scrollingElement;return n||document.documentElement}function getRect(n,c,e,p,g){if(!(!n.getBoundingClientRect&&n!==window)){var m,s,d,i,f,r,o;if(n!==window&&n.parentNode&&n!==getWindowScrollingElement()?(m=n.getBoundingClientRect(),s=m.top,d=m.left,i=m.bottom,f=m.right,r=m.height,o=m.width):(s=
`)&&(O="(?: "+O+")",A=" "+A,k++),y=new RegExp("^(?:"+O+")",M)),a&&(y=new RegExp("^"+O+"$(?!\\s)",M)),t&&(w=v.lastIndex),_=f.call(S?y:v,A),S?_?(_.input=_.input.slice(k),_[0]=_[0].slice(k),_.index=v.lastIndex,v.lastIndex+=_[0].length):v.lastIndex=0:t&&_&&(v.lastIndex=v.global?_.index+_[0].length:w),a&&_&&_.length>1&&r.call(_[0],y,function(){for(b=1;b<arguments.length-2;b++)arguments[b]===void 0&&(_[b]=void 0)}),_}),g.exports=o},"94ca":function(g,m,s){var d=s("d039"),i=/#|\.prototype\./,f=function(a,u){var h=o[r(a)];return h==l?!0:h==t?!1:typeof u=="function"?d(u):!!u},r=f.normalize=function(a){return String(a).replace(i,".").toLowerCase()},o=f.data={},t=f.NATIVE="N",l=f.POLYFILL="P";g.exports=f},"99af":function(g,m,s){var d=s("23e7"),i=s("d039"),f=s("e8b5"),r=s("861d"),o=s("7b0b"),t=s("50c4"),l=s("8418"),a=s("65f0"),u=s("1dde"),h=s("b622"),$=s("2d00"),v=h("isConcatSpreadable"),w=9007199254740991,y="Maximum allowed index exceeded",_=$>=51||!i(function(){var O=[];return O[v]=!1,O.concat()[0]!==O}),b=u("concat"),S=function(O){if(!r(O))return!1;var k=O[v];return k!==void 0?!!k:f(O)},M=!_||!b;d({target:"Array",proto:!0,forced:M},{concat:function(k){var A=o(this),T=a(A,0),E=0,C,x,L,q,N;for(C=-1,L=arguments.length;C<L;C++)if(N=C===-1?A:arguments[C],S(N)){if(q=t(N.length),E+q>w)throw TypeError(y);for(x=0;x<q;x++,E++)x in N&&l(T,E,N[x])}else{if(E>=w)throw TypeError(y);l(T,E++,N)}return T.length=E,T}})},"9bdd":function(g,m,s){var d=s("825a");g.exports=function(i,f,r,o){try{return o?f(d(r)[0],r[1]):f(r)}catch(l){var t=i.return;throw t!==void 0&&d(t.call(i)),l}}},"9bf2":function(g,m,s){var d=s("83ab"),i=s("0cfb"),f=s("825a"),r=s("c04e"),o=Object.defineProperty;m.f=d?o:function(l,a,u){if(f(l),a=r(a,!0),f(u),i)try{return o(l,a,u)}catch{}if("get"in u||"set"in u)throw TypeError("Accessors not supported");return"value"in u&&(l[a]=u.value),l}},"9ed3":function(g,m,s){var d=s("ae93").IteratorPrototype,i=s("7c73"),f=s("5c6c"),r=s("d44e"),o=s("3f8c"),t=function(){return this};g.exports=function(l,a,u){var h=a+" Iterator";return l.prototype=i(d,{next:f(1,u)}),r(l,h,!1,!0),o[h]=t,l}},"9f7f":function(g,m,s){var d=s("d039");function i(f,r){return RegExp(f,r)}m.UNSUPPORTED_Y=d(function(){var f=i("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),m.BROKEN_CARET=d(function(){var f=i("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},a2bf:function(g,m,s){var d=s("e8b5"),i=s("50c4"),f=s("0366"),r=function(o,t,l,a,u,h,$,v){for(var w=u,y=0,_=$?f($,v,3):!1,b;y<a;){if(y in l){if(b=_?_(l[y],y,t):l[y],h>0&&d(b))w=r(o,t,b,i(b.length),w,h-1)-1;else{if(w>=9007199254740991)throw TypeError("Exceed the acceptable array length");o[w]=b}w++}y++}return w};g.exports=r},a352:function(g,m){g.exports=p},a434:function(g,m,s){var d=s("23e7"),i=s("23cb"),f=s("a691"),r=s("50c4"),o=s("7b0b"),t=s("65f0"),l=s("8418"),a=s("1dde"),u=s("ae40"),h=a("splice"),$=u("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,w=Math.min,y=9007199254740991,_="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!h||!$},{splice:function(S,M){var O=o(this),k=r(O.length),A=i(S,k),T=arguments.length,E,C,x,L,q,N;if(T===0?E=C=0:T===1?(E=0,C=k-A):(E=T-2,C=w(v(f(M),0),k-A)),k+E-C>y)throw TypeError(_);for(x=t(O,C),L=0;L<C;L++)q=A+L,q in O&&l(x,L,O[q]);if(x.length=C,E<C){for(L=A;L<k-C;L++)q=L+C,N=L+E,q in O?O[N]=O[q]:delete O[N];for(L=k;L>k-C+E;L--)delete O[L-1]}else if(E>C)for(L=k-C;L>A;L--)q=L+C-1,N=L+E-1,q in O?O[N]=O[q]:delete O[N];for(L=0;L<E;L++)O[L+A]=arguments[L+2];return O.length=k-C+E,x}})},a4d3:function(g,m,s){var d=s("23e7"),i=s("da84"),f=s("d066"),r=s("c430"),o=s("83ab"),t=s("4930"),l=s("fdbf"),a=s("d039"),u=s("5135"),h=s("e8b5"),$=s("861d"),v=s("825a"),w=s("7b0b"),y=s("fc6a"),_=s("c04e"),b=s("5c6c"),S=s("7c73"),M=s("df75"),O=s("241c"),k=s("057f"),A=s("7418"),T=s("06cf"),E=s("9bf2"),C=s("d1e7"),x=s("9112"),L=s("6eeb"),q=s("5692"),N=s("f772"),F=s("d012"),I=s("90e3"),R=s("b622"),B=s("e538"),D=s("746f"),P=s("d44e"),j=s("69f3"),V=s("b727").forEach,W=N("hidden"),H="Symbol",z="prototype",U=R("toPrimitive"),Z=j.set,ne=j.getterFor(H),re=Object[z],ue=i.Symbol,fe=f("JSON","stringify"),ye=T.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(K,G){return l(K)||a(K,G)||h(K,G)||$()}function w(K){if(Array.isArray(K))return u(K)}function y(K){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(K))return Array.from(K)}function _(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(K){return w(K)||y(K)||h(K)||_()}var S=s("a352"),M=s.n(S);function O(K){K.parentElement!==null&&K.parentElement.removeChild(K)}function k(K,G,Y){var ee=Y===0?K.children[0]:K.children[Y-1].nextSibling;K.insertBefore(G,ee)}var A=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function T(K){var G=Object.create(null);return function(ee){var oe=G[ee];return oe||(G[ee]=K(ee))}}var E=/-(\w)/g,C=T(function(K){return K.replace(E,function(G,Y){return Y.toUpperCase()})});s("5db7"),s("73d9");var x=["Start","Add","Remove","Update","End"],L=["Choose","Unchoose","Sort","Filter","Clone"],q=["Move"],N=[q,x,L].flatMap(function(K){return K}).map(function(K){return"on".concat(K)}),F={manage:q,manageAndEmit:x,emit:L};function I(K){return N.indexOf(K)!==-1}s("caad"),s("2ca0");var R=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function B(K){return R.includes(K)}function D(K){return["transition-group","TransitionGroup"].includes(K)}function P(K){return["id","class","role","style"].includes(K)||K.startsWith("data-")||K.startsWith("aria-")||K.startsWith("on")}function j(K){return K.reduce(function(G,Y){var ee=v(Y,2),oe=ee[0],de=ee[1];return G[oe]=de,G},{})}function V(K){var G=K.$attrs,Y=K.componentData,ee=Y===void 0?{}:Y,oe=j(Object.entries(G).filter(function(de){var ce=v(de,2),ve=ce[0];return ce[1],P(ve)}));return t(t({},oe),ee)}function W(K){var G=K.$attrs,Y=K.callBackBuilder,ee=j(H(G));Object.entries(Y).forEach(function(de){var ce=v(de,2),ve=ce[0],xe=ce[1];F[ve].forEach(function(me){ee["on".concat(me)]=xe(me)})});var oe="[data-draggable]".concat(ee.draggable||"");return t(t({},ee),{},{draggable:oe})}function H(K){return Object.entries(K).filter(function(G){var Y=v(G,2),ee=Y[0];return Y[1],!P(ee)}).map(function(G){var Y=v(G,2),ee=Y[0],oe=Y[1];return[C(ee),oe]}).filter(function(G){var Y=v(G,2),ee=Y[0];return Y[1],!I(ee)})}s("c740");function z(K,G){if(!(K instanceof G))throw new TypeError("Cannot call a class as a function")}function U(K,G){for(var Y=0;Y<G.length;Y++){var ee=G[Y];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(K,ee.key,ee)}}function Z(K,G,Y){return G&&U(K.prototype,G),Y&&U(K,Y),K}var ne=function(G){var Y=G.el||Array.isArray(G.children)&&G.children[0].el.parentNode;return Y||console.error("\u4F7F\u7528 transition-group , \u9700\u8981\u5728slot\u4E2Dtemplate\u5185\u81F3\u5C112\u5C42html\u6807\u7B7E"),Y||{}},re=function(G,Y){return G.__draggable_context=Y},ue=function(G){return G.__draggable_context},fe=function(){function K(G){var Y=G.nodes,ee=Y.header,oe=Y.default,de=Y.footer,ce=G.root,ve=G.realList;z(this,K),this.defaultNodes=oe,this.children=[].concat(b(ee),b(oe),b(de)),this.externalComponent=ce.externalComponent,this.rootTransition=ce.transition,this.tag=ce.tag,this.realList=ve}return Z(K,[{key:"render",value:function(Y,ee){var oe=this.tag,de=this.children,ce=this._isRootComponent,ve=ce?{default:function(){return de}}:de;return Y(oe,ee,ve)}},{key:"updated",value:function(){var Y=this.defaultNodes,ee=this.realList;Y.forEach(function(oe,de){re(ne(oe),{element:ee[de],index:de})})}},{key:"getUnderlyingVm",value:function(Y){return ue(Y)}},{key:"getVmIndexFromDomIndex",value:function(Y,
<el-card ${p} ${g} ${m} ${s}>
<template #header>
<div class="clear-fix">
<span>${e.label}</span>
${e.showFold?'<i class="float-right el-icon-arrow-down"></i>':""}
</div>
</template>
${n.widgetList.map(i=>i.category==="container"?buildContainerWidget(i,c):buildFieldWidget(i,c)).join("")}
</el-card>
</div>`},alertTemplateGenerator=function(n,c){const e=n.options,p=`title="${e.title}"`,g=`type=${e.type}`,m=e.description?`description="${e.description}"`:"",s=`:closable="${e.closable}"`,d=e.closeText?`close-text="${e.closeText}"`:"",i=`:center="${e.center}"`,f=`:show-icon="${e.showIcon}"`,r=`effect="${e.effect}"`;return`<el-alert ${p} ${g} ${m} ${s} ${d} ${i}
${f} ${r}>
</el-alert>`},_sfc_main={name:"alert-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},created(){this.registerToRefList(),this.initEventHandler()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent(){this.field.options.onClose&&new Function(this.field.options.onClose).call(this)}}};function _sfc_render(n,c,e,p,g,m){const s=require$$0$1.resolveComponent("el-alert"),d=require$$0$1.resolveComponent("static-content-wrapper");return require$$0$1.openBlock(),require$$0$1.createBlock(d,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:require$$0$1.withCtx(()=>[require$$0$1.createVNode(s,{ref:"fieldEditor",title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect,onClose:m.handleCloseCustomEvent},null,8,["title","type","description","closable","center","close-text","show-icon","effect","onClose"])]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var AlertWidget=_export_sfc$1(_sfc_main,[["render",_sfc_render]]);const loadExtension=function(n){addContainerWidgetSchema(cardSchema),n.component(CardWidget.name,CardWidget),n.component(CardItem.name,CardItem),registerCPEditor(n,"card-folded","card-folded-editor",createBooleanEditor("folded","extension.setting.cardFolded")),registerCPEditor(n,"card-showFold","card-showFold-editor",createBooleanEditor("showFold","extension.setting.cardShowFold")),registerCPEditor(n,"card-cardWidth","card-cardWidth-editor",createInputTextEditor("cardWidth","extension.setting.cardWidth")),registerCPEditor(n,"card-shadow","card-shadow-editor",createSelectEditor("shadow","extension.setting.cardShadow",{optionItems:[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}]})),registerCWGenerator("card",cardTemplateGenerator),addCustomWidgetSchema(alertSchema),n.component(AlertWidget.name,AlertWidget),registerCPEditor(n,"alert-title","alert-title-editor",createInputTextEditor("title","extension.setting.alertTitle"));let e=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];n.component("alert-type-editor",createSelectEditor("type","extension.setting.alertType",{optionItems:e})),registerCPEditor(n,"alert-description","alert-description-editor",createInputTextEditor("description","extension.setting.description")),registerCPEditor(n,"alert-closable","alert-closable-editor",createBooleanEditor("closable","extension.setting.closable")),registerCPEditor(n,"alert-closeText","alert-closeText-editor",createInputTextEditor("closeText","extension.setting.closeText")),registerCPEditor(n,"alert-center","alert-center-editor",createBooleanEditor("center","extension.setting.center")),registerCPEditor(n,"alert-showIcon","alert-showIcon-editor",createBooleanEditor("showIcon","extension.setting.showIcon")),registerCPEditor(n,"alert-effect","alert-effect-editor",createRadioButtonGroupEditor("effect","extension.setting.effect",{optionItems:[{label:"light",value:"light"},{label:"dark",value:"dark"}]})),registerEPEditor(n,"alert-onClose","alert-onClose-editor",createEventHandlerEditor("onClose",[])),registerFWGenerator("alert",alertTemplateGenerator)};VFormDesigner.install=function(n){addDirective(n),loadExtension(n),n.use(ContainerWidgets),n.use(Con