import{c as d}from"./index-15e3682d.js";function M(T,l){for(var f=0;ft[i]})}}}return Object.freeze(Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}))}var U={};(function(T){if(typeof T.window<"u"&&T.document||T.require&&T.define)return;T.console||(T.console=function(){var i=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:i})},T.console.error=T.console.warn=T.console.log=T.console.trace=T.console),T.window=T,T.ace=T,T.onerror=function(i,s,e,r,o){postMessage({type:"error",data:{message:i,data:o&&o.data,file:s,line:e,col:r,stack:o&&o.stack}})},T.normalizeModule=function(i,s){if(s.indexOf("!")!==-1){var e=s.split("!");return T.normalizeModule(i,e[0])+"!"+T.normalizeModule(i,e[1])}if(s.charAt(0)=="."){var r=i.split("/").slice(0,-1).join("/");for(s=(r?r+"/":"")+s;s.indexOf(".")!==-1&&o!=s;){var o=s;s=s.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return s},T.require=function(s,e){if(e||(e=s,s=null),!e.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");e=T.normalizeModule(s,e);var r=T.require.modules[e];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!T.require.tlns)return console.log("unable to load "+e);var o=l(e,T.require.tlns);return o.slice(-3)!=".js"&&(o+=".js"),T.require.id=e,T.require.modules[e]={},importScripts(o),T.require(s,e)};function l(i,s){for(var e=i,r="";e;){var o=s[e];if(typeof o=="string")return o+r;if(o)return o.location.replace(/\/*$/,"/")+(r||o.main||o.name);if(o===!1)return"";var a=e.lastIndexOf("/");if(a===-1)break;r=e.substr(a)+r,e=e.slice(0,a)}return i}T.require.modules={},T.require.tlns={},T.define=function(i,s,e){if(arguments.length==2?(e=s,typeof i!="string"&&(s=i,i=T.require.id)):arguments.length==1&&(e=i,s=[],i=T.require.id),typeof e!="function"){T.require.modules[i]={exports:e,initialized:!0};return}s.length||(s=["require","exports","module"]);var r=function(o){return T.require(i,o)};T.require.modules[i]={exports:{},factory:function(){var o=this,a=e.apply(this,s.slice(0,e.length).map(function(n){switch(n){case"require":return r;case"exports":return o.exports;case"module":return o;default:return r(n)}}));return a&&(o.exports=a),o}}},T.define.amd={},T.require.tlns={},T.initBaseUrls=function(s){for(var e in s)this.require.tlns[e]=s[e]},T.initSender=function(){var s=T.require("ace/lib/event_emitter").EventEmitter,e=T.require("ace/lib/oop"),r=function(){};return function(){e.implement(this,s),this.callback=function(o,a){postMessage({type:"call",id:a,data:o})},this.emit=function(o,a){postMessage({type:"event",name:o,data:a})}}.call(r.prototype),new r};var f=T.main=null,t=T.sender=null;T.onmessage=function(i){var s=i.data;if(s.event&&t)t._signal(s.event,s.data);else if(s.command)if(f[s.command])f[s.command].apply(f,s.args);else if(T[s.command])T[s.command].apply(T,s.args);else throw new Error("Unknown command:"+s.command);else if(s.init){T.initBaseUrls(s.tlns),t=T.sender=T.initSender();var e=this.require(s.module)[s.classname];f=T.main=new e(t)}}})(d);ace.define("ace/lib/oop",[],function(T,l,f){l.inherits=function(t,i){t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},l.mixin=function(t,i){for(var s in i)t[s]=i[s];return t},l.implement=function(t,i){l.mixin(t,i)}});ace.define("ace/apply_delta",[],function(T,l,f){l.applyDelta=function(t,i,s){var e=i.start.row,r=i.start.column,o=t[e]||"";switch(i.action){case"insert":var a=i.lines;if(a.length===1)t[e]=o.substring(0,r)+i.lines[0]+o.substring(r);else{var n=[e,1].concat(i.lines);t.splice.apply(t,n),t[e]=o.substring(0,r)+t[e],t[e+i.lines.length-1]+=o.substring(r)}break;case"remove":var _=i.end.column,u=i.end.row;e===u?t[e]=o.substring(0,r)+o.substring(_):t.splice(e,u-e+1,o.substring(0,r)+t[u].substring(_));break}}});ace.define("ace/lib/event_emitter",[],function(T,l,f){var t={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};t._emit=t._dispatchEvent=function(e,r){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[e]||[],a=this._defaultHandlers[e];if(!(!o.length&&!a)){(typeof r!="object"||!r)&&(r={}),r.type||(r.type=e),r.stopPropagation||(r.stopPropagation=i),r.preventDefault||(r.preventDefault=s),o=o.slice();for(var n=0;n ["+this.end.row+"/"+this.end.column+"]"},s.prototype.contains=function(e,r){return this.compare(e,r)==0},s.prototype.compareRange=function(e){var r,o=e.end,a=e.start;return r=this.compare(o.row,o.column),r==1?(r=this.compare(a.row,a.column),r==1?2:r==0?1:0):r==-1?-2:(r=this.compare(a.row,a.column),r==-1?-1:r==1?42:0)},s.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},s.prototype.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},s.prototype.intersects=function(e){var r=this.compareRange(e);return r==-1||r==0||r==1},s.prototype.isEnd=function(e,r){return this.end.row==e&&this.end.column==r},s.prototype.isStart=function(e,r){return this.start.row==e&&this.start.column==r},s.prototype.setStart=function(e,r){typeof e=="object"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=r)},s.prototype.setEnd=function(e,r){typeof e=="object"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=r)},s.prototype.inside=function(e,r){return this.compare(e,r)==0?!(this.isEnd(e,r)||this.isStart(e,r)):!1},s.prototype.insideStart=function(e,r){return this.compare(e,r)==0?!this.isEnd(e,r):!1},s.prototype.insideEnd=function(e,r){return this.compare(e,r)==0?!this.isStart(e,r):!1},s.prototype.compare=function(e,r){return!this.isMultiLine()&&e===this.start.row?rthis.end.column?1:0:ethis.end.row?1:this.start.row===e?r>=this.start.column?0:-1:this.end.row===e?r<=this.end.column?0:1:0},s.prototype.compareStart=function(e,r){return this.start.row==e&&this.start.column==r?-1:this.compare(e,r)},s.prototype.compareEnd=function(e,r){return this.end.row==e&&this.end.column==r?1:this.compare(e,r)},s.prototype.compareInside=function(e,r){return this.end.row==e&&this.end.column==r?1:this.start.row==e&&this.start.column==r?-1:this.compare(e,r)},s.prototype.clipRows=function(e,r){if(this.end.row>r)var o={row:r+1,column:0};else if(this.end.rowr)var a={row:r+1,column:0};else if(this.start.row"u"?this.setPosition(n.row,n.column):this.setPosition(n,_)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var n=r(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},o.prototype.setPosition=function(a,n,_){var u;if(_?u={row:a,column:n}:u=this.$clipPositionToDocument(a,n),!(this.row==u.row&&this.column==u.column)){var E={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:E,value:u})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(a,n){var _={};return a>=this.document.getLength()?(_.row=Math.max(0,this.document.getLength()-1),_.column=this.document.getLine(_.row).length):a<0?(_.row=0,_.column=0):(_.row=a,_.column=Math.min(this.document.getLine(_.row).length,Math.max(0,n))),n<0&&(_.column=0),_},o}();s.prototype.$insertRight=!1,t.implement(s.prototype,i);function e(o,a,n){var _=n?o.column<=a.column:o.column=u&&(n=u-1,_=void 0);var E=this.getLine(n);return _==null&&(_=E.length),_=Math.min(Math.max(_,0),E.length),{row:n,column:_}},a.prototype.clonePos=function(n){return{row:n.row,column:n.column}},a.prototype.pos=function(n,_){return{row:n,column:_}},a.prototype.$clipPosition=function(n){var _=this.getLength();return n.row>=_?(n.row=Math.max(0,_-1),n.column=this.getLine(_-1).length):(n.row=Math.max(0,n.row),n.column=Math.min(Math.max(n.column,0),this.getLine(n.row).length)),n},a.prototype.insertFullLines=function(n,_){n=Math.min(Math.max(n,0),this.getLength());var u=0;n0,E=_=0&&this.applyDelta({start:this.pos(n,this.getLine(n).length),end:this.pos(n+1,0),action:"remove",lines:["",""]})},a.prototype.replace=function(n,_){if(n instanceof e||(n=e.fromPoints(n.start,n.end)),_.length===0&&n.isEmpty())return n.start;if(_==this.getTextRange(n))return n.end;this.remove(n);var u;return _?u=this.insert(n.start,_):u=n.start,u},a.prototype.applyDeltas=function(n){for(var _=0;_=0;_--)this.revertDelta(n[_])},a.prototype.applyDelta=function(n,_){var u=n.action=="insert";(u?n.lines.length<=1&&!n.lines[0]:!e.comparePoints(n.start,n.end))||(u&&n.lines.length>2e4?this.$splitAndapplyLargeDelta(n,2e4):(i(this.$lines,n,_),this._signal("change",n)))},a.prototype.$safeApplyDelta=function(n){var _=this.$lines.length;(n.action=="remove"&&n.start.row<_&&n.end.row<_||n.action=="insert"&&n.start.row<=_)&&this.applyDelta(n)},a.prototype.$splitAndapplyLargeDelta=function(n,_){for(var u=n.lines,E=u.length-_+1,A=n.start.row,R=n.start.column,c=0,I=0;c0;)e&1&&(r+=s),(e>>=1)&&(s+=s);return r};var t=/^\s\s*/,i=/\s\s*$/;l.stringTrimLeft=function(s){return s.replace(t,"")},l.stringTrimRight=function(s){return s.replace(i,"")},l.copyObject=function(s){var e={};for(var r in s)e[r]=s[r];return e},l.copyArray=function(s){for(var e=[],r=0,o=s.length;r=r.$lines.length)throw A=new Error("Invalid delta"),A.data={path:a.$path,linesLength:r.$lines.length,start:E.start,end:E.end},A;r.applyDelta(E,!0)}if(a.$timeout)return o.schedule(a.$timeout);a.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(s.prototype)});ace.define("ace/mode/php/php",[],function(T,l,f){var t={Constants:{}};t.Constants.T_THROW=317,t.Constants.T_INCLUDE=272,t.Constants.T_INCLUDE_ONCE=273,t.Constants.T_EVAL=274,t.Constants.T_REQUIRE=275,t.Constants.T_REQUIRE_ONCE=276,t.Constants.T_LOGICAL_OR=277,t.Constants.T_LOGICAL_XOR=278,t.Constants.T_LOGICAL_AND=279,t.Constants.T_PRINT=280,t.Constants.T_YIELD=281,t.Constants.T_DOUBLE_ARROW=386,t.Constants.T_YIELD_FROM=282,t.Constants.T_PLUS_EQUAL=352,t.Constants.T_MINUS_EQUAL=353,t.Constants.T_MUL_EQUAL=354,t.Constants.T_DIV_EQUAL=355,t.Constants.T_CONCAT_EQUAL=356,t.Constants.T_MOD_EQUAL=357,t.Constants.T_AND_EQUAL=358,t.Constants.T_OR_EQUAL=359,t.Constants.T_XOR_EQUAL=360,t.Constants.T_SL_EQUAL=361,t.Constants.T_SR_EQUAL=362,t.Constants.T_POW_EQUAL=402,t.Constants.T_COALESCE_EQUAL=363,t.Constants.T_COALESCE=400,t.Constants.T_BOOLEAN_OR=364,t.Constants.T_BOOLEAN_AND=365,t.Constants.T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG=404,t.Constants.T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG=403,t.Constants.T_IS_EQUAL=366,t.Constants.T_IS_NOT_EQUAL=367,t.Constants.T_IS_IDENTICAL=368,t.Constants.T_IS_NOT_IDENTICAL=369,t.Constants.T_SPACESHIP=372,t.Constants.T_IS_SMALLER_OR_EQUAL=370,t.Constants.T_IS_GREATER_OR_EQUAL=371,t.Constants.T_SL=373,t.Constants.T_SR=374,t.Constants.T_INSTANCEOF=283,t.Constants.T_INC=375,t.Constants.T_DEC=376,t.Constants.T_INT_CAST=377,t.Constants.T_DOUBLE_CAST=378,t.Constants.T_STRING_CAST=379,t.Constants.T_ARRAY_CAST=380,t.Constants.T_OBJECT_CAST=381,t.Constants.T_BOOL_CAST=382,t.Constants.T_UNSET_CAST=383,t.Constants.T_POW=401,t.Constants.T_NEW=284,t.Constants.T_CLONE=285,t.Constants.T_EXIT=286,t.Constants.T_IF=287,t.Constants.T_ELSEIF=288,t.Constants.T_ELSE=289,t.Constants.T_ENDIF=290,t.Constants.T_LNUMBER=260,t.Constants.T_DNUMBER=261,t.Constants.T_STRING=262,t.Constants.T_STRING_VARNAME=270,t.Constants.T_VARIABLE=266,t.Constants.T_NUM_STRING=271,t.Constants.T_INLINE_HTML=267,t.Constants.T_ENCAPSED_AND_WHITESPACE=268,t.Constants.T_CONSTANT_ENCAPSED_STRING=269,t.Constants.T_ECHO=291,t.Constants.T_DO=292,t.Constants.T_WHILE=293,t.Constants.T_ENDWHILE=294,t.Constants.T_FOR=295,t.Constants.T_ENDFOR=296,t.Constants.T_FOREACH=297,t.Constants.T_ENDFOREACH=298,t.Constants.T_DECLARE=299,t.Constants.T_ENDDECLARE=300,t.Constants.T_AS=301,t.Constants.T_SWITCH=302,t.Constants.T_MATCH=306,t.Constants.T_ENDSWITCH=303,t.Constants.T_CASE=304,t.Constants.T_DEFAULT=305,t.Constants.T_BREAK=307,t.Constants.T_CONTINUE=308,t.Constants.T_GOTO=309,t.Constants.T_FUNCTION=310,t.Constants.T_FN=311,t.Constants.T_CONST=312,t.Constants.T_RETURN=313,t.Constants.T_TRY=314,t.Constants.T_CATCH=315,t.Constants.T_FINALLY=316,t.Constants.T_THROW=317,t.Constants.T_USE=318,t.Constants.T_INSTEADOF=319,t.Constants.T_GLOBAL=320,t.Constants.T_STATIC=321,t.Constants.T_ABSTRACT=322,t.Constants.T_FINAL=323,t.Constants.T_PRIVATE=324,t.Constants.T_PROTECTED=325,t.Constants.T_PUBLIC=326,t.Constants.T_READONLY=327,t.Constants.T_VAR=328,t.Constants.T_UNSET=329,t.Constants.T_ISSET=330,t.Constants.T_EMPTY=331,t.Constants.T_HALT_COMPILER=332,t.Constants.T_CLASS=333,t.Constants.T_TRAIT=334,t.Constants.T_INTERFACE=335,t.Constants.T_ENUM=336,t.Constants.T_EXTENDS=337,t.Constants.T_IMPLEMENTS=338,t.Constants.T_OBJECT_OPERATOR=384,t.Constants.T_NULLSAFE_OBJECT_OPERATOR=385,t.Constants.T_DOUBLE_ARROW=386,t.Constants.T_LIST=340,t.Constants.T_ARRAY=341,t.Constants.T_CALLABLE=342,t.Constants.T_CLASS_C=346,t.Constants.T_TRAIT_C=347,t.Constants.T_METHOD_C=348,t.Constants.T_FUNC_C=349,t.Constants.T_LINE=343,t.Constants.T_FILE=344,t.Constants.T_START_HEREDOC=393,t.Constants.T_END_HEREDOC=394,t.Constants.T_DOLLAR_OPEN_CURLY_BRACES=395,t.Constants.T_CURLY_OPEN=396,t.Constants.T_PAAMAYIM_NEKUDOTAYIM=397,t.Constants.T_NAMESPACE=339,t.Constants.T_NS_C=350,t.Constants.T_DIR=345,t.Constants.T_NS_SEPARATOR=398,t.Constants.T_ELLIPSIS=399,t.Constants.T_NAME_FULLY_QUALIFIED=263,t.Constants.T_NAME_QUALIFIED=265,t.Constants.T_NAME_RELATIVE=264,t.Constants.T_ATTRIBUTE=351,t.Constants.T_ENUM=336,t.Constants.T_BAD_CHARACTER=405,t.Constants.T_COMMENT=387,t.Constants.T_DOC_COMMENT=388,t.Constants.T_OPEN_TAG=389,t.Constants.T_OPEN_TAG_WITH_ECHO=390,t.Constants.T_CLOSE_TAG=391,t.Constants.T_WHITESPACE=392,t.Lexer=function(i,s){var e,r,o=["INITIAL"],a=0,n=function(p){o[a]=p},_=function(p){o[++a]=p},u=function(){--a},E=s===void 0||/^(on|true|1)$/i.test(s.short_open_tag),A=E?/^(\<\?php(?:\r\n|[ \t\r\n])|<\?|\