openc3-cosmos-tool-bucketexplorer 5.20.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +1 -1
  3. data/tools/bucketexplorer/ArrayWidget-BTxChSds-863ae72df606eb9d4300.js +2 -0
  4. data/tools/bucketexplorer/BarColumn-Cdu3OoMa-af88bac699d2bf5bef1b.js +1 -0
  5. data/tools/bucketexplorer/BlockWidget-PmjzrkXF-9f9c01bbaf9271d0a980.js +2 -0
  6. data/tools/bucketexplorer/BucketExplorer-ca34c0d27e0ad5bbe8a3.js +1424 -0
  7. data/tools/bucketexplorer/ButtonWidget-nwDlOBJT-5cf75ff872e011709203.js +2 -0
  8. data/tools/bucketexplorer/CanvasWidget-BL8930eT-73c56bb6932393423907.js +1 -0
  9. data/tools/bucketexplorer/CanvasdotWidget-VCf1fL-G-51436946fb9a77d4dd57.js +1 -0
  10. data/tools/bucketexplorer/CanvasimageWidget-BIw7Wbf2-31ebf968e4d323592f80.js +1 -0
  11. data/tools/bucketexplorer/CanvasimagevalueWidget-CE3Dj5bH-5acc4ce3d50a733a31e2.js +1 -0
  12. data/tools/bucketexplorer/CanvaslabelWidget-DWmb356h-e90f1900a20e4f2bd1da.js +1 -0
  13. data/tools/bucketexplorer/CanvaslabelvalueWidget-CI3yYwFs-ee933e5e6bbf01384963.js +1 -0
  14. data/tools/bucketexplorer/CanvaslineWidget-COeapH3P-e0c47c90f78b81c2ed97.js +1 -0
  15. data/tools/bucketexplorer/CanvaslinevalueWidget-CI-Bbzfi-ded1bd2057803054e8b0.js +1 -0
  16. data/tools/bucketexplorer/CheckbuttonWidget-BQhggcZ2-9d6ddd18672d2db4c41e.js +1 -0
  17. data/tools/bucketexplorer/ComboboxWidget-BzsbOv54-1a2e2a279bc5c21f2337.js +1 -0
  18. data/tools/bucketexplorer/DateWidget-B5R_9rA8-154f35d2d8d10f84f6e5.js +1 -0
  19. data/tools/bucketexplorer/DetailsDialog-DLRMqetn-5a84b59bfebf680c12a9.js +1 -0
  20. data/tools/bucketexplorer/DynamicWidget-m9EliUR2-58d23243c1a102ea29b9.js +1 -0
  21. data/tools/bucketexplorer/FormatvalueWidget-DZkRJce8-2113a42e6eb77f82bc3f.js +1 -0
  22. data/tools/bucketexplorer/GraphWidget-amwxyH1r-dddfb666371baef7f67a.js +1 -0
  23. data/tools/bucketexplorer/HorizontalWidget-CirtfuL8-c98501e8a25f277378d9.js +1 -0
  24. data/tools/bucketexplorer/HorizontalboxWidget-CyTDt2nl-1e39f9bc753cd9b1d424.js +1 -0
  25. data/tools/bucketexplorer/HorizontallineWidget-BdlNB951-e5a08e757c627c83cdb1.js +1 -0
  26. data/tools/bucketexplorer/IframeWidget-DnJmCrCA-662bebc5d8e32763429e.js +1 -0
  27. data/tools/bucketexplorer/ImageLoader-CpcR6tPi-deecbf2d731f6a55d962.js +1 -0
  28. data/tools/bucketexplorer/ImageviewerWidget-DIkmb_C9-83cfbc94386769cffa1b.js +1 -0
  29. data/tools/bucketexplorer/LabelWidget-BDsypYho-87202b628eb4ed4b33dc.js +1 -0
  30. data/tools/bucketexplorer/LabelledWidget-DjturGl5-e517bfe9f699f8e9bab1.js +1 -0
  31. data/tools/bucketexplorer/LabelprogressbarWidget-RADJGLj3-47df67f537072a68eb4d.js +1 -0
  32. data/tools/bucketexplorer/LabelsparklineWidget-BlJoICxu-8f4bffddbef8903d84d5.js +1 -0
  33. data/tools/bucketexplorer/LabelvalueWidget-DVWJqnlY-9cc7dd06411c3794787f.js +1 -0
  34. data/tools/bucketexplorer/LabelvaluedescWidget-CsUP7J4U-a0b268def5593689db71.js +1 -0
  35. data/tools/bucketexplorer/LabelvaluelimitsbarWidget-Blj1QXV8-83fee6603947aaf14f19.js +1 -0
  36. data/tools/bucketexplorer/LabelvaluelimitscolumnWidget-CvCo-uCe-178065792a6108d15976.js +1 -0
  37. data/tools/bucketexplorer/LabelvaluerangebarWidget-DpcXhlfF-cc3416449084b053d162.js +1 -0
  38. data/tools/bucketexplorer/Layout-C1HoM4Kl-e9cbf20bd9c6068ced4f.js +1 -0
  39. data/tools/bucketexplorer/LedWidget-B_K2e5tq-b6e1c559e431c2d45ae6.js +1 -0
  40. data/tools/bucketexplorer/LimitsbarWidget-DXbqsi4J-7ad1787a9883a599f2b5.js +1 -0
  41. data/tools/bucketexplorer/LimitscolorWidget-Ckmuw0YX-07506fb06cb41ea914e0.js +1 -0
  42. data/tools/bucketexplorer/LimitscolumnWidget-BfY4su5U-a79b69e3dd34d14c2d40.js +1 -0
  43. data/tools/bucketexplorer/LinegraphWidget-y-Qy9P0R-6f9e7bcf28671c75f87c.js +1 -0
  44. data/tools/bucketexplorer/MatrixbycolumnsWidget-BTBColrs-eb1edc42399c66dfd587.js +1 -0
  45. data/tools/bucketexplorer/ProgressbarWidget-DpA_-vy9-578d146b82873aa2d27a.js +1 -0
  46. data/tools/bucketexplorer/RadiobuttonWidget-BO8zpgwW-bbdf6ead5d796ada3280.js +1 -0
  47. data/tools/bucketexplorer/RadiogroupWidget-Oy7V4S-V-cea900971c019aa7144b.js +1 -0
  48. data/tools/bucketexplorer/RangebarWidget-DHS7S3vI-bf731e4254c49fd394ac.js +1 -0
  49. data/tools/bucketexplorer/RollupWidget-CTk9Kjwr-11bbd5c31947eeefb8fb.js +1 -0
  50. data/tools/bucketexplorer/ScrollwindowWidget-DD0TOW6s-4f41dc900bd855d2f59e.js +1 -0
  51. data/tools/bucketexplorer/SignalWidget-CC33KMTW-24982614f04050c4644f.js +1 -0
  52. data/tools/bucketexplorer/SpacerWidget-BnJe_Hq6-36724e406716eafbb949.js +1 -0
  53. data/tools/bucketexplorer/SparklineWidget-DMvMQCPm-cad11960128f27cff475.js +1 -0
  54. data/tools/bucketexplorer/TabbookWidget-B3w0JtWe-75677686d23a47a8c01b.js +1 -0
  55. data/tools/bucketexplorer/TextboxWidget-D2f0-eol-052d034e7a0a2601f151.js +1 -0
  56. data/tools/bucketexplorer/TextfieldWidget-DXSdgqVP-4272cdce9ee740fb33b4.js +1 -0
  57. data/tools/bucketexplorer/TimeWidget-DvrRaEMz-9d5bbd6cafc9fe271080.js +1 -0
  58. data/tools/bucketexplorer/TitleWidget-DqViFQl--5f19c46f4334ae583d21.js +1 -0
  59. data/tools/bucketexplorer/VWidget-02CG-3Av-8f58af932741638eb400.js +1 -0
  60. data/tools/bucketexplorer/ValueWidget-KLYY8L8U-84e87d5eeff67ae24e4e.js +1 -0
  61. data/tools/bucketexplorer/ValuelimitsbarWidget-SR8XNZFB-bcd62458733e7b10c2b6.js +1 -0
  62. data/tools/bucketexplorer/ValuelimitscolumnWidget-xYZSp6YZ-725bf57a4a2af14363ec.js +1 -0
  63. data/tools/bucketexplorer/ValuerangebarWidget-B6M02a9d-f4b6cdaa152908947b07.js +1 -0
  64. data/tools/bucketexplorer/VerticalWidget-z6xUM-ql-38ddd70df71f79fc3160.js +1 -0
  65. data/tools/bucketexplorer/VerticalboxWidget-3a9cVsW--d44abe38176140c1cf9d.js +1 -0
  66. data/tools/bucketexplorer/Widget-C4QVI4IH-7ece2725e081ecfaee00.js +1 -0
  67. data/tools/bucketexplorer/main-60732a230373be3a696b.js +8 -0
  68. data/tools/bucketexplorer/main.js +1 -0
  69. metadata +68 -9
  70. data/tools/bucketexplorer/index.html +0 -4
  71. data/tools/bucketexplorer/js/388.js +0 -2
  72. data/tools/bucketexplorer/js/388.js.map +0 -1
  73. data/tools/bucketexplorer/js/570.js +0 -2
  74. data/tools/bucketexplorer/js/570.js.map +0 -1
  75. data/tools/bucketexplorer/js/app.js +0 -2
  76. data/tools/bucketexplorer/js/app.js.map +0 -1
@@ -0,0 +1,1424 @@
1
+ System.register(["./main-60732a230373be3a696b.js","vue","single-spa"],function(Wr,Fe){"use strict";var Ne,_u,lf,cf,ut,kt,pn,Le,De,kn,Jn,uf,hf,Kt,df,sr,vi,Bi,ku,Su,$u,ti,ho,pf;return{setters:[Dt=>{Ne=Dt._,_u=Dt.s,lf=Dt.a},Dt=>{cf=Dt.defineAsyncComponent,ut=Dt.resolveComponent,kt=Dt.openBlock,pn=Dt.createBlock,Le=Dt.withCtx,De=Dt.createVNode,kn=Dt.createElementVNode,Jn=Dt.toDisplayString,uf=Dt.normalizeProps,hf=Dt.guardReactiveProps,Kt=Dt.createTextVNode,df=Dt.Teleport,sr=Dt.createElementBlock,vi=Dt.Fragment,Bi=Dt.renderList,ku=Dt.mergeProps,Su=Dt.createSlots,$u=Dt.normalizeStyle,ti=Dt.createCommentVNode,ho=Dt.withModifiers,pf=Dt.withKeys},null],execute:function(){var Dt=document.createElement("style");Dt.textContent=`.font-size[data-v-aff2a5b2]{font-size:1rem}.small-font-size[data-v-aff2a5b2]{font-size:.8rem}.file-input[data-v-aff2a5b2]{padding-top:0;margin-top:0}
2
+ /*$vite$:1*/`,document.head.appendChild(Dt),Wr({$:zn,c:ig,d:BE,l:Vt,y:gn,z:jd});function ff(t,e){return function(){return t.apply(e,arguments)}}const{toString:a1}=Object.prototype,{getPrototypeOf:Cu}=Object,nl=(t=>e=>{const n=a1.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ur=t=>(t=t.toLowerCase(),e=>nl(e)===t),rl=t=>e=>typeof e===t,{isArray:Zo}=Array,zs=rl("undefined");function l1(t){return t!==null&&!zs(t)&&t.constructor!==null&&!zs(t.constructor)&&br(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const gf=Ur("ArrayBuffer");function c1(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&gf(t.buffer),e}const u1=rl("string"),br=rl("function"),mf=rl("number"),il=t=>t!==null&&typeof t=="object",h1=t=>t===!0||t===!1,ol=t=>{if(nl(t)!=="object")return!1;const e=Cu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},d1=Ur("Date"),p1=Ur("File"),f1=Ur("Blob"),g1=Ur("FileList"),m1=t=>il(t)&&br(t.pipe),y1=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||br(t.append)&&((e=nl(t))==="formdata"||e==="object"&&br(t.toString)&&t.toString()==="[object FormData]"))},w1=Ur("URLSearchParams"),[b1,v1,x1,_1]=["ReadableStream","Request","Response","Headers"].map(Ur),k1=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ws(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,d;if(typeof t!="object"&&(t=[t]),Zo(t))for(r=0,d=t.length;r<d;r++)e.call(null,t[r],r,t);else{const h=n?Object.getOwnPropertyNames(t):Object.keys(t),f=h.length;let w;for(r=0;r<f;r++)w=h[r],e.call(null,t[w],w,t)}}function yf(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,d;for(;r-- >0;)if(d=n[r],e===d.toLowerCase())return d;return null}const po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wf=t=>!zs(t)&&t!==po;function Au(){const{caseless:t}=wf(this)&&this||{},e={},n=(r,d)=>{const h=t&&yf(e,d)||d;ol(e[h])&&ol(r)?e[h]=Au(e[h],r):ol(r)?e[h]=Au({},r):Zo(r)?e[h]=r.slice():e[h]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&Ws(arguments[r],n);return e}const S1=(t,e,n,{allOwnKeys:r}={})=>(Ws(e,(d,h)=>{n&&br(d)?t[h]=ff(d,n):t[h]=d},{allOwnKeys:r}),t),$1=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),C1=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},A1=(t,e,n,r)=>{let d,h,f;const w={};if(e=e||{},t==null)return e;do{for(d=Object.getOwnPropertyNames(t),h=d.length;h-- >0;)f=d[h],(!r||r(f,t,e))&&!w[f]&&(e[f]=t[f],w[f]=!0);t=n!==!1&&Cu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},T1=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},M1=t=>{if(!t)return null;if(Zo(t))return t;let e=t.length;if(!mf(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},E1=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Cu(Uint8Array)),R1=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const d=r.value;e.call(t,d[0],d[1])}},L1=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},O1=Ur("HTMLFormElement"),D1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),bf=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),I1=Ur("RegExp"),vf=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ws(n,(d,h)=>{let f;(f=e(d,h,t))!==!1&&(r[h]=f||d)}),Object.defineProperties(t,r)},N1=t=>{vf(t,(e,n)=>{if(br(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(br(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},F1=(t,e)=>{const n={},r=d=>{d.forEach(h=>{n[h]=!0})};return Zo(t)?r(t):r(String(t).split(e)),n},P1=()=>{},B1=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Tu="abcdefghijklmnopqrstuvwxyz",xf="0123456789",_f={DIGIT:xf,ALPHA:Tu,ALPHA_DIGIT:Tu+Tu.toUpperCase()+xf},j1=(t=16,e=_f.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function H1(t){return!!(t&&br(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const z1=t=>{const e=new Array(10),n=(r,d)=>{if(il(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const h=Zo(r)?[]:{};return Ws(r,(f,w)=>{const p=n(f,d+1);!zs(p)&&(h[w]=p)}),e[d]=void 0,h}}return r};return n(t,0)},W1=Ur("AsyncFunction"),U1=t=>t&&(il(t)||br(t))&&br(t.then)&&br(t.catch),kf=((t,e)=>t?setImmediate:e?((n,r)=>(po.addEventListener("message",({source:d,data:h})=>{d===po&&h===n&&r.length&&r.shift()()},!1),d=>{r.push(d),po.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",br(po.postMessage)),q1=typeof queueMicrotask<"u"?queueMicrotask.bind(po):typeof process<"u"&&process.nextTick||kf,ue={isArray:Zo,isArrayBuffer:gf,isBuffer:l1,isFormData:y1,isArrayBufferView:c1,isString:u1,isNumber:mf,isBoolean:h1,isObject:il,isPlainObject:ol,isReadableStream:b1,isRequest:v1,isResponse:x1,isHeaders:_1,isUndefined:zs,isDate:d1,isFile:p1,isBlob:f1,isRegExp:I1,isFunction:br,isStream:m1,isURLSearchParams:w1,isTypedArray:E1,isFileList:g1,forEach:Ws,merge:Au,extend:S1,trim:k1,stripBOM:$1,inherits:C1,toFlatObject:A1,kindOf:nl,kindOfTest:Ur,endsWith:T1,toArray:M1,forEachEntry:R1,matchAll:L1,isHTMLForm:O1,hasOwnProperty:bf,hasOwnProp:bf,reduceDescriptors:vf,freezeMethods:N1,toObjectSet:F1,toCamelCase:D1,noop:P1,toFiniteNumber:B1,findKey:yf,global:po,isContextDefined:wf,ALPHABET:_f,generateString:j1,isSpecCompliantForm:H1,toJSONObject:z1,isAsyncFn:W1,isThenable:U1,setImmediate:kf,asap:q1};function tt(t,e,n,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}ue.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const Sf=tt.prototype,$f={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{$f[t]={value:t}}),Object.defineProperties(tt,$f),Object.defineProperty(Sf,"isAxiosError",{value:!0}),tt.from=(t,e,n,r,d,h)=>{const f=Object.create(Sf);return ue.toFlatObject(t,f,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),tt.call(f,t.message,e,n,r,d),f.cause=t,f.name=t.name,h&&Object.assign(f,h),f};const V1=null;function Mu(t){return ue.isPlainObject(t)||ue.isArray(t)}function Cf(t){return ue.endsWith(t,"[]")?t.slice(0,-2):t}function Af(t,e,n){return t?t.concat(e).map(function(r,d){return r=Cf(r),!n&&d?"["+r+"]":r}).join(n?".":""):e}function G1(t){return ue.isArray(t)&&!t.some(Mu)}const Y1=ue.toFlatObject(ue,{},null,function(t){return/^is[A-Z]/.test(t)});function sl(t,e,n){if(!ue.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=ue.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,o){return!ue.isUndefined(o[u])});const r=n.metaTokens,d=n.visitor||g,h=n.dots,f=n.indexes,w=(n.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(e);if(!ue.isFunction(d))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(ue.isDate(u))return u.toISOString();if(!w&&ue.isBlob(u))throw new tt("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(u)||ue.isTypedArray(u)?w&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function g(u,o,c){let m=u;if(u&&!c&&typeof u=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),u=JSON.stringify(u);else if(ue.isArray(u)&&G1(u)||(ue.isFileList(u)||ue.endsWith(o,"[]"))&&(m=ue.toArray(u)))return o=Cf(o),m.forEach(function(b,x){!(ue.isUndefined(b)||b===null)&&e.append(f===!0?Af([o],x,h):f===null?o:o+"[]",p(b))}),!1}return Mu(u)?!0:(e.append(Af(c,o,h),p(u)),!1)}const s=[],l=Object.assign(Y1,{defaultVisitor:g,convertValue:p,isVisitable:Mu});function a(u,o){if(!ue.isUndefined(u)){if(s.indexOf(u)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(u),ue.forEach(u,function(c,m){(!(ue.isUndefined(c)||c===null)&&d.call(e,c,ue.isString(m)?m.trim():m,o,l))===!0&&a(c,o?o.concat(m):[m])}),s.pop()}}if(!ue.isObject(t))throw new TypeError("data must be an object");return a(t),e}function Tf(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eu(t,e){this._pairs=[],t&&sl(t,this,e)}const Mf=Eu.prototype;Mf.append=function(t,e){this._pairs.push([t,e])},Mf.toString=function(t){const e=t?function(n){return t.call(this,n,Tf)}:Tf;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function K1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ef(t,e,n){if(!e)return t;const r=n&&n.encode||K1;ue.isFunction(n)&&(n={serialize:n});const d=n&&n.serialize;let h;if(d?h=d(e,n):h=ue.isURLSearchParams(e)?e.toString():new Eu(e,n).toString(r),h){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+h}return t}let Rf=class{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ue.forEach(this.handlers,function(n){n!==null&&e(n)})}};const Lf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q1=typeof URLSearchParams<"u"?URLSearchParams:Eu,Z1=typeof FormData<"u"?FormData:null,J1=typeof Blob<"u"?Blob:null,X1={isBrowser:!0,classes:{URLSearchParams:Q1,FormData:Z1,Blob:J1},protocols:["http","https","file","blob","url","data"]},Ru=typeof window<"u"&&typeof document<"u",Lu=typeof navigator=="object"&&navigator||void 0,ex=Ru&&(!Lu||["ReactNative","NativeScript","NS"].indexOf(Lu.product)<0),tx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nx=Ru&&window.location.href||"http://localhost",rx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ru,hasStandardBrowserEnv:ex,hasStandardBrowserWebWorkerEnv:tx,navigator:Lu,origin:nx},Symbol.toStringTag,{value:"Module"})),Bn={...rx,...X1};function ix(t,e){return sl(t,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,d,h){return Bn.isNode&&ue.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function ox(t){return ue.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sx(t){const e={},n=Object.keys(t);let r;const d=n.length;let h;for(r=0;r<d;r++)h=n[r],e[h]=t[h];return e}function Of(t){function e(n,r,d,h){let f=n[h++];if(f==="__proto__")return!0;const w=Number.isFinite(+f),p=h>=n.length;return f=!f&&ue.isArray(d)?d.length:f,p?(ue.hasOwnProp(d,f)?d[f]=[d[f],r]:d[f]=r,!w):((!d[f]||!ue.isObject(d[f]))&&(d[f]=[]),e(n,r,d[f],h)&&ue.isArray(d[f])&&(d[f]=sx(d[f])),!w)}if(ue.isFormData(t)&&ue.isFunction(t.entries)){const n={};return ue.forEachEntry(t,(r,d)=>{e(ox(r),d,n,0)}),n}return null}function ax(t,e,n){if(ue.isString(t))try{return(e||JSON.parse)(t),ue.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Us={transitional:Lf,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,d=ue.isObject(t);if(d&&ue.isHTMLForm(t)&&(t=new FormData(t)),ue.isFormData(t))return r?JSON.stringify(Of(t)):t;if(ue.isArrayBuffer(t)||ue.isBuffer(t)||ue.isStream(t)||ue.isFile(t)||ue.isBlob(t)||ue.isReadableStream(t))return t;if(ue.isArrayBufferView(t))return t.buffer;if(ue.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let h;if(d){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ix(t,this.formSerializer).toString();if((h=ue.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return sl(h?{"files[]":t}:t,f&&new f,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),ax(t)):t}],transformResponse:[function(t){const e=this.transitional||Us.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(t)||ue.isReadableStream(t))return t;if(t&&ue.isString(t)&&(n&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(h){if(d)throw h.name==="SyntaxError"?tt.from(h,tt.ERR_BAD_RESPONSE,this,null,this.response):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],t=>{Us.headers[t]={}});const lx=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cx=t=>{const e={};let n,r,d;return t&&t.split(`
3
+ `).forEach(function(h){d=h.indexOf(":"),n=h.substring(0,d).trim().toLowerCase(),r=h.substring(d+1).trim(),!(!n||e[n]&&lx[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Df=Symbol("internals");function qs(t){return t&&String(t).trim().toLowerCase()}function al(t){return t===!1||t==null?t:ue.isArray(t)?t.map(al):String(t)}function ux(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const hx=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ou(t,e,n,r,d){if(ue.isFunction(r))return r.call(this,e,n);if(d&&(e=n),!!ue.isString(e)){if(ue.isString(r))return e.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(e)}}function dx(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function px(t,e){const n=ue.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(d,h,f){return this[r].call(this,e,d,h,f)},configurable:!0})})}let ar=class{constructor(e){e&&this.set(e)}set(e,n,r){const d=this;function h(w,p,g){const s=qs(p);if(!s)throw new Error("header name must be a non-empty string");const l=ue.findKey(d,s);(!l||d[l]===void 0||g===!0||g===void 0&&d[l]!==!1)&&(d[l||p]=al(w))}const f=(w,p)=>ue.forEach(w,(g,s)=>h(g,s,p));if(ue.isPlainObject(e)||e instanceof this.constructor)f(e,n);else if(ue.isString(e)&&(e=e.trim())&&!hx(e))f(cx(e),n);else if(ue.isHeaders(e))for(const[w,p]of e.entries())h(p,w,r);else e!=null&&h(n,e,r);return this}get(e,n){if(e=qs(e),e){const r=ue.findKey(this,e);if(r){const d=this[r];if(!n)return d;if(n===!0)return ux(d);if(ue.isFunction(n))return n.call(this,d,r);if(ue.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=qs(e),e){const r=ue.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ou(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let d=!1;function h(f){if(f=qs(f),f){const w=ue.findKey(r,f);w&&(!n||Ou(r,r[w],w,n))&&(delete r[w],d=!0)}}return ue.isArray(e)?e.forEach(h):h(e),d}clear(e){const n=Object.keys(this);let r=n.length,d=!1;for(;r--;){const h=n[r];(!e||Ou(this,this[h],h,e,!0))&&(delete this[h],d=!0)}return d}normalize(e){const n=this,r={};return ue.forEach(this,(d,h)=>{const f=ue.findKey(r,h);if(f){n[f]=al(d),delete n[h];return}const w=e?dx(h):String(h).trim();w!==h&&delete n[h],n[w]=al(d),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return ue.forEach(this,(r,d)=>{r!=null&&r!==!1&&(n[d]=e&&ue.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
4
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(d=>r.set(d)),r}static accessor(e){const n=(this[Df]=this[Df]={accessors:{}}).accessors,r=this.prototype;function d(h){const f=qs(h);n[f]||(px(r,h),n[f]=!0)}return ue.isArray(e)?e.forEach(d):d(e),this}};ar.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(ar.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),ue.freezeMethods(ar);function Du(t,e){const n=this||Us,r=e||n,d=ar.from(r.headers);let h=r.data;return ue.forEach(t,function(f){h=f.call(n,h,d.normalize(),e?e.status:void 0)}),d.normalize(),h}function If(t){return!!(t&&t.__CANCEL__)}function Jo(t,e,n){tt.call(this,t??"canceled",tt.ERR_CANCELED,e,n),this.name="CanceledError"}ue.inherits(Jo,tt,{__CANCEL__:!0});function Nf(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fx(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function gx(t,e){t=t||10;const n=new Array(t),r=new Array(t);let d=0,h=0,f;return e=e!==void 0?e:1e3,function(w){const p=Date.now(),g=r[h];f||(f=p),n[d]=w,r[d]=p;let s=h,l=0;for(;s!==d;)l+=n[s++],s=s%t;if(d=(d+1)%t,d===h&&(h=(h+1)%t),p-f<e)return;const a=g&&p-g;return a?Math.round(l*1e3/a):void 0}}function mx(t,e){let n=0,r=1e3/e,d,h;const f=(w,p=Date.now())=>{n=p,d=null,h&&(clearTimeout(h),h=null),t.apply(null,w)};return[(...w)=>{const p=Date.now(),g=p-n;g>=r?f(w,p):(d=w,h||(h=setTimeout(()=>{h=null,f(d)},r-g)))},()=>d&&f(d)]}const ll=(t,e,n=3)=>{let r=0;const d=gx(50,250);return mx(h=>{const f=h.loaded,w=h.lengthComputable?h.total:void 0,p=f-r,g=d(p),s=f<=w;r=f;const l={loaded:f,total:w,progress:w?f/w:void 0,bytes:p,rate:g||void 0,estimated:g&&w&&s?(w-f)/g:void 0,event:h,lengthComputable:w!=null,[e?"download":"upload"]:!0};t(l)},n)},Ff=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Pf=t=>(...e)=>ue.asap(()=>t(...e)),yx=Bn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Bn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Bn.origin),Bn.navigator&&/(msie|trident)/i.test(Bn.navigator.userAgent)):()=>!0,wx=Bn.hasStandardBrowserEnv?{write(t,e,n,r,d,h){const f=[t+"="+encodeURIComponent(e)];ue.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),ue.isString(r)&&f.push("path="+r),ue.isString(d)&&f.push("domain="+d),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bx(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function vx(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bf(t,e){return t&&!bx(e)?vx(t,e):e}const jf=t=>t instanceof ar?{...t}:t;function fo(t,e){e=e||{};const n={};function r(g,s,l,a){return ue.isPlainObject(g)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},g,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function d(g,s,l,a){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g,l,a)}else return r(g,s,l,a)}function h(g,s){if(!ue.isUndefined(s))return r(void 0,s)}function f(g,s){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function w(g,s,l){if(l in e)return r(g,s);if(l in t)return r(void 0,g)}const p={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:w,headers:(g,s,l)=>d(jf(g),jf(s),l,!0)};return ue.forEach(Object.keys(Object.assign({},t,e)),function(g){const s=p[g]||d,l=s(t[g],e[g],g);ue.isUndefined(l)&&s!==w||(n[g]=l)}),n}const Hf=t=>{const e=fo({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:h,headers:f,auth:w}=e;e.headers=f=ar.from(f),e.url=Ef(Bf(e.baseURL,e.url),t.params,t.paramsSerializer),w&&f.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let p;if(ue.isFormData(n)){if(Bn.hasStandardBrowserEnv||Bn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((p=f.getContentType())!==!1){const[g,...s]=p?p.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Bn.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(e)),r||r!==!1&&yx(e.url))){const g=d&&h&&wx.read(h);g&&f.set(d,g)}return e},xx=typeof XMLHttpRequest<"u",_x=xx&&function(t){return new Promise(function(e,n){const r=Hf(t);let d=r.data;const h=ar.from(r.headers).normalize();let{responseType:f,onUploadProgress:w,onDownloadProgress:p}=r,g,s,l,a,u;function o(){a&&a(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function m(){if(!c)return;const x=ar.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!f||f==="text"||f==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:x,config:t,request:c};Nf(function(A){e(A),o()},function(A){n(A),o()},E),c=null}"onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(n(new tt("Request aborted",tt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new tt("Network Error",tt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Lf;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),n(new tt(x,E.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,t,c)),c=null},d===void 0&&h.setContentType(null),"setRequestHeader"in c&&ue.forEach(h.toJSON(),function(x,E){c.setRequestHeader(E,x)}),ue.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),f&&f!=="json"&&(c.responseType=r.responseType),p&&([l,u]=ll(p,!0),c.addEventListener("progress",l)),w&&c.upload&&([s,a]=ll(w),c.upload.addEventListener("progress",s),c.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{c&&(n(!x||x.type?new Jo(null,t,c):x),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const b=fx(r.url);if(b&&Bn.protocols.indexOf(b)===-1){n(new tt("Unsupported protocol "+b+":",tt.ERR_BAD_REQUEST,t));return}c.send(d||null)})},kx=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,d;const h=function(g){if(!d){d=!0,w();const s=g instanceof Error?g:this.reason;r.abort(s instanceof tt?s:new Jo(s instanceof Error?s.message:s))}};let f=e&&setTimeout(()=>{f=null,h(new tt(`timeout ${e} of ms exceeded`,tt.ETIMEDOUT))},e);const w=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),t=null)};t.forEach(g=>g.addEventListener("abort",h));const{signal:p}=r;return p.unsubscribe=()=>ue.asap(w),p}},Sx=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,d;for(;r<n;)d=r+e,yield t.slice(r,d),r=d},$x=async function*(t,e){for await(const n of Cx(t))yield*Sx(n,e)},Cx=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},zf=(t,e,n,r)=>{const d=$x(t,e);let h=0,f,w=p=>{f||(f=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:s}=await d.next();if(g){w(),p.close();return}let l=s.byteLength;if(n){let a=h+=l;n(a)}p.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(p){return w(p),d.return()}},{highWaterMark:2})},cl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wf=cl&&typeof ReadableStream=="function",Ax=cl&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Uf=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Tx=Wf&&Uf(()=>{let t=!1;const e=new Request(Bn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),qf=64*1024,Iu=Wf&&Uf(()=>ue.isReadableStream(new Response("").body)),ul={stream:Iu&&(t=>t.body)};cl&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ul[e]&&(ul[e]=ue.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new tt(`Response type '${e}' is not supported`,tt.ERR_NOT_SUPPORT,r)})})})(new Response);const Mx=async t=>{if(t==null)return 0;if(ue.isBlob(t))return t.size;if(ue.isSpecCompliantForm(t))return(await new Request(Bn.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(t)||ue.isArrayBuffer(t))return t.byteLength;if(ue.isURLSearchParams(t)&&(t=t+""),ue.isString(t))return(await Ax(t)).byteLength},Ex=async(t,e)=>ue.toFiniteNumber(t.getContentLength())??Mx(e),Rx=cl&&(async t=>{let{url:e,method:n,data:r,signal:d,cancelToken:h,timeout:f,onDownloadProgress:w,onUploadProgress:p,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=Hf(t);g=g?(g+"").toLowerCase():"text";let u=kx([d,h&&h.toAbortSignal()],f),o;const c=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(p&&Tx&&n!=="get"&&n!=="head"&&(m=await Ex(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),v;if(ue.isFormData(r)&&(v=k.headers.get("content-type"))&&s.setContentType(v),k.body){const[T,R]=Ff(m,ll(Pf(p)));r=zf(k.body,qf,T,R)}}ue.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:u,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=Iu&&(g==="stream"||g==="response");if(Iu&&(w||E&&c)){const k={};["status","statusText","headers"].forEach(O=>{k[O]=x[O]});const v=ue.toFiniteNumber(x.headers.get("content-length")),[T,R]=w&&Ff(v,ll(Pf(w),!0))||[];x=new Response(zf(x.body,qf,T,()=>{R&&R(),c&&c()}),k)}g=g||"text";let A=await ul[ue.findKey(ul,g)||"text"](x,t);return!E&&c&&c(),await new Promise((k,v)=>{Nf(k,v,{data:A,headers:ar.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:o})})}catch(b){throw c&&c(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,t,o),{cause:b.cause||b}):tt.from(b,b&&b.code,t,o)}}),Nu={http:V1,xhr:_x,fetch:Rx};ue.forEach(Nu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Vf=t=>`- ${t}`,Lx=t=>ue.isFunction(t)||t===null||t===!1,Gf={getAdapter:t=>{t=ue.isArray(t)?t:[t];const{length:e}=t;let n,r;const d={};for(let h=0;h<e;h++){n=t[h];let f;if(r=n,!Lx(n)&&(r=Nu[(f=String(n)).toLowerCase()],r===void 0))throw new tt(`Unknown adapter '${f}'`);if(r)break;d[f||"#"+h]=r}if(!r){const h=Object.entries(d).map(([w,p])=>`adapter ${w} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=e?h.length>1?`since :
5
+ `+h.map(Vf).join(`
6
+ `):" "+Vf(h[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:Nu};function Fu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Jo(null,t)}function Yf(t){return Fu(t),t.headers=ar.from(t.headers),t.data=Du.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Gf.getAdapter(t.adapter||Us.adapter)(t).then(function(e){return Fu(t),e.data=Du.call(t,t.transformResponse,e),e.headers=ar.from(e.headers),e},function(e){return If(e)||(Fu(t),e&&e.response&&(e.response.data=Du.call(t,t.transformResponse,e.response),e.response.headers=ar.from(e.response.headers))),Promise.reject(e)})}const Kf="1.7.9",hl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hl[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Qf={};hl.transitional=function(t,e,n){function r(d,h){return"[Axios v"+Kf+"] Transitional option '"+d+"'"+h+(n?". "+n:"")}return(d,h,f)=>{if(t===!1)throw new tt(r(h," has been removed"+(e?" in "+e:"")),tt.ERR_DEPRECATED);return e&&!Qf[h]&&(Qf[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(d,h,f):!0}},hl.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ox(t,e,n){if(typeof t!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let d=r.length;for(;d-- >0;){const h=r[d],f=e[h];if(f){const w=t[h],p=w===void 0||f(w,h,t);if(p!==!0)throw new tt("option "+h+" must be "+p,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+h,tt.ERR_BAD_OPTION)}}const dl={assertOptions:Ox,validators:hl},ni=dl.validators;let go=class{constructor(e){this.defaults=e,this.interceptors={request:new Rf,response:new Rf}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const h=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
7
+ `+h):r.stack=h}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=fo(this.defaults,n);const{transitional:r,paramsSerializer:d,headers:h}=n;r!==void 0&&dl.assertOptions(r,{silentJSONParsing:ni.transitional(ni.boolean),forcedJSONParsing:ni.transitional(ni.boolean),clarifyTimeoutError:ni.transitional(ni.boolean)},!1),d!=null&&(ue.isFunction(d)?n.paramsSerializer={serialize:d}:dl.assertOptions(d,{encode:ni.function,serialize:ni.function},!0)),dl.assertOptions(n,{baseUrl:ni.spelling("baseURL"),withXsrfToken:ni.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&ue.merge(h.common,h[n.method]);h&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),n.headers=ar.concat(f,h);const w=[];let p=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(n)===!1||(p=p&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!p){const o=[Yf.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(n);l<a;)s=s.then(o[l++],o[l++]);return s}a=w.length;let u=n;for(l=0;l<a;){const o=w[l++],c=w[l++];try{u=o(u)}catch(m){c.call(this,m);break}}try{s=Yf.call(this,u)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=fo(this.defaults,e);const n=Bf(e.baseURL,e.url);return Ef(n,e.params,e.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(t){go.prototype[t]=function(e,n){return this.request(fo(n||{},{method:t,url:e,data:(n||{}).data}))}}),ue.forEach(["post","put","patch"],function(t){function e(n){return function(r,d,h){return this.request(fo(h||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}go.prototype[t]=e(),go.prototype[t+"Form"]=e(!0)});let Dx=class o1{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](d);r._listeners=null}),this.promise.then=d=>{let h;const f=new Promise(w=>{r.subscribe(w),h=w}).then(d);return f.cancel=function(){r.unsubscribe(h)},f},e(function(d,h,f){r.reason||(r.reason=new Jo(d,h,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new o1(function(n){e=n}),cancel:e}}};function Ix(t){return function(e){return t.apply(null,e)}}function Nx(t){return ue.isObject(t)&&t.isAxiosError===!0}const Pu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pu).forEach(([t,e])=>{Pu[e]=t});function Zf(t){const e=new go(t),n=ff(go.prototype.request,e);return ue.extend(n,go.prototype,e,{allOwnKeys:!0}),ue.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Zf(fo(t,r))},n}const fn=Zf(Us);fn.Axios=go,fn.CanceledError=Jo,fn.CancelToken=Dx,fn.isCancel=If,fn.VERSION=Kf,fn.toFormData=sl,fn.AxiosError=tt,fn.Cancel=fn.CanceledError,fn.all=function(t){return Promise.all(t)},fn.spread=Ix,fn.isAxiosError=Nx,fn.mergeConfig=fo,fn.AxiosHeaders=ar,fn.formToJSON=t=>Of(ue.isHTMLForm(t)?new FormData(t):t),fn.getAdapter=Gf.getAdapter,fn.HttpStatusCode=Pu,fn.default=fn;const Jf=fn.create({baseURL:location.origin,timeout:6e4,params:{}});Jf.interceptors.response.use(t=>t,t=>{var e,n,r,d,h,f,w,p,g,s,l;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let a=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(a+=`${t.response.statusText} `),(r=(n=t.response)==null?void 0:n.config)!=null&&r.data&&(a+=`${t.response.config.data} `),(h=(d=t.response)==null?void 0:d.data)!=null&&h.message?a+=`${t.response.data.message}`:(w=(f=t.response)==null?void 0:f.data)!=null&&w.exception?a+=`${t.response.data.exception}`:(s=(g=(p=t.response)==null?void 0:p.data)==null?void 0:g.error)!=null&&s.message?(t.response.data.error.class&&(a+=`${t.response.data.error.class} `),a+=`${t.response.data.error.message}`):a+=`${(l=t.response)==null?void 0:l.data}`;const{$cosmosNotify:u}=window;throw u&&u.serious({title:"Network error",body:a}),t}else throw t});const pl=async function(t,e,{data:n,params:r={},headers:d,noAuth:h=!1,noScope:f=!1,onUploadProgress:w=!1}={}){if(!h){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}d.Authorization=localStorage.openc3Token}return d.manual=!0,!f&&!r.scope&&(r.scope=window.openc3Scope),Jf({method:t,url:e,data:n,params:r,headers:d,onUploadProgress:w})},Bu={Accept:"application/json"},Xf={...Bu,"Content-Type":"application/json"},mo={get:function(t,{params:e,headers:n=Bu,noScope:r,noAuth:d,onUploadProgress:h}={}){return pl("get",t,{params:e,headers:n,noScope:r,noAuth:d,onUploadProgress:h})},put:function(t,{data:e,params:n,headers:r=Xf,noScope:d,noAuth:h,onUploadProgress:f}={}){return pl("put",t,{data:e,params:n,headers:r,noScope:d,noAuth:h,onUploadProgress:f})},post:function(t,{data:e,params:n,headers:r=Xf,noScope:d,noAuth:h,onUploadProgress:f}={}){return pl("post",t,{data:e,params:n,headers:r,noScope:d,noAuth:h,onUploadProgress:f})},delete:function(t,{params:e,headers:n=Bu,noScope:r,noAuth:d,onUploadProgress:h}={}){return pl("delete",t,{params:e,headers:n,noScope:r,noAuth:d,onUploadProgress:h})}};var Fx={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:MF,protocols:eg}=Fx;eg.slice(0,eg.length-1);const fl=6e4,ju=36e5,Px=1e3,tg=Symbol.for("constructDateFrom");function gn(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&tg in t?t[tg](e):t instanceof Date?new t.constructor(e):new Date(e)}function Vt(t,e){return gn(e||t,t)}let Bx={};function Xo(){return Bx}function ji(t,e){var n,r,d,h;const f=Xo(),w=(e==null?void 0:e.weekStartsOn)??((r=(n=e==null?void 0:e.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??f.weekStartsOn??((h=(d=f.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,p=Vt(t,e==null?void 0:e.in),g=p.getDay(),s=(g<w?7:0)+g-w;return p.setDate(p.getDate()-s),p.setHours(0,0,0,0),p}function es(t,e){return ji(t,{...e,weekStartsOn:1})}function ng(t,e){const n=Vt(t,void 0),r=n.getFullYear(),d=gn(n,0);d.setFullYear(r+1,0,4),d.setHours(0,0,0,0);const h=es(d),f=gn(n,0);f.setFullYear(r,0,4),f.setHours(0,0,0,0);const w=es(f);return n.getTime()>=h.getTime()?r+1:n.getTime()>=w.getTime()?r:r-1}function gl(t){const e=Vt(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function jx(t,...e){const n=gn.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function rg(t,e){const n=Vt(t,void 0);return n.setHours(0,0,0,0),n}function Hx(t,e,n){const[r,d]=jx(void 0,t,e),h=rg(r),f=rg(d),w=+h-gl(h),p=+f-gl(f);return Math.round((w-p)/864e5)}function zx(t,e){const n=ng(t),r=gn(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),es(r)}function Wx(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ig(t){return!(!Wx(t)&&typeof t!="number"||isNaN(+Vt(t)))}function Ux(t,e){const n=Vt(t,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const qx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vx=(t,e,n)=>{let r;const d=qx[t];return typeof d=="string"?r=d:e===1?r=d.one:r=d.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Hu(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Gx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qx={date:Hu({formats:Gx,defaultWidth:"full"}),time:Hu({formats:Yx,defaultWidth:"full"}),dateTime:Hu({formats:Kx,defaultWidth:"full"})},Zx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jx=(t,e,n,r)=>Zx[t];function Vs(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let d;if(r==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,w=n!=null&&n.width?String(n.width):f;d=t.formattingValues[w]||t.formattingValues[f]}else{const f=t.defaultWidth,w=n!=null&&n.width?String(n.width):t.defaultWidth;d=t.values[w]||t.values[f]}const h=t.argumentCallback?t.argumentCallback(e):e;return d[h]}}const Xx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},n_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o_=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},s_={ordinalNumber:o_,era:Vs({values:Xx,defaultWidth:"wide"}),quarter:Vs({values:e_,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Vs({values:t_,defaultWidth:"wide"}),day:Vs({values:n_,defaultWidth:"wide"}),dayPeriod:Vs({values:r_,defaultWidth:"wide",formattingValues:i_,defaultFormattingWidth:"wide"})};function Gs(t){return(e,n={})=>{const r=n.width,d=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],h=e.match(d);if(!h)return null;const f=h[0],w=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(w)?l_(w,l=>l.test(f)):a_(w,l=>l.test(f));let g;g=t.valueCallback?t.valueCallback(p):p,g=n.valueCallback?n.valueCallback(g):g;const s=e.slice(f.length);return{value:g,rest:s}}}function a_(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function l_(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function c_(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const d=r[0],h=e.match(t.parsePattern);if(!h)return null;let f=t.valueCallback?t.valueCallback(h[0]):h[0];f=n.valueCallback?n.valueCallback(f):f;const w=e.slice(d.length);return{value:f,rest:w}}}const u_=/^(\d+)(th|st|nd|rd)?/i,h_=/\d+/i,d_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},p_={any:[/^b/i,/^(a|c)/i]},f_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g_={any:[/1/i,/2/i,/3/i,/4/i]},m_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},w_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},b_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},__={ordinalNumber:c_({matchPattern:u_,parsePattern:h_,valueCallback:t=>parseInt(t,10)}),era:Gs({matchPatterns:d_,defaultMatchWidth:"wide",parsePatterns:p_,defaultParseWidth:"any"}),quarter:Gs({matchPatterns:f_,defaultMatchWidth:"wide",parsePatterns:g_,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Gs({matchPatterns:m_,defaultMatchWidth:"wide",parsePatterns:y_,defaultParseWidth:"any"}),day:Gs({matchPatterns:w_,defaultMatchWidth:"wide",parsePatterns:b_,defaultParseWidth:"any"}),dayPeriod:Gs({matchPatterns:v_,defaultMatchWidth:"any",parsePatterns:x_,defaultParseWidth:"any"})},og={code:"en-US",formatDistance:Vx,formatLong:Qx,formatRelative:Jx,localize:s_,match:__,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k_(t,e){const n=Vt(t,void 0);return Hx(n,Ux(n))+1}function sg(t,e){const n=Vt(t,void 0),r=+es(n)-+zx(n);return Math.round(r/6048e5)+1}function zu(t,e){var n,r,d,h;const f=Vt(t,e==null?void 0:e.in),w=f.getFullYear(),p=Xo(),g=(e==null?void 0:e.firstWeekContainsDate)??((r=(n=e==null?void 0:e.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??p.firstWeekContainsDate??((h=(d=p.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,s=gn((e==null?void 0:e.in)||t,0);s.setFullYear(w+1,0,g),s.setHours(0,0,0,0);const l=ji(s,e),a=gn((e==null?void 0:e.in)||t,0);a.setFullYear(w,0,g),a.setHours(0,0,0,0);const u=ji(a,e);return+f>=+l?w+1:+f>=+u?w:w-1}function S_(t,e){var n,r,d,h;const f=Xo(),w=(e==null?void 0:e.firstWeekContainsDate)??((r=(n=e==null?void 0:e.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??f.firstWeekContainsDate??((h=(d=f.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,p=zu(t,e),g=gn((e==null?void 0:e.in)||t,0);return g.setFullYear(p,0,w),g.setHours(0,0,0,0),ji(g,e)}function ag(t,e){const n=Vt(t,e==null?void 0:e.in),r=+ji(n,e)-+S_(n,e);return Math.round(r/6048e5)+1}function Rt(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Hi={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Rt(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Rt(n+1,2)},d(t,e){return Rt(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Rt(t.getHours()%12||12,e.length)},H(t,e){return Rt(t.getHours(),e.length)},m(t,e){return Rt(t.getMinutes(),e.length)},s(t,e){return Rt(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),d=Math.trunc(r*Math.pow(10,n-3));return Rt(d,e.length)}},ts={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lg={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),d=r>0?r:1-r;return n.ordinalNumber(d,{unit:"year"})}return Hi.y(t,e)},Y:function(t,e,n,r){const d=zu(t,r),h=d>0?d:1-d;if(e==="YY"){const f=h%100;return Rt(f,2)}return e==="Yo"?n.ordinalNumber(h,{unit:"year"}):Rt(h,e.length)},R:function(t,e){const n=ng(t);return Rt(n,e.length)},u:function(t,e){const n=t.getFullYear();return Rt(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Hi.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const d=ag(t,r);return e==="wo"?n.ordinalNumber(d,{unit:"week"}):Rt(d,e.length)},I:function(t,e,n){const r=sg(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Rt(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Hi.d(t,e)},D:function(t,e,n){const r=k_(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Rt(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const d=t.getDay(),h=(d-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(h);case"ee":return Rt(h,2);case"eo":return n.ordinalNumber(h,{unit:"day"});case"eee":return n.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(d,{width:"short",context:"formatting"});case"eeee":default:return n.day(d,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const d=t.getDay(),h=(d-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(h);case"cc":return Rt(h,e.length);case"co":return n.ordinalNumber(h,{unit:"day"});case"ccc":return n.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(d,{width:"narrow",context:"standalone"});case"cccccc":return n.day(d,{width:"short",context:"standalone"});case"cccc":default:return n.day(d,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),d=r===0?7:r;switch(e){case"i":return String(d);case"ii":return Rt(d,e.length);case"io":return n.ordinalNumber(d,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let d;switch(r===12?d=ts.noon:r===0?d=ts.midnight:d=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(d,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let d;switch(r>=17?d=ts.evening:r>=12?d=ts.afternoon:r>=4?d=ts.morning:d=ts.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(d,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Hi.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Hi.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Rt(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Hi.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Hi.s(t,e)},S:function(t,e){return Hi.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return ug(r);case"XXXX":case"XX":return yo(r);case"XXXXX":case"XXX":default:return yo(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return ug(r);case"xxxx":case"xx":return yo(r);case"xxxxx":case"xxx":default:return yo(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+cg(r,":");case"OOOO":default:return"GMT"+yo(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+cg(r,":");case"zzzz":default:return"GMT"+yo(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Rt(r,e.length)},T:function(t,e,n){return Rt(+t,e.length)}};function cg(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),d=Math.trunc(r/60),h=r%60;return h===0?n+String(d):n+String(d)+e+Rt(h,2)}function ug(t,e){return t%60===0?(t>0?"-":"+")+Rt(Math.abs(t)/60,2):yo(t,e)}function yo(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),d=Rt(Math.trunc(r/60),2),h=Rt(r%60,2);return n+d+e+h}const hg=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},dg=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},$_=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],d=n[2];if(!d)return hg(t,e);let h;switch(r){case"P":h=e.dateTime({width:"short"});break;case"PP":h=e.dateTime({width:"medium"});break;case"PPP":h=e.dateTime({width:"long"});break;case"PPPP":default:h=e.dateTime({width:"full"});break}return h.replace("{{date}}",hg(r,e)).replace("{{time}}",dg(d,e))},Wu={p:dg,P:$_},C_=/^D+$/,A_=/^Y+$/,T_=["D","DD","YY","YYYY"];function pg(t){return C_.test(t)}function fg(t){return A_.test(t)}function Uu(t,e,n){const r=M_(t,e,n);if(console.warn(r),T_.includes(t))throw new RangeError(r)}function M_(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const E_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L_=/^'([^]*?)'?$/,O_=/''/g,D_=/[a-zA-Z]/;function wo(t,e,n){var r,d,h,f,w,p,g,s;const l=Xo(),a=(n==null?void 0:n.locale)??l.locale??og,u=(n==null?void 0:n.firstWeekContainsDate)??((d=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??l.firstWeekContainsDate??((f=(h=l.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:p.weekStartsOn)??l.weekStartsOn??((s=(g=l.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,c=Vt(t,n==null?void 0:n.in);if(!ig(c))throw new RangeError("Invalid time value");let m=e.match(R_).map(x=>{const E=x[0];if(E==="p"||E==="P"){const A=Wu[E];return A(x,a.formatLong)}return x}).join("").match(E_).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const E=x[0];if(E==="'")return{isToken:!1,value:I_(x)};if(lg[E])return{isToken:!0,value:x};if(E.match(D_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(m=a.localize.preprocessor(c,m));const b={firstWeekContainsDate:u,weekStartsOn:o,locale:a};return m.map(x=>{if(!x.isToken)return x.value;const E=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&fg(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&pg(E))&&Uu(E,e,String(t));const A=lg[E[0]];return A(c,E,a.localize,b)}).join("")}function I_(t){const e=t.match(L_);return e?e[1].replace(O_,"'"):t}var zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ml(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gg={exports:{}},mg;function N_(){return mg||(mg=1,function(t,e){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var d=function(s,l,a){if(typeof s!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=l),d.modules[s]||(d.payloads[s]=a,d.modules[s]=null)};d.modules={},d.payloads={};var h=function(s,l,a){if(typeof l=="string"){var u=p(s,l);if(u!=null)return a&&a(),u}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],c=0,m=l.length;c<m;++c){var b=p(s,l[c]);if(b==null&&f.original)return;o.push(b)}return a&&a.apply(null,o)||!0}},f=function(s,l){var a=h("",s,l);return a==null&&f.original?f.original.apply(this,arguments):a},w=function(s,l){if(l.indexOf("!")!==-1){var a=l.split("!");return w(s,a[0])+"!"+w(s,a[1])}if(l.charAt(0)=="."){var u=s.split("/").slice(0,-1).join("/");for(l=u+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},p=function(s,l){l=w(s,l);var a=d.modules[l];if(!a){if(a=d.payloads[l],typeof a=="function"){var u={},o={id:l,uri:"",exports:u,packaged:!0},c=function(b,x){return h(l,b,x)},m=a(c,u,o);u=m||o.exports,d.modules[l]=u,delete d.payloads[l]}a=d.modules[l]=u||a}return a};function g(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(d.original=l.define,l.define=d,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(f.original=l.require,l.require=f,l.require.packaged=!0)}g(n)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(n,r,d){function h(f,w,p){Object.defineProperty(f,w,{value:p,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(f,w){return w=w||0,this.lastIndexOf(f,w)===w}),String.prototype.endsWith||h(String.prototype,"endsWith",function(f,w){var p=this;(w===void 0||w>p.length)&&(w=p.length),w-=f.length;var g=p.indexOf(f,w);return g!==-1&&g===w}),String.prototype.repeat||h(String.prototype,"repeat",function(f){for(var w="",p=this;f>0;)f&1&&(w+=p),(f>>=1)&&(p+=p);return w}),String.prototype.includes||h(String.prototype,"includes",function(f,w){return this.indexOf(f,w)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(f),p=1;p<arguments.length;p++){var g=arguments[p];g!=null&&Object.keys(g).forEach(function(s){w[s]=g[s]})}return w}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(w){return f[w]})}),Array.prototype.find||h(Array.prototype,"find",function(f){for(var w=this.length,p=arguments[1],g=0;g<w;g++){var s=this[g];if(f.call(p,s,g,this))return s}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(f){for(var w=this.length,p=arguments[1],g=0;g<w;g++){var s=this[g];if(f.call(p,s,g,this))return g}}),Array.prototype.includes||h(Array.prototype,"includes",function(f,w){return this.indexOf(f,w)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(f){for(var w=this,p=w.length>>>0,g=arguments[1],s=g>>0,l=s<0?Math.max(p+s,0):Math.min(s,p),a=arguments[2],u=a===void 0?p:a>>0,o=u<0?Math.max(p+u,0):Math.min(u,p);l<o;)w[l]=f,l++;return w}),Array.of||h(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(n,r,d){n("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(n,r,d){r.deepCopy=function h(f){if(typeof f!="object"||!f)return f;var w;if(Array.isArray(f)){w=[];for(var p=0;p<f.length;p++)w[p]=h(f[p]);return w}if(Object.prototype.toString.call(f)!=="[object Object]")return f;w={};for(var p in f)w[p]=h(f[p]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(n,r,d){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,p){for(var g="";p>0;)p&1&&(g+=w),(p>>=1)&&(w+=w);return g};var h=/^\s\s*/,f=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(h,"")},r.stringTrimRight=function(w){return w.replace(f,"")},r.copyObject=function(w){var p={};for(var g in w)p[g]=w[g];return p},r.copyArray=function(w){for(var p=[],g=0,s=w.length;g<s;g++)w[g]&&typeof w[g]=="object"?p[g]=this.copyObject(w[g]):p[g]=w[g];return p},r.deepCopy=n("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var p={},g=0;g<w.length;g++)p[w[g]]=1;return p},r.createMap=function(w){var p=Object.create(null);for(var g in w)p[g]=w[g];return p},r.arrayRemove=function(w,p){for(var g=0;g<=w.length;g++)p===w[g]&&w.splice(g,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(w,p){var g=[];return w.replace(p,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},r.deferredCall=function(w){var p=null,g=function(){p=null,w()},s=function(l){return s.cancel(),p=setTimeout(g,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),w(),s},s.cancel=function(){return clearTimeout(p),p=null,s},s.isPending=function(){return p},s},r.delayedCall=function(w,p){var g=null,s=function(){g=null,w()},l=function(a){g==null&&(g=setTimeout(s,a||p))};return l.delay=function(a){g&&clearTimeout(g),g=setTimeout(s,a||p)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,p,g){return g&&w.codePointAt(p)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,d){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var h=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),w=h.userAgent||"",p=h.appName||"";r.isWin=f=="win",r.isMac=f=="mac",r.isLinux=f=="linux",r.isIE=p=="Microsoft Internet Explorer"||p.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,d){var h=n("./useragent"),f="http://www.w3.org/1999/xhtml";r.buildDom=function a(u,o,c){if(typeof u=="string"&&u){var m=document.createTextNode(u);return o&&o.appendChild(m),m}if(!Array.isArray(u))return u&&u.appendChild&&o&&o.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var b=[],x=0;x<u.length;x++){var E=a(u[x],o,c);E&&b.push(E)}return b}var A=document.createElement(u[0]),k=u[1],v=1;k&&typeof k=="object"&&!Array.isArray(k)&&(v=2);for(var x=v;x<u.length;x++)a(u[x],A,c);return v==2&&Object.keys(k).forEach(function(T){var R=k[T];T==="class"?A.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||T=="value"||T[0]=="$"?A[T]=R:T==="ref"?c&&(c[R]=A):T==="style"?typeof R=="string"&&(A.style.cssText=R):R!=null&&A.setAttribute(T,R)}),o&&o.appendChild(A),A},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,u){return document.createElementNS?document.createElementNS(u||f,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,u){var o=u?u.ownerDocument:document;return o.createTextNode(a)},r.createFragment=function(a){var u=a?a.ownerDocument:document;return u.createDocumentFragment()},r.hasCssClass=function(a,u){var o=(a.className+"").split(/\s+/g);return o.indexOf(u)!==-1},r.addCssClass=function(a,u){r.hasCssClass(a,u)||(a.className+=" "+u)},r.removeCssClass=function(a,u){for(var o=a.className.split(/\s+/g);;){var c=o.indexOf(u);if(c==-1)break;o.splice(c,1)}a.className=o.join(" ")},r.toggleCssClass=function(a,u){for(var o=a.className.split(/\s+/g),c=!0;;){var m=o.indexOf(u);if(m==-1)break;c=!1,o.splice(m,1)}return c&&o.push(u),a.className=o.join(" "),c},r.setCssClass=function(a,u,o){o?r.addCssClass(a,u):r.removeCssClass(a,u)},r.hasCssString=function(a,u){var o=0,c;if(u=u||document,c=u.querySelectorAll("style")){for(;o<c.length;)if(c[o++].id===a)return!0}},r.removeElementById=function(a,u){u=u||document,u.getElementById(a)&&u.getElementById(a).remove()};var w,p=[];r.useStrictCSP=function(a){w=a,a==!1?g():p||(p=[])};function g(){var a=p;p=null,a&&a.forEach(function(u){s(u[0],u[1])})}function s(a,u,o){if(!(typeof document>"u")){if(p){if(o)g();else if(o===!1)return p.push([a,u])}if(!w){var c=o;!o||!o.getRootNode?c=document:(c=o.getRootNode(),(!c||c==o)&&(c=document));var m=c.ownerDocument||c;if(u&&r.hasCssString(u,c))return null;u&&(a+=`
8
+ /*# sourceURL=ace/css/`+u+" */");var b=r.createElement("style");b.appendChild(m.createTextNode(a)),u&&(b.id=u),c==m&&(c=r.getDocumentHead(m)),c.insertBefore(b,c.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(a,u){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(u))},r.scrollbarWidth=function(a){var u=r.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var o=r.createElement("ace_outer"),c=o.style;c.position="absolute",c.left="-10000px",c.overflow="hidden",c.width="200px",c.minWidth="0px",c.height="150px",c.display="block",o.appendChild(u);var m=a&&a.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(o);var b=u.offsetWidth;c.overflow="scroll";var x=u.offsetWidth;return b===x&&(x=o.clientWidth),m.removeChild(o),b-x},r.computedStyle=function(a,u){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,u,o){a[u]!==o&&(a[u]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,u,o){a.style.transform="translate("+Math.round(u)+"px, "+Math.round(o)+"px)"}:r.translate=function(a,u,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,d){/*
9
+ * based on code from:
10
+ *
11
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
12
+ * Available via the MIT or new BSD license.
13
+ * see: http://github.com/jrburke/requirejs for details
14
+ */var h=n("./dom");r.get=function(f,w){var p=new XMLHttpRequest;p.open("GET",f,!0),p.onreadystatechange=function(){p.readyState===4&&w(p.responseText)},p.send(null)},r.loadScript=function(f,w){var p=h.getDocumentHead(),g=document.createElement("script");g.src=f,p.appendChild(g),g.onload=g.onreadystatechange=function(s,l){(l||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,l||w())}},r.qualifyURL=function(f){var w=document.createElement("a");return w.href=f,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,d){r.inherits=function(h,f){h.super_=f,h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(h,f){for(var w in f)h[w]=f[w];return h},r.implement=function(h,f){r.mixin(h,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,d){var h={},f=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(p,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[p]||[],l=this._defaultHandlers[p];if(!(!s.length&&!l)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=p),g.stopPropagation||(g.stopPropagation=f),g.preventDefault||(g.preventDefault=w),s=s.slice();for(var a=0;a<s.length&&(s[a](g,this),!g.propagationStopped);a++);if(l&&!g.defaultPrevented)return l(g,this)}},h._signal=function(p,g){var s=(this._eventRegistry||{})[p];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](g,this)}},h.once=function(p,g){var s=this;if(this.on(p,function l(){s.off(p,l),g.apply(null,arguments)}),!g)return new Promise(function(l){g=l})},h.setDefaultHandler=function(p,g){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[p]){var l=s[p],a=s._disabled_[p];a||(s._disabled_[p]=a=[]),a.push(l);var u=a.indexOf(g);u!=-1&&a.splice(u,1)}s[p]=g},h.removeDefaultHandler=function(p,g){var s=this._defaultHandlers;if(s){var l=s._disabled_[p];if(s[p]==g)l&&this.setDefaultHandler(p,l.pop());else if(l){var a=l.indexOf(g);a!=-1&&l.splice(a,1)}}},h.on=h.addEventListener=function(p,g,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[p];return l||(l=this._eventRegistry[p]=[]),l.indexOf(g)==-1&&l[s?"unshift":"push"](g),g},h.off=h.removeListener=h.removeEventListener=function(p,g){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[p];if(s){var l=s.indexOf(g);l!==-1&&s.splice(l,1)}},h.removeAllListeners=function(p){p||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[p]=void 0),this._defaultHandlers&&(this._defaultHandlers[p]=void 0)},r.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(n,r,d){r.reportError=function(h,f){var w=new Error(h);w.data=f,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(n,r,d){var h={"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","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":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};r.defaultEnglishMessages=h}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(n,r,d){"no use strict";var h=n("./oop"),f=n("./event_emitter").EventEmitter,w=n("./report_error").reportError,p=n("./default_english_messages").defaultEnglishMessages,g={setOptions:function(o){Object.keys(o).forEach(function(c){this.setOption(c,o[c])},this)},getOptions:function(o){var c={};if(o)Array.isArray(o)||(c=o,o=Object.keys(c));else{var m=this.$options;o=Object.keys(m).filter(function(b){return!m[b].hidden})}return o.forEach(function(b){c[b]=this.getOption(b)},this),c},setOption:function(o,c){if(this["$"+o]!==c){var m=this.$options[o];if(!m)return s('misspelled option "'+o+'"');if(m.forwardTo)return this[m.forwardTo]&&this[m.forwardTo].setOption(o,c);m.handlesSet||(this["$"+o]=c),m&&m.set&&m.set.call(this,c)}},getOption:function(o){var c=this.$options[o];return c?c.forwardTo?this[c.forwardTo]&&this[c.forwardTo].getOption(o):c&&c.get?c.get.call(this):this["$"+o]:s('misspelled option "'+o+'"')}};function s(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,a,u=function(){function o(){this.$defaultOptions={},l=p,a="dollarSigns"}return o.prototype.defineOptions=function(c,m,b){return c.$options||(this.$defaultOptions[m]=c.$options={}),Object.keys(b).forEach(function(x){var E=b[x];typeof E=="string"&&(E={forwardTo:E}),E.name||(E.name=x),c.$options[E.name]=E,"initialValue"in E&&(c["$"+E.name]=E.initialValue)}),h.implement(c,g),this},o.prototype.resetOptions=function(c){Object.keys(c.$options).forEach(function(m){var b=c.$options[m];"value"in b&&c.setOption(m,b.value)})},o.prototype.setDefaultValue=function(c,m,b){if(!c){for(c in this.$defaultOptions)if(this.$defaultOptions[c][m])break;if(!this.$defaultOptions[c][m])return!1}var x=this.$defaultOptions[c]||(this.$defaultOptions[c]={});x[m]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,m,b):x[m].value=b)},o.prototype.setDefaultValues=function(c,m){Object.keys(m).forEach(function(b){this.setDefaultValue(c,b,m[b])},this)},o.prototype.setMessages=function(c,m){l=c,m&&m.placeholders&&(a=m.placeholders)},o.prototype.nls=function(c,m,b){l[c]||(s("No message found for the key '"+c+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+m+"'."),l[m]||s("No message found for the default string '"+m+"' in the provided messages. Falling back to the default English message."));var x=l[c]||l[m]||m;return b&&(a==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(E,A){return A=="$"?"$":b[A]})),a==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(E,A){return b[A]}))),x},o}();u.prototype.warn=s,u.prototype.reportError=w,h.implement(u.prototype,f),r.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(n,r,d){d.exports=`.ace-tm .ace_gutter {
15
+ background: #f0f0f0;
16
+ color: #333;
17
+ }
18
+
19
+ .ace-tm .ace_print-margin {
20
+ width: 1px;
21
+ background: #e8e8e8;
22
+ }
23
+
24
+ .ace-tm .ace_fold {
25
+ background-color: #6B72E6;
26
+ }
27
+
28
+ .ace-tm {
29
+ background-color: #FFFFFF;
30
+ color: black;
31
+ }
32
+
33
+ .ace-tm .ace_cursor {
34
+ color: black;
35
+ }
36
+
37
+ .ace-tm .ace_invisible {
38
+ color: rgb(191, 191, 191);
39
+ }
40
+
41
+ .ace-tm .ace_storage,
42
+ .ace-tm .ace_keyword {
43
+ color: blue;
44
+ }
45
+
46
+ .ace-tm .ace_constant {
47
+ color: rgb(197, 6, 11);
48
+ }
49
+
50
+ .ace-tm .ace_constant.ace_buildin {
51
+ color: rgb(88, 72, 246);
52
+ }
53
+
54
+ .ace-tm .ace_constant.ace_language {
55
+ color: rgb(88, 92, 246);
56
+ }
57
+
58
+ .ace-tm .ace_constant.ace_library {
59
+ color: rgb(6, 150, 14);
60
+ }
61
+
62
+ .ace-tm .ace_invalid {
63
+ background-color: rgba(255, 0, 0, 0.1);
64
+ color: red;
65
+ }
66
+
67
+ .ace-tm .ace_support.ace_function {
68
+ color: rgb(60, 76, 114);
69
+ }
70
+
71
+ .ace-tm .ace_support.ace_constant {
72
+ color: rgb(6, 150, 14);
73
+ }
74
+
75
+ .ace-tm .ace_support.ace_type,
76
+ .ace-tm .ace_support.ace_class {
77
+ color: rgb(109, 121, 222);
78
+ }
79
+
80
+ .ace-tm .ace_keyword.ace_operator {
81
+ color: rgb(104, 118, 135);
82
+ }
83
+
84
+ .ace-tm .ace_string {
85
+ color: rgb(3, 106, 7);
86
+ }
87
+
88
+ .ace-tm .ace_comment {
89
+ color: rgb(76, 136, 107);
90
+ }
91
+
92
+ .ace-tm .ace_comment.ace_doc {
93
+ color: rgb(0, 102, 255);
94
+ }
95
+
96
+ .ace-tm .ace_comment.ace_doc.ace_tag {
97
+ color: rgb(128, 159, 191);
98
+ }
99
+
100
+ .ace-tm .ace_constant.ace_numeric {
101
+ color: rgb(0, 0, 205);
102
+ }
103
+
104
+ .ace-tm .ace_variable {
105
+ color: rgb(49, 132, 149);
106
+ }
107
+
108
+ .ace-tm .ace_xml-pe {
109
+ color: rgb(104, 104, 91);
110
+ }
111
+
112
+ .ace-tm .ace_entity.ace_name.ace_function {
113
+ color: #0000A2;
114
+ }
115
+
116
+
117
+ .ace-tm .ace_heading {
118
+ color: rgb(12, 7, 255);
119
+ }
120
+
121
+ .ace-tm .ace_list {
122
+ color:rgb(185, 6, 144);
123
+ }
124
+
125
+ .ace-tm .ace_meta.ace_tag {
126
+ color:rgb(0, 22, 142);
127
+ }
128
+
129
+ .ace-tm .ace_string.ace_regex {
130
+ color: rgb(255, 0, 0)
131
+ }
132
+
133
+ .ace-tm .ace_marker-layer .ace_selection {
134
+ background: rgb(181, 213, 255);
135
+ }
136
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
137
+ box-shadow: 0 0 3px 0px white;
138
+ }
139
+ .ace-tm .ace_marker-layer .ace_step {
140
+ background: rgb(252, 255, 0);
141
+ }
142
+
143
+ .ace-tm .ace_marker-layer .ace_stack {
144
+ background: rgb(164, 229, 101);
145
+ }
146
+
147
+ .ace-tm .ace_marker-layer .ace_bracket {
148
+ margin: -1px 0 0 -1px;
149
+ border: 1px solid rgb(192, 192, 192);
150
+ }
151
+
152
+ .ace-tm .ace_marker-layer .ace_active-line {
153
+ background: rgba(0, 0, 0, 0.07);
154
+ }
155
+
156
+ .ace-tm .ace_gutter-active-line {
157
+ background-color : #dcdcdc;
158
+ }
159
+
160
+ .ace-tm .ace_marker-layer .ace_selected-word {
161
+ background: rgb(250, 250, 255);
162
+ border: 1px solid rgb(200, 200, 250);
163
+ }
164
+
165
+ .ace-tm .ace_indent-guide {
166
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
167
+ }
168
+
169
+ .ace-tm .ace_indent-guide-active {
170
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
171
+ }
172
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(n,r,d){r.isDark=!1,r.cssClass="ace-tm",r.cssText=n("./textmate-css"),r.$id="ace/theme/textmate";var h=n("../lib/dom");h.importCssString(r.cssText,r.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(n,r,d){"no use strict";var h=n("./lib/lang"),f=n("./lib/net"),w=n("./lib/dom"),p=n("./lib/app_config").AppConfig;d.exports=r=new p;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(u){if(!g.hasOwnProperty(u))throw new Error("Unknown config key: "+u);return g[u]},r.set=function(u,o){if(g.hasOwnProperty(u))g[u]=o;else if(this.setDefaultValue("",u,o)==!1)throw new Error("Unknown config key: "+u);u=="useStrictCSP"&&w.useStrictCSP(o)},r.all=function(){return h.copyObject(g)},r.$modes={},r.moduleUrl=function(u,o){if(g.$moduleUrls[u])return g.$moduleUrls[u];var c=u.split("/");o=o||c[c.length-2]||"";var m=o=="snippets"?"/":"-",b=c[c.length-1];if(o=="worker"&&m=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");b=b.replace(x,"")}(!b||b==o)&&c.length>1&&(b=c[c.length-2]);var E=g[o+"Path"];return E==null?E=g.basePath:m=="/"&&(o=m=""),E&&E.slice(-1)!="/"&&(E+="/"),E+o+m+b+this.get("suffix")},r.setModuleUrl=function(u,o){return g.$moduleUrls[u]=o};var s=function(u,o){if(u==="ace/theme/textmate"||u==="./theme/textmate")return o(null,n("./theme/textmate"));if(l)return l(u,o);console.error("loader is not configured")},l;r.setLoader=function(u){l=u},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(u,o){var c;if(Array.isArray(u))var m=u[0],b=u[1];else if(typeof u=="string")var b=u;var x=function(E){if(E&&!r.$loading[b])return o&&o(E);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(o),!(r.$loading[b].length>1)){var A=function(){s(b,function(k,v){v&&(r.$loaded[b]=v),r._emit("load.module",{name:b,module:v});var T=r.$loading[b];r.$loading[b]=null,T.forEach(function(R){R&&R(v)})})};if(!r.get("packaged"))return A();f.loadScript(r.moduleUrl(b,m),A),a()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(E){E.default?x(E.default):x(E)});else{try{c=this.$require(b)}catch{}x(c||r.$loaded[b])}},r.$require=function(u){if(typeof d.require=="function"){var o="require";return d[o](u)}},r.setModuleLoader=function(u,o){r.dynamicModules[u]=o};var a=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$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"),a=function(){})};r.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,d){n("./lib/fixoldbrowsers");var h=n("./config");h.setLoader(function(g,s){n([g],function(l){s(null,l)})});var f=function(){return this||typeof window<"u"&&window}();d.exports=function(g){h.init=w,h.$require=n,g.require=n},w(!0);function w(g){if(!(!f||!f.document)){h.set("packaged",g||n.packaged||d.packaged||f.define&&(void 0).packaged);var s={},l="",a=document.currentScript||document._currentScript,u=a&&a.ownerDocument||document;a&&a.src&&(l=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=u.getElementsByTagName("script"),c=0;c<o.length;c++){var m=o[c],b=m.src||m.getAttribute("src");if(b){for(var x=m.attributes,E=0,A=x.length;E<A;E++){var k=x[E];k.name.indexOf("data-ace-")===0&&(s[p(k.name.replace(/^data-ace-/,""))]=k.value)}var v=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);v&&(l=v[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var T in s)typeof s[T]<"u"&&h.set(T,s[T])}}function p(g){return g.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(n,r,d){var h=function(){function f(w,p,g,s){this.start={row:w,column:p},this.end={row:g,column:s}}return f.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},f.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},f.prototype.contains=function(w,p){return this.compare(w,p)==0},f.prototype.compareRange=function(w){var p,g=w.end,s=w.start;return p=this.compare(g.row,g.column),p==1?(p=this.compare(s.row,s.column),p==1?2:p==0?1:0):p==-1?-2:(p=this.compare(s.row,s.column),p==-1?-1:p==1?42:0)},f.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},f.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},f.prototype.intersects=function(w){var p=this.compareRange(w);return p==-1||p==0||p==1},f.prototype.isEnd=function(w,p){return this.end.row==w&&this.end.column==p},f.prototype.isStart=function(w,p){return this.start.row==w&&this.start.column==p},f.prototype.setStart=function(w,p){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=p)},f.prototype.setEnd=function(w,p){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=p)},f.prototype.inside=function(w,p){return this.compare(w,p)==0?!(this.isEnd(w,p)||this.isStart(w,p)):!1},f.prototype.insideStart=function(w,p){return this.compare(w,p)==0?!this.isEnd(w,p):!1},f.prototype.insideEnd=function(w,p){return this.compare(w,p)==0?!this.isStart(w,p):!1},f.prototype.compare=function(w,p){return!this.isMultiLine()&&w===this.start.row?p<this.start.column?-1:p>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?p>=this.start.column?0:-1:this.end.row===w?p<=this.end.column?0:1:0},f.prototype.compareStart=function(w,p){return this.start.row==w&&this.start.column==p?-1:this.compare(w,p)},f.prototype.compareEnd=function(w,p){return this.end.row==w&&this.end.column==p?1:this.compare(w,p)},f.prototype.compareInside=function(w,p){return this.end.row==w&&this.end.column==p?1:this.start.row==w&&this.start.column==p?-1:this.compare(w,p)},f.prototype.clipRows=function(w,p){if(this.end.row>p)var g={row:p+1,column:0};else if(this.end.row<w)var g={row:w,column:0};if(this.start.row>p)var s={row:p+1,column:0};else if(this.start.row<w)var s={row:w,column:0};return f.fromPoints(s||this.start,g||this.end)},f.prototype.extend=function(w,p){var g=this.compare(w,p);if(g==0)return this;if(g==-1)var s={row:w,column:p};else var l={row:w,column:p};return f.fromPoints(s||this.start,l||this.end)},f.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},f.prototype.isMultiLine=function(){return this.start.row!==this.end.row},f.prototype.clone=function(){return f.fromPoints(this.start,this.end)},f.prototype.collapseRows=function(){return this.end.column==0?new f(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new f(this.start.row,0,this.end.row,0)},f.prototype.toScreenRange=function(w){var p=w.documentToScreenPosition(this.start),g=w.documentToScreenPosition(this.end);return new f(p.row,p.column,g.row,g.column)},f.prototype.moveBy=function(w,p){this.start.row+=w,this.start.column+=p,this.end.row+=w,this.end.column+=p},f}();h.fromPoints=function(f,w){return new h(f.row,f.column,w.row,w.column)},h.comparePoints=function(f,w){return f.row-w.row||f.column-w.column},r.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,r,d){for(var h=n("./oop"),f={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},p=0;p<10;p++)w["Digit"+p]=48+p,w["Numpad"+p]=96+p,f.PRINTABLE_KEYS[48+p]=""+p,f.FUNCTION_KEYS[96+p]="Numpad"+p;for(var p=65;p<91;p++){var g=String.fromCharCode(p+32);w["Key"+g.toUpperCase()]=p,f.PRINTABLE_KEYS[p]=g}for(var p=1;p<13;p++)w["F"+p]=111+p,f.FUNCTION_KEYS[111+p]="F"+p;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)w[l]=w[l+"Left"]=w[l+"Right"]=s[l];r.$codeToKeyCode=w,f.PRINTABLE_KEYS[173]="-";for(var a in f.FUNCTION_KEYS){var u=f.FUNCTION_KEYS[a].toLowerCase();f[u]=parseInt(a,10)}for(var a in f.PRINTABLE_KEYS){var u=f.PRINTABLE_KEYS[a].toLowerCase();f[u]=parseInt(a,10)}h.mixin(f,f.MODIFIER_KEYS),h.mixin(f,f.PRINTABLE_KEYS),h.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,function(){for(var o=["cmd","ctrl","alt","shift"],c=Math.pow(2,o.length);c--;)f.KEY_MODS[c]=o.filter(function(m){return c&f.KEY_MODS[m]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",h.mixin(r,f),r.default=r,r.keyCodeToString=function(o){var c=f[o];return typeof c!="string"&&(c=String.fromCharCode(o)),c.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,d){var h=n("./keys"),f=n("./useragent"),w=null,p=0,g;function s(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function l(){return g==null&&s(),g}function a(E,A,k){this.elem=E,this.type=A,this.callback=k}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=r.addListener=function(E,A,k,v){E.addEventListener(A,k,l()),v&&v.$toDestroy.push(new a(E,A,k))},o=r.removeListener=function(E,A,k){E.removeEventListener(A,k,l())};r.stopEvent=function(E){return r.stopPropagation(E),r.preventDefault(E),!1},r.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},r.preventDefault=function(E){E.preventDefault&&E.preventDefault()},r.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||f.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},r.capture=function(E,A,k){var v=E&&E.ownerDocument||document;function T(R){A&&A(R),k&&k(R),o(v,"mousemove",A),o(v,"mouseup",T),o(v,"dragstart",T)}return u(v,"mousemove",A),u(v,"mouseup",T),u(v,"dragstart",T),T},r.addMouseWheelListener=function(E,A,k){u(E,"wheel",function(v){var T=.15,R=v.deltaX||0,O=v.deltaY||0;switch(v.deltaMode){case v.DOM_DELTA_PIXEL:v.wheelX=R*T,v.wheelY=O*T;break;case v.DOM_DELTA_LINE:var M=15;v.wheelX=R*M,v.wheelY=O*M;break;case v.DOM_DELTA_PAGE:var N=150;v.wheelX=R*N,v.wheelY=O*N;break}A(v)},k)},r.addMultiMouseDownListener=function(E,A,k,v,T){var R=0,O,M,N,S={2:"dblclick",3:"tripleclick",4:"quadclick"};function _($){if(r.getButton($)!==0?R=0:$.detail>1?(R++,R>4&&(R=1)):R=1,f.isIE){var L=Math.abs($.clientX-O)>5||Math.abs($.clientY-M)>5;(!N||L)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},A[R-1]||600),R==1&&(O=$.clientX,M=$.clientY)}if($._clicks=R,k[v]("mousedown",$),R>4)R=0;else if(R>1)return k[v](S[R],$)}Array.isArray(E)||(E=[E]),E.forEach(function($){u($,"mousedown",_,T)})};function c(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)}r.getModifierString=function(E){return h.KEY_MODS[c(E)]};function m(E,A,k){var v=c(A);if(!k&&A.code&&(k=h.$codeToKeyCode[A.code]||k),!f.isMac&&w){if(A.getModifierState&&(A.getModifierState("OS")||A.getModifierState("Win"))&&(v|=8),w.altGr)if((3&v)!=3)w.altGr=0;else return;if(k===18||k===17){var T=A.location;if(k===17&&T===1)w[k]==1&&(p=A.timeStamp);else if(k===18&&v===3&&T===2){var R=A.timeStamp-p;R<50&&(w.altGr=!0)}}}if(k in h.MODIFIER_KEYS&&(k=-1),!(!v&&k===13&&A.location===3&&(E(A,v,-k),A.defaultPrevented))){if(f.isChromeOS&&v&8){if(E(A,v,k),A.defaultPrevented)return;v&=-9}return!v&&!(k in h.FUNCTION_KEYS)&&!(k in h.PRINTABLE_KEYS)?!1:E(A,v,k)}}r.addCommandKeyListener=function(E,A,k){var v=null;u(E,"keydown",function(T){w[T.keyCode]=(w[T.keyCode]||0)+1;var R=m(A,T,T.keyCode);return v=T.defaultPrevented,R},k),u(E,"keypress",function(T){v&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),v=null)},k),u(E,"keyup",function(T){w[T.keyCode]=null},k),w||(b(),u(window,"focus",b))};function b(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var x=1;r.nextTick=function(E,A){A=A||window;var k="zero-timeout-message-"+x++,v=function(T){T.data==k&&(r.stopPropagation(T),o(A,"message",v),E())};u(A,"message",v),A.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(E,A){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):E()},A)},r.$idleBlockId=null,r.blockIdle=function(E){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},E||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(E){setTimeout(E,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,d){var h;d.exports={lineMode:!1,pasteCancelled:function(){return h&&h>Date.now()-50?!0:h=!1},cancel:function(){h=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,r,d){var h=n("../lib/event"),f=n("../config").nls,w=n("../lib/useragent"),p=n("../lib/dom"),g=n("../lib/lang"),s=n("../clipboard"),l=w.isChrome<18,a=w.isIE,u=w.isChrome>63,o=400,c=n("../lib/keys"),m=c.KEY_MODS,b=w.isIOS,x=b?/\s/:/\n/,E=w.isMobile,A;A=function(k,v){var T=p.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var R=!1,O=!1,M=!1,N=!1,S="";E||(T.style.fontSize="1px");var _=!1,$=!1,L="",D=0,F=0,B=0,W=Number.MAX_SAFE_INTEGER,q=Number.MIN_SAFE_INTEGER,V=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(W=Number.MAX_SAFE_INTEGER,q=Number.MIN_SAFE_INTEGER,ce<0){V=0;return}V=ce},this.setAriaLabel=function(){var ce="";if(v.$textInputAriaLabel&&(ce+="".concat(v.$textInputAriaLabel,", ")),v.session){var Te=v.session.selection.cursor.row;ce+=f("text-input.aria-label","Cursor at row $0",[Te+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),h.addListener(T,"blur",function(ce){$||(v.onBlur(ce),X=!1)},v),h.addListener(T,"focus",function(ce){if(!$){if(X=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}v.onFocus(ce),w.isEdge?setTimeout(Z):Z()}},v),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:v.renderer.enableKeyboardAccessibility}),S||u||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Te=T.getBoundingClientRect().top!=0}catch{return}var Re=[];if(Te)for(var Ge=T.parentElement;Ge&&Ge.nodeType==1;)Re.push(Ge),Ge.setAttribute("ace_nocontext","true"),!Ge.parentElement&&Ge.getRootNode?Ge=Ge.getRootNode().host:Ge=Ge.parentElement;T.focus({preventScroll:!0}),Te&&Re.forEach(function(Ke){Ke.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},v.on("beforeEndOperation",function(){var ce=v.curOp,Te=ce&&ce.command&&ce.command.name;if(Te!="insertstring"){var Re=Te&&(ce.docChanged||ce.selectionChanged);M&&Re&&(L=T.value="",Jt()),Z()}}),v.on("changeSelection",this.setAriaLabel);var G=function(ce,Te){for(var Re=Te,Ge=1;Ge<=ce-W&&Ge<2*V+1;Ge++)Re+=v.session.getLine(ce-Ge).length+1;return Re},Z=b?function(ce){if(!(!X||R&&!ce||N)){ce||(ce="");var Te=`
173
+ ab`+ce+`cde fg
174
+ `;Te!=T.value&&(T.value=L=Te);var Re=4,Ge=4+(ce.length||(v.selection.isEmpty()?0:1));(D!=Re||F!=Ge)&&T.setSelectionRange(Re,Ge),D=Re,F=Ge}}:function(){if(!(M||N)&&!(!X&&!we)){M=!0;var ce=0,Te=0,Re="";if(v.session){var Ge=v.selection,Ke=Ge.getRange(),gt=Ge.cursor.row;gt===q+1?(W=q+1,q=W+2*V):gt===W-1?(q=W-1,W=q-2*V):(gt<W-1||gt>q+1)&&(W=gt>V?gt-V:0,q=gt>V?gt+V:2*V);for(var mt=[],ht=W;ht<=q;ht++)mt.push(v.session.getLine(ht));if(Re=mt.join(`
175
+ `),ce=G(Ke.start.row,Ke.start.column),Te=G(Ke.end.row,Ke.end.column),Ke.start.row<W){var dt=v.session.getLine(W-1);ce=Ke.start.row<W-1?0:ce,Te+=dt.length+1,Re=dt+`
176
+ `+Re}else if(Ke.end.row>q){var ot=v.session.getLine(q+1);Te=Ke.end.row>q+1?ot.length:Ke.end.column,Te+=Re.length+1,Re=Re+`
177
+ `+ot}else E&&gt>0&&(Re=`
178
+ `+Re,Te+=1,ce+=1);Re.length>o&&(ce<o&&Te<o?Re=Re.slice(0,o):(Re=`
179
+ `,ce==Te?ce=Te=0:(ce=0,Te=1)));var qt=Re+`
180
+
181
+ `;qt!=L&&(T.value=L=qt,D=F=qt.length)}if(we&&(D=T.selectionStart,F=T.selectionEnd),F!=Te||D!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Te),D=ce,F=Te}catch{}M=!1}};this.resetSelection=Z,X&&v.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},J=function(ce){M||(R?R=!1:re(T)?(v.selectAll(),Z()):E&&T.selectionStart!=D&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var we=!1,ve=function(ce,Te){if(we&&(we=!1),O)return Z(),ce&&v.onPaste(ce),O=!1,"";for(var Re=T.selectionStart,Ge=T.selectionEnd,Ke=D,gt=L.length-F,mt=ce,ht=ce.length-Re,dt=ce.length-Ge,ot=0;Ke>0&&L[ot]==ce[ot];)ot++,Ke--;for(mt=mt.slice(ot),ot=1;gt>0&&L.length-ot>D-1&&L[L.length-ot]==ce[ce.length-ot];)ot++,gt--;ht-=ot-1,dt-=ot-1;var qt=mt.length-ot+1;if(qt<0&&(Ke=-qt,qt=0),mt=mt.slice(0,qt),!Te&&!mt&&!ht&&!Ke&&!gt&&!dt)return"";N=!0;var qn=!1;return w.isAndroid&&mt==". "&&(mt=" ",qn=!0),mt&&!Ke&&!gt&&!ht&&!dt||_?v.onTextInput(mt):v.onTextInput(mt,{extendLeft:Ke,extendRight:gt,restoreStart:ht,restoreEnd:dt}),N=!1,L=ce,D=Re,F=Ge,B=dt,qn?`
182
+ `:mt},me=function(ce){if(M)return Ft();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return v.execCommand("undo");if(ce.inputType=="historyRedo")return v.execCommand("redo")}var Te=T.value,Re=ve(Te,!0);(Te.length>o+100||x.test(Re)||E&&D<1&&D==F)&&Z()},Se=function(ce,Te,Re){var Ge=ce.clipboardData||window.clipboardData;if(!(!Ge||l)){var Ke=a||Re?"Text":"text/plain";try{return Te?Ge.setData(Ke,Te)!==!1:Ge.getData(Ke)}catch(gt){if(!Re)return Se(gt,Te,!0)}}},lt=function(ce,Te){var Re=v.getCopyText();if(!Re)return h.preventDefault(ce);Se(ce,Re)?(b&&(Z(Re),R=Re,setTimeout(function(){R=!1},10)),Te?v.onCut():v.onCopy(),h.preventDefault(ce)):(R=!0,T.value=Re,T.select(),setTimeout(function(){R=!1,Z(),Te?v.onCut():v.onCopy()}))},Ht=function(ce){lt(ce,!0)},ft=function(ce){lt(ce,!1)},yt=function(ce){var Te=Se(ce);s.pasteCancelled()||(typeof Te=="string"?(Te&&v.onPaste(Te,ce),w.isIE&&setTimeout(Z),h.preventDefault(ce)):(T.value="",O=!0))};h.addCommandKeyListener(T,function(ce,Te,Re){if(!M)return v.onCommandKey(ce,Te,Re)},v),h.addListener(T,"select",J,v),h.addListener(T,"input",me,v),h.addListener(T,"cut",Ht,v),h.addListener(T,"copy",ft,v),h.addListener(T,"paste",yt,v),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&h.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:ft(ce);break;case 86:yt(ce);break;case 88:Ht(ce);break}},v);var un=function(ce){if(!(M||!v.onCompositionStart||v.$readOnly)&&(M={},!_)){ce.data&&(M.useTextareaForIME=!1),setTimeout(Ft,0),v._signal("compositionStart"),v.on("mousedown",ci);var Te=v.getSelectionRange();Te.end.row=Te.start.row,Te.end.column=Te.start.column,M.markerRange=Te,M.selectionStart=D,v.onCompositionStart(M),M.useTextareaForIME?(L=T.value="",D=0,F=0):(T.msGetInputContext&&(M.context=T.msGetInputContext()),T.getInputContext&&(M.context=T.getInputContext()))}},Ft=function(){if(!(!M||!v.onCompositionUpdate||v.$readOnly)){if(_)return ci();if(M.useTextareaForIME)v.onCompositionUpdate(T.value);else{var ce=T.value;ve(ce),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+F-M.selectionStart+B)}}},Jt=function(ce){!v.onCompositionEnd||v.$readOnly||(M=!1,v.onCompositionEnd(),v.off("mousedown",ci),ce&&me())};function ci(){$=!0,T.blur(),T.focus(),$=!1}var Tn=g.delayedCall(Ft,50).schedule.bind(null,null);function rn(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(M||(L=T.value),D=F=-1,Z()),Tn()}h.addListener(T,"compositionstart",un,v),h.addListener(T,"compositionupdate",Ft,v),h.addListener(T,"keyup",rn,v),h.addListener(T,"keydown",Tn,v),h.addListener(T,"compositionend",Jt,v),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){we=!0,Z(),v._emit("nativecontextmenu",{target:v,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Te){S||(S=T.style.cssText),T.style.cssText=(Te?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(D+F)*v.renderer.characterWidth*.5+"px;";var Re=v.container.getBoundingClientRect(),Ge=p.computedStyle(v.container),Ke=Re.top+(parseInt(Ge.borderTopWidth)||0),gt=Re.left+(parseInt(Re.borderLeftWidth)||0),mt=Re.bottom-Ke-T.clientHeight-2,ht=function(dt){p.translate(T,dt.clientX-gt-2,Math.min(dt.clientY-Ke-2,mt))};ht(ce),ce.type=="mousedown"&&(v.renderer.$isMousePressed=!0,clearTimeout(Be),w.isWin&&h.capture(v.container,ht,ze))},this.onContextMenuClose=ze;var Be;function ze(){clearTimeout(Be),Be=setTimeout(function(){S&&(T.style.cssText=S,S=""),v.renderer.$isMousePressed=!1,v.renderer.$keepTextAreaAtCursor&&v.renderer.$moveTextAreaToCursor()},0)}var on=function(ce){v.textInput.onContextMenu(ce),ze()};h.addListener(T,"mouseup",on,v),h.addListener(T,"mousedown",function(ce){ce.preventDefault(),ze()},v),h.addListener(v.renderer.scroller,"contextmenu",on,v),h.addListener(T,"contextmenu",on,v),b&&Ue(k,v,T);function Ue(ce,Te,Re){var Ge=null,Ke=!1;Re.addEventListener("keydown",function(mt){Ge&&clearTimeout(Ge),Ke=!0},!0),Re.addEventListener("keyup",function(mt){Ge=setTimeout(function(){Ke=!1},100)},!0);var gt=function(mt){if(document.activeElement===Re&&!(Ke||M||Te.$mouseHandler.isMousePressed)&&!R){var ht=Re.selectionStart,dt=Re.selectionEnd,ot=null,qt=0;if(ht==0?ot=c.up:ht==1?ot=c.home:dt>F&&L[dt]==`
183
+ `?ot=c.end:ht<D&&L[ht-1]==" "?(ot=c.left,qt=m.option):ht<D||ht==D&&F!=D&&ht==dt?ot=c.left:dt>F&&L.slice(0,dt).split(`
184
+ `).length>2?ot=c.down:dt>F&&L[dt-1]==" "?(ot=c.right,qt=m.option):(dt>F||dt==F&&F!=D&&ht==dt)&&(ot=c.right),ht!==dt&&(qt|=m.shift),ot){var qn=Te.onCommandKey({},qt,ot);if(!qn&&Te.commands){ot=c.keyCodeToString(ot);var ki=Te.commands.findKeyCommand(qt,ot);ki&&Te.execCommand(ki)}D=ht,F=dt,Z("")}}};document.addEventListener("selectionchange",gt),Te.on("destroy",function(){document.removeEventListener("selectionchange",gt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=A,r.$setUserAgentForTests=function(k,v){E=k,b=v}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,d){var h=n("../lib/useragent"),f=0,w=550,p=function(){function l(a){a.$clickSelection=null;var u=a.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(c){a[c]=this[c]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return l.prototype.onMouseDown=function(a){var u=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var c=this.editor,m=a.getButton();if(m!==0){var b=c.getSelectionRange(),x=b.isEmpty();(x||m==1)&&c.selection.moveToPosition(o),m==2&&(c.textInput.onContextMenu(a.domEvent),h.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!c.isFocused()&&(c.focus(),this.$focusTimeout&&!this.$clickSelection&&!c.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(o,a.domEvent._clicks>1),a.preventDefault()},l.prototype.startSelect=function(a,u){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):u||o.selection.moveToPosition(a),u||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var a,u=this.editor,o=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var c=this.$clickSelection.comparePoint(o);if(c==-1)a=this.$clickSelection.end;else if(c==1)a=this.$clickSelection.start;else{var m=s(this.$clickSelection,o);o=m.cursor,a=m.anchor}u.selection.setSelectionAnchor(a.row,a.column)}u.selection.selectToPosition(o),u.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(a){var u,o=this.editor,c=o.renderer.screenToTextCoordinates(this.x,this.y),m=o.selection[a](c.row,c.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(m.start),x=this.$clickSelection.comparePoint(m.end);if(b==-1&&x<=0)u=this.$clickSelection.end,(m.end.row!=c.row||m.end.column!=c.column)&&(c=m.start);else if(x==1&&b>=0)u=this.$clickSelection.start,(m.start.row!=c.row||m.start.column!=c.column)&&(c=m.end);else if(b==-1&&x==1)c=m.end,u=m.start;else{var E=s(this.$clickSelection,c);c=E.cursor,u=E.anchor}o.selection.setSelectionAnchor(u.row,u.column)}o.selection.selectToPosition(c),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var a=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(a>f||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(a){var u=a.getDocumentPosition(),o=this.editor,c=o.session,m=c.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=o.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},l.prototype.onTripleClick=function(a){var u=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var c=o.getSelectionRange();c.isMultiLine()&&c.contains(u.row,u.column)?(this.$clickSelection=o.selection.getLineRange(c.start.row),this.$clickSelection.end=o.selection.getLineRange(c.end.row).end):this.$clickSelection=o.selection.getLineRange(u.row),this.select()},l.prototype.onQuadClick=function(a){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,c=a.domEvent.timeStamp,m=c-o.t,b=m?a.wheelX/m:o.vx,x=m?a.wheelY/m:o.vy;m<w&&(b=(b+o.vx)/2,x=(x+o.vy)/2);var E=Math.abs(b/x),A=!1;if(E>=1&&u.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(A=!0),E<=1&&u.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(A=!0),A)o.allowed=c;else if(c-o.allowed<w){var k=Math.abs(b)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=c):o.allowed=0}if(o.t=c,o.vx=b,o.vy=x,A)return u.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},l}();p.prototype.selectEnd=p.prototype.selectByLinesEnd,p.prototype.selectAllEnd=p.prototype.selectByLinesEnd,p.prototype.selectByWordsEnd=p.prototype.selectByLinesEnd,r.DefaultHandlers=p;function g(l,a,u,o){return Math.sqrt(Math.pow(u-l,2)+Math.pow(o-a,2))}function s(l,a){if(l.start.row==l.end.row)var u=2*a.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var u=a.column-4;else var u=2*a.row-l.start.row-l.end.row;return u<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(n,r,d){r.preventParentScroll=function(h){h.stopPropagation();var f=h.currentTarget,w=f.scrollHeight>f.clientHeight;w||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,d){var h=this&&this.__extends||function(){var c=function(m,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var A in E)Object.prototype.hasOwnProperty.call(E,A)&&(x[A]=E[A])},c(m,b)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");c(m,b);function x(){this.constructor=m}m.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),f=this&&this.__values||function(c){var m=typeof Symbol=="function"&&Symbol.iterator,b=m&&c[m],x=0;if(b)return b.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&x>=c.length&&(c=void 0),{value:c&&c[x++],done:!c}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},w=n("./lib/dom");n("./lib/event");var p=n("./range").Range,g=n("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function c(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return c.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},c.prototype.getElement=function(){return this.$element||this.$init()},c.prototype.setText=function(m){this.getElement().textContent=m},c.prototype.setHtml=function(m){this.getElement().innerHTML=m},c.prototype.setPosition=function(m,b){this.getElement().style.left=m+"px",this.getElement().style.top=b+"px"},c.prototype.setClassName=function(m){w.addCssClass(this.getElement(),m)},c.prototype.setTheme=function(m){this.$element.className=s+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},c.prototype.show=function(m,b,x){m!=null&&this.setText(m),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},c.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},c.prototype.getHeight=function(){return this.getElement().offsetHeight},c.prototype.getWidth=function(){return this.getElement().offsetWidth},c.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},c}(),a=function(){function c(){this.popups=[]}return c.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},c.prototype.removePopup=function(m){var b=this.popups.indexOf(m);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},c.prototype.updatePopups=function(){var m,b,x,E;this.popups.sort(function(S,_){return _.priority-S.priority});var A=[];try{for(var k=f(this.popups),v=k.next();!v.done;v=k.next()){var T=v.value,R=!0;try{for(var O=(x=void 0,f(A)),M=O.next();!M.done;M=O.next()){var N=M.value;if(this.doPopupsOverlap(N,T)){R=!1;break}}}catch(S){x={error:S}}finally{try{M&&!M.done&&(E=O.return)&&E.call(O)}finally{if(x)throw x.error}}R?A.push(T):T.hide()}}catch(S){m={error:S}}finally{try{v&&!v.done&&(b=k.return)&&b.call(k)}finally{if(m)throw m.error}}},c.prototype.doPopupsOverlap=function(m,b){var x=m.getElement().getBoundingClientRect(),E=b.getElement().getBoundingClientRect();return x.left<E.right&&x.right>E.left&&x.top<E.bottom&&x.bottom>E.top},c}(),u=new a;r.popupManager=u,r.Tooltip=l;var o=function(c){h(m,c);function m(b){b===void 0&&(b=document.body);var x=c.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var E=x.getElement();return E.style.whiteSpace="pre-wrap",E.style.pointerEvents="auto",E.addEventListener("mouseout",x.onMouseOut),E.tabIndex=-1,E.addEventListener("blur",(function(){E.contains(document.activeElement)||this.hide()}).bind(x)),E.addEventListener("wheel",g),x}return m.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide),b.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide),b.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var E=x.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(b){var x=b.editor,E=b.getDocumentPosition(),A=x.session.getLine(E.row);if(E.column==A.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),v=x.session.documentToScreenPosition(E.row,E.column);if(v.column!=k.column||v.row!=k.row)return!0}return!1},m.prototype.setDataProvider=function(b){this.$gatherData=b},m.prototype.showForRange=function(b,x,E,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var v=b.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(v.theme)),this.isOpen=!0,this.addMarker(x,b.session),this.range=p.fromPoints(x.start,x.end);var T=v.textToScreenCoordinates(x.start.row,x.start.column),R=v.scroller.getBoundingClientRect();T.pageX<R.left&&(T.pageX=R.left);var O=this.getElement();O.innerHTML="",O.appendChild(E),O.style.maxHeight="",O.style.display="block";var M=O.clientHeight,N=O.clientWidth,S=window.innerHeight-T.pageY-v.lineHeight,_=!0;T.pageY-M<0&&T.pageY<S&&(_=!1),O.style.maxHeight=(_?T.pageY:S)-k+"px",O.style.top=_?"":T.pageY+v.lineHeight+"px",O.style.bottom=_?window.innerHeight-T.pageY+"px":"",O.style.left=Math.min(T.pageX,window.innerWidth-N-k)+"px"}},m.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},m.prototype.hide=function(b){!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,u.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},m}(l);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(n,r,d){var h=this&&this.__extends||function(){var u=function(o,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,b){m.__proto__=b}||function(m,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(m[x]=b[x])},u(o,c)};return function(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");u(o,c);function m(){this.constructor=o}o.prototype=c===null?Object.create(c):(m.prototype=c.prototype,new m)}}(),f=this&&this.__values||function(u){var o=typeof Symbol=="function"&&Symbol.iterator,c=o&&u[o],m=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=n("../lib/dom"),p=n("../lib/event"),g=n("../tooltip").Tooltip,s=n("../config").nls;n("../lib/lang");function l(u){var o=u.editor,c=o.renderer.$gutterLayer,m=new a(o);u.editor.setDefaultHandler("guttermousedown",function(v){if(!(!o.isFocused()||v.getButton()!=0)){var T=c.getRegion(v);if(T!="foldWidgets"){var R=v.getDocumentPosition().row,O=o.session.selection;if(v.getShiftKey())O.selectTo(R,0);else{if(v.domEvent.detail==2)return o.selectAll(),v.preventDefault();u.$clickSelection=o.selection.getLineRange(R)}return u.setState("selectByLines"),u.captureMouse(v),v.preventDefault()}}});var b,x;function E(){var v=x.getDocumentPosition().row,T=o.session.getLength();if(v==T){var R=o.renderer.pixelToScreenCoordinates(0,x.y).row,O=x.$pos;if(R>o.session.documentToScreenRow(O.row,O.column))return A()}if(m.showTooltip(v),!!m.isOpen)if(o.on("mousewheel",A),u.$tooltipFollowsMouse)k(x);else{var M=x.getGutterRow(),N=c.$lines.get(M);if(N){var S=N.element.querySelector(".ace_gutter_annotation"),_=S.getBoundingClientRect(),$=m.getElement().style;$.left=_.right+"px",$.top=_.bottom+"px"}else k(x)}}function A(){b&&(b=clearTimeout(b)),m.isOpen&&(m.hideTooltip(),o.off("mousewheel",A))}function k(v){m.setPosition(v.x,v.y)}u.editor.setDefaultHandler("guttermousemove",function(v){var T=v.domEvent.target||v.domEvent.srcElement;if(w.hasCssClass(T,"ace_fold-widget"))return A();m.isOpen&&u.$tooltipFollowsMouse&&k(v),x=v,!b&&(b=setTimeout(function(){b=null,x&&!u.isMousePressed?E():A()},50))}),p.addListener(o.renderer.$gutter,"mouseout",function(v){x=null,!(!m.isOpen||b)&&(b=setTimeout(function(){b=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}r.GutterHandler=l;var a=function(u){h(o,u);function o(c){var m=u.call(this,c.container)||this;return m.editor=c,m}return o.prototype.setPosition=function(c,m){var b=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,E=this.getWidth(),A=this.getHeight();c+=15,m+=15,c+E>b&&(c-=c+E-b),m+A>x&&(m-=20+A),g.prototype.setPosition.call(this,c,m)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(c){var m,b=this.editor.renderer.$gutterLayer,x=b.$annotations[c],E;x?E={displayText:Array.from(x.displayText),type:Array.from(x.type)}:E={displayText:[],type:[]};var A=b.session.getFoldLine(c);if(A&&b.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},v={error:1,security:2,warning:3,info:4,hint:5},T,R=c+1;R<=A.end.row;R++)if(b.$annotations[R])for(var O=0;O<b.$annotations[R].text.length;O++){var M=b.$annotations[R].type[O];k[M].push(b.$annotations[R].text[O]),(!T||v[M]<v[T])&&(T=M)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");E.displayText.push(N),E.type.push(T+"_fold")}}if(E.displayText.length===0)return this.hide();for(var S={error:[],security:[],warning:[],info:[],hint:[]},_=b.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<E.displayText.length;R++){var $=w.createElement("span"),L=w.createElement("span");(m=L.classList).add.apply(m,["ace_".concat(E.type[R]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[E.type[R].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(w.createTextNode(" ")),$.appendChild(L),$.appendChild(w.createTextNode(E.displayText[R])),$.appendChild(w.createElement("br")),S[E.type[R].replace("_fold","")].push($)}var D=this.getElement();w.removeChildren(D),S.error.forEach(function(F){return D.appendChild(F)}),S.security.forEach(function(F){return D.appendChild(F)}),S.warning.forEach(function(F){return D.appendChild(F)}),S.info.forEach(function(F){return D.appendChild(F)}),S.hint.forEach(function(F){return D.appendChild(F)}),D.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},o.annotationsToSummaryString=function(c){var m,b,x=[],E=["error","security","warning","info","hint"];try{for(var A=f(E),k=A.next();!k.done;k=A.next()){var v=k.value;if(c[v].length){var T=c[v].length===1?o.annotationLabels[v].singular:o.annotationLabels[v].plural;x.push("".concat(c[v].length," ").concat(T))}}}catch(R){m={error:R}}finally{try{k&&!k.done&&(b=A.return)&&b.call(A)}finally{if(m)throw m.error}}return x.join(", ")},o}(g);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,d){var h=n("../lib/event"),f=n("../lib/useragent"),w=function(){function p(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return p.prototype.stopPropagation=function(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},p.prototype.preventDefault=function(){h.preventDefault(this.domEvent),this.defaultPrevented=!0},p.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},p.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},p.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},p.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},p.prototype.getButton=function(){return h.getButton(this.domEvent)},p.prototype.getShiftKey=function(){return this.domEvent.shiftKey},p.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},p}();r.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,d){var h=n("../lib/dom"),f=n("../lib/event"),w=n("../lib/useragent"),p=200,g=200,s=5;function l(u){var o=u.editor,c=h.createElement("div");c.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",c.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(G){u[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(u));var b=o.container,x,E,A,k,v,T,R=0,O,M,N,S,_;this.onDragStart=function(G){if(this.cancelDrag||!b.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}v=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(c),re.setDragImage&&re.setDragImage(c,0,0),setTimeout(function(){o.container.removeChild(c)}),re.clearData(),re.setData("Text",o.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(G){if(b.draggable=!1,M=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!O&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!V(G.dataTransfer)))return E=G.clientX,A=G.clientY,x||F(),R++,G.dataTransfer.dropEffect=O=X(G),f.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!V(G.dataTransfer)))return E=G.clientX,A=G.clientY,x||(F(),R++),W!==null&&(W=null),G.dataTransfer.dropEffect=O=X(G),f.preventDefault(G)},this.onDragLeave=function(G){if(R--,R<=0&&x)return B(),O=null,f.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(M)switch(O){case"move":v.contains(T.row,T.column)?v={start:T,end:T}:v=o.moveText(v,T);break;case"copy":v=o.moveText(v,T,!0);break}else{var re=Z.getData("Text");v={start:T,end:o.session.insert(T,re)},o.focus(),O=null}return B(),f.preventDefault(G)}},f.addListener(b,"dragstart",this.onDragStart.bind(u),o),f.addListener(b,"dragend",this.onDragEnd.bind(u),o),f.addListener(b,"dragenter",this.onDragEnter.bind(u),o),f.addListener(b,"dragover",this.onDragOver.bind(u),o),f.addListener(b,"dragleave",this.onDragLeave.bind(u),o),f.addListener(b,"drop",this.onDrop.bind(u),o);function $(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!S||J||ae)o.moveCursorToPosition(G),S=re,_={x:E,y:A};else{var we=a(_.x,_.y,E,A);we>s?S=null:re-S>=g&&(o.renderer.scrollCursorIntoView(),S=null)}}function L(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,we=o.renderer.scroller.getBoundingClientRect(),ve={x:{left:E-we.left,right:we.right-E},y:{top:A-we.top,bottom:we.bottom-A}},me=Math.min(ve.x.left,ve.x.right),Se=Math.min(ve.y.top,ve.y.bottom),lt={row:G.row,column:G.column};me/ae<=2&&(lt.column+=ve.x.left<ve.x.right?-3:2),Se/J<=1&&(lt.row+=ve.y.top<ve.y.bottom?-1:1);var Ht=G.row!=lt.row,ft=G.column!=lt.column,yt=!Z||G.row!=Z.row;Ht||ft&&!yt?N?re-N>=p&&o.renderer.scrollCursorIntoView(lt):N=re:N=null}function D(){var G=T;T=o.renderer.screenToTextCoordinates(E,A),$(T,G),L(T,G)}function F(){v=o.selection.toOrientedRange(),x=o.session.addMarker(v,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),D(),k=setInterval(D,20),R=0,f.addListener(document,"mousemove",q)}function B(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(v),o.isFocused()&&!M&&o.$resetCursorStyle(),v=null,T=null,R=0,N=null,S=null,f.removeListener(document,"mousemove",q)}var W=null;function q(){W==null&&(W=setTimeout(function(){W!=null&&x&&B()},20))}function V(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var we="none";return J&&Z.indexOf(ae)>=0?we="copy":re.indexOf(ae)>=0?we="move":Z.indexOf(ae)>=0&&(we="copy"),we}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,o=u.container;o.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var c=w.isWin?"default":"move";u.renderer.setCursorStyle(c),this.setState("dragReady")},this.onMouseDrag=function(u){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var c=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);c>3&&o.dragDrop()}if(this.state==="dragWait"){var c=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);c>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var o=this.editor,c=u.inSelection(),m=u.getButton(),b=u.domEvent.detail||1;if(b===1&&m===0&&c){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var E=o.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(l.prototype);function a(u,o,c,m){return Math.sqrt(Math.pow(c-u,2)+Math.pow(m-o,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,d){var h=n("./mouse_event").MouseEvent,f=n("../lib/event"),w=n("../lib/dom");r.addTouchListeners=function(p,g){var s="scroll",l,a,u,o,c,m,b=0,x,E=0,A=0,k=0,v,T;function R(){var $=window.navigator&&window.navigator.clipboard,L=!1,D=function(){var W=g.getCopyText(),q=g.session.getUndoManager().hasUndo();T.replaceChild(w.buildDom(L?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],q&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(W){return g.commands.canExecute(W,g)},B=function(W){var q=W.target.getAttribute("action");if(q=="more"||!L)return L=!L,D();q=="paste"?$.readText().then(function(V){g.execCommand(q,V)}):q&&((q=="cut"||q=="copy")&&($?$.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(q)),T.firstChild.style.display="none",L=!1,q!="openCommandPalette"&&g.focus()};T=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){s="menu",W.stopPropagation(),W.preventDefault(),g.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),B(W)},onclick:B},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function O(){if(!g.getOption("enableMobileMenu")){T&&M();return}T||R();var $=g.selection.cursor,L=g.renderer.textToScreenCoordinates($.row,$.column),D=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,B=g.container.getBoundingClientRect();T.style.top=L.pageY-B.top-3+"px",L.pageX-B.left<B.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=D+F-B.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",M)}function M($){T&&(T.style.display="none"),g.off("input",M)}function N(){c=null,clearTimeout(c);var $=g.selection.getRange(),L=$.contains(x.row,x.column);($.isEmpty()||!L)&&(g.selection.moveToPosition(x),g.selection.selectWord()),s="wait",O()}function S(){c=null,clearTimeout(c),g.selection.moveToPosition(x);var $=E>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);$&&!$.isEmpty()?g.selection.setRange($):g.selection.selectWord(),s="wait"}f.addListener(p,"contextmenu",function($){if(v){var L=g.textInput.getElement();L.focus()}},g),f.addListener(p,"touchstart",function($){var L=$.touches;if(c||L.length>1){clearTimeout(c),c=null,u=-1,s="zoom";return}v=g.$mouseHandler.isMousePressed=!0;var D=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,B=$.timeStamp;o=B;var W=L[0],q=W.clientX,V=W.clientY;Math.abs(l-q)+Math.abs(a-V)>D&&(u=-1),l=$.clientX=q,a=$.clientY=V,A=k=0;var X=new h($,g);if(x=X.getDocumentPosition(),B-u<500&&L.length==1&&!b)E++,$.preventDefault(),$.button=0,S();else{E=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,re=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),we=g.renderer.layerConfig.offset,ve=g.renderer.scrollLeft,me=function(Ht,ft){return Ht=Ht/F,ft=ft/D-.75,Ht*Ht+ft*ft};if($.clientX<ae.left){s="zoom";return}var Se=me($.clientX-ae.left-re.left+ve,$.clientY-ae.top-re.top+we),lt=me($.clientX-ae.left-J.left+ve,$.clientY-ae.top-J.top+we);Se<3.5&&lt<3.5&&(s=Se>lt?"cursor":"anchor"),lt<3.5?s="anchor":Se<3.5?s="cursor":s="scroll",c=setTimeout(N,450)}u=B},g),f.addListener(p,"touchend",function($){v=g.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",b=0):c?(g.selection.moveToPosition(x),b=0,O()):s=="scroll"?(_(),M()):O(),clearTimeout(c),c=null},g),f.addListener(p,"touchmove",function($){c&&(clearTimeout(c),c=null);var L=$.touches;if(!(L.length>1||s=="zoom")){var D=L[0],F=l-D.clientX,B=a-D.clientY;if(s=="wait")if(F*F+B*B>4)s="cursor";else return $.preventDefault();l=D.clientX,a=D.clientY,$.clientX=D.clientX,$.clientY=D.clientY;var W=$.timeStamp,q=W-o;if(o=W,s=="scroll"){var V=new h($,g);V.speed=1,V.wheelX=F,V.wheelY=B,10*Math.abs(F)<Math.abs(B)&&(F=0),10*Math.abs(B)<Math.abs(F)&&(B=0),q!=0&&(A=F/q,k=B/q),g._emit("mousewheel",V),V.propagationStopped||(A=k=0)}else{var X=new h($,g),G=X.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(G):s=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),$.preventDefault()}}},g);function _(){b+=60,m=setInterval(function(){b--<=0&&(clearInterval(m),m=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),b<20&&(A=.9*A),b<20&&(k=.9*k);var $=g.session.getScrollTop();g.renderer.scrollBy(10*A,10*k),$==g.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(n,r,d){var h=n("../lib/event"),f=n("../lib/useragent"),w=n("./default_handlers").DefaultHandlers,p=n("./default_gutter_handler").GutterHandler,g=n("./mouse_event").MouseEvent,s=n("./dragdrop_handler").DragdropHandler,l=n("./touch_handler").addTouchListeners,a=n("../config"),u=function(){function o(c){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=c,new w(this),new p(this),new s(this);var b=function(A){var k=!document.hasFocus||!document.hasFocus()||!c.isFocused()&&document.activeElement==(c.textInput&&c.textInput.getElement());k&&window.focus(),c.focus(),setTimeout(function(){c.isFocused()||c.focus()})},x=c.renderer.getMouseEventTarget();h.addListener(x,"click",this.onMouseEvent.bind(this,"click"),c),h.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),c),h.addMultiMouseDownListener([x,c.renderer.scrollBarV&&c.renderer.scrollBarV.inner,c.renderer.scrollBarH&&c.renderer.scrollBarH.inner,c.textInput&&c.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",c),h.addMouseWheelListener(c.container,this.onMouseWheel.bind(this,"mousewheel"),c),l(c.container,c);var E=c.renderer.$gutter;h.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),c),h.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),c),h.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),c),h.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),c),h.addListener(x,"mousedown",b,c),h.addListener(E,"mousedown",b,c),f.isIE&&c.renderer.scrollBarV&&(h.addListener(c.renderer.scrollBarV.element,"mousedown",b,c),h.addListener(c.renderer.scrollBarH.element,"mousedown",b,c)),c.on("mousemove",function(A){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var k=c.renderer.screenToTextCoordinates(A.x,A.y),v=c.session.selection.getRange(),T=c.renderer;!v.isEmpty()&&v.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},c)}return o.prototype.onMouseEvent=function(c,m){this.editor.session&&this.editor._emit(c,new g(m,this.editor))},o.prototype.onMouseMove=function(c,m){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(c,new g(m,this.editor))},o.prototype.onMouseWheel=function(c,m){var b=new g(m,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=m.wheelX,b.wheelY=m.wheelY,this.editor._emit(c,b)},o.prototype.setState=function(c){this.state=c},o.prototype.captureMouse=function(c,m){this.x=c.x,this.y=c.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var E=this,A=function(O){if(O){if(f.isWebKit&&!O.which&&E.releaseMouse)return E.releaseMouse();E.x=O.clientX,E.y=O.clientY,m&&m(O),E.mouseEvent=new g(O,E.editor),E.$mouseMoved=!0}},k=function(O){b.off("beforeEndOperation",T),clearInterval(R),b.session&&v(),E[E.state+"End"]&&E[E.state+"End"](O),E.state="",E.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,O&&E.onMouseEvent("mouseup",O),b.endOperation()},v=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(f.isOldIE&&c.domEvent.type=="dblclick")return setTimeout(function(){k(c)});var T=function(O){E.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};b.on("beforeEndOperation",T),b.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=A,E.releaseMouse=h.capture(this.editor.container,A,k);var R=setInterval(v,20)},o.prototype.cancelContextMenu=function(){var c=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",c),m&&m.domEvent&&h.stopEvent(m.domEvent))}).bind(this);setTimeout(c,10),this.editor.on("nativecontextmenu",c)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();u.prototype.releaseMouse=null,a.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=u}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(n,r,d){var h=n("../lib/dom"),f=function(){function w(p){p.on("click",function(g){var s=g.getDocumentPosition(),l=p.session,a=l.getFoldAt(s.row,s.column,1);a&&(g.getAccelKey()?l.removeFold(a):l.expandFold(a),g.stop());var u=g.domEvent&&g.domEvent.target;u&&h.hasCssClass(u,"ace_inline_button")&&h.hasCssClass(u,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),p.renderer.scrollCursorIntoView())}),p.on("gutterclick",function(g){var s=p.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,a=p.session;a.foldWidgets&&a.foldWidgets[l]&&p.session.onFoldWidgetClick(l,g),p.isFocused()||p.focus(),g.stop()}}),p.on("gutterdblclick",function(g){var s=p.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,a=p.session,u=a.getParentFoldRangeData(l,!0),o=u.range||u.firstRange;if(o){l=o.start.row;var c=a.getFoldAt(l,a.getLine(l).length,1);c?a.removeFold(c):(a.addFold("...",o),p.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return w}();r.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(n,r,d){var h=n("../lib/keys"),f=n("../lib/event"),w=function(){function p(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return p.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},p.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},p.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},p.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},p.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},p.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,g)||""}).filter(Boolean).join(" ")},p.prototype.$callKeyboardHandlers=function(g,s,l,a){for(var u,o=!1,c=this.$editor.commands,m=this.$handlers.length;m--&&(u=this.$handlers[m].handleKeyboard(this.$data,g,s,l,a),!(!(!u||!u.command)&&(u.command=="null"?o=!0:o=c.exec(u.command,this.$editor,u.args,a),o&&a&&g!=-1&&u.passEvent!=!0&&u.command.passEvent!=!0&&f.stopEvent(a),o))););return!o&&g==-1&&(u={command:"insertstring"},o=c.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",u),o},p.prototype.onCommandKey=function(g,s,l){var a=h.keyCodeToString(l);return this.$callKeyboardHandlers(s,a,l,g)},p.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},p}();r.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(n,r,d){var h=0,f=0,w=!1,p=!1,g=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],a=0,u=1,o=0,c=1,m=2,b=3,x=4,E=5,A=6,k=7,v=8,T=9,R=10,O=11,M=12,N=13,S=14,_=15,$=16,L=17,D=18,F=[D,D,D,D,D,D,D,D,D,A,E,A,v,E,D,D,D,D,D,D,D,D,D,D,D,D,D,D,E,E,E,A,v,x,x,O,O,O,x,x,x,x,x,R,T,R,T,T,m,m,m,m,m,m,m,m,m,m,T,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,D,D,D,D,D,D,E,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,T,x,O,O,O,O,x,x,x,x,o,x,x,D,x,x,O,O,m,m,x,o,x,x,x,m,o,x,x,x,x,x],B=[v,v,v,v,v,v,v,v,v,v,v,D,D,D,o,c,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,v,E,N,S,_,$,L,T,O,O,O,O,O,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,T,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,v];function W(G,Z,re,J){var ae=h?l:s,we=null,ve=null,me=null,Se=0,lt=null,Ht=null,ft=-1,yt=null,un=null,Ft=[];if(!J)for(yt=0,J=[];yt<re;yt++)J[yt]=X(G[yt]);for(f=h,w=!1,p=!1,g=!1,un=0;un<re;un++){if(we=Se,Ft[un]=ve=V(G,J,Ft,un),Se=ae[we][ve],lt=Se&240,Se&=15,Z[un]=me=ae[Se][5],lt>0)if(lt==16){for(yt=ft;yt<un;yt++)Z[yt]=1;ft=-1}else ft=-1;if(Ht=ae[Se][6],Ht)ft==-1&&(ft=un);else if(ft>-1){for(yt=ft;yt<un;yt++)Z[yt]=me;ft=-1}J[un]==E&&(Z[un]=0),f|=me}if(g){for(yt=0;yt<re;yt++)if(J[yt]==A){Z[yt]=h;for(var Jt=yt-1;Jt>=0&&J[Jt]==v;Jt--)Z[Jt]=h}}}function q(G,Z,re){if(!(f<G)){if(G==1&&h==u&&!p){re.reverse();return}for(var J=re.length,ae=0,we,ve,me,Se;ae<J;){if(Z[ae]>=G){for(we=ae+1;we<J&&Z[we]>=G;)we++;for(ve=ae,me=we-1;ve<me;ve++,me--)Se=re[ve],re[ve]=re[me],re[me]=Se;ae=we}ae++}}}function V(G,Z,re,J){var ae=Z[J],we,ve,me,Se;switch(ae){case o:case c:w=!1;case x:case b:return ae;case m:return w?b:m;case k:return w=!0,c;case v:return x;case T:return J<1||J+1>=Z.length||(we=re[J-1])!=m&&we!=b||(ve=Z[J+1])!=m&&ve!=b?x:(w&&(ve=b),ve==we?ve:x);case R:return we=J>0?re[J-1]:E,we==m&&J+1<Z.length&&Z[J+1]==m?m:x;case O:if(J>0&&re[J-1]==m)return m;if(w)return x;for(Se=J+1,me=Z.length;Se<me&&Z[Se]==O;)Se++;return Se<me&&Z[Se]==m?m:x;case M:for(me=Z.length,Se=J+1;Se<me&&Z[Se]==M;)Se++;if(Se<me){var lt=G[J],Ht=lt>=1425&&lt<=2303||lt==64286;if(we=Z[Se],Ht&&(we==c||we==k))return c}return J<1||(we=Z[J-1])==E?x:re[J-1];case E:return w=!1,p=!0,h;case A:return g=!0,x;case N:case S:case $:case L:case _:w=!1;case D:return x}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?c:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?M:/[\u0660-\u0669\u066b-\u066c]/.test(G)?b:Z==1642?O:/[\u06f0-\u06f9]/.test(G)?m:k:re==32&&Z<=8287?B[Z&255]:re==254&&Z>=65136?k:x}r.L=o,r.R=c,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),we=new Array(J.length),ve=[];h=re?u:a,W(J,ve,J.length,Z);for(var me=0;me<ae.length;ae[me]=me,me++);q(2,ve,ae),q(1,ve,ae);for(var me=0;me<ae.length-1;me++)Z[me]===b?ve[me]=r.AN:ve[me]===c&&(Z[me]>k&&Z[me]<N||Z[me]===x||Z[me]===D)?ve[me]=r.ON_R:me>0&&J[me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[me])&&(ve[me-1]=ve[me]=r.R_H,me++);J[J.length-1]===r.DOT&&(ve[J.length-1]=r.B),J[0]==="‫"&&(ve[0]=r.RLE);for(var me=0;me<ae.length;me++)we[me]=ve[ae[me]];return{logicalFromVisual:ae,bidiLevels:we}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==c||Z[J]==k||Z[J]==b)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(n,r,d){var h=n("./lib/bidiutil"),f=n("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,p=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=h,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(s.getValue())}return g.prototype.isBidiRow=function(s,l,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&w.test(s.lines.join(`
185
+ `))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var a=this.session.$getRowCacheIndex(l,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},g.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var a,u=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(l,this.currentRow-s-1),a===u);)u=a,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,u=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(l===void 0&&(l=this.getSplitIndex()),l>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[h.L],this.line=l<o.length?this.line.substring(o[l-1],o[l]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[l]),l==o.length&&(this.line+=this.showInvisibles?u:h.DOT))}else this.line+=this.showInvisibles?u:h.DOT;var c=this.session,m=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,E){return x===" "||c.isFullWidth(x.charCodeAt(0))?(b=x===" "?c.getScreenTabSize(E+m):2,m+=b-1,f.stringRepeat(h.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==h.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];h.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=h.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[h.L]=this.charWidths[h.EN]=this.charWidths[h.ON_R]=l,this.charWidths[h.R]=this.charWidths[h.AN]=a,this.charWidths[h.R_H]=a*.45,this.charWidths[h.B]=this.charWidths[h.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,l){for(var a=s.getCursorPosition(),u=s.selection.getSelectionAnchor().row;u<=a.row;u++)!l&&s.session.getLine(u).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(u,0,1):l&&s.session.getLine(u).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:u},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,a=s>l?this.session.getOverwrite()?s:s-1:l,u=h.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,c=0;!this.session.getOverwrite()&&s<=l&&o[u]%2!==0&&u++;for(var m=0;m<u;m++)c+=this.charWidths[o[m]];return!this.session.getOverwrite()&&s>l&&o[u]%2===0&&(c+=this.charWidths[o[u]]),this.wrapIndent&&(c+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(c+=this.rtlLineOffset),c},g.prototype.getSelections=function(s,l){var a=this.bidiMap,u=a.bidiLevels,o,c=[],m=0,b=Math.min(s,l)-this.wrapIndent,x=Math.max(s,l)-this.wrapIndent,E=!1,A=!1,k=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var v,T=0;T<u.length;T++)v=a.logicalFromVisual[T],o=u[T],E=v>=b&&v<x,E&&!A?k=m:!E&&A&&c.push({left:k,width:m-k}),m+=this.charWidths[o],A=E;if(E&&T===u.length&&c.push({left:k,width:m-k}),this.isRtlDir)for(var R=0;R<c.length;R++)c[R].left+=this.rtlLineOffset;return c},g.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var l=0,a=Math.max(a,0),u=0,o=0,c=this.bidiMap.bidiLevels,m=this.charWidths[c[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>u+m/2;){if(u+=m,o===c.length-1){m=0;break}m=this.charWidths[c[++o]]}return o>0&&c[o-1]%2!==0&&c[o]%2===0?(a<u&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&c[o-1]%2===0&&c[o]%2!==0?l=1+(a>u?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===c.length-1&&m===0&&c[o-1]%2===0||!this.isRtlDir&&o===0&&c[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&c[o-1]%2!==0&&m!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},g}();r.BidiHandler=p}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,d){var h=n("./lib/oop"),f=n("./lib/lang"),w=n("./lib/event_emitter").EventEmitter,p=n("./range").Range,g=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(u){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,a){this.$isEmpty=!1,this.anchor.setPosition(l,a)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,a=this.lead;return l.row>a.row||l.row==a.row&&l.column>a.column},s.prototype.getRange=function(){var l=this.anchor,a=this.lead;return this.$isEmpty?p.fromPoints(a,a):this.isBackwards()?p.fromPoints(a,l):p.fromPoints(l,a)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,a){var u=a?l.end:l.start,o=a?l.start:l.end;this.$setSelection(u.row,u.column,o.row,o.column)},s.prototype.$setSelection=function(l,a,u,o){if(!this.$silent){var c=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,a),this.cursor.setPosition(u,o),this.$isEmpty=!p.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||c!=this.$isEmpty||m)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),l.call(this)},s.prototype.selectTo=function(l,a){this.$moveSelection(function(){this.moveCursorTo(l,a)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,a){this.clearSelection(),this.moveCursorTo(l,a)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,a){if(typeof a>"u"){var u=l||this.lead;l=u.row,a=u.column}return this.session.getWordRange(l,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),a=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(l,a){var u=typeof l=="number"?l:this.lead.row,o,c=this.session.getFoldLine(u);return c?(u=c.start.row,o=c.end.row):o=u,a===!0?new p(u,0,o,this.session.getLine(o).length):new p(u,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,a,u){var o=l.column,c=l.column+a;return u<0&&(o=l.column-a,c=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,c).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(a.end.row,a.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var u=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,u,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,u):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,a=this.lead.column,u=this.session.documentToScreenRow(l,a),o=this.session.screenToDocumentPosition(u,0),c=this.session.getDisplayLine(l,null,o.row,o.column),m=c.match(/^\s*/);m[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=m[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,a=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==a.column){var u=this.session.getLine(a.row);if(a.column==u.length){var o=u.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,a=this.doc.getLine(l).length;this.moveCursorTo(l,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,a=this.lead.column,u=this.doc.getLine(l),o=u.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var c=this.session.getFoldAt(l,a,1);if(c){this.moveCursorTo(c.end.row,c.end.column);return}if(this.session.nonTokenRe.exec(o)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=u.substring(a)),a>=u.length){this.moveCursorTo(l,u.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,a=this.lead.column,u;if(u=this.session.getFoldAt(l,a,-1)){this.moveCursorTo(u.start.row,u.start.column);return}var o=this.session.getFoldStringAt(l,a,-1);o==null&&(o=this.doc.getLine(l).substring(0,a));var c=f.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(c)&&(a-=this.session.nonTokenRe.lastIndex,c=c.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(c)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.$shortWordEndIndex=function(l){var a=0,u,o=/\s/,c=this.session.tokenRe;if(c.lastIndex=0,this.session.tokenRe.exec(l))a=this.session.tokenRe.lastIndex;else{for(;(u=l[a])&&o.test(u);)a++;if(a<1){for(c.lastIndex=0;(u=l[a])&&!c.test(u);)if(c.lastIndex=0,a++,o.test(u))if(a>2){a--;break}else{for(;(u=l[a])&&o.test(u);)a++;if(a>2)break}}}return c.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,a=this.lead.column,u=this.doc.getLine(l),o=u.substring(a),c=this.session.getFoldAt(l,a,1);if(c)return this.moveCursorTo(c.end.row,c.end.column);if(a==u.length){var m=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<m&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var b=this.$shortWordEndIndex(o);this.moveCursorTo(l,a+b)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,a=this.lead.column,u;if(u=this.session.getFoldAt(l,a,-1))return this.moveCursorTo(u.start.row,u.start.column);var o=this.session.getLine(l).substring(0,a);if(a===0){do l--,o=this.doc.getLine(l);while(l>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var c=f.stringReverse(o),m=this.$shortWordEndIndex(c);return this.moveCursorTo(l,a-m)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,a){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var c=this.session.lineWidgets[this.lead.row];l<0?l-=c.rowsAbove||0:l>0&&(l+=c.rowCount-(c.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+l,u.column,o);l!==0&&a===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+a,a===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,a,u){var o=this.session.getFoldAt(l,a,1);o&&(l=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var c=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(c.charAt(a))&&c.charAt(a-1)&&(this.lead.row==l&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(l,a),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,a,u){var o=this.session.screenToDocumentPosition(l,a);this.moveCursorTo(o.row,o.column,u)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var a=this.getRange();return l?(l.start.column=a.start.column,l.start.row=a.start.row,l.end.column=a.end.column,l.end.row=a.end.row):l=a,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var a=this.getCursor();try{l(this);var u=this.getCursor();return p.fromPoints(a,u)}catch{return p.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(a){var u=a.clone();return u.isBackwards=a.cursor==a.start,u});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var a=l.length;a--;){var u=p.fromPoints(l[a].start,l[a].end);l[a].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(l[a]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,h.implement(g.prototype,w),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,d){var h=n("./lib/report_error").reportError,f=2e3,w=function(){function p(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],a=[],u=0,o=this.matchMappings[s]={defaultToken:"text"},c="g",m=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&c.indexOf("i")===-1&&(c+="i"),x.unicode&&c.indexOf("u")===-1&&(c+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var E=x.regex,A=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||A==1?x.token=x.token[0]:A-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:A-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(A>1?x.onMatch=this.$applyToken:x.onMatch=x.token),A>1&&(/\\\d/.test(x.regex)?E=x.regex.replace(/\\([0-9]+)/g,function(k,v){return"\\"+(parseInt(v,10)+u+1)}):(A=1,E=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&m.push(x)),o[u]=b,u+=A,a.push(E),x.onMatch||(x.onMatch=null)}}a.length||(o[0]=0,a.push("$")),m.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,c)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",c)}}return p.prototype.$setMaxTokenCount=function(g){f=g|0},p.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:g}];for(var a=[],u=0,o=l.length;u<o;u++)s[u]&&(a[a.length]={type:l[u],value:s[u]});return a},p.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var l=[],a=this.tokenArray,u=0,o=a.length;u<o;u++)s[u+1]&&(l[l.length]={type:a[u],value:s[u+1]});return l},p.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,a){return a?"(?:":l});return s},p.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var l=0,a=!1,u={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,c,m,b,x,E){return a?a=x!="]":x?a=!0:b?(l==u.stack&&(u.end=E+1,u.stack=-1),l--):m&&(l++,m.length!=1&&(u.stack=l,u.start=E)),o}),u.end!=null&&/^\)*$/.test(g.substr(u.end))&&(g=g.substring(0,u.start)+g.substr(u.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},p.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var a=s||"start",u=this.states[a];u||(a="start",u=this.states[a]);var o=this.matchMappings[a],c=this.regExps[a];c.lastIndex=0;for(var m,b=[],x=0,E=0,A={type:null,value:""};m=c.exec(g);){var k=o.defaultToken,v=null,T=m[0],R=c.lastIndex;if(R-T.length>x){var O=g.substring(x,R-T.length);A.type==k?A.value+=O:(A.type&&b.push(A),A={type:k,value:O})}for(var M=0;M<m.length-2;M++)if(m[M+1]!==void 0){v=u[o[M]],v.onMatch?k=v.onMatch(T,a,l,g):k=v.token,v.next&&(typeof v.next=="string"?a=v.next:a=v.next(a,l),u=this.states[a],u||(this.reportError("state doesn't exist",a),a="start",u=this.states[a]),o=this.matchMappings[a],x=R,c=this.regExps[a],c.lastIndex=R),v.consumeLineEnd&&(x=R);break}if(T){if(typeof k=="string")(!v||v.merge!==!1)&&A.type===k?A.value+=T:(A.type&&b.push(A),A={type:k,value:T});else if(k){A.type&&b.push(A),A={type:null,value:""};for(var M=0;M<k.length;M++)b.push(k[M])}}if(x==g.length)break;if(x=R,E++>f){for(E>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});x<g.length;)A.type&&b.push(A),A={value:g.substring(x,x+=500),type:"overflow"};a="start",l=[];break}}return A.type&&b.push(A),l.length>1&&l[0]!==a&&l.unshift("#tmp",a),{tokens:b,state:l.length?l:a}},p}();w.prototype.reportError=h,r.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,d){var h=n("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var l in g)this.$rules[l]=g[l];return}for(var l in g){for(var a=g[l],u=0;u<a.length;u++){var o=a[u];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+l]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,l,a,u){var o=typeof g=="function"?new g().getRules():g;if(a)for(var c=0;c<a.length;c++)a[c]=s+a[c];else{a=[];for(var m in o)a.push(s+m)}if(this.addRules(o,s),l)for(var b=Array.prototype[u?"push":"unshift"],c=0;c<a.length;c++)b.apply(this.$rules[a[c]],h(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var w=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},p=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function l(a){var u=s[a];u.processed=!0;for(var o=0;o<u.length;o++){var c=u[o],m=null;Array.isArray(c)&&(m=c,c={}),!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var b=c.next||c.push;if(b&&Array.isArray(b)){var x=c.stateName;x||(x=c.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=g++)),s[x]=b,c.next=x,l(x)}else b=="pop"&&(c.next=p);if(c.push&&(c.nextState=c.next||c.push,c.next=w,delete c.push),c.rules)for(var E in c.rules)s[E]?s[E].push&&s[E].push.apply(s[E],c.rules[E]):s[E]=c.rules[E];var A=typeof c=="string"?c:c.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?m=A.map(function(v){return s[v]}):m=s[A]),m){var k=[o,1].concat(m);c.noEscape&&(k=k.filter(function(v){return!v.next})),u.splice.apply(u,k),o--}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(g,s,l,a){var u=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var c=g[o],m=c.split(a||"|"),b=m.length;b--;){var x=m[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),u[x]=o}},this),g=null,l?function(o){return u[o.toLowerCase()]||s}:function(o){return u[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),r.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(n,r,d){var h;h=function(){this.$behaviours={}},(function(){this.add=function(f,w,p){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][w]=p},this.addBehaviours=function(f){for(var w in f)for(var p in f[w])this.add(w,p,f[w][p])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,w){if(typeof f=="function")var p=new f().getBehaviours(w);else var p=f.getBehaviours(w);this.addBehaviours(p)},this.getBehaviours=function(f){if(f){for(var w={},p=0;p<f.length;p++)this.$behaviours[f[p]]&&(w[f[p]]=this.$behaviours[f[p]]);return w}else return this.$behaviours}}).call(h.prototype),r.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(n,r,d){var h=n("./range").Range,f=function(){function w(p,g,s){this.$session=p,this.$row=g,this.$rowTokens=p.getTokens(g);var l=p.getTokenAt(g,s);this.$tokenIndex=l?l.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var p;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,p||(p=this.$session.getLength()),this.$row>=p)return this.$row=p-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var p=this.$rowTokens,g=this.$tokenIndex,s=p[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=p[g].value.length;return s},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var p=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new h(this.$row,g,this.$row,g+p.value.length)},w}();r.TokenIterator=f}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,d){var h=n("../../lib/oop"),f=n("../behaviour").Behaviour,w=n("../../token_iterator").TokenIterator,p=n("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,a={},u={'"':'"',"'":"'"},o=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,a.rangeCount!=b.multiSelect.rangeCount&&(a={rangeCount:b.multiSelect.rangeCount})),a[x])return l=a[x];l=a[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},c=function(b,x,E,A){var k=b.end.row-b.start.row;return{text:E+x+A,selection:[0,b.start.column+1,k,b.end.column+(k?0:1)]}},m;m=function(b){b=b||{},this.add("braces","insertion",function(x,E,A,k,v){var T=A.getCursorPosition(),R=k.doc.getLine(T.row);if(v=="{"){o(A);var O=A.getSelectionRange(),M=k.doc.getTextRange(O),N=k.getTokenAt(T.row,T.column);if(M!==""&&M!=="{"&&A.getWrapBehavioursEnabled())return c(O,M,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var S=[/tag\-(?:open|name)/,/attribute\-name/];return S.some(function(W){return W.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(m.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(A,k))return/[\]\}\)]/.test(R[T.column])||A.inMultiSelectMode||b.braces?(m.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(v=="}"){o(A);var _=R.substring(T.column,T.column+1);if(_=="}"){var $=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if($!==null&&m.isAutoInsertedClosing(T,R,v))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(v==`
186
+ `||v==`\r
187
+ `){o(A);var L="";m.isMaybeInsertedClosing(T,R)&&(L=p.stringRepeat("}",l.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var _=R.substring(T.column,T.column+1);if(_==="}"){var D=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!D)return null;var F=this.$getIndent(k.getLine(D.row))}else if(L)var F=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var B=F+k.getTabString();return{text:`
188
+ `+B+`
189
+ `+F+L,selection:[1,B.length,1,B.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,E,A,k,v){var T=k.doc.getTextRange(v);if(!v.isMultiLine()&&T=="{"){o(A);var R=k.doc.getLine(v.start.row),O=R.substring(v.end.column,v.end.column+1);if(O=="}")return v.end.column++,v;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,E,A,k,v){if(v=="("){o(A);var T=A.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&A.getWrapBehavioursEnabled())return c(T,R,"(",")");if(m.isSaneInsertion(A,k))return m.recordAutoInsert(A,k,")"),{text:"()",selection:[1,1]}}else if(v==")"){o(A);var O=A.getCursorPosition(),M=k.doc.getLine(O.row),N=M.substring(O.column,O.column+1);if(N==")"){var S=k.$findOpeningBracket(")",{column:O.column+1,row:O.row});if(S!==null&&m.isAutoInsertedClosing(O,M,v))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,E,A,k,v){var T=k.doc.getTextRange(v);if(!v.isMultiLine()&&T=="("){o(A);var R=k.doc.getLine(v.start.row),O=R.substring(v.start.column+1,v.start.column+2);if(O==")")return v.end.column++,v}}),this.add("brackets","insertion",function(x,E,A,k,v){if(v=="["){o(A);var T=A.getSelectionRange(),R=k.doc.getTextRange(T);if(R!==""&&A.getWrapBehavioursEnabled())return c(T,R,"[","]");if(m.isSaneInsertion(A,k))return m.recordAutoInsert(A,k,"]"),{text:"[]",selection:[1,1]}}else if(v=="]"){o(A);var O=A.getCursorPosition(),M=k.doc.getLine(O.row),N=M.substring(O.column,O.column+1);if(N=="]"){var S=k.$findOpeningBracket("]",{column:O.column+1,row:O.row});if(S!==null&&m.isAutoInsertedClosing(O,M,v))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,E,A,k,v){var T=k.doc.getTextRange(v);if(!v.isMultiLine()&&T=="["){o(A);var R=k.doc.getLine(v.start.row),O=R.substring(v.start.column+1,v.start.column+2);if(O=="]")return v.end.column++,v}}),this.add("string_dquotes","insertion",function(x,E,A,k,v){var T=k.$mode.$quotes||u;if(v.length==1&&T[v]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(v)!=-1)return;o(A);var R=v,O=A.getSelectionRange(),M=k.doc.getTextRange(O);if(M!==""&&(M.length!=1||!T[M])&&A.getWrapBehavioursEnabled())return c(O,M,R,R);if(!M){var N=A.getCursorPosition(),S=k.doc.getLine(N.row),_=S.substring(N.column-1,N.column),$=S.substring(N.column,N.column+1),L=k.getTokenAt(N.row,N.column),D=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),B=!D||/string|escape/.test(D.type),W;if($==R)W=F!==B,W&&/string\.end/.test(D.type)&&(W=!1);else{if(F&&!B||F&&B)return null;var q=k.$mode.tokenRe;q.lastIndex=0;var V=q.test(_);q.lastIndex=0;var X=q.test($),G=k.$mode.$pairQuotesAfter,Z=G&&G[R]&&G[R].test(_);if(!Z&&V||X||$&&!/[\s;,.})\]\\]/.test($))return null;var re=S[N.column-2];if(_==R&&(re==R||q.test(re)))return null;W=!0}return{text:W?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,E,A,k,v){var T=k.$mode.$quotes||u,R=k.doc.getTextRange(v);if(!v.isMultiLine()&&T.hasOwnProperty(R)){o(A);var O=k.doc.getLine(v.start.row),M=O.substring(v.start.column+1,v.start.column+2);if(M==R)return v.end.column++,v}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,E,A,k,v){if(x==="doc-start"&&(v===`
190
+ `||v===`\r
191
+ `)&&A.selection.isEmpty()){var T=A.getCursorPosition();if(T.column===0)return;for(var R=k.doc.getLine(T.row),O=k.doc.getLine(T.row+1),M=k.getTokens(T.row),N=0,S=0;S<M.length;S++){N+=M[S].value.length;var _=M[S];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var $=M[S+1];if(!$||!/\.doc/.test($.type))return}}var L=T.column-(N-_.value.length),D=_.value.indexOf("*/"),F=_.value.indexOf("/**",D>-1?D+2:0);if(F!==-1&&L>F&&L<F+3||D!==-1&&F!==-1&&L>=D&&L<=F||!/\.doc/.test(_.type))return;break}}var B=this.$getIndent(R);if(/\s*\*/.test(O))return/^\s*\*/.test(R)?{text:v+B+"* ",selection:[1,2+B.length,1,2+B.length]}:{text:v+B+" * ",selection:[1,3+B.length,1,3+B.length]};if(/\/\*\*/.test(R.substring(0,T.column)))return{text:v+B+" * "+v+" "+B+"*/",selection:[1,4+B.length,1,4+B.length]}}})},m.isSaneInsertion=function(b,x){var E=b.getCursorPosition(),A=new w(x,E.row,E.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",g)){if(/[)}\]]/.test(b.session.getLine(E.row)[E.column]))return!0;var k=new w(x,E.row,E.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",g))return!1}return A.stepForward(),A.getCurrentTokenRow()!==E.row||this.$matchTokenType(A.getCurrentToken()||"text",s)},m.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},m.recordAutoInsert=function(b,x,E){var A=b.getCursorPosition(),k=x.doc.getLine(A.row);this.isAutoInsertedClosing(A,k,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=A.row,l.autoInsertedLineEnd=E+k.substr(A.column),l.autoInsertedBrackets++},m.recordMaybeInsert=function(b,x,E){var A=b.getCursorPosition(),k=x.doc.getLine(A.row);this.isMaybeInsertedClosing(A,k)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=A.row,l.maybeInsertedLineStart=k.substr(0,A.column)+E,l.maybeInsertedLineEnd=k.substr(A.column),l.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(b,x,E){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&E===l.autoInsertedLineEnd[0]&&x.substr(b.column)===l.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(b,x){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&x.substr(b.column)===l.maybeInsertedLineEnd&&x.substr(0,b.column)==l.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},h.inherits(m,f),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,d){for(var h=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],f=0,w=[],p=0;p<h.length;p+=2)w.push(f+=h[p]),h[p+1]&&w.push(45,f+=h[p+1]);r.wordChars=String.fromCharCode.apply(null,w)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(n,r,d){var h=n("../config"),f=n("../tokenizer").Tokenizer,w=n("./text_highlight_rules").TextHighlightRules,p=n("./behaviour/cstyle").CstyleBehaviour,g=n("../unicode"),s=n("../lib/lang"),l=n("../token_iterator").TokenIterator,a=n("../range").Range,u;u=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new p,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,c,m,b){var x=c.doc,E=!0,A=!0,k=1/0,v=c.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var R=this.lineCommentStart.map(s.escapeRegExp).join("|"),O=this.lineCommentStart[0];else var R=s.escapeRegExp(this.lineCommentStart),O=this.lineCommentStart;R=new RegExp("^(\\s*)(?:"+R+") ?"),T=c.getUseSoftTabs();var M=function(W,q){var V=W.match(R);if(V){var X=V[1].length,G=V[0].length;!$(W,X,G)&&V[0][G-1]==" "&&G--,x.removeInLine(q,X,G)}},N=O+" ",S=function(W,q){(!E||/\S/.test(W))&&($(W,k,k)?x.insertInLine({row:q,column:k},N):x.insertInLine({row:q,column:k},O))},_=function(W,q){return R.test(W)},$=function(W,q,V){for(var X=0;q--&&W.charAt(q)==" ";)X++;if(X%v!=0)return!1;for(var X=0;W.charAt(V++)==" ";)X++;return v>2?X%v!=v-1:X%v==0}}else{if(!this.blockComment)return!1;var O=this.blockComment.start,L=this.blockComment.end,R=new RegExp("^(\\s*)(?:"+s.escapeRegExp(O)+")"),D=new RegExp("(?:"+s.escapeRegExp(L)+")\\s*$"),S=function(Z,re){_(Z,re)||(!E||/\S/.test(Z))&&(x.insertInLine({row:re,column:Z.length},L),x.insertInLine({row:re,column:k},O))},M=function(Z,re){var J;(J=Z.match(D))&&x.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(R))&&x.removeInLine(re,J[1].length,J[0].length)},_=function(Z,re){if(R.test(Z))return!0;for(var J=c.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(W){for(var q=m;q<=b;q++)W(x.getLine(q),q)}var B=1/0;F(function(W,q){var V=W.search(/\S/);V!==-1?(V<k&&(k=V),A&&!_(W,q)&&(A=!1)):B>W.length&&(B=W.length)}),k==1/0&&(k=B,E=!1,A=!1),T&&k%v!=0&&(k=Math.floor(k/v)*v),F(A?M:S)},this.toggleBlockComment=function(o,c,m,b){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var E=new l(c,b.row,b.column),A=E.getCurrentToken();c.selection;var k=c.selection.toOrientedRange(),v,T;if(A&&/comment/.test(A.type)){for(var R,O;A&&/comment/.test(A.type);){var M=A.value.indexOf(x.start);if(M!=-1){var N=E.getCurrentTokenRow(),S=E.getCurrentTokenColumn()+M;R=new a(N,S,N,S+x.start.length);break}A=E.stepBackward()}for(var E=new l(c,b.row,b.column),A=E.getCurrentToken();A&&/comment/.test(A.type);){var M=A.value.indexOf(x.end);if(M!=-1){var N=E.getCurrentTokenRow(),S=E.getCurrentTokenColumn()+M;O=new a(N,S,N,S+x.end.length);break}A=E.stepForward()}O&&c.remove(O),R&&(c.remove(R),v=R.start.row,T=-x.start.length)}else T=x.start.length,v=m.start.row,c.insert(m.end,x.end),c.insert(m.start,x.start);k.start.row==v&&(k.start.column+=T),k.end.row==v&&(k.end.column+=T),c.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,c,m){return this.$getIndent(c)},this.checkOutdent=function(o,c,m){return!1},this.autoOutdent=function(o,c,m){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var c in o)if(o[c]){var m=o[c],b=m.prototype.$id,x=h.$modes[b];x||(h.$modes[b]=x=new m),h.$modes[c]||(h.$modes[c]=x),this.$embeds.push(c),this.$modes[c]=x}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],A=function(T){(function(R){var O=E[T],M=R[O];R[E[T]]=function(){return this.$delegator(O,arguments,M)}})(k)},k=this,c=0;c<E.length;c++)A(c)},this.$delegator=function(o,c,m){var b=c[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var x=b[2][b[2].length-1],E=this.$modes[x];if(E)return E[o].apply(E,[b[1]].concat([].slice.call(c,1)))}b=b[0]||"start"}for(var A=0;A<this.$embeds.length;A++)if(this.$modes[this.$embeds[A]]){var k=b.split(this.$embeds[A]);if(!k[0]&&k[1]){c[0]=k[1];var E=this.$modes[this.$embeds[A]];return E[o].apply(E,c)}}var v=m.apply(this,c);return m?v:void 0},this.transformAction=function(o,c,m,b,x){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var A in E)if(E[A][c]){var k=E[A][c].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var c=this.$tokenizer.rules,m=[];for(var b in c)for(var x=c[b],E=0,A=x.length;E<A;E++)if(typeof x[E].token=="string")/keyword|support|storage/.test(x[E].token)&&m.push(x[E].regex);else if(typeof x[E].token=="object"){for(var k=0,v=x[E].token.length;k<v;k++)if(/keyword|support|storage/.test(x[E].token[k])){var b=x[E].regex.match(/\(.+?\)/g)[k];m.push(b.substr(1,b.length-2))}}this.completionKeywords=m}return o?m.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,c,m,b){var x=this.$keywordList||this.$createKeywordList();return x.map(function(E){return{name:E,value:E,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(u.prototype),r.Mode=u}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,r,d){var h=n("./lib/dom"),f=function(){function w(p){this.session=p,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return w.prototype.getRowLength=function(p){var g;return this.lineWidgets?g=this.lineWidgets[p]&&this.lineWidgets[p].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[p]?1+g:this.$wrapData[p].length+1+g},w.prototype.$getWidgetScreenLength=function(){var p=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(p+=g.rowCount)}),p},w.prototype.$onChangeEditor=function(p){this.attach(p.editor)},w.prototype.attach=function(p){p&&p.widgetManager&&p.widgetManager!=this&&p.widgetManager.detach(),this.editor!=p&&(this.detach(),this.editor=p,p&&(p.widgetManager=this,p.renderer.on("beforeRender",this.measureWidgets),p.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(p){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},w.prototype.updateOnFold=function(p,g){var s=g.lineWidgets;if(!(!s||!p.action)){for(var l=p.data,a=l.start.row,u=l.end.row,o=p.action=="add",c=a+1;c<u;c++)s[c]&&(s[c].hidden=o);s[u]&&(o?s[a]?s[u].hidden=o:s[a]=s[u]:(s[a]==s[u]&&(s[a]=void 0),s[u].hidden=o))}},w.prototype.updateOnChange=function(p){var g=this.session.lineWidgets;if(g){var s=p.start.row,l=p.end.row-s;if(l!==0)if(p.action=="remove"){var a=g.splice(s+1,l);!g[s]&&a[a.length-1]&&(g[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var u=new Array(l);g[s]&&g[s].column!=null&&p.start.column>g[s].column&&s++,u.unshift(s,0),g.splice.apply(g,u),this.$updateRows()}}},w.prototype.$updateRows=function(){var p=this.session.lineWidgets;if(p){var g=!0;p.forEach(function(s,l){if(s)for(g=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),g&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(p){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[p.row];return g&&(p.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[p.row]=p,p},w.prototype.addLineWidget=function(p){if(this.$registerLineWidget(p),p.session=this.session,!this.editor)return p;var g=this.editor.renderer;p.html&&!p.el&&(p.el=h.createElement("div"),p.el.innerHTML=p.html),p.text&&!p.el&&(p.el=h.createElement("div"),p.el.textContent=p.text),p.el&&(h.addCssClass(p.el,"ace_lineWidgetContainer"),p.className&&h.addCssClass(p.el,p.className),p.el.style.position="absolute",p.el.style.zIndex="5",g.container.appendChild(p.el),p._inDocument=!0,p.coverGutter||(p.el.style.zIndex="3"),p.pixelHeight==null&&(p.pixelHeight=p.el.offsetHeight)),p.rowCount==null&&(p.rowCount=p.pixelHeight/g.layerConfig.lineHeight);var s=this.session.getFoldAt(p.row,0);if(p.$fold=s,s){var l=this.session.lineWidgets;p.row==s.end.row&&!l[s.start.row]?l[s.start.row]=p:p.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:p.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(p),p},w.prototype.removeLineWidget=function(p){if(p._inDocument=!1,p.session=null,p.el&&p.el.parentNode&&p.el.parentNode.removeChild(p.el),p.editor&&p.editor.destroy)try{p.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[p.row];if(g==p)this.session.lineWidgets[p.row]=p.$oldWidget,p.$oldWidget&&this.onWidgetChanged(p.$oldWidget);else for(;g;){if(g.$oldWidget==p){g.$oldWidget=p.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:p.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(p){for(var g=this.session.lineWidgets,s=g&&g[p],l=[];s;)l.push(s),s=s.$oldWidget;return l},w.prototype.onWidgetChanged=function(p){this.session._changedWidgets.push(p),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(p,g){var s=this.session._changedWidgets,l=g.layerConfig;if(!(!s||!s.length)){for(var a=1/0,u=0;u<s.length;u++){var o=s[u];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/l.characterWidth));var c=o.h/l.lineHeight;o.coverLine&&(c-=this.session.getRowLineCount(o.row),c<0&&(c=0)),o.rowCount!=c&&(o.rowCount=c,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(p,g){var s=g.layerConfig,l=this.session.lineWidgets;if(l){for(var a=Math.min(this.firstRow,s.firstRow),u=Math.max(this.lastRow,s.lastRow,l.length);a>0&&!l[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,g.$cursorLayer.config=s;for(var o=a;o<=u;o++){var c=l[o];if(!(!c||!c.el)){if(c.hidden){c.el.style.top=-100-(c.pixelHeight||0)+"px";continue}c._inDocument||(c._inDocument=!0,g.container.appendChild(c.el));var m=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;c.coverLine||(m+=s.lineHeight*this.session.getRowLineCount(c.row)),c.el.style.top=m-s.offset+"px";var b=c.coverGutter?0:g.gutterWidth;c.fixedWidth||(b-=g.scrollLeft),c.el.style.left=b+"px",c.fullWidth&&c.screenWidth&&(c.el.style.minWidth=s.width+2*s.padding+"px"),c.fixedWidth?c.el.style.right=g.scrollBar.getWidth()+"px":c.el.style.right=""}}}},w}();r.LineWidgets=f}),ace.define("ace/apply_delta",["require","exports","module"],function(n,r,d){r.applyDelta=function(h,f,w){var p=f.start.row,g=f.start.column,s=h[p]||"";switch(f.action){case"insert":var l=f.lines;if(l.length===1)h[p]=s.substring(0,g)+f.lines[0]+s.substring(g);else{var a=[p,1].concat(f.lines);h.splice.apply(h,a),h[p]=s.substring(0,g)+h[p],h[p+f.lines.length-1]+=s.substring(g)}break;case"remove":var u=f.end.column,o=f.end.row;p===o?h[p]=s.substring(0,g)+s.substring(u):h.splice(p,o-p+1,s.substring(0,g)+h[o].substring(u));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,d){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,w=function(){function s(l,a,u){this.$onChange=this.onChange.bind(this),this.attach(l),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,u)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var a=g(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(l,a,u){var o;if(u?o={row:l,column:a}:o=this.$clipPositionToDocument(l,a),!(this.row==o.row&&this.column==o.column)){var c={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:c,value:o})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(l,a){var u={};return l>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):l<0?(u.row=0,u.column=0):(u.row=l,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,a))),a<0&&(u.column=0),u},s}();w.prototype.$insertRight=!1,h.implement(w.prototype,f);function p(s,l,a){var u=a?s.column<=l.column:s.column<l.column;return s.row<l.row||s.row==l.row&&u}function g(s,l,a){var u=s.action=="insert",o=(u?1:-1)*(s.end.row-s.start.row),c=(u?1:-1)*(s.end.column-s.start.column),m=s.start,b=u?m:s.end;return p(l,m,a)?{row:l.row,column:l.column}:p(b,l,!a)?{row:l.row+o,column:l.column+(l.row==b.row?c:0)}:{row:m.row,column:m.column}}r.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,r,d){var h=n("./lib/oop"),f=n("./apply_delta").applyDelta,w=n("./lib/event_emitter").EventEmitter,p=n("./range").Range,g=n("./anchor").Anchor,s=function(){function l(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return l.prototype.setValue=function(a){var u=this.getLength()-1;this.remove(new p(0,0,u,this.getLine(u).length)),this.insert({row:0,column:0},a||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(a,u){return new g(this,a,u)},l.prototype.$detectNewLine=function(a){var u=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=u?u[1]:`
192
+ `,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
193
+ `;case"unix":return`
194
+ `;default:return this.$autoNewLine||`
195
+ `}},l.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(a){return a==`\r
196
+ `||a=="\r"||a==`
197
+ `},l.prototype.getLine=function(a){return this.$lines[a]||""},l.prototype.getLines=function(a,u){return this.$lines.slice(a,u+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(a){var u;if(a.start.row===a.end.row)u=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{u=this.getLines(a.start.row,a.end.row),u[0]=(u[0]||"").substring(a.start.column);var o=u.length-1;a.end.row-a.start.row==o&&(u[o]=u[o].substring(0,a.end.column))}return u},l.prototype.insertLines=function(a,u){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,u)},l.prototype.removeLines=function(a,u){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,u)},l.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},l.prototype.insert=function(a,u){return this.getLength()<=1&&this.$detectNewLine(u),this.insertMergedLines(a,this.$split(u))},l.prototype.insertInLine=function(a,u){var o=this.clippedPos(a.row,a.column),c=this.pos(a.row,a.column+u.length);return this.applyDelta({start:o,end:c,action:"insert",lines:[u]},!0),this.clonePos(c)},l.prototype.clippedPos=function(a,u){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,u=void 0);var c=this.getLine(a);return u==null&&(u=c.length),u=Math.min(Math.max(u,0),c.length),{row:a,column:u}},l.prototype.clonePos=function(a){return{row:a.row,column:a.column}},l.prototype.pos=function(a,u){return{row:a,column:u}},l.prototype.$clipPosition=function(a){var u=this.getLength();return a.row>=u?(a.row=Math.max(0,u-1),a.column=this.getLine(u-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},l.prototype.insertFullLines=function(a,u){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(u=u.concat([""]),o=0):(u=[""].concat(u),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},u)},l.prototype.insertMergedLines=function(a,u){var o=this.clippedPos(a.row,a.column),c={row:o.row+u.length-1,column:(u.length==1?o.column:0)+u[u.length-1].length};return this.applyDelta({start:o,end:c,action:"insert",lines:u}),this.clonePos(c)},l.prototype.remove=function(a){var u=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:u,end:o,action:"remove",lines:this.getLinesForRange({start:u,end:o})}),this.clonePos(u)},l.prototype.removeInLine=function(a,u,o){var c=this.clippedPos(a,u),m=this.clippedPos(a,o);return this.applyDelta({start:c,end:m,action:"remove",lines:this.getLinesForRange({start:c,end:m})},!0),this.clonePos(c)},l.prototype.removeFullLines=function(a,u){a=Math.min(Math.max(0,a),this.getLength()-1),u=Math.min(Math.max(0,u),this.getLength()-1);var o=u==this.getLength()-1&&a>0,c=u<this.getLength()-1,m=o?a-1:a,b=o?this.getLine(m).length:0,x=c?u+1:u,E=c?0:this.getLine(x).length,A=new p(m,b,x,E),k=this.$lines.slice(a,u+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),k},l.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(a,u){if(a instanceof p||(a=p.fromPoints(a.start,a.end)),u.length===0&&a.isEmpty())return a.start;if(u==this.getTextRange(a))return a.end;this.remove(a);var o;return u?o=this.insert(a.start,u):o=a.start,o},l.prototype.applyDeltas=function(a){for(var u=0;u<a.length;u++)this.applyDelta(a[u])},l.prototype.revertDeltas=function(a){for(var u=a.length-1;u>=0;u--)this.revertDelta(a[u])},l.prototype.applyDelta=function(a,u){var o=a.action=="insert";(o?a.lines.length<=1&&!a.lines[0]:!p.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(f(this.$lines,a,u),this._signal("change",a)))},l.prototype.$safeApplyDelta=function(a){var u=this.$lines.length;(a.action=="remove"&&a.start.row<u&&a.end.row<u||a.action=="insert"&&a.start.row<=u)&&this.applyDelta(a)},l.prototype.$splitAndapplyLargeDelta=function(a,u){for(var o=a.lines,c=o.length-u+1,m=a.start.row,b=a.start.column,x=0,E=0;x<c;x=E){E+=u-1;var A=o.slice(x,E);A.push(""),this.applyDelta({start:this.pos(m+x,b),end:this.pos(m+E,b=0),action:a.action,lines:A},!0)}a.lines=o.slice(x),a.start.row=m+x,a.start.column=b,this.applyDelta(a,!0)},l.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},l.prototype.indexToPosition=function(a,u){for(var o=this.$lines||this.getAllLines(),c=this.getNewLineCharacter().length,m=u||0,b=o.length;m<b;m++)if(a-=o[m].length+c,a<0)return{row:m,column:a+o[m].length+c};return{row:b-1,column:a+o[b-1].length+c}},l.prototype.positionToIndex=function(a,u){for(var o=this.$lines||this.getAllLines(),c=this.getNewLineCharacter().length,m=0,b=Math.min(a.row,o.length),x=u||0;x<b;++x)m+=o[x].length+c;return m+a.column},l.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},l}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",h.implement(s.prototype,w),r.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(n,r,d){var h=n("./lib/oop"),f=n("./lib/event_emitter").EventEmitter,w=function(){function p(g,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var l=this;this.$worker=function(){if(l.running){for(var a=new Date,u=l.currentLine,o=-1,c=l.doc,m=u;l.lines[u];)u++;var b=c.getLength(),x=0;for(l.running=!1;u<b;){l.$tokenizeRow(u),o=u;do u++;while(l.lines[u]);if(x++,x%5===0&&new Date-a>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=u,o==-1&&(o=u),m<=o&&l.fireUpdateEvent(m,o)}}}return p.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},p.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},p.prototype.fireUpdateEvent=function(g,s){var l={first:g,last:s};this._signal("update",{data:l})},p.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},p.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},p.prototype.$updateOnChange=function(g){var s=g.start.row,l=g.end.row-s;if(l===0)this.lines[s]=null;else if(g.action=="remove")this.lines.splice(s,l+1,null),this.states.splice(s,l+1,null);else{var a=Array(l+1);a.unshift(s,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},p.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},p.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},p.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},p.prototype.$tokenizeRow=function(g){var s=this.doc.getLine(g),l=this.states[g-1],a=this.tokenizer.getLineTokens(s,l,g);return this.states[g]+""!=a.state+""?(this.states[g]=a.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=a.tokens},p.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},p}();h.implement(w.prototype,f),r.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,d){var h=n("./lib/lang"),f=n("./range").Range,w=function(){function p(g,s,l){l===void 0&&(l="text"),this.setRegexp(g),this.clazz=s,this.type=l}return p.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},p.prototype.update=function(g,s,l,a){if(this.regExp)for(var u=a.firstRow,o=a.lastRow,c={},m=u;m<=o;m++){var b=this.cache[m];b==null&&(b=h.getMatchOffsets(l.getLine(m),this.regExp),b.length>this.MAX_RANGES&&(b=b.slice(0,this.MAX_RANGES)),b=b.map(function(k){return new f(m,k.offset,m,k.offset+k.length)}),this.cache[m]=b.length?b:"");for(var x=b.length;x--;){var E=b[x].toScreenRange(l),A=E.toString();c[A]||(c[A]=!0,s.drawSingleLineMarker(g,E,this.clazz,a))}}},p}();w.prototype.MAX_RANGES=500,r.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,d){var h=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(v){this.$session=v},k.prototype.add=function(v,T,R){if(!this.$fromUndo&&v!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var O=this.$undoStack.length;O>this.$undoDepth-1&&this.$undoStack.splice(0,O-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),v.id=this.$rev=++this.$maxRev}(v.action=="remove"||v.action=="insert")&&(this.$lastDelta=v),this.lastDeltas.push(v)}},k.prototype.addSelection=function(v,T){this.selections.push({value:v,rev:T||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(v,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,O=R.length;O--;){var M=R[O][0];if(M.id<=v)break;M.id<T&&(M.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(v,T){for(var R=this.selections,O=R.length;O--;){var M=R[O];if(M.rev<v)return T&&(M=R[O+1]),M}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(v,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,O=null,M=0,N=R.length;N--;){var S=R[N][0];if(S.id<T&&!O&&(O=N+1),S.id<=v){M=N+1;break}}return R.slice(M,O)},k.prototype.getChangedRanges=function(v,T){T==null&&(T=this.$rev+1)},k.prototype.getChangedLines=function(v,T){T==null&&(T=this.$rev+1)},k.prototype.undo=function(v,T){this.lastDeltas=null;var R=this.$undoStack;if(f(R,R.length)){v||(v=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var O=R.pop(),M=null;return O&&(M=v.undoChanges(O,T),this.$redoStack.push(O),this.$syncRev()),this.$fromUndo=!1,M}},k.prototype.redo=function(v,T){if(this.lastDeltas=null,v||(v=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);A(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var O=this.$redoStack.pop(),M=null;return O&&(M=v.redoChanges(O,T),this.$undoStack.push(O),this.$syncRev()),this.$fromUndo=!1,M},k.prototype.$syncRev=function(){var v=this.$undoStack,T=v[v.length-1],R=T&&T[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(v){v==null&&(v=this.$rev),this.mark=v},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(v){this.reset(),this.$undoStack=v.$undoStack,this.$redoStack=v.$redoStack},k.prototype.$prettyPrint=function(v){return v?l(v):l(this.$undoStack)+`
198
+ ---
199
+ `+l(this.$redoStack)},k}();h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;function f(k,v){for(var T=v;T--;){var R=k[T];if(R&&!R[0].ignore){for(;T<v-1;){var O=o(k[T],k[T+1]);k[T]=O[0],k[T+1]=O[1],T++}return!0}}}var w=n("./range").Range,p=w.comparePoints;w.comparePoints;function g(k){return{row:k.row,column:k.column}}function s(k){return{start:g(k.start),end:g(k.end),action:k.action,lines:k.lines.slice()}}function l(k){if(k=k||this,Array.isArray(k))return k.map(l).join(`
200
+ `);var v="";return k.action?(v=k.action=="insert"?"+":"-",v+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?v=k.value.map(a).join(`
201
+ `):v=a(k.value)),k.start&&(v+=a(k)),(k.id||k.rev)&&(v+=" ("+(k.id||k.rev)+")"),v}function a(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function u(k,v){var T=k.action=="insert",R=v.action=="insert";if(T&&R)if(p(v.start,k.end)>=0)m(v,k,-1);else if(p(v.start,k.start)<=0)m(k,v,1);else return null;else if(T&&!R)if(p(v.start,k.end)>=0)m(v,k,-1);else if(p(v.end,k.start)<=0)m(k,v,-1);else return null;else if(!T&&R)if(p(v.start,k.start)>=0)m(v,k,1);else if(p(v.start,k.start)<=0)m(k,v,1);else return null;else if(!T&&!R)if(p(v.start,k.start)>=0)m(v,k,1);else if(p(v.end,k.start)<=0)m(k,v,-1);else return null;return[v,k]}function o(k,v){for(var T=k.length;T--;)for(var R=0;R<v.length;R++)if(!u(k[T],v[R])){for(;T<k.length;){for(;R--;)u(v[R],k[T]);R=v.length,T++}return[k,v]}return k.selectionBefore=v.selectionBefore=k.selectionAfter=v.selectionAfter=null,[v,k]}function c(k,v){var T=k.action=="insert",R=v.action=="insert";if(T&&R)p(k.start,v.start)<0?m(v,k,1):m(k,v,1);else if(T&&!R)p(k.start,v.end)>=0?m(k,v,-1):(p(k.start,v.start)<=0||m(k,w.fromPoints(v.start,k.start),-1),m(v,k,1));else if(!T&&R)p(v.start,k.end)>=0?m(v,k,-1):(p(v.start,k.start)<=0||m(v,w.fromPoints(k.start,v.start),-1),m(k,v,1));else if(!T&&!R)if(p(v.start,k.end)>=0)m(v,k,-1);else if(p(v.end,k.start)<=0)m(k,v,-1);else{var O,M;return p(k.start,v.start)<0&&(O=k,k=x(k,v.start)),p(k.end,v.end)>0&&(M=x(k,v.end)),b(v.end,k.start,k.end,-1),M&&!O&&(k.lines=M.lines,k.start=M.start,k.end=M.end,M=k),[v,O,M].filter(Boolean)}return[v,k]}function m(k,v,T){b(k.start,v.start,v.end,T),b(k.end,v.start,v.end,T)}function b(k,v,T,R){k.row==(R==1?v:T).row&&(k.column+=R*(T.column-v.column)),k.row+=R*(T.row-v.row)}function x(k,v){var T=k.lines,R=k.end;k.end=g(v);var O=k.end.row-k.start.row,M=T.splice(O,T.length),N=O?v.column:v.column-k.start.column;T.push(M[0].substring(0,N)),M[0]=M[0].substr(N);var S={start:g(v),end:R,lines:M,action:k.action};return S}function E(k,v){v=s(v);for(var T=k.length;T--;){for(var R=k[T],O=0;O<R.length;O++){var M=R[O],N=c(M,v);v=N[0],N.length!=2&&(N[2]?(R.splice(O+1,1,N[1],N[2]),O++):N[1]||(R.splice(O,1),O--))}R.length||k.splice(T,1)}return k}function A(k,v){for(var T=0;T<v.length;T++)for(var R=v[T],O=0;O<R.length;O++)E(k,R[O])}r.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,r,d){var h=n("../range").Range,f=function(){function w(p,g){this.foldData=p,Array.isArray(g)?this.folds=g:g=this.folds=[g];var s=g[g.length-1];this.range=new h(g[0].start.row,g[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return w.prototype.shiftRow=function(p){this.start.row+=p,this.end.row+=p,this.folds.forEach(function(g){g.start.row+=p,g.end.row+=p})},w.prototype.addFold=function(p){if(p.sameRow){if(p.start.row<this.startRow||p.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(p),this.folds.sort(function(g,s){return-g.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(p.start.row,p.start.column)>0?(this.end.row=p.end.row,this.end.column=p.end.column):this.range.compareStart(p.end.row,p.end.column)<0&&(this.start.row=p.start.row,this.start.column=p.start.column)}else if(p.start.row==this.end.row)this.folds.push(p),this.end.row=p.end.row,this.end.column=p.end.column;else if(p.end.row==this.start.row)this.folds.unshift(p),this.start.row=p.start.row,this.start.column=p.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");p.foldLine=this},w.prototype.containsRow=function(p){return p>=this.start.row&&p<=this.end.row},w.prototype.walk=function(p,g,s){var l=0,a=this.folds,u,o,c,m=!0;g==null&&(g=this.end.row,s=this.end.column);for(var b=0;b<a.length;b++){if(u=a[b],o=u.range.compareStart(g,s),o==-1){p(null,g,s,l,m);return}if(c=p(null,u.start.row,u.start.column,l,m),c=!c&&p(u.placeholder,u.start.row,u.start.column,l),c||o===0)return;m=!u.sameRow,l=u.end.column}p(null,g,s,l,m)},w.prototype.getNextFoldTo=function(p,g){for(var s,l,a=0;a<this.folds.length;a++){if(s=this.folds[a],l=s.range.compareEnd(p,g),l==-1)return{fold:s,kind:"after"};if(l===0)return{fold:s,kind:"inside"}}return null},w.prototype.addRemoveChars=function(p,g,s){var l=this.getNextFoldTo(p,g),a,u;if(l){if(a=l.fold,l.kind=="inside"&&a.start.column!=g&&a.start.row!=p)window.console&&window.console.log(p,g,a);else if(a.start.row==p){u=this.folds;var o=u.indexOf(a);for(o===0&&(this.start.column+=s),o;o<u.length;o++){if(a=u[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},w.prototype.split=function(p,g){var s=this.getNextFoldTo(p,g);if(!s||s.kind=="inside")return null;var l=s.fold,a=this.folds,u=this.foldData,o=a.indexOf(l),c=a[o-1];this.end.row=c.end.row,this.end.column=c.end.column,a=a.splice(o,a.length-o);var m=new w(u,a);return u.splice(u.indexOf(this)+1,0,m),m},w.prototype.merge=function(p){for(var g=p.folds,s=0;s<g.length;s++)this.addFold(g[s]);var l=this.foldData;l.splice(l.indexOf(p),1)},w.prototype.toString=function(){var p=[this.range.toString()+": ["];return this.folds.forEach(function(g){p.push(" "+g.toString())}),p.push("]"),p.join(`
202
+ `)},w.prototype.idxToPosition=function(p){for(var g=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(p-=l.start.column-g,p<0)return{row:l.start.row,column:l.start.column+p};if(p-=l.placeholder.length,p<0)return l.start;g=l.end.column}return{row:this.end.row,column:this.end.column+p}},w}();r.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(n,r,d){var h=n("./range").Range,f=h.comparePoints,w=function(){function p(){this.ranges=[],this.$bias=1}return p.prototype.pointIndex=function(g,s,l){for(var a=this.ranges,u=l||0;u<a.length;u++){var o=a[u],c=f(g,o.end);if(!(c>0)){var m=f(g,o.start);return c===0?s&&m!==0?-u-2:u:m>0||m===0&&!s?u:-u-1}}return-u-1},p.prototype.add=function(g){var s=!g.isEmpty(),l=this.pointIndex(g.start,s);l<0&&(l=-l-1);var a=this.pointIndex(g.end,s,l);return a<0?a=-a-1:a++,this.ranges.splice(l,a-l,g)},p.prototype.addList=function(g){for(var s=[],l=g.length;l--;)s.push.apply(s,this.add(g[l]));return s},p.prototype.substractPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges.splice(s,1)},p.prototype.merge=function(){var g=[],s=this.ranges;s=s.sort(function(c,m){return f(c.start,m.start)});for(var l=s[0],a,u=1;u<s.length;u++){a=l,l=s[u];var o=f(a.end,l.start);o<0||o==0&&!a.isEmpty()&&!l.isEmpty()||(f(a.end,l.end)<0&&(a.end.row=l.end.row,a.end.column=l.end.column),s.splice(u,1),g.push(l),l=a,u--)}return this.ranges=s,g},p.prototype.contains=function(g,s){return this.pointIndex({row:g,column:s})>=0},p.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},p.prototype.rangeAtPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges[s]},p.prototype.clipRows=function(g,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<g)return[];var a=this.pointIndex({row:g,column:0});a<0&&(a=-a-1);var u=this.pointIndex({row:s,column:0},a);u<0&&(u=-u-1);for(var o=[],c=a;c<u;c++)o.push(l[c]);return o},p.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},p.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},p.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},p.prototype.$onChange=function(g){for(var s=g.start,l=g.end,a=s.row,u=l.row,o=this.ranges,c=0,m=o.length;c<m;c++){var b=o[c];if(b.end.row>=a)break}if(g.action=="insert")for(var x=u-a,E=-s.column+l.column;c<m;c++){var b=o[c];if(b.start.row>a)break;if(b.start.row==a&&b.start.column>=s.column&&(b.start.column==s.column&&this.$bias<=0||(b.start.column+=E,b.start.row+=x)),b.end.row==a&&b.end.column>=s.column){if(b.end.column==s.column&&this.$bias<0)continue;b.end.column==s.column&&E>0&&c<m-1&&b.end.column>b.start.column&&b.end.column==o[c+1].start.column&&(b.end.column-=E),b.end.column+=E,b.end.row+=x}}else for(var x=a-u,E=s.column-l.column;c<m;c++){var b=o[c];if(b.start.row>u)break;b.end.row<u&&(a<b.end.row||a==b.end.row&&s.column<b.end.column)?(b.end.row=a,b.end.column=s.column):b.end.row==u?b.end.column<=l.column?(x||b.end.column>s.column)&&(b.end.column=s.column,b.end.row=s.row):(b.end.column+=E,b.end.row+=x):b.end.row>u&&(b.end.row+=x),b.start.row<u&&(a<b.start.row||a==b.start.row&&s.column<b.start.column)?(b.start.row=a,b.start.column=s.column):b.start.row==u?b.start.column<=l.column?(x||b.start.column>s.column)&&(b.start.column=s.column,b.start.row=s.row):(b.start.column+=E,b.start.row+=x):b.start.row>u&&(b.start.row+=x)}if(x!=0&&c<m)for(;c<m;c++){var b=o[c];b.start.row+=x,b.end.row+=x}},p}();w.prototype.comparePoints=f,r.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(n,r,d){var h=this&&this.__extends||function(){var a=function(u,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,m){c.__proto__=m}||function(c,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(c[b]=m[b])},a(u,o)};return function(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(u,o);function c(){this.constructor=u}u.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}}(),f=n("../range_list").RangeList,w=function(a){h(u,a);function u(o,c){var m=a.call(this)||this;return m.foldLine=null,m.placeholder=c,m.range=o,m.start=o.start,m.end=o.end,m.sameRow=o.start.row==o.end.row,m.subFolds=m.ranges=[],m}return u.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},u.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(c){c.setFoldLine(o)})},u.prototype.clone=function(){var o=this.range.clone(),c=new u(o,this.placeholder);return this.subFolds.forEach(function(m){c.subFolds.push(m.clone())}),c.collapseChildren=this.collapseChildren,c},u.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var c=o.start.row,m=o.start.column,b=0,x=-1;b<this.subFolds.length&&(x=this.subFolds[b].range.compare(c,m),x==1);b++);var E=this.subFolds[b],A=0;if(x==0){if(E.range.containsRange(o))return E.addSubFold(o);A=1}for(var c=o.range.end.row,m=o.range.end.column,k=b,x=-1;k<this.subFolds.length&&(x=this.subFolds[k].range.compare(c,m),x==1);k++);x==0&&k++;for(var v=this.subFolds.splice(b,k-b,o),T=x==0?v.length-1:v.length,R=A;R<T;R++)o.addSubFold(v[R]);return o.setFoldLine(this.foldLine),o}},u.prototype.restoreRange=function(o){return l(o,this.start)},u}(f);function p(a,u){a.row-=u.row,a.row==0&&(a.column-=u.column)}function g(a,u){p(a.start,u),p(a.end,u)}function s(a,u){a.row==0&&(a.column+=u.column),a.row+=u.row}function l(a,u){s(a.start,u),s(a.end,u)}r.Fold=w}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(n,r,d){var h=n("../range").Range,f=n("./fold_line").FoldLine,w=n("./fold").Fold,p=n("../token_iterator").TokenIterator,g=n("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(l,a,u){var o=this.getFoldLine(l);if(!o)return null;for(var c=o.folds,m=0;m<c.length;m++){var b=c[m].range;if(b.contains(l,a)){if(u==1&&b.isEnd(l,a)&&!b.isEmpty()||u==-1&&b.isStart(l,a)&&!b.isEmpty())continue;return c[m]}}},this.getFoldsInRange=function(l){var a=l.start,u=l.end,o=this.$foldData,c=[];a.column+=1,u.column-=1;for(var m=0;m<o.length;m++){var b=o[m].range.compareRange(l);if(b!=2){if(b==-2)break;for(var x=o[m].folds,E=0;E<x.length;E++){var A=x[E];if(b=A.range.compareRange(l),b==-2)break;if(b!=2){if(b==42)break;c.push(A)}}}}return a.column-=1,u.column+=1,c},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var a=[];l.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(l);return a},this.getAllFolds=function(){for(var l=[],a=this.$foldData,u=0;u<a.length;u++)for(var o=0;o<a[u].folds.length;o++)l.push(a[u].folds[o]);return l},this.getFoldStringAt=function(l,a,u,o){if(o=o||this.getFoldLine(l),!o)return null;for(var c={end:{column:0}},m,b,x=0;x<o.folds.length;x++){b=o.folds[x];var E=b.range.compareEnd(l,a);if(E==-1){m=this.getLine(b.start.row).substring(c.end.column,b.start.column);break}else if(E===0)return null;c=b}return m||(m=this.getLine(b.start.row).substring(c.end.column)),u==-1?m.substring(0,a-c.end.column):u==1?m.substring(a-c.end.column):m},this.getFoldLine=function(l,a){var u=this.$foldData,o=0;for(a&&(o=u.indexOf(a)),o==-1&&(o=0),o;o<u.length;o++){var c=u[o];if(c.start.row<=l&&c.end.row>=l)return c;if(c.end.row>l)return null}return null},this.getNextFoldLine=function(l,a){var u=this.$foldData,o=0;for(a&&(o=u.indexOf(a)),o==-1&&(o=0),o;o<u.length;o++){var c=u[o];if(c.end.row>=l)return c}return null},this.getFoldedRowCount=function(l,a){for(var u=this.$foldData,o=a-l+1,c=0;c<u.length;c++){var m=u[c],b=m.end.row,x=m.start.row;if(b>=a){x<a&&(x>=l?o-=a-x:o=0);break}else b>=l&&(x>=l?o-=b-x:o-=b-l+1)}return o},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(a,u){return a.start.row-u.start.row}),l},this.addFold=function(l,a){var u=this.$foldData,o=!1,c;l instanceof w?c=l:(c=new w(a,l),c.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(c.range);var m=c.start.row,b=c.start.column,x=c.end.row,E=c.end.column,A=this.getFoldAt(m,b,1),k=this.getFoldAt(x,E,-1);if(A&&k==A)return A.addSubFold(c);A&&!A.range.isStart(m,b)&&this.removeFold(A),k&&!k.range.isEnd(x,E)&&this.removeFold(k);var v=this.getFoldsInRange(c.range);v.length>0&&(this.removeFolds(v),c.collapseChildren||v.forEach(function(M){c.addSubFold(M)}));for(var T=0;T<u.length;T++){var R=u[T];if(x==R.start.row){R.addFold(c),o=!0;break}else if(m==R.end.row){if(R.addFold(c),o=!0,!c.sameRow){var O=u[T+1];if(O&&O.start.row==x){R.merge(O);break}}break}else if(x<=R.start.row)break}return o||(R=this.$addFoldLine(new f(this.$foldData,c))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:c,action:"add"}),c},this.addFolds=function(l){l.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(l){var a=l.foldLine,u=a.start.row,o=a.end.row,c=this.$foldData,m=a.folds;if(m.length==1)c.splice(c.indexOf(a),1);else if(a.range.isEnd(l.end.row,l.end.column))m.pop(),a.end.row=m[m.length-1].end.row,a.end.column=m[m.length-1].end.column;else if(a.range.isStart(l.start.row,l.start.column))m.shift(),a.start.row=m[0].start.row,a.start.column=m[0].start.column;else if(l.sameRow)m.splice(m.indexOf(l),1);else{var b=a.split(l.start.row,l.start.column);m=b.folds,m.shift(),b.start.row=m[0].start.row,b.start.column=m[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(u,o):this.$updateRowLengthCache(u,o)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var a=[],u=0;u<l.length;u++)a.push(l[u]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(a){l.restoreRange(a),this.addFold(a)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(l,a){var u,o;if(l==null)u=new h(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof l=="number")u=new h(l,0,l,this.getLine(l).length);else if("row"in l)u=h.fromPoints(l,l);else{if(Array.isArray(l))return o=[],l.forEach(function(m){o=o.concat(this.unfold(m))},this),o;u=l}o=this.getFoldsInRangeList(u);for(var c=o;o.length==1&&h.comparePoints(o[0].start,u.start)<0&&h.comparePoints(o[0].end,u.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(u);if(a!=!1?this.removeFolds(o):this.expandFolds(o),c.length)return c},this.isRowFolded=function(l,a){return!!this.getFoldLine(l,a)},this.getRowFoldEnd=function(l,a){var u=this.getFoldLine(l,a);return u?u.end.row:l},this.getRowFoldStart=function(l,a){var u=this.getFoldLine(l,a);return u?u.start.row:l},this.getFoldDisplayLine=function(l,a,u,o,c){o==null&&(o=l.start.row),c==null&&(c=0),a==null&&(a=l.end.row),u==null&&(u=this.getLine(a).length);var m=this.doc,b="";return l.walk(function(x,E,A,k){if(!(E<o)){if(E==o){if(A<c)return;k=Math.max(c,k)}x!=null?b+=x:b+=m.getLine(E).substring(k,A)}},a,u),b},this.getDisplayLine=function(l,a,u,o){var c=this.getFoldLine(l);if(c)return this.getFoldDisplayLine(c,l,a,u,o);var m;return m=this.doc.getLine(l),m.substring(o||0,a||m.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(a){var u=a.folds.map(function(o){return o.clone()});return new f(l,u)}),l},this.toggleFold=function(l){var a=this.selection,u=a.getRange(),o,c;if(u.isEmpty()){var m=u.start;if(o=this.getFoldAt(m.row,m.column),o){this.expandFold(o);return}else(c=this.findMatchingBracket(m))?u.comparePoint(c)==1?u.end=c:(u.start=c,u.start.column++,u.end.column--):(c=this.findMatchingBracket({row:m.row,column:m.column+1}))?(u.comparePoint(c)==1?u.end=c:u.start=c,u.start.column++):u=this.getCommentFoldRange(m.row,m.column)||u}else{var b=this.getFoldsInRange(u);if(l&&b.length){this.expandFolds(b);return}else b.length==1&&(o=b[0])}if(o||(o=this.getFoldAt(u.start.row,u.start.column)),o&&o.range.toString()==u.toString()){this.expandFold(o);return}var x="...";if(!u.isMultiLine()){if(x=this.getTextRange(u),x.length<4)return;x=x.trim().substring(0,2)+".."}this.addFold(x,u)},this.getCommentFoldRange=function(l,a,u){var o=new p(this,l,a),c=o.getCurrentToken(),m=c&&c.type;if(c&&/^comment|string/.test(m)){m=m.match(/comment|string/)[0],m=="comment"&&(m+="|doc-start|\\.doc");var b=new RegExp(m),x=new h;if(u!=1){do c=o.stepBackward();while(c&&b.test(c.type));c=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+c.value.length,o=new p(this,l,a);var E=this.getState(o.$row);if(u!=-1){var A=-1;do if(c=o.stepForward(),A==-1){var k=this.getState(o.$row);E.toString()!==k.toString()&&(A=o.$row)}else if(o.$row>A)break;while(c&&b.test(c.type));c=o.stepBackward()}else c=o.getCurrentToken();return x.end.row=o.getCurrentTokenRow(),x.end.column=o.getCurrentTokenColumn(),x}},this.foldAll=function(l,a,u,o){u==null&&(u=1e5);var c=this.foldWidgets;if(c){a=a||this.getLength(),l=l||0;for(var m=l;m<a;m++)if(c[m]==null&&(c[m]=this.getFoldWidget(m)),c[m]=="start"&&!(o&&!o(m))){var b=this.getFoldWidgetRange(m);b&&b.isMultiLine()&&b.end.row<=a&&b.start.row>=l&&(m=b.end.row,b.collapseChildren=u,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(a){for(var u=l.getTokens(a),o=0;o<u.length;o++){var c=u[o];if(!(c.type=="text"&&/^\s+$/.test(c.value)))return!!/comment/.test(c.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(l,a){var u=this.foldWidgets;if(!u||a&&u[l])return{};for(var o=l-1,c;o>=0;){var m=u[o];if(m==null&&(m=u[o]=this.getFoldWidget(o)),m=="start"){var b=this.getFoldWidgetRange(o);if(c||(c=b),b&&b.end.row>=l)break}o--}return{range:o!==-1&&b,firstRange:c}},this.onFoldWidgetClick=function(l,a){a instanceof g&&(a=a.domEvent);var u={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(l,u);if(!o){var c=a.target||a.srcElement;c&&/ace_fold-widget/.test(c.className)&&(c.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,a){if(this.getFoldWidget){var u=this.getFoldWidget(l),o=this.getLine(l),c=u==="end"?-1:1,m=this.getFoldAt(l,c===-1?0:o.length,c);if(m)return a.children||a.all?this.removeFold(m):this.expandFold(m),m;var b=this.getFoldWidgetRange(l,!0);if(b&&!b.isMultiLine()&&(m=this.getFoldAt(b.start.row,b.start.column,1),m&&b.isEqual(m.range)))return this.removeFold(m),m;if(a.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var E=x.range.start.row+1,A=x.range.end.row;this.foldAll(E,A,a.all?1e4:0)}else a.children?(A=b?b.end.row:this.getLength(),this.foldAll(l+1,A,a.all?1e4:0)):b&&(a.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var u=this.$toggleFoldWidget(a,{});if(!u){var o=this.getParentFoldRangeData(a,!0);if(u=o.range||o.firstRange,u){a=u.start.row;var c=this.getFoldAt(a,this.getLine(a).length,1);c?this.removeFold(c):this.addFold("...",u)}}},this.updateFoldWidgets=function(l){var a=l.start.row,u=l.end.row-a;if(u===0)this.foldWidgets[a]=null;else if(l.action=="remove")this.foldWidgets.splice(a,u+1,null);else{var o=Array(u+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(l){var a=l.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,d){var h=n("../token_iterator").TokenIterator,f=n("../range").Range;function w(){this.findMatchingBracket=function(p,g){if(p.column==0)return null;var s=g||this.getLine(p.row).charAt(p.column-1);if(s=="")return null;var l=s.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],p):this.$findOpeningBracket(l[2],p):null},this.getBracketRange=function(p){var g=this.getLine(p.row),s=!0,l,a=g.charAt(p.column-1),u=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(u||(a=g.charAt(p.column),p={row:p.row,column:p.column+1},u=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!u)return null;if(u[1]){var o=this.$findClosingBracket(u[1],p);if(!o)return null;l=f.fromPoints(p,o),s||(l.end.column++,l.start.column--),l.cursor=l.end}else{var o=this.$findOpeningBracket(u[2],p);if(!o)return null;l=f.fromPoints(o,p),s||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(p,g){var s=this.getLine(p.row),l=/([\(\[\{])|([\)\]\}])/,a=!g&&s.charAt(p.column-1),u=a&&a.match(l);if(u||(a=(g===void 0||g)&&s.charAt(p.column),p={row:p.row,column:p.column+1},u=a&&a.match(l)),!u)return null;var o=new f(p.row,p.column-1,p.row,p.column),c=u[1]?this.$findClosingBracket(u[1],p):this.$findOpeningBracket(u[2],p);if(!c)return[o];var m=new f(c.row,c.column,c.row,c.column+1);return[o,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(p,g,s){var l=this.$brackets[p],a=1,u=new h(this,g.row,g.column),o=u.getCurrentToken();if(o||(o=u.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var c=g.column-u.getCurrentTokenColumn()-2,m=o.value;;){for(;c>=0;){var b=m.charAt(c);if(b==l){if(a-=1,a==0)return{row:u.getCurrentTokenRow(),column:c+u.getCurrentTokenColumn()}}else b==p&&(a+=1);c-=1}do o=u.stepBackward();while(o&&!s.test(o.type));if(o==null)break;m=o.value,c=m.length-1}return null}},this.$findClosingBracket=function(p,g,s){var l=this.$brackets[p],a=1,u=new h(this,g.row,g.column),o=u.getCurrentToken();if(o||(o=u.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var c=g.column-u.getCurrentTokenColumn();;){for(var m=o.value,b=m.length;c<b;){var x=m.charAt(c);if(x==l){if(a-=1,a==0)return{row:u.getCurrentTokenRow(),column:c+u.getCurrentTokenColumn()}}else x==p&&(a+=1);c+=1}do o=u.stepForward();while(o&&!s.test(o.type));if(o==null)break;c=0}return null}},this.getMatchingTags=function(p){var g=new h(this,p.row,p.column),s=this.$findTagName(g);if(s){var l=g.stepBackward();return l.value==="<"?this.$findClosingTag(g,s):this.$findOpeningTag(g,s)}},this.$findTagName=function(p){var g=p.getCurrentToken(),s=!1,l=!1;if(g&&g.type.indexOf("tag-name")===-1)do l?g=p.stepBackward():g=p.stepForward(),g&&(g.value==="/>"?l=!0:g.type.indexOf("tag-name")!==-1&&(s=!0));while(g&&!s);return g},this.$findClosingTag=function(p,g){var s,l=g.value,a=g.value,u=0,o=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);g=p.stepForward();var c=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+g.value.length),m=!1;do{if(s=g,s.type.indexOf("tag-close")!==-1&&!m){var b=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);m=!0}if(g=p.stepForward(),g){if(g.value===">"&&!m){var b=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);m=!0}if(g.type.indexOf("tag-name")!==-1){if(l=g.value,a===l){if(s.value==="<")u++;else if(s.value==="</"&&(u--,u<0)){p.stepBackward();var x=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+2);g=p.stepForward();var E=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=p.stepForward()),g&&g.value===">")var A=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);else return}}}else if(a===l&&g.value==="/>"&&(u--,u<0))var x=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+2),E=x,A=E,b=new f(c.end.row,c.end.column,c.end.row,c.end.column+1)}}while(g&&u>=0);if(o&&b&&x&&A&&c&&E)return{openTag:new f(o.start.row,o.start.column,b.end.row,b.end.column),closeTag:new f(x.start.row,x.start.column,A.end.row,A.end.column),openTagName:c,closeTagName:E}},this.$findOpeningTag=function(p,g){var s=p.getCurrentToken(),l=g.value,a=0,u=p.getCurrentTokenRow(),o=p.getCurrentTokenColumn(),c=o+2,m=new f(u,o,u,c);p.stepForward();var b=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=p.stepForward()),!(!g||g.value!==">")){var x=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);p.stepBackward(),p.stepBackward();do if(g=s,u=p.getCurrentTokenRow(),o=p.getCurrentTokenColumn(),c=o+g.value.length,s=p.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(l===g.value)if(s.value==="<"){if(a++,a>0){var E=new f(u,o,u,c),A=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);do g=p.stepForward();while(g&&g.value!==">");var k=new f(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(g.value==="/>"){for(var v=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===l){a--;break}else if(T.value==="<")break;T=p.stepBackward(),v++}for(var R=0;R<v;R++)p.stepForward()}}while(s&&a<=0);if(A&&k&&m&&x&&E&&b)return{openTag:new f(A.start.row,A.start.column,k.end.row,k.end.column),closeTag:new f(m.start.row,m.start.column,x.end.row,x.end.column),openTagName:E,closeTagName:b}}}}r.BracketMatch=w}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,r,d){var h=n("./lib/oop"),f=n("./lib/lang"),w=n("./bidihandler").BidiHandler,p=n("./config"),g=n("./lib/event_emitter").EventEmitter,s=n("./selection").Selection,l=n("./mode/text").Mode,a=n("./range").Range,u=n("./line_widgets").LineWidgets,o=n("./document").Document,c=n("./background_tokenizer").BackgroundTokenizer,m=n("./search_highlight").SearchHighlight,b=n("./undomanager").UndoManager,x=function(){function S(_,$){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++S.$uid,this.$foldData.toString=function(){return this.join(`
203
+ `)},this.bgTokenizer=new c(new l().getTokenizer(),this);var L=this;this.bgTokenizer.on("update",function(D){L._signal("tokenizerUpdate",D)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),p.resetOptions(this),this.setMode($),p._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return S.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=f.delayedCall(this.endOperation.bind(this,!0))},S.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},S.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection($),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},S.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},S.prototype.getDocument=function(){return this.doc},Object.defineProperty(S.prototype,"widgetManager",{get:function(){var _=new u(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),S.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,L=this.$getRowCacheIndex(this.$docRowCache,_)+1;$>L&&(this.$docRowCache.splice(L,$),this.$screenRowCache.splice(L,$))},S.prototype.$getRowCacheIndex=function(_,$){for(var L=0,D=_.length-1;L<=D;){var F=L+D>>1,B=_[F];if($>B)L=F+1;else if($<B)D=F-1;else return F}return L-1},S.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},S.prototype.onChangeFold=function(_){var $=_.data;this.$resetRowCache($.start.row)},S.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var $=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},S.prototype.onSelectionChange=function(){this._signal("changeSelection")},S.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},S.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var $=new b;$.$undoStack=_.history.undo,$.$redoStack=_.history.redo,$.mark=_.history.mark,$.$rev=_.history.rev;var L=new S(_.value);return _.folds.forEach(function(D){L.addFold("...",a.fromPoints(D.start,D.end))}),L.setAnnotations(_.annotations),L.setBreakpoints(_.breakpoints),L.setMode(_.mode),L.setScrollLeft(_.scrollLeft),L.setScrollTop(_.scrollTop),L.setUndoManager($),L.selection.fromJSON(_.selection),L},S.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},S.prototype.toString=function(){return this.doc.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.getState=function(_){return this.bgTokenizer.getState(_)},S.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},S.prototype.getTokenAt=function(_,$){var L=this.bgTokenizer.getTokens(_),D,F=0;if($==null){var B=L.length-1;F=this.getLine(_).length}else for(var B=0;B<L.length&&(F+=L[B].value.length,!(F>=$));B++);return D=L[B],D?(D.index=B,D.start=F-D.value.length,D):null},S.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var $=this;_.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},S.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(_){this.setOption("tabSize",_)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},S.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(_,$){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+$,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(_,$){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var $=0;$<_.length;$++)this.$breakpoints[_[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},S.prototype.setBreakpoint=function(_,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[_]=$:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.addMarker=function(_,$,L,D){var F=this.$markerId++,B={range:_,type:L||"line",renderer:typeof L=="function"?L:null,clazz:$,inFront:!!D,id:F};return D?(this.$frontMarkers[F]=B,this._signal("changeFrontMarker")):(this.$backMarkers[F]=B,this._signal("changeBackMarker")),F},S.prototype.addDynamicMarker=function(_,$){if(_.update){var L=this.$markerId++;return _.id=L,_.inFront=!!$,$?(this.$frontMarkers[L]=_,this._signal("changeFrontMarker")):(this.$backMarkers[L]=_,this._signal("changeBackMarker")),_}},S.prototype.removeMarker=function(_){var $=this.$frontMarkers[_]||this.$backMarkers[_];if($){var L=$.inFront?this.$frontMarkers:this.$backMarkers;delete L[_],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},S.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},S.prototype.highlight=function(_){if(!this.$searchHighlight){var $=new m(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(_)},S.prototype.highlightLines=function(_,$,L,D){typeof $!="number"&&(L=$,$=_),L||(L="ace_step");var F=new a(_,0,$,1/0);return F.id=this.addMarker(F,L,"fullLine",D),F},S.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},S.prototype.getAnnotations=function(){return this.$annotations||[]},S.prototype.clearAnnotations=function(){this.setAnnotations([])},S.prototype.$detectNewLine=function(_){var $=_.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
204
+ `},S.prototype.getWordRange=function(_,$){var L=this.getLine(_),D=!1;if($>0&&(D=!!L.charAt($-1).match(this.tokenRe)),D||(D=!!L.charAt($).match(this.tokenRe)),D)var F=this.tokenRe;else if(/^\s+$/.test(L.slice($-1,$+1)))var F=/\s/;else var F=this.nonTokenRe;var B=$;if(B>0){do B--;while(B>=0&&L.charAt(B).match(F));B++}for(var W=$;W<L.length&&L.charAt(W).match(F);)W++;return new a(_,B,_,W)},S.prototype.getAWordRange=function(_,$){for(var L=this.getWordRange(_,$),D=this.getLine(L.end.row);D.charAt(L.end.column).match(/[ \t]/);)L.end.column+=1;return L},S.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},S.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},S.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},S.prototype.getUseWorker=function(){return this.$useWorker},S.prototype.onReloadTokenizer=function(_){var $=_.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",_)},S.prototype.setMode=function(_,$){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var L=_,D=L.path}else D=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[D]&&!L){this.$onChangeMode(this.$modes[D]),$&&$();return}this.$modeId=D,p.loadModule(["mode",D],(function(F){if(this.$modeId!==D)return $&&$();this.$modes[D]&&!L?this.$onChangeMode(this.$modes[D]):F&&F.Mode&&(F=new F.Mode(L),L||(this.$modes[D]=F,F.$id=D),this.$onChangeMode(F)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},S.prototype.$onChangeMode=function(_,$){if($||(this.$modeId=_.$id),this.$mode!==_){var L=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var D=_.getTokenizer();if(D.on!==void 0){var F=this.onReloadTokenizer.bind(this);D.on("update",F)}this.bgTokenizer.setTokenizer(D),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,$||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:L,mode:_}))}},S.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},S.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){p.warn("Could not load worker",_),this.$worker=null}},S.prototype.getMode=function(){return this.$mode},S.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},S.prototype.getScrollTop=function(){return this.$scrollTop},S.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},S.prototype.getScrollLeft=function(){return this.$scrollLeft},S.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},S.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>_&&(_=$.screenWidth)}),this.lineWidgetWidth=_},S.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),L=this.$rowLengthCache,D=0,F=0,B=this.$foldData[F],W=B?B.start.row:1/0,q=$.length,V=0;V<q;V++){if(V>W){if(V=B.end.row+1,V>=q)break;B=this.$foldData[F++],W=B?B.start.row:1/0}L[V]==null&&(L[V]=this.$getStringScreenWidth($[V])[0]),L[V]>D&&(D=L[V])}this.screenWidth=D}},S.prototype.getLine=function(_){return this.doc.getLine(_)},S.prototype.getLines=function(_,$){return this.doc.getLines(_,$)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},S.prototype.insert=function(_,$){return this.doc.insert(_,$)},S.prototype.remove=function(_){return this.doc.remove(_)},S.prototype.removeFullLines=function(_,$){return this.doc.removeFullLines(_,$)},S.prototype.undoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var L=_.length-1;L!=-1;L--){var D=_[L];D.action=="insert"||D.action=="remove"?this.doc.revertDelta(D):D.folds&&this.addFolds(D.folds)}!$&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var L=0;L<_.length;L++){var D=_[L];(D.action=="insert"||D.action=="remove")&&this.doc.$safeApplyDelta(D)}!$&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},S.prototype.setUndoSelect=function(_){this.$undoSelect=_},S.prototype.$getUndoSelection=function(_,$){function L(q){return $?q.action!=="insert":q.action==="insert"}for(var D,F,B=0;B<_.length;B++){var W=_[B];if(W.start){if(!D){L(W)?D=a.fromPoints(W.start,W.end):D=a.fromPoints(W.start,W.start);continue}L(W)?(F=W.start,D.compare(F.row,F.column)==-1&&D.setStart(F),F=W.end,D.compare(F.row,F.column)==1&&D.setEnd(F)):(F=W.start,D.compare(F.row,F.column)==-1&&(D=a.fromPoints(W.start,W.start)))}}return D},S.prototype.replace=function(_,$){return this.doc.replace(_,$)},S.prototype.moveText=function(_,$,L){var D=this.getTextRange(_),F=this.getFoldsInRange(_),B=a.fromPoints($,$);if(!L){this.remove(_);var W=_.start.row-_.end.row,q=W?-_.end.column:_.start.column-_.end.column;q&&(B.start.row==_.end.row&&B.start.column>_.end.column&&(B.start.column+=q),B.end.row==_.end.row&&B.end.column>_.end.column&&(B.end.column+=q)),W&&B.start.row>=_.end.row&&(B.start.row+=W,B.end.row+=W)}if(B.end=this.insert(B.start,D),F.length){var V=_.start,X=B.start,W=X.row-V.row,q=X.column-V.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==V.row&&(re.start.column+=q),re.end.row==V.row&&(re.end.column+=q),re.start.row+=W,re.end.row+=W,re}))}return B},S.prototype.indentRows=function(_,$,L){L=L.replace(/\t/g,this.getTabString());for(var D=_;D<=$;D++)this.doc.insertInLine({row:D,column:0},L)},S.prototype.outdentRows=function(_){for(var $=_.collapseRows(),L=new a(0,0,0,0),D=this.getTabSize(),F=$.start.row;F<=$.end.row;++F){var B=this.getLine(F);L.start.row=F,L.end.row=F;for(var W=0;W<D&&B.charAt(W)==" ";++W);W<D&&B.charAt(W)==" "?(L.start.column=W,L.end.column=W+1):(L.start.column=0,L.end.column=W),this.remove(L)}},S.prototype.$moveLines=function(_,$,L){if(_=this.getRowFoldStart(_),$=this.getRowFoldEnd($),L<0){var D=this.getRowFoldStart(_+L);if(D<0)return 0;var F=D-_}else if(L>0){var D=this.getRowFoldEnd($+L);if(D>this.doc.getLength()-1)return 0;var F=D-$}else{_=this.$clipRowToDocument(_),$=this.$clipRowToDocument($);var F=$-_+1}var B=new a(_,0,$,Number.MAX_VALUE),W=this.getFoldsInRange(B).map(function(V){return V=V.clone(),V.start.row+=F,V.end.row+=F,V}),q=L==0?this.doc.getLines(_,$):this.doc.removeFullLines(_,$);return this.doc.insertFullLines(_+F,q),W.length&&this.addFolds(W),F},S.prototype.moveLinesUp=function(_,$){return this.$moveLines(_,$,-1)},S.prototype.moveLinesDown=function(_,$){return this.$moveLines(_,$,1)},S.prototype.duplicateLines=function(_,$){return this.$moveLines(_,$,0)},S.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(_,$){return $<0?0:Math.min(this.doc.getLine(_).length,$)},S.prototype.$clipPositionToDocument=function(_,$){if($=Math.max(0,$),_<0)_=0,$=0;else{var L=this.doc.getLength();_>=L?(_=L-1,$=this.doc.getLine(L-1).length):$=Math.min(this.doc.getLine(_).length,$)}return{row:_,column:$}},S.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var $=this.doc.getLength()-1;return _.end.row>$?(_.end.row=$,_.end.column=this.doc.getLine($).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},S.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(_,$){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:_,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(_,$){var L=this.$wrapLimitRange;L.max<0&&(L={min:$,max:$});var D=this.$constrainWrapLimit(_,L.min,L.max);return D!=this.$wrapLimit&&D>1?(this.$wrapLimit=D,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},S.prototype.$constrainWrapLimit=function(_,$,L){return $&&(_=Math.max($,_)),L&&(_=Math.min(L,_)),_},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(_){var $=this.$useWrapMode,L=_.action,D=_.start,F=_.end,B=D.row,W=F.row,q=W-B,V=null;if(this.$updating=!0,q!=0)if(L==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(B,q);var X=this.$foldData;V=this.getFoldsInRange(_),this.removeFolds(V);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,D.column-F.column),G.shiftRow(-q);var re=this.getFoldLine(B);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-q)}W=B}else{var J=Array(q);J.unshift(B,0);var ae=$?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(B),Z=0;if(G){var we=G.range.compareInside(D.row,D.column);we==0?(G=G.split(D.row,D.column),G&&(G.shiftRow(q),G.addRemoveChars(W,0,F.column-D.column))):we==-1&&(G.addRemoveChars(B,0,F.column-D.column),G.shiftRow(q)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=B&&G.shiftRow(q)}}else{q=Math.abs(_.start.column-_.end.column),L==="remove"&&(V=this.getFoldsInRange(_),this.removeFolds(V),q=-q);var G=this.getFoldLine(B);G&&G.addRemoveChars(B,D.column,q)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(B,W):this.$updateRowLengthCache(B,W),V},S.prototype.$updateRowLengthCache=function(_,$){this.$rowLengthCache[_]=null,this.$rowLengthCache[$]=null},S.prototype.$updateWrapData=function(_,$){var L=this.doc.getAllLines(),D=this.getTabSize(),F=this.$wrapData,B=this.$wrapLimit,W,q,V=_;for($=Math.min($,L.length-1);V<=$;)q=this.getFoldLine(V,q),q?(W=[],q.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,W.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=v}else J=this.$getDisplayTokens(L[G].substring(re,Z),W.length);W=W.concat(J)}).bind(this),q.end.row,L[q.end.row].length+1),F[q.start.row]=this.$computeWrapSplits(W,B,D),V=q.end.row+1):(W=this.$getDisplayTokens(L[V]),F[V]=this.$computeWrapSplits(W,B,D),V++)},S.prototype.$computeWrapSplits=function(_,$,L){if(_.length==0)return[];var D=[],F=_.length,B=0,W=0,q=this.$wrapAsCode,V=this.$indentedSoftWrap,X=$<=Math.max(2*L,8)||V===!1?0:Math.floor($/2);function G(){var we=0;if(X===0)return we;if(V)for(var ve=0;ve<_.length;ve++){var me=_[ve];if(me==R)we+=1;else if(me==O)we+=L;else{if(me==M)continue;break}}return q&&V!==!1&&(we+=L),Math.min(we,X)}function Z(we){for(var ve=we-B,me=B;me<we;me++){var Se=_[me];(Se===12||Se===2)&&(ve-=1)}D.length||(re=G(),D.indent=re),W+=ve,D.push(W),B=we}for(var re=0;F-B>$-re;){var J=B+$-re;if(_[J-1]>=R&&_[J]>=R){Z(J);continue}if(_[J]==k||_[J]==v){for(J;J!=B-1&&_[J]!=k;J--);if(J>B){Z(J);continue}for(J=B+$,J;J<_.length&&_[J]==v;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-($-($>>2)),B-1);J>ae&&_[J]<k;)J--;if(q){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==T;)J--}else for(;J>ae&&_[J]<R;)J--;if(J>ae){Z(++J);continue}J=B+$,_[J]==A&&J--,Z(J-re)}return D},S.prototype.$getDisplayTokens=function(_,$){var L=[],D;$=$||0;for(var F=0;F<_.length;F++){var B=_.charCodeAt(F);if(B==9){D=this.getScreenTabSize(L.length+$),L.push(O);for(var W=1;W<D;W++)L.push(M)}else B==32?L.push(R):B>39&&B<48||B>57&&B<64?L.push(T):B>=4352&&N(B)?L.push(E,A):L.push(E)}return L},S.prototype.$getStringScreenWidth=function(_,$,L){if($==0)return[0,0];$==null&&($=1/0),L=L||0;var D,F;for(F=0;F<_.length&&(D=_.charCodeAt(F),D==9?L+=this.getScreenTabSize(L):D>=4352&&N(D)?L+=2:L+=1,!(L>$));F++);return[L,F]},S.prototype.getRowLength=function(_){var $=1;return this.lineWidgets&&($+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?$:this.$wrapData[_].length+$},S.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},S.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE),L=this.$wrapData[$.row];return L.length&&L[0]<$.column?L.indent:0}else return 0},S.prototype.getScreenLastRowColumn=function(_){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},S.prototype.getDocumentLastRowColumn=function(_,$){var L=this.documentToScreenRow(_,$);return this.getScreenLastRowColumn(L)},S.prototype.getDocumentLastRowColumnPosition=function(_,$){var L=this.documentToScreenRow(_,$);return this.screenToDocumentPosition(L,Number.MAX_VALUE/10)},S.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},S.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},S.prototype.screenToDocumentRow=function(_,$){return this.screenToDocumentPosition(_,$).row},S.prototype.screenToDocumentColumn=function(_,$){return this.screenToDocumentPosition(_,$).column},S.prototype.screenToDocumentPosition=function(_,$,L){if(_<0)return{row:0,column:0};var D,Z=0,F=0,B,G=0,W=0,q=this.$screenRowCache,V=this.$getRowCacheIndex(q,_),X=q.length;if(X&&V>=0)var G=q[V],Z=this.$docRowCache[V],re=_>q[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),we=ae?ae.start.row:1/0;G<=_&&(W=this.getRowLength(Z),!(G+W>_||Z>=J));)G+=W,Z++,Z>we&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),we=ae?ae.start.row:1/0),re&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)D=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+W<=_||Z>J)return{row:J,column:this.getLine(J).length};D=this.getLine(Z),ae=null}var ve=0,me=Math.floor(_-G);if(this.$useWrapMode){var Se=this.$wrapData[Z];Se&&(B=Se[me],me>0&&Se.length&&(ve=Se.indent,F=Se[me-1]||Se[Se.length-1],D=D.substring(F)))}return L!==void 0&&this.$bidiHandler.isBidiRow(G+me,Z,me)&&($=this.$bidiHandler.offsetToCol(L)),F+=this.$getStringScreenWidth(D,$-ve)[1],this.$useWrapMode&&F>=B&&(F=B-1),ae?ae.idxToPosition(F):{row:Z,column:F}},S.prototype.documentToScreenPosition=function(_,$){if(typeof $>"u")var L=this.$clipPositionToDocument(_.row,_.column);else L=this.$clipPositionToDocument(_,$);_=L.row,$=L.column;var G=0,D=null,F=null;F=this.getFoldAt(_,$,1),F&&(_=F.start.row,$=F.start.column);var B,X=0,W=this.$docRowCache,q=this.$getRowCacheIndex(W,_),V=W.length;if(V&&q>=0)var X=W[q],G=this.$screenRowCache[q],Z=_>W[V-1];else var Z=!V;for(var re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<_;){if(X>=J){if(B=re.end.row+1,B>_)break;re=this.getNextFoldLine(B,re),J=re?re.start.row:1/0}else B=X+1;G+=this.getRowLength(X),X=B,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";re&&X>=J?(ae=this.getFoldDisplayLine(re,_,$),D=re.start.row):(ae=this.getLine(_).substring(0,$),D=_);var we=0;if(this.$useWrapMode){var ve=this.$wrapData[D];if(ve){for(var me=0;ae.length>=ve[me];)G++,me++;ae=ae.substring(ve[me-1]||0,ae.length),we=me>0?ve.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:we+this.$getStringScreenWidth(ae)[0]}},S.prototype.documentToScreenColumn=function(_,$){return this.documentToScreenPosition(_,$).column},S.prototype.documentToScreenRow=function(_,$){return this.documentToScreenPosition(_,$).row},S.prototype.getScreenLength=function(){var _=0,$=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,D=0,F=0,$=this.$foldData[F++],B=$?$.start.row:1/0;D<L;){var W=this.$wrapData[D];_+=W?W.length+1:1,D++,D>B&&(D=$.end.row+1,$=this.$foldData[F++],B=$?$.start.row:1/0)}else{_=this.getLength();for(var q=this.$foldData,F=0;F<q.length;F++)$=q[F],_-=$.end.row-$.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},S.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function($,L,D){if(L===0)return[0,0];L||(L=1/0),D=D||0;var F,B;for(B=0;B<$.length&&(F=$.charAt(B),F===" "?D+=this.getScreenTabSize(D):D+=_.getCharacterWidth(F),!(D>L));B++);return[D,B]})},S.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(_.row);return $[_.column-1]},S.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},S}();x.$uid=0,x.prototype.$modes=p.$modes,x.prototype.getValue=x.prototype.toString,x.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},x.prototype.$overwrite=!1,x.prototype.$mode=null,x.prototype.$modeId=null,x.prototype.$scrollTop=0,x.prototype.$scrollLeft=0,x.prototype.$wrapLimit=80,x.prototype.$useWrapMode=!1,x.prototype.$wrapLimitRange={min:null,max:null},x.prototype.lineWidgets=null,x.prototype.isFullWidth=N,h.implement(x.prototype,g);var E=1,A=2,k=3,v=4,T=9,R=10,O=11,M=12;function N(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}n("./edit_session/folding").Folding.call(x.prototype),n("./edit_session/bracket_match").BracketMatch.call(x.prototype),p.defineOptions(x.prototype,"session",{wrap:{set:function(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var _=typeof S=="number"?S:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,d){var h=n("./lib/lang"),f=n("./lib/oop"),w=n("./range").Range,p=function(){function s(){this.$options={}}return s.prototype.set=function(l){return f.mixin(this.$options,l),this},s.prototype.getOptions=function(){return h.copyObject(this.$options)},s.prototype.setOptions=function(l){this.$options=l},s.prototype.find=function(l){var a=this.$options,u=this.$matchIterator(l,a);if(!u)return!1;var o=null;return u.forEach(function(c,m,b,x){return o=new w(c,m,b,x),m==x&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(l){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var u=a.range,o=u?l.getLines(u.start.row,u.end.row):l.doc.getAllLines(),c=[],m=a.re;if(a.$isMultiLine){var b=m.length,x=o.length-b,E;e:for(var A=m.offset||0;A<=x;A++){for(var k=0;k<b;k++)if(o[A+k].search(m[k])==-1)continue e;var v=o[A],T=o[A+b-1],R=v.length-v.match(m[0])[0].length,O=T.match(m[b-1])[0].length;E&&E.end.row===A&&E.end.column>R||(c.push(E=new w(A,R,A+b-1,O)),b>2&&(A=A+b-2))}}else for(var M=0;M<o.length;M++)for(var N=h.getMatchOffsets(o[M],m),k=0;k<N.length;k++){var S=N[k];c.push(new w(M,S.offset,M,S.offset+S.length))}if(u){for(var _=u.start.column,$=u.end.column,M=0,k=c.length-1;M<k&&c[M].start.column<_&&c[M].start.row==0;)M++;for(var L=u.end.row-u.start.row;M<k&&c[k].end.column>$&&c[k].end.row==L;)k--;for(c=c.slice(M,k+1),M=0,k=c.length;M<k;M++)c[M].start.row+=u.start.row,c[M].end.row+=u.start.row}return c},s.prototype.replace=function(l,a){var u=this.$options,o=this.$assembleRegExp(u);if(u.$isMultiLine)return a;if(o){var c=o.exec(l);if(!c||c[0].length!=l.length)return null;if(u.regExp||(a=a.replace(/\$/g,"$$$$")),a=l.replace(o,a),u.preserveCase){a=a.split("");for(var m=Math.min(l.length,l.length);m--;){var b=l[m];b&&b.toLowerCase()!=b?a[m]=a[m].toUpperCase():a[m]=a[m].toLowerCase()}a=a.join("")}return a}},s.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=h.escapeRegExp(u));var o=l.caseSensitive?"gm":"gmi";try{new RegExp(u,"u"),l.$supportsUnicodeFlag=!0,o+="u"}catch{l.$supportsUnicodeFlag=!1}if(l.wholeWord&&(u=g(u,l)),l.$isMultiLine=!a&&/[\n\r]/.test(u),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(u,o);try{var c=new RegExp(u,o)}catch{c=!1}return l.re=c},s.prototype.$assembleMultilineRegExp=function(l,a){for(var u=l.replace(/\r\n|\r|\n/g,`$
205
+ ^`).split(`
206
+ `),o=[],c=0;c<u.length;c++)try{o.push(new RegExp(u[c],a))}catch{return!1}return o},s.prototype.$matchIterator=function(l,a){var u=this.$assembleRegExp(a);if(!u)return!1;var o=a.backwards==!0,c=a.skipCurrent!=!1,m=u.unicode,b=a.range,x=a.start;x||(x=b?b[o?"end":"start"]:l.selection.getRange()),x.start&&(x=x[c!=o?"end":"start"]);var E=b?b.start.row:0,A=b?b.end.row:l.getLength()-1;if(o)var k=function(R){var O=x.row;if(!T(O,x.column,R)){for(O--;O>=E;O--)if(T(O,Number.MAX_VALUE,R))return;if(a.wrap!=!1){for(O=A,E=x.row;O>=E;O--)if(T(O,Number.MAX_VALUE,R))return}}};else var k=function(R){var O=x.row;if(!T(O,x.column,R)){for(O=O+1;O<=A;O++)if(T(O,0,R))return;if(a.wrap!=!1){for(O=E,A=x.row;O<=A;O++)if(T(O,0,R))return}}};if(a.$isMultiLine)var v=u.length,T=function(R,O,M){var N=o?R-v+1:R;if(!(N<0||N+v>l.getLength())){var S=l.getLine(N),_=S.search(u[0]);if(!(!o&&_<O||_===-1)){for(var $=1;$<v;$++)if(S=l.getLine(N+$),S.search(u[$])==-1)return;var L=S.match(u[v-1])[0].length;if(!(o&&L>O)&&M(N,_,N+v-1,L))return!0}}};else if(o)var T=function(R,O,M){var N=l.getLine(R),S=[],_,$=0;for(u.lastIndex=0;_=u.exec(N);){var L=_[0].length;if($=_.index,!L){if($>=N.length)break;u.lastIndex=$+=h.skipEmptyMatch(N,$,m)}if(_.index+L>O)break;S.push(_.index,L)}for(var D=S.length-1;D>=0;D-=2){var F=S[D-1],L=S[D];if(M(R,F,R,F+L))return!0}};else var T=function(R,O,M){var N=l.getLine(R),S,_;for(u.lastIndex=O;_=u.exec(N);){var $=_[0].length;if(S=_.index,M(R,S,R,S+$))return!0;if(!$&&(u.lastIndex=S+=h.skipEmptyMatch(N,S,m),S>=N.length))return!1}};return{forEach:k}},s}();function g(s,l){var a=h.supportsLookbehind();function u(b,x){x===void 0&&(x=!0);var E=a&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return E.test(b)||l.regExp?a&&l.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),c=o[0],m=o[o.length-1];return u(c)+s+u(m,!1)}r.Search=p}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,d){var h=this&&this.__extends||function(){var a=function(u,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,m){c.__proto__=m}||function(c,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(c[b]=m[b])},a(u,o)};return function(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(u,o);function c(){this.constructor=u}u.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}}(),f=n("../lib/keys"),w=n("../lib/useragent"),p=f.KEY_MODS,g=function(){function a(u,o){this.$init(u,o,!1)}return a.prototype.$init=function(u,o,c){this.platform=o||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=c},a.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},a.prototype.removeCommand=function(u,o){var c=u&&(typeof u=="string"?u:u.name);u=this.commands[c],o||delete this.commands[c];var m=this.commandKeyBinding;for(var b in m){var x=m[b];if(x==u)delete m[b];else if(Array.isArray(x)){var E=x.indexOf(u);E!=-1&&(x.splice(E,1),x.length==1&&(m[b]=x[0]))}}},a.prototype.bindKey=function(u,o,c){if(typeof u=="object"&&u&&(c==null&&(c=u.position),u=u[this.platform]),!!u){if(typeof o=="function")return this.addCommand({exec:o,bindKey:u,name:o.name||u});u.split("|").forEach(function(m){var b="";if(m.indexOf(" ")!=-1){var x=m.split(/\s+/);m=x.pop(),x.forEach(function(k){var v=this.parseKeys(k),T=p[v.hashId]+v.key;b+=(b?" ":"")+T,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var E=this.parseKeys(m),A=p[E.hashId]+E.key;this._addCommandToBinding(b+A,o,c)},this)}},a.prototype._addCommandToBinding=function(u,o,c){var m=this.commandKeyBinding,b;if(!o)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=o;else{Array.isArray(m[u])?(b=m[u].indexOf(o))!=-1&&m[u].splice(b,1):m[u]=[m[u]],typeof c!="number"&&(c=s(o));var x=m[u];for(b=0;b<x.length;b++){var E=x[b],A=s(E);if(A>c)break}x.splice(b,0,o)}},a.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(o){var c=u[o];if(c){if(typeof c=="string")return this.bindKey(c,o);typeof c=="function"&&(c={exec:c}),typeof c=="object"&&(c.name||(c.name=o),this.addCommand(c))}},this)},a.prototype.removeCommands=function(u){Object.keys(u).forEach(function(o){this.removeCommand(u[o])},this)},a.prototype.bindKeys=function(u){Object.keys(u).forEach(function(o){this.bindKey(o,u[o])},this)},a.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},a.prototype.parseKeys=function(u){var o=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(A){return A}),c=o.pop(),m=f[c];if(f.FUNCTION_KEYS[m])c=f.FUNCTION_KEYS[m].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:c.toUpperCase(),hashId:-1}}else return{key:c,hashId:-1};for(var b=0,x=o.length;x--;){var E=f.KEY_MODS[o[x]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+u),!1;b|=E}return{key:c,hashId:b}},a.prototype.findKeyCommand=function(u,o){var c=p[u]+o;return this.commandKeyBinding[c]},a.prototype.handleKeyboard=function(u,o,c,m){if(!(m<0)){var b=p[o]+c,x=this.commandKeyBinding[b];return u.$keyChain&&(u.$keyChain+=" "+b,x=this.commandKeyBinding[u.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||b,{command:"null"}):(u.$keyChain&&((!o||o==4)&&c.length==1?u.$keyChain=u.$keyChain.slice(0,-b.length-1):(o==-1||m>0)&&(u.$keyChain="")),{command:x})}},a.prototype.getStatusText=function(u,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var l=function(a){h(u,a);function u(o,c){var m=a.call(this,o,c)||this;return m.$singleCommand=!0,m}return u}(g);l.call=function(a,u,o){g.prototype.$init.call(a,u,o,!0)},g.call=function(a,u,o){g.prototype.$init.call(a,u,o,!1)},r.HashHandler=l,r.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,d){var h=this&&this.__extends||function(){var s=function(l,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=o[c])},s(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");s(l,a);function u(){this.constructor=l}l.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}}(),f=n("../lib/oop"),w=n("../keyboard/hash_handler").MultiHashHandler,p=n("../lib/event_emitter").EventEmitter,g=function(s){h(l,s);function l(a,u){var o=s.call(this,u,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(c){return c.args?c.command.exec(c.editor,c.args,c.event,!1):c.command.exec(c.editor,{},c.event,!0)}),o}return l.prototype.exec=function(a,u,o){if(Array.isArray(a)){for(var c=a.length;c--;)if(this.exec(a[c],u,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,u))return!1;var m={editor:u,command:a,args:o};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},l.prototype.canExecute=function(a,u){return typeof a=="string"&&(a=this.commands[a]),!(!a||u&&u.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(u))},l.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,a):this.exec(u[0],a,u[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(a){return a.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},l}(w);f.implement(g.prototype,p),r.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,d){var h=n("../lib/lang"),f=n("../config"),w=n("../range").Range;function p(s,l){return{win:s,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:p("Ctrl-,","Command-,"),exec:function(s){f.loadModule("ace/ext/settings_menu",function(l){l.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:p("Alt-E","F4"),exec:function(s){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:p("Alt-Shift-E","Shift-F4"),exec:function(s){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:p("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:p(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:p("Ctrl-L","Command-L"),exec:function(s,l){typeof l=="number"&&!isNaN(l)&&s.gotoLine(l),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:p("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:p("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:p("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:p("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:p(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:p(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:p("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:p("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:p("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:p("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:p("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:p("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:p("Ctrl-F","Command-F"),exec:function(s){f.loadModule("ace/ext/searchbox",function(l){l.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:p("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:p("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:p("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:p("Up","Up|Ctrl-P"),exec:function(s,l){s.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:p("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:p("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:p("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:p("Down","Down|Ctrl-N"),exec:function(s,l){s.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:p("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:p("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:p("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:p("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:p("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:p("Left","Left|Ctrl-B"),exec:function(s,l){s.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:p("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:p("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:p("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:p("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:p("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:p("Right","Right|Ctrl-F"),exec:function(s,l){s.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:p(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:p("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:p(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:p("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:p("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:p("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:p("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:p("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:p("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:p("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:p(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var l=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=l?s.selection.getLineRange():s.selection.getRange();s._emit("cut",a),a.isEmpty()||s.session.remove(a),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,l){s.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:p("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:p("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:p("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:p("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:p("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:p("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:p("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:p("Ctrl-H","Command-Option-F"),exec:function(s){f.loadModule("ace/ext/searchbox",function(l){l.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:p("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:p("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:p("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:p("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:p("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:p("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:p("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:p("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:p("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:p("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:p("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:p("Ctrl-Shift-Backspace",null),exec:function(s){var l=s.selection.getRange();l.start.column=0,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:p("Ctrl-Shift-Delete",null),exec:function(s){var l=s.selection.getRange();l.end.column=Number.MAX_VALUE,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:p("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:p("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:p("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:p("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:p("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:p("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,l){s.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,l){s.insert(h.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:p(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:p("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:p("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:p("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:p(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:p("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var l=s.selection.getRange();l.start.column=l.end.column=0,l.end.row++,s.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:p("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:p(null,null),exec:function(s){for(var l=s.selection.isBackwards(),a=l?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),u=l?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,c=s.session.doc.getTextRange(s.selection.getRange()),m=c.replace(/\n\s*/," ").length,b=s.session.doc.getLine(a.row),x=a.row+1;x<=u.row+1;x++){var E=h.stringTrimLeft(h.stringTrimRight(s.session.doc.getLine(x)));E.length!==0&&(E=" "+E),b+=E}u.row+1<s.session.doc.getLength()-1&&(b+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new w(a.row,0,u.row+2,0),b),m>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+m)):(o=s.session.doc.getLine(a.row).length>o?o+1:o,s.selection.moveCursorTo(a.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:p(null,null),exec:function(s){var l=s.session.doc.getLength()-1,a=s.session.doc.getLine(l).length,u=s.selection.rangeList.ranges,o=[];u.length<1&&(u=[s.selection.getRange()]);for(var c=0;c<u.length;c++)c==u.length-1&&(u[c].end.row===l&&u[c].end.column===a||o.push(new w(u[c].end.row,u[c].end.column,l,a))),c===0?u[c].start.row===0&&u[c].start.column===0||o.push(new w(0,0,u[c].start.row,u[c].start.column)):o.push(new w(u[c-1].end.row,u[c-1].end.column,u[c].start.row,u[c].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var c=0;c<o.length;c++)s.selection.addRange(o[c],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
207
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var l=s.getCursorPosition();s.selection.moveTo(l.row-1,Number.MAX_VALUE),s.insert(`
208
+ `),l.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:p("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:p(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)r.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(s){s.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(n,r,d){var h=n("../lib/keys"),f=n("../mouse/default_gutter_handler").GutterTooltip,w=function(){function g(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new f(this.editor)}return g.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))},g.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))},g.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===h.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=h.enter)return;s.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(u===null&&o===null)){if(u===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(u!==null&&o===null){this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(u-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new p(s,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===h.tab){s.preventDefault();return}if(s.keyCode===h.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===h.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===h.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===h.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===h.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===h.enter||s.keyCode===h.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var l=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==l&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(l),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],u=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=u.right+"px",o.top=u.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return l&&a},g.prototype.$isAnnotationVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return l&&a},g.prototype.$getFoldWidget=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[1]},g.prototype.$getAnnotation=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[2]},g.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isFoldWidgetVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+l))return s+l}return null},g.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isAnnotationVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+l))return s+l}return null},g.prototype.$focusFoldWidget=function(s){if(s!=null){var l=this.$getFoldWidget(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},g.prototype.$focusAnnotation=function(s){if(s!=null){var l=this.$getAnnotation(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},g.prototype.$blurFoldWidget=function(s){var l=this.$getFoldWidget(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},g.prototype.$blurAnnotation=function(s){var l=this.$getAnnotation(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var l=this.$findNearestAnnotation(this.activeRowIndex);if(l==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=l,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(s){var l=this.lines.get(s);return l?l.row:null},g.prototype.$rowToRowIndex=function(s){for(var l=0;l<this.lines.getLength();l++){var a=this.lines.get(l);if(a.row==s)return l}return null},g}();r.GutterKeyboardHandler=w;var p=function(){function g(s,l){this.gutterKeyboardHandler=l,this.domEvent=s}return g.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();r.GutterKeyboardEvent=p}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(n,r,d){var h=this&&this.__values||function(S){var _=typeof Symbol=="function"&&Symbol.iterator,$=_&&S[_],L=0;if($)return $.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&L>=S.length&&(S=void 0),{value:S&&S[L++],done:!S}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},f=n("./lib/oop"),w=n("./lib/dom"),p=n("./lib/lang"),g=n("./lib/useragent"),s=n("./keyboard/textinput").TextInput,l=n("./mouse/mouse_handler").MouseHandler,a=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,o=n("./edit_session").EditSession,c=n("./search").Search,m=n("./range").Range,b=n("./lib/event_emitter").EventEmitter,x=n("./commands/command_manager").CommandManager,E=n("./commands/default_commands").commands,A=n("./config"),k=n("./token_iterator").TokenIterator,v=n("./keyboard/gutter_handler").GutterKeyboardHandler,T=n("./config").nls,R=n("./clipboard"),O=n("./lib/keys"),M=function(){function S(_,$,L){this.session,this.$toDestroy=[];var D=_.getContainerElement();this.container=D,this.renderer=_,this.id="editor"+ ++S.$uid,this.commands=new x(g.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new a(this)),this.keyBinding=new u(this),this.$search=new c().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=p.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,B){B._$emitInputEvent.schedule(31)}),this.setSession($||L&&L.session||new o("")),A.resetOptions(this),L&&this.setOptions(L),A._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(_){this.session.startOperation(_)},S.prototype.endOperation=function(_){this.session.endOperation(_)},S.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},S.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var $=this.curOp.command,L=$&&$.scrollIntoView;if(L){switch(L){case"center-animate":L="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var D=this.selection.getRange(),F=this.renderer.layerConfig;(D.start.row>=F.lastRow||D.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}L=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var $=this.prevOp,L=this.$mergeableCommands,D=$.command&&_.command.name==$.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),D=D&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test($.args)),this.mergeNextCommand=!0}else D=D&&L.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(D=!1),D?this.session.mergeUndoDeltas=!0:L.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(_,$){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var L=this;A.loadModule(["keybinding",_],function(D){L.$keybindingId==_&&L.keyBinding.setKeyboardHandler(D&&D.handler),$&&$()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),$&&$()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var $=this.session;if($){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=_.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(_)),this._signal("changeSession",{session:_,oldSession:$}),this.curOp=null,$&&$._signal("changeEditor",{oldEditor:this}),$&&($.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(_,$){return this.session.doc.setValue(_),$?$==1?this.navigateFileEnd():$==-1&&this.navigateFileStart():this.selectAll(),_},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(_){this.renderer.onResize(_)},S.prototype.setTheme=function(_,$){this.renderer.setTheme(_,$)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(_){this.renderer.setStyle(_)},S.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(_){this.setOption("fontSize",_)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var $=_.session;if(!(!$||$.destroyed)){$.$bracketHighlight&&($.$bracketHighlight.markerIds.forEach(function(G){$.removeMarker(G)}),$.$bracketHighlight=null);var L=_.getCursorPosition(),D=_.getKeyboardHandler(),F=D&&D.$getDirectionForHighlight&&D.$getDirectionForHighlight(_),B=$.getMatchingBracketRanges(L,F);if(!B){var W=new k($,L.row,L.column),q=W.getCurrentToken();if(q&&/\b(?:tag-open|tag-name)/.test(q.type)){var V=$.getMatchingTags(L);V&&(B=[V.openTagName.isEmpty()?V.openTag:V.openTagName,V.closeTagName.isEmpty()?V.closeTag:V.closeTagName])}}if(!B&&$.$mode.getMatching&&(B=$.$mode.getMatching(_.session)),!B){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(B)?B.length==1&&(X="ace_error_bracket"):B=[B],B.length==2&&(m.comparePoints(B[0].end,B[1].start)==0?B=[m.fromPoints(B[0].start,B[1].end)]:m.comparePoints(B[0].start,B[1].end)==0&&(B=[m.fromPoints(B[1].start,B[0].end)])),$.$bracketHighlight={ranges:B,markerIds:B.map(function(G){return $.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},S.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(_){var $=this.session.$useWrapMode,L=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,L,$),this._signal("change",_),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(_){var $=_.data;this.renderer.updateLines($.first,$.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var _=this.getSession(),$;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&($=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&($=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&($=!1)),_.$highlightLineMarker&&!$)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&$){var L=new m($.row,$.column,$.row,1/0);L.id=_.addMarker(L,"ace_active-line","screenLine"),_.$highlightLineMarker=L}else $&&(_.$highlightLineMarker.start.row=$.row,_.$highlightLineMarker.end.row=$.row,_.$highlightLineMarker.start.column=$.column,_._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(_){var $=this.session;if($.$selectionMarker&&$.removeMarker($.$selectionMarker),$.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var L=this.selection.getRange(),D=this.getSelectionStyle();$.$selectionMarker=$.addMarker(L,"ace_selection",D)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,$=this.getSelectionRange();if(!($.isEmpty()||$.isMultiLine())){var L=$.start.column,D=$.end.column,F=_.getLine($.start.row),B=F.substring(L,D);if(!(B.length>5e3||!/[\w\d]/.test(B))){var W=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:B}),q=F.substring(L-1,D+1);if(W.test(q))return W}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(_){this.renderer.updateText(),this._emit("changeMode",_)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var _=this.getSelectedText(),$=this.session.doc.getNewLineCharacter(),L=!1;if(!_&&this.$copyWithEmptySelection){L=!0;for(var D=this.selection.getAllRanges(),F=0;F<D.length;F++){var B=D[F];F&&D[F-1].start.row==B.start.row||(_+=this.session.getLine(B.start.row)+$)}}var W={text:_};return this._signal("copy",W),R.lineMode=L?W.text:!1,W.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(_,$){var L={text:_,event:$};this.commands.exec("paste",this,L)},S.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var $=_.text,L=$===R.lineMode,D=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?D.insert({row:this.selection.lead.row,column:0},$):this.insert($);else if(L)this.selection.rangeList.ranges.forEach(function(X){D.insert({row:X.start.row,column:0},$)});else{var F=$.split(/\r\n|\r|\n/),B=this.selection.rangeList.ranges,W=F.length==2&&(!F[0]||!F[1]);if(F.length!=B.length||W)return this.commands.exec("insertstring",this,$);for(var q=B.length;q--;){var V=B[q];V.isEmpty()||D.remove(V),D.insert(V.start,F[q])}}},S.prototype.execCommand=function(_,$){return this.commands.exec(_,this,$)},S.prototype.insert=function(_,$){var L=this.session,D=L.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!$){var B=D.transformAction(L.getState(F.row),"insertion",this,L,_);B&&(_!==B.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=B.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
209
+ `)==-1){var W=m.fromPoints(F,F);W.end.column+=_.length,this.session.remove(W)}}else{var W=this.getSelectionRange();F=this.session.remove(W),this.clearSelection()}if(_==`
210
+ `||_==`\r
211
+ `){var G=L.getLine(F.row);if(F.column>G.search(/\S|$/)){var q=G.substr(F.column).search(/\S|$/);L.doc.removeInLine(F.row,F.column,F.column+q)}}this.clearSelection();var V=F.column,X=L.getState(F.row),G=L.getLine(F.row),Z=D.checkOutdent(X,G,_);if(L.insert(F,_),B&&B.selection&&(B.selection.length==2?this.selection.setSelectionRange(new m(F.row,V+B.selection[0],F.row,V+B.selection[1])):this.selection.setSelectionRange(new m(F.row+B.selection[0],B.selection[1],F.row+B.selection[2],B.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(_)){var re=D.getNextLineIndent(X,G.slice(0,F.column),L.getTabString());L.insert({row:F.row+1,column:0},re)}Z&&D.autoOutdent(X,L,F.row)}},S.prototype.autoIndent=function(){for(var _=this.session,$=_.getMode(),L=this.selection.isEmpty()?[new m(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),D="",F="",B="",W=_.getTabString(),q=0;q<L.length;q++)for(var V=L[q].start.row,X=L[q].end.row,G=V;G<=X;G++){G>0&&(D=_.getState(G-1),F=_.getLine(G-1),B=$.getNextLineIndent(D,F,W));var Z=_.getLine(G),re=$.$getIndent(Z);if(B!==re){if(re.length>0){var J=new m(G,0,G,re.length);_.remove(J)}B.length>0&&_.insert({row:G,column:0},B)}$.autoOutdent(D,_,G)}},S.prototype.onTextInput=function(_,$){if(!$)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,_,$);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},S.prototype.applyComposition=function(_,$){if($.extendLeft||$.extendRight){var L=this.selection.getRange();L.start.column-=$.extendLeft,L.end.column+=$.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!_&&!L.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),$.restoreStart||$.restoreEnd){var L=this.selection.getRange();L.start.column-=$.restoreStart,L.end.column-=$.restoreEnd,this.selection.setRange(L)}},S.prototype.onCommandKey=function(_,$,L){return this.keyBinding.onCommandKey(_,$,L)},S.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var $=this.getSelectionRange();if(this.getBehavioursEnabled()){var L=this.session,D=L.getState($.start.row),F=L.getMode().transformAction(D,"deletion",this,L,$);if($.end.column===0){var B=L.getTextRange($);if(B[B.length-1]==`
212
+ `){var W=L.getLine($.end.row);/^\s+$/.test(W)&&($.end.column=W.length)}}F&&($=F)}this.session.remove($),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
213
+ `),this.moveCursorToPosition(_)},S.prototype.setGhostText=function(_,$){this.renderer.setGhostText(_,$)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),$=_.column;if($!==0){var L=this.session.getLine(_.row),D,F;$<L.length?(D=L.charAt($)+L.charAt($-1),F=new m(_.row,$-1,_.row,$+1)):(D=L.charAt($-1)+L.charAt($-2),F=new m(_.row,$-2,_.row,$)),this.session.replace(F,D),this.session.selection.moveToPosition(F.end)}}},S.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),L=this.session.getTextRange($);this.session.replace($,L.toLowerCase()),this.selection.setSelectionRange(_)},S.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),L=this.session.getTextRange($);this.session.replace($,L.toUpperCase()),this.selection.setSelectionRange(_)},S.prototype.indent=function(){var _=this.session,$=this.getSelectionRange();if($.start.row<$.end.row){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}else if($.start.column<$.end.column){var D=_.getTextRange($);if(!/^\s+$/.test(D)){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}}var F=_.getLine($.start.row),B=$.start,W=_.getTabSize(),q=_.documentToScreenColumn(B.row,B.column);if(this.session.getUseSoftTabs())var V=W-q%W,X=p.stringRepeat(" ",V);else{for(var V=q%W;F[$.start.column-1]==" "&&V;)$.start.column--,V--;this.selection.setSelectionRange($),X=" "}return this.insert(X)},S.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},S.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},S.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),$=this.session,L=[],D=_.first;D<=_.last;D++)L.push($.getLine(D));L.sort(function(W,q){return W.toLowerCase()<q.toLowerCase()?-1:W.toLowerCase()>q.toLowerCase()?1:0});for(var F=new m(0,0,0,0),D=_.first;D<=_.last;D++){var B=$.getLine(D);F.start.row=D,F.end.row=D,F.end.column=B.length,$.replace(F,L[D-_.first])}},S.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,$.first,$.last)},S.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),$=this.session.getState(_.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,L,_)},S.prototype.getNumberAt=function(_,$){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var D=this.session.getLine(_);L.lastIndex<$;){var F=L.exec(D);if(F.index<=$&&F.index+F[0].length>=$){var B={value:F[0],start:F.index,end:F.index+F[0].length};return B}}return null},S.prototype.modifyNumber=function(_){var $=this.selection.getCursor().row,L=this.selection.getCursor().column,D=new m($,L-1,$,L),F=this.session.getTextRange(D);if(!isNaN(parseFloat(F))&&isFinite(F)){var B=this.getNumberAt($,L);if(B){var W=B.value.indexOf(".")>=0?B.start+B.value.indexOf(".")+1:B.end,q=B.start+B.value.length-W,V=parseFloat(B.value);V*=Math.pow(10,q),W!==B.end&&L<W?_*=Math.pow(10,B.end-L-1):_*=Math.pow(10,B.end-L),V+=_,V/=Math.pow(10,q);var X=V.toFixed(q),G=new m($,B.start,$,B.end);this.session.replace(G,X),this.moveCursorTo($,Math.max(B.start+1,L+X.length-B.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var _=this.selection.getCursor().row,$=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),D=this.selection.getWordRange().start.column,F=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),B=$-D-1;B<0&&(B=0);var W=0,q=0,V=this;L.match(/[A-Za-z0-9_]+/)&&F.forEach(function(me,Se){q=W+me.length,B>=W&&B<=q&&(L=me,V.selection.clearSelection(),V.moveCursorTo(_,W+D),V.selection.selectTo(_,q+D)),W=q});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,we=L.match(new RegExp("^\\s?_?("+p.escapeRegExp(re[J])+")\\s?$","i"));if(we){var ve=L.match(new RegExp("([_]|^|\\s)("+p.escapeRegExp(we[1])+")($|\\s)","g"));ve&&(G=L.replace(new RegExp(p.escapeRegExp(re[J]),"i"),function(me){var Se=re[ae];return me.toUpperCase()==me?Se=Se.toUpperCase():me.charAt(0).toUpperCase()==me.charAt(0)&&(Se=Se.substr(0,0)+re[ae].charAt(0).toUpperCase()+Se.substr(1)),Se}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(_,$){var L,D,F=this.session.getLine(_),B=F.split(/((?:https?|ftp):\/\/[\S]+)/),W=$;W<0&&(W=0);var q=0,V=0,X;try{for(var G=h(B),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(V=q+re.length,W>=q&&W<=V&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}q=V}}catch(J){L={error:J}}finally{try{Z&&!Z.done&&(D=G.return)&&D.call(G)}finally{if(L)throw L.error}}return X},S.prototype.openLink=function(){var _=this.selection.getCursor(),$=this.findLinkAt(_.row,_.column);return $&&window.open($,"_blank"),$!=null},S.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var _=this.selection,$=this.session,L=_.getRange(),D=_.isBackwards();if(L.isEmpty()){var F=L.start.row;$.duplicateLines(F,F)}else{var B=D?L.start:L.end,W=$.insert(B,$.getTextRange(L));L.start=B,L.end=W,_.setSelectionRange(L,D)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(_,$,L){return this.session.moveText(_,$,L)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(_,$){var L,D,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var B=F.toOrientedRange();L=this.$getSelectedRows(B),D=this.session.$moveLines(L.first,L.last,$?0:_),$&&_==-1&&(D=0),B.moveBy(D,0),F.fromOrientedRange(B)}else{var W=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var q=0,V=0,X=W.length,G=0;G<X;G++){var Z=G;W[G].moveBy(q,0),L=this.$getSelectedRows(W[G]);for(var re=L.first,J=L.last;++G<X;){V&&W[G].moveBy(V,0);var ae=this.$getSelectedRows(W[G]);if($&&ae.first!=J||!$&&ae.first>J+1)break;J=ae.last}for(G--,q=this.session.$moveLines(re,J,$?0:_),$&&_==-1&&(Z=G+1);Z<=G;)W[Z].moveBy(q,0),Z++;$||(q=0),V+=q}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},S.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},S.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(_,$){var L=this.renderer,D=this.renderer.layerConfig,F=_*Math.floor(D.height/D.lineHeight);$===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):$===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var B=L.scrollTop;L.scrollBy(0,F*D.lineHeight),$!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(B)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(_){this.renderer.scrollToRow(_)},S.prototype.scrollToLine=function(_,$,L,D){this.renderer.scrollToLine(_,$,L,D)},S.prototype.centerSelection=function(){var _=this.getSelectionRange(),$={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor($,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(_,$){this.selection.moveCursorTo(_,$)},S.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},S.prototype.jumpToMatching=function(_,$){var L=this.getCursorPosition(),D=new k(this.session,L.row,L.column),F=D.getCurrentToken(),B=0;F&&F.type.indexOf("tag-name")!==-1&&(F=D.stepBackward());var W=F||D.stepForward();if(W){var q,V=!1,X={},G=L.column-W.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(W.value.match(/[{}()\[\]]/g)){for(;G<W.value.length&&!V;G++)if(re[W.value[G]])switch(Z=re[W.value[G]]+"."+W.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),W.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(q="bracket",V=!0);break}}else W.type.indexOf("tag-name")!==-1&&(isNaN(X[W.value])&&(X[W.value]=0),F.value==="<"&&B>1?X[W.value]++:F.value==="</"&&X[W.value]--,X[W.value]===-1&&(q="tag",V=!0));V||(F=W,B++,W=D.stepForward(),G=0)}while(W&&!V);if(q){var J,ae;if(q==="bracket")J=this.session.getBracketRange(L),J||(J=new m(D.getCurrentTokenRow(),D.getCurrentTokenColumn()+G-1,D.getCurrentTokenRow(),D.getCurrentTokenColumn()+G-1),ae=J.start,($||ae.row===L.row&&Math.abs(ae.column-L.column)<2)&&(J=this.session.getBracketRange(ae)));else if(q==="tag"){if(!W||W.type.indexOf("tag-name")===-1)return;if(J=new m(D.getCurrentTokenRow(),D.getCurrentTokenColumn()-2,D.getCurrentTokenRow(),D.getCurrentTokenColumn()-2),J.compare(L.row,L.column)===0){var we=this.session.getMatchingTags(L);we&&(we.openTag.contains(L.row,L.column)?(J=we.closeTag,ae=J.start):(J=we.openTag,we.closeTag.start.row===L.row&&we.closeTag.start.column===L.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&$?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},S.prototype.gotoLine=function(_,$,L){this.selection.clearSelection(),this.session.unfold({row:_-1,column:$||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,$||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,L)},S.prototype.navigateTo=function(_,$){this.selection.moveTo(_,$)},S.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},S.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},S.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var $=this.getSelectionRange().start;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var $=this.getSelectionRange().end;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(_,$){$&&this.$search.set($);var L=this.$search.find(this.session),D=0;return L&&(this.$tryReplace(L,_)&&(D=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),D},S.prototype.replaceAll=function(_,$){$&&this.$search.set($);var L=this.$search.findAll(this.session),D=0;if(!L.length)return D;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var B=L.length-1;B>=0;--B)this.$tryReplace(L[B],_)&&D++;return this.selection.setSelectionRange(F),D},S.prototype.$tryReplace=function(_,$){var L=this.session.getTextRange(_);return $=this.$search.replace(L,$),$!==null?(_.end=this.session.replace(_,$),_):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(_,$,L){$||($={}),typeof _=="string"||_ instanceof RegExp?$.needle=_:typeof _=="object"&&f.mixin($,_);var D=this.selection.getRange();$.needle==null&&(_=this.session.getTextRange(D)||this.$search.$options.needle,_||(D=this.session.getWordRange(D.start.row,D.start.column),_=this.session.getTextRange(D)),this.$search.set({needle:_})),this.$search.set($),$.start||this.$search.set({start:D});var F=this.$search.find(this.session);if($.preventScroll)return F;if(F)return this.revealRange(F,L),F;$.backwards?D.start=D.end:D.end=D.start,this.selection.setRange(D)},S.prototype.findNext=function(_,$){this.find({skipCurrent:!0,backwards:!1},_,$)},S.prototype.findPrevious=function(_,$){this.find(_,{skipCurrent:!0,backwards:!0},$)},S.prototype.revealRange=function(_,$){this.session.unfold(_),this.selection.setSelectionRange(_);var L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),$!==!1&&this.renderer.animateScrolling(L)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(_){if(_){var $,L=this,D=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var B=this.on("changeSelection",function(){D=!0}),W=this.renderer.on("beforeRender",function(){D&&($=L.renderer.container.getBoundingClientRect())}),q=this.renderer.on("afterRender",function(){if(D&&$&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var V=L.renderer,X=V.$cursorLayer.$pixelPos,G=V.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+$.top<0?D=!0:X.top<G.height&&X.top+$.top+G.lineHeight>window.innerHeight?D=!1:D=null,D!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(D)),D=$=null}});this.setAutoScrollEditorIntoView=function(V){V||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",B),this.renderer.off("afterRender",q),this.renderer.off("beforeRender",W))}}},S.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(_)),$.isBlinking=!this.$readOnly&&_!="wide",w.setCssClass($.element,"ace_slim-cursors",/slim/.test(_)))},S.prototype.prompt=function(_,$,L){var D=this;A.loadModule("ace/ext/prompt",function(F){F.prompt(D,_,$,L)})},S}();M.$uid=0,M.prototype.curOp=null,M.prototype.prevOp={},M.prototype.$mergeableCommands=["backspace","del","insertstring"],M.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],f.implement(M.prototype,b),A.defineOptions(M.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?N.attach(this):N.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var $=w.createElement("div");$.className="ace_placeholder",$.textContent=this.$placeholder||"",this.renderer.placeholderNode=$,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(D){D.blur(),D.renderer.scroller.focus()},readOnly:!0},$=function(D){if(D.target==this.renderer.scroller&&D.keyCode===O.enter){D.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},L;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",$.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",T("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),L||(L=new v(this)),L.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",$.bind(this)),this.commands.removeCommand(_),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),L&&L.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(S,_){return(Math.abs(S.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function(S,_,$){return Math.max(_.toString().length,($.lastRow+1).toString().length,2)*$.characterWidth},update:function(S,_){_.renderer.$loop.schedule(_.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=M}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,d){var h=n("../lib/dom"),f=function(){function w(p,g){this.element=p,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(p){h.translate(this.element,0,-(p.firstRowScreen*p.lineHeight%this.canvasHeight)-p.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(p,g){return Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(p,g,s){var l=g.firstRowScreen*g.lineHeight,a=Math.floor(l/this.canvasHeight),u=s.documentToScreenRow(p,0)*g.lineHeight;return u-a*this.canvasHeight},w.prototype.computeLineHeight=function(p,g,s){return g.lineHeight*s.getRowLineCount(p)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(p){return this.cells[p]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(p){if(Array.isArray(p)){this.cells.push.apply(this.cells,p);for(var g=h.createFragment(this.element),s=0;s<p.length;s++)g.appendChild(p[s].element);this.element.appendChild(g)}else this.cells.push(p),this.element.appendChild(p.element)},w.prototype.unshift=function(p){if(Array.isArray(p)){this.cells.unshift.apply(this.cells,p);for(var g=h.createFragment(this.element),s=0;s<p.length;s++)g.appendChild(p[s].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(p),this.element.insertAdjacentElement("afterbegin",p.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(p){p&&(p.element.remove(),this.cellCache.push(p))},w.prototype.createCell=function(p,g,s,l){var a=this.cellCache.pop();if(!a){var u=h.createElement("div");l&&l(u),this.element.appendChild(u),a={element:u,text:"",row:p}}return a.row=p,a},w}();r.Lines=f}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(n,r,d){var h=n("../lib/dom"),f=n("../lib/oop"),w=n("../lib/lang"),p=n("../lib/event_emitter").EventEmitter,g=n("./lines").Lines,s=n("../config").nls,l=function(){function u(o){this.element=h.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return u.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},u.prototype.addGutterDecoration=function(o,c){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,c)},u.prototype.removeGutterDecoration=function(o,c){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,c)},u.prototype.setAnnotations=function(o){this.$annotations=[];for(var c=0;c<o.length;c++){var m=o[c],b=m.row,x=this.$annotations[b];x||(x=this.$annotations[b]={text:[],type:[],displayText:[]});var E=m.text,A=m.text,k=m.type;E=E?w.escapeHTML(E):m.html||"",A=A||m.html||"",x.text.indexOf(E)===-1&&(x.text.push(E),x.type.push(k),x.displayText.push(A));var v=m.className;v?x.className=v:k==="error"?x.className=" ace_error":k==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":k==="info"&&!x.className?x.className=" ace_info":k==="hint"&&!x.className&&(x.className=" ace_hint")}},u.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var c=o.start.row,m=o.end.row-c;if(m!==0)if(o.action=="remove")this.$annotations.splice(c,m+1,null);else{var b=new Array(m+1);b.unshift(c,1),this.$annotations.splice.apply(this.$annotations,b)}}},u.prototype.update=function(o){this.config=o;var c=this.session,m=o.firstRow,b=Math.min(o.lastRow+o.gutterOffset,c.getLength()-1);this.oldLastRow=b,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=c.getNextFoldLine(m),E=x?x.start.row:1/0,A=null,k=-1,v=m;;){if(v>E&&(v=x.end.row+1,x=c.getNextFoldLine(v,x),E=x?x.start.row:1/0),v>b){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}A=this.$lines.get(++k),A?A.row=v:(A=this.$lines.createCell(v,o,this.session,a),this.$lines.push(A)),this.$renderCell(A,o,x,v),v++}this._signal("afterRender"),this.$updateGutterWidth(o)},u.prototype.$updateGutterWidth=function(o){var c=this.session,m=c.gutterRenderer||this.$renderer,b=c.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||c.$useWrapMode)&&(x=c.getLength()+b-1);var E=m?m.getWidth(c,x,o):x.toString().length*o.characterWidth,A=this.$padding||this.$computePadding();E+=A.left+A.right,E!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var c=this.$lines.cells;this.$cursorCell=null;for(var m=0;m<c.length;m++){var b=c[m];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(m>0&&x&&x.start.row==c[m-1].row)b=c[m-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},u.prototype.scrollLines=function(o){var c=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(c,o))return this.update(o);this.$lines.moveContainer(o);var m=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=m,!c||b<o.firstRow)return this.update(o);if(m<c.firstRow)return this.update(o);if(c.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(c.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(b>m)for(var x=this.session.getFoldedRowCount(m+1,b);x>0;x--)this.$lines.pop();o.firstRow<c.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,c.firstRow-1)),m>b&&this.$lines.push(this.$renderLines(o,b+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},u.prototype.$renderLines=function(o,c,m){for(var b=[],x=c,E=this.session.getNextFoldLine(x),A=E?E.start.row:1/0;x>A&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),A=E?E.start.row:1/0),!(x>m);){var k=this.$lines.createCell(x,o,this.session,a);this.$renderCell(k,o,E,x),b.push(k),x++}return b},u.prototype.$renderCell=function(o,c,m,b){var x=o.element,E=this.session,A=x.childNodes[0],k=x.childNodes[1],v=x.childNodes[2],T=v.firstChild,R=E.$firstLineNumber,O=E.$breakpoints,M=E.$decorations,N=E.gutterRenderer||this.$renderer,S=this.$showFoldWidgets&&E.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,$=c.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",D=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(E,b):b+R).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||m&&b<this.$cursorRow&&b>=_&&this.$cursorRow<=m.end.row)&&(L+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),O[b]&&(L+=O[b]),M[b]&&(L+=M[b]),this.$annotations[b]&&b!==_&&(L+=this.$annotations[b].className),S){var B=S[b];B==null&&(B=S[b]=E.getFoldWidget(b))}if(B){var W="ace_fold-widget ace_"+B,q=B=="start"&&b==_&&b<m.end.row;if(q){W+=" ace_closed";for(var V="",X=!1,G=b+1;G<=m.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,V=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,V=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&V!==" ace_security_fold"&&(X=!0,V=" ace_warning_fold")}L+=V}else W+=" ace_open";k.className!=W&&(k.className=W),h.setStyle(k.style,"height",$),h.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=E.getFoldWidgetRange(b);Z?k.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):m?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[m.start.row+1,m.end.row+1])):k.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),q?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else k&&(h.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){v.className="ace_gutter_annotation",T.className=D,T.className+=V,h.setStyle(T.style,"height",$),h.setStyle(v.style,"display","block"),h.setStyle(v.style,"height",$);var re;switch(V){case" ace_error_fold":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}v.setAttribute("aria-label",re),v.setAttribute("tabindex","-1"),v.setAttribute("role","button")}else if(this.$annotations[b]){v.className="ace_gutter_annotation",T.className=D,this.$useSvgGutterIcons?T.className+=this.$annotations[b].className:x.classList.add(this.$annotations[b].className.replace(" ","")),h.setStyle(T.style,"height",$),h.setStyle(v.style,"display","block"),h.setStyle(v.style,"height",$);var re;switch(this.$annotations[b].className){case" ace_error":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}v.setAttribute("aria-label",re),v.setAttribute("tabindex","-1"),v.setAttribute("role","button")}else h.setStyle(v.style,"display","none"),v.removeAttribute("aria-label"),v.removeAttribute("role"),v.setAttribute("tabindex","0");return F!==A.data&&(A.data=F),x.className!=L&&(x.className=L),h.setStyle(o.element.style,"height",this.$lines.computeLineHeight(b,c,E)+"px"),h.setStyle(o.element.style,"top",this.$lines.computeLineTop(b,c,E)+"px"),o.text=F,v.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},u.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},u.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},u.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},u.prototype.setShowFoldWidgets=function(o){o?h.addCssClass(this.element,"ace_folding-enabled"):h.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},u.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},u.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=h.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},u.prototype.getRegion=function(o){var c=this.$padding||this.$computePadding(),m=this.element.getBoundingClientRect();if(o.x<c.left+m.left)return"markers";if(this.$showFoldWidgets&&o.x>m.right-c.right)return"foldWidgets"},u}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,f.implement(l.prototype,p);function a(u){var o=document.createTextNode("");u.appendChild(o);var c=h.createElement("span");u.appendChild(c);var m=h.createElement("span");u.appendChild(m);var b=h.createElement("span");return m.appendChild(b),u}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,d){var h=n("../range").Range,f=n("../lib/dom"),w=function(){function g(s){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setMarkers=function(s){this.markers=s},g.prototype.elt=function(s,l){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=l,a.className=s},g.prototype.update=function(s){if(s){this.config=s,this.i=0;var l;for(var a in this.markers){var u=this.markers[a];if(!u.range){u.update(l,this,this.session,s);continue}var o=u.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),u.renderer){var c=this.$getTop(o.start.row,s),m=this.$padding+o.start.column*s.characterWidth;u.renderer(l,o,m,c,s)}else u.type=="fullLine"?this.drawFullLineMarker(l,o,u.clazz,s):u.type=="screenLine"?this.drawScreenLineMarker(l,o,u.clazz,s):o.isMultiLine()?u.type=="text"?this.drawTextMarker(l,o,u.clazz,s):this.drawMultiLineMarker(l,o,u.clazz,s):this.drawSingleLineMarker(l,o,u.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(s,l){return(s-l.firstRowScreen)*l.lineHeight},g.prototype.drawTextMarker=function(s,l,a,u,o){for(var c=this.session,m=l.start.row,b=l.end.row,x=m,E=0,A=0,k=c.getScreenLastRowColumn(x),v=new h(x,l.start.column,x,A);x<=b;x++)v.start.row=v.end.row=x,v.start.column=x==m?l.start.column:c.getRowWrapIndent(x),v.end.column=k,E=A,A=k,k=x+1<b?c.getScreenLastRowColumn(x+1):x==b?0:l.end.column,this.drawSingleLineMarker(s,v,a+(x==m?" ace_start":"")+" ace_br"+p(x==m||x==m+1&&l.start.column,E<A,A>k,x==b),u,x==b?0:1,o)},g.prototype.drawMultiLineMarker=function(s,l,a,u,o){var c=this.$padding,m=u.lineHeight,b=this.$getTop(l.start.row,u),x=c+l.start.column*u.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var E=l.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(s,E,a+" ace_br1 ace_start",u,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+m+"px;right:"+c+"px;top:"+b+"px;left:"+x+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var E=l.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(s,E,a+" ace_br12",u,null,o)}else{b=this.$getTop(l.end.row,u);var A=l.end.column*u.characterWidth;this.elt(a+" ace_br12","height:"+m+"px;width:"+A+"px;top:"+b+"px;left:"+c+"px;"+(o||""))}if(m=(l.end.row-l.start.row-1)*u.lineHeight,!(m<=0)){b=this.$getTop(l.start.row+1,u);var k=(l.start.column?1:0)|(l.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+m+"px;right:"+c+"px;top:"+b+"px;left:"+c+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(s,l,a,u,o,c){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(s,l,a,u,o,c);var m=u.lineHeight,b=(l.end.column+(o||0)-l.start.column)*u.characterWidth,x=this.$getTop(l.start.row,u),E=this.$padding+l.start.column*u.characterWidth;this.elt(a,"height:"+m+"px;width:"+b+"px;top:"+x+"px;left:"+E+"px;"+(c||""))},g.prototype.drawBidiSingleLineMarker=function(s,l,a,u,o,c){var m=u.lineHeight,b=this.$getTop(l.start.row,u),x=this.$padding,E=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);E.forEach(function(A){this.elt(a,"height:"+m+"px;width:"+(A.width+(o||0))+"px;top:"+b+"px;left:"+(x+A.left)+"px;"+(c||""))},this)},g.prototype.drawFullLineMarker=function(s,l,a,u,o){var c=this.$getTop(l.start.row,u),m=u.lineHeight;l.start.row!=l.end.row&&(m+=this.$getTop(l.end.row,u)-c),this.elt(a,"height:"+m+"px;top:"+c+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(s,l,a,u,o){var c=this.$getTop(l.start.row,u),m=u.lineHeight;this.elt(a,"height:"+m+"px;top:"+c+"px;left:0;right:0;"+(o||""))},g}();w.prototype.$padding=0;function p(g,s,l,a){return(g?1:0)|(s?2:0)|(l?4:0)|(a?8:0)}r.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,d){var h=new Set(["text","rparen","lparen"]);r.isTextToken=function(f){return h.has(f)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,r,d){var h=n("../lib/oop"),f=n("../lib/dom"),w=n("../lib/lang"),p=n("./lines").Lines,g=n("../lib/event_emitter").EventEmitter,s=n("../config").nls,l=n("./text_util").isTextToken,a=function(){function u(o){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new p(this.element)}return u.prototype.$updateEolChar=function(){var o=this.session.doc,c=o.getNewLineCharacter()==`
214
+ `&&o.getNewLineMode()!="windows",m=c?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},u.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(c){this._signal("changeCharacterSize",c)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},u.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},u.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var c=this.$tabStrings=[0],m=1;m<o+1;m++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=w.stringRepeat(this.TAB_CHAR,m),c.push(b)}else c.push(this.dom.createTextNode(w.stringRepeat(" ",m),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",E=this.showSpaces?" ace_invisible ace_invisible_space":"",A=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",v=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):A,b=this.dom.createElement("span");b.className=x+E,b.textContent=A,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=x+k,b.textContent=v,this.$tabStrings[" "]=b}},u.prototype.updateLines=function(o,c,m){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var b=Math.max(c,o.firstRow),x=Math.min(m,o.lastRow),E=this.element.childNodes,A=0,k=o.firstRow;k<b;k++){var v=this.session.getFoldLine(k);if(v)if(v.containsRow(b)){b=v.start.row;break}else k=v.end.row;A++}for(var T=!1,k=b,v=this.session.getNextFoldLine(k),R=v?v.start.row:1/0;k>R&&(k=v.end.row+1,v=this.session.getNextFoldLine(k,v),R=v?v.start.row:1/0),!(k>x);){var O=E[A++];if(O){this.dom.removeChildren(O),this.$renderLine(O,k,k==R?v:!1),T&&(O.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var M=o.lineHeight*this.session.getRowLength(k)+"px";O.style.height!=M&&(T=!0,O.style.height=M)}k++}if(T)for(;A<this.$lines.cells.length;){var N=this.$lines.cells[A++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},u.prototype.scrollLines=function(o){var c=this.config;if(this.config=o,this.$lines.pageChanged(c,o))return this.update(o);this.$lines.moveContainer(o);var m=o.lastRow,b=c?c.lastRow:-1;if(!c||b<o.firstRow)return this.update(o);if(m<c.firstRow)return this.update(o);if(!c||c.lastRow<o.firstRow)return this.update(o);if(o.lastRow<c.firstRow)return this.update(o);if(c.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(c.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(c.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,c.lastRow);x>0;x--)this.$lines.pop();o.firstRow<c.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,c.firstRow-1)),o.lastRow>c.lastRow&&this.$lines.push(this.$renderLinesFragment(o,c.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(o,c,m){for(var b=[],x=c,E=this.session.getNextFoldLine(x),A=E?E.start.row:1/0;x>A&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),A=E?E.start.row:1/0),!(x>m);){var k=this.$lines.createCell(x,o,this.session),v=k.element;this.dom.removeChildren(v),f.setStyle(v.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),f.setStyle(v.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(v,x,x==A?E:!1),this.$useLineGroups()?v.className="ace_line_group":v.className="ace_line",b.push(k),x++}return b},u.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var c=o.firstRow,m=o.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(o,c,m))},u.prototype.$renderToken=function(o,c,m,b){for(var x=this,E=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,A=this.dom.createFragment(this.element),k,v=0;k=E.exec(b);){var T=k[1],R=k[2],O=k[3],M=k[4],N=k[5];if(!(!x.showSpaces&&R)){var S=v!=k.index?b.slice(v,k.index):"";if(v=k.index+k[0].length,S&&A.appendChild(this.dom.createTextNode(S,this.element)),T){var _=x.session.getScreenTabSize(c+k.index);A.appendChild(x.$tabStrings[_].cloneNode(!0)),c+=_-1}else if(R)if(x.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=w.stringRepeat(x.SPACE_CHAR,R.length),A.appendChild($)}else A.appendChild(this.dom.createTextNode(R,this.element));else if(O){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=w.stringRepeat(x.SPACE_CHAR,O.length),A.appendChild($)}else if(M){c+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=x.showSpaces?x.SPACE_CHAR:M,A.appendChild($)}else if(N){c+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=N,A.appendChild($)}}}if(A.appendChild(this.dom.createTextNode(v?b.slice(v):b,this.element)),l(m.type))o.appendChild(A);else{var L="ace_"+m.type.replace(/\./g," ace_"),$=this.dom.createElement("span");m.type=="fold"&&($.style.width=m.value.length*this.config.characterWidth+"px",$.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),$.className=L,$.appendChild(A),o.appendChild($)}return c+b.length},u.prototype.renderIndentGuide=function(o,c,m){var b=c.search(this.$indentGuideRe);if(b<=0||b>=m)return c;if(c[0]==" "){b-=b%this.tabSize;for(var x=b/this.tabSize,E=0;E<x;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),c.substr(b)}else if(c[0]==" "){for(var E=0;E<b;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),c.substr(b)}return this.$highlightIndentGuide(),c},u.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var c=this.session.selection.getCursor(),m=/^\s*/.exec(this.session.doc.getLine(c.row))[0].length,b=Math.floor(m/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:c.row};var x=this.session.$bracketHighlight;if(x){for(var E=this.session.$bracketHighlight.ranges,A=0;A<E.length;A++)if(c.row!==E[A].start.row){this.$highlightIndentGuideMarker.end=E[A].start.row,c.row>E[A].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[c.row]!==""&&c.column===o[c.row].length){this.$highlightIndentGuideMarker.dir=1;for(var A=c.row+1;A<o.length;A++){var k=o[A],v=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=A,v<=m))break}}this.$renderHighlightIndentGuide()}}},u.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,c=0;c<o.length;c++){var m=o[c],b=m.element.childNodes;if(b.length>0){for(var x=0;x<b.length;x++)if(b[x].classList&&b[x].classList.contains("ace_indent-guide-active")){b[x].classList.remove("ace_indent-guide-active");break}}}},u.prototype.$setIndentGuideActive=function(o,c){var m=this.session.doc.getLine(o.row);if(m!==""){var b=o.element.childNodes;if(b){var x=b[c-1];x&&x.classList&&x.classList.contains("ace_indent-guide")&&x.classList.add("ace_indent-guide-active")}}},u.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var c=this.$highlightIndentGuideMarker.indentLevel;if(c!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var m=0;m<o.length;m++){var b=o[m];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,c)}}else for(var m=o.length-1;m>=0;m--){var b=o[m];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,c)}}}},u.prototype.$createLineElement=function(o){var c=this.dom.createElement("div");return c.className="ace_line",c.style.height=this.config.lineHeight+"px",c},u.prototype.$renderWrappedLine=function(o,c,m){var b=0,x=0,E=m[0],A=0,k=this.$createLineElement();o.appendChild(k);for(var v=0;v<c.length;v++){var T=c[v],R=T.value;if(v==0&&this.displayIndentGuides){if(b=R.length,R=this.renderIndentGuide(k,R,E),!R)continue;b-=R.length}if(b+R.length<E)A=this.$renderToken(k,A,T,R),b+=R.length;else{for(;b+R.length>=E;)A=this.$renderToken(k,A,T,R.substring(0,E-b)),R=R.substring(E-b),b=E,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(w.stringRepeat(" ",m.indent),this.element)),x++,A=0,E=m[x]||Number.MAX_VALUE;R.length!=0&&(b+=R.length,A=this.$renderToken(k,A,T,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,A,null,"",!0)},u.prototype.$renderSimpleLine=function(o,c){for(var m=0,b=0;b<c.length;b++){var x=c[b],E=x.value;if(!(b==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(o,E),!E))){if(m+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,m,x,E);m=this.$renderToken(o,m,x,E)}}},u.prototype.$renderOverflowMessage=function(o,c,m,b,x){m&&this.$renderToken(o,c,m,b.slice(0,this.MAX_LINE_LENGTH-c));var E=this.dom.createElement("span");E.className="ace_inline_button ace_keyword ace_toggle_wrap",E.textContent=x?"<hide>":"<click to see more...>",o.appendChild(E)},u.prototype.$renderLine=function(o,c,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(c)),m)var b=this.$getFoldLineTokens(c,m);else var b=this.session.getTokens(c);var x=o;if(b.length){var E=this.session.getRowSplitData(c);if(E&&E.length){this.$renderWrappedLine(o,b,E);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,b)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){m&&(c=m.end.row);var A=this.dom.createElement("span");A.className="ace_invisible ace_invisible_eol",A.textContent=c==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(A)}},u.prototype.$getFoldLineTokens=function(o,c){var m=this.session,b=[];function x(A,k,v){for(var T=0,R=0;R+A[T].value.length<k;)if(R+=A[T].value.length,T++,T==A.length)return;if(R!=k){var O=A[T].value.substring(k-R);O.length>v-k&&(O=O.substring(0,v-k)),b.push({type:A[T].type,value:O}),R=k+O.length,T+=1}for(;R<v&&T<A.length;){var O=A[T].value;O.length+R>v?b.push({type:A[T].type,value:O.substring(0,v-R)}):b.push(A[T]),R+=O.length,T+=1}}var E=m.getTokens(o);return c.walk(function(A,k,v,T,R){A!=null?b.push({type:"fold",value:A}):(R&&(E=m.getTokens(k)),E.length&&x(E,T,v))},c.end.row,this.session.getLine(c.end.row).length),b},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,h.implement(a.prototype,g),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,d){var h=n("../lib/dom"),f=function(){function w(p){this.element=h.createElement("div"),this.element.className="ace_layer ace_cursor-layer",p.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(p){for(var g=this.cursors,s=g.length;s--;)h.setStyle(g[s].style,"opacity",p?"":"0")},w.prototype.$startCssAnimation=function(){for(var p=this.cursors,g=p.length;g--;)p[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(p){this.$padding=p},w.prototype.setSession=function(p){this.session=p},w.prototype.setBlinking=function(p){p!=this.isBlinking&&(this.isBlinking=p,this.restartTimer())},w.prototype.setBlinkInterval=function(p){p!=this.blinkInterval&&(this.blinkInterval=p,this.restartTimer())},w.prototype.setSmoothBlinking=function(p){p!=this.smoothBlinking&&(this.smoothBlinking=p,h.setCssClass(this.element,"ace_smooth-blinking",p),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var p=h.createElement("div");return p.className="ace_cursor",this.element.appendChild(p),this.cursors.push(p),p},w.prototype.removeCursor=function(){if(this.cursors.length>1){var p=this.cursors.pop();return p.parentNode.removeChild(p),p}},w.prototype.hideCursor=function(){this.isVisible=!1,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,h.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var p=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,h.removeCssClass(this.element,"ace_smooth-blinking")),p(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&h.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),h.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){p(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){p(!0),g()},this.blinkInterval),g()}},w.prototype.getPixelPosition=function(p,g){if(!this.config||!this.session)return{left:0,top:0};p||(p=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(p),l=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,p.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:a}},w.prototype.isCursorInView=function(p,g){return p.top>=0&&p.top<g.maxHeight},w.prototype.update=function(p){this.config=p;var g=this.session.$selectionMarkers,s=0,l=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var s=0,a=g.length;s<a;s++){var u=this.getPixelPosition(g[s].cursor,!0);if(!((u.top>p.height+p.offset||u.top<0)&&s>1)){var o=this.cursors[l++]||this.addCursor(),c=o.style;this.drawCursor?this.drawCursor(o,u,p,g[s],this.session):this.isCursorInView(u,p)?(h.setStyle(c,"display","block"),h.translate(o,u.left,u.top),h.setStyle(c,"width",Math.round(p.characterWidth)+"px"),h.setStyle(c,"height",p.lineHeight+"px")):h.setStyle(c,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=u,this.restartTimer()},w.prototype.$setOverwrite=function(p){p!=this.overwrite&&(this.overwrite=p,p?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w}();f.prototype.$padding=0,f.prototype.drawCursor=null,r.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,d){var h=this&&this.__extends||function(){var o=function(c,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(b[E]=x[E])},o(c,m)};return function(c,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(c,m);function b(){this.constructor=c}c.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}(),f=n("./lib/oop"),w=n("./lib/dom"),p=n("./lib/event"),g=n("./lib/event_emitter").EventEmitter,s=32768,l=function(){function o(c,m){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,p.addListener(this.element,"scroll",this.onScroll.bind(this)),p.addListener(this.element,"mousedown",p.preventDefault)}return o.prototype.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1},o}();f.implement(l.prototype,g);var a=function(o){h(c,o);function c(m,b){var x=o.call(this,m,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,b.$scrollbarWidth=x.width=w.scrollbarWidth(m.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return c.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},c.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},c.prototype.setHeight=function(m){this.element.style.height=m+"px"},c.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>s?(this.coeff=s/m,m=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},c.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},c}(l);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var u=function(o){h(c,o);function c(m,b){var x=o.call(this,m,"-h")||this;return x.scrollLeft=0,x.height=b.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return c.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},c.prototype.getHeight=function(){return this.isVisible?this.height:0},c.prototype.setWidth=function(m){this.element.style.width=m+"px"},c.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},c.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},c.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},c}(l);r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=u,r.VScrollBar=a,r.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,d){var h=this&&this.__extends||function(){var u=function(o,c){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,b){m.__proto__=b}||function(m,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(m[x]=b[x])},u(o,c)};return function(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");u(o,c);function m(){this.constructor=o}o.prototype=c===null?Object.create(c):(m.prototype=c.prototype,new m)}}(),f=n("./lib/oop"),w=n("./lib/dom"),p=n("./lib/event"),g=n("./lib/event_emitter").EventEmitter;w.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
215
+ position: absolute;
216
+ background: rgba(128, 128, 128, 0.6);
217
+ -moz-box-sizing: border-box;
218
+ box-sizing: border-box;
219
+ border: 1px solid #bbb;
220
+ border-radius: 2px;
221
+ z-index: 8;
222
+ }
223
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
224
+ position: absolute;
225
+ z-index: 6;
226
+ background: none;
227
+ overflow: hidden!important;
228
+ }
229
+ .ace_editor>.ace_sb-v {
230
+ z-index: 6;
231
+ right: 0;
232
+ top: 0;
233
+ width: 12px;
234
+ }
235
+ .ace_editor>.ace_sb-v div {
236
+ z-index: 8;
237
+ right: 0;
238
+ width: 100%;
239
+ }
240
+ .ace_editor>.ace_sb-h {
241
+ bottom: 0;
242
+ left: 0;
243
+ height: 12px;
244
+ }
245
+ .ace_editor>.ace_sb-h div {
246
+ bottom: 0;
247
+ height: 100%;
248
+ }
249
+ .ace_editor>.ace_sb_grabbed {
250
+ z-index: 8;
251
+ background: #000;
252
+ }`,"ace_scrollbar.css",!1);var s=function(){function u(o,c){this.element=w.createElement("div"),this.element.className="ace_sb"+c,this.inner=w.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,p.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},u}();f.implement(s.prototype,g);var l=function(u){h(o,u);function o(c,m){var b=u.call(this,c,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=c,b.width=b.VScrollWidth,b.renderer=m,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return o.prototype.onMouseDown=function(c,m){if(c==="mousedown"&&!(p.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var b=this,x=m.clientY,E=function(M){x=M.clientY},A=function(){clearInterval(R)},k=m.clientY,v=this.thumbTop,T=function(){if(x!==void 0){var M=b.scrollTopFromThumbTop(v+x-k);M!==b.scrollTop&&b._emit("scroll",{data:M})}};p.capture(this.inner,E,A);var R=setInterval(T,20);return p.preventDefault(m)}var O=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(O)}),p.preventDefault(m)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(c){var m=c*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(c){this.height=Math.max(0,c),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(c,m){this.pageHeight===c&&!m||(this.pageHeight=c,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})))},o.prototype.setScrollTop=function(c){this.scrollTop=c,c<0&&(c=0),this.thumbTop=c*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var a=function(u){h(o,u);function o(c,m){var b=u.call(this,c,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=m,b}return o.prototype.onMouseDown=function(c,m){if(c==="mousedown"&&!(p.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var b=this,x=m.clientX,E=function(M){x=M.clientX},A=function(){clearInterval(R)},k=m.clientX,v=this.thumbLeft,T=function(){if(x!==void 0){var M=b.scrollLeftFromThumbLeft(v+x-k);M!==b.scrollLeft&&b._emit("scroll",{data:M})}};p.capture(this.inner,E,A);var R=setInterval(T,20);return p.preventDefault(m)}var O=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(O)}),p.preventDefault(m)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(c){var m=c*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},o.prototype.setWidth=function(c){this.width=Math.max(0,c),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(c,m){this.pageWidth===c&&!m||(this.pageWidth=c,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(c){this.scrollLeft=c,c<0&&(c=0),this.thumbLeft=c*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=a,r.VScrollBar=l,r.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,d){var h=n("./lib/event"),f=function(){function w(p,g){this.onRender=p,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var s=this;this._flush=function(l){s.pending=!1;var a=s.changes;if(a&&(h.blockIdle(100),s.changes=0,s.onRender(a)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return w.prototype.schedule=function(p){this.changes=this.changes|p,this.changes&&!this.pending&&(h.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(p){var g=this.changes;return this.changes=0,g},w}();r.RenderLoop=f}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,r,d){var h=n("../lib/oop"),f=n("../lib/dom"),w=n("../lib/lang"),p=n("../lib/event"),g=n("../lib/useragent"),s=n("../lib/event_emitter").EventEmitter,l=512,a=typeof ResizeObserver=="function",u=200,o=function(){function c(m){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",l),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return c.prototype.$setMeasureNodeStyles=function(m,b){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",g.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=b?"hidden":"visible"},c.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===m.width&&b.height===m.height,this._emit("changeCharacterSize",{data:m})}},c.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(b){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},c.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=p.onIdle(function b(){m.checkForSizeChanges(),p.onIdle(b,500)},500)},c.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},c.prototype.$measureSizes=function(m){var b={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/l};return b.width===0||b.height===0?null:b},c.prototype.$measureCharWidth=function(m){this.$main.textContent=w.stringRepeat(m,l);var b=this.$main.getBoundingClientRect();return b.width/l},c.prototype.getCharacterWidth=function(m){var b=this.charSizes[m];return b===void 0&&(b=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),b},c.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},c.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},c.prototype.$initTransformMeasureNodes=function(){var m=function(b,x){return["div",{style:"position: absolute;top:"+b+"px;left:"+x+"px;"}]};this.els=f.buildDom([m(0,0),m(u,0),m(0,u),m(u,u)],this.el)},c.prototype.transformCoordinates=function(m,b){if(m){var x=this.$getZoom(this.el);m=v(1/x,m)}function E(q,V,X){var G=q[1]*V[0]-q[0]*V[1];return[(-V[1]*X[0]+V[0]*X[1])/G,(+q[1]*X[0]-q[0]*X[1])/G]}function A(q,V){return[q[0]-V[0],q[1]-V[1]]}function k(q,V){return[q[0]+V[0],q[1]+V[1]]}function v(q,V){return[q*V[0],q*V[1]]}this.els||this.$initTransformMeasureNodes();function T(q){var V=q.getBoundingClientRect();return[V.left,V.top]}var R=T(this.els[0]),O=T(this.els[1]),M=T(this.els[2]),N=T(this.els[3]),S=E(A(N,O),A(N,M),A(k(O,M),k(N,R))),_=v(1+S[0],A(O,R)),$=v(1+S[1],A(M,R));if(b){var L=b,D=S[0]*L[0]/u+S[1]*L[1]/u+1,F=k(v(L[0],_),v(L[1],$));return k(v(1/D/u,F),R)}var B=A(m,R),W=E(A(_,v(S[0],B)),A($,v(S[1],B)),B);return v(u,W)},c}();o.prototype.$characterSize={width:0,height:0},h.implement(o.prototype,s),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,d){d.exports=`
253
+ .ace_br1 {border-top-left-radius : 3px;}
254
+ .ace_br2 {border-top-right-radius : 3px;}
255
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
256
+ .ace_br4 {border-bottom-right-radius: 3px;}
257
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
258
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
259
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
260
+ .ace_br8 {border-bottom-left-radius : 3px;}
261
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
262
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
263
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
264
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
265
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
266
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
267
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
268
+
269
+
270
+ .ace_editor {
271
+ position: relative;
272
+ overflow: hidden;
273
+ padding: 0;
274
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
275
+ direction: ltr;
276
+ text-align: left;
277
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
278
+ forced-color-adjust: none;
279
+ }
280
+
281
+ .ace_scroller {
282
+ position: absolute;
283
+ overflow: hidden;
284
+ top: 0;
285
+ bottom: 0;
286
+ background-color: inherit;
287
+ -ms-user-select: none;
288
+ -moz-user-select: none;
289
+ -webkit-user-select: none;
290
+ user-select: none;
291
+ cursor: text;
292
+ }
293
+
294
+ .ace_content {
295
+ position: absolute;
296
+ box-sizing: border-box;
297
+ min-width: 100%;
298
+ contain: style size layout;
299
+ font-variant-ligatures: no-common-ligatures;
300
+ }
301
+
302
+ .ace_keyboard-focus:focus {
303
+ box-shadow: inset 0 0 0 2px #5E9ED6;
304
+ outline: none;
305
+ }
306
+
307
+ .ace_dragging .ace_scroller:before{
308
+ position: absolute;
309
+ top: 0;
310
+ left: 0;
311
+ right: 0;
312
+ bottom: 0;
313
+ content: '';
314
+ background: rgba(250, 250, 250, 0.01);
315
+ z-index: 1000;
316
+ }
317
+ .ace_dragging.ace_dark .ace_scroller:before{
318
+ background: rgba(0, 0, 0, 0.01);
319
+ }
320
+
321
+ .ace_gutter {
322
+ position: absolute;
323
+ overflow : hidden;
324
+ width: auto;
325
+ top: 0;
326
+ bottom: 0;
327
+ left: 0;
328
+ cursor: default;
329
+ z-index: 4;
330
+ -ms-user-select: none;
331
+ -moz-user-select: none;
332
+ -webkit-user-select: none;
333
+ user-select: none;
334
+ contain: style size layout;
335
+ }
336
+
337
+ .ace_gutter-active-line {
338
+ position: absolute;
339
+ left: 0;
340
+ right: 0;
341
+ }
342
+
343
+ .ace_scroller.ace_scroll-left:after {
344
+ content: "";
345
+ position: absolute;
346
+ top: 0;
347
+ right: 0;
348
+ bottom: 0;
349
+ left: 0;
350
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
351
+ pointer-events: none;
352
+ }
353
+
354
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
355
+ position: absolute;
356
+ top: 0;
357
+ left: 0;
358
+ right: 0;
359
+ padding-left: 19px;
360
+ padding-right: 6px;
361
+ background-repeat: no-repeat;
362
+ }
363
+
364
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
365
+ margin-left: -14px;
366
+ float: left;
367
+ }
368
+
369
+ .ace_gutter-cell .ace_gutter_annotation {
370
+ margin-left: -19px;
371
+ float: left;
372
+ }
373
+
374
+ .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 {
375
+ 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==");
376
+ background-repeat: no-repeat;
377
+ background-position: 2px center;
378
+ }
379
+
380
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
381
+ 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==");
382
+ background-repeat: no-repeat;
383
+ background-position: 2px center;
384
+ }
385
+
386
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
387
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
388
+ background-repeat: no-repeat;
389
+ background-position: 2px center;
390
+ }
391
+
392
+ .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 {
393
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
394
+ }
395
+
396
+ .ace_icon_svg.ace_error {
397
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
398
+ background-color: crimson;
399
+ }
400
+ .ace_icon_svg.ace_security {
401
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
402
+ background-color: crimson;
403
+ }
404
+ .ace_icon_svg.ace_warning {
405
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
406
+ background-color: darkorange;
407
+ }
408
+ .ace_icon_svg.ace_info {
409
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
410
+ background-color: royalblue;
411
+ }
412
+ .ace_icon_svg.ace_hint {
413
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
414
+ background-color: silver;
415
+ }
416
+
417
+ .ace_icon_svg.ace_error_fold {
418
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
419
+ background-color: crimson;
420
+ }
421
+ .ace_icon_svg.ace_security_fold {
422
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
423
+ background-color: crimson;
424
+ }
425
+ .ace_icon_svg.ace_warning_fold {
426
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
427
+ background-color: darkorange;
428
+ }
429
+
430
+ .ace_scrollbar {
431
+ contain: strict;
432
+ position: absolute;
433
+ right: 0;
434
+ bottom: 0;
435
+ z-index: 6;
436
+ }
437
+
438
+ .ace_scrollbar-inner {
439
+ position: absolute;
440
+ cursor: text;
441
+ left: 0;
442
+ top: 0;
443
+ }
444
+
445
+ .ace_scrollbar-v{
446
+ overflow-x: hidden;
447
+ overflow-y: scroll;
448
+ top: 0;
449
+ }
450
+
451
+ .ace_scrollbar-h {
452
+ overflow-x: scroll;
453
+ overflow-y: hidden;
454
+ left: 0;
455
+ }
456
+
457
+ .ace_print-margin {
458
+ position: absolute;
459
+ height: 100%;
460
+ }
461
+
462
+ .ace_text-input {
463
+ position: absolute;
464
+ z-index: 0;
465
+ width: 0.5em;
466
+ height: 1em;
467
+ opacity: 0;
468
+ background: transparent;
469
+ -moz-appearance: none;
470
+ appearance: none;
471
+ border: none;
472
+ resize: none;
473
+ outline: none;
474
+ overflow: hidden;
475
+ font: inherit;
476
+ padding: 0 1px;
477
+ margin: 0 -1px;
478
+ contain: strict;
479
+ -ms-user-select: text;
480
+ -moz-user-select: text;
481
+ -webkit-user-select: text;
482
+ user-select: text;
483
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
484
+ white-space: pre!important;
485
+ }
486
+ .ace_text-input.ace_composition {
487
+ background: transparent;
488
+ color: inherit;
489
+ z-index: 1000;
490
+ opacity: 1;
491
+ }
492
+ .ace_composition_placeholder { color: transparent }
493
+ .ace_composition_marker {
494
+ border-bottom: 1px solid;
495
+ position: absolute;
496
+ border-radius: 0;
497
+ margin-top: 1px;
498
+ }
499
+
500
+ [ace_nocontext=true] {
501
+ transform: none!important;
502
+ filter: none!important;
503
+ clip-path: none!important;
504
+ mask : none!important;
505
+ contain: none!important;
506
+ perspective: none!important;
507
+ mix-blend-mode: initial!important;
508
+ z-index: auto;
509
+ }
510
+
511
+ .ace_layer {
512
+ z-index: 1;
513
+ position: absolute;
514
+ overflow: hidden;
515
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
516
+ word-wrap: normal;
517
+ white-space: pre;
518
+ height: 100%;
519
+ width: 100%;
520
+ box-sizing: border-box;
521
+ /* setting pointer-events: auto; on node under the mouse, which changes
522
+ during scroll, will break mouse wheel scrolling in Safari */
523
+ pointer-events: none;
524
+ }
525
+
526
+ .ace_gutter-layer {
527
+ position: relative;
528
+ width: auto;
529
+ text-align: right;
530
+ pointer-events: auto;
531
+ height: 1000000px;
532
+ contain: style size layout;
533
+ }
534
+
535
+ .ace_text-layer {
536
+ font: inherit !important;
537
+ position: absolute;
538
+ height: 1000000px;
539
+ width: 1000000px;
540
+ contain: style size layout;
541
+ }
542
+
543
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
544
+ contain: style size layout;
545
+ position: absolute;
546
+ top: 0;
547
+ left: 0;
548
+ right: 0;
549
+ }
550
+
551
+ .ace_hidpi .ace_text-layer,
552
+ .ace_hidpi .ace_gutter-layer,
553
+ .ace_hidpi .ace_content,
554
+ .ace_hidpi .ace_gutter {
555
+ contain: strict;
556
+ }
557
+ .ace_hidpi .ace_text-layer > .ace_line,
558
+ .ace_hidpi .ace_text-layer > .ace_line_group {
559
+ contain: strict;
560
+ }
561
+
562
+ .ace_cjk {
563
+ display: inline-block;
564
+ text-align: center;
565
+ }
566
+
567
+ .ace_cursor-layer {
568
+ z-index: 4;
569
+ }
570
+
571
+ .ace_cursor {
572
+ z-index: 4;
573
+ position: absolute;
574
+ box-sizing: border-box;
575
+ border-left: 2px solid;
576
+ /* workaround for smooth cursor repaintng whole screen in chrome */
577
+ transform: translatez(0);
578
+ }
579
+
580
+ .ace_multiselect .ace_cursor {
581
+ border-left-width: 1px;
582
+ }
583
+
584
+ .ace_slim-cursors .ace_cursor {
585
+ border-left-width: 1px;
586
+ }
587
+
588
+ .ace_overwrite-cursors .ace_cursor {
589
+ border-left-width: 0;
590
+ border-bottom: 1px solid;
591
+ }
592
+
593
+ .ace_hidden-cursors .ace_cursor {
594
+ opacity: 0.2;
595
+ }
596
+
597
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
598
+ opacity: 0;
599
+ }
600
+
601
+ .ace_smooth-blinking .ace_cursor {
602
+ transition: opacity 0.18s;
603
+ }
604
+
605
+ .ace_animate-blinking .ace_cursor {
606
+ animation-duration: 1000ms;
607
+ animation-timing-function: step-end;
608
+ animation-name: blink-ace-animate;
609
+ animation-iteration-count: infinite;
610
+ }
611
+
612
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
613
+ animation-duration: 1000ms;
614
+ animation-timing-function: ease-in-out;
615
+ animation-name: blink-ace-animate-smooth;
616
+ }
617
+
618
+ @keyframes blink-ace-animate {
619
+ from, to { opacity: 1; }
620
+ 60% { opacity: 0; }
621
+ }
622
+
623
+ @keyframes blink-ace-animate-smooth {
624
+ from, to { opacity: 1; }
625
+ 45% { opacity: 1; }
626
+ 60% { opacity: 0; }
627
+ 85% { opacity: 0; }
628
+ }
629
+
630
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
631
+ position: absolute;
632
+ z-index: 3;
633
+ }
634
+
635
+ .ace_marker-layer .ace_selection {
636
+ position: absolute;
637
+ z-index: 5;
638
+ }
639
+
640
+ .ace_marker-layer .ace_bracket {
641
+ position: absolute;
642
+ z-index: 6;
643
+ }
644
+
645
+ .ace_marker-layer .ace_error_bracket {
646
+ position: absolute;
647
+ border-bottom: 1px solid #DE5555;
648
+ border-radius: 0;
649
+ }
650
+
651
+ .ace_marker-layer .ace_active-line {
652
+ position: absolute;
653
+ z-index: 2;
654
+ }
655
+
656
+ .ace_marker-layer .ace_selected-word {
657
+ position: absolute;
658
+ z-index: 4;
659
+ box-sizing: border-box;
660
+ }
661
+
662
+ .ace_line .ace_fold {
663
+ box-sizing: border-box;
664
+
665
+ display: inline-block;
666
+ height: 11px;
667
+ margin-top: -2px;
668
+ vertical-align: middle;
669
+
670
+ background-image:
671
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
672
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
673
+ background-repeat: no-repeat, repeat-x;
674
+ background-position: center center, top left;
675
+ color: transparent;
676
+
677
+ border: 1px solid black;
678
+ border-radius: 2px;
679
+
680
+ cursor: pointer;
681
+ pointer-events: auto;
682
+ }
683
+
684
+ .ace_dark .ace_fold {
685
+ }
686
+
687
+ .ace_fold:hover{
688
+ background-image:
689
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
690
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
691
+ }
692
+
693
+ .ace_tooltip {
694
+ background-color: #f5f5f5;
695
+ border: 1px solid gray;
696
+ border-radius: 1px;
697
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
698
+ color: black;
699
+ max-width: 100%;
700
+ padding: 3px 4px;
701
+ position: fixed;
702
+ z-index: 999999;
703
+ box-sizing: border-box;
704
+ cursor: default;
705
+ white-space: pre-wrap;
706
+ word-wrap: break-word;
707
+ line-height: normal;
708
+ font-style: normal;
709
+ font-weight: normal;
710
+ letter-spacing: normal;
711
+ pointer-events: none;
712
+ overflow: auto;
713
+ max-width: min(60em, 66vw);
714
+ overscroll-behavior: contain;
715
+ }
716
+ .ace_tooltip pre {
717
+ white-space: pre-wrap;
718
+ }
719
+
720
+ .ace_tooltip.ace_dark {
721
+ background-color: #636363;
722
+ color: #fff;
723
+ }
724
+
725
+ .ace_tooltip:focus {
726
+ outline: 1px solid #5E9ED6;
727
+ }
728
+
729
+ .ace_icon {
730
+ display: inline-block;
731
+ width: 18px;
732
+ vertical-align: top;
733
+ }
734
+
735
+ .ace_icon_svg {
736
+ display: inline-block;
737
+ width: 12px;
738
+ vertical-align: top;
739
+ -webkit-mask-repeat: no-repeat;
740
+ -webkit-mask-size: 12px;
741
+ -webkit-mask-position: center;
742
+ }
743
+
744
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
745
+ padding-right: 13px;
746
+ }
747
+
748
+ .ace_fold-widget {
749
+ box-sizing: border-box;
750
+
751
+ margin: 0 -12px 0 1px;
752
+ display: none;
753
+ width: 11px;
754
+ vertical-align: top;
755
+
756
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
757
+ background-repeat: no-repeat;
758
+ background-position: center;
759
+
760
+ border-radius: 3px;
761
+
762
+ border: 1px solid transparent;
763
+ cursor: pointer;
764
+ }
765
+
766
+ .ace_folding-enabled .ace_fold-widget {
767
+ display: inline-block;
768
+ }
769
+
770
+ .ace_fold-widget.ace_end {
771
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
772
+ }
773
+
774
+ .ace_fold-widget.ace_closed {
775
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
776
+ }
777
+
778
+ .ace_fold-widget:hover {
779
+ border: 1px solid rgba(0, 0, 0, 0.3);
780
+ background-color: rgba(255, 255, 255, 0.2);
781
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
782
+ }
783
+
784
+ .ace_fold-widget:active {
785
+ border: 1px solid rgba(0, 0, 0, 0.4);
786
+ background-color: rgba(0, 0, 0, 0.05);
787
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
788
+ }
789
+ /**
790
+ * Dark version for fold widgets
791
+ */
792
+ .ace_dark .ace_fold-widget {
793
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
794
+ }
795
+ .ace_dark .ace_fold-widget.ace_end {
796
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
797
+ }
798
+ .ace_dark .ace_fold-widget.ace_closed {
799
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
800
+ }
801
+ .ace_dark .ace_fold-widget:hover {
802
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
803
+ background-color: rgba(255, 255, 255, 0.1);
804
+ }
805
+ .ace_dark .ace_fold-widget:active {
806
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
807
+ }
808
+
809
+ .ace_inline_button {
810
+ border: 1px solid lightgray;
811
+ display: inline-block;
812
+ margin: -1px 8px;
813
+ padding: 0 5px;
814
+ pointer-events: auto;
815
+ cursor: pointer;
816
+ }
817
+ .ace_inline_button:hover {
818
+ border-color: gray;
819
+ background: rgba(200,200,200,0.2);
820
+ display: inline-block;
821
+ pointer-events: auto;
822
+ }
823
+
824
+ .ace_fold-widget.ace_invalid {
825
+ background-color: #FFB4B4;
826
+ border-color: #DE5555;
827
+ }
828
+
829
+ .ace_fade-fold-widgets .ace_fold-widget {
830
+ transition: opacity 0.4s ease 0.05s;
831
+ opacity: 0;
832
+ }
833
+
834
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
835
+ transition: opacity 0.05s ease 0.05s;
836
+ opacity:1;
837
+ }
838
+
839
+ .ace_underline {
840
+ text-decoration: underline;
841
+ }
842
+
843
+ .ace_bold {
844
+ font-weight: bold;
845
+ }
846
+
847
+ .ace_nobold .ace_bold {
848
+ font-weight: normal;
849
+ }
850
+
851
+ .ace_italic {
852
+ font-style: italic;
853
+ }
854
+
855
+
856
+ .ace_error-marker {
857
+ background-color: rgba(255, 0, 0,0.2);
858
+ position: absolute;
859
+ z-index: 9;
860
+ }
861
+
862
+ .ace_highlight-marker {
863
+ background-color: rgba(255, 255, 0,0.2);
864
+ position: absolute;
865
+ z-index: 8;
866
+ }
867
+
868
+ .ace_mobile-menu {
869
+ position: absolute;
870
+ line-height: 1.5;
871
+ border-radius: 4px;
872
+ -ms-user-select: none;
873
+ -moz-user-select: none;
874
+ -webkit-user-select: none;
875
+ user-select: none;
876
+ background: white;
877
+ box-shadow: 1px 3px 2px grey;
878
+ border: 1px solid #dcdcdc;
879
+ color: black;
880
+ }
881
+ .ace_dark > .ace_mobile-menu {
882
+ background: #333;
883
+ color: #ccc;
884
+ box-shadow: 1px 3px 2px grey;
885
+ border: 1px solid #444;
886
+
887
+ }
888
+ .ace_mobile-button {
889
+ padding: 2px;
890
+ cursor: pointer;
891
+ overflow: hidden;
892
+ }
893
+ .ace_mobile-button:hover {
894
+ background-color: #eee;
895
+ opacity:1;
896
+ }
897
+ .ace_mobile-button:active {
898
+ background-color: #ddd;
899
+ }
900
+
901
+ .ace_placeholder {
902
+ position: relative;
903
+ font-family: arial;
904
+ transform: scale(0.9);
905
+ transform-origin: left;
906
+ white-space: pre;
907
+ opacity: 0.7;
908
+ margin: 0 10px;
909
+ z-index: 1;
910
+ }
911
+
912
+ .ace_ghost_text {
913
+ opacity: 0.5;
914
+ font-style: italic;
915
+ }
916
+
917
+ .ace_ghost_text_container > div {
918
+ white-space: pre;
919
+ }
920
+
921
+ .ghost_text_line_wrapped::after {
922
+ content: "↩";
923
+ position: absolute;
924
+ }
925
+
926
+ .ace_lineWidgetContainer.ace_ghost_text {
927
+ margin: 0px 4px
928
+ }
929
+
930
+ .ace_screenreader-only {
931
+ position:absolute;
932
+ left:-10000px;
933
+ top:auto;
934
+ width:1px;
935
+ height:1px;
936
+ overflow:hidden;
937
+ }
938
+
939
+ .ace_hidden_token {
940
+ display: none;
941
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,r,d){var h=n("../lib/dom"),f=n("../lib/oop"),w=n("../lib/event_emitter").EventEmitter,p=function(){function g(s,l){this.canvas=h.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(s){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var a=(s.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var u=this.canvas.getContext("2d");function o(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var c=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),c){var m={info:1,warning:2,error:3};c.forEach(function(N){N.priority=m[N.type]||null}),c=c.sort(o);for(var b=this.renderer.session.$foldData,x=0;x<c.length;x++){var E=c[x].row,A=this.compensateFoldRows(E,b),k=Math.round((E-A)*this.lineHeight*this.heightRatio),v=Math.round((E-A)*this.lineHeight*this.heightRatio),T=Math.round(((E-A)*this.lineHeight+this.lineHeight)*this.heightRatio),R=T-v;if(R<this.minDecorationHeight){var O=(v+T)/2|0;O<this.halfMinDecorationHeight?O=this.halfMinDecorationHeight:O+this.halfMinDecorationHeight>this.canvasHeight&&(O=this.canvasHeight-this.halfMinDecorationHeight),v=Math.round(O-this.halfMinDecorationHeight),T=Math.round(O+this.halfMinDecorationHeight)}u.fillStyle=l[c[x].type]||null,u.fillRect(0,k,this.canvasWidth,T-v)}}var M=this.renderer.session.selection.getCursor();if(M){var A=this.compensateFoldRows(M.row,b),k=Math.round((M.row-A)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,k,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(s,l){var a=0;if(l&&l.length>0)for(var u=0;u<l.length;u++)s>l[u].start.row&&s<l[u].end.row?a+=s-l[u].start.row:s>=l[u].end.row&&(a+=l[u].end.row-l[u].start.row);return a},g}();f.implement(p.prototype,w),r.Decorator=p}),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(n,r,d){var h=n("./lib/oop"),f=n("./lib/dom"),w=n("./lib/lang"),p=n("./config"),g=n("./layer/gutter").Gutter,s=n("./layer/marker").Marker,l=n("./layer/text").Text,a=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,o=n("./scrollbar").VScrollBar,c=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,b=n("./renderloop").RenderLoop,x=n("./layer/font_metrics").FontMetrics,E=n("./lib/event_emitter").EventEmitter,A=n("./css/editor-css"),k=n("./layer/decorators").Decorator,v=n("./lib/useragent"),T=n("./layer/text_util").isTextToken;f.importCssString(A,"ace_editor.css",!1);var R=function(){function O(M,N){var S=this;this.container=M||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),p.get("useStrictCSP")==null&&p.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new l(this.content);this.canvas=_.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function($){S.$scrollAnimation||S.session.setScrollTop($.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){S.$scrollAnimation||S.session.setScrollLeft($.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),p.resetOptions(this),p._signal("renderer",this)}return O.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},O.prototype.setSession=function(M){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=M,M&&this.scrollMargin.top&&M.getScrollTop()<=0&&M.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(M),this.$markerBack.setSession(M),this.$markerFront.setSession(M),this.$gutterLayer.setSession(M),this.$textLayer.setSession(M),M&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},O.prototype.updateLines=function(M,N,S){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>M&&(this.$changedLines.firstRow=M),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:M,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(S)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},O.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},O.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},O.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},O.prototype.updateFull=function(M){M?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},O.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},O.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},O.prototype.onResize=function(M,N,S,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=M?1:0;var $=this.container;_||(_=$.clientHeight||$.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",_=$.clientHeight||$.scrollHeight),S||(S=$.clientWidth||$.scrollWidth);var L=this.$updateCachedSize(M,N,S,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!_)return this.resizing=0;M&&(this.$gutterLayer.$padding=null),M?this.$renderChanges(L|this.$changes,!0):this.$loop.schedule(L|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},O.prototype.$updateCachedSize=function(M,N,S,_){_-=this.$extraHeight||0;var $=0,L=this.$size,D={width:L.width,height:L.height,scrollerHeight:L.scrollerHeight,scrollerWidth:L.scrollerWidth};if(_&&(M||L.height!=_)&&(L.height=_,$|=this.CHANGE_SIZE,L.scrollerHeight=L.height,this.$horizScroll&&(L.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(L.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),S&&(M||L.width!=S)){$|=this.CHANGE_SIZE,L.width=S,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,f.setStyle(this.scrollBarH.element.style,"left",N+"px"),f.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),L.scrollerWidth=Math.max(0,S-N-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",F),f.setStyle(this.scroller.style,"right",F),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(L.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||M)&&($|=this.CHANGE_FULL)}return L.$dirty=!S||!_,$&&this._signal("resize",D),$},O.prototype.onGutterResize=function(M){var N=this.$showGutter?M:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},O.prototype.adjustWrapLimit=function(){var M=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(M/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},O.prototype.setAnimatedScroll=function(M){this.setOption("animatedScroll",M)},O.prototype.getAnimatedScroll=function(){return this.$animatedScroll},O.prototype.setShowInvisibles=function(M){this.setOption("showInvisibles",M),this.session.$bidiHandler.setShowInvisibles(M)},O.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},O.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},O.prototype.setDisplayIndentGuides=function(M){this.setOption("displayIndentGuides",M)},O.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},O.prototype.setHighlightIndentGuides=function(M){this.setOption("highlightIndentGuides",M)},O.prototype.setShowPrintMargin=function(M){this.setOption("showPrintMargin",M)},O.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},O.prototype.setPrintMarginColumn=function(M){this.setOption("printMarginColumn",M)},O.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},O.prototype.getShowGutter=function(){return this.getOption("showGutter")},O.prototype.setShowGutter=function(M){return this.setOption("showGutter",M)},O.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},O.prototype.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},O.prototype.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},O.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},O.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var M=f.createElement("div");M.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",M.appendChild(this.$printMarginEl),this.content.insertBefore(M,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},O.prototype.getContainerElement=function(){return this.container},O.prototype.getMouseEventTarget=function(){return this.scroller},O.prototype.getTextAreaContainer=function(){return this.container},O.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var M=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){f.translate(this.textarea,-100,0);return}var S=this.$cursorLayer.$pixelPos;if(S){N&&N.markerRange&&(S=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,$=S.top,L=S.left;$-=_.offset;var D=N&&N.useTextareaForIME||v.isMobile?this.lineHeight:1;if($<0||$>_.height-D){f.translate(this.textarea,0,0);return}var F=1,B=this.$size.height-D;if(!N)$+=this.lineHeight;else if(N.useTextareaForIME){var W=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(W)[0]}else $+=this.lineHeight+2;L-=this.scrollLeft,L>this.$size.scrollerWidth-F&&(L=this.$size.scrollerWidth-F),L+=this.gutterWidth+this.margin.left,f.setStyle(M,"height",D+"px"),f.setStyle(M,"width",F+"px"),f.translate(this.textarea,Math.min(L,this.$size.scrollerWidth-F),Math.min($,B))}}},O.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},O.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},O.prototype.getLastFullyVisibleRow=function(){var M=this.layerConfig,N=M.lastRow,S=this.session.documentToScreenRow(N,0)*M.lineHeight;return S-this.session.getScrollTop()>M.height-M.lineHeight?N-1:N},O.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},O.prototype.setPadding=function(M){this.$padding=M,this.$textLayer.setPadding(M),this.$cursorLayer.setPadding(M),this.$markerFront.setPadding(M),this.$markerBack.setPadding(M),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},O.prototype.setScrollMargin=function(M,N,S,_){var $=this.scrollMargin;$.top=M|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},O.prototype.setMargin=function(M,N,S,_){var $=this.margin;$.top=M|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},O.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},O.prototype.setHScrollBarAlwaysVisible=function(M){this.setOption("hScrollBarAlwaysVisible",M)},O.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},O.prototype.setVScrollBarAlwaysVisible=function(M){this.setOption("vScrollBarAlwaysVisible",M)},O.prototype.$updateScrollBarV=function(){var M=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(M-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>M-N&&(M=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(M+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},O.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},O.prototype.freeze=function(){this.$frozen=!0},O.prototype.unfreeze=function(){this.$frozen=!1},O.prototype.$renderChanges=function(M,N){if(this.$changes&&(M|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!M&&!N){this.$changes|=M;return}if(this.$size.$dirty)return this.$changes|=M,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",M),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(M&this.CHANGE_FULL||M&this.CHANGE_SIZE||M&this.CHANGE_TEXT||M&this.CHANGE_LINES||M&this.CHANGE_SCROLL||M&this.CHANGE_H_SCROLL){if(M|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,M=M|this.CHANGE_SCROLL,M|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),M&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-S.offset);var $=S.width+2*this.$padding+"px",L=S.minHeight+"px";f.setStyle(this.content.style,"width",$),f.setStyle(this.content.style,"height",L)}if(M&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),M&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}if(M&this.CHANGE_SCROLL){this.$changedLines=null,M&this.CHANGE_TEXT||M&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(M&this.CHANGE_GUTTER||M&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",M);return}M&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):M&this.CHANGE_LINES?((this.$updateLines()||M&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):M&this.CHANGE_TEXT||M&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):M&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),M&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),M&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),this._signal("afterRender",M)},O.prototype.$autosize=function(){var M=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,S=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,M))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var _=S<=2*this.lineHeight,$=!_&&M>N;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var L=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,L,S),this.desiredHeight=S,this._signal("autosize")}},O.prototype.$computeLayerConfig=function(){var M=this.session,N=this.$size,S=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),$=_*this.lineHeight,L=this.$getLongestLine(),D=!S&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-L-2*this.$padding<0),F=this.$horizScroll!==D;F&&(this.$horizScroll=D,this.scrollBarH.setVisible(D));var B=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var W=N.scrollerHeight+this.lineHeight,q=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=q;var V=this.scrollMargin;this.session.setScrollTop(Math.max(-V.top,Math.min(this.scrollTop,$-N.scrollerHeight+V.bottom))),this.session.setScrollLeft(Math.max(-V.left,Math.min(this.scrollLeft,L+2*this.$padding-N.scrollerWidth+V.right)));var X=!S&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-$+q<0||this.scrollTop>V.top),G=B!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(W/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,we,ve,me=this.lineHeight;J=M.screenToDocumentRow(J,0);var Se=M.getFoldLine(J);Se&&(J=Se.start.row),we=M.documentToScreenRow(J,0),ve=M.getRowLength(J)*me,ae=Math.min(M.screenToDocumentRow(ae,0),M.getLength()-1),W=N.scrollerHeight+M.getRowLength(ae)*me+ve,Z=this.scrollTop-we*me;var lt=0;return(this.layerConfig.width!=L||F)&&(lt=this.CHANGE_H_SCROLL),(F||G)&&(lt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(L=this.$getLongestLine())),this.layerConfig={width:L,padding:this.$padding,firstRow:J,firstRowScreen:we,lastRow:ae,lineHeight:me,characterWidth:this.characterWidth,minHeight:W,maxHeight:$,offset:Z,gutterOffset:me?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/me)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(L-this.$padding),lt},O.prototype.$updateLines=function(){if(this.$changedLines){var M=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(M>S.lastRow+1)&&!(N<S.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(S),this.$textLayer.update(S);return}return this.$textLayer.updateLines(S,M,N),!0}}},O.prototype.$getLongestLine=function(){var M=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(M+=1),this.$textLayer&&M>this.$textLayer.MAX_LINE_LENGTH&&(M=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(M*this.characterWidth))},O.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},O.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},O.prototype.addGutterDecoration=function(M,N){this.$gutterLayer.addGutterDecoration(M,N)},O.prototype.removeGutterDecoration=function(M,N){this.$gutterLayer.removeGutterDecoration(M,N)},O.prototype.updateBreakpoints=function(M){this._rows=M,this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.setAnnotations=function(M){this.$gutterLayer.setAnnotations(M),this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},O.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},O.prototype.showCursor=function(){this.$cursorLayer.showCursor()},O.prototype.scrollSelectionIntoView=function(M,N,S){this.scrollCursorIntoView(M,S),this.scrollCursorIntoView(N,S)},O.prototype.scrollCursorIntoView=function(M,N,S){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(M),$=_.left,L=_.top,D=S&&S.top||0,F=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var B=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;B+D>L?(N&&B+D>L+this.lineHeight&&(L-=N*this.$size.scrollerHeight),L===0&&(L=-this.scrollMargin.top),this.session.setScrollTop(L)):B+this.$size.scrollerHeight-F<L+this.lineHeight&&(N&&B+this.$size.scrollerHeight-F<L-this.lineHeight&&(L+=N*this.$size.scrollerHeight),this.session.setScrollTop(L+this.lineHeight+F-this.$size.scrollerHeight));var W=this.scrollLeft,q=2*this.layerConfig.characterWidth;$-q<W?($-=q,$<this.$padding+q&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=q,W+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&$-W<this.characterWidth&&this.session.setScrollLeft(0))}},O.prototype.getScrollTop=function(){return this.session.getScrollTop()},O.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},O.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},O.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},O.prototype.scrollToRow=function(M){this.session.setScrollTop(M*this.lineHeight)},O.prototype.alignCursor=function(M,N){typeof M=="number"&&(M={row:M,column:0});var S=this.$cursorLayer.getPixelPosition(M),_=this.$size.scrollerHeight-this.lineHeight,$=S.top-_*(N||0);return this.session.setScrollTop($),$},O.prototype.$calcSteps=function(M,N){var S=0,_=this.STEPS,$=[],L=function(D,F,B){return B*(Math.pow(D-1,3)+1)+F};for(S=0;S<_;++S)$.push(L(S/this.STEPS,M,N-M));return $},O.prototype.scrollToLine=function(M,N,S,_){var $=this.$cursorLayer.getPixelPosition({row:M,column:0}),L=$.top;N&&(L-=this.$size.scrollerHeight/2);var D=this.scrollTop;this.session.setScrollTop(L),S!==!1&&this.animateScrolling(D,_)},O.prototype.animateScrolling=function(M,N){var S=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(M==S)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(M=$[0],M==S))return}var L=_.$calcSteps(M,S);this.$scrollAnimation={from:M,to:S,steps:L},clearInterval(this.$timer),_.session.setScrollTop(L.shift()),_.session.$scrollTop=S;function D(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){D();return}if(!_.session)return clearInterval(_.$timer);L.length?(_.session.setScrollTop(L.shift()),_.session.$scrollTop=S):S!=null?(_.session.$scrollTop=-1,_.session.setScrollTop(S),S=null):D()},10)},O.prototype.scrollToY=function(M){this.scrollTop!==M&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=M)},O.prototype.scrollToX=function(M){this.scrollLeft!==M&&(this.scrollLeft=M),this.$loop.schedule(this.CHANGE_H_SCROLL)},O.prototype.scrollTo=function(M,N){this.session.setScrollTop(N),this.session.setScrollLeft(M)},O.prototype.scrollBy=function(M,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),M&&this.session.setScrollLeft(this.session.getScrollLeft()+M)},O.prototype.isScrollableBy=function(M,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||M<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||M>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},O.prototype.pixelToScreenCoordinates=function(M,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([M,N]);M=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=M+this.scrollLeft-S.left-this.$padding,L=$/this.characterWidth,D=Math.floor((N+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(L):Math.round(L);return{row:D,column:F,side:L-F>0?1:-1,offsetX:$}},O.prototype.screenToTextCoordinates=function(M,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([M,N]);M=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=M+this.scrollLeft-S.left-this.$padding,L=$/this.characterWidth,D=this.$blockCursor?Math.floor(L):Math.round(L),F=Math.floor((N+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(D,0),$)},O.prototype.textToScreenCoordinates=function(M,N){var S=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(M,N),$=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,M)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),L=_.row*this.lineHeight;return{pageX:S.left+$-this.scrollLeft,pageY:S.top+L-this.scrollTop}},O.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},O.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},O.prototype.showComposition=function(M){this.$composition=M,M.cssText||(M.cssText=this.textarea.style.cssText),M.useTextareaForIME==null&&(M.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):M.markerId=this.session.addMarker(M.markerRange,"ace_composition_marker","text")},O.prototype.setCompositionText=function(M){var N=this.session.selection.cursor;this.addToken(M,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},O.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var M=this.session.selection.cursor;this.removeExtraToken(M.row,M.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},O.prototype.setGhostText=function(M,N){var S=this.session.selection.cursor,_=N||{row:S.row,column:S.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(M,_);this.addToken($[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:M,position:{row:_.row,column:_.column}};var L=f.createElement("div");if($.length>1){var D=this.hideTokensAfterPosition(_.row,_.column),F;$.slice(1).forEach(function(G){var Z=f.createElement("div"),re=f.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(f.createTextNode(G.text)),Z.appendChild(re),L.appendChild(Z),F=Z}),D.forEach(function(G){var Z=f.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(f.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:L,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var B=this.$cursorLayer.getPixelPosition(_,!0),W=this.container,q=W.getBoundingClientRect().height,V=$.length*this.lineHeight,X=V<q-B.top;if(X)return;V<q?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(_.row)}},O.prototype.$calculateWrappedTextChunks=function(M,N){var S=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(S/this.characterWidth)-2;_=_<=0?60:_;for(var $=M.split(/\r?\n/),L=[],D=0;D<$.length;D++){var F=this.session.$getDisplayTokens($[D],N.column),B=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(B.length>0){var W=0;B.push($[D].length);for(var q=0;q<B.length;q++){var V=$[D].slice(W,B[q]);L.push({text:V,wrapped:!0}),W=B[q]}}else L.push({text:$[D],wrapped:!1})}return L},O.prototype.removeGhostText=function(){if(this.$ghostText){var M=this.$ghostText.position;this.removeExtraToken(M.row,M.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},O.prototype.addToken=function(M,N,S,_){var $=this.session;$.bgTokenizer.lines[S]=null;var L={type:N,value:M},D=$.getTokens(S);if(_==null||!D.length)D.push(L);else for(var F=0,B=0;B<D.length;B++){var W=D[B];if(F+=W.value.length,_<=F){var q=W.value.length-(F-_),V=W.value.slice(0,q),X=W.value.slice(q);D.splice(B,1,{type:W.type,value:V},L,{type:W.type,value:X});break}}this.updateLines(S,S)},O.prototype.hideTokensAfterPosition=function(M,N){for(var S=this.session.getTokens(M),_=0,$=!1,L=[],D=0;D<S.length;D++){var F=S[D];if(_+=F.value.length,F.type!=="ghost_text"){if($){L.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&($=!0)}}return this.updateLines(M,M),L},O.prototype.removeExtraToken=function(M,N){this.session.bgTokenizer.lines[M]=null,this.updateLines(M,M)},O.prototype.setTheme=function(M,N){var S=this;if(this.$themeId=M,S._dispatchEvent("themeChange",{theme:M}),!M||typeof M=="string"){var _=M||this.$options.theme.initialValue;p.loadModule(["theme",_],$)}else $(M);function $(L){if(S.$themeId!=M)return N&&N();if(!L||!L.cssClass)throw new Error("couldn't load module "+M+" or it didn't call define");L.$id&&(S.$themeId=L.$id),f.importCssString(L.cssText,L.cssClass,S.container),S.theme&&f.removeCssClass(S.container,S.theme.cssClass);var D="padding"in L?L.padding:"padding"in(S.theme||{})?4:S.$padding;S.$padding&&D!=S.$padding&&S.setPadding(D),S.$theme=L.cssClass,S.theme=L,f.addCssClass(S.container,L.cssClass),f.setCssClass(S.container,"ace_dark",L.isDark),S.$size&&(S.$size.width=0,S.$updateSizeAsync()),S._dispatchEvent("themeLoaded",{theme:L}),N&&N(),v.isSafari&&S.scroller&&(S.scroller.style.background="red",S.scroller.style.background="")}},O.prototype.getTheme=function(){return this.$themeId},O.prototype.setStyle=function(M,N){f.setCssClass(this.container,M,N!==!1)},O.prototype.unsetStyle=function(M){f.removeCssClass(this.container,M)},O.prototype.setCursorStyle=function(M){f.setStyle(this.scroller.style,"cursor",M)},O.prototype.setMouseCursor=function(M){f.setStyle(this.scroller.style,"cursor",M)},O.prototype.attachToShadowRoot=function(){f.importCssString(A,"ace_editor.css",this.container)},O.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},O.prototype.$updateCustomScrollbar=function(M){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,M===!0?(this.scrollBarV=new m(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}))},O.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var M=this;this.$resizeTimer=w.delayedCall(function(){M.destroyed||M.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var S=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(M.$size.width-S)>1||Math.abs(M.$size.height-_)>1?M.$resizeTimer.delay():M.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},O}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,h.implement(R.prototype,E),p.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(O){!O&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):O&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(O){this.$textLayer.setShowInvisibles(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(O){typeof O=="number"&&(this.$printMarginColumn=O),this.$showPrintMargin=!!O,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(O){this.$gutter.style.display=O?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(O){this.$gutterLayer.$useSvgGutterIcons=O},initialValue:!1},showFoldedAnnotations:{set:function(O){this.$gutterLayer.$showFoldedAnnotations=O},initialValue:!1},fadeFoldWidgets:{set:function(O){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",O)},initialValue:!1},showFoldWidgets:{set:function(O){this.$gutterLayer.setShowFoldWidgets(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(O){this.$textLayer.setDisplayIndentGuides(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(O){this.$textLayer.setHighlightIndentGuides(O)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(O){this.$gutterLayer.setHighlightGutterLine(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(O){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(O){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(O){typeof O=="number"&&(O=O+"px"),this.container.style.fontSize=O,this.updateFontSize()},initialValue:12},fontFamily:{set:function(O){this.container.style.fontFamily=O,this.updateFontSize()}},maxLines:{set:function(O){this.updateFull()}},minLines:{set:function(O){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(O){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(O){O=+O||0,this.$scrollPastEnd!=O&&(this.$scrollPastEnd=O,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(O){this.$gutterLayer.$fixedWidth=!!O,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(O){this.$updateCustomScrollbar(O)},initialValue:!1},theme:{set:function(O){this.setTheme(O)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!v.isMobile&&!v.isIE}}),r.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,d){var h=n("../lib/oop"),f=n("../lib/net"),w=n("../lib/event_emitter").EventEmitter,p=n("../config");function g(u){var o="importScripts('"+f.qualifyURL(u)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var c=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new c;return m.append(o),m.getBlob("application/javascript")}}function s(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(p.get("loadWorkerFromBlob")){var o=g(u),c=window.URL||window.webkitURL,m=c.createObjectURL(o);return new Worker(m)}return new Worker(u)}var l=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){h.implement(this,w),this.$createWorkerFromOldConfig=function(u,o,c,m,b){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),p.get("packaged")||!n.toUrl)m=m||p.moduleUrl(o,"worker");else{var x=this.$normalizePath;m=m||x(n.toUrl("ace/worker/worker.js",null,"_"));var E={};u.forEach(function(A){E[A]=x(n.toUrl(A,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(m),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:E,module:o,classname:c}),this.$worker},this.onMessage=function(u){var o=u.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var c=this.callbacks[o.id];c&&(c(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return f.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,o){this.$worker.postMessage({command:u,args:o})},this.call=function(u,o,c){if(c){var m=this.callbackId++;this.callbacks[m]=c,o.push(m)}this.send(u,o)},this.emit=function(u,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:o.data}})}catch(c){console.error(c.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(l.prototype);var a=function(u,o,c){var m=null,b=!1,x=Object.create(w),E=[],A=new l({messageBuffer:E,terminate:function(){},postMessage:function(v){E.push(v),m&&(b?setTimeout(k):k())}});A.setEmitSync=function(v){b=v};var k=function(){var v=E.shift();v.command?m[v.command].apply(m,v.args):v.event&&x._signal(v.event,v.data)};return x.postMessage=function(v){A.onMessage({data:v})},x.callback=function(v,T){this.postMessage({type:"call",id:T,data:v})},x.emit=function(v,T){this.postMessage({type:"event",name:v,data:T})},p.loadModule(["worker",o],function(v){for(m=new v[c](x);E.length;)k()}),A};r.UIWorkerClient=a,r.WorkerClient=l,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,d){var h=n("./range").Range,f=n("./lib/event_emitter").EventEmitter,w=n("./lib/oop"),p=function(){function g(s,l,a,u,o,c){var m=this;this.length=l,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=c,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=a;var b=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var s=this,l=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=a.addMarker(new h(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var c=l.createAnchor(o.row,o.column);c.$insertRight=!0,c.detach(),s.others.push(c)}),a.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,l=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new h(a.row,a.column,a.row,a.column+l.length),l.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},g.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var l=s;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,u=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,o=l.start.column-this.pos.column;if(this.updateAnchors(s),u&&(this.length+=a),u&&!this.session.$fromUndo){if(s.action==="insert")for(var c=this.others.length-1;c>=0;c--){var m=this.others[c],b={row:m.row,column:m.column+o};this.doc.insertMergedLines(b,s.lines)}else if(s.action==="remove")for(var c=this.others.length-1;c>=0;c--){var m=this.others[c],b={row:m.row,column:m.column+o};this.doc.remove(new h(b.row,b.column,b.row,b.column-a))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var l=this.others.length;l--;)this.others[l].onChange(s);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var s=this,l=this.session,a=function(o,c){l.removeMarker(o.markerId),o.markerId=l.addMarker(new h(o.row,o.column,o.row,o.column+s.length),c,null,!1)};a(this.pos,this.mainClass);for(var u=this.others.length;u--;)a(this.others[u],this.othersClass)}},g.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),l=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<l;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();w.implement(p.prototype,f),r.PlaceHolder=p}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,d){var h=n("../lib/event"),f=n("../lib/useragent");function w(g,s){return g.row==s.row&&g.column==s.column}function p(g){var s=g.domEvent,l=s.altKey,a=s.shiftKey,u=s.ctrlKey,o=g.getAccelKey(),c=g.getButton();if(u&&f.isMac&&(c=s.button),g.editor.inMultiSelectMode&&c==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!u&&!l&&!o){c===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(c===0){var m=g.editor,b=m.selection,x=m.inMultiSelectMode,E=g.getDocumentPosition(),A=b.getCursor(),k=g.inSelection()||b.isEmpty()&&w(E,A),v=g.x,T=g.y,R=function(V){v=V.clientX,T=V.clientY},O=m.session,M=m.renderer.pixelToScreenCoordinates(v,T),N=M,S;if(m.$mouseHandler.$enableJumpToDef)u&&l||o&&l?S=a?"block":"add":l&&m.$blockSelectEnabled&&(S="block");else if(o&&!l){if(S="add",!x&&a)return}else l&&m.$blockSelectEnabled&&(S="block");if(S&&f.isMac&&s.ctrlKey&&m.$mouseHandler.cancelContextMenu(),S=="add"){if(!x&&k)return;if(!x){var _=b.toOrientedRange();m.addSelectionMarker(_)}var $=b.rangeList.rangeAtPoint(E);m.inVirtualSelectionMode=!0,a&&($=null,_=b.ranges[0]||_,m.removeSelectionMarker(_)),m.once("mouseup",function(){var V=b.toOrientedRange();$&&V.isEmpty()&&w($.cursor,V.cursor)?b.substractPoint(V.cursor):(a?b.substractPoint(_.cursor):_&&(m.removeSelectionMarker(_),b.addRange(_)),b.addRange(V)),m.inVirtualSelectionMode=!1})}else if(S=="block"){g.stop(),m.inVirtualSelectionMode=!0;var L,D=[],F=function(){var V=m.renderer.pixelToScreenCoordinates(v,T),X=O.screenToDocumentPosition(V.row,V.column,V.offsetX);w(N,V)&&w(X,b.lead)||(N=V,m.selection.moveToPosition(X),m.renderer.scrollCursorIntoView(),m.removeSelectionMarkers(D),D=b.rectangularRangeBlock(N,M),m.$mouseHandler.$clickSelection&&D.length==1&&D[0].isEmpty()&&(D[0]=m.$mouseHandler.$clickSelection.clone()),D.forEach(m.addSelectionMarker,m),m.updateSelectionMarkers())};x&&!o?b.toSingleRange():!x&&o&&(L=b.toOrientedRange(),m.addSelectionMarker(L)),a?M=O.documentToScreenPosition(b.lead):b.moveToPosition(E),N={row:-1,column:-1};var B=function(V){F(),clearInterval(q),m.removeSelectionMarkers(D),D.length||(D=[b.toOrientedRange()]),L&&(m.removeSelectionMarker(L),b.toSingleRange(L));for(var X=0;X<D.length;X++)b.addRange(D[X]);m.inVirtualSelectionMode=!1,m.$mouseHandler.$clickSelection=null},W=F;h.capture(m.container,R,B);var q=setInterval(function(){W()},20);return g.preventDefault()}}}r.onMouseDown=p}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(n,r,d){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(f){f.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(f){f.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(f){f.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.inMultiSelectMode}}];var h=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new h(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,r,d){var h=n("./range_list").RangeList,f=n("./range").Range,w=n("./selection").Selection,p=n("./mouse/multi_select_handler").onMouseDown,g=n("./lib/event"),s=n("./lib/lang"),l=n("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var a=n("./search").Search,u=new a;function o(A,k,v){return u.$options.wrap=!0,u.$options.needle=k,u.$options.backwards=v==-1,u.find(A)}var c=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(c.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(A,k){if(A){if(!this.inMultiSelectMode&&this.rangeCount===0){var v=this.toOrientedRange();if(this.rangeList.add(v),this.rangeList.add(A),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(A);this.rangeList.removeAll(),this.rangeList.add(v),this.$onAddRange(v)}A.cursor||(A.cursor=A.end);var T=this.rangeList.add(A);return this.$onAddRange(A),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(A)}},this.toSingleRange=function(A){A=A||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),A&&this.fromOrientedRange(A)},this.substractPoint=function(A){var k=this.rangeList.substractPoint(A);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var A=this.rangeList.merge();A.length&&this.$onRemoveRange(A)},this.$onAddRange=function(A){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(A),this._signal("addRange",{range:A})},this.$onRemoveRange=function(A){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();A.push(k),this.rangeCount=0}for(var v=A.length;v--;){var T=this.ranges.indexOf(A[v]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:A}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new h,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var A=this.ranges.length?this.ranges:[this.getRange()],k=[],v=0;v<A.length;v++){var T=A[v],R=T.start.row,O=T.end.row;if(R===O)k.push(T.clone());else{for(k.push(new f(R,T.start.column,R,this.session.getLine(R).length));++R<O;)k.push(this.getLineRange(R,!0));k.push(new f(O,0,O,T.end.column))}v==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var v=k.length;v--;)this.addRange(k[v])},this.joinSelections=function(){var A=this.rangeList.ranges,k=A[A.length-1],v=f.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(v,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var A=this.rangeList.ranges,k=A[A.length-1],v=f.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(v,k.cursor==k.start)}else{var T=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),O=this.rectangularRangeBlock(T,R);O.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(A,k,v){var T=[],R=A.column<k.column;if(R)var O=A.column,M=k.column,N=A.offsetX,S=k.offsetX;else var O=k.column,M=A.column,N=k.offsetX,S=A.offsetX;var _=A.row<k.row;if(_)var $=A.row,L=k.row;else var $=k.row,L=A.row;O<0&&(O=0),$<0&&($=0),$==L&&(v=!0);for(var D,F=$;F<=L;F++){var B=f.fromPoints(this.session.screenToDocumentPosition(F,O,N),this.session.screenToDocumentPosition(F,M,S));if(B.isEmpty()){if(D&&b(B.end,D))break;D=B.end}B.cursor=R?B.start:B.end,T.push(B)}if(_&&T.reverse(),!v){for(var W=T.length-1;T[W].isEmpty()&&W>0;)W--;if(W>0)for(var q=0;T[q].isEmpty();)q++;for(var V=W;V>=q;V--)T[V].isEmpty()&&T.splice(V,1)}return T}}).call(w.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(A){A.cursor||(A.cursor=A.end);var k=this.getSelectionStyle();return A.marker=this.session.addMarker(A,"ace_selection",k),this.session.$selectionMarkers.push(A),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,A},this.removeSelectionMarker=function(A){if(A.marker){this.session.removeMarker(A.marker);var k=this.session.$selectionMarkers.indexOf(A);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(A){for(var k=this.session.$selectionMarkers,v=A.length;v--;){var T=A[v];if(T.marker){this.session.removeMarker(T.marker);var R=k.indexOf(T);R!=-1&&k.splice(R,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(A){this.addSelectionMarker(A.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(A){this.removeSelectionMarkers(A.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(A){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(A){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(A){var k=A.command,v=A.editor;if(v.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?T=v.forEachSelection(k,A.args):k.multiSelectAction=="forEachLine"?T=v.forEachSelection(k,A.args,!0):k.multiSelectAction=="single"?(v.exitMultiSelectMode(),T=k.exec(v,A.args||{})):T=k.multiSelectAction(v,A.args||{});else{var T=k.exec(v,A.args||{});v.multiSelect.addRange(v.multiSelect.toOrientedRange()),v.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(A,k,v){if(!this.inVirtualSelectionMode){var T=v&&v.keepOrder,R=v==!0||v&&v.$byLines,O=this.session,M=this.selection,N=M.rangeList,S=(T?M:N).ranges,_;if(!S.length)return A.exec?A.exec(this,k||{}):A(this,k||{});var $=M._eventRegistry;M._eventRegistry={};var L=new w(O);this.inVirtualSelectionMode=!0;for(var D=S.length;D--;){if(R)for(;D>0&&S[D].start.row==S[D-1].end.row;)D--;L.fromOrientedRange(S[D]),L.index=D,this.selection=O.selection=L;var F=A.exec?A.exec(this,k||{}):A(this,k||{});!_&&F!==void 0&&(_=F),L.toOrientedRange(S[D])}L.detach(),this.selection=O.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=$,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var B=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),B&&B.from==B.to&&this.renderer.animateScrolling(B.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var A="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,v=[],T=0;T<k.length;T++)v.push(this.session.getTextRange(k[T]));var R=this.session.getDocument().getNewLineCharacter();A=v.join(R),A.length==(v.length-1)*R.length&&(A="")}else this.selection.isEmpty()||(A=this.session.getTextRange(this.getSelectionRange()));return A},this.$checkMultiselectChange=function(A,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var v=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var T=k==this.multiSelect.anchor?v.cursor==v.start?v.end:v.start:v.cursor;T.row!=k.row||this.session.$clipPositionToDocument(T.row,T.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(A,k,v){if(k=k||{},k.needle=A||k.needle,k.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(T)}this.$search.set(k);var R=this.$search.findAll(this.session);if(!R.length)return 0;var O=this.multiSelect;v||O.toSingleRange(R[0]);for(var M=R.length;M--;)O.addRange(R[M],!0);return T&&O.rangeList.rangeAtPoint(T.start)&&O.addRange(T,!0),R.length},this.selectMoreLines=function(A,k){var v=this.selection.toOrientedRange(),T=v.cursor==v.end,R=this.session.documentToScreenPosition(v.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var O=this.session.screenToDocumentPosition(R.row+A,R.column);if(v.isEmpty())var N=O;else var M=this.session.documentToScreenPosition(T?v.end:v.start),N=this.session.screenToDocumentPosition(M.row+A,M.column);if(T){var S=f.fromPoints(O,N);S.cursor=S.start}else{var S=f.fromPoints(N,O);S.cursor=S.end}if(S.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(v);else if(k)var _=v.cursor;this.selection.addRange(S),_&&this.selection.substractPoint(_)},this.transposeSelections=function(A){for(var k=this.session,v=k.multiSelect,T=v.ranges,R=T.length;R--;){var O=T[R];if(O.isEmpty()){var M=k.getWordRange(O.start.row,O.start.column);O.start.row=M.start.row,O.start.column=M.start.column,O.end.row=M.end.row,O.end.column=M.end.column}}v.mergeOverlappingRanges();for(var N=[],R=T.length;R--;){var O=T[R];N.unshift(k.getTextRange(O))}A<0?N.unshift(N.pop()):N.push(N.shift());for(var R=T.length;R--;){var O=T[R],S=O.clone();k.replace(O,N[R]),O.start.row=S.start.row,O.start.column=S.start.column}v.fromOrientedRange(v.ranges[0])},this.selectMore=function(A,k,v){var T=this.session,R=T.multiSelect,O=R.toOrientedRange();if(!(O.isEmpty()&&(O=T.getWordRange(O.start.row,O.start.column),O.cursor=A==-1?O.start:O.end,this.multiSelect.addRange(O),v))){var M=T.getTextRange(O),N=o(T,M,A);N&&(N.cursor=A==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(O.cursor)}},this.alignCursors=function(){var A=this.session,k=A.multiSelect,v=k.ranges,T=-1,R=v.filter(function(W){if(W.cursor.row==T)return!0;T=W.cursor.row});if(!v.length||R.length==v.length-1){var O=this.selection.getRange(),M=O.start.row,N=O.end.row,S=M==N;if(S){var _=this.session.getLength(),$;do $=this.session.getLine(N);while(/[=:]/.test($)&&++N<_);do $=this.session.getLine(M);while(/[=:]/.test($)&&--M>0);M<0&&(M=0),N>=_&&(N=_-1)}var L=this.session.removeFullLines(M,N);L=this.$reAlignText(L,S),this.session.insert({row:M,column:0},L.join(`
942
+ `)+`
943
+ `),S||(O.start.column=0,O.end.column=L[L.length-1].length),this.selection.setRange(O)}else{R.forEach(function(W){k.substractPoint(W.cursor)});var D=0,F=1/0,B=v.map(function(W){var q=W.cursor,V=A.getLine(q.row),X=V.substr(q.column).search(/\S/g);return X==-1&&(X=0),q.column>D&&(D=q.column),X<F&&(F=X),X});v.forEach(function(W,q){var V=W.cursor,X=D-V.column,G=B[q]-F;X>G?A.insert(V,s.stringRepeat(" ",X-G)):A.remove(new f(V.row,V.column,V.row,V.column-X+G)),W.start.column=W.end.column=D,W.start.row=W.end.row=V.row,W.cursor=W.end}),k.fromOrientedRange(v[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,k){var v=!0,T=!0,R,O,M;return A.map(function(L){var D=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return D?R==null?(R=D[1].length,O=D[2].length,M=D[3].length,D):(R+O+M!=D[1].length+D[2].length+D[3].length&&(T=!1),R!=D[1].length&&(v=!1),R>D[1].length&&(R=D[1].length),O<D[2].length&&(O=D[2].length),M>D[3].length&&(M=D[3].length),D):[L]}).map(k?S:v?T?_:S:$);function N(L){return s.stringRepeat(" ",L)}function S(L){return L[2]?N(R)+L[2]+N(O-L[2].length+M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function _(L){return L[2]?N(R+O-L[2].length)+L[2]+N(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function $(L){return L[2]?N(R)+L[2]+N(M)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(m.prototype);function b(A,k){return A.row==k.row&&A.column==k.column}r.onSessionChange=function(A){var k=A.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var v=A.oldSession;v&&(v.multiSelect.off("addRange",this.$onAddRange),v.multiSelect.off("removeRange",this.$onRemoveRange),v.multiSelect.off("multiSelect",this.$onMultiSelect),v.multiSelect.off("singleSelect",this.$onSingleSelect),v.multiSelect.lead.off("change",this.$checkMultiselectChange),v.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(A){A.$multiselectOnSessionChange||(A.$onAddRange=A.$onAddRange.bind(A),A.$onRemoveRange=A.$onRemoveRange.bind(A),A.$onMultiSelect=A.$onMultiSelect.bind(A),A.$onSingleSelect=A.$onSingleSelect.bind(A),A.$multiselectOnSessionChange=r.onSessionChange.bind(A),A.$checkMultiselectChange=A.$checkMultiselectChange.bind(A),A.$multiselectOnSessionChange(A),A.on("changeSession",A.$multiselectOnSessionChange),A.on("mousedown",p),A.commands.addCommands(l.defaultCommands),E(A))}function E(A){if(!A.textInput)return;var k=A.textInput.getElement(),v=!1;g.addListener(k,"keydown",function(R){var O=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);A.$blockSelectEnabled&&O?v||(A.renderer.setMouseCursor("crosshair"),v=!0):v&&T()},A),g.addListener(k,"keyup",T,A),g.addListener(k,"blur",T,A);function T(R){v&&(A.renderer.setMouseCursor(""),v=!1)}}r.MultiSelect=x,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(A){x(this),A?this.on("mousedown",p):this.off("mousedown",p)},value:!0},enableBlockSelect:{set:function(A){this.$blockSelectEnabled=A},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,r,d){var h=n("../../range").Range,f=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,p,g){var s=w.getLine(g);return this.foldingStartMarker.test(s)?"start":p=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(w,p,g){return null},this.indentationBlock=function(w,p,g){var s=/\S/,l=w.getLine(p),a=l.search(s);if(a!=-1){for(var u=g||l.length,o=w.getLength(),c=p,m=p;++p<o;){var b=w.getLine(p).search(s);if(b!=-1){if(b<=a){var x=w.getTokenAt(p,0);if(!x||x.type!=="string")break}m=p}}if(m>c){var E=w.getLine(m).length;return new h(c,u,m,E)}}},this.openingBracketBlock=function(w,p,g,s,l){var a={row:g,column:s+1},u=w.$findClosingBracket(p,a,l);if(u){var o=w.foldWidgets[u.row];return o==null&&(o=w.getFoldWidget(u.row)),o=="start"&&u.row>a.row&&(u.row--,u.column=w.getLine(u.row).length),h.fromPoints(a,u)}},this.closingBracketBlock=function(w,p,g,s,l){var a={row:g,column:s},u=w.$findOpeningBracket(p,a);if(u)return u.column++,a.column--,h.fromPoints(u,a)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(n,r,d){var h=n("../lib/dom"),f=n("../range").Range,w=n("../config").nls;function p(s,l,a){for(var u=0,o=s.length-1;u<=o;){var c=u+o>>1,m=a(l,s[c]);if(m>0)u=c+1;else if(m<0)o=c-1;else return c}return-(u+1)}function g(s,l,a){var u=s.getAnnotations().sort(f.comparePoints);if(u.length){var o=p(u,{row:l,column:-1},f.comparePoints);o<0&&(o=-o-1),o>=u.length?o=a>0?0:u.length-1:o===0&&a<0&&(o=u.length-1);var c=u[o];if(!(!c||!a)){if(c.row===l){do c=u[o+=a];while(c&&c.row===l);if(!c)return u.slice()}var m=[];l=c.row;do m[a<0?"unshift":"push"](c),c=u[o+=a];while(c&&c.row==l);return m.length&&m}}}r.showErrorMarker=function(s,l){var a=s.session,u=s.getCursorPosition(),o=u.row,c=a.widgetManager.getWidgetsAtRow(o).filter(function(R){return R.type=="errorMarker"})[0];c?c.destroy():o-=l;var m=g(a,o,l),b;if(m){var x=m[0];u.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,u.row=x.row,b=s.renderer.$gutterLayer.$annotations[u.row]}else{if(c)return;b={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(u.row),s.selection.moveToPosition(u);var E={row:u.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},A=E.el.appendChild(h.createElement("div")),k=E.el.appendChild(h.createElement("div"));k.className="error_widget_arrow "+b.className;var v=s.renderer.$cursorLayer.getPixelPosition(u).left;k.style.left=v+s.renderer.gutterWidth-5+"px",E.el.className="error_widget_wrapper",A.className="error_widget "+b.className,b.displayText.forEach(function(R,O){A.appendChild(h.createTextNode(R)),O<b.displayText.length-1&&A.appendChild(h.createElement("br"))}),A.appendChild(h.createElement("div"));var T=function(R,O,M){if(O===0&&(M==="esc"||M==="return"))return E.destroy(),{command:"null"}};E.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(T),a.widgetManager.removeLineWidget(E),s.off("changeSelection",E.destroy),s.off("changeSession",E.destroy),s.off("mouseup",E.destroy),s.off("change",E.destroy))},s.keyBinding.addKeyboardHandler(T),s.on("changeSelection",E.destroy),s.on("changeSession",E.destroy),s.on("mouseup",E.destroy),s.on("change",E.destroy),s.session.widgetManager.addLineWidget(E),E.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:E.el.offsetHeight})},h.importCssString(`
944
+ .error_widget_wrapper {
945
+ background: inherit;
946
+ color: inherit;
947
+ border:none
948
+ }
949
+ .error_widget {
950
+ border-top: solid 2px;
951
+ border-bottom: solid 2px;
952
+ margin: 5px 0;
953
+ padding: 10px 40px;
954
+ white-space: pre-wrap;
955
+ }
956
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
957
+ border-color: #ff5a5a
958
+ }
959
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
960
+ border-color: #F1D817
961
+ }
962
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
963
+ border-color: #5a5a5a
964
+ }
965
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
966
+ border-color: #5aaa5a
967
+ }
968
+ .error_widget_arrow {
969
+ position: absolute;
970
+ border: solid 5px;
971
+ border-top-color: transparent!important;
972
+ border-right-color: transparent!important;
973
+ border-left-color: transparent!important;
974
+ top: -5px;
975
+ }
976
+ `,"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(n,r,d){n("./loader_build")(r);var h=n("./lib/dom"),f=n("./range").Range,w=n("./editor").Editor,p=n("./edit_session").EditSession,g=n("./undomanager").UndoManager,s=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),r.config=n("./config"),r.edit=function(a,u){if(typeof a=="string"){var o=a;if(a=document.getElementById(o),!a)throw new Error("ace.edit can't find div #"+o)}if(a&&a.env&&a.env.editor instanceof w)return a.env.editor;var c="";if(a&&/input|textarea/i.test(a.tagName)){var m=a;c=m.value,a=h.createElement("pre"),m.parentNode.replaceChild(a,m)}else a&&(c=a.textContent,a.innerHTML="");var b=r.createEditSession(c),x=new w(new s(a),b,u),E={document:b,editor:x,onResize:x.resize.bind(x,null)};return m&&(E.textarea=m),x.on("destroy",function(){E.editor.container.env=null}),x.container.env=x.env=E,x},r.createEditSession=function(a,u){var o=new p(a,u);return o.setUndoManager(new g),o},r.Range=f,r.Editor=w,r.EditSession=p,r.UndoManager=g,r.VirtualRenderer=s;var l=r.config.version;r.version=l}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var d in n)n.hasOwnProperty(d)&&(r.ace[d]=n[d]);r.ace.default=r.ace,t.exports=r.ace})}()}(gg)),gg.exports}var Xn=N_(),yg={exports:{}},wg;function F_(){return wg||(wg=1,function(t,e){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,w=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var p=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},u=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},c=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},m=function(){var b="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",E="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":E,"variable.language":A,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),v=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:v},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:v},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(R,O,M){M.length&&(M=[]);var N=R[R.length-1];return M.unshift(N,O),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(R,O,M){M.length&&(M=[]);var N=R[R.length-1];return M.unshift(N,O),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(R,O,M){M.length&&(M=[]);var N=R[R.length-1];return M.unshift(N,O),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(R,O,M){M.length&&(M=[]);var N=R[R.length-1];return M.unshift(N,O),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(R,O,M){M.length&&(M=[]);var N=R[R.length-1];return M.unshift(N,O),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},c,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+v+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,u,w,p,o,g,s,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(R,O,M){var N=R[2]=="-"||R[2]=="~"?"indentedHeredoc":"heredoc",S=R.split(this.splitRegex);return M.push(N,S[3]),[{type:"constant",value:S[1]},{type:"string",value:S[2]},{type:"support.class",value:S[3]},{type:"string",value:S[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(R,O,M){return R===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(R,O,M){return R===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(R,O){return O[0]==="heredoc"||O[0]==="indentedHeredoc"?O[0]:R}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(R,O,M){return this.next="",R=="}"&&M.length>1&&M[1]!="start"&&(M.shift(),this.next=M.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,O,M){return M.length&&R===M[0]?(M.unshift(R,O),this.token):"string"}},{token:"constant.language.escape",regex:v},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,O,M){return M.length&&R===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,O,M){return M.length&&R===M[0]?(M.unshift(R,O),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,O,M){return M.length&&R===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,O,M){return M.length&&R===M[0]?(M.unshift(R,O),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,O,M){return M.length&&R===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,O,M){return M.length&&R===M[0]?(M.unshift(R,O),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:v},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,O,M){return M.length&&R===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(R,O,M){return M.length&&R===M[0]?(M.unshift(R,O),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(R,O,M){return M.length&&R[0]===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};h.inherits(m,f),r.RubyHighlightRules=m}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,d){var h=n("../range").Range,f=function(){};(function(){this.checkOutdent=function(w,p){return/^\s+$/.test(w)?/^\s*\}/.test(p):!1},this.autoOutdent=function(w,p){var g=w.getLine(p),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=w.findMatchingBracket({row:p,column:l});if(!a||a.row==p)return 0;var u=this.$getIndent(w.getLine(a.row));w.replace(new h(p,0,p,l-1),u)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(f.prototype),r.MatchingBraceOutdent=f}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(n,r,d){var h=n("../../lib/oop"),f=n("./fold_mode").FoldMode,w=n("../../range").Range,p=n("../../token_iterator").TokenIterator,g=r.FoldMode=function(){};h.inherits(g,f),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(s,l,a){var u=s.getLine(a),o=this.foldingStartMarker.test(u),c=this.foldingStopMarker.test(u);if(o&&!c){var m=u.match(this.foldingStartMarker);if(m[1]){if((m[1]=="if"||m[1]=="else"||m[1]=="while"||m[1]=="until"||m[1]=="unless")&&(m[1]=="else"&&/^\s*else\s*$/.test(u)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(u)===!1)||m[1]=="when"&&/\sthen\s/.test(u)===!0)return;if(s.getTokenAt(a,m.index+2).type==="keyword")return"start"}else if(!m[3]||s.getTokenAt(a,m.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!c||o&&c)return"";var m=u.match(this.foldingStopMarker);if(m[3]==="end"){if(s.getTokenAt(a,m.index+1).type==="keyword")return"end"}else if(!m[1]||s.getTokenAt(a,m.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,l,a){var u=s.doc.getLine(a),o=this.foldingStartMarker.exec(u);if(o)return o[1]||o[3]?this.rubyBlock(s,a,o.index+2):this.openingBracketBlock(s,"{",a,o.index);var o=this.foldingStopMarker.exec(u);if(o)return o[3]==="end"&&s.getTokenAt(a,o.index+1).type==="keyword"?this.rubyBlock(s,a,o.index+1):o[1]==="=end"&&s.getTokenAt(a,o.index+1).type==="comment.multiline"?this.rubyBlock(s,a,o.index+1):this.closingBracketBlock(s,"}",a,o.index+o[0].length)},this.rubyBlock=function(s,l,a,u){var o=new p(s,l,a),c=o.getCurrentToken();if(!(!c||c.type!="keyword"&&c.type!="comment.multiline")){var m=c.value,b=s.getLine(l);switch(c.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+c.value);if(!x.test(b))return;var E=this.indentKeywords[m];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var E=1;break;case"else":var x=new RegExp("^\\s*"+c.value+"\\s*$");if(!x.test(b))return;var E=1;break;default:var E=this.indentKeywords[m]}var A=[m];if(E){var k=E===-1?s.getLine(l-1).length:s.getLine(l).length,v=l,T=[];if(T.push(o.getCurrentTokenRange()),o.step=E===-1?o.stepBackward:o.stepForward,c.type=="comment.multiline"){for(;c=o.step();)if(c.type==="comment.multiline"){if(E==1){if(k=6,c.value=="=end")break}else if(c.value=="=begin")break}}else for(;c=o.step();){var R=!1;if(c.type==="keyword"){var O=E*this.indentKeywords[c.value];switch(b=s.getLine(o.getCurrentTokenRow()),c.value){case"do":for(var M=o.$tokenIndex-1;M>=0;M--){var N=o.$rowTokens[M];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){O=0;break}}break;case"else":var x=new RegExp("^\\s*"+c.value+"\\s*$");(!x.test(b)||m=="case")&&(O=0,R=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+c.value);x.test(b)||(O=0,R=!0);break;case"when":(/\sthen\s/.test(b)||m=="case")&&(O=0,R=!0)}if(O>0)A.unshift(c.value);else if(O<=0&&R===!1){if(A.shift(),!A.length&&((m=="while"||m=="until"||m=="for")&&c.value!="do"||c.value=="do"&&E==-1&&O!=0||c.value!="do"))break;O===0&&A.unshift(c.value)}}}if(!c)return null;if(u)return T.push(o.getCurrentTokenRange()),T;var l=o.getCurrentTokenRow();if(E===-1){if(c.type==="comment.multiline")var S=6;else var S=s.getLine(l).length;return new w(l,S,v-1,k)}return new w(v,k,l-1,s.getLine(l-1).length)}}}}).call(g.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(n,r,d){var h=n("../lib/oop"),f=n("./text").Mode,w=n("./ruby_highlight_rules").RubyHighlightRules,p=n("./matching_brace_outdent").MatchingBraceOutdent,g=n("../range").Range,s=n("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new p,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};h.inherits(l,f),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,u,o){var c=this.$getIndent(u),m=this.getTokenizer().getLineTokens(u,a),b=m.tokens;if(b.length&&b[b.length-1].type=="comment")return c;if(a=="start"){var x=u.match(/^.*[\{\(\[]\s*$/),E=u.match(/^\s*(class|def|module)\s.*$/),A=u.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=u.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||E||A||k)&&(c+=o)}return c},this.checkOutdent=function(a,u,o){return/^\s+(end|else|rescue|ensure)$/.test(u+o)||this.$outdent.checkOutdent(u,o)},this.autoOutdent=function(a,u,o){var c=u.getLine(o);if(/}/.test(c))return this.$outdent.autoOutdent(u,o);var m=this.$getIndent(c),b=u.getLine(o-1),x=this.$getIndent(b),E=u.getTabString();x.length<=m.length&&m.slice(-E.length)==E&&u.remove(new g(o,m.length-E.length,o,m.length))},this.getMatching=function(a,u,o){if(u==null){var c=a.selection.lead;o=c.column,u=c.row}var m=a.getTokenAt(u,o);if(m&&m.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,u,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(n){t.exports=n})}()}(yg)),yg.exports}F_();var bg={exports:{}},vg;function P_(){return vg||(vg=1,function(t,e){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,w=function(){var p="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",s="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":g,keyword:p},"identifier"),a="[uU]?",u="[rR]",o="[fF]",c="(?:[rR][fF]|[fF][rR])",m="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",E="(?:0[bB][01]+)",A="(?:"+m+"|"+b+"|"+x+"|"+E+")",k="(?:[eE][+-]?\\d+)",v="(?:\\.\\d+)",T="(?:\\d+)",R="(?:(?:"+T+"?"+v+")|(?:"+T+"\\.))",O="(?:(?:"+R+"|"+T+")"+k+")",M="(?:"+O+"|"+R+")",N=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:a+'"{3}',next:"qqstring3"},{token:"string",regex:a+'"(?=.)',next:"qqstring"},{token:"string",regex:a+"'{3}",next:"qstring3"},{token:"string",regex:a+"'(?=.)",next:"qstring"},{token:"string",regex:u+'"{3}',next:"rawqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rawqqstring"},{token:"string",regex:u+"'{3}",next:"rawqstring3"},{token:"string",regex:u+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:c+'"{3}',next:"rfqqstring3"},{token:"string",regex:c+'"(?=.)',next:"rfqqstring"},{token:"string",regex:c+"'{3}",next:"rfqstring3"},{token:"string",regex:c+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};h.inherits(w,f),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(n,r,d){var h=n("../../lib/oop"),f=n("./fold_mode").FoldMode,w=r.FoldMode=function(p){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+p+")(?:\\s*)(?:#.*)?$")};h.inherits(w,f),(function(){this.getFoldWidgetRange=function(p,g,s){var l=p.getLine(s),a=l.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(p,a[1],s,a.index):a[2]?this.indentationBlock(p,s,a.index+a[2].length):this.indentationBlock(p,s)}}).call(w.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(n,r,d){var h=n("../lib/oop"),f=n("./text").Mode,w=n("./python_highlight_rules").PythonHighlightRules,p=n("./folding/pythonic").FoldMode,g=n("../range").Range,s=function(){this.HighlightRules=w,this.foldingRules=new p("\\:"),this.$behaviour=this.$defaultBehaviour};h.inherits(s,f),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,u,o){var c=this.$getIndent(u),m=this.getTokenizer().getLineTokens(u,a),b=m.tokens;if(b.length&&b[b.length-1].type=="comment")return c;if(a=="start"){var x=u.match(/^.*[\{\(\[:]\s*$/);x&&(c+=o)}return c};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,u,o){if(o!==`\r
977
+ `&&o!=="\r"&&o!==`
978
+ `)return!1;var c=this.getTokenizer().getLineTokens(u.trim(),a).tokens;if(!c)return!1;do var m=c.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&l[m.value]:!1},this.autoOutdent=function(a,u,o){o+=1;var c=this.$getIndent(u.getLine(o)),m=u.getTabString();c.slice(-m.length)==m&&u.remove(new g(o,c.length-m.length,o,c.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/python"],function(n){t.exports=n})}()}(bg)),bg.exports}P_();var xg={exports:{}},_g;function B_(){return _g||(_g=1,function(t,e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};h.inherits(w,f),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,d){var h=n("../range").Range,f=function(){};(function(){this.checkOutdent=function(w,p){return/^\s+$/.test(w)?/^\s*\}/.test(p):!1},this.autoOutdent=function(w,p){var g=w.getLine(p),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=w.findMatchingBracket({row:p,column:l});if(!a||a.row==p)return 0;var u=this.$getIndent(w.getLine(a.row));w.replace(new h(p,0,p,l-1),u)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(f.prototype),r.MatchingBraceOutdent=f}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,d){var h=n("../../lib/oop"),f=n("../../range").Range,w=n("./fold_mode").FoldMode,p=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};h.inherits(p,w),(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(g,s,l){var a=g.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var u=this._getFoldWidgetBase(g,s,l);return!u&&this.startRegionRe.test(a)?"start":u},this.getFoldWidgetRange=function(g,s,l,a){var u=g.getLine(l);if(this.startRegionRe.test(u))return this.getCommentRegionBlock(g,u,l);var o=u.match(this.foldingStartMarker);if(o){var c=o.index;if(o[1])return this.openingBracketBlock(g,o[1],l,c);var m=g.getCommentFoldRange(l,c+o[0].length,1);return m&&!m.isMultiLine()&&(a?m=this.getSectionRange(g,l):s!="all"&&(m=null)),m}if(s!=="markbegin"){var o=u.match(this.foldingStopMarker);if(o){var c=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],l,c):g.getCommentFoldRange(l,c,-1)}}},this.getSectionRange=function(g,s){var l=g.getLine(s),a=l.search(/\S/),u=s,o=l.length;s+=1;for(var c=s,m=g.getLength();++s<m;){l=g.getLine(s);var b=l.search(/\S/);if(b!==-1){if(a>b)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=u)break;if(x.isMultiLine())s=x.end.row;else if(a==b)break}c=s}}return new f(u,o,c,g.getLine(c).length)},this.getCommentRegionBlock=function(g,s,l){for(var a=s.search(/\s*$/),u=g.getLength(),o=l,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++l<u;){s=g.getLine(l);var b=c.exec(s);if(b&&(b[1]?m--:m++,!m))break}var x=l;if(x>o)return new f(o,a,x,s.length)}}).call(p.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(n,r,d){var h=n("../lib/oop"),f=n("./text").Mode,w=n("./json_highlight_rules").JsonHighlightRules,p=n("./matching_brace_outdent").MatchingBraceOutdent,g=n("./folding/cstyle").FoldMode,s=n("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new p,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};h.inherits(l,f),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,u,o){var c=this.$getIndent(u);if(a=="start"){var m=u.match(/^.*[\{\(\[]\s*$/);m&&(c+=o)}return c},this.checkOutdent=function(a,u,o){return this.$outdent.checkOutdent(u,o)},this.autoOutdent=function(a,u,o){this.$outdent.autoOutdent(u,o)},this.createWorker=function(a){var u=new s(["ace"],"ace/mode/json_worker","JsonWorker");return u.attachToDocument(a.getDocument()),u.on("annotate",function(o){a.setAnnotations(o.data)}),u.on("terminate",function(){a.clearAnnotations()}),u},this.$id="ace/mode/json"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/json"],function(n){t.exports=n})}()}(xg)),xg.exports}B_();var kg={exports:{}},Sg;function j_(){return Sg||(Sg=1,function(t,e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop");n("../lib/lang");var f=n("./text_highlight_rules").TextHighlightRules,w=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",p=r.supportFunction="rgb|rgba|url|attr|counter|counters",g=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",s=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",a=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",c=function(){var m=this.createKeywordMapper({"support.function":p,"support.constant":g,"support.type":w,"support.constant.color":s,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:a},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+a+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:m,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};h.inherits(c,f),r.CssHighlightRules=c}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,w=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|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};h.inherits(w,f),w.getTagRule=function(p){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(p){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:p}},w.getEndRule=function(p){return{token:"comment.doc",regex:"\\*\\/",next:p}},r.JsDocCommentHighlightRules=w}),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(n,r,d){function h(){var a=s.replace("\\d","\\d\\-"),u={onMatch:function(c,m,b){var x=c.charAt(1)=="/"?2:1;return x==1?(m!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&m==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:c.slice(0,x)},{type:"meta.tag.tag-name.xml",value:c.substr(x)}]},regex:"</?(?:"+a+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(u);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,u,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(c,m,b){return m==b[0]&&b.shift(),c.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:c}]},nextState:"jsx"},o,f("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:a},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},u],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function f(a){return[{token:"comment",regex:/\/\*/,next:[p.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[p.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=n("../lib/oop"),p=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=n("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",l=function(a){var u={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},o=this.createKeywordMapper(u,"identifier"),c="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",m="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",b="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(u).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[p.getStartRule("doc-start"),f("no_regex"),x,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+c+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[p.getStartRule("doc-start"),f("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[f("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:m},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(E,A,k){if(this.next=E=="{"?this.nextState:"",E=="{"&&k.length)k.unshift("start",A);else if(E=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return E=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:m},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!a||a.jsx!=0)&&h.call(this)),this.embedRules(p,"doc-",[p.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,g),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,w=function(p){var g="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+g+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:g},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+g+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+g+":)?"+g+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:g},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===w&&this.normalizeRules()};(function(){this.embedTagRules=function(p,g,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,a,u){return u.splice(0),this.token}}],this.embedRules(p,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(f.prototype),h.inherits(w,f),r.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("../lib/lang"),w=n("./css_highlight_rules").CssHighlightRules,p=n("./javascript_highlight_rules").JavaScriptHighlightRules,g=n("./xml_highlight_rules").XmlHighlightRules,s=f.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){g.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(a,u){var o=s[u];return["meta.tag.punctuation."+(a=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new p({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};h.inherits(l,g),r.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(n,r,d){var h=n("../config").$modes,f=n("../lib/oop"),w=n("../lib/lang"),p=n("./text_highlight_rules").TextHighlightRules,g=n("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+w.escapeRegExp(a)+"\\\\]|\\\\.)*"},l=function(){g.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,c,m,b){var x=o.match(/^(\s*)([`~]+)(.*)/),E=/[\w-]+|$/.exec(x[3])[0];return h[E]||(E=""),m.unshift("githubblock",[],[x[1],x[2],E],c),this.token},next:"githubblock"},u=[{token:"support.function",regex:".*",onMatch:function(o,c,m,b){var x=m[1],E=m[2][0],A=m[2][1],k=m[2][2],v=/^(\s*)(`+|~+)\s*$/.exec(o);if(v&&v[1].length<E.length+3&&v[2].length>=A.length&&v[2][0]==A[0])return m.splice(0,3),this.next=m.shift(),this.token;if(this.next="",k&&h[k]){var T=h[k].getTokenizer().getLineTokens(o,x.slice(0));return m[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},a,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},a,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:u}),this.normalizeRules()};f.inherits(l,p),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(n,r,d){var h=n("../../lib/oop"),f=n("./fold_mode").FoldMode,w=n("../../range").Range,p=r.FoldMode=function(){};h.inherits(p,f),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,s,l){var a=g.getLine(l);return this.foldingStartMarker.test(a)?a[0]=="`"&&g.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,s,l){function a(R){return E=g.getTokens(R)[0],E&&E.type.lastIndexOf(A,0)===0}function u(){var R=E.value[0];return R=="="?6:R=="-"?5:7-E.value.search(/[^#]|$/)}var o=g.getLine(l),c=o.length,m=g.getLength(),b=l,x=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(l)!=="start"){for(;++l<m&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(b,c,l,0)}for(;l-- >0&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(l,o.length,b,0)}var E,A="markup.heading";if(a(l)){for(var k=u();++l<m;)if(a(l)){var v=u();if(v>=k)break}if(x=l-(!E||["=","-"].indexOf(E.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(g.getLine(x));)x--;if(x>b){var T=g.getLine(x).length;return new w(b,c,x,T)}}}}}).call(p.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,d){var h=n("../range").Range,f=function(){};(function(){this.checkOutdent=function(w,p){return/^\s+$/.test(w)?/^\s*\}/.test(p):!1},this.autoOutdent=function(w,p){var g=w.getLine(p),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=w.findMatchingBracket({row:p,column:l});if(!a||a.row==p)return 0;var u=this.$getIndent(w.getLine(a.row));w.replace(new h(p,0,p,l-1),u)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(f.prototype),r.MatchingBraceOutdent=f}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,r,d){function h(s,l){return s&&s.type.lastIndexOf(l+".xml")>-1}var f=n("../../lib/oop"),w=n("../behaviour").Behaviour,p=n("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(s,l,a,u,o){if(o=='"'||o=="'"){var c=o,m=u.doc.getTextRange(a.getSelectionRange());if(m!==""&&m!=="'"&&m!='"'&&a.getWrapBehavioursEnabled())return{text:c+m+c,selection:!1};var b=a.getCursorPosition(),x=u.doc.getLine(b.row),E=x.substring(b.column,b.column+1),A=new p(u,b.row,b.column),k=A.getCurrentToken();if(E==c&&(h(k,"attribute-value")||h(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;h(k,"tag-whitespace")||h(k,"whitespace");)k=A.stepBackward();var v=!E||E.match(/\s/);if(h(k,"attribute-equals")&&(v||E==">")||h(k,"decl-attribute-equals")&&(v||E=="?"))return{text:c+c,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,l,a,u,o){var c=u.doc.getTextRange(o);if(!o.isMultiLine()&&(c=='"'||c=="'")){var m=u.doc.getLine(o.start.row),b=m.substring(o.start.column+1,o.start.column+2);if(b==c)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,l,a,u,o){if(o==">"){var c=a.getSelectionRange().start,m=new p(u,c.row,c.column),b=m.getCurrentToken()||m.stepBackward();if(!b||!(h(b,"tag-name")||h(b,"tag-whitespace")||h(b,"attribute-name")||h(b,"attribute-equals")||h(b,"attribute-value"))||h(b,"reference.attribute-value"))return;if(h(b,"attribute-value")){var x=m.getCurrentTokenColumn()+b.value.length;if(c.column<x)return;if(c.column==x){var E=m.stepForward();if(E&&h(E,"attribute-value"))return;m.stepBackward()}}if(/^\s*>/.test(u.getLine(c.row).slice(c.column)))return;for(;!h(b,"tag-name");)if(b=m.stepBackward(),b.value=="<"){b=m.stepForward();break}var A=m.getCurrentTokenRow(),k=m.getCurrentTokenColumn();if(h(m.stepBackward(),"end-tag-open"))return;var v=b.value;return A==c.row&&(v=v.substring(0,c.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(v.toLowerCase())?void 0:{text:"></"+v+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,l,a,u,o){if(o==`
979
+ `){var c=a.getCursorPosition(),m=u.getLine(c.row),b=new p(u,c.row,c.column),x=b.getCurrentToken();if(h(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var E=x.value,A=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[E]||!this.voidElements){var k=u.getTokenAt(c.row,c.column+1),m=u.getLine(A),v=this.$getIndent(m),T=v+u.getTabString();return k&&k.value==="</"?{text:`
980
+ `+T+`
981
+ `+v,selection:[1,T.length,1,T.length]}:{text:`
982
+ `+T}}}}})};f.inherits(g,w),r.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(n,r,d){var h=n("../../lib/oop"),f=n("../../token_iterator").TokenIterator,w=n("../behaviour/cstyle").CstyleBehaviour,p=n("../behaviour/xml").XmlBehaviour,g=function(){var s=new p({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(w),this.add("autoclosing-fragment","insertion",function(l,a,u,o,c){if(c==">"){var m=u.getSelectionRange().start,b=new f(o,m.row,m.column),x=b.getCurrentToken()||b.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};h.inherits(g,w),r.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,d){function h(l,a){return l.type.lastIndexOf(a+".xml")>-1}var f=n("../../lib/oop"),w=n("../../range").Range,p=n("./fold_mode").FoldMode,g=r.FoldMode=function(l,a){p.call(this),this.voidElements=l||{},this.optionalEndTags=f.mixin({},this.voidElements),a&&f.mixin(this.optionalEndTags,a)};f.inherits(g,p);var s=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(l,a,u){var o=this._getFirstTagInLine(l,u);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(l,u,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(l,u)},this.getCommentFoldWidget=function(l,a){return/comment/.test(l.getState(a))&&/<!-/.test(l.getLine(a))?"start":""},this._getFirstTagInLine=function(l,a){for(var u=l.getTokens(a),o=new s,c=0;c<u.length;c++){var m=u[c];if(h(m,"tag-open")){if(o.end.column=o.start.column+m.value.length,o.closing=h(m,"end-tag-open"),m=u[++c],!m)return null;if(o.tagName=m.value,m.value===""){if(m=u[++c],!m)return null;o.tagName=m.value}for(o.end.column+=m.value.length,c++;c<u.length;c++)if(m=u[c],o.end.column+=m.value.length,h(m,"tag-close")){o.selfClosing=m.value=="/>";break}return o}if(h(m,"tag-close"))return o.selfClosing=m.value=="/>",o;o.start.column+=m.value.length}return null},this._findEndTagInLine=function(l,a,u,o){for(var c=l.getTokens(a),m=0,b=0;b<c.length;b++){var x=c[b];if(m+=x.value.length,!(m<o-1)&&h(x,"end-tag-open")&&(x=c[b+1],h(x,"tag-name")&&x.value===""&&(x=c[b+2]),x&&x.value==u))return!0}return!1},this.getFoldWidgetRange=function(l,a,u){var o=this._getFirstTagInLine(l,u);if(!o)return this.getCommentFoldWidget(l,u)&&l.getCommentFoldRange(u,l.getLine(u).length);var c=l.getMatchingTags({row:u,column:0});if(c)return new w(c.openTag.end.row,c.openTag.end.column,c.closeTag.start.row,c.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,r,d){var h=n("../../lib/oop"),f=n("../../range").Range,w=n("./fold_mode").FoldMode,p=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};h.inherits(p,w),(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(g,s,l){var a=g.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var u=this._getFoldWidgetBase(g,s,l);return!u&&this.startRegionRe.test(a)?"start":u},this.getFoldWidgetRange=function(g,s,l,a){var u=g.getLine(l);if(this.startRegionRe.test(u))return this.getCommentRegionBlock(g,u,l);var o=u.match(this.foldingStartMarker);if(o){var c=o.index;if(o[1])return this.openingBracketBlock(g,o[1],l,c);var m=g.getCommentFoldRange(l,c+o[0].length,1);return m&&!m.isMultiLine()&&(a?m=this.getSectionRange(g,l):s!="all"&&(m=null)),m}if(s!=="markbegin"){var o=u.match(this.foldingStopMarker);if(o){var c=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],l,c):g.getCommentFoldRange(l,c,-1)}}},this.getSectionRange=function(g,s){var l=g.getLine(s),a=l.search(/\S/),u=s,o=l.length;s+=1;for(var c=s,m=g.getLength();++s<m;){l=g.getLine(s);var b=l.search(/\S/);if(b!==-1){if(a>b)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=u)break;if(x.isMultiLine())s=x.end.row;else if(a==b)break}c=s}}return new f(u,o,c,g.getLine(c).length)},this.getCommentRegionBlock=function(g,s,l){for(var a=s.search(/\s*$/),u=g.getLength(),o=l,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,m=1;++l<u;){s=g.getLine(l);var b=c.exec(s);if(b&&(b[1]?m--:m++,!m))break}var x=l;if(x>o)return new f(o,a,x,s.length)}}).call(p.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(n,r,d){var h=n("../../lib/oop"),f=n("./xml").FoldMode,w=n("./cstyle").FoldMode,p=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new f};h.inherits(p,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,l){var a=this.getFoldWidgetBase(g,s,l);return a||this.xmlFoldMode.getFoldWidget(g,s,l)},this.getFoldWidgetRange=function(g,s,l,a){var u=this.getFoldWidgetRangeBase(g,s,l,a);return u||this.xmlFoldMode.getFoldWidgetRange(g,s,l)}}).call(p.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(n,r,d){var h=n("../lib/oop"),f=n("./text").Mode,w=n("./javascript_highlight_rules").JavaScriptHighlightRules,p=n("./matching_brace_outdent").MatchingBraceOutdent,g=n("../worker/worker_client").WorkerClient,s=n("./behaviour/javascript").JavaScriptBehaviour,l=n("./folding/javascript").FoldMode,a=function(){this.HighlightRules=w,this.$outdent=new p,this.$behaviour=new s,this.foldingRules=new l};h.inherits(a,f),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(u,o,c){var m=this.$getIndent(o),b=this.getTokenizer().getLineTokens(o,u),x=b.tokens,E=b.state;if(x.length&&x[x.length-1].type=="comment")return m;if(u=="start"||u=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(m+=c)}else if(u=="doc-start"&&(E=="start"||E=="no_regex"))return"";return m},this.checkOutdent=function(u,o,c){return this.$outdent.checkOutdent(o,c)},this.autoOutdent=function(u,o,c){this.$outdent.autoOutdent(o,c)},this.createWorker=function(u){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(u.getDocument()),o.on("annotate",function(c){u.setAnnotations(c.data)}),o.on("terminate",function(){u.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(n,r,d){var h={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},f=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var p in w)if(typeof w[p]=="string"){var g=p.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});h.hasOwnProperty(g)||(h[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,p,g,s){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||p.$mode.$id=="ace/mode/scss"){var l=p.getLine(g.row).substr(0,g.column),a=/\([^)]*$/.test(l);return a&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(w,p,g,s):this.getPropertyCompletions(w,p,g,s,a)}return[]},this.getPropertyCompletions=function(w,p,g,s,l){l=l||!1;var a=Object.keys(h);return a.map(function(u){return{caption:u,snippet:u+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,p,g,s){var l=p.getLine(g.row).substr(0,g.column),a=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!a)return[];var u=[];return a in h&&typeof h[a]=="object"&&(u=Object.keys(h[a])),u.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(f.prototype),r.CssCompletions=f}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(n,r,d){var h=n("../../lib/oop");n("../behaviour").Behaviour;var f=n("./cstyle").CstyleBehaviour,w=n("../../token_iterator").TokenIterator,p=function(){this.inherit(f),this.add("colon","insertion",function(g,s,l,a,u){if(u===":"&&l.selection.isEmpty()){var o=l.getCursorPosition(),c=new w(a,o.row,o.column),m=c.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=c.stepBackward()),m&&m.type==="support.type"){var b=a.doc.getLine(o.row),x=b.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(b.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,s,l,a,u){var o=a.doc.getTextRange(u);if(!u.isMultiLine()&&o===":"){var c=l.getCursorPosition(),m=new w(a,c.row,c.column),b=m.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=m.stepBackward()),b&&b.type==="support.type"){var x=a.doc.getLine(u.start.row),E=x.substring(u.end.column,u.end.column+1);if(E===";")return u.end.column++,u}}}),this.add("semicolon","insertion",function(g,s,l,a,u){if(u===";"&&l.selection.isEmpty()){var o=l.getCursorPosition(),c=a.doc.getLine(o.row),m=c.substring(o.column,o.column+1);if(m===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,s,l,a,u){if(u==="!"&&l.selection.isEmpty()){var o=l.getCursorPosition(),c=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(c.substring(o.column)))return{text:"!important",selection:[10,10]}}})};h.inherits(p,f),r.CssBehaviour=p}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(n,r,d){var h=n("../lib/oop"),f=n("./text").Mode,w=n("./css_highlight_rules").CssHighlightRules,p=n("./matching_brace_outdent").MatchingBraceOutdent,g=n("../worker/worker_client").WorkerClient,s=n("./css_completions").CssCompletions,l=n("./behaviour/css").CssBehaviour,a=n("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=w,this.$outdent=new p,this.$behaviour=new l,this.$completer=new s,this.foldingRules=new a};h.inherits(u,f),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,c,m){var b=this.$getIndent(c),x=this.getTokenizer().getLineTokens(c,o).tokens;if(x.length&&x[x.length-1].type=="comment")return b;var E=c.match(/^.*\{\s*$/);return E&&(b+=m),b},this.checkOutdent=function(o,c,m){return this.$outdent.checkOutdent(c,m)},this.autoOutdent=function(o,c,m){this.$outdent.autoOutdent(c,m)},this.getCompletions=function(o,c,m,b){return this.$completer.getCompletions(o,c,m,b)},this.createWorker=function(o){var c=new g(["ace"],"ace/mode/css_worker","Worker");return c.attachToDocument(o.getDocument()),c.on("annotate",function(m){o.setAnnotations(m.data)}),c.on("terminate",function(){o.clearAnnotations()}),c},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(u.prototype),r.Mode=u}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(n,r,d){var h=n("../../lib/oop"),f=n("./fold_mode").FoldMode,w=r.FoldMode=function(p,g){this.defaultMode=p,this.subModes=g};h.inherits(w,f),(function(){this.$getMode=function(p){typeof p!="string"&&(p=p[0]);for(var g in this.subModes)if(p.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(p,g,s,l){var a=this.$getMode(p);return a?a.getFoldWidget(g,s,l):""},this.getFoldWidget=function(p,g,s){return this.$tryMode(p.getState(s-1),p,g,s)||this.$tryMode(p.getState(s),p,g,s)||this.defaultMode.getFoldWidget(p,g,s)},this.getFoldWidgetRange=function(p,g,s){var l=this.$getMode(p.getState(s-1));return(!l||!l.getFoldWidget(p,g,s))&&(l=this.$getMode(p.getState(s))),(!l||!l.getFoldWidget(p,g,s))&&(l=this.defaultMode),l.getFoldWidgetRange(p,g,s)}}).call(w.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(n,r,d){var h=n("../../lib/oop"),f=n("./mixed").FoldMode,w=n("./xml").FoldMode,p=n("./cstyle").FoldMode,g=r.FoldMode=function(s,l){f.call(this,new w(s,l),{"js-":new p,"css-":new p})};h.inherits(g,f)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(n,r,d){function h(c,m){return c.type.lastIndexOf(m+".xml")>-1}function f(c,m){for(var b=new p(c,m.row,m.column),x=b.getCurrentToken();x&&!h(x,"tag-name");)x=b.stepBackward();if(x)return x.value}function w(c,m){for(var b=new p(c,m.row,m.column),x=b.getCurrentToken();x&&!h(x,"attribute-name");)x=b.stepBackward();if(x)return x.value}var p=n("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=g.concat(s),a={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},u=Object.keys(a),o=function(){};(function(){this.getCompletions=function(c,m,b,x){var E=m.getTokenAt(b.row,b.column);if(!E)return[];if(h(E,"tag-name")||h(E,"tag-open")||h(E,"end-tag-open"))return this.getTagCompletions(c,m,b,x);if(h(E,"tag-whitespace")||h(E,"attribute-name"))return this.getAttributeCompletions(c,m,b,x);if(h(E,"attribute-value"))return this.getAttributeValueCompletions(c,m,b,x);var A=m.getLine(b.row).substr(0,b.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(c,m,b,x):[]},this.getTagCompletions=function(c,m,b,x){return u.map(function(E){return{value:E,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(c,m,b,x){var E=f(m,b);if(!E)return[];var A=l;return E in a&&(A=A.concat(Object.keys(a[E]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(c,m,b,x){var E=f(m,b),A=w(m,b);if(!E)return[];var k=[];return E in a&&A in a[E]&&typeof a[E][A]=="object"&&(k=Object.keys(a[E][A])),k.map(function(v){return{caption:v,snippet:v,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(c,m,b,x){var E=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return E.map(function(A){return{caption:A,snippet:A,meta:"html entity",score:1e6}})}}).call(o.prototype),r.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(n,r,d){var h=n("../lib/oop"),f=n("../lib/lang"),w=n("./text").Mode,p=n("./javascript").Mode,g=n("./css").Mode,s=n("./html_highlight_rules").HtmlHighlightRules,l=n("./behaviour/xml").XmlBehaviour,a=n("./folding/html").FoldMode,u=n("./html_completions").HtmlCompletions,o=n("../worker/worker_client").WorkerClient,c=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],b=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=s,this.$behaviour=new l,this.$completer=new u,this.createModeDelegates({"js-":p,"css-":g}),this.foldingRules=new a(this.voidElements,f.arrayToMap(m))};h.inherits(b,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=f.arrayToMap(c),this.getNextLineIndent=function(x,E,A){return this.$getIndent(E)},this.checkOutdent=function(x,E,A){return!1},this.getCompletions=function(x,E,A,k){return this.$completer.getCompletions(x,E,A,k)},this.createWorker=function(x){if(this.constructor==b){var E=new o(["ace"],"ace/mode/html_worker","Worker");return E.attachToDocument(x.getDocument()),this.fragmentContext&&E.call("setOptions",[{context:this.fragmentContext}]),E.on("error",function(A){x.setAnnotations(A.data)}),E.on("terminate",function(){x.clearAnnotations()}),E}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(b.prototype),r.Mode=b}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,d){var h=n("../lib/oop"),f=n("./text_highlight_rules").TextHighlightRules,w=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",p=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",g=function(){var s=this.createKeywordMapper({keyword:w,"support.function.builtin":p,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",u="(?:\\d+)",o="(?:(?:"+u+"?"+a+")|(?:"+u+"\\.))",c="(?:(?:"+o+"|"+u+"))",m="(?:"+c+"|"+o+")",b="(?:&"+u+")",x="[a-zA-Z_][a-zA-Z0-9_]*",E="(?:"+x+"(?==))",A="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(v,T,R){var O=v[2]=="-"?"indentedHeredoc":"heredoc",M=v.split(this.splitRegex);return R.push(O,M[4]),[{type:"constant",value:M[1]},{type:"text",value:M[2]},{type:"string",value:M[3]},{type:"support.class",value:M[4]},{type:"string",value:M[5]}]},rules:{heredoc:[{onMatch:function(v,T,R){return v===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(v,T,R){return v===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(v,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:v}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:A},{token:"variable",regex:E},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:b},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:m},{token:"constant.numeric",regex:l+"\\b"},{token:s,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};h.inherits(g,f),r.ShHighlightRules=g}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(n,r,d){var h=n("../lib/oop"),f=n("./text").Mode,w=n("./sh_highlight_rules").ShHighlightRules,p=n("../range").Range,g=n("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=w,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};h.inherits(s,f),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,u,o){var c=this.$getIndent(u),m=this.getTokenizer().getLineTokens(u,a),b=m.tokens;if(b.length&&b[b.length-1].type=="comment")return c;if(a=="start"){var x=u.match(/^.*[\{\(\[:]\s*$/);x&&(c+=o)}return c};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,u,o){if(o!==`\r
983
+ `&&o!=="\r"&&o!==`
984
+ `)return!1;var c=this.getTokenizer().getLineTokens(u.trim(),a).tokens;if(!c)return!1;do var m=c.pop();while(m&&(m.type=="comment"||m.type=="text"&&m.value.match(/^\s+$/)));return m?m.type=="keyword"&&l[m.value]:!1},this.autoOutdent=function(a,u,o){o+=1;var c=this.$getIndent(u.getLine(o)),m=u.getTabString();c.slice(-m.length)==m&&u.remove(new p(o,c.length-m.length,o,c.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),r.Mode=s}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(n,r,d){var h=n("../lib/oop"),f=n("../lib/lang"),w=n("./text").Mode,p=n("./xml_highlight_rules").XmlHighlightRules,g=n("./behaviour/xml").XmlBehaviour,s=n("./folding/xml").FoldMode,l=n("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=p,this.$behaviour=new g,this.foldingRules=new s};h.inherits(a,w),(function(){this.voidElements=f.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(u){var o=new l(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(u.getDocument()),o.on("error",function(c){u.setAnnotations(c.data)}),o.on("terminate",function(){u.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(n,r,d){var h=n("../lib/oop"),f=n("./behaviour/cstyle").CstyleBehaviour,w=n("./text").Mode,p=n("./markdown_highlight_rules").MarkdownHighlightRules,g=n("./folding/markdown").FoldMode,s=function(){this.HighlightRules=p,this.createModeDelegates({javascript:n("./javascript").Mode,html:n("./html").Mode,bash:n("./sh").Mode,sh:n("./sh").Mode,xml:n("./xml").Mode,css:n("./css").Mode}),this.foldingRules=new g,this.$behaviour=new f({braces:!0})};h.inherits(s,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,a,u){if(l=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(a);if(!o)return"";var c=o[2];return c||(c=parseInt(o[3],10)+1+"."),o[1]+c+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(n){t.exports=n})}()}(kg)),kg.exports}j_();var $g={exports:{}},Cg;function H_(){return Cg||(Cg=1,function(t,e){ace.define("ace/theme/twilight-css",["require","exports","module"],function(n,r,d){d.exports=`.ace-twilight .ace_gutter {
985
+ background: #232323;
986
+ color: #E2E2E2
987
+ }
988
+
989
+ .ace-twilight .ace_print-margin {
990
+ width: 1px;
991
+ background: #232323
992
+ }
993
+
994
+ .ace-twilight {
995
+ background-color: #141414;
996
+ color: #F8F8F8
997
+ }
998
+
999
+ .ace-twilight .ace_cursor {
1000
+ color: #A7A7A7
1001
+ }
1002
+
1003
+ .ace-twilight .ace_marker-layer .ace_selection {
1004
+ background: rgba(221, 240, 255, 0.20)
1005
+ }
1006
+
1007
+ .ace-twilight.ace_multiselect .ace_selection.ace_start {
1008
+ box-shadow: 0 0 3px 0px #141414;
1009
+ }
1010
+
1011
+ .ace-twilight .ace_marker-layer .ace_step {
1012
+ background: rgb(102, 82, 0)
1013
+ }
1014
+
1015
+ .ace-twilight .ace_marker-layer .ace_bracket {
1016
+ margin: -1px 0 0 -1px;
1017
+ border: 1px solid rgba(255, 255, 255, 0.25)
1018
+ }
1019
+
1020
+ .ace-twilight .ace_marker-layer .ace_active-line {
1021
+ background: rgba(255, 255, 255, 0.031)
1022
+ }
1023
+
1024
+ .ace-twilight .ace_gutter-active-line {
1025
+ background-color: rgba(255, 255, 255, 0.031)
1026
+ }
1027
+
1028
+ .ace-twilight .ace_marker-layer .ace_selected-word {
1029
+ border: 1px solid rgba(221, 240, 255, 0.20)
1030
+ }
1031
+
1032
+ .ace-twilight .ace_invisible {
1033
+ color: rgba(255, 255, 255, 0.25)
1034
+ }
1035
+
1036
+ .ace-twilight .ace_keyword,
1037
+ .ace-twilight .ace_meta {
1038
+ color: #CDA869
1039
+ }
1040
+
1041
+ .ace-twilight .ace_constant,
1042
+ .ace-twilight .ace_constant.ace_character,
1043
+ .ace-twilight .ace_constant.ace_character.ace_escape,
1044
+ .ace-twilight .ace_constant.ace_other,
1045
+ .ace-twilight .ace_heading,
1046
+ .ace-twilight .ace_markup.ace_heading,
1047
+ .ace-twilight .ace_support.ace_constant {
1048
+ color: #CF6A4C
1049
+ }
1050
+
1051
+ .ace-twilight .ace_invalid.ace_illegal {
1052
+ color: #F8F8F8;
1053
+ background-color: rgba(86, 45, 86, 0.75)
1054
+ }
1055
+
1056
+ .ace-twilight .ace_invalid.ace_deprecated {
1057
+ text-decoration: underline;
1058
+ font-style: italic;
1059
+ color: #D2A8A1
1060
+ }
1061
+
1062
+ .ace-twilight .ace_support {
1063
+ color: #9B859D
1064
+ }
1065
+
1066
+ .ace-twilight .ace_fold {
1067
+ background-color: #AC885B;
1068
+ border-color: #F8F8F8
1069
+ }
1070
+
1071
+ .ace-twilight .ace_support.ace_function {
1072
+ color: #DAD085
1073
+ }
1074
+
1075
+ .ace-twilight .ace_list,
1076
+ .ace-twilight .ace_markup.ace_list,
1077
+ .ace-twilight .ace_storage {
1078
+ color: #F9EE98
1079
+ }
1080
+
1081
+ .ace-twilight .ace_entity.ace_name.ace_function,
1082
+ .ace-twilight .ace_meta.ace_tag {
1083
+ color: #AC885B
1084
+ }
1085
+
1086
+ .ace-twilight .ace_string {
1087
+ color: #8F9D6A
1088
+ }
1089
+
1090
+ .ace-twilight .ace_string.ace_regexp {
1091
+ color: #E9C062
1092
+ }
1093
+
1094
+ .ace-twilight .ace_comment {
1095
+ font-style: italic;
1096
+ color: #5F5A60
1097
+ }
1098
+
1099
+ .ace-twilight .ace_variable {
1100
+ color: #7587A6
1101
+ }
1102
+
1103
+ .ace-twilight .ace_xml-pe {
1104
+ color: #494949
1105
+ }
1106
+
1107
+ .ace-twilight .ace_indent-guide {
1108
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1109
+ }
1110
+
1111
+ .ace-twilight .ace_indent-guide-active {
1112
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1113
+ }
1114
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(n,r,d){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=n("./twilight-css");var h=n("../lib/dom");h.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(n){t.exports=n})}()}($g)),$g.exports}H_();var Ag={exports:{}},Tg;function z_(){return Tg||(Tg=1,function(t,e){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(n,r,d){function h(v){var T=new Date().toLocaleString("en-us",v);return T.length==1?"0"+T:T}var f=n("./lib/dom"),w=n("./lib/oop"),p=n("./lib/event_emitter").EventEmitter,g=n("./lib/lang"),s=n("./range").Range,l=n("./range_list").RangeList,a=n("./keyboard/hash_handler").HashHandler,u=n("./tokenizer").Tokenizer,o=n("./clipboard"),c={CURRENT_WORD:function(v){return v.session.getTextRange(v.session.getWordRange())},SELECTION:function(v,T,R){var O=v.session.getTextRange();return R?O.replace(/\n\r?([ \t]*\S)/g,`
1115
+ `+R+"$1"):O},CURRENT_LINE:function(v){return v.session.getLine(v.getCursorPosition().row)},PREV_LINE:function(v){return v.session.getLine(v.getCursorPosition().row-1)},LINE_INDEX:function(v){return v.getCursorPosition().row},LINE_NUMBER:function(v){return v.getCursorPosition().row+1},SOFT_TABS:function(v){return v.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(v){return v.session.getTabSize()},CLIPBOARD:function(v){return o.getText&&o.getText()},FILENAME:function(v){return/[^/\\]*$/.exec(this.FILEPATH(v))[0]},FILENAME_BASE:function(v){return/[^/\\]*$/.exec(this.FILEPATH(v))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(v){return this.FILEPATH(v).replace(/[^/\\]*$/,"")},FILEPATH:function(v){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(v){var T=v.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(v){var T=v.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(v){var T=v.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:h.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:h.bind(null,{year:"2-digit"}),CURRENT_MONTH:h.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:h.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:"short"}),CURRENT_DATE:h.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:h.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:"short"}),CURRENT_HOUR:h.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:"2-digit"}),CURRENT_SECOND:h.bind(null,{second:"2-digit"})};c.SELECTED_TEXT=c.SELECTION;var m=function(){function v(){this.snippetMap={},this.snippetNameMap={},this.variables=c}return v.prototype.getTokenizer=function(){return v.$tokenizer||this.createTokenizer()},v.prototype.createTokenizer=function(){function T(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function R(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var O={regex:"/("+R("/")+"+)/",onMatch:function(M,N,S){var _=S[0];return _.fmtString=!0,_.guard=M.slice(1,-1),_.flag="",""},next:"formatString"};return v.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(M,N,S){var _=M[1];return(_=="}"&&S.length||"`$\\".indexOf(_)!=-1)&&(M=_),[M]}},{regex:/}/,onMatch:function(M,N,S){return[S.length?S.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,N,S){var _=T(M.substr(1));return S.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+R("\\|")+"*\\|",onMatch:function(M,N,S){var _=M.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return S[0].choices=_,[_[0]]},next:"start"},O,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,N,S){return S.length&&S[0].expectElse?(S[0].expectElse=!1,S[0].ifEnd={elseEnd:S[0]},[S[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,N,S){var _=M[1];return _=="}"&&S.length||"`$\\".indexOf(_)!=-1?M=_:_=="n"?M=`
1116
+ `:_=="t"?M=" ":"ulULE".indexOf(_)!=-1&&(M={changeCase:_,local:_>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,N,S){var _=S.shift();return _&&(_.flag=M.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,N,S){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,N,S){var _={text:M.slice(2)};return S.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,N,S){var _=S.shift();return this.next=_&&_.tabstopId?"start":"",[_||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,N,S){var _=S[0];return _.formatFunction=M.slice(2,-1),[S.shift()]},next:"formatString"},O,{regex:/:[\?\-+]?/,onMatch:function(M,N,S){M[1]=="+"&&(S[0].ifEnd=S[0]),M[1]=="?"&&(S[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),v.$tokenizer},v.prototype.tokenizeTmSnippet=function(T,R){return this.getTokenizer().getLineTokens(T,R).tokens.map(function(O){return O.value||O})},v.prototype.getVariableValue=function(T,R,O){if(/^\d+$/.test(R))return(this.variables.__||{})[R]||"";if(/^[A-Z]\d+$/.test(R))return(this.variables[R[0]+"__"]||{})[R.substr(1)]||"";if(R=R.replace(/^TM_/,""),!this.variables.hasOwnProperty(R))return"";var M=this.variables[R];return typeof M=="function"&&(M=this.variables[R](T,R,O)),M??""},v.prototype.tmStrFormat=function(T,R,O){if(!R.fmt)return T;var M=R.flag||"",N=R.guard;N=new RegExp(N,M.replace(/[^gim]/g,""));var S=typeof R.fmt=="string"?this.tokenizeTmSnippet(R.fmt,"formatString"):R.fmt,_=this,$=T.replace(N,function(){var L=_.variables.__;_.variables.__=[].slice.call(arguments);for(var D=_.resolveVariables(S,O),F="E",B=0;B<D.length;B++){var W=D[B];if(typeof W=="object")if(D[B]="",W.changeCase&&W.local){var q=D[B+1];q&&typeof q=="string"&&(W.changeCase=="u"?D[B]=q[0].toUpperCase():D[B]=q[0].toLowerCase(),D[B+1]=q.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?D[B]=W.toUpperCase():F=="L"&&(D[B]=W.toLowerCase())}return _.variables.__=L,D.join("")});return $},v.prototype.tmFormatFunction=function(T,R,O){return R.formatFunction=="upcase"?T.toUpperCase():R.formatFunction=="downcase"?T.toLowerCase():T},v.prototype.resolveVariables=function(T,R){function O(F){var B=T.indexOf(F,_+1);B!=-1&&(_=B)}for(var M=[],N="",S=!0,_=0;_<T.length;_++){var $=T[_];if(typeof $=="string"){M.push($),$==`
1117
+ `?(S=!0,N=""):S&&(N=/^\t*/.exec($)[0],S=/\S/.test($));continue}if($){if(S=!1,$.fmtString){var L=T.indexOf($,_+1);L==-1&&(L=T.length),$.fmt=T.slice(_+1,L),_=L}if($.text){var D=this.getVariableValue(R,$.text,N)+"";$.fmtString&&(D=this.tmStrFormat(D,$,R)),$.formatFunction&&(D=this.tmFormatFunction(D,$,R)),D&&!$.ifEnd?(M.push(D),O($)):!D&&$.ifEnd&&O($.ifEnd)}else $.elseEnd?O($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&M.push($)}}return M},v.prototype.getDisplayTextForSnippet=function(T,R){var O=b.call(this,T,R);return O.text},v.prototype.insertSnippetForSelection=function(T,R,O){O===void 0&&(O={});var M=b.call(this,T,R,O),N=T.getSelectionRange(),S=T.session.replace(N,M.text),_=new x(T),$=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(M.tabstops,N.start,S,$)},v.prototype.insertSnippet=function(T,R,O){O===void 0&&(O={});var M=this;if(T.inVirtualSelectionMode)return M.insertSnippetForSelection(T,R,O);T.forEachSelection(function(){M.insertSnippetForSelection(T,R,O)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},v.prototype.$getScope=function(T){var R=T.session.$mode.$id||"";if(R=R.split("/").pop(),R==="html"||R==="php"){R==="php"&&!T.session.$mode.inlinePhp&&(R="html");var O=T.getCursorPosition(),M=T.session.getState(O.row);typeof M=="object"&&(M=M[0]),M.substring&&(M.substring(0,3)=="js-"?R="javascript":M.substring(0,4)=="css-"?R="css":M.substring(0,4)=="php-"&&(R="php"))}return R},v.prototype.getActiveScopes=function(T){var R=this.$getScope(T),O=[R],M=this.snippetMap;return M[R]&&M[R].includeScopes&&O.push.apply(O,M[R].includeScopes),O.push("_"),O},v.prototype.expandWithTab=function(T,R){var O=this,M=T.forEachSelection(function(){return O.expandSnippetForSelection(T,R)},null,{keepOrder:!0});return M&&T.tabstopManager&&T.tabstopManager.tabNext(),M},v.prototype.expandSnippetForSelection=function(T,R){var O=T.getCursorPosition(),M=T.session.getLine(O.row),N=M.substring(0,O.column),S=M.substr(O.column),_=this.snippetMap,$;return this.getActiveScopes(T).some(function(L){var D=_[L];return D&&($=this.findMatchingSnippet(D,N,S)),!!$},this),$?(R&&R.dryRun||(T.session.doc.removeInLine(O.row,O.column-$.replaceBefore.length,O.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(T,$.content),this.variables.M__=this.variables.T__=null),!0):!1},v.prototype.findMatchingSnippet=function(T,R,O){for(var M=T.length;M--;){var N=T[M];if(!(N.startRe&&!N.startRe.test(R))&&!(N.endRe&&!N.endRe.test(O))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(R):[""],N.matchAfter=N.endRe?N.endRe.exec(O):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(R)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(O)[0]:"",N}},v.prototype.register=function(T,R){function O(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function M(L,D,F){return L=O(L),D=O(D),L=D+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function N(L){L.scope||(L.scope=R||"_"),R=L.scope,S[R]||(S[R]=[],_[R]={});var D=_[R];if(L.name){var F=D[L.name];F&&$.unregister(F),D[L.name]=L}S[R].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
1118
+ `):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=g.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=M(L.trigger,L.guard),L.triggerRe=new RegExp(L.trigger),L.endRe=M(L.endTrigger,L.endGuard),L.endTriggerRe=new RegExp(L.endTrigger))}var S=this.snippetMap,_=this.snippetNameMap,$=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(L){N(T[L])}),this._signal("registerSnippets",{scope:R})},v.prototype.unregister=function(T,R){function O(S){var _=N[S.scope||R];if(_&&_[S.name]){delete _[S.name];var $=M[S.scope||R],L=$&&$.indexOf(S);L>=0&&$.splice(L,1)}}var M=this.snippetMap,N=this.snippetNameMap;T.content?O(T):Array.isArray(T)&&T.forEach(O)},v.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var R=[],O={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=M.exec(T);){if(N[1])try{O=JSON.parse(N[1]),R.push(O)}catch{}if(N[4])O.content=N[4].replace(/^\t/gm,""),R.push(O),O={};else{var S=N[2],_=N[3];if(S=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;O.guard=$.exec(_)[1],O.trigger=$.exec(_)[1],O.endTrigger=$.exec(_)[1],O.endGuard=$.exec(_)[1]}else S=="snippet"?(O.tabTrigger=_.match(/^\S*/)[0],O.name||(O.name=_)):S&&(O[S]=_)}}return R},v.prototype.getSnippetByName=function(T,R){var O=this.snippetNameMap,M;return this.getActiveScopes(R).some(function(N){var S=O[N];return S&&(M=S[T]),!!M},this),M},v}();w.implement(m.prototype,p);var b=function(v,T,R){function O(J){for(var ae=[],we=0;we<J.length;we++){var ve=J[we];if(typeof ve=="object"){if(D[ve.tabstopId])continue;var me=J.lastIndexOf(ve,we-1);ve=ae[me]||{tabstopId:ve.tabstopId}}ae[we]=ve}return ae}R===void 0&&(R={});var M=v.getCursorPosition(),N=v.session.getLine(M.row),S=v.session.getTabString(),_=N.match(/^\s*/)[0];M.column<_.length&&(_=_.slice(0,M.column)),T=T.replace(/\r/g,"");var $=this.tokenizeTmSnippet(T);$=this.resolveVariables($,v),$=$.map(function(J){return J==`
1119
+ `&&!R.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,S):J});var L=[];$.forEach(function(J,ae){if(typeof J=="object"){var we=J.tabstopId,ve=L[we];if(ve||(ve=L[we]=[],ve.index=we,ve.value="",ve.parents={}),ve.indexOf(J)===-1){J.choices&&!ve.choices&&(ve.choices=J.choices),ve.push(J);var me=$.indexOf(J,ae+1);if(me!==-1){var Se=$.slice(ae+1,me),lt=Se.some(function(Ht){return typeof Ht=="object"});lt&&!ve.value?ve.value=Se:Se.length&&(!ve.value||typeof ve.value!="string")&&(ve.value=Se.join(""))}}}}),L.forEach(function(J){J.length=0});for(var D={},F=0;F<$.length;F++){var B=$[F];if(typeof B=="object"){var W=B.tabstopId,q=L[W],V=$.indexOf(B,F+1);if(D[W]){D[W]===B&&(delete D[W],Object.keys(D).forEach(function(J){q.parents[J]=!0}));continue}D[W]=B;var X=q.value;typeof X!="string"?X=O(X):B.fmt&&(X=this.tmStrFormat(X,B,v)),$.splice.apply($,[F+1,Math.max(0,V-F)].concat(X,B)),q.indexOf(B)===-1&&q.push(B)}}var G=0,Z=0,re="";return $.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
1120
+ `);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:L,tokens:$}},x=function(){function v(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return v.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.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)},v.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},v.prototype.onChange=function(T){for(var R=T.action[0]=="r",O=this.selectedTabstop||{},M=O.parents||{},N=this.tabstops.slice(),S=0;S<N.length;S++){var _=N[S],$=_==O||M[_.index];if(_.rangeList.$bias=$?0:1,T.action=="remove"&&_!==O){var L=_.parents&&_.parents[O.index],D=_.rangeList.pointIndex(T.start,L);D=D<0?-D-1:D+1;var F=_.rangeList.pointIndex(T.end,L);F=F<0?-F-1:F-1;for(var B=_.rangeList.ranges.slice(D,F),W=0;W<B.length;W++)this.removeRange(B[W])}_.rangeList.$onChange(T)}var q=this.session;!this.$inChange&&R&&q.getLength()==1&&!q.getValue()&&this.detach()},v.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var R=this.session,O=R.getTextRange(T.firstNonLinked),M=0;M<T.length;M++){var N=T[M];if(N.linked){var S=N.original,_=r.snippetManager.tmStrFormat(O,S,this.editor);R.replace(N,_)}}this.$inChange=!1}},v.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},v.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,R=this.editor.selection.anchor,O=this.editor.selection.isEmpty(),M=0;M<this.ranges.length;M++)if(!this.ranges[M].linked){var N=this.ranges[M].contains(T.row,T.column),S=O||this.ranges[M].contains(R.row,R.column);if(N&&S)return}this.detach()}},v.prototype.onChangeSession=function(){this.detach()},v.prototype.tabNext=function(T){var R=this.tabstops.length,O=this.index+(T||1);O=Math.min(Math.max(O,1),R),O==R&&(O=0),this.selectTabstop(O),this.updateTabstopMarkers(),O===0&&this.detach()},v.prototype.selectTabstop=function(T){this.$openTabstops=null;var R=this.tabstops[this.index];if(R&&this.addTabstopMarkers(R),this.index=T,R=this.tabstops[this.index],!(!R||!R.length)){this.selectedTabstop=R;var O=R.firstNonLinked||R;if(R.choices&&(O.cursor=O.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(O);else{var M=this.editor.multiSelect;M.toSingleRange(O);for(var N=0;N<R.length;N++)R.hasLinkedRanges&&R[N].linked||M.addRange(R[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},v.prototype.addTabstops=function(T,R,O){var M=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(O,O);A(N.start,R),A(N.end,R),T[0]=[N],T[0].index=0}var S=this.index,_=[S+1,0],$=this.ranges,L=this.snippetId=(this.snippetId||0)+1;T.forEach(function(D,F){var B=this.$openTabstops[F]||D;B.snippetId=L;for(var W=0;W<D.length;W++){var q=D[W],V=s.fromPoints(q.start,q.end||q.start);E(V.start,R),E(V.end,R),V.original=q,V.tabstop=B,$.push(V),B!=D?B.unshift(V):B[W]=V,q.fmtString||B.firstNonLinked&&M?(V.linked=!0,B.hasLinkedRanges=!0):B.firstNonLinked||(B.firstNonLinked=V)}B.firstNonLinked||(B.hasLinkedRanges=!1),B===D&&(_.push(B),this.$openTabstops[F]=B),this.addTabstopMarkers(B),B.rangeList=B.rangeList||new l,B.rangeList.$bias=0,B.rangeList.addList(B)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},v.prototype.addTabstopMarkers=function(T){var R=this.session;T.forEach(function(O){O.markerId||(O.markerId=R.addMarker(O,"ace_snippet-marker","text"))})},v.prototype.removeTabstopMarkers=function(T){var R=this.session;T.forEach(function(O){R.removeMarker(O.markerId),O.markerId=null})},v.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(R){R.snippetId===T?this.addTabstopMarkers(R):this.removeTabstopMarkers(R)},this)}},v.prototype.removeRange=function(T){var R=T.tabstop.indexOf(T);R!=-1&&T.tabstop.splice(R,1),R=this.ranges.indexOf(T),R!=-1&&this.ranges.splice(R,1),R=T.tabstop.rangeList.ranges.indexOf(T),R!=-1&&T.tabstop.splice(R,1),this.session.removeMarker(T.markerId),T.tabstop.length||(R=this.tabstops.indexOf(T.tabstop),R!=-1&&this.tabstops.splice(R,1),this.tabstops.length||this.detach())},v}();x.prototype.keyboardHandler=new a,x.prototype.keyboardHandler.bindKeys({Tab:function(v){r.snippetManager&&r.snippetManager.expandWithTab(v)||(v.tabstopManager.tabNext(1),v.renderer.scrollCursorIntoView())},"Shift-Tab":function(v){v.tabstopManager.tabNext(-1),v.renderer.scrollCursorIntoView()},Esc:function(v){v.tabstopManager.detach()}});var E=function(v,T){v.row==0&&(v.column+=T.column),v.row+=T.row},A=function(v,T){v.row==T.row&&(v.column-=T.column),v.row-=T.row};f.importCssString(`
1121
+ .ace_snippet-marker {
1122
+ -moz-box-sizing: border-box;
1123
+ box-sizing: border-box;
1124
+ background: rgba(194, 193, 208, 0.09);
1125
+ border: 1px dotted rgba(211, 208, 235, 0.62);
1126
+ position: absolute;
1127
+ }`,"snippets.css",!1),r.snippetManager=new m;var k=n("./editor").Editor;(function(){this.insertSnippet=function(v,T){return r.snippetManager.insertSnippet(this,v,T)},this.expandSnippet=function(v){return r.snippetManager.expandWithTab(this,v)}}).call(k.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(n,r,d){var h=n("../virtual_renderer").VirtualRenderer,f=n("../editor").Editor,w=n("../range").Range,p=n("../lib/event"),g=n("../lib/lang"),s=n("../lib/dom"),l=n("../config").nls,a=n("./../lib/useragent"),u=function(E){return"suggest-aria-id:".concat(E)},o=a.isSafari?"menu":"listbox",c=a.isSafari?"menuitem":"option",m=a.isSafari?"aria-current":"aria-selected",b=function(E){var A=new h(E);A.$maxLines=4;var k=new f(A);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function E(A){var k=s.createElement("div"),v=b(k);A&&A.appendChild(k),k.style.display="none",v.renderer.content.style.cursor="default",v.renderer.setStyle("ace_autocomplete"),v.renderer.$textLayer.element.setAttribute("role",o),v.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),v.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),v.renderer.textarea.setAttribute("aria-hidden","true"),v.setOption("displayIndentGuides",!1),v.setOption("dragDelay",150);var T=function(){};v.focus=T,v.$isFocused=!0,v.renderer.$cursorLayer.restartTimer=T,v.renderer.$cursorLayer.element.style.opacity="0",v.renderer.$maxLines=8,v.renderer.$keepTextAreaAtCursor=!1,v.setHighlightActiveLine(!1),v.session.highlight(""),v.session.$searchHighlight.clazz="ace_highlight-marker",v.on("mousedown",function($){var L=$.getDocumentPosition();v.selection.moveToPosition(L),M.start.row=M.end.row=L.row,$.stop()});var R,O=new w(-1,0,-1,1/0),M=new w(-1,0,-1,1/0);M.id=v.session.addMarker(M,"ace_active-line","fullLine"),v.setSelectOnHover=function($){$?O.id&&(v.session.removeMarker(O.id),O.id=null):O.id=v.session.addMarker(O,"ace_line-hover","fullLine")},v.setSelectOnHover(!1),v.on("mousemove",function($){if(!R){R=$;return}if(!(R.x==$.x&&R.y==$.y)){R=$,R.scrollTop=v.renderer.scrollTop,v.isMouseOver=!0;var L=R.getDocumentPosition().row;O.start.row!=L&&(O.id||v.setRow(L),S(L))}}),v.renderer.on("beforeRender",function(){if(R&&O.start.row!=-1){R.$pos=null;var $=R.getDocumentPosition().row;O.id||v.setRow($),S($,!0)}}),v.renderer.on("afterRender",function(){var $=v.getRow(),L=v.renderer.$textLayer,D=L.element.childNodes[$-L.config.firstRow],F=document.activeElement;if(D!==v.selectedNode&&v.selectedNode&&(s.removeCssClass(v.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),v.selectedNode.removeAttribute(m),v.selectedNode.removeAttribute("id")),v.selectedNode=D,D){s.addCssClass(D,"ace_selected");var B=u($);D.id=B,L.element.setAttribute("aria-activedescendant",B),F.setAttribute("aria-activedescendant",B),D.setAttribute("role",c),D.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),D.setAttribute("aria-label",v.getData($).caption||v.getData($).value),D.setAttribute("aria-setsize",v.data.length),D.setAttribute("aria-posinset",$+1),D.setAttribute("aria-describedby","doc-tooltip"),D.setAttribute(m,"true")}});var N=function(){S(-1)},S=function($,L){$!==O.start.row&&(O.start.row=O.end.row=$,L||v.session._emit("changeBackMarker"),v._emit("changeHoverMarker"))};v.getHoveredRow=function(){return O.start.row},p.addListener(v.container,"mouseout",function(){v.isMouseOver=!1,N()}),v.on("hide",N),v.on("changeSelection",N),v.session.doc.getLength=function(){return v.data.length},v.session.doc.getLine=function($){var L=v.data[$];return typeof L=="string"?L:L&&L.value||""};var _=v.session.bgTokenizer;return _.$tokenizeRow=function($){function L(J,ae){J&&F.push({type:(D.className||"")+(ae||""),value:J})}var D=v.data[$],F=[];if(!D)return F;typeof D=="string"&&(D={value:D});for(var B=D.caption||D.value||D.name,W=B.toLowerCase(),q=(v.filterText||"").toLowerCase(),V=0,X=0,G=0;G<=q.length;G++)if(G!=X&&(D.matchMask&1<<G||G==q.length)){var Z=q.slice(X,G);X=G;var re=W.indexOf(Z,V);if(re==-1)continue;L(B.slice(V,re),""),V=re+Z.length,L(B.slice(re,V),"completion-highlight")}return L(B.slice(V,B.length),""),F.push({type:"completion-spacer",value:" "}),D.meta&&F.push({type:"completion-meta",value:D.meta}),D.message&&F.push({type:"completion-message",value:D.message}),F},_.$updateOnChange=T,_.start=T,v.session.$computeWidth=function(){return this.screenWidth=0},v.isOpen=!1,v.isTopdown=!1,v.autoSelect=!0,v.filterText="",v.isMouseOver=!1,v.data=[],v.setData=function($,L){v.filterText=L||"",v.setValue(g.stringRepeat(`
1128
+ `,$.length),-1),v.data=$||[],v.setRow(0)},v.getData=function($){return v.data[$]},v.getRow=function(){return M.start.row},v.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),M.start.row!=$&&(v.selection.clearSelection(),M.start.row=M.end.row=$||0,v.session._emit("changeBackMarker"),v.moveCursorTo($||0,0),v.isOpen&&v._signal("select"))},v.on("changeSelection",function(){v.isOpen&&v.setRow(v.selection.lead.row),v.renderer.scrollCursorIntoView()}),v.hide=function(){this.container.style.display="none",v.anchorPos=null,v.anchor=null,v.isOpen&&(v.isOpen=!1,this._signal("hide"))},v.tryShow=function($,L,D,F){if(!F&&v.isOpen&&v.anchorPos&&v.anchor&&v.anchorPos.top===$.top&&v.anchorPos.left===$.left&&v.anchor===D)return!0;var B=this.container,W=window.innerHeight,q=window.innerWidth,V=this.renderer,X=V.$maxLines*L*1.4,G={top:0,bottom:0,left:0},Z=W-$.top-3*this.$borderSize-L,re=$.top-3*this.$borderSize;D||(re<=Z||Z>=X?D="bottom":D="top"),D==="top"?(G.bottom=$.top-this.$borderSize,G.top=G.bottom-X):D==="bottom"&&(G.top=$.top+L+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=W;if(!F&&!J)return!1;J?V.$maxPixelHeight=null:D==="top"?V.$maxPixelHeight=re:V.$maxPixelHeight=Z,D==="top"?(B.style.top="",B.style.bottom=W-G.bottom+"px",v.isTopdown=!1):(B.style.top=G.top+"px",B.style.bottom="",v.isTopdown=!0),B.style.display="";var ae=$.left;return ae+B.offsetWidth>q&&(ae=q-B.offsetWidth),B.style.left=ae+"px",B.style.right="",v.isOpen||(v.isOpen=!0,this._signal("show"),R=null),v.anchorPos=$,v.anchor=D,!0},v.show=function($,L,D){this.tryShow($,L,D?"bottom":void 0,!0)},v.goTo=function($){var L=this.getRow(),D=this.session.getLength()-1;switch($){case"up":L=L<=0?D:L-1;break;case"down":L=L>=D?-1:L+1;break;case"start":L=0;break;case"end":L=D}this.setRow(L)},v.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},v.$imageSize=0,v.$borderSize=1,v}return E}();s.importCssString(`
1129
+ .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1130
+ background-color: #CAD6FA;
1131
+ z-index: 1;
1132
+ }
1133
+ .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1134
+ background-color: #3a674e;
1135
+ }
1136
+ .ace_editor.ace_autocomplete .ace_line-hover {
1137
+ border: 1px solid #abbffe;
1138
+ margin-top: -1px;
1139
+ background: rgba(233,233,253,0.4);
1140
+ position: absolute;
1141
+ z-index: 2;
1142
+ }
1143
+ .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1144
+ border: 1px solid rgba(109, 150, 13, 0.8);
1145
+ background: rgba(58, 103, 78, 0.62);
1146
+ }
1147
+ .ace_completion-meta {
1148
+ opacity: 0.5;
1149
+ margin-left: 0.9em;
1150
+ }
1151
+ .ace_completion-message {
1152
+ margin-left: 0.9em;
1153
+ color: blue;
1154
+ }
1155
+ .ace_editor.ace_autocomplete .ace_completion-highlight{
1156
+ color: #2d69c7;
1157
+ }
1158
+ .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1159
+ color: #93ca12;
1160
+ }
1161
+ .ace_editor.ace_autocomplete {
1162
+ width: 300px;
1163
+ z-index: 200000;
1164
+ border: 1px lightgray solid;
1165
+ position: fixed;
1166
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1167
+ line-height: 1.4;
1168
+ background: #fefefe;
1169
+ color: #111;
1170
+ }
1171
+ .ace_dark.ace_editor.ace_autocomplete {
1172
+ border: 1px #484747 solid;
1173
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1174
+ line-height: 1.4;
1175
+ background: #25282c;
1176
+ color: #c1c1c1;
1177
+ }
1178
+ .ace_autocomplete .ace_text-layer {
1179
+ width: calc(100% - 8px);
1180
+ }
1181
+ .ace_autocomplete .ace_line {
1182
+ display: flex;
1183
+ align-items: center;
1184
+ }
1185
+ .ace_autocomplete .ace_line > * {
1186
+ min-width: 0;
1187
+ flex: 0 0 auto;
1188
+ }
1189
+ .ace_autocomplete .ace_line .ace_ {
1190
+ flex: 0 1 auto;
1191
+ overflow: hidden;
1192
+ text-overflow: ellipsis;
1193
+ }
1194
+ .ace_autocomplete .ace_completion-spacer {
1195
+ flex: 1;
1196
+ }
1197
+ .ace_autocomplete.ace_loading:after {
1198
+ content: "";
1199
+ position: absolute;
1200
+ top: 0px;
1201
+ height: 2px;
1202
+ width: 8%;
1203
+ background: blue;
1204
+ z-index: 100;
1205
+ animation: ace_progress 3s infinite linear;
1206
+ animation-delay: 300ms;
1207
+ transform: translateX(-100%) scaleX(1);
1208
+ }
1209
+ @keyframes ace_progress {
1210
+ 0% { transform: translateX(-100%) scaleX(1) }
1211
+ 50% { transform: translateX(625%) scaleX(2) }
1212
+ 100% { transform: translateX(1500%) scaleX(3) }
1213
+ }
1214
+ @media (prefers-reduced-motion) {
1215
+ .ace_autocomplete.ace_loading:after {
1216
+ transform: translateX(625%) scaleX(2);
1217
+ animation: none;
1218
+ }
1219
+ }
1220
+ `,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=u}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(n,r,d){var h=function(){function f(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return f.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[g-s.config.firstRow];if(l){for(var a="doc-tooltip ",u=0;u<this._lines.length;u++)a+="ace-inline-screenreader-line-".concat(u," ");l.setAttribute("aria-describedby",a)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var p=this.createCodeBlock();this.screenReaderDiv.appendChild(p)},f.prototype.destroy=function(){this.screenReaderDiv.remove()},f.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var p=0;p<this._lines.length;p++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(p));var s=document.createTextNode(this._lines[p]);g.appendChild(s),w.appendChild(g)}return w},f}();r.AceInlineScreenReader=h}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(n,r,d){var h=n("../snippets").snippetManager,f=n("./inline_screenreader").AceInlineScreenReader,w=function(){function p(){this.editor=null}return p.prototype.show=function(g,s,l){if(l=l||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new f(g));var a=s.snippet?h.getDisplayTextForSnippet(g,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(l)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(l.length),a===""?g.removeGhostText():g.setGhostText(a),!0)},p.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},p.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},p.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},p}();r.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(n,r,d){r.parForEach=function(f,w,p){var g=0,s=f.length;s===0&&p();for(var l=0;l<s;l++)w(f[l],function(a,u){g++,g===s&&p(a,u)})};var h=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(f,w,p){p=p||h;for(var g=[],s=w-1;s>=0&&p.test(f[s]);s--)g.push(f[s]);return g.reverse().join("")},r.retrieveFollowingIdentifier=function(f,w,p){p=p||h;for(var g=[],s=w;s<f.length&&p.test(f[s]);s++)g.push(f[s]);return g},r.getCompletionPrefix=function(f){var w=f.getCursorPosition(),p=f.session.getLine(w.row),g;return f.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!g&&l&&(g=this.retrievePrecedingIdentifier(p,w.column,l))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(p,w.column)},r.triggerAutocomplete=function(f,p){var p=p??f.session.getPrecedingCharacter();return f.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(p)})}}),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(n,r,d){var h=n("./keyboard/hash_handler").HashHandler,f=n("./autocomplete/popup").AcePopup,w=n("./autocomplete/inline").AceInline,p=n("./autocomplete/popup").getAriaId,g=n("./autocomplete/util"),s=n("./lib/lang"),l=n("./lib/dom"),a=n("./snippets").snippetManager,u=n("./config"),o=n("./lib/event"),c=n("./lib/scroll").preventParentScroll,m=function(A,k){k.completer&&k.completer.destroy()},b=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new h,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new E(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:u.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new f(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var v=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(v),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},A.prototype.$updateGhostText=function(k){var v=this.base.row,T=this.base.column,R=this.editor.getCursorPosition().column,O=this.editor.session.getLine(v).slice(T,R);this.inlineRenderer.show(this.editor,k,O)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var v=this.popup.getFirstVisibleRow();v<=this.popup.getLastVisibleRow();v++){var T=this.popup.getData(v);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,v=[];k;)v.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=v}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(v){v.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,v=k.renderer,T=v.layerConfig.lineHeight,R=v.$cursorLayer.getPixelPosition(this.base,!0);R.left-=this.popup.getTextLeftOffset();var O=k.container.getBoundingClientRect();R.top+=O.top-v.layerConfig.offset,R.left+=O.left-k.renderer.scrollLeft,R.left+=v.gutterWidth;var M={top:R.top,left:R.left};v.$ghostText&&v.$ghostTextWidget&&this.base.row===v.$ghostText.position.row&&(M.top+=v.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-T,S=N<M.top?{top:N,left:M.left}:M;this.popup.tryShow(S,T,"bottom")||this.popup.tryShow(R,T,"top")||this.popup.show(R,T)},A.prototype.openPopup=function(k,v,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var R=this.popup.getRow(),O=this.popup.data[R];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:p(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var M;this.stickySelection&&(M=this.popup.data.indexOf(O)),(!M||M===-1)&&(M=0),this.popup.setRow(this.autoSelect?M:-1),M===R&&O!==this.completions.filtered[M]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(M===R&&N){var S=this.popup.getData(this.popup.getRow());this.$updateGhostText(S)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},A.prototype.changeListener=function(k){var v=this.editor.selection.lead;(v.row!=this.base.row||v.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},A.prototype.blurListener=function(k){var v=document.activeElement,T=this.editor.textInput.getElement(),R=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),O=this.popup&&this.popup.container;v!=T&&v.parentNode!=O&&!R&&v!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,v){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,R=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,v);return this.completions==T&&this.detach(),R},A.prototype.showPopup=function(k,v){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,v)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,v){return this.getCompletionProvider().gatherCompletions(k,v)},A.prototype.updateCompletions=function(k,v){if(k&&this.base&&this.completions){var R=this.editor.getCursorPosition(),O=this.editor.session.getTextRange({start:this.base,end:R});if(O==this.completions.filterText)return;if(this.completions.setFilter(O),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==O&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,O,k);return}if(v&&v.matches){var R=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(R.row,R.column),this.base.$insertRight=!0,this.completions=new E(v.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),R=this.editor.getCursorPosition(),O=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(R.row,R.column-O.length),this.base.$insertRight=!0;var M={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:O,pos:R}).provideCompletions(this.editor,M,(function(N,S,_){var $=S.filtered,L=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!$.length){var D=!this.autoShown&&this.emptyMessage;if(typeof D=="function"&&(D=this.emptyMessage(L)),D){var F=[{caption:D,value:""}];this.completions=new E(F),this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==L&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!_&&this.showLoadingState?new E(A.completionsForLoading.concat($),S.filterText):S,this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,v=this.completions.filtered,T=v&&(v[k.getHoveredRow()]||v[k.getRow()]),R=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var O=this.editor.completers.length,M=0;M<O;M++){var N=this.editor.completers[M];if(N.getDocTooltip&&T.completerId===N.id){R=N.getDocTooltip(T);break}}if(!R&&typeof T!="string"&&(R=T),typeof R=="string"&&(R={docText:R}),!R||!R.docHTML&&!R.docText)return this.hideDocTooltip();this.showDocTooltip(R)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",c));var v=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(v.isDark?"ace_dark ":"")+(v.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var R=this.popup,O=R.container.getBoundingClientRect();T.style.top=R.container.style.top,T.style.bottom=R.container.style.bottom,T.style.display="block",window.innerWidth-O.right<320?O.left<320?R.isTopdown?(T.style.top=O.bottom+"px",T.style.left=O.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=R.container.offsetTop-T.offsetHeight+"px",T.style.left=O.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-O.left+"px",T.style.left=""):(T.style.left=O.right+1+"px",T.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var v=k.target;v&&v!=this.tooltipNode;){if(v.nodeName=="A"&&v.href){v.rel="noreferrer",v.target="_blank";break}v=v.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",m),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),u.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",m))),k.completer},A}();b.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=g.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(A,k){var v=b.for(A);v.autoInsert=!1,v.autoSelect=!0,v.autoShown=!1,v.showPopup(A,k),v.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,v,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[v],T)},A.prototype.insertMatch=function(k,v,T){if(!v)return!1;if(k.startOperation({command:{name:"insertMatch"}}),v.completer&&v.completer.insertMatch)v.completer.insertMatch(k,v);else{if(!this.completions)return!1;var R=this.completions.filterText.length,O=0;if(v.range&&v.range.start.row===v.range.end.row&&(R-=this.initialPosition.prefix.length,R+=this.initialPosition.pos.column-v.range.start.column,O+=v.range.end.column-this.initialPosition.pos.column),R||O){var M;k.selection.getAllRanges?M=k.selection.getAllRanges():M=[k.getSelectionRange()];for(var N=0,S;S=M[N];N++)S.start.column-=R,S.end.column+=O,k.session.remove(S)}v.snippet?a.insertSnippet(k,v.snippet):this.$insertString(k,v),v.completer&&v.completer.onInsert&&typeof v.completer.onInsert=="function"&&v.completer.onInsert(k,v),v.command&&v.command==="startAutocomplete"&&k.execCommand(v.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,v){var T=v.value||v;k.execCommand("insertstring",T)},A.prototype.gatherCompletions=function(k,v){var T=k.getSession(),R=k.getCursorPosition(),O=g.getCompletionPrefix(k),M=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function(S,_){S.getCompletions(k,T,R,O,function($,L){S.hideInlinePreview&&(L=L.map(function(D){return Object.assign(D,{hideInlinePreview:S.hideInlinePreview})})),!$&&L&&(M=M.concat(L)),v(null,{prefix:g.getCompletionPrefix(k),matches:M,finished:--N===0})})}),!0},A.prototype.provideCompletions=function(k,v,T){var R=(function(S){var _=S.prefix,$=S.matches;this.completions=new E($),v.exactMatch&&(this.completions.exactMatch=!0),v.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),(S.finished||this.completions.filtered.length)&&T(null,this.completions,S.finished)}).bind(this),O=!0,M=null;if(this.gatherCompletions(k,(function(S,_){if(this.active){S&&(T(S,[],!0),this.detach());var $=_.prefix;if($.indexOf(_.prefix)===0){if(O){M=_;return}R(_)}}}).bind(this)),O=!1,M){var N=M;M=null,R(N)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),E=function(){function A(k,v){this.all=k,this.filtered=k,this.filterText=v||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var v=this.filtered;else var v=this.all;this.filterText=k,v=this.filterCompletions(v,this.filterText),v=v.sort(function(R,O){return O.exactMatch-R.exactMatch||O.$score-R.$score||(R.caption||R.value).localeCompare(O.caption||O.value)});var T=null;v=v.filter(function(R){var O=R.snippet||R.caption||R.value;return O===T?!1:(T=O,!0)}),this.filtered=v},A.prototype.filterCompletions=function(k,v){var T=[],R=v.toUpperCase(),O=v.toLowerCase();e:for(var M=0,N;N=k[M];M++){var S=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(S){var _=-1,$=0,L=0,D,F;if(this.exactMatch){if(v!==S.substr(0,v.length))continue e}else{var B=S.toLowerCase().indexOf(O);if(B>-1)L=B;else for(var W=0;W<v.length;W++){var q=S.indexOf(O[W],_+1),V=S.indexOf(R[W],_+1);if(D=q>=0&&(V<0||q<V)?q:V,D<0)continue e;F=D-_-1,F>0&&(_===-1&&(L+=10),L+=F,$|=1<<W),_=D}}N.matchMask=$,N.exactMatch=L?0:1,N.$score=(N.score||0)-L,T.push(N)}}return T},A}();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=E}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(n,r,d){function h(g,s){var l=g.getTextRange(w.fromPoints({row:0,column:0},s));return l.split(p).length-1}function f(g,s){var l=h(g,s),a=g.getValue().split(p),u=Object.create(null),o=a[l];return a.forEach(function(c,m){if(!(!c||c===o)){var b=Math.abs(l-m),x=a.length-b;u[c]?u[c]=Math.max(x,u[c]):u[c]=x}}),u}var w=n("../range").Range,p=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(g,s,l,a,u){var o=f(s,l),c=Object.keys(o);u(null,c.map(function(m){return{caption:m,value:m,score:o[m],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(n,r,d){var h=n("../snippets").snippetManager,f=n("../autocomplete").Autocomplete,w=n("../config"),p=n("../lib/lang"),g=n("../autocomplete/util"),s=n("../autocomplete/text_completer"),l={getCompletions:function(R,O,M,N,S){if(O.$mode.completer)return O.$mode.completer.getCompletions(R,O,M,N,S);var _=R.session.getState(M.row),$=O.$mode.getCompletions(_,O,M,N);$=$.map(function(L){return L.completerId=l.id,L}),S(null,$)},id:"keywordCompleter"},a=function(R){var O={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(M,N,S,_){return O[N]=_||""}).replace(/\$(\d+?)/g,function(M,N){return O[N]})},u={getCompletions:function(R,O,M,N,S){var _=[],$=O.getTokenAt(M.row,M.column);$&&$.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=h.getActiveScopes(R);var L=h.snippetMap,D=[];_.forEach(function(F){for(var B=L[F]||[],W=B.length;W--;){var q=B[W],V=q.name||q.tabTrigger;V&&D.push({caption:V,snippet:q.content,meta:q.tabTrigger&&!q.name?q.tabTrigger+"⇥ ":"snippet",completerId:u.id})}},this),S(null,D)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",p.escapeHTML(R.caption),"</b>","<hr></hr>",p.escapeHTML(a(R.snippet))].join(""))},id:"snippetCompleter"},o=[u,s,l];r.setCompleters=function(R){o.length=0,R&&o.push.apply(o,R)},r.addCompleter=function(R){o.push(R)},r.textCompleter=s,r.keyWordCompleter=l,r.snippetCompleter=u;var c={name:"expandSnippet",exec:function(R){return h.expandWithTab(R)},bindKey:"Tab"},m=function(R,O){b(O.session.$mode)},b=function(R){typeof R=="string"&&(R=w.$modes[R]),R&&(h.files||(h.files={}),x(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(b))},x=function(R,O){!O||!R||h.files[R]||(h.files[R]={},w.loadModule(O,function(M){M&&(h.files[R]=M,!M.snippets&&M.snippetText&&(M.snippets=h.parseSnippetFile(M.snippetText)),h.register(M.snippets||[],M.scope),M.includeScopes&&(h.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(N){b("ace/mode/"+N)})))}))},E=function(R){var O=R.editor,M=O.completer&&O.completer.activated;if(R.command.name==="backspace")M&&!g.getCompletionPrefix(O)&&O.completer.detach();else if(R.command.name==="insertstring"&&!M){A=R;var N=R.editor.$liveAutocompletionDelay;N?k.delay(N):v(R)}},A,k=p.delayedCall(function(){v(A)},0),v=function(R){var O=R.editor,M=g.getCompletionPrefix(O),N=R.args,S=g.triggerAutocomplete(O,N);if(M&&M.length>=O.$liveAutocompletionThreshold||S){var _=f.for(O);_.autoShown=!0,_.showPopup(O)}},T=n("../editor").Editor;n("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.addCommand(f.startCommand)):this.commands.removeCommand(f.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.on("afterExec",E)):this.commands.off("afterExec",E)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(c),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(c),this.off("changeMode",m))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(n){t.exports=n})}()}(Ag)),Ag.exports}z_();var Mg={exports:{}},Eg;function W_(){return Eg||(Eg=1,function(t,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(n,r,d){d.exports=`
1221
+
1222
+ /* ------------------------------------------------------------------------------------------
1223
+ * Editor Search Form
1224
+ * --------------------------------------------------------------------------------------- */
1225
+ .ace_search {
1226
+ background-color: #ddd;
1227
+ color: #666;
1228
+ border: 1px solid #cbcbcb;
1229
+ border-top: 0 none;
1230
+ overflow: hidden;
1231
+ margin: 0;
1232
+ padding: 4px 6px 0 4px;
1233
+ position: absolute;
1234
+ top: 0;
1235
+ z-index: 99;
1236
+ white-space: normal;
1237
+ }
1238
+ .ace_search.left {
1239
+ border-left: 0 none;
1240
+ border-radius: 0px 0px 5px 0px;
1241
+ left: 0;
1242
+ }
1243
+ .ace_search.right {
1244
+ border-radius: 0px 0px 0px 5px;
1245
+ border-right: 0 none;
1246
+ right: 0;
1247
+ }
1248
+
1249
+ .ace_search_form, .ace_replace_form {
1250
+ margin: 0 20px 4px 0;
1251
+ overflow: hidden;
1252
+ line-height: 1.9;
1253
+ }
1254
+ .ace_replace_form {
1255
+ margin-right: 0;
1256
+ }
1257
+ .ace_search_form.ace_nomatch {
1258
+ outline: 1px solid red;
1259
+ }
1260
+
1261
+ .ace_search_field {
1262
+ border-radius: 3px 0 0 3px;
1263
+ background-color: white;
1264
+ color: black;
1265
+ border: 1px solid #cbcbcb;
1266
+ border-right: 0 none;
1267
+ outline: 0;
1268
+ padding: 0;
1269
+ font-size: inherit;
1270
+ margin: 0;
1271
+ line-height: inherit;
1272
+ padding: 0 6px;
1273
+ min-width: 17em;
1274
+ vertical-align: top;
1275
+ min-height: 1.8em;
1276
+ box-sizing: content-box;
1277
+ }
1278
+ .ace_searchbtn {
1279
+ border: 1px solid #cbcbcb;
1280
+ line-height: inherit;
1281
+ display: inline-block;
1282
+ padding: 0 6px;
1283
+ background: #fff;
1284
+ border-right: 0 none;
1285
+ border-left: 1px solid #dcdcdc;
1286
+ cursor: pointer;
1287
+ margin: 0;
1288
+ position: relative;
1289
+ color: #666;
1290
+ }
1291
+ .ace_searchbtn:last-child {
1292
+ border-radius: 0 3px 3px 0;
1293
+ border-right: 1px solid #cbcbcb;
1294
+ }
1295
+ .ace_searchbtn:disabled {
1296
+ background: none;
1297
+ cursor: default;
1298
+ }
1299
+ .ace_searchbtn:hover {
1300
+ background-color: #eef1f6;
1301
+ }
1302
+ .ace_searchbtn.prev, .ace_searchbtn.next {
1303
+ padding: 0px 0.7em
1304
+ }
1305
+ .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1306
+ content: "";
1307
+ border: solid 2px #888;
1308
+ width: 0.5em;
1309
+ height: 0.5em;
1310
+ border-width: 2px 0 0 2px;
1311
+ display:inline-block;
1312
+ transform: rotate(-45deg);
1313
+ }
1314
+ .ace_searchbtn.next:after {
1315
+ border-width: 0 2px 2px 0 ;
1316
+ }
1317
+ .ace_searchbtn_close {
1318
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1319
+ border-radius: 50%;
1320
+ border: 0 none;
1321
+ color: #656565;
1322
+ cursor: pointer;
1323
+ font: 16px/16px Arial;
1324
+ padding: 0;
1325
+ height: 14px;
1326
+ width: 14px;
1327
+ top: 9px;
1328
+ right: 7px;
1329
+ position: absolute;
1330
+ }
1331
+ .ace_searchbtn_close:hover {
1332
+ background-color: #656565;
1333
+ background-position: 50% 100%;
1334
+ color: white;
1335
+ }
1336
+
1337
+ .ace_button {
1338
+ margin-left: 2px;
1339
+ cursor: pointer;
1340
+ -webkit-user-select: none;
1341
+ -moz-user-select: none;
1342
+ -o-user-select: none;
1343
+ -ms-user-select: none;
1344
+ user-select: none;
1345
+ overflow: hidden;
1346
+ opacity: 0.7;
1347
+ border: 1px solid rgba(100,100,100,0.23);
1348
+ padding: 1px;
1349
+ box-sizing: border-box!important;
1350
+ color: black;
1351
+ }
1352
+
1353
+ .ace_button:hover {
1354
+ background-color: #eee;
1355
+ opacity:1;
1356
+ }
1357
+ .ace_button:active {
1358
+ background-color: #ddd;
1359
+ }
1360
+
1361
+ .ace_button.checked {
1362
+ border-color: #3399ff;
1363
+ opacity:1;
1364
+ }
1365
+
1366
+ .ace_search_options{
1367
+ margin-bottom: 3px;
1368
+ text-align: right;
1369
+ -webkit-user-select: none;
1370
+ -moz-user-select: none;
1371
+ -o-user-select: none;
1372
+ -ms-user-select: none;
1373
+ user-select: none;
1374
+ clear: both;
1375
+ }
1376
+
1377
+ .ace_search_counter {
1378
+ float: left;
1379
+ font-family: arial;
1380
+ padding: 0 8px;
1381
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(n,r,d){var h=n("../lib/dom"),f=n("../lib/lang"),w=n("../lib/event"),p=n("./searchbox-css"),g=n("../keyboard/hash_handler").HashHandler,s=n("../lib/keys"),l=n("../config").nls,a=999;h.importCssString(p,"ace_searchbox",!1);var u=function(){function m(b,x,E){this.activeInput;var A=h.createElement("div");h.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(b),h.importCssString(p,"ace_searchbox",b.container)}return m.prototype.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},m.prototype.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},m.prototype.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},m.prototype.$init=function(){var b=this.element;this.$initElements(b);var x=this;w.addListener(b,"mousedown",function(E){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(E)}),w.addListener(b,"click",function(E){var A=E.target||E.srcElement,k=A.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),w.stopPropagation(E)}),w.addCommandKeyListener(b,function(E,A,k){var v=s.keyCodeToString(k),T=x.$searchBarKb.findKeyCommand(A,v);T&&T.exec&&(T.exec(x),w.stopEvent(E))}),this.$onChange=f.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},m.prototype.setSearchRange=function(b){this.searchRange=b,b?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},m.prototype.$syncOptions=function(b){h.setCssClass(this.replaceOption,"checked",this.searchRange),h.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",h.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),h.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),h.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,b)},m.prototype.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},m.prototype.find=function(b,x,E){var A=this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:E,range:this.searchRange}),k=!A&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},m.prototype.updateCounter=function(){var b=this.editor,x=b.$search.$options.re,E=x.unicode,A=0,k=0;if(x){var v=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue(),T=b.session.doc.positionToIndex(b.selection.anchor);this.searchRange&&(T-=b.session.doc.positionToIndex(this.searchRange.start));for(var R=x.lastIndex=0,O;(O=x.exec(v))&&(A++,R=O.index,R<=T&&k++,!(A>a||!O[0]&&(x.lastIndex=R+=f.skipEmptyMatch(v,R,E),R>=v.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[k,A>a?a+"+":A])},m.prototype.findNext=function(){this.find(!0,!1)},m.prototype.findPrev=function(){this.find(!0,!0)},m.prototype.findAll=function(){var b=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!b&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},m.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},m.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},m.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},m.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},m.prototype.show=function(b,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,b&&(this.searchInput.value=b),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},m.prototype.isFocused=function(){var b=document.activeElement;return b==this.searchInput||b==this.replaceInput},m}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(m){var b=m.isReplace=!m.isReplace;m.replaceBox.style.display=b?"":"none",m.replaceOption.checked=!1,m.$syncOptions(),m.searchInput.focus()},"Ctrl-H|Command-Option-F":function(m){m.editor.getReadOnly()||(m.replaceOption.checked=!0,m.$syncOptions(),m.replaceInput.focus())},"Ctrl-G|Command-G":function(m){m.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(m){m.findPrev()},esc:function(m){setTimeout(function(){m.hide()})},Return:function(m){m.activeInput==m.replaceInput&&m.replace(),m.findNext()},"Shift-Return":function(m){m.activeInput==m.replaceInput&&m.replace(),m.findPrev()},"Alt-Return":function(m){m.activeInput==m.replaceInput&&m.replaceAll(),m.findAll()},Tab:function(m){(m.activeInput==m.replaceInput?m.searchInput:m.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(m){m.regExpOption.checked=!m.regExpOption.checked,m.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(m){m.caseSensitiveOption.checked=!m.caseSensitiveOption.checked,m.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(m){m.wholeWordOption.checked=!m.wholeWordOption.checked,m.$syncOptions()}},{name:"toggleReplace",exec:function(m){m.replaceOption.checked=!m.replaceOption.checked,m.$syncOptions()}},{name:"searchInSelection",exec:function(m){m.searchOption.checked=!m.searchRange,m.setSearchRange(m.searchOption.checked&&m.editor.getSelectionRange()),m.$syncOptions()}}]);var c=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(m){m.searchBox.hide()}}]);u.prototype.$searchBarKb=o,u.prototype.$closeSearchBarKb=c,r.SearchBox=u,r.Search=function(m,b){var x=m.searchBox||new u(m);x.show(m.session.getTextRange(),b)}}),function(){ace.require(["ace/ext/searchbox"],function(n){t.exports=n})}()}(Mg)),Mg.exports}W_();var U_=Object.defineProperty,q_=(t,e,n)=>e in t?U_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,V_=(t,e,n)=>q_(t,e+"",n);function Rg(t,e){return function(){return t.apply(e,arguments)}}const{toString:G_}=Object.prototype,{getPrototypeOf:qu}=Object,yl=(t=>e=>{const n=G_.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qr=t=>(t=t.toLowerCase(),e=>yl(e)===t),wl=t=>e=>typeof e===t,{isArray:ns}=Array,Ys=wl("undefined");function Y_(t){return t!==null&&!Ys(t)&&t.constructor!==null&&!Ys(t.constructor)&&vr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lg=qr("ArrayBuffer");function K_(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lg(t.buffer),e}const Q_=wl("string"),vr=wl("function"),Og=wl("number"),bl=t=>t!==null&&typeof t=="object",Z_=t=>t===!0||t===!1,vl=t=>{if(yl(t)!=="object")return!1;const e=qu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},J_=qr("Date"),X_=qr("File"),ek=qr("Blob"),tk=qr("FileList"),nk=t=>bl(t)&&vr(t.pipe),rk=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||vr(t.append)&&((e=yl(t))==="formdata"||e==="object"&&vr(t.toString)&&t.toString()==="[object FormData]"))},ik=qr("URLSearchParams"),[ok,sk,ak,lk]=["ReadableStream","Request","Response","Headers"].map(qr),ck=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ks(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,d;if(typeof t!="object"&&(t=[t]),ns(t))for(r=0,d=t.length;r<d;r++)e.call(null,t[r],r,t);else{const h=n?Object.getOwnPropertyNames(t):Object.keys(t),f=h.length;let w;for(r=0;r<f;r++)w=h[r],e.call(null,t[w],w,t)}}function Dg(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,d;for(;r-- >0;)if(d=n[r],e===d.toLowerCase())return d;return null}const bo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ig=t=>!Ys(t)&&t!==bo;function Vu(){const{caseless:t}=Ig(this)&&this||{},e={},n=(r,d)=>{const h=t&&Dg(e,d)||d;vl(e[h])&&vl(r)?e[h]=Vu(e[h],r):vl(r)?e[h]=Vu({},r):ns(r)?e[h]=r.slice():e[h]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&Ks(arguments[r],n);return e}const uk=(t,e,n,{allOwnKeys:r}={})=>(Ks(e,(d,h)=>{n&&vr(d)?t[h]=Rg(d,n):t[h]=d},{allOwnKeys:r}),t),hk=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),dk=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},pk=(t,e,n,r)=>{let d,h,f;const w={};if(e=e||{},t==null)return e;do{for(d=Object.getOwnPropertyNames(t),h=d.length;h-- >0;)f=d[h],(!r||r(f,t,e))&&!w[f]&&(e[f]=t[f],w[f]=!0);t=n!==!1&&qu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},fk=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},gk=t=>{if(!t)return null;if(ns(t))return t;let e=t.length;if(!Og(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},mk=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qu(Uint8Array)),yk=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const d=r.value;e.call(t,d[0],d[1])}},wk=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},bk=qr("HTMLFormElement"),vk=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),Ng=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),xk=qr("RegExp"),Fg=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ks(n,(d,h)=>{let f;(f=e(d,h,t))!==!1&&(r[h]=f||d)}),Object.defineProperties(t,r)},_k=t=>{Fg(t,(e,n)=>{if(vr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(vr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kk=(t,e)=>{const n={},r=d=>{d.forEach(h=>{n[h]=!0})};return ns(t)?r(t):r(String(t).split(e)),n},Sk=()=>{},$k=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Gu="abcdefghijklmnopqrstuvwxyz",Pg="0123456789",Bg={DIGIT:Pg,ALPHA:Gu,ALPHA_DIGIT:Gu+Gu.toUpperCase()+Pg},Ck=(t=16,e=Bg.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Ak(t){return!!(t&&vr(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Tk=t=>{const e=new Array(10),n=(r,d)=>{if(bl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const h=ns(r)?[]:{};return Ks(r,(f,w)=>{const p=n(f,d+1);!Ys(p)&&(h[w]=p)}),e[d]=void 0,h}}return r};return n(t,0)},Mk=qr("AsyncFunction"),Ek=t=>t&&(bl(t)||vr(t))&&vr(t.then)&&vr(t.catch),jg=((t,e)=>t?setImmediate:e?((n,r)=>(bo.addEventListener("message",({source:d,data:h})=>{d===bo&&h===n&&r.length&&r.shift()()},!1),d=>{r.push(d),bo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vr(bo.postMessage)),Rk=typeof queueMicrotask<"u"?queueMicrotask.bind(bo):typeof process<"u"&&process.nextTick||jg,he={isArray:ns,isArrayBuffer:Lg,isBuffer:Y_,isFormData:rk,isArrayBufferView:K_,isString:Q_,isNumber:Og,isBoolean:Z_,isObject:bl,isPlainObject:vl,isReadableStream:ok,isRequest:sk,isResponse:ak,isHeaders:lk,isUndefined:Ys,isDate:J_,isFile:X_,isBlob:ek,isRegExp:xk,isFunction:vr,isStream:nk,isURLSearchParams:ik,isTypedArray:mk,isFileList:tk,forEach:Ks,merge:Vu,extend:uk,trim:ck,stripBOM:hk,inherits:dk,toFlatObject:pk,kindOf:yl,kindOfTest:qr,endsWith:fk,toArray:gk,forEachEntry:yk,matchAll:wk,isHTMLForm:bk,hasOwnProperty:Ng,hasOwnProp:Ng,reduceDescriptors:Fg,freezeMethods:_k,toObjectSet:kk,toCamelCase:vk,noop:Sk,toFiniteNumber:$k,findKey:Dg,global:bo,isContextDefined:Ig,ALPHABET:Bg,generateString:Ck,isSpecCompliantForm:Ak,toJSONObject:Tk,isAsyncFn:Mk,isThenable:Ek,setImmediate:jg,asap:Rk};function nt(t,e,n,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}he.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const Hg=nt.prototype,zg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{zg[t]={value:t}}),Object.defineProperties(nt,zg),Object.defineProperty(Hg,"isAxiosError",{value:!0}),nt.from=(t,e,n,r,d,h)=>{const f=Object.create(Hg);return he.toFlatObject(t,f,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),nt.call(f,t.message,e,n,r,d),f.cause=t,f.name=t.name,h&&Object.assign(f,h),f};const Lk=null;function Yu(t){return he.isPlainObject(t)||he.isArray(t)}function Wg(t){return he.endsWith(t,"[]")?t.slice(0,-2):t}function Ug(t,e,n){return t?t.concat(e).map(function(r,d){return r=Wg(r),!n&&d?"["+r+"]":r}).join(n?".":""):e}function Ok(t){return he.isArray(t)&&!t.some(Yu)}const Dk=he.toFlatObject(he,{},null,function(t){return/^is[A-Z]/.test(t)});function xl(t,e,n){if(!he.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,o){return!he.isUndefined(o[u])});const r=n.metaTokens,d=n.visitor||g,h=n.dots,f=n.indexes,w=(n.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(d))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(he.isDate(u))return u.toISOString();if(!w&&he.isBlob(u))throw new nt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(u)||he.isTypedArray(u)?w&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function g(u,o,c){let m=u;if(u&&!c&&typeof u=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),u=JSON.stringify(u);else if(he.isArray(u)&&Ok(u)||(he.isFileList(u)||he.endsWith(o,"[]"))&&(m=he.toArray(u)))return o=Wg(o),m.forEach(function(b,x){!(he.isUndefined(b)||b===null)&&e.append(f===!0?Ug([o],x,h):f===null?o:o+"[]",p(b))}),!1}return Yu(u)?!0:(e.append(Ug(c,o,h),p(u)),!1)}const s=[],l=Object.assign(Dk,{defaultVisitor:g,convertValue:p,isVisitable:Yu});function a(u,o){if(!he.isUndefined(u)){if(s.indexOf(u)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(u),he.forEach(u,function(c,m){(!(he.isUndefined(c)||c===null)&&d.call(e,c,he.isString(m)?m.trim():m,o,l))===!0&&a(c,o?o.concat(m):[m])}),s.pop()}}if(!he.isObject(t))throw new TypeError("data must be an object");return a(t),e}function qg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ku(t,e){this._pairs=[],t&&xl(t,this,e)}const Vg=Ku.prototype;Vg.append=function(t,e){this._pairs.push([t,e])},Vg.toString=function(t){const e=t?function(n){return t.call(this,n,qg)}:qg;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Ik(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gg(t,e,n){if(!e)return t;const r=n&&n.encode||Ik;he.isFunction(n)&&(n={serialize:n});const d=n&&n.serialize;let h;if(d?h=d(e,n):h=he.isURLSearchParams(e)?e.toString():new Ku(e,n).toString(r),h){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+h}return t}class Yg{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Kg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nk=typeof URLSearchParams<"u"?URLSearchParams:Ku,Fk=typeof FormData<"u"?FormData:null,Pk=typeof Blob<"u"?Blob:null,Bk={isBrowser:!0,classes:{URLSearchParams:Nk,FormData:Fk,Blob:Pk},protocols:["http","https","file","blob","url","data"]},Qu=typeof window<"u"&&typeof document<"u",Zu=typeof navigator=="object"&&navigator||void 0,jk=Qu&&(!Zu||["ReactNative","NativeScript","NS"].indexOf(Zu.product)<0),Hk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zk=Qu&&window.location.href||"http://localhost",Wk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qu,hasStandardBrowserEnv:jk,hasStandardBrowserWebWorkerEnv:Hk,navigator:Zu,origin:zk},Symbol.toStringTag,{value:"Module"})),jn={...Wk,...Bk};function Uk(t,e){return xl(t,new jn.classes.URLSearchParams,Object.assign({visitor:function(n,r,d,h){return jn.isNode&&he.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function qk(t){return he.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Vk(t){const e={},n=Object.keys(t);let r;const d=n.length;let h;for(r=0;r<d;r++)h=n[r],e[h]=t[h];return e}function Qg(t){function e(n,r,d,h){let f=n[h++];if(f==="__proto__")return!0;const w=Number.isFinite(+f),p=h>=n.length;return f=!f&&he.isArray(d)?d.length:f,p?(he.hasOwnProp(d,f)?d[f]=[d[f],r]:d[f]=r,!w):((!d[f]||!he.isObject(d[f]))&&(d[f]=[]),e(n,r,d[f],h)&&he.isArray(d[f])&&(d[f]=Vk(d[f])),!w)}if(he.isFormData(t)&&he.isFunction(t.entries)){const n={};return he.forEachEntry(t,(r,d)=>{e(qk(r),d,n,0)}),n}return null}function Gk(t,e,n){if(he.isString(t))try{return(e||JSON.parse)(t),he.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Qs={transitional:Kg,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,d=he.isObject(t);if(d&&he.isHTMLForm(t)&&(t=new FormData(t)),he.isFormData(t))return r?JSON.stringify(Qg(t)):t;if(he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t)||he.isReadableStream(t))return t;if(he.isArrayBufferView(t))return t.buffer;if(he.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let h;if(d){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Uk(t,this.formSerializer).toString();if((h=he.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return xl(h?{"files[]":t}:t,f&&new f,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),Gk(t)):t}],transformResponse:[function(t){const e=this.transitional||Qs.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(t)||he.isReadableStream(t))return t;if(t&&he.isString(t)&&(n&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(h){if(d)throw h.name==="SyntaxError"?nt.from(h,nt.ERR_BAD_RESPONSE,this,null,this.response):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],t=>{Qs.headers[t]={}});const Yk=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kk=t=>{const e={};let n,r,d;return t&&t.split(`
1382
+ `).forEach(function(h){d=h.indexOf(":"),n=h.substring(0,d).trim().toLowerCase(),r=h.substring(d+1).trim(),!(!n||e[n]&&Yk[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Zg=Symbol("internals");function Zs(t){return t&&String(t).trim().toLowerCase()}function _l(t){return t===!1||t==null?t:he.isArray(t)?t.map(_l):String(t)}function Qk(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Zk=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ju(t,e,n,r,d){if(he.isFunction(r))return r.call(this,e,n);if(d&&(e=n),!!he.isString(e)){if(he.isString(r))return e.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(e)}}function Jk(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Xk(t,e){const n=he.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(d,h,f){return this[r].call(this,e,d,h,f)},configurable:!0})})}class lr{constructor(e){e&&this.set(e)}set(e,n,r){const d=this;function h(w,p,g){const s=Zs(p);if(!s)throw new Error("header name must be a non-empty string");const l=he.findKey(d,s);(!l||d[l]===void 0||g===!0||g===void 0&&d[l]!==!1)&&(d[l||p]=_l(w))}const f=(w,p)=>he.forEach(w,(g,s)=>h(g,s,p));if(he.isPlainObject(e)||e instanceof this.constructor)f(e,n);else if(he.isString(e)&&(e=e.trim())&&!Zk(e))f(Kk(e),n);else if(he.isHeaders(e))for(const[w,p]of e.entries())h(p,w,r);else e!=null&&h(n,e,r);return this}get(e,n){if(e=Zs(e),e){const r=he.findKey(this,e);if(r){const d=this[r];if(!n)return d;if(n===!0)return Qk(d);if(he.isFunction(n))return n.call(this,d,r);if(he.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Zs(e),e){const r=he.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ju(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let d=!1;function h(f){if(f=Zs(f),f){const w=he.findKey(r,f);w&&(!n||Ju(r,r[w],w,n))&&(delete r[w],d=!0)}}return he.isArray(e)?e.forEach(h):h(e),d}clear(e){const n=Object.keys(this);let r=n.length,d=!1;for(;r--;){const h=n[r];(!e||Ju(this,this[h],h,e,!0))&&(delete this[h],d=!0)}return d}normalize(e){const n=this,r={};return he.forEach(this,(d,h)=>{const f=he.findKey(r,h);if(f){n[f]=_l(d),delete n[h];return}const w=e?Jk(h):String(h).trim();w!==h&&delete n[h],n[w]=_l(d),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return he.forEach(this,(r,d)=>{r!=null&&r!==!1&&(n[d]=e&&he.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
1383
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(d=>r.set(d)),r}static accessor(e){const n=(this[Zg]=this[Zg]={accessors:{}}).accessors,r=this.prototype;function d(h){const f=Zs(h);n[f]||(Xk(r,h),n[f]=!0)}return he.isArray(e)?e.forEach(d):d(e),this}}lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(lr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),he.freezeMethods(lr);function Xu(t,e){const n=this||Qs,r=e||n,d=lr.from(r.headers);let h=r.data;return he.forEach(t,function(f){h=f.call(n,h,d.normalize(),e?e.status:void 0)}),d.normalize(),h}function Jg(t){return!!(t&&t.__CANCEL__)}function rs(t,e,n){nt.call(this,t??"canceled",nt.ERR_CANCELED,e,n),this.name="CanceledError"}he.inherits(rs,nt,{__CANCEL__:!0});function Xg(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function eS(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function tS(t,e){t=t||10;const n=new Array(t),r=new Array(t);let d=0,h=0,f;return e=e!==void 0?e:1e3,function(w){const p=Date.now(),g=r[h];f||(f=p),n[d]=w,r[d]=p;let s=h,l=0;for(;s!==d;)l+=n[s++],s=s%t;if(d=(d+1)%t,d===h&&(h=(h+1)%t),p-f<e)return;const a=g&&p-g;return a?Math.round(l*1e3/a):void 0}}function nS(t,e){let n=0,r=1e3/e,d,h;const f=(w,p=Date.now())=>{n=p,d=null,h&&(clearTimeout(h),h=null),t.apply(null,w)};return[(...w)=>{const p=Date.now(),g=p-n;g>=r?f(w,p):(d=w,h||(h=setTimeout(()=>{h=null,f(d)},r-g)))},()=>d&&f(d)]}const kl=(t,e,n=3)=>{let r=0;const d=tS(50,250);return nS(h=>{const f=h.loaded,w=h.lengthComputable?h.total:void 0,p=f-r,g=d(p),s=f<=w;r=f;const l={loaded:f,total:w,progress:w?f/w:void 0,bytes:p,rate:g||void 0,estimated:g&&w&&s?(w-f)/g:void 0,event:h,lengthComputable:w!=null,[e?"download":"upload"]:!0};t(l)},n)},em=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},tm=t=>(...e)=>he.asap(()=>t(...e)),rS=jn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,jn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(jn.origin),jn.navigator&&/(msie|trident)/i.test(jn.navigator.userAgent)):()=>!0,iS=jn.hasStandardBrowserEnv?{write(t,e,n,r,d,h){const f=[t+"="+encodeURIComponent(e)];he.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),he.isString(r)&&f.push("path="+r),he.isString(d)&&f.push("domain="+d),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oS(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function sS(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function nm(t,e){return t&&!oS(e)?sS(t,e):e}const rm=t=>t instanceof lr?{...t}:t;function vo(t,e){e=e||{};const n={};function r(g,s,l,a){return he.isPlainObject(g)&&he.isPlainObject(s)?he.merge.call({caseless:a},g,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function d(g,s,l,a){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g,l,a)}else return r(g,s,l,a)}function h(g,s){if(!he.isUndefined(s))return r(void 0,s)}function f(g,s){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function w(g,s,l){if(l in e)return r(g,s);if(l in t)return r(void 0,g)}const p={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:w,headers:(g,s,l)=>d(rm(g),rm(s),l,!0)};return he.forEach(Object.keys(Object.assign({},t,e)),function(g){const s=p[g]||d,l=s(t[g],e[g],g);he.isUndefined(l)&&s!==w||(n[g]=l)}),n}const im=t=>{const e=vo({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:h,headers:f,auth:w}=e;e.headers=f=lr.from(f),e.url=Gg(nm(e.baseURL,e.url),t.params,t.paramsSerializer),w&&f.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let p;if(he.isFormData(n)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((p=f.getContentType())!==!1){const[g,...s]=p?p.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...s].join("; "))}}if(jn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(e)),r||r!==!1&&rS(e.url))){const g=d&&h&&iS.read(h);g&&f.set(d,g)}return e},aS=typeof XMLHttpRequest<"u",lS=aS&&function(t){return new Promise(function(e,n){const r=im(t);let d=r.data;const h=lr.from(r.headers).normalize();let{responseType:f,onUploadProgress:w,onDownloadProgress:p}=r,g,s,l,a,u;function o(){a&&a(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function m(){if(!c)return;const x=lr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!f||f==="text"||f==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:x,config:t,request:c};Xg(function(A){e(A),o()},function(A){n(A),o()},E),c=null}"onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(n(new nt("Request aborted",nt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new nt("Network Error",nt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Kg;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),n(new nt(x,E.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,t,c)),c=null},d===void 0&&h.setContentType(null),"setRequestHeader"in c&&he.forEach(h.toJSON(),function(x,E){c.setRequestHeader(E,x)}),he.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),f&&f!=="json"&&(c.responseType=r.responseType),p&&([l,u]=kl(p,!0),c.addEventListener("progress",l)),w&&c.upload&&([s,a]=kl(w),c.upload.addEventListener("progress",s),c.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{c&&(n(!x||x.type?new rs(null,t,c):x),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const b=eS(r.url);if(b&&jn.protocols.indexOf(b)===-1){n(new nt("Unsupported protocol "+b+":",nt.ERR_BAD_REQUEST,t));return}c.send(d||null)})},cS=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,d;const h=function(g){if(!d){d=!0,w();const s=g instanceof Error?g:this.reason;r.abort(s instanceof nt?s:new rs(s instanceof Error?s.message:s))}};let f=e&&setTimeout(()=>{f=null,h(new nt(`timeout ${e} of ms exceeded`,nt.ETIMEDOUT))},e);const w=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),t=null)};t.forEach(g=>g.addEventListener("abort",h));const{signal:p}=r;return p.unsubscribe=()=>he.asap(w),p}},uS=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,d;for(;r<n;)d=r+e,yield t.slice(r,d),r=d},hS=async function*(t,e){for await(const n of dS(t))yield*uS(n,e)},dS=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},om=(t,e,n,r)=>{const d=hS(t,e);let h=0,f,w=p=>{f||(f=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:s}=await d.next();if(g){w(),p.close();return}let l=s.byteLength;if(n){let a=h+=l;n(a)}p.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(p){return w(p),d.return()}},{highWaterMark:2})},Sl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sm=Sl&&typeof ReadableStream=="function",pS=Sl&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),am=(t,...e)=>{try{return!!t(...e)}catch{return!1}},fS=sm&&am(()=>{let t=!1;const e=new Request(jn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),lm=64*1024,eh=sm&&am(()=>he.isReadableStream(new Response("").body)),$l={stream:eh&&(t=>t.body)};Sl&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$l[e]&&($l[e]=he.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new nt(`Response type '${e}' is not supported`,nt.ERR_NOT_SUPPORT,r)})})})(new Response);const gS=async t=>{if(t==null)return 0;if(he.isBlob(t))return t.size;if(he.isSpecCompliantForm(t))return(await new Request(jn.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(he.isArrayBufferView(t)||he.isArrayBuffer(t))return t.byteLength;if(he.isURLSearchParams(t)&&(t=t+""),he.isString(t))return(await pS(t)).byteLength},mS=async(t,e)=>he.toFiniteNumber(t.getContentLength())??gS(e),yS=Sl&&(async t=>{let{url:e,method:n,data:r,signal:d,cancelToken:h,timeout:f,onDownloadProgress:w,onUploadProgress:p,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=im(t);g=g?(g+"").toLowerCase():"text";let u=cS([d,h&&h.toAbortSignal()],f),o;const c=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(p&&fS&&n!=="get"&&n!=="head"&&(m=await mS(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),v;if(he.isFormData(r)&&(v=k.headers.get("content-type"))&&s.setContentType(v),k.body){const[T,R]=em(m,kl(tm(p)));r=om(k.body,lm,T,R)}}he.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:u,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=eh&&(g==="stream"||g==="response");if(eh&&(w||E&&c)){const k={};["status","statusText","headers"].forEach(O=>{k[O]=x[O]});const v=he.toFiniteNumber(x.headers.get("content-length")),[T,R]=w&&em(v,kl(tm(w),!0))||[];x=new Response(om(x.body,lm,T,()=>{R&&R(),c&&c()}),k)}g=g||"text";let A=await $l[he.findKey($l,g)||"text"](x,t);return!E&&c&&c(),await new Promise((k,v)=>{Xg(k,v,{data:A,headers:lr.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:o})})}catch(b){throw c&&c(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,t,o),{cause:b.cause||b}):nt.from(b,b&&b.code,t,o)}}),th={http:Lk,xhr:lS,fetch:yS};he.forEach(th,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const cm=t=>`- ${t}`,wS=t=>he.isFunction(t)||t===null||t===!1,um={getAdapter:t=>{t=he.isArray(t)?t:[t];const{length:e}=t;let n,r;const d={};for(let h=0;h<e;h++){n=t[h];let f;if(r=n,!wS(n)&&(r=th[(f=String(n)).toLowerCase()],r===void 0))throw new nt(`Unknown adapter '${f}'`);if(r)break;d[f||"#"+h]=r}if(!r){const h=Object.entries(d).map(([w,p])=>`adapter ${w} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=e?h.length>1?`since :
1384
+ `+h.map(cm).join(`
1385
+ `):" "+cm(h[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:th};function nh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new rs(null,t)}function hm(t){return nh(t),t.headers=lr.from(t.headers),t.data=Xu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),um.getAdapter(t.adapter||Qs.adapter)(t).then(function(e){return nh(t),e.data=Xu.call(t,t.transformResponse,e),e.headers=lr.from(e.headers),e},function(e){return Jg(e)||(nh(t),e&&e.response&&(e.response.data=Xu.call(t,t.transformResponse,e.response),e.response.headers=lr.from(e.response.headers))),Promise.reject(e)})}const dm="1.7.9",Cl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Cl[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const pm={};Cl.transitional=function(t,e,n){function r(d,h){return"[Axios v"+dm+"] Transitional option '"+d+"'"+h+(n?". "+n:"")}return(d,h,f)=>{if(t===!1)throw new nt(r(h," has been removed"+(e?" in "+e:"")),nt.ERR_DEPRECATED);return e&&!pm[h]&&(pm[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(d,h,f):!0}},Cl.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function bS(t,e,n){if(typeof t!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let d=r.length;for(;d-- >0;){const h=r[d],f=e[h];if(f){const w=t[h],p=w===void 0||f(w,h,t);if(p!==!0)throw new nt("option "+h+" must be "+p,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+h,nt.ERR_BAD_OPTION)}}const Al={assertOptions:bS,validators:Cl},ri=Al.validators;class xo{constructor(e){this.defaults=e,this.interceptors={request:new Yg,response:new Yg}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const h=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1386
+ `+h):r.stack=h}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=vo(this.defaults,n);const{transitional:r,paramsSerializer:d,headers:h}=n;r!==void 0&&Al.assertOptions(r,{silentJSONParsing:ri.transitional(ri.boolean),forcedJSONParsing:ri.transitional(ri.boolean),clarifyTimeoutError:ri.transitional(ri.boolean)},!1),d!=null&&(he.isFunction(d)?n.paramsSerializer={serialize:d}:Al.assertOptions(d,{encode:ri.function,serialize:ri.function},!0)),Al.assertOptions(n,{baseUrl:ri.spelling("baseURL"),withXsrfToken:ri.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&he.merge(h.common,h[n.method]);h&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),n.headers=lr.concat(f,h);const w=[];let p=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(n)===!1||(p=p&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!p){const o=[hm.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(n);l<a;)s=s.then(o[l++],o[l++]);return s}a=w.length;let u=n;for(l=0;l<a;){const o=w[l++],c=w[l++];try{u=o(u)}catch(m){c.call(this,m);break}}try{s=hm.call(this,u)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=vo(this.defaults,e);const n=nm(e.baseURL,e.url);return Gg(n,e.params,e.paramsSerializer)}}he.forEach(["delete","get","head","options"],function(t){xo.prototype[t]=function(e,n){return this.request(vo(n||{},{method:t,url:e,data:(n||{}).data}))}}),he.forEach(["post","put","patch"],function(t){function e(n){return function(r,d,h){return this.request(vo(h||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}xo.prototype[t]=e(),xo.prototype[t+"Form"]=e(!0)});class rh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](d);r._listeners=null}),this.promise.then=d=>{let h;const f=new Promise(w=>{r.subscribe(w),h=w}).then(d);return f.cancel=function(){r.unsubscribe(h)},f},e(function(d,h,f){r.reason||(r.reason=new rs(d,h,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new rh(function(n){e=n}),cancel:e}}}function vS(t){return function(e){return t.apply(null,e)}}function xS(t){return he.isObject(t)&&t.isAxiosError===!0}const ih={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ih).forEach(([t,e])=>{ih[e]=t});function fm(t){const e=new xo(t),n=Rg(xo.prototype.request,e);return he.extend(n,xo.prototype,e,{allOwnKeys:!0}),he.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return fm(vo(t,r))},n}const mn=fm(Qs);mn.Axios=xo,mn.CanceledError=rs,mn.CancelToken=rh,mn.isCancel=Jg,mn.VERSION=dm,mn.toFormData=xl,mn.AxiosError=nt,mn.Cancel=mn.CanceledError,mn.all=function(t){return Promise.all(t)},mn.spread=vS,mn.isAxiosError=xS,mn.mergeConfig=vo,mn.AxiosHeaders=lr,mn.formToJSON=t=>Qg(he.isHTMLForm(t)?new FormData(t):t),mn.getAdapter=um.getAdapter,mn.HttpStatusCode=ih,mn.default=mn;const oh=mn.create({baseURL:location.origin,timeout:6e4,params:{}});oh.interceptors.response.use(t=>t,t=>{var e,n,r,d,h,f,w,p,g,s,l;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let a=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(a+=`${t.response.statusText} `),(r=(n=t.response)==null?void 0:n.config)!=null&&r.data&&(a+=`${t.response.config.data} `),(h=(d=t.response)==null?void 0:d.data)!=null&&h.message?a+=`${t.response.data.message}`:(w=(f=t.response)==null?void 0:f.data)!=null&&w.exception?a+=`${t.response.data.exception}`:(s=(g=(p=t.response)==null?void 0:p.data)==null?void 0:g.error)!=null&&s.message?(t.response.data.error.class&&(a+=`${t.response.data.error.class} `),a+=`${t.response.data.error.message}`):a+=`${(l=t.response)==null?void 0:l.data}`;const{$cosmosNotify:u}=window;throw u&&u.serious({title:"Network error",body:a}),t}else throw t});const Tl=async function(t,e,{data:n,params:r={},headers:d,noAuth:h=!1,noScope:f=!1,onUploadProgress:w=!1}={}){if(!h){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}d.Authorization=localStorage.openc3Token}return d.manual=!0,!f&&!r.scope&&(r.scope=window.openc3Scope),oh({method:t,url:e,data:n,params:r,headers:d,onUploadProgress:w})},sh={Accept:"application/json"},gm={...sh,"Content-Type":"application/json"},EF=Wr("I",{get:function(t,{params:e,headers:n=sh,noScope:r,noAuth:d,onUploadProgress:h}={}){return Tl("get",t,{params:e,headers:n,noScope:r,noAuth:d,onUploadProgress:h})},put:function(t,{data:e,params:n,headers:r=gm,noScope:d,noAuth:h,onUploadProgress:f}={}){return Tl("put",t,{data:e,params:n,headers:r,noScope:d,noAuth:h,onUploadProgress:f})},post:function(t,{data:e,params:n,headers:r=gm,noScope:d,noAuth:h,onUploadProgress:f}={}){return Tl("post",t,{data:e,params:n,headers:r,noScope:d,noAuth:h,onUploadProgress:f})},delete:function(t,{params:e,headers:n=sh,noScope:r,noAuth:d,onUploadProgress:h}={}){return Tl("delete",t,{params:e,headers:n,noScope:r,noAuth:d,onUploadProgress:h})}});var Ml={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Qt={log(...t){this.enabled&&(t.push(Date.now()),Ml.logger.log("[ActionCable]",...t))}};const Js=()=>new Date().getTime(),El=t=>(Js()-t)/1e3;class Rl{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=Js(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Qt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=Js(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Qt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=Js()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Qt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=Js(),Qt.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,r=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),d=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*r*(1+d)}reconnectIfStale(){this.connectionIsStale()&&(Qt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${El(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Qt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${El(this.disconnectedAt)} s`):(Qt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return El(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&El(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Qt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Rl.staleThreshold=6,Rl.reconnectionBackoffRate=.15;var mm={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:Xs,protocols:ah}=mm,_S=ah.slice(0,ah.length-1),ym=[].indexOf;class lh{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new Rl(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return Qt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...ah,...this.consumer.subprotocols||[]];return Qt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Ml.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Qt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){Qt.log("Failed to reopen WebSocket",e)}finally{Qt.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return ym.call(_S,this.getProtocol())>=0}isState(...e){return ym.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in Ml.WebSocket)if(Ml.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}lh.reopenDelay=500,lh.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:r,reconnect:d,type:h}=JSON.parse(t.data);switch(h){case Xs.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Xs.disconnect:return Qt.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:d});case Xs.ping:return this.monitor.recordPing();case Xs.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case Xs.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(Qt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Qt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(Qt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Qt.log("WebSocket onerror event")}};const kS=function(t,e){if(e!=null)for(let n in e){const r=e[n];t[n]=r}return t};class SS{constructor(e,n={},r){this.consumer=e,this.identifier=JSON.stringify(n),kS(this,r)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class $S{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(Qt.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):Qt.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){Qt.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{Qt.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class CS{constructor(e){this.consumer=e,this.guarantor=new $S(this),this.subscriptions=[]}create(e,n){const r=e,d=typeof r=="object"?r:{channel:r},h=new SS(this.consumer,d,n);return this.add(h)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(r=>this.notify(r,e,...n))}notify(e,n,...r){let d;return typeof e=="string"?d=this.findAll(e):d=[e],d.map(h=>typeof h[n]=="function"?h[n](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){Qt.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:r}=e;return this.consumer.send({command:n,identifier:r})}}class AS{constructor(e){this._url=e,this.subscriptions=new CS(this),this.connection=new lh(this),this.subprotocols=[]}get url(){return TS(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function TS(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function MS(t=ES("url")||mm.default_mount_path){return new AS(t)}function ES(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}Rl.staleThreshold=10;let RF=Wr("O",class{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(t,e,n={},r={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(d=>{if(d&&OpenC3Auth.setTokens(),this._cable==null){let h=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=MS(h)}return this._cable.subscriptions.create({channel:t,...r},n)})}recordPing(){this._cable.connection.monitor.recordPing()}});class RS{constructor(e,n,r="",d=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=n,this.usage=r,this.url=d}}Wr("a",RS);class wm{constructor(){V_(this,"id",1)}async exec(e,n,r={},d={},h=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,d.manual=!0,(await oh.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...d},timeout:h})).data.result}catch(f){let w=new Error;throw f.response?(w.name=f.response.data.error.data.class,w.message=f.response.data.error.data.message,w.object=f.response.data.error):f.request?(w.name="Request error",w.message="Request error, no response received"):w.name="Unknown error",w}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...r){return this.exec("interface_cmd",[e,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,r){return this.exec("get_item",[e,n,r])}get_param(e,n,r){return this.exec("get_param",[e,n,r])}get_parameter(e,n,r){return this.exec("get_param",[e,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,r,d=30){const h=await this.exec("get_tlm_packet",[e,n],{type:r,stale_time:d});if(h!=null){let f=h.length,w=null;for(let p=0;p<f;p++)w=this.decode_openc3_type(h[p][1]),w!==null&&(h[p][1]=w)}return h}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,r=null){let d={stale_time:n};r!==null&&(d.cache_timeout=r);const h=await this.exec("get_tlm_values",[e],d,{},1e4);let f=h[0].length,w=null;for(let p=0;p<f;p++)w=this.decode_openc3_type(h[0][p]),w!==null&&(h[0][p]=w);return h}get_limits(e,n,r){return this.exec("get_limits",[e,n,r])}async tlm(e,n,r,d="CONVERTED"){let h=null;if(n===void 0)h=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))h=await this.exec("tlm",[e],{type:n});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else h=await this.exec("tlm",[e,n,r],{type:d});let f=this.decode_openc3_type(h);return f!==null&&(h=f),h}async inject_tlm(e,n,r=null,d="CONVERTED"){data=await this.exec("inject_tlm",[e,n,r],{type:d})}set_tlm(e,n,r,d){return this.exec("set_tlm",[e,n,r],{type:d})}override_tlm(e,n,r,d){return this.exec("override_tlm",[e,n,r],{type:d})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,r,d){return this.exec("normalize_tlm",[e,n,r],{type:d})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,r,d="CONVERTED"){return this.exec("get_cmd_value",[e,n,r,d])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,r,d,h){let f=null;for(let w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f=this.encode_openc3_type(d[w]),f!==null&&(d[w]=f));return this.exec(e,[n,r,d],{},h)}get_cmd_hazardous(e,n,r,d={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},d):this._cmd("get_cmd_hazardous",e,n,r,d)}cmd(e,n,r,d={}){return n===void 0?this.exec("cmd",e,{},d):this._cmd("cmd",e,n,r,d)}cmd_no_range_check(e,n,r,d={}){return n===void 0?this.exec("cmd_no_range_check",e,{},d):this._cmd("cmd_no_range_check",e,n,r,d)}cmd_raw(e,n,r,d={}){return n===void 0?this.exec("cmd_raw",e,{},d):this._cmd("cmd_raw",e,n,r,d)}cmd_raw_no_range_check(e,n,r,d={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},d):this._cmd("cmd_raw_no_range_check",e,n,r,d)}cmd_no_hazardous_check(e,n,r,d={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},d):this._cmd("cmd_no_hazardous_check",e,n,r,d)}cmd_no_checks(e,n,r,d={}){return n===void 0?this.exec("cmd_no_checks",e,{},d):this._cmd("cmd_no_checks",e,n,r,d)}cmd_raw_no_hazardous_check(e,n,r,d={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},d):this._cmd("cmd_raw_no_hazardous_check",e,n,r,d)}cmd_raw_no_checks(e,n,r,d={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},d):this._cmd("cmd_raw_no_checks",e,n,r,d)}build_cmd(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}build_command(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,r){return this.exec("save_config",[e,n,r])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,r){return this.exec("enable_limits",[e,n,r])}disable_limits(e,n,r){return this.exec("disable_limits",[e,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),d=new Uint8Array(r);return Array.from(d).map(h=>h.toString(16).padStart(2,"0")).join("")}}}Wr("F",wm);const LS={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let t=0;t<this.currentPackets.length;t++)if(this.currentPackets[t].mode==="RAW")return!0;return!1},hasDecom:function(){for(let t=0;t<this.currentPackets.length;t++)if(this.currentPackets[t].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(t){this.$emit("config",t)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(t){this.latestData=t}}};var Ll={exports:{}};/**
1387
+ * @license
1388
+ * Lodash <https://lodash.com/>
1389
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1390
+ * Released under MIT license <https://lodash.com/license>
1391
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1392
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1393
+ */var OS=Ll.exports,bm;function DS(){return bm||(bm=1,function(t,e){(function(){var n,r="4.17.21",d=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",w="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",l=1,a=2,u=4,o=1,c=2,m=1,b=2,x=4,E=8,A=16,k=32,v=64,T=128,R=256,O=512,M=30,N="...",S=800,_=16,$=1,L=2,D=3,F=1/0,B=9007199254740991,W=17976931348623157e292,q=NaN,V=4294967295,X=V-1,G=V>>>1,Z=[["ary",T],["bind",m],["bindKey",b],["curry",E],["curryRight",A],["flip",O],["partial",k],["partialRight",v],["rearg",R]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",we="[object Boolean]",ve="[object Date]",me="[object DOMException]",Se="[object Error]",lt="[object Function]",Ht="[object GeneratorFunction]",ft="[object Map]",yt="[object Number]",un="[object Null]",Ft="[object Object]",Jt="[object Promise]",ci="[object Proxy]",Tn="[object RegExp]",rn="[object Set]",Be="[object String]",ze="[object Symbol]",on="[object Undefined]",Ue="[object WeakMap]",ce="[object WeakSet]",Te="[object ArrayBuffer]",Re="[object DataView]",Ge="[object Float32Array]",Ke="[object Float64Array]",gt="[object Int8Array]",mt="[object Int16Array]",ht="[object Int32Array]",dt="[object Uint8Array]",ot="[object Uint8ClampedArray]",qt="[object Uint16Array]",qn="[object Uint32Array]",ki=/\b__p \+= '';/g,hr=/\b(__p \+=) '' \+/g,ya=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wa=/&(?:amp|lt|gt|quot|#39);/g,bc=/[&<>"']/g,rp=RegExp(wa.source),ip=RegExp(bc.source),op=/<%-([\s\S]+?)%>/g,sp=/<%([\s\S]+?)%>/g,je=/<%=([\s\S]+?)%>/g,Si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,In=/^\w*$/,ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/[\\^$.*+?()[\]{}|]/g,qi=RegExp(hi.source),Vn=/^\s+/,Vi=/\s/,Gi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,vc=/\{\n\/\* \[wrapped with (.+)\] \*/,xc=/,? & /,ap=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lp=/[()=,{}\[\]\/\s]/,$i=/\\(\\)?/g,cp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yi=/\w*$/,_c=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,Mn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,vn=/^(?:0|[1-9]\d*)$/,vs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,Do=/['\n\r\u2028\u2029\\]/g,Io="\\ud800-\\udfff",ba="\\u0300-\\u036f",xs="\\ufe20-\\ufe2f",Ki="\\u20d0-\\u20ff",_s=ba+xs+Ki,ks="\\u2700-\\u27bf",Ss="a-z\\xdf-\\xf6\\xf8-\\xff",va="\\xac\\xb1\\xd7\\xf7",xa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_a="\\u2000-\\u206f",ka=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dr="A-Z\\xc0-\\xd6\\xd8-\\xde",Sa="\\ufe0e\\ufe0f",$a=va+xa+_a+ka,No="['’]",kc="["+Io+"]",Sc="["+$a+"]",$s="["+_s+"]",$c="\\d+",Cc="["+ks+"]",Ca="["+Ss+"]",Ac="[^"+Io+$a+$c+ks+Ss+Dr+"]",Cs="\\ud83c[\\udffb-\\udfff]",Aa="(?:"+$s+"|"+Cs+")",Fo="[^"+Io+"]",Qi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ta="[\\ud800-\\udbff][\\udc00-\\udfff]",pi="["+Dr+"]",Tc="\\u200d",Mc="(?:"+Ca+"|"+Ac+")",up="(?:"+pi+"|"+Ac+")",Ci="(?:"+No+"(?:d|ll|m|re|s|t|ve))?",Po="(?:"+No+"(?:D|LL|M|RE|S|T|VE))?",As=Aa+"?",Zi="["+Sa+"]?",hp="(?:"+Tc+"(?:"+[Fo,Qi,Ta].join("|")+")"+Zi+As+")*",Ji="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ma=Zi+As+hp,Ea="(?:"+[Cc,Qi,Ta].join("|")+")"+Ma,Ra="(?:"+[Fo+$s+"?",$s,Qi,Ta,kc].join("|")+")",La=RegExp(No,"g"),Xi=RegExp($s,"g"),fi=RegExp(Cs+"(?="+Cs+")|"+Ra+Ma,"g"),Ec=RegExp([pi+"?"+Ca+"+"+Ci+"(?="+[Sc,pi,"$"].join("|")+")",up+"+"+Po+"(?="+[Sc,pi+Mc,"$"].join("|")+")",pi+"?"+Mc+"+"+Ci,pi+"+"+Po,dp,Ji,$c,Ea].join("|"),"g"),Rc=RegExp("["+Tc+Io+_s+Sa+"]"),eo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,to=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lc=-1,It={};It[Ge]=It[Ke]=It[gt]=It[mt]=It[ht]=It[dt]=It[ot]=It[qt]=It[qn]=!0,It[re]=It[J]=It[Te]=It[we]=It[Re]=It[ve]=It[Se]=It[lt]=It[ft]=It[yt]=It[Ft]=It[Tn]=It[rn]=It[Be]=It[Ue]=!1;var He={};He[re]=He[J]=He[Te]=He[Re]=He[we]=He[ve]=He[Ge]=He[Ke]=He[gt]=He[mt]=He[ht]=He[ft]=He[yt]=He[Ft]=He[Tn]=He[rn]=He[Be]=He[ze]=He[dt]=He[ot]=He[qt]=He[qn]=!0,He[Se]=He[lt]=He[Ue]=!1;var zt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},gi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},En={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_n=parseFloat,Pt=parseInt,Ai=typeof zi=="object"&&zi&&zi.Object===Object&&zi,Ts=typeof self=="object"&&self&&self.Object===Object&&self,Rn=Ai||Ts||Function("return this")(),Ir=e&&!e.nodeType&&e,Nn=Ir&&!0&&t&&!t.nodeType&&t,Oc=Nn&&Nn.exports===Ir,Oa=Oc&&Ai.process,dr=function(){try{var ne=Nn&&Nn.require&&Nn.require("util").types;return ne||Oa&&Oa.binding&&Oa.binding("util")}catch{}}(),Dc=dr&&dr.isArrayBuffer,Nr=dr&&dr.isDate,Qr=dr&&dr.isMap,mi=dr&&dr.isRegExp,Ti=dr&&dr.isSet,Ic=dr&&dr.isTypedArray;function Gt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function pp(ne,le,se,$e){for(var Pe=-1,Ze=ne==null?0:ne.length;++Pe<Ze;){var Mt=ne[Pe];le($e,Mt,se(Mt),ne)}return $e}function tr(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e&&le(ne[se],se,ne)!==!1;);return ne}function Nc(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function no(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(!le(ne[se],se,ne))return!1;return!0}function pr(ne,le){for(var se=-1,$e=ne==null?0:ne.length,Pe=0,Ze=[];++se<$e;){var Mt=ne[se];le(Mt,se,ne)&&(Ze[Pe++]=Mt)}return Ze}function Ms(ne,le){var se=ne==null?0:ne.length;return!!se&&Mi(ne,le,0)>-1}function Bo(ne,le,se){for(var $e=-1,Pe=ne==null?0:ne.length;++$e<Pe;)if(se(le,ne[$e]))return!0;return!1}function Wt(ne,le){for(var se=-1,$e=ne==null?0:ne.length,Pe=Array($e);++se<$e;)Pe[se]=le(ne[se],se,ne);return Pe}function Yn(ne,le){for(var se=-1,$e=le.length,Pe=ne.length;++se<$e;)ne[Pe+se]=le[se];return ne}function Fr(ne,le,se,$e){var Pe=-1,Ze=ne==null?0:ne.length;for($e&&Ze&&(se=ne[++Pe]);++Pe<Ze;)se=le(se,ne[Pe],Pe,ne);return se}function jo(ne,le,se,$e){var Pe=ne==null?0:ne.length;for($e&&Pe&&(se=ne[--Pe]);Pe--;)se=le(se,ne[Pe],Pe,ne);return se}function Es(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(le(ne[se],se,ne))return!0;return!1}var Da=Ba("length");function Ia(ne){return ne.split("")}function Rs(ne){return ne.match(ap)||[]}function Na(ne,le,se){var $e;return se(ne,function(Pe,Ze,Mt){if(le(Pe,Ze,Mt))return $e=Ze,!1}),$e}function Ho(ne,le,se,$e){for(var Pe=ne.length,Ze=se+($e?1:-1);$e?Ze--:++Ze<Pe;)if(le(ne[Ze],Ze,ne))return Ze;return-1}function Mi(ne,le,se){return le===le?Qe(ne,le,se):Ho(ne,Fa,se)}function Fc(ne,le,se,$e){for(var Pe=se-1,Ze=ne.length;++Pe<Ze;)if($e(ne[Pe],le))return Pe;return-1}function Fa(ne){return ne!==ne}function Pa(ne,le){var se=ne==null?0:ne.length;return se?io(ne,le)/se:q}function Ba(ne){return function(le){return le==null?n:le[ne]}}function Ls(ne){return function(le){return ne==null?n:ne[le]}}function ja(ne,le,se,$e,Pe){return Pe(ne,function(Ze,Mt,Xe){se=$e?($e=!1,Ze):le(se,Ze,Mt,Xe)}),se}function ro(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function io(ne,le){for(var se,$e=-1,Pe=ne.length;++$e<Pe;){var Ze=le(ne[$e]);Ze!==n&&(se=se===n?Ze:se+Ze)}return se}function sn(ne,le){for(var se=-1,$e=Array(ne);++se<ne;)$e[se]=le(se);return $e}function Pc(ne,le){return Wt(le,function(se){return[se,ne[se]]})}function Xt(ne){return ne&&ne.slice(0,Je(ne)+1).replace(Vn,"")}function Kn(ne){return function(le){return ne(le)}}function zo(ne,le){return Wt(le,function(se){return ne[se]})}function Zr(ne,le){return ne.has(le)}function Bc(ne,le){for(var se=-1,$e=ne.length;++se<$e&&Mi(le,ne[se],0)>-1;);return se}function jc(ne,le){for(var se=ne.length;se--&&Mi(le,ne[se],0)>-1;);return se}function Ha(ne,le){for(var se=ne.length,$e=0;se--;)ne[se]===le&&++$e;return $e}var P=Ls(zt),H=Ls(gi);function Y(ne){return"\\"+xn[ne]}function K(ne,le){return ne==null?n:ne[le]}function te(ne){return Rc.test(ne)}function oe(ne){return eo.test(ne)}function fe(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function xe(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e,Pe){se[++le]=[Pe,$e]}),se}function _e(ne,le){return function(se){return ne(le(se))}}function ke(ne,le){for(var se=-1,$e=ne.length,Pe=0,Ze=[];++se<$e;){var Mt=ne[se];(Mt===le||Mt===s)&&(ne[se]=s,Ze[Pe++]=se)}return Ze}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=$e}),se}function Me(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=[$e,$e]}),se}function Qe(ne,le,se){for(var $e=se-1,Pe=ne.length;++$e<Pe;)if(ne[$e]===le)return $e;return-1}function Lt(ne,le,se){for(var $e=se+1;$e--;)if(ne[$e]===le)return $e;return $e}function st(ne){return te(ne)?Tt(ne):Da(ne)}function Ye(ne){return te(ne)?en(ne):Ia(ne)}function Je(ne){for(var le=ne.length;le--&&Vi.test(ne.charAt(le)););return le}var Oe=Ls(En);function Tt(ne){for(var le=fi.lastIndex=0;fi.test(ne);)++le;return le}function en(ne){return ne.match(fi)||[]}function Yt(ne){return ne.match(Ec)||[]}var Bt=function ne(le){le=le==null?Rn:jt.defaults(Rn.Object(),le,jt.pick(Rn,to));var se=le.Array,$e=le.Date,Pe=le.Error,Ze=le.Function,Mt=le.Math,Xe=le.Object,Ln=le.RegExp,nr=le.String,On=le.TypeError,Cr=se.prototype,fr=Ze.prototype,Os=Xe.prototype,Hc=le["__core-js_shared__"],zc=fr.toString,Ot=Os.hasOwnProperty,SL=0,mb=function(){var i=/[^.]+$/.exec(Hc&&Hc.keys&&Hc.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Wc=Os.toString,$L=zc.call(Xe),CL=Rn._,AL=Ln("^"+zc.call(Ot).replace(hi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uc=Oc?le.Buffer:n,oo=le.Symbol,qc=le.Uint8Array,yb=Uc?Uc.allocUnsafe:n,Vc=_e(Xe.getPrototypeOf,Xe),wb=Xe.create,bb=Os.propertyIsEnumerable,Gc=Cr.splice,vb=oo?oo.isConcatSpreadable:n,za=oo?oo.iterator:n,Wo=oo?oo.toStringTag:n,Yc=function(){try{var i=Yo(Xe,"defineProperty");return i({},"",{}),i}catch{}}(),TL=le.clearTimeout!==Rn.clearTimeout&&le.clearTimeout,ML=$e&&$e.now!==Rn.Date.now&&$e.now,EL=le.setTimeout!==Rn.setTimeout&&le.setTimeout,Kc=Mt.ceil,Qc=Mt.floor,fp=Xe.getOwnPropertySymbols,RL=Uc?Uc.isBuffer:n,xb=le.isFinite,LL=Cr.join,OL=_e(Xe.keys,Xe),Dn=Mt.max,Qn=Mt.min,DL=$e.now,IL=le.parseInt,_b=Mt.random,NL=Cr.reverse,gp=Yo(le,"DataView"),Wa=Yo(le,"Map"),mp=Yo(le,"Promise"),Ds=Yo(le,"Set"),Ua=Yo(le,"WeakMap"),qa=Yo(Xe,"create"),Zc=Ua&&new Ua,Is={},FL=Ko(gp),PL=Ko(Wa),BL=Ko(mp),jL=Ko(Ds),HL=Ko(Ua),Jc=oo?oo.prototype:n,Va=Jc?Jc.valueOf:n,kb=Jc?Jc.toString:n;function z(i){if(an(i)&&!et(i)&&!(i instanceof xt)){if(i instanceof Pr)return i;if(Ot.call(i,"__wrapped__"))return Sv(i)}return new Pr(i)}var Ns=function(){function i(){}return function(y){if(!tn(y))return{};if(wb)return wb(y);i.prototype=y;var C=new i;return i.prototype=n,C}}();function Xc(){}function Pr(i,y){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!y,this.__index__=0,this.__values__=n}z.templateSettings={escape:op,evaluate:sp,interpolate:je,variable:"",imports:{_:z}},z.prototype=Xc.prototype,z.prototype.constructor=z,Pr.prototype=Ns(Xc.prototype),Pr.prototype.constructor=Pr;function xt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function zL(){var i=new xt(this.__wrapped__);return i.__actions__=gr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=gr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=gr(this.__views__),i}function WL(){if(this.__filtered__){var i=new xt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function UL(){var i=this.__wrapped__.value(),y=this.__dir__,C=et(i),I=y<0,j=C?i.length:0,U=n2(0,j,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,ge=I?ee:Q-1,ye=this.__iteratees__,be=ye.length,Ae=0,Ie=Qn(ie,this.__takeCount__);if(!C||!I&&j==ie&&Ie==ie)return Gb(i,this.__actions__);var qe=[];e:for(;ie--&&Ae<Ie;){ge+=y;for(var ct=-1,Ve=i[ge];++ct<be;){var wt=ye[ct],_t=wt.iteratee,Mr=wt.type,or=_t(Ve);if(Mr==L)Ve=or;else if(!or){if(Mr==$)continue e;break e}}qe[Ae++]=Ve}return qe}xt.prototype=Ns(Xc.prototype),xt.prototype.constructor=xt;function Uo(i){var y=-1,C=i==null?0:i.length;for(this.clear();++y<C;){var I=i[y];this.set(I[0],I[1])}}function qL(){this.__data__=qa?qa(null):{},this.size=0}function VL(i){var y=this.has(i)&&delete this.__data__[i];return this.size-=y?1:0,y}function GL(i){var y=this.__data__;if(qa){var C=y[i];return C===p?n:C}return Ot.call(y,i)?y[i]:n}function YL(i){var y=this.__data__;return qa?y[i]!==n:Ot.call(y,i)}function KL(i,y){var C=this.__data__;return this.size+=this.has(i)?0:1,C[i]=qa&&y===n?p:y,this}Uo.prototype.clear=qL,Uo.prototype.delete=VL,Uo.prototype.get=GL,Uo.prototype.has=YL,Uo.prototype.set=KL;function Ei(i){var y=-1,C=i==null?0:i.length;for(this.clear();++y<C;){var I=i[y];this.set(I[0],I[1])}}function QL(){this.__data__=[],this.size=0}function ZL(i){var y=this.__data__,C=eu(y,i);if(C<0)return!1;var I=y.length-1;return C==I?y.pop():Gc.call(y,C,1),--this.size,!0}function JL(i){var y=this.__data__,C=eu(y,i);return C<0?n:y[C][1]}function XL(i){return eu(this.__data__,i)>-1}function eO(i,y){var C=this.__data__,I=eu(C,i);return I<0?(++this.size,C.push([i,y])):C[I][1]=y,this}Ei.prototype.clear=QL,Ei.prototype.delete=ZL,Ei.prototype.get=JL,Ei.prototype.has=XL,Ei.prototype.set=eO;function Ri(i){var y=-1,C=i==null?0:i.length;for(this.clear();++y<C;){var I=i[y];this.set(I[0],I[1])}}function tO(){this.size=0,this.__data__={hash:new Uo,map:new(Wa||Ei),string:new Uo}}function nO(i){var y=du(this,i).delete(i);return this.size-=y?1:0,y}function rO(i){return du(this,i).get(i)}function iO(i){return du(this,i).has(i)}function oO(i,y){var C=du(this,i),I=C.size;return C.set(i,y),this.size+=C.size==I?0:1,this}Ri.prototype.clear=tO,Ri.prototype.delete=nO,Ri.prototype.get=rO,Ri.prototype.has=iO,Ri.prototype.set=oO;function qo(i){var y=-1,C=i==null?0:i.length;for(this.__data__=new Ri;++y<C;)this.add(i[y])}function sO(i){return this.__data__.set(i,p),this}function aO(i){return this.__data__.has(i)}qo.prototype.add=qo.prototype.push=sO,qo.prototype.has=aO;function Jr(i){var y=this.__data__=new Ei(i);this.size=y.size}function lO(){this.__data__=new Ei,this.size=0}function cO(i){var y=this.__data__,C=y.delete(i);return this.size=y.size,C}function uO(i){return this.__data__.get(i)}function hO(i){return this.__data__.has(i)}function dO(i,y){var C=this.__data__;if(C instanceof Ei){var I=C.__data__;if(!Wa||I.length<d-1)return I.push([i,y]),this.size=++C.size,this;C=this.__data__=new Ri(I)}return C.set(i,y),this.size=C.size,this}Jr.prototype.clear=lO,Jr.prototype.delete=cO,Jr.prototype.get=uO,Jr.prototype.has=hO,Jr.prototype.set=dO;function Sb(i,y){var C=et(i),I=!C&&Qo(i),j=!C&&!I&&uo(i),U=!C&&!I&&!j&&js(i),Q=C||I||j||U,ee=Q?sn(i.length,nr):[],ie=ee.length;for(var ge in i)(y||Ot.call(i,ge))&&!(Q&&(ge=="length"||j&&(ge=="offset"||ge=="parent")||U&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Ii(ge,ie)))&&ee.push(ge);return ee}function $b(i){var y=i.length;return y?i[Ap(0,y-1)]:n}function pO(i,y){return pu(gr(i),Vo(y,0,i.length))}function fO(i){return pu(gr(i))}function yp(i,y,C){(C!==n&&!Xr(i[y],C)||C===n&&!(y in i))&&Li(i,y,C)}function Ga(i,y,C){var I=i[y];(!(Ot.call(i,y)&&Xr(I,C))||C===n&&!(y in i))&&Li(i,y,C)}function eu(i,y){for(var C=i.length;C--;)if(Xr(i[C][0],y))return C;return-1}function gO(i,y,C,I){return so(i,function(j,U,Q){y(I,j,C(j),Q)}),I}function Cb(i,y){return i&&wi(y,Fn(y),i)}function mO(i,y){return i&&wi(y,yr(y),i)}function Li(i,y,C){y=="__proto__"&&Yc?Yc(i,y,{configurable:!0,enumerable:!0,value:C,writable:!0}):i[y]=C}function wp(i,y){for(var C=-1,I=y.length,j=se(I),U=i==null;++C<I;)j[C]=U?n:Jp(i,y[C]);return j}function Vo(i,y,C){return i===i&&(C!==n&&(i=i<=C?i:C),y!==n&&(i=i>=y?i:y)),i}function Br(i,y,C,I,j,U){var Q,ee=y&l,ie=y&a,ge=y&u;if(C&&(Q=j?C(i,I,j,U):C(i)),Q!==n)return Q;if(!tn(i))return i;var ye=et(i);if(ye){if(Q=i2(i),!ee)return gr(i,Q)}else{var be=Zn(i),Ae=be==lt||be==Ht;if(uo(i))return Qb(i,ee);if(be==Ft||be==re||Ae&&!j){if(Q=ie||Ae?{}:gv(i),!ee)return ie?GO(i,mO(Q,i)):VO(i,Cb(Q,i))}else{if(!He[be])return j?i:{};Q=o2(i,be,ee)}}U||(U=new Jr);var Ie=U.get(i);if(Ie)return Ie;U.set(i,Q),Uv(i)?i.forEach(function(Ve){Q.add(Br(Ve,y,C,Ve,i,U))}):zv(i)&&i.forEach(function(Ve,wt){Q.set(wt,Br(Ve,y,C,wt,i,U))});var qe=ge?ie?Pp:Fp:ie?yr:Fn,ct=ye?n:qe(i);return tr(ct||i,function(Ve,wt){ct&&(wt=Ve,Ve=i[wt]),Ga(Q,wt,Br(Ve,y,C,wt,i,U))}),Q}function yO(i){var y=Fn(i);return function(C){return Ab(C,i,y)}}function Ab(i,y,C){var I=C.length;if(i==null)return!I;for(i=Xe(i);I--;){var j=C[I],U=y[j],Q=i[j];if(Q===n&&!(j in i)||!U(Q))return!1}return!0}function Tb(i,y,C){if(typeof i!="function")throw new On(f);return el(function(){i.apply(n,C)},y)}function Ya(i,y,C,I){var j=-1,U=Ms,Q=!0,ee=i.length,ie=[],ge=y.length;if(!ee)return ie;C&&(y=Wt(y,Kn(C))),I?(U=Bo,Q=!1):y.length>=d&&(U=Zr,Q=!1,y=new qo(y));e:for(;++j<ee;){var ye=i[j],be=C==null?ye:C(ye);if(ye=I||ye!==0?ye:0,Q&&be===be){for(var Ae=ge;Ae--;)if(y[Ae]===be)continue e;ie.push(ye)}else U(y,be,I)||ie.push(ye)}return ie}var so=tv(yi),Mb=tv(vp,!0);function wO(i,y){var C=!0;return so(i,function(I,j,U){return C=!!y(I,j,U),C}),C}function tu(i,y,C){for(var I=-1,j=i.length;++I<j;){var U=i[I],Q=y(U);if(Q!=null&&(ee===n?Q===Q&&!Tr(Q):C(Q,ee)))var ee=Q,ie=U}return ie}function bO(i,y,C,I){var j=i.length;for(C=at(C),C<0&&(C=-C>j?0:j+C),I=I===n||I>j?j:at(I),I<0&&(I+=j),I=C>I?0:Vv(I);C<I;)i[C++]=y;return i}function Eb(i,y){var C=[];return so(i,function(I,j,U){y(I,j,U)&&C.push(I)}),C}function Pn(i,y,C,I,j){var U=-1,Q=i.length;for(C||(C=a2),j||(j=[]);++U<Q;){var ee=i[U];y>0&&C(ee)?y>1?Pn(ee,y-1,C,I,j):Yn(j,ee):I||(j[j.length]=ee)}return j}var bp=nv(),Rb=nv(!0);function yi(i,y){return i&&bp(i,y,Fn)}function vp(i,y){return i&&Rb(i,y,Fn)}function nu(i,y){return pr(y,function(C){return Ni(i[C])})}function Go(i,y){y=lo(y,i);for(var C=0,I=y.length;i!=null&&C<I;)i=i[bi(y[C++])];return C&&C==I?i:n}function Lb(i,y,C){var I=y(i);return et(i)?I:Yn(I,C(i))}function rr(i){return i==null?i===n?on:un:Wo&&Wo in Xe(i)?t2(i):f2(i)}function xp(i,y){return i>y}function vO(i,y){return i!=null&&Ot.call(i,y)}function xO(i,y){return i!=null&&y in Xe(i)}function _O(i,y,C){return i>=Qn(y,C)&&i<Dn(y,C)}function _p(i,y,C){for(var I=C?Bo:Ms,j=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,ge=[];Q--;){var ye=i[Q];Q&&y&&(ye=Wt(ye,Kn(y))),ie=Qn(ye.length,ie),ee[Q]=!C&&(y||j>=120&&ye.length>=120)?new qo(Q&&ye):n}ye=i[0];var be=-1,Ae=ee[0];e:for(;++be<j&&ge.length<ie;){var Ie=ye[be],qe=y?y(Ie):Ie;if(Ie=C||Ie!==0?Ie:0,!(Ae?Zr(Ae,qe):I(ge,qe,C))){for(Q=U;--Q;){var ct=ee[Q];if(!(ct?Zr(ct,qe):I(i[Q],qe,C)))continue e}Ae&&Ae.push(qe),ge.push(Ie)}}return ge}function kO(i,y,C,I){return yi(i,function(j,U,Q){y(I,C(j),U,Q)}),I}function Ka(i,y,C){y=lo(y,i),i=bv(i,y);var I=i==null?i:i[bi(Hr(y))];return I==null?n:Gt(I,i,C)}function Ob(i){return an(i)&&rr(i)==re}function SO(i){return an(i)&&rr(i)==Te}function $O(i){return an(i)&&rr(i)==ve}function Qa(i,y,C,I,j){return i===y?!0:i==null||y==null||!an(i)&&!an(y)?i!==i&&y!==y:CO(i,y,C,I,Qa,j)}function CO(i,y,C,I,j,U){var Q=et(i),ee=et(y),ie=Q?J:Zn(i),ge=ee?J:Zn(y);ie=ie==re?Ft:ie,ge=ge==re?Ft:ge;var ye=ie==Ft,be=ge==Ft,Ae=ie==ge;if(Ae&&uo(i)){if(!uo(y))return!1;Q=!0,ye=!1}if(Ae&&!ye)return U||(U=new Jr),Q||js(i)?dv(i,y,C,I,j,U):XO(i,y,ie,C,I,j,U);if(!(C&o)){var Ie=ye&&Ot.call(i,"__wrapped__"),qe=be&&Ot.call(y,"__wrapped__");if(Ie||qe){var ct=Ie?i.value():i,Ve=qe?y.value():y;return U||(U=new Jr),j(ct,Ve,C,I,U)}}return Ae?(U||(U=new Jr),e2(i,y,C,I,j,U)):!1}function AO(i){return an(i)&&Zn(i)==ft}function kp(i,y,C,I){var j=C.length,U=j,Q=!I;if(i==null)return!U;for(i=Xe(i);j--;){var ee=C[j];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++j<U;){ee=C[j];var ie=ee[0],ge=i[ie],ye=ee[1];if(Q&&ee[2]){if(ge===n&&!(ie in i))return!1}else{var be=new Jr;if(I)var Ae=I(ge,ye,ie,i,y,be);if(!(Ae===n?Qa(ye,ge,o|c,I,be):Ae))return!1}}return!0}function Db(i){if(!tn(i)||c2(i))return!1;var y=Ni(i)?AL:Mn;return y.test(Ko(i))}function TO(i){return an(i)&&rr(i)==Tn}function MO(i){return an(i)&&Zn(i)==rn}function EO(i){return an(i)&&bu(i.length)&&!!It[rr(i)]}function Ib(i){return typeof i=="function"?i:i==null?wr:typeof i=="object"?et(i)?Pb(i[0],i[1]):Fb(i):r1(i)}function Sp(i){if(!Xa(i))return OL(i);var y=[];for(var C in Xe(i))Ot.call(i,C)&&C!="constructor"&&y.push(C);return y}function RO(i){if(!tn(i))return p2(i);var y=Xa(i),C=[];for(var I in i)I=="constructor"&&(y||!Ot.call(i,I))||C.push(I);return C}function $p(i,y){return i<y}function Nb(i,y){var C=-1,I=mr(i)?se(i.length):[];return so(i,function(j,U,Q){I[++C]=y(j,U,Q)}),I}function Fb(i){var y=jp(i);return y.length==1&&y[0][2]?yv(y[0][0],y[0][1]):function(C){return C===i||kp(C,i,y)}}function Pb(i,y){return zp(i)&&mv(y)?yv(bi(i),y):function(C){var I=Jp(C,i);return I===n&&I===y?Xp(C,i):Qa(y,I,o|c)}}function ru(i,y,C,I,j){i!==y&&bp(y,function(U,Q){if(j||(j=new Jr),tn(U))LO(i,y,Q,C,ru,I,j);else{var ee=I?I(Up(i,Q),U,Q+"",i,y,j):n;ee===n&&(ee=U),yp(i,Q,ee)}},yr)}function LO(i,y,C,I,j,U,Q){var ee=Up(i,C),ie=Up(y,C),ge=Q.get(ie);if(ge){yp(i,C,ge);return}var ye=U?U(ee,ie,C+"",i,y,Q):n,be=ye===n;if(be){var Ae=et(ie),Ie=!Ae&&uo(ie),qe=!Ae&&!Ie&&js(ie);ye=ie,Ae||Ie||qe?et(ee)?ye=ee:hn(ee)?ye=gr(ee):Ie?(be=!1,ye=Qb(ie,!0)):qe?(be=!1,ye=Zb(ie,!0)):ye=[]:tl(ie)||Qo(ie)?(ye=ee,Qo(ee)?ye=Gv(ee):(!tn(ee)||Ni(ee))&&(ye=gv(ie))):be=!1}be&&(Q.set(ie,ye),j(ye,ie,I,U,Q),Q.delete(ie)),yp(i,C,ye)}function Bb(i,y){var C=i.length;if(C)return y+=y<0?C:0,Ii(y,C)?i[y]:n}function jb(i,y,C){y.length?y=Wt(y,function(U){return et(U)?function(Q){return Go(Q,U.length===1?U[0]:U)}:U}):y=[wr];var I=-1;y=Wt(y,Kn(We()));var j=Nb(i,function(U,Q,ee){var ie=Wt(y,function(ge){return ge(U)});return{criteria:ie,index:++I,value:U}});return ro(j,function(U,Q){return qO(U,Q,C)})}function OO(i,y){return Hb(i,y,function(C,I){return Xp(i,I)})}function Hb(i,y,C){for(var I=-1,j=y.length,U={};++I<j;){var Q=y[I],ee=Go(i,Q);C(ee,Q)&&Za(U,lo(Q,i),ee)}return U}function DO(i){return function(y){return Go(y,i)}}function Cp(i,y,C,I){var j=I?Fc:Mi,U=-1,Q=y.length,ee=i;for(i===y&&(y=gr(y)),C&&(ee=Wt(i,Kn(C)));++U<Q;)for(var ie=0,ge=y[U],ye=C?C(ge):ge;(ie=j(ee,ye,ie,I))>-1;)ee!==i&&Gc.call(ee,ie,1),Gc.call(i,ie,1);return i}function zb(i,y){for(var C=i?y.length:0,I=C-1;C--;){var j=y[C];if(C==I||j!==U){var U=j;Ii(j)?Gc.call(i,j,1):Ep(i,j)}}return i}function Ap(i,y){return i+Qc(_b()*(y-i+1))}function IO(i,y,C,I){for(var j=-1,U=Dn(Kc((y-i)/(C||1)),0),Q=se(U);U--;)Q[I?U:++j]=i,i+=C;return Q}function Tp(i,y){var C="";if(!i||y<1||y>B)return C;do y%2&&(C+=i),y=Qc(y/2),y&&(i+=i);while(y);return C}function pt(i,y){return qp(wv(i,y,wr),i+"")}function NO(i){return $b(Hs(i))}function FO(i,y){var C=Hs(i);return pu(C,Vo(y,0,C.length))}function Za(i,y,C,I){if(!tn(i))return i;y=lo(y,i);for(var j=-1,U=y.length,Q=U-1,ee=i;ee!=null&&++j<U;){var ie=bi(y[j]),ge=C;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(j!=Q){var ye=ee[ie];ge=I?I(ye,ie,ee):n,ge===n&&(ge=tn(ye)?ye:Ii(y[j+1])?[]:{})}Ga(ee,ie,ge),ee=ee[ie]}return i}var Wb=Zc?function(i,y){return Zc.set(i,y),i}:wr,PO=Yc?function(i,y){return Yc(i,"toString",{configurable:!0,enumerable:!1,value:tf(y),writable:!0})}:wr;function BO(i){return pu(Hs(i))}function jr(i,y,C){var I=-1,j=i.length;y<0&&(y=-y>j?0:j+y),C=C>j?j:C,C<0&&(C+=j),j=y>C?0:C-y>>>0,y>>>=0;for(var U=se(j);++I<j;)U[I]=i[I+y];return U}function jO(i,y){var C;return so(i,function(I,j,U){return C=y(I,j,U),!C}),!!C}function iu(i,y,C){var I=0,j=i==null?I:i.length;if(typeof y=="number"&&y===y&&j<=G){for(;I<j;){var U=I+j>>>1,Q=i[U];Q!==null&&!Tr(Q)&&(C?Q<=y:Q<y)?I=U+1:j=U}return j}return Mp(i,y,wr,C)}function Mp(i,y,C,I){var j=0,U=i==null?0:i.length;if(U===0)return 0;y=C(y);for(var Q=y!==y,ee=y===null,ie=Tr(y),ge=y===n;j<U;){var ye=Qc((j+U)/2),be=C(i[ye]),Ae=be!==n,Ie=be===null,qe=be===be,ct=Tr(be);if(Q)var Ve=I||qe;else ge?Ve=qe&&(I||Ae):ee?Ve=qe&&Ae&&(I||!Ie):ie?Ve=qe&&Ae&&!Ie&&(I||!ct):Ie||ct?Ve=!1:Ve=I?be<=y:be<y;Ve?j=ye+1:U=ye}return Qn(U,X)}function Ub(i,y){for(var C=-1,I=i.length,j=0,U=[];++C<I;){var Q=i[C],ee=y?y(Q):Q;if(!C||!Xr(ee,ie)){var ie=ee;U[j++]=Q===0?0:Q}}return U}function qb(i){return typeof i=="number"?i:Tr(i)?q:+i}function Ar(i){if(typeof i=="string")return i;if(et(i))return Wt(i,Ar)+"";if(Tr(i))return kb?kb.call(i):"";var y=i+"";return y=="0"&&1/i==-F?"-0":y}function ao(i,y,C){var I=-1,j=Ms,U=i.length,Q=!0,ee=[],ie=ee;if(C)Q=!1,j=Bo;else if(U>=d){var ge=y?null:ZO(i);if(ge)return Ce(ge);Q=!1,j=Zr,ie=new qo}else ie=y?[]:ee;e:for(;++I<U;){var ye=i[I],be=y?y(ye):ye;if(ye=C||ye!==0?ye:0,Q&&be===be){for(var Ae=ie.length;Ae--;)if(ie[Ae]===be)continue e;y&&ie.push(be),ee.push(ye)}else j(ie,be,C)||(ie!==ee&&ie.push(be),ee.push(ye))}return ee}function Ep(i,y){return y=lo(y,i),i=bv(i,y),i==null||delete i[bi(Hr(y))]}function Vb(i,y,C,I){return Za(i,y,C(Go(i,y)),I)}function ou(i,y,C,I){for(var j=i.length,U=I?j:-1;(I?U--:++U<j)&&y(i[U],U,i););return C?jr(i,I?0:U,I?U+1:j):jr(i,I?U+1:0,I?j:U)}function Gb(i,y){var C=i;return C instanceof xt&&(C=C.value()),Fr(y,function(I,j){return j.func.apply(j.thisArg,Yn([I],j.args))},C)}function Rp(i,y,C){var I=i.length;if(I<2)return I?ao(i[0]):[];for(var j=-1,U=se(I);++j<I;)for(var Q=i[j],ee=-1;++ee<I;)ee!=j&&(U[j]=Ya(U[j]||Q,i[ee],y,C));return ao(Pn(U,1),y,C)}function Yb(i,y,C){for(var I=-1,j=i.length,U=y.length,Q={};++I<j;){var ee=I<U?y[I]:n;C(Q,i[I],ee)}return Q}function Lp(i){return hn(i)?i:[]}function Op(i){return typeof i=="function"?i:wr}function lo(i,y){return et(i)?i:zp(i,y)?[i]:kv(Et(i))}var HO=pt;function co(i,y,C){var I=i.length;return C=C===n?I:C,!y&&C>=I?i:jr(i,y,C)}var Kb=TL||function(i){return Rn.clearTimeout(i)};function Qb(i,y){if(y)return i.slice();var C=i.length,I=yb?yb(C):new i.constructor(C);return i.copy(I),I}function Dp(i){var y=new i.constructor(i.byteLength);return new qc(y).set(new qc(i)),y}function zO(i,y){var C=y?Dp(i.buffer):i.buffer;return new i.constructor(C,i.byteOffset,i.byteLength)}function WO(i){var y=new i.constructor(i.source,Yi.exec(i));return y.lastIndex=i.lastIndex,y}function UO(i){return Va?Xe(Va.call(i)):{}}function Zb(i,y){var C=y?Dp(i.buffer):i.buffer;return new i.constructor(C,i.byteOffset,i.length)}function Jb(i,y){if(i!==y){var C=i!==n,I=i===null,j=i===i,U=Tr(i),Q=y!==n,ee=y===null,ie=y===y,ge=Tr(y);if(!ee&&!ge&&!U&&i>y||U&&Q&&ie&&!ee&&!ge||I&&Q&&ie||!C&&ie||!j)return 1;if(!I&&!U&&!ge&&i<y||ge&&C&&j&&!I&&!U||ee&&C&&j||!Q&&j||!ie)return-1}return 0}function qO(i,y,C){for(var I=-1,j=i.criteria,U=y.criteria,Q=j.length,ee=C.length;++I<Q;){var ie=Jb(j[I],U[I]);if(ie){if(I>=ee)return ie;var ge=C[I];return ie*(ge=="desc"?-1:1)}}return i.index-y.index}function Xb(i,y,C,I){for(var j=-1,U=i.length,Q=C.length,ee=-1,ie=y.length,ge=Dn(U-Q,0),ye=se(ie+ge),be=!I;++ee<ie;)ye[ee]=y[ee];for(;++j<Q;)(be||j<U)&&(ye[C[j]]=i[j]);for(;ge--;)ye[ee++]=i[j++];return ye}function ev(i,y,C,I){for(var j=-1,U=i.length,Q=-1,ee=C.length,ie=-1,ge=y.length,ye=Dn(U-ee,0),be=se(ye+ge),Ae=!I;++j<ye;)be[j]=i[j];for(var Ie=j;++ie<ge;)be[Ie+ie]=y[ie];for(;++Q<ee;)(Ae||j<U)&&(be[Ie+C[Q]]=i[j++]);return be}function gr(i,y){var C=-1,I=i.length;for(y||(y=se(I));++C<I;)y[C]=i[C];return y}function wi(i,y,C,I){var j=!C;C||(C={});for(var U=-1,Q=y.length;++U<Q;){var ee=y[U],ie=I?I(C[ee],i[ee],ee,C,i):n;ie===n&&(ie=i[ee]),j?Li(C,ee,ie):Ga(C,ee,ie)}return C}function VO(i,y){return wi(i,Hp(i),y)}function GO(i,y){return wi(i,pv(i),y)}function su(i,y){return function(C,I){var j=et(C)?pp:gO,U=y?y():{};return j(C,i,We(I,2),U)}}function Fs(i){return pt(function(y,C){var I=-1,j=C.length,U=j>1?C[j-1]:n,Q=j>2?C[2]:n;for(U=i.length>3&&typeof U=="function"?(j--,U):n,Q&&ir(C[0],C[1],Q)&&(U=j<3?n:U,j=1),y=Xe(y);++I<j;){var ee=C[I];ee&&i(y,ee,I,U)}return y})}function tv(i,y){return function(C,I){if(C==null)return C;if(!mr(C))return i(C,I);for(var j=C.length,U=y?j:-1,Q=Xe(C);(y?U--:++U<j)&&I(Q[U],U,Q)!==!1;);return C}}function nv(i){return function(y,C,I){for(var j=-1,U=Xe(y),Q=I(y),ee=Q.length;ee--;){var ie=Q[i?ee:++j];if(C(U[ie],ie,U)===!1)break}return y}}function YO(i,y,C){var I=y&m,j=Ja(i);function U(){var Q=this&&this!==Rn&&this instanceof U?j:i;return Q.apply(I?C:this,arguments)}return U}function rv(i){return function(y){y=Et(y);var C=te(y)?Ye(y):n,I=C?C[0]:y.charAt(0),j=C?co(C,1).join(""):y.slice(1);return I[i]()+j}}function Ps(i){return function(y){return Fr(t1(e1(y).replace(La,"")),i,"")}}function Ja(i){return function(){var y=arguments;switch(y.length){case 0:return new i;case 1:return new i(y[0]);case 2:return new i(y[0],y[1]);case 3:return new i(y[0],y[1],y[2]);case 4:return new i(y[0],y[1],y[2],y[3]);case 5:return new i(y[0],y[1],y[2],y[3],y[4]);case 6:return new i(y[0],y[1],y[2],y[3],y[4],y[5]);case 7:return new i(y[0],y[1],y[2],y[3],y[4],y[5],y[6])}var C=Ns(i.prototype),I=i.apply(C,y);return tn(I)?I:C}}function KO(i,y,C){var I=Ja(i);function j(){for(var U=arguments.length,Q=se(U),ee=U,ie=Bs(j);ee--;)Q[ee]=arguments[ee];var ge=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:ke(Q,ie);if(U-=ge.length,U<C)return lv(i,y,au,j.placeholder,n,Q,ge,n,n,C-U);var ye=this&&this!==Rn&&this instanceof j?I:i;return Gt(ye,this,Q)}return j}function iv(i){return function(y,C,I){var j=Xe(y);if(!mr(y)){var U=We(C,3);y=Fn(y),C=function(ee){return U(j[ee],ee,j)}}var Q=i(y,C,I);return Q>-1?j[U?y[Q]:Q]:n}}function ov(i){return Di(function(y){var C=y.length,I=C,j=Pr.prototype.thru;for(i&&y.reverse();I--;){var U=y[I];if(typeof U!="function")throw new On(f);if(j&&!Q&&hu(U)=="wrapper")var Q=new Pr([],!0)}for(I=Q?I:C;++I<C;){U=y[I];var ee=hu(U),ie=ee=="wrapper"?Bp(U):n;ie&&Wp(ie[0])&&ie[1]==(T|E|k|R)&&!ie[4].length&&ie[9]==1?Q=Q[hu(ie[0])].apply(Q,ie[3]):Q=U.length==1&&Wp(U)?Q[ee]():Q.thru(U)}return function(){var ge=arguments,ye=ge[0];if(Q&&ge.length==1&&et(ye))return Q.plant(ye).value();for(var be=0,Ae=C?y[be].apply(this,ge):ye;++be<C;)Ae=y[be].call(this,Ae);return Ae}})}function au(i,y,C,I,j,U,Q,ee,ie,ge){var ye=y&T,be=y&m,Ae=y&b,Ie=y&(E|A),qe=y&O,ct=Ae?n:Ja(i);function Ve(){for(var wt=arguments.length,_t=se(wt),Mr=wt;Mr--;)_t[Mr]=arguments[Mr];if(Ie)var or=Bs(Ve),Er=Ha(_t,or);if(I&&(_t=Xb(_t,I,j,Ie)),U&&(_t=ev(_t,U,Q,Ie)),wt-=Er,Ie&&wt<ge){var dn=ke(_t,or);return lv(i,y,au,Ve.placeholder,C,_t,dn,ee,ie,ge-wt)}var ei=be?C:this,Pi=Ae?ei[i]:i;return wt=_t.length,ee?_t=g2(_t,ee):qe&&wt>1&&_t.reverse(),ye&&ie<wt&&(_t.length=ie),this&&this!==Rn&&this instanceof Ve&&(Pi=ct||Ja(Pi)),Pi.apply(ei,_t)}return Ve}function sv(i,y){return function(C,I){return kO(C,i,y(I),{})}}function lu(i,y){return function(C,I){var j;if(C===n&&I===n)return y;if(C!==n&&(j=C),I!==n){if(j===n)return I;typeof C=="string"||typeof I=="string"?(C=Ar(C),I=Ar(I)):(C=qb(C),I=qb(I)),j=i(C,I)}return j}}function Ip(i){return Di(function(y){return y=Wt(y,Kn(We())),pt(function(C){var I=this;return i(y,function(j){return Gt(j,I,C)})})})}function cu(i,y){y=y===n?" ":Ar(y);var C=y.length;if(C<2)return C?Tp(y,i):y;var I=Tp(y,Kc(i/st(y)));return te(y)?co(Ye(I),0,i).join(""):I.slice(0,i)}function QO(i,y,C,I){var j=y&m,U=Ja(i);function Q(){for(var ee=-1,ie=arguments.length,ge=-1,ye=I.length,be=se(ye+ie),Ae=this&&this!==Rn&&this instanceof Q?U:i;++ge<ye;)be[ge]=I[ge];for(;ie--;)be[ge++]=arguments[++ee];return Gt(Ae,j?C:this,be)}return Q}function av(i){return function(y,C,I){return I&&typeof I!="number"&&ir(y,C,I)&&(C=I=n),y=Fi(y),C===n?(C=y,y=0):C=Fi(C),I=I===n?y<C?1:-1:Fi(I),IO(y,C,I,i)}}function uu(i){return function(y,C){return typeof y=="string"&&typeof C=="string"||(y=zr(y),C=zr(C)),i(y,C)}}function lv(i,y,C,I,j,U,Q,ee,ie,ge){var ye=y&E,be=ye?Q:n,Ae=ye?n:Q,Ie=ye?U:n,qe=ye?n:U;y|=ye?k:v,y&=~(ye?v:k),y&x||(y&=~(m|b));var ct=[i,y,j,Ie,be,qe,Ae,ee,ie,ge],Ve=C.apply(n,ct);return Wp(i)&&vv(Ve,ct),Ve.placeholder=I,xv(Ve,i,y)}function Np(i){var y=Mt[i];return function(C,I){if(C=zr(C),I=I==null?0:Qn(at(I),292),I&&xb(C)){var j=(Et(C)+"e").split("e"),U=y(j[0]+"e"+(+j[1]+I));return j=(Et(U)+"e").split("e"),+(j[0]+"e"+(+j[1]-I))}return y(C)}}var ZO=Ds&&1/Ce(new Ds([,-0]))[1]==F?function(i){return new Ds(i)}:of;function cv(i){return function(y){var C=Zn(y);return C==ft?xe(y):C==rn?Me(y):Pc(y,i(y))}}function Oi(i,y,C,I,j,U,Q,ee){var ie=y&b;if(!ie&&typeof i!="function")throw new On(f);var ge=I?I.length:0;if(ge||(y&=~(k|v),I=j=n),Q=Q===n?Q:Dn(at(Q),0),ee=ee===n?ee:at(ee),ge-=j?j.length:0,y&v){var ye=I,be=j;I=j=n}var Ae=ie?n:Bp(i),Ie=[i,y,C,I,j,ye,be,U,Q,ee];if(Ae&&d2(Ie,Ae),i=Ie[0],y=Ie[1],C=Ie[2],I=Ie[3],j=Ie[4],ee=Ie[9]=Ie[9]===n?ie?0:i.length:Dn(Ie[9]-ge,0),!ee&&y&(E|A)&&(y&=~(E|A)),!y||y==m)var qe=YO(i,y,C);else y==E||y==A?qe=KO(i,y,ee):(y==k||y==(m|k))&&!j.length?qe=QO(i,y,C,I):qe=au.apply(n,Ie);var ct=Ae?Wb:vv;return xv(ct(qe,Ie),i,y)}function uv(i,y,C,I){return i===n||Xr(i,Os[C])&&!Ot.call(I,C)?y:i}function hv(i,y,C,I,j,U){return tn(i)&&tn(y)&&(U.set(y,i),ru(i,y,n,hv,U),U.delete(y)),i}function JO(i){return tl(i)?n:i}function dv(i,y,C,I,j,U){var Q=C&o,ee=i.length,ie=y.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var ge=U.get(i),ye=U.get(y);if(ge&&ye)return ge==y&&ye==i;var be=-1,Ae=!0,Ie=C&c?new qo:n;for(U.set(i,y),U.set(y,i);++be<ee;){var qe=i[be],ct=y[be];if(I)var Ve=Q?I(ct,qe,be,y,i,U):I(qe,ct,be,i,y,U);if(Ve!==n){if(Ve)continue;Ae=!1;break}if(Ie){if(!Es(y,function(wt,_t){if(!Zr(Ie,_t)&&(qe===wt||j(qe,wt,C,I,U)))return Ie.push(_t)})){Ae=!1;break}}else if(!(qe===ct||j(qe,ct,C,I,U))){Ae=!1;break}}return U.delete(i),U.delete(y),Ae}function XO(i,y,C,I,j,U,Q){switch(C){case Re:if(i.byteLength!=y.byteLength||i.byteOffset!=y.byteOffset)return!1;i=i.buffer,y=y.buffer;case Te:return!(i.byteLength!=y.byteLength||!U(new qc(i),new qc(y)));case we:case ve:case yt:return Xr(+i,+y);case Se:return i.name==y.name&&i.message==y.message;case Tn:case Be:return i==y+"";case ft:var ee=xe;case rn:var ie=I&o;if(ee||(ee=Ce),i.size!=y.size&&!ie)return!1;var ge=Q.get(i);if(ge)return ge==y;I|=c,Q.set(i,y);var ye=dv(ee(i),ee(y),I,j,U,Q);return Q.delete(i),ye;case ze:if(Va)return Va.call(i)==Va.call(y)}return!1}function e2(i,y,C,I,j,U){var Q=C&o,ee=Fp(i),ie=ee.length,ge=Fp(y),ye=ge.length;if(ie!=ye&&!Q)return!1;for(var be=ie;be--;){var Ae=ee[be];if(!(Q?Ae in y:Ot.call(y,Ae)))return!1}var Ie=U.get(i),qe=U.get(y);if(Ie&&qe)return Ie==y&&qe==i;var ct=!0;U.set(i,y),U.set(y,i);for(var Ve=Q;++be<ie;){Ae=ee[be];var wt=i[Ae],_t=y[Ae];if(I)var Mr=Q?I(_t,wt,Ae,y,i,U):I(wt,_t,Ae,i,y,U);if(!(Mr===n?wt===_t||j(wt,_t,C,I,U):Mr)){ct=!1;break}Ve||(Ve=Ae=="constructor")}if(ct&&!Ve){var or=i.constructor,Er=y.constructor;or!=Er&&"constructor"in i&&"constructor"in y&&!(typeof or=="function"&&or instanceof or&&typeof Er=="function"&&Er instanceof Er)&&(ct=!1)}return U.delete(i),U.delete(y),ct}function Di(i){return qp(wv(i,n,Av),i+"")}function Fp(i){return Lb(i,Fn,Hp)}function Pp(i){return Lb(i,yr,pv)}var Bp=Zc?function(i){return Zc.get(i)}:of;function hu(i){for(var y=i.name+"",C=Is[y],I=Ot.call(Is,y)?C.length:0;I--;){var j=C[I],U=j.func;if(U==null||U==i)return j.name}return y}function Bs(i){var y=Ot.call(z,"placeholder")?z:i;return y.placeholder}function We(){var i=z.iteratee||nf;return i=i===nf?Ib:i,arguments.length?i(arguments[0],arguments[1]):i}function du(i,y){var C=i.__data__;return l2(y)?C[typeof y=="string"?"string":"hash"]:C.map}function jp(i){for(var y=Fn(i),C=y.length;C--;){var I=y[C],j=i[I];y[C]=[I,j,mv(j)]}return y}function Yo(i,y){var C=K(i,y);return Db(C)?C:n}function t2(i){var y=Ot.call(i,Wo),C=i[Wo];try{i[Wo]=n;var I=!0}catch{}var j=Wc.call(i);return I&&(y?i[Wo]=C:delete i[Wo]),j}var Hp=fp?function(i){return i==null?[]:(i=Xe(i),pr(fp(i),function(y){return bb.call(i,y)}))}:sf,pv=fp?function(i){for(var y=[];i;)Yn(y,Hp(i)),i=Vc(i);return y}:sf,Zn=rr;(gp&&Zn(new gp(new ArrayBuffer(1)))!=Re||Wa&&Zn(new Wa)!=ft||mp&&Zn(mp.resolve())!=Jt||Ds&&Zn(new Ds)!=rn||Ua&&Zn(new Ua)!=Ue)&&(Zn=function(i){var y=rr(i),C=y==Ft?i.constructor:n,I=C?Ko(C):"";if(I)switch(I){case FL:return Re;case PL:return ft;case BL:return Jt;case jL:return rn;case HL:return Ue}return y});function n2(i,y,C){for(var I=-1,j=C.length;++I<j;){var U=C[I],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":y-=Q;break;case"take":y=Qn(y,i+Q);break;case"takeRight":i=Dn(i,y-Q);break}}return{start:i,end:y}}function r2(i){var y=i.match(vc);return y?y[1].split(xc):[]}function fv(i,y,C){y=lo(y,i);for(var I=-1,j=y.length,U=!1;++I<j;){var Q=bi(y[I]);if(!(U=i!=null&&C(i,Q)))break;i=i[Q]}return U||++I!=j?U:(j=i==null?0:i.length,!!j&&bu(j)&&Ii(Q,j)&&(et(i)||Qo(i)))}function i2(i){var y=i.length,C=new i.constructor(y);return y&&typeof i[0]=="string"&&Ot.call(i,"index")&&(C.index=i.index,C.input=i.input),C}function gv(i){return typeof i.constructor=="function"&&!Xa(i)?Ns(Vc(i)):{}}function o2(i,y,C){var I=i.constructor;switch(y){case Te:return Dp(i);case we:case ve:return new I(+i);case Re:return zO(i,C);case Ge:case Ke:case gt:case mt:case ht:case dt:case ot:case qt:case qn:return Zb(i,C);case ft:return new I;case yt:case Be:return new I(i);case Tn:return WO(i);case rn:return new I;case ze:return UO(i)}}function s2(i,y){var C=y.length;if(!C)return i;var I=C-1;return y[I]=(C>1?"& ":"")+y[I],y=y.join(C>2?", ":" "),i.replace(Gi,`{
1394
+ /* [wrapped with `+y+`] */
1395
+ `)}function a2(i){return et(i)||Qo(i)||!!(vb&&i&&i[vb])}function Ii(i,y){var C=typeof i;return y=y??B,!!y&&(C=="number"||C!="symbol"&&vn.test(i))&&i>-1&&i%1==0&&i<y}function ir(i,y,C){if(!tn(C))return!1;var I=typeof y;return(I=="number"?mr(C)&&Ii(y,C.length):I=="string"&&y in C)?Xr(C[y],i):!1}function zp(i,y){if(et(i))return!1;var C=typeof i;return C=="number"||C=="symbol"||C=="boolean"||i==null||Tr(i)?!0:In.test(i)||!Si.test(i)||y!=null&&i in Xe(y)}function l2(i){var y=typeof i;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?i!=="__proto__":i===null}function Wp(i){var y=hu(i),C=z[y];if(typeof C!="function"||!(y in xt.prototype))return!1;if(i===C)return!0;var I=Bp(C);return!!I&&i===I[0]}function c2(i){return!!mb&&mb in i}var u2=Hc?Ni:af;function Xa(i){var y=i&&i.constructor,C=typeof y=="function"&&y.prototype||Os;return i===C}function mv(i){return i===i&&!tn(i)}function yv(i,y){return function(C){return C==null?!1:C[i]===y&&(y!==n||i in Xe(C))}}function h2(i){var y=yu(i,function(I){return C.size===g&&C.clear(),I}),C=y.cache;return y}function d2(i,y){var C=i[1],I=y[1],j=C|I,U=j<(m|b|T),Q=I==T&&C==E||I==T&&C==R&&i[7].length<=y[8]||I==(T|R)&&y[7].length<=y[8]&&C==E;if(!(U||Q))return i;I&m&&(i[2]=y[2],j|=C&m?0:x);var ee=y[3];if(ee){var ie=i[3];i[3]=ie?Xb(ie,ee,y[4]):ee,i[4]=ie?ke(i[3],s):y[4]}return ee=y[5],ee&&(ie=i[5],i[5]=ie?ev(ie,ee,y[6]):ee,i[6]=ie?ke(i[5],s):y[6]),ee=y[7],ee&&(i[7]=ee),I&T&&(i[8]=i[8]==null?y[8]:Qn(i[8],y[8])),i[9]==null&&(i[9]=y[9]),i[0]=y[0],i[1]=j,i}function p2(i){var y=[];if(i!=null)for(var C in Xe(i))y.push(C);return y}function f2(i){return Wc.call(i)}function wv(i,y,C){return y=Dn(y===n?i.length-1:y,0),function(){for(var I=arguments,j=-1,U=Dn(I.length-y,0),Q=se(U);++j<U;)Q[j]=I[y+j];j=-1;for(var ee=se(y+1);++j<y;)ee[j]=I[j];return ee[y]=C(Q),Gt(i,this,ee)}}function bv(i,y){return y.length<2?i:Go(i,jr(y,0,-1))}function g2(i,y){for(var C=i.length,I=Qn(y.length,C),j=gr(i);I--;){var U=y[I];i[I]=Ii(U,C)?j[U]:n}return i}function Up(i,y){if(!(y==="constructor"&&typeof i[y]=="function")&&y!="__proto__")return i[y]}var vv=_v(Wb),el=EL||function(i,y){return Rn.setTimeout(i,y)},qp=_v(PO);function xv(i,y,C){var I=y+"";return qp(i,s2(I,m2(r2(I),C)))}function _v(i){var y=0,C=0;return function(){var I=DL(),j=_-(I-C);if(C=I,j>0){if(++y>=S)return arguments[0]}else y=0;return i.apply(n,arguments)}}function pu(i,y){var C=-1,I=i.length,j=I-1;for(y=y===n?I:y;++C<y;){var U=Ap(C,j),Q=i[U];i[U]=i[C],i[C]=Q}return i.length=y,i}var kv=h2(function(i){var y=[];return i.charCodeAt(0)===46&&y.push(""),i.replace(ui,function(C,I,j,U){y.push(j?U.replace($i,"$1"):I||C)}),y});function bi(i){if(typeof i=="string"||Tr(i))return i;var y=i+"";return y=="0"&&1/i==-F?"-0":y}function Ko(i){if(i!=null){try{return zc.call(i)}catch{}try{return i+""}catch{}}return""}function m2(i,y){return tr(Z,function(C){var I="_."+C[0];y&C[1]&&!Ms(i,I)&&i.push(I)}),i.sort()}function Sv(i){if(i instanceof xt)return i.clone();var y=new Pr(i.__wrapped__,i.__chain__);return y.__actions__=gr(i.__actions__),y.__index__=i.__index__,y.__values__=i.__values__,y}function y2(i,y,C){(C?ir(i,y,C):y===n)?y=1:y=Dn(at(y),0);var I=i==null?0:i.length;if(!I||y<1)return[];for(var j=0,U=0,Q=se(Kc(I/y));j<I;)Q[U++]=jr(i,j,j+=y);return Q}function w2(i){for(var y=-1,C=i==null?0:i.length,I=0,j=[];++y<C;){var U=i[y];U&&(j[I++]=U)}return j}function b2(){var i=arguments.length;if(!i)return[];for(var y=se(i-1),C=arguments[0],I=i;I--;)y[I-1]=arguments[I];return Yn(et(C)?gr(C):[C],Pn(y,1))}var v2=pt(function(i,y){return hn(i)?Ya(i,Pn(y,1,hn,!0)):[]}),x2=pt(function(i,y){var C=Hr(y);return hn(C)&&(C=n),hn(i)?Ya(i,Pn(y,1,hn,!0),We(C,2)):[]}),_2=pt(function(i,y){var C=Hr(y);return hn(C)&&(C=n),hn(i)?Ya(i,Pn(y,1,hn,!0),n,C):[]});function k2(i,y,C){var I=i==null?0:i.length;return I?(y=C||y===n?1:at(y),jr(i,y<0?0:y,I)):[]}function S2(i,y,C){var I=i==null?0:i.length;return I?(y=C||y===n?1:at(y),y=I-y,jr(i,0,y<0?0:y)):[]}function $2(i,y){return i&&i.length?ou(i,We(y,3),!0,!0):[]}function C2(i,y){return i&&i.length?ou(i,We(y,3),!0):[]}function A2(i,y,C,I){var j=i==null?0:i.length;return j?(C&&typeof C!="number"&&ir(i,y,C)&&(C=0,I=j),bO(i,y,C,I)):[]}function $v(i,y,C){var I=i==null?0:i.length;if(!I)return-1;var j=C==null?0:at(C);return j<0&&(j=Dn(I+j,0)),Ho(i,We(y,3),j)}function Cv(i,y,C){var I=i==null?0:i.length;if(!I)return-1;var j=I-1;return C!==n&&(j=at(C),j=C<0?Dn(I+j,0):Qn(j,I-1)),Ho(i,We(y,3),j,!0)}function Av(i){var y=i==null?0:i.length;return y?Pn(i,1):[]}function T2(i){var y=i==null?0:i.length;return y?Pn(i,F):[]}function M2(i,y){var C=i==null?0:i.length;return C?(y=y===n?1:at(y),Pn(i,y)):[]}function E2(i){for(var y=-1,C=i==null?0:i.length,I={};++y<C;){var j=i[y];I[j[0]]=j[1]}return I}function Tv(i){return i&&i.length?i[0]:n}function R2(i,y,C){var I=i==null?0:i.length;if(!I)return-1;var j=C==null?0:at(C);return j<0&&(j=Dn(I+j,0)),Mi(i,y,j)}function L2(i){var y=i==null?0:i.length;return y?jr(i,0,-1):[]}var O2=pt(function(i){var y=Wt(i,Lp);return y.length&&y[0]===i[0]?_p(y):[]}),D2=pt(function(i){var y=Hr(i),C=Wt(i,Lp);return y===Hr(C)?y=n:C.pop(),C.length&&C[0]===i[0]?_p(C,We(y,2)):[]}),I2=pt(function(i){var y=Hr(i),C=Wt(i,Lp);return y=typeof y=="function"?y:n,y&&C.pop(),C.length&&C[0]===i[0]?_p(C,n,y):[]});function N2(i,y){return i==null?"":LL.call(i,y)}function Hr(i){var y=i==null?0:i.length;return y?i[y-1]:n}function F2(i,y,C){var I=i==null?0:i.length;if(!I)return-1;var j=I;return C!==n&&(j=at(C),j=j<0?Dn(I+j,0):Qn(j,I-1)),y===y?Lt(i,y,j):Ho(i,Fa,j,!0)}function P2(i,y){return i&&i.length?Bb(i,at(y)):n}var B2=pt(Mv);function Mv(i,y){return i&&i.length&&y&&y.length?Cp(i,y):i}function j2(i,y,C){return i&&i.length&&y&&y.length?Cp(i,y,We(C,2)):i}function H2(i,y,C){return i&&i.length&&y&&y.length?Cp(i,y,n,C):i}var z2=Di(function(i,y){var C=i==null?0:i.length,I=wp(i,y);return zb(i,Wt(y,function(j){return Ii(j,C)?+j:j}).sort(Jb)),I});function W2(i,y){var C=[];if(!(i&&i.length))return C;var I=-1,j=[],U=i.length;for(y=We(y,3);++I<U;){var Q=i[I];y(Q,I,i)&&(C.push(Q),j.push(I))}return zb(i,j),C}function Vp(i){return i==null?i:NL.call(i)}function U2(i,y,C){var I=i==null?0:i.length;return I?(C&&typeof C!="number"&&ir(i,y,C)?(y=0,C=I):(y=y==null?0:at(y),C=C===n?I:at(C)),jr(i,y,C)):[]}function q2(i,y){return iu(i,y)}function V2(i,y,C){return Mp(i,y,We(C,2))}function G2(i,y){var C=i==null?0:i.length;if(C){var I=iu(i,y);if(I<C&&Xr(i[I],y))return I}return-1}function Y2(i,y){return iu(i,y,!0)}function K2(i,y,C){return Mp(i,y,We(C,2),!0)}function Q2(i,y){var C=i==null?0:i.length;if(C){var I=iu(i,y,!0)-1;if(Xr(i[I],y))return I}return-1}function Z2(i){return i&&i.length?Ub(i):[]}function J2(i,y){return i&&i.length?Ub(i,We(y,2)):[]}function X2(i){var y=i==null?0:i.length;return y?jr(i,1,y):[]}function eD(i,y,C){return i&&i.length?(y=C||y===n?1:at(y),jr(i,0,y<0?0:y)):[]}function tD(i,y,C){var I=i==null?0:i.length;return I?(y=C||y===n?1:at(y),y=I-y,jr(i,y<0?0:y,I)):[]}function nD(i,y){return i&&i.length?ou(i,We(y,3),!1,!0):[]}function rD(i,y){return i&&i.length?ou(i,We(y,3)):[]}var iD=pt(function(i){return ao(Pn(i,1,hn,!0))}),oD=pt(function(i){var y=Hr(i);return hn(y)&&(y=n),ao(Pn(i,1,hn,!0),We(y,2))}),sD=pt(function(i){var y=Hr(i);return y=typeof y=="function"?y:n,ao(Pn(i,1,hn,!0),n,y)});function aD(i){return i&&i.length?ao(i):[]}function lD(i,y){return i&&i.length?ao(i,We(y,2)):[]}function cD(i,y){return y=typeof y=="function"?y:n,i&&i.length?ao(i,n,y):[]}function Gp(i){if(!(i&&i.length))return[];var y=0;return i=pr(i,function(C){if(hn(C))return y=Dn(C.length,y),!0}),sn(y,function(C){return Wt(i,Ba(C))})}function Ev(i,y){if(!(i&&i.length))return[];var C=Gp(i);return y==null?C:Wt(C,function(I){return Gt(y,n,I)})}var uD=pt(function(i,y){return hn(i)?Ya(i,y):[]}),hD=pt(function(i){return Rp(pr(i,hn))}),dD=pt(function(i){var y=Hr(i);return hn(y)&&(y=n),Rp(pr(i,hn),We(y,2))}),pD=pt(function(i){var y=Hr(i);return y=typeof y=="function"?y:n,Rp(pr(i,hn),n,y)}),fD=pt(Gp);function gD(i,y){return Yb(i||[],y||[],Ga)}function mD(i,y){return Yb(i||[],y||[],Za)}var yD=pt(function(i){var y=i.length,C=y>1?i[y-1]:n;return C=typeof C=="function"?(i.pop(),C):n,Ev(i,C)});function Rv(i){var y=z(i);return y.__chain__=!0,y}function wD(i,y){return y(i),i}function fu(i,y){return y(i)}var bD=Di(function(i){var y=i.length,C=y?i[0]:0,I=this.__wrapped__,j=function(U){return wp(U,i)};return y>1||this.__actions__.length||!(I instanceof xt)||!Ii(C)?this.thru(j):(I=I.slice(C,+C+(y?1:0)),I.__actions__.push({func:fu,args:[j],thisArg:n}),new Pr(I,this.__chain__).thru(function(U){return y&&!U.length&&U.push(n),U}))});function vD(){return Rv(this)}function xD(){return new Pr(this.value(),this.__chain__)}function _D(){this.__values__===n&&(this.__values__=qv(this.value()));var i=this.__index__>=this.__values__.length,y=i?n:this.__values__[this.__index__++];return{done:i,value:y}}function kD(){return this}function SD(i){for(var y,C=this;C instanceof Xc;){var I=Sv(C);I.__index__=0,I.__values__=n,y?j.__wrapped__=I:y=I;var j=I;C=C.__wrapped__}return j.__wrapped__=i,y}function $D(){var i=this.__wrapped__;if(i instanceof xt){var y=i;return this.__actions__.length&&(y=new xt(this)),y=y.reverse(),y.__actions__.push({func:fu,args:[Vp],thisArg:n}),new Pr(y,this.__chain__)}return this.thru(Vp)}function CD(){return Gb(this.__wrapped__,this.__actions__)}var AD=su(function(i,y,C){Ot.call(i,C)?++i[C]:Li(i,C,1)});function TD(i,y,C){var I=et(i)?no:wO;return C&&ir(i,y,C)&&(y=n),I(i,We(y,3))}function MD(i,y){var C=et(i)?pr:Eb;return C(i,We(y,3))}var ED=iv($v),RD=iv(Cv);function LD(i,y){return Pn(gu(i,y),1)}function OD(i,y){return Pn(gu(i,y),F)}function DD(i,y,C){return C=C===n?1:at(C),Pn(gu(i,y),C)}function Lv(i,y){var C=et(i)?tr:so;return C(i,We(y,3))}function Ov(i,y){var C=et(i)?Nc:Mb;return C(i,We(y,3))}var ID=su(function(i,y,C){Ot.call(i,C)?i[C].push(y):Li(i,C,[y])});function ND(i,y,C,I){i=mr(i)?i:Hs(i),C=C&&!I?at(C):0;var j=i.length;return C<0&&(C=Dn(j+C,0)),vu(i)?C<=j&&i.indexOf(y,C)>-1:!!j&&Mi(i,y,C)>-1}var FD=pt(function(i,y,C){var I=-1,j=typeof y=="function",U=mr(i)?se(i.length):[];return so(i,function(Q){U[++I]=j?Gt(y,Q,C):Ka(Q,y,C)}),U}),PD=su(function(i,y,C){Li(i,C,y)});function gu(i,y){var C=et(i)?Wt:Nb;return C(i,We(y,3))}function BD(i,y,C,I){return i==null?[]:(et(y)||(y=y==null?[]:[y]),C=I?n:C,et(C)||(C=C==null?[]:[C]),jb(i,y,C))}var jD=su(function(i,y,C){i[C?0:1].push(y)},function(){return[[],[]]});function HD(i,y,C){var I=et(i)?Fr:ja,j=arguments.length<3;return I(i,We(y,4),C,j,so)}function zD(i,y,C){var I=et(i)?jo:ja,j=arguments.length<3;return I(i,We(y,4),C,j,Mb)}function WD(i,y){var C=et(i)?pr:Eb;return C(i,wu(We(y,3)))}function UD(i){var y=et(i)?$b:NO;return y(i)}function qD(i,y,C){(C?ir(i,y,C):y===n)?y=1:y=at(y);var I=et(i)?pO:FO;return I(i,y)}function VD(i){var y=et(i)?fO:BO;return y(i)}function GD(i){if(i==null)return 0;if(mr(i))return vu(i)?st(i):i.length;var y=Zn(i);return y==ft||y==rn?i.size:Sp(i).length}function YD(i,y,C){var I=et(i)?Es:jO;return C&&ir(i,y,C)&&(y=n),I(i,We(y,3))}var KD=pt(function(i,y){if(i==null)return[];var C=y.length;return C>1&&ir(i,y[0],y[1])?y=[]:C>2&&ir(y[0],y[1],y[2])&&(y=[y[0]]),jb(i,Pn(y,1),[])}),mu=ML||function(){return Rn.Date.now()};function QD(i,y){if(typeof y!="function")throw new On(f);return i=at(i),function(){if(--i<1)return y.apply(this,arguments)}}function Dv(i,y,C){return y=C?n:y,y=i&&y==null?i.length:y,Oi(i,T,n,n,n,n,y)}function Iv(i,y){var C;if(typeof y!="function")throw new On(f);return i=at(i),function(){return--i>0&&(C=y.apply(this,arguments)),i<=1&&(y=n),C}}var Yp=pt(function(i,y,C){var I=m;if(C.length){var j=ke(C,Bs(Yp));I|=k}return Oi(i,I,y,C,j)}),Nv=pt(function(i,y,C){var I=m|b;if(C.length){var j=ke(C,Bs(Nv));I|=k}return Oi(y,I,i,C,j)});function Fv(i,y,C){y=C?n:y;var I=Oi(i,E,n,n,n,n,n,y);return I.placeholder=Fv.placeholder,I}function Pv(i,y,C){y=C?n:y;var I=Oi(i,A,n,n,n,n,n,y);return I.placeholder=Pv.placeholder,I}function Bv(i,y,C){var I,j,U,Q,ee,ie,ge=0,ye=!1,be=!1,Ae=!0;if(typeof i!="function")throw new On(f);y=zr(y)||0,tn(C)&&(ye=!!C.leading,be="maxWait"in C,U=be?Dn(zr(C.maxWait)||0,y):U,Ae="trailing"in C?!!C.trailing:Ae);function Ie(dn){var ei=I,Pi=j;return I=j=n,ge=dn,Q=i.apply(Pi,ei),Q}function qe(dn){return ge=dn,ee=el(wt,y),ye?Ie(dn):Q}function ct(dn){var ei=dn-ie,Pi=dn-ge,i1=y-ei;return be?Qn(i1,U-Pi):i1}function Ve(dn){var ei=dn-ie,Pi=dn-ge;return ie===n||ei>=y||ei<0||be&&Pi>=U}function wt(){var dn=mu();if(Ve(dn))return _t(dn);ee=el(wt,ct(dn))}function _t(dn){return ee=n,Ae&&I?Ie(dn):(I=j=n,Q)}function Mr(){ee!==n&&Kb(ee),ge=0,I=ie=j=ee=n}function or(){return ee===n?Q:_t(mu())}function Er(){var dn=mu(),ei=Ve(dn);if(I=arguments,j=this,ie=dn,ei){if(ee===n)return qe(ie);if(be)return Kb(ee),ee=el(wt,y),Ie(ie)}return ee===n&&(ee=el(wt,y)),Q}return Er.cancel=Mr,Er.flush=or,Er}var ZD=pt(function(i,y){return Tb(i,1,y)}),JD=pt(function(i,y,C){return Tb(i,zr(y)||0,C)});function XD(i){return Oi(i,O)}function yu(i,y){if(typeof i!="function"||y!=null&&typeof y!="function")throw new On(f);var C=function(){var I=arguments,j=y?y.apply(this,I):I[0],U=C.cache;if(U.has(j))return U.get(j);var Q=i.apply(this,I);return C.cache=U.set(j,Q)||U,Q};return C.cache=new(yu.Cache||Ri),C}yu.Cache=Ri;function wu(i){if(typeof i!="function")throw new On(f);return function(){var y=arguments;switch(y.length){case 0:return!i.call(this);case 1:return!i.call(this,y[0]);case 2:return!i.call(this,y[0],y[1]);case 3:return!i.call(this,y[0],y[1],y[2])}return!i.apply(this,y)}}function eI(i){return Iv(2,i)}var tI=HO(function(i,y){y=y.length==1&&et(y[0])?Wt(y[0],Kn(We())):Wt(Pn(y,1),Kn(We()));var C=y.length;return pt(function(I){for(var j=-1,U=Qn(I.length,C);++j<U;)I[j]=y[j].call(this,I[j]);return Gt(i,this,I)})}),Kp=pt(function(i,y){var C=ke(y,Bs(Kp));return Oi(i,k,n,y,C)}),jv=pt(function(i,y){var C=ke(y,Bs(jv));return Oi(i,v,n,y,C)}),nI=Di(function(i,y){return Oi(i,R,n,n,n,y)});function rI(i,y){if(typeof i!="function")throw new On(f);return y=y===n?y:at(y),pt(i,y)}function iI(i,y){if(typeof i!="function")throw new On(f);return y=y==null?0:Dn(at(y),0),pt(function(C){var I=C[y],j=co(C,0,y);return I&&Yn(j,I),Gt(i,this,j)})}function oI(i,y,C){var I=!0,j=!0;if(typeof i!="function")throw new On(f);return tn(C)&&(I="leading"in C?!!C.leading:I,j="trailing"in C?!!C.trailing:j),Bv(i,y,{leading:I,maxWait:y,trailing:j})}function sI(i){return Dv(i,1)}function aI(i,y){return Kp(Op(y),i)}function lI(){if(!arguments.length)return[];var i=arguments[0];return et(i)?i:[i]}function cI(i){return Br(i,u)}function uI(i,y){return y=typeof y=="function"?y:n,Br(i,u,y)}function hI(i){return Br(i,l|u)}function dI(i,y){return y=typeof y=="function"?y:n,Br(i,l|u,y)}function pI(i,y){return y==null||Ab(i,y,Fn(y))}function Xr(i,y){return i===y||i!==i&&y!==y}var fI=uu(xp),gI=uu(function(i,y){return i>=y}),Qo=Ob(function(){return arguments}())?Ob:function(i){return an(i)&&Ot.call(i,"callee")&&!bb.call(i,"callee")},et=se.isArray,mI=Dc?Kn(Dc):SO;function mr(i){return i!=null&&bu(i.length)&&!Ni(i)}function hn(i){return an(i)&&mr(i)}function yI(i){return i===!0||i===!1||an(i)&&rr(i)==we}var uo=RL||af,wI=Nr?Kn(Nr):$O;function bI(i){return an(i)&&i.nodeType===1&&!tl(i)}function vI(i){if(i==null)return!0;if(mr(i)&&(et(i)||typeof i=="string"||typeof i.splice=="function"||uo(i)||js(i)||Qo(i)))return!i.length;var y=Zn(i);if(y==ft||y==rn)return!i.size;if(Xa(i))return!Sp(i).length;for(var C in i)if(Ot.call(i,C))return!1;return!0}function xI(i,y){return Qa(i,y)}function _I(i,y,C){C=typeof C=="function"?C:n;var I=C?C(i,y):n;return I===n?Qa(i,y,n,C):!!I}function Qp(i){if(!an(i))return!1;var y=rr(i);return y==Se||y==me||typeof i.message=="string"&&typeof i.name=="string"&&!tl(i)}function kI(i){return typeof i=="number"&&xb(i)}function Ni(i){if(!tn(i))return!1;var y=rr(i);return y==lt||y==Ht||y==ae||y==ci}function Hv(i){return typeof i=="number"&&i==at(i)}function bu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=B}function tn(i){var y=typeof i;return i!=null&&(y=="object"||y=="function")}function an(i){return i!=null&&typeof i=="object"}var zv=Qr?Kn(Qr):AO;function SI(i,y){return i===y||kp(i,y,jp(y))}function $I(i,y,C){return C=typeof C=="function"?C:n,kp(i,y,jp(y),C)}function CI(i){return Wv(i)&&i!=+i}function AI(i){if(u2(i))throw new Pe(h);return Db(i)}function TI(i){return i===null}function MI(i){return i==null}function Wv(i){return typeof i=="number"||an(i)&&rr(i)==yt}function tl(i){if(!an(i)||rr(i)!=Ft)return!1;var y=Vc(i);if(y===null)return!0;var C=Ot.call(y,"constructor")&&y.constructor;return typeof C=="function"&&C instanceof C&&zc.call(C)==$L}var Zp=mi?Kn(mi):TO;function EI(i){return Hv(i)&&i>=-B&&i<=B}var Uv=Ti?Kn(Ti):MO;function vu(i){return typeof i=="string"||!et(i)&&an(i)&&rr(i)==Be}function Tr(i){return typeof i=="symbol"||an(i)&&rr(i)==ze}var js=Ic?Kn(Ic):EO;function RI(i){return i===n}function LI(i){return an(i)&&Zn(i)==Ue}function OI(i){return an(i)&&rr(i)==ce}var DI=uu($p),II=uu(function(i,y){return i<=y});function qv(i){if(!i)return[];if(mr(i))return vu(i)?Ye(i):gr(i);if(za&&i[za])return fe(i[za]());var y=Zn(i),C=y==ft?xe:y==rn?Ce:Hs;return C(i)}function Fi(i){if(!i)return i===0?i:0;if(i=zr(i),i===F||i===-F){var y=i<0?-1:1;return y*W}return i===i?i:0}function at(i){var y=Fi(i),C=y%1;return y===y?C?y-C:y:0}function Vv(i){return i?Vo(at(i),0,V):0}function zr(i){if(typeof i=="number")return i;if(Tr(i))return q;if(tn(i)){var y=typeof i.valueOf=="function"?i.valueOf():i;i=tn(y)?y+"":y}if(typeof i!="string")return i===0?i:+i;i=Xt(i);var C=di.test(i);return C||bn.test(i)?Pt(i.slice(2),C?2:8):_c.test(i)?q:+i}function Gv(i){return wi(i,yr(i))}function NI(i){return i?Vo(at(i),-B,B):i===0?i:0}function Et(i){return i==null?"":Ar(i)}var FI=Fs(function(i,y){if(Xa(y)||mr(y)){wi(y,Fn(y),i);return}for(var C in y)Ot.call(y,C)&&Ga(i,C,y[C])}),Yv=Fs(function(i,y){wi(y,yr(y),i)}),xu=Fs(function(i,y,C,I){wi(y,yr(y),i,I)}),PI=Fs(function(i,y,C,I){wi(y,Fn(y),i,I)}),BI=Di(wp);function jI(i,y){var C=Ns(i);return y==null?C:Cb(C,y)}var HI=pt(function(i,y){i=Xe(i);var C=-1,I=y.length,j=I>2?y[2]:n;for(j&&ir(y[0],y[1],j)&&(I=1);++C<I;)for(var U=y[C],Q=yr(U),ee=-1,ie=Q.length;++ee<ie;){var ge=Q[ee],ye=i[ge];(ye===n||Xr(ye,Os[ge])&&!Ot.call(i,ge))&&(i[ge]=U[ge])}return i}),zI=pt(function(i){return i.push(n,hv),Gt(Kv,n,i)});function WI(i,y){return Na(i,We(y,3),yi)}function UI(i,y){return Na(i,We(y,3),vp)}function qI(i,y){return i==null?i:bp(i,We(y,3),yr)}function VI(i,y){return i==null?i:Rb(i,We(y,3),yr)}function GI(i,y){return i&&yi(i,We(y,3))}function YI(i,y){return i&&vp(i,We(y,3))}function KI(i){return i==null?[]:nu(i,Fn(i))}function QI(i){return i==null?[]:nu(i,yr(i))}function Jp(i,y,C){var I=i==null?n:Go(i,y);return I===n?C:I}function ZI(i,y){return i!=null&&fv(i,y,vO)}function Xp(i,y){return i!=null&&fv(i,y,xO)}var JI=sv(function(i,y,C){y!=null&&typeof y.toString!="function"&&(y=Wc.call(y)),i[y]=C},tf(wr)),XI=sv(function(i,y,C){y!=null&&typeof y.toString!="function"&&(y=Wc.call(y)),Ot.call(i,y)?i[y].push(C):i[y]=[C]},We),eN=pt(Ka);function Fn(i){return mr(i)?Sb(i):Sp(i)}function yr(i){return mr(i)?Sb(i,!0):RO(i)}function tN(i,y){var C={};return y=We(y,3),yi(i,function(I,j,U){Li(C,y(I,j,U),I)}),C}function nN(i,y){var C={};return y=We(y,3),yi(i,function(I,j,U){Li(C,j,y(I,j,U))}),C}var rN=Fs(function(i,y,C){ru(i,y,C)}),Kv=Fs(function(i,y,C,I){ru(i,y,C,I)}),iN=Di(function(i,y){var C={};if(i==null)return C;var I=!1;y=Wt(y,function(U){return U=lo(U,i),I||(I=U.length>1),U}),wi(i,Pp(i),C),I&&(C=Br(C,l|a|u,JO));for(var j=y.length;j--;)Ep(C,y[j]);return C});function oN(i,y){return Qv(i,wu(We(y)))}var sN=Di(function(i,y){return i==null?{}:OO(i,y)});function Qv(i,y){if(i==null)return{};var C=Wt(Pp(i),function(I){return[I]});return y=We(y),Hb(i,C,function(I,j){return y(I,j[0])})}function aN(i,y,C){y=lo(y,i);var I=-1,j=y.length;for(j||(j=1,i=n);++I<j;){var U=i==null?n:i[bi(y[I])];U===n&&(I=j,U=C),i=Ni(U)?U.call(i):U}return i}function lN(i,y,C){return i==null?i:Za(i,y,C)}function cN(i,y,C,I){return I=typeof I=="function"?I:n,i==null?i:Za(i,y,C,I)}var Zv=cv(Fn),Jv=cv(yr);function uN(i,y,C){var I=et(i),j=I||uo(i)||js(i);if(y=We(y,4),C==null){var U=i&&i.constructor;j?C=I?new U:[]:tn(i)?C=Ni(U)?Ns(Vc(i)):{}:C={}}return(j?tr:yi)(i,function(Q,ee,ie){return y(C,Q,ee,ie)}),C}function hN(i,y){return i==null?!0:Ep(i,y)}function dN(i,y,C){return i==null?i:Vb(i,y,Op(C))}function pN(i,y,C,I){return I=typeof I=="function"?I:n,i==null?i:Vb(i,y,Op(C),I)}function Hs(i){return i==null?[]:zo(i,Fn(i))}function fN(i){return i==null?[]:zo(i,yr(i))}function gN(i,y,C){return C===n&&(C=y,y=n),C!==n&&(C=zr(C),C=C===C?C:0),y!==n&&(y=zr(y),y=y===y?y:0),Vo(zr(i),y,C)}function mN(i,y,C){return y=Fi(y),C===n?(C=y,y=0):C=Fi(C),i=zr(i),_O(i,y,C)}function yN(i,y,C){if(C&&typeof C!="boolean"&&ir(i,y,C)&&(y=C=n),C===n&&(typeof y=="boolean"?(C=y,y=n):typeof i=="boolean"&&(C=i,i=n)),i===n&&y===n?(i=0,y=1):(i=Fi(i),y===n?(y=i,i=0):y=Fi(y)),i>y){var I=i;i=y,y=I}if(C||i%1||y%1){var j=_b();return Qn(i+j*(y-i+_n("1e-"+((j+"").length-1))),y)}return Ap(i,y)}var wN=Ps(function(i,y,C){return y=y.toLowerCase(),i+(C?Xv(y):y)});function Xv(i){return ef(Et(i).toLowerCase())}function e1(i){return i=Et(i),i&&i.replace(vs,P).replace(Xi,"")}function bN(i,y,C){i=Et(i),y=Ar(y);var I=i.length;C=C===n?I:Vo(at(C),0,I);var j=C;return C-=y.length,C>=0&&i.slice(C,j)==y}function vN(i){return i=Et(i),i&&ip.test(i)?i.replace(bc,H):i}function xN(i){return i=Et(i),i&&qi.test(i)?i.replace(hi,"\\$&"):i}var _N=Ps(function(i,y,C){return i+(C?"-":"")+y.toLowerCase()}),kN=Ps(function(i,y,C){return i+(C?" ":"")+y.toLowerCase()}),SN=rv("toLowerCase");function $N(i,y,C){i=Et(i),y=at(y);var I=y?st(i):0;if(!y||I>=y)return i;var j=(y-I)/2;return cu(Qc(j),C)+i+cu(Kc(j),C)}function CN(i,y,C){i=Et(i),y=at(y);var I=y?st(i):0;return y&&I<y?i+cu(y-I,C):i}function AN(i,y,C){i=Et(i),y=at(y);var I=y?st(i):0;return y&&I<y?cu(y-I,C)+i:i}function TN(i,y,C){return C||y==null?y=0:y&&(y=+y),IL(Et(i).replace(Vn,""),y||0)}function MN(i,y,C){return(C?ir(i,y,C):y===n)?y=1:y=at(y),Tp(Et(i),y)}function EN(){var i=arguments,y=Et(i[0]);return i.length<3?y:y.replace(i[1],i[2])}var RN=Ps(function(i,y,C){return i+(C?"_":"")+y.toLowerCase()});function LN(i,y,C){return C&&typeof C!="number"&&ir(i,y,C)&&(y=C=n),C=C===n?V:C>>>0,C?(i=Et(i),i&&(typeof y=="string"||y!=null&&!Zp(y))&&(y=Ar(y),!y&&te(i))?co(Ye(i),0,C):i.split(y,C)):[]}var ON=Ps(function(i,y,C){return i+(C?" ":"")+ef(y)});function DN(i,y,C){return i=Et(i),C=C==null?0:Vo(at(C),0,i.length),y=Ar(y),i.slice(C,C+y.length)==y}function IN(i,y,C){var I=z.templateSettings;C&&ir(i,y,C)&&(y=n),i=Et(i),y=xu({},y,I,uv);var j=xu({},y.imports,I.imports,uv),U=Fn(j),Q=zo(j,U),ee,ie,ge=0,ye=y.interpolate||Gn,be="__p += '",Ae=Ln((y.escape||Gn).source+"|"+ye.source+"|"+(ye===je?cp:Gn).source+"|"+(y.evaluate||Gn).source+"|$","g"),Ie="//# sourceURL="+(Ot.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Lc+"]")+`
1396
+ `;i.replace(Ae,function(Ve,wt,_t,Mr,or,Er){return _t||(_t=Mr),be+=i.slice(ge,Er).replace(Do,Y),wt&&(ee=!0,be+=`' +
1397
+ __e(`+wt+`) +
1398
+ '`),or&&(ie=!0,be+=`';
1399
+ `+or+`;
1400
+ __p += '`),_t&&(be+=`' +
1401
+ ((__t = (`+_t+`)) == null ? '' : __t) +
1402
+ '`),ge=Er+Ve.length,Ve}),be+=`';
1403
+ `;var qe=Ot.call(y,"variable")&&y.variable;if(!qe)be=`with (obj) {
1404
+ `+be+`
1405
+ }
1406
+ `;else if(lp.test(qe))throw new Pe(w);be=(ie?be.replace(ki,""):be).replace(hr,"$1").replace(ya,"$1;"),be="function("+(qe||"obj")+`) {
1407
+ `+(qe?"":`obj || (obj = {});
1408
+ `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
1409
+ function print() { __p += __j.call(arguments, '') }
1410
+ `:`;
1411
+ `)+be+`return __p
1412
+ }`;var ct=n1(function(){return Ze(U,Ie+"return "+be).apply(n,Q)});if(ct.source=be,Qp(ct))throw ct;return ct}function NN(i){return Et(i).toLowerCase()}function FN(i){return Et(i).toUpperCase()}function PN(i,y,C){if(i=Et(i),i&&(C||y===n))return Xt(i);if(!i||!(y=Ar(y)))return i;var I=Ye(i),j=Ye(y),U=Bc(I,j),Q=jc(I,j)+1;return co(I,U,Q).join("")}function BN(i,y,C){if(i=Et(i),i&&(C||y===n))return i.slice(0,Je(i)+1);if(!i||!(y=Ar(y)))return i;var I=Ye(i),j=jc(I,Ye(y))+1;return co(I,0,j).join("")}function jN(i,y,C){if(i=Et(i),i&&(C||y===n))return i.replace(Vn,"");if(!i||!(y=Ar(y)))return i;var I=Ye(i),j=Bc(I,Ye(y));return co(I,j).join("")}function HN(i,y){var C=M,I=N;if(tn(y)){var j="separator"in y?y.separator:j;C="length"in y?at(y.length):C,I="omission"in y?Ar(y.omission):I}i=Et(i);var U=i.length;if(te(i)){var Q=Ye(i);U=Q.length}if(C>=U)return i;var ee=C-st(I);if(ee<1)return I;var ie=Q?co(Q,0,ee).join(""):i.slice(0,ee);if(j===n)return ie+I;if(Q&&(ee+=ie.length-ee),Zp(j)){if(i.slice(ee).search(j)){var ge,ye=ie;for(j.global||(j=Ln(j.source,Et(Yi.exec(j))+"g")),j.lastIndex=0;ge=j.exec(ye);)var be=ge.index;ie=ie.slice(0,be===n?ee:be)}}else if(i.indexOf(Ar(j),ee)!=ee){var Ae=ie.lastIndexOf(j);Ae>-1&&(ie=ie.slice(0,Ae))}return ie+I}function zN(i){return i=Et(i),i&&rp.test(i)?i.replace(wa,Oe):i}var WN=Ps(function(i,y,C){return i+(C?" ":"")+y.toUpperCase()}),ef=rv("toUpperCase");function t1(i,y,C){return i=Et(i),y=C?n:y,y===n?oe(i)?Yt(i):Rs(i):i.match(y)||[]}var n1=pt(function(i,y){try{return Gt(i,n,y)}catch(C){return Qp(C)?C:new Pe(C)}}),UN=Di(function(i,y){return tr(y,function(C){C=bi(C),Li(i,C,Yp(i[C],i))}),i});function qN(i){var y=i==null?0:i.length,C=We();return i=y?Wt(i,function(I){if(typeof I[1]!="function")throw new On(f);return[C(I[0]),I[1]]}):[],pt(function(I){for(var j=-1;++j<y;){var U=i[j];if(Gt(U[0],this,I))return Gt(U[1],this,I)}})}function VN(i){return yO(Br(i,l))}function tf(i){return function(){return i}}function GN(i,y){return i==null||i!==i?y:i}var YN=ov(),KN=ov(!0);function wr(i){return i}function nf(i){return Ib(typeof i=="function"?i:Br(i,l))}function QN(i){return Fb(Br(i,l))}function ZN(i,y){return Pb(i,Br(y,l))}var JN=pt(function(i,y){return function(C){return Ka(C,i,y)}}),XN=pt(function(i,y){return function(C){return Ka(i,C,y)}});function rf(i,y,C){var I=Fn(y),j=nu(y,I);C==null&&!(tn(y)&&(j.length||!I.length))&&(C=y,y=i,i=this,j=nu(y,Fn(y)));var U=!(tn(C)&&"chain"in C)||!!C.chain,Q=Ni(i);return tr(j,function(ee){var ie=y[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var ge=this.__chain__;if(U||ge){var ye=i(this.__wrapped__),be=ye.__actions__=gr(this.__actions__);return be.push({func:ie,args:arguments,thisArg:i}),ye.__chain__=ge,ye}return ie.apply(i,Yn([this.value()],arguments))})}),i}function eF(){return Rn._===this&&(Rn._=CL),this}function of(){}function tF(i){return i=at(i),pt(function(y){return Bb(y,i)})}var nF=Ip(Wt),rF=Ip(no),iF=Ip(Es);function r1(i){return zp(i)?Ba(bi(i)):DO(i)}function oF(i){return function(y){return i==null?n:Go(i,y)}}var sF=av(),aF=av(!0);function sf(){return[]}function af(){return!1}function lF(){return{}}function cF(){return""}function uF(){return!0}function hF(i,y){if(i=at(i),i<1||i>B)return[];var C=V,I=Qn(i,V);y=We(y),i-=V;for(var j=sn(I,y);++C<i;)y(C);return j}function dF(i){return et(i)?Wt(i,bi):Tr(i)?[i]:gr(kv(Et(i)))}function pF(i){var y=++SL;return Et(i)+y}var fF=lu(function(i,y){return i+y},0),gF=Np("ceil"),mF=lu(function(i,y){return i/y},1),yF=Np("floor");function wF(i){return i&&i.length?tu(i,wr,xp):n}function bF(i,y){return i&&i.length?tu(i,We(y,2),xp):n}function vF(i){return Pa(i,wr)}function xF(i,y){return Pa(i,We(y,2))}function _F(i){return i&&i.length?tu(i,wr,$p):n}function kF(i,y){return i&&i.length?tu(i,We(y,2),$p):n}var SF=lu(function(i,y){return i*y},1),$F=Np("round"),CF=lu(function(i,y){return i-y},0);function AF(i){return i&&i.length?io(i,wr):0}function TF(i,y){return i&&i.length?io(i,We(y,2)):0}return z.after=QD,z.ary=Dv,z.assign=FI,z.assignIn=Yv,z.assignInWith=xu,z.assignWith=PI,z.at=BI,z.before=Iv,z.bind=Yp,z.bindAll=UN,z.bindKey=Nv,z.castArray=lI,z.chain=Rv,z.chunk=y2,z.compact=w2,z.concat=b2,z.cond=qN,z.conforms=VN,z.constant=tf,z.countBy=AD,z.create=jI,z.curry=Fv,z.curryRight=Pv,z.debounce=Bv,z.defaults=HI,z.defaultsDeep=zI,z.defer=ZD,z.delay=JD,z.difference=v2,z.differenceBy=x2,z.differenceWith=_2,z.drop=k2,z.dropRight=S2,z.dropRightWhile=$2,z.dropWhile=C2,z.fill=A2,z.filter=MD,z.flatMap=LD,z.flatMapDeep=OD,z.flatMapDepth=DD,z.flatten=Av,z.flattenDeep=T2,z.flattenDepth=M2,z.flip=XD,z.flow=YN,z.flowRight=KN,z.fromPairs=E2,z.functions=KI,z.functionsIn=QI,z.groupBy=ID,z.initial=L2,z.intersection=O2,z.intersectionBy=D2,z.intersectionWith=I2,z.invert=JI,z.invertBy=XI,z.invokeMap=FD,z.iteratee=nf,z.keyBy=PD,z.keys=Fn,z.keysIn=yr,z.map=gu,z.mapKeys=tN,z.mapValues=nN,z.matches=QN,z.matchesProperty=ZN,z.memoize=yu,z.merge=rN,z.mergeWith=Kv,z.method=JN,z.methodOf=XN,z.mixin=rf,z.negate=wu,z.nthArg=tF,z.omit=iN,z.omitBy=oN,z.once=eI,z.orderBy=BD,z.over=nF,z.overArgs=tI,z.overEvery=rF,z.overSome=iF,z.partial=Kp,z.partialRight=jv,z.partition=jD,z.pick=sN,z.pickBy=Qv,z.property=r1,z.propertyOf=oF,z.pull=B2,z.pullAll=Mv,z.pullAllBy=j2,z.pullAllWith=H2,z.pullAt=z2,z.range=sF,z.rangeRight=aF,z.rearg=nI,z.reject=WD,z.remove=W2,z.rest=rI,z.reverse=Vp,z.sampleSize=qD,z.set=lN,z.setWith=cN,z.shuffle=VD,z.slice=U2,z.sortBy=KD,z.sortedUniq=Z2,z.sortedUniqBy=J2,z.split=LN,z.spread=iI,z.tail=X2,z.take=eD,z.takeRight=tD,z.takeRightWhile=nD,z.takeWhile=rD,z.tap=wD,z.throttle=oI,z.thru=fu,z.toArray=qv,z.toPairs=Zv,z.toPairsIn=Jv,z.toPath=dF,z.toPlainObject=Gv,z.transform=uN,z.unary=sI,z.union=iD,z.unionBy=oD,z.unionWith=sD,z.uniq=aD,z.uniqBy=lD,z.uniqWith=cD,z.unset=hN,z.unzip=Gp,z.unzipWith=Ev,z.update=dN,z.updateWith=pN,z.values=Hs,z.valuesIn=fN,z.without=uD,z.words=t1,z.wrap=aI,z.xor=hD,z.xorBy=dD,z.xorWith=pD,z.zip=fD,z.zipObject=gD,z.zipObjectDeep=mD,z.zipWith=yD,z.entries=Zv,z.entriesIn=Jv,z.extend=Yv,z.extendWith=xu,rf(z,z),z.add=fF,z.attempt=n1,z.camelCase=wN,z.capitalize=Xv,z.ceil=gF,z.clamp=gN,z.clone=cI,z.cloneDeep=hI,z.cloneDeepWith=dI,z.cloneWith=uI,z.conformsTo=pI,z.deburr=e1,z.defaultTo=GN,z.divide=mF,z.endsWith=bN,z.eq=Xr,z.escape=vN,z.escapeRegExp=xN,z.every=TD,z.find=ED,z.findIndex=$v,z.findKey=WI,z.findLast=RD,z.findLastIndex=Cv,z.findLastKey=UI,z.floor=yF,z.forEach=Lv,z.forEachRight=Ov,z.forIn=qI,z.forInRight=VI,z.forOwn=GI,z.forOwnRight=YI,z.get=Jp,z.gt=fI,z.gte=gI,z.has=ZI,z.hasIn=Xp,z.head=Tv,z.identity=wr,z.includes=ND,z.indexOf=R2,z.inRange=mN,z.invoke=eN,z.isArguments=Qo,z.isArray=et,z.isArrayBuffer=mI,z.isArrayLike=mr,z.isArrayLikeObject=hn,z.isBoolean=yI,z.isBuffer=uo,z.isDate=wI,z.isElement=bI,z.isEmpty=vI,z.isEqual=xI,z.isEqualWith=_I,z.isError=Qp,z.isFinite=kI,z.isFunction=Ni,z.isInteger=Hv,z.isLength=bu,z.isMap=zv,z.isMatch=SI,z.isMatchWith=$I,z.isNaN=CI,z.isNative=AI,z.isNil=MI,z.isNull=TI,z.isNumber=Wv,z.isObject=tn,z.isObjectLike=an,z.isPlainObject=tl,z.isRegExp=Zp,z.isSafeInteger=EI,z.isSet=Uv,z.isString=vu,z.isSymbol=Tr,z.isTypedArray=js,z.isUndefined=RI,z.isWeakMap=LI,z.isWeakSet=OI,z.join=N2,z.kebabCase=_N,z.last=Hr,z.lastIndexOf=F2,z.lowerCase=kN,z.lowerFirst=SN,z.lt=DI,z.lte=II,z.max=wF,z.maxBy=bF,z.mean=vF,z.meanBy=xF,z.min=_F,z.minBy=kF,z.stubArray=sf,z.stubFalse=af,z.stubObject=lF,z.stubString=cF,z.stubTrue=uF,z.multiply=SF,z.nth=P2,z.noConflict=eF,z.noop=of,z.now=mu,z.pad=$N,z.padEnd=CN,z.padStart=AN,z.parseInt=TN,z.random=yN,z.reduce=HD,z.reduceRight=zD,z.repeat=MN,z.replace=EN,z.result=aN,z.round=$F,z.runInContext=ne,z.sample=UD,z.size=GD,z.snakeCase=RN,z.some=YD,z.sortedIndex=q2,z.sortedIndexBy=V2,z.sortedIndexOf=G2,z.sortedLastIndex=Y2,z.sortedLastIndexBy=K2,z.sortedLastIndexOf=Q2,z.startCase=ON,z.startsWith=DN,z.subtract=CF,z.sum=AF,z.sumBy=TF,z.template=IN,z.times=hF,z.toFinite=Fi,z.toInteger=at,z.toLength=Vv,z.toLower=NN,z.toNumber=zr,z.toSafeInteger=NI,z.toString=Et,z.toUpper=FN,z.trim=PN,z.trimEnd=BN,z.trimStart=jN,z.truncate=HN,z.unescape=zN,z.uniqueId=pF,z.upperCase=WN,z.upperFirst=ef,z.each=Lv,z.eachRight=Ov,z.first=Tv,rf(z,function(){var i={};return yi(z,function(y,C){Ot.call(z.prototype,C)||(i[C]=y)}),i}(),{chain:!1}),z.VERSION=r,tr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){z[i].placeholder=z}),tr(["drop","take"],function(i,y){xt.prototype[i]=function(C){C=C===n?1:Dn(at(C),0);var I=this.__filtered__&&!y?new xt(this):this.clone();return I.__filtered__?I.__takeCount__=Qn(C,I.__takeCount__):I.__views__.push({size:Qn(C,V),type:i+(I.__dir__<0?"Right":"")}),I},xt.prototype[i+"Right"]=function(C){return this.reverse()[i](C).reverse()}}),tr(["filter","map","takeWhile"],function(i,y){var C=y+1,I=C==$||C==D;xt.prototype[i]=function(j){var U=this.clone();return U.__iteratees__.push({iteratee:We(j,3),type:C}),U.__filtered__=U.__filtered__||I,U}}),tr(["head","last"],function(i,y){var C="take"+(y?"Right":"");xt.prototype[i]=function(){return this[C](1).value()[0]}}),tr(["initial","tail"],function(i,y){var C="drop"+(y?"":"Right");xt.prototype[i]=function(){return this.__filtered__?new xt(this):this[C](1)}}),xt.prototype.compact=function(){return this.filter(wr)},xt.prototype.find=function(i){return this.filter(i).head()},xt.prototype.findLast=function(i){return this.reverse().find(i)},xt.prototype.invokeMap=pt(function(i,y){return typeof i=="function"?new xt(this):this.map(function(C){return Ka(C,i,y)})}),xt.prototype.reject=function(i){return this.filter(wu(We(i)))},xt.prototype.slice=function(i,y){i=at(i);var C=this;return C.__filtered__&&(i>0||y<0)?new xt(C):(i<0?C=C.takeRight(-i):i&&(C=C.drop(i)),y!==n&&(y=at(y),C=y<0?C.dropRight(-y):C.take(y-i)),C)},xt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},xt.prototype.toArray=function(){return this.take(V)},yi(xt.prototype,function(i,y){var C=/^(?:filter|find|map|reject)|While$/.test(y),I=/^(?:head|last)$/.test(y),j=z[I?"take"+(y=="last"?"Right":""):y],U=I||/^find/.test(y);j&&(z.prototype[y]=function(){var Q=this.__wrapped__,ee=I?[1]:arguments,ie=Q instanceof xt,ge=ee[0],ye=ie||et(Q),be=function(wt){var _t=j.apply(z,Yn([wt],ee));return I&&Ae?_t[0]:_t};ye&&C&&typeof ge=="function"&&ge.length!=1&&(ie=ye=!1);var Ae=this.__chain__,Ie=!!this.__actions__.length,qe=U&&!Ae,ct=ie&&!Ie;if(!U&&ye){Q=ct?Q:new xt(this);var Ve=i.apply(Q,ee);return Ve.__actions__.push({func:fu,args:[be],thisArg:n}),new Pr(Ve,Ae)}return qe&&ct?i.apply(this,ee):(Ve=this.thru(be),qe?I?Ve.value()[0]:Ve.value():Ve)})}),tr(["pop","push","shift","sort","splice","unshift"],function(i){var y=Cr[i],C=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",I=/^(?:pop|shift)$/.test(i);z.prototype[i]=function(){var j=arguments;if(I&&!this.__chain__){var U=this.value();return y.apply(et(U)?U:[],j)}return this[C](function(Q){return y.apply(et(Q)?Q:[],j)})}}),yi(xt.prototype,function(i,y){var C=z[y];if(C){var I=C.name+"";Ot.call(Is,I)||(Is[I]=[]),Is[I].push({name:y,func:C})}}),Is[au(n,b).name]=[{name:"wrapper",func:n}],xt.prototype.clone=zL,xt.prototype.reverse=WL,xt.prototype.value=UL,z.prototype.at=bD,z.prototype.chain=vD,z.prototype.commit=xD,z.prototype.next=_D,z.prototype.plant=SD,z.prototype.reverse=$D,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=CD,z.prototype.first=z.prototype.head,za&&(z.prototype[za]=kD),z},jt=Bt();Nn?((Nn.exports=jt)._=jt,Ir._=jt):Rn._=jt}).call(OS)}(Ll,Ll.exports)),Ll.exports}var IS=DS();Wr("K",ml(IS)).debounce(function(){this.rebuildDisplayText()},300);var vm={exports:{}},xm;function NS(){return xm||(xm=1,function(t,e){(function(){ace.require(["ace/mode/text"],function(n){t.exports=n})})()}(vm)),vm.exports}NS();const FS=!0,Sn="u-",PS="uplot",BS=Sn+"hz",jS=Sn+"vt",HS=Sn+"title",zS=Sn+"wrap",WS=Sn+"under",US=Sn+"over",qS=Sn+"axis",_o=Sn+"off",VS=Sn+"select",GS=Sn+"cursor-x",YS=Sn+"cursor-y",KS=Sn+"cursor-pt",QS=Sn+"legend",ZS=Sn+"live",JS=Sn+"inline",XS=Sn+"series",e$=Sn+"marker",_m=Sn+"label",t$=Sn+"value",ea="width",ta="height",na="top",km="bottom",is="left",ch="right",uh="#000",Sm=uh+"0",$m="mousemove",Cm="mousedown",hh="mouseup",Am="mouseenter",Tm="mouseleave",Mm="dblclick",n$="resize",r$="scroll",Em="change",Ol="dppxchange",dh="--",os=typeof window<"u",ph=os?document:null,ss=os?window:null,i$=os?navigator:null;let $t,Dl;function fh(){let t=devicePixelRatio;$t!=t&&($t=t,Dl&&yh(Em,Dl,fh),Dl=matchMedia(`(min-resolution: ${$t-.001}dppx) and (max-resolution: ${$t+.001}dppx)`),ko(Em,Dl,fh),ss.dispatchEvent(new CustomEvent(Ol)))}function xr(t,e){if(e!=null){let n=t.classList;!n.contains(e)&&n.add(e)}}function gh(t,e){let n=t.classList;n.contains(e)&&n.remove(e)}function Ut(t,e,n){t.style[e]=n+"px"}function Vr(t,e,n,r){let d=ph.createElement(t);return e!=null&&xr(d,e),n!=null&&n.insertBefore(d,r),d}function Rr(t,e){return Vr("div",t,e)}const Rm=new WeakMap;function ii(t,e,n,r,d){let h="translate("+e+"px,"+n+"px)",f=Rm.get(t);h!=f&&(t.style.transform=h,Rm.set(t,h),e<0||n<0||e>r||n>d?xr(t,_o):gh(t,_o))}const Lm=new WeakMap;function Om(t,e,n){let r=e+n,d=Lm.get(t);r!=d&&(Lm.set(t,r),t.style.background=e,t.style.borderColor=n)}const Dm=new WeakMap;function Im(t,e,n,r){let d=e+""+n,h=Dm.get(t);d!=h&&(Dm.set(t,d),t.style.height=n+"px",t.style.width=e+"px",t.style.marginLeft=r?-e/2+"px":0,t.style.marginTop=r?-n/2+"px":0)}const mh={passive:!0},o$={...mh,capture:!0};function ko(t,e,n,r){e.addEventListener(t,n,r?o$:mh)}function yh(t,e,n,r){e.removeEventListener(t,n,mh)}os&&fh();function Gr(t,e,n,r){let d;n=n||0,r=r||e.length-1;let h=r<=2147483647;for(;r-n>1;)d=h?n+r>>1:kr((n+r)/2),e[d]<t?n=d:r=d;return t-e[n]<=e[r]-t?n:r}function as(t,e,n,r){for(let d=r==1?e:n;d>=e&&d<=n;d+=r)if(t[d]!=null)return d;return-1}function s$(t,e,n,r){let d=bt,h=-bt;if(r==1)d=t[e],h=t[n];else if(r==-1)d=t[n],h=t[e];else for(let f=e;f<=n;f++){let w=t[f];w!=null&&(w<d&&(d=w),w>h&&(h=w))}return[d,h]}function a$(t,e,n){let r=bt,d=-bt;for(let h=e;h<=n;h++){let f=t[h];f!=null&&f>0&&(f<r&&(r=f),f>d&&(d=f))}return[r,d]}function Il(t,e,n,r){let d=Pm(t),h=Pm(e);t==e&&(d==-1?(t*=n,e/=n):(t/=n,e*=n));let f=n==10?xi:Bm,w=d==1?kr:Lr,p=h==1?Lr:kr,g=w(f($n(t))),s=p(f($n(e))),l=ls(n,g),a=ls(n,s);return n==10&&(g<0&&(l=Nt(l,-g)),s<0&&(a=Nt(a,-s))),r||n==2?(t=l*d,e=a*h):(t=qm(t,l),e=Pl(e,a)),[t,e]}function wh(t,e,n,r){let d=Il(t,e,n,r);return t==0&&(d[0]=0),e==0&&(d[1]=0),d}const bh=.1,Nm={mode:3,pad:bh},ra={pad:0,soft:null,mode:0},l$={min:ra,max:ra};function Nl(t,e,n,r){return Bl(n)?Fm(t,e,n):(ra.pad=n,ra.soft=r?0:null,ra.mode=r?3:0,Fm(t,e,l$))}function St(t,e){return t??e}function c$(t,e,n){for(e=St(e,0),n=St(n,t.length-1);e<=n;){if(t[e]!=null)return!0;e++}return!1}function Fm(t,e,n){let r=n.min,d=n.max,h=St(r.pad,0),f=St(d.pad,0),w=St(r.hard,-bt),p=St(d.hard,bt),g=St(r.soft,bt),s=St(d.soft,-bt),l=St(r.mode,0),a=St(d.mode,0),u=e-t,o=xi(u),c=Hn($n(t),$n(e)),m=xi(c),b=$n(m-o);(u<1e-24||b>10)&&(u=0,(t==0||e==0)&&(u=1e-24,l==2&&g!=bt&&(h=0),a==2&&s!=-bt&&(f=0)));let x=u||c||1e3,E=xi(x),A=ls(10,kr(E)),k=x*(u==0?t==0?.1:1:h),v=Nt(qm(t-k,A/10),24),T=t>=g&&(l==1||l==3&&v<=g||l==2&&v>=g)?g:bt,R=Hn(w,v<T&&t>=T?T:Or(T,v)),O=x*(u==0?e==0?.1:1:f),M=Nt(Pl(e+O,A/10),24),N=e<=s&&(a==1||a==3&&M>=s||a==2&&M<=s)?s:-bt,S=Or(p,M>N&&e<=N?N:Hn(N,M));return R==S&&R==0&&(S=100),[R,S]}const u$=new Intl.NumberFormat(os?i$.language:"en-US"),vh=t=>u$.format(t),_r=Math,Fl=_r.PI,$n=_r.abs,kr=_r.floor,Cn=_r.round,Lr=_r.ceil,Or=_r.min,Hn=_r.max,ls=_r.pow,Pm=_r.sign,xi=_r.log10,Bm=_r.log2,h$=(t,e=1)=>_r.sinh(t)*e,xh=(t,e=1)=>_r.asinh(t/e),bt=1/0;function jm(t){return(xi((t^t>>31)-(t>>31))|0)+1}function _h(t,e,n){return Or(Hn(t,e),n)}function vt(t){return typeof t=="function"?t:()=>t}const d$=()=>{},Hm=t=>t,zm=(t,e)=>e,Wm=t=>!0,Um=(t,e)=>t==e,p$=/\.\d*?(?=9{6,}|0{6,})/gm,So=t=>{if(Gm(t)||Wi.has(t))return t;const e=`${t}`,n=e.match(p$);if(n==null)return t;let r=n[0].length-1;if(e.indexOf("e-")!=-1){let[d,h]=e.split("e");return+`${So(d)}e${h}`}return Nt(t,r)};function $o(t,e){return So(Nt(So(t/e))*e)}function Pl(t,e){return So(Lr(So(t/e))*e)}function qm(t,e){return So(kr(So(t/e))*e)}function Nt(t,e=0){if(Gm(t))return t;let n=10**e,r=t*n*(1+Number.EPSILON);return Cn(r)/n}const Wi=new Map;function Vm(t){return((""+t).split(".")[1]||"").length}function ia(t,e,n,r){let d=[],h=r.map(Vm);for(let f=e;f<n;f++){let w=$n(f),p=Nt(ls(t,f),w);for(let g=0;g<r.length;g++){let s=t==10?+`${r[g]}e${f}`:r[g]*p,l=(f>=0?0:w)+(f>=h[g]?0:h[g]),a=t==10?s:Nt(s,l);d.push(a),Wi.set(a,l)}}return d}const oa={},kh=[],cs=[null,null],Ui=Array.isArray,Gm=Number.isInteger,f$=t=>t===void 0;function Ym(t){return typeof t=="string"}function Bl(t){let e=!1;if(t!=null){let n=t.constructor;e=n==null||n==Object}return e}function g$(t){return t!=null&&typeof t=="object"}const m$=Object.getPrototypeOf(Uint8Array),Km="__proto__";function us(t,e=Bl){let n;if(Ui(t)){let r=t.find(d=>d!=null);if(Ui(r)||e(r)){n=Array(t.length);for(let d=0;d<t.length;d++)n[d]=us(t[d],e)}else n=t.slice()}else if(t instanceof m$)n=t.slice();else if(e(t)){n={};for(let r in t)r!=Km&&(n[r]=us(t[r],e))}else n=t;return n}function yn(t){let e=arguments;for(let n=1;n<e.length;n++){let r=e[n];for(let d in r)d!=Km&&(Bl(t[d])?yn(t[d],us(r[d])):t[d]=us(r[d]))}return t}const y$=0,w$=1,b$=2;function v$(t,e,n){for(let r=0,d,h=-1;r<e.length;r++){let f=e[r];if(f>h){for(d=f-1;d>=0&&t[d]==null;)t[d--]=null;for(d=f+1;d<n&&t[d]==null;)t[h=d++]=null}}}function x$(t,e){if(S$(t)){let f=t[0].slice();for(let w=1;w<t.length;w++)f.push(...t[w].slice(1));return $$(f[0])||(f=k$(f)),f}let n=new Set;for(let f=0;f<t.length;f++){let w=t[f][0],p=w.length;for(let g=0;g<p;g++)n.add(w[g])}let r=[Array.from(n).sort((f,w)=>f-w)],d=r[0].length,h=new Map;for(let f=0;f<d;f++)h.set(r[0][f],f);for(let f=0;f<t.length;f++){let w=t[f],p=w[0];for(let g=1;g<w.length;g++){let s=w[g],l=Array(d).fill(void 0),a=e?e[f][g]:w$,u=[];for(let o=0;o<s.length;o++){let c=s[o],m=h.get(p[o]);c===null?a!=y$&&(l[m]=c,a==b$&&u.push(m)):l[m]=c}v$(l,u,d),r.push(l)}}return r}const _$=typeof queueMicrotask>"u"?t=>Promise.resolve().then(t):queueMicrotask;function k$(t){let e=t[0],n=e.length,r=Array(n);for(let h=0;h<r.length;h++)r[h]=h;r.sort((h,f)=>e[h]-e[f]);let d=[];for(let h=0;h<t.length;h++){let f=t[h],w=Array(n);for(let p=0;p<n;p++)w[p]=f[r[p]];d.push(w)}return d}function S$(t){let e=t[0][0],n=e.length;for(let r=1;r<t.length;r++){let d=t[r][0];if(d.length!=n)return!1;if(d!=e){for(let h=0;h<n;h++)if(d[h]!=e[h])return!1}}return!0}function $$(t,e=100){const n=t.length;if(n<=1)return!0;let r=0,d=n-1;for(;r<=d&&t[r]==null;)r++;for(;d>=r&&t[d]==null;)d--;if(d<=r)return!0;const h=Hn(1,kr((d-r+1)/e));for(let f=t[r],w=r+h;w<=d;w+=h){const p=t[w];if(p!=null){if(p<=f)return!1;f=p}}return!0}const Qm=["January","February","March","April","May","June","July","August","September","October","November","December"],Zm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Jm(t){return t.slice(0,3)}const C$=Zm.map(Jm),A$=Qm.map(Jm),T$={MMMM:Qm,MMM:A$,WWWW:Zm,WWW:C$};function sa(t){return(t<10?"0":"")+t}function M$(t){return(t<10?"00":t<100?"0":"")+t}const E$={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,e)=>e.MMMM[t.getMonth()],MMM:(t,e)=>e.MMM[t.getMonth()],MM:t=>sa(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>sa(t.getDate()),D:t=>t.getDate(),WWWW:(t,e)=>e.WWWW[t.getDay()],WWW:(t,e)=>e.WWW[t.getDay()],HH:t=>sa(t.getHours()),H:t=>t.getHours(),h:t=>{let e=t.getHours();return e==0?12:e>12?e-12:e},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>sa(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>sa(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>M$(t.getMilliseconds())};function Sh(t,e){e=e||T$;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,d;for(;d=r.exec(t);)n.push(d[0][0]=="{"?E$[d[1]]:d[0]);return h=>{let f="";for(let w=0;w<n.length;w++)f+=typeof n[w]=="string"?n[w]:n[w](h,e);return f}}const R$=new Intl.DateTimeFormat().resolvedOptions().timeZone;function L$(t,e){let n;return e=="UTC"||e=="Etc/UTC"?n=new Date(+t+t.getTimezoneOffset()*6e4):e==R$?n=t:(n=new Date(t.toLocaleString("en-US",{timeZone:e})),n.setMilliseconds(t.getMilliseconds())),n}const Xm=t=>t%1==0,jl=[1,2,2.5,5],O$=ia(10,-32,0,jl),e0=ia(10,0,32,jl),D$=e0.filter(Xm),Co=O$.concat(e0),$h=`
1413
+ `,t0="{YYYY}",n0=$h+t0,r0="{M}/{D}",aa=$h+r0,Hl=aa+"/{YY}",i0="{aa}",I$="{h}:{mm}",hs=I$+i0,o0=$h+hs,s0=":{ss}",At=null;function a0(t){let e=t*1e3,n=e*60,r=n*60,d=r*24,h=d*30,f=d*365,w=(t==1?ia(10,0,3,jl).filter(Xm):ia(10,-3,0,jl)).concat([e,e*5,e*10,e*15,e*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,d,d*2,d*3,d*4,d*5,d*6,d*7,d*8,d*9,d*10,d*15,h,h*2,h*3,h*4,h*6,f,f*2,f*5,f*10,f*25,f*50,f*100]);const p=[[f,t0,At,At,At,At,At,At,1],[d*28,"{MMM}",n0,At,At,At,At,At,1],[d,r0,n0,At,At,At,At,At,1],[r,"{h}"+i0,Hl,At,aa,At,At,At,1],[n,hs,Hl,At,aa,At,At,At,1],[e,s0,Hl+" "+hs,At,aa+" "+hs,At,o0,At,1],[t,s0+".{fff}",Hl+" "+hs,At,aa+" "+hs,At,o0,At,1]];function g(s){return(l,a,u,o,c,m)=>{let b=[],x=c>=f,E=c>=h&&c<f,A=s(u),k=Nt(A*t,3),v=Ch(A.getFullYear(),x?0:A.getMonth(),E||x?1:A.getDate()),T=Nt(v*t,3);if(E||x){let R=E?c/h:0,O=x?c/f:0,M=k==T?k:Nt(Ch(v.getFullYear()+O,v.getMonth()+R,1)*t,3),N=new Date(Cn(M/t)),S=N.getFullYear(),_=N.getMonth();for(let $=0;M<=o;$++){let L=Ch(S+O*$,_+R*$,1),D=L-s(Nt(L*t,3));M=Nt((+L+D)*t,3),M<=o&&b.push(M)}}else{let R=c>=d?d:c,O=kr(u)-kr(k),M=T+O+Pl(k-T,R);b.push(M);let N=s(M),S=N.getHours()+N.getMinutes()/n+N.getSeconds()/r,_=c/r,$=l.axes[a]._space,L=m/$;for(;M=Nt(M+c,t==1?0:3),!(M>o);)if(_>1){let D=kr(Nt(S+_,6))%24,F=s(M).getHours()-D;F>1&&(F=-1),M-=F*r,S=(S+_)%24;let B=b[b.length-1];Nt((M-B)/c,3)*L>=.7&&b.push(M)}else b.push(M)}return b}}return[w,p,g]}const[N$,F$,P$]=a0(1),[B$,j$,H$]=a0(.001);ia(2,-53,53,[1]);function l0(t,e){return t.map(n=>n.map((r,d)=>d==0||d==8||r==null?r:e(d==1||n[8]==0?r:n[1]+r)))}function c0(t,e){return(n,r,d,h,f)=>{let w=e.find(o=>f>=o[0])||e[e.length-1],p,g,s,l,a,u;return r.map(o=>{let c=t(o),m=c.getFullYear(),b=c.getMonth(),x=c.getDate(),E=c.getHours(),A=c.getMinutes(),k=c.getSeconds(),v=m!=p&&w[2]||b!=g&&w[3]||x!=s&&w[4]||E!=l&&w[5]||A!=a&&w[6]||k!=u&&w[7]||w[1];return p=m,g=b,s=x,l=E,a=A,u=k,v(c)})}}function z$(t,e){let n=Sh(e);return(r,d,h,f,w)=>d.map(p=>n(t(p)))}function Ch(t,e,n){return new Date(t,e,n)}function u0(t,e){return e(t)}const W$="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function h0(t,e){return(n,r,d,h)=>h==null?dh:e(t(r))}function U$(t,e){let n=t.series[e];return n.width?n.stroke(t,e):n.points.width?n.points.stroke(t,e):null}function q$(t,e){return t.series[e].fill(t,e)}const V$={show:!0,live:!0,isolate:!1,mount:d$,markers:{show:!0,width:2,stroke:U$,fill:q$,dash:"solid"},idx:null,idxs:null,values:[]};function G$(t,e){let n=t.cursor.points,r=Rr(),d=n.size(t,e);Ut(r,ea,d),Ut(r,ta,d);let h=d/-2;Ut(r,"marginLeft",h),Ut(r,"marginTop",h);let f=n.width(t,e,d);return f&&Ut(r,"borderWidth",f),r}function Y$(t,e){let n=t.series[e].points;return n._fill||n._stroke}function K$(t,e){let n=t.series[e].points;return n._stroke||n._fill}function Q$(t,e){return t.series[e].points.size}const Ah=[0,0];function Z$(t,e,n){return Ah[0]=e,Ah[1]=n,Ah}function zl(t,e,n,r=!0){return d=>{d.button==0&&(!r||d.target==e)&&n(d)}}function Th(t,e,n,r=!0){return d=>{(!r||d.target==e)&&n(d)}}const J$={show:!0,x:!0,y:!0,lock:!1,move:Z$,points:{one:!1,show:G$,size:Q$,width:0,stroke:K$,fill:Y$},bind:{mousedown:zl,mouseup:zl,click:zl,dblclick:zl,mousemove:Th,mouseleave:Th,mouseenter:Th},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,e,n,r,d)=>r-d,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},d0={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Mh=yn({},d0,{filter:zm}),p0=yn({},Mh,{size:10}),f0=yn({},d0,{show:!1}),Eh='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',g0="bold "+Eh,m0=1.5,y0={show:!0,scale:"x",stroke:uh,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:g0,side:2,grid:Mh,ticks:p0,border:f0,font:Eh,lineGap:m0,rotate:0},X$="Value",eC="Time",w0={show:!0,scale:"x",auto:!1,sorted:1,min:bt,max:-bt,idxs:[]};function tC(t,e,n,r,d){return e.map(h=>h==null?"":vh(h))}function nC(t,e,n,r,d,h,f){let w=[],p=Wi.get(d)||0;n=f?n:Nt(Pl(n,d),p);for(let g=n;g<=r;g=Nt(g+d,p))w.push(Object.is(g,-0)?0:g);return w}function Rh(t,e,n,r,d,h,f){const w=[],p=t.scales[t.axes[e].scale].log,g=p==10?xi:Bm,s=kr(g(n));d=ls(p,s),p==10&&(d=Co[Gr(d,Co)]);let l=n,a=d*p;p==10&&(a=Co[Gr(a,Co)]);do w.push(l),l=l+d,p==10&&!Wi.has(l)&&(l=Nt(l,Wi.get(d))),l>=a&&(d=l,a=d*p,p==10&&(a=Co[Gr(a,Co)]));while(l<=r);return w}function rC(t,e,n,r,d,h,f){let w=t.scales[t.axes[e].scale].asinh,p=r>w?Rh(t,e,Hn(w,n),r,d):[w],g=r>=0&&n<=0?[0]:[];return(n<-w?Rh(t,e,Hn(w,-r),-n,d):[w]).reverse().map(s=>-s).concat(g,p)}const b0=/./,iC=/[12357]/,oC=/[125]/,v0=/1/,Lh=(t,e,n,r)=>t.map((d,h)=>e==4&&d==0||h%r==0&&n.test(d.toExponential()[d<0?1:0])?d:null);function sC(t,e,n,r,d){let h=t.axes[n],f=h.scale,w=t.scales[f],p=t.valToPos,g=h._space,s=p(10,f),l=p(9,f)-s>=g?b0:p(7,f)-s>=g?iC:p(5,f)-s>=g?oC:v0;if(l==v0){let a=$n(p(1,f)-s);if(a<g)return Lh(e.slice().reverse(),w.distr,l,Lr(g/a)).reverse()}return Lh(e,w.distr,l,1)}function aC(t,e,n,r,d){let h=t.axes[n],f=h.scale,w=h._space,p=t.valToPos,g=$n(p(1,f)-p(2,f));return g<w?Lh(e.slice().reverse(),3,b0,Lr(w/g)).reverse():e}function lC(t,e,n,r){return r==null?dh:e==null?"":vh(e)}const x0={show:!0,scale:"y",stroke:uh,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:g0,side:3,grid:Mh,ticks:p0,border:f0,font:Eh,lineGap:m0,rotate:0};function cC(t,e){let n=3+(t||1)*2;return Nt(n*e,3)}function uC(t,e){let{scale:n,idxs:r}=t.series[0],d=t._data[0],h=t.valToPos(d[r[0]],n,!0),f=t.valToPos(d[r[1]],n,!0),w=$n(f-h),p=t.series[e],g=w/(p.points.space*$t);return r[1]-r[0]<=g}const _0={scale:null,auto:!0,sorted:0,min:bt,max:-bt},k0=(t,e,n,r,d)=>d,S0={show:!0,auto:!0,sorted:0,gaps:k0,alpha:1,facets:[yn({},_0,{scale:"x"}),yn({},_0,{scale:"y"})]},$0={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:k0,alpha:1,points:{show:uC,filter:null},values:null,min:bt,max:-bt,idxs:[],path:null,clip:null};function hC(t,e,n,r,d){return n/10}const C0={time:FS,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},dC=yn({},C0,{time:!1,ori:1}),A0={};function T0(t,e){let n=A0[t];return n||(n={key:t,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(d=>d!=r)},pub(r,d,h,f,w,p,g){for(let s=0;s<n.plots.length;s++)n.plots[s]!=d&&n.plots[s].pub(r,d,h,f,w,p,g)}},t!=null&&(A0[t]=n)),n}const ds=1,Oh=2;function Ao(t,e,n){const r=t.mode,d=t.series[e],h=r==2?t._data[e]:t._data,f=t.scales,w=t.bbox;let p=h[0],g=r==2?h[1]:h[e],s=r==2?f[d.facets[0].scale]:f[t.series[0].scale],l=r==2?f[d.facets[1].scale]:f[d.scale],a=w.left,u=w.top,o=w.width,c=w.height,m=t.valToPosH,b=t.valToPosV;return s.ori==0?n(d,p,g,s,l,m,b,a,u,o,c,Ul,ps,Vl,R0,O0):n(d,p,g,s,l,b,m,u,a,c,o,ql,fs,Nh,L0,D0)}function Dh(t,e){let n=0,r=0,d=St(t.bands,kh);for(let h=0;h<d.length;h++){let f=d[h];f.series[0]==e?n=f.dir:f.series[1]==e&&(f.dir==1?r|=1:r|=2)}return[n,r==1?-1:r==2?1:r==3?2:0]}function pC(t,e,n,r,d){let h=t.mode,f=t.series[e],w=h==2?f.facets[1].scale:f.scale,p=t.scales[w];return d==-1?p.min:d==1?p.max:p.distr==3?p.dir==1?p.min:p.max:0}function _i(t,e,n,r,d,h){return Ao(t,e,(f,w,p,g,s,l,a,u,o,c,m)=>{let b=f.pxRound;const x=g.dir*(g.ori==0?1:-1),E=g.ori==0?ps:fs;let A,k;x==1?(A=n,k=r):(A=r,k=n);let v=b(l(w[A],g,c,u)),T=b(a(p[A],s,m,o)),R=b(l(w[k],g,c,u)),O=b(a(h==1?s.max:s.min,s,m,o)),M=new Path2D(d);return E(M,R,O),E(M,v,O),E(M,v,T),M})}function Wl(t,e,n,r,d,h){let f=null;if(t.length>0){f=new Path2D;const w=e==0?Vl:Nh;let p=n;for(let l=0;l<t.length;l++){let a=t[l];if(a[1]>a[0]){let u=a[0]-p;u>0&&w(f,p,r,u,r+h),p=a[1]}}let g=n+d-p,s=10;g>0&&w(f,p,r-s/2,g,r+h+s)}return f}function fC(t,e,n){let r=t[t.length-1];r&&r[0]==e?r[1]=n:t.push([e,n])}function Ih(t,e,n,r,d,h,f){let w=[],p=t.length;for(let g=d==1?n:r;g>=n&&g<=r;g+=d)if(e[g]===null){let s=g,l=g;if(d==1)for(;++g<=r&&e[g]===null;)l=g;else for(;--g>=n&&e[g]===null;)l=g;let a=h(t[s]),u=l==s?a:h(t[l]),o=s-d;a=f<=0&&o>=0&&o<p?h(t[o]):a;let c=l+d;u=f>=0&&c>=0&&c<p?h(t[c]):u,u>=a&&w.push([a,u])}return w}function M0(t){return t==0?Hm:t==1?Cn:e=>$o(e,t)}function E0(t){let e=t==0?Ul:ql,n=t==0?(d,h,f,w,p,g)=>{d.arcTo(h,f,w,p,g)}:(d,h,f,w,p,g)=>{d.arcTo(f,h,p,w,g)},r=t==0?(d,h,f,w,p)=>{d.rect(h,f,w,p)}:(d,h,f,w,p)=>{d.rect(f,h,p,w)};return(d,h,f,w,p,g=0,s=0)=>{g==0&&s==0?r(d,h,f,w,p):(g=Or(g,w/2,p/2),s=Or(s,w/2,p/2),e(d,h+g,f),n(d,h+w,f,h+w,f+p,g),n(d,h+w,f+p,h,f+p,s),n(d,h,f+p,h,f,s),n(d,h,f,h+w,f,g),d.closePath())}}const Ul=(t,e,n)=>{t.moveTo(e,n)},ql=(t,e,n)=>{t.moveTo(n,e)},ps=(t,e,n)=>{t.lineTo(e,n)},fs=(t,e,n)=>{t.lineTo(n,e)},Vl=E0(0),Nh=E0(1),R0=(t,e,n,r,d,h)=>{t.arc(e,n,r,d,h)},L0=(t,e,n,r,d,h)=>{t.arc(n,e,r,d,h)},O0=(t,e,n,r,d,h,f)=>{t.bezierCurveTo(e,n,r,d,h,f)},D0=(t,e,n,r,d,h,f)=>{t.bezierCurveTo(n,e,d,r,f,h)};function I0(t){return(e,n,r,d,h)=>Ao(e,n,(f,w,p,g,s,l,a,u,o,c,m)=>{let{pxRound:b,points:x}=f,E,A;g.ori==0?(E=Ul,A=R0):(E=ql,A=L0);const k=Nt(x.width*$t,3);let v=(x.size-x.width)/2*$t,T=Nt(v*2,3),R=new Path2D,O=new Path2D,{left:M,top:N,width:S,height:_}=e.bbox;Vl(O,M-T,N-T,S+T*2,_+T*2);const $=L=>{if(p[L]!=null){let D=b(l(w[L],g,c,u)),F=b(a(p[L],s,m,o));E(R,D+v,F),A(R,D,F,v,0,Fl*2)}};if(h)h.forEach($);else for(let L=r;L<=d;L++)$(L);return{stroke:k>0?R:null,fill:R,clip:O,flags:ds|Oh}})}function N0(t){return(e,n,r,d,h,f)=>{r!=d&&(h!=r&&f!=r&&t(e,n,r),h!=d&&f!=d&&t(e,n,d),t(e,n,f))}}const gC=N0(ps),mC=N0(fs);function F0(t){const e=St(t==null?void 0:t.alignGaps,0);return(n,r,d,h)=>Ao(n,r,(f,w,p,g,s,l,a,u,o,c,m)=>{let b=f.pxRound,x=X=>b(l(X,g,c,u)),E=X=>b(a(X,s,m,o)),A,k;g.ori==0?(A=ps,k=gC):(A=fs,k=mC);const v=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ds},R=T.stroke;let O=bt,M=-bt,N,S,_,$=x(w[v==1?d:h]),L=as(p,d,h,1*v),D=as(p,d,h,-1*v),F=x(w[L]),B=x(w[D]),W=!1;for(let X=v==1?d:h;X>=d&&X<=h;X+=v){let G=x(w[X]),Z=p[X];G==$?Z!=null?(S=E(Z),O==bt&&(A(R,G,S),N=S),O=Or(S,O),M=Hn(S,M)):Z===null&&(W=!0):(O!=bt&&(k(R,$,O,M,N,S),_=$),Z!=null?(S=E(Z),A(R,G,S),O=M=N=S):(O=bt,M=-bt,Z===null&&(W=!0)),$=G)}O!=bt&&O!=M&&_!=$&&k(R,$,O,M,N,S);let[q,V]=Dh(n,r);if(f.fill!=null||q!=0){let X=T.fill=new Path2D(R),G=f.fillTo(n,r,f.min,f.max,q),Z=E(G);A(X,B,Z),A(X,F,Z)}if(!f.spanGaps){let X=[];W&&X.push(...Ih(w,p,d,h,v,x,e)),T.gaps=X=f.gaps(n,r,d,h,X),T.clip=Wl(X,g.ori,u,o,c,m)}return V!=0&&(T.band=V==2?[_i(n,r,d,h,R,-1),_i(n,r,d,h,R,1)]:_i(n,r,d,h,R,V)),T})}function yC(t){const e=St(t.align,1),n=St(t.ascDesc,!1),r=St(t.alignGaps,0),d=St(t.extend,!1);return(h,f,w,p)=>Ao(h,f,(g,s,l,a,u,o,c,m,b,x,E)=>{let A=g.pxRound,{left:k,width:v}=h.bbox,T=q=>A(o(q,a,x,m)),R=q=>A(c(q,u,E,b)),O=a.ori==0?ps:fs;const M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ds},N=M.stroke,S=a.dir*(a.ori==0?1:-1);w=as(l,w,p,1),p=as(l,w,p,-1);let _=R(l[S==1?w:p]),$=T(s[S==1?w:p]),L=$,D=$;d&&e==-1&&(D=k,O(N,D,_)),O(N,$,_);for(let q=S==1?w:p;q>=w&&q<=p;q+=S){let V=l[q];if(V==null)continue;let X=T(s[q]),G=R(V);e==1?O(N,X,_):O(N,L,G),O(N,X,G),_=G,L=X}let F=L;d&&e==1&&(F=k+v,O(N,F,_));let[B,W]=Dh(h,f);if(g.fill!=null||B!=0){let q=M.fill=new Path2D(N),V=g.fillTo(h,f,g.min,g.max,B),X=R(V);O(q,F,X),O(q,D,X)}if(!g.spanGaps){let q=[];q.push(...Ih(s,l,w,p,S,T,r));let V=g.width*$t/2,X=n||e==1?V:-V,G=n||e==-1?-V:V;q.forEach(Z=>{Z[0]+=X,Z[1]+=G}),M.gaps=q=g.gaps(h,f,w,p,q),M.clip=Wl(q,a.ori,m,b,x,E)}return W!=0&&(M.band=W==2?[_i(h,f,w,p,N,-1),_i(h,f,w,p,N,1)]:_i(h,f,w,p,N,W)),M})}function P0(t,e,n,r,d,h,f=bt){if(t.length>1){let w=null;for(let p=0,g=1/0;p<t.length;p++)if(e[p]!==void 0){if(w!=null){let s=$n(t[p]-t[w]);s<g&&(g=s,f=$n(n(t[p],r,d,h)-n(t[w],r,d,h)))}w=p}}return f}function wC(t){t=t||oa;const e=St(t.size,[.6,bt,1]),n=t.align||0,r=t.gap||0;let d=t.radius;d=d==null?[0,0]:typeof d=="number"?[d,0]:d;const h=vt(d),f=1-e[0],w=St(e[1],bt),p=St(e[2],1),g=St(t.disp,oa),s=St(t.each,u=>{}),{fill:l,stroke:a}=g;return(u,o,c,m)=>Ao(u,o,(b,x,E,A,k,v,T,R,O,M,N)=>{let S=b.pxRound,_=n,$=r*$t,L=w*$t,D=p*$t,F,B;A.ori==0?[F,B]=h(u,o):[B,F]=h(u,o);const W=A.dir*(A.ori==0?1:-1);let q=A.ori==0?Vl:Nh,V=A.ori==0?s:(Ue,ce,Te,Re,Ge,Ke,gt)=>{s(Ue,ce,Te,Ge,Re,gt,Ke)},X=St(u.bands,kh).find(Ue=>Ue.series[0]==o),G=X!=null?X.dir:0,Z=b.fillTo(u,o,b.min,b.max,G),re=S(T(Z,k,N,O)),J,ae,we,ve=M,me=S(b.width*$t),Se=!1,lt=null,Ht=null,ft=null,yt=null;l!=null&&(me==0||a!=null)&&(Se=!0,lt=l.values(u,o,c,m),Ht=new Map,new Set(lt).forEach(Ue=>{Ue!=null&&Ht.set(Ue,new Path2D)}),me>0&&(ft=a.values(u,o,c,m),yt=new Map,new Set(ft).forEach(Ue=>{Ue!=null&&yt.set(Ue,new Path2D)})));let{x0:un,size:Ft}=g;if(un!=null&&Ft!=null){_=1,x=un.values(u,o,c,m),un.unit==2&&(x=x.map(ce=>u.posToVal(R+ce*M,A.key,!0)));let Ue=Ft.values(u,o,c,m);Ft.unit==2?ae=Ue[0]*M:ae=v(Ue[0],A,M,R)-v(0,A,M,R),ve=P0(x,E,v,A,M,R,ve),we=ve-ae+$}else ve=P0(x,E,v,A,M,R,ve),we=ve*f+$,ae=ve-we;we<1&&(we=0),me>=ae/2&&(me=0),we<5&&(S=Hm);let Jt=we>0,ci=ve-we-(Jt?me:0);ae=S(_h(ci,D,L)),J=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?$/2:0)+(Jt?me/2:0));const Tn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},rn=Se?null:new Path2D;let Be=null;if(X!=null)Be=u.data[X.series[1]];else{let{y0:Ue,y1:ce}=g;Ue!=null&&ce!=null&&(E=ce.values(u,o,c,m),Be=Ue.values(u,o,c,m))}let ze=F*ae,on=B*ae;for(let Ue=W==1?c:m;Ue>=c&&Ue<=m;Ue+=W){let ce=E[Ue];if(ce==null)continue;if(Be!=null){let dt=Be[Ue]??0;if(ce-dt==0)continue;re=T(dt,k,N,O)}let Te=A.distr!=2||g!=null?x[Ue]:Ue,Re=v(Te,A,M,R),Ge=T(St(ce,Z),k,N,O),Ke=S(Re-J),gt=S(Hn(Ge,re)),mt=S(Or(Ge,re)),ht=gt-mt;if(ce!=null){let dt=ce<0?on:ze,ot=ce<0?ze:on;Se?(me>0&&ft[Ue]!=null&&q(yt.get(ft[Ue]),Ke,mt+kr(me/2),ae,Hn(0,ht-me),dt,ot),lt[Ue]!=null&&q(Ht.get(lt[Ue]),Ke,mt+kr(me/2),ae,Hn(0,ht-me),dt,ot)):q(rn,Ke,mt+kr(me/2),ae,Hn(0,ht-me),dt,ot),V(u,o,Ue,Ke-me/2,mt,ae+me,ht)}}return me>0?Tn.stroke=Se?yt:rn:Se||(Tn._fill=b.width==0?b._fill:b._stroke??b._fill,Tn.width=0),Tn.fill=Se?Ht:rn,Tn})}function bC(t,e){const n=St(e==null?void 0:e.alignGaps,0);return(r,d,h,f)=>Ao(r,d,(w,p,g,s,l,a,u,o,c,m,b)=>{let x=w.pxRound,E=F=>x(a(F,s,m,o)),A=F=>x(u(F,l,b,c)),k,v,T;s.ori==0?(k=Ul,T=ps,v=O0):(k=ql,T=fs,v=D0);const R=s.dir*(s.ori==0?1:-1);h=as(g,h,f,1),f=as(g,h,f,-1);let O=E(p[R==1?h:f]),M=O,N=[],S=[];for(let F=R==1?h:f;F>=h&&F<=f;F+=R)if(g[F]!=null){let B=p[F],W=E(B);N.push(M=W),S.push(A(g[F]))}const _={stroke:t(N,S,k,T,v,x),fill:null,clip:null,band:null,gaps:null,flags:ds},$=_.stroke;let[L,D]=Dh(r,d);if(w.fill!=null||L!=0){let F=_.fill=new Path2D($),B=w.fillTo(r,d,w.min,w.max,L),W=A(B);T(F,M,W),T(F,O,W)}if(!w.spanGaps){let F=[];F.push(...Ih(p,g,h,f,R,E,n)),_.gaps=F=w.gaps(r,d,h,f,F),_.clip=Wl(F,s.ori,o,c,m,b)}return D!=0&&(_.band=D==2?[_i(r,d,h,f,$,-1),_i(r,d,h,f,$,1)]:_i(r,d,h,f,$,D)),_})}function vC(t){return bC(xC,t)}function xC(t,e,n,r,d,h){const f=t.length;if(f<2)return null;const w=new Path2D;if(n(w,t[0],e[0]),f==2)r(w,t[1],e[1]);else{let p=Array(f),g=Array(f-1),s=Array(f-1),l=Array(f-1);for(let a=0;a<f-1;a++)s[a]=e[a+1]-e[a],l[a]=t[a+1]-t[a],g[a]=s[a]/l[a];p[0]=g[0];for(let a=1;a<f-1;a++)g[a]===0||g[a-1]===0||g[a-1]>0!=g[a]>0?p[a]=0:(p[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/g[a-1]+(l[a]+2*l[a-1])/g[a]),isFinite(p[a])||(p[a]=0));p[f-1]=g[f-2];for(let a=0;a<f-1;a++)d(w,t[a]+l[a]/3,e[a]+p[a]*l[a]/3,t[a+1]-l[a]/3,e[a+1]-p[a+1]*l[a]/3,t[a+1],e[a+1])}return w}const Fh=new Set;function B0(){for(let t of Fh)t.syncRect(!0)}os&&(ko(n$,ss,B0),ko(r$,ss,B0,!0),ko(Ol,ss,()=>{zn.pxRatio=$t}));const _C=F0(),kC=I0();function j0(t,e,n,r){return(r?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((d,h)=>Ph(d,h,e,n))}function SC(t,e){return t.map((n,r)=>r==0?{}:yn({},e,n))}function Ph(t,e,n,r){return yn({},e==0?n:r,t)}function H0(t,e,n){return e==null?cs:[e,n]}const $C=H0;function CC(t,e,n){return e==null?cs:Nl(e,n,bh,!0)}function z0(t,e,n,r){return e==null?cs:Il(e,n,t.scales[r].log,!1)}const AC=z0;function W0(t,e,n,r){return e==null?cs:wh(e,n,t.scales[r].log,!1)}const TC=W0;function MC(t,e,n,r,d){let h=Hn(jm(t),jm(e)),f=e-t,w=Gr(d/r*f,n);do{let p=n[w],g=r*p/f;if(g>=d&&h+(p<5?Wi.get(p):0)<=17)return[p,g]}while(++w<n.length);return[0,0]}function U0(t){let e,n;return t=t.replace(/(\d+)px/,(r,d)=>(e=Cn((n=+d)*$t))+"px"),[t,e,n]}function EC(t){t.show&&[t.font,t.labelFont].forEach(e=>{let n=Nt(e[2]*$t,1);e[0]=e[0].replace(/[0-9.]+px/,n+"px"),e[1]=n})}function zn(t,e,n){const r={mode:St(t.mode,1)},d=r.mode;function h(P,H){return((H.distr==3?xi(P>0?P:H.clamp(r,P,H.min,H.max,H.key)):H.distr==4?xh(P,H.asinh):H.distr==100?H.fwd(P):P)-H._min)/(H._max-H._min)}function f(P,H,Y,K){let te=h(P,H);return K+Y*(H.dir==-1?1-te:te)}function w(P,H,Y,K){let te=h(P,H);return K+Y*(H.dir==-1?te:1-te)}function p(P,H,Y,K){return H.ori==0?f(P,H,Y,K):w(P,H,Y,K)}r.valToPosH=f,r.valToPosV=w;let g=!1;r.status=0;const s=r.root=Rr(PS);if(t.id!=null&&(s.id=t.id),xr(s,t.class),t.title){let P=Rr(HS,s);P.textContent=t.title}const l=Vr("canvas"),a=r.ctx=l.getContext("2d"),u=Rr(zS,s);ko("click",u,P=>{P.target===c&&(He!=eo||zt!=to)&&En.click(r,P)},!0);const o=r.under=Rr(WS,u);u.appendChild(l);const c=r.over=Rr(US,u);t=us(t);const m=+St(t.pxAlign,1),b=M0(m);(t.plugins||[]).forEach(P=>{P.opts&&(t=P.opts(r,t)||t)});const x=t.ms||.001,E=r.series=d==1?j0(t.series||[],w0,$0,!1):SC(t.series||[null],S0),A=r.axes=j0(t.axes||[],y0,x0,!0),k=r.scales={},v=r.bands=t.bands||[];v.forEach(P=>{P.fill=vt(P.fill||null),P.dir=St(P.dir,-1)});const T=d==2?E[1].facets[0].scale:E[0].scale,R={axes:up,series:$c},O=(t.drawOrder||["axes","series"]).map(P=>R[P]);function M(P){let H=k[P];if(H==null){let Y=(t.scales||oa)[P]||oa;if(Y.from!=null)M(Y.from),k[P]=yn({},k[Y.from],Y,{key:P});else{H=k[P]=yn({},P==T?C0:dC,Y),H.key=P;let K=H.time,te=H.range,oe=Ui(te);if((P!=T||d==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Nm:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Nm:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Bl(te))){let fe=te;te=(xe,_e,ke)=>_e==null?cs:Nl(_e,ke,fe)}H.range=vt(te||(K?$C:P==T?H.distr==3?AC:H.distr==4?TC:H0:H.distr==3?z0:H.distr==4?W0:CC)),H.auto=vt(oe?!1:H.auto),H.clamp=vt(H.clamp||hC),H._min=H._max=null}}}M("x"),M("y"),d==1&&E.forEach(P=>{M(P.scale)}),A.forEach(P=>{M(P.scale)});for(let P in t.scales)M(P);const N=k[T],S=N.distr;let _,$;N.ori==0?(xr(s,BS),_=f,$=w):(xr(s,jS),_=w,$=f);const L={};for(let P in k){let H=k[P];(H.min!=null||H.max!=null)&&(L[P]={min:H.min,max:H.max},H.min=H.max=null)}const D=t.tzDate||(P=>new Date(Cn(P/x))),F=t.fmtDate||Sh,B=x==1?P$(D):H$(D),W=c0(D,l0(x==1?F$:j$,F)),q=h0(D,u0(W$,F)),V=[],X=r.legend=yn({},V$,t.legend),G=X.show,Z=X.markers;X.idxs=V,Z.width=vt(Z.width),Z.dash=vt(Z.dash),Z.stroke=vt(Z.stroke),Z.fill=vt(Z.fill);let re,J,ae,we=[],ve=[],me,Se=!1,lt={};if(X.live){const P=E[1]?E[1].values:null;Se=P!=null,me=Se?P(r,1,0):{_:0};for(let H in me)lt[H]=dh}if(G)if(re=Vr("table",QS,s),ae=Vr("tbody",null,re),X.mount(r,re),Se){J=Vr("thead",null,re,ae);let P=Vr("tr",null,J);Vr("th",null,P);for(var Ht in me)Vr("th",_m,P).textContent=Ht}else xr(re,JS),X.live&&xr(re,ZS);const ft={show:!0},yt={show:!1};function un(P,H){if(H==0&&(Se||!X.live||d==2))return cs;let Y=[],K=Vr("tr",XS,ae,ae.childNodes[H]);xr(K,P.class),P.show||xr(K,_o);let te=Vr("th",null,K);if(Z.show){let xe=Rr(e$,te);if(H>0){let _e=Z.width(r,H);_e&&(xe.style.border=_e+"px "+Z.dash(r,H)+" "+Z.stroke(r,H)),xe.style.background=Z.fill(r,H)}}let oe=Rr(_m,te);oe.textContent=P.label,H>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(r,H):Z.fill(r,H)),Jt("click",te,xe=>{if(je._lock)return;Si(xe);let _e=E.indexOf(P);if((xe.ctrlKey||xe.metaKey)!=X.isolate){let ke=E.some((Ce,Me)=>Me>0&&Me!=_e&&Ce.show);E.forEach((Ce,Me)=>{Me>0&&Nn(Me,ke?Me==_e?ft:yt:ft,!0,Xt.setSeries)})}else Nn(_e,{show:!P.show},!0,Xt.setSeries)},!1),hi&&Jt(Am,te,xe=>{je._lock||(Si(xe),Nn(E.indexOf(P),Ti,!0,Xt.setSeries))},!1));for(var fe in me){let xe=Vr("td",t$,K);xe.textContent="--",Y.push(xe)}return[K,Y]}const Ft=new Map;function Jt(P,H,Y,K=!0){const te=Ft.get(H)||{},oe=je.bind[P](r,H,Y,K);oe&&(ko(P,H,te[P]=oe),Ft.set(H,te))}function ci(P,H,Y){const K=Ft.get(H)||{};for(let te in K)(P==null||te==P)&&(yh(te,H,K[te]),delete K[te]);P==null&&Ft.delete(H)}let Tn=0,rn=0,Be=0,ze=0,on=0,Ue=0,ce=on,Te=Ue,Re=Be,Ge=ze,Ke=0,gt=0,mt=0,ht=0;r.bbox={};let dt=!1,ot=!1,qt=!1,qn=!1,ki=!1,hr=!1;function ya(P,H,Y){(Y||P!=r.width||H!=r.height)&&wa(P,H),Ci(!1),qt=!0,ot=!0,Ji()}function wa(P,H){r.width=Tn=Be=P,r.height=rn=ze=H,on=Ue=0,op(),sp();let Y=r.bbox;Ke=Y.left=$o(on*$t,.5),gt=Y.top=$o(Ue*$t,.5),mt=Y.width=$o(Be*$t,.5),ht=Y.height=$o(ze*$t,.5)}const bc=3;function rp(){let P=!1,H=0;for(;!P;){H++;let Y=Tc(H),K=Mc(H);P=H==bc||Y&&K,P||(wa(r.width,r.height),ot=!0)}}function ip({width:P,height:H}){ya(P,H)}r.setSize=ip;function op(){let P=!1,H=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:fe,_size:xe}=te,_e=fe%2,ke=te.label!=null?te.labelSize:0,Ce=xe+ke;Ce>0&&(_e?(Be-=Ce,fe==3?(on+=Ce,K=!0):Y=!0):(ze-=Ce,fe==0?(Ue+=Ce,P=!0):H=!0))}}),$i[0]=P,$i[1]=Y,$i[2]=H,$i[3]=K,Be-=di[1]+di[3],on+=di[3],ze-=di[2]+di[0],Ue+=di[0]}function sp(){let P=on+Be,H=Ue+ze,Y=on,K=Ue;function te(oe,fe){switch(oe){case 1:return P+=fe,P-fe;case 2:return H+=fe,H-fe;case 3:return Y-=fe,Y+fe;case 0:return K-=fe,K+fe}}A.forEach((oe,fe)=>{if(oe.show&&oe._show){let xe=oe.side;oe._pos=te(xe,oe._size),oe.label!=null&&(oe._lpos=te(xe,oe.labelSize))}})}const je=r.cursor=yn({},J$,{drag:{y:d==2}},t.cursor);if(je.dataIdx==null){let P=je.hover,H=P.skip=new Set(P.skip??[]);H.add(void 0);let Y=P.prox=vt(P.prox),K=P.bias??(P.bias=0);je.dataIdx=(te,oe,fe,xe)=>{if(oe==0)return fe;let _e=fe,ke=Y(te,oe,fe,xe)??bt,Ce=ke>=0&&ke<bt,Me=N.ori==0?Be:ze,Qe=je.left,Lt=e[0],st=e[oe];if(H.has(st[fe])){_e=null;let Ye=null,Je=null,Oe;if(K==0||K==-1)for(Oe=fe;Ye==null&&Oe-- >0;)H.has(st[Oe])||(Ye=Oe);if(K==0||K==1)for(Oe=fe;Je==null&&Oe++<st.length;)H.has(st[Oe])||(Je=Oe);if(Ye!=null||Je!=null)if(Ce){let Tt=Ye==null?-1/0:_(Lt[Ye],N,Me,0),en=Je==null?1/0:_(Lt[Je],N,Me,0),Yt=Qe-Tt,Bt=en-Qe;Yt<=Bt?Yt<=ke&&(_e=Ye):Bt<=ke&&(_e=Je)}else _e=Je==null?Ye:Ye==null?Je:fe-Ye<=Je-fe?Ye:Je}else Ce&&$n(Qe-_(Lt[fe],N,Me,0))>ke&&(_e=null);return _e}}const Si=P=>{je.event=P};je.idxs=V,je._lock=!1;let In=je.points;In.show=vt(In.show),In.size=vt(In.size),In.stroke=vt(In.stroke),In.width=vt(In.width),In.fill=vt(In.fill);const ui=r.focus=yn({},t.focus||{alpha:.3},je.focus),hi=ui.prox>=0,qi=hi&&In.one;let Vn=[],Vi=[],Gi=[];function vc(P,H){let Y=In.show(r,H);if(Y)return xr(Y,KS),xr(Y,P.class),ii(Y,-10,-10,Be,ze),c.insertBefore(Y,Vn[H]),Y}function xc(P,H){if(d==1||H>0){let Y=d==1&&k[P.scale].time,K=P.value;P.value=Y?Ym(K)?h0(D,u0(K,F)):K||q:K||lC,P.label=P.label||(Y?eC:X$)}if(qi||H>0){P.width=P.width==null?1:P.width,P.paths=P.paths||_C,P.fillTo=vt(P.fillTo||pC),P.pxAlign=+St(P.pxAlign,m),P.pxRound=M0(P.pxAlign),P.stroke=vt(P.stroke||null),P.fill=vt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=cC(Hn(1,P.width),1),K=P.points=yn({},{size:Y,width:Hn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:kC,_stroke:null,_fill:null},P.points);K.show=vt(K.show),K.filter=vt(K.filter),K.fill=vt(K.fill),K.stroke=vt(K.stroke),K.paths=vt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=un(P,H);we.splice(H,0,Y[0]),ve.splice(H,0,Y[1]),X.values.push(null)}if(je.show){V.splice(H,0,null);let Y=null;qi?H==0&&(Y=vc(P,H)):H>0&&(Y=vc(P,H)),Vn.splice(H,0,Y),Vi.splice(H,0,0),Gi.splice(H,0,0)}sn("addSeries",H)}function ap(P,H){H=H??E.length,P=d==1?Ph(P,H,w0,$0):Ph(P,H,{},S0),E.splice(H,0,P),xc(E[H],H)}r.addSeries=ap;function lp(P){if(E.splice(P,1),G){X.values.splice(P,1),ve.splice(P,1);let H=we.splice(P,1)[0];ci(null,H.firstChild),H.remove()}je.show&&(V.splice(P,1),Vn.splice(P,1)[0].remove(),Vi.splice(P,1),Gi.splice(P,1)),sn("delSeries",P)}r.delSeries=lp;const $i=[!1,!1,!1,!1];function cp(P,H){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?E[1].scale:T,K=k[P.scale]);let te=K.time;P.size=vt(P.size),P.space=vt(P.space),P.rotate=vt(P.rotate),Ui(P.incrs)&&P.incrs.forEach(fe=>{!Wi.has(fe)&&Wi.set(fe,Vm(fe))}),P.incrs=vt(P.incrs||(K.distr==2?D$:te?x==1?N$:B$:Co)),P.splits=vt(P.splits||(te&&K.distr==1?B:K.distr==3?Rh:K.distr==4?rC:nC)),P.stroke=vt(P.stroke),P.grid.stroke=vt(P.grid.stroke),P.ticks.stroke=vt(P.ticks.stroke),P.border.stroke=vt(P.border.stroke);let oe=P.values;P.values=Ui(oe)&&!Ui(oe[0])?vt(oe):te?Ui(oe)?c0(D,l0(oe,F)):Ym(oe)?z$(D,oe):oe||W:oe||tC,P.filter=vt(P.filter||(K.distr>=3&&K.log==10?sC:K.distr==3&&K.log==2?aC:zm)),P.font=U0(P.font),P.labelFont=U0(P.labelFont),P._size=P.size(r,null,H,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&($i[H]=!0,P._el=Rr(qS,u))}}function Yi(P,H,Y,K){let[te,oe,fe,xe]=Y,_e=H%2,ke=0;return _e==0&&(xe||oe)&&(ke=H==0&&!te||H==2&&!fe?Cn(y0.size/3):0),_e==1&&(te||fe)&&(ke=H==1&&!oe||H==3&&!xe?Cn(x0.size/2):0),ke}const _c=r.padding=(t.padding||[Yi,Yi,Yi,Yi]).map(P=>vt(St(P,Yi))),di=r._padding=_c.map((P,H)=>P(r,H,$i,0));let Mn,bn=null,vn=null;const vs=d==1?E[0].idxs:null;let Gn=null,Do=!1;function Io(P,H){if(e=P??[],r.data=r._data=e,d==2){Mn=0;for(let Y=1;Y<E.length;Y++)Mn+=e[Y][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Gn=e[0],Mn=Gn.length;let Y=e;if(S==2){Y=e.slice();let K=Y[0]=Array(Mn);for(let te=0;te<Mn;te++)K[te]=te}r._data=e=Y}if(Ci(!0),sn("setData"),S==2&&(qt=!0),H!==!1){let Y=N;Y.auto(r,Do)?ba():Ir(T,Y.min,Y.max),qn=qn||je.left>=0,hr=!0,Ji()}}r.setData=Io;function ba(){Do=!0;let P,H;d==1&&(Mn>0?(bn=vs[0]=0,vn=vs[1]=Mn-1,P=e[0][bn],H=e[0][vn],S==2?(P=bn,H=vn):P==H&&(S==3?[P,H]=Il(P,P,N.log,!1):S==4?[P,H]=wh(P,P,N.log,!1):N.time?H=P+Cn(86400/x):[P,H]=Nl(P,H,bh,!0))):(bn=vs[0]=P=null,vn=vs[1]=H=null)),Ir(T,P,H)}let xs,Ki,_s,ks,Ss,va,xa,_a,ka,Dr;function Sa(P,H,Y,K,te,oe){P??(P=Sm),Y??(Y=kh),K??(K="butt"),te??(te=Sm),oe??(oe="round"),P!=xs&&(a.strokeStyle=xs=P),te!=Ki&&(a.fillStyle=Ki=te),H!=_s&&(a.lineWidth=_s=H),oe!=Ss&&(a.lineJoin=Ss=oe),K!=va&&(a.lineCap=va=K),Y!=ks&&a.setLineDash(ks=Y)}function $a(P,H,Y,K){H!=Ki&&(a.fillStyle=Ki=H),P!=xa&&(a.font=xa=P),Y!=_a&&(a.textAlign=_a=Y),K!=ka&&(a.textBaseline=ka=K)}function No(P,H,Y,K,te=0){if(K.length>0&&P.auto(r,Do)&&(H==null||H.min==null)){let oe=St(bn,0),fe=St(vn,K.length-1),xe=Y.min==null?P.distr==3?a$(K,oe,fe):s$(K,oe,fe,te):[Y.min,Y.max];P.min=Or(P.min,Y.min=xe[0]),P.max=Hn(P.max,Y.max=xe[1])}}const kc={min:null,max:null};function Sc(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[T]!=null&&te.auto(r,Do))&&(L[K]=kc)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=kc)}L[T]!=null&&Ci(!0);let P={};for(let K in L){let te=L[K];if(te!=null){let oe=P[K]=us(k[K],g$);if(te.min!=null)yn(oe,te);else if(K!=T||d==2)if(Mn==0&&oe.from==null){let fe=oe.range(r,null,null,K);oe.min=fe[0],oe.max=fe[1]}else oe.min=bt,oe.max=-bt}}if(Mn>0){E.forEach((K,te)=>{if(d==1){let oe=K.scale,fe=L[oe];if(fe==null)return;let xe=P[oe];if(te==0){let _e=xe.range(r,xe.min,xe.max,oe);xe.min=_e[0],xe.max=_e[1],bn=Gr(xe.min,e[0]),vn=Gr(xe.max,e[0]),vn-bn>1&&(e[0][bn]<xe.min&&bn++,e[0][vn]>xe.max&&vn--),K.min=Gn[bn],K.max=Gn[vn]}else K.show&&K.auto&&No(xe,fe,K,e[te],K.sorted);K.idxs[0]=bn,K.idxs[1]=vn}else if(te>0&&K.show&&K.auto){let[oe,fe]=K.facets,xe=oe.scale,_e=fe.scale,[ke,Ce]=e[te],Me=P[xe],Qe=P[_e];Me!=null&&No(Me,L[xe],oe,ke,oe.sorted),Qe!=null&&No(Qe,L[_e],fe,Ce,fe.sorted),K.min=fe.min,K.max=fe.max}});for(let K in P){let te=P[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let fe=te.range(r,te.min==bt?null:te.min,te.max==-bt?null:te.max,K);te.min=fe[0],te.max=fe[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let fe=te.range(r,oe.min,oe.max,K);te.min=fe[0],te.max=fe[1]}}}let H={},Y=!1;for(let K in P){let te=P[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let fe=oe.distr;oe._min=fe==3?xi(oe.min):fe==4?xh(oe.min,oe.asinh):fe==100?oe.fwd(oe.min):oe.min,oe._max=fe==3?xi(oe.max):fe==4?xh(oe.max,oe.asinh):fe==100?oe.fwd(oe.max):oe.max,H[K]=Y=!0}}if(Y){E.forEach((K,te)=>{d==2?te>0&&H.y&&(K._paths=null):H[K.scale]&&(K._paths=null)});for(let K in H)qt=!0,sn("setScale",K);je.show&&je.left>=0&&(qn=hr=!0)}for(let K in L)L[K]=null}function $s(P){let H=_h(bn-1,0,Mn-1),Y=_h(vn+1,0,Mn-1);for(;P[H]==null&&H>0;)H--;for(;P[Y]==null&&Y<Mn-1;)Y++;return[H,Y]}function $c(){Mn>0&&(E.forEach((P,H)=>{if(H>0&&P.show&&(Cc(H,!1),Cc(H,!0),P._paths==null)){Dr!=P.alpha&&(a.globalAlpha=Dr=P.alpha);let Y=d==2?[0,e[H][0].length-1]:$s(e[H]);P._paths=P.paths(r,H,Y[0],Y[1]),Dr!=1&&(a.globalAlpha=Dr=1)}}),E.forEach((P,H)=>{if(H>0&&P.show){Dr!=P.alpha&&(a.globalAlpha=Dr=P.alpha),P._paths!=null&&Ca(H,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(r,H,bn,vn,Y),te=P.points.filter(r,H,K,Y);(K||te)&&(P.points._paths=P.points.paths(r,H,bn,vn,te),Ca(H,!0))}Dr!=1&&(a.globalAlpha=Dr=1),sn("drawSeries",H)}}))}function Cc(P,H){let Y=H?E[P].points:E[P];Y._stroke=Y.stroke(r,P),Y._fill=Y.fill(r,P)}function Ca(P,H){let Y=H?E[P].points:E[P],{stroke:K,fill:te,clip:oe,flags:fe,_stroke:xe=Y._stroke,_fill:_e=Y._fill,_width:ke=Y.width}=Y._paths;ke=Nt(ke*$t,3);let Ce=null,Me=ke%2/2;H&&_e==null&&(_e=ke>0?"#fff":xe);let Qe=Y.pxAlign==1&&Me>0;if(Qe&&a.translate(Me,Me),!H){let Lt=Ke-ke/2,st=gt-ke/2,Ye=mt+ke,Je=ht+ke;Ce=new Path2D,Ce.rect(Lt,st,Ye,Je)}H?Aa(xe,ke,Y.dash,Y.cap,_e,K,te,fe,oe):Ac(P,xe,ke,Y.dash,Y.cap,_e,K,te,fe,Ce,oe),Qe&&a.translate(-Me,-Me)}function Ac(P,H,Y,K,te,oe,fe,xe,_e,ke,Ce){let Me=!1;_e!=0&&v.forEach((Qe,Lt)=>{if(Qe.series[0]==P){let st=E[Qe.series[1]],Ye=e[Qe.series[1]],Je=(st._paths||oa).band;Ui(Je)&&(Je=Qe.dir==1?Je[0]:Je[1]);let Oe,Tt=null;st.show&&Je&&c$(Ye,bn,vn)?(Tt=Qe.fill(r,Lt)||oe,Oe=st._paths.clip):Je=null,Aa(H,Y,K,te,Tt,fe,xe,_e,ke,Ce,Oe,Je),Me=!0}}),Me||Aa(H,Y,K,te,oe,fe,xe,_e,ke,Ce)}const Cs=ds|Oh;function Aa(P,H,Y,K,te,oe,fe,xe,_e,ke,Ce,Me){Sa(P,H,Y,K,te),(_e||ke||Me)&&(a.save(),_e&&a.clip(_e),ke&&a.clip(ke)),Me?(xe&Cs)==Cs?(a.clip(Me),Ce&&a.clip(Ce),Qi(te,fe),Fo(P,oe,H)):xe&Oh?(Qi(te,fe),a.clip(Me),Fo(P,oe,H)):xe&ds&&(a.save(),a.clip(Me),Ce&&a.clip(Ce),Qi(te,fe),a.restore(),Fo(P,oe,H)):(Qi(te,fe),Fo(P,oe,H)),(_e||ke||Me)&&a.restore()}function Fo(P,H,Y){Y>0&&(H instanceof Map?H.forEach((K,te)=>{a.strokeStyle=xs=te,a.stroke(K)}):H!=null&&P&&a.stroke(H))}function Qi(P,H){H instanceof Map?H.forEach((Y,K)=>{a.fillStyle=Ki=K,a.fill(Y)}):H!=null&&P&&a.fill(H)}function Ta(P,H,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let fe=te._space=te.space(r,P,H,Y,K),xe=te._incrs=te.incrs(r,P,H,Y,K,fe);oe=MC(H,Y,xe,K,fe)}return te._found=oe}function pi(P,H,Y,K,te,oe,fe,xe,_e,ke){let Ce=fe%2/2;m==1&&a.translate(Ce,Ce),Sa(xe,fe,_e,ke,xe),a.beginPath();let Me,Qe,Lt,st,Ye=te+(K==0||K==3?-oe:oe);Y==0?(Qe=te,st=Ye):(Me=te,Lt=Ye);for(let Je=0;Je<P.length;Je++)H[Je]!=null&&(Y==0?Me=Lt=P[Je]:Qe=st=P[Je],a.moveTo(Me,Qe),a.lineTo(Lt,st));a.stroke(),m==1&&a.translate(-Ce,-Ce)}function Tc(P){let H=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(H=!1,Y._show=!1,Ci(!1));return}else Y._show||(H=!1,Y._show=!0,Ci(!1));let oe=Y.side,fe=oe%2,{min:xe,max:_e}=te,[ke,Ce]=Ta(K,xe,_e,fe==0?Be:ze);if(Ce==0)return;let Me=te.distr==2,Qe=Y._splits=Y.splits(r,K,xe,_e,ke,Ce,Me),Lt=te.distr==2?Qe.map(Oe=>Gn[Oe]):Qe,st=te.distr==2?Gn[Qe[1]]-Gn[Qe[0]]:ke,Ye=Y._values=Y.values(r,Y.filter(r,Lt,K,Ce,st),K,Ce,st);Y._rotate=oe==2?Y.rotate(r,Ye,K,Ce):0;let Je=Y._size;Y._size=Lr(Y.size(r,Ye,K,P)),Je!=null&&Y._size!=Je&&(H=!1)}),H}function Mc(P){let H=!0;return _c.forEach((Y,K)=>{let te=Y(r,K,$i,P);te!=di[K]&&(H=!1),di[K]=te}),H}function up(){for(let P=0;P<A.length;P++){let H=A[P];if(!H.show||!H._show)continue;let Y=H.side,K=Y%2,te,oe,fe=H.stroke(r,P),xe=Y==0||Y==3?-1:1;if(H.label){let Ln=H.labelGap*xe,nr=Cn((H._lpos+Ln)*$t);$a(H.labelFont[0],fe,"center",Y==2?na:km),a.save(),K==1?(te=oe=0,a.translate(nr,Cn(gt+ht/2)),a.rotate((Y==3?-Fl:Fl)/2)):(te=Cn(Ke+mt/2),oe=nr),a.fillText(H.label,te,oe),a.restore()}let[_e,ke]=H._found;if(ke==0)continue;let Ce=k[H.scale],Me=K==0?mt:ht,Qe=K==0?Ke:gt,Lt=Cn(H.gap*$t),st=H._splits,Ye=Ce.distr==2?st.map(Ln=>Gn[Ln]):st,Je=Ce.distr==2?Gn[st[1]]-Gn[st[0]]:_e,Oe=H.ticks,Tt=H.border,en=Oe.show?Cn(Oe.size*$t):0,Yt=H._rotate*-Fl/180,Bt=b(H._pos*$t),jt=(en+Lt)*xe,ne=Bt+jt;oe=K==0?ne:0,te=K==1?ne:0;let le=H.font[0],se=H.align==1?is:H.align==2?ch:Yt>0?is:Yt<0?ch:K==0?"center":Y==3?ch:is,$e=Yt||K==1?"middle":Y==2?na:km;$a(le,fe,se,$e);let Pe=H.font[1]*H.lineGap,Ze=st.map(Ln=>b(p(Ln,Ce,Me,Qe))),Mt=H._values;for(let Ln=0;Ln<Mt.length;Ln++){let nr=Mt[Ln];if(nr!=null){K==0?te=Ze[Ln]:oe=Ze[Ln],nr=""+nr;let On=nr.indexOf(`
1414
+ `)==-1?[nr]:nr.split(/\n/gm);for(let Cr=0;Cr<On.length;Cr++){let fr=On[Cr];Yt?(a.save(),a.translate(te,oe+Cr*Pe),a.rotate(Yt),a.fillText(fr,0,0),a.restore()):a.fillText(fr,te,oe+Cr*Pe)}}}Oe.show&&pi(Ze,Oe.filter(r,Ye,P,ke,Je),K,Y,Bt,en,Nt(Oe.width*$t,3),Oe.stroke(r,P),Oe.dash,Oe.cap);let Xe=H.grid;Xe.show&&pi(Ze,Xe.filter(r,Ye,P,ke,Je),K,K==0?2:1,K==0?gt:Ke,K==0?ht:mt,Nt(Xe.width*$t,3),Xe.stroke(r,P),Xe.dash,Xe.cap),Tt.show&&pi([Bt],[1],K==0?1:0,K==0?1:2,K==1?gt:Ke,K==1?ht:mt,Nt(Tt.width*$t,3),Tt.stroke(r,P),Tt.dash,Tt.cap)}sn("drawAxes")}function Ci(P){E.forEach((H,Y)=>{Y>0&&(H._paths=null,P&&(d==1?(H.min=null,H.max=null):H.facets.forEach(K=>{K.min=null,K.max=null})))})}let Po=!1,As=!1,Zi=[];function hp(){As=!1;for(let P=0;P<Zi.length;P++)sn(...Zi[P]);Zi.length=0}function Ji(){Po||(_$(Ma),Po=!0)}function dp(P,H=!1){Po=!0,As=H,P(r),Ma(),H&&Zi.length>0&&queueMicrotask(hp)}r.batch=dp;function Ma(){if(dt&&(Sc(),dt=!1),qt&&(rp(),qt=!1),ot){if(Ut(o,is,on),Ut(o,na,Ue),Ut(o,ea,Be),Ut(o,ta,ze),Ut(c,is,on),Ut(c,na,Ue),Ut(c,ea,Be),Ut(c,ta,ze),Ut(u,ea,Tn),Ut(u,ta,rn),l.width=Cn(Tn*$t),l.height=Cn(rn*$t),A.forEach(({_el:P,_show:H,_size:Y,_pos:K,side:te})=>{if(P!=null)if(H){let oe=te===3||te===0?Y:0,fe=te%2==1;Ut(P,fe?"left":"top",K-oe),Ut(P,fe?"width":"height",Y),Ut(P,fe?"top":"left",fe?Ue:on),Ut(P,fe?"height":"width",fe?ze:Be),gh(P,_o)}else xr(P,_o)}),xs=Ki=_s=Ss=va=xa=_a=ka=ks=null,Dr=1,jo(!0),on!=ce||Ue!=Te||Be!=Re||ze!=Ge){Ci(!1);let P=Be/Re,H=ze/Ge;if(je.show&&!qn&&je.left>=0){je.left*=P,je.top*=H,Xi&&ii(Xi,Cn(je.left),0,Be,ze),fi&&ii(fi,0,Cn(je.top),Be,ze);for(let Y=0;Y<Vn.length;Y++){let K=Vn[Y];K!=null&&(Vi[Y]*=P,Gi[Y]*=H,ii(K,Lr(Vi[Y]),Lr(Gi[Y]),Be,ze))}}if(Pt.show&&!ki&&Pt.left>=0&&Pt.width>0){Pt.left*=P,Pt.width*=P,Pt.top*=H,Pt.height*=H;for(let Y in Ia)Ut(Ai,Y,Pt[Y])}ce=on,Te=Ue,Re=Be,Ge=ze}sn("setSize"),ot=!1}Tn>0&&rn>0&&(a.clearRect(0,0,l.width,l.height),sn("drawClear"),O.forEach(P=>P()),sn("draw")),Pt.show&&ki&&(Ts(Pt),ki=!1),je.show&&qn&&(Yn(null,!0,!1),qn=!1),X.show&&X.live&&hr&&(Bo(),hr=!1),g||(g=!0,r.status=1,sn("ready")),Do=!1,Po=!1}r.redraw=(P,H)=>{qt=H||!1,P!==!1?Ir(T,N.min,N.max):Ji()};function Ea(P,H){let Y=k[P];if(Y.from==null){if(Mn==0){let K=Y.range(r,H.min,H.max,P);H.min=K[0],H.max=K[1]}if(H.min>H.max){let K=H.min;H.min=H.max,H.max=K}if(Mn>1&&H.min!=null&&H.max!=null&&H.max-H.min<1e-16)return;P==T&&Y.distr==2&&Mn>0&&(H.min=Gr(H.min,e[0]),H.max=Gr(H.max,e[0]),H.min==H.max&&H.max++),L[P]=H,dt=!0,Ji()}}r.setScale=Ea;let Ra,La,Xi,fi,Ec,Rc,eo,to,Lc,It,He,zt,gi=!1;const En=je.drag;let xn=En.x,_n=En.y;je.show&&(je.x&&(Ra=Rr(GS,c)),je.y&&(La=Rr(YS,c)),N.ori==0?(Xi=Ra,fi=La):(Xi=La,fi=Ra),He=je.left,zt=je.top);const Pt=r.select=yn({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Ai=Pt.show?Rr(VS,Pt.over?c:o):null;function Ts(P,H){if(Pt.show){for(let Y in P)Pt[Y]=P[Y],Y in Ia&&Ut(Ai,Y,P[Y]);H!==!1&&sn("setSelect")}}r.setSelect=Ts;function Rn(P,H){let Y=E[P],K=G?we[P]:null;if(Y.show)K&&gh(K,_o);else{K&&xr(K,_o);let te=qi?Vn[0]:Vn[P];ii(te,-10,-10,Be,ze)}}function Ir(P,H,Y){Ea(P,{min:H,max:Y})}function Nn(P,H,Y,K){H.focus!=null&&Ic(P),H.show!=null&&E.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=H.show,Rn(oe,H.show),d==2?(Ir(te.facets[0].scale,null,null),Ir(te.facets[1].scale,null,null)):Ir(te.scale,null,null),Ji())}),Y!==!1&&sn("setSeries",P,H),K&&Zr("setSeries",r,P,H)}r.setSeries=Nn;function Oc(P,H){yn(v[P],H)}function Oa(P,H){P.fill=vt(P.fill||null),P.dir=St(P.dir,-1),H=H??v.length,v.splice(H,0,P)}function dr(P){P==null?v.length=0:v.splice(P,1)}r.addBand=Oa,r.setBand=Oc,r.delBand=dr;function Dc(P,H){E[P].alpha=H,je.show&&Vn[P]&&(Vn[P].style.opacity=H),G&&we[P]&&(we[P].style.opacity=H)}let Nr,Qr,mi;const Ti={focus:!0};function Ic(P){if(P!=mi){let H=P==null,Y=ui.alpha!=1;E.forEach((K,te)=>{if(d==1||te>0){let oe=H||te==0||te==P;K._focus=H?null:oe,Y&&Dc(te,oe?1:ui.alpha)}}),mi=P,Y&&Ji()}}G&&hi&&Jt(Tm,re,P=>{je._lock||(Si(P),mi!=null&&Nn(null,Ti,!0,Xt.setSeries))});function Gt(P,H,Y){let K=k[H];Y&&(P=P/$t-(K.ori==1?Ue:on));let te=Be;K.ori==1&&(te=ze,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,fe=K._max,xe=P/te,_e=oe+(fe-oe)*xe,ke=K.distr;return ke==3?ls(10,_e):ke==4?h$(_e,K.asinh):ke==100?K.bwd(_e):_e}function pp(P,H){let Y=Gt(P,T,H);return Gr(Y,e[0],bn,vn)}r.valToIdx=P=>Gr(P,e[0]),r.posToIdx=pp,r.posToVal=Gt,r.valToPos=(P,H,Y)=>k[H].ori==0?f(P,k[H],Y?mt:Be,Y?Ke:0):w(P,k[H],Y?ht:ze,Y?gt:0),r.setCursor=(P,H,Y)=>{He=P.left,zt=P.top,Yn(null,H,Y)};function tr(P,H){Ut(Ai,is,Pt.left=P),Ut(Ai,ea,Pt.width=H)}function Nc(P,H){Ut(Ai,na,Pt.top=P),Ut(Ai,ta,Pt.height=H)}let no=N.ori==0?tr:Nc,pr=N.ori==1?tr:Nc;function Ms(){if(G&&X.live)for(let P=d==2?1:0;P<E.length;P++){if(P==0&&Se)continue;let H=X.values[P],Y=0;for(let K in H)ve[P][Y++].firstChild.nodeValue=H[K]}}function Bo(P,H){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{V[K]=Y}):f$(P.idx)||V.fill(P.idx),X.idx=V[0]),G&&X.live){for(let Y=0;Y<E.length;Y++)(Y>0||d==1&&!Se)&&Wt(Y,V[Y]);Ms()}hr=!1,H!==!1&&sn("setLegend")}r.setLegend=Bo;function Wt(P,H){let Y=E[P],K=P==0&&S==2?Gn:e[P],te;Se?te=Y.values(r,P,H)??lt:(te=Y.value(r,H==null?null:K[H],P,H),te=te==null?lt:{_:te}),X.values[P]=te}function Yn(P,H,Y){Lc=He,It=zt,[He,zt]=je.move(r,He,zt),je.left=He,je.top=zt,je.show&&(Xi&&ii(Xi,Cn(He),0,Be,ze),fi&&ii(fi,0,Cn(zt),Be,ze));let K,te=bn>vn;Nr=bt,Qr=null;let oe=N.ori==0?Be:ze,fe=N.ori==1?Be:ze;if(He<0||Mn==0||te){K=je.idx=null;for(let xe=0;xe<E.length;xe++){let _e=Vn[xe];_e!=null&&ii(_e,-10,-10,Be,ze)}hi&&Nn(null,Ti,!0,P==null&&Xt.setSeries),X.live&&(V.fill(K),hr=!0)}else{let xe,_e,ke;d==1&&(xe=N.ori==0?He:zt,_e=Gt(xe,T),K=je.idx=Gr(_e,e[0],bn,vn),ke=_(e[0][K],N,oe,0));let Ce=-10,Me=-10,Qe=0,Lt=0,st=!0,Ye="",Je="";for(let Oe=d==2?1:0;Oe<E.length;Oe++){let Tt=E[Oe],en=V[Oe],Yt=en==null?null:d==1?e[Oe][en]:e[Oe][1][en],Bt=je.dataIdx(r,Oe,K,_e),jt=Bt==null?null:d==1?e[Oe][Bt]:e[Oe][1][Bt];hr=hr||jt!=Yt||Bt!=en,V[Oe]=Bt;let ne=Bt==K?ke:_(d==1?e[0][Bt]:e[Oe][0][Bt],N,oe,0);if(Oe>0&&Tt.show){let le=jt==null?-10:$(jt,d==1?k[Tt.scale]:k[Tt.facets[1].scale],fe,0);if(hi&&jt!=null){let se=N.ori==1?He:zt,$e=$n(ui.dist(r,Oe,Bt,le,se));if($e<Nr){let Pe=ui.bias;if(Pe!=0){let Ze=Gt(se,Tt.scale),Mt=jt>=0?1:-1,Xe=Ze>=0?1:-1;Xe==Mt&&(Xe==1?Pe==1?jt>=Ze:jt<=Ze:Pe==1?jt<=Ze:jt>=Ze)&&(Nr=$e,Qr=Oe)}else Nr=$e,Qr=Oe}}if(hr||qi){let se,$e;N.ori==0?(se=ne,$e=le):(se=le,$e=ne);let Pe,Ze,Mt,Xe,Ln,nr,On=!0,Cr=In.bbox;if(Cr!=null){On=!1;let fr=Cr(r,Oe);Mt=fr.left,Xe=fr.top,Pe=fr.width,Ze=fr.height}else Mt=se,Xe=$e,Pe=Ze=In.size(r,Oe);if(nr=In.fill(r,Oe),Ln=In.stroke(r,Oe),qi)Oe==Qr&&Nr<=ui.prox&&(Ce=Mt,Me=Xe,Qe=Pe,Lt=Ze,st=On,Ye=nr,Je=Ln);else{let fr=Vn[Oe];fr!=null&&(Vi[Oe]=Mt,Gi[Oe]=Xe,Im(fr,Pe,Ze,On),Om(fr,nr,Ln),ii(fr,Lr(Mt),Lr(Xe),Be,ze))}}}}if(qi){let Oe=ui.prox,Tt=mi==null?Nr<=Oe:Nr>Oe||Qr!=mi;if(hr||Tt){let en=Vn[0];Vi[0]=Ce,Gi[0]=Me,Im(en,Qe,Lt,st),Om(en,Ye,Je),ii(en,Lr(Ce),Lr(Me),Be,ze)}}}if(Pt.show&&gi)if(P!=null){let[xe,_e]=Xt.scales,[ke,Ce]=Xt.match,[Me,Qe]=P.cursor.sync.scales,Lt=P.cursor.drag;if(xn=Lt._x,_n=Lt._y,xn||_n){let{left:st,top:Ye,width:Je,height:Oe}=P.select,Tt=P.scales[Me].ori,en=P.posToVal,Yt,Bt,jt,ne,le,se=xe!=null&&ke(xe,Me),$e=_e!=null&&Ce(_e,Qe);se&&xn?(Tt==0?(Yt=st,Bt=Je):(Yt=Ye,Bt=Oe),jt=k[xe],ne=_(en(Yt,Me),jt,oe,0),le=_(en(Yt+Bt,Me),jt,oe,0),no(Or(ne,le),$n(le-ne))):no(0,oe),$e&&_n?(Tt==1?(Yt=st,Bt=Je):(Yt=Ye,Bt=Oe),jt=k[_e],ne=$(en(Yt,Qe),jt,fe,0),le=$(en(Yt+Bt,Qe),jt,fe,0),pr(Or(ne,le),$n(le-ne))):pr(0,fe)}else Rs()}else{let xe=$n(Lc-Ec),_e=$n(It-Rc);if(N.ori==1){let Qe=xe;xe=_e,_e=Qe}xn=En.x&&xe>=En.dist,_n=En.y&&_e>=En.dist;let ke=En.uni;ke!=null?xn&&_n&&(xn=xe>=ke,_n=_e>=ke,!xn&&!_n&&(_e>xe?_n=!0:xn=!0)):En.x&&En.y&&(xn||_n)&&(xn=_n=!0);let Ce,Me;xn&&(N.ori==0?(Ce=eo,Me=He):(Ce=to,Me=zt),no(Or(Ce,Me),$n(Me-Ce)),_n||pr(0,fe)),_n&&(N.ori==1?(Ce=eo,Me=He):(Ce=to,Me=zt),pr(Or(Ce,Me),$n(Me-Ce)),xn||no(0,oe)),!xn&&!_n&&(no(0,0),pr(0,0))}if(En._x=xn,En._y=_n,P==null){if(Y){if(Kn!=null){let[xe,_e]=Xt.scales;Xt.values[0]=xe!=null?Gt(N.ori==0?He:zt,xe):null,Xt.values[1]=_e!=null?Gt(N.ori==1?He:zt,_e):null}Zr($m,r,He,zt,Be,ze,K)}if(hi){let xe=Y&&Xt.setSeries,_e=ui.prox;mi==null?Nr<=_e&&Nn(Qr,Ti,!0,xe):Nr>_e?Nn(null,Ti,!0,xe):Qr!=mi&&Nn(Qr,Ti,!0,xe)}}hr&&(X.idx=K,Bo()),H!==!1&&sn("setCursor")}let Fr=null;Object.defineProperty(r,"rect",{get(){return Fr==null&&jo(!1),Fr}});function jo(P=!1){P?Fr=null:(Fr=c.getBoundingClientRect(),sn("syncRect",Fr))}function Es(P,H,Y,K,te,oe,fe){je._lock||gi&&P!=null&&P.movementX==0&&P.movementY==0||(Da(P,H,Y,K,te,oe,fe,!1,P!=null),P!=null?Yn(null,!0,!0):Yn(H,!0,!1))}function Da(P,H,Y,K,te,oe,fe,xe,_e){if(Fr==null&&jo(!1),Si(P),P!=null)Y=P.clientX-Fr.left,K=P.clientY-Fr.top;else{if(Y<0||K<0){He=-10,zt=-10;return}let[ke,Ce]=Xt.scales,Me=H.cursor.sync,[Qe,Lt]=Me.values,[st,Ye]=Me.scales,[Je,Oe]=Xt.match,Tt=H.axes[0].side%2==1,en=N.ori==0?Be:ze,Yt=N.ori==1?Be:ze,Bt=Tt?oe:te,jt=Tt?te:oe,ne=Tt?K:Y,le=Tt?Y:K;if(st!=null?Y=Je(ke,st)?p(Qe,k[ke],en,0):-10:Y=en*(ne/Bt),Ye!=null?K=Oe(Ce,Ye)?p(Lt,k[Ce],Yt,0):-10:K=Yt*(le/jt),N.ori==1){let se=Y;Y=K,K=se}}_e&&((Y<=1||Y>=Be-1)&&(Y=$o(Y,Be)),(K<=1||K>=ze-1)&&(K=$o(K,ze))),xe?(Ec=Y,Rc=K,[eo,to]=je.move(r,Y,K)):(He=Y,zt=K)}const Ia={width:0,height:0,left:0,top:0};function Rs(){Ts(Ia,!1)}let Na,Ho,Mi,Fc;function Fa(P,H,Y,K,te,oe,fe){gi=!0,xn=_n=En._x=En._y=!1,Da(P,H,Y,K,te,oe,fe,!0,!1),P!=null&&(Jt(hh,ph,Pa,!1),Zr(Cm,r,eo,to,Be,ze,null));let{left:xe,top:_e,width:ke,height:Ce}=Pt;Na=xe,Ho=_e,Mi=ke,Fc=Ce,Rs()}function Pa(P,H,Y,K,te,oe,fe){gi=En._x=En._y=!1,Da(P,H,Y,K,te,oe,fe,!1,!0);let{left:xe,top:_e,width:ke,height:Ce}=Pt,Me=ke>0||Ce>0,Qe=Na!=xe||Ho!=_e||Mi!=ke||Fc!=Ce;if(Me&&Qe&&Ts(Pt),En.setScale&&Me&&Qe){let Lt=xe,st=ke,Ye=_e,Je=Ce;if(N.ori==1&&(Lt=_e,st=Ce,Ye=xe,Je=ke),xn&&Ir(T,Gt(Lt,T),Gt(Lt+st,T)),_n)for(let Oe in k){let Tt=k[Oe];Oe!=T&&Tt.from==null&&Tt.min!=bt&&Ir(Oe,Gt(Ye+Je,Oe),Gt(Ye,Oe))}Rs()}else je.lock&&(je._lock=!je._lock,Yn(null,!0,!1));P!=null&&(ci(hh,ph),Zr(hh,r,He,zt,Be,ze,null))}function Ba(P,H,Y,K,te,oe,fe){if(je._lock)return;Si(P);let xe=gi;if(gi){let _e=!0,ke=!0,Ce=10,Me,Qe;N.ori==0?(Me=xn,Qe=_n):(Me=_n,Qe=xn),Me&&Qe&&(_e=He<=Ce||He>=Be-Ce,ke=zt<=Ce||zt>=ze-Ce),Me&&_e&&(He=He<eo?0:Be),Qe&&ke&&(zt=zt<to?0:ze),Yn(null,!0,!0),gi=!1}He=-10,zt=-10,Yn(null,!0,!0),xe&&(gi=xe)}function Ls(P,H,Y,K,te,oe,fe){je._lock||(Si(P),ba(),Rs(),P!=null&&Zr(Mm,r,He,zt,Be,ze,null))}function ja(){A.forEach(EC),ya(r.width,r.height,!0)}ko(Ol,ss,ja);const ro={};ro.mousedown=Fa,ro.mousemove=Es,ro.mouseup=Pa,ro.dblclick=Ls,ro.setSeries=(P,H,Y,K)=>{let te=Xt.match[2];Y=te(r,H,Y),Y!=-1&&Nn(Y,K,!0,!1)},je.show&&(Jt(Cm,c,Fa),Jt($m,c,Es),Jt(Am,c,P=>{Si(P),jo(!1)}),Jt(Tm,c,Ba),Jt(Mm,c,Ls),Fh.add(r),r.syncRect=jo);const io=r.hooks=t.hooks||{};function sn(P,H,Y){As?Zi.push([P,H,Y]):P in io&&io[P].forEach(K=>{K.call(null,r,H,Y)})}(t.plugins||[]).forEach(P=>{for(let H in P.hooks)io[H]=(io[H]||[]).concat(P.hooks[H])});const Pc=(P,H,Y)=>Y,Xt=yn({key:null,setSeries:!1,filters:{pub:Wm,sub:Wm},scales:[T,E[1]?E[1].scale:null],match:[Um,Um,Pc],values:[null,null]},je.sync);Xt.match.length==2&&Xt.match.push(Pc),je.sync=Xt;const Kn=Xt.key,zo=T0(Kn);function Zr(P,H,Y,K,te,oe,fe){Xt.filters.pub(P,H,Y,K,te,oe,fe)&&zo.pub(P,H,Y,K,te,oe,fe)}zo.sub(r);function Bc(P,H,Y,K,te,oe,fe){Xt.filters.sub(P,H,Y,K,te,oe,fe)&&ro[P](null,H,Y,K,te,oe,fe)}r.pub=Bc;function jc(){zo.unsub(r),Fh.delete(r),Ft.clear(),yh(Ol,ss,ja),s.remove(),re==null||re.remove(),sn("destroy")}r.destroy=jc;function Ha(){sn("init",t,e),Io(e||t.data,!1),L[T]?Ea(T,L[T]):ba(),ki=Pt.show&&(Pt.width>0||Pt.height>0),qn=hr=!0,ya(t.width,t.height)}return E.forEach(xc),A.forEach(cp),n?n instanceof HTMLElement?(n.appendChild(s),Ha()):n(r,Ha):Ha(),r}zn.assign=yn,zn.fmtNum=vh,zn.rangeNum=Nl,zn.rangeLog=Il,zn.rangeAsinh=wh,zn.orient=Ao,zn.pxRatio=$t,zn.join=x$,zn.fmtDate=Sh,zn.tzDate=L$,zn.sync=T0;{zn.addGap=fC,zn.clipGaps=Wl;let t=zn.paths={points:I0};t.linear=F0,t.stepped=yC,t.bars=wC,t.spline=vC}var q0,V0;function RC(){return V0||(V0=1,q0=function(t,e,n,r,d){var h,f;if(r===void 0)r=0;else if(r=r|0,r<0||r>=t.length)throw new RangeError("invalid lower bound");if(d===void 0)d=t.length-1;else if(d=d|0,d<r||d>=t.length)throw new RangeError("invalid upper bound");for(;r<=d;)if(h=r+(d-r>>>1),f=+n(t[h],e,h,t),f<0)r=h+1;else if(f>0)d=h-1;else return h;return~r}),q0}var LC=RC();const OF=Wr("b",ml(LC));var Bh,G0;function OC(){if(G0)return Bh;G0=1;function t(e,n,r){var d=-1,h=e.length;n<0&&(n=-n>h?0:h+n),r=r>h?h:r,r<0&&(r+=h),h=n>r?0:r-n>>>0,n>>>=0;for(var f=Array(h);++d<h;)f[d]=e[d+n];return f}return Bh=t,Bh}var jh,Y0;function DC(){if(Y0)return jh;Y0=1;var t=OC();function e(n,r,d){var h=n.length;return d=d===void 0?h:d,!r&&d>=h?n:t(n,r,d)}return jh=e,jh}var Hh,K0;function Q0(){if(K0)return Hh;K0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+n+r,h="\\ufe0e\\ufe0f",f="\\u200d",w=RegExp("["+f+t+d+h+"]");function p(g){return w.test(g)}return Hh=p,Hh}var zh,Z0;function IC(){if(Z0)return zh;Z0=1;function t(e){return e.split("")}return zh=t,zh}var Wh,J0;function NC(){if(J0)return Wh;J0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+n+r,h="\\ufe0e\\ufe0f",f="["+t+"]",w="["+d+"]",p="\\ud83c[\\udffb-\\udfff]",g="(?:"+w+"|"+p+")",s="[^"+t+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="\\u200d",o=g+"?",c="["+h+"]?",m="(?:"+u+"(?:"+[s,l,a].join("|")+")"+c+o+")*",b=c+o+m,x="(?:"+[s+w+"?",w,l,a,f].join("|")+")",E=RegExp(p+"(?="+p+")|"+x+b,"g");function A(k){return k.match(E)||[]}return Wh=A,Wh}var Uh,X0;function FC(){if(X0)return Uh;X0=1;var t=IC(),e=Q0(),n=NC();function r(d){return e(d)?n(d):t(d)}return Uh=r,Uh}var qh,ey;function PC(){if(ey)return qh;ey=1;var t=typeof zi=="object"&&zi&&zi.Object===Object&&zi;return qh=t,qh}var Vh,ty;function BC(){if(ty)return Vh;ty=1;var t=PC(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Vh=n,Vh}var Gh,ny;function Yh(){if(ny)return Gh;ny=1;var t=BC(),e=t.Symbol;return Gh=e,Gh}var Kh,ry;function jC(){if(ry)return Kh;ry=1;function t(e,n){for(var r=-1,d=e==null?0:e.length,h=Array(d);++r<d;)h[r]=n(e[r],r,e);return h}return Kh=t,Kh}var Qh,iy;function HC(){if(iy)return Qh;iy=1;var t=Array.isArray;return Qh=t,Qh}var Zh,oy;function zC(){if(oy)return Zh;oy=1;var t=Yh(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,d=t?t.toStringTag:void 0;function h(f){var w=n.call(f,d),p=f[d];try{f[d]=void 0;var g=!0}catch{}var s=r.call(f);return g&&(w?f[d]=p:delete f[d]),s}return Zh=h,Zh}var Jh,sy;function WC(){if(sy)return Jh;sy=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Jh=n,Jh}var Xh,ay;function UC(){if(ay)return Xh;ay=1;var t=Yh(),e=zC(),n=WC(),r="[object Null]",d="[object Undefined]",h=t?t.toStringTag:void 0;function f(w){return w==null?w===void 0?d:r:h&&h in Object(w)?e(w):n(w)}return Xh=f,Xh}var ed,ly;function qC(){if(ly)return ed;ly=1;function t(e){return e!=null&&typeof e=="object"}return ed=t,ed}var td,cy;function VC(){if(cy)return td;cy=1;var t=UC(),e=qC(),n="[object Symbol]";function r(d){return typeof d=="symbol"||e(d)&&t(d)==n}return td=r,td}var nd,uy;function GC(){if(uy)return nd;uy=1;var t=Yh(),e=jC(),n=HC(),r=VC(),d=1/0,h=t?t.prototype:void 0,f=h?h.toString:void 0;function w(p){if(typeof p=="string")return p;if(n(p))return e(p,w)+"";if(r(p))return f?f.call(p):"";var g=p+"";return g=="0"&&1/p==-d?"-0":g}return nd=w,nd}var rd,hy;function Gl(){if(hy)return rd;hy=1;var t=GC();function e(n){return n==null?"":t(n)}return rd=e,rd}var id,dy;function YC(){if(dy)return id;dy=1;var t=DC(),e=Q0(),n=FC(),r=Gl();function d(h){return function(f){f=r(f);var w=e(f)?n(f):void 0,p=w?w[0]:f.charAt(0),g=w?t(w,1).join(""):f.slice(1);return p[h]()+g}}return id=d,id}var od,py;function fy(){if(py)return od;py=1;var t=YC(),e=t("toUpperCase");return od=e,od}var KC=fy();const QC=ml(KC);var sd,gy;function ZC(){if(gy)return sd;gy=1;var t=Gl(),e=fy();function n(r){return e(t(r).toLowerCase())}return sd=n,sd}var ad,my;function JC(){if(my)return ad;my=1;function t(e,n,r,d){var h=-1,f=e==null?0:e.length;for(d&&f&&(r=e[++h]);++h<f;)r=n(r,e[h],h,e);return r}return ad=t,ad}var ld,yy;function XC(){if(yy)return ld;yy=1;function t(e){return function(n){return e==null?void 0:e[n]}}return ld=t,ld}var cd,wy;function eA(){if(wy)return cd;wy=1;var t=XC(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},n=t(e);return cd=n,cd}var ud,by;function tA(){if(by)return ud;by=1;var t=eA(),e=Gl(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",d="\\ufe20-\\ufe2f",h="\\u20d0-\\u20ff",f=r+d+h,w="["+f+"]",p=RegExp(w,"g");function g(s){return s=e(s),s&&s.replace(n,t).replace(p,"")}return ud=g,ud}var hd,vy;function nA(){if(vy)return hd;vy=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(n){return n.match(t)||[]}return hd=e,hd}var dd,xy;function rA(){if(xy)return dd;xy=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(n){return t.test(n)}return dd=e,dd}var pd,_y;function iA(){if(_y)return pd;_y=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+n+r,h="\\u2700-\\u27bf",f="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",p="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",u=w+p+g+s,o="['’]",c="["+u+"]",m="["+d+"]",b="\\d+",x="["+h+"]",E="["+f+"]",A="[^"+t+u+b+h+f+l+"]",k="\\ud83c[\\udffb-\\udfff]",v="(?:"+m+"|"+k+")",T="[^"+t+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+l+"]",N="\\u200d",S="(?:"+E+"|"+A+")",_="(?:"+M+"|"+A+")",$="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",D=v+"?",F="["+a+"]?",B="(?:"+N+"(?:"+[T,R,O].join("|")+")"+F+D+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",V=F+D+B,X="(?:"+[x,R,O].join("|")+")"+V,G=RegExp([M+"?"+E+"+"+$+"(?="+[c,M,"$"].join("|")+")",_+"+"+L+"(?="+[c,M+S,"$"].join("|")+")",M+"?"+S+"+"+$,M+"+"+L,q,W,b,X].join("|"),"g");function Z(re){return re.match(G)||[]}return pd=Z,pd}var fd,ky;function oA(){if(ky)return fd;ky=1;var t=nA(),e=rA(),n=Gl(),r=iA();function d(h,f,w){return h=n(h),f=w?void 0:f,f===void 0?e(h)?r(h):t(h):h.match(f)||[]}return fd=d,fd}var gd,Sy;function sA(){if(Sy)return gd;Sy=1;var t=JC(),e=tA(),n=oA(),r="['’]",d=RegExp(r,"g");function h(f){return function(w){return t(n(e(w).replace(d,"")),f,"")}}return gd=h,gd}var md,$y;function aA(){if($y)return md;$y=1;var t=ZC(),e=sA(),n=e(function(r,d,h){return d=d.toLowerCase(),r+(h?t(d):d)});return md=n,md}var lA=aA();const cA=ml(lA),uA=Object.assign({"./ArrayWidget.vue":()=>Ne(()=>Fe.import("./ArrayWidget-BTxChSds-863ae72df606eb9d4300.js"),void 0),"./BlockWidget.vue":()=>Ne(()=>Fe.import("./BlockWidget-PmjzrkXF-9f9c01bbaf9271d0a980.js"),void 0),"./ButtonWidget.vue":()=>Ne(()=>Fe.import("./ButtonWidget-nwDlOBJT-5cf75ff872e011709203.js"),void 0),"./CanvasWidget.vue":()=>Ne(()=>Fe.import("./CanvasWidget-BL8930eT-73c56bb6932393423907.js"),void 0),"./CanvasdotWidget.vue":()=>Ne(()=>Fe.import("./CanvasdotWidget-VCf1fL-G-51436946fb9a77d4dd57.js"),void 0),"./CanvasimageWidget.vue":()=>Ne(()=>Fe.import("./CanvasimageWidget-BIw7Wbf2-31ebf968e4d323592f80.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Ne(()=>Fe.import("./CanvasimagevalueWidget-CE3Dj5bH-5acc4ce3d50a733a31e2.js"),void 0),"./CanvaslabelWidget.vue":()=>Ne(()=>Fe.import("./CanvaslabelWidget-DWmb356h-e90f1900a20e4f2bd1da.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Ne(()=>Fe.import("./CanvaslabelvalueWidget-CI3yYwFs-ee933e5e6bbf01384963.js"),void 0),"./CanvaslineWidget.vue":()=>Ne(()=>Fe.import("./CanvaslineWidget-COeapH3P-e0c47c90f78b81c2ed97.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Ne(()=>Fe.import("./CanvaslinevalueWidget-CI-Bbzfi-ded1bd2057803054e8b0.js"),void 0),"./CheckbuttonWidget.vue":()=>Ne(()=>Fe.import("./CheckbuttonWidget-BQhggcZ2-9d6ddd18672d2db4c41e.js"),void 0),"./ComboboxWidget.vue":()=>Ne(()=>Fe.import("./ComboboxWidget-BzsbOv54-1a2e2a279bc5c21f2337.js"),void 0),"./DateWidget.vue":()=>Ne(()=>Fe.import("./DateWidget-B5R_9rA8-154f35d2d8d10f84f6e5.js"),void 0),"./DynamicWidget.vue":()=>Ne(()=>Fe.import("./DynamicWidget-m9EliUR2-58d23243c1a102ea29b9.js"),void 0),"./FormatvalueWidget.vue":()=>Ne(()=>Fe.import("./FormatvalueWidget-DZkRJce8-2113a42e6eb77f82bc3f.js"),void 0),"./HorizontalWidget.vue":()=>Ne(()=>Fe.import("./HorizontalWidget-CirtfuL8-c98501e8a25f277378d9.js"),void 0),"./HorizontalboxWidget.vue":()=>Ne(()=>Fe.import("./HorizontalboxWidget-CyTDt2nl-1e39f9bc753cd9b1d424.js"),void 0),"./HorizontallineWidget.vue":()=>Ne(()=>Fe.import("./HorizontallineWidget-BdlNB951-e5a08e757c627c83cdb1.js"),void 0),"./IframeWidget.vue":()=>Ne(()=>Fe.import("./IframeWidget-DnJmCrCA-662bebc5d8e32763429e.js"),void 0),"./ImageviewerWidget.vue":()=>Ne(()=>Fe.import("./ImageviewerWidget-DIkmb_C9-83cfbc94386769cffa1b.js"),void 0),"./LabelWidget.vue":()=>Ne(()=>Fe.import("./LabelWidget-BDsypYho-87202b628eb4ed4b33dc.js"),void 0),"./LabelledWidget.vue":()=>Ne(()=>Fe.import("./LabelledWidget-DjturGl5-e517bfe9f699f8e9bab1.js"),void 0),"./LabelprogressbarWidget.vue":()=>Ne(()=>Fe.import("./LabelprogressbarWidget-RADJGLj3-47df67f537072a68eb4d.js"),void 0),"./LabelsparklineWidget.vue":()=>Ne(()=>Fe.import("./LabelsparklineWidget-BlJoICxu-8f4bffddbef8903d84d5.js"),void 0),"./LabelvalueWidget.vue":()=>Ne(()=>Fe.import("./LabelvalueWidget-DVWJqnlY-9cc7dd06411c3794787f.js"),void 0),"./LabelvaluedescWidget.vue":()=>Ne(()=>Fe.import("./LabelvaluedescWidget-CsUP7J4U-a0b268def5593689db71.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Ne(()=>Fe.import("./LabelvaluelimitsbarWidget-Blj1QXV8-83fee6603947aaf14f19.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Ne(()=>Fe.import("./LabelvaluelimitscolumnWidget-CvCo-uCe-178065792a6108d15976.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Ne(()=>Fe.import("./LabelvaluerangebarWidget-DpcXhlfF-cc3416449084b053d162.js"),void 0),"./LedWidget.vue":()=>Ne(()=>Fe.import("./LedWidget-B_K2e5tq-b6e1c559e431c2d45ae6.js"),void 0),"./LimitsbarWidget.vue":()=>Ne(()=>Fe.import("./LimitsbarWidget-DXbqsi4J-7ad1787a9883a599f2b5.js"),void 0),"./LimitscolorWidget.vue":()=>Ne(()=>Fe.import("./LimitscolorWidget-Ckmuw0YX-07506fb06cb41ea914e0.js"),void 0),"./LimitscolumnWidget.vue":()=>Ne(()=>Fe.import("./LimitscolumnWidget-BfY4su5U-a79b69e3dd34d14c2d40.js"),void 0),"./LinegraphWidget.vue":()=>Ne(()=>Fe.import("./LinegraphWidget-y-Qy9P0R-6f9e7bcf28671c75f87c.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Ne(()=>Fe.import("./MatrixbycolumnsWidget-BTBColrs-eb1edc42399c66dfd587.js"),void 0),"./ProgressbarWidget.vue":()=>Ne(()=>Fe.import("./ProgressbarWidget-DpA_-vy9-578d146b82873aa2d27a.js"),void 0),"./RadiobuttonWidget.vue":()=>Ne(()=>Fe.import("./RadiobuttonWidget-BO8zpgwW-bbdf6ead5d796ada3280.js"),void 0),"./RadiogroupWidget.vue":()=>Ne(()=>Fe.import("./RadiogroupWidget-Oy7V4S-V-cea900971c019aa7144b.js"),void 0),"./RangebarWidget.vue":()=>Ne(()=>Fe.import("./RangebarWidget-DHS7S3vI-bf731e4254c49fd394ac.js"),void 0),"./RollupWidget.vue":()=>Ne(()=>Fe.import("./RollupWidget-CTk9Kjwr-11bbd5c31947eeefb8fb.js"),void 0),"./ScrollwindowWidget.vue":()=>Ne(()=>Fe.import("./ScrollwindowWidget-DD0TOW6s-4f41dc900bd855d2f59e.js"),void 0),"./SignalWidget.vue":()=>Ne(()=>Fe.import("./SignalWidget-CC33KMTW-24982614f04050c4644f.js"),void 0),"./SpacerWidget.vue":()=>Ne(()=>Fe.import("./SpacerWidget-BnJe_Hq6-36724e406716eafbb949.js"),void 0),"./SparklineWidget.vue":()=>Ne(()=>Fe.import("./SparklineWidget-DMvMQCPm-cad11960128f27cff475.js"),void 0),"./TabbookWidget.vue":()=>Ne(()=>Fe.import("./TabbookWidget-B3w0JtWe-75677686d23a47a8c01b.js"),void 0),"./TextboxWidget.vue":()=>Ne(()=>Fe.import("./TextboxWidget-D2f0-eol-052d034e7a0a2601f151.js"),void 0),"./TextfieldWidget.vue":()=>Ne(()=>Fe.import("./TextfieldWidget-DXSdgqVP-4272cdce9ee740fb33b4.js"),void 0),"./TimeWidget.vue":()=>Ne(()=>Fe.import("./TimeWidget-DvrRaEMz-9d5bbd6cafc9fe271080.js"),void 0),"./TitleWidget.vue":()=>Ne(()=>Fe.import("./TitleWidget-DqViFQl--5f19c46f4334ae583d21.js"),void 0),"./ValueWidget.vue":()=>Ne(()=>Fe.import("./ValueWidget-KLYY8L8U-84e87d5eeff67ae24e4e.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Ne(()=>Fe.import("./ValuelimitsbarWidget-SR8XNZFB-bcd62458733e7b10c2b6.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Ne(()=>Fe.import("./ValuelimitscolumnWidget-xYZSp6YZ-725bf57a4a2af14363ec.js"),void 0),"./ValuerangebarWidget.vue":()=>Ne(()=>Fe.import("./ValuerangebarWidget-B6M02a9d-f4b6cdaa152908947b07.js"),void 0),"./VerticalWidget.vue":()=>Ne(()=>Fe.import("./VerticalWidget-z6xUM-ql-38ddd70df71f79fc3160.js"),void 0),"./VerticalboxWidget.vue":()=>Ne(()=>Fe.import("./VerticalboxWidget-3a9cVsW--d44abe38176140c1cf9d.js"),void 0)}),hA=Object.entries(uA).reduce((t,[e,n])=>{e=e.split("/").pop();const r=QC(cA(e.replace(/\.\w+$/,"")));return{...t,[r]:cf(n)}},{}),DF=Wr("B",{components:hA}),dA={data:{configKey:""},methods:{buildLanguageMode(t,e){let n=Xn.require("ace/lib/oop"),r=Object.getOwnPropertyNames(wm.prototype).filter(p=>p!=="constructor").filter(p=>p!=="exec").concat(["check","check_raw","check_formatted","check_with_units","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"]),d=new RegExp(`(\\b${r.join("\\b|\\b")}\\b)`),h=function(){t.call(this);for(let p in this.$rules)this.$rules[p].unshift({regex:d,token:"support.function"})};n.inherits(h,t);let f=Xn.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,w=Xn.require("ace/mode/behaviour/cstyle").CstyleBehaviour;return[n,function(){this.HighlightRules=h,this.$outdent=new f,this.$behaviour=new w,this.foldingRules=new e,this.indentKeywords=this.foldingRules.indentKeywords}]},buildRubyMode(){const[t,e]=this.buildLanguageMode(Xn.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,Xn.require("ace/mode/folding/ruby").FoldMode);let n=Xn.require("ace/mode/ruby").Mode;return t.inherits(e,n),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildPythonMode(){const[t,e]=this.buildLanguageMode(Xn.require("ace/mode/python_highlight_rules").PythonHighlightRules,Xn.require("ace/mode/folding/pythonic").FoldMode);let n=Xn.require("ace/mode/python").Mode;return t.inherits(e,n),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildJsonMode(){const[t,e]=this.buildLanguageMode(Xn.require("ace/mode/json_highlight_rules").JsonHighlightRules,Xn.require("ace/mode/folding/ruby").FoldMode);let n=Xn.require("ace/mode/json").Mode;return t.inherits(e,n),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildMarkdownMode(){const[t,e]=this.buildLanguageMode(Xn.require("ace/mode/markdown_highlight_rules").MarkdownHighlightRules,Xn.require("ace/mode/folding/markdown").FoldMode);let n=Xn.require("ace/mode/markdown").Mode;return t.inherits(e,n),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e}}},pA={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,filename:{type:String,required:!1}},mixins:[dA],data(){return{editor:null,mode:null}},mounted(){this.editor=ace.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");let t=null;switch(this.filename?this.filename.split(".").pop():"txt"){case"json":const e=this.buildJsonMode();t=new e,this.editor.setOptions({useWorker:!1});case"py":case"pyi":const n=this.buildPythonMode();t=new n;break;case"md":const r=this.buildMarkdownMode();t=new r;break;default:const d=this.buildRubyMode();t=new d;break}this.editor.session.setMode(t),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},title:function(){return`${this.type}: ${this.name}`}},methods:{close:function(){this.show=!this.show},download:function(){const t=new Blob([this.editor.getValue()],{type:"text/plain"});let e=`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`;this.filename&&(e=this.filename);const n=document.createElement("a");n.href=URL.createObjectURL(t),n.setAttribute("download",e),n.click()}}},fA=["textContent"],gA={class:"mx-2"},mA={class:"editor",ref:"editor"};function yA(t,e,n,r,d,h){const f=ut("v-spacer"),w=ut("v-icon"),p=ut("v-tooltip"),g=ut("v-toolbar"),s=ut("v-card-text"),l=ut("v-btn"),a=ut("v-card-actions"),u=ut("v-card"),o=ut("v-dialog");return kt(),pn(o,{modelValue:h.show,"onUpdate:modelValue":e[1]||(e[1]=c=>h.show=c),width:"85vw"},{default:Le(()=>[De(u,null,{default:Le(()=>[De(g,{height:"24"},{default:Le(()=>[De(f),kn("span",{textContent:Jn(h.title)},null,8,fA),De(f),kn("div",gA,[De(p,{location:"top"},{activator:Le(({props:c})=>[kn("div",uf(hf(c)),[De(w,{"data-test":"downloadIcon",onClick:h.download},{default:Le(()=>e[2]||(e[2]=[Kt(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:Le(()=>[e[3]||(e[3]=kn("span",null," Download ",-1))]),_:1})])]),_:1}),De(s,null,{default:Le(()=>[kn("pre",mA,null,512)]),_:1}),De(a,{class:"pr-6 pb-4 pt-0"},{default:Le(()=>[De(f),De(l,{variant:"flat",onClick:e[0]||(e[0]=c=>h.show=!h.show)},{default:Le(()=>e[4]||(e[4]=[Kt(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const wA=_u(pA,[["render",yA],["__scopeId","data-v-b0c9f05d"]]);function Cy(t,e){return function(){return t.apply(e,arguments)}}const{toString:bA}=Object.prototype,{getPrototypeOf:yd}=Object,Yl=(t=>e=>{const n=bA.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yr=t=>(t=t.toLowerCase(),e=>Yl(e)===t),Kl=t=>e=>typeof e===t,{isArray:gs}=Array,la=Kl("undefined");function vA(t){return t!==null&&!la(t)&&t.constructor!==null&&!la(t.constructor)&&Sr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ay=Yr("ArrayBuffer");function xA(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ay(t.buffer),e}const _A=Kl("string"),Sr=Kl("function"),Ty=Kl("number"),Ql=t=>t!==null&&typeof t=="object",kA=t=>t===!0||t===!1,Zl=t=>{if(Yl(t)!=="object")return!1;const e=yd(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},SA=Yr("Date"),$A=Yr("File"),CA=Yr("Blob"),AA=Yr("FileList"),TA=t=>Ql(t)&&Sr(t.pipe),MA=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Sr(t.append)&&((e=Yl(t))==="formdata"||e==="object"&&Sr(t.toString)&&t.toString()==="[object FormData]"))},EA=Yr("URLSearchParams"),[RA,LA,OA,DA]=["ReadableStream","Request","Response","Headers"].map(Yr),IA=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ca(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,d;if(typeof t!="object"&&(t=[t]),gs(t))for(r=0,d=t.length;r<d;r++)e.call(null,t[r],r,t);else{const h=n?Object.getOwnPropertyNames(t):Object.keys(t),f=h.length;let w;for(r=0;r<f;r++)w=h[r],e.call(null,t[w],w,t)}}function My(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,d;for(;r-- >0;)if(d=n[r],e===d.toLowerCase())return d;return null}const To=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ey=t=>!la(t)&&t!==To;function wd(){const{caseless:t}=Ey(this)&&this||{},e={},n=(r,d)=>{const h=t&&My(e,d)||d;Zl(e[h])&&Zl(r)?e[h]=wd(e[h],r):Zl(r)?e[h]=wd({},r):gs(r)?e[h]=r.slice():e[h]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&ca(arguments[r],n);return e}const NA=(t,e,n,{allOwnKeys:r}={})=>(ca(e,(d,h)=>{n&&Sr(d)?t[h]=Cy(d,n):t[h]=d},{allOwnKeys:r}),t),FA=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),PA=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},BA=(t,e,n,r)=>{let d,h,f;const w={};if(e=e||{},t==null)return e;do{for(d=Object.getOwnPropertyNames(t),h=d.length;h-- >0;)f=d[h],(!r||r(f,t,e))&&!w[f]&&(e[f]=t[f],w[f]=!0);t=n!==!1&&yd(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},jA=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},HA=t=>{if(!t)return null;if(gs(t))return t;let e=t.length;if(!Ty(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},zA=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&yd(Uint8Array)),WA=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const d=r.value;e.call(t,d[0],d[1])}},UA=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},qA=Yr("HTMLFormElement"),VA=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),Ry=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),GA=Yr("RegExp"),Ly=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ca(n,(d,h)=>{let f;(f=e(d,h,t))!==!1&&(r[h]=f||d)}),Object.defineProperties(t,r)},YA=t=>{Ly(t,(e,n)=>{if(Sr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Sr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},KA=(t,e)=>{const n={},r=d=>{d.forEach(h=>{n[h]=!0})};return gs(t)?r(t):r(String(t).split(e)),n},QA=()=>{},ZA=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,bd="abcdefghijklmnopqrstuvwxyz",Oy="0123456789",Dy={DIGIT:Oy,ALPHA:bd,ALPHA_DIGIT:bd+bd.toUpperCase()+Oy},JA=(t=16,e=Dy.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function XA(t){return!!(t&&Sr(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const eT=t=>{const e=new Array(10),n=(r,d)=>{if(Ql(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const h=gs(r)?[]:{};return ca(r,(f,w)=>{const p=n(f,d+1);!la(p)&&(h[w]=p)}),e[d]=void 0,h}}return r};return n(t,0)},tT=Yr("AsyncFunction"),nT=t=>t&&(Ql(t)||Sr(t))&&Sr(t.then)&&Sr(t.catch),Iy=((t,e)=>t?setImmediate:e?((n,r)=>(To.addEventListener("message",({source:d,data:h})=>{d===To&&h===n&&r.length&&r.shift()()},!1),d=>{r.push(d),To.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Sr(To.postMessage)),rT=typeof queueMicrotask<"u"?queueMicrotask.bind(To):typeof process<"u"&&process.nextTick||Iy,de={isArray:gs,isArrayBuffer:Ay,isBuffer:vA,isFormData:MA,isArrayBufferView:xA,isString:_A,isNumber:Ty,isBoolean:kA,isObject:Ql,isPlainObject:Zl,isReadableStream:RA,isRequest:LA,isResponse:OA,isHeaders:DA,isUndefined:la,isDate:SA,isFile:$A,isBlob:CA,isRegExp:GA,isFunction:Sr,isStream:TA,isURLSearchParams:EA,isTypedArray:zA,isFileList:AA,forEach:ca,merge:wd,extend:NA,trim:IA,stripBOM:FA,inherits:PA,toFlatObject:BA,kindOf:Yl,kindOfTest:Yr,endsWith:jA,toArray:HA,forEachEntry:WA,matchAll:UA,isHTMLForm:qA,hasOwnProperty:Ry,hasOwnProp:Ry,reduceDescriptors:Ly,freezeMethods:YA,toObjectSet:KA,toCamelCase:VA,noop:QA,toFiniteNumber:ZA,findKey:My,global:To,isContextDefined:Ey,ALPHABET:Dy,generateString:JA,isSpecCompliantForm:XA,toJSONObject:eT,isAsyncFn:tT,isThenable:nT,setImmediate:Iy,asap:rT};function rt(t,e,n,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}de.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const Ny=rt.prototype,Fy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Fy[t]={value:t}}),Object.defineProperties(rt,Fy),Object.defineProperty(Ny,"isAxiosError",{value:!0}),rt.from=(t,e,n,r,d,h)=>{const f=Object.create(Ny);return de.toFlatObject(t,f,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),rt.call(f,t.message,e,n,r,d),f.cause=t,f.name=t.name,h&&Object.assign(f,h),f};const iT=null;function vd(t){return de.isPlainObject(t)||de.isArray(t)}function Py(t){return de.endsWith(t,"[]")?t.slice(0,-2):t}function By(t,e,n){return t?t.concat(e).map(function(r,d){return r=Py(r),!n&&d?"["+r+"]":r}).join(n?".":""):e}function oT(t){return de.isArray(t)&&!t.some(vd)}const sT=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function Jl(t,e,n){if(!de.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,o){return!de.isUndefined(o[u])});const r=n.metaTokens,d=n.visitor||g,h=n.dots,f=n.indexes,w=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(e);if(!de.isFunction(d))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(de.isDate(u))return u.toISOString();if(!w&&de.isBlob(u))throw new rt("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(u)||de.isTypedArray(u)?w&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function g(u,o,c){let m=u;if(u&&!c&&typeof u=="object"){if(de.endsWith(o,"{}"))o=r?o:o.slice(0,-2),u=JSON.stringify(u);else if(de.isArray(u)&&oT(u)||(de.isFileList(u)||de.endsWith(o,"[]"))&&(m=de.toArray(u)))return o=Py(o),m.forEach(function(b,x){!(de.isUndefined(b)||b===null)&&e.append(f===!0?By([o],x,h):f===null?o:o+"[]",p(b))}),!1}return vd(u)?!0:(e.append(By(c,o,h),p(u)),!1)}const s=[],l=Object.assign(sT,{defaultVisitor:g,convertValue:p,isVisitable:vd});function a(u,o){if(!de.isUndefined(u)){if(s.indexOf(u)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(u),de.forEach(u,function(c,m){(!(de.isUndefined(c)||c===null)&&d.call(e,c,de.isString(m)?m.trim():m,o,l))===!0&&a(c,o?o.concat(m):[m])}),s.pop()}}if(!de.isObject(t))throw new TypeError("data must be an object");return a(t),e}function jy(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function xd(t,e){this._pairs=[],t&&Jl(t,this,e)}const Hy=xd.prototype;Hy.append=function(t,e){this._pairs.push([t,e])},Hy.toString=function(t){const e=t?function(n){return t.call(this,n,jy)}:jy;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function aT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zy(t,e,n){if(!e)return t;const r=n&&n.encode||aT;de.isFunction(n)&&(n={serialize:n});const d=n&&n.serialize;let h;if(d?h=d(e,n):h=de.isURLSearchParams(e)?e.toString():new xd(e,n).toString(r),h){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+h}return t}let Wy=class{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,function(n){n!==null&&e(n)})}};const Uy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lT=typeof URLSearchParams<"u"?URLSearchParams:xd,cT=typeof FormData<"u"?FormData:null,uT=typeof Blob<"u"?Blob:null,hT={isBrowser:!0,classes:{URLSearchParams:lT,FormData:cT,Blob:uT},protocols:["http","https","file","blob","url","data"]},_d=typeof window<"u"&&typeof document<"u",kd=typeof navigator=="object"&&navigator||void 0,dT=_d&&(!kd||["ReactNative","NativeScript","NS"].indexOf(kd.product)<0),pT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fT=_d&&window.location.href||"http://localhost",gT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_d,hasStandardBrowserEnv:dT,hasStandardBrowserWebWorkerEnv:pT,navigator:kd,origin:fT},Symbol.toStringTag,{value:"Module"})),Wn={...gT,...hT};function mT(t,e){return Jl(t,new Wn.classes.URLSearchParams,Object.assign({visitor:function(n,r,d,h){return Wn.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function yT(t){return de.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wT(t){const e={},n=Object.keys(t);let r;const d=n.length;let h;for(r=0;r<d;r++)h=n[r],e[h]=t[h];return e}function qy(t){function e(n,r,d,h){let f=n[h++];if(f==="__proto__")return!0;const w=Number.isFinite(+f),p=h>=n.length;return f=!f&&de.isArray(d)?d.length:f,p?(de.hasOwnProp(d,f)?d[f]=[d[f],r]:d[f]=r,!w):((!d[f]||!de.isObject(d[f]))&&(d[f]=[]),e(n,r,d[f],h)&&de.isArray(d[f])&&(d[f]=wT(d[f])),!w)}if(de.isFormData(t)&&de.isFunction(t.entries)){const n={};return de.forEachEntry(t,(r,d)=>{e(yT(r),d,n,0)}),n}return null}function bT(t,e,n){if(de.isString(t))try{return(e||JSON.parse)(t),de.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const ua={transitional:Uy,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,d=de.isObject(t);if(d&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return r?JSON.stringify(qy(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let h;if(d){if(n.indexOf("application/x-www-form-urlencoded")>-1)return mT(t,this.formSerializer).toString();if((h=de.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Jl(h?{"files[]":t}:t,f&&new f,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),bT(t)):t}],transformResponse:[function(t){const e=this.transitional||ua.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(n&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(h){if(d)throw h.name==="SyntaxError"?rt.from(h,rt.ERR_BAD_RESPONSE,this,null,this.response):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wn.classes.FormData,Blob:Wn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],t=>{ua.headers[t]={}});const vT=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xT=t=>{const e={};let n,r,d;return t&&t.split(`
1415
+ `).forEach(function(h){d=h.indexOf(":"),n=h.substring(0,d).trim().toLowerCase(),r=h.substring(d+1).trim(),!(!n||e[n]&&vT[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Vy=Symbol("internals");function ha(t){return t&&String(t).trim().toLowerCase()}function Xl(t){return t===!1||t==null?t:de.isArray(t)?t.map(Xl):String(t)}function _T(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const kT=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Sd(t,e,n,r,d){if(de.isFunction(r))return r.call(this,e,n);if(d&&(e=n),!!de.isString(e)){if(de.isString(r))return e.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(e)}}function ST(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function $T(t,e){const n=de.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(d,h,f){return this[r].call(this,e,d,h,f)},configurable:!0})})}class cr{constructor(e){e&&this.set(e)}set(e,n,r){const d=this;function h(w,p,g){const s=ha(p);if(!s)throw new Error("header name must be a non-empty string");const l=de.findKey(d,s);(!l||d[l]===void 0||g===!0||g===void 0&&d[l]!==!1)&&(d[l||p]=Xl(w))}const f=(w,p)=>de.forEach(w,(g,s)=>h(g,s,p));if(de.isPlainObject(e)||e instanceof this.constructor)f(e,n);else if(de.isString(e)&&(e=e.trim())&&!kT(e))f(xT(e),n);else if(de.isHeaders(e))for(const[w,p]of e.entries())h(p,w,r);else e!=null&&h(n,e,r);return this}get(e,n){if(e=ha(e),e){const r=de.findKey(this,e);if(r){const d=this[r];if(!n)return d;if(n===!0)return _T(d);if(de.isFunction(n))return n.call(this,d,r);if(de.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ha(e),e){const r=de.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Sd(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let d=!1;function h(f){if(f=ha(f),f){const w=de.findKey(r,f);w&&(!n||Sd(r,r[w],w,n))&&(delete r[w],d=!0)}}return de.isArray(e)?e.forEach(h):h(e),d}clear(e){const n=Object.keys(this);let r=n.length,d=!1;for(;r--;){const h=n[r];(!e||Sd(this,this[h],h,e,!0))&&(delete this[h],d=!0)}return d}normalize(e){const n=this,r={};return de.forEach(this,(d,h)=>{const f=de.findKey(r,h);if(f){n[f]=Xl(d),delete n[h];return}const w=e?ST(h):String(h).trim();w!==h&&delete n[h],n[w]=Xl(d),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return de.forEach(this,(r,d)=>{r!=null&&r!==!1&&(n[d]=e&&de.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
1416
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(d=>r.set(d)),r}static accessor(e){const n=(this[Vy]=this[Vy]={accessors:{}}).accessors,r=this.prototype;function d(h){const f=ha(h);n[f]||($T(r,h),n[f]=!0)}return de.isArray(e)?e.forEach(d):d(e),this}}cr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(cr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),de.freezeMethods(cr);function $d(t,e){const n=this||ua,r=e||n,d=cr.from(r.headers);let h=r.data;return de.forEach(t,function(f){h=f.call(n,h,d.normalize(),e?e.status:void 0)}),d.normalize(),h}function Gy(t){return!!(t&&t.__CANCEL__)}function ms(t,e,n){rt.call(this,t??"canceled",rt.ERR_CANCELED,e,n),this.name="CanceledError"}de.inherits(ms,rt,{__CANCEL__:!0});function Yy(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function CT(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function AT(t,e){t=t||10;const n=new Array(t),r=new Array(t);let d=0,h=0,f;return e=e!==void 0?e:1e3,function(w){const p=Date.now(),g=r[h];f||(f=p),n[d]=w,r[d]=p;let s=h,l=0;for(;s!==d;)l+=n[s++],s=s%t;if(d=(d+1)%t,d===h&&(h=(h+1)%t),p-f<e)return;const a=g&&p-g;return a?Math.round(l*1e3/a):void 0}}function TT(t,e){let n=0,r=1e3/e,d,h;const f=(w,p=Date.now())=>{n=p,d=null,h&&(clearTimeout(h),h=null),t.apply(null,w)};return[(...w)=>{const p=Date.now(),g=p-n;g>=r?f(w,p):(d=w,h||(h=setTimeout(()=>{h=null,f(d)},r-g)))},()=>d&&f(d)]}const ec=(t,e,n=3)=>{let r=0;const d=AT(50,250);return TT(h=>{const f=h.loaded,w=h.lengthComputable?h.total:void 0,p=f-r,g=d(p),s=f<=w;r=f;const l={loaded:f,total:w,progress:w?f/w:void 0,bytes:p,rate:g||void 0,estimated:g&&w&&s?(w-f)/g:void 0,event:h,lengthComputable:w!=null,[e?"download":"upload"]:!0};t(l)},n)},Ky=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Qy=t=>(...e)=>de.asap(()=>t(...e)),MT=Wn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Wn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,ET=Wn.hasStandardBrowserEnv?{write(t,e,n,r,d,h){const f=[t+"="+encodeURIComponent(e)];de.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),de.isString(r)&&f.push("path="+r),de.isString(d)&&f.push("domain="+d),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function RT(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function LT(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Zy(t,e){return t&&!RT(e)?LT(t,e):e}const Jy=t=>t instanceof cr?{...t}:t;function Mo(t,e){e=e||{};const n={};function r(g,s,l,a){return de.isPlainObject(g)&&de.isPlainObject(s)?de.merge.call({caseless:a},g,s):de.isPlainObject(s)?de.merge({},s):de.isArray(s)?s.slice():s}function d(g,s,l,a){if(de.isUndefined(s)){if(!de.isUndefined(g))return r(void 0,g,l,a)}else return r(g,s,l,a)}function h(g,s){if(!de.isUndefined(s))return r(void 0,s)}function f(g,s){if(de.isUndefined(s)){if(!de.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function w(g,s,l){if(l in e)return r(g,s);if(l in t)return r(void 0,g)}const p={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:w,headers:(g,s,l)=>d(Jy(g),Jy(s),l,!0)};return de.forEach(Object.keys(Object.assign({},t,e)),function(g){const s=p[g]||d,l=s(t[g],e[g],g);de.isUndefined(l)&&s!==w||(n[g]=l)}),n}const Xy=t=>{const e=Mo({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:h,headers:f,auth:w}=e;e.headers=f=cr.from(f),e.url=zy(Zy(e.baseURL,e.url),t.params,t.paramsSerializer),w&&f.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let p;if(de.isFormData(n)){if(Wn.hasStandardBrowserEnv||Wn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((p=f.getContentType())!==!1){const[g,...s]=p?p.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Wn.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(e)),r||r!==!1&&MT(e.url))){const g=d&&h&&ET.read(h);g&&f.set(d,g)}return e},OT=typeof XMLHttpRequest<"u",DT=OT&&function(t){return new Promise(function(e,n){const r=Xy(t);let d=r.data;const h=cr.from(r.headers).normalize();let{responseType:f,onUploadProgress:w,onDownloadProgress:p}=r,g,s,l,a,u;function o(){a&&a(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function m(){if(!c)return;const x=cr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),E={data:!f||f==="text"||f==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:x,config:t,request:c};Yy(function(A){e(A),o()},function(A){n(A),o()},E),c=null}"onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(n(new rt("Request aborted",rt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new rt("Network Error",rt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Uy;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),n(new rt(x,E.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,t,c)),c=null},d===void 0&&h.setContentType(null),"setRequestHeader"in c&&de.forEach(h.toJSON(),function(x,E){c.setRequestHeader(E,x)}),de.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),f&&f!=="json"&&(c.responseType=r.responseType),p&&([l,u]=ec(p,!0),c.addEventListener("progress",l)),w&&c.upload&&([s,a]=ec(w),c.upload.addEventListener("progress",s),c.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{c&&(n(!x||x.type?new ms(null,t,c):x),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const b=CT(r.url);if(b&&Wn.protocols.indexOf(b)===-1){n(new rt("Unsupported protocol "+b+":",rt.ERR_BAD_REQUEST,t));return}c.send(d||null)})},IT=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,d;const h=function(g){if(!d){d=!0,w();const s=g instanceof Error?g:this.reason;r.abort(s instanceof rt?s:new ms(s instanceof Error?s.message:s))}};let f=e&&setTimeout(()=>{f=null,h(new rt(`timeout ${e} of ms exceeded`,rt.ETIMEDOUT))},e);const w=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),t=null)};t.forEach(g=>g.addEventListener("abort",h));const{signal:p}=r;return p.unsubscribe=()=>de.asap(w),p}},NT=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,d;for(;r<n;)d=r+e,yield t.slice(r,d),r=d},FT=async function*(t,e){for await(const n of PT(t))yield*NT(n,e)},PT=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},ew=(t,e,n,r)=>{const d=FT(t,e);let h=0,f,w=p=>{f||(f=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:s}=await d.next();if(g){w(),p.close();return}let l=s.byteLength;if(n){let a=h+=l;n(a)}p.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(p){return w(p),d.return()}},{highWaterMark:2})},tc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",tw=tc&&typeof ReadableStream=="function",BT=tc&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),nw=(t,...e)=>{try{return!!t(...e)}catch{return!1}},jT=tw&&nw(()=>{let t=!1;const e=new Request(Wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),rw=64*1024,Cd=tw&&nw(()=>de.isReadableStream(new Response("").body)),nc={stream:Cd&&(t=>t.body)};tc&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!nc[e]&&(nc[e]=de.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new rt(`Response type '${e}' is not supported`,rt.ERR_NOT_SUPPORT,r)})})})(new Response);const HT=async t=>{if(t==null)return 0;if(de.isBlob(t))return t.size;if(de.isSpecCompliantForm(t))return(await new Request(Wn.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(de.isArrayBufferView(t)||de.isArrayBuffer(t))return t.byteLength;if(de.isURLSearchParams(t)&&(t=t+""),de.isString(t))return(await BT(t)).byteLength},zT=async(t,e)=>de.toFiniteNumber(t.getContentLength())??HT(e),WT=tc&&(async t=>{let{url:e,method:n,data:r,signal:d,cancelToken:h,timeout:f,onDownloadProgress:w,onUploadProgress:p,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=Xy(t);g=g?(g+"").toLowerCase():"text";let u=IT([d,h&&h.toAbortSignal()],f),o;const c=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(p&&jT&&n!=="get"&&n!=="head"&&(m=await zT(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),v;if(de.isFormData(r)&&(v=k.headers.get("content-type"))&&s.setContentType(v),k.body){const[T,R]=Ky(m,ec(Qy(p)));r=ew(k.body,rw,T,R)}}de.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:u,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=Cd&&(g==="stream"||g==="response");if(Cd&&(w||E&&c)){const k={};["status","statusText","headers"].forEach(O=>{k[O]=x[O]});const v=de.toFiniteNumber(x.headers.get("content-length")),[T,R]=w&&Ky(v,ec(Qy(w),!0))||[];x=new Response(ew(x.body,rw,T,()=>{R&&R(),c&&c()}),k)}g=g||"text";let A=await nc[de.findKey(nc,g)||"text"](x,t);return!E&&c&&c(),await new Promise((k,v)=>{Yy(k,v,{data:A,headers:cr.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:o})})}catch(b){throw c&&c(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,t,o),{cause:b.cause||b}):rt.from(b,b&&b.code,t,o)}}),Ad={http:iT,xhr:DT,fetch:WT};de.forEach(Ad,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const iw=t=>`- ${t}`,UT=t=>de.isFunction(t)||t===null||t===!1,ow={getAdapter:t=>{t=de.isArray(t)?t:[t];const{length:e}=t;let n,r;const d={};for(let h=0;h<e;h++){n=t[h];let f;if(r=n,!UT(n)&&(r=Ad[(f=String(n)).toLowerCase()],r===void 0))throw new rt(`Unknown adapter '${f}'`);if(r)break;d[f||"#"+h]=r}if(!r){const h=Object.entries(d).map(([w,p])=>`adapter ${w} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=e?h.length>1?`since :
1417
+ `+h.map(iw).join(`
1418
+ `):" "+iw(h[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:Ad};function Td(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ms(null,t)}function sw(t){return Td(t),t.headers=cr.from(t.headers),t.data=$d.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ow.getAdapter(t.adapter||ua.adapter)(t).then(function(e){return Td(t),e.data=$d.call(t,t.transformResponse,e),e.headers=cr.from(e.headers),e},function(e){return Gy(e)||(Td(t),e&&e.response&&(e.response.data=$d.call(t,t.transformResponse,e.response),e.response.headers=cr.from(e.response.headers))),Promise.reject(e)})}const aw="1.7.9",rc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{rc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const lw={};rc.transitional=function(t,e,n){function r(d,h){return"[Axios v"+aw+"] Transitional option '"+d+"'"+h+(n?". "+n:"")}return(d,h,f)=>{if(t===!1)throw new rt(r(h," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!lw[h]&&(lw[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(d,h,f):!0}},rc.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function qT(t,e,n){if(typeof t!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let d=r.length;for(;d-- >0;){const h=r[d],f=e[h];if(f){const w=t[h],p=w===void 0||f(w,h,t);if(p!==!0)throw new rt("option "+h+" must be "+p,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+h,rt.ERR_BAD_OPTION)}}const ic={assertOptions:qT,validators:rc},oi=ic.validators;let Eo=class{constructor(e){this.defaults=e,this.interceptors={request:new Wy,response:new Wy}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const h=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1419
+ `+h):r.stack=h}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Mo(this.defaults,n);const{transitional:r,paramsSerializer:d,headers:h}=n;r!==void 0&&ic.assertOptions(r,{silentJSONParsing:oi.transitional(oi.boolean),forcedJSONParsing:oi.transitional(oi.boolean),clarifyTimeoutError:oi.transitional(oi.boolean)},!1),d!=null&&(de.isFunction(d)?n.paramsSerializer={serialize:d}:ic.assertOptions(d,{encode:oi.function,serialize:oi.function},!0)),ic.assertOptions(n,{baseUrl:oi.spelling("baseURL"),withXsrfToken:oi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&de.merge(h.common,h[n.method]);h&&de.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),n.headers=cr.concat(f,h);const w=[];let p=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(n)===!1||(p=p&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!p){const o=[sw.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(n);l<a;)s=s.then(o[l++],o[l++]);return s}a=w.length;let u=n;for(l=0;l<a;){const o=w[l++],c=w[l++];try{u=o(u)}catch(m){c.call(this,m);break}}try{s=sw.call(this,u)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=Mo(this.defaults,e);const n=Zy(e.baseURL,e.url);return zy(n,e.params,e.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){Eo.prototype[t]=function(e,n){return this.request(Mo(n||{},{method:t,url:e,data:(n||{}).data}))}}),de.forEach(["post","put","patch"],function(t){function e(n){return function(r,d,h){return this.request(Mo(h||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}Eo.prototype[t]=e(),Eo.prototype[t+"Form"]=e(!0)});let VT=class s1{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(d){n=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](d);r._listeners=null}),this.promise.then=d=>{let h;const f=new Promise(w=>{r.subscribe(w),h=w}).then(d);return f.cancel=function(){r.unsubscribe(h)},f},e(function(d,h,f){r.reason||(r.reason=new ms(d,h,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new s1(function(n){e=n}),cancel:e}}};function GT(t){return function(e){return t.apply(null,e)}}function YT(t){return de.isObject(t)&&t.isAxiosError===!0}const Md={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Md).forEach(([t,e])=>{Md[e]=t});function cw(t){const e=new Eo(t),n=Cy(Eo.prototype.request,e);return de.extend(n,Eo.prototype,e,{allOwnKeys:!0}),de.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return cw(Mo(t,r))},n}const An=Wr("S",cw(ua));An.Axios=Eo,An.CanceledError=ms,An.CancelToken=VT,An.isCancel=Gy,An.VERSION=aw,An.toFormData=Jl,An.AxiosError=rt,An.Cancel=An.CanceledError,An.all=function(t){return Promise.all(t)},An.spread=GT,An.isAxiosError=YT,An.mergeConfig=Mo,An.AxiosHeaders=cr,An.formToJSON=t=>qy(de.isHTMLForm(t)?new FormData(t):t),An.getAdapter=ow.getAdapter,An.HttpStatusCode=Md,An.default=An;function KT(t,e,n){const r=Vt(t,void 0);return r.setTime(r.getTime()+e*fl),r}function uw(){return Object.assign({},Xo())}function QT(t,e){const n=()=>gn(void 0,NaN),r=eM(t);let d;if(r.date){const p=tM(r.date,2);d=nM(p.restDateString,p.year)}if(!d||isNaN(+d))return n();const h=+d;let f=0,w;if(r.time&&(f=rM(r.time),isNaN(f)))return n();if(r.timezone){if(w=iM(r.timezone),isNaN(w))return n()}else{const p=new Date(h+f),g=Vt(0,void 0);return g.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),g.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),g}return Vt(h+f+w,void 0)}const oc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ZT=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,JT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,XT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eM(t){const e={},n=t.split(oc.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],oc.timeZoneDelimiter.test(e.date)&&(e.date=t.split(oc.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const d=oc.timezone.exec(r);d?(e.time=r.replace(d[1],""),e.timezone=d[1]):e.time=r}return e}function tM(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const d=r[1]?parseInt(r[1]):null,h=r[2]?parseInt(r[2]):null;return{year:h===null?d:h*100,restDateString:t.slice((r[1]||r[2]).length)}}function nM(t,e){if(e===null)return new Date(NaN);const n=t.match(ZT);if(!n)return new Date(NaN);const r=!!n[4],d=da(n[1]),h=da(n[2])-1,f=da(n[3]),w=da(n[4]),p=da(n[5])-1;if(r)return cM(e,w,p)?oM(e,w,p):new Date(NaN);{const g=new Date(0);return!aM(e,h,f)||!lM(e,d)?new Date(NaN):(g.setUTCFullYear(e,h,Math.max(d,f)),g)}}function da(t){return t?parseInt(t):1}function rM(t){const e=t.match(JT);if(!e)return NaN;const n=Ed(e[1]),r=Ed(e[2]),d=Ed(e[3]);return uM(n,r,d)?n*ju+r*fl+d*1e3:NaN}function Ed(t){return t&&parseFloat(t.replace(",","."))||0}function iM(t){if(t==="Z")return 0;const e=t.match(XT);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),d=e[3]&&parseInt(e[3])||0;return hM(r,d)?n*(r*ju+d*fl):NaN}function oM(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const d=r.getUTCDay()||7,h=(e-1)*7+n+1-d;return r.setUTCDate(r.getUTCDate()+h),r}const sM=[31,null,31,30,31,30,31,31,30,31,30,31];function hw(t){return t%400===0||t%4===0&&t%100!==0}function aM(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(sM[e]||(hw(t)?29:28))}function lM(t,e){return e>=1&&e<=(hw(t)?366:365)}function cM(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function uM(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function hM(t,e){return e>=0&&e<=59}function dM(t,e,n){return KT(t,-e)}function dw(t,e,n){const r=uw(),d=gM(t,n.timeZone,n.locale??r.locale);return"formatToParts"in d?pM(d,e):fM(d,e)}function pM(t,e){const n=t.formatToParts(e);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function fM(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function gM(t,e,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:e,timeZoneName:t})}function mM(t,e){const n=xM(e);return"formatToParts"in n?wM(n,t):bM(n,t)}const yM={year:0,month:1,day:2,hour:3,minute:4,second:5};function wM(t,e){try{const n=t.formatToParts(e),r=[];for(let d=0;d<n.length;d++){const h=yM[n[d].type];h!==void 0&&(r[h]=parseInt(n[d].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function bM(t,e){const n=t.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Rd={},pw=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),vM=pw==="06/25/2014, 00:00:00"||pw==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function xM(t){return Rd[t]||(Rd[t]=vM?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Rd[t]}function fw(t,e,n,r,d,h,f){const w=new Date(0);return w.setUTCFullYear(t,e,n),w.setUTCHours(r,d,h,f),w}const gw=36e5,_M=6e4,Ld={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Od(t,e,n){if(!t)return 0;let r=Ld.timezoneZ.exec(t);if(r)return 0;let d,h;if(r=Ld.timezoneHH.exec(t),r)return d=parseInt(r[1],10),mw(d)?-(d*gw):NaN;if(r=Ld.timezoneHHMM.exec(t),r){d=parseInt(r[2],10);const f=parseInt(r[3],10);return mw(d,f)?(h=Math.abs(d)*gw+f*_M,r[1]==="+"?-h:h):NaN}if($M(t)){e=new Date(e||Date.now());const f=n?e:kM(e),w=Dd(f,t);return-(n?w:SM(e,w,t))}return NaN}function kM(t){return fw(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function Dd(t,e){const n=mM(t,e),r=fw(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let d=t.getTime();const h=d%1e3;return d-=h>=0?h:1e3+h,r-d}function SM(t,e,n){let r=t.getTime()-e;const d=Dd(new Date(r),n);if(e===d)return e;r-=d-e;const h=Dd(new Date(r),n);return d===h?d:Math.max(d,h)}function mw(t,e){return-23<=t&&t<=23&&(e==null||0<=e&&e<=59)}const yw={};function $M(t){if(yw[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),yw[t]=!0,!0}catch{return!1}}const CM=60*1e3,AM={X:function(t,e,n){const r=Id(n.timeZone,t);if(r===0)return"Z";switch(e){case"X":return ww(r);case"XXXX":case"XX":return ys(r);case"XXXXX":case"XXX":default:return ys(r,":")}},x:function(t,e,n){const r=Id(n.timeZone,t);switch(e){case"x":return ww(r);case"xxxx":case"xx":return ys(r);case"xxxxx":case"xxx":default:return ys(r,":")}},O:function(t,e,n){const r=Id(n.timeZone,t);switch(e){case"O":case"OO":case"OOO":return"GMT"+TM(r,":");case"OOOO":default:return"GMT"+ys(r,":")}},z:function(t,e,n){switch(e){case"z":case"zz":case"zzz":return dw("short",t,n);case"zzzz":default:return dw("long",t,n)}}};function Id(t,e){const n=t?Od(t,e,!0)/CM:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+t);return n}function sc(t,e){const n=t<0?"-":"";let r=Math.abs(t).toString();for(;r.length<e;)r="0"+r;return n+r}function ys(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),d=sc(Math.floor(r/60),2),h=sc(Math.floor(r%60),2);return n+d+e+h}function ww(t,e){return t%60===0?(t>0?"-":"+")+sc(Math.abs(t)/60,2):ys(t,e)}function TM(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),d=Math.floor(r/60),h=r%60;return h===0?n+String(d):n+String(d)+e+sc(h,2)}function bw(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+t-+e}const MM=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Nd=36e5,vw=6e4,EM=2,er={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:MM};function xw(t,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);const n=e.additionalDigits==null?EM:Number(e.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(Object.prototype.toString.call(t)!=="[object String]")return new Date(NaN);const r=RM(t),{year:d,restDateString:h}=LM(r.date,n),f=OM(h,d);if(f===null||isNaN(f.getTime()))return new Date(NaN);if(f){const w=f.getTime();let p=0,g;if(r.time&&(p=DM(r.time),p===null||isNaN(p)))return new Date(NaN);if(r.timeZone||e.timeZone){if(g=Od(r.timeZone||e.timeZone,new Date(w+p)),isNaN(g))return new Date(NaN)}else g=bw(new Date(w+p)),g=bw(new Date(w+p+g));return new Date(w+p+g)}else return new Date(NaN)}function RM(t){const e={};let n=er.dateTimePattern.exec(t),r;if(n?(e.date=n[1],r=n[3]):(n=er.datePattern.exec(t),n?(e.date=n[1],r=n[2]):(e.date=null,r=t)),r){const d=er.timeZone.exec(r);d?(e.time=r.replace(d[1],""),e.timeZone=d[1].trim()):e.time=r}return e}function LM(t,e){if(t){const n=er.YYY[e],r=er.YYYYY[e];let d=er.YYYY.exec(t)||r.exec(t);if(d){const h=d[1];return{year:parseInt(h,10),restDateString:t.slice(h.length)}}if(d=er.YY.exec(t)||n.exec(t),d){const h=d[1];return{year:parseInt(h,10)*100,restDateString:t.slice(h.length)}}}return{year:null}}function OM(t,e){if(e===null)return null;let n,r,d;if(!t||!t.length)return n=new Date(0),n.setUTCFullYear(e),n;let h=er.MM.exec(t);if(h)return n=new Date(0),r=parseInt(h[1],10)-1,Sw(e,r)?(n.setUTCFullYear(e,r),n):new Date(NaN);if(h=er.DDD.exec(t),h){n=new Date(0);const f=parseInt(h[1],10);return FM(e,f)?(n.setUTCFullYear(e,0,f),n):new Date(NaN)}if(h=er.MMDD.exec(t),h){n=new Date(0),r=parseInt(h[1],10)-1;const f=parseInt(h[2],10);return Sw(e,r,f)?(n.setUTCFullYear(e,r,f),n):new Date(NaN)}if(h=er.Www.exec(t),h)return d=parseInt(h[1],10)-1,$w(d)?_w(e,d):new Date(NaN);if(h=er.WwwD.exec(t),h){d=parseInt(h[1],10)-1;const f=parseInt(h[2],10)-1;return $w(d,f)?_w(e,d,f):new Date(NaN)}return null}function DM(t){let e,n,r=er.HH.exec(t);if(r)return e=parseFloat(r[1].replace(",",".")),Fd(e)?e%24*Nd:NaN;if(r=er.HHMM.exec(t),r)return e=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Fd(e,n)?e%24*Nd+n*vw:NaN;if(r=er.HHMMSS.exec(t),r){e=parseInt(r[1],10),n=parseInt(r[2],10);const d=parseFloat(r[3].replace(",","."));return Fd(e,n,d)?e%24*Nd+n*vw+d*1e3:NaN}return null}function _w(t,e,n){e=e||0,n=n||0;const r=new Date(0);r.setUTCFullYear(t,0,4);const d=r.getUTCDay()||7,h=e*7+n+1-d;return r.setUTCDate(r.getUTCDate()+h),r}const IM=[31,28,31,30,31,30,31,31,30,31,30,31],NM=[31,29,31,30,31,30,31,31,30,31,30,31];function kw(t){return t%400===0||t%4===0&&t%100!==0}function Sw(t,e,n){if(e<0||e>11)return!1;if(n!=null){if(n<1)return!1;const r=kw(t);if(r&&n>NM[e]||!r&&n>IM[e])return!1}return!0}function FM(t,e){if(e<1)return!1;const n=kw(t);return!(n&&e>366||!n&&e>365)}function $w(t,e){return!(t<0||t>52||e!=null&&(e<0||e>6))}function Fd(t,e,n){return!(t<0||t>=25||e!=null&&(e<0||e>=60)||n!=null&&(n<0||n>=60))}const PM=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function BM(t,e,n={}){e=String(e);const r=e.match(PM);if(r){const d=xw(n.originalDate||t,n);e=r.reduce(function(h,f){if(f[0]==="'")return h;const w=h.indexOf(f),p=h[w-1]==="'",g=h.replace(f,"'"+AM[f[0]](d,f,n)+"'");return p?g.substring(0,w-1)+g.substring(w+1):g},e)}return wo(t,e,n)}function jM(t,e,n){t=xw(t,n);const r=Od(e,t,!0),d=new Date(t.getTime()-r),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}function Pd(t,e,n,r){return r={...r,timeZone:e,originalDate:t},BM(jM(t,e,{timeZone:r.timeZone}),n,r)}const Bd="yyyy-MM-dd",Cw="HH:mm:ss.SSS",HM="HH:mm:ss",ac=`${Bd} ${Cw}`,IF=Wr("P",{methods:{parseDateTime(t,e){return t.includes(" ")&&(t=t.replace(" ","T")),e&&e==="UTC"&&(t+="Z"),Date.parse(t)},formatUtcToLocal(t,e){return wo(!e||e==="local"?dM(t,t.getTimezoneOffset()):t,ac)},formatDateTime(t,e){return!e||e==="local"?wo(t,ac):Pd(t,e,ac)},formatDate:function(t,e){return!e||e==="local"?wo(t,Bd):Pd(t,this.timeZone,Bd)},formatTime:function(t,e,n=Cw){return!e||e==="local"?wo(t,n):Pd(t,this.timeZone,n)},formatTimeHMS:function(t,e){return this.formatTime(t,e,HM)},formatTimestamp(t,e){return this.formatDateTime(QT(t),e)},formatSeconds(t,e){return this.formatDateTime(new Date(t*1e3),e)},formatNanoseconds(t,e){return this.formatDateTime(new Date(parseInt(t)/1e6),e)}}});var zM=Object.defineProperty,WM=(t,e,n)=>e in t?zM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ee=(t,e,n)=>WM(t,typeof e!="symbol"?e+"":e,n);function jd(t,e,n){const r=Vt(t,n==null?void 0:n.in);return isNaN(e)?gn((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function UM(t,e){const n=Vt(t,void 0).getDay();return n===0?7:n}function qM(t,e){const n=VM(e)?new e(0):gn(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function VM(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const GM=10;class Aw{constructor(){Ee(this,"subPriority",0)}validate(e,n){return!0}}class YM extends Aw{constructor(e,n,r,d,h){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=d,h&&(this.subPriority=h)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class KM extends Aw{constructor(e,n){super(),Ee(this,"priority",GM),Ee(this,"subPriority",-1),this.context=e||(r=>gn(n,r))}set(e,n){return n.timestampIsSet?e:gn(e,qM(e,this.context))}}class Ct{run(e,n,r,d){const h=this.parse(e,n,r,d);return h?{setter:new YM(h.value,this.validate,this.set,this.priority,this.subPriority),rest:h.rest}:null}validate(e,n,r){return!0}}class QM extends Ct{constructor(){super(...arguments),Ee(this,"priority",140),Ee(this,"incompatibleTokens",["R","u","t","T"])}parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}const ln={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},si={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function cn(t,e){return t&&{value:e(t.value),rest:t.rest}}function Zt(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ai(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,d=n[2]?parseInt(n[2],10):0,h=n[3]?parseInt(n[3],10):0,f=n[5]?parseInt(n[5],10):0;return{value:r*(d*ju+h*fl+f*Px),rest:e.slice(n[0].length)}}function Tw(t){return Zt(ln.anyDigitsSigned,t)}function nn(t,e){switch(t){case 1:return Zt(ln.singleDigit,e);case 2:return Zt(ln.twoDigits,e);case 3:return Zt(ln.threeDigits,e);case 4:return Zt(ln.fourDigits,e);default:return Zt(new RegExp("^\\d{1,"+t+"}"),e)}}function Mw(t,e){switch(t){case 1:return Zt(ln.singleDigitSigned,e);case 2:return Zt(ln.twoDigitsSigned,e);case 3:return Zt(ln.threeDigitsSigned,e);case 4:return Zt(ln.fourDigitsSigned,e);default:return Zt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Hd(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ew(t,e){const n=e>0,r=n?e:1-e;let d;if(r<=50)d=t||100;else{const h=r+50,f=Math.trunc(h/100)*100,w=t>=h%100;d=t+f-(w?100:0)}return n?d:1-d}function Rw(t){return t%400===0||t%4===0&&t%100!==0}class ZM extends Ct{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,n,r){const d=h=>({year:h,isTwoDigitYear:n==="yy"});switch(n){case"y":return cn(nn(4,e),d);case"yo":return cn(r.ordinalNumber(e,{unit:"year"}),d);default:return cn(nn(n.length,e),d)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const d=e.getFullYear();if(r.isTwoDigitYear){const f=Ew(r.year,d);return e.setFullYear(f,0,1),e.setHours(0,0,0,0),e}const h=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(h,0,1),e.setHours(0,0,0,0),e}}class JM extends Ct{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,n,r){const d=h=>({year:h,isTwoDigitYear:n==="YY"});switch(n){case"Y":return cn(nn(4,e),d);case"Yo":return cn(r.ordinalNumber(e,{unit:"year"}),d);default:return cn(nn(n.length,e),d)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,d){const h=zu(e,d);if(r.isTwoDigitYear){const w=Ew(r.year,h);return e.setFullYear(w,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),ji(e,d)}const f=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(f,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),ji(e,d)}}class XM extends Ct{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,n){return Mw(n==="R"?4:n.length,e)}set(e,n,r){const d=gn(e,0);return d.setFullYear(r,0,4),d.setHours(0,0,0,0),es(d)}}class eE extends Ct{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,n){return Mw(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}class tE extends Ct{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,r){switch(n){case"Q":case"QQ":return nn(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}}class nE extends Ct{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,n,r){switch(n){case"q":case"qq":return nn(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}}class rE extends Ct{constructor(){super(...arguments),Ee(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ee(this,"priority",110)}parse(e,n,r){const d=h=>h-1;switch(n){case"M":return cn(Zt(ln.month,e),d);case"MM":return cn(nn(2,e),d);case"Mo":return cn(r.ordinalNumber(e,{unit:"month"}),d);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class iE extends Ct{constructor(){super(...arguments),Ee(this,"priority",110),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,n,r){const d=h=>h-1;switch(n){case"L":return cn(Zt(ln.month,e),d);case"LL":return cn(nn(2,e),d);case"Lo":return cn(r.ordinalNumber(e,{unit:"month"}),d);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}function oE(t,e,n){const r=Vt(t,n==null?void 0:n.in),d=ag(r,n)-e;return r.setDate(r.getDate()-d*7),Vt(r,n==null?void 0:n.in)}class sE extends Ct{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,n,r){switch(n){case"w":return Zt(ln.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return nn(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,d){return ji(oE(e,r,d),d)}}function aE(t,e,n){const r=Vt(t,void 0),d=sg(r)-e;return r.setDate(r.getDate()-d*7),r}class lE extends Ct{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,n,r){switch(n){case"I":return Zt(ln.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return nn(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return es(aE(e,r))}}const cE=[31,28,31,30,31,30,31,31,30,31,30,31],uE=[31,29,31,30,31,30,31,31,30,31,30,31];class hE extends Ct{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subPriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,n,r){switch(n){case"d":return Zt(ln.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return nn(n.length,e)}}validate(e,n){const r=e.getFullYear(),d=Rw(r),h=e.getMonth();return d?n>=1&&n<=uE[h]:n>=1&&n<=cE[h]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}}class dE extends Ct{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subpriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,n,r){switch(n){case"D":case"DD":return Zt(ln.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return nn(n.length,e)}}validate(e,n){const r=e.getFullYear();return Rw(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}}function zd(t,e,n){var r,d,h,f;const w=Xo(),p=(n==null?void 0:n.weekStartsOn)??((d=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:d.weekStartsOn)??w.weekStartsOn??((f=(h=w.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,g=Vt(t,n==null?void 0:n.in),s=g.getDay(),l=(e%7+7)%7,a=7-p,u=e<0||e>6?e-(s+a)%7:(l+a)%7-(s+a)%7;return jd(g,u,n)}class pE extends Ct{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,d){return e=zd(e,r,d),e.setHours(0,0,0,0),e}}class fE extends Ct{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,n,r,d){const h=f=>{const w=Math.floor((f-1)/7)*7;return(f+d.weekStartsOn+6)%7+w};switch(n){case"e":case"ee":return cn(nn(n.length,e),h);case"eo":return cn(r.ordinalNumber(e,{unit:"day"}),h);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,d){return e=zd(e,r,d),e.setHours(0,0,0,0),e}}class gE extends Ct{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,n,r,d){const h=f=>{const w=Math.floor((f-1)/7)*7;return(f+d.weekStartsOn+6)%7+w};switch(n){case"c":case"cc":return cn(nn(n.length,e),h);case"co":return cn(r.ordinalNumber(e,{unit:"day"}),h);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,d){return e=zd(e,r,d),e.setHours(0,0,0,0),e}}function mE(t,e,n){const r=Vt(t,void 0),d=UM(r),h=e-d;return jd(r,h,n)}class yE extends Ct{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,n,r){const d=h=>h===0?7:h;switch(n){case"i":case"ii":return nn(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return cn(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiii":return cn(r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiiii":return cn(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiii":default:return cn(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=mE(e,r),e.setHours(0,0,0,0),e}}class wE extends Ct{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Hd(r),0,0,0),e}}class bE extends Ct{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Hd(r),0,0,0),e}}class vE extends Ct{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","b","t","T"])}parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Hd(r),0,0,0),e}}class xE extends Ct{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,n,r){switch(n){case"h":return Zt(ln.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return nn(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const d=e.getHours()>=12;return d&&r<12?e.setHours(r+12,0,0,0):!d&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}}class _E extends Ct{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,n,r){switch(n){case"H":return Zt(ln.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return nn(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}}class kE extends Ct{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,n,r){switch(n){case"K":return Zt(ln.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return nn(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}}class SE extends Ct{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,n,r){switch(n){case"k":return Zt(ln.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return nn(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const d=r<=24?r%24:r;return e.setHours(d,0,0,0),e}}class $E extends Ct{constructor(){super(...arguments),Ee(this,"priority",60),Ee(this,"incompatibleTokens",["t","T"])}parse(e,n,r){switch(n){case"m":return Zt(ln.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return nn(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}}class CE extends Ct{constructor(){super(...arguments),Ee(this,"priority",50),Ee(this,"incompatibleTokens",["t","T"])}parse(e,n,r){switch(n){case"s":return Zt(ln.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return nn(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}}class AE extends Ct{constructor(){super(...arguments),Ee(this,"priority",30),Ee(this,"incompatibleTokens",["t","T"])}parse(e,n){const r=d=>Math.trunc(d*Math.pow(10,-n.length+3));return cn(nn(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}}class TE extends Ct{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","x"])}parse(e,n){switch(n){case"X":return ai(si.basicOptionalMinutes,e);case"XX":return ai(si.basic,e);case"XXXX":return ai(si.basicOptionalSeconds,e);case"XXXXX":return ai(si.extendedOptionalSeconds,e);case"XXX":default:return ai(si.extended,e)}}set(e,n,r){return n.timestampIsSet?e:gn(e,e.getTime()-gl(e)-r)}}class ME extends Ct{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","X"])}parse(e,n){switch(n){case"x":return ai(si.basicOptionalMinutes,e);case"xx":return ai(si.basic,e);case"xxxx":return ai(si.basicOptionalSeconds,e);case"xxxxx":return ai(si.extendedOptionalSeconds,e);case"xxx":default:return ai(si.extended,e)}}set(e,n,r){return n.timestampIsSet?e:gn(e,e.getTime()-gl(e)-r)}}class EE extends Ct{constructor(){super(...arguments),Ee(this,"priority",40),Ee(this,"incompatibleTokens","*")}parse(e){return Tw(e)}set(e,n,r){return[gn(e,r*1e3),{timestampIsSet:!0}]}}class RE extends Ct{constructor(){super(...arguments),Ee(this,"priority",20),Ee(this,"incompatibleTokens","*")}parse(e){return Tw(e)}set(e,n,r){return[gn(e,r),{timestampIsSet:!0}]}}const LE={G:new QM,y:new ZM,Y:new JM,R:new XM,u:new eE,Q:new tE,q:new nE,M:new rE,L:new iE,w:new sE,I:new lE,d:new hE,D:new dE,E:new pE,e:new fE,c:new gE,i:new yE,a:new wE,b:new bE,B:new vE,h:new xE,H:new _E,K:new kE,k:new SE,m:new $E,s:new CE,S:new AE,X:new TE,x:new ME,t:new EE,T:new RE},OE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IE=/^'([^]*?)'?$/,NE=/''/g,FE=/\S/,PE=/[a-zA-Z]/;function BE(t,e,n,r){var d,h,f,w;const p=()=>gn(n,NaN),g=uw(),s=g.locale??og,l=g.firstWeekContainsDate??((h=(d=g.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,a=g.weekStartsOn??((w=(f=g.locale)==null?void 0:f.options)==null?void 0:w.weekStartsOn)??0;if(!e)return t?p():Vt(n,void 0);const u={firstWeekContainsDate:l,weekStartsOn:a,locale:s},o=[new KM(void 0,n)],c=e.match(DE).map(A=>{const k=A[0];if(k in Wu){const v=Wu[k];return v(A,s.formatLong)}return A}).join("").match(OE),m=[];for(let A of c){fg(A)&&Uu(A,e,t),pg(A)&&Uu(A,e,t);const k=A[0],v=LE[k];if(v){const{incompatibleTokens:T}=v;if(Array.isArray(T)){const O=m.find(M=>T.includes(M.token)||M.token===k);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${A}\` at the same time`)}else if(v.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);m.push({token:k,fullToken:A});const R=v.run(t,A,s.match,u);if(!R)return p();o.push(R.setter),t=R.rest}else{if(k.match(PE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=jE(A)),t.indexOf(A)===0)t=t.slice(A.length);else return p()}}if(t.length>0&&FE.test(t))return p();const b=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,v)=>v.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,v)=>v.subPriority-k.subPriority)).map(A=>A[0]);let x=Vt(n,void 0);if(isNaN(+x))return p();const E={};for(const A of b){if(!A.validate(x,u))return p();const k=A.set(x,E,u);Array.isArray(k)?(x=k[0],Object.assign(E,k[1])):x=k}return x}function jE(t){return t.match(IE)[1].replace(NE,"'")}const HE={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},zE={class:"app-title mr-2"};function WE(t,e,n,r,d,h){const f=ut("v-col"),w=ut("v-row"),p=ut("v-icon"),g=ut("v-btn"),s=ut("v-divider"),l=ut("v-list-item-title"),a=ut("v-list-item"),u=ut("v-list"),o=ut("v-menu"),c=ut("v-radio"),m=ut("v-list-item-action"),b=ut("v-radio-group"),x=ut("v-checkbox");return kt(),pn(df,{to:"#openc3-menu"},[De(w,{"no-gutters":""},{default:Le(()=>[De(f,{"align-self":"end"},{default:Le(()=>[kn("span",zE,Jn(n.title),1)]),_:1})]),_:1}),De(w,{dense:"",class:"flex-nowrap"},{default:Le(()=>[(kt(!0),sr(vi,null,Bi(n.menus,(E,A)=>(kt(),pn(o,{ref_for:!0,ref:"topmenu",key:A},{activator:Le(({props:k})=>[De(g,ku({ref_for:!0},k,{variant:"outlined",class:"mx-1 menu-button",text:E.label,"data-test":h.formatDT(`${n.title} ${E.label}`)}),{append:Le(()=>[De(p,{class:"menu-button-icon"},{default:Le(()=>e[0]||(e[0]=[Kt(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:Le(()=>[De(u,null,{default:Le(()=>[(kt(!0),sr(vi,null,Bi(E.items,(k,v)=>(kt(),sr(vi,null,[k.divider?(kt(),pn(s,{key:v+"-divider"})):k.subMenu&&k.subMenu.length>0?(kt(),sr("div",{key:v+"-submenu"},[(kt(),pn(o,{"open-on-hover":"",location:"right",key:v},{activator:Le(({props:T})=>[(kt(),pn(a,ku({ref_for:!0},T,{disabled:k.disabled,key:v}),Su({append:Le(()=>[De(p,null,{default:Le(()=>e[1]||(e[1]=[Kt(" mdi-chevron-right ")])),_:1})]),default:Le(()=>[!k.radio&&!k.checkbox?(kt(),pn(l,{key:0,style:$u("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:Le(()=>[Kt(Jn(k.label),1)]),_:2},1032,["style"])):ti("",!0)]),_:2},[k.icon?{name:"prepend",fn:Le(()=>[De(p,{disabled:k.disabled},{default:Le(()=>[Kt(Jn(k.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:Le(()=>[De(u,null,{default:Le(()=>[(kt(!0),sr(vi,null,Bi(k.subMenu,(T,R)=>(kt(),pn(a,{key:R,"prepend-icon":T.icon,onClick:O=>h.subMenuClick(T)},{default:Le(()=>[De(l,null,{default:Le(()=>[Kt(Jn(T.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):k.radioGroup?(kt(),pn(b,{"model-value":k.value,"onUpdate:modelValue":k.command,key:v+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:Le(()=>[(kt(!0),sr(vi,null,Bi(k.choices,(T,R)=>(kt(),pn(a,{key:R+"-choice"},{default:Le(()=>[De(m,{class:"list-action"},{default:Le(()=>[De(c,{color:"secondary",label:T.label,value:T.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(kt(),pn(a,{onClick:T=>k.command(k),disabled:k.disabled,"data-test":h.formatDT(`${n.title} ${E.label} ${k.label}`),key:v+"-list"},Su({default:Le(()=>[k.checkbox?(kt(),pn(m,{key:0,class:"list-action"},{default:Le(()=>[De(x,{modelValue:k.checked,"onUpdate:modelValue":T=>k.checked=T,label:k.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ti("",!0),!k.radio&&!k.checkbox?(kt(),pn(l,{key:1,style:$u("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:Le(()=>[Kt(Jn(k.label),1)]),_:2},1032,["style"])):ti("",!0)]),_:2},[k.icon?{name:"prepend",fn:Le(()=>[De(p,{icon:k.icon,disabled:k.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const UE=_u(HE,[["render",WE],["__scopeId","data-v-4d454b93"]]);function Lw(t,e){return function(){return t.apply(e,arguments)}}const{toString:qE}=Object.prototype,{getPrototypeOf:Wd}=Object,lc=(t=>e=>{const n=qE.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kr=t=>(t=t.toLowerCase(),e=>lc(e)===t),cc=t=>e=>typeof e===t,{isArray:ws}=Array,pa=cc("undefined");function VE(t){return t!==null&&!pa(t)&&t.constructor!==null&&!pa(t.constructor)&&$r(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ow=Kr("ArrayBuffer");function GE(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ow(t.buffer),e}const YE=cc("string"),$r=cc("function"),Dw=cc("number"),uc=t=>t!==null&&typeof t=="object",KE=t=>t===!0||t===!1,hc=t=>{if(lc(t)!=="object")return!1;const e=Wd(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},QE=Kr("Date"),ZE=Kr("File"),JE=Kr("Blob"),XE=Kr("FileList"),eR=t=>uc(t)&&$r(t.pipe),tR=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||$r(t.append)&&((e=lc(t))==="formdata"||e==="object"&&$r(t.toString)&&t.toString()==="[object FormData]"))},nR=Kr("URLSearchParams"),[rR,iR,oR,sR]=["ReadableStream","Request","Response","Headers"].map(Kr),aR=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fa(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,d;if(typeof t!="object"&&(t=[t]),ws(t))for(r=0,d=t.length;r<d;r++)e.call(null,t[r],r,t);else{const h=n?Object.getOwnPropertyNames(t):Object.keys(t),f=h.length;let w;for(r=0;r<f;r++)w=h[r],e.call(null,t[w],w,t)}}function Iw(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,d;for(;r-- >0;)if(d=n[r],e===d.toLowerCase())return d;return null}const Ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nw=t=>!pa(t)&&t!==Ro;function Ud(){const{caseless:t}=Nw(this)&&this||{},e={},n=(r,d)=>{const h=t&&Iw(e,d)||d;hc(e[h])&&hc(r)?e[h]=Ud(e[h],r):hc(r)?e[h]=Ud({},r):ws(r)?e[h]=r.slice():e[h]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&fa(arguments[r],n);return e}const lR=(t,e,n,{allOwnKeys:r}={})=>(fa(e,(d,h)=>{n&&$r(d)?t[h]=Lw(d,n):t[h]=d},{allOwnKeys:r}),t),cR=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),uR=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},hR=(t,e,n,r)=>{let d,h,f;const w={};if(e=e||{},t==null)return e;do{for(d=Object.getOwnPropertyNames(t),h=d.length;h-- >0;)f=d[h],(!r||r(f,t,e))&&!w[f]&&(e[f]=t[f],w[f]=!0);t=n!==!1&&Wd(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},dR=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},pR=t=>{if(!t)return null;if(ws(t))return t;let e=t.length;if(!Dw(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},fR=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Wd(Uint8Array)),gR=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let d;for(;(d=r.next())&&!d.done;){const h=d.value;e.call(t,h[0],h[1])}},mR=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},yR=Kr("HTMLFormElement"),wR=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,d){return r.toUpperCase()+d}),Fw=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),bR=Kr("RegExp"),Pw=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};fa(n,(d,h)=>{let f;(f=e(d,h,t))!==!1&&(r[h]=f||d)}),Object.defineProperties(t,r)},vR=t=>{Pw(t,(e,n)=>{if($r(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if($r(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xR=(t,e)=>{const n={},r=d=>{d.forEach(h=>{n[h]=!0})};return ws(t)?r(t):r(String(t).split(e)),n},_R=()=>{},kR=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,qd="abcdefghijklmnopqrstuvwxyz",Bw="0123456789",jw={DIGIT:Bw,ALPHA:qd,ALPHA_DIGIT:qd+qd.toUpperCase()+Bw},SR=(t=16,e=jw.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function $R(t){return!!(t&&$r(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const CR=t=>{const e=new Array(10),n=(r,d)=>{if(uc(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const h=ws(r)?[]:{};return fa(r,(f,w)=>{const p=n(f,d+1);!pa(p)&&(h[w]=p)}),e[d]=void 0,h}}return r};return n(t,0)},AR=Kr("AsyncFunction"),TR=t=>t&&(uc(t)||$r(t))&&$r(t.then)&&$r(t.catch),Hw=((t,e)=>t?setImmediate:e?((n,r)=>(Ro.addEventListener("message",({source:d,data:h})=>{d===Ro&&h===n&&r.length&&r.shift()()},!1),d=>{r.push(d),Ro.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$r(Ro.postMessage)),MR=typeof queueMicrotask<"u"?queueMicrotask.bind(Ro):typeof process<"u"&&process.nextTick||Hw,pe={isArray:ws,isArrayBuffer:Ow,isBuffer:VE,isFormData:tR,isArrayBufferView:GE,isString:YE,isNumber:Dw,isBoolean:KE,isObject:uc,isPlainObject:hc,isReadableStream:rR,isRequest:iR,isResponse:oR,isHeaders:sR,isUndefined:pa,isDate:QE,isFile:ZE,isBlob:JE,isRegExp:bR,isFunction:$r,isStream:eR,isURLSearchParams:nR,isTypedArray:fR,isFileList:XE,forEach:fa,merge:Ud,extend:lR,trim:aR,stripBOM:cR,inherits:uR,toFlatObject:hR,kindOf:lc,kindOfTest:Kr,endsWith:dR,toArray:pR,forEachEntry:gR,matchAll:mR,isHTMLForm:yR,hasOwnProperty:Fw,hasOwnProp:Fw,reduceDescriptors:Pw,freezeMethods:vR,toObjectSet:xR,toCamelCase:wR,noop:_R,toFiniteNumber:kR,findKey:Iw,global:Ro,isContextDefined:Nw,ALPHABET:jw,generateString:SR,isSpecCompliantForm:$R,toJSONObject:CR,isAsyncFn:AR,isThenable:TR,setImmediate:Hw,asap:MR};function it(t,e,n,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}pe.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const zw=it.prototype,Ww={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ww[t]={value:t}}),Object.defineProperties(it,Ww),Object.defineProperty(zw,"isAxiosError",{value:!0}),it.from=(t,e,n,r,d,h)=>{const f=Object.create(zw);return pe.toFlatObject(t,f,function(p){return p!==Error.prototype},w=>w!=="isAxiosError"),it.call(f,t.message,e,n,r,d),f.cause=t,f.name=t.name,h&&Object.assign(f,h),f};const ER=null;function Vd(t){return pe.isPlainObject(t)||pe.isArray(t)}function Uw(t){return pe.endsWith(t,"[]")?t.slice(0,-2):t}function qw(t,e,n){return t?t.concat(e).map(function(d,h){return d=Uw(d),!n&&h?"["+d+"]":d}).join(n?".":""):e}function RR(t){return pe.isArray(t)&&!t.some(Vd)}const LR=pe.toFlatObject(pe,{},null,function(e){return/^is[A-Z]/.test(e)});function dc(t,e,n){if(!pe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,m){return!pe.isUndefined(m[c])});const r=n.metaTokens,d=n.visitor||s,h=n.dots,f=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(e);if(!pe.isFunction(d))throw new TypeError("visitor must be a function");function g(o){if(o===null)return"";if(pe.isDate(o))return o.toISOString();if(!p&&pe.isBlob(o))throw new it("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(o)||pe.isTypedArray(o)?p&&typeof Blob=="function"?new Blob([o]):Buffer.from(o):o}function s(o,c,m){let b=o;if(o&&!m&&typeof o=="object"){if(pe.endsWith(c,"{}"))c=r?c:c.slice(0,-2),o=JSON.stringify(o);else if(pe.isArray(o)&&RR(o)||(pe.isFileList(o)||pe.endsWith(c,"[]"))&&(b=pe.toArray(o)))return c=Uw(c),b.forEach(function(E,A){!(pe.isUndefined(E)||E===null)&&e.append(f===!0?qw([c],A,h):f===null?c:c+"[]",g(E))}),!1}return Vd(o)?!0:(e.append(qw(m,c,h),g(o)),!1)}const l=[],a=Object.assign(LR,{defaultVisitor:s,convertValue:g,isVisitable:Vd});function u(o,c){if(!pe.isUndefined(o)){if(l.indexOf(o)!==-1)throw Error("Circular reference detected in "+c.join("."));l.push(o),pe.forEach(o,function(b,x){(!(pe.isUndefined(b)||b===null)&&d.call(e,b,pe.isString(x)?x.trim():x,c,a))===!0&&u(b,c?c.concat(x):[x])}),l.pop()}}if(!pe.isObject(t))throw new TypeError("data must be an object");return u(t),e}function Vw(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Gd(t,e){this._pairs=[],t&&dc(t,this,e)}const Gw=Gd.prototype;Gw.append=function(e,n){this._pairs.push([e,n])},Gw.toString=function(e){const n=e?function(r){return e.call(this,r,Vw)}:Vw;return this._pairs.map(function(d){return n(d[0])+"="+n(d[1])},"").join("&")};function OR(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yw(t,e,n){if(!e)return t;const r=n&&n.encode||OR;pe.isFunction(n)&&(n={serialize:n});const d=n&&n.serialize;let h;if(d?h=d(e,n):h=pe.isURLSearchParams(e)?e.toString():new Gd(e,n).toString(r),h){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+h}return t}class Kw{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Qw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Gd,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yd=typeof window<"u"&&typeof document<"u",Kd=typeof navigator=="object"&&navigator||void 0,IR=Yd&&(!Kd||["ReactNative","NativeScript","NS"].indexOf(Kd.product)<0),NR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",FR=Yd&&window.location.href||"http://localhost",Un={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yd,hasStandardBrowserEnv:IR,hasStandardBrowserWebWorkerEnv:NR,navigator:Kd,origin:FR},Symbol.toStringTag,{value:"Module"})),...DR};function PR(t,e){return dc(t,new Un.classes.URLSearchParams,Object.assign({visitor:function(n,r,d,h){return Un.isNode&&pe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function BR(t){return pe.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function jR(t){const e={},n=Object.keys(t);let r;const d=n.length;let h;for(r=0;r<d;r++)h=n[r],e[h]=t[h];return e}function Zw(t){function e(n,r,d,h){let f=n[h++];if(f==="__proto__")return!0;const w=Number.isFinite(+f),p=h>=n.length;return f=!f&&pe.isArray(d)?d.length:f,p?(pe.hasOwnProp(d,f)?d[f]=[d[f],r]:d[f]=r,!w):((!d[f]||!pe.isObject(d[f]))&&(d[f]=[]),e(n,r,d[f],h)&&pe.isArray(d[f])&&(d[f]=jR(d[f])),!w)}if(pe.isFormData(t)&&pe.isFunction(t.entries)){const n={};return pe.forEachEntry(t,(r,d)=>{e(BR(r),d,n,0)}),n}return null}function HR(t,e,n){if(pe.isString(t))try{return(e||JSON.parse)(t),pe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const ga={transitional:Qw,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",d=r.indexOf("application/json")>-1,h=pe.isObject(e);if(h&&pe.isHTMLForm(e)&&(e=new FormData(e)),pe.isFormData(e))return d?JSON.stringify(Zw(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e)||pe.isReadableStream(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let w;if(h){if(r.indexOf("application/x-www-form-urlencoded")>-1)return PR(e,this.formSerializer).toString();if((w=pe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return dc(w?{"files[]":e}:e,p&&new p,this.formSerializer)}}return h||d?(n.setContentType("application/json",!1),HR(e)):e}],transformResponse:[function(e){const n=this.transitional||ga.transitional,r=n&&n.forcedJSONParsing,d=this.responseType==="json";if(pe.isResponse(e)||pe.isReadableStream(e))return e;if(e&&pe.isString(e)&&(r&&!this.responseType||d)){const f=!(n&&n.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(w){if(f)throw w.name==="SyntaxError"?it.from(w,it.ERR_BAD_RESPONSE,this,null,this.response):w}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Un.classes.FormData,Blob:Un.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],t=>{ga.headers[t]={}});const zR=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),WR=t=>{const e={};let n,r,d;return t&&t.split(`
1420
+ `).forEach(function(f){d=f.indexOf(":"),n=f.substring(0,d).trim().toLowerCase(),r=f.substring(d+1).trim(),!(!n||e[n]&&zR[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Jw=Symbol("internals");function ma(t){return t&&String(t).trim().toLowerCase()}function pc(t){return t===!1||t==null?t:pe.isArray(t)?t.map(pc):String(t)}function UR(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const qR=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qd(t,e,n,r,d){if(pe.isFunction(r))return r.call(this,e,n);if(d&&(e=n),!!pe.isString(e)){if(pe.isString(r))return e.indexOf(r)!==-1;if(pe.isRegExp(r))return r.test(e)}}function VR(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function GR(t,e){const n=pe.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(d,h,f){return this[r].call(this,e,d,h,f)},configurable:!0})})}class ur{constructor(e){e&&this.set(e)}set(e,n,r){const d=this;function h(w,p,g){const s=ma(p);if(!s)throw new Error("header name must be a non-empty string");const l=pe.findKey(d,s);(!l||d[l]===void 0||g===!0||g===void 0&&d[l]!==!1)&&(d[l||p]=pc(w))}const f=(w,p)=>pe.forEach(w,(g,s)=>h(g,s,p));if(pe.isPlainObject(e)||e instanceof this.constructor)f(e,n);else if(pe.isString(e)&&(e=e.trim())&&!qR(e))f(WR(e),n);else if(pe.isHeaders(e))for(const[w,p]of e.entries())h(p,w,r);else e!=null&&h(n,e,r);return this}get(e,n){if(e=ma(e),e){const r=pe.findKey(this,e);if(r){const d=this[r];if(!n)return d;if(n===!0)return UR(d);if(pe.isFunction(n))return n.call(this,d,r);if(pe.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ma(e),e){const r=pe.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Qd(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let d=!1;function h(f){if(f=ma(f),f){const w=pe.findKey(r,f);w&&(!n||Qd(r,r[w],w,n))&&(delete r[w],d=!0)}}return pe.isArray(e)?e.forEach(h):h(e),d}clear(e){const n=Object.keys(this);let r=n.length,d=!1;for(;r--;){const h=n[r];(!e||Qd(this,this[h],h,e,!0))&&(delete this[h],d=!0)}return d}normalize(e){const n=this,r={};return pe.forEach(this,(d,h)=>{const f=pe.findKey(r,h);if(f){n[f]=pc(d),delete n[h];return}const w=e?VR(h):String(h).trim();w!==h&&delete n[h],n[w]=pc(d),r[w]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return pe.forEach(this,(r,d)=>{r!=null&&r!==!1&&(n[d]=e&&pe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
1421
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(d=>r.set(d)),r}static accessor(e){const r=(this[Jw]=this[Jw]={accessors:{}}).accessors,d=this.prototype;function h(f){const w=ma(f);r[w]||(GR(d,f),r[w]=!0)}return pe.isArray(e)?e.forEach(h):h(e),this}}ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(ur.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),pe.freezeMethods(ur);function Zd(t,e){const n=this||ga,r=e||n,d=ur.from(r.headers);let h=r.data;return pe.forEach(t,function(w){h=w.call(n,h,d.normalize(),e?e.status:void 0)}),d.normalize(),h}function Xw(t){return!!(t&&t.__CANCEL__)}function bs(t,e,n){it.call(this,t??"canceled",it.ERR_CANCELED,e,n),this.name="CanceledError"}pe.inherits(bs,it,{__CANCEL__:!0});function eb(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new it("Request failed with status code "+n.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function YR(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function KR(t,e){t=t||10;const n=new Array(t),r=new Array(t);let d=0,h=0,f;return e=e!==void 0?e:1e3,function(p){const g=Date.now(),s=r[h];f||(f=g),n[d]=p,r[d]=g;let l=h,a=0;for(;l!==d;)a+=n[l++],l=l%t;if(d=(d+1)%t,d===h&&(h=(h+1)%t),g-f<e)return;const u=s&&g-s;return u?Math.round(a*1e3/u):void 0}}function QR(t,e){let n=0,r=1e3/e,d,h;const f=(g,s=Date.now())=>{n=s,d=null,h&&(clearTimeout(h),h=null),t.apply(null,g)};return[(...g)=>{const s=Date.now(),l=s-n;l>=r?f(g,s):(d=g,h||(h=setTimeout(()=>{h=null,f(d)},r-l)))},()=>d&&f(d)]}const fc=(t,e,n=3)=>{let r=0;const d=KR(50,250);return QR(h=>{const f=h.loaded,w=h.lengthComputable?h.total:void 0,p=f-r,g=d(p),s=f<=w;r=f;const l={loaded:f,total:w,progress:w?f/w:void 0,bytes:p,rate:g||void 0,estimated:g&&w&&s?(w-f)/g:void 0,event:h,lengthComputable:w!=null,[e?"download":"upload"]:!0};t(l)},n)},tb=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},nb=t=>(...e)=>pe.asap(()=>t(...e)),ZR=Un.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Un.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Un.origin),Un.navigator&&/(msie|trident)/i.test(Un.navigator.userAgent)):()=>!0,JR=Un.hasStandardBrowserEnv?{write(t,e,n,r,d,h){const f=[t+"="+encodeURIComponent(e)];pe.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),pe.isString(r)&&f.push("path="+r),pe.isString(d)&&f.push("domain="+d),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function XR(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function eL(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function rb(t,e){return t&&!XR(e)?eL(t,e):e}const ib=t=>t instanceof ur?{...t}:t;function Lo(t,e){e=e||{};const n={};function r(g,s,l,a){return pe.isPlainObject(g)&&pe.isPlainObject(s)?pe.merge.call({caseless:a},g,s):pe.isPlainObject(s)?pe.merge({},s):pe.isArray(s)?s.slice():s}function d(g,s,l,a){if(pe.isUndefined(s)){if(!pe.isUndefined(g))return r(void 0,g,l,a)}else return r(g,s,l,a)}function h(g,s){if(!pe.isUndefined(s))return r(void 0,s)}function f(g,s){if(pe.isUndefined(s)){if(!pe.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function w(g,s,l){if(l in e)return r(g,s);if(l in t)return r(void 0,g)}const p={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:w,headers:(g,s,l)=>d(ib(g),ib(s),l,!0)};return pe.forEach(Object.keys(Object.assign({},t,e)),function(s){const l=p[s]||d,a=l(t[s],e[s],s);pe.isUndefined(a)&&l!==w||(n[s]=a)}),n}const ob=t=>{const e=Lo({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:h,headers:f,auth:w}=e;e.headers=f=ur.from(f),e.url=Yw(rb(e.baseURL,e.url),t.params,t.paramsSerializer),w&&f.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let p;if(pe.isFormData(n)){if(Un.hasStandardBrowserEnv||Un.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((p=f.getContentType())!==!1){const[g,...s]=p?p.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Un.hasStandardBrowserEnv&&(r&&pe.isFunction(r)&&(r=r(e)),r||r!==!1&&ZR(e.url))){const g=d&&h&&JR.read(h);g&&f.set(d,g)}return e},tL=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const d=ob(t);let h=d.data;const f=ur.from(d.headers).normalize();let{responseType:w,onUploadProgress:p,onDownloadProgress:g}=d,s,l,a,u,o;function c(){u&&u(),o&&o(),d.cancelToken&&d.cancelToken.unsubscribe(s),d.signal&&d.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;m.open(d.method.toUpperCase(),d.url,!0),m.timeout=d.timeout;function b(){if(!m)return;const E=ur.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!w||w==="text"||w==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:E,config:t,request:m};eb(function(T){n(T),c()},function(T){r(T),c()},k),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new it("Request aborted",it.ECONNABORTED,t,m)),m=null)},m.onerror=function(){r(new it("Network Error",it.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let A=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const k=d.transitional||Qw;d.timeoutErrorMessage&&(A=d.timeoutErrorMessage),r(new it(A,k.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,t,m)),m=null},h===void 0&&f.setContentType(null),"setRequestHeader"in m&&pe.forEach(f.toJSON(),function(A,k){m.setRequestHeader(k,A)}),pe.isUndefined(d.withCredentials)||(m.withCredentials=!!d.withCredentials),w&&w!=="json"&&(m.responseType=d.responseType),g&&([a,o]=fc(g,!0),m.addEventListener("progress",a)),p&&m.upload&&([l,u]=fc(p),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",u)),(d.cancelToken||d.signal)&&(s=E=>{m&&(r(!E||E.type?new bs(null,t,m):E),m.abort(),m=null)},d.cancelToken&&d.cancelToken.subscribe(s),d.signal&&(d.signal.aborted?s():d.signal.addEventListener("abort",s)));const x=YR(d.url);if(x&&Un.protocols.indexOf(x)===-1){r(new it("Unsupported protocol "+x+":",it.ERR_BAD_REQUEST,t));return}m.send(h||null)})},nL=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,d;const h=function(g){if(!d){d=!0,w();const s=g instanceof Error?g:this.reason;r.abort(s instanceof it?s:new bs(s instanceof Error?s.message:s))}};let f=e&&setTimeout(()=>{f=null,h(new it(`timeout ${e} of ms exceeded`,it.ETIMEDOUT))},e);const w=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),t=null)};t.forEach(g=>g.addEventListener("abort",h));const{signal:p}=r;return p.unsubscribe=()=>pe.asap(w),p}},rL=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,d;for(;r<n;)d=r+e,yield t.slice(r,d),r=d},iL=async function*(t,e){for await(const n of oL(t))yield*rL(n,e)},oL=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},sb=(t,e,n,r)=>{const d=iL(t,e);let h=0,f,w=p=>{f||(f=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:s}=await d.next();if(g){w(),p.close();return}let l=s.byteLength;if(n){let a=h+=l;n(a)}p.enqueue(new Uint8Array(s))}catch(g){throw w(g),g}},cancel(p){return w(p),d.return()}},{highWaterMark:2})},gc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ab=gc&&typeof ReadableStream=="function",sL=gc&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),lb=(t,...e)=>{try{return!!t(...e)}catch{return!1}},aL=ab&&lb(()=>{let t=!1;const e=new Request(Un.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),cb=64*1024,Jd=ab&&lb(()=>pe.isReadableStream(new Response("").body)),mc={stream:Jd&&(t=>t.body)};gc&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!mc[e]&&(mc[e]=pe.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new it(`Response type '${e}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const lL=async t=>{if(t==null)return 0;if(pe.isBlob(t))return t.size;if(pe.isSpecCompliantForm(t))return(await new Request(Un.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(t)||pe.isArrayBuffer(t))return t.byteLength;if(pe.isURLSearchParams(t)&&(t=t+""),pe.isString(t))return(await sL(t)).byteLength},cL=async(t,e)=>{const n=pe.toFiniteNumber(t.getContentLength());return n??lL(e)},Xd={http:ER,xhr:tL,fetch:gc&&(async t=>{let{url:e,method:n,data:r,signal:d,cancelToken:h,timeout:f,onDownloadProgress:w,onUploadProgress:p,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=ob(t);g=g?(g+"").toLowerCase():"text";let u=nL([d,h&&h.toAbortSignal()],f),o;const c=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(p&&aL&&n!=="get"&&n!=="head"&&(m=await cL(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),v;if(pe.isFormData(r)&&(v=k.headers.get("content-type"))&&s.setContentType(v),k.body){const[T,R]=tb(m,fc(nb(p)));r=sb(k.body,cb,T,R)}}pe.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:u,method:n.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=Jd&&(g==="stream"||g==="response");if(Jd&&(w||E&&c)){const k={};["status","statusText","headers"].forEach(O=>{k[O]=x[O]});const v=pe.toFiniteNumber(x.headers.get("content-length")),[T,R]=w&&tb(v,fc(nb(w),!0))||[];x=new Response(sb(x.body,cb,T,()=>{R&&R(),c&&c()}),k)}g=g||"text";let A=await mc[pe.findKey(mc,g)||"text"](x,t);return!E&&c&&c(),await new Promise((k,v)=>{eb(k,v,{data:A,headers:ur.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:o})})}catch(b){throw c&&c(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,t,o),{cause:b.cause||b}):it.from(b,b&&b.code,t,o)}})};pe.forEach(Xd,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ub=t=>`- ${t}`,uL=t=>pe.isFunction(t)||t===null||t===!1,hb={getAdapter:t=>{t=pe.isArray(t)?t:[t];const{length:e}=t;let n,r;const d={};for(let h=0;h<e;h++){n=t[h];let f;if(r=n,!uL(n)&&(r=Xd[(f=String(n)).toLowerCase()],r===void 0))throw new it(`Unknown adapter '${f}'`);if(r)break;d[f||"#"+h]=r}if(!r){const h=Object.entries(d).map(([w,p])=>`adapter ${w} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=e?h.length>1?`since :
1422
+ `+h.map(ub).join(`
1423
+ `):" "+ub(h[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:Xd};function ep(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new bs(null,t)}function db(t){return ep(t),t.headers=ur.from(t.headers),t.data=Zd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),hb.getAdapter(t.adapter||ga.adapter)(t).then(function(r){return ep(t),r.data=Zd.call(t,t.transformResponse,r),r.headers=ur.from(r.headers),r},function(r){return Xw(r)||(ep(t),r&&r.response&&(r.response.data=Zd.call(t,t.transformResponse,r.response),r.response.headers=ur.from(r.response.headers))),Promise.reject(r)})}const pb="1.7.9",yc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yc[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const fb={};yc.transitional=function(e,n,r){function d(h,f){return"[Axios v"+pb+"] Transitional option '"+h+"'"+f+(r?". "+r:"")}return(h,f,w)=>{if(e===!1)throw new it(d(f," has been removed"+(n?" in "+n:"")),it.ERR_DEPRECATED);return n&&!fb[f]&&(fb[f]=!0,console.warn(d(f," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(h,f,w):!0}},yc.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function hL(t,e,n){if(typeof t!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let d=r.length;for(;d-- >0;){const h=r[d],f=e[h];if(f){const w=t[h],p=w===void 0||f(w,h,t);if(p!==!0)throw new it("option "+h+" must be "+p,it.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new it("Unknown option "+h,it.ERR_BAD_OPTION)}}const wc={assertOptions:hL,validators:yc},li=wc.validators;class Oo{constructor(e){this.defaults=e,this.interceptors={request:new Kw,response:new Kw}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const h=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1424
+ `+h):r.stack=h}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Lo(this.defaults,n);const{transitional:r,paramsSerializer:d,headers:h}=n;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),d!=null&&(pe.isFunction(d)?n.paramsSerializer={serialize:d}:wc.assertOptions(d,{encode:li.function,serialize:li.function},!0)),wc.assertOptions(n,{baseUrl:li.spelling("baseURL"),withXsrfToken:li.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=h&&pe.merge(h.common,h[n.method]);h&&pe.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),n.headers=ur.concat(f,h);const w=[];let p=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(n)===!1||(p=p&&c.synchronous,w.unshift(c.fulfilled,c.rejected))});const g=[];this.interceptors.response.forEach(function(c){g.push(c.fulfilled,c.rejected)});let s,l=0,a;if(!p){const o=[db.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),a=o.length,s=Promise.resolve(n);l<a;)s=s.then(o[l++],o[l++]);return s}a=w.length;let u=n;for(l=0;l<a;){const o=w[l++],c=w[l++];try{u=o(u)}catch(m){c.call(this,m);break}}try{s=db.call(this,u)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=Lo(this.defaults,e);const n=rb(e.baseURL,e.url);return Yw(n,e.params,e.paramsSerializer)}}pe.forEach(["delete","get","head","options"],function(e){Oo.prototype[e]=function(n,r){return this.request(Lo(r||{},{method:e,url:n,data:(r||{}).data}))}}),pe.forEach(["post","put","patch"],function(e){function n(r){return function(h,f,w){return this.request(Lo(w||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:h,data:f}))}}Oo.prototype[e]=n(),Oo.prototype[e+"Form"]=n(!0)});class tp{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(h){n=h});const r=this;this.promise.then(d=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](d);r._listeners=null}),this.promise.then=d=>{let h;const f=new Promise(w=>{r.subscribe(w),h=w}).then(d);return f.cancel=function(){r.unsubscribe(h)},f},e(function(h,f,w){r.reason||(r.reason=new bs(h,f,w),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new tp(function(d){e=d}),cancel:e}}}function dL(t){return function(n){return t.apply(null,n)}}function pL(t){return pe.isObject(t)&&t.isAxiosError===!0}const np={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(np).forEach(([t,e])=>{np[e]=t});function gb(t){const e=new Oo(t),n=Lw(Oo.prototype.request,e);return pe.extend(n,Oo.prototype,e,{allOwnKeys:!0}),pe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(d){return gb(Lo(t,d))},n}const wn=gb(ga);wn.Axios=Oo,wn.CanceledError=bs,wn.CancelToken=tp,wn.isCancel=Xw,wn.VERSION=pb,wn.toFormData=dc,wn.AxiosError=it,wn.Cancel=wn.CanceledError,wn.all=function(e){return Promise.all(e)},wn.spread=dL,wn.isAxiosError=pL,wn.mergeConfig=Lo,wn.AxiosHeaders=ur,wn.formToJSON=t=>Zw(pe.isHTMLForm(t)?new FormData(t):t),wn.getAdapter=hb.getAdapter,wn.HttpStatusCode=np,wn.default=wn;const fL={components:{TopBar:UE,OutputDialog:wA},data(){return{title:"Bucket Explorer",search:"",root:"",mode:"bucket",buckets:[],volumes:[],uploadPathDialog:!1,optionsDialog:!1,refreshInterval:60,updater:null,updating:!1,path:"",file:null,files:[],showDialog:!1,dialogName:"",dialogContent:"",dialogFilename:"",sortBy:[{key:"modified",order:"desc"}],headers:[{title:"Name",value:"name",sortable:!0,nowrap:!0},{title:"Size",value:"size",sortable:!0},{title:"ModifiedDate",value:"modified",sortable:!0},{title:"Action",value:"action",align:"end",nowrap:!0}],menus:[{label:"File",items:[{label:"Options",icon:"mdi-cog",command:()=>{this.optionsDialog=!0}}]}]}},computed:{folderTotal(){return this.files.reduce((t,e)=>t+(e.size?e.size:0),0).toLocaleString()},breadcrumbPath(){const t=this.path.split("/");return t.map((e,n)=>({name:e,path:t.slice(0,n+1).join("/")+"/"}))}},created(){var t;if(mo.get("/openc3-api/storage/buckets").then(e=>{this.buckets=e.data}),mo.get("/openc3-api/storage/volumes").then(e=>{this.volumes=e.data}),(t=this.$route.params.path)!=null&&t.length){this.updating=!0;let e=this.$route.params.path[0].split("/");e[0]===""?(this.mode="volume",this.root=`/${e[1]}`,this.path=e.slice(2).join("/")):(this.mode="bucket",this.root=e[0],this.path=e.slice(1).join("/")),this.updateFiles()}this.changeUpdater()},beforeUnmount(){this.clearUpdater()},watch:{file:async function(){this.file!==null&&(this.uploadFilePath=`${this.path}${this.file.name}`,this.uploadPathDialog=!0)},refreshInterval(){this.changeUpdater()}},methods:{isText(t){if(["Rakefile","Dockerfile"].includes(t))return!0;let e=t.split(".").pop();return["txt","md","rb","py","pyi","cfg","html","js","json","info","vue","sh","bat","csv"].includes(e)},gotoPath(t){this.updating||(this.updating=!0,this.path=t,this.update())},update(){this.updating=!0,this.$router.push({name:"Bucket Explorer",params:{path:`${this.root}/${this.path}`}}),this.updateFiles()},changeUpdater(){this.clearUpdater(),this.updater=setInterval(()=>{this.root&&this.updateFiles()},this.refreshInterval*1e3)},clearUpdater(){this.updater!=null&&(clearInterval(this.updater),this.updater=null)},selectBucket(t){this.updating||(this.updating=!0,this.mode="bucket",this.root=t,this.path="",this.update())},selectVolume(t){this.updating||(this.updating=!0,this.mode="volume",this.root=t,this.path="",this.update())},backArrow(){if(this.path!==""&&!this.updating){this.updating=!0;let t=this.path.split("/");this.path=t.slice(0,t.length-2).join("/"),t.length>2&&(this.path+="/"),this.update()}},fileClick(t,{item:e}){e.icon==="mdi-folder"&&(this.updating||(this.updating=!0,this.root===""?this.root=e.name:this.path+=`${e.name}/`,this.update()))},viewFile(t){let e=this.root.toUpperCase();this.mode==="volume"&&(e=e.slice(1)),mo.get(`/openc3-api/storage/download_file/${encodeURIComponent(this.path)}${t}?${this.mode}=OPENC3_${e}_${this.mode.toUpperCase()}`).then(n=>{this.dialogName=t,this.dialogFilename=t,this.dialogContent=window.atob(n.data.contents),this.showDialog=!0})},downloadFile(t){let e=this.root.toUpperCase(),n="download";this.mode==="volume"&&(n="download_file",e=e.slice(1)),mo.get(`/openc3-api/storage/${n}/${encodeURIComponent(this.path)}${t}?${this.mode}=OPENC3_${e}_${this.mode.toUpperCase()}`).then(r=>{let d=null;if(this.mode==="bucket")d=r.data.url;else{const f=window.atob(r.data.contents),w=new Uint8Array(f.length);for(let g=0;g<f.length;++g)w[g]=f.charCodeAt(g);const p=new Blob([w]);d=URL.createObjectURL(p)}const h=document.createElement("a");h.href=d,h.setAttribute("download",t),h.click()}).catch(r=>{this.$notify.caution({title:`Unable to download file ${this.path}${t} from bucket ${this.root}`})})},async uploadFile(){this.uploadPathDialog=!1,this.uploadFilePath.startsWith("/")&&(this.uploadFilePath=this.uploadFilePath.slice(1));const{data:t}=await mo.get(`/openc3-api/storage/upload/${encodeURIComponent(this.uploadFilePath)}?bucket=OPENC3_${this.root.toUpperCase()}_BUCKET`);await wn({...t,data:this.file}),this.file=null,this.path=this.uploadFilePath.split("/").slice(0,-1).join("/")+"/",this.updateFiles()},deleteFile(t){let e=this.root.toUpperCase();this.mode==="volume"&&(e=e.slice(1)),this.$dialog.confirm(`Are you sure you want to delete: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(n=>mo.delete(`/openc3-api/storage/delete/${encodeURIComponent(this.path)}${t}?${this.mode}=OPENC3_${e}_${this.mode.toUpperCase()}`)).then(n=>{this.updateFiles()}).catch(n=>{})},updateFiles(){let t=this.root.toUpperCase();this.mode==="volume"&&(t=t.slice(1)),mo.get(`/openc3-api/storage/files/OPENC3_${t}_${this.mode.toUpperCase()}/${this.path}`).then(e=>{this.files=e.data[0].map(n=>({name:n,icon:"mdi-folder"})),this.files=this.files.concat(e.data[1].map(n=>({name:n.name,icon:"mdi-file",size:n.size,modified:n.modified}))),this.updating=!1}).catch(({response:e})=>{var n;this.files=[],(n=e.data)!=null&&n.message?this.$notify.caution({title:e.data.message}):this.$notify.caution({title:e.message}),this.updating=!1})}}},gL={style:{"padding-left":"5px","padding-top":"5px"}},mL={key:0,style:{"padding-left":"5px"}},yL={class:".text-body-1 ma-2 font-size","data-test":"file-path"},wL=["onClick"],bL={class:"ma-2 font-size"},vL={key:0,class:"ma-2",style:{display:"flex"}},xL={class:"mx-1"},_L={class:"pa-3"};function kL(t,e,n,r,d,h){const f=ut("top-bar"),w=ut("v-icon"),p=ut("v-avatar"),g=ut("v-chip"),s=ut("v-spacer"),l=ut("v-text-field"),a=ut("v-card-title"),u=ut("v-btn"),o=ut("v-file-input"),c=ut("v-row"),m=ut("v-data-table"),b=ut("v-card"),x=ut("v-toolbar"),E=ut("v-card-text"),A=ut("v-dialog"),k=ut("output-dialog");return kt(),sr("div",null,[De(f,{title:d.title,menus:d.menus},null,8,["title","menus"]),De(b,{width:"100%"},{default:Le(()=>[kn("div",gL,[e[12]||(e[12]=kn("span",{class:"ma-2 font-size"},"Buckets:",-1)),(kt(!0),sr(vi,null,Bi(d.buckets,(v,T)=>(kt(),pn(g,{key:T,variant:"elevated",color:"primary",class:"ma-2",onClick:ho(R=>h.selectBucket(v),["stop"])},{default:Le(()=>[De(p,{start:""},{default:Le(()=>[De(w,null,{default:Le(()=>e[11]||(e[11]=[Kt("mdi-bucket")])),_:1})]),_:1}),Kt(" "+Jn(v),1)]),_:2},1032,["onClick"]))),128))]),d.volumes.length!==0?(kt(),sr("div",mL,[e[14]||(e[14]=kn("span",{class:"ma-2 font-size"},"Volumes:",-1)),(kt(!0),sr(vi,null,Bi(d.volumes,(v,T)=>(kt(),pn(g,{key:T,variant:"elevated",color:"primary",class:"ma-2",onClick:ho(R=>h.selectVolume(v),["stop"])},{default:Le(()=>[De(p,{start:""},{default:Le(()=>[De(w,null,{default:Le(()=>e[13]||(e[13]=[Kt("mdi-folder")])),_:1})]),_:1}),Kt(" "+Jn(v),1)]),_:2},1032,["onClick"]))),128))])):ti("",!0),De(a,{class:"pt-0 d-flex align-center justify-content-space-between"},{default:Le(()=>[Kt(Jn(d.root)+" Files ",1),De(s),De(l,{modelValue:d.search,"onUpdate:modelValue":e[0]||(e[0]=v=>d.search=v),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search","data-test":"search-input"},null,8,["modelValue"])]),_:1}),De(m,{headers:d.headers,items:d.files,search:d.search,"items-per-page":-1,"items-per-page-options":[10,20,50,100,-1],"sort-by":d.sortBy,"onUpdate:sortBy":e[2]||(e[2]=v=>d.sortBy=v),"onClick:row":ho(h.fileClick,["stop"]),"multi-sort":"",density:"compact",hover:""},{top:Le(()=>[De(c,{class:"ma-0",style:{"background-color":"var(--color-background-surface-header)"}},{default:Le(()=>[De(u,{icon:"mdi-chevron-left-box-outline",variant:"text",density:"compact",class:"ml-3 mt-1",onClick:ho(h.backArrow,["stop"]),"data-test":"be-nav-back"},null,8,["onClick"]),kn("span",yL,[(kt(!0),sr(vi,null,Bi(h.breadcrumbPath,(v,T)=>(kt(),sr("a",{key:T,onClick:ho(R=>h.gotoPath(v.path),["prevent"]),style:{cursor:"pointer"}},"/ "+Jn(v.name)+"  ",9,wL))),128))]),De(s),kn("div",bL,[Kt(" Folder Size: "+Jn(h.folderTotal)+" ",1),e[15]||(e[15]=kn("span",{class:"small-font-size"},"(not recursive)",-1))]),De(s),d.mode==="bucket"?(kt(),sr("div",vL,[e[16]||(e[16]=kn("span",{class:"font-size"},"Upload File",-1)),De(o,{modelValue:d.file,"onUpdate:modelValue":e[1]||(e[1]=v=>d.file=v),"hide-input":"","hide-details":"",class:"mr-1 file-input","prepend-icon":"mdi-upload","data-test":"upload-file"},null,8,["modelValue"])])):ti("",!0)]),_:1})]),"item.name":Le(({item:v})=>[De(w,{class:"mr-2"},{default:Le(()=>[Kt(Jn(v.icon),1)]),_:2},1024),Kt(" "+Jn(v.name),1)]),"item.size":Le(({item:v})=>[Kt(Jn(v.size?v.size.toLocaleString():""),1)]),"item.action":Le(({item:v})=>[v.icon==="mdi-file"&&h.isText(v.name)?(kt(),pn(w,{key:0,onClick:T=>h.viewFile(v.name),class:"mr-3","data-test":"view-file"},{default:Le(()=>e[17]||(e[17]=[Kt(" mdi-eye ")])),_:2},1032,["onClick"])):ti("",!0),v.icon==="mdi-file"?(kt(),pn(w,{key:1,onClick:T=>h.downloadFile(v.name),class:"mr-3","data-test":"download-file"},{default:Le(()=>e[18]||(e[18]=[Kt(" mdi-download-box ")])),_:2},1032,["onClick"])):ti("",!0),v.icon==="mdi-file"?(kt(),pn(w,{key:2,onClick:T=>h.deleteFile(v.name),"data-test":"delete-file"},{default:Le(()=>e[19]||(e[19]=[Kt(" mdi-delete ")])),_:2},1032,["onClick"])):ti("",!0)]),_:1},8,["headers","items","search","sort-by","onClick:row"])]),_:1}),De(A,{modelValue:d.uploadPathDialog,"onUpdate:modelValue":e[5]||(e[5]=v=>d.uploadPathDialog=v),"max-width":"600"},{default:Le(()=>[De(b,null,{default:Le(()=>[De(x,{height:"24"},{default:Le(()=>[De(s),e[20]||(e[20]=kn("span",null," Upload Path ",-1)),De(s)]),_:1}),De(E,null,{default:Le(()=>[kn("div",xL,[De(c,{class:"my-2"},{default:Le(()=>e[21]||(e[21]=[kn("span",null," This file path can be modified. New directories will be automatically created. ",-1)])),_:1}),De(c,null,{default:Le(()=>[De(l,{modelValue:t.uploadFilePath,"onUpdate:modelValue":e[3]||(e[3]=v=>t.uploadFilePath=v),"hide-details":"",label:"File Path","data-test":"upload-file-path"},null,8,["modelValue"])]),_:1}),De(c,{class:"mt-6"},{default:Le(()=>[De(s),De(u,{onClick:e[4]||(e[4]=v=>d.uploadPathDialog=!1),variant:"outlined",class:"mx-2","data-test":"upload-file-cancel-btn"},{default:Le(()=>e[22]||(e[22]=[Kt(" Cancel ")])),_:1}),De(u,{onClick:ho(h.uploadFile,["prevent"]),class:"mx-2",color:"primary",type:"submit","data-test":"upload-file-submit-btn"},{default:Le(()=>e[23]||(e[23]=[Kt(" Upload ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),De(A,{modelValue:d.optionsDialog,"onUpdate:modelValue":e[7]||(e[7]=v=>d.optionsDialog=v),onKeydown:e[8]||(e[8]=pf(v=>d.optionsDialog=!1,["esc"])),"max-width":"300"},{default:Le(()=>[De(b,null,{default:Le(()=>[De(x,{height:"24"},{default:Le(()=>[De(s),e[24]||(e[24]=kn("span",null,"Options",-1)),De(s)]),_:1}),De(E,null,{default:Le(()=>[kn("div",_L,[De(l,{modelValue:d.refreshInterval,"onUpdate:modelValue":e[6]||(e[6]=v=>d.refreshInterval=v),min:"1",max:"3600",step:"100",type:"number",label:"Refresh Interval (s)","data-test":"refresh-interval"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"]),d.showDialog?(kt(),pn(k,{key:0,type:"File",content:d.dialogContent,name:d.dialogName,filename:d.dialogFilename,modelValue:d.showDialog,"onUpdate:modelValue":e[9]||(e[9]=v=>d.showDialog=v),onSubmit:e[10]||(e[10]=v=>d.showDialog=!1)},null,8,["content","name","filename","modelValue"])):ti("",!0)])}Wr("e",Object.freeze(Object.defineProperty({__proto__:null,default:lf(fL,[["render",kL],["__scopeId","data-v-aff2a5b2"]])},Symbol.toStringTag,{value:"Module"})))}}});