diff --git a/128f0cffd6040e7a6005.worker.js b/128f0cffd6040e7a6005.worker.js new file mode 100644 index 00000000..981982dc --- /dev/null +++ b/128f0cffd6040e7a6005.worker.js @@ -0,0 +1,6 @@ +!function(e){var i={};function n(o){if(i[o])return i[o].exports;var d=i[o]={i:o,l:!1,exports:{}};return e[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=i,n.d=function(e,i,o){n.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,i){if(1&i&&(e=n(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var d in e)n.d(o,d,function(i){return e[i]}.bind(null,d));return o},n.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(i,"a",i),i},n.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},n.p="",n(n.s="yL6M")}({"8hIv":function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const o=new DataView(new ArrayBuffer(4));i.reinterpret_i32_as_f32=function(e){return o.setInt32(0,e),o.getFloat32(0)},i.reinterpret_f32_as_i32=function(e){return o.setFloat32(0,e),o.getInt32(0)}},GGSb:function(e,i,n){var o,d; +/*! + * js-logger - http://github.com/jonnyreeves/js-logger + * Jonny Reeves, http://jonnyreeves.co.uk/ + * js-logger may be freely distributed under the MIT license. + */!function(_){"use strict";var v,t={};t.VERSION="1.6.0";var O={},w=function(e,i){return function(){return i.apply(e,arguments)}},E=function(){var e,i,n=arguments,o=n[0];for(i=1;i=i.value},trace:function(){this.invoke(t.TRACE,arguments)},debug:function(){this.invoke(t.DEBUG,arguments)},info:function(){this.invoke(t.INFO,arguments)},warn:function(){this.invoke(t.WARN,arguments)},error:function(){this.invoke(t.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(t.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(t.TIME,[e,"end"])},invoke:function(e,i){v&&this.enabledFor(e)&&v(i,E({level:e},this.context))}};var D,P=new r({filterLevel:t.OFF});(D=t).enabledFor=w(P,P.enabledFor),D.trace=w(P,P.trace),D.debug=w(P,P.debug),D.time=w(P,P.time),D.timeEnd=w(P,P.timeEnd),D.info=w(P,P.info),D.warn=w(P,P.warn),D.error=w(P,P.error),D.log=D.info,t.setHandler=function(e){v=e},t.setLevel=function(e){for(var i in P.setLevel(e),O)O.hasOwnProperty(i)&&O[i].setLevel(e)},t.getLevel=function(){return P.getLevel()},t.get=function(e){return O[e]||(O[e]=new r(E({name:e},P.context)))},t.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,i){i.name&&e.unshift("["+i.name+"]")};var i={},n=function(e,i){Function.prototype.apply.call(e,console,i)};return"undefined"==typeof console?function(){}:function(o,d){o=Array.prototype.slice.call(o);var _,v=console.log;d.level===t.TIME?(_=(d.name?"["+d.name+"] ":"")+o[0],"start"===o[1]?console.time?console.time(_):i[_]=(new Date).getTime():console.timeEnd?console.timeEnd(_):n(v,[_+": "+((new Date).getTime()-i[_])+"ms"])):(d.level===t.WARN&&console.warn?v=console.warn:d.level===t.ERROR&&console.error?v=console.error:d.level===t.INFO&&console.info?v=console.info:d.level===t.DEBUG&&console.debug?v=console.debug:d.level===t.TRACE&&console.trace&&(v=console.trace),e.formatter(o,d),n(v,o))}},t.useDefaults=function(e){t.setLevel(e&&e.defaultLevel||t.DEBUG),t.setHandler(t.createDefaultHandler(e))},void 0===(d="function"==typeof(o=t)?o.call(i,n,i,e):o)||(e.exports=d)}()},JLhb:function(e,i,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});const d=o(n("GGSb")),_=n("8hIv"),v=n("ZBxL"),t=n("lg9k"),O=n("ZPAt"),w=d.default.get("quest_editor/scripting/assembly");i.assemble=function(e,i=!1){w.trace("assemble start");const n=new E(e,i).assemble();return w.trace(`assemble end with ${n.warnings.length} warnings and ${n.errors.length} errors.`),n};class E{constructor(e,i){this.assembly=e,this.manual_stack=i,this.lexer=new v.AssemblyLexer,this.first_section_marker=!0}assemble(){this.line_no=1,this.object_code=[],this.warnings=[],this.errors=[],this.labels=new Set,this.section=t.SegmentType.Instructions,this.first_section_marker=!0;for(const e of this.assembly){if(this.tokens=this.lexer.tokenize_line(e),this.tokens.length>0){const e=this.tokens.shift();switch(e.type){case v.TokenType.Label:this.parse_label(e);break;case v.TokenType.CodeSection:case v.TokenType.DataSection:case v.TokenType.StringSection:this.parse_section(e);break;case v.TokenType.Int:this.section===t.SegmentType.Data?this.parse_bytes(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case v.TokenType.String:this.section===t.SegmentType.String?this.parse_string(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case v.TokenType.Ident:this.section===t.SegmentType.Instructions?this.parse_instruction(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case v.TokenType.InvalidSection:this.add_error({col:e.col,length:e.len,message:"Invalid section type."});break;case v.TokenType.InvalidIdent:this.add_error({col:e.col,length:e.len,message:"Invalid identifier."});break;default:this.add_error({col:e.col,length:e.len,message:"Unexpected token."})}}this.line_no++}return{object_code:this.object_code,warnings:this.warnings,errors:this.errors}}add_instruction(e,i){if(this.segment)this.segment.type===t.SegmentType.Instructions?this.segment.instructions.push(new t.Instruction(e,i)):w.error(`Line ${this.line_no}: Expected instructions segment.`);else{const e={labels:[],type:t.SegmentType.Instructions,instructions:[]};this.segment=e,this.object_code.push(e)}}add_bytes(e){if(this.segment)if(this.segment.type===t.SegmentType.Data){const i=new ArrayBuffer(this.segment.data.byteLength+e.length),n=new Uint8Array(i);n.set(new Uint8Array(this.segment.data)),n.set(new Uint8Array(e),this.segment.data.byteLength),this.segment.data=i}else w.error(`Line ${this.line_no}: Expected data segment.`);else{const i={labels:[],type:t.SegmentType.Data,data:new Uint8Array(e).buffer};this.segment=i,this.object_code.push(i)}}add_string(e){if(this.segment)this.segment.type===t.SegmentType.String?this.segment.value+=e:w.error(`Line ${this.line_no}: Expected string segment.`);else{const i={labels:[],type:t.SegmentType.String,value:e};this.segment=i,this.object_code.push(i)}}add_error({col:e,length:i,message:n}){this.errors.push({line_no:this.line_no,col:e,length:i,message:n})}add_warning({col:e,length:i,message:n}){this.warnings.push({line_no:this.line_no,col:e,length:i,message:n})}parse_label({col:e,len:i,value:n}){this.labels.has(n)&&this.add_error({col:e,length:i,message:"Duplicate label."}),this.labels.add(n);const o=this.tokens.shift();switch(this.section){case t.SegmentType.Instructions:this.segment={type:t.SegmentType.Instructions,labels:[n],instructions:[]},this.object_code.push(this.segment),o&&(o.type===v.TokenType.Ident?this.parse_instruction(o):this.add_error({col:o.col,length:o.len,message:"Expected opcode mnemonic."}));break;case t.SegmentType.Data:this.segment={type:t.SegmentType.Data,labels:[n],data:new ArrayBuffer(0)},this.object_code.push(this.segment),o&&(o.type===v.TokenType.Int?this.parse_bytes(o):this.add_error({col:o.col,length:o.len,message:"Expected bytes."}));break;case t.SegmentType.String:this.segment={type:t.SegmentType.String,labels:[n],value:""},this.object_code.push(this.segment),o&&(o.type===v.TokenType.String?this.parse_string(o):this.add_error({col:o.col,length:o.len,message:"Expected a string."}))}}parse_section({type:e,col:i,len:n}){let o;switch(e){case v.TokenType.CodeSection:o=t.SegmentType.Instructions;break;case v.TokenType.DataSection:o=t.SegmentType.Data;break;case v.TokenType.StringSection:o=t.SegmentType.String}this.section!==o||this.first_section_marker||this.add_warning({col:i,length:n,message:"Unnecessary section marker."}),this.section=o,this.first_section_marker=!1;const d=this.tokens.shift();d&&this.add_error({col:d.col,length:d.len,message:"Unexpected token."})}parse_instruction({col:e,len:i,value:n}){const o=O.OPCODES_BY_MNEMONIC.get(n);if(o){const i=-1!==o.params.findIndex(e=>e.type.kind===O.Kind.ILabelVar||e.type.kind===O.Kind.RegRefVar),n=this.manual_stack&&o.stack===O.StackInteraction.Pop?0:o.params.length;let d=0;for(const e of this.tokens)e.type!==v.TokenType.ArgSeparator&&d++;const t=this.tokens[this.tokens.length-1];let E=t?t.col+t.len-e:0;const s=[];if(!i&&d!==n)return void this.add_error({col:e,length:E,message:`Expected ${n} argument${1===n?"":"s"}, got ${d}.`});if(i&&de))}else this.add_error({col:e,length:i,message:"Unknown instruction."})}parse_args(e,i,n){let o=!0,d=!0,_=0;for(let t=0;tO?this.add_error({col:d,length:_,message:`${v}-Bit integer can't be greater than ${O}.`}):n.push([{value:o,size:e},i])}parse_register(e,i){const{col:n,len:o,value:d}=e;d>255?this.add_error({col:n,length:o,message:"Invalid register reference, expected r0-r255."}):i.push([{value:d,size:1},e])}parse_bytes(e){const i=[];let n=e,o=0;for(;n.type===v.TokenType.Int&&(n.value<0?this.add_error({col:n.col,length:n.len,message:"Unsigned 8-bit integer can't be less than 0."}):n.value>255&&this.add_error({col:n.col,length:n.len,message:"Unsigned 8-bit integer can't be greater than 255."}),i.push(n.value),o!]*$/.test(i)?o.Ident:o.InvalidIdent;return n===o.Ident?{type:n,col:e,len:this.marked_len(),value:i}:{type:n,col:e,len:this.marked_len()}}}},ZPAt:function(e,i,n){"use strict";var o,d,_;Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(o=i.Kind||(i.Kind={})),i.TYPE_ANY={kind:o.Any},i.TYPE_BYTE={kind:o.Byte},i.TYPE_WORD={kind:o.Word},i.TYPE_DWORD={kind:o.DWord},i.TYPE_FLOAT={kind:o.Float},i.TYPE_LABEL={kind:o.Label},i.TYPE_I_LABEL={kind:o.ILabel},i.TYPE_D_LABEL={kind:o.DLabel},i.TYPE_S_LABEL={kind:o.SLabel},i.TYPE_STRING={kind:o.String},i.TYPE_I_LABEL_VAR={kind:o.ILabelVar},i.TYPE_REG_REF={kind:o.RegRef},i.TYPE_REG_REF_VAR={kind:o.RegRefVar},i.TYPE_POINTER={kind:o.Pointer},i.MIN_SIGNED_DWORD_VALUE=-Math.pow(2,31),i.MAX_SIGNED_DWORD_VALUE=Math.pow(2,31)-1,i.MIN_UNSIGNED_DWORD_VALUE=0,i.MAX_UNSIGNED_DWORD_VALUE=Math.pow(2,32)-1,i.MIN_DWORD_VALUE=i.MIN_SIGNED_DWORD_VALUE,i.MAX_DWORD_VALUE=i.MAX_UNSIGNED_DWORD_VALUE,function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(d=i.ParamAccess||(i.ParamAccess={}));class v{constructor(e,i,n){this.type=e,this.doc=i,this.access=n}}i.Param=v,function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(_=i.StackInteraction||(i.StackInteraction={})),i.OPCODES=[],i.OPCODES_BY_MNEMONIC=new Map;class t{constructor(e,i,n,o,d){this.code=e,this.mnemonic=i,this.doc=n,this.size=this.code<256?1:2,this.params=o,this.stack=d}}i.Opcode=t,t.NOP=i.OPCODES[0]=new t(0,"nop","No operation, does nothing.",[],void 0),t.RET=i.OPCODES[1]=new t(1,"ret","Returns control to caller.",[],void 0),t.SYNC=i.OPCODES[2]=new t(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),t.EXIT=i.OPCODES[3]=new t(3,"exit",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.THREAD=i.OPCODES[4]=new t(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.VA_START=i.OPCODES[5]=new t(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),t.VA_END=i.OPCODES[6]=new t(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),t.VA_CALL=i.OPCODES[7]=new t(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.LET=i.OPCODES[8]=new t(8,"let","Sets the first register's value to second one's value.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.LETI=i.OPCODES[9]=new t(9,"leti","Sets a register to the given value.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.LETB=i.OPCODES[10]=new t(10,"letb","Sets a register to the given value.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_BYTE,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_BYTE,void 0,void 0)],void 0),t.LETW=i.OPCODES[11]=new t(11,"letw","Sets a register to the given value.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_WORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_WORD,void 0,void 0)],void 0),t.LETA=i.OPCODES[12]=new t(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_POINTER,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.LETO=i.OPCODES[13]=new t(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_POINTER,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_LABEL,void 0,void 0)],void 0),t.UNKNOWN_0E=i.OPCODES[14]=new t(14,"unknown_0e",void 0,[],void 0),t.UNKNOWN_0F=i.OPCODES[15]=new t(15,"unknown_0f",void 0,[],void 0),t.SET=i.OPCODES[16]=new t(16,"set","Sets a register to 1.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.CLEAR=i.OPCODES[17]=new t(17,"clear","Sets a register to 0.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.REV=i.OPCODES[18]=new t(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.ReadWrite)]},void 0,void 0)],void 0),t.GSET=i.OPCODES[19]=new t(19,"gset",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GCLEAR=i.OPCODES[20]=new t(20,"gclear",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GREV=i.OPCODES[21]=new t(21,"grev",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GLET=i.OPCODES[22]=new t(22,"glet",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GGET=i.OPCODES[23]=new t(23,"gget","Sets a register to value of the given flag.",[new v(i.TYPE_WORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_WORD,void 0,d.Write)]},void 0,void 0)],void 0),t.ADD=i.OPCODES[24]=new t(24,"add",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.ADDI=i.OPCODES[25]=new t(25,"addi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.SUB=i.OPCODES[26]=new t(26,"sub",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.SUBI=i.OPCODES[27]=new t(27,"subi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.MUL=i.OPCODES[28]=new t(28,"mul",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.MULI=i.OPCODES[29]=new t(29,"muli",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.DIV=i.OPCODES[30]=new t(30,"div",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.DIVI=i.OPCODES[31]=new t(31,"divi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.AND=i.OPCODES[32]=new t(32,"and",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.ANDI=i.OPCODES[33]=new t(33,"andi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.OR=i.OPCODES[34]=new t(34,"or",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.ORI=i.OPCODES[35]=new t(35,"ori",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.XOR=i.OPCODES[36]=new t(36,"xor",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.XORI=i.OPCODES[37]=new t(37,"xori",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.MOD=i.OPCODES[38]=new t(38,"mod",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.MODI=i.OPCODES[39]=new t(39,"modi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.JMP=i.OPCODES[40]=new t(40,"jmp",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.CALL=i.OPCODES[41]=new t(41,"call",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMP_ON=i.OPCODES[42]=new t(42,"jmp_on",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_REG_REF_VAR,void 0,d.Read)],void 0),t.JMP_OFF=i.OPCODES[43]=new t(43,"jmp_off",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_REG_REF_VAR,void 0,d.Read)],void 0),t.JMP_E=i.OPCODES[44]=new t(44,"jmp_=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMPI_E=i.OPCODES[45]=new t(45,"jmpi_=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMP_NE=i.OPCODES[46]=new t(46,"jmp_!=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMPI_NE=i.OPCODES[47]=new t(47,"jmpi_!=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMP_G=i.OPCODES[48]=new t(48,"ujmp_>",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMPI_G=i.OPCODES[49]=new t(49,"ujmpi_>",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMP_G=i.OPCODES[50]=new t(50,"jmp_>",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMPI_G=i.OPCODES[51]=new t(51,"jmpi_>",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMP_L=i.OPCODES[52]=new t(52,"ujmp_<",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMPI_L=i.OPCODES[53]=new t(53,"ujmpi_<",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMP_L=i.OPCODES[54]=new t(54,"jmp_<",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMPI_L=i.OPCODES[55]=new t(55,"jmpi_<",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMP_GE=i.OPCODES[56]=new t(56,"ujmp_>=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMPI_GE=i.OPCODES[57]=new t(57,"ujmpi_>=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMP_GE=i.OPCODES[58]=new t(58,"jmp_>=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMPI_GE=i.OPCODES[59]=new t(59,"jmpi_>=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMP_LE=i.OPCODES[60]=new t(60,"ujmp_<=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.UJMPI_LE=i.OPCODES[61]=new t(61,"ujmpi_<=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMP_LE=i.OPCODES[62]=new t(62,"jmp_<=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.JMPI_LE=i.OPCODES[63]=new t(63,"jmpi_<=",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.SWITCH_JMP=i.OPCODES[64]=new t(64,"switch_jmp",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL_VAR,void 0,void 0)],void 0),t.SWITCH_CALL=i.OPCODES[65]=new t(65,"switch_call",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_I_LABEL_VAR,void 0,void 0)],void 0),t.STACK_PUSH=i.OPCODES[66]=new t(66,"stack_push",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.STACK_POP=i.OPCODES[67]=new t(67,"stack_pop",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.STACK_PUSHM=i.OPCODES[68]=new t(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new v(i.TYPE_REG_REF,void 0,d.Read),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.STACK_POPM=i.OPCODES[69]=new t(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new v(i.TYPE_REG_REF,void 0,d.Write),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.UNKNOWN_46=i.OPCODES[70]=new t(70,"unknown_46",void 0,[],void 0),t.UNKNOWN_47=i.OPCODES[71]=new t(71,"unknown_47",void 0,[],void 0),t.ARG_PUSHR=i.OPCODES[72]=new t(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],_.Push),t.ARG_PUSHL=i.OPCODES[73]=new t(73,"arg_pushl","Pushes the given value onto the stack.",[new v(i.TYPE_DWORD,void 0,void 0)],_.Push),t.ARG_PUSHB=i.OPCODES[74]=new t(74,"arg_pushb","Pushes the given value onto the stack.",[new v(i.TYPE_BYTE,void 0,void 0)],_.Push),t.ARG_PUSHW=i.OPCODES[75]=new t(75,"arg_pushw","Pushes the given value onto the stack.",[new v(i.TYPE_WORD,void 0,void 0)],_.Push),t.ARG_PUSHA=i.OPCODES[76]=new t(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],_.Push),t.ARG_PUSHO=i.OPCODES[77]=new t(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new v(i.TYPE_LABEL,void 0,void 0)],_.Push),t.ARG_PUSHS=i.OPCODES[78]=new t(78,"arg_pushs","Pushes the given value onto the stack.",[new v(i.TYPE_STRING,void 0,void 0)],_.Push),t.UNKNOWN_4F=i.OPCODES[79]=new t(79,"unknown_4f",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.MESSAGE=i.OPCODES[80]=new t(80,"message",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.LIST=i.OPCODES[81]=new t(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_BYTE,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.FADEIN=i.OPCODES[82]=new t(82,"fadein",void 0,[],void 0),t.FADEOUT=i.OPCODES[83]=new t(83,"fadeout",void 0,[],void 0),t.SE=i.OPCODES[84]=new t(84,"se",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BGM=i.OPCODES[85]=new t(85,"bgm",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_56=i.OPCODES[86]=new t(86,"unknown_56",void 0,[],void 0),t.UNKNOWN_57=i.OPCODES[87]=new t(87,"unknown_57",void 0,[],void 0),t.ENABLE=i.OPCODES[88]=new t(88,"enable",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.DISABLE=i.OPCODES[89]=new t(89,"disable",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.WINDOW_MSG=i.OPCODES[90]=new t(90,"window_msg",void 0,[new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.ADD_MSG=i.OPCODES[91]=new t(91,"add_msg",void 0,[new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.MESEND=i.OPCODES[92]=new t(92,"mesend",void 0,[],void 0),t.GETTIME=i.OPCODES[93]=new t(93,"gettime",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.WINEND=i.OPCODES[94]=new t(94,"winend",void 0,[],void 0),t.UNKNOWN_5F=i.OPCODES[95]=new t(95,"unknown_5f",void 0,[],void 0),t.NPC_CRT_V3=i.OPCODES[96]=new t(96,"npc_crt_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_STOP=i.OPCODES[97]=new t(97,"npc_stop",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.NPC_PLAY=i.OPCODES[98]=new t(98,"npc_play",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.NPC_KILL=i.OPCODES[99]=new t(99,"npc_kill",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.NPC_NONT=i.OPCODES[100]=new t(100,"npc_nont",void 0,[],void 0),t.NPC_TALK=i.OPCODES[101]=new t(101,"npc_talk",void 0,[],void 0),t.NPC_CRP_V3=i.OPCODES[102]=new t(102,"npc_crp_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read),new v(i.TYPE_ANY,void 0,d.Read),new v(i.TYPE_ANY,void 0,d.Read),new v(i.TYPE_I_LABEL,void 0,d.Read),new v(i.TYPE_ANY,void 0,d.Read),new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_67=i.OPCODES[103]=new t(103,"unknown_67",void 0,[],void 0),t.CREATE_PIPE=i.OPCODES[104]=new t(104,"create_pipe",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.P_HPSTAT_V3=i.OPCODES[105]=new t(105,"p_hpstat_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.P_DEAD_V3=i.OPCODES[106]=new t(106,"p_dead_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.P_DISABLEWARP=i.OPCODES[107]=new t(107,"p_disablewarp",void 0,[],void 0),t.P_ENABLEWARP=i.OPCODES[108]=new t(108,"p_enablewarp",void 0,[],void 0),t.P_MOVE_V3=i.OPCODES[109]=new t(109,"p_move_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.P_LOOK=i.OPCODES[110]=new t(110,"p_look",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_6F=i.OPCODES[111]=new t(111,"unknown_6f",void 0,[],void 0),t.P_ACTION_DISABLE=i.OPCODES[112]=new t(112,"p_action_disable",void 0,[],void 0),t.P_ACTION_ENABLE=i.OPCODES[113]=new t(113,"p_action_enable",void 0,[],void 0),t.DISABLE_MOVEMENT1=i.OPCODES[114]=new t(114,"disable_movement1",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.ENABLE_MOVEMENT1=i.OPCODES[115]=new t(115,"enable_movement1",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.P_NONCOL=i.OPCODES[116]=new t(116,"p_noncol",void 0,[],void 0),t.P_COL=i.OPCODES[117]=new t(117,"p_col",void 0,[],void 0),t.P_SETPOS=i.OPCODES[118]=new t(118,"p_setpos","Sets a player's position.",[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"X coordinate.",d.Read),new v(i.TYPE_DWORD,"Y coordinate.",d.Read),new v(i.TYPE_DWORD,"Z coordinate.",d.Read),new v(i.TYPE_DWORD,"Y-axis rotation.",d.Read)]},void 0,void 0)],_.Pop),t.P_RETURN_GUILD=i.OPCODES[119]=new t(119,"p_return_guild",void 0,[],void 0),t.P_TALK_GUILD=i.OPCODES[120]=new t(120,"p_talk_guild",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.NPC_TALK_PL_V3=i.OPCODES[121]=new t(121,"npc_talk_pl_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_TALK_KILL=i.OPCODES[122]=new t(122,"npc_talk_kill",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.NPC_CRTPK_V3=i.OPCODES[123]=new t(123,"npc_crtpk_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_CRPPK_V3=i.OPCODES[124]=new t(124,"npc_crppk_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_CRPTALK_V3=i.OPCODES[125]=new t(125,"npc_crptalk_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.P_LOOK_AT_V1=i.OPCODES[126]=new t(126,"p_look_at_v1",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.NPC_CRP_ID_V3=i.OPCODES[127]=new t(127,"npc_crp_id_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.CAM_QUAKE=i.OPCODES[128]=new t(128,"cam_quake",void 0,[],void 0),t.CAM_ADJ=i.OPCODES[129]=new t(129,"cam_adj",void 0,[],void 0),t.CAM_ZMIN=i.OPCODES[130]=new t(130,"cam_zmin",void 0,[],void 0),t.CAM_ZMOUT=i.OPCODES[131]=new t(131,"cam_zmout",void 0,[],void 0),t.CAM_PAN_V3=i.OPCODES[132]=new t(132,"cam_pan_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.GAME_LEV_SUPER=i.OPCODES[133]=new t(133,"game_lev_super",void 0,[],void 0),t.GAME_LEV_RESET=i.OPCODES[134]=new t(134,"game_lev_reset",void 0,[],void 0),t.POS_PIPE_V3=i.OPCODES[135]=new t(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"X coordinate.",d.Read),new v(i.TYPE_DWORD,"Y coordinate.",d.Read),new v(i.TYPE_DWORD,"Z coordinate.",d.Read),new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.IF_ZONE_CLEAR=i.OPCODES[136]=new t(136,"if_zone_clear",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.CHK_ENE_NUM=i.OPCODES[137]=new t(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNHIDE_OBJ=i.OPCODES[138]=new t(138,"unhide_obj",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.UNHIDE_ENE=i.OPCODES[139]=new t(139,"unhide_ene",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.AT_COORDS_CALL=i.OPCODES[140]=new t(140,"at_coords_call",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_I_LABEL,void 0,d.Read)]},void 0,void 0)],void 0),t.AT_COORDS_TALK=i.OPCODES[141]=new t(141,"at_coords_talk",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_I_LABEL,void 0,d.Read)]},void 0,void 0)],void 0),t.COL_NPCIN=i.OPCODES[142]=new t(142,"col_npcin",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_I_LABEL,void 0,d.Read)]},void 0,void 0)],void 0),t.COL_NPCINR=i.OPCODES[143]=new t(143,"col_npcinr",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.SWITCH_ON=i.OPCODES[144]=new t(144,"switch_on",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SWITCH_OFF=i.OPCODES[145]=new t(145,"switch_off",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.PLAYBGM_EPI=i.OPCODES[146]=new t(146,"playbgm_epi",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SET_MAINWARP=i.OPCODES[147]=new t(147,"set_mainwarp",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SET_OBJ_PARAM=i.OPCODES[148]=new t(148,"set_obj_param","Creates a targetable object.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"X coordinate.",d.Read),new v(i.TYPE_DWORD,"Y coordinate.",d.Read),new v(i.TYPE_DWORD,"Z coordinate.",d.Read),new v(i.TYPE_DWORD,"Collision radius.",d.Read),new v(i.TYPE_I_LABEL,"Function label.",d.Read),new v(i.TYPE_DWORD,"Vertical position of the cursor.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},"Object handle.",void 0)],void 0),t.SET_FLOOR_HANDLER=i.OPCODES[149]=new t(149,"set_floor_handler",void 0,[new v(i.TYPE_DWORD,"Floor number.",void 0),new v(i.TYPE_I_LABEL,"Handler function label.",void 0)],_.Pop),t.CLR_FLOOR_HANDLER=i.OPCODES[150]=new t(150,"clr_floor_handler",void 0,[new v(i.TYPE_DWORD,"Floor number.",void 0)],_.Pop),t.COL_PLINAW=i.OPCODES[151]=new t(151,"col_plinaw",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.HUD_HIDE=i.OPCODES[152]=new t(152,"hud_hide",void 0,[],void 0),t.HUD_SHOW=i.OPCODES[153]=new t(153,"hud_show",void 0,[],void 0),t.CINE_ENABLE=i.OPCODES[154]=new t(154,"cine_enable",void 0,[],void 0),t.CINE_DISABLE=i.OPCODES[155]=new t(155,"cine_disable",void 0,[],void 0),t.UNKNOWN_9C=i.OPCODES[156]=new t(156,"unknown_9c",void 0,[],void 0),t.UNKNOWN_9D=i.OPCODES[157]=new t(157,"unknown_9d",void 0,[],void 0),t.UNKNOWN_9E=i.OPCODES[158]=new t(158,"unknown_9e",void 0,[],void 0),t.UNKNOWN_9F=i.OPCODES[159]=new t(159,"unknown_9f",void 0,[],void 0),t.UNKNOWN_A0=i.OPCODES[160]=new t(160,"unknown_a0",void 0,[],void 0),t.SET_QT_FAILURE=i.OPCODES[161]=new t(161,"set_qt_failure",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.SET_QT_SUCCESS=i.OPCODES[162]=new t(162,"set_qt_success",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.CLR_QT_FAILURE=i.OPCODES[163]=new t(163,"clr_qt_failure",void 0,[],void 0),t.CLR_QT_SUCCESS=i.OPCODES[164]=new t(164,"clr_qt_success",void 0,[],void 0),t.SET_QT_CANCEL=i.OPCODES[165]=new t(165,"set_qt_cancel",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.CLR_QT_CANCEL=i.OPCODES[166]=new t(166,"clr_qt_cancel",void 0,[],void 0),t.UNKNOWN_A7=i.OPCODES[167]=new t(167,"unknown_a7",void 0,[],void 0),t.PL_WALK_V3=i.OPCODES[168]=new t(168,"pl_walk_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_A9=i.OPCODES[169]=new t(169,"unknown_a9",void 0,[],void 0),t.UNKNOWN_AA=i.OPCODES[170]=new t(170,"unknown_aa",void 0,[],void 0),t.UNKNOWN_AB=i.OPCODES[171]=new t(171,"unknown_ab",void 0,[],void 0),t.UNKNOWN_AC=i.OPCODES[172]=new t(172,"unknown_ac",void 0,[],void 0),t.UNKNOWN_AD=i.OPCODES[173]=new t(173,"unknown_ad",void 0,[],void 0),t.UNKNOWN_AE=i.OPCODES[174]=new t(174,"unknown_ae",void 0,[],void 0),t.UNKNOWN_AF=i.OPCODES[175]=new t(175,"unknown_af",void 0,[],void 0),t.PL_ADD_MESETA=i.OPCODES[176]=new t(176,"pl_add_meseta",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.THREAD_STG=i.OPCODES[177]=new t(177,"thread_stg",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.DEL_OBJ_PARAM=i.OPCODES[178]=new t(178,"del_obj_param",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},"Object handle.",void 0)],void 0),t.ITEM_CREATE=i.OPCODES[179]=new t(179,"item_create",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.ITEM_CREATE2=i.OPCODES[180]=new t(180,"item_create2",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.ITEM_DELETE=i.OPCODES[181]=new t(181,"item_delete",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.ITEM_DELETE2=i.OPCODES[182]=new t(182,"item_delete2","Deletes an item from the player's inventory.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.ITEM_CHECK=i.OPCODES[183]=new t(183,"item_check",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.SETEVT=i.OPCODES[184]=new t(184,"setevt",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.GET_DIFFLVL=i.OPCODES[185]=new t(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.SET_QT_EXIT=i.OPCODES[186]=new t(186,"set_qt_exit",void 0,[new v(i.TYPE_I_LABEL,void 0,void 0)],void 0),t.CLR_QT_EXIT=i.OPCODES[187]=new t(187,"clr_qt_exit",void 0,[],void 0),t.UNKNOWN_BC=i.OPCODES[188]=new t(188,"unknown_bc",void 0,[],void 0),t.UNKNOWN_BD=i.OPCODES[189]=new t(189,"unknown_bd",void 0,[],void 0),t.UNKNOWN_BE=i.OPCODES[190]=new t(190,"unknown_be",void 0,[],void 0),t.UNKNOWN_BF=i.OPCODES[191]=new t(191,"unknown_bf",void 0,[],void 0),t.PARTICLE_V3=i.OPCODES[192]=new t(192,"particle_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_TEXT=i.OPCODES[193]=new t(193,"npc_text",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.NPC_CHKWARP=i.OPCODES[194]=new t(194,"npc_chkwarp",void 0,[],void 0),t.PL_PKOFF=i.OPCODES[195]=new t(195,"pl_pkoff",void 0,[],void 0),t.MAP_DESIGNATE=i.OPCODES[196]=new t(196,"map_designate",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.MASTERKEY_ON=i.OPCODES[197]=new t(197,"masterkey_on",void 0,[],void 0),t.MASTERKEY_OFF=i.OPCODES[198]=new t(198,"masterkey_off",void 0,[],void 0),t.WINDOW_TIME=i.OPCODES[199]=new t(199,"window_time",void 0,[],void 0),t.WINEND_TIME=i.OPCODES[200]=new t(200,"winend_time",void 0,[],void 0),t.WINSET_TIME=i.OPCODES[201]=new t(201,"winset_time",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GETMTIME=i.OPCODES[202]=new t(202,"getmtime",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.SET_QUEST_BOARD_HANDLER=i.OPCODES[203]=new t(203,"set_quest_board_handler",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.CLEAR_QUEST_BOARD_HANDLER=i.OPCODES[204]=new t(204,"clear_quest_board_handler",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.PARTICLE_ID_V3=i.OPCODES[205]=new t(205,"particle_id_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_CRPTALK_ID_V3=i.OPCODES[206]=new t(206,"npc_crptalk_id_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.NPC_LANG_CLEAN=i.OPCODES[207]=new t(207,"npc_lang_clean",void 0,[],void 0),t.PL_PKON=i.OPCODES[208]=new t(208,"pl_pkon",void 0,[],void 0),t.PL_CHK_ITEM2=i.OPCODES[209]=new t(209,"pl_chk_item2",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.ENABLE_MAINMENU=i.OPCODES[210]=new t(210,"enable_mainmenu",void 0,[],void 0),t.DISABLE_MAINMENU=i.OPCODES[211]=new t(211,"disable_mainmenu",void 0,[],void 0),t.START_BATTLEBGM=i.OPCODES[212]=new t(212,"start_battlebgm",void 0,[],void 0),t.END_BATTLEBGM=i.OPCODES[213]=new t(213,"end_battlebgm",void 0,[],void 0),t.DISP_MSG_QB=i.OPCODES[214]=new t(214,"disp_msg_qb",void 0,[new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.CLOSE_MSG_QB=i.OPCODES[215]=new t(215,"close_msg_qb",void 0,[],void 0),t.SET_EVENTFLAG_V3=i.OPCODES[216]=new t(216,"set_eventflag_v3",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SYNC_LETI=i.OPCODES[217]=new t(217,"sync_leti",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.SET_RETURNHUNTER=i.OPCODES[218]=new t(218,"set_returnhunter",void 0,[],void 0),t.SET_RETURNCITY=i.OPCODES[219]=new t(219,"set_returncity",void 0,[],void 0),t.LOAD_PVR=i.OPCODES[220]=new t(220,"load_pvr",void 0,[],void 0),t.LOAD_MIDI=i.OPCODES[221]=new t(221,"load_midi",void 0,[],void 0),t.UNKNOWN_DE=i.OPCODES[222]=new t(222,"unknown_de",void 0,[],void 0),t.NPC_PARAM_V3=i.OPCODES[223]=new t(223,"npc_param_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.PAD_DRAGON=i.OPCODES[224]=new t(224,"pad_dragon",void 0,[],void 0),t.CLEAR_MAINWARP=i.OPCODES[225]=new t(225,"clear_mainwarp",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.PCAM_PARAM_V3=i.OPCODES[226]=new t(226,"pcam_param_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.START_SETEVT_V3=i.OPCODES[227]=new t(227,"start_setevt_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.WARP_ON=i.OPCODES[228]=new t(228,"warp_on",void 0,[],void 0),t.WARP_OFF=i.OPCODES[229]=new t(229,"warp_off",void 0,[],void 0),t.GET_SLOTNUMBER=i.OPCODES[230]=new t(230,"get_slotnumber",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_SERVERNUMBER=i.OPCODES[231]=new t(231,"get_servernumber",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.SET_EVENTFLAG2=i.OPCODES[232]=new t(232,"set_eventflag2",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],_.Pop),t.RES=i.OPCODES[233]=new t(233,"res",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_EA=i.OPCODES[234]=new t(234,"unknown_ea",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.ENABLE_BGMCTRL=i.OPCODES[235]=new t(235,"enable_bgmctrl",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SW_SEND=i.OPCODES[236]=new t(236,"sw_send",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.CREATE_BGMCTRL=i.OPCODES[237]=new t(237,"create_bgmctrl",void 0,[],void 0),t.PL_ADD_MESETA2=i.OPCODES[238]=new t(238,"pl_add_meseta2",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SYNC_REGISTER=i.OPCODES[239]=new t(239,"sync_register",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SEND_REGWORK=i.OPCODES[240]=new t(240,"send_regwork",void 0,[],void 0),t.LETI_FIXED_CAMERA_V3=i.OPCODES[241]=new t(241,"leti_fixed_camera_v3",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.DEFAULT_CAMERA_POS1=i.OPCODES[242]=new t(242,"default_camera_pos1",void 0,[],void 0),t.UNKNOWN_F3=i.OPCODES[243]=new t(243,"unknown_f3",void 0,[],void 0),t.UNKNOWN_F4=i.OPCODES[244]=new t(244,"unknown_f4",void 0,[],void 0),t.UNKNOWN_F5=i.OPCODES[245]=new t(245,"unknown_f5",void 0,[],void 0),t.UNKNOWN_F6=i.OPCODES[246]=new t(246,"unknown_f6",void 0,[],void 0),t.UNKNOWN_F7=i.OPCODES[247]=new t(247,"unknown_f7",void 0,[],void 0),t.UNKNOWN_F8=i.OPCODES[248]=new t(248,"unknown_f8",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F9=i.OPCODES[249]=new t(249,"unknown_f9",void 0,[],void 0),t.GET_GC_NUMBER=i.OPCODES[250]=new t(250,"get_gc_number",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_FB=i.OPCODES[251]=new t(251,"unknown_fb",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.UNKNOWN_FC=i.OPCODES[252]=new t(252,"unknown_fc",void 0,[],void 0),t.UNKNOWN_FD=i.OPCODES[253]=new t(253,"unknown_fd",void 0,[],void 0),t.UNKNOWN_FE=i.OPCODES[254]=new t(254,"unknown_fe",void 0,[],void 0),t.UNKNOWN_FF=i.OPCODES[255]=new t(255,"unknown_ff",void 0,[],void 0),t.UNKNOWN_F800=i.OPCODES[63488]=new t(63488,"unknown_f800",void 0,[],void 0),t.SET_CHAT_CALLBACK=i.OPCODES[63489]=new t(63489,"set_chat_callback",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.UNKNOWN_F802=i.OPCODES[63490]=new t(63490,"unknown_f802",void 0,[],void 0),t.UNKNOWN_F803=i.OPCODES[63491]=new t(63491,"unknown_f803",void 0,[],void 0),t.UNKNOWN_F804=i.OPCODES[63492]=new t(63492,"unknown_f804",void 0,[],void 0),t.UNKNOWN_F805=i.OPCODES[63493]=new t(63493,"unknown_f805",void 0,[],void 0),t.UNKNOWN_F806=i.OPCODES[63494]=new t(63494,"unknown_f806",void 0,[],void 0),t.UNKNOWN_F807=i.OPCODES[63495]=new t(63495,"unknown_f807",void 0,[],void 0),t.GET_DIFFICULTY_LEVEL2=i.OPCODES[63496]=new t(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_NUMBER_OF_PLAYER1=i.OPCODES[63497]=new t(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_COORD_OF_PLAYER=i.OPCODES[63498]=new t(63498,"get_coord_of_player","Retrieves a player's position.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"X coordinate.",d.Write),new v(i.TYPE_DWORD,"Y coordinate.",d.Write),new v(i.TYPE_DWORD,"Z coordinate.",d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.ENABLE_MAP=i.OPCODES[63499]=new t(63499,"enable_map",void 0,[],void 0),t.DISABLE_MAP=i.OPCODES[63500]=new t(63500,"disable_map",void 0,[],void 0),t.MAP_DESIGNATE_EX=i.OPCODES[63501]=new t(63501,"map_designate_ex",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F80E=i.OPCODES[63502]=new t(63502,"unknown_f80e",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F80F=i.OPCODES[63503]=new t(63503,"unknown_f80f",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BA_INITIAL_FLOOR=i.OPCODES[63504]=new t(63504,"ba_initial_floor",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SET_BA_RULES=i.OPCODES[63505]=new t(63505,"set_ba_rules",void 0,[],void 0),t.UNKNOWN_F812=i.OPCODES[63506]=new t(63506,"unknown_f812",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F813=i.OPCODES[63507]=new t(63507,"unknown_f813",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F814=i.OPCODES[63508]=new t(63508,"unknown_f814",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F815=i.OPCODES[63509]=new t(63509,"unknown_f815",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F816=i.OPCODES[63510]=new t(63510,"unknown_f816",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F817=i.OPCODES[63511]=new t(63511,"unknown_f817",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F818=i.OPCODES[63512]=new t(63512,"unknown_f818",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F819=i.OPCODES[63513]=new t(63513,"unknown_f819",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F81A=i.OPCODES[63514]=new t(63514,"unknown_f81a",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F81B=i.OPCODES[63515]=new t(63515,"unknown_f81b",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BA_DISP_MSG=i.OPCODES[63516]=new t(63516,"ba_disp_msg",void 0,[new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.DEATH_LVL_UP=i.OPCODES[63517]=new t(63517,"death_lvl_up",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.DEATH_TECH_LVL_UP=i.OPCODES[63518]=new t(63518,"death_tech_lvl_up",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F81F=i.OPCODES[63519]=new t(63519,"unknown_f81f",void 0,[],void 0),t.CMODE_STAGE=i.OPCODES[63520]=new t(63520,"cmode_stage",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F821=i.OPCODES[63521]=new t(63521,"unknown_f821",void 0,[],void 0),t.UNKNOWN_F822=i.OPCODES[63522]=new t(63522,"unknown_f822",void 0,[],void 0),t.UNKNOWN_F823=i.OPCODES[63523]=new t(63523,"unknown_f823",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F824=i.OPCODES[63524]=new t(63524,"unknown_f824",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.EXP_MULTIPLICATION=i.OPCODES[63525]=new t(63525,"exp_multiplication",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.EXP_DIVISION=i.OPCODES[63526]=new t(63526,"exp_division",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_USER_IS_DEAD=i.OPCODES[63527]=new t(63527,"get_user_is_dead",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.GO_FLOOR=i.OPCODES[63528]=new t(63528,"go_floor","Sends a player to the given floor.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Floor ID.",d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F829=i.OPCODES[63529]=new t(63529,"unknown_f829",void 0,[],void 0),t.UNKNOWN_F82A=i.OPCODES[63530]=new t(63530,"unknown_f82a",void 0,[],void 0),t.UNLOCK_DOOR2=i.OPCODES[63531]=new t(63531,"unlock_door2",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.LOCK_DOOR2=i.OPCODES[63532]=new t(63532,"lock_door2",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.IF_SWITCH_NOT_PRESSED=i.OPCODES[63533]=new t(63533,"if_switch_not_pressed",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.IF_SWITCH_PRESSED=i.OPCODES[63534]=new t(63534,"if_switch_pressed",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Floor ID.",d.Read),new v(i.TYPE_DWORD,"Switch ID.",d.Read),new v(i.TYPE_DWORD,"Will be set to 1 if the switch is pressed, 0 otherwise.",d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F82F=i.OPCODES[63535]=new t(63535,"unknown_f82f",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.CONTROL_DRAGON=i.OPCODES[63536]=new t(63536,"control_dragon",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.RELEASE_DRAGON=i.OPCODES[63537]=new t(63537,"release_dragon",void 0,[],void 0),t.UNKNOWN_F832=i.OPCODES[63538]=new t(63538,"unknown_f832",void 0,[],void 0),t.UNKNOWN_F833=i.OPCODES[63539]=new t(63539,"unknown_f833",void 0,[],void 0),t.UNKNOWN_F834=i.OPCODES[63540]=new t(63540,"unknown_f834",void 0,[],void 0),t.UNKNOWN_F835=i.OPCODES[63541]=new t(63541,"unknown_f835",void 0,[],void 0),t.UNKNOWN_F836=i.OPCODES[63542]=new t(63542,"unknown_f836",void 0,[],void 0),t.UNKNOWN_F837=i.OPCODES[63543]=new t(63543,"unknown_f837",void 0,[],void 0),t.SHRINK=i.OPCODES[63544]=new t(63544,"shrink",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.UNSHRINK=i.OPCODES[63545]=new t(63545,"unshrink",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F83A=i.OPCODES[63546]=new t(63546,"unknown_f83a",void 0,[],void 0),t.UNKNOWN_F83B=i.OPCODES[63547]=new t(63547,"unknown_f83b",void 0,[],void 0),t.DISPLAY_CLOCK2=i.OPCODES[63548]=new t(63548,"display_clock2",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F83D=i.OPCODES[63549]=new t(63549,"unknown_f83d",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.DELETE_AREA_TITLE=i.OPCODES[63550]=new t(63550,"delete_area_title",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F83F=i.OPCODES[63551]=new t(63551,"unknown_f83f",void 0,[],void 0),t.LOAD_NPC_DATA=i.OPCODES[63552]=new t(63552,"load_npc_data",void 0,[],void 0),t.GET_NPC_DATA=i.OPCODES[63553]=new t(63553,"get_npc_data",void 0,[new v(i.TYPE_D_LABEL,void 0,void 0)],void 0),t.UNKNOWN_F842=i.OPCODES[63554]=new t(63554,"unknown_f842",void 0,[],void 0),t.UNKNOWN_F843=i.OPCODES[63555]=new t(63555,"unknown_f843",void 0,[],void 0),t.UNKNOWN_F844=i.OPCODES[63556]=new t(63556,"unknown_f844",void 0,[],void 0),t.UNKNOWN_F845=i.OPCODES[63557]=new t(63557,"unknown_f845",void 0,[],void 0),t.UNKNOWN_F846=i.OPCODES[63558]=new t(63558,"unknown_f846",void 0,[],void 0),t.UNKNOWN_F847=i.OPCODES[63559]=new t(63559,"unknown_f847",void 0,[],void 0),t.GIVE_DAMAGE_SCORE=i.OPCODES[63560]=new t(63560,"give_damage_score",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.TAKE_DAMAGE_SCORE=i.OPCODES[63561]=new t(63561,"take_damage_score",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNK_SCORE_F84A=i.OPCODES[63562]=new t(63562,"unk_score_f84a",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNK_SCORE_F84B=i.OPCODES[63563]=new t(63563,"unk_score_f84b",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.KILL_SCORE=i.OPCODES[63564]=new t(63564,"kill_score",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.DEATH_SCORE=i.OPCODES[63565]=new t(63565,"death_score",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNK_SCORE_F84E=i.OPCODES[63566]=new t(63566,"unk_score_f84e",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.ENEMY_DEATH_SCORE=i.OPCODES[63567]=new t(63567,"enemy_death_score",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.MESETA_SCORE=i.OPCODES[63568]=new t(63568,"meseta_score",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F851=i.OPCODES[63569]=new t(63569,"unknown_f851",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F852=i.OPCODES[63570]=new t(63570,"unknown_f852",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.REVERSE_WARPS=i.OPCODES[63571]=new t(63571,"reverse_warps",void 0,[],void 0),t.UNREVERSE_WARPS=i.OPCODES[63572]=new t(63572,"unreverse_warps",void 0,[],void 0),t.SET_ULT_MAP=i.OPCODES[63573]=new t(63573,"set_ult_map",void 0,[],void 0),t.UNSET_ULT_MAP=i.OPCODES[63574]=new t(63574,"unset_ult_map",void 0,[],void 0),t.SET_AREA_TITLE=i.OPCODES[63575]=new t(63575,"set_area_title",void 0,[new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.UNKNOWN_F858=i.OPCODES[63576]=new t(63576,"unknown_f858",void 0,[],void 0),t.UNKNOWN_F859=i.OPCODES[63577]=new t(63577,"unknown_f859",void 0,[],void 0),t.EQUIP_ITEM=i.OPCODES[63578]=new t(63578,"equip_item",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.UNEQUIP_ITEM=i.OPCODES[63579]=new t(63579,"unequip_item",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F85C=i.OPCODES[63580]=new t(63580,"unknown_f85c",void 0,[],void 0),t.UNKNOWN_F85D=i.OPCODES[63581]=new t(63581,"unknown_f85d",void 0,[],void 0),t.UNKNOWN_F85E=i.OPCODES[63582]=new t(63582,"unknown_f85e",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F85F=i.OPCODES[63583]=new t(63583,"unknown_f85f",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F860=i.OPCODES[63584]=new t(63584,"unknown_f860",void 0,[],void 0),t.UNKNOWN_F861=i.OPCODES[63585]=new t(63585,"unknown_f861",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F862=i.OPCODES[63586]=new t(63586,"unknown_f862",void 0,[],void 0),t.UNKNOWN_F863=i.OPCODES[63587]=new t(63587,"unknown_f863",void 0,[],void 0),t.CMODE_RANK=i.OPCODES[63588]=new t(63588,"cmode_rank",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.AWARD_ITEM_NAME=i.OPCODES[63589]=new t(63589,"award_item_name",void 0,[],void 0),t.AWARD_ITEM_SELECT=i.OPCODES[63590]=new t(63590,"award_item_select",void 0,[],void 0),t.AWARD_ITEM_GIVE_TO=i.OPCODES[63591]=new t(63591,"award_item_give_to",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F868=i.OPCODES[63592]=new t(63592,"unknown_f868",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F869=i.OPCODES[63593]=new t(63593,"unknown_f869",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.ITEM_CREATE_CMODE=i.OPCODES[63594]=new t(63594,"item_create_cmode",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F86B=i.OPCODES[63595]=new t(63595,"unknown_f86b",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.AWARD_ITEM_OK=i.OPCODES[63596]=new t(63596,"award_item_ok",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F86D=i.OPCODES[63597]=new t(63597,"unknown_f86d",void 0,[],void 0),t.UNKNOWN_F86E=i.OPCODES[63598]=new t(63598,"unknown_f86e",void 0,[],void 0),t.BA_SET_LIVES=i.OPCODES[63599]=new t(63599,"ba_set_lives",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BA_SET_TECH_LVL=i.OPCODES[63600]=new t(63600,"ba_set_tech_lvl",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BA_SET_LVL=i.OPCODES[63601]=new t(63601,"ba_set_lvl",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BA_SET_TIME_LIMIT=i.OPCODES[63602]=new t(63602,"ba_set_time_limit",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BOSS_IS_DEAD=i.OPCODES[63603]=new t(63603,"boss_is_dead",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F874=i.OPCODES[63604]=new t(63604,"unknown_f874",void 0,[],void 0),t.UNKNOWN_F875=i.OPCODES[63605]=new t(63605,"unknown_f875",void 0,[],void 0),t.UNKNOWN_F876=i.OPCODES[63606]=new t(63606,"unknown_f876",void 0,[],void 0),t.ENABLE_TECHS=i.OPCODES[63607]=new t(63607,"enable_techs","Enables technique use for the given player.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.DISABLE_TECHS=i.OPCODES[63608]=new t(63608,"disable_techs","Disables technique use for the given player.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.GET_GENDER=i.OPCODES[63609]=new t(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player gender.",d.Write)]},void 0,void 0)],void 0),t.GET_CHARA_CLASS=i.OPCODES[63610]=new t(63610,"get_chara_class","Retrieves the player's race and character class.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player race. 0 If human, 1 if newman, 2 if cast.",d.Write),new v(i.TYPE_DWORD,"Player class. 0 If hunter, 1 if ranger, 2 if force.",d.Write)]},void 0,void 0)],void 0),t.TAKE_SLOT_MESETA=i.OPCODES[63611]=new t(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read),new v(i.TYPE_DWORD,"Amount of meseta to take.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Will be set to 1 if the meseta was taken, 0 otherwise.",d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F87C=i.OPCODES[63612]=new t(63612,"unknown_f87c",void 0,[],void 0),t.UNKNOWN_F87D=i.OPCODES[63613]=new t(63613,"unknown_f87d",void 0,[],void 0),t.UNKNOWN_F87E=i.OPCODES[63614]=new t(63614,"unknown_f87e",void 0,[],void 0),t.READ_GUILDCARD_FLAG=i.OPCODES[63615]=new t(63615,"read_guildcard_flag",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F880=i.OPCODES[63616]=new t(63616,"unknown_f880",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_PL_NAME=i.OPCODES[63617]=new t(63617,"get_pl_name","Sets the value of to the given player's name.",[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F882=i.OPCODES[63618]=new t(63618,"unknown_f882",void 0,[],void 0),t.UNKNOWN_F883=i.OPCODES[63619]=new t(63619,"unknown_f883",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F884=i.OPCODES[63620]=new t(63620,"unknown_f884",void 0,[],void 0),t.UNKNOWN_F885=i.OPCODES[63621]=new t(63621,"unknown_f885",void 0,[],void 0),t.UNKNOWN_F886=i.OPCODES[63622]=new t(63622,"unknown_f886",void 0,[],void 0),t.UNKNOWN_F887=i.OPCODES[63623]=new t(63623,"unknown_f887",void 0,[],void 0),t.UNKNOWN_F888=i.OPCODES[63624]=new t(63624,"unknown_f888",void 0,[],void 0),t.UNKNOWN_F889=i.OPCODES[63625]=new t(63625,"unknown_f889",void 0,[],void 0),t.GET_PLAYER_STATUS=i.OPCODES[63626]=new t(63626,"get_player_status",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.SEND_MAIL=i.OPCODES[63627]=new t(63627,"send_mail",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.ONLINE_CHECK=i.OPCODES[63628]=new t(63628,"online_check",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.CHL_SET_TIMERECORD=i.OPCODES[63629]=new t(63629,"chl_set_timerecord",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.CHL_GET_TIMERECORD=i.OPCODES[63630]=new t(63630,"chl_get_timerecord",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F88F=i.OPCODES[63631]=new t(63631,"unknown_f88f",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F890=i.OPCODES[63632]=new t(63632,"unknown_f890",void 0,[],void 0),t.LOAD_ENEMY_DATA=i.OPCODES[63633]=new t(63633,"load_enemy_data",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.GET_PHYSICAL_DATA=i.OPCODES[63634]=new t(63634,"get_physical_data",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GET_ATTACK_DATA=i.OPCODES[63635]=new t(63635,"get_attack_data",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GET_RESIST_DATA=i.OPCODES[63636]=new t(63636,"get_resist_data",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.GET_MOVEMENT_DATA=i.OPCODES[63637]=new t(63637,"get_movement_data",void 0,[new v(i.TYPE_WORD,void 0,void 0)],void 0),t.UNKNOWN_F896=i.OPCODES[63638]=new t(63638,"unknown_f896",void 0,[],void 0),t.UNKNOWN_F897=i.OPCODES[63639]=new t(63639,"unknown_f897",void 0,[],void 0),t.SHIFT_LEFT=i.OPCODES[63640]=new t(63640,"shift_left",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.SHIFT_RIGHT=i.OPCODES[63641]=new t(63641,"shift_right",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.GET_RANDOM=i.OPCODES[63642]=new t(63642,"get_random",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.RESET_MAP=i.OPCODES[63643]=new t(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),t.DISP_CHL_RETRY_MENU=i.OPCODES[63644]=new t(63644,"disp_chl_retry_menu",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.CHL_REVERSER=i.OPCODES[63645]=new t(63645,"chl_reverser",void 0,[],void 0),t.UNKNOWN_F89E=i.OPCODES[63646]=new t(63646,"unknown_f89e",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F89F=i.OPCODES[63647]=new t(63647,"unknown_f89f",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F8A0=i.OPCODES[63648]=new t(63648,"unknown_f8a0",void 0,[],void 0),t.UNKNOWN_F8A1=i.OPCODES[63649]=new t(63649,"unknown_f8a1",void 0,[],void 0),t.UNKNOWN_F8A2=i.OPCODES[63650]=new t(63650,"unknown_f8a2",void 0,[],void 0),t.UNKNOWN_F8A3=i.OPCODES[63651]=new t(63651,"unknown_f8a3",void 0,[],void 0),t.UNKNOWN_F8A4=i.OPCODES[63652]=new t(63652,"unknown_f8a4",void 0,[],void 0),t.UNKNOWN_F8A5=i.OPCODES[63653]=new t(63653,"unknown_f8a5",void 0,[],void 0),t.UNKNOWN_F8A6=i.OPCODES[63654]=new t(63654,"unknown_f8a6",void 0,[],void 0),t.UNKNOWN_F8A7=i.OPCODES[63655]=new t(63655,"unknown_f8a7",void 0,[],void 0),t.UNKNOWN_F8A8=i.OPCODES[63656]=new t(63656,"unknown_f8a8",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F8A9=i.OPCODES[63657]=new t(63657,"unknown_f8a9",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F8AA=i.OPCODES[63658]=new t(63658,"unknown_f8aa",void 0,[],void 0),t.UNKNOWN_F8AB=i.OPCODES[63659]=new t(63659,"unknown_f8ab",void 0,[],void 0),t.UNKNOWN_F8AC=i.OPCODES[63660]=new t(63660,"unknown_f8ac",void 0,[],void 0),t.GET_NUMBER_OF_PLAYER2=i.OPCODES[63661]=new t(63661,"get_number_of_player2",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F8AE=i.OPCODES[63662]=new t(63662,"unknown_f8ae",void 0,[],void 0),t.UNKNOWN_F8AF=i.OPCODES[63663]=new t(63663,"unknown_f8af",void 0,[],void 0),t.UNKNOWN_F8B0=i.OPCODES[63664]=new t(63664,"unknown_f8b0",void 0,[],void 0),t.UNKNOWN_F8B1=i.OPCODES[63665]=new t(63665,"unknown_f8b1",void 0,[],void 0),t.UNKNOWN_F8B2=i.OPCODES[63666]=new t(63666,"unknown_f8b2",void 0,[],void 0),t.UNKNOWN_F8B3=i.OPCODES[63667]=new t(63667,"unknown_f8b3",void 0,[],void 0),t.UNKNOWN_F8B4=i.OPCODES[63668]=new t(63668,"unknown_f8b4",void 0,[],void 0),t.UNKNOWN_F8B5=i.OPCODES[63669]=new t(63669,"unknown_f8b5",void 0,[],void 0),t.UNKNOWN_F8B6=i.OPCODES[63670]=new t(63670,"unknown_f8b6",void 0,[],void 0),t.UNKNOWN_F8B7=i.OPCODES[63671]=new t(63671,"unknown_f8b7",void 0,[],void 0),t.UNKNOWN_F8B8=i.OPCODES[63672]=new t(63672,"unknown_f8b8",void 0,[],void 0),t.CHL_RECOVERY=i.OPCODES[63673]=new t(63673,"chl_recovery",void 0,[],void 0),t.UNKNOWN_F8BA=i.OPCODES[63674]=new t(63674,"unknown_f8ba",void 0,[],void 0),t.UNKNOWN_F8BB=i.OPCODES[63675]=new t(63675,"unknown_f8bb",void 0,[],void 0),t.SET_EPISODE=i.OPCODES[63676]=new t(63676,"set_episode",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],void 0),t.UNKNOWN_F8BD=i.OPCODES[63677]=new t(63677,"unknown_f8bd",void 0,[],void 0),t.UNKNOWN_F8BE=i.OPCODES[63678]=new t(63678,"unknown_f8be",void 0,[],void 0),t.UNKNOWN_F8BF=i.OPCODES[63679]=new t(63679,"unknown_f8bf",void 0,[],void 0),t.FILE_DL_REQ=i.OPCODES[63680]=new t(63680,"file_dl_req",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.GET_DL_STATUS=i.OPCODES[63681]=new t(63681,"get_dl_status",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.GBA_UNKNOWN4=i.OPCODES[63682]=new t(63682,"gba_unknown4",void 0,[],void 0),t.GET_GBA_STATE=i.OPCODES[63683]=new t(63683,"get_gba_state",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F8C4=i.OPCODES[63684]=new t(63684,"unknown_f8c4",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F8C5=i.OPCODES[63685]=new t(63685,"unknown_f8c5",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.QEXIT=i.OPCODES[63686]=new t(63686,"qexit",void 0,[],void 0),t.USE_ANIMATION=i.OPCODES[63687]=new t(63687,"use_animation",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Animation ID.",d.Read),new v(i.TYPE_DWORD,"Animation duration in number of frames.",d.Read)]},void 0,void 0)],void 0),t.STOP_ANIMATION=i.OPCODES[63688]=new t(63688,"stop_animation",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.RUN_TO_COORD=i.OPCODES[63689]=new t(63689,"run_to_coord",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_INVINCIBLE=i.OPCODES[63690]=new t(63690,"set_slot_invincible",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F8CB=i.OPCODES[63691]=new t(63691,"unknown_f8cb",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_POISON=i.OPCODES[63692]=new t(63692,"set_slot_poison",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_PARALYZE=i.OPCODES[63693]=new t(63693,"set_slot_paralyze",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_SHOCK=i.OPCODES[63694]=new t(63694,"set_slot_shock",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_FREEZE=i.OPCODES[63695]=new t(63695,"set_slot_freeze",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_SLOW=i.OPCODES[63696]=new t(63696,"set_slot_slow",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_CONFUSE=i.OPCODES[63697]=new t(63697,"set_slot_confuse",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_SHIFTA=i.OPCODES[63698]=new t(63698,"set_slot_shifta",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_DEBAND=i.OPCODES[63699]=new t(63699,"set_slot_deband",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_JELLEN=i.OPCODES[63700]=new t(63700,"set_slot_jellen",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.SET_SLOT_ZALURE=i.OPCODES[63701]=new t(63701,"set_slot_zalure",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read)]},void 0,void 0)],void 0),t.FLETI_FIXED_CAMERA=i.OPCODES[63702]=new t(63702,"fleti_fixed_camera",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],_.Pop),t.FLETI_LOCKED_CAMERA=i.OPCODES[63703]=new t(63703,"fleti_locked_camera",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],_.Pop),t.DEFAULT_CAMERA_POS2=i.OPCODES[63704]=new t(63704,"default_camera_pos2",void 0,[],void 0),t.SET_MOTION_BLUR=i.OPCODES[63705]=new t(63705,"set_motion_blur",void 0,[],void 0),t.SET_SCREEN_BW=i.OPCODES[63706]=new t(63706,"set_screen_bw",void 0,[],void 0),t.UNKNOWN_F8DB=i.OPCODES[63707]=new t(63707,"unknown_f8db",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_WORD,void 0,void 0)],_.Pop),t.NPC_ACTION_STRING=i.OPCODES[63708]=new t(63708,"npc_action_string",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_S_LABEL,void 0,void 0)],void 0),t.GET_PAD_COND=i.OPCODES[63709]=new t(63709,"get_pad_cond",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_BUTTON_COND=i.OPCODES[63710]=new t(63710,"get_button_cond",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.FREEZE_ENEMIES=i.OPCODES[63711]=new t(63711,"freeze_enemies",void 0,[],void 0),t.UNFREEZE_ENEMIES=i.OPCODES[63712]=new t(63712,"unfreeze_enemies",void 0,[],void 0),t.FREEZE_EVERYTHING=i.OPCODES[63713]=new t(63713,"freeze_everything",void 0,[],void 0),t.UNFREEZE_EVERYTHING=i.OPCODES[63714]=new t(63714,"unfreeze_everything",void 0,[],void 0),t.RESTORE_HP=i.OPCODES[63715]=new t(63715,"restore_hp",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.RESTORE_TP=i.OPCODES[63716]=new t(63716,"restore_tp",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.CLOSE_CHAT_BUBBLE=i.OPCODES[63717]=new t(63717,"close_chat_bubble",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.MOVE_COORDS_OBJECT=i.OPCODES[63718]=new t(63718,"move_coords_object",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.AT_COORDS_CALL_EX=i.OPCODES[63719]=new t(63719,"at_coords_call_ex",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F8E8=i.OPCODES[63720]=new t(63720,"unknown_f8e8",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F8E9=i.OPCODES[63721]=new t(63721,"unknown_f8e9",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F8EA=i.OPCODES[63722]=new t(63722,"unknown_f8ea",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F8EB=i.OPCODES[63723]=new t(63723,"unknown_f8eb",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.UNKNOWN_F8EC=i.OPCODES[63724]=new t(63724,"unknown_f8ec",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.ANIMATION_CHECK=i.OPCODES[63725]=new t(63725,"animation_check",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.CALL_IMAGE_DATA=i.OPCODES[63726]=new t(63726,"call_image_data",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_WORD,void 0,void 0)],_.Pop),t.UNKNOWN_F8EF=i.OPCODES[63727]=new t(63727,"unknown_f8ef",void 0,[],void 0),t.TURN_OFF_BGM_P2=i.OPCODES[63728]=new t(63728,"turn_off_bgm_p2",void 0,[],void 0),t.TURN_ON_BGM_P2=i.OPCODES[63729]=new t(63729,"turn_on_bgm_p2",void 0,[],void 0),t.LOAD_UNK_DATA=i.OPCODES[63730]=new t(63730,"load_unk_data",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_D_LABEL,void 0,void 0)],_.Pop),t.PARTICLE2=i.OPCODES[63731]=new t(63731,"particle2",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],_.Pop),t.UNKNOWN_F8F4=i.OPCODES[63732]=new t(63732,"unknown_f8f4",void 0,[],void 0),t.UNKNOWN_F8F5=i.OPCODES[63733]=new t(63733,"unknown_f8f5",void 0,[],void 0),t.UNKNOWN_F8F6=i.OPCODES[63734]=new t(63734,"unknown_f8f6",void 0,[],void 0),t.UNKNOWN_F8F7=i.OPCODES[63735]=new t(63735,"unknown_f8f7",void 0,[],void 0),t.UNKNOWN_F8F8=i.OPCODES[63736]=new t(63736,"unknown_f8f8",void 0,[],void 0),t.UNKNOWN_F8F9=i.OPCODES[63737]=new t(63737,"unknown_f8f9",void 0,[],void 0),t.UNKNOWN_F8FA=i.OPCODES[63738]=new t(63738,"unknown_f8fa",void 0,[],void 0),t.UNKNOWN_F8FB=i.OPCODES[63739]=new t(63739,"unknown_f8fb",void 0,[],void 0),t.UNKNOWN_F8FC=i.OPCODES[63740]=new t(63740,"unknown_f8fc",void 0,[],void 0),t.UNKNOWN_F8FD=i.OPCODES[63741]=new t(63741,"unknown_f8fd",void 0,[],void 0),t.UNKNOWN_F8FE=i.OPCODES[63742]=new t(63742,"unknown_f8fe",void 0,[],void 0),t.UNKNOWN_F8FF=i.OPCODES[63743]=new t(63743,"unknown_f8ff",void 0,[],void 0),t.UNKNOWN_F900=i.OPCODES[63744]=new t(63744,"unknown_f900",void 0,[],void 0),t.DEC2FLOAT=i.OPCODES[63745]=new t(63745,"dec2float",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0)],void 0),t.FLOAT2DEC=i.OPCODES[63746]=new t(63746,"float2dec",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Read)]},void 0,void 0)],void 0),t.FLET=i.OPCODES[63747]=new t(63747,"flet",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Read)]},void 0,void 0)],void 0),t.FLETI=i.OPCODES[63748]=new t(63748,"fleti",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],void 0),t.UNKNOWN_F905=i.OPCODES[63749]=new t(63749,"unknown_f905",void 0,[],void 0),t.UNKNOWN_F906=i.OPCODES[63750]=new t(63750,"unknown_f906",void 0,[],void 0),t.UNKNOWN_F907=i.OPCODES[63751]=new t(63751,"unknown_f907",void 0,[],void 0),t.FADD=i.OPCODES[63752]=new t(63752,"fadd",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Read)]},void 0,void 0)],void 0),t.FADDI=i.OPCODES[63753]=new t(63753,"faddi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],void 0),t.FSUB=i.OPCODES[63754]=new t(63754,"fsub",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Read)]},void 0,void 0)],void 0),t.FSUBI=i.OPCODES[63755]=new t(63755,"fsubi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],void 0),t.FMUL=i.OPCODES[63756]=new t(63756,"fmul",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Read)]},void 0,void 0)],void 0),t.FMULI=i.OPCODES[63757]=new t(63757,"fmuli",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],void 0),t.FDIV=i.OPCODES[63758]=new t(63758,"fdiv",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Read)]},void 0,void 0)],void 0),t.FDIVI=i.OPCODES[63759]=new t(63759,"fdivi",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_FLOAT,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],void 0),t.GET_UNKNOWN_COUNT=i.OPCODES[63760]=new t(63760,"get_unknown_count",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.GET_STACKABLE_ITEM_COUNT=i.OPCODES[63761]=new t(63761,"get_stackable_item_count",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Player slot.",d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read),new v(i.TYPE_DWORD,void 0,d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.FREEZE_AND_HIDE_EQUIP=i.OPCODES[63762]=new t(63762,"freeze_and_hide_equip",void 0,[],void 0),t.THAW_AND_SHOW_EQUIP=i.OPCODES[63763]=new t(63763,"thaw_and_show_equip",void 0,[],void 0),t.SET_PALETTEX_CALLBACK=i.OPCODES[63764]=new t(63764,"set_palettex_callback",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.ACTIVATE_PALETTEX=i.OPCODES[63765]=new t(63765,"activate_palettex",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.ENABLE_PALETTEX=i.OPCODES[63766]=new t(63766,"enable_palettex",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.RESTORE_PALETTEX=i.OPCODES[63767]=new t(63767,"restore_palettex",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.DISABLE_PALETTEX=i.OPCODES[63768]=new t(63768,"disable_palettex",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.GET_PALETTEX_ACTIVATED=i.OPCODES[63769]=new t(63769,"get_palettex_activated",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.GET_UNKNOWN_PALETTEX_STATUS=i.OPCODES[63770]=new t(63770,"get_unknown_palettex_status",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.DISABLE_MOVEMENT2=i.OPCODES[63771]=new t(63771,"disable_movement2",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.ENABLE_MOVEMENT2=i.OPCODES[63772]=new t(63772,"enable_movement2",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0)],_.Pop),t.GET_TIME_PLAYED=i.OPCODES[63773]=new t(63773,"get_time_played",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_GUILDCARD_TOTAL=i.OPCODES[63774]=new t(63774,"get_guildcard_total",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_SLOT_MESETA=i.OPCODES[63775]=new t(63775,"get_slot_meseta",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_PLAYER_LEVEL=i.OPCODES[63776]=new t(63776,"get_player_level",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.GET_SECTION_ID=i.OPCODES[63777]=new t(63777,"get_section_id",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.GET_PLAYER_HP=i.OPCODES[63778]=new t(63778,"get_player_hp",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,"Maximum HP.",d.Write),new v(i.TYPE_DWORD,"Current HP.",d.Write),new v(i.TYPE_DWORD,"Maximum TP.",d.Write),new v(i.TYPE_DWORD,"Current TP.",d.Write)]},void 0,void 0)],_.Pop),t.GET_FLOOR_NUMBER=i.OPCODES[63779]=new t(63779,"get_floor_number",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.GET_COORD_PLAYER_DETECT=i.OPCODES[63780]=new t(63780,"get_coord_player_detect",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,"Player slot.",d.Read)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Read)]},void 0,void 0)],void 0),t.READ_GLOBAL_FLAG=i.OPCODES[63781]=new t(63781,"read_global_flag",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.WRITE_GLOBAL_FLAG=i.OPCODES[63782]=new t(63782,"write_global_flag",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F927=i.OPCODES[63783]=new t(63783,"unknown_f927",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.FLOOR_PLAYER_DETECT=i.OPCODES[63784]=new t(63784,"floor_player_detect",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write),new v(i.TYPE_DWORD,void 0,d.Write),new v(i.TYPE_DWORD,void 0,d.Write),new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.READ_DISK_FILE=i.OPCODES[63785]=new t(63785,"read_disk_file",void 0,[new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.OPEN_PACK_SELECT=i.OPCODES[63786]=new t(63786,"open_pack_select",void 0,[],void 0),t.ITEM_SELECT=i.OPCODES[63787]=new t(63787,"item_select",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.GET_ITEM_ID=i.OPCODES[63788]=new t(63788,"get_item_id",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.COLOR_CHANGE=i.OPCODES[63789]=new t(63789,"color_change",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SEND_STATISTIC=i.OPCODES[63790]=new t(63790,"send_statistic",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F92F=i.OPCODES[63791]=new t(63791,"unknown_f92f",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.CHAT_BOX=i.OPCODES[63792]=new t(63792,"chat_box",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.CHAT_BUBBLE=i.OPCODES[63793]=new t(63793,"chat_bubble",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.UNKNOWN_F932=i.OPCODES[63794]=new t(63794,"unknown_f932",void 0,[],void 0),t.UNKNOWN_F933=i.OPCODES[63795]=new t(63795,"unknown_f933",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],void 0),t.SCROLL_TEXT=i.OPCODES[63796]=new t(63796,"scroll_text",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.GBA_UNKNOWN1=i.OPCODES[63797]=new t(63797,"gba_unknown1",void 0,[],void 0),t.GBA_UNKNOWN2=i.OPCODES[63798]=new t(63798,"gba_unknown2",void 0,[],void 0),t.GBA_UNKNOWN3=i.OPCODES[63799]=new t(63799,"gba_unknown3",void 0,[],void 0),t.ADD_DAMAGE_TO=i.OPCODES[63800]=new t(63800,"add_damage_to",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.ITEM_DELETE3=i.OPCODES[63801]=new t(63801,"item_delete3",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.GET_ITEM_INFO=i.OPCODES[63802]=new t(63802,"get_item_info",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],_.Pop),t.ITEM_PACKING1=i.OPCODES[63803]=new t(63803,"item_packing1",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.ITEM_PACKING2=i.OPCODES[63804]=new t(63804,"item_packing2",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.GET_LANG_SETTING=i.OPCODES[63805]=new t(63805,"get_lang_setting",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_ANY,void 0,d.Write)]},void 0,void 0)],_.Pop),t.PREPARE_STATISTIC=i.OPCODES[63806]=new t(63806,"prepare_statistic",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.KEYWORD_DETECT=i.OPCODES[63807]=new t(63807,"keyword_detect",void 0,[],void 0),t.KEYWORD=i.OPCODES[63808]=new t(63808,"keyword",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,"Player slot.",void 0),new v(i.TYPE_STRING,void 0,void 0)],_.Pop),t.GET_GUILDCARD_NUM=i.OPCODES[63809]=new t(63809,"get_guildcard_num",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.UNKNOWN_F942=i.OPCODES[63810]=new t(63810,"unknown_f942",void 0,[],void 0),t.UNKNOWN_F943=i.OPCODES[63811]=new t(63811,"unknown_f943",void 0,[],void 0),t.GET_WRAP_STATUS=i.OPCODES[63812]=new t(63812,"get_wrap_status",void 0,[new v(i.TYPE_DWORD,"Player slot.",void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.INITIAL_FLOOR=i.OPCODES[63813]=new t(63813,"initial_floor",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.SIN=i.OPCODES[63814]=new t(63814,"sin",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.COS=i.OPCODES[63815]=new t(63815,"cos",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F948=i.OPCODES[63816]=new t(63816,"unknown_f948",void 0,[],void 0),t.UNKNOWN_F949=i.OPCODES[63817]=new t(63817,"unknown_f949",void 0,[],void 0),t.BOSS_IS_DEAD2=i.OPCODES[63818]=new t(63818,"boss_is_dead2",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F94B=i.OPCODES[63819]=new t(63819,"unknown_f94b",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F94C=i.OPCODES[63820]=new t(63820,"unknown_f94c",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.IS_THERE_CARDBATTLE=i.OPCODES[63821]=new t(63821,"is_there_cardbattle",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.UNKNOWN_F94E=i.OPCODES[63822]=new t(63822,"unknown_f94e",void 0,[],void 0),t.UNKNOWN_F94F=i.OPCODES[63823]=new t(63823,"unknown_f94f",void 0,[],void 0),t.BB_P2_MENU=i.OPCODES[63824]=new t(63824,"bb_p2_menu",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.BB_MAP_DESIGNATE=i.OPCODES[63825]=new t(63825,"bb_map_designate",void 0,[new v(i.TYPE_BYTE,void 0,void 0),new v(i.TYPE_WORD,void 0,void 0),new v(i.TYPE_BYTE,void 0,void 0),new v(i.TYPE_BYTE,void 0,void 0)],void 0),t.BB_GET_NUMBER_IN_PACK=i.OPCODES[63826]=new t(63826,"bb_get_number_in_pack",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],void 0),t.BB_SWAP_ITEM=i.OPCODES[63827]=new t(63827,"bb_swap_item",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.BB_CHECK_WRAP=i.OPCODES[63828]=new t(63828,"bb_check_wrap",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0)],_.Pop),t.BB_EXCHANGE_PD_ITEM=i.OPCODES[63829]=new t(63829,"bb_exchange_pd_item",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.BB_EXCHANGE_PD_SRANK=i.OPCODES[63830]=new t(63830,"bb_exchange_pd_srank",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.BB_EXCHANGE_PD_SPECIAL=i.OPCODES[63831]=new t(63831,"bb_exchange_pd_special",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.BB_EXCHANGE_PD_PERCENT=i.OPCODES[63832]=new t(63832,"bb_exchange_pd_percent",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.UNKNOWN_F959=i.OPCODES[63833]=new t(63833,"unknown_f959",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F95A=i.OPCODES[63834]=new t(63834,"unknown_f95a",void 0,[],void 0),t.UNKNOWN_F95B=i.OPCODES[63835]=new t(63835,"unknown_f95b",void 0,[],void 0),t.BB_EXCHANGE_SLT=i.OPCODES[63836]=new t(63836,"bb_exchange_slt",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.BB_EXCHANGE_PC=i.OPCODES[63837]=new t(63837,"bb_exchange_pc",void 0,[],void 0),t.BB_BOX_CREATE_BP=i.OPCODES[63838]=new t(63838,"bb_box_create_bp",void 0,[new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0),new v(i.TYPE_FLOAT,void 0,void 0)],_.Pop),t.BB_EXCHANGE_PT=i.OPCODES[63839]=new t(63839,"bb_exchange_pt",void 0,[new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v({kind:o.RegTupRef,register_tuples:[new v(i.TYPE_DWORD,void 0,d.Write)]},void 0,void 0),new v(i.TYPE_DWORD,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0),new v(i.TYPE_I_LABEL,void 0,void 0)],_.Pop),t.UNKNOWN_F960=i.OPCODES[63840]=new t(63840,"unknown_f960",void 0,[new v(i.TYPE_DWORD,void 0,void 0)],_.Pop),t.UNKNOWN_F961=i.OPCODES[63841]=new t(63841,"unknown_f961",void 0,[],void 0),t.UNKNOWN_F962=i.OPCODES[63842]=new t(63842,"unknown_f962",void 0,[],void 0),t.UNKNOWN_F963=i.OPCODES[63843]=new t(63843,"unknown_f963",void 0,[],void 0),t.UNKNOWN_F964=i.OPCODES[63844]=new t(63844,"unknown_f964",void 0,[],void 0),t.UNKNOWN_F965=i.OPCODES[63845]=new t(63845,"unknown_f965",void 0,[],void 0),t.UNKNOWN_F966=i.OPCODES[63846]=new t(63846,"unknown_f966",void 0,[],void 0),t.UNKNOWN_F967=i.OPCODES[63847]=new t(63847,"unknown_f967",void 0,[],void 0),t.UNKNOWN_F968=i.OPCODES[63848]=new t(63848,"unknown_f968",void 0,[],void 0),t.UNKNOWN_F969=i.OPCODES[63849]=new t(63849,"unknown_f969",void 0,[],void 0),t.UNKNOWN_F96A=i.OPCODES[63850]=new t(63850,"unknown_f96a",void 0,[],void 0),t.UNKNOWN_F96B=i.OPCODES[63851]=new t(63851,"unknown_f96b",void 0,[],void 0),t.UNKNOWN_F96C=i.OPCODES[63852]=new t(63852,"unknown_f96c",void 0,[],void 0),t.UNKNOWN_F96D=i.OPCODES[63853]=new t(63853,"unknown_f96d",void 0,[],void 0),t.UNKNOWN_F96E=i.OPCODES[63854]=new t(63854,"unknown_f96e",void 0,[],void 0),t.UNKNOWN_F96F=i.OPCODES[63855]=new t(63855,"unknown_f96f",void 0,[],void 0),t.UNKNOWN_F970=i.OPCODES[63856]=new t(63856,"unknown_f970",void 0,[],void 0),t.UNKNOWN_F971=i.OPCODES[63857]=new t(63857,"unknown_f971",void 0,[],void 0),t.UNKNOWN_F972=i.OPCODES[63858]=new t(63858,"unknown_f972",void 0,[],void 0),t.UNKNOWN_F973=i.OPCODES[63859]=new t(63859,"unknown_f973",void 0,[],void 0),t.UNKNOWN_F974=i.OPCODES[63860]=new t(63860,"unknown_f974",void 0,[],void 0),t.UNKNOWN_F975=i.OPCODES[63861]=new t(63861,"unknown_f975",void 0,[],void 0),t.UNKNOWN_F976=i.OPCODES[63862]=new t(63862,"unknown_f976",void 0,[],void 0),t.UNKNOWN_F977=i.OPCODES[63863]=new t(63863,"unknown_f977",void 0,[],void 0),t.UNKNOWN_F978=i.OPCODES[63864]=new t(63864,"unknown_f978",void 0,[],void 0),t.UNKNOWN_F979=i.OPCODES[63865]=new t(63865,"unknown_f979",void 0,[],void 0),t.UNKNOWN_F97A=i.OPCODES[63866]=new t(63866,"unknown_f97a",void 0,[],void 0),t.UNKNOWN_F97B=i.OPCODES[63867]=new t(63867,"unknown_f97b",void 0,[],void 0),t.UNKNOWN_F97C=i.OPCODES[63868]=new t(63868,"unknown_f97c",void 0,[],void 0),t.UNKNOWN_F97D=i.OPCODES[63869]=new t(63869,"unknown_f97d",void 0,[],void 0),t.UNKNOWN_F97E=i.OPCODES[63870]=new t(63870,"unknown_f97e",void 0,[],void 0),t.UNKNOWN_F97F=i.OPCODES[63871]=new t(63871,"unknown_f97f",void 0,[],void 0),t.UNKNOWN_F980=i.OPCODES[63872]=new t(63872,"unknown_f980",void 0,[],void 0),t.UNKNOWN_F981=i.OPCODES[63873]=new t(63873,"unknown_f981",void 0,[],void 0),t.UNKNOWN_F982=i.OPCODES[63874]=new t(63874,"unknown_f982",void 0,[],void 0),t.UNKNOWN_F983=i.OPCODES[63875]=new t(63875,"unknown_f983",void 0,[],void 0),t.UNKNOWN_F984=i.OPCODES[63876]=new t(63876,"unknown_f984",void 0,[],void 0),t.UNKNOWN_F985=i.OPCODES[63877]=new t(63877,"unknown_f985",void 0,[],void 0),t.UNKNOWN_F986=i.OPCODES[63878]=new t(63878,"unknown_f986",void 0,[],void 0),t.UNKNOWN_F987=i.OPCODES[63879]=new t(63879,"unknown_f987",void 0,[],void 0),t.UNKNOWN_F988=i.OPCODES[63880]=new t(63880,"unknown_f988",void 0,[],void 0),t.UNKNOWN_F989=i.OPCODES[63881]=new t(63881,"unknown_f989",void 0,[],void 0),t.UNKNOWN_F98A=i.OPCODES[63882]=new t(63882,"unknown_f98a",void 0,[],void 0),t.UNKNOWN_F98B=i.OPCODES[63883]=new t(63883,"unknown_f98b",void 0,[],void 0),t.UNKNOWN_F98C=i.OPCODES[63884]=new t(63884,"unknown_f98c",void 0,[],void 0),t.UNKNOWN_F98D=i.OPCODES[63885]=new t(63885,"unknown_f98d",void 0,[],void 0),t.UNKNOWN_F98E=i.OPCODES[63886]=new t(63886,"unknown_f98e",void 0,[],void 0),t.UNKNOWN_F98F=i.OPCODES[63887]=new t(63887,"unknown_f98f",void 0,[],void 0),t.UNKNOWN_F990=i.OPCODES[63888]=new t(63888,"unknown_f990",void 0,[],void 0),t.UNKNOWN_F991=i.OPCODES[63889]=new t(63889,"unknown_f991",void 0,[],void 0),t.UNKNOWN_F992=i.OPCODES[63890]=new t(63890,"unknown_f992",void 0,[],void 0),t.UNKNOWN_F993=i.OPCODES[63891]=new t(63891,"unknown_f993",void 0,[],void 0),t.UNKNOWN_F994=i.OPCODES[63892]=new t(63892,"unknown_f994",void 0,[],void 0),t.UNKNOWN_F995=i.OPCODES[63893]=new t(63893,"unknown_f995",void 0,[],void 0),t.UNKNOWN_F996=i.OPCODES[63894]=new t(63894,"unknown_f996",void 0,[],void 0),t.UNKNOWN_F997=i.OPCODES[63895]=new t(63895,"unknown_f997",void 0,[],void 0),t.UNKNOWN_F998=i.OPCODES[63896]=new t(63896,"unknown_f998",void 0,[],void 0),t.UNKNOWN_F999=i.OPCODES[63897]=new t(63897,"unknown_f999",void 0,[],void 0),t.UNKNOWN_F99A=i.OPCODES[63898]=new t(63898,"unknown_f99a",void 0,[],void 0),t.UNKNOWN_F99B=i.OPCODES[63899]=new t(63899,"unknown_f99b",void 0,[],void 0),t.UNKNOWN_F99C=i.OPCODES[63900]=new t(63900,"unknown_f99c",void 0,[],void 0),t.UNKNOWN_F99D=i.OPCODES[63901]=new t(63901,"unknown_f99d",void 0,[],void 0),t.UNKNOWN_F99E=i.OPCODES[63902]=new t(63902,"unknown_f99e",void 0,[],void 0),t.UNKNOWN_F99F=i.OPCODES[63903]=new t(63903,"unknown_f99f",void 0,[],void 0),t.UNKNOWN_F9A0=i.OPCODES[63904]=new t(63904,"unknown_f9a0",void 0,[],void 0),t.UNKNOWN_F9A1=i.OPCODES[63905]=new t(63905,"unknown_f9a1",void 0,[],void 0),t.UNKNOWN_F9A2=i.OPCODES[63906]=new t(63906,"unknown_f9a2",void 0,[],void 0),t.UNKNOWN_F9A3=i.OPCODES[63907]=new t(63907,"unknown_f9a3",void 0,[],void 0),t.UNKNOWN_F9A4=i.OPCODES[63908]=new t(63908,"unknown_f9a4",void 0,[],void 0),t.UNKNOWN_F9A5=i.OPCODES[63909]=new t(63909,"unknown_f9a5",void 0,[],void 0),t.UNKNOWN_F9A6=i.OPCODES[63910]=new t(63910,"unknown_f9a6",void 0,[],void 0),t.UNKNOWN_F9A7=i.OPCODES[63911]=new t(63911,"unknown_f9a7",void 0,[],void 0),t.UNKNOWN_F9A8=i.OPCODES[63912]=new t(63912,"unknown_f9a8",void 0,[],void 0),t.UNKNOWN_F9A9=i.OPCODES[63913]=new t(63913,"unknown_f9a9",void 0,[],void 0),t.UNKNOWN_F9AA=i.OPCODES[63914]=new t(63914,"unknown_f9aa",void 0,[],void 0),t.UNKNOWN_F9AB=i.OPCODES[63915]=new t(63915,"unknown_f9ab",void 0,[],void 0),t.UNKNOWN_F9AC=i.OPCODES[63916]=new t(63916,"unknown_f9ac",void 0,[],void 0),t.UNKNOWN_F9AD=i.OPCODES[63917]=new t(63917,"unknown_f9ad",void 0,[],void 0),t.UNKNOWN_F9AE=i.OPCODES[63918]=new t(63918,"unknown_f9ae",void 0,[],void 0),t.UNKNOWN_F9AF=i.OPCODES[63919]=new t(63919,"unknown_f9af",void 0,[],void 0),t.UNKNOWN_F9B0=i.OPCODES[63920]=new t(63920,"unknown_f9b0",void 0,[],void 0),t.UNKNOWN_F9B1=i.OPCODES[63921]=new t(63921,"unknown_f9b1",void 0,[],void 0),t.UNKNOWN_F9B2=i.OPCODES[63922]=new t(63922,"unknown_f9b2",void 0,[],void 0),t.UNKNOWN_F9B3=i.OPCODES[63923]=new t(63923,"unknown_f9b3",void 0,[],void 0),t.UNKNOWN_F9B4=i.OPCODES[63924]=new t(63924,"unknown_f9b4",void 0,[],void 0),t.UNKNOWN_F9B5=i.OPCODES[63925]=new t(63925,"unknown_f9b5",void 0,[],void 0),t.UNKNOWN_F9B6=i.OPCODES[63926]=new t(63926,"unknown_f9b6",void 0,[],void 0),t.UNKNOWN_F9B7=i.OPCODES[63927]=new t(63927,"unknown_f9b7",void 0,[],void 0),t.UNKNOWN_F9B8=i.OPCODES[63928]=new t(63928,"unknown_f9b8",void 0,[],void 0),t.UNKNOWN_F9B9=i.OPCODES[63929]=new t(63929,"unknown_f9b9",void 0,[],void 0),t.UNKNOWN_F9BA=i.OPCODES[63930]=new t(63930,"unknown_f9ba",void 0,[],void 0),t.UNKNOWN_F9BB=i.OPCODES[63931]=new t(63931,"unknown_f9bb",void 0,[],void 0),t.UNKNOWN_F9BC=i.OPCODES[63932]=new t(63932,"unknown_f9bc",void 0,[],void 0),t.UNKNOWN_F9BD=i.OPCODES[63933]=new t(63933,"unknown_f9bd",void 0,[],void 0),t.UNKNOWN_F9BE=i.OPCODES[63934]=new t(63934,"unknown_f9be",void 0,[],void 0),t.UNKNOWN_F9BF=i.OPCODES[63935]=new t(63935,"unknown_f9bf",void 0,[],void 0),t.UNKNOWN_F9C0=i.OPCODES[63936]=new t(63936,"unknown_f9c0",void 0,[],void 0),t.UNKNOWN_F9C1=i.OPCODES[63937]=new t(63937,"unknown_f9c1",void 0,[],void 0),t.UNKNOWN_F9C2=i.OPCODES[63938]=new t(63938,"unknown_f9c2",void 0,[],void 0),t.UNKNOWN_F9C3=i.OPCODES[63939]=new t(63939,"unknown_f9c3",void 0,[],void 0),t.UNKNOWN_F9C4=i.OPCODES[63940]=new t(63940,"unknown_f9c4",void 0,[],void 0),t.UNKNOWN_F9C5=i.OPCODES[63941]=new t(63941,"unknown_f9c5",void 0,[],void 0),t.UNKNOWN_F9C6=i.OPCODES[63942]=new t(63942,"unknown_f9c6",void 0,[],void 0),t.UNKNOWN_F9C7=i.OPCODES[63943]=new t(63943,"unknown_f9c7",void 0,[],void 0),t.UNKNOWN_F9C8=i.OPCODES[63944]=new t(63944,"unknown_f9c8",void 0,[],void 0),t.UNKNOWN_F9C9=i.OPCODES[63945]=new t(63945,"unknown_f9c9",void 0,[],void 0),t.UNKNOWN_F9CA=i.OPCODES[63946]=new t(63946,"unknown_f9ca",void 0,[],void 0),t.UNKNOWN_F9CB=i.OPCODES[63947]=new t(63947,"unknown_f9cb",void 0,[],void 0),t.UNKNOWN_F9CC=i.OPCODES[63948]=new t(63948,"unknown_f9cc",void 0,[],void 0),t.UNKNOWN_F9CD=i.OPCODES[63949]=new t(63949,"unknown_f9cd",void 0,[],void 0),t.UNKNOWN_F9CE=i.OPCODES[63950]=new t(63950,"unknown_f9ce",void 0,[],void 0),t.UNKNOWN_F9CF=i.OPCODES[63951]=new t(63951,"unknown_f9cf",void 0,[],void 0),t.UNKNOWN_F9D0=i.OPCODES[63952]=new t(63952,"unknown_f9d0",void 0,[],void 0),t.UNKNOWN_F9D1=i.OPCODES[63953]=new t(63953,"unknown_f9d1",void 0,[],void 0),t.UNKNOWN_F9D2=i.OPCODES[63954]=new t(63954,"unknown_f9d2",void 0,[],void 0),t.UNKNOWN_F9D3=i.OPCODES[63955]=new t(63955,"unknown_f9d3",void 0,[],void 0),t.UNKNOWN_F9D4=i.OPCODES[63956]=new t(63956,"unknown_f9d4",void 0,[],void 0),t.UNKNOWN_F9D5=i.OPCODES[63957]=new t(63957,"unknown_f9d5",void 0,[],void 0),t.UNKNOWN_F9D6=i.OPCODES[63958]=new t(63958,"unknown_f9d6",void 0,[],void 0),t.UNKNOWN_F9D7=i.OPCODES[63959]=new t(63959,"unknown_f9d7",void 0,[],void 0),t.UNKNOWN_F9D8=i.OPCODES[63960]=new t(63960,"unknown_f9d8",void 0,[],void 0),t.UNKNOWN_F9D9=i.OPCODES[63961]=new t(63961,"unknown_f9d9",void 0,[],void 0),t.UNKNOWN_F9DA=i.OPCODES[63962]=new t(63962,"unknown_f9da",void 0,[],void 0),t.UNKNOWN_F9DB=i.OPCODES[63963]=new t(63963,"unknown_f9db",void 0,[],void 0),t.UNKNOWN_F9DC=i.OPCODES[63964]=new t(63964,"unknown_f9dc",void 0,[],void 0),t.UNKNOWN_F9DD=i.OPCODES[63965]=new t(63965,"unknown_f9dd",void 0,[],void 0),t.UNKNOWN_F9DE=i.OPCODES[63966]=new t(63966,"unknown_f9de",void 0,[],void 0),t.UNKNOWN_F9DF=i.OPCODES[63967]=new t(63967,"unknown_f9df",void 0,[],void 0),t.UNKNOWN_F9E0=i.OPCODES[63968]=new t(63968,"unknown_f9e0",void 0,[],void 0),t.UNKNOWN_F9E1=i.OPCODES[63969]=new t(63969,"unknown_f9e1",void 0,[],void 0),t.UNKNOWN_F9E2=i.OPCODES[63970]=new t(63970,"unknown_f9e2",void 0,[],void 0),t.UNKNOWN_F9E3=i.OPCODES[63971]=new t(63971,"unknown_f9e3",void 0,[],void 0),t.UNKNOWN_F9E4=i.OPCODES[63972]=new t(63972,"unknown_f9e4",void 0,[],void 0),t.UNKNOWN_F9E5=i.OPCODES[63973]=new t(63973,"unknown_f9e5",void 0,[],void 0),t.UNKNOWN_F9E6=i.OPCODES[63974]=new t(63974,"unknown_f9e6",void 0,[],void 0),t.UNKNOWN_F9E7=i.OPCODES[63975]=new t(63975,"unknown_f9e7",void 0,[],void 0),t.UNKNOWN_F9E8=i.OPCODES[63976]=new t(63976,"unknown_f9e8",void 0,[],void 0),t.UNKNOWN_F9E9=i.OPCODES[63977]=new t(63977,"unknown_f9e9",void 0,[],void 0),t.UNKNOWN_F9EA=i.OPCODES[63978]=new t(63978,"unknown_f9ea",void 0,[],void 0),t.UNKNOWN_F9EB=i.OPCODES[63979]=new t(63979,"unknown_f9eb",void 0,[],void 0),t.UNKNOWN_F9EC=i.OPCODES[63980]=new t(63980,"unknown_f9ec",void 0,[],void 0),t.UNKNOWN_F9ED=i.OPCODES[63981]=new t(63981,"unknown_f9ed",void 0,[],void 0),t.UNKNOWN_F9EE=i.OPCODES[63982]=new t(63982,"unknown_f9ee",void 0,[],void 0),t.UNKNOWN_F9EF=i.OPCODES[63983]=new t(63983,"unknown_f9ef",void 0,[],void 0),t.UNKNOWN_F9F0=i.OPCODES[63984]=new t(63984,"unknown_f9f0",void 0,[],void 0),t.UNKNOWN_F9F1=i.OPCODES[63985]=new t(63985,"unknown_f9f1",void 0,[],void 0),t.UNKNOWN_F9F2=i.OPCODES[63986]=new t(63986,"unknown_f9f2",void 0,[],void 0),t.UNKNOWN_F9F3=i.OPCODES[63987]=new t(63987,"unknown_f9f3",void 0,[],void 0),t.UNKNOWN_F9F4=i.OPCODES[63988]=new t(63988,"unknown_f9f4",void 0,[],void 0),t.UNKNOWN_F9F5=i.OPCODES[63989]=new t(63989,"unknown_f9f5",void 0,[],void 0),t.UNKNOWN_F9F6=i.OPCODES[63990]=new t(63990,"unknown_f9f6",void 0,[],void 0),t.UNKNOWN_F9F7=i.OPCODES[63991]=new t(63991,"unknown_f9f7",void 0,[],void 0),t.UNKNOWN_F9F8=i.OPCODES[63992]=new t(63992,"unknown_f9f8",void 0,[],void 0),t.UNKNOWN_F9F9=i.OPCODES[63993]=new t(63993,"unknown_f9f9",void 0,[],void 0),t.UNKNOWN_F9FA=i.OPCODES[63994]=new t(63994,"unknown_f9fa",void 0,[],void 0),t.UNKNOWN_F9FB=i.OPCODES[63995]=new t(63995,"unknown_f9fb",void 0,[],void 0),t.UNKNOWN_F9FC=i.OPCODES[63996]=new t(63996,"unknown_f9fc",void 0,[],void 0),t.UNKNOWN_F9FD=i.OPCODES[63997]=new t(63997,"unknown_f9fd",void 0,[],void 0),t.UNKNOWN_F9FE=i.OPCODES[63998]=new t(63998,"unknown_f9fe",void 0,[],void 0),t.UNKNOWN_F9FF=i.OPCODES[63999]=new t(63999,"unknown_f9ff",void 0,[],void 0),i.OPCODES.forEach(e=>{i.OPCODES_BY_MNEMONIC.set(e.mnemonic,e)})},lg9k:function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const o=n("ZPAt");i.Instruction=class{constructor(e,i){this.opcode=e,this.args=i,this.arg_size=0,this.param_to_args=[];const n=Math.min(e.params.length,i.length);for(let d=0;de.type===w.TokenType.Ident);if(_&&(i=O.OPCODES_BY_MNEMONIC.get(_.value)))for(const i of d){if(i.col+i.len>e.col)break;i.type===w.TokenType.Ident&&-1===n?n=0:i.type===w.TokenType.ArgSeparator&&n++}}const o={type:d.OutputMessageType.SignatureHelp,id:e.id,opcode:i,active_param:n};E.postMessage(o)}function u(e){e.settings.hasOwnProperty("manual_stack")&&(P.manual_stack=Boolean(e.settings.manual_stack))}function N(){const e=_.assemble(s,P.manual_stack),i=new Map;for(const n of e.object_code)if(n.labels.includes(0)){if(n.type===t.SegmentType.Instructions)for(const e of n.instructions)e.opcode===O.Opcode.BB_MAP_DESIGNATE&&i.set(e.args[0].value,e.args[2].value);break}const n=Object.assign({type:d.OutputMessageType.NewObjectCode,map_designations:i},e);E.postMessage(n)}function l(e,i,n,o){const d=s[e-1],_=d.slice(0,i-1),v=d.slice(n-1);1===o.length?s.splice(e-1,1,_+o[0]+v):s.splice(e-1,1,_+o[0],...o.slice(1,o.length-1),o[o.length-1]+v)}function p(e,i,n){s.splice(e-1,1,n+s[e-1].slice(i-1))}function S(e,i,n){s.splice(e-1,1,s[e-1].slice(0,i-1)+n)}function g(e,i,n){s.splice(e-1,i-e+1,...n)}function f(e,i,n,o,d){const _=s[e-1],v=s[i-1],t=_.slice(0,n-1),O=v.slice(o-1);s.splice(e-1,i-e+1,t+d+O)}E.onmessage=e=>{r.push(e.data),D||(R(),D=setTimeout(()=>{D=void 0,R()},100))}}}); \ No newline at end of file diff --git a/e811160e92146af6f670.worker.js b/e811160e92146af6f670.worker.js deleted file mode 100644 index b28ba473..00000000 --- a/e811160e92146af6f670.worker.js +++ /dev/null @@ -1,12 +0,0 @@ -!function(e){var i={};function n(o){if(i[o])return i[o].exports;var d=i[o]={i:o,l:!1,exports:{}};return e[o].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=i,n.d=function(e,i,o){n.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,i){if(1&i&&(e=n(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var d in e)n.d(o,d,function(i){return e[i]}.bind(null,d));return o},n.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(i,"a",i),i},n.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},n.p="",n(n.s="yL6M")}({"8hIv":function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const o=new DataView(new ArrayBuffer(4));i.reinterpret_i32_as_f32=function(e){return o.setInt32(0,e),o.getFloat32(0)},i.reinterpret_f32_as_i32=function(e){return o.setFloat32(0,e),o.getInt32(0)}},GGSb:function(e,i,n){var o,d; -/*! - * js-logger - http://github.com/jonnyreeves/js-logger - * Jonny Reeves, http://jonnyreeves.co.uk/ - * js-logger may be freely distributed under the MIT license. - */ -/*! - * js-logger - http://github.com/jonnyreeves/js-logger - * Jonny Reeves, http://jonnyreeves.co.uk/ - * js-logger may be freely distributed under the MIT license. - */ -!function(v){"use strict";var t,_={};_.VERSION="1.6.0";var w={},O=function(e,i){return function(){return i.apply(e,arguments)}},s=function(){var e,i,n=arguments,o=n[0];for(i=1;i=i.value},trace:function(){this.invoke(_.TRACE,arguments)},debug:function(){this.invoke(_.DEBUG,arguments)},info:function(){this.invoke(_.INFO,arguments)},warn:function(){this.invoke(_.WARN,arguments)},error:function(){this.invoke(_.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"end"])},invoke:function(e,i){t&&this.enabledFor(e)&&t(i,s({level:e},this.context))}};var u,E=new a({filterLevel:_.OFF});(u=_).enabledFor=O(E,E.enabledFor),u.trace=O(E,E.trace),u.debug=O(E,E.debug),u.time=O(E,E.time),u.timeEnd=O(E,E.timeEnd),u.info=O(E,E.info),u.warn=O(E,E.warn),u.error=O(E,E.error),u.log=u.info,_.setHandler=function(e){t=e},_.setLevel=function(e){for(var i in E.setLevel(e),w)w.hasOwnProperty(i)&&w[i].setLevel(e)},_.getLevel=function(){return E.getLevel()},_.get=function(e){return w[e]||(w[e]=new a(s({name:e},E.context)))},_.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,i){i.name&&e.unshift("["+i.name+"]")};var i={},n=function(e,i){Function.prototype.apply.call(e,console,i)};return"undefined"==typeof console?function(){}:function(o,d){o=Array.prototype.slice.call(o);var v,t=console.log;d.level===_.TIME?(v=(d.name?"["+d.name+"] ":"")+o[0],"start"===o[1]?console.time?console.time(v):i[v]=(new Date).getTime():console.timeEnd?console.timeEnd(v):n(t,[v+": "+((new Date).getTime()-i[v])+"ms"])):(d.level===_.WARN&&console.warn?t=console.warn:d.level===_.ERROR&&console.error?t=console.error:d.level===_.INFO&&console.info?t=console.info:d.level===_.DEBUG&&console.debug?t=console.debug:d.level===_.TRACE&&console.trace&&(t=console.trace),e.formatter(o,d),n(t,o))}},_.useDefaults=function(e){_.setLevel(e&&e.defaultLevel||_.DEBUG),_.setHandler(_.createDefaultHandler(e))},void 0===(d="function"==typeof(o=_)?o.call(i,n,i,e):o)||(e.exports=d)}()},JLhb:function(e,i,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});const d=o(n("GGSb")),v=n("8hIv"),t=n("ZBxL"),_=n("lg9k"),w=n("ZPAt"),O=d.default.get("quest_editor/scripting/assembly");i.assemble=function(e,i=!1){return new s(e,i).assemble()};class s{constructor(e,i){this.assembly=e,this.manual_stack=i,this.lexer=new t.AssemblyLexer,this.first_section_marker=!0}assemble(){this.line_no=1,this.object_code=[],this.warnings=[],this.errors=[],this.labels=new Set,this.section=_.SegmentType.Instructions,this.first_section_marker=!0;for(const e of this.assembly){if(this.tokens=this.lexer.tokenize_line(e),this.tokens.length>0){const e=this.tokens.shift();switch(e.type){case t.TokenType.Label:this.parse_label(e);break;case t.TokenType.CodeSection:case t.TokenType.DataSection:case t.TokenType.StringSection:this.parse_section(e);break;case t.TokenType.Int:this.section===_.SegmentType.Data?this.parse_bytes(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.TokenType.String:this.section===_.SegmentType.String?this.parse_string(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.TokenType.Ident:this.section===_.SegmentType.Instructions?this.parse_instruction(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.TokenType.InvalidSection:this.add_error({col:e.col,length:e.len,message:"Invalid section type."});break;case t.TokenType.InvalidIdent:this.add_error({col:e.col,length:e.len,message:"Invalid identifier."});break;default:this.add_error({col:e.col,length:e.len,message:"Unexpected token."})}}this.line_no++}return{object_code:this.object_code,warnings:this.warnings,errors:this.errors}}add_instruction(e,i){if(this.segment)this.segment.type===_.SegmentType.Instructions?this.segment.instructions.push(new _.Instruction(e,i)):O.error(`Line ${this.line_no}: Expected instructions segment.`);else{const e={labels:[],type:_.SegmentType.Instructions,instructions:[]};this.segment=e,this.object_code.push(e)}}add_bytes(e){if(this.segment)if(this.segment.type===_.SegmentType.Data){const i=new ArrayBuffer(this.segment.data.byteLength+e.length),n=new Uint8Array(i);n.set(new Uint8Array(this.segment.data)),n.set(new Uint8Array(e),this.segment.data.byteLength),this.segment.data=i}else O.error(`Line ${this.line_no}: Expected data segment.`);else{const i={labels:[],type:_.SegmentType.Data,data:new Uint8Array(e).buffer};this.segment=i,this.object_code.push(i)}}add_string(e){if(this.segment)this.segment.type===_.SegmentType.String?this.segment.value+=e:O.error(`Line ${this.line_no}: Expected string segment.`);else{const i={labels:[],type:_.SegmentType.String,value:e};this.segment=i,this.object_code.push(i)}}add_error({col:e,length:i,message:n}){this.errors.push({line_no:this.line_no,col:e,length:i,message:n})}add_warning({col:e,length:i,message:n}){this.warnings.push({line_no:this.line_no,col:e,length:i,message:n})}parse_label({col:e,len:i,value:n}){this.labels.has(n)&&this.add_error({col:e,length:i,message:"Duplicate label."}),this.labels.add(n);const o=this.tokens.shift();switch(this.section){case _.SegmentType.Instructions:this.segment={type:_.SegmentType.Instructions,labels:[n],instructions:[]},this.object_code.push(this.segment),o&&(o.type===t.TokenType.Ident?this.parse_instruction(o):this.add_error({col:o.col,length:o.len,message:"Expected opcode mnemonic."}));break;case _.SegmentType.Data:this.segment={type:_.SegmentType.Data,labels:[n],data:new ArrayBuffer(0)},this.object_code.push(this.segment),o&&(o.type===t.TokenType.Int?this.parse_bytes(o):this.add_error({col:o.col,length:o.len,message:"Expected bytes."}));break;case _.SegmentType.String:this.segment={type:_.SegmentType.String,labels:[n],value:""},this.object_code.push(this.segment),o&&(o.type===t.TokenType.String?this.parse_string(o):this.add_error({col:o.col,length:o.len,message:"Expected a string."}))}}parse_section({type:e,col:i,len:n}){let o;switch(e){case t.TokenType.CodeSection:o=_.SegmentType.Instructions;break;case t.TokenType.DataSection:o=_.SegmentType.Data;break;case t.TokenType.StringSection:o=_.SegmentType.String}this.section!==o||this.first_section_marker||this.add_warning({col:i,length:n,message:"Unnecessary section marker."}),this.section=o,this.first_section_marker=!1;const d=this.tokens.shift();d&&this.add_error({col:d.col,length:d.len,message:"Unexpected token."})}parse_instruction({col:e,len:i,value:n}){const o=w.OPCODES_BY_MNEMONIC.get(n);if(o){const i=-1!==o.params.findIndex(e=>e.type.kind===w.Kind.ILabelVar||e.type.kind===w.Kind.RegRefVar),n=this.manual_stack&&o.stack===w.StackInteraction.Pop?0:o.params.length;let d=0;for(const e of this.tokens)e.type!==t.TokenType.ArgSeparator&&d++;const _=this.tokens[this.tokens.length-1];let s=_?_.col+_.len-e:0;const r=[];if(!i&&d!==n)return void this.add_error({col:e,length:s,message:`Expected ${n} argument${1===n?"":"s"}, got ${d}.`});if(i&&de))}else this.add_error({col:e,length:i,message:"Unknown instruction."})}parse_args(e,i,n){let o=!0,d=!0,v=0;for(let _=0;_w?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be greater than ${w}.`}):n.push([{value:o,size:e},i])}parse_register(e,i){const{col:n,len:o,value:d}=e;d>255?this.add_error({col:n,length:o,message:"Invalid register reference, expected r0-r255."}):i.push([{value:d,size:1},e])}parse_bytes(e){const i=[];let n=e,o=0;for(;n.type===t.TokenType.Int&&(n.value<0?this.add_error({col:n.col,length:n.len,message:"Unsigned 8-bit integer can't be less than 0."}):n.value>255&&this.add_error({col:n.col,length:n.len,message:"Unsigned 8-bit integer can't be greater than 255."}),i.push(n.value),o!]*$/.test(i)?o.Ident:o.InvalidIdent;return n===o.Ident?{type:n,col:e,len:this.marked_len(),value:i}:{type:n,col:e,len:this.marked_len()}}}},ZPAt:function(e,i,n){"use strict";var o;Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(o=i.Kind||(i.Kind={}));const d={kind:o.Any},v={kind:o.Byte},t={kind:o.Word},_={kind:o.DWord},w={kind:o.Float},O={kind:o.Label},s={kind:o.ILabel},r={kind:o.DLabel},a={kind:o.SLabel},u={kind:o.String},E={kind:o.ILabelVar},l={kind:o.RegRef},N={kind:o.RegRefVar},p={kind:o.Pointer};var P,R;i.MIN_SIGNED_DWORD_VALUE=-Math.pow(2,31),i.MAX_SIGNED_DWORD_VALUE=Math.pow(2,31)-1,i.MIN_UNSIGNED_DWORD_VALUE=0,i.MAX_UNSIGNED_DWORD_VALUE=Math.pow(2,32)-1,i.MIN_DWORD_VALUE=i.MIN_SIGNED_DWORD_VALUE,i.MAX_DWORD_VALUE=i.MAX_UNSIGNED_DWORD_VALUE,function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(P=i.ParamAccess||(i.ParamAccess={}));class S{constructor(e,i,n){this.type=e,this.doc=i,this.access=n}}i.Param=S,function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(R=i.StackInteraction||(i.StackInteraction={})),i.OPCODES=[],i.OPCODES_BY_MNEMONIC=new Map;class g{constructor(e,i,n,o,d){this.code=e,this.mnemonic=i,this.doc=n,this.size=this.code<256?1:2,this.params=o,this.stack=d}}g.NOP=i.OPCODES[0]=new g(0,"nop","No operation, does nothing.",[],void 0),g.RET=i.OPCODES[1]=new g(1,"ret","Returns control to caller.",[],void 0),g.SYNC=i.OPCODES[2]=new g(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),g.EXIT=i.OPCODES[3]=new g(3,"exit",void 0,[new S(_,void 0,void 0)],R.Pop),g.THREAD=i.OPCODES[4]=new g(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new S(s,void 0,void 0)],void 0),g.VA_START=i.OPCODES[5]=new g(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),g.VA_END=i.OPCODES[6]=new g(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),g.VA_CALL=i.OPCODES[7]=new g(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new S(s,void 0,void 0)],void 0),g.LET=i.OPCODES[8]=new g(8,"let","Sets the first register's value to second one's value.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.LETI=i.OPCODES[9]=new g(9,"leti","Sets a register to the given value.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.LETB=i.OPCODES[10]=new g(10,"letb","Sets a register to the given value.",[new S({kind:o.RegTupRef,register_tuples:[new S(v,void 0,P.Write)]},void 0,void 0),new S(v,void 0,void 0)],void 0),g.LETW=i.OPCODES[11]=new g(11,"letw","Sets a register to the given value.",[new S({kind:o.RegTupRef,register_tuples:[new S(t,void 0,P.Write)]},void 0,void 0),new S(t,void 0,void 0)],void 0),g.LETA=i.OPCODES[12]=new g(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new S({kind:o.RegTupRef,register_tuples:[new S(p,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.LETO=i.OPCODES[13]=new g(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new S({kind:o.RegTupRef,register_tuples:[new S(p,void 0,P.Write)]},void 0,void 0),new S(O,void 0,void 0)],void 0),g.UNKNOWN_0E=i.OPCODES[14]=new g(14,"unknown_0e",void 0,[],void 0),g.UNKNOWN_0F=i.OPCODES[15]=new g(15,"unknown_0f",void 0,[],void 0),g.SET=i.OPCODES[16]=new g(16,"set","Sets a register to 1.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.CLEAR=i.OPCODES[17]=new g(17,"clear","Sets a register to 0.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.REV=i.OPCODES[18]=new g(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.ReadWrite)]},void 0,void 0)],void 0),g.GSET=i.OPCODES[19]=new g(19,"gset",void 0,[new S(t,void 0,void 0)],void 0),g.GCLEAR=i.OPCODES[20]=new g(20,"gclear",void 0,[new S(t,void 0,void 0)],void 0),g.GREV=i.OPCODES[21]=new g(21,"grev",void 0,[new S(t,void 0,void 0)],void 0),g.GLET=i.OPCODES[22]=new g(22,"glet",void 0,[new S(t,void 0,void 0)],void 0),g.GGET=i.OPCODES[23]=new g(23,"gget","Sets a register to value of the given flag.",[new S(t,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(t,void 0,P.Write)]},void 0,void 0)],void 0),g.ADD=i.OPCODES[24]=new g(24,"add",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.ADDI=i.OPCODES[25]=new g(25,"addi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.SUB=i.OPCODES[26]=new g(26,"sub",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.SUBI=i.OPCODES[27]=new g(27,"subi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.MUL=i.OPCODES[28]=new g(28,"mul",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.MULI=i.OPCODES[29]=new g(29,"muli",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.DIV=i.OPCODES[30]=new g(30,"div",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.DIVI=i.OPCODES[31]=new g(31,"divi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.AND=i.OPCODES[32]=new g(32,"and",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.ANDI=i.OPCODES[33]=new g(33,"andi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.OR=i.OPCODES[34]=new g(34,"or",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.ORI=i.OPCODES[35]=new g(35,"ori",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.XOR=i.OPCODES[36]=new g(36,"xor",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.XORI=i.OPCODES[37]=new g(37,"xori",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.MOD=i.OPCODES[38]=new g(38,"mod",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.MODI=i.OPCODES[39]=new g(39,"modi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.JMP=i.OPCODES[40]=new g(40,"jmp",void 0,[new S(s,void 0,void 0)],void 0),g.CALL=i.OPCODES[41]=new g(41,"call",void 0,[new S(s,void 0,void 0)],void 0),g.JMP_ON=i.OPCODES[42]=new g(42,"jmp_on",void 0,[new S(s,void 0,void 0),new S(N,void 0,P.Read)],void 0),g.JMP_OFF=i.OPCODES[43]=new g(43,"jmp_off",void 0,[new S(s,void 0,void 0),new S(N,void 0,P.Read)],void 0),g.JMP_E=i.OPCODES[44]=new g(44,"jmp_=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_E=i.OPCODES[45]=new g(45,"jmpi_=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_NE=i.OPCODES[46]=new g(46,"jmp_!=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_NE=i.OPCODES[47]=new g(47,"jmpi_!=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_G=i.OPCODES[48]=new g(48,"ujmp_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_G=i.OPCODES[49]=new g(49,"ujmpi_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_G=i.OPCODES[50]=new g(50,"jmp_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_G=i.OPCODES[51]=new g(51,"jmpi_>",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_L=i.OPCODES[52]=new g(52,"ujmp_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_L=i.OPCODES[53]=new g(53,"ujmpi_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_L=i.OPCODES[54]=new g(54,"jmp_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_L=i.OPCODES[55]=new g(55,"jmpi_<",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_GE=i.OPCODES[56]=new g(56,"ujmp_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_GE=i.OPCODES[57]=new g(57,"ujmpi_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_GE=i.OPCODES[58]=new g(58,"jmp_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_GE=i.OPCODES[59]=new g(59,"jmpi_>=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMP_LE=i.OPCODES[60]=new g(60,"ujmp_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.UJMPI_LE=i.OPCODES[61]=new g(61,"ujmpi_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMP_LE=i.OPCODES[62]=new g(62,"jmp_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(s,void 0,void 0)],void 0),g.JMPI_LE=i.OPCODES[63]=new g(63,"jmpi_<=",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0)],void 0),g.SWITCH_JMP=i.OPCODES[64]=new g(64,"switch_jmp",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(E,void 0,void 0)],void 0),g.SWITCH_CALL=i.OPCODES[65]=new g(65,"switch_call",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(E,void 0,void 0)],void 0),g.STACK_PUSH=i.OPCODES[66]=new g(66,"stack_push",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.STACK_POP=i.OPCODES[67]=new g(67,"stack_pop",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.STACK_PUSHM=i.OPCODES[68]=new g(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new S(l,void 0,P.Read),new S(_,void 0,void 0)],void 0),g.STACK_POPM=i.OPCODES[69]=new g(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new S(l,void 0,P.Write),new S(_,void 0,void 0)],void 0),g.UNKNOWN_46=i.OPCODES[70]=new g(70,"unknown_46",void 0,[],void 0),g.UNKNOWN_47=i.OPCODES[71]=new g(71,"unknown_47",void 0,[],void 0),g.ARG_PUSHR=i.OPCODES[72]=new g(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Push),g.ARG_PUSHL=i.OPCODES[73]=new g(73,"arg_pushl","Pushes the given value onto the stack.",[new S(_,void 0,void 0)],R.Push),g.ARG_PUSHB=i.OPCODES[74]=new g(74,"arg_pushb","Pushes the given value onto the stack.",[new S(v,void 0,void 0)],R.Push),g.ARG_PUSHW=i.OPCODES[75]=new g(75,"arg_pushw","Pushes the given value onto the stack.",[new S(t,void 0,void 0)],R.Push),g.ARG_PUSHA=i.OPCODES[76]=new g(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Push),g.ARG_PUSHO=i.OPCODES[77]=new g(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new S(O,void 0,void 0)],R.Push),g.ARG_PUSHS=i.OPCODES[78]=new g(78,"arg_pushs","Pushes the given value onto the stack.",[new S(u,void 0,void 0)],R.Push),g.UNKNOWN_4F=i.OPCODES[79]=new g(79,"unknown_4f",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.MESSAGE=i.OPCODES[80]=new g(80,"message",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.LIST=i.OPCODES[81]=new g(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new S({kind:o.RegTupRef,register_tuples:[new S(v,void 0,P.Write)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.FADEIN=i.OPCODES[82]=new g(82,"fadein",void 0,[],void 0),g.FADEOUT=i.OPCODES[83]=new g(83,"fadeout",void 0,[],void 0),g.SE=i.OPCODES[84]=new g(84,"se",void 0,[new S(_,void 0,void 0)],R.Pop),g.BGM=i.OPCODES[85]=new g(85,"bgm",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_56=i.OPCODES[86]=new g(86,"unknown_56",void 0,[],void 0),g.UNKNOWN_57=i.OPCODES[87]=new g(87,"unknown_57",void 0,[],void 0),g.ENABLE=i.OPCODES[88]=new g(88,"enable",void 0,[new S(_,void 0,void 0)],R.Pop),g.DISABLE=i.OPCODES[89]=new g(89,"disable",void 0,[new S(_,void 0,void 0)],R.Pop),g.WINDOW_MSG=i.OPCODES[90]=new g(90,"window_msg",void 0,[new S(u,void 0,void 0)],R.Pop),g.ADD_MSG=i.OPCODES[91]=new g(91,"add_msg",void 0,[new S(u,void 0,void 0)],R.Pop),g.MESEND=i.OPCODES[92]=new g(92,"mesend",void 0,[],void 0),g.GETTIME=i.OPCODES[93]=new g(93,"gettime",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.WINEND=i.OPCODES[94]=new g(94,"winend",void 0,[],void 0),g.UNKNOWN_5F=i.OPCODES[95]=new g(95,"unknown_5f",void 0,[],void 0),g.NPC_CRT_V3=i.OPCODES[96]=new g(96,"npc_crt_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_STOP=i.OPCODES[97]=new g(97,"npc_stop",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_PLAY=i.OPCODES[98]=new g(98,"npc_play",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_KILL=i.OPCODES[99]=new g(99,"npc_kill",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_NONT=i.OPCODES[100]=new g(100,"npc_nont",void 0,[],void 0),g.NPC_TALK=i.OPCODES[101]=new g(101,"npc_talk",void 0,[],void 0),g.NPC_CRP_V3=i.OPCODES[102]=new g(102,"npc_crp_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read),new S(d,void 0,P.Read),new S(d,void 0,P.Read),new S(s,void 0,P.Read),new S(d,void 0,P.Read),new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_67=i.OPCODES[103]=new g(103,"unknown_67",void 0,[],void 0),g.CREATE_PIPE=i.OPCODES[104]=new g(104,"create_pipe",void 0,[new S(_,void 0,void 0)],R.Pop),g.P_HPSTAT_V3=i.OPCODES[105]=new g(105,"p_hpstat_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.P_DEAD_V3=i.OPCODES[106]=new g(106,"p_dead_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,"Player slot.",void 0)],R.Pop),g.P_DISABLEWARP=i.OPCODES[107]=new g(107,"p_disablewarp",void 0,[],void 0),g.P_ENABLEWARP=i.OPCODES[108]=new g(108,"p_enablewarp",void 0,[],void 0),g.P_MOVE_V3=i.OPCODES[109]=new g(109,"p_move_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.P_LOOK=i.OPCODES[110]=new g(110,"p_look",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_6F=i.OPCODES[111]=new g(111,"unknown_6f",void 0,[],void 0),g.P_ACTION_DISABLE=i.OPCODES[112]=new g(112,"p_action_disable",void 0,[],void 0),g.P_ACTION_ENABLE=i.OPCODES[113]=new g(113,"p_action_enable",void 0,[],void 0),g.DISABLE_MOVEMENT1=i.OPCODES[114]=new g(114,"disable_movement1",void 0,[new S(_,void 0,void 0)],R.Pop),g.ENABLE_MOVEMENT1=i.OPCODES[115]=new g(115,"enable_movement1",void 0,[new S(_,void 0,void 0)],R.Pop),g.P_NONCOL=i.OPCODES[116]=new g(116,"p_noncol",void 0,[],void 0),g.P_COL=i.OPCODES[117]=new g(117,"p_col",void 0,[],void 0),g.P_SETPOS=i.OPCODES[118]=new g(118,"p_setpos","Sets a player's position.",[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Read),new S(_,"Y coordinate.",P.Read),new S(_,"Z coordinate.",P.Read),new S(_,"Y-axis rotation.",P.Read)]},void 0,void 0)],R.Pop),g.P_RETURN_GUILD=i.OPCODES[119]=new g(119,"p_return_guild",void 0,[],void 0),g.P_TALK_GUILD=i.OPCODES[120]=new g(120,"p_talk_guild",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_TALK_PL_V3=i.OPCODES[121]=new g(121,"npc_talk_pl_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_TALK_KILL=i.OPCODES[122]=new g(122,"npc_talk_kill",void 0,[new S(_,void 0,void 0)],R.Pop),g.NPC_CRTPK_V3=i.OPCODES[123]=new g(123,"npc_crtpk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_CRPPK_V3=i.OPCODES[124]=new g(124,"npc_crppk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_CRPTALK_V3=i.OPCODES[125]=new g(125,"npc_crptalk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.P_LOOK_AT_V1=i.OPCODES[126]=new g(126,"p_look_at_v1",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.NPC_CRP_ID_V3=i.OPCODES[127]=new g(127,"npc_crp_id_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CAM_QUAKE=i.OPCODES[128]=new g(128,"cam_quake",void 0,[],void 0),g.CAM_ADJ=i.OPCODES[129]=new g(129,"cam_adj",void 0,[],void 0),g.CAM_ZMIN=i.OPCODES[130]=new g(130,"cam_zmin",void 0,[],void 0),g.CAM_ZMOUT=i.OPCODES[131]=new g(131,"cam_zmout",void 0,[],void 0),g.CAM_PAN_V3=i.OPCODES[132]=new g(132,"cam_pan_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.GAME_LEV_SUPER=i.OPCODES[133]=new g(133,"game_lev_super",void 0,[],void 0),g.GAME_LEV_RESET=i.OPCODES[134]=new g(134,"game_lev_reset",void 0,[],void 0),g.POS_PIPE_V3=i.OPCODES[135]=new g(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Read),new S(_,"Y coordinate.",P.Read),new S(_,"Z coordinate.",P.Read),new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.IF_ZONE_CLEAR=i.OPCODES[136]=new g(136,"if_zone_clear",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.CHK_ENE_NUM=i.OPCODES[137]=new g(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNHIDE_OBJ=i.OPCODES[138]=new g(138,"unhide_obj",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNHIDE_ENE=i.OPCODES[139]=new g(139,"unhide_ene",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.AT_COORDS_CALL=i.OPCODES[140]=new g(140,"at_coords_call",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(s,void 0,P.Read)]},void 0,void 0)],void 0),g.AT_COORDS_TALK=i.OPCODES[141]=new g(141,"at_coords_talk",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(s,void 0,P.Read)]},void 0,void 0)],void 0),g.COL_NPCIN=i.OPCODES[142]=new g(142,"col_npcin",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(s,void 0,P.Read)]},void 0,void 0)],void 0),g.COL_NPCINR=i.OPCODES[143]=new g(143,"col_npcinr",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SWITCH_ON=i.OPCODES[144]=new g(144,"switch_on",void 0,[new S(_,void 0,void 0)],R.Pop),g.SWITCH_OFF=i.OPCODES[145]=new g(145,"switch_off",void 0,[new S(_,void 0,void 0)],R.Pop),g.PLAYBGM_EPI=i.OPCODES[146]=new g(146,"playbgm_epi",void 0,[new S(_,void 0,void 0)],R.Pop),g.SET_MAINWARP=i.OPCODES[147]=new g(147,"set_mainwarp",void 0,[new S(_,void 0,void 0)],R.Pop),g.SET_OBJ_PARAM=i.OPCODES[148]=new g(148,"set_obj_param","Creates a targetable object.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Read),new S(_,"Y coordinate.",P.Read),new S(_,"Z coordinate.",P.Read),new S(_,"Collision radius.",P.Read),new S(s,"Function label.",P.Read),new S(_,"Vertical position of the cursor.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},"Object handle.",void 0)],void 0),g.SET_FLOOR_HANDLER=i.OPCODES[149]=new g(149,"set_floor_handler",void 0,[new S(_,"Floor number.",void 0),new S(s,"Handler function label.",void 0)],R.Pop),g.CLR_FLOOR_HANDLER=i.OPCODES[150]=new g(150,"clr_floor_handler",void 0,[new S(_,"Floor number.",void 0)],R.Pop),g.COL_PLINAW=i.OPCODES[151]=new g(151,"col_plinaw",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.HUD_HIDE=i.OPCODES[152]=new g(152,"hud_hide",void 0,[],void 0),g.HUD_SHOW=i.OPCODES[153]=new g(153,"hud_show",void 0,[],void 0),g.CINE_ENABLE=i.OPCODES[154]=new g(154,"cine_enable",void 0,[],void 0),g.CINE_DISABLE=i.OPCODES[155]=new g(155,"cine_disable",void 0,[],void 0),g.UNKNOWN_9C=i.OPCODES[156]=new g(156,"unknown_9c",void 0,[],void 0),g.UNKNOWN_9D=i.OPCODES[157]=new g(157,"unknown_9d",void 0,[],void 0),g.UNKNOWN_9E=i.OPCODES[158]=new g(158,"unknown_9e",void 0,[],void 0),g.UNKNOWN_9F=i.OPCODES[159]=new g(159,"unknown_9f",void 0,[],void 0),g.UNKNOWN_A0=i.OPCODES[160]=new g(160,"unknown_a0",void 0,[],void 0),g.SET_QT_FAILURE=i.OPCODES[161]=new g(161,"set_qt_failure",void 0,[new S(s,void 0,void 0)],void 0),g.SET_QT_SUCCESS=i.OPCODES[162]=new g(162,"set_qt_success",void 0,[new S(s,void 0,void 0)],void 0),g.CLR_QT_FAILURE=i.OPCODES[163]=new g(163,"clr_qt_failure",void 0,[],void 0),g.CLR_QT_SUCCESS=i.OPCODES[164]=new g(164,"clr_qt_success",void 0,[],void 0),g.SET_QT_CANCEL=i.OPCODES[165]=new g(165,"set_qt_cancel",void 0,[new S(s,void 0,void 0)],void 0),g.CLR_QT_CANCEL=i.OPCODES[166]=new g(166,"clr_qt_cancel",void 0,[],void 0),g.UNKNOWN_A7=i.OPCODES[167]=new g(167,"unknown_a7",void 0,[],void 0),g.PL_WALK_V3=i.OPCODES[168]=new g(168,"pl_walk_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_A9=i.OPCODES[169]=new g(169,"unknown_a9",void 0,[],void 0),g.UNKNOWN_AA=i.OPCODES[170]=new g(170,"unknown_aa",void 0,[],void 0),g.UNKNOWN_AB=i.OPCODES[171]=new g(171,"unknown_ab",void 0,[],void 0),g.UNKNOWN_AC=i.OPCODES[172]=new g(172,"unknown_ac",void 0,[],void 0),g.UNKNOWN_AD=i.OPCODES[173]=new g(173,"unknown_ad",void 0,[],void 0),g.UNKNOWN_AE=i.OPCODES[174]=new g(174,"unknown_ae",void 0,[],void 0),g.UNKNOWN_AF=i.OPCODES[175]=new g(175,"unknown_af",void 0,[],void 0),g.PL_ADD_MESETA=i.OPCODES[176]=new g(176,"pl_add_meseta",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.THREAD_STG=i.OPCODES[177]=new g(177,"thread_stg",void 0,[new S(s,void 0,void 0)],void 0),g.DEL_OBJ_PARAM=i.OPCODES[178]=new g(178,"del_obj_param",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},"Object handle.",void 0)],void 0),g.ITEM_CREATE=i.OPCODES[179]=new g(179,"item_create",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ITEM_CREATE2=i.OPCODES[180]=new g(180,"item_create2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ITEM_DELETE=i.OPCODES[181]=new g(181,"item_delete",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ITEM_DELETE2=i.OPCODES[182]=new g(182,"item_delete2","Deletes an item from the player's inventory.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.ITEM_CHECK=i.OPCODES[183]=new g(183,"item_check",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SETEVT=i.OPCODES[184]=new g(184,"setevt",void 0,[new S(_,void 0,void 0)],R.Pop),g.GET_DIFFLVL=i.OPCODES[185]=new g(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.SET_QT_EXIT=i.OPCODES[186]=new g(186,"set_qt_exit",void 0,[new S(s,void 0,void 0)],void 0),g.CLR_QT_EXIT=i.OPCODES[187]=new g(187,"clr_qt_exit",void 0,[],void 0),g.UNKNOWN_BC=i.OPCODES[188]=new g(188,"unknown_bc",void 0,[],void 0),g.UNKNOWN_BD=i.OPCODES[189]=new g(189,"unknown_bd",void 0,[],void 0),g.UNKNOWN_BE=i.OPCODES[190]=new g(190,"unknown_be",void 0,[],void 0),g.UNKNOWN_BF=i.OPCODES[191]=new g(191,"unknown_bf",void 0,[],void 0),g.PARTICLE_V3=i.OPCODES[192]=new g(192,"particle_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_TEXT=i.OPCODES[193]=new g(193,"npc_text",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.NPC_CHKWARP=i.OPCODES[194]=new g(194,"npc_chkwarp",void 0,[],void 0),g.PL_PKOFF=i.OPCODES[195]=new g(195,"pl_pkoff",void 0,[],void 0),g.MAP_DESIGNATE=i.OPCODES[196]=new g(196,"map_designate",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.MASTERKEY_ON=i.OPCODES[197]=new g(197,"masterkey_on",void 0,[],void 0),g.MASTERKEY_OFF=i.OPCODES[198]=new g(198,"masterkey_off",void 0,[],void 0),g.WINDOW_TIME=i.OPCODES[199]=new g(199,"window_time",void 0,[],void 0),g.WINEND_TIME=i.OPCODES[200]=new g(200,"winend_time",void 0,[],void 0),g.WINSET_TIME=i.OPCODES[201]=new g(201,"winset_time",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GETMTIME=i.OPCODES[202]=new g(202,"getmtime",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.SET_QUEST_BOARD_HANDLER=i.OPCODES[203]=new g(203,"set_quest_board_handler",void 0,[new S(_,void 0,void 0),new S(s,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.CLEAR_QUEST_BOARD_HANDLER=i.OPCODES[204]=new g(204,"clear_quest_board_handler",void 0,[new S(_,void 0,void 0)],R.Pop),g.PARTICLE_ID_V3=i.OPCODES[205]=new g(205,"particle_id_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_CRPTALK_ID_V3=i.OPCODES[206]=new g(206,"npc_crptalk_id_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.NPC_LANG_CLEAN=i.OPCODES[207]=new g(207,"npc_lang_clean",void 0,[],void 0),g.PL_PKON=i.OPCODES[208]=new g(208,"pl_pkon",void 0,[],void 0),g.PL_CHK_ITEM2=i.OPCODES[209]=new g(209,"pl_chk_item2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ENABLE_MAINMENU=i.OPCODES[210]=new g(210,"enable_mainmenu",void 0,[],void 0),g.DISABLE_MAINMENU=i.OPCODES[211]=new g(211,"disable_mainmenu",void 0,[],void 0),g.START_BATTLEBGM=i.OPCODES[212]=new g(212,"start_battlebgm",void 0,[],void 0),g.END_BATTLEBGM=i.OPCODES[213]=new g(213,"end_battlebgm",void 0,[],void 0),g.DISP_MSG_QB=i.OPCODES[214]=new g(214,"disp_msg_qb",void 0,[new S(u,void 0,void 0)],R.Pop),g.CLOSE_MSG_QB=i.OPCODES[215]=new g(215,"close_msg_qb",void 0,[],void 0),g.SET_EVENTFLAG_V3=i.OPCODES[216]=new g(216,"set_eventflag_v3",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.SYNC_LETI=i.OPCODES[217]=new g(217,"sync_leti",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.SET_RETURNHUNTER=i.OPCODES[218]=new g(218,"set_returnhunter",void 0,[],void 0),g.SET_RETURNCITY=i.OPCODES[219]=new g(219,"set_returncity",void 0,[],void 0),g.LOAD_PVR=i.OPCODES[220]=new g(220,"load_pvr",void 0,[],void 0),g.LOAD_MIDI=i.OPCODES[221]=new g(221,"load_midi",void 0,[],void 0),g.UNKNOWN_DE=i.OPCODES[222]=new g(222,"unknown_de",void 0,[],void 0),g.NPC_PARAM_V3=i.OPCODES[223]=new g(223,"npc_param_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.PAD_DRAGON=i.OPCODES[224]=new g(224,"pad_dragon",void 0,[],void 0),g.CLEAR_MAINWARP=i.OPCODES[225]=new g(225,"clear_mainwarp",void 0,[new S(_,void 0,void 0)],R.Pop),g.PCAM_PARAM_V3=i.OPCODES[226]=new g(226,"pcam_param_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.START_SETEVT_V3=i.OPCODES[227]=new g(227,"start_setevt_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.WARP_ON=i.OPCODES[228]=new g(228,"warp_on",void 0,[],void 0),g.WARP_OFF=i.OPCODES[229]=new g(229,"warp_off",void 0,[],void 0),g.GET_SLOTNUMBER=i.OPCODES[230]=new g(230,"get_slotnumber",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_SERVERNUMBER=i.OPCODES[231]=new g(231,"get_servernumber",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.SET_EVENTFLAG2=i.OPCODES[232]=new g(232,"set_eventflag2",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Pop),g.RES=i.OPCODES[233]=new g(233,"res",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_EA=i.OPCODES[234]=new g(234,"unknown_ea",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0)],void 0),g.ENABLE_BGMCTRL=i.OPCODES[235]=new g(235,"enable_bgmctrl",void 0,[new S(_,void 0,void 0)],R.Pop),g.SW_SEND=i.OPCODES[236]=new g(236,"sw_send",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CREATE_BGMCTRL=i.OPCODES[237]=new g(237,"create_bgmctrl",void 0,[],void 0),g.PL_ADD_MESETA2=i.OPCODES[238]=new g(238,"pl_add_meseta2",void 0,[new S(_,void 0,void 0)],R.Pop),g.SYNC_REGISTER=i.OPCODES[239]=new g(239,"sync_register",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.SEND_REGWORK=i.OPCODES[240]=new g(240,"send_regwork",void 0,[],void 0),g.LETI_FIXED_CAMERA_V3=i.OPCODES[241]=new g(241,"leti_fixed_camera_v3",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.DEFAULT_CAMERA_POS1=i.OPCODES[242]=new g(242,"default_camera_pos1",void 0,[],void 0),g.UNKNOWN_F3=i.OPCODES[243]=new g(243,"unknown_f3",void 0,[],void 0),g.UNKNOWN_F4=i.OPCODES[244]=new g(244,"unknown_f4",void 0,[],void 0),g.UNKNOWN_F5=i.OPCODES[245]=new g(245,"unknown_f5",void 0,[],void 0),g.UNKNOWN_F6=i.OPCODES[246]=new g(246,"unknown_f6",void 0,[],void 0),g.UNKNOWN_F7=i.OPCODES[247]=new g(247,"unknown_f7",void 0,[],void 0),g.UNKNOWN_F8=i.OPCODES[248]=new g(248,"unknown_f8",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F9=i.OPCODES[249]=new g(249,"unknown_f9",void 0,[],void 0),g.GET_GC_NUMBER=i.OPCODES[250]=new g(250,"get_gc_number",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_FB=i.OPCODES[251]=new g(251,"unknown_fb",void 0,[new S(t,void 0,void 0)],void 0),g.UNKNOWN_FC=i.OPCODES[252]=new g(252,"unknown_fc",void 0,[],void 0),g.UNKNOWN_FD=i.OPCODES[253]=new g(253,"unknown_fd",void 0,[],void 0),g.UNKNOWN_FE=i.OPCODES[254]=new g(254,"unknown_fe",void 0,[],void 0),g.UNKNOWN_FF=i.OPCODES[255]=new g(255,"unknown_ff",void 0,[],void 0),g.UNKNOWN_F800=i.OPCODES[63488]=new g(63488,"unknown_f800",void 0,[],void 0),g.SET_CHAT_CALLBACK=i.OPCODES[63489]=new g(63489,"set_chat_callback",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.UNKNOWN_F802=i.OPCODES[63490]=new g(63490,"unknown_f802",void 0,[],void 0),g.UNKNOWN_F803=i.OPCODES[63491]=new g(63491,"unknown_f803",void 0,[],void 0),g.UNKNOWN_F804=i.OPCODES[63492]=new g(63492,"unknown_f804",void 0,[],void 0),g.UNKNOWN_F805=i.OPCODES[63493]=new g(63493,"unknown_f805",void 0,[],void 0),g.UNKNOWN_F806=i.OPCODES[63494]=new g(63494,"unknown_f806",void 0,[],void 0),g.UNKNOWN_F807=i.OPCODES[63495]=new g(63495,"unknown_f807",void 0,[],void 0),g.GET_DIFFICULTY_LEVEL2=i.OPCODES[63496]=new g(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_NUMBER_OF_PLAYER1=i.OPCODES[63497]=new g(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_COORD_OF_PLAYER=i.OPCODES[63498]=new g(63498,"get_coord_of_player","Retrieves a player's position.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"X coordinate.",P.Write),new S(_,"Y coordinate.",P.Write),new S(_,"Z coordinate.",P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.ENABLE_MAP=i.OPCODES[63499]=new g(63499,"enable_map",void 0,[],void 0),g.DISABLE_MAP=i.OPCODES[63500]=new g(63500,"disable_map",void 0,[],void 0),g.MAP_DESIGNATE_EX=i.OPCODES[63501]=new g(63501,"map_designate_ex",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F80E=i.OPCODES[63502]=new g(63502,"unknown_f80e",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F80F=i.OPCODES[63503]=new g(63503,"unknown_f80f",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_INITIAL_FLOOR=i.OPCODES[63504]=new g(63504,"ba_initial_floor",void 0,[new S(_,void 0,void 0)],R.Pop),g.SET_BA_RULES=i.OPCODES[63505]=new g(63505,"set_ba_rules",void 0,[],void 0),g.UNKNOWN_F812=i.OPCODES[63506]=new g(63506,"unknown_f812",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F813=i.OPCODES[63507]=new g(63507,"unknown_f813",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F814=i.OPCODES[63508]=new g(63508,"unknown_f814",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F815=i.OPCODES[63509]=new g(63509,"unknown_f815",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F816=i.OPCODES[63510]=new g(63510,"unknown_f816",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F817=i.OPCODES[63511]=new g(63511,"unknown_f817",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F818=i.OPCODES[63512]=new g(63512,"unknown_f818",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F819=i.OPCODES[63513]=new g(63513,"unknown_f819",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F81A=i.OPCODES[63514]=new g(63514,"unknown_f81a",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F81B=i.OPCODES[63515]=new g(63515,"unknown_f81b",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_DISP_MSG=i.OPCODES[63516]=new g(63516,"ba_disp_msg",void 0,[new S(u,void 0,void 0)],R.Pop),g.DEATH_LVL_UP=i.OPCODES[63517]=new g(63517,"death_lvl_up",void 0,[new S(_,void 0,void 0)],R.Pop),g.DEATH_TECH_LVL_UP=i.OPCODES[63518]=new g(63518,"death_tech_lvl_up",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F81F=i.OPCODES[63519]=new g(63519,"unknown_f81f",void 0,[],void 0),g.CMODE_STAGE=i.OPCODES[63520]=new g(63520,"cmode_stage",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F821=i.OPCODES[63521]=new g(63521,"unknown_f821",void 0,[],void 0),g.UNKNOWN_F822=i.OPCODES[63522]=new g(63522,"unknown_f822",void 0,[],void 0),g.UNKNOWN_F823=i.OPCODES[63523]=new g(63523,"unknown_f823",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F824=i.OPCODES[63524]=new g(63524,"unknown_f824",void 0,[new S(_,void 0,void 0)],R.Pop),g.EXP_MULTIPLICATION=i.OPCODES[63525]=new g(63525,"exp_multiplication",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.EXP_DIVISION=i.OPCODES[63526]=new g(63526,"exp_division",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_USER_IS_DEAD=i.OPCODES[63527]=new g(63527,"get_user_is_dead",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GO_FLOOR=i.OPCODES[63528]=new g(63528,"go_floor","Sends a player to the given floor.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Floor ID.",P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F829=i.OPCODES[63529]=new g(63529,"unknown_f829",void 0,[],void 0),g.UNKNOWN_F82A=i.OPCODES[63530]=new g(63530,"unknown_f82a",void 0,[],void 0),g.UNLOCK_DOOR2=i.OPCODES[63531]=new g(63531,"unlock_door2",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.LOCK_DOOR2=i.OPCODES[63532]=new g(63532,"lock_door2",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.IF_SWITCH_NOT_PRESSED=i.OPCODES[63533]=new g(63533,"if_switch_not_pressed",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.IF_SWITCH_PRESSED=i.OPCODES[63534]=new g(63534,"if_switch_pressed",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Floor ID.",P.Read),new S(_,"Switch ID.",P.Read),new S(_,"Will be set to 1 if the switch is pressed, 0 otherwise.",P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F82F=i.OPCODES[63535]=new g(63535,"unknown_f82f",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.CONTROL_DRAGON=i.OPCODES[63536]=new g(63536,"control_dragon",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.RELEASE_DRAGON=i.OPCODES[63537]=new g(63537,"release_dragon",void 0,[],void 0),g.UNKNOWN_F832=i.OPCODES[63538]=new g(63538,"unknown_f832",void 0,[],void 0),g.UNKNOWN_F833=i.OPCODES[63539]=new g(63539,"unknown_f833",void 0,[],void 0),g.UNKNOWN_F834=i.OPCODES[63540]=new g(63540,"unknown_f834",void 0,[],void 0),g.UNKNOWN_F835=i.OPCODES[63541]=new g(63541,"unknown_f835",void 0,[],void 0),g.UNKNOWN_F836=i.OPCODES[63542]=new g(63542,"unknown_f836",void 0,[],void 0),g.UNKNOWN_F837=i.OPCODES[63543]=new g(63543,"unknown_f837",void 0,[],void 0),g.SHRINK=i.OPCODES[63544]=new g(63544,"shrink",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.UNSHRINK=i.OPCODES[63545]=new g(63545,"unshrink",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F83A=i.OPCODES[63546]=new g(63546,"unknown_f83a",void 0,[],void 0),g.UNKNOWN_F83B=i.OPCODES[63547]=new g(63547,"unknown_f83b",void 0,[],void 0),g.DISPLAY_CLOCK2=i.OPCODES[63548]=new g(63548,"display_clock2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F83D=i.OPCODES[63549]=new g(63549,"unknown_f83d",void 0,[new S(_,void 0,void 0)],R.Pop),g.DELETE_AREA_TITLE=i.OPCODES[63550]=new g(63550,"delete_area_title",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F83F=i.OPCODES[63551]=new g(63551,"unknown_f83f",void 0,[],void 0),g.LOAD_NPC_DATA=i.OPCODES[63552]=new g(63552,"load_npc_data",void 0,[],void 0),g.GET_NPC_DATA=i.OPCODES[63553]=new g(63553,"get_npc_data",void 0,[new S(r,void 0,void 0)],void 0),g.UNKNOWN_F842=i.OPCODES[63554]=new g(63554,"unknown_f842",void 0,[],void 0),g.UNKNOWN_F843=i.OPCODES[63555]=new g(63555,"unknown_f843",void 0,[],void 0),g.UNKNOWN_F844=i.OPCODES[63556]=new g(63556,"unknown_f844",void 0,[],void 0),g.UNKNOWN_F845=i.OPCODES[63557]=new g(63557,"unknown_f845",void 0,[],void 0),g.UNKNOWN_F846=i.OPCODES[63558]=new g(63558,"unknown_f846",void 0,[],void 0),g.UNKNOWN_F847=i.OPCODES[63559]=new g(63559,"unknown_f847",void 0,[],void 0),g.GIVE_DAMAGE_SCORE=i.OPCODES[63560]=new g(63560,"give_damage_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.TAKE_DAMAGE_SCORE=i.OPCODES[63561]=new g(63561,"take_damage_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNK_SCORE_F84A=i.OPCODES[63562]=new g(63562,"unk_score_f84a",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNK_SCORE_F84B=i.OPCODES[63563]=new g(63563,"unk_score_f84b",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.KILL_SCORE=i.OPCODES[63564]=new g(63564,"kill_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.DEATH_SCORE=i.OPCODES[63565]=new g(63565,"death_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNK_SCORE_F84E=i.OPCODES[63566]=new g(63566,"unk_score_f84e",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.ENEMY_DEATH_SCORE=i.OPCODES[63567]=new g(63567,"enemy_death_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.MESETA_SCORE=i.OPCODES[63568]=new g(63568,"meseta_score",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F851=i.OPCODES[63569]=new g(63569,"unknown_f851",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F852=i.OPCODES[63570]=new g(63570,"unknown_f852",void 0,[new S(_,void 0,void 0)],R.Pop),g.REVERSE_WARPS=i.OPCODES[63571]=new g(63571,"reverse_warps",void 0,[],void 0),g.UNREVERSE_WARPS=i.OPCODES[63572]=new g(63572,"unreverse_warps",void 0,[],void 0),g.SET_ULT_MAP=i.OPCODES[63573]=new g(63573,"set_ult_map",void 0,[],void 0),g.UNSET_ULT_MAP=i.OPCODES[63574]=new g(63574,"unset_ult_map",void 0,[],void 0),g.SET_AREA_TITLE=i.OPCODES[63575]=new g(63575,"set_area_title",void 0,[new S(u,void 0,void 0)],R.Pop),g.UNKNOWN_F858=i.OPCODES[63576]=new g(63576,"unknown_f858",void 0,[],void 0),g.UNKNOWN_F859=i.OPCODES[63577]=new g(63577,"unknown_f859",void 0,[],void 0),g.EQUIP_ITEM=i.OPCODES[63578]=new g(63578,"equip_item",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNEQUIP_ITEM=i.OPCODES[63579]=new g(63579,"unequip_item",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F85C=i.OPCODES[63580]=new g(63580,"unknown_f85c",void 0,[],void 0),g.UNKNOWN_F85D=i.OPCODES[63581]=new g(63581,"unknown_f85d",void 0,[],void 0),g.UNKNOWN_F85E=i.OPCODES[63582]=new g(63582,"unknown_f85e",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F85F=i.OPCODES[63583]=new g(63583,"unknown_f85f",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F860=i.OPCODES[63584]=new g(63584,"unknown_f860",void 0,[],void 0),g.UNKNOWN_F861=i.OPCODES[63585]=new g(63585,"unknown_f861",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F862=i.OPCODES[63586]=new g(63586,"unknown_f862",void 0,[],void 0),g.UNKNOWN_F863=i.OPCODES[63587]=new g(63587,"unknown_f863",void 0,[],void 0),g.CMODE_RANK=i.OPCODES[63588]=new g(63588,"cmode_rank",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.AWARD_ITEM_NAME=i.OPCODES[63589]=new g(63589,"award_item_name",void 0,[],void 0),g.AWARD_ITEM_SELECT=i.OPCODES[63590]=new g(63590,"award_item_select",void 0,[],void 0),g.AWARD_ITEM_GIVE_TO=i.OPCODES[63591]=new g(63591,"award_item_give_to",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F868=i.OPCODES[63592]=new g(63592,"unknown_f868",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F869=i.OPCODES[63593]=new g(63593,"unknown_f869",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.ITEM_CREATE_CMODE=i.OPCODES[63594]=new g(63594,"item_create_cmode",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F86B=i.OPCODES[63595]=new g(63595,"unknown_f86b",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.AWARD_ITEM_OK=i.OPCODES[63596]=new g(63596,"award_item_ok",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F86D=i.OPCODES[63597]=new g(63597,"unknown_f86d",void 0,[],void 0),g.UNKNOWN_F86E=i.OPCODES[63598]=new g(63598,"unknown_f86e",void 0,[],void 0),g.BA_SET_LIVES=i.OPCODES[63599]=new g(63599,"ba_set_lives",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_SET_TECH_LVL=i.OPCODES[63600]=new g(63600,"ba_set_tech_lvl",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_SET_LVL=i.OPCODES[63601]=new g(63601,"ba_set_lvl",void 0,[new S(_,void 0,void 0)],R.Pop),g.BA_SET_TIME_LIMIT=i.OPCODES[63602]=new g(63602,"ba_set_time_limit",void 0,[new S(_,void 0,void 0)],R.Pop),g.BOSS_IS_DEAD=i.OPCODES[63603]=new g(63603,"boss_is_dead",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F874=i.OPCODES[63604]=new g(63604,"unknown_f874",void 0,[],void 0),g.UNKNOWN_F875=i.OPCODES[63605]=new g(63605,"unknown_f875",void 0,[],void 0),g.UNKNOWN_F876=i.OPCODES[63606]=new g(63606,"unknown_f876",void 0,[],void 0),g.ENABLE_TECHS=i.OPCODES[63607]=new g(63607,"enable_techs","Enables technique use for the given player.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.DISABLE_TECHS=i.OPCODES[63608]=new g(63608,"disable_techs","Disables technique use for the given player.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.GET_GENDER=i.OPCODES[63609]=new g(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player gender.",P.Write)]},void 0,void 0)],void 0),g.GET_CHARA_CLASS=i.OPCODES[63610]=new g(63610,"get_chara_class","Retrieves the player's race and character class.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player race. 0 If human, 1 if newman, 2 if cast.",P.Write),new S(_,"Player class. 0 If hunter, 1 if ranger, 2 if force.",P.Write)]},void 0,void 0)],void 0),g.TAKE_SLOT_MESETA=i.OPCODES[63611]=new g(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read),new S(_,"Amount of meseta to take.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Will be set to 1 if the meseta was taken, 0 otherwise.",P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F87C=i.OPCODES[63612]=new g(63612,"unknown_f87c",void 0,[],void 0),g.UNKNOWN_F87D=i.OPCODES[63613]=new g(63613,"unknown_f87d",void 0,[],void 0),g.UNKNOWN_F87E=i.OPCODES[63614]=new g(63614,"unknown_f87e",void 0,[],void 0),g.READ_GUILDCARD_FLAG=i.OPCODES[63615]=new g(63615,"read_guildcard_flag",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F880=i.OPCODES[63616]=new g(63616,"unknown_f880",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_PL_NAME=i.OPCODES[63617]=new g(63617,"get_pl_name","Sets the value of to the given player's name.",[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F882=i.OPCODES[63618]=new g(63618,"unknown_f882",void 0,[],void 0),g.UNKNOWN_F883=i.OPCODES[63619]=new g(63619,"unknown_f883",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F884=i.OPCODES[63620]=new g(63620,"unknown_f884",void 0,[],void 0),g.UNKNOWN_F885=i.OPCODES[63621]=new g(63621,"unknown_f885",void 0,[],void 0),g.UNKNOWN_F886=i.OPCODES[63622]=new g(63622,"unknown_f886",void 0,[],void 0),g.UNKNOWN_F887=i.OPCODES[63623]=new g(63623,"unknown_f887",void 0,[],void 0),g.UNKNOWN_F888=i.OPCODES[63624]=new g(63624,"unknown_f888",void 0,[],void 0),g.UNKNOWN_F889=i.OPCODES[63625]=new g(63625,"unknown_f889",void 0,[],void 0),g.GET_PLAYER_STATUS=i.OPCODES[63626]=new g(63626,"get_player_status",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.SEND_MAIL=i.OPCODES[63627]=new g(63627,"send_mail",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.ONLINE_CHECK=i.OPCODES[63628]=new g(63628,"online_check",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.CHL_SET_TIMERECORD=i.OPCODES[63629]=new g(63629,"chl_set_timerecord",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CHL_GET_TIMERECORD=i.OPCODES[63630]=new g(63630,"chl_get_timerecord",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F88F=i.OPCODES[63631]=new g(63631,"unknown_f88f",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F890=i.OPCODES[63632]=new g(63632,"unknown_f890",void 0,[],void 0),g.LOAD_ENEMY_DATA=i.OPCODES[63633]=new g(63633,"load_enemy_data",void 0,[new S(_,void 0,void 0)],R.Pop),g.GET_PHYSICAL_DATA=i.OPCODES[63634]=new g(63634,"get_physical_data",void 0,[new S(t,void 0,void 0)],void 0),g.GET_ATTACK_DATA=i.OPCODES[63635]=new g(63635,"get_attack_data",void 0,[new S(t,void 0,void 0)],void 0),g.GET_RESIST_DATA=i.OPCODES[63636]=new g(63636,"get_resist_data",void 0,[new S(t,void 0,void 0)],void 0),g.GET_MOVEMENT_DATA=i.OPCODES[63637]=new g(63637,"get_movement_data",void 0,[new S(t,void 0,void 0)],void 0),g.UNKNOWN_F896=i.OPCODES[63638]=new g(63638,"unknown_f896",void 0,[],void 0),g.UNKNOWN_F897=i.OPCODES[63639]=new g(63639,"unknown_f897",void 0,[],void 0),g.SHIFT_LEFT=i.OPCODES[63640]=new g(63640,"shift_left",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.SHIFT_RIGHT=i.OPCODES[63641]=new g(63641,"shift_right",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.GET_RANDOM=i.OPCODES[63642]=new g(63642,"get_random",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.RESET_MAP=i.OPCODES[63643]=new g(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),g.DISP_CHL_RETRY_MENU=i.OPCODES[63644]=new g(63644,"disp_chl_retry_menu",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.CHL_REVERSER=i.OPCODES[63645]=new g(63645,"chl_reverser",void 0,[],void 0),g.UNKNOWN_F89E=i.OPCODES[63646]=new g(63646,"unknown_f89e",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F89F=i.OPCODES[63647]=new g(63647,"unknown_f89f",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8A0=i.OPCODES[63648]=new g(63648,"unknown_f8a0",void 0,[],void 0),g.UNKNOWN_F8A1=i.OPCODES[63649]=new g(63649,"unknown_f8a1",void 0,[],void 0),g.UNKNOWN_F8A2=i.OPCODES[63650]=new g(63650,"unknown_f8a2",void 0,[],void 0),g.UNKNOWN_F8A3=i.OPCODES[63651]=new g(63651,"unknown_f8a3",void 0,[],void 0),g.UNKNOWN_F8A4=i.OPCODES[63652]=new g(63652,"unknown_f8a4",void 0,[],void 0),g.UNKNOWN_F8A5=i.OPCODES[63653]=new g(63653,"unknown_f8a5",void 0,[],void 0),g.UNKNOWN_F8A6=i.OPCODES[63654]=new g(63654,"unknown_f8a6",void 0,[],void 0),g.UNKNOWN_F8A7=i.OPCODES[63655]=new g(63655,"unknown_f8a7",void 0,[],void 0),g.UNKNOWN_F8A8=i.OPCODES[63656]=new g(63656,"unknown_f8a8",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F8A9=i.OPCODES[63657]=new g(63657,"unknown_f8a9",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8AA=i.OPCODES[63658]=new g(63658,"unknown_f8aa",void 0,[],void 0),g.UNKNOWN_F8AB=i.OPCODES[63659]=new g(63659,"unknown_f8ab",void 0,[],void 0),g.UNKNOWN_F8AC=i.OPCODES[63660]=new g(63660,"unknown_f8ac",void 0,[],void 0),g.GET_NUMBER_OF_PLAYER2=i.OPCODES[63661]=new g(63661,"get_number_of_player2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8AE=i.OPCODES[63662]=new g(63662,"unknown_f8ae",void 0,[],void 0),g.UNKNOWN_F8AF=i.OPCODES[63663]=new g(63663,"unknown_f8af",void 0,[],void 0),g.UNKNOWN_F8B0=i.OPCODES[63664]=new g(63664,"unknown_f8b0",void 0,[],void 0),g.UNKNOWN_F8B1=i.OPCODES[63665]=new g(63665,"unknown_f8b1",void 0,[],void 0),g.UNKNOWN_F8B2=i.OPCODES[63666]=new g(63666,"unknown_f8b2",void 0,[],void 0),g.UNKNOWN_F8B3=i.OPCODES[63667]=new g(63667,"unknown_f8b3",void 0,[],void 0),g.UNKNOWN_F8B4=i.OPCODES[63668]=new g(63668,"unknown_f8b4",void 0,[],void 0),g.UNKNOWN_F8B5=i.OPCODES[63669]=new g(63669,"unknown_f8b5",void 0,[],void 0),g.UNKNOWN_F8B6=i.OPCODES[63670]=new g(63670,"unknown_f8b6",void 0,[],void 0),g.UNKNOWN_F8B7=i.OPCODES[63671]=new g(63671,"unknown_f8b7",void 0,[],void 0),g.UNKNOWN_F8B8=i.OPCODES[63672]=new g(63672,"unknown_f8b8",void 0,[],void 0),g.CHL_RECOVERY=i.OPCODES[63673]=new g(63673,"chl_recovery",void 0,[],void 0),g.UNKNOWN_F8BA=i.OPCODES[63674]=new g(63674,"unknown_f8ba",void 0,[],void 0),g.UNKNOWN_F8BB=i.OPCODES[63675]=new g(63675,"unknown_f8bb",void 0,[],void 0),g.SET_EPISODE=i.OPCODES[63676]=new g(63676,"set_episode",void 0,[new S(_,void 0,void 0)],void 0),g.UNKNOWN_F8BD=i.OPCODES[63677]=new g(63677,"unknown_f8bd",void 0,[],void 0),g.UNKNOWN_F8BE=i.OPCODES[63678]=new g(63678,"unknown_f8be",void 0,[],void 0),g.UNKNOWN_F8BF=i.OPCODES[63679]=new g(63679,"unknown_f8bf",void 0,[],void 0),g.FILE_DL_REQ=i.OPCODES[63680]=new g(63680,"file_dl_req",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.GET_DL_STATUS=i.OPCODES[63681]=new g(63681,"get_dl_status",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GBA_UNKNOWN4=i.OPCODES[63682]=new g(63682,"gba_unknown4",void 0,[],void 0),g.GET_GBA_STATE=i.OPCODES[63683]=new g(63683,"get_gba_state",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8C4=i.OPCODES[63684]=new g(63684,"unknown_f8c4",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F8C5=i.OPCODES[63685]=new g(63685,"unknown_f8c5",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.QEXIT=i.OPCODES[63686]=new g(63686,"qexit",void 0,[],void 0),g.USE_ANIMATION=i.OPCODES[63687]=new g(63687,"use_animation",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Animation ID.",P.Read),new S(_,"Animation duration in number of frames.",P.Read)]},void 0,void 0)],void 0),g.STOP_ANIMATION=i.OPCODES[63688]=new g(63688,"stop_animation",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.RUN_TO_COORD=i.OPCODES[63689]=new g(63689,"run_to_coord",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_INVINCIBLE=i.OPCODES[63690]=new g(63690,"set_slot_invincible",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8CB=i.OPCODES[63691]=new g(63691,"unknown_f8cb",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_POISON=i.OPCODES[63692]=new g(63692,"set_slot_poison",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_PARALYZE=i.OPCODES[63693]=new g(63693,"set_slot_paralyze",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_SHOCK=i.OPCODES[63694]=new g(63694,"set_slot_shock",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_FREEZE=i.OPCODES[63695]=new g(63695,"set_slot_freeze",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_SLOW=i.OPCODES[63696]=new g(63696,"set_slot_slow",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_CONFUSE=i.OPCODES[63697]=new g(63697,"set_slot_confuse",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_SHIFTA=i.OPCODES[63698]=new g(63698,"set_slot_shifta",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_DEBAND=i.OPCODES[63699]=new g(63699,"set_slot_deband",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_JELLEN=i.OPCODES[63700]=new g(63700,"set_slot_jellen",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.SET_SLOT_ZALURE=i.OPCODES[63701]=new g(63701,"set_slot_zalure",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),g.FLETI_FIXED_CAMERA=i.OPCODES[63702]=new g(63702,"fleti_fixed_camera",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Pop),g.FLETI_LOCKED_CAMERA=i.OPCODES[63703]=new g(63703,"fleti_locked_camera",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],R.Pop),g.DEFAULT_CAMERA_POS2=i.OPCODES[63704]=new g(63704,"default_camera_pos2",void 0,[],void 0),g.SET_MOTION_BLUR=i.OPCODES[63705]=new g(63705,"set_motion_blur",void 0,[],void 0),g.SET_SCREEN_BW=i.OPCODES[63706]=new g(63706,"set_screen_bw",void 0,[],void 0),g.UNKNOWN_F8DB=i.OPCODES[63707]=new g(63707,"unknown_f8db",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(t,void 0,void 0)],R.Pop),g.NPC_ACTION_STRING=i.OPCODES[63708]=new g(63708,"npc_action_string",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0),new S(a,void 0,void 0)],void 0),g.GET_PAD_COND=i.OPCODES[63709]=new g(63709,"get_pad_cond",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_BUTTON_COND=i.OPCODES[63710]=new g(63710,"get_button_cond",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.FREEZE_ENEMIES=i.OPCODES[63711]=new g(63711,"freeze_enemies",void 0,[],void 0),g.UNFREEZE_ENEMIES=i.OPCODES[63712]=new g(63712,"unfreeze_enemies",void 0,[],void 0),g.FREEZE_EVERYTHING=i.OPCODES[63713]=new g(63713,"freeze_everything",void 0,[],void 0),g.UNFREEZE_EVERYTHING=i.OPCODES[63714]=new g(63714,"unfreeze_everything",void 0,[],void 0),g.RESTORE_HP=i.OPCODES[63715]=new g(63715,"restore_hp",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.RESTORE_TP=i.OPCODES[63716]=new g(63716,"restore_tp",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CLOSE_CHAT_BUBBLE=i.OPCODES[63717]=new g(63717,"close_chat_bubble",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.MOVE_COORDS_OBJECT=i.OPCODES[63718]=new g(63718,"move_coords_object",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.AT_COORDS_CALL_EX=i.OPCODES[63719]=new g(63719,"at_coords_call_ex",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8E8=i.OPCODES[63720]=new g(63720,"unknown_f8e8",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8E9=i.OPCODES[63721]=new g(63721,"unknown_f8e9",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8EA=i.OPCODES[63722]=new g(63722,"unknown_f8ea",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8EB=i.OPCODES[63723]=new g(63723,"unknown_f8eb",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.UNKNOWN_F8EC=i.OPCODES[63724]=new g(63724,"unknown_f8ec",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.ANIMATION_CHECK=i.OPCODES[63725]=new g(63725,"animation_check",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.CALL_IMAGE_DATA=i.OPCODES[63726]=new g(63726,"call_image_data",void 0,[new S(_,void 0,void 0),new S(t,void 0,void 0)],R.Pop),g.UNKNOWN_F8EF=i.OPCODES[63727]=new g(63727,"unknown_f8ef",void 0,[],void 0),g.TURN_OFF_BGM_P2=i.OPCODES[63728]=new g(63728,"turn_off_bgm_p2",void 0,[],void 0),g.TURN_ON_BGM_P2=i.OPCODES[63729]=new g(63729,"turn_on_bgm_p2",void 0,[],void 0),g.LOAD_UNK_DATA=i.OPCODES[63730]=new g(63730,"load_unk_data",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(r,void 0,void 0)],R.Pop),g.PARTICLE2=i.OPCODES[63731]=new g(63731,"particle2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0),new S(_,void 0,void 0),new S(w,void 0,void 0)],R.Pop),g.UNKNOWN_F8F4=i.OPCODES[63732]=new g(63732,"unknown_f8f4",void 0,[],void 0),g.UNKNOWN_F8F5=i.OPCODES[63733]=new g(63733,"unknown_f8f5",void 0,[],void 0),g.UNKNOWN_F8F6=i.OPCODES[63734]=new g(63734,"unknown_f8f6",void 0,[],void 0),g.UNKNOWN_F8F7=i.OPCODES[63735]=new g(63735,"unknown_f8f7",void 0,[],void 0),g.UNKNOWN_F8F8=i.OPCODES[63736]=new g(63736,"unknown_f8f8",void 0,[],void 0),g.UNKNOWN_F8F9=i.OPCODES[63737]=new g(63737,"unknown_f8f9",void 0,[],void 0),g.UNKNOWN_F8FA=i.OPCODES[63738]=new g(63738,"unknown_f8fa",void 0,[],void 0),g.UNKNOWN_F8FB=i.OPCODES[63739]=new g(63739,"unknown_f8fb",void 0,[],void 0),g.UNKNOWN_F8FC=i.OPCODES[63740]=new g(63740,"unknown_f8fc",void 0,[],void 0),g.UNKNOWN_F8FD=i.OPCODES[63741]=new g(63741,"unknown_f8fd",void 0,[],void 0),g.UNKNOWN_F8FE=i.OPCODES[63742]=new g(63742,"unknown_f8fe",void 0,[],void 0),g.UNKNOWN_F8FF=i.OPCODES[63743]=new g(63743,"unknown_f8ff",void 0,[],void 0),g.UNKNOWN_F900=i.OPCODES[63744]=new g(63744,"unknown_f900",void 0,[],void 0),g.DEC2FLOAT=i.OPCODES[63745]=new g(63745,"dec2float",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Read)]},void 0,void 0)],void 0),g.FLOAT2DEC=i.OPCODES[63746]=new g(63746,"float2dec",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FLET=i.OPCODES[63747]=new g(63747,"flet",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FLETI=i.OPCODES[63748]=new g(63748,"fleti",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.UNKNOWN_F905=i.OPCODES[63749]=new g(63749,"unknown_f905",void 0,[],void 0),g.UNKNOWN_F906=i.OPCODES[63750]=new g(63750,"unknown_f906",void 0,[],void 0),g.UNKNOWN_F907=i.OPCODES[63751]=new g(63751,"unknown_f907",void 0,[],void 0),g.FADD=i.OPCODES[63752]=new g(63752,"fadd",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FADDI=i.OPCODES[63753]=new g(63753,"faddi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.FSUB=i.OPCODES[63754]=new g(63754,"fsub",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FSUBI=i.OPCODES[63755]=new g(63755,"fsubi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.FMUL=i.OPCODES[63756]=new g(63756,"fmul",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FMULI=i.OPCODES[63757]=new g(63757,"fmuli",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.FDIV=i.OPCODES[63758]=new g(63758,"fdiv",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Read)]},void 0,void 0)],void 0),g.FDIVI=i.OPCODES[63759]=new g(63759,"fdivi",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(w,void 0,P.Write)]},void 0,void 0),new S(w,void 0,void 0)],void 0),g.GET_UNKNOWN_COUNT=i.OPCODES[63760]=new g(63760,"get_unknown_count",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_STACKABLE_ITEM_COUNT=i.OPCODES[63761]=new g(63761,"get_stackable_item_count",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,"Player slot.",P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read),new S(_,void 0,P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.FREEZE_AND_HIDE_EQUIP=i.OPCODES[63762]=new g(63762,"freeze_and_hide_equip",void 0,[],void 0),g.THAW_AND_SHOW_EQUIP=i.OPCODES[63763]=new g(63763,"thaw_and_show_equip",void 0,[],void 0),g.SET_PALETTEX_CALLBACK=i.OPCODES[63764]=new g(63764,"set_palettex_callback",void 0,[new S(_,"Player slot.",void 0),new S(s,void 0,void 0)],R.Pop),g.ACTIVATE_PALETTEX=i.OPCODES[63765]=new g(63765,"activate_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.ENABLE_PALETTEX=i.OPCODES[63766]=new g(63766,"enable_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.RESTORE_PALETTEX=i.OPCODES[63767]=new g(63767,"restore_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.DISABLE_PALETTEX=i.OPCODES[63768]=new g(63768,"disable_palettex",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.GET_PALETTEX_ACTIVATED=i.OPCODES[63769]=new g(63769,"get_palettex_activated",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_UNKNOWN_PALETTEX_STATUS=i.OPCODES[63770]=new g(63770,"get_unknown_palettex_status",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.DISABLE_MOVEMENT2=i.OPCODES[63771]=new g(63771,"disable_movement2",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.ENABLE_MOVEMENT2=i.OPCODES[63772]=new g(63772,"enable_movement2",void 0,[new S(_,"Player slot.",void 0)],R.Pop),g.GET_TIME_PLAYED=i.OPCODES[63773]=new g(63773,"get_time_played",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_GUILDCARD_TOTAL=i.OPCODES[63774]=new g(63774,"get_guildcard_total",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_SLOT_MESETA=i.OPCODES[63775]=new g(63775,"get_slot_meseta",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_PLAYER_LEVEL=i.OPCODES[63776]=new g(63776,"get_player_level",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_SECTION_ID=i.OPCODES[63777]=new g(63777,"get_section_id",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_PLAYER_HP=i.OPCODES[63778]=new g(63778,"get_player_hp",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,"Maximum HP.",P.Write),new S(_,"Current HP.",P.Write),new S(_,"Maximum TP.",P.Write),new S(_,"Current TP.",P.Write)]},void 0,void 0)],R.Pop),g.GET_FLOOR_NUMBER=i.OPCODES[63779]=new g(63779,"get_floor_number",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.GET_COORD_PLAYER_DETECT=i.OPCODES[63780]=new g(63780,"get_coord_player_detect",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,"Player slot.",P.Read)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Read)]},void 0,void 0)],void 0),g.READ_GLOBAL_FLAG=i.OPCODES[63781]=new g(63781,"read_global_flag",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.WRITE_GLOBAL_FLAG=i.OPCODES[63782]=new g(63782,"write_global_flag",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F927=i.OPCODES[63783]=new g(63783,"unknown_f927",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.FLOOR_PLAYER_DETECT=i.OPCODES[63784]=new g(63784,"floor_player_detect",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write),new S(_,void 0,P.Write),new S(_,void 0,P.Write),new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.READ_DISK_FILE=i.OPCODES[63785]=new g(63785,"read_disk_file",void 0,[new S(u,void 0,void 0)],R.Pop),g.OPEN_PACK_SELECT=i.OPCODES[63786]=new g(63786,"open_pack_select",void 0,[],void 0),g.ITEM_SELECT=i.OPCODES[63787]=new g(63787,"item_select",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.GET_ITEM_ID=i.OPCODES[63788]=new g(63788,"get_item_id",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.COLOR_CHANGE=i.OPCODES[63789]=new g(63789,"color_change",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.SEND_STATISTIC=i.OPCODES[63790]=new g(63790,"send_statistic",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F92F=i.OPCODES[63791]=new g(63791,"unknown_f92f",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.CHAT_BOX=i.OPCODES[63792]=new g(63792,"chat_box",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.CHAT_BUBBLE=i.OPCODES[63793]=new g(63793,"chat_bubble",void 0,[new S(_,void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.UNKNOWN_F932=i.OPCODES[63794]=new g(63794,"unknown_f932",void 0,[],void 0),g.UNKNOWN_F933=i.OPCODES[63795]=new g(63795,"unknown_f933",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],void 0),g.SCROLL_TEXT=i.OPCODES[63796]=new g(63796,"scroll_text",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(w,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(u,void 0,void 0)],R.Pop),g.GBA_UNKNOWN1=i.OPCODES[63797]=new g(63797,"gba_unknown1",void 0,[],void 0),g.GBA_UNKNOWN2=i.OPCODES[63798]=new g(63798,"gba_unknown2",void 0,[],void 0),g.GBA_UNKNOWN3=i.OPCODES[63799]=new g(63799,"gba_unknown3",void 0,[],void 0),g.ADD_DAMAGE_TO=i.OPCODES[63800]=new g(63800,"add_damage_to",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.ITEM_DELETE3=i.OPCODES[63801]=new g(63801,"item_delete3",void 0,[new S(_,void 0,void 0)],R.Pop),g.GET_ITEM_INFO=i.OPCODES[63802]=new g(63802,"get_item_info",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],R.Pop),g.ITEM_PACKING1=i.OPCODES[63803]=new g(63803,"item_packing1",void 0,[new S(_,void 0,void 0)],R.Pop),g.ITEM_PACKING2=i.OPCODES[63804]=new g(63804,"item_packing2",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.GET_LANG_SETTING=i.OPCODES[63805]=new g(63805,"get_lang_setting",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(d,void 0,P.Write)]},void 0,void 0)],R.Pop),g.PREPARE_STATISTIC=i.OPCODES[63806]=new g(63806,"prepare_statistic",void 0,[new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.KEYWORD_DETECT=i.OPCODES[63807]=new g(63807,"keyword_detect",void 0,[],void 0),g.KEYWORD=i.OPCODES[63808]=new g(63808,"keyword",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,"Player slot.",void 0),new S(u,void 0,void 0)],R.Pop),g.GET_GUILDCARD_NUM=i.OPCODES[63809]=new g(63809,"get_guildcard_num",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.UNKNOWN_F942=i.OPCODES[63810]=new g(63810,"unknown_f942",void 0,[],void 0),g.UNKNOWN_F943=i.OPCODES[63811]=new g(63811,"unknown_f943",void 0,[],void 0),g.GET_WRAP_STATUS=i.OPCODES[63812]=new g(63812,"get_wrap_status",void 0,[new S(_,"Player slot.",void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.INITIAL_FLOOR=i.OPCODES[63813]=new g(63813,"initial_floor",void 0,[new S(_,void 0,void 0)],R.Pop),g.SIN=i.OPCODES[63814]=new g(63814,"sin",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.COS=i.OPCODES[63815]=new g(63815,"cos",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F948=i.OPCODES[63816]=new g(63816,"unknown_f948",void 0,[],void 0),g.UNKNOWN_F949=i.OPCODES[63817]=new g(63817,"unknown_f949",void 0,[],void 0),g.BOSS_IS_DEAD2=i.OPCODES[63818]=new g(63818,"boss_is_dead2",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F94B=i.OPCODES[63819]=new g(63819,"unknown_f94b",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F94C=i.OPCODES[63820]=new g(63820,"unknown_f94c",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.IS_THERE_CARDBATTLE=i.OPCODES[63821]=new g(63821,"is_there_cardbattle",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.UNKNOWN_F94E=i.OPCODES[63822]=new g(63822,"unknown_f94e",void 0,[],void 0),g.UNKNOWN_F94F=i.OPCODES[63823]=new g(63823,"unknown_f94f",void 0,[],void 0),g.BB_P2_MENU=i.OPCODES[63824]=new g(63824,"bb_p2_menu",void 0,[new S(_,void 0,void 0)],R.Pop),g.BB_MAP_DESIGNATE=i.OPCODES[63825]=new g(63825,"bb_map_designate",void 0,[new S(v,void 0,void 0),new S(t,void 0,void 0),new S(v,void 0,void 0),new S(v,void 0,void 0)],void 0),g.BB_GET_NUMBER_IN_PACK=i.OPCODES[63826]=new g(63826,"bb_get_number_in_pack",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],void 0),g.BB_SWAP_ITEM=i.OPCODES[63827]=new g(63827,"bb_swap_item",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_CHECK_WRAP=i.OPCODES[63828]=new g(63828,"bb_check_wrap",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_ITEM=i.OPCODES[63829]=new g(63829,"bb_exchange_pd_item",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_SRANK=i.OPCODES[63830]=new g(63830,"bb_exchange_pd_srank",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_SPECIAL=i.OPCODES[63831]=new g(63831,"bb_exchange_pd_special",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PD_PERCENT=i.OPCODES[63832]=new g(63832,"bb_exchange_pd_percent",void 0,[new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.UNKNOWN_F959=i.OPCODES[63833]=new g(63833,"unknown_f959",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F95A=i.OPCODES[63834]=new g(63834,"unknown_f95a",void 0,[],void 0),g.UNKNOWN_F95B=i.OPCODES[63835]=new g(63835,"unknown_f95b",void 0,[],void 0),g.BB_EXCHANGE_SLT=i.OPCODES[63836]=new g(63836,"bb_exchange_slt",void 0,[new S(_,void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PC=i.OPCODES[63837]=new g(63837,"bb_exchange_pc",void 0,[],void 0),g.BB_BOX_CREATE_BP=i.OPCODES[63838]=new g(63838,"bb_box_create_bp",void 0,[new S(_,void 0,void 0),new S(w,void 0,void 0),new S(w,void 0,void 0)],R.Pop),g.BB_EXCHANGE_PT=i.OPCODES[63839]=new g(63839,"bb_exchange_pt",void 0,[new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S({kind:o.RegTupRef,register_tuples:[new S(_,void 0,P.Write)]},void 0,void 0),new S(_,void 0,void 0),new S(s,void 0,void 0),new S(s,void 0,void 0)],R.Pop),g.UNKNOWN_F960=i.OPCODES[63840]=new g(63840,"unknown_f960",void 0,[new S(_,void 0,void 0)],R.Pop),g.UNKNOWN_F961=i.OPCODES[63841]=new g(63841,"unknown_f961",void 0,[],void 0),g.UNKNOWN_F962=i.OPCODES[63842]=new g(63842,"unknown_f962",void 0,[],void 0),g.UNKNOWN_F963=i.OPCODES[63843]=new g(63843,"unknown_f963",void 0,[],void 0),g.UNKNOWN_F964=i.OPCODES[63844]=new g(63844,"unknown_f964",void 0,[],void 0),g.UNKNOWN_F965=i.OPCODES[63845]=new g(63845,"unknown_f965",void 0,[],void 0),g.UNKNOWN_F966=i.OPCODES[63846]=new g(63846,"unknown_f966",void 0,[],void 0),g.UNKNOWN_F967=i.OPCODES[63847]=new g(63847,"unknown_f967",void 0,[],void 0),g.UNKNOWN_F968=i.OPCODES[63848]=new g(63848,"unknown_f968",void 0,[],void 0),g.UNKNOWN_F969=i.OPCODES[63849]=new g(63849,"unknown_f969",void 0,[],void 0),g.UNKNOWN_F96A=i.OPCODES[63850]=new g(63850,"unknown_f96a",void 0,[],void 0),g.UNKNOWN_F96B=i.OPCODES[63851]=new g(63851,"unknown_f96b",void 0,[],void 0),g.UNKNOWN_F96C=i.OPCODES[63852]=new g(63852,"unknown_f96c",void 0,[],void 0),g.UNKNOWN_F96D=i.OPCODES[63853]=new g(63853,"unknown_f96d",void 0,[],void 0),g.UNKNOWN_F96E=i.OPCODES[63854]=new g(63854,"unknown_f96e",void 0,[],void 0),g.UNKNOWN_F96F=i.OPCODES[63855]=new g(63855,"unknown_f96f",void 0,[],void 0),g.UNKNOWN_F970=i.OPCODES[63856]=new g(63856,"unknown_f970",void 0,[],void 0),g.UNKNOWN_F971=i.OPCODES[63857]=new g(63857,"unknown_f971",void 0,[],void 0),g.UNKNOWN_F972=i.OPCODES[63858]=new g(63858,"unknown_f972",void 0,[],void 0),g.UNKNOWN_F973=i.OPCODES[63859]=new g(63859,"unknown_f973",void 0,[],void 0),g.UNKNOWN_F974=i.OPCODES[63860]=new g(63860,"unknown_f974",void 0,[],void 0),g.UNKNOWN_F975=i.OPCODES[63861]=new g(63861,"unknown_f975",void 0,[],void 0),g.UNKNOWN_F976=i.OPCODES[63862]=new g(63862,"unknown_f976",void 0,[],void 0),g.UNKNOWN_F977=i.OPCODES[63863]=new g(63863,"unknown_f977",void 0,[],void 0),g.UNKNOWN_F978=i.OPCODES[63864]=new g(63864,"unknown_f978",void 0,[],void 0),g.UNKNOWN_F979=i.OPCODES[63865]=new g(63865,"unknown_f979",void 0,[],void 0),g.UNKNOWN_F97A=i.OPCODES[63866]=new g(63866,"unknown_f97a",void 0,[],void 0),g.UNKNOWN_F97B=i.OPCODES[63867]=new g(63867,"unknown_f97b",void 0,[],void 0),g.UNKNOWN_F97C=i.OPCODES[63868]=new g(63868,"unknown_f97c",void 0,[],void 0),g.UNKNOWN_F97D=i.OPCODES[63869]=new g(63869,"unknown_f97d",void 0,[],void 0),g.UNKNOWN_F97E=i.OPCODES[63870]=new g(63870,"unknown_f97e",void 0,[],void 0),g.UNKNOWN_F97F=i.OPCODES[63871]=new g(63871,"unknown_f97f",void 0,[],void 0),g.UNKNOWN_F980=i.OPCODES[63872]=new g(63872,"unknown_f980",void 0,[],void 0),g.UNKNOWN_F981=i.OPCODES[63873]=new g(63873,"unknown_f981",void 0,[],void 0),g.UNKNOWN_F982=i.OPCODES[63874]=new g(63874,"unknown_f982",void 0,[],void 0),g.UNKNOWN_F983=i.OPCODES[63875]=new g(63875,"unknown_f983",void 0,[],void 0),g.UNKNOWN_F984=i.OPCODES[63876]=new g(63876,"unknown_f984",void 0,[],void 0),g.UNKNOWN_F985=i.OPCODES[63877]=new g(63877,"unknown_f985",void 0,[],void 0),g.UNKNOWN_F986=i.OPCODES[63878]=new g(63878,"unknown_f986",void 0,[],void 0),g.UNKNOWN_F987=i.OPCODES[63879]=new g(63879,"unknown_f987",void 0,[],void 0),g.UNKNOWN_F988=i.OPCODES[63880]=new g(63880,"unknown_f988",void 0,[],void 0),g.UNKNOWN_F989=i.OPCODES[63881]=new g(63881,"unknown_f989",void 0,[],void 0),g.UNKNOWN_F98A=i.OPCODES[63882]=new g(63882,"unknown_f98a",void 0,[],void 0),g.UNKNOWN_F98B=i.OPCODES[63883]=new g(63883,"unknown_f98b",void 0,[],void 0),g.UNKNOWN_F98C=i.OPCODES[63884]=new g(63884,"unknown_f98c",void 0,[],void 0),g.UNKNOWN_F98D=i.OPCODES[63885]=new g(63885,"unknown_f98d",void 0,[],void 0),g.UNKNOWN_F98E=i.OPCODES[63886]=new g(63886,"unknown_f98e",void 0,[],void 0),g.UNKNOWN_F98F=i.OPCODES[63887]=new g(63887,"unknown_f98f",void 0,[],void 0),g.UNKNOWN_F990=i.OPCODES[63888]=new g(63888,"unknown_f990",void 0,[],void 0),g.UNKNOWN_F991=i.OPCODES[63889]=new g(63889,"unknown_f991",void 0,[],void 0),g.UNKNOWN_F992=i.OPCODES[63890]=new g(63890,"unknown_f992",void 0,[],void 0),g.UNKNOWN_F993=i.OPCODES[63891]=new g(63891,"unknown_f993",void 0,[],void 0),g.UNKNOWN_F994=i.OPCODES[63892]=new g(63892,"unknown_f994",void 0,[],void 0),g.UNKNOWN_F995=i.OPCODES[63893]=new g(63893,"unknown_f995",void 0,[],void 0),g.UNKNOWN_F996=i.OPCODES[63894]=new g(63894,"unknown_f996",void 0,[],void 0),g.UNKNOWN_F997=i.OPCODES[63895]=new g(63895,"unknown_f997",void 0,[],void 0),g.UNKNOWN_F998=i.OPCODES[63896]=new g(63896,"unknown_f998",void 0,[],void 0),g.UNKNOWN_F999=i.OPCODES[63897]=new g(63897,"unknown_f999",void 0,[],void 0),g.UNKNOWN_F99A=i.OPCODES[63898]=new g(63898,"unknown_f99a",void 0,[],void 0),g.UNKNOWN_F99B=i.OPCODES[63899]=new g(63899,"unknown_f99b",void 0,[],void 0),g.UNKNOWN_F99C=i.OPCODES[63900]=new g(63900,"unknown_f99c",void 0,[],void 0),g.UNKNOWN_F99D=i.OPCODES[63901]=new g(63901,"unknown_f99d",void 0,[],void 0),g.UNKNOWN_F99E=i.OPCODES[63902]=new g(63902,"unknown_f99e",void 0,[],void 0),g.UNKNOWN_F99F=i.OPCODES[63903]=new g(63903,"unknown_f99f",void 0,[],void 0),g.UNKNOWN_F9A0=i.OPCODES[63904]=new g(63904,"unknown_f9a0",void 0,[],void 0),g.UNKNOWN_F9A1=i.OPCODES[63905]=new g(63905,"unknown_f9a1",void 0,[],void 0),g.UNKNOWN_F9A2=i.OPCODES[63906]=new g(63906,"unknown_f9a2",void 0,[],void 0),g.UNKNOWN_F9A3=i.OPCODES[63907]=new g(63907,"unknown_f9a3",void 0,[],void 0),g.UNKNOWN_F9A4=i.OPCODES[63908]=new g(63908,"unknown_f9a4",void 0,[],void 0),g.UNKNOWN_F9A5=i.OPCODES[63909]=new g(63909,"unknown_f9a5",void 0,[],void 0),g.UNKNOWN_F9A6=i.OPCODES[63910]=new g(63910,"unknown_f9a6",void 0,[],void 0),g.UNKNOWN_F9A7=i.OPCODES[63911]=new g(63911,"unknown_f9a7",void 0,[],void 0),g.UNKNOWN_F9A8=i.OPCODES[63912]=new g(63912,"unknown_f9a8",void 0,[],void 0),g.UNKNOWN_F9A9=i.OPCODES[63913]=new g(63913,"unknown_f9a9",void 0,[],void 0),g.UNKNOWN_F9AA=i.OPCODES[63914]=new g(63914,"unknown_f9aa",void 0,[],void 0),g.UNKNOWN_F9AB=i.OPCODES[63915]=new g(63915,"unknown_f9ab",void 0,[],void 0),g.UNKNOWN_F9AC=i.OPCODES[63916]=new g(63916,"unknown_f9ac",void 0,[],void 0),g.UNKNOWN_F9AD=i.OPCODES[63917]=new g(63917,"unknown_f9ad",void 0,[],void 0),g.UNKNOWN_F9AE=i.OPCODES[63918]=new g(63918,"unknown_f9ae",void 0,[],void 0),g.UNKNOWN_F9AF=i.OPCODES[63919]=new g(63919,"unknown_f9af",void 0,[],void 0),g.UNKNOWN_F9B0=i.OPCODES[63920]=new g(63920,"unknown_f9b0",void 0,[],void 0),g.UNKNOWN_F9B1=i.OPCODES[63921]=new g(63921,"unknown_f9b1",void 0,[],void 0),g.UNKNOWN_F9B2=i.OPCODES[63922]=new g(63922,"unknown_f9b2",void 0,[],void 0),g.UNKNOWN_F9B3=i.OPCODES[63923]=new g(63923,"unknown_f9b3",void 0,[],void 0),g.UNKNOWN_F9B4=i.OPCODES[63924]=new g(63924,"unknown_f9b4",void 0,[],void 0),g.UNKNOWN_F9B5=i.OPCODES[63925]=new g(63925,"unknown_f9b5",void 0,[],void 0),g.UNKNOWN_F9B6=i.OPCODES[63926]=new g(63926,"unknown_f9b6",void 0,[],void 0),g.UNKNOWN_F9B7=i.OPCODES[63927]=new g(63927,"unknown_f9b7",void 0,[],void 0),g.UNKNOWN_F9B8=i.OPCODES[63928]=new g(63928,"unknown_f9b8",void 0,[],void 0),g.UNKNOWN_F9B9=i.OPCODES[63929]=new g(63929,"unknown_f9b9",void 0,[],void 0),g.UNKNOWN_F9BA=i.OPCODES[63930]=new g(63930,"unknown_f9ba",void 0,[],void 0),g.UNKNOWN_F9BB=i.OPCODES[63931]=new g(63931,"unknown_f9bb",void 0,[],void 0),g.UNKNOWN_F9BC=i.OPCODES[63932]=new g(63932,"unknown_f9bc",void 0,[],void 0),g.UNKNOWN_F9BD=i.OPCODES[63933]=new g(63933,"unknown_f9bd",void 0,[],void 0),g.UNKNOWN_F9BE=i.OPCODES[63934]=new g(63934,"unknown_f9be",void 0,[],void 0),g.UNKNOWN_F9BF=i.OPCODES[63935]=new g(63935,"unknown_f9bf",void 0,[],void 0),g.UNKNOWN_F9C0=i.OPCODES[63936]=new g(63936,"unknown_f9c0",void 0,[],void 0),g.UNKNOWN_F9C1=i.OPCODES[63937]=new g(63937,"unknown_f9c1",void 0,[],void 0),g.UNKNOWN_F9C2=i.OPCODES[63938]=new g(63938,"unknown_f9c2",void 0,[],void 0),g.UNKNOWN_F9C3=i.OPCODES[63939]=new g(63939,"unknown_f9c3",void 0,[],void 0),g.UNKNOWN_F9C4=i.OPCODES[63940]=new g(63940,"unknown_f9c4",void 0,[],void 0),g.UNKNOWN_F9C5=i.OPCODES[63941]=new g(63941,"unknown_f9c5",void 0,[],void 0),g.UNKNOWN_F9C6=i.OPCODES[63942]=new g(63942,"unknown_f9c6",void 0,[],void 0),g.UNKNOWN_F9C7=i.OPCODES[63943]=new g(63943,"unknown_f9c7",void 0,[],void 0),g.UNKNOWN_F9C8=i.OPCODES[63944]=new g(63944,"unknown_f9c8",void 0,[],void 0),g.UNKNOWN_F9C9=i.OPCODES[63945]=new g(63945,"unknown_f9c9",void 0,[],void 0),g.UNKNOWN_F9CA=i.OPCODES[63946]=new g(63946,"unknown_f9ca",void 0,[],void 0),g.UNKNOWN_F9CB=i.OPCODES[63947]=new g(63947,"unknown_f9cb",void 0,[],void 0),g.UNKNOWN_F9CC=i.OPCODES[63948]=new g(63948,"unknown_f9cc",void 0,[],void 0),g.UNKNOWN_F9CD=i.OPCODES[63949]=new g(63949,"unknown_f9cd",void 0,[],void 0),g.UNKNOWN_F9CE=i.OPCODES[63950]=new g(63950,"unknown_f9ce",void 0,[],void 0),g.UNKNOWN_F9CF=i.OPCODES[63951]=new g(63951,"unknown_f9cf",void 0,[],void 0),g.UNKNOWN_F9D0=i.OPCODES[63952]=new g(63952,"unknown_f9d0",void 0,[],void 0),g.UNKNOWN_F9D1=i.OPCODES[63953]=new g(63953,"unknown_f9d1",void 0,[],void 0),g.UNKNOWN_F9D2=i.OPCODES[63954]=new g(63954,"unknown_f9d2",void 0,[],void 0),g.UNKNOWN_F9D3=i.OPCODES[63955]=new g(63955,"unknown_f9d3",void 0,[],void 0),g.UNKNOWN_F9D4=i.OPCODES[63956]=new g(63956,"unknown_f9d4",void 0,[],void 0),g.UNKNOWN_F9D5=i.OPCODES[63957]=new g(63957,"unknown_f9d5",void 0,[],void 0),g.UNKNOWN_F9D6=i.OPCODES[63958]=new g(63958,"unknown_f9d6",void 0,[],void 0),g.UNKNOWN_F9D7=i.OPCODES[63959]=new g(63959,"unknown_f9d7",void 0,[],void 0),g.UNKNOWN_F9D8=i.OPCODES[63960]=new g(63960,"unknown_f9d8",void 0,[],void 0),g.UNKNOWN_F9D9=i.OPCODES[63961]=new g(63961,"unknown_f9d9",void 0,[],void 0),g.UNKNOWN_F9DA=i.OPCODES[63962]=new g(63962,"unknown_f9da",void 0,[],void 0),g.UNKNOWN_F9DB=i.OPCODES[63963]=new g(63963,"unknown_f9db",void 0,[],void 0),g.UNKNOWN_F9DC=i.OPCODES[63964]=new g(63964,"unknown_f9dc",void 0,[],void 0),g.UNKNOWN_F9DD=i.OPCODES[63965]=new g(63965,"unknown_f9dd",void 0,[],void 0),g.UNKNOWN_F9DE=i.OPCODES[63966]=new g(63966,"unknown_f9de",void 0,[],void 0),g.UNKNOWN_F9DF=i.OPCODES[63967]=new g(63967,"unknown_f9df",void 0,[],void 0),g.UNKNOWN_F9E0=i.OPCODES[63968]=new g(63968,"unknown_f9e0",void 0,[],void 0),g.UNKNOWN_F9E1=i.OPCODES[63969]=new g(63969,"unknown_f9e1",void 0,[],void 0),g.UNKNOWN_F9E2=i.OPCODES[63970]=new g(63970,"unknown_f9e2",void 0,[],void 0),g.UNKNOWN_F9E3=i.OPCODES[63971]=new g(63971,"unknown_f9e3",void 0,[],void 0),g.UNKNOWN_F9E4=i.OPCODES[63972]=new g(63972,"unknown_f9e4",void 0,[],void 0),g.UNKNOWN_F9E5=i.OPCODES[63973]=new g(63973,"unknown_f9e5",void 0,[],void 0),g.UNKNOWN_F9E6=i.OPCODES[63974]=new g(63974,"unknown_f9e6",void 0,[],void 0),g.UNKNOWN_F9E7=i.OPCODES[63975]=new g(63975,"unknown_f9e7",void 0,[],void 0),g.UNKNOWN_F9E8=i.OPCODES[63976]=new g(63976,"unknown_f9e8",void 0,[],void 0),g.UNKNOWN_F9E9=i.OPCODES[63977]=new g(63977,"unknown_f9e9",void 0,[],void 0),g.UNKNOWN_F9EA=i.OPCODES[63978]=new g(63978,"unknown_f9ea",void 0,[],void 0),g.UNKNOWN_F9EB=i.OPCODES[63979]=new g(63979,"unknown_f9eb",void 0,[],void 0),g.UNKNOWN_F9EC=i.OPCODES[63980]=new g(63980,"unknown_f9ec",void 0,[],void 0),g.UNKNOWN_F9ED=i.OPCODES[63981]=new g(63981,"unknown_f9ed",void 0,[],void 0),g.UNKNOWN_F9EE=i.OPCODES[63982]=new g(63982,"unknown_f9ee",void 0,[],void 0),g.UNKNOWN_F9EF=i.OPCODES[63983]=new g(63983,"unknown_f9ef",void 0,[],void 0),g.UNKNOWN_F9F0=i.OPCODES[63984]=new g(63984,"unknown_f9f0",void 0,[],void 0),g.UNKNOWN_F9F1=i.OPCODES[63985]=new g(63985,"unknown_f9f1",void 0,[],void 0),g.UNKNOWN_F9F2=i.OPCODES[63986]=new g(63986,"unknown_f9f2",void 0,[],void 0),g.UNKNOWN_F9F3=i.OPCODES[63987]=new g(63987,"unknown_f9f3",void 0,[],void 0),g.UNKNOWN_F9F4=i.OPCODES[63988]=new g(63988,"unknown_f9f4",void 0,[],void 0),g.UNKNOWN_F9F5=i.OPCODES[63989]=new g(63989,"unknown_f9f5",void 0,[],void 0),g.UNKNOWN_F9F6=i.OPCODES[63990]=new g(63990,"unknown_f9f6",void 0,[],void 0),g.UNKNOWN_F9F7=i.OPCODES[63991]=new g(63991,"unknown_f9f7",void 0,[],void 0),g.UNKNOWN_F9F8=i.OPCODES[63992]=new g(63992,"unknown_f9f8",void 0,[],void 0),g.UNKNOWN_F9F9=i.OPCODES[63993]=new g(63993,"unknown_f9f9",void 0,[],void 0),g.UNKNOWN_F9FA=i.OPCODES[63994]=new g(63994,"unknown_f9fa",void 0,[],void 0),g.UNKNOWN_F9FB=i.OPCODES[63995]=new g(63995,"unknown_f9fb",void 0,[],void 0),g.UNKNOWN_F9FC=i.OPCODES[63996]=new g(63996,"unknown_f9fc",void 0,[],void 0),g.UNKNOWN_F9FD=i.OPCODES[63997]=new g(63997,"unknown_f9fd",void 0,[],void 0),g.UNKNOWN_F9FE=i.OPCODES[63998]=new g(63998,"unknown_f9fe",void 0,[],void 0),g.UNKNOWN_F9FF=i.OPCODES[63999]=new g(63999,"unknown_f9ff",void 0,[],void 0),i.Opcode=g,i.OPCODES.forEach(e=>{i.OPCODES_BY_MNEMONIC.set(e.mnemonic,e)})},lg9k:function(e,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});const o=n("ZPAt");i.Instruction=class{constructor(e,i){this.opcode=e,this.args=i,this.arg_size=0,this.param_to_args=[];const n=Math.min(e.params.length,i.length);for(let d=0;de.type===O.TokenType.Ident);if(v&&(i=w.OPCODES_BY_MNEMONIC.get(v.value)))for(const i of d){if(i.col+i.len>e.col)break;i.type===O.TokenType.Ident&&-1===n?n=0:i.type===O.TokenType.ArgSeparator&&n++}}const o={type:d.OutputMessageType.SignatureHelp,id:e.id,opcode:i,active_param:n};s.postMessage(o)}function p(){const e=v.assemble(r),i=new Map;for(const n of e.object_code)if(n.labels.includes(0)){if(n.type===_.SegmentType.Instructions)for(const e of n.instructions)e.opcode===w.Opcode.BB_MAP_DESIGNATE&&i.set(e.args[0].value,e.args[2].value);break}const n=Object.assign({type:d.OutputMessageType.NewObjectCode,map_designations:i},e);s.postMessage(n)}function P(e,i,n,o){const d=r[e-1],v=d.slice(0,i-1),t=d.slice(n-1);1===o.length?r.splice(e-1,1,v+o[0]+t):r.splice(e-1,1,v+o[0],...o.slice(1,o.length-1),o[o.length-1]+t)}function R(e,i,n){r.splice(e-1,1,n+r[e-1].slice(i-1))}function S(e,i,n){r.splice(e-1,1,r[e-1].slice(0,i-1)+n)}function g(e,i,n){r.splice(e-1,i-e+1,...n)}function f(e,i,n,o,d){const v=r[e-1],t=r[i-1],_=v.slice(0,n-1),w=t.slice(o-1);r.splice(e-1,i-e+1,_+d+w)}s.onmessage=e=>{a.push(e.data),u||(E(),u=setTimeout(()=>{u=void 0,E()},100))}}}); \ No newline at end of file diff --git a/editor.worker.js b/editor.worker.js index 407c4ad6..a3a16b1c 100644 --- a/editor.worker.js +++ b/editor.worker.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="5QBA")}({"5QBA":function(e,t,n){"use strict";n.r(t);var r=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}());function i(e){u(e)||r.onUnexpectedError(e)}function o(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var s="Canceled";function u(e){return e instanceof Error&&e.name===s&&e.message===s}function a(e){for(var t=[],n=1;nr?e[a]=o[u++]:u>i?e[a]=o[s++]:t(o[u],o[s])<0?e[a]=o[u++]:e[a]=o[s++]}(t,n,r,s,i,o)}(e,t,0,e.length-1,[]),e}var v=function(){function e(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function y(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function C(e,t,n){return new S(y(e),y(t)).ComputeDiff(n)}var b,L=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),N=function(){function e(){}return e.Copy=function(e,t,n,r,i){for(var o=0;o0||this.m_modifiedCount>0)&&this.m_changes.push(new v(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),S=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,r,i){var o=this.ComputeDiffRecursive(e,t,n,r,[!1]);return i?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){var o=void 0;return n<=r?(L.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new v(e,0,n,r-n+1)]):e<=t?(L.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new v(e,t-e+1,n,0)]):(L.Assert(e===t+1,"originalStart should only be one more than originalEnd"),L.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}var s=[0],u=[0],a=this.ComputeRecursionPoint(e,t,n,r,s,u,i),l=s[0],c=u[0];if(null!==a)return a;if(!i[0]){var f=this.ComputeDiffRecursive(e,l,n,c,i),h=[];return h=i[0]?[new v(l+1,t-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,r,i),this.ConcatenateChanges(f,h)}return[new v(e,t-e+1,n,r-n+1)]},e.prototype.WALKTRACE=function(e,t,n,r,i,o,s,u,a,l,c,f,h,d,m,p,g,_){var y,C,b=null,L=new E,N=t,S=n,w=h[0]-p[0]-r,A=Number.MIN_VALUE,T=this.m_forwardHistory.length-1;do{(C=w+e)===N||C=0&&(e=(a=this.m_forwardHistory[T])[0],N=1,S=a.length-1)}while(--T>=-1);if(y=L.getReverseChanges(),_[0]){var M=h[0]+1,P=p[0]+1;if(null!==y&&y.length>0){var O=y[y.length-1];M=Math.max(M,O.getOriginalEnd()),P=Math.max(P,O.getModifiedEnd())}b=[new v(M,f-M+1,P,m-P+1)]}else{L=new E,N=o,S=s,w=h[0]-p[0]-u,A=Number.MAX_VALUE,T=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(C=w+i)===N||C=l[C+1]?(d=(c=l[C+1]-1)-w-u,c>A&&L.MarkNextChange(),A=c+1,L.AddOriginalElement(c+1,d+1),w=C+1-i):(d=(c=l[C-1])-w-u,c>A&&L.MarkNextChange(),A=c,L.AddModifiedElement(c+1,d+1),w=C-1-i),T>=0&&(i=(l=this.m_reverseHistory[T])[0],N=1,S=l.length-1)}while(--T>=-1);b=L.getChanges()}return this.ConcatenateChanges(y,b)},e.prototype.ComputeRecursionPoint=function(e,t,n,r,i,o,s){var u,a=0,l=0,c=0,f=0,h=0,d=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var m,p,g=t-e+(r-n),_=g+1,y=new Array(_),C=new Array(_),b=r-n,L=t-e,E=e-n,S=t-r,w=(L-b)%2==0;for(y[b]=e,C[L]=t,s[0]=!1,u=1;u<=g/2+1;u++){var A=0,T=0;for(c=this.ClipDiagonalBound(b-u,u,b,_),f=this.ClipDiagonalBound(b+u,u,b,_),m=c;m<=f;m+=2){for(l=(a=m===c||mA+T&&(A=a,T=l),!w&&Math.abs(m-L)<=u-1&&a>=C[m])return i[0]=a,o[0]=l,p<=C[m]&&u<=1448?this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s):null}var M=(A-e+(T-n)-u)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(A,this.OriginalSequence,M))return s[0]=!0,i[0]=A,o[0]=T,M>0&&u<=1448?this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s):[new v(++e,t-e+1,++n,r-n+1)];for(h=this.ClipDiagonalBound(L-u,u,L,_),d=this.ClipDiagonalBound(L+u,u,L,_),m=h;m<=d;m+=2){for(l=(a=m===h||m=C[m+1]?C[m+1]-1:C[m-1])-(m-L)-S,p=a;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(C[m]=a,w&&Math.abs(m-b)<=u&&a<=y[m])return i[0]=a,o[0]=l,p>=y[m]&&u<=1448?this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s):null}if(u<=1447){var P=new Array(f-c+2);P[0]=b-c+1,N.Copy(y,c,P,1,f-c+1),this.m_forwardHistory.push(P),(P=new Array(d-h+2))[0]=L-h+1,N.Copy(C,h,P,1,d-h+1),this.m_reverseHistory.push(P)}}return this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=n.modifiedLength>0;n.originalStart+n.originalLength=0;t--){n=e[t],r=0,i=0;if(t>0){var a=e[t-1];a.originalLength>0&&(r=a.originalStart+a.originalLength),a.modifiedLength>0&&(i=a.modifiedStart+a.modifiedLength)}o=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),f=1;;f++){var h=n.originalStart-f,d=n.modifiedStart-f;if(hc&&(c=m,l=f)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);return N.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],N.Copy(t,1,r,e.length,t.length-1),r}r=new Array(e.length+t.length);return N.Copy(e,0,r,0,e.length),N.Copy(t,0,r,e.length,t.length),r},e.prototype.ChangesOverlap=function(e,t,n){if(L.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),L.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart,i=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new v(r,i,o,s),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e=n?A:{done:!1,value:e[t++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?A:{done:!1,value:t(n.value)}}}},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return A;if(t(n.value))return{done:!1,value:n.value}}}}},e.forEach=n,e.collect=function(e){var t=[];return n(e,function(e){return t.push(e)}),t}}(b||(b={}));(function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}w(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null}})(function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}()),function(){function e(e,t){this.iterator=e,this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())}}();var T,M=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=/^\w[\w\d+.-]*$/,O=/^\//,x=/^\/\//,I=!0;var R="",k="/",U=/^(([^:\/?#]+?):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,F=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||R,this.authority=e.authority||R,this.path=e.path||R,this.query=e.query||R,this.fragment=e.fragment||R):(this.scheme=function(e,t){return t||I?e||R:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,o),this.authority=t||R,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==k&&(t=k+t):t=k}return t}(this.scheme,n||R),this.query=r||R,this.fragment=i||R,function(e,t){if(!e.scheme){if(t||I)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!P.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!O.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(x.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return V(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=R),void 0===n?n=this.authority:null===n&&(n=R),void 0===r?r=this.path:null===r&&(r=R),void 0===i?i=this.query:null===i&&(i=R),void 0===o?o=this.fragment:null===o&&(o=R),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new D(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=U.exec(e);return n?new D(n[2]||R,decodeURIComponent(n[4]||R),decodeURIComponent(n[5]||R),decodeURIComponent(n[7]||R),decodeURIComponent(n[9]||R),t):new D(R,R,R,R,R)},e.file=function(e){var t=R;if(c.c&&(e=e.replace(/\\/g,k)),e[0]===k&&e[1]===k){var n=e.indexOf(k,2);-1===n?(t=e.substring(2),e=k):(t=e.substring(2,n),e=e.substring(n)||k)}return new D("file",t,e,R,R)},e.from=function(e){return new D(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),j(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new D(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}(),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return M(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=V(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?j(this,!0):(this._formatted||(this._formatted=j(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(F),K=((T={})[58]="%3A",T[47]="%2F",T[63]="%3F",T[35]="%23",T[91]="%5B",T[93]="%5D",T[64]="%40",T[33]="%21",T[36]="%24",T[38]="%26",T[39]="%27",T[40]="%28",T[41]="%29",T[42]="%2A",T[43]="%2B",T[44]="%2C",T[59]="%3B",T[61]="%3D",T[32]="%20",T);function q(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=K[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function B(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,c.c&&(t=t.replace(/\//g,"\\")),t}function j(e,t){var n=t?B:q,r="",i=e.scheme,o=e.authority,s=e.path,u=e.query,a=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=k,r+=k),o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1),-1===(l=c.indexOf(":"))?r+=n(c,!1):(r+=n(c.substr(0,l),!1),r+=":",r+=n(c.substr(l+1),!1)),r+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/"+String.fromCharCode(f+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s=String.fromCharCode(f+32)+":"+s.substr(2))}r+=n(s,!0)}return u&&(r+="?",r+=n(u,!1)),a&&(r+="#",r+=t?a:q(a,!1)),r}var Y=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumbern||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumbert.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,u=n.startLineNumber,a=n.startColumn,l=n.endLineNumber,c=n.endColumn;return rl?(o=l,s=c):o===l&&(s=Math.min(s,c)),r>o?null:r===o&&i>s?null:new e(r,i,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new Y(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new Y(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();String.fromCharCode(65279);var H=5e3,G=3;function Q(e,t,n,r){return new S(e,t,n).ComputeDiff(r)}var z=function(){function e(t){for(var n=[],r=[],i=0,o=t.length;i=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}(e);return-1===n?t:n+2},e.prototype.getCharSequence=function(e,t,n){for(var r=[],i=[],o=[],s=0,u=t;u<=n;u++)for(var a=this._lines[u],l=e?this._startColumns[u]:1,c=e?this._endColumns[u]:a.length+1,f=l;f1&&m>1;){if(f.charCodeAt(d-2)!==h.charCodeAt(m-2))break;d--,m--}(d>1||m>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,d,s+1,1,m);for(var p=z._getLastNonBlankColumn(f,1),g=z._getLastNonBlankColumn(h,1),_=f.length+1,v=h.length+1;p<_&&g255?255:0|e}function ne(e){return e<0?0:e>4294967295?4294967295:0|e}var re=function(e,t){this.index=e,this.remainder=t},ie=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=ne(e);var n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=ne(e),t=ne(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=ne(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,r=0,i=0,o=0;t<=n;)if(r=t+(n-t)/2|0,e<(o=(i=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=i))break;t=r+1}return new re(r,e-o)},e}(),oe=(function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new ie(e),this._bustCache()}e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t/?";var ue=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,r=se;n=0||(t+="\\"+i)}return t+="\\s]+)",new RegExp(t,"g")}();var ae=function(){function e(t){var n=te(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=te(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),le=(function(){function e(){this._actual=new ae(0)}e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)}}(),function(){function e(e){for(var t=0,n=0,r=0,i=e.length;rt&&(t=l),s>n&&(n=s),(c=o[2])>n&&(n=c)}var u=new ee(++n,++t,0);for(r=0,i=e.length;r=this._maxCharCode?0:this._states.get(e,t)},e}()),ce=null;var fe=null;var he=function(){function e(){}return e._createLink=function(e,t,n,r,i){var o=i-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>r);if(r>0){var u=t.charCodeAt(r-1),a=t.charCodeAt(o);(40===u&&41===a||91===u&&93===a||123===u&&125===a)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===ce&&(ce=new le([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=ce);for(var r=function(){if(null===fe){fe=new ae(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)fe.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)fe.set(".,;".charCodeAt(e),2)}return fe}(),i=[],o=1,s=t.getLineCount();o<=s;o++){for(var u=t.getLineContent(o),a=u.length,l=0,c=0,f=0,h=1,d=!1,m=!1,p=!1;l=0?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null},e.INSTANCE=new e,e}();n("URDS");var me,pe=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),ge=function(){function e(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===pe.Undefined},e.prototype.clear=function(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,r=new pe(e);if(this._first===pe.Undefined)this._first=r,this._last=r;else if(t){var i=this._last;this._last=r,r.prev=i,i.next=r}else{var o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(r))}},e.prototype.shift=function(){if(this._first!==pe.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype._remove=function(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===pe.Undefined?A:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==pe.Undefined;t=t.next)e.push(t.element);return e},e}(),_e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){var t={dispose:function(){}};function n(e){return function(t,n,r){void 0===n&&(n=null);var i,o=!1;return i=e(function(e){if(!o)return i?i.dispose():o=!0,t.call(n,e)},null,r),o&&i.dispose(),i}}function r(e,t){return u(function(n,r,i){return void 0===r&&(r=null),e(function(e){return n.call(r,t(e))},null,i)})}function i(e,t){return u(function(n,r,i){return void 0===r&&(r=null),e(function(e){t(e),n.call(r,e)},null,i)})}function o(e,t){return u(function(n,r,i){return void 0===r&&(r=null),e(function(e){return t(e)&&n.call(r,e)},null,i)})}function s(e,t,n){var i=n;return r(e,function(e){return i=t(i,e)})}function u(e){var t,n=new Le({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e){var t,n=!0;return o(e,function(e){var r=n||e!==t;return n=!1,t=e,r})}e.None=function(){return t},e.once=n,e.map=r,e.forEach=i,e.filter=o,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t1)&&l.fire(e),a=0},n)})},onLastListenerRemove:function(){o.dispose()}});return l.event},e.stopwatch=function(e){var t=(new Date).getTime();return r(n(e),function(e){return(new Date).getTime()-t})},e.latch=l,e.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var r=n.slice(),i=e(function(e){r?r.push(e):s.fire(e)}),o=function(){r&&r.forEach(function(e){return s.fire(e)}),r=null},s=new Le({onFirstListenerAdd:function(){i||(i=e(function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){r&&(t?setTimeout(o):o())},onLastListenerRemove:function(){i&&i.dispose(),i=null}});return s.event};var c=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(r(this.event,t))},e.prototype.forEach=function(t){return new e(i(this.event,t))},e.prototype.filter=function(t){return new e(o(this.event,t))},e.prototype.reduce=function(t,n){return new e(s(this.event,t,n))},e.prototype.latch=function(){return new e(l(this.event))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,t,r){return n(this.event)(e,t,r)},e}();e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t0?new be(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new ge);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,u,a=t._listeners.push(r?[n,r]:n);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),u={dispose:function(){(s&&s(),u.dispose=e._noop,t._disposed)||(a(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},Array.isArray(i)&&i.push(u),u}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ge);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),o=r[0],s=r[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){i(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),Ne=(function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new ge,n._mergeFn=t&&t.merge,n}_e(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))}}(Le),function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new Le({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return function(e){return{dispose:function(){e()}}}(function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()}}(),function(){function e(){this.buffers=[]}e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach(function(e){return e()}),n}}(),function(){function e(){var e=this;this.listening=!1,this.inputEvent=me.None,this.inputEventListener=l.None,this.emitter=new Le({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()}}(),Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(ye=ve||(ve={})).isCancellationToken=function(e){return e===ye.None||e===ye.Cancelled||e instanceof Se||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},ye.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:me.None}),ye.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ne});var Ee,Se=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?Ne:(this._emitter||(this._emitter=new Le),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),we=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new Se),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof Se&&this._token.cancel():this._token=ve.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Se&&this._token.dispose():this._token=ve.None},e}(),Ae=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),Te=new Ae,Me=new Ae,Pe=new Ae;!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),Te.define(e,t),Me.define(e,n),Pe.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Te.keyCodeToStr(e)},e.fromString=function(e){return Te.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Me.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Pe.keyCodeToStr(e)},e.fromUserSettings=function(e){return Me.strToKeyCode(e)||Pe.strToKeyCode(e)}}(Ee||(Ee={}));!function(){function e(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new it([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}();var Oe,xe,Ie,Re,ke,Ue,Fe,De,Ke,qe,Be,Ve,je,Ye,We,He,Ge,Qe,ze,Xe,$e,Je,Ze,et,tt,nt,rt,it=function(){function e(e){if(0===e.length)throw(t="parts")?new Error("Illegal argument: "+t):new Error("Illegal argument");var t;this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new Y(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n>>0)>>>0}(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();var lt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lt(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=function(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i,o=e-1-r;for(t.lastIndex=0;i=t.exec(n);){var s=i.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:i[0],startColumn:r+1+s,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i,o=e-1-r,s=n.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;i=t.exec(n);){var u=i.index||0;if(u<=o&&t.lastIndex>=o)return{word:i[0],startColumn:r+1+u,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r);return t.lastIndex=0,o}(e.column,function(e){var t=ue;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new W(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,r=this,i=0,o=0,s=[],u=function(){if(o=r._lines.length?A:(n=r._lines[i],s=r._wordenize(n,e),o=0,i+=1,u())};return{next:u}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],r=[],i=0,o=this._wordenize(n,t);ithis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{var i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e},t}(oe),ft=function(e){function t(t){var n=e.call(this,t)||this;return n._models=Object.create(null),n}return lt(t,e),t.prototype.dispose=function(){this._models=Object.create(null)},t.prototype._getModel=function(e){return this._models[e]},t.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach(function(n){return t.push(e._models[n])}),t},t.prototype.acceptNewModel=function(e){this._models[e.url]=new ct(F.parse(e.url),e.lines,e.EOL,e.versionId)},t.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},t.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},t}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var r=this._getModel(e),i=this._getModel(t);if(!r||!i)return Promise.resolve(null);var o=r.getLinesContent(),s=i.getLinesContent(),u=new Z(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff(),a=!(u.length>0)&&this._modelsAreIdentical(r,i);return Promise.resolve({identical:a,changes:u})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var r=this._getModel(t);if(!r)return Promise.resolve(n);for(var i=[],o=void 0,s=0,u=n=_(n,function(e,t){return e.range&&t.range?W.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)});se._diffLimit)i.push({range:l,text:c});else for(var d=C(h,c,!1),m=r.offsetAt(W.lift(l).getStartPosition()),p=0,g=d;p1)for(var n=1;n=0,o=d.indexOf("Macintosh")>=0,s=d.indexOf("Linux")>=0,a=!0,navigator.language}var m=i,p=a,g="object"==typeof self?self:"object"==typeof r?r:{}}).call(this,n("8oxB"),n("yLpj"))},URDS:function(e,t,n){(function(e,t){(function(){"use strict";function n(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}var r=setTimeout;function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void a(t.promise,e)}u(t.promise,r)}else(1===e._state?u:a)(t.promise,e._value)})):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void f((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){a(e,t)}var r,i}function a(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n("YBdB"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},YBdB:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,s,u,a=1,l={},c=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){m(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){m(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(m,0,e)}:(s="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&m(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),r=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;nr?e[a]=o[u++]:u>i?e[a]=o[s++]:t(o[u],o[s])<0?e[a]=o[u++]:e[a]=o[s++]}(t,n,r,s,i,o)}(e,t,0,e.length-1,[]),e}var v=function(){function e(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function y(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function C(e,t,n){return new S(y(e),y(t)).ComputeDiff(n)}var b,L=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),N=function(){function e(){}return e.Copy=function(e,t,n,r,i){for(var o=0;o0||this.m_modifiedCount>0)&&this.m_changes.push(new v(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),S=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,r,i){var o=this.ComputeDiffRecursive(e,t,n,r,[!1]);return i?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){var o=void 0;return n<=r?(L.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new v(e,0,n,r-n+1)]):e<=t?(L.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new v(e,t-e+1,n,0)]):(L.Assert(e===t+1,"originalStart should only be one more than originalEnd"),L.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}var s=[0],u=[0],a=this.ComputeRecursionPoint(e,t,n,r,s,u,i),l=s[0],c=u[0];if(null!==a)return a;if(!i[0]){var f=this.ComputeDiffRecursive(e,l,n,c,i),h=[];return h=i[0]?[new v(l+1,t-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,r,i),this.ConcatenateChanges(f,h)}return[new v(e,t-e+1,n,r-n+1)]},e.prototype.WALKTRACE=function(e,t,n,r,i,o,s,u,a,l,c,f,h,d,m,p,g,_){var y,C,b=null,L=new E,N=t,S=n,w=h[0]-p[0]-r,A=Number.MIN_VALUE,T=this.m_forwardHistory.length-1;do{(C=w+e)===N||C=0&&(e=(a=this.m_forwardHistory[T])[0],N=1,S=a.length-1)}while(--T>=-1);if(y=L.getReverseChanges(),_[0]){var M=h[0]+1,P=p[0]+1;if(null!==y&&y.length>0){var O=y[y.length-1];M=Math.max(M,O.getOriginalEnd()),P=Math.max(P,O.getModifiedEnd())}b=[new v(M,f-M+1,P,m-P+1)]}else{L=new E,N=o,S=s,w=h[0]-p[0]-u,A=Number.MAX_VALUE,T=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(C=w+i)===N||C=l[C+1]?(d=(c=l[C+1]-1)-w-u,c>A&&L.MarkNextChange(),A=c+1,L.AddOriginalElement(c+1,d+1),w=C+1-i):(d=(c=l[C-1])-w-u,c>A&&L.MarkNextChange(),A=c,L.AddModifiedElement(c+1,d+1),w=C-1-i),T>=0&&(i=(l=this.m_reverseHistory[T])[0],N=1,S=l.length-1)}while(--T>=-1);b=L.getChanges()}return this.ConcatenateChanges(y,b)},e.prototype.ComputeRecursionPoint=function(e,t,n,r,i,o,s){var u,a=0,l=0,c=0,f=0,h=0,d=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var m,p,g=t-e+(r-n),_=g+1,y=new Array(_),C=new Array(_),b=r-n,L=t-e,E=e-n,S=t-r,w=(L-b)%2==0;for(y[b]=e,C[L]=t,s[0]=!1,u=1;u<=g/2+1;u++){var A=0,T=0;for(c=this.ClipDiagonalBound(b-u,u,b,_),f=this.ClipDiagonalBound(b+u,u,b,_),m=c;m<=f;m+=2){for(l=(a=m===c||mA+T&&(A=a,T=l),!w&&Math.abs(m-L)<=u-1&&a>=C[m])return i[0]=a,o[0]=l,p<=C[m]&&u<=1448?this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s):null}var M=(A-e+(T-n)-u)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(A,this.OriginalSequence,M))return s[0]=!0,i[0]=A,o[0]=T,M>0&&u<=1448?this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s):[new v(++e,t-e+1,++n,r-n+1)];for(h=this.ClipDiagonalBound(L-u,u,L,_),d=this.ClipDiagonalBound(L+u,u,L,_),m=h;m<=d;m+=2){for(l=(a=m===h||m=C[m+1]?C[m+1]-1:C[m-1])-(m-L)-S,p=a;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(C[m]=a,w&&Math.abs(m-b)<=u&&a<=y[m])return i[0]=a,o[0]=l,p>=y[m]&&u<=1448?this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s):null}if(u<=1447){var P=new Array(f-c+2);P[0]=b-c+1,N.Copy(y,c,P,1,f-c+1),this.m_forwardHistory.push(P),(P=new Array(d-h+2))[0]=L-h+1,N.Copy(C,h,P,1,d-h+1),this.m_reverseHistory.push(P)}}return this.WALKTRACE(b,c,f,E,L,h,d,S,y,C,a,t,i,l,r,o,w,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=n.modifiedLength>0;n.originalStart+n.originalLength=0;t--){n=e[t],r=0,i=0;if(t>0){var a=e[t-1];a.originalLength>0&&(r=a.originalStart+a.originalLength),a.modifiedLength>0&&(i=a.modifiedStart+a.modifiedLength)}o=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),f=1;;f++){var h=n.originalStart-f,d=n.modifiedStart-f;if(hc&&(c=m,l=f)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);return N.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],N.Copy(t,1,r,e.length,t.length-1),r}r=new Array(e.length+t.length);return N.Copy(e,0,r,0,e.length),N.Copy(t,0,r,e.length,t.length),r},e.prototype.ChangesOverlap=function(e,t,n){if(L.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),L.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart,i=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new v(r,i,o,s),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e=n?A:{done:!1,value:e[t++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?A:{done:!1,value:t(n.value)}}}},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return A;if(t(n.value))return{done:!1,value:n.value}}}}},e.forEach=n,e.collect=function(e){var t=[];return n(e,(function(e){return t.push(e)})),t}}(b||(b={}));(function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}w(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null}})(function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}()),function(){function e(e,t){this.iterator=e,this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())}}();var T,M=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=/^\w[\w\d+.-]*$/,O=/^\//,x=/^\/\//,I=!0;var R="",k="/",U=/^(([^:\/?#]+?):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,F=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||R,this.authority=e.authority||R,this.path=e.path||R,this.query=e.query||R,this.fragment=e.fragment||R):(this.scheme=function(e,t){return t||I?e||R:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,o),this.authority=t||R,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==k&&(t=k+t):t=k}return t}(this.scheme,n||R),this.query=r||R,this.fragment=i||R,function(e,t){if(!e.scheme){if(t||I)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!P.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!O.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(x.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return V(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=R),void 0===n?n=this.authority:null===n&&(n=R),void 0===r?r=this.path:null===r&&(r=R),void 0===i?i=this.query:null===i&&(i=R),void 0===o?o=this.fragment:null===o&&(o=R),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new D(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=U.exec(e);return n?new D(n[2]||R,decodeURIComponent(n[4]||R),decodeURIComponent(n[5]||R),decodeURIComponent(n[7]||R),decodeURIComponent(n[9]||R),t):new D(R,R,R,R,R)},e.file=function(e){var t=R;if(c.c&&(e=e.replace(/\\/g,k)),e[0]===k&&e[1]===k){var n=e.indexOf(k,2);-1===n?(t=e.substring(2),e=k):(t=e.substring(2,n),e=e.substring(n)||k)}return new D("file",t,e,R,R)},e.from=function(e){return new D(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),j(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new D(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}(),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return M(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=V(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?j(this,!0):(this._formatted||(this._formatted=j(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(F),K=((T={})[58]="%3A",T[47]="%2F",T[63]="%3F",T[35]="%23",T[91]="%5B",T[93]="%5D",T[64]="%40",T[33]="%21",T[36]="%24",T[38]="%26",T[39]="%27",T[40]="%28",T[41]="%29",T[42]="%2A",T[43]="%2B",T[44]="%2C",T[59]="%3B",T[61]="%3D",T[32]="%20",T);function q(e,t){for(var n=void 0,r=-1,i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=K[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function B(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,c.c&&(t=t.replace(/\//g,"\\")),t}function j(e,t){var n=t?B:q,r="",i=e.scheme,o=e.authority,s=e.path,u=e.query,a=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=k,r+=k),o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1),-1===(l=c.indexOf(":"))?r+=n(c,!1):(r+=n(c.substr(0,l),!1),r+=":",r+=n(c.substr(l+1),!1)),r+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(f=s.charCodeAt(1))>=65&&f<=90&&(s="/"+String.fromCharCode(f+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var f;(f=s.charCodeAt(0))>=65&&f<=90&&(s=String.fromCharCode(f+32)+":"+s.substr(2))}r+=n(s,!0)}return u&&(r+="?",r+=n(u,!1)),a&&(r+="#",r+=t?a:q(a,!1)),r}var Y=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumbern||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumbert.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,u=n.startLineNumber,a=n.startColumn,l=n.endLineNumber,c=n.endColumn;return rl?(o=l,s=c):o===l&&(s=Math.min(s,c)),r>o?null:r===o&&i>s?null:new e(r,i,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new Y(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new Y(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();String.fromCharCode(65279);var H=5e3,G=3;function Q(e,t,n,r){return new S(e,t,n).ComputeDiff(r)}var z=function(){function e(t){for(var n=[],r=[],i=0,o=t.length;i=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}(e);return-1===n?t:n+2},e.prototype.getCharSequence=function(e,t,n){for(var r=[],i=[],o=[],s=0,u=t;u<=n;u++)for(var a=this._lines[u],l=e?this._startColumns[u]:1,c=e?this._endColumns[u]:a.length+1,f=l;f1&&m>1;){if(f.charCodeAt(d-2)!==h.charCodeAt(m-2))break;d--,m--}(d>1||m>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,d,s+1,1,m);for(var p=z._getLastNonBlankColumn(f,1),g=z._getLastNonBlankColumn(h,1),_=f.length+1,v=h.length+1;p<_&&g255?255:0|e}function ne(e){return e<0?0:e>4294967295?4294967295:0|e}var re=function(e,t){this.index=e,this.remainder=t},ie=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=ne(e);var n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=ne(e),t=ne(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=ne(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,r=0,i=0,o=0;t<=n;)if(r=t+(n-t)/2|0,e<(o=(i=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=i))break;t=r+1}return new re(r,e-o)},e}(),oe=(function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new ie(e),this._bustCache()}e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t/?";var ue=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,r=se;n=0||(t+="\\"+i)}return t+="\\s]+)",new RegExp(t,"g")}();var ae=function(){function e(t){var n=te(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=te(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),le=(function(){function e(){this._actual=new ae(0)}e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)}}(),function(){function e(e){for(var t=0,n=0,r=0,i=e.length;rt&&(t=l),s>n&&(n=s),(c=o[2])>n&&(n=c)}var u=new ee(++n,++t,0);for(r=0,i=e.length;r=this._maxCharCode?0:this._states.get(e,t)},e}()),ce=null;var fe=null;var he=function(){function e(){}return e._createLink=function(e,t,n,r,i){var o=i-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>r);if(r>0){var u=t.charCodeAt(r-1),a=t.charCodeAt(o);(40===u&&41===a||91===u&&93===a||123===u&&125===a)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===ce&&(ce=new le([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=ce);for(var r=function(){if(null===fe){fe=new ae(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)fe.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)fe.set(".,;".charCodeAt(e),2)}return fe}(),i=[],o=1,s=t.getLineCount();o<=s;o++){for(var u=t.getLineContent(o),a=u.length,l=0,c=0,f=0,h=1,d=!1,m=!1,p=!1;l=0?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null},e.INSTANCE=new e,e}();n("URDS");var me,pe=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),ge=function(){function e(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===pe.Undefined},e.prototype.clear=function(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,r=new pe(e);if(this._first===pe.Undefined)this._first=r,this._last=r;else if(t){var i=this._last;this._last=r,r.prev=i,i.next=r}else{var o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(r))}},e.prototype.shift=function(){if(this._first!==pe.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype._remove=function(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===pe.Undefined?A:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==pe.Undefined;t=t.next)e.push(t.element);return e},e}(),_e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){var t={dispose:function(){}};function n(e){return function(t,n,r){void 0===n&&(n=null);var i,o=!1;return i=e((function(e){if(!o)return i?i.dispose():o=!0,t.call(n,e)}),null,r),o&&i.dispose(),i}}function r(e,t){return u((function(n,r,i){return void 0===r&&(r=null),e((function(e){return n.call(r,t(e))}),null,i)}))}function i(e,t){return u((function(n,r,i){return void 0===r&&(r=null),e((function(e){t(e),n.call(r,e)}),null,i)}))}function o(e,t){return u((function(n,r,i){return void 0===r&&(r=null),e((function(e){return t(e)&&n.call(r,e)}),null,i)}))}function s(e,t,n){var i=n;return r(e,(function(e){return i=t(i,e)}))}function u(e){var t,n=new Le({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e){var t,n=!0;return o(e,(function(e){var r=n||e!==t;return n=!1,t=e,r}))}e.None=function(){return t},e.once=n,e.map=r,e.forEach=i,e.filter=o,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t1)&&l.fire(e),a=0}),n)}))},onLastListenerRemove:function(){o.dispose()}});return l.event},e.stopwatch=function(e){var t=(new Date).getTime();return r(n(e),(function(e){return(new Date).getTime()-t}))},e.latch=l,e.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var r=n.slice(),i=e((function(e){r?r.push(e):s.fire(e)})),o=function(){r&&r.forEach((function(e){return s.fire(e)})),r=null},s=new Le({onFirstListenerAdd:function(){i||(i=e((function(e){return s.fire(e)})))},onFirstListenerDidAdd:function(){r&&(t?setTimeout(o):o())},onLastListenerRemove:function(){i&&i.dispose(),i=null}});return s.event};var c=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(r(this.event,t))},e.prototype.forEach=function(t){return new e(i(this.event,t))},e.prototype.filter=function(t){return new e(o(this.event,t))},e.prototype.reduce=function(t,n){return new e(s(this.event,t,n))},e.prototype.latch=function(){return new e(l(this.event))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,t,r){return n(this.event)(e,t,r)},e}();e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t0?new be(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new ge);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,u,a=t._listeners.push(r?[n,r]:n);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),u={dispose:function(){(s&&s(),u.dispose=e._noop,t._disposed)||(a(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},Array.isArray(i)&&i.push(u),u}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ge);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),o=r[0],s=r[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){i(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),Ne=(function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new ge,n._mergeFn=t&&t.merge,n}_e(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))}}(Le),function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new Le({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return function(e){return{dispose:function(){e()}}}(function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}((function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)})))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},e.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()}}(),function(){function e(){this.buffers=[]}e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e((function(e){var i=t.buffers[t.buffers.length-1];i?i.push((function(){return n.call(r,e)})):n.call(r,e)}),void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n}}(),function(){function e(){var e=this;this.listening=!1,this.inputEvent=me.None,this.inputEventListener=l.None,this.emitter=new Le({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()}}(),Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}})));(ye=ve||(ve={})).isCancellationToken=function(e){return e===ye.None||e===ye.Cancelled||e instanceof Se||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},ye.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:me.None}),ye.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ne});var Ee,Se=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?Ne:(this._emitter||(this._emitter=new Le),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),we=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new Se),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof Se&&this._token.cancel():this._token=ve.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Se&&this._token.dispose():this._token=ve.None},e}(),Ae=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),Te=new Ae,Me=new Ae,Pe=new Ae;!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),Te.define(e,t),Me.define(e,n),Pe.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Te.keyCodeToStr(e)},e.fromString=function(e){return Te.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Me.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Pe.keyCodeToStr(e)},e.fromUserSettings=function(e){return Me.strToKeyCode(e)||Pe.strToKeyCode(e)}}(Ee||(Ee={}));!function(){function e(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new it([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}();var Oe,xe,Ie,Re,ke,Ue,Fe,De,Ke,qe,Be,Ve,je,Ye,We,He,Ge,Qe,ze,Xe,$e,Je,Ze,et,tt,nt,rt,it=function(){function e(e){if(0===e.length)throw(t="parts")?new Error("Illegal argument: "+t):new Error("Illegal argument");var t;this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new Y(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n>>0)>>>0}(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();var lt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lt(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=function(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i,o=e-1-r;for(t.lastIndex=0;i=t.exec(n);){var s=i.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:i[0],startColumn:r+1+s,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i,o=e-1-r,s=n.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;i=t.exec(n);){var u=i.index||0;if(u<=o&&t.lastIndex>=o)return{word:i[0],startColumn:r+1+u,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r);return t.lastIndex=0,o}(e.column,function(e){var t=ue;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new W(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,r=this,i=0,o=0,s=[],u=function(){if(o=r._lines.length?A:(n=r._lines[i],s=r._wordenize(n,e),o=0,i+=1,u())};return{next:u}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],r=[],i=0,o=this._wordenize(n,t);ithis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{var i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e},t}(oe),ft=function(e){function t(t){var n=e.call(this,t)||this;return n._models=Object.create(null),n}return lt(t,e),t.prototype.dispose=function(){this._models=Object.create(null)},t.prototype._getModel=function(e){return this._models[e]},t.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},t.prototype.acceptNewModel=function(e){this._models[e.url]=new ct(F.parse(e.url),e.lines,e.EOL,e.versionId)},t.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},t.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},t}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var r=this._getModel(e),i=this._getModel(t);if(!r||!i)return Promise.resolve(null);var o=r.getLinesContent(),s=i.getLinesContent(),u=new Z(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff(),a=!(u.length>0)&&this._modelsAreIdentical(r,i);return Promise.resolve({identical:a,changes:u})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var r=this._getModel(t);if(!r)return Promise.resolve(n);for(var i=[],o=void 0,s=0,u=n=_(n,(function(e,t){return e.range&&t.range?W.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)}));se._diffLimit)i.push({range:l,text:c});else for(var d=C(h,c,!1),m=r.offsetAt(W.lift(l).getStartPosition()),p=0,g=d;p1)for(var n=1;n=0,o=d.indexOf("Macintosh")>=0,s=d.indexOf("Linux")>=0,a=!0,navigator.language}var m=i,p=a,g="object"==typeof self?self:"object"==typeof r?r:{}}).call(this,n("8oxB"),n("yLpj"))},URDS:function(e,t,n){(function(e,t){(function(){"use strict";function n(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var r=setTimeout;function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void a(t.promise,e)}u(t.promise,r)}else(1===e._state?u:a)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void f((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){a(e,t)}var r,i}function a(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("YBdB"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},YBdB:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,s,u,a=1,l={},c=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){m(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(m,0,e)}:(s="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&m(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),r=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n Phantasmal World - + - + \ No newline at end of file diff --git a/main.12a5ee235a8d1b4107f1.js b/main.12a5ee235a8d1b4107f1.js new file mode 100644 index 00000000..96d385af --- /dev/null +++ b/main.12a5ee235a8d1b4107f1.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+LO4":function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")).default.get("core/observable/property/AbstractMinimalProperty");t.AbstractMinimalProperty=class{constructor(){this.is_property=!0,this.observers=[]}observe(e,t){return this.observers.includes(e)||this.observers.push(e),t&&t.call_now&&this.call_observer(e,this.val),{dispose:()=>{const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}}}emit(e){for(const t of this.observers)this.call_observer(t,e)}call_observer(e,t){try{e({value:this.val,old_value:t})}catch(e){n.error("Observer threw error.",e)}}}},"+oIp":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("xs7i");var n;!function(e){e[e.Unknown=1e3]="Unknown",e[e.PlayerSet=1001]="PlayerSet",e[e.Particle=1002]="Particle",e[e.Teleporter=1003]="Teleporter",e[e.Warp=1004]="Warp",e[e.LightCollision=1005]="LightCollision",e[e.Item=1006]="Item",e[e.EnvSound=1007]="EnvSound",e[e.FogCollision=1008]="FogCollision",e[e.EventCollision=1009]="EventCollision",e[e.CharaCollision=1010]="CharaCollision",e[e.ElementalTrap=1011]="ElementalTrap",e[e.StatusTrap=1012]="StatusTrap",e[e.HealTrap=1013]="HealTrap",e[e.LargeElementalTrap=1014]="LargeElementalTrap",e[e.ObjRoomID=1015]="ObjRoomID",e[e.Sensor=1016]="Sensor",e[e.UnknownItem16=1017]="UnknownItem16",e[e.LensFlare=1018]="LensFlare",e[e.ScriptCollision=1019]="ScriptCollision",e[e.HealRing=1020]="HealRing",e[e.MapCollision=1021]="MapCollision",e[e.ScriptCollisionA=1022]="ScriptCollisionA",e[e.ItemLight=1023]="ItemLight",e[e.RadarCollision=1024]="RadarCollision",e[e.FogCollisionSW=1025]="FogCollisionSW",e[e.BossTeleporter=1026]="BossTeleporter",e[e.ImageBoard=1027]="ImageBoard",e[e.QuestWarp=1028]="QuestWarp",e[e.Epilogue=1029]="Epilogue",e[e.UnknownItem29=1030]="UnknownItem29",e[e.UnknownItem30=1031]="UnknownItem30",e[e.UnknownItem31=1032]="UnknownItem31",e[e.BoxDetectObject=1033]="BoxDetectObject",e[e.SymbolChatObject=1034]="SymbolChatObject",e[e.TouchPlateObject=1035]="TouchPlateObject",e[e.TargetableObject=1036]="TargetableObject",e[e.EffectObject=1037]="EffectObject",e[e.CountDownObject=1038]="CountDownObject",e[e.UnknownItem38=1039]="UnknownItem38",e[e.UnknownItem39=1040]="UnknownItem39",e[e.UnknownItem40=1041]="UnknownItem40",e[e.UnknownItem41=1042]="UnknownItem41",e[e.MenuActivation=1043]="MenuActivation",e[e.TelepipeLocation=1044]="TelepipeLocation",e[e.BGMCollision=1045]="BGMCollision",e[e.MainRagolTeleporter=1046]="MainRagolTeleporter",e[e.LobbyTeleporter=1047]="LobbyTeleporter",e[e.PrincipalWarp=1048]="PrincipalWarp",e[e.ShopDoor=1049]="ShopDoor",e[e.HuntersGuildDoor=1050]="HuntersGuildDoor",e[e.TeleporterDoor=1051]="TeleporterDoor",e[e.MedicalCenterDoor=1052]="MedicalCenterDoor",e[e.Elevator=1053]="Elevator",e[e.EasterEgg=1054]="EasterEgg",e[e.ValentinesHeart=1055]="ValentinesHeart",e[e.ChristmasTree=1056]="ChristmasTree",e[e.ChristmasWreath=1057]="ChristmasWreath",e[e.HalloweenPumpkin=1058]="HalloweenPumpkin",e[e.TwentyFirstCentury=1059]="TwentyFirstCentury",e[e.Sonic=1060]="Sonic",e[e.WelcomeBoard=1061]="WelcomeBoard",e[e.Firework=1062]="Firework",e[e.LobbyScreenDoor=1063]="LobbyScreenDoor",e[e.MainRagolTeleporterBattleInNextArea=1064]="MainRagolTeleporterBattleInNextArea",e[e.LabTeleporterDoor=1065]="LabTeleporterDoor",e[e.Pioneer2InvisibleTouchplate=1066]="Pioneer2InvisibleTouchplate",e[e.ForestDoor=1067]="ForestDoor",e[e.ForestSwitch=1068]="ForestSwitch",e[e.LaserFence=1069]="LaserFence",e[e.LaserSquareFence=1070]="LaserSquareFence",e[e.ForestLaserFenceSwitch=1071]="ForestLaserFenceSwitch",e[e.LightRays=1072]="LightRays",e[e.BlueButterfly=1073]="BlueButterfly",e[e.Probe=1074]="Probe",e[e.RandomTypeBox1=1075]="RandomTypeBox1",e[e.ForestWeatherStation=1076]="ForestWeatherStation",e[e.Battery=1077]="Battery",e[e.ForestConsole=1078]="ForestConsole",e[e.BlackSlidingDoor=1079]="BlackSlidingDoor",e[e.RicoMessagePod=1080]="RicoMessagePod",e[e.EnergyBarrier=1081]="EnergyBarrier",e[e.ForestRisingBridge=1082]="ForestRisingBridge",e[e.SwitchNoneDoor=1083]="SwitchNoneDoor",e[e.EnemyBoxGrey=1084]="EnemyBoxGrey",e[e.FixedTypeBox=1085]="FixedTypeBox",e[e.EnemyBoxBrown=1086]="EnemyBoxBrown",e[e.EmptyTypeBox=1087]="EmptyTypeBox",e[e.LaserFenceEx=1088]="LaserFenceEx",e[e.LaserSquareFenceEx=1089]="LaserSquareFenceEx",e[e.FloorPanel1=1090]="FloorPanel1",e[e.Caves4ButtonDoor=1091]="Caves4ButtonDoor",e[e.CavesNormalDoor=1092]="CavesNormalDoor",e[e.CavesSmashingPillar=1093]="CavesSmashingPillar",e[e.CavesSign1=1094]="CavesSign1",e[e.CavesSign2=1095]="CavesSign2",e[e.CavesSign3=1096]="CavesSign3",e[e.HexagonalTank=1097]="HexagonalTank",e[e.BrownPlatform=1098]="BrownPlatform",e[e.WarningLightObject=1099]="WarningLightObject",e[e.Rainbow=1100]="Rainbow",e[e.FloatingJellyfish=1101]="FloatingJellyfish",e[e.FloatingDragonfly=1102]="FloatingDragonfly",e[e.CavesSwitchDoor=1103]="CavesSwitchDoor",e[e.RobotRechargeStation=1104]="RobotRechargeStation",e[e.CavesCakeShop=1105]="CavesCakeShop",e[e.Caves1SmallRedRock=1106]="Caves1SmallRedRock",e[e.Caves1MediumRedRock=1107]="Caves1MediumRedRock",e[e.Caves1LargeRedRock=1108]="Caves1LargeRedRock",e[e.Caves2SmallRock1=1109]="Caves2SmallRock1",e[e.Caves2MediumRock1=1110]="Caves2MediumRock1",e[e.Caves2LargeRock1=1111]="Caves2LargeRock1",e[e.Caves2SmallRock2=1112]="Caves2SmallRock2",e[e.Caves2MediumRock2=1113]="Caves2MediumRock2",e[e.Caves2LargeRock2=1114]="Caves2LargeRock2",e[e.Caves3SmallRock=1115]="Caves3SmallRock",e[e.Caves3MediumRock=1116]="Caves3MediumRock",e[e.Caves3LargeRock=1117]="Caves3LargeRock",e[e.FloorPanel2=1118]="FloorPanel2",e[e.DestructableRockCaves1=1119]="DestructableRockCaves1",e[e.DestructableRockCaves2=1120]="DestructableRockCaves2",e[e.DestructableRockCaves3=1121]="DestructableRockCaves3",e[e.MinesDoor=1122]="MinesDoor",e[e.FloorPanel3=1123]="FloorPanel3",e[e.MinesSwitchDoor=1124]="MinesSwitchDoor",e[e.LargeCryoTube=1125]="LargeCryoTube",e[e.ComputerLikeCalus=1126]="ComputerLikeCalus",e[e.GreenScreenOpeningAndClosing=1127]="GreenScreenOpeningAndClosing",e[e.FloatingRobot=1128]="FloatingRobot",e[e.FloatingBlueLight=1129]="FloatingBlueLight",e[e.SelfDestructingObject1=1130]="SelfDestructingObject1",e[e.SelfDestructingObject2=1131]="SelfDestructingObject2",e[e.SelfDestructingObject3=1132]="SelfDestructingObject3",e[e.SparkMachine=1133]="SparkMachine",e[e.MinesLargeFlashingCrate=1134]="MinesLargeFlashingCrate",e[e.RuinsSeal=1135]="RuinsSeal",e[e.RuinsTeleporter=1136]="RuinsTeleporter",e[e.RuinsWarpSiteToSite=1137]="RuinsWarpSiteToSite",e[e.RuinsSwitch=1138]="RuinsSwitch",e[e.FloorPanel4=1139]="FloorPanel4",e[e.Ruins1Door=1140]="Ruins1Door",e[e.Ruins3Door=1141]="Ruins3Door",e[e.Ruins2Door=1142]="Ruins2Door",e[e.Ruins11ButtonDoor=1143]="Ruins11ButtonDoor",e[e.Ruins21ButtonDoor=1144]="Ruins21ButtonDoor",e[e.Ruins31ButtonDoor=1145]="Ruins31ButtonDoor",e[e.Ruins4ButtonDoor=1146]="Ruins4ButtonDoor",e[e.Ruins2ButtonDoor=1147]="Ruins2ButtonDoor",e[e.RuinsSensor=1148]="RuinsSensor",e[e.RuinsFenceSwitch=1149]="RuinsFenceSwitch",e[e.RuinsLaserFence4x2=1150]="RuinsLaserFence4x2",e[e.RuinsLaserFence6x2=1151]="RuinsLaserFence6x2",e[e.RuinsLaserFence4x4=1152]="RuinsLaserFence4x4",e[e.RuinsLaserFence6x4=1153]="RuinsLaserFence6x4",e[e.RuinsPoisonBlob=1154]="RuinsPoisonBlob",e[e.RuinsPillarTrap=1155]="RuinsPillarTrap",e[e.PopupTrapNoTech=1156]="PopupTrapNoTech",e[e.RuinsCrystal=1157]="RuinsCrystal",e[e.Monument=1158]="Monument",e[e.RuinsRock1=1159]="RuinsRock1",e[e.RuinsRock2=1160]="RuinsRock2",e[e.RuinsRock3=1161]="RuinsRock3",e[e.RuinsRock4=1162]="RuinsRock4",e[e.RuinsRock5=1163]="RuinsRock5",e[e.RuinsRock6=1164]="RuinsRock6",e[e.RuinsRock7=1165]="RuinsRock7",e[e.Poison=1166]="Poison",e[e.FixedBoxTypeRuins=1167]="FixedBoxTypeRuins",e[e.RandomBoxTypeRuins=1168]="RandomBoxTypeRuins",e[e.EnemyTypeBoxYellow=1169]="EnemyTypeBoxYellow",e[e.EnemyTypeBoxBlue=1170]="EnemyTypeBoxBlue",e[e.EmptyTypeBoxBlue=1171]="EmptyTypeBoxBlue",e[e.DestructableRock=1172]="DestructableRock",e[e.PopupTrapsTechs=1173]="PopupTrapsTechs",e[e.FlyingWhiteBird=1174]="FlyingWhiteBird",e[e.Tower=1175]="Tower",e[e.FloatingRocks=1176]="FloatingRocks",e[e.FloatingSoul=1177]="FloatingSoul",e[e.Butterfly=1178]="Butterfly",e[e.LobbyGameMenu=1179]="LobbyGameMenu",e[e.LobbyWarpObject=1180]="LobbyWarpObject",e[e.Lobby1EventObjectDefaultTree=1181]="Lobby1EventObjectDefaultTree",e[e.UnknownItem387=1182]="UnknownItem387",e[e.UnknownItem388=1183]="UnknownItem388",e[e.UnknownItem389=1184]="UnknownItem389",e[e.LobbyEventObjectStaticPumpkin=1185]="LobbyEventObjectStaticPumpkin",e[e.LobbyEventObject3ChristmasWindows=1186]="LobbyEventObject3ChristmasWindows",e[e.LobbyEventObjectRedAndWhiteCurtain=1187]="LobbyEventObjectRedAndWhiteCurtain",e[e.UnknownItem393=1188]="UnknownItem393",e[e.UnknownItem394=1189]="UnknownItem394",e[e.LobbyFishTank=1190]="LobbyFishTank",e[e.LobbyEventObjectButterflies=1191]="LobbyEventObjectButterflies",e[e.UnknownItem400=1192]="UnknownItem400",e[e.GreyWallLow=1193]="GreyWallLow",e[e.SpaceshipDoor=1194]="SpaceshipDoor",e[e.GreyWallHigh=1195]="GreyWallHigh",e[e.TempleNormalDoor=1196]="TempleNormalDoor",e[e.BreakableWallWallButUnbreakable=1197]="BreakableWallWallButUnbreakable",e[e.BrokenCylinderAndRubble=1198]="BrokenCylinderAndRubble",e[e.ThreeBrokenWallPiecesOnFloor=1199]="ThreeBrokenWallPiecesOnFloor",e[e.HighBrickCylinder=1200]="HighBrickCylinder",e[e.LyingCylinder=1201]="LyingCylinder",e[e.BrickConeWithFlatTop=1202]="BrickConeWithFlatTop",e[e.BreakableTempleWall=1203]="BreakableTempleWall",e[e.TempleMapDetect=1204]="TempleMapDetect",e[e.SmallBrownBrickRisingBridge=1205]="SmallBrownBrickRisingBridge",e[e.LongRisingBridgeWithPinkHighEdges=1206]="LongRisingBridgeWithPinkHighEdges",e[e.FourSwitchTempleDoor=1207]="FourSwitchTempleDoor",e[e.FourButtonSpaceshipDoor=1208]="FourButtonSpaceshipDoor",e[e.ItemBoxCca=1209]="ItemBoxCca",e[e.TeleporterEp2=1210]="TeleporterEp2",e[e.CCADoor=1211]="CCADoor",e[e.SpecialBoxCCA=1212]="SpecialBoxCCA",e[e.BigCCADoor=1213]="BigCCADoor",e[e.BigCCADoorSwitch=1214]="BigCCADoorSwitch",e[e.LittleRock=1215]="LittleRock",e[e.Little3StoneWall=1216]="Little3StoneWall",e[e.Medium3StoneWall=1217]="Medium3StoneWall",e[e.SpiderPlant=1218]="SpiderPlant",e[e.CCAAreaTeleporter=1219]="CCAAreaTeleporter",e[e.UnknownItem523=1220]="UnknownItem523",e[e.WhiteBird=1221]="WhiteBird",e[e.OrangeBird=1222]="OrangeBird",e[e.Saw=1223]="Saw",e[e.LaserDetect=1224]="LaserDetect",e[e.UnknownItem529=1225]="UnknownItem529",e[e.UnknownItem530=1226]="UnknownItem530",e[e.Seagull=1227]="Seagull",e[e.Fish=1228]="Fish",e[e.SeabedDoorWithBlueEdges=1229]="SeabedDoorWithBlueEdges",e[e.SeabedDoorAlwaysOpenNonTriggerable=1230]="SeabedDoorAlwaysOpenNonTriggerable",e[e.LittleCryotube=1231]="LittleCryotube",e[e.WideGlassWallBreakable=1232]="WideGlassWallBreakable",e[e.BlueFloatingRobot=1233]="BlueFloatingRobot",e[e.RedFloatingRobot=1234]="RedFloatingRobot",e[e.Dolphin=1235]="Dolphin",e[e.CaptureTrap=1236]="CaptureTrap",e[e.VRLink=1237]="VRLink",e[e.UnknownItem576=1238]="UnknownItem576",e[e.WarpInBarbaRayRoom=1239]="WarpInBarbaRayRoom",e[e.UnknownItem672=1240]="UnknownItem672",e[e.GeeNest=1241]="GeeNest",e[e.LabComputerConsole=1242]="LabComputerConsole",e[e.LabComputerConsoleGreenScreen=1243]="LabComputerConsoleGreenScreen",e[e.ChairYellowPillow=1244]="ChairYellowPillow",e[e.OrangeWallWithHoleInMiddle=1245]="OrangeWallWithHoleInMiddle",e[e.GreyWallWithHoleInMiddle=1246]="GreyWallWithHoleInMiddle",e[e.LongTable=1247]="LongTable",e[e.GBAStation=1248]="GBAStation",e[e.TalkLinkToSupport=1249]="TalkLinkToSupport",e[e.InstaWarp=1250]="InstaWarp",e[e.LabInvisibleObject=1251]="LabInvisibleObject",e[e.LabGlassWindowDoor=1252]="LabGlassWindowDoor",e[e.UnknownItem700=1253]="UnknownItem700",e[e.LabCeilingWarp=1254]="LabCeilingWarp",e[e.Ep4LightSource=1255]="Ep4LightSource",e[e.Cacti=1256]="Cacti",e[e.BigBrownRock=1257]="BigBrownRock",e[e.BreakableBrownRock=1258]="BreakableBrownRock",e[e.UnknownItem832=1259]="UnknownItem832",e[e.UnknownItem833=1260]="UnknownItem833",e[e.PoisonPlant=1261]="PoisonPlant",e[e.UnknownItem897=1262]="UnknownItem897",e[e.UnknownItem898=1263]="UnknownItem898",e[e.OozingDesertPlant=1264]="OozingDesertPlant",e[e.UnknownItem901=1265]="UnknownItem901",e[e.BigBlackRocks=1266]="BigBlackRocks",e[e.UnknownItem903=1267]="UnknownItem903",e[e.UnknownItem904=1268]="UnknownItem904",e[e.UnknownItem905=1269]="UnknownItem905",e[e.UnknownItem906=1270]="UnknownItem906",e[e.FallingRock=1271]="FallingRock",e[e.DesertPlantHasCollision=1272]="DesertPlantHasCollision",e[e.DesertFixedTypeBoxBreakableCrystals=1273]="DesertFixedTypeBoxBreakableCrystals",e[e.UnknownItem910=1274]="UnknownItem910",e[e.BeeHive=1275]="BeeHive",e[e.UnknownItem912=1276]="UnknownItem912",e[e.Heat=1277]="Heat",e[e.TopOfSaintMillionEgg=1278]="TopOfSaintMillionEgg",e[e.UnknownItem961=1279]="UnknownItem961"}(n=t.ObjectType||(t.ObjectType={})),t.OBJECT_TYPES=[],t.object_data=function(e){return s[e]},t.pso_id_to_object_type=function(e){switch(e){default:return n.Unknown;case 0:return n.PlayerSet;case 1:return n.Particle;case 2:return n.Teleporter;case 3:return n.Warp;case 4:return n.LightCollision;case 5:return n.Item;case 6:return n.EnvSound;case 7:return n.FogCollision;case 8:return n.EventCollision;case 9:return n.CharaCollision;case 10:return n.ElementalTrap;case 11:return n.StatusTrap;case 12:return n.HealTrap;case 13:return n.LargeElementalTrap;case 14:return n.ObjRoomID;case 15:return n.Sensor;case 16:return n.UnknownItem16;case 17:return n.LensFlare;case 18:return n.ScriptCollision;case 19:return n.HealRing;case 20:return n.MapCollision;case 21:return n.ScriptCollisionA;case 22:return n.ItemLight;case 23:return n.RadarCollision;case 24:return n.FogCollisionSW;case 25:return n.BossTeleporter;case 26:return n.ImageBoard;case 27:return n.QuestWarp;case 28:return n.Epilogue;case 29:return n.UnknownItem29;case 30:return n.UnknownItem30;case 31:return n.UnknownItem31;case 32:return n.BoxDetectObject;case 33:return n.SymbolChatObject;case 34:return n.TouchPlateObject;case 35:return n.TargetableObject;case 36:return n.EffectObject;case 37:return n.CountDownObject;case 38:return n.UnknownItem38;case 39:return n.UnknownItem39;case 40:return n.UnknownItem40;case 41:return n.UnknownItem41;case 64:return n.MenuActivation;case 65:return n.TelepipeLocation;case 66:return n.BGMCollision;case 67:return n.MainRagolTeleporter;case 68:return n.LobbyTeleporter;case 69:return n.PrincipalWarp;case 70:return n.ShopDoor;case 71:return n.HuntersGuildDoor;case 72:return n.TeleporterDoor;case 73:return n.MedicalCenterDoor;case 74:return n.Elevator;case 75:return n.EasterEgg;case 76:return n.ValentinesHeart;case 77:return n.ChristmasTree;case 78:return n.ChristmasWreath;case 79:return n.HalloweenPumpkin;case 80:return n.TwentyFirstCentury;case 81:return n.Sonic;case 82:return n.WelcomeBoard;case 83:return n.Firework;case 84:return n.LobbyScreenDoor;case 85:return n.MainRagolTeleporterBattleInNextArea;case 86:return n.LabTeleporterDoor;case 87:return n.Pioneer2InvisibleTouchplate;case 128:return n.ForestDoor;case 129:return n.ForestSwitch;case 130:return n.LaserFence;case 131:return n.LaserSquareFence;case 132:return n.ForestLaserFenceSwitch;case 133:return n.LightRays;case 134:return n.BlueButterfly;case 135:return n.Probe;case 136:return n.RandomTypeBox1;case 137:return n.ForestWeatherStation;case 138:return n.Battery;case 139:return n.ForestConsole;case 140:return n.BlackSlidingDoor;case 141:return n.RicoMessagePod;case 142:return n.EnergyBarrier;case 143:return n.ForestRisingBridge;case 144:return n.SwitchNoneDoor;case 145:return n.EnemyBoxGrey;case 146:return n.FixedTypeBox;case 147:return n.EnemyBoxBrown;case 149:return n.EmptyTypeBox;case 150:return n.LaserFenceEx;case 151:return n.LaserSquareFenceEx;case 192:return n.FloorPanel1;case 193:return n.Caves4ButtonDoor;case 194:return n.CavesNormalDoor;case 195:return n.CavesSmashingPillar;case 196:return n.CavesSign1;case 197:return n.CavesSign2;case 198:return n.CavesSign3;case 199:return n.HexagonalTank;case 200:return n.BrownPlatform;case 201:return n.WarningLightObject;case 203:return n.Rainbow;case 204:return n.FloatingJellyfish;case 205:return n.FloatingDragonfly;case 206:return n.CavesSwitchDoor;case 207:return n.RobotRechargeStation;case 208:return n.CavesCakeShop;case 209:return n.Caves1SmallRedRock;case 210:return n.Caves1MediumRedRock;case 211:return n.Caves1LargeRedRock;case 212:return n.Caves2SmallRock1;case 213:return n.Caves2MediumRock1;case 214:return n.Caves2LargeRock1;case 215:return n.Caves2SmallRock2;case 216:return n.Caves2MediumRock2;case 217:return n.Caves2LargeRock2;case 218:return n.Caves3SmallRock;case 219:return n.Caves3MediumRock;case 220:return n.Caves3LargeRock;case 222:return n.FloorPanel2;case 223:return n.DestructableRockCaves1;case 224:return n.DestructableRockCaves2;case 225:return n.DestructableRockCaves3;case 256:return n.MinesDoor;case 257:return n.FloorPanel3;case 258:return n.MinesSwitchDoor;case 259:return n.LargeCryoTube;case 260:return n.ComputerLikeCalus;case 261:return n.GreenScreenOpeningAndClosing;case 262:return n.FloatingRobot;case 263:return n.FloatingBlueLight;case 264:return n.SelfDestructingObject1;case 265:return n.SelfDestructingObject2;case 266:return n.SelfDestructingObject3;case 267:return n.SparkMachine;case 268:return n.MinesLargeFlashingCrate;case 304:return n.RuinsSeal;case 320:return n.RuinsTeleporter;case 321:return n.RuinsWarpSiteToSite;case 322:return n.RuinsSwitch;case 323:return n.FloorPanel4;case 324:return n.Ruins1Door;case 325:return n.Ruins3Door;case 326:return n.Ruins2Door;case 327:return n.Ruins11ButtonDoor;case 328:return n.Ruins21ButtonDoor;case 329:return n.Ruins31ButtonDoor;case 330:return n.Ruins4ButtonDoor;case 331:return n.Ruins2ButtonDoor;case 332:return n.RuinsSensor;case 333:return n.RuinsFenceSwitch;case 334:return n.RuinsLaserFence4x2;case 335:return n.RuinsLaserFence6x2;case 336:return n.RuinsLaserFence4x4;case 337:return n.RuinsLaserFence6x4;case 338:return n.RuinsPoisonBlob;case 339:return n.RuinsPillarTrap;case 340:return n.PopupTrapNoTech;case 341:return n.RuinsCrystal;case 342:return n.Monument;case 345:return n.RuinsRock1;case 346:return n.RuinsRock2;case 347:return n.RuinsRock3;case 348:return n.RuinsRock4;case 349:return n.RuinsRock5;case 350:return n.RuinsRock6;case 351:return n.RuinsRock7;case 352:return n.Poison;case 353:return n.FixedBoxTypeRuins;case 354:return n.RandomBoxTypeRuins;case 355:return n.EnemyTypeBoxYellow;case 356:return n.EnemyTypeBoxBlue;case 357:return n.EmptyTypeBoxBlue;case 358:return n.DestructableRock;case 359:return n.PopupTrapsTechs;case 368:return n.FlyingWhiteBird;case 369:return n.Tower;case 370:return n.FloatingRocks;case 371:return n.FloatingSoul;case 372:return n.Butterfly;case 384:return n.LobbyGameMenu;case 385:return n.LobbyWarpObject;case 386:return n.Lobby1EventObjectDefaultTree;case 387:return n.UnknownItem387;case 388:return n.UnknownItem388;case 389:return n.UnknownItem389;case 390:return n.LobbyEventObjectStaticPumpkin;case 391:return n.LobbyEventObject3ChristmasWindows;case 392:return n.LobbyEventObjectRedAndWhiteCurtain;case 393:return n.UnknownItem393;case 394:return n.UnknownItem394;case 395:return n.LobbyFishTank;case 396:return n.LobbyEventObjectButterflies;case 400:return n.UnknownItem400;case 401:return n.GreyWallLow;case 402:return n.SpaceshipDoor;case 403:return n.GreyWallHigh;case 416:return n.TempleNormalDoor;case 417:return n.BreakableWallWallButUnbreakable;case 418:return n.BrokenCylinderAndRubble;case 419:return n.ThreeBrokenWallPiecesOnFloor;case 420:return n.HighBrickCylinder;case 421:return n.LyingCylinder;case 422:return n.BrickConeWithFlatTop;case 423:return n.BreakableTempleWall;case 424:return n.TempleMapDetect;case 425:return n.SmallBrownBrickRisingBridge;case 426:return n.LongRisingBridgeWithPinkHighEdges;case 427:return n.FourSwitchTempleDoor;case 448:return n.FourButtonSpaceshipDoor;case 512:return n.ItemBoxCca;case 513:return n.TeleporterEp2;case 514:return n.CCADoor;case 515:return n.SpecialBoxCCA;case 516:return n.BigCCADoor;case 517:return n.BigCCADoorSwitch;case 518:return n.LittleRock;case 519:return n.Little3StoneWall;case 520:return n.Medium3StoneWall;case 521:return n.SpiderPlant;case 522:return n.CCAAreaTeleporter;case 523:return n.UnknownItem523;case 524:return n.WhiteBird;case 525:return n.OrangeBird;case 527:return n.Saw;case 528:return n.LaserDetect;case 529:return n.UnknownItem529;case 530:return n.UnknownItem530;case 531:return n.Seagull;case 544:return n.Fish;case 545:return n.SeabedDoorWithBlueEdges;case 546:return n.SeabedDoorAlwaysOpenNonTriggerable;case 547:return n.LittleCryotube;case 548:return n.WideGlassWallBreakable;case 549:return n.BlueFloatingRobot;case 550:return n.RedFloatingRobot;case 551:return n.Dolphin;case 552:return n.CaptureTrap;case 553:return n.VRLink;case 576:return n.UnknownItem576;case 640:return n.WarpInBarbaRayRoom;case 672:return n.UnknownItem672;case 688:return n.GeeNest;case 689:return n.LabComputerConsole;case 690:return n.LabComputerConsoleGreenScreen;case 691:return n.ChairYellowPillow;case 692:return n.OrangeWallWithHoleInMiddle;case 693:return n.GreyWallWithHoleInMiddle;case 694:return n.LongTable;case 695:return n.GBAStation;case 696:return n.TalkLinkToSupport;case 697:return n.InstaWarp;case 698:return n.LabInvisibleObject;case 699:return n.LabGlassWindowDoor;case 700:return n.UnknownItem700;case 701:return n.LabCeilingWarp;case 768:return n.Ep4LightSource;case 769:return n.Cacti;case 770:return n.BigBrownRock;case 771:return n.BreakableBrownRock;case 832:return n.UnknownItem832;case 833:return n.UnknownItem833;case 896:return n.PoisonPlant;case 897:return n.UnknownItem897;case 898:return n.UnknownItem898;case 899:return n.OozingDesertPlant;case 901:return n.UnknownItem901;case 902:return n.BigBlackRocks;case 903:return n.UnknownItem903;case 904:return n.UnknownItem904;case 905:return n.UnknownItem905;case 906:return n.UnknownItem906;case 907:return n.FallingRock;case 908:return n.DesertPlantHasCollision;case 909:return n.DesertFixedTypeBoxBreakableCrystals;case 910:return n.UnknownItem910;case 911:return n.BeeHive;case 912:return n.UnknownItem912;case 913:return n.Heat;case 960:return n.TopOfSaintMillionEgg;case 961:return n.UnknownItem961}};const s=[];function r(e,i,o,n){t.OBJECT_TYPES.push(e);const r=[];for(const[e,t]of n)r[e]=t;s[e]=Object.freeze({name:o,area_ids:r,pso_id:i})}r(n.Unknown,void 0,"Unknown",[]),r(n.PlayerSet,0,"Player Set",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9,0]]]),r(n.Particle,1,"Particle",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.Teleporter,2,"Teleporter",[[o.Episode.I,[0,1,2,3,4,5,6,7,11,12,13,14]],[o.Episode.II,[0,1,2,3,4,12,13,14,15]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9,0]]]),r(n.Warp,3,"Warp",[[o.Episode.I,[0,1,2,3,4,5,6,7,11,12,13,14,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9,0]]]),r(n.LightCollision,4,"Light Collision",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,15,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.Item,5,"Item",[]),r(n.EnvSound,6,"Env Sound",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,13]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.FogCollision,7,"Fog Collision",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.EventCollision,8,"Event Collision",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9,0]]]),r(n.CharaCollision,9,"Chara Collision",[[o.Episode.I,[0,1,2,3,4,5,8,9,10]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.ElementalTrap,10,"Elemental Trap",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9]]]),r(n.StatusTrap,11,"Status Trap",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9]]]),r(n.HealTrap,12,"Heal Trap",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9]]]),r(n.LargeElementalTrap,13,"Large Elemental Trap",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9]]]),r(n.ObjRoomID,14,"Obj Room ID",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,11,12,13]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9]]]),r(n.Sensor,15,"Sensor",[[o.Episode.I,[1,2,4,5,6,7]]]),r(n.UnknownItem16,16,"Unknown Item (16)",[]),r(n.LensFlare,17,"Lens Flare",[[o.Episode.I,[1,2,3,4,8,14]]]),r(n.ScriptCollision,18,"Script Collision",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.HealRing,19,"Heal Ring",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.MapCollision,20,"Map Collision",[[o.Episode.I,[0,1,2,3,4,5,8,9,10,16,17]],[o.Episode.II,[0,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[0]]]),r(n.ScriptCollisionA,21,"Script Collision A",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.ItemLight,22,"Item Light",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.RadarCollision,23,"Radar Collision",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.FogCollisionSW,24,"Fog Collision SW",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,11,12,13,14]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.BossTeleporter,25,"Boss Teleporter",[[o.Episode.I,[0,2,5,7,10]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[5,6,7,8,0]]]),r(n.ImageBoard,26,"Image Board",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.QuestWarp,27,"Quest Warp",[[o.Episode.I,[1,2,3,4,5,6,7,11,12,13,14]],[o.Episode.IV,[9]]]),r(n.Epilogue,28,"Epilogue",[[o.Episode.I,[14]],[o.Episode.II,[13]],[o.Episode.IV,[9]]]),r(n.UnknownItem29,29,"Unknown Item (29)",[[o.Episode.I,[1]]]),r(n.UnknownItem30,30,"Unknown Item (30)",[[o.Episode.I,[1,2,17]],[o.Episode.II,[1,2,14]],[o.Episode.IV,[1,2,3,4,5]]]),r(n.UnknownItem31,31,"Unknown Item (31)",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.BoxDetectObject,32,"Box Detect Object",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.SymbolChatObject,33,"Symbol Chat Object",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.TouchPlateObject,34,"Touch plate Object",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.TargetableObject,35,"Targetable Object",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.EffectObject,36,"Effect object",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[0,1,2,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[0]]]),r(n.CountDownObject,37,"Count Down Object",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.UnknownItem38,38,"Unknown Item (38)",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.UnknownItem39,39,"Unknown Item (39)",[[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.UnknownItem40,40,"Unknown Item (40)",[[o.Episode.I,[0,1,2,4,5,6,7,8,9,10,13,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,13,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.UnknownItem41,41,"Unknown Item (41)",[[o.Episode.I,[0,1,2,4,5,6,7,8,9,10,13,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,13,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.MenuActivation,64,"Menu activation",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.TelepipeLocation,65,"Telepipe Location",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.BGMCollision,66,"BGM Collision",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.MainRagolTeleporter,67,"Main Ragol Teleporter",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.LobbyTeleporter,68,"Lobby Teleporter",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.PrincipalWarp,69,"Principal warp",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.ShopDoor,70,"Shop Door",[[o.Episode.I,[0]],[o.Episode.IV,[0]]]),r(n.HuntersGuildDoor,71,"Hunter's Guild Door",[[o.Episode.I,[0]],[o.Episode.IV,[0]]]),r(n.TeleporterDoor,72,"Teleporter Door",[[o.Episode.I,[0]],[o.Episode.IV,[0]]]),r(n.MedicalCenterDoor,73,"Medical Center Door",[[o.Episode.I,[0]],[o.Episode.IV,[0]]]),r(n.Elevator,74,"Elevator",[[o.Episode.I,[0]],[o.Episode.IV,[0]]]),r(n.EasterEgg,75,"Easter Egg",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.ValentinesHeart,76,"Valentines Heart",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.ChristmasTree,77,"Christmas Tree",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.ChristmasWreath,78,"Christmas Wreath",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.HalloweenPumpkin,79,"Halloween Pumpkin",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.TwentyFirstCentury,80,"21st Century",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.Sonic,81,"Sonic",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.WelcomeBoard,82,"Welcome Board",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.Firework,83,"Firework",[[o.Episode.I,[0]],[o.Episode.II,[0,16]],[o.Episode.IV,[0]]]),r(n.LobbyScreenDoor,84,"Lobby Screen Door",[[o.Episode.I,[0]],[o.Episode.IV,[0]]]),r(n.MainRagolTeleporterBattleInNextArea,85,"Main Ragol Teleporter (Battle in next area?)",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.LabTeleporterDoor,86,"Lab Teleporter Door",[[o.Episode.II,[0]]]),r(n.Pioneer2InvisibleTouchplate,87,"Pioneer 2 Invisible Touchplate",[[o.Episode.I,[0]],[o.Episode.II,[0]],[o.Episode.IV,[0]]]),r(n.ForestDoor,128,"Forest Door",[[o.Episode.I,[1,2]]]),r(n.ForestSwitch,129,"Forest Switch",[[o.Episode.I,[1,2,3,4,5]],[o.Episode.II,[1,2,3,4]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.LaserFence,130,"Laser Fence",[[o.Episode.I,[1,2,3,4,5,6,7,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.LaserSquareFence,131,"Laser Square Fence",[[o.Episode.I,[1,2,3,4,5,6,7,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.ForestLaserFenceSwitch,132,"Forest Laser Fence Switch",[[o.Episode.I,[1,2,3,4,5,6,7,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.LightRays,133,"Light rays",[[o.Episode.I,[1,2]],[o.Episode.II,[5,6,7,8,9]],[o.Episode.IV,[6,7,8]]]),r(n.BlueButterfly,134,"Blue Butterfly",[[o.Episode.I,[1,2]],[o.Episode.IV,[6,7,8]]]),r(n.Probe,135,"Probe",[[o.Episode.I,[1,2]]]),r(n.RandomTypeBox1,136,"Random Type Box 1",[[o.Episode.I,[1,2,3,4,5,6,7]],[o.Episode.II,[10,11,13]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.ForestWeatherStation,137,"Forest Weather Station",[[o.Episode.I,[1,2]]]),r(n.Battery,138,"Battery",[]),r(n.ForestConsole,139,"Forest Console",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.BlackSlidingDoor,140,"Black Sliding Door",[[o.Episode.I,[1,2,3]]]),r(n.RicoMessagePod,141,"Rico Message Pod",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,13]]]),r(n.EnergyBarrier,142,"Energy Barrier",[[o.Episode.I,[1,2,4,5,6,7]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.ForestRisingBridge,143,"Forest Rising Bridge",[[o.Episode.I,[1,2]]]),r(n.SwitchNoneDoor,144,"Switch (none door)",[[o.Episode.I,[1,2,6,7,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.EnemyBoxGrey,145,"Enemy Box (Grey)",[[o.Episode.I,[1,2,3,4,5,6,7]],[o.Episode.II,[10,11]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.FixedTypeBox,146,"Fixed Type Box",[[o.Episode.I,[1,2,3,4,5,6,7,11,12,13,14]],[o.Episode.II,[10,11,13]],[o.Episode.IV,[1,2,3,4,6,7,8,9]]]),r(n.EnemyBoxBrown,147,"Enemy Box (Brown)",[[o.Episode.I,[1,2,3,4,5,6,7]],[o.Episode.II,[10,11]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.EmptyTypeBox,149,"Empty Type Box",[[o.Episode.I,[1,2,3,4,5,6,7]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.LaserFenceEx,150,"Laser Fence Ex",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.LaserSquareFenceEx,151,"Laser Square Fence Ex",[]),r(n.FloorPanel1,192,"Floor Panel 1",[[o.Episode.I,[3,4,5,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.Caves4ButtonDoor,193,"Caves 4 Button door",[[o.Episode.I,[3,4,5]]]),r(n.CavesNormalDoor,194,"Caves Normal door",[[o.Episode.I,[3,4,5]]]),r(n.CavesSmashingPillar,195,"Caves Smashing Pillar",[[o.Episode.I,[3,4,5]],[o.Episode.II,[1,2,3,4,17]]]),r(n.CavesSign1,196,"Caves Sign 1",[[o.Episode.I,[4,5]]]),r(n.CavesSign2,197,"Caves Sign 2",[[o.Episode.I,[4,5]]]),r(n.CavesSign3,198,"Caves Sign 3",[[o.Episode.I,[4,5]]]),r(n.HexagonalTank,199,"Hexagonal Tank",[[o.Episode.I,[4,5]]]),r(n.BrownPlatform,200,"Brown Platform",[[o.Episode.I,[4,5]]]),r(n.WarningLightObject,201,"Warning Light Object",[[o.Episode.I,[4,5]],[o.Episode.IV,[5]]]),r(n.Rainbow,203,"Rainbow",[[o.Episode.I,[4]]]),r(n.FloatingJellyfish,204,"Floating Jellyfish",[[o.Episode.I,[4]],[o.Episode.II,[10,11]]]),r(n.FloatingDragonfly,205,"Floating Dragonfly",[[o.Episode.I,[4,16]],[o.Episode.II,[3,4]],[o.Episode.IV,[6,7,8]]]),r(n.CavesSwitchDoor,206,"Caves Switch Door",[[o.Episode.I,[3,4,5]]]),r(n.RobotRechargeStation,207,"Robot Recharge Station",[[o.Episode.I,[3,4,5,6,7]],[o.Episode.II,[17]]]),r(n.CavesCakeShop,208,"Caves Cake Shop",[[o.Episode.I,[5]]]),r(n.Caves1SmallRedRock,209,"Caves 1 Small Red Rock",[[o.Episode.I,[3]]]),r(n.Caves1MediumRedRock,210,"Caves 1 Medium Red Rock",[[o.Episode.I,[3]]]),r(n.Caves1LargeRedRock,211,"Caves 1 Large Red Rock",[[o.Episode.I,[3]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.Caves2SmallRock1,212,"Caves 2 Small Rock 1",[[o.Episode.I,[4]]]),r(n.Caves2MediumRock1,213,"Caves 2 Medium Rock 1",[[o.Episode.I,[4]]]),r(n.Caves2LargeRock1,214,"Caves 2 Large Rock 1",[[o.Episode.I,[4]]]),r(n.Caves2SmallRock2,215,"Caves 2 Small Rock 2",[[o.Episode.I,[4]]]),r(n.Caves2MediumRock2,216,"Caves 2 Medium Rock 2",[[o.Episode.I,[4]]]),r(n.Caves2LargeRock2,217,"Caves 2 Large Rock 2",[[o.Episode.I,[4]]]),r(n.Caves3SmallRock,218,"Caves 3 Small Rock",[[o.Episode.I,[5]]]),r(n.Caves3MediumRock,219,"Caves 3 Medium Rock",[[o.Episode.I,[5]]]),r(n.Caves3LargeRock,220,"Caves 3 Large Rock",[[o.Episode.I,[5]]]),r(n.FloorPanel2,222,"Floor Panel 2",[[o.Episode.I,[1,2,3,4,5,6,7,8,9,10,16,17]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.DestructableRockCaves1,223,"Destructable Rock (Caves 1)",[[o.Episode.I,[3]]]),r(n.DestructableRockCaves2,224,"Destructable Rock (Caves 2)",[[o.Episode.I,[4]]]),r(n.DestructableRockCaves3,225,"Destructable Rock (Caves 3)",[[o.Episode.I,[5]]]),r(n.MinesDoor,256,"Mines Door",[[o.Episode.I,[6,7]]]),r(n.FloorPanel3,257,"Floor Panel 3",[[o.Episode.I,[1,2,6,7,16,17]],[o.Episode.II,[1,2,3,4]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.MinesSwitchDoor,258,"Mines Switch Door",[[o.Episode.I,[6,7]],[o.Episode.IV,[6,7,8]]]),r(n.LargeCryoTube,259,"Large Cryo-Tube",[[o.Episode.I,[6,7]],[o.Episode.II,[17]]]),r(n.ComputerLikeCalus,260,"Computer (like calus)",[[o.Episode.I,[6,7]],[o.Episode.II,[17]]]),r(n.GreenScreenOpeningAndClosing,261,"Green Screen opening and closing",[[o.Episode.I,[6,7]],[o.Episode.II,[17]]]),r(n.FloatingRobot,262,"Floating Robot",[[o.Episode.I,[6,7]]]),r(n.FloatingBlueLight,263,"Floating Blue Light",[[o.Episode.I,[6,7]]]),r(n.SelfDestructingObject1,264,"Self Destructing Object 1",[[o.Episode.I,[6,7]]]),r(n.SelfDestructingObject2,265,"Self Destructing Object 2",[[o.Episode.I,[6,7]]]),r(n.SelfDestructingObject3,266,"Self Destructing Object 3",[[o.Episode.I,[6,7]]]),r(n.SparkMachine,267,"Spark Machine",[[o.Episode.I,[6,7]]]),r(n.MinesLargeFlashingCrate,268,"Mines Large Flashing Crate",[[o.Episode.I,[6,7]]]),r(n.RuinsSeal,304,"Ruins Seal",[[o.Episode.I,[13]]]),r(n.RuinsTeleporter,320,"Ruins Teleporter",[[o.Episode.I,[8,9,10]]]),r(n.RuinsWarpSiteToSite,321,"Ruins Warp (Site to site)",[[o.Episode.I,[8,9,10]]]),r(n.RuinsSwitch,322,"Ruins Switch",[[o.Episode.I,[8,9,10]]]),r(n.FloorPanel4,323,"Floor Panel 4",[[o.Episode.I,[8,9,10]]]),r(n.Ruins1Door,324,"Ruins 1 Door",[[o.Episode.I,[8]]]),r(n.Ruins3Door,325,"Ruins 3 Door",[[o.Episode.I,[10]]]),r(n.Ruins2Door,326,"Ruins 2 Door",[[o.Episode.I,[9]]]),r(n.Ruins11ButtonDoor,327,"Ruins 1-1 Button Door",[[o.Episode.I,[8]]]),r(n.Ruins21ButtonDoor,328,"Ruins 2-1 Button Door",[[o.Episode.I,[9]]]),r(n.Ruins31ButtonDoor,329,"Ruins 3-1 Button Door",[[o.Episode.I,[10]]]),r(n.Ruins4ButtonDoor,330,"Ruins 4-Button Door",[[o.Episode.I,[8,9,10]]]),r(n.Ruins2ButtonDoor,331,"Ruins 2-Button Door",[[o.Episode.I,[8,9,10]]]),r(n.RuinsSensor,332,"Ruins Sensor",[[o.Episode.I,[8,9,10]]]),r(n.RuinsFenceSwitch,333,"Ruins Fence Switch",[[o.Episode.I,[8,9,10]]]),r(n.RuinsLaserFence4x2,334,"Ruins Laser Fence 4x2",[[o.Episode.I,[8,9,10]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.RuinsLaserFence6x2,335,"Ruins Laser Fence 6x2",[[o.Episode.I,[8,9,10]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.RuinsLaserFence4x4,336,"Ruins Laser Fence 4x4",[[o.Episode.I,[8,9,10]]]),r(n.RuinsLaserFence6x4,337,"Ruins Laser Fence 6x4",[[o.Episode.I,[8,9,10]]]),r(n.RuinsPoisonBlob,338,"Ruins poison Blob",[[o.Episode.I,[8,9,10]],[o.Episode.II,[5,6,7,8,9]],[o.Episode.IV,[6,7,8]]]),r(n.RuinsPillarTrap,339,"Ruins Pillar Trap",[[o.Episode.I,[8,9,10]],[o.Episode.II,[1,2,3,4]]]),r(n.PopupTrapNoTech,340,"Popup Trap (No Tech)",[[o.Episode.I,[8,9,10]]]),r(n.RuinsCrystal,341,"Ruins Crystal",[[o.Episode.I,[8,9,10]]]),r(n.Monument,342,"Monument",[[o.Episode.I,[2,4,7]]]),r(n.RuinsRock1,345,"Ruins Rock 1",[[o.Episode.I,[8,9,10]]]),r(n.RuinsRock2,346,"Ruins Rock 2",[[o.Episode.I,[8,9,10]]]),r(n.RuinsRock3,347,"Ruins Rock 3",[[o.Episode.I,[8,9,10]]]),r(n.RuinsRock4,348,"Ruins Rock 4",[[o.Episode.I,[8,9,10]]]),r(n.RuinsRock5,349,"Ruins Rock 5",[[o.Episode.I,[8,9,10]]]),r(n.RuinsRock6,350,"Ruins Rock 6",[[o.Episode.I,[8,9,10]]]),r(n.RuinsRock7,351,"Ruins Rock 7",[[o.Episode.I,[8,9,10]]]),r(n.Poison,352,"Poison",[[o.Episode.I,[8,9,10,13]],[o.Episode.II,[3,4,10,11]],[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.FixedBoxTypeRuins,353,"Fixed Box Type (Ruins)",[[o.Episode.I,[8,9,10,16,17]],[o.Episode.II,[1,2,3,4,14,15]]]),r(n.RandomBoxTypeRuins,354,"Random Box Type (Ruins)",[[o.Episode.I,[8,9,10,16,17]],[o.Episode.II,[1,2,3,4,14,15]]]),r(n.EnemyTypeBoxYellow,355,"Enemy Type Box (Yellow)",[[o.Episode.I,[8,9,10,16,17]],[o.Episode.II,[1,2,3,4]]]),r(n.EnemyTypeBoxBlue,356,"Enemy Type Box (Blue)",[[o.Episode.I,[8,9,10,16,17]],[o.Episode.II,[1,2,3,4]]]),r(n.EmptyTypeBoxBlue,357,"Empty Type Box (Blue)",[[o.Episode.I,[8,9,10,16,17]],[o.Episode.II,[1,2,3,4]]]),r(n.DestructableRock,358,"Destructable Rock",[[o.Episode.I,[8,9,10]]]),r(n.PopupTrapsTechs,359,"Popup Traps (techs)",[[o.Episode.I,[6,7,8,9,10]],[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,16,17]]]),r(n.FlyingWhiteBird,368,"Flying White Bird",[[o.Episode.I,[14,16]],[o.Episode.II,[3,4]]]),r(n.Tower,369,"Tower",[[o.Episode.I,[14]]]),r(n.FloatingRocks,370,"Floating Rocks",[[o.Episode.I,[14]]]),r(n.FloatingSoul,371,"Floating Soul",[[o.Episode.I,[14]]]),r(n.Butterfly,372,"Butterfly",[[o.Episode.I,[14]]]),r(n.LobbyGameMenu,384,"Lobby Game menu",[[o.Episode.I,[15]]]),r(n.LobbyWarpObject,385,"Lobby Warp Object",[[o.Episode.I,[15]]]),r(n.Lobby1EventObjectDefaultTree,386,"Lobby 1 Event Object (Default Tree)",[[o.Episode.I,[15]]]),r(n.UnknownItem387,387,"Unknown Item (387)",[[o.Episode.I,[15]]]),r(n.UnknownItem388,388,"Unknown Item (388)",[[o.Episode.I,[15]]]),r(n.UnknownItem389,389,"Unknown Item (389)",[[o.Episode.I,[15]]]),r(n.LobbyEventObjectStaticPumpkin,390,"Lobby Event Object (Static Pumpkin)",[[o.Episode.I,[15]]]),r(n.LobbyEventObject3ChristmasWindows,391,"Lobby Event Object (3 Christmas Windows)",[[o.Episode.I,[15]]]),r(n.LobbyEventObjectRedAndWhiteCurtain,392,"Lobby Event Object (Red and White Curtain)",[[o.Episode.I,[15]]]),r(n.UnknownItem393,393,"Unknown Item (393)",[[o.Episode.I,[15]]]),r(n.UnknownItem394,394,"Unknown Item (394)",[[o.Episode.I,[15]]]),r(n.LobbyFishTank,395,"Lobby Fish Tank",[[o.Episode.I,[15]]]),r(n.LobbyEventObjectButterflies,396,"Lobby Event Object (Butterflies)",[[o.Episode.I,[15]]]),r(n.UnknownItem400,400,"Unknown Item (400)",[[o.Episode.I,[16]],[o.Episode.II,[3,4]]]),r(n.GreyWallLow,401,"grey wall low",[[o.Episode.I,[16]],[o.Episode.II,[3,4,17]]]),r(n.SpaceshipDoor,402,"Spaceship Door",[[o.Episode.I,[16]],[o.Episode.II,[3,4]]]),r(n.GreyWallHigh,403,"grey wall high",[[o.Episode.I,[16]],[o.Episode.II,[3,4,17]]]),r(n.TempleNormalDoor,416,"Temple Normal Door",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.BreakableWallWallButUnbreakable,417,'"breakable wall wall, but unbreakable"',[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.BrokenCylinderAndRubble,418,"Broken cylinder and rubble",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.ThreeBrokenWallPiecesOnFloor,419,"3 broken wall pieces on floor",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.HighBrickCylinder,420,"high brick cylinder",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.LyingCylinder,421,"lying cylinder",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.BrickConeWithFlatTop,422,"brick cone with flat top",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.BreakableTempleWall,423,"breakable temple wall",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.TempleMapDetect,424,"Temple Map Detect",[[o.Episode.I,[17]],[o.Episode.II,[1,2,14]],[o.Episode.IV,[1,2,3,4,5]]]),r(n.SmallBrownBrickRisingBridge,425,"small brown brick rising bridge",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.LongRisingBridgeWithPinkHighEdges,426,"long rising bridge (with pink high edges)",[[o.Episode.I,[17]],[o.Episode.II,[1,2]]]),r(n.FourSwitchTempleDoor,427,"4 switch temple door",[[o.Episode.II,[1,2]]]),r(n.FourButtonSpaceshipDoor,448,"4 button spaceship door",[[o.Episode.II,[3,4]]]),r(n.ItemBoxCca,512,"item box cca",[[o.Episode.II,[5,6,7,8,9,12,16,17]],[o.Episode.IV,[5]]]),r(n.TeleporterEp2,513,"Teleporter (Ep 2)",[[o.Episode.II,[5,6,7,8,9,10,11,12,13,16,17]]]),r(n.CCADoor,514,"CCA Door",[[o.Episode.II,[5,6,7,8,9,16,17]]]),r(n.SpecialBoxCCA,515,"Special Box CCA",[[o.Episode.II,[5,6,7,8,9,12,16,17]],[o.Episode.IV,[1,2,3,4,5]]]),r(n.BigCCADoor,516,"Big CCA Door",[[o.Episode.II,[5]]]),r(n.BigCCADoorSwitch,517,"Big CCA Door Switch",[[o.Episode.II,[5,6,7,8,9,16,17]]]),r(n.LittleRock,518,"Little Rock",[[o.Episode.II,[5,6,7,8,9,16]]]),r(n.Little3StoneWall,519,"Little 3 Stone Wall",[[o.Episode.II,[5,6,7,8,9,16]]]),r(n.Medium3StoneWall,520,"Medium 3 stone wall",[[o.Episode.II,[5,6,7,8,9,16]]]),r(n.SpiderPlant,521,"Spider Plant",[[o.Episode.II,[5,6,7,8,9,16]]]),r(n.CCAAreaTeleporter,522,"CCA Area Teleporter",[[o.Episode.II,[5,6,7,8,9,16,17]]]),r(n.UnknownItem523,523,"Unknown Item (523)",[[o.Episode.II,[5,12]]]),r(n.WhiteBird,524,"White Bird",[[o.Episode.II,[6,7,9,16,17]],[o.Episode.IV,[6,7,8]]]),r(n.OrangeBird,525,"Orange Bird",[[o.Episode.II,[6,7,9,17]]]),r(n.Saw,527,"Saw",[[o.Episode.II,[5,6,7,8,9,10,11,16,17]]]),r(n.LaserDetect,528,"Laser Detect",[[o.Episode.II,[5,6,7,8,9,10,11,16,17]]]),r(n.UnknownItem529,529,"Unknown Item (529)",[[o.Episode.II,[5,6,7]],[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem530,530,"Unknown Item (530)",[[o.Episode.II,[5,6,7,8,9,17]]]),r(n.Seagull,531,"Seagull",[[o.Episode.II,[6,7,8,9,16]],[o.Episode.IV,[6,7,8]]]),r(n.Fish,544,"Fish",[[o.Episode.I,[15]],[o.Episode.II,[6,9,10,11,16]]]),r(n.SeabedDoorWithBlueEdges,545,"Seabed Door (with blue edges)",[[o.Episode.II,[10,11]]]),r(n.SeabedDoorAlwaysOpenNonTriggerable,546,"Seabed door (always open, non-triggerable)",[[o.Episode.II,[10,11]]]),r(n.LittleCryotube,547,"Little Cryotube",[[o.Episode.II,[10,11,17]]]),r(n.WideGlassWallBreakable,548,"Wide Glass Wall (breakable)",[[o.Episode.II,[10,11]]]),r(n.BlueFloatingRobot,549,"Blue floating robot",[[o.Episode.II,[10,11]]]),r(n.RedFloatingRobot,550,"Red floating robot",[[o.Episode.II,[10,11]]]),r(n.Dolphin,551,"Dolphin",[[o.Episode.II,[10,11]]]),r(n.CaptureTrap,552,"Capture Trap",[[o.Episode.II,[5,6,7,8,9,10,11,16,17]]]),r(n.VRLink,553,"VR link",[[o.Episode.II,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]]]),r(n.UnknownItem576,576,"Unknown Item (576)",[[o.Episode.II,[12]]]),r(n.WarpInBarbaRayRoom,640,"Warp in Barba Ray Room",[[o.Episode.II,[14]]]),r(n.UnknownItem672,672,"Unknown Item (672)",[[o.Episode.II,[15]]]),r(n.GeeNest,688,"Gee Nest",[[o.Episode.I,[8,9,10]],[o.Episode.II,[5,6,7,8,9,16,17]],[o.Episode.IV,[6,7,8]]]),r(n.LabComputerConsole,689,"Lab Computer Console",[[o.Episode.II,[0]]]),r(n.LabComputerConsoleGreenScreen,690,"Lab Computer Console (Green Screen)",[[o.Episode.II,[0]]]),r(n.ChairYellowPillow,691,"Chair, Yellow Pillow",[[o.Episode.II,[0]]]),r(n.OrangeWallWithHoleInMiddle,692,"orange wall with hole in middle",[[o.Episode.II,[0]]]),r(n.GreyWallWithHoleInMiddle,693,"grey wall with hole in middle",[[o.Episode.II,[0]]]),r(n.LongTable,694,"long table",[[o.Episode.II,[0]]]),r(n.GBAStation,695,"GBA Station",[]),r(n.TalkLinkToSupport,696,"Talk (link to support)",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.InstaWarp,697,"insta-warp",[[o.Episode.I,[0,1,2,3,4,5,6,7,11,12,13,14,16,17]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,9,0]]]),r(n.LabInvisibleObject,698,"Lab Invisible Object",[[o.Episode.I,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]],[o.Episode.II,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],[o.Episode.IV,[1,2,3,4,5,6,7,8,0]]]),r(n.LabGlassWindowDoor,699,"Lab Glass window Door",[[o.Episode.II,[0]]]),r(n.UnknownItem700,700,"Unknown Item (700)",[[o.Episode.II,[13]]]),r(n.LabCeilingWarp,701,"Lab Ceiling Warp",[[o.Episode.II,[0]]]),r(n.Ep4LightSource,768,"Ep4 Light Source",[[o.Episode.IV,[1,2,3,4,5,6,7,8,9]]]),r(n.Cacti,769,"cacti",[[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.BigBrownRock,770,"Big Brown Rock",[[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.BreakableBrownRock,771,"Breakable Brown Rock",[[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.UnknownItem832,832,"Unknown Item (832)",[]),r(n.UnknownItem833,833,"Unknown Item (833)",[]),r(n.PoisonPlant,896,"Poison Plant",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem897,897,"Unknown Item (897)",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem898,898,"Unknown Item (898)",[[o.Episode.IV,[6,7,8]]]),r(n.OozingDesertPlant,899,"Oozing Desert Plant",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem901,901,"Unknown Item (901)",[[o.Episode.IV,[6,7,8]]]),r(n.BigBlackRocks,902,"big black rocks",[[o.Episode.IV,[1,2,3,4,5,6,7,8]]]),r(n.UnknownItem903,903,"Unknown Item (903)",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem904,904,"Unknown Item (904)",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem905,905,"Unknown Item (905)",[]),r(n.UnknownItem906,906,"Unknown Item (906)",[]),r(n.FallingRock,907,"Falling Rock",[[o.Episode.IV,[6,7,8]]]),r(n.DesertPlantHasCollision,908,"Desert Plant (has collision)",[[o.Episode.IV,[6,7,8]]]),r(n.DesertFixedTypeBoxBreakableCrystals,909,"Desert Fixed Type Box (Breakable Crystals)",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem910,910,"Unknown Item (910)",[]),r(n.BeeHive,911,"Bee Hive",[[o.Episode.IV,[6,7,8]]]),r(n.UnknownItem912,912,"Unknown Item (912)",[[o.Episode.IV,[6,7,8]]]),r(n.Heat,913,"Heat",[[o.Episode.IV,[6,7,8]]]),r(n.TopOfSaintMillionEgg,960,"Top of saint million egg",[[o.Episode.IV,[9]]]),r(n.UnknownItem961,961,"Unknown Item (961)",[[o.Episode.IV,[9]]]),Object.freeze(t.OBJECT_TYPES),Object.freeze(s)},"/7QA":function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i("1Qg8");i("8UJ8");const s=i("LvDl"),r=o(i("GGSb"));function a(e){const t=e;"historyUndo"!==t.inputType&&"historyRedo"!==t.inputType||e.preventDefault()}function d(e){const t=e;t.ctrlKey&&!t.altKey&&"Z"===t.key.toUpperCase()&&t.preventDefault()}function l(e){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none")}function _(e){l(e)}function u(e){l(e)}i("XtFL"),i("tjRy"),i("3oCa"),i("OP0w"),r.default.useDefaults({defaultLevel:r.default.WARN}),function(){document.addEventListener("beforeinput",a),document.addEventListener("keydown",d),document.addEventListener("dragenter",l),document.addEventListener("dragover",_),document.addEventListener("drop",u);const e=new n.ApplicationView,t=s.throttle(()=>{e.resize(window.innerWidth,window.innerHeight)},100,{leading:!0,trailing:!0});t(),document.body.append(e.element),window.addEventListener("resize",t)}()},"/Wax":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("9dYx");class n extends o.AbstractWritableCursor{constructor(e,t,i=0,o=e.size-i){if(i<0||i>e.size)throw new Error(`Offset ${i} is out of bounds.`);if(o<0||i+o>e.size)throw new Error(`Size ${o} is out of bounds.`);super(t,i),this.buffer=e,this._size=o}get size(){return this._size}set size(e){e>this._size?this.ensure_size(e-this._size):this._size=e}get backing_buffer(){return this.buffer.backing_buffer}get dv(){return this.buffer.view}take(e){this.check_size("size",e,e);const t=this.offset+this.position,i=new n(this.buffer,this.endianness,t,e);return this._position+=e,i}ensure_size(e){const t=this.position+e-this._size;t>0&&(this._size+=t,this.buffer.sizethis.val=e.value)}bind_bi(e){const t=this.bind_to(e),i=e.bind_to(this);return{dispose(){t.dispose(),i.dispose()}}}}},"0Xme":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("sDu+"),n=i("FXpb"),s=i("jJhE");i("x1yY");const r=i("4VsB");t.Input=class extends o.LabelledControl{constructor(e,t,i,o,s){super(s),this.element=n.el.span({class:`${t} core_Input`}),this._value=new r.WidgetProperty(this,e,this.set_value),this.value=this._value,this.input_element=n.create_element("input",{class:`${o} core_Input_inner`}),this.input_element.type=i,this.input_element.onchange=()=>{this._value.set_val(this.get_value(),{silent:!1})},this.element.append(this.input_element)}set_enabled(e){super.set_enabled(e),this.input_element.disabled=!e}set_attr(e,t,i){if(null==t)return;const o=this.input_element,n=i||(e=>e);s.is_any_property(t)?(o[e]=n(t.val),this.disposable(t.observe(({value:t})=>o[e]=n(t)))):o[e]=n(t)}}},"1Qg8":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yxQK"),n=i("49yP"),s=i("FXpb"),r=i("nN8q");class a extends r.ResizableWidget{constructor(){super(),this.menu_view=this.disposable(new o.NavigationView),this.main_content_view=this.disposable(new n.MainContentView),this.element=s.el.div({class:"application_ApplicationView"},this.menu_view.element,this.main_content_view.element),this.element.id="root",this.finalize_construction(a.prototype)}resize(e,t){return super.resize(e,t),this.main_content_view.resize(e,t-this.menu_view.height),this}}t.ApplicationView=a},"1aHr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("w6HN"),n=i("6cU9"),s=i("KVVN"),r=i("c5EP"),a=i("n5fr"),d=i("sv1z"),l=i("ouMO"),_=i("FXpb"),u=i("r+6V"),c=i("xs7i"),p=i("4Mnx"),v=i("4SjJ");class h extends o.ToolBar{constructor(){const e=new u.DropDown("New quest",[c.Episode.I],e=>`Episode ${c.Episode[e]}`,{icon_left:_.Icon.NewFile}),t=new n.FileButton("Open file...",{icon_left:_.Icon.File,accept:".qst",tooltip:"Open a quest file (Ctrl-O)"}),i=new s.Button("Save as...",{icon_left:_.Icon.Save,tooltip:"Save this quest to new file (Ctrl-Shift-S)"}),o=new s.Button("Undo",{icon_left:_.Icon.Undo,tooltip:a.undo_manager.first_undo.map(e=>(e?`Undo "${e.description}"`:"Nothing to undo")+" (Ctrl-Z)")}),w=new s.Button("Redo",{icon_left:_.Icon.Redo,tooltip:a.undo_manager.first_redo.map(e=>(e?`Redo "${e.description}"`:"Nothing to redo")+" (Ctrl-Shift-Z)")}),f=new d.Select(r.quest_editor_store.current_quest.flat_map(e=>e?l.list_property(void 0,...p.area_store.get_areas_for_episode(e.episode)):l.list_property()),e=>{const t=r.quest_editor_store.current_quest.val;if(t){const i=t.entities_per_area.val.get(e.id);return e.name+(i?` (${i})`:"")}return e.name});super({children:[e,t,i,o,w,f]});const E=r.quest_editor_store.current_quest.map(e=>null!=e);this.disposables(e.chosen.observe(({value:e})=>r.quest_editor_store.new_quest(e)),t.files.observe(({value:e})=>{e.length&&r.quest_editor_store.open_file(e[0])}),i.enabled.bind_to(E),i.click.observe(r.quest_editor_store.save_as),o.enabled.bind_to(a.undo_manager.can_undo),o.click.observe(()=>a.undo_manager.undo()),w.enabled.bind_to(a.undo_manager.can_redo),w.click.observe(()=>a.undo_manager.redo()),f.enabled.bind_to(E),f.selected.bind_to(r.quest_editor_store.current_area),f.selected.observe(({value:e})=>r.quest_editor_store.set_current_area(e)),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-O",()=>t.click()),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-Shift-S",r.quest_editor_store.save_as),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-Z",()=>{a.undo_manager.undo()}),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-Shift-Z",()=>{a.undo_manager.redo()})),this.finalize_construction(h.prototype)}}t.QuestEditorToolBar=h},"1vWm":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i("nN8q"),r=i("FXpb"),a=i("1aHr"),d=n(i("xGNL")),l=i("zBQr"),_=i("q1Dg");i("88+i"),i("UrNz");const u=i("xyE7"),c=i("W7aE"),p=i("DUCy"),v=i("Yq7v"),h=i("4SjJ"),w=i("c5EP"),f=i("B2O0"),E=i("Jo0o"),O=i("GGSb").get("quest_editor/gui/QuestEditorView"),m=new Map([[_.QuestInfoView,"quest_info"],[u.NpcCountsView,"npc_counts"],[c.QuestRendererView,"quest_renderer"],[p.AsmEditorView,"asm_editor"],[v.EntityInfoView,"entity_info"],[f.NpcListView,"npc_list_view"],[E.ObjectListView,"object_list_view"]]),g={settings:{showPopoutIcon:!1,showMaximiseIcon:!1},dimensions:{headerHeight:24},labels:{close:"Close",maximise:"Maximise",minimise:"Minimise",popout:"Open in new window"}},y=[{type:"row",content:[{type:"stack",width:3,content:[{title:"Info",type:"component",componentName:m.get(_.QuestInfoView),isClosable:!1},{title:"NPC Counts",type:"component",componentName:m.get(u.NpcCountsView),isClosable:!1}]},{type:"stack",width:9,content:[{title:"3D View",type:"component",componentName:m.get(c.QuestRendererView),isClosable:!1},{title:"Script",type:"component",componentName:m.get(p.AsmEditorView),isClosable:!1}]},{type:"stack",width:2,content:[{title:"Entity",type:"component",componentName:m.get(v.EntityInfoView),isClosable:!1},{title:"NPCs",type:"component",componentName:m.get(f.NpcListView),isClosable:!1},{title:"Objects",type:"component",componentName:m.get(E.ObjectListView),isClosable:!1}]}]}];class b extends s.ResizableWidget{constructor(){super(),this.element=r.el.div({class:"quest_editor_QuestEditorView"}),this.tool_bar_view=this.disposable(new a.QuestEditorToolBar),this.layout_element=r.create_element("div",{class:"quest_editor_gl_container"}),this.sub_views=new Map,this.element.append(this.tool_bar_view.element,this.layout_element),this.layout=this.init_golden_layout(),this.disposables(h.gui_store.on_global_keydown(h.GuiTool.QuestEditor,"Ctrl-Alt-D",()=>w.quest_editor_store.debug.val=!w.quest_editor_store.debug.val)),this.finalize_construction(b.prototype)}resize(e,t){super.resize(e,t);const i=Math.max(0,t-this.tool_bar_view.height);return this.layout_element.style.width=`${e}px`,this.layout_element.style.height=`${i}px`,this.layout.then(t=>t.updateSize(e,i)),this}dispose(){super.dispose(),this.layout.then(e=>e.destroy());for(const e of this.sub_views.values())e.dispose();this.sub_views.clear()}init_golden_layout(){return o(this,void 0,void 0,(function*(){const e=yield l.quest_editor_ui_persister.load_layout_config([...m.values()],y);try{return this.attempt_gl_init(Object.assign(Object.assign({},g),{content:e}))}catch(e){return O.warn("Couldn't instantiate golden layout with persisted layout.",e),this.attempt_gl_init(Object.assign(Object.assign({},g),{content:y}))}}))}attempt_gl_init(e){const t=new d.default(e,this.layout_element),i=this;try{for(const[e,o]of m)t.registerComponent(o,(function(t){const n=new e;t.on("close",()=>n.dispose()),t.on("resize",()=>n.resize(t.width,t.height-4)),n.resize(t.width,t.height),i.sub_views.set(o,n),t.getElement().append(n.element)}));return t.on("stateChanged",()=>{this.layout&&l.quest_editor_ui_persister.persist_layout_config(t.toConfig().content)}),t.on("stackCreated",e=>{e.on("activeContentItemChanged",e=>{if("componentName"in e.config){const t=this.sub_views.get(e.config.componentName);t&&t.focus()}})}),t.init(),t}catch(e){throw t.destroy(),e}}}t.QuestEditorView=b},"1z6m":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid"),n=i("FXpb"),s=i("4SjJ");i("Rbar");class r extends o.Widget{constructor(e,t){super(),this.element=n.el.span({class:"application_NavigationButton"}),this.input=n.create_element("input"),this.label=n.create_element("label");const i=s.GuiTool[e];this.input.type="radio",this.input.name="application_NavigationButton",this.input.value=i,this.input.id=`application_NavigationButton_${i}`,this.label.append(t),this.label.htmlFor=`application_NavigationButton_${i}`,this.element.append(this.input,this.label),this.finalize_construction(r.prototype)}set checked(e){this.input.checked=e}}t.NavigationButton=r},"22Lq":function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),s=i("hUhj"),r=i("jJhE"),a=i("oxtq"),d=o(i("GGSb")).default.get("core/observable/property/list/SimpleListProperty");t.SimpleListProperty=class extends s.AbstractProperty{constructor(e,...t){super(),this.is_list_property=!0,this._length=n.property(0),this.value_observers=[],this.list_observers=[],this.length=this._length,this.values=t,this.extract_observables=e}get val(){return this.get_val()}set val(e){this.set_val(e)}get_val(){return this.values}set_val(e){const t=this.values.splice(0,this.values.length,...e);return this.finalize_update({type:a.ListChangeType.ListChange,index:0,removed:t,inserted:e}),t}observe_list(e){return 0===this.value_observers.length&&this.extract_observables&&this.replace_element_observers(0,1/0,this.values),this.list_observers.includes(e)||this.list_observers.push(e),{dispose:()=>{const t=this.list_observers.indexOf(e);if(-1!==t&&this.list_observers.splice(t,1),0===this.list_observers.length){for(const{disposables:e}of this.value_observers)for(const t of e)t.dispose();this.value_observers.splice(0,1/0)}}}}bind_to(e){return a.is_list_property(e)?(this.val=e.val,e.observe_list(e=>{e.type===a.ListChangeType.ListChange&&this.splice(e.index,e.removed.length,...e.inserted)})):(r.is_property(e)&&(this.val=e.val),e.observe(({value:e})=>this.set_val(e)))}bind_bi(e){const t=this.bind_to(e),i=e.bind_to(this);return{dispose(){t.dispose(),i.dispose()}}}update(e){this.splice(0,this.values.length,...e(this.values))}get(e){return this.values[e]}set(e,t){const i=[this.values[e]];this.values[e]=t,this.finalize_update({type:a.ListChangeType.ListChange,index:e,removed:i,inserted:[t]})}push(...e){const t=this.values.length;return this.values.push(...e),this.finalize_update({type:a.ListChangeType.ListChange,index:t,removed:[],inserted:e}),this.length.val}remove(...e){for(const t of e){const e=this.values.indexOf(t);this.values.splice(e,1),this.finalize_update({type:a.ListChangeType.ListChange,index:e,removed:[t],inserted:[]})}}clear(){const e=this.values.splice(0,this.values.length);this.finalize_update({type:a.ListChangeType.ListChange,index:0,removed:e,inserted:[]})}splice(e,t,...i){let o;return o=null==t?this.values.splice(e):this.values.splice(e,t,...i),this.finalize_update({type:a.ListChangeType.ListChange,index:e,removed:o,inserted:i}),o}sort(e){this.values.sort(e),this.finalize_update({type:a.ListChangeType.ListChange,index:0,removed:this.values,inserted:this.values})}finalize_update(e){this.list_observers.length&&this.extract_observables&&e.type===a.ListChangeType.ListChange&&this.replace_element_observers(e.index,e.removed.length,e.inserted);const t=this._length.val;this._length.set_val(this.values.length,{silent:!0});for(const t of this.list_observers)this.call_list_observer(t,e);this.emit(this.values),this._length.set_val(t,{silent:!0}),this._length.set_val(this.values.length,{silent:!1})}call_list_observer(e,t){try{e(t)}catch(e){d.error("Observer threw error.",e)}}replace_element_observers(e,t,i){let o=e;const n=this.value_observers.splice(e,t,...i.map(e=>{const t={index:o,disposables:this.extract_observables(e).map(i=>i.observe(()=>{this.finalize_update({type:a.ListChangeType.ValueChange,updated:[e],index:t.index})}))};return o++,t}));for(const{disposables:e}of n)for(const t of e)t.dispose();const s=i.length-t;for(;o{this.disposed||(this.view=this.disposable(e),this.view.resize(this.width,this.height),this.element.append(e.element))})),this.finalize_construction(s.prototype)}resize(e,t){return super.resize(e,t),this.view&&this.view.resize(e,t),this}}t.LazyWidget=s},"3AeF":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("x4IQ");t.EditLongDescriptionAction=class extends o.QuestEditAction{constructor(){super(...arguments),this.description="Edit long description"}undo(){this.quest.set_long_description(this.old)}redo(){this.quest.set_long_description(this.new)}}},"3CEK":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i("GGSb")),r=i("Womt"),a=i("4vnR"),d=i("aEXR"),l=i("Tpfs"),_=i("xpi7"),u=i("c5EP"),c=i("oxtq"),p=i("yQqj"),v=s.default.get("quest_editor/rendering/QuestModelManager"),h=new r.Vector3(0,800,700),w=new r.Vector3(0,0,0),f=new r.Object3D;t.QuestModelManager=class{constructor(e){this.renderer=e,this.disposer=new l.Disposer,this.quest_disposer=this.disposer.add(new l.Disposer),this.quest_or_area_changed=()=>o(this,void 0,void 0,(function*(){const e=u.quest_editor_store.current_quest.val,t=u.quest_editor_store.current_area.val;yield this.area_model_manager.load(e,t),e===u.quest_editor_store.current_quest.val&&t===u.quest_editor_store.current_area.val&&(this.quest_disposer.dispose_all(),this.npc_model_manager.remove_all(),this.object_model_manager.remove_all(),this.renderer.reset_entity_models(),e&&t&&(this.npc_model_manager.add(e.npcs.val.filter(e=>e.area_id===t.id)),this.object_model_manager.add(e.objects.val.filter(e=>e.area_id===t.id)),this.quest_disposer.add_all(e.npcs.observe_list(this.npcs_changed),e.objects.observe_list(this.objects_changed))))})),this.npcs_changed=e=>{const t=u.quest_editor_store.current_area.val;e.type===c.ListChangeType.ListChange&&t&&(this.npc_model_manager.remove(e.removed),this.npc_model_manager.add(e.inserted.filter(e=>e.area_id===t.id)))},this.objects_changed=e=>{const t=u.quest_editor_store.current_area.val;e.type===c.ListChangeType.ListChange&&t&&(this.object_model_manager.remove(e.removed),this.object_model_manager.add(e.inserted.filter(e=>e.area_id===t.id)))},this.area_model_manager=new E(this.renderer),this.npc_model_manager=new O(this.renderer),this.object_model_manager=new O(this.renderer),this.disposer.add_all(u.quest_editor_store.current_quest.observe(this.quest_or_area_changed),u.quest_editor_store.current_area.observe(this.quest_or_area_changed))}dispose(){this.disposer.dispose()}};class E{constructor(e){this.renderer=e,this.raycaster=new r.Raycaster,this.origin=new r.Vector3,this.down=new r.Vector3(0,-1,0),this.up=new r.Vector3(0,1,0)}load(e,t){return o(this,void 0,void 0,(function*(){if(this.quest=e,this.area=t,!e||!t)return this.renderer.collision_geometry=f,void(this.renderer.render_geometry=f);try{const i=e.area_variants.val.find(e=>e.area.id===t.id)||t.area_variants[0],o=e.episode,n=yield d.load_area_collision_geometry(o,i);if(this.should_cancel(e,t))return;const s=yield d.load_area_render_geometry(o,i);if(this.should_cancel(e,t))return;this.add_sections_to_collision_geometry(n,s),this.renderer.collision_geometry=n,this.renderer.render_geometry=s,this.renderer.reset_camera(h,w)}catch(i){v.error(`Couldn't load area models for quest ${e.id}, ${t.name}.`,i),this.renderer.collision_geometry=f,this.renderer.render_geometry=f}}))}should_cancel(e,t){return this.quest!==e||this.area!==t}add_sections_to_collision_geometry(e,t){for(const i of e.children){i.geometry.boundingBox.getCenter(this.origin),this.raycaster.set(this.origin,this.down);const e=this.raycaster.intersectObject(t,!0).find(e=>null!=e.object.userData.section);this.raycaster.set(this.origin,this.up);const o=this.raycaster.intersectObject(t,!0).find(e=>null!=e.object.userData.section);let n;if(n=e&&o?e.distance<=o.distance?e:o:e||o){const e=i.userData,t=n.object.userData;e.section=t.section}}}}class O{constructor(e){this.renderer=e,this.queue=[],this.loaded_entities=[],this.loading=!1}add(e){return o(this,void 0,void 0,(function*(){if(this.queue.push(...e),!this.loading)try{for(this.loading=!0;this.queue.length;){const e=this.queue[0];try{yield this.load(e)}catch(t){v.error(`Couldn't load model for entity ${p.entity_type_to_string(e.type)}.`,t)}finally{const t=this.queue.indexOf(e);-1!==t&&this.queue.splice(t,1)}}}finally{this.loading=!1}}))}remove(e){for(const t of e){const e=this.queue.indexOf(t);-1!==e&&this.queue.splice(e,1);const i=this.loaded_entities.findIndex(e=>e.entity===t);if(-1!==i){const e=this.loaded_entities.splice(i,1)[0];this.renderer.remove_entity_model(e.entity),e.disposer.dispose()}}}remove_all(){for(const{disposer:e}of this.loaded_entities)e.dispose();this.loaded_entities.splice(0,1/0),this.queue.splice(0,1/0)}load(e){return o(this,void 0,void 0,(function*(){const t=yield a.load_entity_geometry(e.type),i=yield a.load_entity_textures(e.type),o=_.create_entity_mesh(e,t,i);this.queue.includes(e)&&this.update_entity_geometry(e,o)}))}update_entity_geometry(e,t){this.renderer.add_entity_model(t),this.loaded_entities.push({entity:e,disposer:new l.Disposer(e.world_position.observe(({value:{x:e,y:i,z:o}})=>{t.position.set(e,i,o),this.renderer.schedule_render()}),e.rotation.observe(({value:{x:e,y:i,z:o}})=>{t.rotation.set(e,i,o),this.renderer.schedule_render()}))})}}},"3ONQ":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yQqj"),n=i("yRp4"),s=i("FXpb");let r=void 0;const a=new Map,d=new n.Vec2(0,0);let l=0;function _(e){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"),r&&(r.drag_element.style.transform=`translate(${e.clientX-d.x}px, ${e.clientY-d.y}px)`)}function u(){r&&(r.drag_element.remove(),r=void 0)}t.add_entity_dnd_listener=function(e,t,i){function o(e){r&&i(Object.assign(Object.assign({},r),{event:e}))}a.set(i,o),e.addEventListener(t,o)},t.remove_entity_dnd_listener=function(e,t,i){const o=a.get(i);o&&(a.delete(i),e.removeEventListener(t,o))},t.entity_dnd_source=function(e,t){function i(e){if(e.target instanceof HTMLElement){const i=t(e.target);i?(d.set(e.offsetX,e.offsetY),(r={drag_element:i[0],entity_type:i[1]}).drag_element.style.position="fixed",r.drag_element.style.pointerEvents="none",r.drag_element.style.zIndex="500",r.drag_element.style.top="0",r.drag_element.style.left="0",r.drag_element.style.transform=`translate(${e.clientX-d.x}px, ${e.clientY-d.y}px)`,document.body.append(r.drag_element),e.dataTransfer&&(e.dataTransfer.effectAllowed="copy",e.dataTransfer.setDragImage(s.el.div(),0,0),e.dataTransfer.setData("phantasmal-entity",o.entity_data(r.entity_type).name))):e.preventDefault()}}return e.addEventListener("dragstart",i),1==++l&&(document.addEventListener("dragover",_),document.addEventListener("dragend",u)),{dispose(){e.removeEventListener("dragstart",i),0==--l&&(document.removeEventListener("dragover",_),document.removeEventListener("dragend",u))}}}},"4/Uj":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),s=i("yub1"),r=i("Sa3/"),a=i("NRxM"),d=i("bcBH"),l=i("GGSb").get("viewer/stores/TextureStore");class _{constructor(){this._current_xvm=n.property(void 0),this.current_xvm=this._current_xvm,this.load_file=e=>o(this,void 0,void 0,(function*(){try{const t=yield r.read_file(e);this._current_xvm.val=s.parse_xvm(new a.ArrayBufferCursor(t,d.Endianness.Little))}catch(e){l.error("Couldn't read file.",e)}}))}}t.TextureStore=_,t.texture_store=new _},"469Q":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=i("Ftn7"),s=i("Tpfs"),r=i("iR5r"),a=i("4/Uj"),d=i("GGSb").get("viewer/rendering/TextureRenderer");t.TextureRenderer=class extends n.Renderer{constructor(){super(),this.disposer=new s.Disposer,this.quad_meshes=[],this.camera=new o.OrthographicCamera(-400,400,300,-300,1,10),this.disposer.add_all(a.texture_store.current_xvm.observe(({value:e})=>{this.scene.remove(...this.quad_meshes),e&&this.render_textures(e),this.reset_camera(new o.Vector3(0,0,5),new o.Vector3),this.schedule_render()})),this.init_camera_controls(),this.controls.dollySpeed=-1,this.controls.azimuthRotateSpeed=0,this.controls.polarRotateSpeed=0}set_size(e,t){this.camera.left=-Math.floor(e/2),this.camera.right=Math.ceil(e/2),this.camera.top=Math.floor(t/2),this.camera.bottom=-Math.ceil(t/2),this.camera.updateProjectionMatrix(),super.set_size(e,t)}dispose(){super.dispose(),this.disposer.dispose()}render_textures(e){let t=10*(e.textures.length-1),i=0;for(const o of e.textures)t+=o.width,i=Math.max(i,o.height);let n=-Math.floor(t/2);const s=-Math.floor(i/2);for(const t of e.textures){let e;try{e=r.xvm_texture_to_texture(t)}catch(e){d.warn("Couldn't convert XVM texture.",e)}const a=new o.Mesh(this.create_quad(n,s+Math.floor((i-t.height)/2),t.width,t.height),e?new o.MeshBasicMaterial({map:e,transparent:!0}):new o.MeshBasicMaterial({color:16711935}));this.quad_meshes.push(a),this.scene.add(a),n+=10+t.width}}create_quad(e,t,i,n){const s=new o.PlaneGeometry(i,n,1,1);return s.faceVertexUvs=[[[new o.Vector2(0,0),new o.Vector2(0,1),new o.Vector2(1,0)],[new o.Vector2(0,1),new o.Vector2(1,1),new o.Vector2(1,0)]]],s.translate(e+i/2,t+n/2,-5),s}}},"488w":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=i("tRdk"),s=i("kwt4"),r=i("vM2b"),a=new o.Vector3(0,1,0),d=new o.Vector2(0,0),l=new o.Vector3(0,0,0),_=new o.Quaternion(0,0,0,1),u=new o.Vector3(1,1,1);t.ninja_object_to_geometry_builder=function(e,t){new p(t).to_geometry_builder(e)},t.ninja_object_to_buffer_geometry=function(e){return new p(new r.GeometryBuilder).create_buffer_geometry(e)};class c{constructor(){this.vertices_stack=[]}put(e){this.vertices_stack.push(e)}get(e){const t=[];for(let i=this.vertices_stack.length-1;i>=0;i--){const o=this.vertices_stack[i][e];o&&t.push(o)}return t}}class p{constructor(e){this.vertices=new c,this.bone_id=0,this.builder=e}to_geometry_builder(e){this.object_to_geometry(e,void 0,new o.Matrix4)}create_buffer_geometry(e){return this.to_geometry_builder(e),this.builder.build()}object_to_geometry(e,t,i){const{no_translate:s,no_rotate:r,no_scale:a,hidden:d,break_child_trace:c,zxy_rotation_order:p,skip:v}=e.evaluation_flags,{position:h,rotation:w,scale:f}=e,E=new o.Euler(w.x,w.y,w.z,p?"ZXY":"ZYX"),O=(new o.Matrix4).compose(s?l:n.vec3_to_threejs(h),r?_:(new o.Quaternion).setFromEuler(E),a?u:n.vec3_to_threejs(f)).premultiply(i);let m;if(v?m=t:((m=new o.Bone).name=this.bone_id.toString(),m.position.set(h.x,h.y,h.z),m.setRotationFromEuler(E),m.scale.set(f.x,f.y,f.z),this.builder.add_bone(m),t&&t.add(m)),e.model&&!d&&this.model_to_geometry(e.model,O),this.bone_id++,!c)for(const t of e.children)this.object_to_geometry(t,m,O)}model_to_geometry(e,t){s.is_njcm_model(e)?this.njcm_model_to_geometry(e,t):this.xj_model_to_geometry(e,t)}njcm_model_to_geometry(e,t){const i=(new o.Matrix3).getNormalMatrix(t),s=e.vertices.map(e=>{const s=n.vec3_to_threejs(e.position),r=e.normal?n.vec3_to_threejs(e.normal):new o.Vector3(0,1,0);return s.applyMatrix4(t),r.applyMatrix3(i),{bone_id:this.bone_id,position:s,normal:r,bone_weight:e.bone_weight,bone_weight_status:e.bone_weight_status,calc_continue:e.calc_continue}});this.vertices.put(s);for(const t of e.meshes){const e=this.builder.index_count;for(let e=0;e=2&&(e%2==(t.clockwise_winding?1:0)?(this.builder.add_index(r-2),this.builder.add_index(r-1),this.builder.add_index(r)):(this.builder.add_index(r-2),this.builder.add_index(r),this.builder.add_index(r-1)));const l=[[0,0],[0,0],[0,0],[0,0]];for(let e=o.length-1;e>=0;e--){const t=o[e];l[t.bone_weight_status]=[t.bone_id,t.bone_weight]}for(const[e,t]of l)this.builder.add_bone_weight(e,t)}}this.builder.add_group(e,this.builder.index_count-e,t.texture_id)}}xj_model_to_geometry(e,t){const i=this.builder.vertex_count,s=(new o.Matrix3).getNormalMatrix(t);for(let{position:i,normal:r,uv:a}of e.vertices){const e=n.vec3_to_threejs(i).applyMatrix4(t),l=(r?n.vec3_to_threejs(r):new o.Vector3(0,1,0)).applyMatrix3(s),_=a||d;this.builder.add_vertex(e,l,_)}let r;for(const t of e.meshes){const e=this.builder.index_count;let o=!1;for(let e=2;e=2&&(o=!o),o?(this.builder.add_index(s),this.builder.add_index(n),this.builder.add_index(r)):(this.builder.add_index(n),this.builder.add_index(s),this.builder.add_index(r)),o=!o}null!=t.material_properties.texture_id&&(r=t.material_properties.texture_id),this.builder.add_group(e,this.builder.index_count-e,r)}}}},"49yP":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=i("FXpb"),r=i("4SjJ"),a=i("39ZU"),d=i("nN8q"),l=[[r.GuiTool.Viewer,()=>o(void 0,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("vsj6")))).ViewerView)}))],[r.GuiTool.QuestEditor,()=>o(void 0,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("1vWm")))).QuestEditorView)}))],[r.GuiTool.HuntOptimizer,()=>o(void 0,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("LkpO")))).HuntOptimizerView)}))]];class _ extends d.ResizableWidget{constructor(){super(),this.element=s.el.div({class:"application_MainContentView"}),this.tool_views=new Map(l.map(([e,t])=>[e,this.disposable(new a.LazyWidget(t))])),this.tool_changed=({value:e})=>{for(const e of this.tool_views.values())e.visible.val=!1;const t=this.tool_views.get(e);t&&(t.visible.val=!0)};for(const e of this.tool_views.values())this.element.append(e.element);const e=this.tool_views.get(r.gui_store.tool.val);e&&(e.visible.val=!0),this.disposable(r.gui_store.tool.observe(this.tool_changed)),this.finalize_construction(_.prototype)}resize(e,t){super.resize(e,t);for(const i of this.tool_views.values())i.resize(e,t);return this}}t.MainContentView=_},"4Mnx":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("lPzw"),n=i("bJO5"),s=i("xs7i"),r=i("aEXR"),a=i("SoCI");t.area_store=new class{constructor(){this.areas=[],this.get_areas_for_episode=e=>this.areas[e],this.get_area=(e,t)=>{const i=this.areas[e].find(e=>e.id===t);if(!i)throw new Error(`Area id ${t} for episode ${e} is invalid.`);return i},this.get_variant=(e,t,i)=>{const o=this.get_area(e,t).area_variants[i];if(!o)throw new Error(`Area variant id ${i} for area ${t} of episode ${e} is invalid.`);return o},this.get_area_sections=(e,t)=>r.load_area_sections(e,t);for(const e of s.EPISODES)this.areas[e]=a.get_areas_for_episode(e).map(e=>{const t=new o.AreaModel(e.id,e.name,e.order,[]);for(const i of e.area_variants)t.area_variants.push(new n.AreaVariantModel(i.id,t));return t})}}},"4SjJ":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),n=i("nsCy");var s;!function(e){e[e.Viewer=0]="Viewer",e[e.QuestEditor=1]="QuestEditor",e[e.HuntOptimizer=2]="HuntOptimizer"}(s=t.GuiTool||(t.GuiTool={}));const r=new Map([[s.Viewer,"viewer"],[s.QuestEditor,"quest_editor"],[s.HuntOptimizer,"hunt_optimizer"]]),a=new Map([...r.entries()].map(([e,t])=>[t,e]));t.gui_store=new class{constructor(){this.tool=o.property(s.Viewer),this._server=o.property(n.Server.Ephinea),this.hash_disposer=this.tool.observe(({value:e})=>{window.location.hash=`#/${function(e){const t=r.get(e);if(t)return t;throw new Error(`To string not implemented for ${s[e]}.`)}(e)}`}),this.global_keydown_handlers=new Map,this.dispatch_global_keydown=e=>{const t=[];e.ctrlKey&&t.push("Ctrl"),e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt"),t.push(e.key.toUpperCase());const i=t.join("-"),o=this.global_keydown_handlers.get(this.handler_key(this.tool.val,i));o&&(e.preventDefault(),o(e))};const e=window.location.hash.slice(2);this.tool.val=function(e){return a.get(e)}(e)||s.Viewer,this.server=this._server,window.addEventListener("keydown",this.dispatch_global_keydown)}dispose(){this.hash_disposer.dispose(),this.global_keydown_handlers.clear(),window.removeEventListener("keydown",this.dispatch_global_keydown)}on_global_keydown(e,t,i){const o=this.handler_key(e,t);return this.global_keydown_handlers.set(o,i),{dispose:()=>{this.global_keydown_handlers.delete(o)}}}handler_key(e,t){return`${s[e]} -> ${t}`}}},"4VsB":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("0CzU");t.WidgetProperty=class extends o.SimpleProperty{constructor(e,t,i){super(t),this.widget=e,this.set_value=i}set_val(e,t){this.set_value.call(this.widget,e),super.set_val(e,Object.assign({silent:!0},t))}}},"4mUz":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse_rel=function(e,t){e.seek_end(32);const i=e.u32(),o=e.u32();e.seek(8);const n=e.u32();return e.seek_start(i),{data_offset:n,index:t?function(e,t){const i=e.u16_array(t),o=[];let n=0;for(const t of i){n+=4*t,e.seek_start(n-4);const i=e.u32(),s=e.u32();o.push({offset:s,size:i})}return o}(e,o):[]}}},"4s8/":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ValueSet=class{constructor(){this.intervals=[]}size(){return this.intervals.reduce((e,t)=>e+t.end-t.start+1,0)}get(e){for(const{start:t,end:i}of this.intervals){const o=i-t+1;if(ethis.intervals[o].start;)e.end=this.intervals[o].end,o++;this.intervals.splice(t+1,o-t-1),e.end=Math.max(e.end,i.end),t++;continue e}t++}this.intervals.push(i)}return this}to_array(){let e=[];for(const{start:t,end:i}of this.intervals)for(let o=t;o<=i;o++)e.push(o);return e}[Symbol.iterator](){const e=this;let t=0,i=NaN;return{next(){let o=!0;return te.intervals[t].end?++te(O)),g=[],y=new Promise(e=>e(g)),b=new a.LoadingCache,D=new a.LoadingCache;for(const e of[w.NpcType.Unknown,w.NpcType.Migium,w.NpcType.Hidoom,w.NpcType.DeathGunner,w.NpcType.StRappy,w.NpcType.HalloRappy,w.NpcType.EggRappy,w.NpcType.Migium2,w.NpcType.Hidoom2,w.NpcType.Recon,h.ObjectType.Unknown,h.ObjectType.PlayerSet,h.ObjectType.Particle,h.ObjectType.LightCollision,h.ObjectType.EnvSound,h.ObjectType.FogCollision,h.ObjectType.EventCollision,h.ObjectType.CharaCollision,h.ObjectType.ObjRoomID,h.ObjectType.LensFlare,h.ObjectType.ScriptCollision,h.ObjectType.MapCollision,h.ObjectType.ScriptCollisionA,h.ObjectType.ItemLight,h.ObjectType.RadarCollision,h.ObjectType.FogCollisionSW,h.ObjectType.ImageBoard,h.ObjectType.UnknownItem29,h.ObjectType.UnknownItem30,h.ObjectType.UnknownItem31,h.ObjectType.MenuActivation,h.ObjectType.BoxDetectObject,h.ObjectType.SymbolChatObject,h.ObjectType.TouchPlateObject,h.ObjectType.TargetableObject,h.ObjectType.EffectObject,h.ObjectType.CountDownObject,h.ObjectType.UnknownItem38,h.ObjectType.UnknownItem39,h.ObjectType.UnknownItem40,h.ObjectType.UnknownItem41,h.ObjectType.TelepipeLocation,h.ObjectType.BGMCollision,h.ObjectType.Pioneer2InvisibleTouchplate,h.ObjectType.TempleMapDetect,h.ObjectType.Firework,h.ObjectType.MainRagolTeleporterBattleInNextArea,h.ObjectType.Rainbow,h.ObjectType.FloatingBlueLight,h.ObjectType.PopupTrapNoTech,h.ObjectType.Poison,h.ObjectType.EnemyTypeBoxYellow,h.ObjectType.EnemyTypeBoxBlue,h.ObjectType.EmptyTypeBoxBlue,h.ObjectType.FloatingRocks,h.ObjectType.FloatingSoul,h.ObjectType.Butterfly,h.ObjectType.UnknownItem400,h.ObjectType.CCAAreaTeleporter,h.ObjectType.UnknownItem523,h.ObjectType.WhiteBird,h.ObjectType.OrangeBird,h.ObjectType.UnknownItem529,h.ObjectType.UnknownItem530,h.ObjectType.Seagull,h.ObjectType.UnknownItem576,h.ObjectType.WarpInBarbaRayRoom,h.ObjectType.UnknownItem672,h.ObjectType.InstaWarp,h.ObjectType.LabInvisibleObject,h.ObjectType.UnknownItem700])b.set(e,m),D.set(e,y);function P(e,t){return o(this,void 0,void 0,(function*(){const i=function e(t,i){if(f.is_npc_type(t))switch(t){case w.NpcType.Dubswitch:return`/npcs/${w.NpcType[t]}.${i===T.Geometry?"xj":"xvm"}`;case w.NpcType.Hildebear2:return e(w.NpcType.Hildebear,i);case w.NpcType.Hildeblue2:return e(w.NpcType.Hildeblue,i);case w.NpcType.RagRappy2:return e(w.NpcType.RagRappy,i);case w.NpcType.Monest2:return e(w.NpcType.Monest,i);case w.NpcType.Mothmant2:return e(w.NpcType.Mothmant,i);case w.NpcType.PoisonLily2:return e(w.NpcType.PoisonLily,i);case w.NpcType.NarLily2:return e(w.NpcType.NarLily,i);case w.NpcType.GrassAssassin2:return e(w.NpcType.GrassAssassin,i);case w.NpcType.Dimenian2:return e(w.NpcType.Dimenian,i);case w.NpcType.LaDimenian2:return e(w.NpcType.LaDimenian,i);case w.NpcType.SoDimenian2:return e(w.NpcType.SoDimenian,i);case w.NpcType.DarkBelra2:return e(w.NpcType.DarkBelra,i);case w.NpcType.SavageWolf2:return e(w.NpcType.SavageWolf,i);case w.NpcType.BarbarousWolf2:return e(w.NpcType.BarbarousWolf,i);case w.NpcType.PanArms2:return e(w.NpcType.PanArms,i);case w.NpcType.Dubchic2:return e(w.NpcType.Dubchic,i);case w.NpcType.Gilchic2:return e(w.NpcType.Gilchic,i);case w.NpcType.Garanz2:return e(w.NpcType.Garanz,i);case w.NpcType.Dubswitch2:return e(w.NpcType.Dubswitch,i);case w.NpcType.Delsaber2:return e(w.NpcType.Delsaber,i);case w.NpcType.ChaosSorcerer2:return e(w.NpcType.ChaosSorcerer,i);default:return`/npcs/${w.NpcType[t]}.${i===T.Geometry?"nj":"xvm"}`}else{if(i!==T.Geometry)return`/objects/${h.object_data(t).pso_id}.xvm`;switch(t){case h.ObjectType.EasterEgg:case h.ObjectType.ChristmasTree:case h.ObjectType.ChristmasWreath:case h.ObjectType.TwentyFirstCentury:case h.ObjectType.Sonic:case h.ObjectType.WelcomeBoard:case h.ObjectType.FloatingJellyfish:case h.ObjectType.RuinsSeal:case h.ObjectType.Dolphin:case h.ObjectType.Cacti:case h.ObjectType.BigBrownRock:case h.ObjectType.PoisonPlant:case h.ObjectType.BigBlackRocks:case h.ObjectType.FallingRock:case h.ObjectType.DesertFixedTypeBoxBreakableCrystals:case h.ObjectType.BeeHive:return`/objects/${h.object_data(t).pso_id}.nj`;default:return`/objects/${h.object_data(t).pso_id}.xj`}}}(e,t);return{url:i,data:yield v.load_array_buffer(i)}}))}var T;t.load_entity_geometry=function(e){return o(this,void 0,void 0,(function*(){return b.get_or_set(e,()=>o(this,void 0,void 0,(function*(){try{const{url:t,data:i}=yield P(e,T.Geometry),o=new l.ArrayBufferCursor(i,d.Endianness.Little),n=t.endsWith(".nj")?u.parse_nj(o):u.parse_xj(o);return n.length?_.ninja_object_to_buffer_geometry(n[0]):(E.warn(`Couldn't parse ${t} for ${f.entity_type_to_string(e)}.`),O)}catch(t){return E.warn(`Couldn't load geometry file for ${f.entity_type_to_string(e)}.`,t),O}})))}))},t.load_entity_textures=function(e){return o(this,void 0,void 0,(function*(){return D.get_or_set(e,()=>o(this,void 0,void 0,(function*(){try{const{data:t}=yield P(e,T.Texture),i=new l.ArrayBufferCursor(t,d.Endianness.Little),o=c.parse_xvm(i);return p.xvm_to_textures(o)}catch(t){return E.warn(`Couldn't load texture file for ${f.entity_type_to_string(e)}.`,t),g}})))}))},t.load_entity_data=P,function(e){e[e.Geometry=0]="Geometry",e[e.Texture=1]="Texture"}(T||(T={}))},"52VV":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("+LO4"),n=i("nEgy");class s extends o.AbstractMinimalProperty{constructor(e,t){super(),this.dependency=e,this.f=t}get val(){return this.get_val()}get_val(){return this.computed_property?this.computed_property.val:this.f(this.dependency.val).val}observe(e){const t=super.observe(e);return null==this.dependency_disposable&&(this.dependency_disposable=this.dependency.observe(()=>{const e=this.val;this.compute_and_observe(),this.emit(e)}),this.compute_and_observe()),this.emit(this.get_val()),{dispose:()=>{t.dispose(),0===this.observers.length&&(this.dependency_disposable.dispose(),this.dependency_disposable=void 0,this.computed_disposable.dispose(),this.computed_disposable=void 0,this.computed_property=void 0)}}}map(e){return new n.DependentProperty([this],()=>e(this.val))}flat_map(e){return new s(this,t=>e(t))}compute_and_observe(){this.computed_disposable&&this.computed_disposable.dispose(),this.computed_property=this.f(this.dependency.val);let e=this.computed_property.val;this.computed_disposable=this.computed_property.observe(()=>{const t=e;e=this.val,this.emit(t)})}}t.FlatMappedProperty=s},"5aKR":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid"),n=i("FXpb"),s=i("7ZX1");i("+BDF");class r extends o.Widget{constructor(e){super(),this.element=n.el.div({class:"quest_editor_DisabledView"}),this.label=this.disposable(new s.Label(e,{enabled:!1})),this.element.append(this.label.element),this.finalize_construction(r.prototype)}}t.DisabledView=r},"6WXA":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("4SjJ"),s=i("LvDl"),r=i("M/y3");t.ServerMap=class{constructor(e){this.get_value=s.memoize(e)}get current(){return this._current||(this._current=n.gui_store.server.map(e=>this.get(e))),this._current}get(e){return this.get_value(e)}observe_current(e,t){const i=r.sequential(({value:t})=>o(this,void 0,void 0,(function*(){return e(yield t)})));return this.current.observe(i,t)}}},"6cU9":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb");i("+Mcu"),i("Tp1L");const n=i("ouMO"),s=i("QmPX");class r extends s.Control{constructor(e,t){super(t),this.element=o.create_element("label",{class:"core_FileButton core_Button"}),this.input=o.create_element("input",{class:"core_FileButton_input core_Button_inner"}),this._files=n.property([]),this.files=this._files,this.input.type="file",this.input.onchange=()=>{this.input.files&&this.input.files.length?this._files.val=[...this.input.files]:this._files.val=[]},t&&t.accept&&(this.input.accept=t.accept);const i=o.el.span({class:"core_FileButton_inner core_Button_inner"});t&&null!=t.icon_left&&i.append(o.el.span({class:"core_FileButton_left core_Button_left"},o.icon(t.icon_left))),i.append(o.el.span({class:"core_Button_center",text:e})),this.element.append(i,this.input),this.disposables(this.enabled.observe(({value:e})=>{this.input.disabled=!e,e?this.element.classList.remove("disabled"):this.element.classList.add("disabled")})),this.finalize_construction(r.prototype)}click(){this.input.click()}}t.FileButton=r},"70mo":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),n=i("Ts/k"),s=i("n5fr"),r=i("GGSb").get("core/undo/UndoStack");t.UndoStack=class{constructor(){this.stack=o.list_property(),this.index=o.property(0),this.can_undo=this.index.map(e=>e>0),this.can_redo=o.map((e,t)=>te?this.stack.get(this.index.val-1):void 0),this.first_redo=this.can_redo.map(e=>e?this.stack.get(this.index.val):void 0),this.undoing_or_redoing=!1}make_current(){s.undo_manager.current.val=this}ensure_not_current(){s.undo_manager.current.val===this&&(s.undo_manager.current.val=n.NOOP_UNDO)}push(e){return this.undoing_or_redoing||(this.stack.splice(this.index.val,1/0,e),this.index.update(e=>e+1)),e}pop(){return this.index.update(e=>e-1),this.stack.splice(this.index.val,1)[0]}undo(){if(this.can_undo.val&&!this.undoing_or_redoing){try{this.undoing_or_redoing=!0,this.index.update(e=>e-1),this.stack.get(this.index.val).undo()}catch(e){r.warn("Error while undoing action.",e)}finally{this.undoing_or_redoing=!1}return!0}return!1}redo(){if(this.can_redo.val&&!this.undoing_or_redoing){try{this.undoing_or_redoing=!0,this.stack.get(this.index.val).redo(),this.index.update(e=>e+1)}catch(e){r.warn("Error while redoing action.",e)}finally{this.undoing_or_redoing=!1}return!0}return!1}reset(){this.stack.clear(),this.index.val=0}}},"7CyS":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=i("VwSi");t.PSO_FRAME_RATE=30,t.create_animation_clip=function(e,i){const s=i.interpolation===n.NjInterpolation.Spline?o.InterpolateSmooth:o.InterpolateLinear,r=[];return i.motion_data.forEach((i,a)=>{const d=e.get_bone(a);d&&i.tracks.forEach(({type:e,keyframes:i})=>{const l=[],_=[];for(const s of i)if(l.push(s.frame/t.PSO_FRAME_RATE),e===n.NjKeyframeTrackType.Rotation){const e=d.evaluation_flags.zxy_rotation_order?"ZXY":"ZYX",t=(new o.Quaternion).setFromEuler(new o.Euler(s.value.x,s.value.y,s.value.z,e));_.push(t.x,t.y,t.z,t.w)}else _.push(s.value.x,s.value.y,s.value.z);if(e===n.NjKeyframeTrackType.Rotation)r.push(new o.QuaternionKeyframeTrack(`.bones[${a}].quaternion`,l,_,s));else{const t=e===n.NjKeyframeTrackType.Position?`.bones[${a}].position`:`.bones[${a}].scale`;r.push(new o.VectorKeyframeTrack(t,l,_,s))}})}),new o.AnimationClip("Animation",(i.frame_count-1)/t.PSO_FRAME_RATE,r).optimize()}},"7ZX1":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid"),n=i("FXpb");i("ku4b");const s=i("4VsB");class r extends o.Widget{constructor(e,t){super(t),this.element=n.create_element("label",{class:"core_Label"}),this._text=new s.WidgetProperty(this,"",this.set_text),this.text=this._text,"string"==typeof e?this.set_text(e):this.disposable(this._text.bind_to(e)),this.finalize_construction(r.prototype)}set for(e){this.element.htmlFor=e}set_text(e){this.element.textContent=e}}t.Label=r},"8hIv":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=new DataView(new ArrayBuffer(4));t.reinterpret_i32_as_f32=function(e){return o.setInt32(0,e),o.getFloat32(0)},t.reinterpret_f32_as_i32=function(e){return o.setFloat32(0,e),o.getInt32(0)}},"9Onn":function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("yRp4"),r=n.default.get("data_formats/parsing/ninja/njcm");var a;function d(e,t,i){const o=[];let n=!0;for(;n;){const s=e.u8(),u=e.u8(),c=e.position;let p=0;if(0===s)o.push({type:a.Null,type_id:s});else if(1<=s&&s<=3)o.push({type:a.Bits,type_id:s});else if(4===s){const i=u,r=e.position;o.push({type:a.CachePolygonList,type_id:s,cache_index:i,offset:r}),t[i]=r,n=!1}else if(5===s){const n=u,r=t[n];null!=r&&(e.seek_start(r),o.push(...d(e,t,i))),o.push({type:a.DrawPolygonList,type_id:s,cache_index:n})}else if(8<=s&&s<=9){p=2;const t=e.u16();o.push({type:a.Tiny,type_id:s,flip_u:0!=(128&s),flip_v:0!=(64&s),clamp_u:0!=(32&s),clamp_v:0!=(16&s),mipmap_d_adjust:15&s,filter_mode:t>>>14,super_sample:0!=(64&t),texture_id:8191&t})}else 17<=s&&s<=31?(p=2+2*e.u16(),o.push({type:a.Material,type_id:s})):32<=s&&s<=50?(p=2+4*e.u16(),o.push({type:a.Vertex,type_id:s,vertices:l(e,s,u)})):56<=s&&s<=58?(p=2+2*e.u16(),o.push({type:a.Volume,type_id:s})):64<=s&&s<=75?(p=2+2*e.u16(),o.push({type:a.Strip,type_id:s,triangle_strips:_(e,s,u)})):255===s?(p=i?2:0,o.push({type:a.End,type_id:s}),n=!1):(p=2+2*e.u16(),o.push({type:a.Unknown,type_id:s}),r.warn(`Unknown chunk type ${s} at offset ${c}.`));e.seek_start(c+p)}return o}function l(e,t,i){if(t<32||t>50)return r.warn(`Unknown vertex chunk type ${t}.`),[];const o=3&i,n=0!=(128&i),a=e.u16(),d=e.u16(),l=[];for(let i=0;i=42&&(44===t?(r.index=a+e.u16(),r.bone_weight=e.u16()/255):e.seek(4));else if(48<=t&&t<=50){const i=e.u32();r.normal=new s.Vec3((i>>20&1023)/1023,(i>>10&1023)/1023,(1023&i)/1023),t>=49&&e.seek(4)}l.push(r)}return l}function _(e,t,i){const o={ignore_light:0!=(1&i),ignore_specular:0!=(2&i),ignore_ambient:0!=(4&i),use_alpha:0!=(8&i),double_side:0!=(16&i),flat_shading:0!=(32&i),environment_mapping:0!=(64&i)},n=e.u16(),r=n>>>14,a=16383&n;let d=!1,l=!1,_=!1,u=!1;switch(t){case 64:break;case 65:case 66:d=!0;break;case 67:_=!0;break;case 68:case 69:d=!0,_=!0;break;case 70:l=!0;break;case 71:case 72:d=!0,l=!0;break;case 73:break;case 74:case 75:u=!0;break;default:throw new Error(`Unexpected chunk type ID: ${t}.`)}const c=[];for(let t=0;t=2&&e.seek(2*r)}c.push(Object.assign(Object.assign({},o),{clockwise_winding:i,has_tex_coords:d,has_normal:_,vertices:a}))}return c}!function(e){e[e.Unknown=0]="Unknown",e[e.Null=1]="Null",e[e.Bits=2]="Bits",e[e.CachePolygonList=3]="CachePolygonList",e[e.DrawPolygonList=4]="DrawPolygonList",e[e.Tiny=5]="Tiny",e[e.Material=6]="Material",e[e.Vertex=7]="Vertex",e[e.Volume=8]="Volume",e[e.Strip=9]="Strip",e[e.End=10]="End"}(a||(a={})),t.parse_njcm_model=function(e,t){const i=e.u32(),o=e.u32(),n=e.vec3_f32(),s=e.f32(),r=[],l=[];if(i){e.seek_start(i);for(const i of d(e,t,!0))if(i.type===a.Vertex)for(const e of i.vertices)r[e.index]={position:e.position,normal:e.normal,bone_weight:e.bone_weight,bone_weight_status:e.bone_weight_status,calc_continue:e.calc_continue}}if(o){let i;e.seek_start(o);for(const o of d(e,t,!1))if(o.type===a.Tiny)i=o.texture_id;else if(o.type===a.Strip){for(const e of o.triangle_strips)e.texture_id=i;l.push(...o.triangle_strips)}}return{type:"njcm",vertices:r,meshes:l,collision_sphere_center:n,collision_sphere_radius:s}}},"9Ykw":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse_iff=function(e){const t=[];for(;e.bytes_left;){const i=e.u32(),o=e.u32();if(o>e.bytes_left)break;t.push({type:i,data:e.take(o)})}return t}},"9dYx":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("GuD3");t.AbstractWritableCursor=class extends o.AbstractCursor{write_u8(e){return this.ensure_size(1),this.dv.setUint8(this._position++,e),this}write_u16(e){return this.ensure_size(2),this.dv.setUint16(this.position,e,this.little_endian),this._position+=2,this}write_u32(e){return this.ensure_size(4),this.dv.setUint32(this.position,e,this.little_endian),this._position+=4,this}write_i8(e){return this.ensure_size(1),this.dv.setInt8(this.position,e),this._position+=1,this}write_i16(e){return this.ensure_size(2),this.dv.setInt16(this.position,e,this.little_endian),this._position+=2,this}write_i32(e){return this.ensure_size(4),this.dv.setInt32(this.position,e,this.little_endian),this._position+=4,this}write_f32(e){return this.ensure_size(4),this.dv.setFloat32(this.position,e,this.little_endian),this._position+=4,this}write_u8_array(e){return this.ensure_size(e.length),new Uint8Array(this.backing_buffer,this.offset+this.position).set(new Uint8Array(e)),this._position+=e.length,this}write_u16_array(e){this.ensure_size(2*e.length);const t=e.length;for(let i=0;ithis.bytes_left)throw new Error(`${e} Bytes required but only ${this.bytes_left} available.`)}}},"9fJw":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CharacterClassModel=class{constructor(e,t,i,o){this.name=e,this.head_style_count=t,this.hair_styles_count=i,this.hair_styles_with_accessory=o}}},"AF+w":function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("bcBH"),r=i("NRxM"),a=i("/Wax"),d=i("tjEv"),l=n.default.get("core/data_formats/parsing/quest/qst");function _(e,t,i,o){e.write_u8_array([28,4,19,0]),e.write_u8(i),e.write_u8_array([0,0,0]),e.write_string_ascii(o,16);const n=Math.min(1024,t.bytes_left);e.write_cursor(t.take(n));for(let t=n;t<1024;++t)e.write_u8(0);return e.write_u32(n),e.write_u32(0),t.bytes_left>0}t.parse_qst=function(e){let t="PC";const i=e.u8();e.seek(1);const o=e.u8();if(68===i?t="Dreamcast/GameCube":88===i?68===o&&(t="Blue Burst"):166===i&&(t="Dreamcast download"),"Blue Burst"===t){e.seek_start(0);const i=function(e){const t=[];let i,o;for(let n=0;n<4;++n){e.seek(4);const n=e.u16();e.seek(38);const s=e.string_ascii(16,!0,!0),r=e.u32(),a=e.string_ascii(24,!0,!0);if(null!=i&&null!=o&&(n!==i||s.slice(0,5)!==o.slice(0,5))){e.seek(-88);break}i=n,o=s,t.push({quest_id:n,file_name:s,file_name_2:a,size:r})}return t}(e),o=function(e,t){const i=new Map;for(;e.bytes_left>=1056;){const o=e.position,n=e.seek(4).u8(),r=e.seek(3).string_ascii(16,!0,!0);let _=i.get(r);if(!_){const e=t.get(r);i.set(r,_={name:r,expected_size:e,cursor:new a.ResizableBufferCursor(new d.ResizableBuffer(e||10240),s.Endianness.Little),chunk_nos:new Set})}_.chunk_nos.has(n)?l.warn(`File chunk number ${n} of file ${r} was already encountered, overwriting previous chunk.`):_.chunk_nos.add(n);let u=e.seek(1024).u32();e.seek(-1028),u>1024&&(l.warn(`Data segment size of ${u} is larger than expected maximum size, reading just 1024 bytes.`),u=1024);const c=e.take(u),p=1024*n;if(_.cursor.size=Math.max(p+u,_.cursor.size),_.cursor.seek_start(p).write_cursor(c),e.seek(1032-c.size),e.position!==o+1056)throw new Error(`Read ${e.position-o} file chunk message bytes instead of expected 1056.`)}e.bytes_left&&l.warn(`${e.bytes_left} Bytes left in file.`);for(const e of i.values()){e.cursor.seek_start(0),e.chunk_nos=new Set(Array.from(e.chunk_nos.values()).sort((e,t)=>e-t)),null!=e.expected_size&&e.cursor.size!==e.expected_size&&l.warn(`File ${e.name} has an actual size of ${e.cursor.size} instead of the expected size ${e.expected_size}.`);const t=Math.max(e.cursor.size,e.expected_size||0);for(let i=0;i[e.file_name,e.size])));for(const e of o){const t=i.find(t=>t.file_name===e.name);t&&(e.id=t.quest_id,e.name_2=t.file_name_2)}return{version:t,files:o}}l.error(`Can't parse ${t} QST files.`)},t.write_qst=function(e){const t=e.files,i=t.map(e=>88+1056*Math.ceil(e.data.byteLength/1024)).reduce((e,t)=>e+t),o=new ArrayBuffer(i),n=new r.ArrayBufferCursor(o,s.Endianness.Little);if(function(e,t){for(const i of t){if(i.name.length>15)throw new Error(`File ${i.name} has a name longer than 15 characters.`);e.write_u16(88),e.write_u16(68),e.write_u16(i.id||0);for(let t=0;t<38;++t)e.write_u8(0);let t;if(e.write_string_ascii(i.name,16),e.write_u32(i.data.byteLength),null==i.name_2){const e=i.name.lastIndexOf(".");t=-1===e?i.name+"_j":i.name.slice(0,e)+"_j"+i.name.slice(e)}else t=i.name_2;if(t.length>24)throw Error(`File ${i.name} has a file_name_2 length (${t}) longer than 24 characters.`);e.write_string_ascii(t,24)}}(n,t),function(e,t){const i=t.map(e=>({no:0,data:new r.ArrayBufferCursor(e.data,s.Endianness.Little),name:e.name}));let o=0;for(;oe.value);break;case o.Opcode.CALL:case o.Opcode.VA_CALL:_=n.Call,u=[l.args[0].value];break;case o.Opcode.SWITCH_CALL:_=n.Call,u=l.args.slice(1).map(e=>e.value);break;default:if(d===i-1){_=n.None,u=[];break}continue}const c=new s(t,r,d+1,_,u);for(let t=c.start;t{const e=s.quest_editor_store.current_quest.val,t=s.quest_editor_store.current_area.val,i=e?e.episode:r.Episode.I,o=t?t.id:0;this.entities.val=n.NPC_TYPES.filter(e=>{const t=n.npc_data(e);return(null==t.episode||t.episode===i)&&t.area_ids.includes(o)})},this.disposables(s.quest_editor_store.current_quest.observe(this.filter_npcs),s.quest_editor_store.current_area.observe(this.filter_npcs)),this.filter_npcs(),this.finalize_construction(a.prototype)}}t.NpcListView=a},CUby:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("ZPAt"),r=i("4s8/"),a=n.default.get("quest_editor/scripting/data_flow_analysis/register_value");t.MIN_REGISTER_VALUE=s.MIN_SIGNED_DWORD_VALUE,t.MAX_REGISTER_VALUE=s.MAX_SIGNED_DWORD_VALUE,t.REGISTER_VALUES=Math.pow(2,32),t.register_value=function(e,i,o){const n=e.get_block_for_instruction(i);return n?function e(i,o,n,d,l){if(++i.iterations>100)return a.warn("Too many iterations."),(new r.ValueSet).set_interval(t.MIN_REGISTER_VALUE,t.MAX_REGISTER_VALUE);for(let a=d-1;a>=n.start;a--){const d=n.segment.instructions[a],_=d.args;switch(d.opcode){case s.Opcode.LET:if(_[0].value===l)return e(i,new Set(o),n,a,_[1].value);break;case s.Opcode.LETI:case s.Opcode.LETB:case s.Opcode.LETW:case s.Opcode.SYNC_LETI:if(_[0].value===l)return(new r.ValueSet).set_value(_[1].value);break;case s.Opcode.SET:if(_[0].value===l)return(new r.ValueSet).set_value(1);break;case s.Opcode.CLEAR:if(_[0].value===l)return(new r.ValueSet).set_value(0);break;case s.Opcode.REV:if(_[0].value===l){const t=e(i,new Set(o),n,a,l),s=t.size();return 0===s||1===s&&0===t.get(0)?(new r.ValueSet).set_value(1):t.has(0)?(new r.ValueSet).set_interval(0,1):(new r.ValueSet).set_value(0)}break;case s.Opcode.ADDI:if(_[0].value===l){return e(i,new Set(o),n,a,l).scalar_add(_[1].value)}break;case s.Opcode.SUBI:if(_[0].value===l){return e(i,new Set(o),n,a,l).scalar_sub(_[1].value)}break;case s.Opcode.MULI:if(_[0].value===l){return e(i,new Set(o),n,a,l).scalar_mul(_[1].value)}break;case s.Opcode.DIVI:if(_[0].value===l){return e(i,new Set(o),n,a,l).scalar_div(_[1].value)}break;case s.Opcode.IF_ZONE_CLEAR:if(_[0].value===l)return(new r.ValueSet).set_interval(0,1);break;case s.Opcode.GET_DIFFLVL:if(_[0].value===l)return(new r.ValueSet).set_interval(0,2);break;case s.Opcode.GET_SLOTNUMBER:if(_[0].value===l)return(new r.ValueSet).set_interval(0,3);break;case s.Opcode.GET_RANDOM:if(_[1].value===l){const t=e(i,new Set(o),n,a,_[0].value).min()||0,s=Math.max(e(i,new Set(o),n,a,_[0].value+1).max()||0,t+1);return(new r.ValueSet).set_interval(t,s-1)}break;case s.Opcode.STACK_PUSHM:case s.Opcode.STACK_POPM:{const e=_[0].value,i=_[0].value+_[1].value;if(e<=l&&l{}),this.editor.addCommand(s.KeyMod.CtrlCmd|s.KeyMod.Shift|s.KeyCode.KEY_Z,()=>{}),this.disposables(r.asm_editor_store.did_undo.observe(({value:e})=>{this.editor.trigger(e,"undo",void 0)}),r.asm_editor_store.did_redo.observe(({value:e})=>{this.editor.trigger(e,"redo",void 0)}),r.asm_editor_store.model.observe(({value:e})=>{this.editor.updateOptions({readOnly:null==e}),this.editor.setModel(e||d)},{call_now:!0}),this.editor.onDidFocusEditorWidget(()=>r.asm_editor_store.undo.make_current())),this.finalize_construction(l.prototype)}focus(){this.editor.focus()}resize(e,t){const i=Math.max(0,t-this.tool_bar_view.height);return this.editor.layout({width:e,height:i}),this}}t.AsmEditorView=l},DixV:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("bcBH"),r=i("AU7j"),a=i("CUby"),d=i("JQxC"),l=i("lg9k"),_=i("ZPAt"),u=i("NRxM"),c=i("/Wax"),p=i("tjEv"),v=n.default.get("data_formats/parsing/quest/bin");class h{constructor(e,t,i,o,n,s,r){this.quest_id=e,this.language=t,this.quest_name=i,this.short_description=o,this.long_description=n,this.object_code=s,this.shop_items=r}}t.BinFile=h;const w=[];w[l.SegmentType.Instructions]=2,w[l.SegmentType.String]=1,w[l.SegmentType.Data]=0,t.parse_bin=function(e,t=[0],i=!1){const o=e.u32(),n=e.u32(),s=e.u32();e.seek(4);const d=e.u32(),u=e.u32(),c=e.string_utf16(64,!0,!0),p=e.string_utf16(256,!0,!0),w=e.string_utf16(576,!0,!0);s!==e.size&&v.warn(`Value ${s} in bin size field does not match actual size ${e.size}.`),e.seek(4);const g=e.u32_array(932),y=Math.floor((e.size-n)/4);e.seek_start(n);const b=e.i32_array(y),D=new f(b),P=function(e,t,i,o){const n=new Map;!function(e,t,i,o,n){let s;do{s=o.size;for(const[s,r]of i)O(o,t,e,s,r,n);const d=[...o.entries()].filter(([,e])=>e.type===l.SegmentType.Instructions).sort(([e],[t])=>e-t).map(([,e])=>e),u=r.ControlFlowGraph.create(d);i=new Map;for(const e of d)for(const t of e.instructions)for(let e=0;es)}(e,t,i.reduce((e,t)=>e.set(t,l.SegmentType.Instructions),new Map),n,o);const s=[];let d=0;for(;dd){s=e.offset;break}}if(e.seek_start(d),m(n,e,s,o||[]),i=n.get(d),s<=d){v.error(`Next offset ${s} was smaller than or equal to current offset ${d}.`);break}if(!i){v.error(`Couldn't create segment for offset ${d}.`);continue}}switch(s.push(i),i.type){case l.SegmentType.Instructions:for(const e of i.instructions)d+=e.size;break;case l.SegmentType.Data:d+=i.data.byteLength;break;case l.SegmentType.String:d+=4*Math.ceil((i.value.length+1)/2);break;default:throw new Error(`${l.SegmentType[i.type]} not implemented.`)}}for(const{label:e,offset:i}of t.labels){const t=n.get(i);t?t.labels.includes(e)||(t.labels.push(e),t.labels.sort((e,t)=>e-t)):v.warn(`Label ${e} with offset ${i} does not point to anything.`)}if(e.size!==d){const t=`Expected to parse ${e.size} bytes but parsed ${d} instead.`;if(!o)throw new Error(t);v.error(t)}return s}(e.seek_start(o).take(n-o),D,t,i);return new h(d,u,c,p,w,P,g)},t.write_bin=function(e){const t=new p.ResizableBuffer(4652+100*e.object_code.length),i=new c.ResizableBufferCursor(t,s.Endianness.Little);if(i.write_u32(4652),i.write_u32(0),i.write_u32(0),i.write_u32(4294967295),i.write_u32(e.quest_id),i.write_u32(e.language),i.write_string_utf16(e.quest_name,64),i.write_string_utf16(e.short_description,256),i.write_string_utf16(e.long_description,576),i.write_u32(0),e.shop_items.length>932)throw new Error(`shop_items can't be larger than 932, was ${e.shop_items.length}.`);i.write_u32_array(e.shop_items);for(let t=e.shop_items.length;t<932;t++)i.write_u32(0);for(;i.position<4652;)i.write_u8(0);const{size:o,label_offsets:n}=function(e,t){const i=e.position,o=[];for(const n of t){for(const t of n.labels)o[t]=e.position-i;if(n.type===l.SegmentType.Instructions)for(const t of n.instructions){const i=t.opcode;if(2===i.size&&e.write_u8(i.code>>>8),e.write_u8(255&i.code),i.stack!==_.StackInteraction.Pop)for(let o=0;o=0?e.write_u8(r.value):e.write_i8(r.value);break;case _.Kind.Word:r.value>=0?e.write_u16(r.value):e.write_i16(r.value);break;case _.Kind.DWord:r.value>=0?e.write_u32(r.value):e.write_i32(r.value);break;case _.Kind.Float:e.write_f32(r.value);break;case _.Kind.Label:case _.Kind.ILabel:case _.Kind.DLabel:case _.Kind.SLabel:e.write_u16(r.value);break;case _.Kind.String:e.write_string_utf16(r.value,r.size);break;case _.Kind.ILabelVar:e.write_u8(s.length),e.write_u16_array(s.map(e=>e.value));break;case _.Kind.RegRef:case _.Kind.RegTupRef:e.write_u8(r.value);break;case _.Kind.RegRefVar:e.write_u8(s.length),e.write_u8_array(s.map(e=>e.value));break;default:throw new Error(`Parameter type ${_.Kind[n.type.kind]} not implemented.`)}}}else if(n.type===l.SegmentType.String){const t=4*Math.ceil((n.value.length+1)/2);e.write_string_utf16(n.value,t)}else e.write_cursor(new u.ArrayBufferCursor(n.data,e.endianness))}return{size:e.position-i,label_offsets:o}}(i,e.object_code);for(let e=0;ee.offset-t.offset||e.label-t.label);for(let e=0;et.offset);e++)i=void 0;return{offset:t.offset,next:i}}}function E(e,t,i,o,n){if(i.opcode.stack===_.StackInteraction.Pop){const s=d.stack_value(e,i,i.opcode.params.length-o-1);if(s.size()<=10)for(const e of s){const i=t.get(e);(null==i||w[n]>w[i])&&t.set(e,n)}}else{const e=i.args[o].value,s=t.get(e);(null==s||w[n]>w[s])&&t.set(e,n)}}function O(e,t,i,o,n,s){try{const r=t.get_info(o);if(null==r)return void v.warn(`Label ${o} is not registered in the label table.`);let a,d=e.get(r.offset);if(d){if(d.labels.includes(o)||(d.labels.push(o),d.labels.sort((e,t)=>e-t)),!(w[n]>w[d.type]))return;a=d.labels}else a=[o];const u=r.next?r.next.offset:i.size;switch(i.seek_start(r.offset),n){case l.SegmentType.Instructions:!function(e,t,i,o,n,s,r){const a=[],d={type:l.SegmentType.Instructions,labels:n,instructions:a};e.set(i.position,d);for(;i.position=0;e--){const t=a[e].opcode;if(t===_.Opcode.RET||t===_.Opcode.JMP){o=!1;break}}o&&O(e,t,i,s,l.SegmentType.Instructions,r)}}(e,t,i,u,a,r.next&&r.next.label,s);break;case l.SegmentType.Data:m(e,i,u,a);break;case l.SegmentType.String:!function(e,t,i,o){const n=t.position,s={type:l.SegmentType.String,labels:o,value:t.string_utf16(i-n,!0,!0)};e.set(n,s)}(e,i,u,a);break;default:throw new Error(`Segment type ${l.SegmentType[n]} not implemented.`)}}catch(e){if(!s)throw e;v.error("Couldn't fully parse object code segment.",e)}}function m(e,t,i,o){const n=t.position,s={type:l.SegmentType.Data,labels:o,data:t.array_buffer(i-n)};e.set(n,s)}function g(e,t){const i=[];if(t.stack!==_.StackInteraction.Pop)for(const o of t.params)switch(o.type.kind){case _.Kind.Byte:i.push({value:e.u8(),size:1});break;case _.Kind.Word:i.push({value:e.u16(),size:2});break;case _.Kind.DWord:i.push({value:e.i32(),size:4});break;case _.Kind.Float:i.push({value:e.f32(),size:4});break;case _.Kind.Label:case _.Kind.ILabel:case _.Kind.DLabel:case _.Kind.SLabel:i.push({value:e.u16(),size:2});break;case _.Kind.String:{const t=e.position;i.push({value:e.string_utf16(Math.min(4096,e.bytes_left),!0,!1),size:e.position-t})}break;case _.Kind.ILabelVar:{const t=e.u8();i.push(...e.u16_array(t).map(e=>({value:e,size:2})))}break;case _.Kind.RegRef:case _.Kind.RegTupRef:i.push({value:e.u8(),size:1});break;case _.Kind.RegRefVar:{const t=e.u8();i.push(...e.u8_array(t).map(e=>({value:e,size:1})))}break;default:throw new Error(`Parameter type ${_.Kind[o.type.kind]} not implemented.`)}return i}},DuVK:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("LvDl"),r=i("bcBH"),a=i("/Wax"),d=i("tjEv"),l=i("yRp4"),_=n.default.get("data_formats/parsing/quest/dat"),u=68,c=72;t.parse_dat=function(e){const t=[],i=[],o=[];for(;e.bytes_left;){const n=e.u32(),s=e.u32(),r=e.u32(),a=e.u32();if(0===n)break;if(a!==s-16)throw Error(`Malformed DAT file. Expected an entities size of ${s-16}, got ${a}.`);if(1===n){const i=Math.floor(a/u),o=e.position;for(let o=0;oe+t.total_size,0)),n=new a.ResizableBufferCursor(o,r.Endianness.Little),l=s.groupBy(e,e=>e.area_id),_=Object.keys(l).map(e=>parseInt(e,10)).sort((e,t)=>e-t);for(const e of _){const t=l[e],i=t.length*u;n.write_u32(1),n.write_u32(i+16),n.write_u32(e),n.write_u32(i);for(const e of t){if(2!==e.unknown.length)throw new Error(`unknown should be of length 2, was ${e.unknown.length}`);if(n.write_u16(e.type_id),6!==e.unknown[0].length)throw new Error(`unknown[0] should be of length 6, was ${e.unknown[0].length}`);if(n.write_u8_array(e.unknown[0]),n.write_u16(e.id),n.write_u16(e.group_id),n.write_u16(e.section_id),2!==e.unknown[1].length)throw new Error(`unknown[1] should be of length 2, was ${e.unknown[1].length}`);if(n.write_u8_array(e.unknown[1]),n.write_vec3_f32(e.position),n.write_i32(Math.round(e.rotation.x/(2*Math.PI)*65535)),n.write_i32(Math.round(e.rotation.y/(2*Math.PI)*65535)),n.write_i32(Math.round(e.rotation.z/(2*Math.PI)*65535)),7!==e.properties.length)throw new Error(`properties should be of length 7, was ${e.properties.length}`);n.write_f32(e.properties[0]),n.write_f32(e.properties[1]),n.write_f32(e.properties[2]),n.write_u32(e.properties[3]),n.write_u32(e.properties[4]),n.write_u32(e.properties[5]),n.write_u32(e.properties[6])}}const p=s.groupBy(t,e=>e.area_id),v=Object.keys(p).map(e=>parseInt(e,10)).sort((e,t)=>e-t);for(const e of v){const t=p[e],i=t.length*c;n.write_u32(2),n.write_u32(i+16),n.write_u32(e),n.write_u32(i);for(const e of t){if(3!==e.unknown.length)throw new Error(`unknown should be of length 3, was ${e.unknown.length}`);if(n.write_u16(e.type_id),10!==e.unknown[0].length)throw new Error(`unknown[0] should be of length 10, was ${e.unknown[0].length}`);if(n.write_u8_array(e.unknown[0]),n.write_u16(e.section_id),6!==e.unknown[1].length)throw new Error(`unknown[1] should be of length 6, was ${e.unknown[1].length}`);if(n.write_u8_array(e.unknown[1]),n.write_vec3_f32(e.position),n.write_i32(Math.round(e.rotation.x/(2*Math.PI)*65535)),n.write_i32(Math.round(e.rotation.y/(2*Math.PI)*65535)),n.write_i32(Math.round(e.rotation.z/(2*Math.PI)*65535)),n.write_vec3_f32(e.scale),n.write_f32(e.npc_id),n.write_f32(e.script_label),n.write_u32(e.roaming),4!==e.unknown[2].length)throw new Error(`unknown[2] should be of length 4, was ${e.unknown[2].length}`);n.write_u8_array(e.unknown[2])}}for(const e of i)n.write_u32(e.entity_type),n.write_u32(e.total_size),n.write_u32(e.area_id),n.write_u32(e.entities_size),n.write_u8_array(e.data);return n.write_u32(0),n.write_u32(0),n.write_u32(0),n.write_u32(0),o}},"E/0a":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("0Xme");class n extends o.Input{constructor(e="",t){if(super(e,"core_TextInput","text","core_TextInput_inner",t),this.preferred_label_position="left",t){const{max_length:e}=t;this.set_attr("maxLength",e)}this.set_value(e),this.finalize_construction(n.prototype)}get_value(){return this.input_element.value}set_value(e){this.input_element.value=e}}t.TextInput=n},ETgL:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("sDu+"),n=i("FXpb");i("C5oP");const s=i("4VsB");class r extends o.LabelledControl{constructor(e="",t){super(t),this.element=n.el.div({class:"core_TextArea"}),this.preferred_label_position="left",this.text_element=n.el.textarea({class:"core_TextArea_inner"}),this._value=new s.WidgetProperty(this,"",this.set_value),t&&(null!=t.max_length&&(this.text_element.maxLength=t.max_length),null!=t.font_family&&(this.text_element.style.fontFamily=t.font_family),null!=t.rows&&(this.text_element.rows=t.rows),null!=t.cols&&(this.text_element.cols=t.cols)),this.value=this._value,this.set_value(e),this.text_element.onchange=()=>this._value.set_val(this.text_element.value,{silent:!1}),this.element.append(this.text_element),this.finalize_construction(r.prototype)}set_value(e){this.text_element.value=e}}t.TextArea=r},Eqai:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=new o.MeshLambertMaterial({color:65280,side:o.DoubleSide}),s=new o.MeshLambertMaterial({color:16711935,side:o.DoubleSide}),r=new o.MeshLambertMaterial({skinning:!0,color:16711935,side:o.DoubleSide});function a(e,t,i,s){const{created_by_geometry_builder:r,normalized_material_indices:a,bones:d}=e.userData;let l;if(Array.isArray(t))if(r){l=[n];for(const[e,o]of a.entries())o>0&&(l[o]=t[e]||i)}else l=t;else l=t||i;const _=new s(e,l);return r&&d.length&&_ instanceof o.SkinnedMesh&&(_.add(d[0]),_.bind(new o.Skeleton(d))),_}t.create_mesh=function(e,t,i=s){return a(e,t,i,o.Mesh)},t.create_skinned_mesh=function(e,t,i=r){return a(e,t,i,o.SkinnedMesh)}},F0Xh:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb"),n=i("nN8q");i("bknw");class s extends n.ResizableWidget{constructor(){super(),this.element=o.el.div({class:"hunt_optimizer_HelpView"},o.el.p({text:"Add some items with the combo box on the left to see the optimal combination of hunt methods on the right."}),o.el.p({text:'At the moment a hunt method is simply a quest run-through. Partial quest run-throughs are coming. View the list of methods on the "Methods" tab. Each method takes a certain amount of time, which affects the optimization result. Make sure the times are correct for you.'}),o.el.p({text:"Only enemy drops are considered. Box drops are coming."}),o.el.p({text:"The optimal result is calculated using linear optimization. The optimizer takes into account rare enemies and the fact that pan arms can be split in two."})),this.finalize_construction(s.prototype)}}t.HelpView=s},FNQV:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb"),s=i("If1w");i("l8iQ");const r=i("WJtm");class a extends o.ResizableWidget{constructor(){super(),this.element=n.el.div({class:"hunt_optimizer_OptimizerView"}),this.element.append(this.disposable(new s.WantedItemsView).element,this.disposable(new r.OptimizationResultView).element),this.finalize_construction(a.prototype)}}t.OptimizerView=a},FXpb:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("jJhE"),n=i("nsCy"),s=i("oxtq"),r=i("Tpfs");function a(e,t,...i){const o=document.createElement(e);if(t){if(null!=t.class&&(o.className=t.class),null!=t.text&&(o.textContent=t.text),null!=t.title&&(o.title=t.title),null!=t.href&&(o.href=t.href),null!=t.src&&(o.src=t.src),null!=t.width&&(o.width=t.width),null!=t.height&&(o.height=t.height),null!=t.alt&&(o.alt=t.alt),t.data)for(const[e,i]of Object.entries(t.data))o.dataset[e]=i;null!=t.col_span&&(o.colSpan=t.col_span),null!=t.tab_index&&(o.tabIndex=t.tab_index)}return o.append(...i),o}var d;t.el={div:(e,...t)=>a("div",e,...t),span:(e,...t)=>a("span",e,...t),h2:(e,...t)=>a("h2",e,...t),p:(e,...t)=>a("p",e,...t),a:(e,...t)=>{const i=a("a",e,...t);return e&&e.href&&e.href.trimLeft().startsWith("http")&&(i.target="_blank",i.rel="noopener noreferrer"),i},img:(e,...t)=>a("img",e,...t),table:(e,...t)=>a("table",e,...t),thead:(e,...t)=>a("thead",e,...t),tbody:(e,...t)=>a("tbody",e,...t),tfoot:(e,...t)=>a("tfoot",e,...t),tr:(e,...t)=>a("tr",e,...t),th:(e,...t)=>a("th",e,...t),td:(e,...t)=>a("td",e,...t),button:(e,...t)=>a("button",e,...t),textarea:(e,...t)=>a("textarea",e,...t)},t.create_element=a,t.bind_hidden=function(e,t){return o.is_property(t)&&(e.hidden=t.val),t.observe(({value:t})=>e.hidden=t)},function(e){e[e.File=0]="File",e[e.NewFile=1]="NewFile",e[e.Save=2]="Save",e[e.TriangleUp=3]="TriangleUp",e[e.TriangleDown=4]="TriangleDown",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo",e[e.Remove=7]="Remove",e[e.GitHub=8]="GitHub"}(d=t.Icon||(t.Icon={})),t.icon=function(e){let i;switch(e){case d.File:i="fas fa-file";break;case d.NewFile:i="fas fa-file-medical";break;case d.Save:i="fas fa-save";break;case d.TriangleUp:i="fas fa-caret-up";break;case d.TriangleDown:i="fas fa-caret-down";break;case d.Undo:i="fas fa-undo";break;case d.Redo:i="fas fa-redo";break;case d.Remove:i="fas fa-trash-alt";break;case d.GitHub:i="fab fa-github"}return t.el.span({class:i})},t.section_id_icon=function(e,i){const o=t.el.span(),s=i&&i.size;return o.style.display="inline-block",o.style.width=`${s}px`,o.style.height=`${s}px`,o.style.backgroundImage=`url(/assets/images/sectionids/${n.SectionId[e]}.png)`,o.style.backgroundSize=`${s}px`,o.title=n.SectionId[e],o},t.disposable_listener=function(e,t,i,o){return e.addEventListener(t,i,o),{dispose(){e.removeEventListener(t,i)}}},t.bind_children_to=function(e,t,i){const o=new r.Disposer,n=t.observe_list(e=>{e.type===s.ListChangeType.ListChange?a(e.index,e.removed.length,e.inserted):(e.type,s.ListChangeType.ValueChange)});function a(t,n,s){for(let i=0;i{const s=i(e,t+n);return Array.isArray(s)?(o.insert(t+n,s[1]),s[0]):s});if(t>=e.childElementCount)e.append(...r);else for(let i=0;i{this.render_scheduled=!0},this.on_mouse_down=e=>{e.currentTarget&&e.currentTarget.focus()},this.call_render=()=>{const e=this.controls.update(this.controls_clock.getDelta()),t=this.render_scheduled||e;this.render_scheduled=!1,t&&this.render(),this.animation_frame_handle=requestAnimationFrame(this.call_render)},this.dom_element.tabIndex=0,this.dom_element.addEventListener("mousedown",this.on_mouse_down),this.dom_element.style.outline="none",this.scene.background=new a.Color(1579032),this.light_holder.add(this.light),this.scene.add(this.light_holder),this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.getSize(this.size)}get debug(){return this._debug}set debug(e){this._debug=e}get dom_element(){return this.renderer.domElement}set_size(e,t){this.size.set(e,t),this.renderer.setSize(e,t),this.schedule_render()}pointer_pos_to_device_coords(e){e.set(e.x/this.size.width*2-1,e.y/this.size.height*-2+1)}start_rendering(){this.schedule_render(),this.animation_frame_handle=requestAnimationFrame(this.call_render)}stop_rendering(){null!=this.animation_frame_handle&&(cancelAnimationFrame(this.animation_frame_handle),this.animation_frame_handle=void 0)}reset_camera(e,t){this.controls.setLookAt(e.x,e.y,e.z,t.x,t.y,t.z)}dispose(){this.renderer.dispose(),this.controls.dispose()}init_camera_controls(){this.controls=new s.default(this.camera,this.renderer.domElement),this.controls.dampingFactor=1,this.controls.draggingDampingFactor=1}render(){this.renderer.render(this.scene,this.camera)}}},"G+UN":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("x4QM"),s=i("6WXA"),r=i("nsCy");class a{constructor(e,t){this.id_to_item_type=t,this.get_by_id=e=>this.id_to_item_type[e],this.item_types=e}}t.ItemTypeStore=a,t.item_type_stores=new s.ServerMap((function(e){return o(this,void 0,void 0,(function*(){const t=yield fetch(`/assets/itemTypes.${r.Server[e].toLowerCase()}.json`),i=yield t.json(),o=[],s=[];for(const e of i){let t;switch(e.class){case"weapon":t=new n.WeaponItemType(e.id,e.name,e.minAtp,e.maxAtp,e.ata,e.maxGrind,e.requiredAtp);break;case"armor":t=new n.ArmorItemType(e.id,e.name,e.atp,e.ata,e.minEvp,e.maxEvp,e.minDfp,e.maxDfp,e.mst,e.hp,e.lck);break;case"shield":t=new n.ShieldItemType(e.id,e.name,e.atp,e.ata,e.minEvp,e.maxEvp,e.minDfp,e.maxDfp,e.mst,e.hp,e.lck);break;case"unit":t=new n.UnitItemType(e.id,e.name);break;case"tool":t=new n.ToolItemType(e.id,e.name);break;default:continue}s[t.id]=t,o.push(t)}return new a(o,s)}))}))},GN66:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("HjM1"),s=i("xs7i"),r=i("j4Ss");class a extends n.TabContainer{constructor(){super({class:"hunt_optimizer_MethodsView",tabs:[{title:"Episode I",key:"episode_1",create_view:function(){return o(this,void 0,void 0,(function*(){return new r.MethodsForEpisodeView(s.Episode.I)}))}},{title:"Episode II",key:"episode_2",create_view:function(){return o(this,void 0,void 0,(function*(){return new r.MethodsForEpisodeView(s.Episode.II)}))}},{title:"Episode IV",key:"episode_4",create_view:function(){return o(this,void 0,void 0,(function*(){return new r.MethodsForEpisodeView(s.Episode.IV)}))}}]}),this.finalize_construction(a.prototype)}}t.MethodsView=a},GXOi:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("/Wax"),n=i("tjEv");t.prs_compress=function(e){const t=new s(e.size,e.endianness);for(;e.bytes_left;){let i=0,o=0;const n=Math.max(0,e.position-Math.min(2048,e.bytes_left));for(let t=e.position-255;t>=n;t--){let n=e.position,s=t,r=0;for(;n+3=o&&(i=t,o=r,r>=255))break}o<3?t.add_u8(e.u8()):(t.copy(i-e.position,o),e.seek(o))}return t.finalize()};class s{constructor(e,t){this.flags=0,this.flag_bits_left=0,this.flag_offset=0,this.output=new o.ResizableBufferCursor(new n.ResizableBuffer(e),t)}add_u8(e){this.write_control_bit(1),this.write_u8(e)}copy(e,t){e>-256&&t<=5?this.short_copy(e,t):this.long_copy(e,t)}finalize(){this.write_control_bit(0),this.write_control_bit(1),this.flags>>>=this.flag_bits_left;const e=this.output.position;return this.output.seek_start(this.flag_offset).write_u8(this.flags).seek_start(e),this.write_u8(0),this.write_u8(0),this.output.seek_start(0)}write_control_bit(e){if(0==this.flag_bits_left--){const e=this.output.position;this.output.seek_start(this.flag_offset).write_u8(this.flags).seek_start(e).write_u8(0),this.flag_offset=e,this.flag_bits_left=7}this.flags>>>=1,e&&(this.flags|=128)}write_u8(e){this.output.write_u8(e)}short_copy(e,t){t-=2,this.write_control_bit(0),this.write_control_bit(0),this.write_control_bit(t>>>1&1),this.write_control_bit(1&t),this.write_u8(255&e)}long_copy(e,t){t<=9?(this.write_control_bit(0),this.write_control_bit(1),this.write_u8(e<<3&248|t-2&7),this.write_u8(e>>5&255)):(this.write_control_bit(0),this.write_control_bit(1),this.write_u8(e<<3&248),this.write_u8(e>>5&255),this.write_u8(t-1))}}},Gc0Z:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=i("yRp4"),s=i("c5EP"),r=i("xpi7"),a=i("IjTL"),d=i("Tpfs"),l=i("yQqj"),_=i("sZ1+"),u=i("3ONQ"),c=i("tRdk"),p=i("uaZj"),v=Object.freeze(new o.Vector3(0,1,0)),h=Object.freeze(new o.Vector3(0,-1,0));var w;!function(e){e[e.Creating=0]="Creating",e[e.Transforming=1]="Transforming"}(w||(w={}));function f({entity:e,mesh:t},i){const o=e instanceof a.QuestNpcModel?r.NPC_COLORS[i]:r.OBJECT_COLORS[i];if(t)if(Array.isArray(t.material))for(const e of t.material)i===r.ColorType.Normal&&e.map?e.color.set(16777215):e.color.set(o);else t.material.color.set(o)}function E(e,t){return e&&t?e.entity===t.entity:e===t}t.QuestEntityControls=class{constructor(e){this.renderer=e,this.pointer_position=new o.Vector2(0,0),this.pointer_device_position=new o.Vector2(0,0),this.last_pointer_position=new o.Vector2(0,0),this.moved_since_last_mouse_down=!1,this.raycaster=new o.Raycaster,this.plane=new o.Plane,this.plane_normal=new o.Vector3,this.intersection_point=new o.Vector3,this.disposer=new d.Disposer,this.try_highlight=e=>{const t=this.renderer.get_entity_mesh(e);t?this.select({entity:e,mesh:t}):(this.selected&&f(this.selected,r.ColorType.Normal),this.selected=void 0)},this.mousedown=e=>{this.process_event(e),this.renderer.dom_element.removeEventListener("mousemove",this.mousemove),document.addEventListener("mouseup",this.doc_mouseup),document.addEventListener("mousemove",this.doc_mousemove),this.stop_transforming();const t=this.pick_entity(this.pointer_device_position);t?(this.renderer.controls.enabled=!1,this.pick=t,this.select(t)):(this.renderer.controls.enabled=!0,this.pick=void 0),this.renderer.schedule_render()},this.mousemove=e=>{this.process_event(e),this.selected&&this.pick||this.mark_hovered(this.pick_entity(this.pointer_device_position))},this.doc_mousemove=e=>{this.process_event(e),this.selected&&this.pick&&this.moved_since_last_mouse_down&&1===e.buttons&&this.translate_entity(e,this.selected,this.pick)},this.doc_mouseup=e=>{this.process_event(e),this.renderer.dom_element.addEventListener("mousemove",this.mousemove),document.removeEventListener("mousemove",this.doc_mousemove),document.removeEventListener("mouseup",this.doc_mouseup),this.moved_since_last_mouse_down||this.pick||this.deselect(),this.stop_transforming(),this.renderer.controls.enabled=!0,this.renderer.schedule_render()},this.dragenter=e=>{this.process_event(e.event);const t=s.quest_editor_store.current_area.val,i=s.quest_editor_store.current_quest.val;if(!t||!i)return;let r;if(l.is_npc_type(e.entity_type)){const i=_.npc_data(e.entity_type);if(null==i.pso_type_id||null==i.pso_roaming)return;r=new a.QuestNpcModel(e.entity_type,i.pso_type_id,0,0,i.pso_roaming,t.id,0,new n.Vec3(0,0,0),new n.Vec3(0,0,0),new n.Vec3(1,1,1),[[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0]])}else r=new p.QuestObjectModel(e.entity_type,0,0,t.id,0,new n.Vec3(0,0,0),new n.Vec3(0,0,0),new Map,[[0,0,0,0,0,0],[0,0]]);e.drag_element.style.display="none",e.event.dataTransfer&&(e.event.dataTransfer.dropEffect="copy");const d=new o.Vector3(0,0,0),u=new o.Vector3(0,0,0);this.translate_entity_horizontally(r,d,u),i.add_entity(r),s.quest_editor_store.set_selected_entity(r),this.pick={mode:w.Creating,initial_section:r.section.val,initial_position:r.world_position.val,grab_offset:d,drag_adjust:u}},this.dragover=e=>{this.process_event(e.event),s.quest_editor_store.current_area.val&&this.pick&&this.pick.mode===w.Creating&&(e.event.stopPropagation(),e.event.preventDefault(),e.event.dataTransfer&&(e.event.dataTransfer.dropEffect="copy"),this.selected&&this.translate_entity(e.event,this.selected,this.pick))},this.dragleave=e=>{if(this.process_event(e.event),!s.quest_editor_store.current_area.val)return;e.drag_element.style.display="flex";const t=s.quest_editor_store.current_quest.val;t&&this.selected&&this.pick&&this.pick.mode===w.Creating&&t.remove_entity(this.selected.entity)},this.drop=e=>{this.process_event(e.event),this.selected&&this.pick&&this.pick.mode===w.Creating&&(s.quest_editor_store.push_create_entity_action(this.selected.entity),this.pick=void 0)},this.stop_transforming=()=>{if(this.moved_since_last_mouse_down&&this.selected&&this.pick&&this.pick.mode===w.Transforming){const e=this.selected.entity;s.quest_editor_store.push_translate_entity_action(e,this.pick.initial_section,e.section.val,this.pick.initial_position,e.world_position.val,!0)}this.pick=void 0},this.disposer.add(s.quest_editor_store.selected_entity.observe(({value:e})=>{this.selected&&this.selected.entity===e||(this.stop_transforming(),e?this.try_highlight(e):this.deselect())})),e.dom_element.addEventListener("mousedown",this.mousedown),e.dom_element.addEventListener("mousemove",this.mousemove),u.add_entity_dnd_listener(e.dom_element,"dragenter",this.dragenter),u.add_entity_dnd_listener(e.dom_element,"dragover",this.dragover),u.add_entity_dnd_listener(e.dom_element,"dragleave",this.dragleave),u.add_entity_dnd_listener(e.dom_element,"drop",this.drop)}dispose(){this.renderer.dom_element.removeEventListener("mousedown",this.mousedown),this.renderer.dom_element.removeEventListener("mousemove",this.mousemove),document.removeEventListener("mousemove",this.doc_mousemove),document.removeEventListener("mouseup",this.doc_mouseup),u.remove_entity_dnd_listener(this.renderer.dom_element,"dragenter",this.dragenter),u.remove_entity_dnd_listener(this.renderer.dom_element,"dragover",this.dragover),u.remove_entity_dnd_listener(this.renderer.dom_element,"dragleave",this.dragleave),u.remove_entity_dnd_listener(this.renderer.dom_element,"drop",this.drop),this.disposer.dispose()}process_event(e){const{left:t,top:i}=this.renderer.dom_element.getBoundingClientRect();this.pointer_position.set(e.clientX-t,e.clientY-i),this.pointer_device_position.copy(this.pointer_position),this.renderer.pointer_pos_to_device_coords(this.pointer_device_position),"mousedown"===e.type?this.moved_since_last_mouse_down=!1:"mousemove"!==e.type&&"mouseup"!==e.type||this.pointer_position.equals(this.last_pointer_position)||(this.moved_since_last_mouse_down=!0),this.last_pointer_position.copy(this.pointer_position)}mark_hovered(e){this.selected&&E(e,this.selected)||(E(e,this.hovered)||(this.hovered&&(f(this.hovered,r.ColorType.Normal),this.hovered=void 0),e&&f(e,r.ColorType.Hovered),this.renderer.schedule_render()),this.hovered=e)}select(e){E(e,this.hovered)&&(this.hovered=void 0),E(e,this.selected)?this.selected=e:(this.selected&&f(this.selected,r.ColorType.Normal),f(e,r.ColorType.Selected),this.selected=e,s.quest_editor_store.set_selected_entity(e.entity))}deselect(){this.selected&&f(this.selected,r.ColorType.Normal),this.selected=void 0,s.quest_editor_store.set_selected_entity(void 0)}translate_entity(e,t,i){e.shiftKey?this.translate_entity_vertically(t.entity,i.drag_adjust,i.grab_offset):this.translate_entity_horizontally(t.entity,i.drag_adjust,i.grab_offset),this.renderer.schedule_render()}translate_entity_vertically(e,t,i){this.raycaster.setFromCamera(this.pointer_device_position,this.renderer.camera);const o=this.raycaster.ray;if(this.renderer.camera.getWorldDirection(this.plane_normal),this.plane_normal.negate(),this.plane_normal.y=0,this.plane_normal.normalize(),this.plane.setFromNormalAndCoplanarPoint(this.plane_normal,c.vec3_to_threejs(e.world_position.val).sub(i)),o.intersectPlane(this.plane,this.intersection_point)){const o=this.intersection_point.y+i.y,s=o-e.world_position.val.y;t.y-=s,e.set_world_position(new n.Vec3(e.world_position.val.x,o,e.world_position.val.z))}}translate_entity_horizontally(e,t,i){const{intersection:o,section:s}=this.pick_ground(this.pointer_device_position,t);if(o)e.set_world_position(new n.Vec3(o.point.x,o.point.y+i.y-t.y,o.point.z)),s&&e.set_section(s);else{this.raycaster.setFromCamera(this.pointer_device_position,this.renderer.camera);const t=this.raycaster.ray;this.plane.set(v,-e.world_position.val.y+i.y),t.intersectPlane(this.plane,this.intersection_point)&&e.set_world_position(new n.Vec3(this.intersection_point.x+i.x,e.world_position.val.y,this.intersection_point.z+i.z))}}pick_entity(e){this.raycaster.setFromCamera(e,this.renderer.camera);const[t]=this.raycaster.intersectObjects(this.renderer.entity_models.children);if(!t)return;const i=t.object.userData.entity,o=t.object.position.clone().sub(t.point),n=o.clone();this.raycaster.set(t.object.position,h);const[s]=this.raycaster.intersectObjects(this.renderer.collision_geometry.children,!0);return s&&(n.y-=s.distance),{mode:w.Transforming,mesh:t.object,entity:i,initial_section:i.section.val,initial_position:i.world_position.val,grab_offset:o,drag_adjust:n}}pick_ground(e,t){this.raycaster.setFromCamera(e,this.renderer.camera),this.raycaster.ray.origin.add(t);const i=this.raycaster.intersectObjects(this.renderer.collision_geometry.children,!0);for(const e of i)if(e.face.normal.y>.75)return{intersection:e,section:e.object.userData.section};return{}}}},GuD3:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("bcBH"),n=i("yRp4");t.AbstractCursor=class{constructor(e,t){this._position=0,this.endianness=e,this.offset=t}get position(){return this._position}get endianness(){return this.little_endian?o.Endianness.Little:o.Endianness.Big}set endianness(e){this.little_endian=e===o.Endianness.Little}get bytes_left(){return this.size-this.position}seek(e){return this.seek_start(this.position+e)}seek_start(e){if(e<0||e>this.size)throw new Error(`Offset ${e} is out of bounds.`);return this._position=e,this}seek_end(e){if(e<0||e>this.size)throw new Error(`Offset ${e} is out of bounds.`);return this._position=this.size-e,this}u8(){return this.u8_at(this._position++)}u8_at(e){return this.check_offset(e,1),this.dv.getUint8(this.offset+e)}u16(){const e=this.u16_at(this.position);return this._position+=2,e}u16_at(e){return this.check_offset(e,2),this.dv.getUint16(this.offset+e,this.little_endian)}u32(){const e=this.u32_at(this.position);return this._position+=4,e}u32_at(e){return this.check_offset(e,4),this.dv.getUint32(this.offset+e,this.little_endian)}i8(){return this.i8_at(this._position++)}i8_at(e){return this.check_offset(e,1),this.dv.getInt8(this.offset+e)}i16(){const e=this.i16_at(this.position);return this._position+=2,e}i16_at(e){return this.check_offset(e,2),this.dv.getInt16(this.offset+e,this.little_endian)}i32(){const e=this.i32_at(this.position);return this._position+=4,e}i32_at(e){return this.check_offset(e,4),this.dv.getInt32(this.offset+e,this.little_endian)}f32(){const e=this.f32_at(this.position);return this._position+=4,e}f32_at(e){return this.check_offset(e,4),this.dv.getFloat32(this.offset+e,this.little_endian)}u8_array(e){this.check_size("n",e,e);const t=[];for(let i=0;ithis.size-this.position)throw new Error(`${e} ${t} is out of bounds.`)}check_offset(e,t){if(e<0||e+t>this.size)throw new Error(`Offset ${e} is out of bounds.`)}}},Hdaq:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb"),n=i("nN8q");i("m5WL");const s=i("4SjJ"),r=i("KUR2"),a=i("tyuj"),d=i("lHpu"),l=i("VRtl"),_=i("Y3Jw"),u=100,c=140;class p extends n.ResizableWidget{constructor(){super(),this.element=o.el.div({class:"viewer_Model3DView"}),this.tool_bar_view=this.disposable(new l.Model3DToolBar),this.model_list_view=this.disposable(new _.Model3DSelectListView(a.model_store.models,a.model_store.current_model)),this.animation_list_view=this.disposable(new _.Model3DSelectListView(a.model_store.animations,a.model_store.current_animation)),this.renderer_view=this.disposable(new r.RendererWidget(new d.Model3DRenderer)),this.animation_list_view.borders=!0,this.element.append(this.tool_bar_view.element,o.el.div({class:"viewer_Model3DView_container"},this.model_list_view.element,this.animation_list_view.element,this.renderer_view.element)),a.model_store.current_model.val=a.model_store.models[5],this.renderer_view.start_rendering(),this.disposable(s.gui_store.tool.observe(({value:e})=>{e===s.GuiTool.Viewer?this.renderer_view.start_rendering():this.renderer_view.stop_rendering()})),this.finalize_construction(p.prototype)}resize(e,t){super.resize(e,t);const i=Math.max(0,t-this.tool_bar_view.height);return this.model_list_view.resize(u,i),this.animation_list_view.resize(c,i),this.renderer_view.resize(Math.max(0,e-u-c),i),this}}t.Model3DView=p},HjM1:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb"),n=i("39ZU"),s=i("nN8q");i("4AvX");const r=28;class a extends s.ResizableWidget{constructor(e){super(e),this.element=o.el.div({class:"core_TabContainer"}),this.tabs=[],this.bar_element=o.el.div({class:"core_TabContainer_Bar"}),this.panes_element=o.el.div({class:"core_TabContainer_Panes"}),this.bar_mousedown=e=>{if(e.target instanceof HTMLElement){const t=e.target.dataset.key;t&&this.activate(t)}},this.bar_element.onmousedown=this.bar_mousedown;for(const t of e.tabs){const e=o.create_element("span",{class:"core_TabContainer_Tab",text:t.title,data:{key:t.key}});this.bar_element.append(e);const i=new n.LazyWidget(t.create_view);this.tabs.push(Object.assign(Object.assign({},t),{tab_element:e,lazy_view:i})),this.panes_element.append(i.element),this.disposable(i)}this.tabs.length&&this.activate(this.tabs[0].key),this.element.append(this.bar_element,this.panes_element),this.finalize_construction(a.prototype)}resize(e,t){super.resize(e,t),this.bar_element.style.width=`${e}px`,this.bar_element.style.height=`${r}px`;const i=t-r;this.panes_element.style.width=`${e}px`,this.panes_element.style.height=`${i}px`;for(const t of this.tabs)t.lazy_view.resize(e,i);return this}activate(e){for(const t of this.tabs){const i=t.key===e;i?t.tab_element.classList.add("active"):t.tab_element.classList.remove("active"),t.lazy_view.visible.val=i}}}t.TabContainer=a},IMNf:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("/Wax"),r=i("tjEv"),a=n.default.get("data_formats/compression/prs/decompress");t.prs_decompress=function(e){const t=new d(e);for(;;)if(1===t.read_flag_bit())t.copy_u8();else{let e,i;if(0===t.read_flag_bit())e=t.read_flag_bit()<<1,e|=t.read_flag_bit(),e+=2,i=t.read_u8()-256;else{if(0===(i=t.read_u16()))break;e=7&i,i>>>=3,0===e?(e=t.read_u8(),e+=1):e+=2,i-=8192}t.offset_copy(i,e)}return t.dst.seek_start(0)};class d{constructor(e){this.src=e,this.dst=new s.ResizableBufferCursor(new r.ResizableBuffer(Math.floor(1.5*e.size)),e.endianness),this.flags=0,this.flag_bits_left=0}read_flag_bit(){0===this.flag_bits_left&&(this.flags=this.read_u8(),this.flag_bits_left=8);let e=1&this.flags;return this.flags>>>=1,this.flag_bits_left-=1,e}copy_u8(){this.dst.write_u8(this.read_u8())}read_u8(){return this.src.u8()}read_u16(){return this.src.u16()}offset_copy(e,t){(e<-8192||e>0)&&a.error(`offset was ${e}, should be between -8192 and 0.`),(t<1||t>256)&&a.error(`length was ${t}, should be between 1 and 256.`);const i=Math.min(-e,t);this.dst.seek(e);const o=this.dst.take(i);this.dst.seek(-e-i);for(let e=0;enull!=e?e:this.default_time)}set_user_time(e){return this._user_time.val=e,this}}},If1w:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb");i("XfQH");const s=i("KVVN"),r=i("Tpfs"),a=i("TRid"),d=i("PE7g"),l=i("sMN3"),_=i("Ncr4"),u=i("ouMO");class c extends a.Widget{constructor(){super(),this.element=n.el.div({class:"hunt_optimizer_WantedItemsView"}),this.tbody_element=n.el.tbody(),this.store_disposer=this.disposable(new r.Disposer),this.create_row=e=>{const t=new r.Disposer,i=t.add(new d.NumberInput(e.amount.val,{min:0,step:1}));t.add_all(i.value.bind_to(e.amount),i.value.observe(({value:t})=>e.set_amount(t)));const a=t.add(new s.Button("",{icon_left:n.Icon.Remove}));return t.add(a.click.observe(()=>o(this,void 0,void 0,(function*(){return(yield l.hunt_optimizer_stores.current.val).remove_wanted_item(e)})))),[n.el.tr({},n.el.td({},i.element),n.el.td({text:e.item_type.name}),n.el.td({},a.element)),t]};const e=u.list_property(),t=u.list_property(),i=this.disposable(new _.ComboBox({items:t,to_label:e=>e.name,placeholder_text:"Add an item",filter(i){const o=i.toLowerCase();t.val=e.val.filter(e=>e.name.toLowerCase().includes(o))}}));this.element.append(n.el.h2({text:"Wanted Items"}),i.element,n.el.div({class:"hunt_optimizer_WantedItemsView_table_wrapper"},n.el.table({},this.tbody_element))),this.disposables(l.hunt_optimizer_stores.observe_current(o=>{this.store_disposer.dispose_all(),this.store_disposer.add_all(n.bind_children_to(this.tbody_element,o.wanted_items,this.create_row),i.selected.observe(({value:e})=>{e&&(o.add_wanted_item(e),i.selected.val=void 0)})),e.val=o.huntable_item_types.slice().sort((e,t)=>e.name.localeCompare(t.name)),t.val=e.val},{call_now:!0})),this.finalize_construction(c.prototype)}}t.WantedItemsView=c},IjTL:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("kiqn");t.QuestNpcModel=class extends o.QuestEntityModel{constructor(e,t,i,o,n,s,r,a,d,l,_){if(!Number.isInteger(t))throw new Error("pso_type_id should be an integer.");if(!Number.isFinite(i))throw new Error("npc_id should be a number.");if(!Number.isInteger(o))throw new Error("script_label should be an integer.");if(!Number.isInteger(n))throw new Error("pso_roaming should be an integer.");if(!l)throw new Error("scale is required.");if(!_)throw new Error("unknown is required.");if(3!==_.length)throw new Error(`unknown should be of length 3, was ${_.length}.`);if(10!==_[0].length)throw new Error(`unknown[0] should be of length 10, was ${_[0].length}`);if(6!==_[1].length)throw new Error(`unknown[1] should be of length 6, was ${_[1].length}`);if(4!==_[2].length)throw new Error(`unknown[2] should be of length 4, was ${_[2].length}`);super(e,s,r,a,d),this.pso_type_id=t,this.npc_id=i,this.script_label=o,this.pso_roaming=n,this.unknown=_,this.scale=l}}},JCZi:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i("wsa1"),r=n(i("NUmZ")),a=i("yAUo"),d=i("Q4I3"),l=i("ZPAt"),_=i("ouMO");var u=s.languages.CompletionItemKind;const c=l.OPCODES.filter(e=>null!=e).map(e=>({label:e.mnemonic,kind:u.Function,insertText:e.mnemonic})),p=[{label:".code",kind:u.Keyword,insertText:"code"},{label:".data",kind:u.Keyword,insertText:"data"},{label:".string",kind:u.Keyword,insertText:"string"}];t.AssemblyAnalyser=class{constructor(){this._issues=_.property({warnings:[],errors:[]}),this.issues=this._issues,this.worker=new r.default,this.promises=new Map,this.message_id=0,this.process_worker_message=e=>{const t=e.data;switch(t.type){case a.OutputMessageType.NewObjectCode:this.quest&&(this.quest.object_code.splice(0,this.quest.object_code.length,...t.object_code),this.quest.set_map_designations(t.map_designations),this._issues.val={warnings:t.warnings,errors:t.errors});break;case a.OutputMessageType.SignatureHelp:{const e=this.promises.get(t.id);if(e)if(this.promises.delete(t.id),t.opcode){let i=t.opcode.mnemonic+" ";const o=[];let n=!0;for(const e of t.opcode.params){let t;switch(n?n=!1:i+=", ",e.type.kind){case l.Kind.ILabel:t="FuncLabel";break;case l.Kind.DLabel:t="DataLabel";break;case l.Kind.SLabel:t="StringLabel";break;case l.Kind.ILabelVar:t="...FuncLabel";break;case l.Kind.RegRef:case l.Kind.RegTupRef:t="Register";break;case l.Kind.RegRefVar:t="...Register";break;default:t=l.Kind[e.type.kind]}o.push({label:[i.length,i.length+t.length],documentation:e.doc}),i+=t}const s={signatures:[{label:i,documentation:t.opcode.doc,parameters:o}],activeSignature:0,activeParameter:t.active_param};e.resolve(s)}else e.resolve(void 0)}}},this.worker.onmessage=this.process_worker_message}disassemble(e,t){this.quest=e;const i=d.disassemble(e.object_code,t),o={type:a.InputMessageType.NewAssembly,assembly:i};return this.worker.postMessage(o),i}update_assembly(e){const t={type:a.InputMessageType.AssemblyChange,changes:e.map(e=>({start_line_no:e.range.startLineNumber,start_col:e.range.startColumn,end_line_no:e.range.endLineNumber,end_col:e.range.endColumn,new_text:e.text}))};this.worker.postMessage(t)}provide_completion_items(e){return{suggestions:/^\s*([a-z][a-z0-9_=<>!]*)?$/.test(e)?c:/^\s*\.[a-z]+$/.test(e)?p:[],incomplete:!1}}provide_signature_help(e,t){return o(this,void 0,void 0,(function*(){const i=this.message_id++;return new Promise((o,n)=>{this.promises.set(i,{resolve:o,reject:n});const s={type:a.InputMessageType.SignatureHelp,id:i,line_no:e,col:t};this.worker.postMessage(s),setTimeout(()=>{this.promises.delete(i)&&n(new Error("Signature help timed out."))},5e3)})}))}update_settings(e){const t={type:a.InputMessageType.SettingsChange,settings:e};this.worker.postMessage(t)}dispose(){this.worker.terminate()}}},JQxC:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")),s=i("ZPAt"),r=i("4s8/"),a=i("CUby"),d=n.default.get("quest_editor/scripting/data_flow_analysis/stack_value");t.MIN_STACK_VALUE=s.MIN_SIGNED_DWORD_VALUE,t.MAX_STACK_VALUE=s.MAX_SIGNED_DWORD_VALUE,t.stack_value=function(e,i,o){const n=e.get_block_for_instruction(i);return n?function e(i,o,n,l,_){if(++i.iterations>100)return d.warn("Too many iterations."),(new r.ValueSet).set_interval(t.MIN_STACK_VALUE,t.MAX_STACK_VALUE);for(let e=l-1;e>=n.start;e--){const o=n.segment.instructions[e];if(o.opcode.stack===s.StackInteraction.Pop){_+=o.opcode.params.length;continue}const d=o.args;switch(o.opcode){case s.Opcode.ARG_PUSHR:if(0===_)return a.register_value(i.cfg,o,d[0].value);_--;break;case s.Opcode.ARG_PUSHL:case s.Opcode.ARG_PUSHB:case s.Opcode.ARG_PUSHW:if(0===_)return(new r.ValueSet).set_value(d[0].value);_--;break;case s.Opcode.ARG_PUSHA:case s.Opcode.ARG_PUSHO:case s.Opcode.ARG_PUSHS:if(0===_)return(new r.ValueSet).set_interval(t.MIN_STACK_VALUE,t.MAX_STACK_VALUE);_--}}const u=new r.ValueSet;o.add(n);for(const s of n.from){if(o.has(s)){u.set_interval(t.MIN_STACK_VALUE,t.MAX_STACK_VALUE);break}u.union(e(i,new Set(o),s,s.end,_))}return u}(new l(e),new Set,n,n.index_of_instruction(i),o):new r.ValueSet};class l{constructor(e){this.cfg=e,this.iterations=0}}},Jo0o:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("weRg"),n=i("+oIp"),s=i("c5EP"),r=i("xs7i");class a extends o.EntityListView{constructor(){super("quest_editor_ObjectListView"),this.filter_objects=()=>{const e=s.quest_editor_store.current_quest.val,t=s.quest_editor_store.current_area.val,i=e?e.episode:r.Episode.I,o=t?t.id:0;this.entities.val=n.OBJECT_TYPES.filter(e=>{const t=n.object_data(e);if(null==t.area_ids)return!0;const s=t.area_ids[i];return s&&s.includes(o)})},this.disposables(s.quest_editor_store.current_quest.observe(this.filter_objects),s.quest_editor_store.current_area.observe(this.filter_objects)),this.filter_objects(),this.finalize_construction(a.prototype)}}t.ObjectListView=a},"KS+z":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("w6HN"),n=i("oyid"),s=i("S6Bx");class r extends o.ToolBar{constructor(){const e=new n.CheckBox(!0,{label:"Inline args mode",tooltip:s.asm_editor_store.has_issues.map(e=>{let t="Transform arg_push* opcodes to be inline with the opcode the arguments are given to.";return e&&(t+="\nThis mode cannot be toggled because there are issues in the script."),t})});super({children:[e]}),this.disposables(e.checked.bind_to(s.asm_editor_store.inline_args_mode),e.checked.observe(({value:e})=>s.asm_editor_store.set_inline_args_mode(e)),e.enabled.bind_to(s.asm_editor_store.has_issues.map(e=>!e))),this.finalize_construction(r.prototype)}}t.AsmEditorToolBar=r},KUR2:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb");class s extends o.ResizableWidget{constructor(e){super(),this.renderer=e,this.element=n.el.div(),this.element.append(e.dom_element),this.disposable(e),this.finalize_construction(s.prototype)}start_rendering(){this.renderer.start_rendering()}stop_rendering(){this.renderer.stop_rendering()}resize(e,t){return super.resize(e,t),this.renderer.set_size(e,t),this}}t.RendererWidget=s},KVVN:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb");i("Tp1L");const n=i("ouMO"),s=i("QmPX"),r=i("4VsB");class a extends s.Control{constructor(e,t){super(t),this.element=o.el.button({class:"core_Button"});const i=o.el.span({class:"core_Button_inner"});this.center_element=o.el.span({class:"core_Button_center"}),t&&null!=t.icon_left&&i.append(o.el.span({class:"core_Button_left"},o.icon(t.icon_left))),i.append(this.center_element),t&&null!=t.icon_right&&i.append(o.el.span({class:"core_Button_right"},o.icon(t.icon_right))),this._mousedown=n.emitter(),this.mousedown=this._mousedown,this.element.onmousedown=e=>this._mousedown.emit({value:e}),this._mouseup=n.emitter(),this.mouseup=this._mouseup,this.element.onmouseup=e=>this._mouseup.emit({value:e}),this._click=n.emitter(),this.click=this._click,this.element.onclick=e=>this._click.emit({value:e}),this._text=new r.WidgetProperty(this,"",this.set_text),this.text=this._text,"string"==typeof e?this.text.val=e:e&&this.text.bind_to(e),this.element.append(i),this.finalize_construction(a.prototype)}set_enabled(e){super.set_enabled(e),this.element.disabled=!e}set_text(e){this.center_element.textContent=e,this.center_element.hidden=""===e}}t.Button=a},"L/3r":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),n=i("Ts/k"),s=i("n5fr");t.SimpleUndo=class{constructor(e,t,i){this.can_undo=o.property(!1),this.can_redo=o.property(!1),this.action=o.property({description:e,undo:t,redo:i}),this.first_undo=o.map((e,t)=>t?e:void 0,this.action,this.can_undo),this.first_redo=o.map((e,t)=>t?e:void 0,this.action,this.can_redo)}make_current(){s.undo_manager.current.val=this}ensure_not_current(){s.undo_manager.current.val===this&&(s.undo_manager.current.val=n.NOOP_UNDO)}undo(){return!!this.can_undo&&(this.action.val.undo(),!0)}redo(){return!!this.can_redo&&(this.action.val.redo(),!0)}reset(){this.can_undo.val=!1,this.can_redo.val=!1}}},LSoc:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb"),n=i("TRid"),s=i("ouMO"),r=i("4VsB");i("/xfa");class a extends n.Widget{constructor(e,t,i){super(),this.element=o.el.div({class:"core_Menu",tab_index:-1}),this.inner_element=o.el.div({class:"core_Menu_inner"}),this.mouseup=e=>{if(!(e.target instanceof HTMLElement))return;const t=e.target.dataset.index;null!=t&&this.select_item(parseInt(t,10))},this.keydown=e=>{switch(e.key){case"ArrowDown":this.hover_next();break;case"ArrowUp":this.hover_prev();break;case"Enter":this.select_hovered()}},this.inner_mouseover=e=>{if(e.target&&e.target instanceof HTMLElement){const t=e.target.dataset.index;null!=t&&this.hover_item(parseInt(t,10))}},this.document_mousedown=e=>{!this.visible.val||this.element.contains(e.target)||this.related_element.contains(e.target)||this.visible.set_val(!1,{silent:!1})},this.document_keydown=e=>{"Escape"===e.key&&this.visible.set_val(!1,{silent:!1})},this.visible.val=!1,this.element.onmouseup=this.mouseup,this.element.onkeydown=this.keydown,this.inner_element.onmouseover=this.inner_mouseover,this.element.append(this.inner_element),this.to_label=t,this.items=Array.isArray(e)?s.property(e):e,this.related_element=i,this._selected=new r.WidgetProperty(this,void 0,this.set_selected),this.selected=this._selected,this.disposables(this.items.observe(({value:e})=>{this.inner_element.innerHTML="",this.inner_element.append(...e.map((e,i)=>o.el.div({text:t(e),data:{index:i.toString()}}))),this.hover_item()},{call_now:!0}),o.disposable_listener(document,"mousedown",this.document_mousedown,{capture:!0}),o.disposable_listener(document,"keydown",this.document_keydown)),this.finalize_construction(a.prototype)}hover_next(){this.visible.val=!0,this.hover_item(null!=this.hovered_index?(this.hovered_index+1)%this.items.val.length:0)}hover_prev(){this.visible.val=!0,this.hover_item(this.hovered_index?this.hovered_index-1:this.items.val.length-1)}select_hovered(){null!=this.hovered_index&&this.select_item(this.hovered_index)}set_visible(e){super.set_visible(e),this.visible.val!=e&&(this.hover_item(),this.inner_element.scrollTop=0)}set_selected(){}hover_item(e){this.hovered_element&&this.hovered_element.classList.remove("core_Menu_hovered"),null==e?(this.hovered_index=void 0,this.hovered_element=void 0):(this.hovered_element=this.inner_element.children.item(e),this.hovered_element&&(this.hovered_index=e,this.hovered_element.classList.add("core_Menu_hovered"),this.hovered_element.scrollIntoView({block:"nearest"})))}select_item(e){const t=this.items.val[e];t&&(this.selected.set_val(t,{silent:!1}),this.visible.set_val(!1,{silent:!1}))}}t.Menu=a},LkpO:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=i("HjM1");class r extends s.TabContainer{constructor(){super({class:"hunt_optimizer_HuntOptimizerView",tabs:[{title:"Optimize",key:"optimize",create_view:function(){return o(this,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("FNQV")))).OptimizerView)}))}},{title:"Methods",key:"methods",create_view:function(){return o(this,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("GN66")))).MethodsView)}))}},{title:"Help",key:"help",create_view:function(){return o(this,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("F0Xh")))).HelpView)}))}}]}),this.finalize_construction(r.prototype)}}t.HuntOptimizerView=r},"M/y3":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.sequential=function(e){const t=[];return function(...i){const n=new Promise((e,o)=>t.push({args:i,resolve:e,reject:o}));return 1===t.length&&function(){o(this,void 0,void 0,(function*(){for(;t.length;){const{args:i,resolve:o,reject:n}=t[0];try{o(yield e(...i))}catch(e){n(e)}finally{t.shift()}}}))}(),n}}},NRxM:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("9dYx");class n extends o.AbstractWritableCursor{constructor(e,t,i=0,o=e.byteLength-i){super(t,i),this._size=o,this.backing_buffer=e,this.dv=new DataView(e,0,e.byteLength)}get size(){return this._size}set size(e){if(e>this.backing_buffer.byteLength-this.offset)throw new Error(`Size ${e} is out of bounds.`);this._size=e}take(e){const t=this.offset+this.position,i=new n(this.backing_buffer,this.endianness,t,e);return this._position+=e,i}}t.ArrayBufferCursor=n},NUmZ:function(e,t,i){e.exports=function(){return new Worker(i.p+"128f0cffd6040e7a6005.worker.js")}},Ncr4:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("sDu+"),n=i("FXpb");i("rlVZ"),i("x1yY");const s=i("LSoc"),r=i("ouMO"),a=i("4VsB");class d extends o.LabelledControl{constructor(e){super(e),this.element=n.el.span({class:"core_ComboBox core_Input"}),this.preferred_label_position="left",this.input_element=n.create_element("input"),this.to_label=e.to_label,this._selected=new a.WidgetProperty(this,void 0,this.set_selected),this.selected=this._selected;const t=r.property(!1);this.menu=this.disposable(new s.Menu(e.items,e.to_label,this.element)),this.menu.element.onmousedown=e=>e.preventDefault(),this.input_element.placeholder=e.placeholder_text||"",this.input_element.onmousedown=()=>{t.val=!0},this.input_element.onkeydown=e=>{switch(e.key){case"ArrowDown":e.preventDefault(),this.menu.hover_next();break;case"ArrowUp":e.preventDefault(),this.menu.hover_prev();break;case"Enter":this.menu.select_hovered()}};const i=e.filter;if(i){let e="";this.input_element.onkeyup=()=>{this.input_element.value!==e&&(e=this.input_element.value,i(e),(this.menu.visible.val||e)&&this.menu.hover_next())}}this.input_element.onblur=()=>{t.val=!1};const o=n.el.span({},n.icon(n.Icon.TriangleDown));this.bind_hidden(o,t);const l=n.el.span({},n.icon(n.Icon.TriangleUp));this.bind_hidden(l,t.map(e=>!e));const _=n.el.span({class:"core_ComboBox_button"},o,l);_.onmousedown=e=>{e.preventDefault(),t.val=!t.val},this.element.append(n.el.span({class:"core_ComboBox_inner core_Input_inner"},this.input_element,_),this.menu.element),this.disposables(this.menu.visible.bind_bi(t),t.observe(({value:e})=>{e&&this.menu.hover_next()}),this.menu.selected.observe(({value:e})=>{this.selected.set_val(e,{silent:!1}),this.input_element.focus()})),this.finalize_construction(d.prototype)}set_selected(e){this.input_element.value=e?this.to_label(e):"",this.menu.selected.val=e}}t.ComboBox=d},PE7g:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("0Xme");i("rY5A");class n extends o.Input{constructor(e=0,t={}){super(e,"core_NumberInput","number","core_NumberInput_inner",t),this.preferred_label_position="left";const{min:i,max:o,step:s}=t;this.set_attr("min",i,String),this.set_attr("max",o,String),this.input_element.step="any",this.set_attr("step",s,String),null!=t.round_to&&t.round_to>=0?this.rounding_factor=Math.pow(10,t.round_to):this.rounding_factor=1,this.element.style.width=`${null==t.width?54:t.width}px`,this.set_value(e),this.finalize_construction(n.prototype)}get_value(){return this.input_element.valueAsNumber}set_value(e){this.input_element.valueAsNumber=Math.round(this.rounding_factor*e)/this.rounding_factor}}t.NumberInput=n},"Q+PT":function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")).default.get("core/observable/SimpleEmitter");t.SimpleEmitter=class{constructor(){this.observers=[]}emit(e){for(const t of this.observers)try{t(e)}catch(e){n.error("Observer threw error.",e)}}observe(e){return this.observers.includes(e)||this.observers.push(e),{dispose:()=>{const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}}}}},Q4I3:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i("8hIv"),s=i("lg9k"),r=i("ZPAt"),a=o(i("GGSb")).default.get("quest_editor/scripting/disassembly");function d(e,t){const i=[],o=Math.min(e.length,t.length);for(let n=0;n4&&i.push(t)}else if(a.type===s.SegmentType.String)i.push(" "+JSON.stringify(a.value));else for(const e of a.instructions)if(t||e.opcode.stack!==r.StackInteraction.Push){let n=[];e.opcode.stack===r.StackInteraction.Pop?t||(n=l(e.opcode.params,o.splice(Math.max(0,o.length-e.opcode.params.length),e.opcode.params.length),!0)):n=l(e.opcode.params,d(e.opcode.params,e.args),!1),i.push(" "+e.opcode.mnemonic+(n.length?" "+n.join(", "):""))}else o.push(...d(e.opcode.params,e.args))}return i.length&&i.push(""),a.trace(`disassemble end, line count: ${i.length}`),i}},QmPX:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid");t.Control=class extends o.Widget{}},RMZt:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("yfUv"),s=i("ExVU"),r="HuntMethodStore.methodUserTimes";t.hunt_method_persister=new class extends n.Persister{persist_method_user_times(e,t){const i={};for(const t of e)null!=t.user_time.val&&(i[t.id]=t.user_time.val.as("hours"));this.persist_for_server(t,r,i)}load_method_user_times(e,t){return o(this,void 0,void 0,(function*(){const i=yield this.load_for_server(t,r);if(i)for(const t of e){const e=i[t.id];t.set_user_time(null==e?void 0:s.Duration.fromObject({hours:e}))}}))}}},S6Bx:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("wsa1"),n=i("JCZi"),s=i("Tpfs"),r=i("L/3r"),a=i("c5EP"),d=i("hVaW"),l=i("ouMO"),_=new n.AssemblyAnalyser;o.languages.register({id:"psoasm"}),o.languages.setMonarchTokensProvider("psoasm",d.ASM_SYNTAX),o.languages.registerCompletionItemProvider("psoasm",{provideCompletionItems(e,t){const i=e.getValueInRange({startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:1,endColumn:t.column});return _.provide_completion_items(i)}}),o.languages.registerSignatureHelpProvider("psoasm",{signatureHelpTriggerCharacters:[" ",","],signatureHelpRetriggerCharacters:[", "],provideSignatureHelp:(e,t)=>_.provide_signature_help(t.lineNumber,t.column)}),o.languages.setLanguageConfiguration("psoasm",{indentationRules:{increaseIndentPattern:/^\s*\d+:/,decreaseIndentPattern:/^\s*(\d+|\.)/},autoClosingPairs:[{open:'"',close:'"'}],surroundingPairs:[{open:'"',close:'"'}],comments:{lineComment:"//"}});class u{constructor(){this.disposer=new s.Disposer,this.model_disposer=this.disposer.add(new s.Disposer),this._model=l.property(void 0),this._did_undo=l.emitter(),this._did_redo=l.emitter(),this._inline_args_mode=l.property(!0),this.model=this._model,this.did_undo=this._did_undo,this.did_redo=this._did_redo,this.undo=new r.SimpleUndo("Text edits",()=>this._did_undo.emit({value:"asm undo"}),()=>this._did_redo.emit({value:"asm undo"})),this.inline_args_mode=this._inline_args_mode,this.has_issues=_.issues.map(e=>e.warnings.length+e.errors.length>0),this.set_inline_args_mode=e=>{this.has_issues.val||(this._inline_args_mode.val=e,_.update_settings({manual_stack:!this.inline_args_mode.val}),this.update_model())},this.quest_changed=()=>{this.update_model()},this.disposer.add_all(a.quest_editor_store.current_quest.observe(this.quest_changed,{call_now:!0}),_.issues.observe(({value:e})=>this.update_model_markers(e),{call_now:!0}))}dispose(){this.disposer.dispose()}setup_editor_model_features(e){let t=e.getAlternativeVersionId(),i=t,o=t;this.model_disposer.add(e.onDidChangeContent(n=>{const s=e.getAlternativeVersionId();so&&(o=i)),this.undo.can_undo.val=!0),i=s,_.update_assembly(n.changes)}))}update_model_markers({warnings:e,errors:t}){const i=this.model.val;i&&o.editor.setModelMarkers(i,"psoasm",e.map(e=>({severity:o.MarkerSeverity.Hint,message:e.message,startLineNumber:e.line_no,endLineNumber:e.line_no,startColumn:e.col,endColumn:e.col+e.length,tags:[o.MarkerTag.Unnecessary]})).concat(t.map(e=>({severity:o.MarkerSeverity.Error,message:e.message,startLineNumber:e.line_no,endLineNumber:e.line_no,startColumn:e.col,endColumn:e.col+e.length}))))}update_model(){this.undo.reset(),this.model_disposer.dispose_all();const e=a.quest_editor_store.current_quest.val;if(e){const t=!this.inline_args_mode.val,i=_.disassemble(e,t),n=this.model_disposer.add(o.editor.createModel(i.join("\n"),"psoasm"));this.setup_editor_model_features(n),this._model.val=n}else this._model.val=void 0}}t.AsmEditorStore=u,t.asm_editor_store=new u},"Sa3/":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.read_file=function(e){return o(this,void 0,void 0,(function*(){return new Promise((t,i)=>{const o=new FileReader;o.addEventListener("loadend",()=>{o.result instanceof ArrayBuffer?t(o.result):i(new Error("Couldn't read file."))}),o.readAsArrayBuffer(e)})}))}},SoCI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("xs7i");t.get_areas_for_episode=function(e){return n[e]},t.get_area_variant=function(e,t,i){const o=n[e].find(e=>e.id===t);if(!o)throw new Error(`No area with id ${t}.`);const s=o.area_variants[i];if(!s)throw new Error(`No area variant with id ${i}.`);return s};const n=[];function s(e,t,i,o){const n={id:e,name:t,order:i,area_variants:[]};for(let e=0;e{this.construction_finalized||a.warn(`finalize_construction is never called for ${Object.getPrototypeOf(this).constructor.name}.`)},0)}get id(){return this.element.id}set id(e){this.element.id=e}focus(){this.element.focus()}dispose(){this.element.remove(),this.disposer.dispose(),this.disposed=!0}finalize_construction(e){Object.getPrototypeOf(this)===e&&(this.options.class&&this.element.classList.add(this.options.class),"boolean"==typeof this.options.enabled?this.enabled.val=this.options.enabled:this.options.enabled&&this.enabled.bind_to(this.options.enabled),"string"==typeof this.options.tooltip?this.tooltip.val=this.options.tooltip:this.options.tooltip&&this.tooltip.bind_to(this.options.tooltip),this.construction_finalized=!0)}set_visible(e){this.element.hidden=!e}set_enabled(e){e?this.element.classList.remove("disabled"):this.element.classList.add("disabled")}set_tooltip(e){this.element.title=e}bind_hidden(e,t){this.disposable(s.bind_hidden(e,t))}disposable(e){return this.disposer.add(e)}disposables(...e){this.disposer.add_all(...e)}}},Tpfs:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("GGSb").get("core/observable/Disposer");t.Disposer=class{constructor(...e){this._disposed=!1,this.disposables=e}get length(){return this.disposables.length}get disposed(){return this._disposed}add(e){return this._disposed||this.disposables.push(e),e}insert(e,t){return this._disposed||this.disposables.splice(e,0,t),t}add_all(...e){return this._disposed||this.disposables.push(...e),this}dispose_all(){this.dispose_at(0,this.disposables.length)}dispose(){this.dispose_all(),this._disposed=!0}dispose_at(e,t=1){for(const i of this.disposables.splice(e,t))try{i.dispose()}catch(e){o.warn("Error while disposing.",e)}}}},"Ts/k":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),n=i("n5fr");t.NOOP_UNDO={can_redo:o.property(!1),can_undo:o.property(!1),first_redo:o.property(void 0),first_undo:o.property(void 0),ensure_not_current(){},make_current(){n.undo_manager.current.val=this},redo:()=>!1,reset(){},undo:()=>!1}},VRtl:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("w6HN"),n=i("6cU9"),s=i("oyid"),r=i("PE7g"),a=i("7CyS"),d=i("tyuj"),l=i("7ZX1"),_=i("FXpb");class u extends o.ToolBar{constructor(){const e=new n.FileButton("Open file...",{icon_left:_.Icon.File,accept:".nj, .njm, .xj, .xvm"}),t=new s.CheckBox(!1,{label:"Show skeleton"}),i=new s.CheckBox(!0,{label:"Play animation"}),o=new r.NumberInput(a.PSO_FRAME_RATE,{label:"Frame rate:",min:1,max:240,step:1}),c=new r.NumberInput(1,{label:"Frame:",min:1,max:d.model_store.animation_frame_count,step:1}),p=new l.Label(d.model_store.animation_frame_count.map(e=>`/ ${e}`));super({children:[e,t,i,o,c,p]}),this.disposables(e.files.observe(({value:e})=>{e.length&&d.model_store.load_file(e[0])}),d.model_store.show_skeleton.bind_to(t.checked));const v=d.model_store.current_nj_motion.map(e=>null!=e);this.disposables(i.enabled.bind_to(v),d.model_store.animation_playing.bind_bi(i.checked),o.enabled.bind_to(v),d.model_store.animation_frame_rate.bind_to(o.value),c.enabled.bind_to(v),d.model_store.animation_frame.bind_to(c.value),c.value.bind_to(d.model_store.animation_frame.map(e=>Math.round(e))),p.enabled.bind_to(v)),this.finalize_construction(u.prototype)}}t.Model3DToolBar=u},VwSi:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("kwt4"),n=i("yRp4"),s=1296321870;var r;function a(e,t){let i=e.u32();const o=e.u32(),n=e.u16(),s=e.u16(),a=(192&s)>>6,_=15&s,u=[];for(let s=0;s=i)return e.seek_start(r),_(e,t);a=o}return s}function _(e,t){const i=[];for(let s=0;sd.quest_editor_store.undo.make_current(),!0),this.renderer_view.start_rendering(),this.disposables(a.gui_store.tool.observe(({value:e})=>{e===a.GuiTool.QuestEditor?this.renderer_view.start_rendering():this.renderer_view.stop_rendering()})),this.finalize_construction(l.prototype)}resize(e,t){return super.resize(e,t),this.renderer_view.resize(e,t),this}}t.QuestRendererView=l},WJtm:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid"),n=i("FXpb"),s=i("yar8"),r=i("sMN3"),a=i("ouMO"),d=i("nsCy"),l=i("xs7i");i("a0xr");const _=i("ExVU");class u extends o.Widget{constructor(){super(),this.element=n.el.div({class:"hunt_optimizer_OptimizationResultView"},n.el.h2({text:"Ideal Combination of Methods"})),this.disposable(r.hunt_optimizer_stores.observe_current(e=>{this.results_observer&&this.results_observer.dispose(),this.results_observer=e.result.observe(({value:e})=>this.update_table(e),{call_now:!0})},{call_now:!0})),this.finalize_construction(u.prototype)}dispose(){super.dispose(),this.results_observer&&this.results_observer.dispose(),this.table&&this.table.dispose()}update_table(e){this.table&&this.table.dispose();let t=0,i=_.Duration.fromMillis(0);if(e)for(const o of e.optimal_methods)t+=o.runs,i=i.plus(o.total_time);const o=[{title:"Difficulty",fixed:!0,width:80,render_cell:e=>d.Difficulty[e.difficulty],footer:{render_cell:()=>"Totals:"}},{title:"Method",fixed:!0,width:250,render_cell:e=>e.method_name},{title:"Ep.",fixed:!0,width:40,render_cell:e=>l.Episode[e.method_episode]},{title:"Section ID",fixed:!0,width:90,render_cell(e){const t=n.el.span({},...e.section_ids.map(e=>n.section_id_icon(e,{size:17})));return t.style.display="flex",t}},{title:"Time/Run",width:90,text_align:"center",render_cell:e=>e.method_time.toFormat("hh:mm")},{title:"Runs",width:60,text_align:"right",render_cell:e=>e.runs.toFixed(1),tooltip:e=>e.runs.toString(),footer:{render_cell:()=>t.toFixed(1),tooltip:()=>t.toString()}},{title:"Total Hours",width:60,text_align:"right",render_cell:e=>e.total_time.as("hours").toFixed(1),tooltip:e=>e.total_time.as("hours").toString(),footer:{render_cell:()=>i.as("hours").toFixed(1),tooltip:()=>i.as("hours").toString()}}];if(e)for(const t of e.wanted_items){let i=0;for(const o of e.optimal_methods)i+=o.item_counts.get(t)||0;o.push({title:t.name,width:80,text_align:"right",render_cell(e){const i=e.item_counts.get(t);return i?i.toFixed(2):""},tooltip(e){const i=e.item_counts.get(t);return i?i.toString():""},footer:{render_cell:()=>i.toFixed(2),tooltip:()=>i.toString()}})}this.table=new s.Table({class:"hunt_optimizer_OptimizationResultView_table",values:e?a.list_property(void 0,...e.optimal_methods):a.list_property(),columns:o}),this.element.append(this.table.element)}}t.OptimizationResultView=u},XDYw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yRp4"),n=i("4mUz");t.parse_area_collision_geometry=function(e){const{data_offset:t}=n.parse_rel(e,!1);e.seek_start(t);const i=e.u32();e.seek_start(i);const s={meshes:[]};for(;e.bytes_left;){const t=e.position,i=e.u32();if(0===i)break;const n={vertices:[],triangles:[]};s.meshes.push(n),e.seek_start(i);const r=e.u32(),a=e.u32(),d=e.u32(),l=e.u32();e.seek_start(a);for(let t=0;t({type:g(e,t),area_id:t.area_id,section_id:t.section_id,position:t.position,rotation:t.rotation,scale:t.scale,unknown:t.unknown,pso_type_id:t.type_id,npc_id:t.npc_id,script_label:Math.round(t.script_label),pso_roaming:t.roaming}))}function g(e,{type_id:t,scale:i,roaming:o,area_id:n}){const s=Math.abs(i.y-1)>1e-5;switch(`${t}, ${o%3}, ${e}`){case"68, 0, 1":return E.NpcType.Booma;case"68, 1, 1":return E.NpcType.Gobooma;case"68, 2, 1":return E.NpcType.Gigobooma;case"99, 0, 1":return E.NpcType.EvilShark;case"99, 1, 1":return E.NpcType.PalShark;case"99, 2, 1":return E.NpcType.GuilShark;case"166, 0, 1":return E.NpcType.Dimenian;case"166, 0, 2":return E.NpcType.Dimenian2;case"166, 1, 1":return E.NpcType.LaDimenian;case"166, 1, 2":return E.NpcType.LaDimenian2;case"166, 2, 1":return E.NpcType.SoDimenian;case"166, 2, 2":return E.NpcType.SoDimenian2;case"214, 0, 2":return E.NpcType.Mericarol;case"214, 1, 2":return E.NpcType.Mericus;case"214, 2, 2":return E.NpcType.Merikle;case"277, 0, 4":return E.NpcType.Boota;case"277, 1, 4":return E.NpcType.ZeBoota;case"277, 2, 4":return E.NpcType.BaBoota;case"279, 0, 4":return E.NpcType.Goran;case"279, 1, 4":return E.NpcType.PyroGoran;case"279, 2, 4":return E.NpcType.GoranDetonator}switch(`${t}, ${o%2}, ${e}`){case"64, 0, 1":return E.NpcType.Hildebear;case"64, 0, 2":return E.NpcType.Hildebear2;case"64, 1, 1":return E.NpcType.Hildeblue;case"64, 1, 2":return E.NpcType.Hildeblue2;case"65, 0, 1":return E.NpcType.RagRappy;case"65, 0, 2":return E.NpcType.RagRappy2;case"65, 0, 4":return E.NpcType.SandRappy;case"65, 1, 1":return E.NpcType.AlRappy;case"65, 1, 2":return E.NpcType.LoveRappy;case"65, 1, 4":return E.NpcType.DelRappy;case"128, 0, 1":return E.NpcType.Dubchic;case"128, 0, 2":return E.NpcType.Dubchic2;case"128, 1, 1":return E.NpcType.Gilchic;case"128, 1, 2":return E.NpcType.Gilchic2;case"212, 0, 2":return E.NpcType.SinowBerill;case"212, 1, 2":return E.NpcType.SinowSpigell;case"213, 0, 2":return E.NpcType.Merillia;case"213, 1, 2":return E.NpcType.Meriltas;case"215, 0, 2":return E.NpcType.UlGibbon;case"215, 1, 2":return E.NpcType.ZolGibbon;case"221, 0, 2":return E.NpcType.Dolmolm;case"221, 1, 2":return E.NpcType.Dolmdarl;case"224, 0, 2":return n>15?E.NpcType.Epsilon:E.NpcType.SinowZoa;case"224, 1, 2":return n>15?E.NpcType.Epsilon:E.NpcType.SinowZele;case"274, 0, 4":return E.NpcType.MerissaA;case"274, 1, 4":return E.NpcType.MerissaAA;case"276, 0, 4":return E.NpcType.Zu;case"276, 1, 4":return E.NpcType.Pazuzu;case"278, 0, 4":return E.NpcType.Dorphon;case"278, 1, 4":return E.NpcType.DorphonEclair;case"281, 0, 4":return s?E.NpcType.SaintMilion:E.NpcType.Kondrieu;case"281, 1, 4":return s?E.NpcType.Shambertin:E.NpcType.Kondrieu}switch(`${t}, ${e}`){case"66, 1":return E.NpcType.Monest;case"66, 2":return E.NpcType.Monest2;case"67, 1":return s?E.NpcType.SavageWolf:E.NpcType.BarbarousWolf;case"67, 2":return s?E.NpcType.SavageWolf2:E.NpcType.BarbarousWolf2;case"96, 1":return E.NpcType.GrassAssassin;case"96, 2":return E.NpcType.GrassAssassin2;case"97, 1":return n>15?E.NpcType.DelLily:s?E.NpcType.PoisonLily:E.NpcType.NarLily;case"97, 2":return n>15?E.NpcType.DelLily:s?E.NpcType.PoisonLily2:E.NpcType.NarLily2;case"98, 1":return E.NpcType.NanoDragon;case"100, 1":return s?E.NpcType.PofuillySlime:E.NpcType.PouillySlime;case"101, 1":return E.NpcType.PanArms;case"101, 2":return E.NpcType.PanArms2;case"129, 1":return E.NpcType.Garanz;case"129, 2":return E.NpcType.Garanz2;case"130, 1":return s?E.NpcType.SinowBeat:E.NpcType.SinowGold;case"131, 1":return E.NpcType.Canadine;case"132, 1":return E.NpcType.Canane;case"133, 1":return E.NpcType.Dubswitch;case"133, 2":return E.NpcType.Dubswitch2;case"160, 1":return E.NpcType.Delsaber;case"160, 2":return E.NpcType.Delsaber2;case"161, 1":return E.NpcType.ChaosSorcerer;case"161, 2":return E.NpcType.ChaosSorcerer2;case"162, 1":return E.NpcType.DarkGunner;case"164, 1":return E.NpcType.ChaosBringer;case"165, 1":return E.NpcType.DarkBelra;case"165, 2":return E.NpcType.DarkBelra2;case"167, 1":return E.NpcType.Bulclaw;case"168, 1":return E.NpcType.Claw;case"192, 1":return E.NpcType.Dragon;case"192, 2":return E.NpcType.GalGryphon;case"193, 1":return E.NpcType.DeRolLe;case"197, 1":return E.NpcType.VolOpt;case"200, 1":return E.NpcType.DarkFalz;case"202, 2":return E.NpcType.OlgaFlow;case"203, 2":return E.NpcType.BarbaRay;case"204, 2":return E.NpcType.GolDragon;case"216, 2":return E.NpcType.Gibbles;case"217, 2":return E.NpcType.Gee;case"218, 2":return E.NpcType.GiGue;case"219, 2":return E.NpcType.Deldepth;case"220, 2":return E.NpcType.Delbiter;case"222, 2":return E.NpcType.Morfos;case"223, 2":return E.NpcType.Recobox;case"225, 2":return E.NpcType.IllGill;case"272, 4":return E.NpcType.Astark;case"273, 4":return s?E.NpcType.SatelliteLizard:E.NpcType.Yowie;case"275, 4":return E.NpcType.Girtablulu}switch(t){case 4:return E.NpcType.FemaleFat;case 5:return E.NpcType.FemaleMacho;case 7:return E.NpcType.FemaleTall;case 10:return E.NpcType.MaleDwarf;case 11:return E.NpcType.MaleFat;case 12:return E.NpcType.MaleMacho;case 13:return E.NpcType.MaleOld;case 25:return E.NpcType.BlueSoldier;case 26:return E.NpcType.RedSoldier;case 27:return E.NpcType.Principal;case 28:return E.NpcType.Tekker;case 29:return E.NpcType.GuildLady;case 30:return E.NpcType.Scientist;case 31:return E.NpcType.Nurse;case 32:return E.NpcType.Irene;case 241:return E.NpcType.ItemShop;case 254:return E.NpcType.Nurse2}return E.NpcType.Unknown}function y(e){const t=new DataView(new ArrayBuffer(4));return e.map(e=>{const i=E.npc_data(e.type),o=null==i.pso_type_id?e.pso_type_id:i.pso_type_id,n=null==i.pso_roaming?e.pso_roaming:i.pso_roaming,s=null==i.pso_regular||i.pso_regular;t.setFloat32(0,e.scale.y),t.setUint32(0,-8388609&t.getUint32(0)|(s?0:8388608));const r=t.getFloat32(0);let a=new c.Vec3(e.scale.x,r,e.scale.z);return{type_id:o,section_id:e.section_id,position:e.position,rotation:e.rotation,scale:a,npc_id:e.npc_id,script_label:e.script_label,roaming:n,area_id:e.area_id,unknown:e.unknown}})}t.parse_quest=function(e,t=!1){const i=f.parse_qst(e);if(!i)return;let o,n;for(const e of i.files){const t=e.name.trim().toLowerCase();t.endsWith(".dat")?o=e:t.endsWith(".bin")&&(n=e)}if(!o)return void O.error("File contains no DAT file.");if(!n)return void O.error("File contains no BIN file.");const a=d.prs_decompress(new l.ArrayBufferCursor(o.data,u.Endianness.Little)),_=v.parse_dat(a),c=_.objs.map(e=>{const t=w.pso_id_to_object_type(e.type_id);return{type:t,id:e.id,group_id:e.group_id,area_id:e.area_id,section_id:e.section_id,position:e.position,rotation:e.rotation,properties:new Map(e.properties.map((e,i)=>3!==i||t!==w.ObjectType.ScriptCollision&&t!==w.ObjectType.ForestConsole&&t!==w.ObjectType.TalkLinkToSupport?4===i&&t===w.ObjectType.RicoMessagePod?["script_label",e]:5===i&&t===w.ObjectType.RicoMessagePod?["script_label_2",e]:[`property_${i}`,e]:["script_label",e])),unknown:e.unknown}}),E=d.prs_decompress(new l.ArrayBufferCursor(n.data,u.Endianness.Little)),g=p.parse_bin(E,function(e,t){const i=new Set([0]);for(const t of e){const e=t.properties.get("script_label");null!=e&&i.add(e);const o=t.properties.get("script_label_2");null!=o&&i.add(o)}for(const e of t)i.add(Math.round(e.script_label));return[...i]}(c,_.npcs),t);let y=h.Episode.I,b=new Map;if(g.object_code.length){let e;for(const t of g.object_code)if(t.type===s.SegmentType.Instructions&&t.labels.includes(0)){e=t;break}e?(y=function(e){const t=e.find(e=>e.opcode===r.Opcode.SET_EPISODE);if(!t)return O.debug("Function 0 has no set_episode instruction."),h.Episode.I;switch(t.args[0].value){default:case 0:return h.Episode.I;case 1:return h.Episode.II;case 2:return h.Episode.IV}}(e.instructions),b=function(e,t,i){const o=new Map;for(const e of i)e.opcode===r.Opcode.BB_MAP_DESIGNATE&&o.set(e.args[0].value,e.args[2].value);return o}(0,0,e.instructions)):O.warn("No instruction for label 0 found.")}else O.warn("File contains no instruction labels.");return{id:g.quest_id,language:g.language,name:g.quest_name,short_description:g.short_description,long_description:g.long_description,episode:y,objects:c,npcs:m(y,_.npcs),dat_unknowns:_.unknowns,object_code:g.object_code,shop_items:g.shop_items,map_designations:b}},t.write_quest_qst=function(e,t){const i=v.write_dat({objs:(o=e.objects,o.map(e=>({type_id:w.object_data(e.type).pso_id,id:e.id,group_id:e.group_id,section_id:e.section_id,position:e.position,rotation:e.rotation,properties:[...e.properties.values()],area_id:e.area_id,unknown:e.unknown}))),npcs:y(e.npcs),unknowns:e.dat_unknowns});var o;const n=p.write_bin(new p.BinFile(e.id,e.language,e.name,e.short_description,e.long_description,e.object_code,e.shop_items)),s=t.lastIndexOf("."),r=-1===s?t.slice(0,11):t.slice(0,Math.min(11,s));return f.write_qst({files:[{name:r+".dat",id:e.id,data:a.prs_compress(new _.ResizableBufferCursor(i,u.Endianness.Little)).array_buffer()},{name:r+".bin",id:e.id,data:a.prs_compress(new l.ArrayBufferCursor(n,u.Endianness.Little)).array_buffer()}]})}},Y3Jw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb");i("8TW1");class s extends o.ResizableWidget{constructor(e,t){super(),this.models=e,this.selected=t,this.element=n.create_element("ul",{class:"viewer_Model3DSelectListView"}),this.list_click=e=>{if(e.target instanceof HTMLLIElement&&e.target.dataset.index){this.selected_element&&this.selected_element.classList.remove("active"),e.target.classList.add("active");const t=parseInt(e.target.dataset.index,10);this.selected_element=e.target,this.selected.val=this.models[t]}},this.element.onclick=this.list_click,e.forEach((e,t)=>{this.element.append(n.create_element("li",{text:e.name,data:{index:t.toString()}}))}),this.disposable(t.observe(({value:e})=>{if(this.selected_element&&(this.selected_element.classList.remove("active"),this.selected_element=void 0),e&&e!==this.selected_model){const t=this.models.indexOf(e);-1!==t&&(this.selected_element=this.element.childNodes[t],this.selected_element.classList.add("active"))}})),this.finalize_construction(s.prototype)}set borders(e){e?(this.element.style.borderLeft="var(--border)",this.element.style.borderRight="var(--border)"):(this.element.style.borderLeft="none",this.element.style.borderRight="none")}}t.Model3DSelectListView=s},YkZX:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Ftn7"),n=i("Womt"),s=i("c5EP"),r=i("3CEK"),a=i("Tpfs"),d=i("Gc0Z");t.QuestRenderer=class extends o.Renderer{constructor(){super(),this._collision_geometry=new n.Object3D,this._render_geometry=new n.Object3D,this._entity_models=new n.Object3D,this.disposer=new a.Disposer,this.entity_to_mesh=new Map,this.entity_controls=this.disposer.add(new d.QuestEntityControls(this)),this.camera=new n.PerspectiveCamera(60,1,10,1e4),this.disposer.add_all(new r.QuestModelManager(this),s.quest_editor_store.debug.observe(({value:e})=>this.debug=e)),this.init_camera_controls()}get debug(){return super.debug}set debug(e){this.debug!==e&&(super.debug=e,this._render_geometry.visible=e,this.schedule_render())}get collision_geometry(){return this._collision_geometry}set collision_geometry(e){this.scene.remove(this.collision_geometry),this._collision_geometry=e,this.scene.add(e)}set render_geometry(e){this.scene.remove(this._render_geometry),this._render_geometry=e,e.visible=this.debug,this.scene.add(e)}get entity_models(){return this._entity_models}dispose(){super.dispose(),this.disposer.dispose()}set_size(e,t){this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),super.set_size(e,t)}reset_entity_models(){this.scene.remove(this._entity_models),this._entity_models=new n.Group,this.scene.add(this._entity_models),this.entity_to_mesh.clear(),this.schedule_render()}add_entity_model(e){const t=e.userData.entity;this._entity_models.add(e),this.entity_to_mesh.set(t,e),t===s.quest_editor_store.selected_entity.val&&this.entity_controls.try_highlight(t),this.schedule_render()}remove_entity_model(e){const t=this.entity_to_mesh.get(e);t&&(this.entity_to_mesh.delete(e),this._entity_models.remove(t),this.schedule_render())}get_entity_mesh(e){return this.entity_to_mesh.get(e)}}},Yq7v:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb"),s=i("5aKR"),r=i("c5EP"),a=i("IjTL"),d=i("yQqj");i("egRq");const l=i("PE7g"),_=i("Tpfs"),u=i("yRp4");class c extends o.ResizableWidget{constructor(){super(),this.element=n.el.div({class:"quest_editor_EntityInfoView",tab_index:-1}),this.no_entity_view=new s.DisabledView("No entity selected."),this.table_element=n.el.table(),this.pos_x_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.pos_y_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.pos_z_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.world_pos_x_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.world_pos_y_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.world_pos_z_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.entity_disposer=new _.Disposer;const e=r.quest_editor_store.selected_entity,t=e.map(e=>null==e),i="quest_editor_EntityInfoView_coord";this.table_element.append(n.el.tr({},n.el.th({text:"Type:"}),this.type_element=n.el.td()),n.el.tr({},n.el.th({text:"Name:"}),this.name_element=n.el.td()),n.el.tr({},n.el.th({text:"Section:"}),this.section_id_element=n.el.td()),n.el.tr({},n.el.th({text:"Section position:",col_span:2})),n.el.tr({},n.el.th({text:"X:",class:i}),n.el.td({},this.pos_x_element.element)),n.el.tr({},n.el.th({text:"Y:",class:i}),n.el.td({},this.pos_y_element.element)),n.el.tr({},n.el.th({text:"Z:",class:i}),n.el.td({},this.pos_z_element.element)),n.el.tr({},n.el.th({text:"World position:",col_span:2})),n.el.tr({},n.el.th({text:"X:",class:i}),n.el.td({},this.world_pos_x_element.element)),n.el.tr({},n.el.th({text:"Y:",class:i}),n.el.td({},this.world_pos_y_element.element)),n.el.tr({},n.el.th({text:"Z:",class:i}),n.el.td({},this.world_pos_z_element.element))),this.element.append(this.table_element,this.no_entity_view.element),this.element.addEventListener("focus",()=>r.quest_editor_store.undo.make_current(),!0),this.bind_hidden(this.table_element,t),this.disposables(this.no_entity_view.visible.bind_to(t),e.observe(({value:e})=>{if(this.entity_disposer.dispose_all(),e){this.type_element.innerText=e instanceof a.QuestNpcModel?"NPC":"Object";const t=d.entity_data(e.type).name;this.name_element.innerText=t,this.name_element.title=t,this.entity_disposer.add(e.section_id.observe(({value:e})=>{this.section_id_element.innerText=e.toString()},{call_now:!0})),this.observe(e,e.position,!1,this.pos_x_element,this.pos_y_element,this.pos_z_element),this.observe(e,e.world_position,!0,this.world_pos_x_element,this.world_pos_y_element,this.world_pos_z_element)}})),this.finalize_construction(c.prototype)}dispose(){super.dispose(),this.entity_disposer.dispose()}observe(e,t,i,o,n,s){this.entity_disposer.add_all(t.observe(({value:{x:e,y:t,z:i}})=>{o.value.val=e,n.value.val=t,s.value.val=i},{call_now:!0}),o.value.observe(({value:o})=>r.quest_editor_store.push_translate_entity_action(e,e.section.val,e.section.val,t.val,new u.Vec3(o,t.val.y,t.val.z),i)),n.value.observe(({value:o})=>r.quest_editor_store.push_translate_entity_action(e,e.section.val,e.section.val,t.val,new u.Vec3(t.val.x,o,t.val.z),i)),s.value.observe(({value:o})=>r.quest_editor_store.push_translate_entity_action(e,e.section.val,e.section.val,t.val,new u.Vec3(t.val.x,t.val.y,o),i)))}}t.EntityInfoView=c},Yuai:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.load_array_buffer=function(e){return o(this,void 0,void 0,(function*(){return(yield fetch("/assets"+e)).arrayBuffer()}))}},ZPAt:function(e,t,i){"use strict";var o,n,s;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(o=t.Kind||(t.Kind={})),t.TYPE_ANY={kind:o.Any},t.TYPE_BYTE={kind:o.Byte},t.TYPE_WORD={kind:o.Word},t.TYPE_DWORD={kind:o.DWord},t.TYPE_FLOAT={kind:o.Float},t.TYPE_LABEL={kind:o.Label},t.TYPE_I_LABEL={kind:o.ILabel},t.TYPE_D_LABEL={kind:o.DLabel},t.TYPE_S_LABEL={kind:o.SLabel},t.TYPE_STRING={kind:o.String},t.TYPE_I_LABEL_VAR={kind:o.ILabelVar},t.TYPE_REG_REF={kind:o.RegRef},t.TYPE_REG_REF_VAR={kind:o.RegRefVar},t.TYPE_POINTER={kind:o.Pointer},t.MIN_SIGNED_DWORD_VALUE=-Math.pow(2,31),t.MAX_SIGNED_DWORD_VALUE=Math.pow(2,31)-1,t.MIN_UNSIGNED_DWORD_VALUE=0,t.MAX_UNSIGNED_DWORD_VALUE=Math.pow(2,32)-1,t.MIN_DWORD_VALUE=t.MIN_SIGNED_DWORD_VALUE,t.MAX_DWORD_VALUE=t.MAX_UNSIGNED_DWORD_VALUE,function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(n=t.ParamAccess||(t.ParamAccess={}));class r{constructor(e,t,i){this.type=e,this.doc=t,this.access=i}}t.Param=r,function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(s=t.StackInteraction||(t.StackInteraction={})),t.OPCODES=[],t.OPCODES_BY_MNEMONIC=new Map;class a{constructor(e,t,i,o,n){this.code=e,this.mnemonic=t,this.doc=i,this.size=this.code<256?1:2,this.params=o,this.stack=n}}t.Opcode=a,a.NOP=t.OPCODES[0]=new a(0,"nop","No operation, does nothing.",[],void 0),a.RET=t.OPCODES[1]=new a(1,"ret","Returns control to caller.",[],void 0),a.SYNC=t.OPCODES[2]=new a(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),a.EXIT=t.OPCODES[3]=new a(3,"exit",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.THREAD=t.OPCODES[4]=new a(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.VA_START=t.OPCODES[5]=new a(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),a.VA_END=t.OPCODES[6]=new a(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),a.VA_CALL=t.OPCODES[7]=new a(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.LET=t.OPCODES[8]=new a(8,"let","Sets the first register's value to second one's value.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.LETI=t.OPCODES[9]=new a(9,"leti","Sets a register to the given value.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.LETB=t.OPCODES[10]=new a(10,"letb","Sets a register to the given value.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_BYTE,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_BYTE,void 0,void 0)],void 0),a.LETW=t.OPCODES[11]=new a(11,"letw","Sets a register to the given value.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_WORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_WORD,void 0,void 0)],void 0),a.LETA=t.OPCODES[12]=new a(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_POINTER,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.LETO=t.OPCODES[13]=new a(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_POINTER,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_LABEL,void 0,void 0)],void 0),a.UNKNOWN_0E=t.OPCODES[14]=new a(14,"unknown_0e",void 0,[],void 0),a.UNKNOWN_0F=t.OPCODES[15]=new a(15,"unknown_0f",void 0,[],void 0),a.SET=t.OPCODES[16]=new a(16,"set","Sets a register to 1.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.CLEAR=t.OPCODES[17]=new a(17,"clear","Sets a register to 0.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.REV=t.OPCODES[18]=new a(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.ReadWrite)]},void 0,void 0)],void 0),a.GSET=t.OPCODES[19]=new a(19,"gset",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GCLEAR=t.OPCODES[20]=new a(20,"gclear",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GREV=t.OPCODES[21]=new a(21,"grev",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GLET=t.OPCODES[22]=new a(22,"glet",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GGET=t.OPCODES[23]=new a(23,"gget","Sets a register to value of the given flag.",[new r(t.TYPE_WORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_WORD,void 0,n.Write)]},void 0,void 0)],void 0),a.ADD=t.OPCODES[24]=new a(24,"add",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.ADDI=t.OPCODES[25]=new a(25,"addi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.SUB=t.OPCODES[26]=new a(26,"sub",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.SUBI=t.OPCODES[27]=new a(27,"subi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.MUL=t.OPCODES[28]=new a(28,"mul",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.MULI=t.OPCODES[29]=new a(29,"muli",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.DIV=t.OPCODES[30]=new a(30,"div",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.DIVI=t.OPCODES[31]=new a(31,"divi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.AND=t.OPCODES[32]=new a(32,"and",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.ANDI=t.OPCODES[33]=new a(33,"andi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.OR=t.OPCODES[34]=new a(34,"or",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.ORI=t.OPCODES[35]=new a(35,"ori",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.XOR=t.OPCODES[36]=new a(36,"xor",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.XORI=t.OPCODES[37]=new a(37,"xori",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.MOD=t.OPCODES[38]=new a(38,"mod",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.MODI=t.OPCODES[39]=new a(39,"modi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.JMP=t.OPCODES[40]=new a(40,"jmp",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.CALL=t.OPCODES[41]=new a(41,"call",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMP_ON=t.OPCODES[42]=new a(42,"jmp_on",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_REG_REF_VAR,void 0,n.Read)],void 0),a.JMP_OFF=t.OPCODES[43]=new a(43,"jmp_off",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_REG_REF_VAR,void 0,n.Read)],void 0),a.JMP_E=t.OPCODES[44]=new a(44,"jmp_=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMPI_E=t.OPCODES[45]=new a(45,"jmpi_=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMP_NE=t.OPCODES[46]=new a(46,"jmp_!=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMPI_NE=t.OPCODES[47]=new a(47,"jmpi_!=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMP_G=t.OPCODES[48]=new a(48,"ujmp_>",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMPI_G=t.OPCODES[49]=new a(49,"ujmpi_>",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMP_G=t.OPCODES[50]=new a(50,"jmp_>",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMPI_G=t.OPCODES[51]=new a(51,"jmpi_>",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMP_L=t.OPCODES[52]=new a(52,"ujmp_<",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMPI_L=t.OPCODES[53]=new a(53,"ujmpi_<",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMP_L=t.OPCODES[54]=new a(54,"jmp_<",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMPI_L=t.OPCODES[55]=new a(55,"jmpi_<",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMP_GE=t.OPCODES[56]=new a(56,"ujmp_>=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMPI_GE=t.OPCODES[57]=new a(57,"ujmpi_>=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMP_GE=t.OPCODES[58]=new a(58,"jmp_>=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMPI_GE=t.OPCODES[59]=new a(59,"jmpi_>=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMP_LE=t.OPCODES[60]=new a(60,"ujmp_<=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.UJMPI_LE=t.OPCODES[61]=new a(61,"ujmpi_<=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMP_LE=t.OPCODES[62]=new a(62,"jmp_<=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.JMPI_LE=t.OPCODES[63]=new a(63,"jmpi_<=",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.SWITCH_JMP=t.OPCODES[64]=new a(64,"switch_jmp",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL_VAR,void 0,void 0)],void 0),a.SWITCH_CALL=t.OPCODES[65]=new a(65,"switch_call",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_I_LABEL_VAR,void 0,void 0)],void 0),a.STACK_PUSH=t.OPCODES[66]=new a(66,"stack_push",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.STACK_POP=t.OPCODES[67]=new a(67,"stack_pop",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.STACK_PUSHM=t.OPCODES[68]=new a(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new r(t.TYPE_REG_REF,void 0,n.Read),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.STACK_POPM=t.OPCODES[69]=new a(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new r(t.TYPE_REG_REF,void 0,n.Write),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.UNKNOWN_46=t.OPCODES[70]=new a(70,"unknown_46",void 0,[],void 0),a.UNKNOWN_47=t.OPCODES[71]=new a(71,"unknown_47",void 0,[],void 0),a.ARG_PUSHR=t.OPCODES[72]=new a(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],s.Push),a.ARG_PUSHL=t.OPCODES[73]=new a(73,"arg_pushl","Pushes the given value onto the stack.",[new r(t.TYPE_DWORD,void 0,void 0)],s.Push),a.ARG_PUSHB=t.OPCODES[74]=new a(74,"arg_pushb","Pushes the given value onto the stack.",[new r(t.TYPE_BYTE,void 0,void 0)],s.Push),a.ARG_PUSHW=t.OPCODES[75]=new a(75,"arg_pushw","Pushes the given value onto the stack.",[new r(t.TYPE_WORD,void 0,void 0)],s.Push),a.ARG_PUSHA=t.OPCODES[76]=new a(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],s.Push),a.ARG_PUSHO=t.OPCODES[77]=new a(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new r(t.TYPE_LABEL,void 0,void 0)],s.Push),a.ARG_PUSHS=t.OPCODES[78]=new a(78,"arg_pushs","Pushes the given value onto the stack.",[new r(t.TYPE_STRING,void 0,void 0)],s.Push),a.UNKNOWN_4F=t.OPCODES[79]=new a(79,"unknown_4f",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.MESSAGE=t.OPCODES[80]=new a(80,"message",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.LIST=t.OPCODES[81]=new a(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_BYTE,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.FADEIN=t.OPCODES[82]=new a(82,"fadein",void 0,[],void 0),a.FADEOUT=t.OPCODES[83]=new a(83,"fadeout",void 0,[],void 0),a.SE=t.OPCODES[84]=new a(84,"se",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BGM=t.OPCODES[85]=new a(85,"bgm",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_56=t.OPCODES[86]=new a(86,"unknown_56",void 0,[],void 0),a.UNKNOWN_57=t.OPCODES[87]=new a(87,"unknown_57",void 0,[],void 0),a.ENABLE=t.OPCODES[88]=new a(88,"enable",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.DISABLE=t.OPCODES[89]=new a(89,"disable",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.WINDOW_MSG=t.OPCODES[90]=new a(90,"window_msg",void 0,[new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.ADD_MSG=t.OPCODES[91]=new a(91,"add_msg",void 0,[new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.MESEND=t.OPCODES[92]=new a(92,"mesend",void 0,[],void 0),a.GETTIME=t.OPCODES[93]=new a(93,"gettime",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.WINEND=t.OPCODES[94]=new a(94,"winend",void 0,[],void 0),a.UNKNOWN_5F=t.OPCODES[95]=new a(95,"unknown_5f",void 0,[],void 0),a.NPC_CRT_V3=t.OPCODES[96]=new a(96,"npc_crt_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_STOP=t.OPCODES[97]=new a(97,"npc_stop",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.NPC_PLAY=t.OPCODES[98]=new a(98,"npc_play",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.NPC_KILL=t.OPCODES[99]=new a(99,"npc_kill",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.NPC_NONT=t.OPCODES[100]=new a(100,"npc_nont",void 0,[],void 0),a.NPC_TALK=t.OPCODES[101]=new a(101,"npc_talk",void 0,[],void 0),a.NPC_CRP_V3=t.OPCODES[102]=new a(102,"npc_crp_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read),new r(t.TYPE_ANY,void 0,n.Read),new r(t.TYPE_ANY,void 0,n.Read),new r(t.TYPE_I_LABEL,void 0,n.Read),new r(t.TYPE_ANY,void 0,n.Read),new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_67=t.OPCODES[103]=new a(103,"unknown_67",void 0,[],void 0),a.CREATE_PIPE=t.OPCODES[104]=new a(104,"create_pipe",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.P_HPSTAT_V3=t.OPCODES[105]=new a(105,"p_hpstat_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.P_DEAD_V3=t.OPCODES[106]=new a(106,"p_dead_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.P_DISABLEWARP=t.OPCODES[107]=new a(107,"p_disablewarp",void 0,[],void 0),a.P_ENABLEWARP=t.OPCODES[108]=new a(108,"p_enablewarp",void 0,[],void 0),a.P_MOVE_V3=t.OPCODES[109]=new a(109,"p_move_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.P_LOOK=t.OPCODES[110]=new a(110,"p_look",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_6F=t.OPCODES[111]=new a(111,"unknown_6f",void 0,[],void 0),a.P_ACTION_DISABLE=t.OPCODES[112]=new a(112,"p_action_disable",void 0,[],void 0),a.P_ACTION_ENABLE=t.OPCODES[113]=new a(113,"p_action_enable",void 0,[],void 0),a.DISABLE_MOVEMENT1=t.OPCODES[114]=new a(114,"disable_movement1",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.ENABLE_MOVEMENT1=t.OPCODES[115]=new a(115,"enable_movement1",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.P_NONCOL=t.OPCODES[116]=new a(116,"p_noncol",void 0,[],void 0),a.P_COL=t.OPCODES[117]=new a(117,"p_col",void 0,[],void 0),a.P_SETPOS=t.OPCODES[118]=new a(118,"p_setpos","Sets a player's position.",[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"X coordinate.",n.Read),new r(t.TYPE_DWORD,"Y coordinate.",n.Read),new r(t.TYPE_DWORD,"Z coordinate.",n.Read),new r(t.TYPE_DWORD,"Y-axis rotation.",n.Read)]},void 0,void 0)],s.Pop),a.P_RETURN_GUILD=t.OPCODES[119]=new a(119,"p_return_guild",void 0,[],void 0),a.P_TALK_GUILD=t.OPCODES[120]=new a(120,"p_talk_guild",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.NPC_TALK_PL_V3=t.OPCODES[121]=new a(121,"npc_talk_pl_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_TALK_KILL=t.OPCODES[122]=new a(122,"npc_talk_kill",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.NPC_CRTPK_V3=t.OPCODES[123]=new a(123,"npc_crtpk_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_CRPPK_V3=t.OPCODES[124]=new a(124,"npc_crppk_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_CRPTALK_V3=t.OPCODES[125]=new a(125,"npc_crptalk_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.P_LOOK_AT_V1=t.OPCODES[126]=new a(126,"p_look_at_v1",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.NPC_CRP_ID_V3=t.OPCODES[127]=new a(127,"npc_crp_id_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.CAM_QUAKE=t.OPCODES[128]=new a(128,"cam_quake",void 0,[],void 0),a.CAM_ADJ=t.OPCODES[129]=new a(129,"cam_adj",void 0,[],void 0),a.CAM_ZMIN=t.OPCODES[130]=new a(130,"cam_zmin",void 0,[],void 0),a.CAM_ZMOUT=t.OPCODES[131]=new a(131,"cam_zmout",void 0,[],void 0),a.CAM_PAN_V3=t.OPCODES[132]=new a(132,"cam_pan_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.GAME_LEV_SUPER=t.OPCODES[133]=new a(133,"game_lev_super",void 0,[],void 0),a.GAME_LEV_RESET=t.OPCODES[134]=new a(134,"game_lev_reset",void 0,[],void 0),a.POS_PIPE_V3=t.OPCODES[135]=new a(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"X coordinate.",n.Read),new r(t.TYPE_DWORD,"Y coordinate.",n.Read),new r(t.TYPE_DWORD,"Z coordinate.",n.Read),new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.IF_ZONE_CLEAR=t.OPCODES[136]=new a(136,"if_zone_clear",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.CHK_ENE_NUM=t.OPCODES[137]=new a(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNHIDE_OBJ=t.OPCODES[138]=new a(138,"unhide_obj",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.UNHIDE_ENE=t.OPCODES[139]=new a(139,"unhide_ene",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.AT_COORDS_CALL=t.OPCODES[140]=new a(140,"at_coords_call",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_I_LABEL,void 0,n.Read)]},void 0,void 0)],void 0),a.AT_COORDS_TALK=t.OPCODES[141]=new a(141,"at_coords_talk",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_I_LABEL,void 0,n.Read)]},void 0,void 0)],void 0),a.COL_NPCIN=t.OPCODES[142]=new a(142,"col_npcin",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_I_LABEL,void 0,n.Read)]},void 0,void 0)],void 0),a.COL_NPCINR=t.OPCODES[143]=new a(143,"col_npcinr",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.SWITCH_ON=t.OPCODES[144]=new a(144,"switch_on",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SWITCH_OFF=t.OPCODES[145]=new a(145,"switch_off",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.PLAYBGM_EPI=t.OPCODES[146]=new a(146,"playbgm_epi",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SET_MAINWARP=t.OPCODES[147]=new a(147,"set_mainwarp",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SET_OBJ_PARAM=t.OPCODES[148]=new a(148,"set_obj_param","Creates a targetable object.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"X coordinate.",n.Read),new r(t.TYPE_DWORD,"Y coordinate.",n.Read),new r(t.TYPE_DWORD,"Z coordinate.",n.Read),new r(t.TYPE_DWORD,"Collision radius.",n.Read),new r(t.TYPE_I_LABEL,"Function label.",n.Read),new r(t.TYPE_DWORD,"Vertical position of the cursor.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},"Object handle.",void 0)],void 0),a.SET_FLOOR_HANDLER=t.OPCODES[149]=new a(149,"set_floor_handler",void 0,[new r(t.TYPE_DWORD,"Floor number.",void 0),new r(t.TYPE_I_LABEL,"Handler function label.",void 0)],s.Pop),a.CLR_FLOOR_HANDLER=t.OPCODES[150]=new a(150,"clr_floor_handler",void 0,[new r(t.TYPE_DWORD,"Floor number.",void 0)],s.Pop),a.COL_PLINAW=t.OPCODES[151]=new a(151,"col_plinaw",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.HUD_HIDE=t.OPCODES[152]=new a(152,"hud_hide",void 0,[],void 0),a.HUD_SHOW=t.OPCODES[153]=new a(153,"hud_show",void 0,[],void 0),a.CINE_ENABLE=t.OPCODES[154]=new a(154,"cine_enable",void 0,[],void 0),a.CINE_DISABLE=t.OPCODES[155]=new a(155,"cine_disable",void 0,[],void 0),a.UNKNOWN_9C=t.OPCODES[156]=new a(156,"unknown_9c",void 0,[],void 0),a.UNKNOWN_9D=t.OPCODES[157]=new a(157,"unknown_9d",void 0,[],void 0),a.UNKNOWN_9E=t.OPCODES[158]=new a(158,"unknown_9e",void 0,[],void 0),a.UNKNOWN_9F=t.OPCODES[159]=new a(159,"unknown_9f",void 0,[],void 0),a.UNKNOWN_A0=t.OPCODES[160]=new a(160,"unknown_a0",void 0,[],void 0),a.SET_QT_FAILURE=t.OPCODES[161]=new a(161,"set_qt_failure",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.SET_QT_SUCCESS=t.OPCODES[162]=new a(162,"set_qt_success",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.CLR_QT_FAILURE=t.OPCODES[163]=new a(163,"clr_qt_failure",void 0,[],void 0),a.CLR_QT_SUCCESS=t.OPCODES[164]=new a(164,"clr_qt_success",void 0,[],void 0),a.SET_QT_CANCEL=t.OPCODES[165]=new a(165,"set_qt_cancel",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.CLR_QT_CANCEL=t.OPCODES[166]=new a(166,"clr_qt_cancel",void 0,[],void 0),a.UNKNOWN_A7=t.OPCODES[167]=new a(167,"unknown_a7",void 0,[],void 0),a.PL_WALK_V3=t.OPCODES[168]=new a(168,"pl_walk_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_A9=t.OPCODES[169]=new a(169,"unknown_a9",void 0,[],void 0),a.UNKNOWN_AA=t.OPCODES[170]=new a(170,"unknown_aa",void 0,[],void 0),a.UNKNOWN_AB=t.OPCODES[171]=new a(171,"unknown_ab",void 0,[],void 0),a.UNKNOWN_AC=t.OPCODES[172]=new a(172,"unknown_ac",void 0,[],void 0),a.UNKNOWN_AD=t.OPCODES[173]=new a(173,"unknown_ad",void 0,[],void 0),a.UNKNOWN_AE=t.OPCODES[174]=new a(174,"unknown_ae",void 0,[],void 0),a.UNKNOWN_AF=t.OPCODES[175]=new a(175,"unknown_af",void 0,[],void 0),a.PL_ADD_MESETA=t.OPCODES[176]=new a(176,"pl_add_meseta",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.THREAD_STG=t.OPCODES[177]=new a(177,"thread_stg",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.DEL_OBJ_PARAM=t.OPCODES[178]=new a(178,"del_obj_param",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},"Object handle.",void 0)],void 0),a.ITEM_CREATE=t.OPCODES[179]=new a(179,"item_create",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.ITEM_CREATE2=t.OPCODES[180]=new a(180,"item_create2",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.ITEM_DELETE=t.OPCODES[181]=new a(181,"item_delete",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.ITEM_DELETE2=t.OPCODES[182]=new a(182,"item_delete2","Deletes an item from the player's inventory.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.ITEM_CHECK=t.OPCODES[183]=new a(183,"item_check",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.SETEVT=t.OPCODES[184]=new a(184,"setevt",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.GET_DIFFLVL=t.OPCODES[185]=new a(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.SET_QT_EXIT=t.OPCODES[186]=new a(186,"set_qt_exit",void 0,[new r(t.TYPE_I_LABEL,void 0,void 0)],void 0),a.CLR_QT_EXIT=t.OPCODES[187]=new a(187,"clr_qt_exit",void 0,[],void 0),a.UNKNOWN_BC=t.OPCODES[188]=new a(188,"unknown_bc",void 0,[],void 0),a.UNKNOWN_BD=t.OPCODES[189]=new a(189,"unknown_bd",void 0,[],void 0),a.UNKNOWN_BE=t.OPCODES[190]=new a(190,"unknown_be",void 0,[],void 0),a.UNKNOWN_BF=t.OPCODES[191]=new a(191,"unknown_bf",void 0,[],void 0),a.PARTICLE_V3=t.OPCODES[192]=new a(192,"particle_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_TEXT=t.OPCODES[193]=new a(193,"npc_text",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.NPC_CHKWARP=t.OPCODES[194]=new a(194,"npc_chkwarp",void 0,[],void 0),a.PL_PKOFF=t.OPCODES[195]=new a(195,"pl_pkoff",void 0,[],void 0),a.MAP_DESIGNATE=t.OPCODES[196]=new a(196,"map_designate",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.MASTERKEY_ON=t.OPCODES[197]=new a(197,"masterkey_on",void 0,[],void 0),a.MASTERKEY_OFF=t.OPCODES[198]=new a(198,"masterkey_off",void 0,[],void 0),a.WINDOW_TIME=t.OPCODES[199]=new a(199,"window_time",void 0,[],void 0),a.WINEND_TIME=t.OPCODES[200]=new a(200,"winend_time",void 0,[],void 0),a.WINSET_TIME=t.OPCODES[201]=new a(201,"winset_time",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GETMTIME=t.OPCODES[202]=new a(202,"getmtime",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.SET_QUEST_BOARD_HANDLER=t.OPCODES[203]=new a(203,"set_quest_board_handler",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.CLEAR_QUEST_BOARD_HANDLER=t.OPCODES[204]=new a(204,"clear_quest_board_handler",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.PARTICLE_ID_V3=t.OPCODES[205]=new a(205,"particle_id_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_CRPTALK_ID_V3=t.OPCODES[206]=new a(206,"npc_crptalk_id_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.NPC_LANG_CLEAN=t.OPCODES[207]=new a(207,"npc_lang_clean",void 0,[],void 0),a.PL_PKON=t.OPCODES[208]=new a(208,"pl_pkon",void 0,[],void 0),a.PL_CHK_ITEM2=t.OPCODES[209]=new a(209,"pl_chk_item2",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.ENABLE_MAINMENU=t.OPCODES[210]=new a(210,"enable_mainmenu",void 0,[],void 0),a.DISABLE_MAINMENU=t.OPCODES[211]=new a(211,"disable_mainmenu",void 0,[],void 0),a.START_BATTLEBGM=t.OPCODES[212]=new a(212,"start_battlebgm",void 0,[],void 0),a.END_BATTLEBGM=t.OPCODES[213]=new a(213,"end_battlebgm",void 0,[],void 0),a.DISP_MSG_QB=t.OPCODES[214]=new a(214,"disp_msg_qb",void 0,[new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.CLOSE_MSG_QB=t.OPCODES[215]=new a(215,"close_msg_qb",void 0,[],void 0),a.SET_EVENTFLAG_V3=t.OPCODES[216]=new a(216,"set_eventflag_v3",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SYNC_LETI=t.OPCODES[217]=new a(217,"sync_leti",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.SET_RETURNHUNTER=t.OPCODES[218]=new a(218,"set_returnhunter",void 0,[],void 0),a.SET_RETURNCITY=t.OPCODES[219]=new a(219,"set_returncity",void 0,[],void 0),a.LOAD_PVR=t.OPCODES[220]=new a(220,"load_pvr",void 0,[],void 0),a.LOAD_MIDI=t.OPCODES[221]=new a(221,"load_midi",void 0,[],void 0),a.UNKNOWN_DE=t.OPCODES[222]=new a(222,"unknown_de",void 0,[],void 0),a.NPC_PARAM_V3=t.OPCODES[223]=new a(223,"npc_param_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.PAD_DRAGON=t.OPCODES[224]=new a(224,"pad_dragon",void 0,[],void 0),a.CLEAR_MAINWARP=t.OPCODES[225]=new a(225,"clear_mainwarp",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.PCAM_PARAM_V3=t.OPCODES[226]=new a(226,"pcam_param_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.START_SETEVT_V3=t.OPCODES[227]=new a(227,"start_setevt_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.WARP_ON=t.OPCODES[228]=new a(228,"warp_on",void 0,[],void 0),a.WARP_OFF=t.OPCODES[229]=new a(229,"warp_off",void 0,[],void 0),a.GET_SLOTNUMBER=t.OPCODES[230]=new a(230,"get_slotnumber",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_SERVERNUMBER=t.OPCODES[231]=new a(231,"get_servernumber",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.SET_EVENTFLAG2=t.OPCODES[232]=new a(232,"set_eventflag2",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],s.Pop),a.RES=t.OPCODES[233]=new a(233,"res",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_EA=t.OPCODES[234]=new a(234,"unknown_ea",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.ENABLE_BGMCTRL=t.OPCODES[235]=new a(235,"enable_bgmctrl",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SW_SEND=t.OPCODES[236]=new a(236,"sw_send",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.CREATE_BGMCTRL=t.OPCODES[237]=new a(237,"create_bgmctrl",void 0,[],void 0),a.PL_ADD_MESETA2=t.OPCODES[238]=new a(238,"pl_add_meseta2",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SYNC_REGISTER=t.OPCODES[239]=new a(239,"sync_register",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SEND_REGWORK=t.OPCODES[240]=new a(240,"send_regwork",void 0,[],void 0),a.LETI_FIXED_CAMERA_V3=t.OPCODES[241]=new a(241,"leti_fixed_camera_v3",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.DEFAULT_CAMERA_POS1=t.OPCODES[242]=new a(242,"default_camera_pos1",void 0,[],void 0),a.UNKNOWN_F3=t.OPCODES[243]=new a(243,"unknown_f3",void 0,[],void 0),a.UNKNOWN_F4=t.OPCODES[244]=new a(244,"unknown_f4",void 0,[],void 0),a.UNKNOWN_F5=t.OPCODES[245]=new a(245,"unknown_f5",void 0,[],void 0),a.UNKNOWN_F6=t.OPCODES[246]=new a(246,"unknown_f6",void 0,[],void 0),a.UNKNOWN_F7=t.OPCODES[247]=new a(247,"unknown_f7",void 0,[],void 0),a.UNKNOWN_F8=t.OPCODES[248]=new a(248,"unknown_f8",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F9=t.OPCODES[249]=new a(249,"unknown_f9",void 0,[],void 0),a.GET_GC_NUMBER=t.OPCODES[250]=new a(250,"get_gc_number",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_FB=t.OPCODES[251]=new a(251,"unknown_fb",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.UNKNOWN_FC=t.OPCODES[252]=new a(252,"unknown_fc",void 0,[],void 0),a.UNKNOWN_FD=t.OPCODES[253]=new a(253,"unknown_fd",void 0,[],void 0),a.UNKNOWN_FE=t.OPCODES[254]=new a(254,"unknown_fe",void 0,[],void 0),a.UNKNOWN_FF=t.OPCODES[255]=new a(255,"unknown_ff",void 0,[],void 0),a.UNKNOWN_F800=t.OPCODES[63488]=new a(63488,"unknown_f800",void 0,[],void 0),a.SET_CHAT_CALLBACK=t.OPCODES[63489]=new a(63489,"set_chat_callback",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.UNKNOWN_F802=t.OPCODES[63490]=new a(63490,"unknown_f802",void 0,[],void 0),a.UNKNOWN_F803=t.OPCODES[63491]=new a(63491,"unknown_f803",void 0,[],void 0),a.UNKNOWN_F804=t.OPCODES[63492]=new a(63492,"unknown_f804",void 0,[],void 0),a.UNKNOWN_F805=t.OPCODES[63493]=new a(63493,"unknown_f805",void 0,[],void 0),a.UNKNOWN_F806=t.OPCODES[63494]=new a(63494,"unknown_f806",void 0,[],void 0),a.UNKNOWN_F807=t.OPCODES[63495]=new a(63495,"unknown_f807",void 0,[],void 0),a.GET_DIFFICULTY_LEVEL2=t.OPCODES[63496]=new a(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_NUMBER_OF_PLAYER1=t.OPCODES[63497]=new a(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_COORD_OF_PLAYER=t.OPCODES[63498]=new a(63498,"get_coord_of_player","Retrieves a player's position.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"X coordinate.",n.Write),new r(t.TYPE_DWORD,"Y coordinate.",n.Write),new r(t.TYPE_DWORD,"Z coordinate.",n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.ENABLE_MAP=t.OPCODES[63499]=new a(63499,"enable_map",void 0,[],void 0),a.DISABLE_MAP=t.OPCODES[63500]=new a(63500,"disable_map",void 0,[],void 0),a.MAP_DESIGNATE_EX=t.OPCODES[63501]=new a(63501,"map_designate_ex",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F80E=t.OPCODES[63502]=new a(63502,"unknown_f80e",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F80F=t.OPCODES[63503]=new a(63503,"unknown_f80f",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BA_INITIAL_FLOOR=t.OPCODES[63504]=new a(63504,"ba_initial_floor",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SET_BA_RULES=t.OPCODES[63505]=new a(63505,"set_ba_rules",void 0,[],void 0),a.UNKNOWN_F812=t.OPCODES[63506]=new a(63506,"unknown_f812",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F813=t.OPCODES[63507]=new a(63507,"unknown_f813",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F814=t.OPCODES[63508]=new a(63508,"unknown_f814",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F815=t.OPCODES[63509]=new a(63509,"unknown_f815",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F816=t.OPCODES[63510]=new a(63510,"unknown_f816",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F817=t.OPCODES[63511]=new a(63511,"unknown_f817",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F818=t.OPCODES[63512]=new a(63512,"unknown_f818",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F819=t.OPCODES[63513]=new a(63513,"unknown_f819",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F81A=t.OPCODES[63514]=new a(63514,"unknown_f81a",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F81B=t.OPCODES[63515]=new a(63515,"unknown_f81b",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BA_DISP_MSG=t.OPCODES[63516]=new a(63516,"ba_disp_msg",void 0,[new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.DEATH_LVL_UP=t.OPCODES[63517]=new a(63517,"death_lvl_up",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.DEATH_TECH_LVL_UP=t.OPCODES[63518]=new a(63518,"death_tech_lvl_up",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F81F=t.OPCODES[63519]=new a(63519,"unknown_f81f",void 0,[],void 0),a.CMODE_STAGE=t.OPCODES[63520]=new a(63520,"cmode_stage",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F821=t.OPCODES[63521]=new a(63521,"unknown_f821",void 0,[],void 0),a.UNKNOWN_F822=t.OPCODES[63522]=new a(63522,"unknown_f822",void 0,[],void 0),a.UNKNOWN_F823=t.OPCODES[63523]=new a(63523,"unknown_f823",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F824=t.OPCODES[63524]=new a(63524,"unknown_f824",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.EXP_MULTIPLICATION=t.OPCODES[63525]=new a(63525,"exp_multiplication",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.EXP_DIVISION=t.OPCODES[63526]=new a(63526,"exp_division",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_USER_IS_DEAD=t.OPCODES[63527]=new a(63527,"get_user_is_dead",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.GO_FLOOR=t.OPCODES[63528]=new a(63528,"go_floor","Sends a player to the given floor.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Floor ID.",n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F829=t.OPCODES[63529]=new a(63529,"unknown_f829",void 0,[],void 0),a.UNKNOWN_F82A=t.OPCODES[63530]=new a(63530,"unknown_f82a",void 0,[],void 0),a.UNLOCK_DOOR2=t.OPCODES[63531]=new a(63531,"unlock_door2",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.LOCK_DOOR2=t.OPCODES[63532]=new a(63532,"lock_door2",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.IF_SWITCH_NOT_PRESSED=t.OPCODES[63533]=new a(63533,"if_switch_not_pressed",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.IF_SWITCH_PRESSED=t.OPCODES[63534]=new a(63534,"if_switch_pressed",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Floor ID.",n.Read),new r(t.TYPE_DWORD,"Switch ID.",n.Read),new r(t.TYPE_DWORD,"Will be set to 1 if the switch is pressed, 0 otherwise.",n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F82F=t.OPCODES[63535]=new a(63535,"unknown_f82f",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.CONTROL_DRAGON=t.OPCODES[63536]=new a(63536,"control_dragon",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.RELEASE_DRAGON=t.OPCODES[63537]=new a(63537,"release_dragon",void 0,[],void 0),a.UNKNOWN_F832=t.OPCODES[63538]=new a(63538,"unknown_f832",void 0,[],void 0),a.UNKNOWN_F833=t.OPCODES[63539]=new a(63539,"unknown_f833",void 0,[],void 0),a.UNKNOWN_F834=t.OPCODES[63540]=new a(63540,"unknown_f834",void 0,[],void 0),a.UNKNOWN_F835=t.OPCODES[63541]=new a(63541,"unknown_f835",void 0,[],void 0),a.UNKNOWN_F836=t.OPCODES[63542]=new a(63542,"unknown_f836",void 0,[],void 0),a.UNKNOWN_F837=t.OPCODES[63543]=new a(63543,"unknown_f837",void 0,[],void 0),a.SHRINK=t.OPCODES[63544]=new a(63544,"shrink",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.UNSHRINK=t.OPCODES[63545]=new a(63545,"unshrink",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F83A=t.OPCODES[63546]=new a(63546,"unknown_f83a",void 0,[],void 0),a.UNKNOWN_F83B=t.OPCODES[63547]=new a(63547,"unknown_f83b",void 0,[],void 0),a.DISPLAY_CLOCK2=t.OPCODES[63548]=new a(63548,"display_clock2",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F83D=t.OPCODES[63549]=new a(63549,"unknown_f83d",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.DELETE_AREA_TITLE=t.OPCODES[63550]=new a(63550,"delete_area_title",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F83F=t.OPCODES[63551]=new a(63551,"unknown_f83f",void 0,[],void 0),a.LOAD_NPC_DATA=t.OPCODES[63552]=new a(63552,"load_npc_data",void 0,[],void 0),a.GET_NPC_DATA=t.OPCODES[63553]=new a(63553,"get_npc_data",void 0,[new r(t.TYPE_D_LABEL,void 0,void 0)],void 0),a.UNKNOWN_F842=t.OPCODES[63554]=new a(63554,"unknown_f842",void 0,[],void 0),a.UNKNOWN_F843=t.OPCODES[63555]=new a(63555,"unknown_f843",void 0,[],void 0),a.UNKNOWN_F844=t.OPCODES[63556]=new a(63556,"unknown_f844",void 0,[],void 0),a.UNKNOWN_F845=t.OPCODES[63557]=new a(63557,"unknown_f845",void 0,[],void 0),a.UNKNOWN_F846=t.OPCODES[63558]=new a(63558,"unknown_f846",void 0,[],void 0),a.UNKNOWN_F847=t.OPCODES[63559]=new a(63559,"unknown_f847",void 0,[],void 0),a.GIVE_DAMAGE_SCORE=t.OPCODES[63560]=new a(63560,"give_damage_score",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.TAKE_DAMAGE_SCORE=t.OPCODES[63561]=new a(63561,"take_damage_score",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNK_SCORE_F84A=t.OPCODES[63562]=new a(63562,"unk_score_f84a",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNK_SCORE_F84B=t.OPCODES[63563]=new a(63563,"unk_score_f84b",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.KILL_SCORE=t.OPCODES[63564]=new a(63564,"kill_score",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.DEATH_SCORE=t.OPCODES[63565]=new a(63565,"death_score",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNK_SCORE_F84E=t.OPCODES[63566]=new a(63566,"unk_score_f84e",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.ENEMY_DEATH_SCORE=t.OPCODES[63567]=new a(63567,"enemy_death_score",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.MESETA_SCORE=t.OPCODES[63568]=new a(63568,"meseta_score",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F851=t.OPCODES[63569]=new a(63569,"unknown_f851",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F852=t.OPCODES[63570]=new a(63570,"unknown_f852",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.REVERSE_WARPS=t.OPCODES[63571]=new a(63571,"reverse_warps",void 0,[],void 0),a.UNREVERSE_WARPS=t.OPCODES[63572]=new a(63572,"unreverse_warps",void 0,[],void 0),a.SET_ULT_MAP=t.OPCODES[63573]=new a(63573,"set_ult_map",void 0,[],void 0),a.UNSET_ULT_MAP=t.OPCODES[63574]=new a(63574,"unset_ult_map",void 0,[],void 0),a.SET_AREA_TITLE=t.OPCODES[63575]=new a(63575,"set_area_title",void 0,[new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.UNKNOWN_F858=t.OPCODES[63576]=new a(63576,"unknown_f858",void 0,[],void 0),a.UNKNOWN_F859=t.OPCODES[63577]=new a(63577,"unknown_f859",void 0,[],void 0),a.EQUIP_ITEM=t.OPCODES[63578]=new a(63578,"equip_item",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.UNEQUIP_ITEM=t.OPCODES[63579]=new a(63579,"unequip_item",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F85C=t.OPCODES[63580]=new a(63580,"unknown_f85c",void 0,[],void 0),a.UNKNOWN_F85D=t.OPCODES[63581]=new a(63581,"unknown_f85d",void 0,[],void 0),a.UNKNOWN_F85E=t.OPCODES[63582]=new a(63582,"unknown_f85e",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F85F=t.OPCODES[63583]=new a(63583,"unknown_f85f",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F860=t.OPCODES[63584]=new a(63584,"unknown_f860",void 0,[],void 0),a.UNKNOWN_F861=t.OPCODES[63585]=new a(63585,"unknown_f861",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F862=t.OPCODES[63586]=new a(63586,"unknown_f862",void 0,[],void 0),a.UNKNOWN_F863=t.OPCODES[63587]=new a(63587,"unknown_f863",void 0,[],void 0),a.CMODE_RANK=t.OPCODES[63588]=new a(63588,"cmode_rank",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.AWARD_ITEM_NAME=t.OPCODES[63589]=new a(63589,"award_item_name",void 0,[],void 0),a.AWARD_ITEM_SELECT=t.OPCODES[63590]=new a(63590,"award_item_select",void 0,[],void 0),a.AWARD_ITEM_GIVE_TO=t.OPCODES[63591]=new a(63591,"award_item_give_to",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F868=t.OPCODES[63592]=new a(63592,"unknown_f868",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F869=t.OPCODES[63593]=new a(63593,"unknown_f869",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.ITEM_CREATE_CMODE=t.OPCODES[63594]=new a(63594,"item_create_cmode",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F86B=t.OPCODES[63595]=new a(63595,"unknown_f86b",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.AWARD_ITEM_OK=t.OPCODES[63596]=new a(63596,"award_item_ok",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F86D=t.OPCODES[63597]=new a(63597,"unknown_f86d",void 0,[],void 0),a.UNKNOWN_F86E=t.OPCODES[63598]=new a(63598,"unknown_f86e",void 0,[],void 0),a.BA_SET_LIVES=t.OPCODES[63599]=new a(63599,"ba_set_lives",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BA_SET_TECH_LVL=t.OPCODES[63600]=new a(63600,"ba_set_tech_lvl",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BA_SET_LVL=t.OPCODES[63601]=new a(63601,"ba_set_lvl",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BA_SET_TIME_LIMIT=t.OPCODES[63602]=new a(63602,"ba_set_time_limit",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BOSS_IS_DEAD=t.OPCODES[63603]=new a(63603,"boss_is_dead",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F874=t.OPCODES[63604]=new a(63604,"unknown_f874",void 0,[],void 0),a.UNKNOWN_F875=t.OPCODES[63605]=new a(63605,"unknown_f875",void 0,[],void 0),a.UNKNOWN_F876=t.OPCODES[63606]=new a(63606,"unknown_f876",void 0,[],void 0),a.ENABLE_TECHS=t.OPCODES[63607]=new a(63607,"enable_techs","Enables technique use for the given player.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.DISABLE_TECHS=t.OPCODES[63608]=new a(63608,"disable_techs","Disables technique use for the given player.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.GET_GENDER=t.OPCODES[63609]=new a(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player gender.",n.Write)]},void 0,void 0)],void 0),a.GET_CHARA_CLASS=t.OPCODES[63610]=new a(63610,"get_chara_class","Retrieves the player's race and character class.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player race. 0 If human, 1 if newman, 2 if cast.",n.Write),new r(t.TYPE_DWORD,"Player class. 0 If hunter, 1 if ranger, 2 if force.",n.Write)]},void 0,void 0)],void 0),a.TAKE_SLOT_MESETA=t.OPCODES[63611]=new a(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read),new r(t.TYPE_DWORD,"Amount of meseta to take.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Will be set to 1 if the meseta was taken, 0 otherwise.",n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F87C=t.OPCODES[63612]=new a(63612,"unknown_f87c",void 0,[],void 0),a.UNKNOWN_F87D=t.OPCODES[63613]=new a(63613,"unknown_f87d",void 0,[],void 0),a.UNKNOWN_F87E=t.OPCODES[63614]=new a(63614,"unknown_f87e",void 0,[],void 0),a.READ_GUILDCARD_FLAG=t.OPCODES[63615]=new a(63615,"read_guildcard_flag",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F880=t.OPCODES[63616]=new a(63616,"unknown_f880",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_PL_NAME=t.OPCODES[63617]=new a(63617,"get_pl_name","Sets the value of to the given player's name.",[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F882=t.OPCODES[63618]=new a(63618,"unknown_f882",void 0,[],void 0),a.UNKNOWN_F883=t.OPCODES[63619]=new a(63619,"unknown_f883",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F884=t.OPCODES[63620]=new a(63620,"unknown_f884",void 0,[],void 0),a.UNKNOWN_F885=t.OPCODES[63621]=new a(63621,"unknown_f885",void 0,[],void 0),a.UNKNOWN_F886=t.OPCODES[63622]=new a(63622,"unknown_f886",void 0,[],void 0),a.UNKNOWN_F887=t.OPCODES[63623]=new a(63623,"unknown_f887",void 0,[],void 0),a.UNKNOWN_F888=t.OPCODES[63624]=new a(63624,"unknown_f888",void 0,[],void 0),a.UNKNOWN_F889=t.OPCODES[63625]=new a(63625,"unknown_f889",void 0,[],void 0),a.GET_PLAYER_STATUS=t.OPCODES[63626]=new a(63626,"get_player_status",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.SEND_MAIL=t.OPCODES[63627]=new a(63627,"send_mail",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.ONLINE_CHECK=t.OPCODES[63628]=new a(63628,"online_check",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.CHL_SET_TIMERECORD=t.OPCODES[63629]=new a(63629,"chl_set_timerecord",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.CHL_GET_TIMERECORD=t.OPCODES[63630]=new a(63630,"chl_get_timerecord",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F88F=t.OPCODES[63631]=new a(63631,"unknown_f88f",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F890=t.OPCODES[63632]=new a(63632,"unknown_f890",void 0,[],void 0),a.LOAD_ENEMY_DATA=t.OPCODES[63633]=new a(63633,"load_enemy_data",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.GET_PHYSICAL_DATA=t.OPCODES[63634]=new a(63634,"get_physical_data",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GET_ATTACK_DATA=t.OPCODES[63635]=new a(63635,"get_attack_data",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GET_RESIST_DATA=t.OPCODES[63636]=new a(63636,"get_resist_data",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.GET_MOVEMENT_DATA=t.OPCODES[63637]=new a(63637,"get_movement_data",void 0,[new r(t.TYPE_WORD,void 0,void 0)],void 0),a.UNKNOWN_F896=t.OPCODES[63638]=new a(63638,"unknown_f896",void 0,[],void 0),a.UNKNOWN_F897=t.OPCODES[63639]=new a(63639,"unknown_f897",void 0,[],void 0),a.SHIFT_LEFT=t.OPCODES[63640]=new a(63640,"shift_left",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.SHIFT_RIGHT=t.OPCODES[63641]=new a(63641,"shift_right",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.GET_RANDOM=t.OPCODES[63642]=new a(63642,"get_random",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.RESET_MAP=t.OPCODES[63643]=new a(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),a.DISP_CHL_RETRY_MENU=t.OPCODES[63644]=new a(63644,"disp_chl_retry_menu",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.CHL_REVERSER=t.OPCODES[63645]=new a(63645,"chl_reverser",void 0,[],void 0),a.UNKNOWN_F89E=t.OPCODES[63646]=new a(63646,"unknown_f89e",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F89F=t.OPCODES[63647]=new a(63647,"unknown_f89f",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F8A0=t.OPCODES[63648]=new a(63648,"unknown_f8a0",void 0,[],void 0),a.UNKNOWN_F8A1=t.OPCODES[63649]=new a(63649,"unknown_f8a1",void 0,[],void 0),a.UNKNOWN_F8A2=t.OPCODES[63650]=new a(63650,"unknown_f8a2",void 0,[],void 0),a.UNKNOWN_F8A3=t.OPCODES[63651]=new a(63651,"unknown_f8a3",void 0,[],void 0),a.UNKNOWN_F8A4=t.OPCODES[63652]=new a(63652,"unknown_f8a4",void 0,[],void 0),a.UNKNOWN_F8A5=t.OPCODES[63653]=new a(63653,"unknown_f8a5",void 0,[],void 0),a.UNKNOWN_F8A6=t.OPCODES[63654]=new a(63654,"unknown_f8a6",void 0,[],void 0),a.UNKNOWN_F8A7=t.OPCODES[63655]=new a(63655,"unknown_f8a7",void 0,[],void 0),a.UNKNOWN_F8A8=t.OPCODES[63656]=new a(63656,"unknown_f8a8",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F8A9=t.OPCODES[63657]=new a(63657,"unknown_f8a9",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F8AA=t.OPCODES[63658]=new a(63658,"unknown_f8aa",void 0,[],void 0),a.UNKNOWN_F8AB=t.OPCODES[63659]=new a(63659,"unknown_f8ab",void 0,[],void 0),a.UNKNOWN_F8AC=t.OPCODES[63660]=new a(63660,"unknown_f8ac",void 0,[],void 0),a.GET_NUMBER_OF_PLAYER2=t.OPCODES[63661]=new a(63661,"get_number_of_player2",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F8AE=t.OPCODES[63662]=new a(63662,"unknown_f8ae",void 0,[],void 0),a.UNKNOWN_F8AF=t.OPCODES[63663]=new a(63663,"unknown_f8af",void 0,[],void 0),a.UNKNOWN_F8B0=t.OPCODES[63664]=new a(63664,"unknown_f8b0",void 0,[],void 0),a.UNKNOWN_F8B1=t.OPCODES[63665]=new a(63665,"unknown_f8b1",void 0,[],void 0),a.UNKNOWN_F8B2=t.OPCODES[63666]=new a(63666,"unknown_f8b2",void 0,[],void 0),a.UNKNOWN_F8B3=t.OPCODES[63667]=new a(63667,"unknown_f8b3",void 0,[],void 0),a.UNKNOWN_F8B4=t.OPCODES[63668]=new a(63668,"unknown_f8b4",void 0,[],void 0),a.UNKNOWN_F8B5=t.OPCODES[63669]=new a(63669,"unknown_f8b5",void 0,[],void 0),a.UNKNOWN_F8B6=t.OPCODES[63670]=new a(63670,"unknown_f8b6",void 0,[],void 0),a.UNKNOWN_F8B7=t.OPCODES[63671]=new a(63671,"unknown_f8b7",void 0,[],void 0),a.UNKNOWN_F8B8=t.OPCODES[63672]=new a(63672,"unknown_f8b8",void 0,[],void 0),a.CHL_RECOVERY=t.OPCODES[63673]=new a(63673,"chl_recovery",void 0,[],void 0),a.UNKNOWN_F8BA=t.OPCODES[63674]=new a(63674,"unknown_f8ba",void 0,[],void 0),a.UNKNOWN_F8BB=t.OPCODES[63675]=new a(63675,"unknown_f8bb",void 0,[],void 0),a.SET_EPISODE=t.OPCODES[63676]=new a(63676,"set_episode",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],void 0),a.UNKNOWN_F8BD=t.OPCODES[63677]=new a(63677,"unknown_f8bd",void 0,[],void 0),a.UNKNOWN_F8BE=t.OPCODES[63678]=new a(63678,"unknown_f8be",void 0,[],void 0),a.UNKNOWN_F8BF=t.OPCODES[63679]=new a(63679,"unknown_f8bf",void 0,[],void 0),a.FILE_DL_REQ=t.OPCODES[63680]=new a(63680,"file_dl_req",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.GET_DL_STATUS=t.OPCODES[63681]=new a(63681,"get_dl_status",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.GBA_UNKNOWN4=t.OPCODES[63682]=new a(63682,"gba_unknown4",void 0,[],void 0),a.GET_GBA_STATE=t.OPCODES[63683]=new a(63683,"get_gba_state",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F8C4=t.OPCODES[63684]=new a(63684,"unknown_f8c4",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F8C5=t.OPCODES[63685]=new a(63685,"unknown_f8c5",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.QEXIT=t.OPCODES[63686]=new a(63686,"qexit",void 0,[],void 0),a.USE_ANIMATION=t.OPCODES[63687]=new a(63687,"use_animation",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Animation ID.",n.Read),new r(t.TYPE_DWORD,"Animation duration in number of frames.",n.Read)]},void 0,void 0)],void 0),a.STOP_ANIMATION=t.OPCODES[63688]=new a(63688,"stop_animation",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.RUN_TO_COORD=t.OPCODES[63689]=new a(63689,"run_to_coord",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_INVINCIBLE=t.OPCODES[63690]=new a(63690,"set_slot_invincible",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F8CB=t.OPCODES[63691]=new a(63691,"unknown_f8cb",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_POISON=t.OPCODES[63692]=new a(63692,"set_slot_poison",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_PARALYZE=t.OPCODES[63693]=new a(63693,"set_slot_paralyze",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_SHOCK=t.OPCODES[63694]=new a(63694,"set_slot_shock",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_FREEZE=t.OPCODES[63695]=new a(63695,"set_slot_freeze",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_SLOW=t.OPCODES[63696]=new a(63696,"set_slot_slow",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_CONFUSE=t.OPCODES[63697]=new a(63697,"set_slot_confuse",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_SHIFTA=t.OPCODES[63698]=new a(63698,"set_slot_shifta",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_DEBAND=t.OPCODES[63699]=new a(63699,"set_slot_deband",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_JELLEN=t.OPCODES[63700]=new a(63700,"set_slot_jellen",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.SET_SLOT_ZALURE=t.OPCODES[63701]=new a(63701,"set_slot_zalure",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read)]},void 0,void 0)],void 0),a.FLETI_FIXED_CAMERA=t.OPCODES[63702]=new a(63702,"fleti_fixed_camera",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],s.Pop),a.FLETI_LOCKED_CAMERA=t.OPCODES[63703]=new a(63703,"fleti_locked_camera",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],s.Pop),a.DEFAULT_CAMERA_POS2=t.OPCODES[63704]=new a(63704,"default_camera_pos2",void 0,[],void 0),a.SET_MOTION_BLUR=t.OPCODES[63705]=new a(63705,"set_motion_blur",void 0,[],void 0),a.SET_SCREEN_BW=t.OPCODES[63706]=new a(63706,"set_screen_bw",void 0,[],void 0),a.UNKNOWN_F8DB=t.OPCODES[63707]=new a(63707,"unknown_f8db",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_WORD,void 0,void 0)],s.Pop),a.NPC_ACTION_STRING=t.OPCODES[63708]=new a(63708,"npc_action_string",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_S_LABEL,void 0,void 0)],void 0),a.GET_PAD_COND=t.OPCODES[63709]=new a(63709,"get_pad_cond",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_BUTTON_COND=t.OPCODES[63710]=new a(63710,"get_button_cond",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.FREEZE_ENEMIES=t.OPCODES[63711]=new a(63711,"freeze_enemies",void 0,[],void 0),a.UNFREEZE_ENEMIES=t.OPCODES[63712]=new a(63712,"unfreeze_enemies",void 0,[],void 0),a.FREEZE_EVERYTHING=t.OPCODES[63713]=new a(63713,"freeze_everything",void 0,[],void 0),a.UNFREEZE_EVERYTHING=t.OPCODES[63714]=new a(63714,"unfreeze_everything",void 0,[],void 0),a.RESTORE_HP=t.OPCODES[63715]=new a(63715,"restore_hp",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.RESTORE_TP=t.OPCODES[63716]=new a(63716,"restore_tp",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.CLOSE_CHAT_BUBBLE=t.OPCODES[63717]=new a(63717,"close_chat_bubble",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.MOVE_COORDS_OBJECT=t.OPCODES[63718]=new a(63718,"move_coords_object",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.AT_COORDS_CALL_EX=t.OPCODES[63719]=new a(63719,"at_coords_call_ex",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F8E8=t.OPCODES[63720]=new a(63720,"unknown_f8e8",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F8E9=t.OPCODES[63721]=new a(63721,"unknown_f8e9",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F8EA=t.OPCODES[63722]=new a(63722,"unknown_f8ea",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F8EB=t.OPCODES[63723]=new a(63723,"unknown_f8eb",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.UNKNOWN_F8EC=t.OPCODES[63724]=new a(63724,"unknown_f8ec",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.ANIMATION_CHECK=t.OPCODES[63725]=new a(63725,"animation_check",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.CALL_IMAGE_DATA=t.OPCODES[63726]=new a(63726,"call_image_data",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_WORD,void 0,void 0)],s.Pop),a.UNKNOWN_F8EF=t.OPCODES[63727]=new a(63727,"unknown_f8ef",void 0,[],void 0),a.TURN_OFF_BGM_P2=t.OPCODES[63728]=new a(63728,"turn_off_bgm_p2",void 0,[],void 0),a.TURN_ON_BGM_P2=t.OPCODES[63729]=new a(63729,"turn_on_bgm_p2",void 0,[],void 0),a.LOAD_UNK_DATA=t.OPCODES[63730]=new a(63730,"load_unk_data",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_D_LABEL,void 0,void 0)],s.Pop),a.PARTICLE2=t.OPCODES[63731]=new a(63731,"particle2",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],s.Pop),a.UNKNOWN_F8F4=t.OPCODES[63732]=new a(63732,"unknown_f8f4",void 0,[],void 0),a.UNKNOWN_F8F5=t.OPCODES[63733]=new a(63733,"unknown_f8f5",void 0,[],void 0),a.UNKNOWN_F8F6=t.OPCODES[63734]=new a(63734,"unknown_f8f6",void 0,[],void 0),a.UNKNOWN_F8F7=t.OPCODES[63735]=new a(63735,"unknown_f8f7",void 0,[],void 0),a.UNKNOWN_F8F8=t.OPCODES[63736]=new a(63736,"unknown_f8f8",void 0,[],void 0),a.UNKNOWN_F8F9=t.OPCODES[63737]=new a(63737,"unknown_f8f9",void 0,[],void 0),a.UNKNOWN_F8FA=t.OPCODES[63738]=new a(63738,"unknown_f8fa",void 0,[],void 0),a.UNKNOWN_F8FB=t.OPCODES[63739]=new a(63739,"unknown_f8fb",void 0,[],void 0),a.UNKNOWN_F8FC=t.OPCODES[63740]=new a(63740,"unknown_f8fc",void 0,[],void 0),a.UNKNOWN_F8FD=t.OPCODES[63741]=new a(63741,"unknown_f8fd",void 0,[],void 0),a.UNKNOWN_F8FE=t.OPCODES[63742]=new a(63742,"unknown_f8fe",void 0,[],void 0),a.UNKNOWN_F8FF=t.OPCODES[63743]=new a(63743,"unknown_f8ff",void 0,[],void 0),a.UNKNOWN_F900=t.OPCODES[63744]=new a(63744,"unknown_f900",void 0,[],void 0),a.DEC2FLOAT=t.OPCODES[63745]=new a(63745,"dec2float",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0)],void 0),a.FLOAT2DEC=t.OPCODES[63746]=new a(63746,"float2dec",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Read)]},void 0,void 0)],void 0),a.FLET=t.OPCODES[63747]=new a(63747,"flet",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Read)]},void 0,void 0)],void 0),a.FLETI=t.OPCODES[63748]=new a(63748,"fleti",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],void 0),a.UNKNOWN_F905=t.OPCODES[63749]=new a(63749,"unknown_f905",void 0,[],void 0),a.UNKNOWN_F906=t.OPCODES[63750]=new a(63750,"unknown_f906",void 0,[],void 0),a.UNKNOWN_F907=t.OPCODES[63751]=new a(63751,"unknown_f907",void 0,[],void 0),a.FADD=t.OPCODES[63752]=new a(63752,"fadd",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Read)]},void 0,void 0)],void 0),a.FADDI=t.OPCODES[63753]=new a(63753,"faddi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],void 0),a.FSUB=t.OPCODES[63754]=new a(63754,"fsub",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Read)]},void 0,void 0)],void 0),a.FSUBI=t.OPCODES[63755]=new a(63755,"fsubi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],void 0),a.FMUL=t.OPCODES[63756]=new a(63756,"fmul",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Read)]},void 0,void 0)],void 0),a.FMULI=t.OPCODES[63757]=new a(63757,"fmuli",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],void 0),a.FDIV=t.OPCODES[63758]=new a(63758,"fdiv",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Read)]},void 0,void 0)],void 0),a.FDIVI=t.OPCODES[63759]=new a(63759,"fdivi",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_FLOAT,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],void 0),a.GET_UNKNOWN_COUNT=t.OPCODES[63760]=new a(63760,"get_unknown_count",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.GET_STACKABLE_ITEM_COUNT=t.OPCODES[63761]=new a(63761,"get_stackable_item_count",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Player slot.",n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read),new r(t.TYPE_DWORD,void 0,n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.FREEZE_AND_HIDE_EQUIP=t.OPCODES[63762]=new a(63762,"freeze_and_hide_equip",void 0,[],void 0),a.THAW_AND_SHOW_EQUIP=t.OPCODES[63763]=new a(63763,"thaw_and_show_equip",void 0,[],void 0),a.SET_PALETTEX_CALLBACK=t.OPCODES[63764]=new a(63764,"set_palettex_callback",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.ACTIVATE_PALETTEX=t.OPCODES[63765]=new a(63765,"activate_palettex",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.ENABLE_PALETTEX=t.OPCODES[63766]=new a(63766,"enable_palettex",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.RESTORE_PALETTEX=t.OPCODES[63767]=new a(63767,"restore_palettex",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.DISABLE_PALETTEX=t.OPCODES[63768]=new a(63768,"disable_palettex",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.GET_PALETTEX_ACTIVATED=t.OPCODES[63769]=new a(63769,"get_palettex_activated",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.GET_UNKNOWN_PALETTEX_STATUS=t.OPCODES[63770]=new a(63770,"get_unknown_palettex_status",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.DISABLE_MOVEMENT2=t.OPCODES[63771]=new a(63771,"disable_movement2",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.ENABLE_MOVEMENT2=t.OPCODES[63772]=new a(63772,"enable_movement2",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0)],s.Pop),a.GET_TIME_PLAYED=t.OPCODES[63773]=new a(63773,"get_time_played",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_GUILDCARD_TOTAL=t.OPCODES[63774]=new a(63774,"get_guildcard_total",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_SLOT_MESETA=t.OPCODES[63775]=new a(63775,"get_slot_meseta",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_PLAYER_LEVEL=t.OPCODES[63776]=new a(63776,"get_player_level",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.GET_SECTION_ID=t.OPCODES[63777]=new a(63777,"get_section_id",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.GET_PLAYER_HP=t.OPCODES[63778]=new a(63778,"get_player_hp",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,"Maximum HP.",n.Write),new r(t.TYPE_DWORD,"Current HP.",n.Write),new r(t.TYPE_DWORD,"Maximum TP.",n.Write),new r(t.TYPE_DWORD,"Current TP.",n.Write)]},void 0,void 0)],s.Pop),a.GET_FLOOR_NUMBER=t.OPCODES[63779]=new a(63779,"get_floor_number",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.GET_COORD_PLAYER_DETECT=t.OPCODES[63780]=new a(63780,"get_coord_player_detect",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,"Player slot.",n.Read)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Read)]},void 0,void 0)],void 0),a.READ_GLOBAL_FLAG=t.OPCODES[63781]=new a(63781,"read_global_flag",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.WRITE_GLOBAL_FLAG=t.OPCODES[63782]=new a(63782,"write_global_flag",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F927=t.OPCODES[63783]=new a(63783,"unknown_f927",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.FLOOR_PLAYER_DETECT=t.OPCODES[63784]=new a(63784,"floor_player_detect",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write),new r(t.TYPE_DWORD,void 0,n.Write),new r(t.TYPE_DWORD,void 0,n.Write),new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.READ_DISK_FILE=t.OPCODES[63785]=new a(63785,"read_disk_file",void 0,[new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.OPEN_PACK_SELECT=t.OPCODES[63786]=new a(63786,"open_pack_select",void 0,[],void 0),a.ITEM_SELECT=t.OPCODES[63787]=new a(63787,"item_select",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.GET_ITEM_ID=t.OPCODES[63788]=new a(63788,"get_item_id",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.COLOR_CHANGE=t.OPCODES[63789]=new a(63789,"color_change",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SEND_STATISTIC=t.OPCODES[63790]=new a(63790,"send_statistic",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F92F=t.OPCODES[63791]=new a(63791,"unknown_f92f",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.CHAT_BOX=t.OPCODES[63792]=new a(63792,"chat_box",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.CHAT_BUBBLE=t.OPCODES[63793]=new a(63793,"chat_bubble",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.UNKNOWN_F932=t.OPCODES[63794]=new a(63794,"unknown_f932",void 0,[],void 0),a.UNKNOWN_F933=t.OPCODES[63795]=new a(63795,"unknown_f933",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],void 0),a.SCROLL_TEXT=t.OPCODES[63796]=new a(63796,"scroll_text",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.GBA_UNKNOWN1=t.OPCODES[63797]=new a(63797,"gba_unknown1",void 0,[],void 0),a.GBA_UNKNOWN2=t.OPCODES[63798]=new a(63798,"gba_unknown2",void 0,[],void 0),a.GBA_UNKNOWN3=t.OPCODES[63799]=new a(63799,"gba_unknown3",void 0,[],void 0),a.ADD_DAMAGE_TO=t.OPCODES[63800]=new a(63800,"add_damage_to",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.ITEM_DELETE3=t.OPCODES[63801]=new a(63801,"item_delete3",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.GET_ITEM_INFO=t.OPCODES[63802]=new a(63802,"get_item_info",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],s.Pop),a.ITEM_PACKING1=t.OPCODES[63803]=new a(63803,"item_packing1",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.ITEM_PACKING2=t.OPCODES[63804]=new a(63804,"item_packing2",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.GET_LANG_SETTING=t.OPCODES[63805]=new a(63805,"get_lang_setting",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_ANY,void 0,n.Write)]},void 0,void 0)],s.Pop),a.PREPARE_STATISTIC=t.OPCODES[63806]=new a(63806,"prepare_statistic",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.KEYWORD_DETECT=t.OPCODES[63807]=new a(63807,"keyword_detect",void 0,[],void 0),a.KEYWORD=t.OPCODES[63808]=new a(63808,"keyword",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,"Player slot.",void 0),new r(t.TYPE_STRING,void 0,void 0)],s.Pop),a.GET_GUILDCARD_NUM=t.OPCODES[63809]=new a(63809,"get_guildcard_num",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.UNKNOWN_F942=t.OPCODES[63810]=new a(63810,"unknown_f942",void 0,[],void 0),a.UNKNOWN_F943=t.OPCODES[63811]=new a(63811,"unknown_f943",void 0,[],void 0),a.GET_WRAP_STATUS=t.OPCODES[63812]=new a(63812,"get_wrap_status",void 0,[new r(t.TYPE_DWORD,"Player slot.",void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.INITIAL_FLOOR=t.OPCODES[63813]=new a(63813,"initial_floor",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.SIN=t.OPCODES[63814]=new a(63814,"sin",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.COS=t.OPCODES[63815]=new a(63815,"cos",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F948=t.OPCODES[63816]=new a(63816,"unknown_f948",void 0,[],void 0),a.UNKNOWN_F949=t.OPCODES[63817]=new a(63817,"unknown_f949",void 0,[],void 0),a.BOSS_IS_DEAD2=t.OPCODES[63818]=new a(63818,"boss_is_dead2",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F94B=t.OPCODES[63819]=new a(63819,"unknown_f94b",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F94C=t.OPCODES[63820]=new a(63820,"unknown_f94c",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.IS_THERE_CARDBATTLE=t.OPCODES[63821]=new a(63821,"is_there_cardbattle",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.UNKNOWN_F94E=t.OPCODES[63822]=new a(63822,"unknown_f94e",void 0,[],void 0),a.UNKNOWN_F94F=t.OPCODES[63823]=new a(63823,"unknown_f94f",void 0,[],void 0),a.BB_P2_MENU=t.OPCODES[63824]=new a(63824,"bb_p2_menu",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.BB_MAP_DESIGNATE=t.OPCODES[63825]=new a(63825,"bb_map_designate",void 0,[new r(t.TYPE_BYTE,void 0,void 0),new r(t.TYPE_WORD,void 0,void 0),new r(t.TYPE_BYTE,void 0,void 0),new r(t.TYPE_BYTE,void 0,void 0)],void 0),a.BB_GET_NUMBER_IN_PACK=t.OPCODES[63826]=new a(63826,"bb_get_number_in_pack",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],void 0),a.BB_SWAP_ITEM=t.OPCODES[63827]=new a(63827,"bb_swap_item",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.BB_CHECK_WRAP=t.OPCODES[63828]=new a(63828,"bb_check_wrap",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0)],s.Pop),a.BB_EXCHANGE_PD_ITEM=t.OPCODES[63829]=new a(63829,"bb_exchange_pd_item",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.BB_EXCHANGE_PD_SRANK=t.OPCODES[63830]=new a(63830,"bb_exchange_pd_srank",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.BB_EXCHANGE_PD_SPECIAL=t.OPCODES[63831]=new a(63831,"bb_exchange_pd_special",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.BB_EXCHANGE_PD_PERCENT=t.OPCODES[63832]=new a(63832,"bb_exchange_pd_percent",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.UNKNOWN_F959=t.OPCODES[63833]=new a(63833,"unknown_f959",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F95A=t.OPCODES[63834]=new a(63834,"unknown_f95a",void 0,[],void 0),a.UNKNOWN_F95B=t.OPCODES[63835]=new a(63835,"unknown_f95b",void 0,[],void 0),a.BB_EXCHANGE_SLT=t.OPCODES[63836]=new a(63836,"bb_exchange_slt",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.BB_EXCHANGE_PC=t.OPCODES[63837]=new a(63837,"bb_exchange_pc",void 0,[],void 0),a.BB_BOX_CREATE_BP=t.OPCODES[63838]=new a(63838,"bb_box_create_bp",void 0,[new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0),new r(t.TYPE_FLOAT,void 0,void 0)],s.Pop),a.BB_EXCHANGE_PT=t.OPCODES[63839]=new a(63839,"bb_exchange_pt",void 0,[new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r({kind:o.RegTupRef,register_tuples:[new r(t.TYPE_DWORD,void 0,n.Write)]},void 0,void 0),new r(t.TYPE_DWORD,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0),new r(t.TYPE_I_LABEL,void 0,void 0)],s.Pop),a.UNKNOWN_F960=t.OPCODES[63840]=new a(63840,"unknown_f960",void 0,[new r(t.TYPE_DWORD,void 0,void 0)],s.Pop),a.UNKNOWN_F961=t.OPCODES[63841]=new a(63841,"unknown_f961",void 0,[],void 0),a.UNKNOWN_F962=t.OPCODES[63842]=new a(63842,"unknown_f962",void 0,[],void 0),a.UNKNOWN_F963=t.OPCODES[63843]=new a(63843,"unknown_f963",void 0,[],void 0),a.UNKNOWN_F964=t.OPCODES[63844]=new a(63844,"unknown_f964",void 0,[],void 0),a.UNKNOWN_F965=t.OPCODES[63845]=new a(63845,"unknown_f965",void 0,[],void 0),a.UNKNOWN_F966=t.OPCODES[63846]=new a(63846,"unknown_f966",void 0,[],void 0),a.UNKNOWN_F967=t.OPCODES[63847]=new a(63847,"unknown_f967",void 0,[],void 0),a.UNKNOWN_F968=t.OPCODES[63848]=new a(63848,"unknown_f968",void 0,[],void 0),a.UNKNOWN_F969=t.OPCODES[63849]=new a(63849,"unknown_f969",void 0,[],void 0),a.UNKNOWN_F96A=t.OPCODES[63850]=new a(63850,"unknown_f96a",void 0,[],void 0),a.UNKNOWN_F96B=t.OPCODES[63851]=new a(63851,"unknown_f96b",void 0,[],void 0),a.UNKNOWN_F96C=t.OPCODES[63852]=new a(63852,"unknown_f96c",void 0,[],void 0),a.UNKNOWN_F96D=t.OPCODES[63853]=new a(63853,"unknown_f96d",void 0,[],void 0),a.UNKNOWN_F96E=t.OPCODES[63854]=new a(63854,"unknown_f96e",void 0,[],void 0),a.UNKNOWN_F96F=t.OPCODES[63855]=new a(63855,"unknown_f96f",void 0,[],void 0),a.UNKNOWN_F970=t.OPCODES[63856]=new a(63856,"unknown_f970",void 0,[],void 0),a.UNKNOWN_F971=t.OPCODES[63857]=new a(63857,"unknown_f971",void 0,[],void 0),a.UNKNOWN_F972=t.OPCODES[63858]=new a(63858,"unknown_f972",void 0,[],void 0),a.UNKNOWN_F973=t.OPCODES[63859]=new a(63859,"unknown_f973",void 0,[],void 0),a.UNKNOWN_F974=t.OPCODES[63860]=new a(63860,"unknown_f974",void 0,[],void 0),a.UNKNOWN_F975=t.OPCODES[63861]=new a(63861,"unknown_f975",void 0,[],void 0),a.UNKNOWN_F976=t.OPCODES[63862]=new a(63862,"unknown_f976",void 0,[],void 0),a.UNKNOWN_F977=t.OPCODES[63863]=new a(63863,"unknown_f977",void 0,[],void 0),a.UNKNOWN_F978=t.OPCODES[63864]=new a(63864,"unknown_f978",void 0,[],void 0),a.UNKNOWN_F979=t.OPCODES[63865]=new a(63865,"unknown_f979",void 0,[],void 0),a.UNKNOWN_F97A=t.OPCODES[63866]=new a(63866,"unknown_f97a",void 0,[],void 0),a.UNKNOWN_F97B=t.OPCODES[63867]=new a(63867,"unknown_f97b",void 0,[],void 0),a.UNKNOWN_F97C=t.OPCODES[63868]=new a(63868,"unknown_f97c",void 0,[],void 0),a.UNKNOWN_F97D=t.OPCODES[63869]=new a(63869,"unknown_f97d",void 0,[],void 0),a.UNKNOWN_F97E=t.OPCODES[63870]=new a(63870,"unknown_f97e",void 0,[],void 0),a.UNKNOWN_F97F=t.OPCODES[63871]=new a(63871,"unknown_f97f",void 0,[],void 0),a.UNKNOWN_F980=t.OPCODES[63872]=new a(63872,"unknown_f980",void 0,[],void 0),a.UNKNOWN_F981=t.OPCODES[63873]=new a(63873,"unknown_f981",void 0,[],void 0),a.UNKNOWN_F982=t.OPCODES[63874]=new a(63874,"unknown_f982",void 0,[],void 0),a.UNKNOWN_F983=t.OPCODES[63875]=new a(63875,"unknown_f983",void 0,[],void 0),a.UNKNOWN_F984=t.OPCODES[63876]=new a(63876,"unknown_f984",void 0,[],void 0),a.UNKNOWN_F985=t.OPCODES[63877]=new a(63877,"unknown_f985",void 0,[],void 0),a.UNKNOWN_F986=t.OPCODES[63878]=new a(63878,"unknown_f986",void 0,[],void 0),a.UNKNOWN_F987=t.OPCODES[63879]=new a(63879,"unknown_f987",void 0,[],void 0),a.UNKNOWN_F988=t.OPCODES[63880]=new a(63880,"unknown_f988",void 0,[],void 0),a.UNKNOWN_F989=t.OPCODES[63881]=new a(63881,"unknown_f989",void 0,[],void 0),a.UNKNOWN_F98A=t.OPCODES[63882]=new a(63882,"unknown_f98a",void 0,[],void 0),a.UNKNOWN_F98B=t.OPCODES[63883]=new a(63883,"unknown_f98b",void 0,[],void 0),a.UNKNOWN_F98C=t.OPCODES[63884]=new a(63884,"unknown_f98c",void 0,[],void 0),a.UNKNOWN_F98D=t.OPCODES[63885]=new a(63885,"unknown_f98d",void 0,[],void 0),a.UNKNOWN_F98E=t.OPCODES[63886]=new a(63886,"unknown_f98e",void 0,[],void 0),a.UNKNOWN_F98F=t.OPCODES[63887]=new a(63887,"unknown_f98f",void 0,[],void 0),a.UNKNOWN_F990=t.OPCODES[63888]=new a(63888,"unknown_f990",void 0,[],void 0),a.UNKNOWN_F991=t.OPCODES[63889]=new a(63889,"unknown_f991",void 0,[],void 0),a.UNKNOWN_F992=t.OPCODES[63890]=new a(63890,"unknown_f992",void 0,[],void 0),a.UNKNOWN_F993=t.OPCODES[63891]=new a(63891,"unknown_f993",void 0,[],void 0),a.UNKNOWN_F994=t.OPCODES[63892]=new a(63892,"unknown_f994",void 0,[],void 0),a.UNKNOWN_F995=t.OPCODES[63893]=new a(63893,"unknown_f995",void 0,[],void 0),a.UNKNOWN_F996=t.OPCODES[63894]=new a(63894,"unknown_f996",void 0,[],void 0),a.UNKNOWN_F997=t.OPCODES[63895]=new a(63895,"unknown_f997",void 0,[],void 0),a.UNKNOWN_F998=t.OPCODES[63896]=new a(63896,"unknown_f998",void 0,[],void 0),a.UNKNOWN_F999=t.OPCODES[63897]=new a(63897,"unknown_f999",void 0,[],void 0),a.UNKNOWN_F99A=t.OPCODES[63898]=new a(63898,"unknown_f99a",void 0,[],void 0),a.UNKNOWN_F99B=t.OPCODES[63899]=new a(63899,"unknown_f99b",void 0,[],void 0),a.UNKNOWN_F99C=t.OPCODES[63900]=new a(63900,"unknown_f99c",void 0,[],void 0),a.UNKNOWN_F99D=t.OPCODES[63901]=new a(63901,"unknown_f99d",void 0,[],void 0),a.UNKNOWN_F99E=t.OPCODES[63902]=new a(63902,"unknown_f99e",void 0,[],void 0),a.UNKNOWN_F99F=t.OPCODES[63903]=new a(63903,"unknown_f99f",void 0,[],void 0),a.UNKNOWN_F9A0=t.OPCODES[63904]=new a(63904,"unknown_f9a0",void 0,[],void 0),a.UNKNOWN_F9A1=t.OPCODES[63905]=new a(63905,"unknown_f9a1",void 0,[],void 0),a.UNKNOWN_F9A2=t.OPCODES[63906]=new a(63906,"unknown_f9a2",void 0,[],void 0),a.UNKNOWN_F9A3=t.OPCODES[63907]=new a(63907,"unknown_f9a3",void 0,[],void 0),a.UNKNOWN_F9A4=t.OPCODES[63908]=new a(63908,"unknown_f9a4",void 0,[],void 0),a.UNKNOWN_F9A5=t.OPCODES[63909]=new a(63909,"unknown_f9a5",void 0,[],void 0),a.UNKNOWN_F9A6=t.OPCODES[63910]=new a(63910,"unknown_f9a6",void 0,[],void 0),a.UNKNOWN_F9A7=t.OPCODES[63911]=new a(63911,"unknown_f9a7",void 0,[],void 0),a.UNKNOWN_F9A8=t.OPCODES[63912]=new a(63912,"unknown_f9a8",void 0,[],void 0),a.UNKNOWN_F9A9=t.OPCODES[63913]=new a(63913,"unknown_f9a9",void 0,[],void 0),a.UNKNOWN_F9AA=t.OPCODES[63914]=new a(63914,"unknown_f9aa",void 0,[],void 0),a.UNKNOWN_F9AB=t.OPCODES[63915]=new a(63915,"unknown_f9ab",void 0,[],void 0),a.UNKNOWN_F9AC=t.OPCODES[63916]=new a(63916,"unknown_f9ac",void 0,[],void 0),a.UNKNOWN_F9AD=t.OPCODES[63917]=new a(63917,"unknown_f9ad",void 0,[],void 0),a.UNKNOWN_F9AE=t.OPCODES[63918]=new a(63918,"unknown_f9ae",void 0,[],void 0),a.UNKNOWN_F9AF=t.OPCODES[63919]=new a(63919,"unknown_f9af",void 0,[],void 0),a.UNKNOWN_F9B0=t.OPCODES[63920]=new a(63920,"unknown_f9b0",void 0,[],void 0),a.UNKNOWN_F9B1=t.OPCODES[63921]=new a(63921,"unknown_f9b1",void 0,[],void 0),a.UNKNOWN_F9B2=t.OPCODES[63922]=new a(63922,"unknown_f9b2",void 0,[],void 0),a.UNKNOWN_F9B3=t.OPCODES[63923]=new a(63923,"unknown_f9b3",void 0,[],void 0),a.UNKNOWN_F9B4=t.OPCODES[63924]=new a(63924,"unknown_f9b4",void 0,[],void 0),a.UNKNOWN_F9B5=t.OPCODES[63925]=new a(63925,"unknown_f9b5",void 0,[],void 0),a.UNKNOWN_F9B6=t.OPCODES[63926]=new a(63926,"unknown_f9b6",void 0,[],void 0),a.UNKNOWN_F9B7=t.OPCODES[63927]=new a(63927,"unknown_f9b7",void 0,[],void 0),a.UNKNOWN_F9B8=t.OPCODES[63928]=new a(63928,"unknown_f9b8",void 0,[],void 0),a.UNKNOWN_F9B9=t.OPCODES[63929]=new a(63929,"unknown_f9b9",void 0,[],void 0),a.UNKNOWN_F9BA=t.OPCODES[63930]=new a(63930,"unknown_f9ba",void 0,[],void 0),a.UNKNOWN_F9BB=t.OPCODES[63931]=new a(63931,"unknown_f9bb",void 0,[],void 0),a.UNKNOWN_F9BC=t.OPCODES[63932]=new a(63932,"unknown_f9bc",void 0,[],void 0),a.UNKNOWN_F9BD=t.OPCODES[63933]=new a(63933,"unknown_f9bd",void 0,[],void 0),a.UNKNOWN_F9BE=t.OPCODES[63934]=new a(63934,"unknown_f9be",void 0,[],void 0),a.UNKNOWN_F9BF=t.OPCODES[63935]=new a(63935,"unknown_f9bf",void 0,[],void 0),a.UNKNOWN_F9C0=t.OPCODES[63936]=new a(63936,"unknown_f9c0",void 0,[],void 0),a.UNKNOWN_F9C1=t.OPCODES[63937]=new a(63937,"unknown_f9c1",void 0,[],void 0),a.UNKNOWN_F9C2=t.OPCODES[63938]=new a(63938,"unknown_f9c2",void 0,[],void 0),a.UNKNOWN_F9C3=t.OPCODES[63939]=new a(63939,"unknown_f9c3",void 0,[],void 0),a.UNKNOWN_F9C4=t.OPCODES[63940]=new a(63940,"unknown_f9c4",void 0,[],void 0),a.UNKNOWN_F9C5=t.OPCODES[63941]=new a(63941,"unknown_f9c5",void 0,[],void 0),a.UNKNOWN_F9C6=t.OPCODES[63942]=new a(63942,"unknown_f9c6",void 0,[],void 0),a.UNKNOWN_F9C7=t.OPCODES[63943]=new a(63943,"unknown_f9c7",void 0,[],void 0),a.UNKNOWN_F9C8=t.OPCODES[63944]=new a(63944,"unknown_f9c8",void 0,[],void 0),a.UNKNOWN_F9C9=t.OPCODES[63945]=new a(63945,"unknown_f9c9",void 0,[],void 0),a.UNKNOWN_F9CA=t.OPCODES[63946]=new a(63946,"unknown_f9ca",void 0,[],void 0),a.UNKNOWN_F9CB=t.OPCODES[63947]=new a(63947,"unknown_f9cb",void 0,[],void 0),a.UNKNOWN_F9CC=t.OPCODES[63948]=new a(63948,"unknown_f9cc",void 0,[],void 0),a.UNKNOWN_F9CD=t.OPCODES[63949]=new a(63949,"unknown_f9cd",void 0,[],void 0),a.UNKNOWN_F9CE=t.OPCODES[63950]=new a(63950,"unknown_f9ce",void 0,[],void 0),a.UNKNOWN_F9CF=t.OPCODES[63951]=new a(63951,"unknown_f9cf",void 0,[],void 0),a.UNKNOWN_F9D0=t.OPCODES[63952]=new a(63952,"unknown_f9d0",void 0,[],void 0),a.UNKNOWN_F9D1=t.OPCODES[63953]=new a(63953,"unknown_f9d1",void 0,[],void 0),a.UNKNOWN_F9D2=t.OPCODES[63954]=new a(63954,"unknown_f9d2",void 0,[],void 0),a.UNKNOWN_F9D3=t.OPCODES[63955]=new a(63955,"unknown_f9d3",void 0,[],void 0),a.UNKNOWN_F9D4=t.OPCODES[63956]=new a(63956,"unknown_f9d4",void 0,[],void 0),a.UNKNOWN_F9D5=t.OPCODES[63957]=new a(63957,"unknown_f9d5",void 0,[],void 0),a.UNKNOWN_F9D6=t.OPCODES[63958]=new a(63958,"unknown_f9d6",void 0,[],void 0),a.UNKNOWN_F9D7=t.OPCODES[63959]=new a(63959,"unknown_f9d7",void 0,[],void 0),a.UNKNOWN_F9D8=t.OPCODES[63960]=new a(63960,"unknown_f9d8",void 0,[],void 0),a.UNKNOWN_F9D9=t.OPCODES[63961]=new a(63961,"unknown_f9d9",void 0,[],void 0),a.UNKNOWN_F9DA=t.OPCODES[63962]=new a(63962,"unknown_f9da",void 0,[],void 0),a.UNKNOWN_F9DB=t.OPCODES[63963]=new a(63963,"unknown_f9db",void 0,[],void 0),a.UNKNOWN_F9DC=t.OPCODES[63964]=new a(63964,"unknown_f9dc",void 0,[],void 0),a.UNKNOWN_F9DD=t.OPCODES[63965]=new a(63965,"unknown_f9dd",void 0,[],void 0),a.UNKNOWN_F9DE=t.OPCODES[63966]=new a(63966,"unknown_f9de",void 0,[],void 0),a.UNKNOWN_F9DF=t.OPCODES[63967]=new a(63967,"unknown_f9df",void 0,[],void 0),a.UNKNOWN_F9E0=t.OPCODES[63968]=new a(63968,"unknown_f9e0",void 0,[],void 0),a.UNKNOWN_F9E1=t.OPCODES[63969]=new a(63969,"unknown_f9e1",void 0,[],void 0),a.UNKNOWN_F9E2=t.OPCODES[63970]=new a(63970,"unknown_f9e2",void 0,[],void 0),a.UNKNOWN_F9E3=t.OPCODES[63971]=new a(63971,"unknown_f9e3",void 0,[],void 0),a.UNKNOWN_F9E4=t.OPCODES[63972]=new a(63972,"unknown_f9e4",void 0,[],void 0),a.UNKNOWN_F9E5=t.OPCODES[63973]=new a(63973,"unknown_f9e5",void 0,[],void 0),a.UNKNOWN_F9E6=t.OPCODES[63974]=new a(63974,"unknown_f9e6",void 0,[],void 0),a.UNKNOWN_F9E7=t.OPCODES[63975]=new a(63975,"unknown_f9e7",void 0,[],void 0),a.UNKNOWN_F9E8=t.OPCODES[63976]=new a(63976,"unknown_f9e8",void 0,[],void 0),a.UNKNOWN_F9E9=t.OPCODES[63977]=new a(63977,"unknown_f9e9",void 0,[],void 0),a.UNKNOWN_F9EA=t.OPCODES[63978]=new a(63978,"unknown_f9ea",void 0,[],void 0),a.UNKNOWN_F9EB=t.OPCODES[63979]=new a(63979,"unknown_f9eb",void 0,[],void 0),a.UNKNOWN_F9EC=t.OPCODES[63980]=new a(63980,"unknown_f9ec",void 0,[],void 0),a.UNKNOWN_F9ED=t.OPCODES[63981]=new a(63981,"unknown_f9ed",void 0,[],void 0),a.UNKNOWN_F9EE=t.OPCODES[63982]=new a(63982,"unknown_f9ee",void 0,[],void 0),a.UNKNOWN_F9EF=t.OPCODES[63983]=new a(63983,"unknown_f9ef",void 0,[],void 0),a.UNKNOWN_F9F0=t.OPCODES[63984]=new a(63984,"unknown_f9f0",void 0,[],void 0),a.UNKNOWN_F9F1=t.OPCODES[63985]=new a(63985,"unknown_f9f1",void 0,[],void 0),a.UNKNOWN_F9F2=t.OPCODES[63986]=new a(63986,"unknown_f9f2",void 0,[],void 0),a.UNKNOWN_F9F3=t.OPCODES[63987]=new a(63987,"unknown_f9f3",void 0,[],void 0),a.UNKNOWN_F9F4=t.OPCODES[63988]=new a(63988,"unknown_f9f4",void 0,[],void 0),a.UNKNOWN_F9F5=t.OPCODES[63989]=new a(63989,"unknown_f9f5",void 0,[],void 0),a.UNKNOWN_F9F6=t.OPCODES[63990]=new a(63990,"unknown_f9f6",void 0,[],void 0),a.UNKNOWN_F9F7=t.OPCODES[63991]=new a(63991,"unknown_f9f7",void 0,[],void 0),a.UNKNOWN_F9F8=t.OPCODES[63992]=new a(63992,"unknown_f9f8",void 0,[],void 0),a.UNKNOWN_F9F9=t.OPCODES[63993]=new a(63993,"unknown_f9f9",void 0,[],void 0),a.UNKNOWN_F9FA=t.OPCODES[63994]=new a(63994,"unknown_f9fa",void 0,[],void 0),a.UNKNOWN_F9FB=t.OPCODES[63995]=new a(63995,"unknown_f9fb",void 0,[],void 0),a.UNKNOWN_F9FC=t.OPCODES[63996]=new a(63996,"unknown_f9fc",void 0,[],void 0),a.UNKNOWN_F9FD=t.OPCODES[63997]=new a(63997,"unknown_f9fd",void 0,[],void 0),a.UNKNOWN_F9FE=t.OPCODES[63998]=new a(63998,"unknown_f9fe",void 0,[],void 0),a.UNKNOWN_F9FF=t.OPCODES[63999]=new a(63999,"unknown_f9ff",void 0,[],void 0),t.OPCODES.forEach(e=>{t.OPCODES_BY_MNEMONIC.set(e.mnemonic,e)})},Za3H:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb"),n=i("nN8q"),s=i("6cU9"),r=i("w6HN"),a=i("4/Uj"),d=i("KUR2"),l=i("469Q"),_=i("4SjJ");class u extends n.ResizableWidget{constructor(){super(),this.element=o.el.div({class:"viewer_TextureView"}),this.open_file_button=new s.FileButton("Open file...",{icon_left:o.Icon.File,accept:".xvm"}),this.tool_bar=this.disposable(new r.ToolBar({children:[this.open_file_button]})),this.renderer_view=this.disposable(new d.RendererWidget(new l.TextureRenderer)),this.element.append(this.tool_bar.element,this.renderer_view.element),this.disposable(this.open_file_button.files.observe(({value:e})=>{e.length&&a.texture_store.load_file(e[0])})),this.renderer_view.start_rendering(),this.disposable(_.gui_store.tool.observe(({value:e})=>{e===_.GuiTool.Viewer?this.renderer_view.start_rendering():this.renderer_view.stop_rendering()})),this.finalize_construction(u.prototype)}resize(e,t){return super.resize(e,t),this.renderer_view.resize(e,Math.max(0,t-this.tool_bar.height)),this}}t.TextureView=u},aEXR:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("bcBH"),s=i("NRxM"),r=i("XDYw"),a=i("y42t"),d=i("Yuai"),l=i("AUhH"),_=i("eFYZ"),u=new l.LoadingCache,c=new l.LoadingCache;function p(e,t){const i=h(e,t,"render").then(e=>_.area_geometry_to_sections_and_object_3d(a.parse_area_geometry(new s.ArrayBufferCursor(e,n.Endianness.Little)),t));return{geometry:i.then(([,e])=>e),sections:i.then(([e])=>e)}}t.load_area_sections=function(e,t){return o(this,void 0,void 0,(function*(){return u.get_or_set(`${e}-${t.area.id}-${t.id}`,()=>p(e,t)).sections}))},t.load_area_render_geometry=function(e,t){return o(this,void 0,void 0,(function*(){return u.get_or_set(`${e}-${t.area.id}-${t.id}`,()=>p(e,t)).geometry}))},t.load_area_collision_geometry=function(e,t){return o(this,void 0,void 0,(function*(){return c.get_or_set(`${e}-${t.area.id}-${t.id}`,()=>h(e,t,"collision").then(e=>_.area_collision_geometry_to_object_3d(r.parse_area_collision_geometry(new s.ArrayBufferCursor(e,n.Endianness.Little)))))}))};const v=[[["city00_00",1],["forest01",1],["forest02",1],["cave01_",6],["cave02_",5],["cave03_",6],["machine01_",6],["machine02_",6],["ancient01_",5],["ancient02_",5],["ancient03_",5],["boss01",1],["boss02",1],["boss03",1],["darkfalz00",1]],[["labo00_00",1],["ruins01_",3],["ruins02_",3],["space01_",3],["space02_",3],["jungle01_00",1],["jungle02_00",1],["jungle03_00",1],["jungle04_",3],["jungle05_00",1],["seabed01_",3],["seabed02_",3],["boss05",1],["boss06",1],["boss07",1],["boss08",1],["jungle06_00",1],["jungle07_",5]],[],[["city02_00",1],["wilds01_00",1],["wilds01_01",1],["wilds01_02",1],["wilds01_03",1],["crater01_00",1],["desert01_",3],["desert02_",3],["desert03_",3],["boss09_00",1]]];function h(e,t,i){return o(this,void 0,void 0,(function*(){const o=function(e,t){let i=t.area.id,o=t.id;16===i&&1===o&&(i=17,o=1);const n=v[e-1];if(0<=i&&i{this._selected_entity.val=void 0,this._current_area.val=e},this.set_selected_entity=e=>{e&&this.current_quest.val&&(this._current_area.val=c.area_store.get_area(this.current_quest.val.episode,e.area_id)),this._selected_entity.val=e},this.new_quest=e=>{this.set_quest(g.create_new_quest(e))},this.open_file=e=>o(this,void 0,void 0,(function*(){try{const t=yield r.read_file(e),i=a.parse_quest(new d.ArrayBufferCursor(t,l.Endianness.Little));this.set_quest(i&&new s.QuestModel(i.id,i.language,i.name,i.short_description,i.long_description,i.episode,i.map_designations,i.objects.map(e=>new _.QuestObjectModel(e.type,e.id,e.group_id,e.area_id,e.section_id,e.position,e.rotation,e.properties,e.unknown)),i.npcs.map(e=>new u.QuestNpcModel(e.type,e.pso_type_id,e.npc_id,e.script_label,e.pso_roaming,e.area_id,e.section_id,e.position,e.rotation,e.scale,e.unknown)),i.dat_unknowns,i.object_code,i.shop_items),e.name)}catch(e){D.error("Couldn't read file.",e)}})),this.save_as=()=>{const e=this.current_quest.val;if(!e)return;let t=this.current_quest_filename.val;if(t){const e=t.lastIndexOf(".");-1!==e&&(t=t.slice(0,e))}let i=prompt("File name:",t);if(!i)return;const o=a.write_quest_qst({id:e.id.val,language:e.language.val,name:e.name.val,short_description:e.short_description.val,long_description:e.long_description.val,episode:e.episode,objects:e.objects.val.map(e=>({type:e.type,area_id:e.area_id,section_id:e.section_id.val,position:e.position.val,rotation:e.rotation.val,unknown:e.unknown,id:e.id,group_id:e.group_id,properties:e.properties})),npcs:e.npcs.val.map(e=>({type:e.type,area_id:e.area_id,section_id:e.section_id.val,position:e.position.val,rotation:e.rotation.val,scale:e.scale,unknown:e.unknown,pso_type_id:e.pso_type_id,npc_id:e.npc_id,script_label:e.script_label,pso_roaming:e.pso_roaming})),dat_unknowns:e.dat_unknowns,object_code:e.object_code,shop_items:e.shop_items,map_designations:e.map_designations.val},i);i.endsWith(".qst")||(i+=".qst");const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([o],{type:"application/octet-stream"})),n.download=i,document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)},this.push_edit_id_action=e=>{this.current_quest.val&&this.undo.push(new m.EditIdAction(this.current_quest.val,e)).redo()},this.push_edit_name_action=e=>{this.current_quest.val&&this.undo.push(new O.EditNameAction(this.current_quest.val,e)).redo()},this.push_edit_short_description_action=e=>{this.current_quest.val&&this.undo.push(new f.EditShortDescriptionAction(this.current_quest.val,e)).redo()},this.push_edit_long_description_action=e=>{this.current_quest.val&&this.undo.push(new E.EditLongDescriptionAction(this.current_quest.val,e)).redo()},this.push_translate_entity_action=(e,t,i,o,n,s)=>{this.undo.push(new w.TranslateEntityAction(e,t,i,o,n,s)).redo()},this.push_create_entity_action=e=>{this.undo.push(new b.CreateEntityAction(e))},this.set_section_on_quest_entity=(e,t)=>{const i=t.find(t=>t.id===e.section_id.val);i?e.set_section(i):D.warn(`Section ${e.section_id.val} not found.`)},this.disposer.add_all(v.gui_store.tool.observe(({value:e})=>{e===v.GuiTool.QuestEditor&&this.undo.make_current()},{call_now:!0}),this.current_quest.flat_map(e=>e?e.npcs:n.property([])).observe(({value:e})=>{const t=this.selected_entity.val;t instanceof u.QuestNpcModel&&!e.includes(t)&&this.set_selected_entity(void 0)}),this.current_quest.flat_map(e=>e?e.objects:n.property([])).observe(({value:e})=>{const t=this.selected_entity.val;t instanceof _.QuestObjectModel&&!e.includes(t)&&this.set_selected_entity(void 0)}))}dispose(){this.disposer.dispose()}set_quest(e,t){return o(this,void 0,void 0,(function*(){if(this.undo.reset(),this._current_area.val=void 0,this._selected_entity.val=void 0,this._current_quest_filename.val=t,this._current_quest.val=e,e){this._current_area.val=c.area_store.get_area(e.episode,0);for(const t of e.area_variants.val){const i=yield c.area_store.get_area_sections(e.episode,t);t.sections.val.splice(0,1/0,...i);for(const o of e.objects.val.filter(e=>e.area_id===t.area.id))try{this.set_section_on_quest_entity(o,i)}catch(e){D.error(e)}for(const o of e.npcs.val.filter(e=>e.area_id===t.area.id))try{this.set_section_on_quest_entity(o,i)}catch(e){D.error(e)}}}else D.error("Couldn't parse quest file.")}))}}t.QuestEditorStore=P,t.quest_editor_store=new P},dx17:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i("nsCy"),r=i("G+UN"),a=i("6WXA"),d=n(i("GGSb")),l=i("sZ1+"),_=i("lC1H"),u=d.default.get("stores/ItemDropStore");class c{constructor(e){this.enemy_drops=e}}t.ItemDropStore=c;class p{constructor(){this.table=[],this.item_type_to_drops=[];for(let e=0;e=0){const e=new r.SectionModel(l.id,l.position,l.rotation.y,t);i.push(e),_.userData.section=e}}return[i,a]}},hUhj:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nEgy"),n=i("52VV"),s=i("+LO4");t.AbstractProperty=class extends s.AbstractMinimalProperty{map(e){return new o.DependentProperty([this],()=>e(this.val))}flat_map(e){return new n.FlatMappedProperty(this,t=>e(t))}}},hVaW:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASM_SYNTAX={defaultToken:"invalid",tokenizer:{root:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/r\d+/,"predefined"],[/[^\s]+:/,"tag"],[/0x[0-9a-fA-F]+/,"number.hex"],[/-?\d+(\.\d+)?(e-?\d+)?/,"number.float"],[/-?[0-9]+/,"number"],[/\.[^\s]+/,"keyword"],[/[a-z][a-z0-9_=<>!]*/,"identifier"],[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/,/,"delimiter"]],string:[[/[^\\"]+/,"string"],[/\\(?:[n\\"])/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}},iR5r:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt");function n(e){let t,i;switch(e.format[1]){case 6:t=o.RGBA_S3TC_DXT1_Format,i=e.width*e.height/2;break;case 7:t=o.RGBA_S3TC_DXT3_Format,i=e.width*e.height;break;default:throw new Error(`Format ${e.format.join(", ")} not supported.`)}const n=new o.CompressedTexture([{data:new Uint8Array(e.data,0,i),width:e.width,height:e.height}],e.width,e.height,t);return n.minFilter=o.LinearFilter,n.wrapS=o.MirroredRepeatWrapping,n.wrapT=o.MirroredRepeatWrapping,n.needsUpdate=!0,n}t.xvm_to_textures=function(e){return e.textures.map(n)},t.xvm_texture_to_texture=n},j4Ss:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb"),s=i("rqwK"),r=i("sZ1+");i("Czz9");const a=i("CpvQ"),d=i("yar8"),l=i("ouMO");class _ extends o.ResizableWidget{constructor(e){super(),this.element=n.el.div({class:"hunt_optimizer_MethodsForEpisodeView"}),this.episode=e,this.enemy_types=r.ENEMY_NPC_TYPES.filter(e=>r.npc_data(e).episode===this.episode);const t=l.list_property(),i=this.disposable(new d.Table({class:"hunt_optimizer_MethodsForEpisodeView_table",values:t,sort:e=>{t.sort((t,i)=>{for(const{column:o,direction:n}of e){let e=0;switch(o.key){case"method":e=t.name.localeCompare(i.name);break;case"time":e=t.time.val.as("minutes")-i.time.val.as("minutes");break;default:{const n=r.NpcType[o.key];n&&(e=(t.enemy_counts.get(n)||0)-(i.enemy_counts.get(n)||0))}}if(0!==e)return n===d.SortDirection.Asc?e:-e}return 0})},columns:[{key:"method",title:"Method",fixed:!0,width:250,sortable:!0,render_cell:e=>e.name},{key:"time",title:"Time",fixed:!0,width:60,input:!0,sortable:!0,render_cell(e,t){const i=t.add(new a.DurationInput(e.time.val));return t.add(i.value.observe(({value:t})=>e.set_user_time(t))),i.element}},...this.enemy_types.map(e=>({key:r.NpcType[e],title:r.npc_data(e).simple_name,width:90,text_align:"right",sortable:!0,render_cell(t){const i=t.enemy_counts.get(e);return null==i?"":i.toString()}}))]}));this.element.append(i.element),this.disposable(s.hunt_method_stores.observe_current(e=>{this.hunt_methods_observer&&this.hunt_methods_observer.dispose(),this.hunt_methods_observer=e.methods.observe(({value:e})=>{t.val=e.filter(e=>e.episode===this.episode)},{call_now:!0})},{call_now:!0})),this.finalize_construction(_.prototype)}dispose(){super.dispose(),this.hunt_methods_observer&&this.hunt_methods_observer.dispose()}}t.MethodsForEpisodeView=_},jJhE:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.is_property=function(e){return e.is_property},t.is_any_property=function(e){return e&&e.is_property}},karJ:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("Yuai");t.get_character_class_data=function(e,t,i){return o(this,void 0,void 0,(function*(){return yield n.load_array_buffer(function(e,t,i){return`/player/${e}${t}${null==i?"":i}.nj`}(e,t,i))}))},t.get_character_class_animation_data=function(e){return o(this,void 0,void 0,(function*(){return yield n.load_array_buffer(`/player/animation/animation_${e.toString().padStart(3,"0")}.njm`)}))}},kiqn:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yRp4"),n=i("ouMO");t.QuestEntityModel=class{constructor(e,t,i,s,r){if(this._section=n.property(void 0),this.position_to_world_position=(e,t)=>{if(e){let{x:i,y:n,z:s}=t;const r=-e.sin_y_axis_rotation,a=e.cos_y_axis_rotation,d=r*i+a*s,l=a*i-r*s+e.position.x,_=n+e.position.y,u=d+e.position.z;return new o.Vec3(l,_,u)}return t},null==e)throw new Error("type is required.");if(!Number.isInteger(t))throw new Error("area_id should be an integer.");if(!Number.isInteger(i))throw new Error("section_id should be an integer.");if(!s)throw new Error("position is required.");if(!r)throw new Error("rotation is required.");this.type=e,this.area_id=t,this.section=this._section,this._section_id=n.property(i),this.section_id=this._section_id,this._position=n.property(s),this.position=this._position,this._rotation=n.property(r),this.rotation=this._rotation,this.world_position=n.map(this.position_to_world_position,this.section,this.position)}set_section(e){if(e.area_variant.area.id!==this.area_id)throw new Error("Quest entities can't be moved across areas.");return this._section.val=e,this._section_id.val=e.id,this}set_position(e){this._position.val=e}set_rotation(e){this._rotation.val=e}set_world_position(e){let{x:t,y:i,z:n}=e;const s=this.section.val;if(s){const e=t-s.position.x,o=i-s.position.y,r=n-s.position.z,a=-s.sin_y_axis_rotation,d=s.cos_y_axis_rotation;t=d*e+a*r,i=o,n=-a*e+d*r}return this._position.val=new o.Vec3(t,i,n),this}}},kwt4:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yRp4"),n=i("9Ykw"),s=i("9Onn"),r=i("q7ag");t.ANGLE_TO_RAD=2*Math.PI/65535;const a=1296255566;t.is_njcm_model=function(e){return"njcm"===e.type},t.is_xj_model=function(e){return"xj"===e.type};class d{constructor(e,t,i,o,n,s){this.bone_cache=new Map,this._bone_count=-1,this.evaluation_flags=e,this.model=t,this.position=i,this.rotation=o,this.scale=n,this.children=s}bone_count(){if(-1===this._bone_count){const e=[0];this.get_bone_internal(this,1/0,e),this._bone_count=e[0]}return this._bone_count}get_bone(e){let t=this.bone_cache.get(e);return void 0===t&&(t=this.get_bone_internal(this,e,[0]),this.bone_cache.set(e,t||null)),t||void 0}get_bone_internal(e,t,i){if(!e.evaluation_flags.skip){const o=i[0]++;if(this.bone_cache.set(o,e),o===t)return e}if(!e.evaluation_flags.break_child_trace)for(const o of e.children){const e=this.get_bone_internal(o,t,i);if(e)return e}}}function l(e,t,i){const o=n.parse_iff(e).filter(e=>e.type===a),s=[];for(const e of o)s.push(..._(e.data,t,i));return s}function _(e,i,n){const s=e.u32(),r=0!=(1&s),a=0!=(2&s),l=0!=(4&s),u=0!=(8&s),c=0!=(16&s),p=0!=(32&s),v=0!=(64&s),h=0!=(128&s),w=e.u32(),f=e.f32(),E=e.f32(),O=e.f32(),m=e.i32()*t.ANGLE_TO_RAD,g=e.i32()*t.ANGLE_TO_RAD,y=e.i32()*t.ANGLE_TO_RAD,b=e.f32(),D=e.f32(),P=e.f32(),T=e.u32(),R=e.u32();let S,N,k;return w&&(e.seek_start(w),S=i(e,n)),T?(e.seek_start(T),N=_(e,i,n)):N=[],R?(e.seek_start(R),k=_(e,i,n)):k=[],[new d({no_translate:r,no_rotate:a,no_scale:l,hidden:u,break_child_trace:c,zxy_rotation_order:p,skip:v,shape_skip:h},S,new o.Vec3(f,E,O),new o.Vec3(m,g,y),new o.Vec3(b,D,P),N),...k]}t.NjObject=d,t.parse_nj=function(e){return l(e,s.parse_njcm_model,[])},t.parse_xj=function(e){return l(e,r.parse_xj_model,void 0)},t.parse_xj_object=function(e){return _(e,r.parse_xj_model,void 0)}},lC1H:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EnemyDrop=class{constructor(e,t,i,o,n,s){this.difficulty=e,this.section_id=t,this.npc_type=i,this.item_type=o,this.anything_rate=n,this.rare_rate=s,this.rate=n*s}}},lHpu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=i("tyuj"),s=i("iR5r"),r=i("Eqai"),a=i("488w"),d=i("7CyS"),l=i("Ftn7"),_=i("Tpfs");t.Model3DRenderer=class extends l.Renderer{constructor(){super(),this.disposer=new _.Disposer,this.clock=new o.Clock,this.update_animation_time=!0,this.camera=new o.PerspectiveCamera(75,1,1,200),this.nj_data_or_xvm_changed=()=>{this.mesh&&(this.scene.remove(this.mesh),this.mesh=void 0,this.scene.remove(this.skeleton_helper),this.skeleton_helper=void 0),this.animation&&(this.animation.mixer.stopAllAction(),this.mesh&&this.animation.mixer.uncacheRoot(this.mesh),this.animation=void 0);const e=n.model_store.current_nj_data.val;if(e){const{nj_object:t,has_skeleton:i}=e;let d;const l=n.model_store.current_xvm.val,_=l?s.xvm_to_textures(l):void 0,u=_&&_.map(e=>new o.MeshLambertMaterial({skinning:i,map:e,side:o.DoubleSide,alphaTest:.5})),c=(d=i?r.create_skinned_mesh(a.ninja_object_to_buffer_geometry(t),u):r.create_mesh(a.ninja_object_to_buffer_geometry(t),u)).geometry.boundingBox,p=c.max.y-c.min.y;d.translateY(-p/2-c.min.y),this.mesh=d,this.scene.add(d),this.skeleton_helper=new o.SkeletonHelper(d),this.skeleton_helper.visible=n.model_store.show_skeleton.val,this.skeleton_helper.material.linewidth=3,this.scene.add(this.skeleton_helper),this.reset_camera(new o.Vector3(0,10,20),new o.Vector3(0,0,0))}this.schedule_render()},this.nj_motion_changed=({value:e})=>{let t;this.animation&&(this.animation.mixer.stopAllAction(),t=this.animation.mixer);const i=n.model_store.current_nj_data.val;if(!(this.mesh&&this.mesh instanceof o.SkinnedMesh&&e&&i))return;this.animation||(t=new o.AnimationMixer(this.mesh));const s=d.create_animation_clip(i.nj_object,e);this.animation={mixer:t,clip:s,action:t.clipAction(s)},this.clock.start(),this.animation.action.play(),this.schedule_render()},this.show_skeleton_changed=({value:e})=>{this.skeleton_helper&&(this.skeleton_helper.visible=e,this.schedule_render())},this.animation_playing_changed=({value:e})=>{this.animation&&(this.animation.action.paused=!e,e?(this.clock.start(),this.schedule_render()):this.clock.stop())},this.animation_frame_rate_changed=({value:e})=>{this.animation&&(this.animation.mixer.timeScale=e/d.PSO_FRAME_RATE)},this.animation_frame_changed=({value:e})=>{const t=n.model_store.current_nj_motion.val;if(this.animation&&t){const i=t.frame_count;e>i&&(e=1),e<1&&(e=i),this.update_animation_time&&(this.animation.action.time=(e-1)/d.PSO_FRAME_RATE),this.schedule_render()}},this.disposer.add_all(n.model_store.current_nj_data.observe(this.nj_data_or_xvm_changed),n.model_store.current_xvm.observe(this.nj_data_or_xvm_changed),n.model_store.current_nj_motion.observe(this.nj_motion_changed),n.model_store.show_skeleton.observe(this.show_skeleton_changed),n.model_store.animation_playing.observe(this.animation_playing_changed),n.model_store.animation_frame_rate.observe(this.animation_frame_rate_changed),n.model_store.animation_frame.observe(this.animation_frame_changed)),this.init_camera_controls()}set_size(e,t){this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),super.set_size(e,t)}dispose(){super.dispose(),this.disposer.dispose()}render(){this.animation&&this.animation.mixer.update(this.clock.getDelta()),this.light_holder.quaternion.copy(this.camera.quaternion),super.render(),this.animation&&!this.animation.action.paused&&(this.update_animation_frame(),this.schedule_render())}update_animation_frame(){if(this.animation&&!this.animation.action.paused){const e=this.animation.action.time;this.update_animation_time=!1,n.model_store.animation_frame.val=e*d.PSO_FRAME_RATE+1,this.update_animation_time=!0}}}},lPzw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AreaModel=class{constructor(e,t,i,o){if(!Number.isInteger(e)||e<0)throw new Error(`Expected id to be a non-negative integer, got ${e}.`);if(!t)throw new Error("name is required.");if(!o)throw new Error("area_variants is required.");this.id=e,this.name=t,this.order=i,this.area_variants=o}}},lg9k:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ZPAt");t.Instruction=class{constructor(e,t){this.opcode=e,this.args=t,this.arg_size=0,this.param_to_args=[];const i=Math.min(e.params.length,t.length);for(let n=0;ne.can_undo),this.can_redo=this.current.flat_map(e=>e.can_redo),this.first_undo=this.current.flat_map(e=>e.first_undo),this.first_redo=this.current.flat_map(e=>e.first_redo)}undo(){return this.current.val.undo()}redo(){return this.current.val.redo()}}},nEgy:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Tpfs"),n=i("+LO4"),s=i("52VV");class r extends n.AbstractMinimalProperty{constructor(e,t){super(),this.dependencies=e,this.f=t,this.dependency_disposables=new o.Disposer}get val(){return this.get_val()}get_val(){return this.dependency_disposables.length?this._val:this.f()}observe(e,t={}){const i=super.observe(e,t);return 0===this.dependency_disposables.length&&(this._val=this.f(),this.dependency_disposables.add_all(...this.dependencies.map(e=>e.observe(()=>{const e=this._val;this._val=this.f(),this.emit(e)})))),this.emit(this._val),{dispose:()=>{i.dispose(),0===this.observers.length&&this.dependency_disposables.dispose_all()}}}map(e){return new r([this],()=>e(this.val))}flat_map(e){return new s.FlatMappedProperty(this,t=>e(t))}}t.DependentProperty=r},nN8q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid");t.ResizableWidget=class extends o.Widget{constructor(){super(...arguments),this.width=0,this.height=0}resize(e,t){return this.width=e,this.height=t,this.element.style.width=`${e}px`,this.element.style.height=`${t}px`,this}}},nowp:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ExVU"),n=i("ouMO");t.WantedItemModel=class{constructor(e,t){this.item_type=e,this._amount=n.property(t),this.amount=this._amount}set_amount(e){return this._amount.val=e,this}};t.OptimalResultModel=class{constructor(e,t){this.wanted_items=e,this.optimal_methods=t}};t.OptimalMethodModel=class{constructor(e,t,i,n,s,r,a){this.difficulty=e,this.section_ids=t,this.method_name=i,this.method_episode=n,this.method_time=s,this.runs=r,this.item_counts=a,this.total_time=o.Duration.fromMillis(r*s.as("milliseconds"))}}},nsCy:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("uiJh");var n,s,r;t.RARE_ENEMY_PROB=1/512,t.KONDRIEU_PROB=.1,function(e){e.Ephinea="Ephinea"}(n=t.Server||(t.Server={})),t.Servers=o.enum_values(n),function(e){e[e.Viridia=0]="Viridia",e[e.Greenill=1]="Greenill",e[e.Skyly=2]="Skyly",e[e.Bluefull=3]="Bluefull",e[e.Purplenum=4]="Purplenum",e[e.Pinkal=5]="Pinkal",e[e.Redria=6]="Redria",e[e.Oran=7]="Oran",e[e.Yellowboze=8]="Yellowboze",e[e.Whitill=9]="Whitill"}(s=t.SectionId||(t.SectionId={})),t.SectionIds=o.enum_values(s),function(e){e[e.Normal=0]="Normal",e[e.Hard=1]="Hard",e[e.VHard=2]="VHard",e[e.Ultimate=3]="Ultimate"}(r=t.Difficulty||(t.Difficulty={})),t.Difficulties=o.enum_values(r)},oSIo:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("x4IQ");t.EditShortDescriptionAction=class extends o.QuestEditAction{constructor(){super(...arguments),this.description="Edit short description"}undo(){this.quest.set_short_description(this.old)}redo(){this.quest.set_short_description(this.new)}}},ouMO:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Q+PT"),n=i("0CzU"),s=i("nEgy"),r=i("22Lq");t.emitter=function(){return new o.SimpleEmitter},t.property=function(e){return new n.SimpleProperty(e)},t.list_property=function(e,...t){return new r.SimpleListProperty(e,...t)},t.add=function(e,t){return e.map(e=>e+t)},t.sub=function(e,t){return e.map(e=>e-t)},t.map=function(e,...t){return new s.DependentProperty(t,()=>e(...t.map(e=>e.val)))}},oxtq:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ListChange=0]="ListChange",e[e.ValueChange=1]="ValueChange"}(t.ListChangeType||(t.ListChangeType={})),t.is_list_property=function(e){return e.is_list_property},t.is_any_list_property=function(e){return e&&e.is_list_property}},oyid:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb"),n=i("sDu+"),s=i("4VsB");class r extends n.LabelledControl{constructor(e=!1,t){super(t),this.element=o.create_element("input",{class:"core_CheckBox"}),this.preferred_label_position="right",this._checked=new s.WidgetProperty(this,e,this.set_checked),this.checked=this._checked,this.set_checked(e),this.element.type="checkbox",this.element.onchange=()=>this._checked.set_val(this.element.checked,{silent:!1}),this.finalize_construction(r.prototype)}set_enabled(e){super.set_enabled(e),this.element.disabled=!e}set_checked(e){this.element.checked=e}}t.CheckBox=r},pgiS:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("x4IQ");t.EditNameAction=class extends o.QuestEditAction{constructor(){super(...arguments),this.description="Edit name"}undo(){this.quest.set_name(this.old)}redo(){this.quest.set_name(this.new)}}},poKQ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yQqj"),n=i("c5EP");t.CreateEntityAction=class{constructor(e){this.entity=e,this.description=`Create ${o.entity_data(e.type).name}`}undo(){const e=n.quest_editor_store.current_quest.val;e&&e.remove_entity(this.entity)}redo(){const e=n.quest_editor_store.current_quest.val;e&&(e.add_entity(this.entity),n.quest_editor_store.set_selected_entity(this.entity))}}},q1Dg:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb"),s=i("c5EP"),r=i("xs7i"),a=i("PE7g"),d=i("Tpfs"),l=i("E/0a"),_=i("ETgL");i("ObFr");const u=i("5aKR");class c extends o.ResizableWidget{constructor(){super(),this.element=n.el.div({class:"quest_editor_QuestInfoView",tab_index:-1}),this.table_element=n.el.table(),this.id_input=this.disposable(new a.NumberInput),this.name_input=this.disposable(new l.TextInput("",{max_length:32})),this.short_description_input=this.disposable(new _.TextArea("",{max_length:128,font_family:'"Courier New", monospace',cols:25,rows:5})),this.long_description_input=this.disposable(new _.TextArea("",{max_length:288,font_family:'"Courier New", monospace',cols:25,rows:10})),this.no_quest_view=new u.DisabledView("No quest loaded."),this.quest_disposer=this.disposable(new d.Disposer);const e=s.quest_editor_store.current_quest,t=e.map(e=>null==e);this.table_element.append(n.el.tr({},n.el.th({text:"Episode:"}),this.episode_element=n.el.td()),n.el.tr({},n.el.th({text:"ID:"}),n.el.td({},this.id_input.element)),n.el.tr({},n.el.th({text:"Name:"}),n.el.td({},this.name_input.element)),n.el.tr({},n.el.th({text:"Short description:",col_span:2})),n.el.tr({},n.el.td({col_span:2},this.short_description_input.element)),n.el.tr({},n.el.th({text:"Long description:",col_span:2})),n.el.tr({},n.el.td({col_span:2},this.long_description_input.element))),this.bind_hidden(this.table_element,t),this.element.append(this.table_element,this.no_quest_view.element),this.element.addEventListener("focus",()=>s.quest_editor_store.undo.make_current(),!0),this.disposables(this.no_quest_view.visible.bind_to(t),e.observe(({value:e})=>{this.quest_disposer.dispose_all(),this.episode_element.textContent=e?r.Episode[e.episode]:"",e&&this.quest_disposer.add_all(this.id_input.value.bind_to(e.id),this.id_input.value.observe(s.quest_editor_store.push_edit_id_action),this.name_input.value.bind_to(e.name),this.name_input.value.observe(s.quest_editor_store.push_edit_name_action),this.short_description_input.value.bind_to(e.short_description),this.short_description_input.value.observe(s.quest_editor_store.push_edit_short_description_action),this.long_description_input.value.bind_to(e.long_description),this.long_description_input.value.observe(s.quest_editor_store.push_edit_long_description_action))})),this.finalize_construction(c.prototype)}}t.QuestInfoView=c},q7ag:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(i("GGSb")).default.get("data_formats/parsing/ninja/xj");function s(e,t,i){const o=[];for(let n=0;n=1&&(i>1&&n.warn(`Vertex info count of ${i} was larger than expected.`),l.vertices.push(...function(e,t){e.seek_start(t);const i=e.u16();e.seek(2);const o=e.u32(),s=e.u32(),r=e.u32(),a=[];for(let t=0;tthis.button_mousedown(),{capture:!0}),this.button.mouseup.observe(()=>this.button_mouseup()),this.menu.selected.observe(({value:e})=>{e&&(this._chosen.emit({value:e}),this.menu.selected.val=void 0)})),this.finalize_construction(d.prototype)}set_enabled(e){super.set_enabled(e),this.button.enabled.val=e}button_mousedown(){this.just_opened=!this.menu.visible.val,this.menu.visible.val=!0}button_mouseup(){this.just_opened?this.menu.focus():this.menu.visible.val=!1,this.just_opened=!1}}t.DropDown=d},rqwK:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i("GGSb")),r=i("nsCy"),a=i("sZ1+"),d=i("upFJ"),l=i("IV2v"),_=i("RMZt"),u=i("ExVU"),c=i("ouMO"),p=i("Tpfs"),v=i("6WXA"),h=s.default.get("hunt_optimizer/stores/HuntMethodStore"),w=u.Duration.fromObject({minutes:30}),f=u.Duration.fromObject({minutes:45}),E=u.Duration.fromObject({minutes:45});class O{constructor(e,t){this.disposer=new p.Disposer,this.methods=c.list_property(e=>[e.user_time],...t),this.disposer.add(this.methods.observe_list(()=>_.hunt_method_persister.persist_method_user_times(this.methods.val,e)))}dispose(){this.disposer.dispose()}}t.HuntMethodStore=O,t.hunt_method_stores=new v.ServerMap((function(e){return o(this,void 0,void 0,(function*(){const t=yield fetch(`/assets/quests.${r.Server[e].toLowerCase()}.json`),i=yield t.json(),o=[];for(const e of i){let t=0;const i=new Map;for(const[o,n]of Object.entries(e.enemyCounts)){const e=a.NpcType[o];e?(i.set(e,n),t+=n):h.error(`No NpcType found for code ${o}.`)}switch(e.id){case 31:case 34:case 1305:case 1306:case 1307:case 313:case 314:continue}o.push(new l.HuntMethodModel(`q${e.id}`,e.name,new d.SimpleQuestModel(e.id,e.name,e.episode,i),/^\d-\d.*/.test(e.name)?f:t>400?E:w))}return yield _.hunt_method_persister.load_method_user_times(o,e),new O(e,o)}))}))},"sDu+":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("7ZX1"),n=i("QmPX");t.LabelledControl=class extends n.Control{constructor(e){super(e),this._label_text=e&&e.label}get label(){return this._label||null==this._label_text||(this._label=this.disposable(new o.Label(this._label_text,{enabled:this.enabled.val,tooltip:this.tooltip.val})),this.id||(this.id="core_LabelledControl_id_"+String(s++)),this._label.for=this.id),this._label}set_enabled(e){super.set_enabled(e),this._label&&(this._label.enabled.val=e)}set_tooltip(e){super.set_tooltip(e),this._label&&(this._label.tooltip.val=e)}};let s=0},sMN3:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i("lLyO")),r=i("nsCy"),a=i("sZ1+"),d=i("nowp"),l=i("ouMO"),_=i("rqwK"),u=i("dx17"),c=i("G+UN"),p=i("w+Lt"),v=i("6WXA"),h=i("Tpfs");class w{constructor(e,t,i,n){this.server=e,this.item_drop_store=i,this._wanted_items=l.list_property(e=>[e.amount]),this.disposer=new h.Disposer,this.optimize=(e,t)=>{if(!e.length)return;const i=new Set(e.filter(e=>e.amount.val>0).map(e=>e.item_type)),o=this.item_drop_store.enemy_drops,n={};for(const e of this.wanted_items.val)n[e.item_type.name]={min:e.amount.val};const l={},_=new Map;for(const e of t){const t=new Map;for(const[i,o]of e.enemy_counts.entries()){const e=t.get(i)||0,n=a.npc_data(i);if(null==n.rare_type)t.set(i,e+o);else{let s,d;n.rare_type===a.NpcType.Kondrieu?(s=1-r.KONDRIEU_PROB,d=r.KONDRIEU_PROB):(s=1-r.RARE_ENEMY_PROB,d=r.RARE_ENEMY_PROB),t.set(i,e+o*s),t.set(n.rare_type,(t.get(n.rare_type)||0)+o*d)}}const n=[t],s=t.get(a.NpcType.PanArms);if(s){const e=new Map(t);e.delete(a.NpcType.PanArms),e.set(a.NpcType.Migium,s),e.set(a.NpcType.Hidoom,s),n.push(e)}const d=t.get(a.NpcType.PanArms2);if(d){const e=new Map(t);e.delete(a.NpcType.PanArms2),e.set(a.NpcType.Migium2,d),e.set(a.NpcType.Hidoom2,d),n.push(e)}for(let t=0;to(this,void 0,void 0,(function*(){this._wanted_items.val=yield p.hunt_optimizer_persister.load_wanted_items(this.server),this.disposer.add(this._wanted_items.observe(({value:e})=>{p.hunt_optimizer_persister.persist_wanted_items(this.server,e)}))})),this.huntable_item_types=t.item_types.filter(e=>i.enemy_drops.get_drops_for_item_type(e.id).length),this.wanted_items=this._wanted_items,this.result=l.map(this.optimize,this.wanted_items,n.methods),this.initialize_persistence()}dispose(){this.disposer.dispose()}add_wanted_item(e){this._wanted_items.val.find(t=>t.item_type===e)||this._wanted_items.push(new d.WantedItemModel(e,1))}remove_wanted_item(e){this._wanted_items.remove(e)}full_method_name(e,t,i,o){let n=`${e}\t${t}\t${i.id}`;return o&&(n+="\tspa"),n}}t.hunt_optimizer_stores=new v.ServerMap((function(e){return o(this,void 0,void 0,(function*(){return new w(e,yield c.item_type_stores.get(e),yield u.item_drop_stores.get(e),yield _.hunt_method_stores.get(e))}))}))},"sZ1+":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("xs7i");var n;!function(e){e[e.Unknown=0]="Unknown",e[e.FemaleFat=1]="FemaleFat",e[e.FemaleMacho=2]="FemaleMacho",e[e.FemaleTall=3]="FemaleTall",e[e.MaleDwarf=4]="MaleDwarf",e[e.MaleFat=5]="MaleFat",e[e.MaleMacho=6]="MaleMacho",e[e.MaleOld=7]="MaleOld",e[e.BlueSoldier=8]="BlueSoldier",e[e.RedSoldier=9]="RedSoldier",e[e.Principal=10]="Principal",e[e.Tekker=11]="Tekker",e[e.GuildLady=12]="GuildLady",e[e.Scientist=13]="Scientist",e[e.Nurse=14]="Nurse",e[e.Irene=15]="Irene",e[e.ItemShop=16]="ItemShop",e[e.Nurse2=17]="Nurse2",e[e.Hildebear=18]="Hildebear",e[e.Hildeblue=19]="Hildeblue",e[e.RagRappy=20]="RagRappy",e[e.AlRappy=21]="AlRappy",e[e.Monest=22]="Monest",e[e.Mothmant=23]="Mothmant",e[e.SavageWolf=24]="SavageWolf",e[e.BarbarousWolf=25]="BarbarousWolf",e[e.Booma=26]="Booma",e[e.Gobooma=27]="Gobooma",e[e.Gigobooma=28]="Gigobooma",e[e.Dragon=29]="Dragon",e[e.GrassAssassin=30]="GrassAssassin",e[e.PoisonLily=31]="PoisonLily",e[e.NarLily=32]="NarLily",e[e.NanoDragon=33]="NanoDragon",e[e.EvilShark=34]="EvilShark",e[e.PalShark=35]="PalShark",e[e.GuilShark=36]="GuilShark",e[e.PofuillySlime=37]="PofuillySlime",e[e.PouillySlime=38]="PouillySlime",e[e.PanArms=39]="PanArms",e[e.Migium=40]="Migium",e[e.Hidoom=41]="Hidoom",e[e.DeRolLe=42]="DeRolLe",e[e.Dubchic=43]="Dubchic",e[e.Gilchic=44]="Gilchic",e[e.Garanz=45]="Garanz",e[e.SinowBeat=46]="SinowBeat",e[e.SinowGold=47]="SinowGold",e[e.Canadine=48]="Canadine",e[e.Canane=49]="Canane",e[e.Dubswitch=50]="Dubswitch",e[e.VolOpt=51]="VolOpt",e[e.Delsaber=52]="Delsaber",e[e.ChaosSorcerer=53]="ChaosSorcerer",e[e.DarkGunner=54]="DarkGunner",e[e.DeathGunner=55]="DeathGunner",e[e.ChaosBringer=56]="ChaosBringer",e[e.DarkBelra=57]="DarkBelra",e[e.Dimenian=58]="Dimenian",e[e.LaDimenian=59]="LaDimenian",e[e.SoDimenian=60]="SoDimenian",e[e.Bulclaw=61]="Bulclaw",e[e.Bulk=62]="Bulk",e[e.Claw=63]="Claw",e[e.DarkFalz=64]="DarkFalz",e[e.Hildebear2=65]="Hildebear2",e[e.Hildeblue2=66]="Hildeblue2",e[e.RagRappy2=67]="RagRappy2",e[e.LoveRappy=68]="LoveRappy",e[e.StRappy=69]="StRappy",e[e.HalloRappy=70]="HalloRappy",e[e.EggRappy=71]="EggRappy",e[e.Monest2=72]="Monest2",e[e.Mothmant2=73]="Mothmant2",e[e.PoisonLily2=74]="PoisonLily2",e[e.NarLily2=75]="NarLily2",e[e.GrassAssassin2=76]="GrassAssassin2",e[e.Dimenian2=77]="Dimenian2",e[e.LaDimenian2=78]="LaDimenian2",e[e.SoDimenian2=79]="SoDimenian2",e[e.DarkBelra2=80]="DarkBelra2",e[e.BarbaRay=81]="BarbaRay",e[e.SavageWolf2=82]="SavageWolf2",e[e.BarbarousWolf2=83]="BarbarousWolf2",e[e.PanArms2=84]="PanArms2",e[e.Migium2=85]="Migium2",e[e.Hidoom2=86]="Hidoom2",e[e.Dubchic2=87]="Dubchic2",e[e.Gilchic2=88]="Gilchic2",e[e.Garanz2=89]="Garanz2",e[e.Dubswitch2=90]="Dubswitch2",e[e.Delsaber2=91]="Delsaber2",e[e.ChaosSorcerer2=92]="ChaosSorcerer2",e[e.GolDragon=93]="GolDragon",e[e.SinowBerill=94]="SinowBerill",e[e.SinowSpigell=95]="SinowSpigell",e[e.Merillia=96]="Merillia",e[e.Meriltas=97]="Meriltas",e[e.Mericarol=98]="Mericarol",e[e.Mericus=99]="Mericus",e[e.Merikle=100]="Merikle",e[e.UlGibbon=101]="UlGibbon",e[e.ZolGibbon=102]="ZolGibbon",e[e.Gibbles=103]="Gibbles",e[e.Gee=104]="Gee",e[e.GiGue=105]="GiGue",e[e.IllGill=106]="IllGill",e[e.DelLily=107]="DelLily",e[e.Epsilon=108]="Epsilon",e[e.GalGryphon=109]="GalGryphon",e[e.Deldepth=110]="Deldepth",e[e.Delbiter=111]="Delbiter",e[e.Dolmolm=112]="Dolmolm",e[e.Dolmdarl=113]="Dolmdarl",e[e.Morfos=114]="Morfos",e[e.Recobox=115]="Recobox",e[e.Recon=116]="Recon",e[e.SinowZoa=117]="SinowZoa",e[e.SinowZele=118]="SinowZele",e[e.OlgaFlow=119]="OlgaFlow",e[e.SandRappy=120]="SandRappy",e[e.DelRappy=121]="DelRappy",e[e.Astark=122]="Astark",e[e.SatelliteLizard=123]="SatelliteLizard",e[e.Yowie=124]="Yowie",e[e.MerissaA=125]="MerissaA",e[e.MerissaAA=126]="MerissaAA",e[e.Girtablulu=127]="Girtablulu",e[e.Zu=128]="Zu",e[e.Pazuzu=129]="Pazuzu",e[e.Boota=130]="Boota",e[e.ZeBoota=131]="ZeBoota",e[e.BaBoota=132]="BaBoota",e[e.Dorphon=133]="Dorphon",e[e.DorphonEclair=134]="DorphonEclair",e[e.Goran=135]="Goran",e[e.PyroGoran=136]="PyroGoran",e[e.GoranDetonator=137]="GoranDetonator",e[e.SaintMilion=138]="SaintMilion",e[e.Shambertin=139]="Shambertin",e[e.Kondrieu=140]="Kondrieu"}(n=t.NpcType||(t.NpcType={})),t.NPC_TYPES=[],t.ENEMY_NPC_TYPES=[],t.npc_data=function(e){return r[e]},t.name_and_episode_to_npc_type=function(e,t){return o.check_episode(t),s[t].get(e)};const s=[void 0,new Map,new Map,void 0,new Map],r=[];function a(e,i,o,n,a,d,l,_,u,c,p){if(t.NPC_TYPES.push(e),d&&t.ENEMY_NPC_TYPES.push(e),r[e]=Object.freeze({name:i,simple_name:o,ultimate_name:n,episode:a,enemy:d,rare_type:l,area_ids:_,pso_type_id:u,pso_roaming:c,pso_regular:p}),a){const t=s[a];t&&(t.set(o,e),t.set(n,e))}}a(n.Unknown,"Unknown","Unknown","Unknown",void 0,!1,void 0,[],void 0,void 0,void 0),a(n.FemaleFat,"Female Fat","Female Fat","Female Fat",void 0,!1,void 0,[0],4,0,!0),a(n.FemaleMacho,"Female Macho","Female Macho","Female Macho",void 0,!1,void 0,[0],5,0,!0),a(n.FemaleTall,"Female Tall","Female Tall","Female Tall",void 0,!1,void 0,[0],7,0,!0),a(n.MaleDwarf,"Male Dwarf","Male Dwarf","Male Dwarf",void 0,!1,void 0,[0],10,0,!0),a(n.MaleFat,"Male Fat","Male Fat","Male Fat",void 0,!1,void 0,[0],11,0,!0),a(n.MaleMacho,"Male Macho","Male Macho","Male Macho",void 0,!1,void 0,[0],12,0,!0),a(n.MaleOld,"Male Old","Male Old","Male Old",void 0,!1,void 0,[0],13,0,!0),a(n.BlueSoldier,"Blue Soldier","Blue Soldier","Blue Soldier",void 0,!1,void 0,[0],25,0,!0),a(n.RedSoldier,"Red Soldier","Red Soldier","Red Soldier",void 0,!1,void 0,[0],26,0,!0),a(n.Principal,"Principal","Principal","Principal",void 0,!1,void 0,[0],27,0,!0),a(n.Tekker,"Tekker","Tekker","Tekker",void 0,!1,void 0,[0],28,0,!0),a(n.GuildLady,"Guild Lady","Guild Lady","Guild Lady",void 0,!1,void 0,[0],29,0,!0),a(n.Scientist,"Scientist","Scientist","Scientist",void 0,!1,void 0,[0],30,0,!0),a(n.Nurse,"Nurse","Nurse","Nurse",void 0,!1,void 0,[0],31,0,!0),a(n.Irene,"Irene","Irene","Irene",void 0,!1,void 0,[0],32,0,!0),a(n.ItemShop,"Item Shop","Item Shop","Item Shop",void 0,!1,void 0,[0],241,0,!0),a(n.Nurse2,"Nurse (Ep. II)","Nurse","Nurse",2,!1,void 0,[0],254,0,!0),a(n.Hildebear,"Hildebear","Hildebear","Hildelt",1,!0,n.Hildeblue,[1,2],64,0,!0),a(n.Hildeblue,"Hildeblue","Hildeblue","Hildetorr",1,!0,void 0,[1,2],64,1,!0),a(n.RagRappy,"Rag Rappy","Rag Rappy","El Rappy",1,!0,n.AlRappy,[1,2],65,0,!0),a(n.AlRappy,"Al Rappy","Al Rappy","Pal Rappy",1,!0,void 0,[1,2],65,1,!0),a(n.Monest,"Monest","Monest","Mothvist",1,!0,void 0,[1,2],66,0,!0),a(n.Mothmant,"Mothmant","Mothmant","Mothvert",1,!0,void 0,[],void 0,void 0,void 0),a(n.SavageWolf,"Savage Wolf","Savage Wolf","Gulgus",1,!0,void 0,[1,2],67,0,!0),a(n.BarbarousWolf,"Barbarous Wolf","Barbarous Wolf","Gulgus-Gue",1,!0,void 0,[1,2],67,0,!1),a(n.Booma,"Booma","Booma","Bartle",1,!0,void 0,[1,2],68,0,!0),a(n.Gobooma,"Gobooma","Gobooma","Barble",1,!0,void 0,[1,2],68,1,!0),a(n.Gigobooma,"Gigobooma","Gigobooma","Tollaw",1,!0,void 0,[1,2],68,2,!0),a(n.Dragon,"Dragon","Dragon","Sil Dragon",1,!0,void 0,[11],192,0,!0),a(n.GrassAssassin,"Grass Assassin","Grass Assassin","Crimson Assassin",1,!0,void 0,[3,4,5],96,0,!0),a(n.PoisonLily,"Poison Lily","Poison Lily","Ob Lily",1,!0,n.NarLily,[3,4,5],97,0,!0),a(n.NarLily,"Nar Lily","Nar Lily","Mil Lily",1,!0,void 0,[3,4,5],97,1,!0),a(n.NanoDragon,"Nano Dragon","Nano Dragon","Nano Dragon",1,!0,void 0,[3,4,5],98,0,!0),a(n.EvilShark,"Evil Shark","Evil Shark","Vulmer",1,!0,void 0,[3,4,5],99,0,!0),a(n.PalShark,"Pal Shark","Pal Shark","Govulmer",1,!0,void 0,[3,4,5],99,1,!0),a(n.GuilShark,"Guil Shark","Guil Shark","Melqueek",1,!0,void 0,[3,4,5],99,2,!0),a(n.PofuillySlime,"Pofuilly Slime","Pofuilly Slime","Pofuilly Slime",1,!0,n.PouillySlime,[3,4,5],100,0,!0),a(n.PouillySlime,"Pouilly Slime","Pouilly Slime","Pouilly Slime",1,!0,void 0,[3,4,5],100,0,!1),a(n.PanArms,"Pan Arms","Pan Arms","Pan Arms",1,!0,void 0,[3,4,5],101,0,!0),a(n.Migium,"Migium","Migium","Migium",1,!0,void 0,[],void 0,void 0,void 0),a(n.Hidoom,"Hidoom","Hidoom","Hidoom",1,!0,void 0,[],void 0,void 0,void 0),a(n.DeRolLe,"De Rol Le","De Rol Le","Dal Ra Lie",1,!0,void 0,[12],193,0,!0),a(n.Dubchic,"Dubchic","Dubchic","Dubchich",1,!0,void 0,[6,7],128,0,!0),a(n.Gilchic,"Gilchic","Gilchic","Gilchich",1,!0,void 0,[6,7],128,1,!0),a(n.Garanz,"Garanz","Garanz","Baranz",1,!0,void 0,[6,7],129,0,!0),a(n.SinowBeat,"Sinow Beat","Sinow Beat","Sinow Blue",1,!0,void 0,[6,7],130,0,!0),a(n.SinowGold,"Sinow Gold","Sinow Gold","Sinow Red",1,!0,void 0,[6,7],130,0,!1),a(n.Canadine,"Canadine","Canadine","Canabin",1,!0,void 0,[6,7],131,0,!0),a(n.Canane,"Canane","Canane","Canune",1,!0,void 0,[6,7],132,0,!0),a(n.Dubswitch,"Dubswitch","Dubswitch","Dubswitch",1,!0,void 0,[6,7],133,0,!0),a(n.VolOpt,"Vol Opt","Vol Opt","Vol Opt ver.2",1,!0,void 0,[13],197,0,!0),a(n.Delsaber,"Delsaber","Delsaber","Delsaber",1,!0,void 0,[8,9,10],160,0,!0),a(n.ChaosSorcerer,"Chaos Sorcerer","Chaos Sorcerer","Gran Sorcerer",1,!0,void 0,[8,9,10],161,0,!0),a(n.DarkGunner,"Dark Gunner","Dark Gunner","Dark Gunner",1,!0,void 0,[8,9,10],162,0,!0),a(n.DeathGunner,"Death Gunner","Death Gunner","Death Gunner",1,!0,void 0,[],void 0,void 0,void 0),a(n.ChaosBringer,"Chaos Bringer","Chaos Bringer","Dark Bringer",1,!0,void 0,[8,9,10],164,0,!0),a(n.DarkBelra,"Dark Belra","Dark Belra","Indi Belra",1,!0,void 0,[8,9,10],165,0,!0),a(n.Dimenian,"Dimenian","Dimenian","Arlan",1,!0,void 0,[8,9,10],166,0,!0),a(n.LaDimenian,"La Dimenian","La Dimenian","Merlan",1,!0,void 0,[8,9,10],166,1,!0),a(n.SoDimenian,"So Dimenian","So Dimenian","Del-D",1,!0,void 0,[8,9,10],166,2,!0),a(n.Bulclaw,"Bulclaw","Bulclaw","Bulclaw",1,!0,void 0,[8,9,10],167,0,!0),a(n.Bulk,"Bulk","Bulk","Bulk",1,!0,void 0,[],void 0,void 0,void 0),a(n.Claw,"Claw","Claw","Claw",1,!0,void 0,[8,9,10],168,0,!0),a(n.DarkFalz,"Dark Falz","Dark Falz","Dark Falz",1,!0,void 0,[14],200,0,!0),a(n.Hildebear2,"Hildebear (Ep. II)","Hildebear","Hildelt",2,!0,n.Hildeblue2,[1,2],64,0,!0),a(n.Hildeblue2,"Hildeblue (Ep. II)","Hildeblue","Hildetorr",2,!0,void 0,[1,2],64,1,!0),a(n.RagRappy2,"Rag Rappy (Ep. II)","Rag Rappy","El Rappy",2,!0,n.LoveRappy,[1,2],65,0,!0),a(n.LoveRappy,"Love Rappy","Love Rappy","Love Rappy",2,!0,void 0,[1,2],65,1,!0),a(n.StRappy,"St. Rappy","St. Rappy","St. Rappy",2,!0,void 0,[],void 0,void 0,void 0),a(n.HalloRappy,"Hallo Rappy","Hallo Rappy","Hallo Rappy",2,!0,void 0,[],void 0,void 0,void 0),a(n.EggRappy,"Egg Rappy","Egg Rappy","Egg Rappy",2,!0,void 0,[],void 0,void 0,void 0),a(n.Monest2,"Monest (Ep. II)","Monest","Mothvist",2,!0,void 0,[1,2],66,0,!0),a(n.Mothmant2,"Mothmant","Mothmant","Mothvert",2,!0,void 0,[],void 0,void 0,void 0),a(n.PoisonLily2,"Poison Lily (Ep. II)","Poison Lily","Ob Lily",2,!0,n.NarLily2,[1,2],97,0,!0),a(n.NarLily2,"Nar Lily (Ep. II)","Nar Lily","Mil Lily",2,!0,void 0,[1,2],97,1,!0),a(n.GrassAssassin2,"Grass Assassin (Ep. II)","Grass Assassin","Crimson Assassin",2,!0,void 0,[1,2],96,0,!0),a(n.Dimenian2,"Dimenian (Ep. II)","Dimenian","Arlan",2,!0,void 0,[1,2],166,0,!0),a(n.LaDimenian2,"La Dimenian (Ep. II)","La Dimenian","Merlan",2,!0,void 0,[1,2],166,1,!0),a(n.SoDimenian2,"So Dimenian (Ep. II)","So Dimenian","Del-D",2,!0,void 0,[1,2],166,2,!0),a(n.DarkBelra2,"Dark Belra (Ep. II)","Dark Belra","Indi Belra",2,!0,void 0,[1,2],165,0,!0),a(n.BarbaRay,"Barba Ray","Barba Ray","Barba Ray",2,!0,void 0,[14],203,0,!0),a(n.SavageWolf2,"Savage Wolf (Ep. II)","Savage Wolf","Gulgus",2,!0,void 0,[3,4],67,0,!0),a(n.BarbarousWolf2,"Barbarous Wolf (Ep. II)","Barbarous Wolf","Gulgus-Gue",2,!0,void 0,[3,4],67,0,!1),a(n.PanArms2,"Pan Arms (Ep. II)","Pan Arms","Pan Arms",2,!0,void 0,[3,4],101,0,!0),a(n.Migium2,"Migium (Ep. II)","Migium","Migium",2,!0,void 0,[],void 0,void 0,void 0),a(n.Hidoom2,"Hidoom (Ep. II)","Hidoom","Hidoom",2,!0,void 0,[],void 0,void 0,void 0),a(n.Dubchic2,"Dubchic (Ep. II)","Dubchic","Dubchich",2,!0,void 0,[3,4],128,0,!0),a(n.Gilchic2,"Gilchic (Ep. II)","Gilchic","Gilchich",2,!0,void 0,[3,4],128,1,!0),a(n.Garanz2,"Garanz (Ep. II)","Garanz","Baranz",2,!0,void 0,[3,4],129,0,!0),a(n.Dubswitch2,"Dubswitch (Ep. II)","Dubswitch","Dubswitch",2,!0,void 0,[3,4],133,0,!0),a(n.Delsaber2,"Delsaber (Ep. II)","Delsaber","Delsaber",2,!0,void 0,[3,4],160,0,!0),a(n.ChaosSorcerer2,"Chaos Sorcerer (Ep. II)","Chaos Sorcerer","Gran Sorcerer",2,!0,void 0,[3,4],161,0,!0),a(n.GolDragon,"Gol Dragon","Gol Dragon","Gol Dragon",2,!0,void 0,[15],204,0,!0),a(n.SinowBerill,"Sinow Berill","Sinow Berill","Sinow Berill",2,!0,void 0,[5,6,7,8,9,16],212,0,!0),a(n.SinowSpigell,"Sinow Spigell","Sinow Spigell","Sinow Spigell",2,!0,void 0,[5,6,7,8,9,16],212,1,!0),a(n.Merillia,"Merillia","Merillia","Merillia",2,!0,void 0,[5,6,7,8,9,16],213,0,!0),a(n.Meriltas,"Meriltas","Meriltas","Meriltas",2,!0,void 0,[5,6,7,8,9,16],213,1,!0),a(n.Mericarol,"Mericarol","Mericarol","Mericarol",2,!0,void 0,[5,6,7,8,9,16,17],214,0,!0),a(n.Mericus,"Mericus","Mericus","Mericus",2,!0,void 0,[5,6,7,8,9,16,17],214,1,!0),a(n.Merikle,"Merikle","Merikle","Merikle",2,!0,void 0,[5,6,7,8,9,16,17],214,2,!0),a(n.UlGibbon,"Ul Gibbon","Ul Gibbon","Ul Gibbon",2,!0,void 0,[5,6,7,8,9,16],215,0,!0),a(n.ZolGibbon,"Zol Gibbon","Zol Gibbon","Zol Gibbon",2,!0,void 0,[5,6,7,8,9,16],215,1,!0),a(n.Gibbles,"Gibbles","Gibbles","Gibbles",2,!0,void 0,[5,6,7,8,9,16,17],216,0,!0),a(n.Gee,"Gee","Gee","Gee",2,!0,void 0,[5,6,7,8,9,16],217,0,!0),a(n.GiGue,"Gi Gue","Gi Gue","Gi Gue",2,!0,void 0,[5,6,7,8,9,16,17],218,0,!0),a(n.IllGill,"Ill Gill","Ill Gill","Ill Gill",2,!0,void 0,[17],225,0,!0),a(n.DelLily,"Del Lily","Del Lily","Del Lily",2,!0,void 0,[17],97,0,!0),a(n.Epsilon,"Epsilon","Epsilon","Epsilon",2,!0,void 0,[17],224,0,!0),a(n.GalGryphon,"Gal Gryphon","Gal Gryphon","Gal Gryphon",2,!0,void 0,[12],192,0,!0),a(n.Deldepth,"Deldepth","Deldepth","Deldepth",2,!0,void 0,[10,11],219,0,!0),a(n.Delbiter,"Delbiter","Delbiter","Delbiter",2,!0,void 0,[10,11,17],220,0,!0),a(n.Dolmolm,"Dolmolm","Dolmolm","Dolmolm",2,!0,void 0,[10,11],221,0,!0),a(n.Dolmdarl,"Dolmdarl","Dolmdarl","Dolmdarl",2,!0,void 0,[10,11],221,1,!0),a(n.Morfos,"Morfos","Morfos","Morfos",2,!0,void 0,[10,11],222,0,!0),a(n.Recobox,"Recobox","Recobox","Recobox",2,!0,void 0,[10,11,17],223,0,!0),a(n.Recon,"Recon","Recon","Recon",2,!0,void 0,[],void 0,void 0,void 0),a(n.SinowZoa,"Sinow Zoa","Sinow Zoa","Sinow Zoa",2,!0,void 0,[10,11],224,0,!0),a(n.SinowZele,"Sinow Zele","Sinow Zele","Sinow Zele",2,!0,void 0,[10,11],224,1,!0),a(n.OlgaFlow,"Olga Flow","Olga Flow","Olga Flow",2,!0,void 0,[13],202,0,!0),a(n.SandRappy,"Sand Rappy","Sand Rappy","Sand Rappy",4,!0,n.DelRappy,[1,2,3,4,5,6,7,8],65,0,!0),a(n.DelRappy,"Del Rappy","Del Rappy","Del Rappy",4,!0,void 0,[1,2,3,4,5,6,7,8],65,1,!0),a(n.Astark,"Astark","Astark","Astark",4,!0,void 0,[1,2,3,4,5,6,7,8],272,0,!0),a(n.SatelliteLizard,"Satellite Lizard","Satellite Lizard","Satellite Lizard",4,!0,void 0,[1,2,3,4,5,6,7,8],273,0,!0),a(n.Yowie,"Yowie","Yowie","Yowie",4,!0,void 0,[1,2,3,4,5,6,7,8],273,0,!1),a(n.MerissaA,"Merissa A","Merissa A","Merissa A",4,!0,n.MerissaAA,[6,7,8],274,0,!0),a(n.MerissaAA,"Merissa AA","Merissa AA","Merissa AA",4,!0,void 0,[6,7,8],274,1,!0),a(n.Girtablulu,"Girtablulu","Girtablulu","Girtablulu",4,!0,void 0,[6,7,8],275,0,!0),a(n.Zu,"Zu","Zu","Zu",4,!0,n.Pazuzu,[1,2,3,4,5,6,7,8],276,0,!0),a(n.Pazuzu,"Pazuzu","Pazuzu","Pazuzu",4,!0,void 0,[1,2,3,4,5,6,7,8],276,1,!0),a(n.Boota,"Boota","Boota","Boota",4,!0,void 0,[1,2,3,4,5],277,0,!0),a(n.ZeBoota,"Ze Boota","Ze Boota","Ze Boota",4,!0,void 0,[1,2,3,4,5],277,1,!0),a(n.BaBoota,"Ba Boota","Ba Boota","Ba Boota",4,!0,void 0,[1,2,3,4,5],277,2,!0),a(n.Dorphon,"Dorphon","Dorphon","Dorphon",4,!0,n.DorphonEclair,[1,2,3,4,5],278,0,!0),a(n.DorphonEclair,"Dorphon Eclair","Dorphon Eclair","Dorphon Eclair",4,!0,void 0,[1,2,3,4,5],278,1,!0),a(n.Goran,"Goran","Goran","Goran",4,!0,void 0,[6,7,8],279,0,!0),a(n.PyroGoran,"Pyro Goran","Pyro Goran","Pyro Goran",4,!0,void 0,[6,7,8],279,1,!0),a(n.GoranDetonator,"Goran Detonator","Goran Detonator","Goran Detonator",4,!0,void 0,[6,7,8],279,2,!0),a(n.SaintMilion,"Saint-Milion","Saint-Milion","Saint-Milion",4,!0,n.Kondrieu,[9],281,0,!0),a(n.Shambertin,"Shambertin","Shambertin","Shambertin",4,!0,n.Kondrieu,[9],281,1,!0),a(n.Kondrieu,"Kondrieu","Kondrieu","Kondrieu",4,!0,void 0,[9],281,0,!1),Object.freeze(t.NPC_TYPES),Object.freeze(t.ENEMY_NPC_TYPES),Object.freeze(r)},sv1z:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("sDu+"),n=i("FXpb");i("6MRE");const s=i("jJhE"),r=i("KVVN"),a=i("4VsB"),d=i("LSoc");class l extends o.LabelledControl{constructor(e,t,i){super(i),this.element=n.el.div({class:"core_Select"}),this.preferred_label_position="left",this.to_label=t,this.button=this.disposable(new r.Button(" ",{icon_right:n.Icon.TriangleDown})),this.menu=this.disposable(new d.Menu(e,t,this.element)),this.element.append(this.button.element,this.menu.element),this._selected=new a.WidgetProperty(this,void 0,this.set_selected),this.selected=this._selected,this.just_opened=!1,this.disposables(n.disposable_listener(this.button.element,"mousedown",e=>this.button_mousedown(e)),this.button.mouseup.observe(()=>this.button_mouseup()),this.menu.selected.observe(({value:e})=>this._selected.set_val(e,{silent:!1}))),i&&(s.is_any_property(i.selected)?this.selected.bind_to(i.selected):i.selected&&(this.selected.val=i.selected)),this.finalize_construction(l.prototype)}set_enabled(e){super.set_enabled(e),this.button.enabled.val=e}set_selected(e){this.button.text.val=e?this.to_label(e):" ",this.menu.selected.val=e}button_mousedown(e){e.stopPropagation(),this.just_opened=!this.menu.visible.val,this.menu.visible.val=!0}button_mouseup(){this.just_opened?this.menu.focus():this.menu.visible.val=!1,this.just_opened=!1}}t.Select=l},t2oB:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CharacterClassAnimationModel=class{constructor(e,t){this.id=e,this.name=t}}},tRdk:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt");t.vec3_to_threejs=function(e){return new o.Vector3(e.x,e.y,e.z)}},tjEv:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ResizableBuffer=class{constructor(e=8192){this._size=0,this._buffer=new ArrayBuffer(e),this._data_view=new DataView(this._buffer)}get size(){return this._size}set size(e){if(e<0)throw new Error("Size should be non-negative.");this.ensure_capacity(e),this._size=e}get capacity(){return this._buffer.byteLength}get backing_buffer(){return this._buffer}get view(){return this._data_view}sub_view(e,t){return new DataView(this._buffer,e,t)}ensure_capacity(e){if(e>this.capacity){let t=this.capacity||e;do{t*=2}while(tnew l.CharacterClassAnimationModel(t,`Animation ${t+1}`)),this.current_model=u.property(void 0),this._current_nj_data=u.property(void 0),this.current_nj_data=this._current_nj_data,this._current_xvm=u.property(void 0),this.current_xvm=this._current_xvm,this.show_skeleton=u.property(!1),this.current_animation=u.property(void 0),this._current_nj_motion=u.property(void 0),this.current_nj_motion=this._current_nj_motion,this.animation_playing=u.property(!0),this.animation_frame_rate=u.property(c.PSO_FRAME_RATE),this.animation_frame=u.property(0),this.animation_frame_count=this.current_nj_motion.map(e=>e?e.frame_count:0),this.disposables=[],this.load_file=e=>o(this,void 0,void 0,(function*(){try{const t=yield _.read_file(e),i=new n.ArrayBufferCursor(t,s.Endianness.Little);if(e.name.endsWith(".nj")){this.current_model.val=void 0;const e=a.parse_nj(i)[0];this.set_current_nj_data({nj_object:e,bone_count:e.bone_count(),has_skeleton:!0})}else if(e.name.endsWith(".xj")){this.current_model.val=void 0;const e=a.parse_xj(i)[0];this.set_current_nj_data({nj_object:e,bone_count:0,has_skeleton:!1})}else if(e.name.endsWith(".njm")){this.current_animation.val=void 0,this._current_nj_motion.val=void 0;const e=this.current_nj_data.val;e&&(this.animation_playing.val=!0,this._current_nj_motion.val=r.parse_njm(i,e.bone_count))}else e.name.endsWith(".xvm")?this.current_model&&(this._current_xvm.val=p.parse_xvm(i)):h.error(`Unknown file extension in filename "${e.name}".`)}catch(e){h.error("Couldn't read file.",e)}})),this.load_model=e=>o(this,void 0,void 0,(function*(){if(this.current_animation.val=void 0,e){const t=yield this.get_nj_object(e);this.set_current_nj_data({nj_object:t,bone_count:e?64:t.bone_count(),has_skeleton:!0})}else this._current_nj_data.val=void 0})),this.load_animation=e=>o(this,void 0,void 0,(function*(){const t=this.current_nj_data.val;t&&e?(this._current_nj_motion.val=yield this.get_nj_motion(e,t.bone_count),this.animation_playing.val=!0):this._current_nj_motion.val=void 0})),this.disposables.push(this.current_model.observe(({value:e})=>this.load_model(e)),this.current_animation.observe(({value:e})=>this.load_animation(e)))}dispose(){this.disposables.forEach(e=>e.dispose())}set_current_nj_data(e){this._current_xvm.val=void 0,this._current_nj_data.val=e}get_nj_object(e){return o(this,void 0,void 0,(function*(){let t=w.get(e.name);return t||(t=this.get_all_nj_objects(e),w.set(e.name,t),t)}))}get_all_nj_objects(e){return o(this,void 0,void 0,(function*(){const t=yield v.get_character_class_data(e.name,"Body"),i=a.parse_nj(new n.ArrayBufferCursor(t,s.Endianness.Little))[0];if(!i)throw new Error(`Couldn't parse body for player class ${e.name}.`);const o=yield v.get_character_class_data(e.name,"Head",0),r=a.parse_nj(new n.ArrayBufferCursor(o,s.Endianness.Little))[0];if(r&&this.add_to_bone(i,r,59),e.hair_styles_count>0){const t=yield v.get_character_class_data(e.name,"Hair",0),o=a.parse_nj(new n.ArrayBufferCursor(t,s.Endianness.Little))[0];if(o&&this.add_to_bone(i,o,59),e.hair_styles_with_accessory.has(0)){const t=yield v.get_character_class_data(e.name,"Accessory",0),o=a.parse_nj(new n.ArrayBufferCursor(t,s.Endianness.Little))[0];o&&this.add_to_bone(i,o,59)}}return i}))}add_to_bone(e,t,i){const o=e.get_bone(i);o&&(o.evaluation_flags.hidden=!1,o.evaluation_flags.break_child_trace=!1,o.children.push(t))}get_nj_motion(e,t){return o(this,void 0,void 0,(function*(){let i=f.get(e.id);return i||(i=v.get_character_class_animation_data(e.id).then(e=>r.parse_njm(new n.ArrayBufferCursor(e,s.Endianness.Little),t)),f.set(e.id,i),i)}))}}t.Model3DStore=E,t.model_store=new E},uaZj:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("kiqn");t.QuestObjectModel=class extends o.QuestEntityModel{constructor(e,t,i,o,n,s,r,a,d){super(e,o,n,s,r),this.id=t,this.group_id=i,this.properties=a,this.unknown=d}}},uiJh:function(e,t,i){"use strict";function o(e){const t=Object.values(e),i=t.filter(e=>"number"==typeof e);return i.length?i:t}Object.defineProperty(t,"__esModule",{value:!0}),t.enum_values=o;t.EnumMap=class{constructor(e,t){this.values=new Map,this.keys=o(e);for(const e of this.keys)this.values.set(e,t(e))}get(e){return this.values.get(e)}}},upFJ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SimpleQuestModel=class{constructor(e,t,i,o){if(this.id=e,this.name=t,this.episode=i,this.enemy_counts=o,!e)throw new Error("id is required.");if(!t)throw new Error("name is required.");if(!o)throw new Error("enemyCounts is required.")}}},v2aa:function(e,t,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),s=i("xs7i"),r=i("uaZj"),a=i("IjTL"),d=o(i("GGSb")),l=i("4Mnx"),_=i("yQqj"),u=d.default.get("quest_editor/model/QuestModel");t.QuestModel=class{constructor(e,t,i,o,r,a,d,_,c,p,v,h){if(this._id=n.property(0),this._language=n.property(0),this._name=n.property(""),this._short_description=n.property(""),this._long_description=n.property(""),this._area_variants=n.list_property(),this.update_area_variants=()=>{const e=new Map;for(const t of this.entities_per_area.val.keys())try{e.set(t,l.area_store.get_variant(this.episode,t,0))}catch(e){u.warn(e)}for(const[t,i]of this.map_designations.val)try{e.set(t,l.area_store.get_variant(this.episode,t,i))}catch(e){u.warn(e)}this._area_variants.val=[...e.values()]},s.check_episode(a),!d)throw new Error("map_designations is required.");if(!Array.isArray(_))throw new Error("objs is required.");if(!Array.isArray(c))throw new Error("npcs is required.");if(!Array.isArray(p))throw new Error("dat_unknowns is required.");if(!Array.isArray(v))throw new Error("object_code is required.");if(!Array.isArray(h))throw new Error("shop_items is required.");this.id=this._id,this.language=this._language,this.name=this._name,this.short_description=this._short_description,this.long_description=this._long_description,this.area_variants=this._area_variants,this.set_id(e),this.set_language(t),this.set_name(i),this.set_short_description(o),this.set_long_description(r),this.episode=a,this._map_designations=n.property(d),this.map_designations=this._map_designations,this._objects=n.list_property(void 0,..._),this.objects=this._objects,this._npcs=n.list_property(void 0,...c),this.npcs=this._npcs,this.dat_unknowns=p,this.object_code=v,this.shop_items=h,this.entities_per_area=n.map((e,t)=>{const i=new Map;for(const t of e)i.set(t.area_id,(i.get(t.area_id)||0)+1);for(const e of t)i.set(e.area_id,(i.get(e.area_id)||0)+1);return i},this.npcs,this.objects),this.entities_per_area.observe(this.update_area_variants),this.map_designations.observe(this.update_area_variants)}set_id(e){if(e<0)throw new Error(`id should be greater than or equal to 0, was ${e}.`);return this._id.val=e,this}set_language(e){if(e<0)throw new Error(`language should be greater than or equal to 0, was ${e}.`);return this._language.val=e,this}set_name(e){if(e.length>32)throw new Error(`name can't be longer than 32 characters, got "${e}".`);return this._name.val=e,this}set_short_description(e){if(e.length>128)throw new Error(`short_description can't be longer than 128 characters, got "${e}".`);return this._short_description.val=e,this}set_long_description(e){if(e.length>288)throw new Error(`long_description can't be longer than 288 characters, got "${e}".`);return this._long_description.val=e,this}set_map_designations(e){return this._map_designations.val=e,this}add_entity(e){if(e instanceof r.QuestObjectModel)this.add_object(e);else{if(!(e instanceof a.QuestNpcModel))throw new Error(`${_.entity_type_to_string(e.type)} not supported.`);this.add_npc(e)}}add_object(e){this._objects.push(e)}add_npc(e){this._npcs.push(e)}remove_entity(e){if(e instanceof r.QuestObjectModel)this._objects.remove(e);else{if(!(e instanceof a.QuestNpcModel))throw new Error(`${_.entity_type_to_string(e.type)} not supported.`);this._npcs.remove(e)}}}},vM2b:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt");t.GeometryBuilder=class{constructor(){this.positions=[],this.normals=[],this.uvs=[],this.indices=[],this.bones=[],this.bone_indices=[],this.bone_weights=[],this.groups=[],this.material_indices=new Set([-1])}get vertex_count(){return this.positions.length/3}get index_count(){return this.indices.length}get_position(e){return new o.Vector3(this.positions[3*e],this.positions[3*e+1],this.positions[3*e+2])}get_normal(e){return new o.Vector3(this.normals[3*e],this.normals[3*e+1],this.normals[3*e+2])}add_vertex(e,t,i){this.positions.push(e.x,e.y,e.z),this.normals.push(t.x,t.y,t.z),this.uvs.push(i.x,i.y)}add_index(e){this.indices.push(e)}add_bone(e){this.bones.push(e)}add_bone_weight(e,t){this.bone_indices.push(e),this.bone_weights.push(t)}add_group(e,t,i){const o=this.groups[this.groups.length-1],n=null==i?-1:i;o&&o.material_index===n?o.size+=t:(this.groups.push({offset:e,size:t,material_index:n}),this.material_indices.add(n))}build(){const e=new o.BufferGeometry,t=e.userData;t.created_by_geometry_builder=!0,e.addAttribute("position",new o.Float32BufferAttribute(this.positions,3)),e.addAttribute("normal",new o.Float32BufferAttribute(this.normals,3)),e.addAttribute("uv",new o.Float32BufferAttribute(this.uvs,2)),e.setIndex(new o.Uint16BufferAttribute(this.indices,1)),this.bone_indices.length&&this.bones.length?(e.addAttribute("skinIndex",new o.Uint16BufferAttribute(this.bone_indices,4)),e.addAttribute("skinWeight",new o.Float32BufferAttribute(this.bone_weights,4)),t.bones=this.bones):t.bones=[];const i=new Map;let n=0;for(const e of[...this.material_indices].sort((e,t)=>e-t))i.set(e,n++);for(const t of this.groups)e.addGroup(t.offset,t.size,i.get(t.material_index));return t.normalized_material_indices=i,e.computeBoundingSphere(),e.computeBoundingBox(),e}}},vsj6:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))},n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=i("HjM1");class r extends s.TabContainer{constructor(){super({class:"viewer_ViewerView",tabs:[{title:"Models",key:"model",create_view:function(){return o(this,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("Hdaq")))).Model3DView)}))}},{title:"Textures",key:"texture",create_view:function(){return o(this,void 0,void 0,(function*(){return new((yield Promise.resolve().then(()=>n(i("Za3H")))).TextureView)}))}}]}),this.finalize_construction(r.prototype)}}t.ViewerView=r},"w+Lt":function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("G+UN"),s=i("yfUv"),r=i("nowp"),a="HuntOptimizerStore.wantedItems";t.hunt_optimizer_persister=new class extends s.Persister{persist_wanted_items(e,t){this.persist_for_server(e,a,t.map(({item_type:e,amount:t})=>({itemTypeId:e.id,amount:t.val})))}load_wanted_items(e){return o(this,void 0,void 0,(function*(){const t=yield n.item_type_stores.get(e),i=yield this.load_for_server(e,a),o=[];if(i)for(const{itemTypeId:e,itemKindId:n,amount:s}of i){const i=null!=e?t.get_by_id(e):t.get_by_id(n);i&&o.push(new r.WantedItemModel(i,s))}return o}))}}},w6HN:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("TRid"),n=i("FXpb");i("IQIM");const s=i("sDu+");class r extends o.Widget{constructor(e){if(super(e),this.element=n.create_element("div",{class:"core_ToolBar"}),this.height=33,this.element.style.height=`${this.height}px`,e&&e.children)for(const t of e.children)if(t instanceof s.LabelledControl&&t.label){const e=n.create_element("div",{class:"core_ToolBar_group"});"left"===t.preferred_label_position||"top"===t.preferred_label_position?e.append(t.label.element,t.element):e.append(t.element,t.label.element),this.element.append(e)}else this.element.append(t.element),this.disposable(t);this.finalize_construction(r.prototype)}}t.ToolBar=r},weRg:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb");i("ZZ0G");const s=i("yQqj"),r=i("3ONQ"),a=i("xcxG"),d=i("ouMO");t.EntityListView=class extends o.ResizableWidget{constructor(e){super(),this.entities=d.list_property(),this.create_entity_element=(e,t)=>{const i=n.el.div({class:"quest_editor_EntityListView_entity",data:{index:t.toString()}});i.draggable=!0;const o=n.el.img({width:100,height:100});o.style.visibility="hidden",o.style.pointerEvents="none",i.append(o),a.render_entity_to_image(e).then(e=>{o.src=e,o.style.visibility="visible"});const r=n.el.span({text:s.entity_data(e).name});return i.append(r),i};const t=n.el.div({class:"quest_editor_EntityListView_entity_list"});this.element=n.el.div({class:`${e} quest_editor_EntityListView`},t),this.disposables(n.bind_children_to(t,this.entities,this.create_entity_element),r.entity_dnd_source(t,e=>{let i=e;do{const t=e.dataset.index;if(null!=t)return[i.querySelector("img").cloneNode(!0),this.entities.get(parseInt(t,10))];i=i.parentElement}while(i&&i!==t)}))}}},x4IQ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.QuestEditAction=class{constructor(e,t){this.quest=e,this.new=t.value,this.old=t.old_value}}},x4QM:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO");t.WeaponItemType=class{constructor(e,t,i,o,n,s,r){this.id=e,this.name=t,this.min_atp=i,this.max_atp=o,this.ata=n,this.max_grind=s,this.required_atp=r}};t.ArmorItemType=class{constructor(e,t,i,o,n,s,r,a,d,l,_){this.id=e,this.name=t,this.atp=i,this.ata=o,this.min_evp=n,this.max_evp=s,this.min_dfp=r,this.max_dfp=a,this.mst=d,this.hp=l,this.lck=_}};t.ShieldItemType=class{constructor(e,t,i,o,n,s,r,a,d,l,_){this.id=e,this.name=t,this.atp=i,this.ata=o,this.min_evp=n,this.max_evp=s,this.min_dfp=r,this.max_dfp=a,this.mst=d,this.hp=l,this.lck=_}};t.UnitItemType=class{constructor(e,t){this.id=e,this.name=t}};t.ToolItemType=class{constructor(e,t){this.id=e,this.name=t}};t.WeaponItem=class{constructor(e){this.type=e,this._attribute=o.property(0),this.attribute=this._attribute,this._hit=o.property(0),this.hit=this._hit,this._grind=o.property(0),this.grind=this._grind,this.grind_atp=this.grind.map(e=>2*e)}};t.ArmorItem=class{constructor(e){this.type=e}};t.ShieldItem=class{constructor(e){this.type=e}};t.UnitItem=class{constructor(e){this.type=e}};t.ToolItem=class{constructor(e){this.type=e}}},xcxG:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),s=i("4vnR"),r=i("xpi7"),a=i("M/y3"),d=new n.WebGLRenderer({alpha:!0,antialias:!0});d.setSize(100,100);const l=new n.HemisphereLight(16777215,5263440,1.2),_=new n.Scene,u=new n.PerspectiveCamera(30,1,10,1e3),c=new n.Vector3(1,1,2).normalize(),p=1.3/Math.tan(u.fov/180*Math.PI/2),v=new Map;t.render_entity_to_image=function(e){return o(this,void 0,void 0,(function*(){let t=v.get(e);return t||(t=h(e),v.set(e,t)),t}))};const h=a.sequential(e=>o(void 0,void 0,void 0,(function*(){const t=yield s.load_entity_geometry(e),i=yield s.load_entity_textures(e);_.remove(..._.children),_.add(l);const o=r.create_entity_type_mesh(e,t,i);_.add(o);const n=o.geometry.boundingSphere;return u.position.copy(c),u.position.multiplyScalar(n.radius*p),u.lookAt(n.center),d.render(_,u),d.domElement.toDataURL()})))},xpi7:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("Womt"),n=i("Eqai"),s=i("yQqj");var r;function a(e,i,a){const d=new o.MeshLambertMaterial({color:s.is_npc_type(e)?t.NPC_COLORS[r.Normal]:t.OBJECT_COLORS[r.Normal],side:o.DoubleSide}),l=n.create_mesh(i,a.length?a.map(e=>new o.MeshLambertMaterial({map:e,side:o.DoubleSide,alphaTest:.5})):d,d);return l.name=s.entity_type_to_string(e),l}!function(e){e[e.Normal=0]="Normal",e[e.Hovered=1]="Hovered",e[e.Selected=2]="Selected"}(r=t.ColorType||(t.ColorType={})),t.OBJECT_COLORS=[],t.OBJECT_COLORS[r.Normal]=16776960,t.OBJECT_COLORS[r.Hovered]=16768831,t.OBJECT_COLORS[r.Selected]=16755200,t.NPC_COLORS=[],t.NPC_COLORS[r.Normal]=16711680,t.NPC_COLORS[r.Hovered]=16727903,t.NPC_COLORS[r.Selected]=16711764,t.create_entity_type_mesh=a,t.create_entity_mesh=function(e,t,i){const o=a(e.type,t,i);o.userData.entity=e;const{x:n,y:s,z:r}=e.world_position.val;o.position.set(n,s,r);const d=e.rotation.val;return o.rotation.set(d.x,d.y,d.z),o}},xs7i:function(e,t,i){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.I=1]="I",e[e.II=2]="II",e[e.IV=4]="IV"}(o=t.Episode||(t.Episode={})),t.EPISODES=[o.I,o.II,o.IV],t.check_episode=function(e){if(null==o[e])throw new Error(`Invalid episode ${e}.`)}},xyE7:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("nN8q"),n=i("FXpb"),s=i("c5EP"),r=i("sZ1+");i("5sDa");const a=i("5aKR"),d=i("ouMO");class l extends o.ResizableWidget{constructor(){super(),this.element=n.el.div({class:"quest_editor_NpcCountsView"}),this.table_element=n.el.table(),this.no_quest_view=new a.DisabledView("No quest loaded."),this.element.append(this.table_element,this.no_quest_view.element);const e=s.quest_editor_store.current_quest,t=e.map(e=>null==e);this.bind_hidden(this.table_element,t),this.disposables(this.no_quest_view.visible.bind_to(t),e.flat_map(e=>e?e.npcs:d.property([])).observe(({value:e})=>this.update_view(e),{call_now:!0})),this.finalize_construction(l.prototype)}update_view(e){const t=document.createDocumentFragment(),i=new Map;for(const t of e){const e=i.get(t.type)||0;i.set(t.type,e+1)}const o=8*(i.get(r.NpcType.Canane)||0),s=[...i].sort((e,t)=>e[0]-t[0]);for(const[e,i]of s){const s=e===r.NpcType.Canadine?o:0;t.append(n.el.tr({},n.el.th({text:r.npc_data(e).name+":"}),n.el.td({text:String(i+s)})))}this.table_element.innerHTML="",this.table_element.append(t)}}t.NpcCountsView=l},y42t:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("yRp4"),n=i("kwt4"),s=i("4mUz");function r(e,t,i){const o=[];for(let s=0;s{const i=new s.Disposer;let o=0;return[n.el.tr({},...this.columns.map((s,a)=>{const d=s.fixed?n.el.th():n.el.td();try{const t=s.render_cell(e,i);d.append(t),s.input&&d.classList.add("input"),s.fixed&&(d.classList.add("fixed"),d.style.left=`${o}px`,o+=s.width||0),d.style.width=`${s.width}px`,s.text_align&&(d.style.textAlign=s.text_align),s.tooltip&&(d.title=s.tooltip(e))}catch(e){r.warn(`Error while rendering cell for index ${t}, column ${a}.`,e)}return d})),i]},this.update_footer=()=>{if(!this.footer_row_element)return;const e=this.columns.length;for(let t=0;t{const i=n.el.th({data:{index:t.toString()}},n.el.span({text:e.title}));return e.fixed&&(i.style.position="sticky",i.style.left=`${l}px`,l+=e.width),i.style.width=`${e.width}px`,e.footer&&(_=!0),i}));const u=e.sort;u&&(o.onmousedown=e=>{if(e.target instanceof HTMLElement){let i=e.target;for(let e=0;e<5&&!i.dataset.index;e++){if(!i.parentElement)return;i=i.parentElement}if(!i.dataset.index)return;const o=parseInt(i.dataset.index,10),n=this.columns[o];if(!n.sortable)return;const s=t.findIndex(e=>e.column===n);if(0===s){const e=t[0];e.direction=e.direction===a.Asc?a.Desc:a.Asc}else-1!==s&&t.splice(s,1),t.unshift({column:n,direction:a.Asc});u(t)}}),i.append(o),this.tbody_element=n.el.tbody(),this.element.append(i,this.tbody_element),_&&(this.footer_row_element=n.el.tr(),this.element.append(n.el.tfoot({},this.footer_row_element)),this.create_footer()),this.disposables(n.bind_children_to(this.tbody_element,this.values,this.create_row),this.values.observe(this.update_footer)),this.finalize_construction(d.prototype)}create_footer(){const e=[];let t=0;for(let i=0;ie.type===a),o=i&&function(e){return{texture_count:e.u16()}}(i.data),n=t.filter(e=>e.type===d).map(e=>(function(e){const t=e.u32(),i=e.u32(),o=e.u32(),n=e.u16(),s=e.u16(),r=e.u32();e.seek(36);const a=e.array_buffer(r);return{id:o,format:[t,i],width:n,height:s,size:r,data:a}})(e.data));return o?o.texture_count!==n.length&&r.warn(`Found ${n.length} textures instead of ${o.texture_count} as defined in the header.`):r.warn("No header found."),{textures:n}}},yxQK:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb");i("pNch");const n=i("4SjJ"),s=i("TRid"),r=i("1z6m"),a=i("sv1z"),d=i("ouMO"),l=[[n.GuiTool.Viewer,"Viewer"],[n.GuiTool.QuestEditor,"Quest Editor"],[n.GuiTool.HuntOptimizer,"Hunt Optimizer"]];class _ extends s.Widget{constructor(){super(),this.buttons=new Map(l.map(([e,t])=>[e,this.disposable(new r.NavigationButton(e,t))])),this.server_select=this.disposable(new a.Select(d.property(["Ephinea"]),e=>e,{label:"Server:",enabled:!1,selected:"Ephinea",tooltip:"Only Ephinea is supported at the moment"})),this.element=o.el.div({class:"application_NavigationView"},...[...this.buttons.values()].map(e=>e.element),o.el.div({class:"application_NavigationView_spacer"}),o.el.span({class:"application_NavigationView_server"},this.server_select.label.element,this.server_select.element),o.el.a({class:"application_NavigationView_github",href:"https://github.com/DaanVandenBosch/phantasmal-world",title:"GitHub"},o.icon(o.Icon.GitHub))),this.height=30,this.mark_tool_button=e=>{const t=this.buttons.get(e);t&&(t.checked=!0)},this.element.style.height=`${this.height}px`,this.element.onmousedown=this.mousedown,this.mark_tool_button(n.gui_store.tool.val),this.disposable(n.gui_store.tool.observe(({value:e})=>this.mark_tool_button(e))),this.finalize_construction(_.prototype)}mousedown(e){e.target instanceof HTMLLabelElement&&e.target.control instanceof HTMLInputElement&&(n.gui_store.tool.val=n.GuiTool[e.target.control.value])}}t.NavigationView=_},zBQr:function(e,t,i){"use strict";var o=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o.throw(e))}catch(e){s(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}d((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const n=i("yfUv"),s=i("LvDl"),r="QuestEditorUiPersister.layout_config";class a extends n.Persister{constructor(){super(...arguments),this.persist_layout_config=s.throttle(e=>{this.persist(r,e)},500,{leading:!1,trailing:!0})}load_layout_config(e,t){return o(this,void 0,void 0,(function*(){const i=yield this.load(r);return i&&this.verify_layout_config(i,e)?i:t}))}verify_layout_config(e,t){const i=new Set(t);for(const t of e)if(!this.verify_layout_child(t,i,new Set,!0))return!1;return!0}verify_layout_child(e,t,i,o){if(!e)return!1;if("componentName"in e){if(!t.has(e.componentName))return!1;i.add(e.componentName)}if(e.content)for(const o of e.content)if(!this.verify_layout_child(o,t,i,!1))return!1;return!o||t.size===i.size}}t.QuestEditorUiPersister=a,t.quest_editor_ui_persister=new a}},[["/7QA",2,0,3]]]); \ No newline at end of file diff --git a/main.86849e46805fa6575ada.js b/main.86849e46805fa6575ada.js deleted file mode 100644 index 79db9bed..00000000 --- a/main.86849e46805fa6575ada.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+LO4":function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")).default.get("core/observable/property/AbstractMinimalProperty");t.AbstractMinimalProperty=class{constructor(){this.is_property=!0,this.observers=[]}observe(e,t){return this.observers.includes(e)||this.observers.push(e),t&&t.call_now&&this.call_observer(e,this.val),{dispose:()=>{const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}}}emit(e){for(const t of this.observers)this.call_observer(t,e)}call_observer(e,t){try{e({value:this.val,old_value:t})}catch(e){o.error("Observer threw error.",e)}}}},"+oIp":function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unknown=1e3]="Unknown",e[e.PlayerSet=1001]="PlayerSet",e[e.Particle=1002]="Particle",e[e.Teleporter=1003]="Teleporter",e[e.Warp=1004]="Warp",e[e.LightCollision=1005]="LightCollision",e[e.Item=1006]="Item",e[e.EnvSound=1007]="EnvSound",e[e.FogCollision=1008]="FogCollision",e[e.EventCollision=1009]="EventCollision",e[e.CharaCollision=1010]="CharaCollision",e[e.ElementalTrap=1011]="ElementalTrap",e[e.StatusTrap=1012]="StatusTrap",e[e.HealTrap=1013]="HealTrap",e[e.LargeElementalTrap=1014]="LargeElementalTrap",e[e.ObjRoomID=1015]="ObjRoomID",e[e.Sensor=1016]="Sensor",e[e.UnknownItem16=1017]="UnknownItem16",e[e.Lensflare=1018]="Lensflare",e[e.ScriptCollision=1019]="ScriptCollision",e[e.HealRing=1020]="HealRing",e[e.MapCollision=1021]="MapCollision",e[e.ScriptCollisionA=1022]="ScriptCollisionA",e[e.ItemLight=1023]="ItemLight",e[e.RadarCollision=1024]="RadarCollision",e[e.FogCollisionSW=1025]="FogCollisionSW",e[e.BossTeleporter=1026]="BossTeleporter",e[e.ImageBoard=1027]="ImageBoard",e[e.QuestWarp=1028]="QuestWarp",e[e.Epilogue=1029]="Epilogue",e[e.UnknownItem29=1030]="UnknownItem29",e[e.UnknownItem30=1031]="UnknownItem30",e[e.UnknownItem31=1032]="UnknownItem31",e[e.BoxDetectObject=1033]="BoxDetectObject",e[e.SymbolChatObject=1034]="SymbolChatObject",e[e.TouchPlateObject=1035]="TouchPlateObject",e[e.TargetableObject=1036]="TargetableObject",e[e.EffectObject=1037]="EffectObject",e[e.CountDownObject=1038]="CountDownObject",e[e.UnknownItem38=1039]="UnknownItem38",e[e.UnknownItem39=1040]="UnknownItem39",e[e.UnknownItem40=1041]="UnknownItem40",e[e.UnknownItem41=1042]="UnknownItem41",e[e.MenuActivation=1043]="MenuActivation",e[e.TelepipeLocation=1044]="TelepipeLocation",e[e.BGMCollision=1045]="BGMCollision",e[e.MainRagolTeleporter=1046]="MainRagolTeleporter",e[e.LobbyTeleporter=1047]="LobbyTeleporter",e[e.PrincipalWarp=1048]="PrincipalWarp",e[e.ShopDoor=1049]="ShopDoor",e[e.HuntersGuildDoor=1050]="HuntersGuildDoor",e[e.TeleporterDoor=1051]="TeleporterDoor",e[e.MedicalCenterDoor=1052]="MedicalCenterDoor",e[e.Elevator=1053]="Elevator",e[e.EasterEgg=1054]="EasterEgg",e[e.ValentinesHeart=1055]="ValentinesHeart",e[e.ChristmasTree=1056]="ChristmasTree",e[e.ChristmasWreath=1057]="ChristmasWreath",e[e.HalloweenPumpkin=1058]="HalloweenPumpkin",e[e.TwentyFirstCentury=1059]="TwentyFirstCentury",e[e.Sonic=1060]="Sonic",e[e.WelcomeBoard=1061]="WelcomeBoard",e[e.Firework=1062]="Firework",e[e.LobbyScreenDoor=1063]="LobbyScreenDoor",e[e.MainRagolTeleporterBattleInNextArea=1064]="MainRagolTeleporterBattleInNextArea",e[e.LabTeleporterDoor=1065]="LabTeleporterDoor",e[e.Pioneer2InvisibleTouchplate=1066]="Pioneer2InvisibleTouchplate",e[e.ForestDoor=1067]="ForestDoor",e[e.ForestSwitch=1068]="ForestSwitch",e[e.LaserFence=1069]="LaserFence",e[e.LaserSquareFence=1070]="LaserSquareFence",e[e.ForestLaserFenceSwitch=1071]="ForestLaserFenceSwitch",e[e.LightRays=1072]="LightRays",e[e.BlueButterfly=1073]="BlueButterfly",e[e.Probe=1074]="Probe",e[e.RandomTypeBox1=1075]="RandomTypeBox1",e[e.ForestWeatherStation=1076]="ForestWeatherStation",e[e.Battery=1077]="Battery",e[e.ForestConsole=1078]="ForestConsole",e[e.BlackSlidingDoor=1079]="BlackSlidingDoor",e[e.RicoMessagePod=1080]="RicoMessagePod",e[e.EnergyBarrier=1081]="EnergyBarrier",e[e.ForestRisingBridge=1082]="ForestRisingBridge",e[e.SwitchNoneDoor=1083]="SwitchNoneDoor",e[e.EnemyBoxGrey=1084]="EnemyBoxGrey",e[e.FixedTypeBox=1085]="FixedTypeBox",e[e.EnemyBoxBrown=1086]="EnemyBoxBrown",e[e.EmptyTypeBox=1087]="EmptyTypeBox",e[e.LaserFenseEx=1088]="LaserFenseEx",e[e.LaserSquareFenceEx=1089]="LaserSquareFenceEx",e[e.FloorPanel1=1090]="FloorPanel1",e[e.Caves4ButtonDoor=1091]="Caves4ButtonDoor",e[e.CavesNormalDoor=1092]="CavesNormalDoor",e[e.CavesSmashingPillar=1093]="CavesSmashingPillar",e[e.CavesSign1=1094]="CavesSign1",e[e.CavesSign2=1095]="CavesSign2",e[e.CavesSign3=1096]="CavesSign3",e[e.HexagalTank=1097]="HexagalTank",e[e.BrownPlatform=1098]="BrownPlatform",e[e.WarningLightObject=1099]="WarningLightObject",e[e.Rainbow=1100]="Rainbow",e[e.FloatingJelifish=1101]="FloatingJelifish",e[e.FloatingDragonfly=1102]="FloatingDragonfly",e[e.CavesSwitchDoor=1103]="CavesSwitchDoor",e[e.RobotRechargeStation=1104]="RobotRechargeStation",e[e.CavesCakeShop=1105]="CavesCakeShop",e[e.Caves1SmallRedRock=1106]="Caves1SmallRedRock",e[e.Caves1MediumRedRock=1107]="Caves1MediumRedRock",e[e.Caves1LargeRedRock=1108]="Caves1LargeRedRock",e[e.Caves2SmallRock1=1109]="Caves2SmallRock1",e[e.Caves2MediumRock1=1110]="Caves2MediumRock1",e[e.Caves2LargeRock1=1111]="Caves2LargeRock1",e[e.Caves2SmallRock2=1112]="Caves2SmallRock2",e[e.Caves2MediumRock2=1113]="Caves2MediumRock2",e[e.Caves2LargeRock2=1114]="Caves2LargeRock2",e[e.Caves3SmallRock=1115]="Caves3SmallRock",e[e.Caves3MediumRock=1116]="Caves3MediumRock",e[e.Caves3LargeRock=1117]="Caves3LargeRock",e[e.FloorPanel2=1118]="FloorPanel2",e[e.DestructableRockCaves1=1119]="DestructableRockCaves1",e[e.DestructableRockCaves2=1120]="DestructableRockCaves2",e[e.DestructableRockCaves3=1121]="DestructableRockCaves3",e[e.MinesDoor=1122]="MinesDoor",e[e.FloorPanel3=1123]="FloorPanel3",e[e.MinesSwitchDoor=1124]="MinesSwitchDoor",e[e.LargeCryoTube=1125]="LargeCryoTube",e[e.ComputerLikeCalus=1126]="ComputerLikeCalus",e[e.GreenScreenOpeningAndClosing=1127]="GreenScreenOpeningAndClosing",e[e.FloatingRobot=1128]="FloatingRobot",e[e.FloatingBlueLight=1129]="FloatingBlueLight",e[e.SelfDestructingObject1=1130]="SelfDestructingObject1",e[e.SelfDestructingObject2=1131]="SelfDestructingObject2",e[e.SelfDestructingObject3=1132]="SelfDestructingObject3",e[e.SparkMachine=1133]="SparkMachine",e[e.MinesLargeFlashingCrate=1134]="MinesLargeFlashingCrate",e[e.RuinsSeal=1135]="RuinsSeal",e[e.RuinsTeleporter=1136]="RuinsTeleporter",e[e.RuinsWarpSiteToSite=1137]="RuinsWarpSiteToSite",e[e.RuinsSwitch=1138]="RuinsSwitch",e[e.FloorPanel4=1139]="FloorPanel4",e[e.Ruins1Door=1140]="Ruins1Door",e[e.Ruins3Door=1141]="Ruins3Door",e[e.Ruins2Door=1142]="Ruins2Door",e[e.Ruins11ButtonDoor=1143]="Ruins11ButtonDoor",e[e.Ruins21ButtonDoor=1144]="Ruins21ButtonDoor",e[e.Ruins31ButtonDoor=1145]="Ruins31ButtonDoor",e[e.Ruins4ButtonDoor=1146]="Ruins4ButtonDoor",e[e.Ruins2ButtonDoor=1147]="Ruins2ButtonDoor",e[e.RuinsSensor=1148]="RuinsSensor",e[e.RuinsFenceSwitch=1149]="RuinsFenceSwitch",e[e.RuinsLaserFence4x2=1150]="RuinsLaserFence4x2",e[e.RuinsLaserFence6x2=1151]="RuinsLaserFence6x2",e[e.RuinsLaserFence4x4=1152]="RuinsLaserFence4x4",e[e.RuinsLaserFence6x4=1153]="RuinsLaserFence6x4",e[e.RuinsPoisonBlob=1154]="RuinsPoisonBlob",e[e.RuinsPilarTrap=1155]="RuinsPilarTrap",e[e.PopupTrapNoTech=1156]="PopupTrapNoTech",e[e.RuinsCrystal=1157]="RuinsCrystal",e[e.Monument=1158]="Monument",e[e.RuinsRock1=1159]="RuinsRock1",e[e.RuinsRock2=1160]="RuinsRock2",e[e.RuinsRock3=1161]="RuinsRock3",e[e.RuinsRock4=1162]="RuinsRock4",e[e.RuinsRock5=1163]="RuinsRock5",e[e.RuinsRock6=1164]="RuinsRock6",e[e.RuinsRock7=1165]="RuinsRock7",e[e.Poison=1166]="Poison",e[e.FixedBoxTypeRuins=1167]="FixedBoxTypeRuins",e[e.RandomBoxTypeRuins=1168]="RandomBoxTypeRuins",e[e.EnemyTypeBoxYellow=1169]="EnemyTypeBoxYellow",e[e.EnemyTypeBoxBlue=1170]="EnemyTypeBoxBlue",e[e.EmptyTypeBoxBlue=1171]="EmptyTypeBoxBlue",e[e.DestructableRock=1172]="DestructableRock",e[e.PopupTrapsTechs=1173]="PopupTrapsTechs",e[e.FlyingWhiteBird=1174]="FlyingWhiteBird",e[e.Tower=1175]="Tower",e[e.FloatingRocks=1176]="FloatingRocks",e[e.FloatingSoul=1177]="FloatingSoul",e[e.Butterfly=1178]="Butterfly",e[e.LobbyGameMenu=1179]="LobbyGameMenu",e[e.LobbyWarpObject=1180]="LobbyWarpObject",e[e.Lobby1EventObjectDefaultTree=1181]="Lobby1EventObjectDefaultTree",e[e.UnknownItem387=1182]="UnknownItem387",e[e.UnknownItem388=1183]="UnknownItem388",e[e.UnknownItem389=1184]="UnknownItem389",e[e.LobbyEventObjectStaticPumpkin=1185]="LobbyEventObjectStaticPumpkin",e[e.LobbyEventObject3ChristmasWindows=1186]="LobbyEventObject3ChristmasWindows",e[e.LobbyEventObjectRedAndWhiteCurtain=1187]="LobbyEventObjectRedAndWhiteCurtain",e[e.UnknownItem393=1188]="UnknownItem393",e[e.UnknownItem394=1189]="UnknownItem394",e[e.LobbyFishTank=1190]="LobbyFishTank",e[e.LobbyEventObjectButterflies=1191]="LobbyEventObjectButterflies",e[e.UnknownItem400=1192]="UnknownItem400",e[e.GreyWallLow=1193]="GreyWallLow",e[e.SpaceshipDoor=1194]="SpaceshipDoor",e[e.GreyWallHigh=1195]="GreyWallHigh",e[e.TempleNormalDoor=1196]="TempleNormalDoor",e[e.BreakableWallWallButUnbreakable=1197]="BreakableWallWallButUnbreakable",e[e.BrokenCilinderAndRubble=1198]="BrokenCilinderAndRubble",e[e.ThreeBrokenWallPiecesOnFloor=1199]="ThreeBrokenWallPiecesOnFloor",e[e.HighBrickCilinder=1200]="HighBrickCilinder",e[e.LyingCilinder=1201]="LyingCilinder",e[e.BrickConeWithFlatTop=1202]="BrickConeWithFlatTop",e[e.BreakableTempleWall=1203]="BreakableTempleWall",e[e.TempleMapDetect=1204]="TempleMapDetect",e[e.SmallBrownBrickRisingBridge=1205]="SmallBrownBrickRisingBridge",e[e.LongRisingBridgeWithPinkHighEdges=1206]="LongRisingBridgeWithPinkHighEdges",e[e.FourSwitchTempleDoor=1207]="FourSwitchTempleDoor",e[e.FourButtonSpaceshipDoor=1208]="FourButtonSpaceshipDoor",e[e.ItemBoxCca=1209]="ItemBoxCca",e[e.TeleporterEp2=1210]="TeleporterEp2",e[e.CCADoor=1211]="CCADoor",e[e.SpecialBoxCCA=1212]="SpecialBoxCCA",e[e.BigCCADoor=1213]="BigCCADoor",e[e.BigCCADoorSwitch=1214]="BigCCADoorSwitch",e[e.LittleRock=1215]="LittleRock",e[e.Little3StoneWall=1216]="Little3StoneWall",e[e.Medium3StoneWall=1217]="Medium3StoneWall",e[e.SpiderPlant=1218]="SpiderPlant",e[e.CCAAreaTeleporter=1219]="CCAAreaTeleporter",e[e.UnknownItem523=1220]="UnknownItem523",e[e.WhiteBird=1221]="WhiteBird",e[e.OrangeBird=1222]="OrangeBird",e[e.Saw=1223]="Saw",e[e.LaserDetect=1224]="LaserDetect",e[e.UnknownItem529=1225]="UnknownItem529",e[e.UnknownItem530=1226]="UnknownItem530",e[e.Seagull=1227]="Seagull",e[e.Fish=1228]="Fish",e[e.SeabedDoorWithBlueEdges=1229]="SeabedDoorWithBlueEdges",e[e.SeabedDoorAlwaysOpenNonTriggerable=1230]="SeabedDoorAlwaysOpenNonTriggerable",e[e.LittleCryotube=1231]="LittleCryotube",e[e.WideGlassWallBreakable=1232]="WideGlassWallBreakable",e[e.BlueFloatingRobot=1233]="BlueFloatingRobot",e[e.RedFloatingRobot=1234]="RedFloatingRobot",e[e.Dolphin=1235]="Dolphin",e[e.CaptureTrap=1236]="CaptureTrap",e[e.VRLink=1237]="VRLink",e[e.UnknownItem576=1238]="UnknownItem576",e[e.WarpInBarbaRayRoom=1239]="WarpInBarbaRayRoom",e[e.UnknownItem672=1240]="UnknownItem672",e[e.GeeNest=1241]="GeeNest",e[e.LabComputerConsole=1242]="LabComputerConsole",e[e.LabComputerConsoleGreenScreen=1243]="LabComputerConsoleGreenScreen",e[e.ChairYelllowPillow=1244]="ChairYelllowPillow",e[e.OrangeWallWithHoleInMiddle=1245]="OrangeWallWithHoleInMiddle",e[e.GreyWallWithHoleInMiddle=1246]="GreyWallWithHoleInMiddle",e[e.LongTable=1247]="LongTable",e[e.GBAStation=1248]="GBAStation",e[e.TalkLinkToSupport=1249]="TalkLinkToSupport",e[e.InstaWarp=1250]="InstaWarp",e[e.LabInvisibleObject=1251]="LabInvisibleObject",e[e.LabGlassWindowDoor=1252]="LabGlassWindowDoor",e[e.UnknownItem700=1253]="UnknownItem700",e[e.LabCelingWarp=1254]="LabCelingWarp",e[e.Ep4LightSource=1255]="Ep4LightSource",e[e.Cacti=1256]="Cacti",e[e.BigBrownRock=1257]="BigBrownRock",e[e.BreakableBrownRock=1258]="BreakableBrownRock",e[e.UnknownItem832=1259]="UnknownItem832",e[e.UnknownItem833=1260]="UnknownItem833",e[e.PoisonPlant=1261]="PoisonPlant",e[e.UnknownItem897=1262]="UnknownItem897",e[e.UnknownItem898=1263]="UnknownItem898",e[e.OozingDesertPlant=1264]="OozingDesertPlant",e[e.UnknownItem901=1265]="UnknownItem901",e[e.BigBlackRocks=1266]="BigBlackRocks",e[e.UnknownItem903=1267]="UnknownItem903",e[e.UnknownItem904=1268]="UnknownItem904",e[e.UnknownItem905=1269]="UnknownItem905",e[e.UnknownItem906=1270]="UnknownItem906",e[e.FallingRock=1271]="FallingRock",e[e.DesertPlantHasCollision=1272]="DesertPlantHasCollision",e[e.DesertFixedTypeBoxBreakableCrystals=1273]="DesertFixedTypeBoxBreakableCrystals",e[e.UnknownItem910=1274]="UnknownItem910",e[e.BeeHive=1275]="BeeHive",e[e.UnknownItem912=1276]="UnknownItem912",e[e.Heat=1277]="Heat",e[e.TopOfSaintMillionEgg=1278]="TopOfSaintMillionEgg",e[e.UnknownItem961=1279]="UnknownItem961"}(n=t.ObjectType||(t.ObjectType={})),t.OBJECT_TYPES=[],t.object_data=function(e){return o[e]},t.pso_id_to_object_type=function(e){switch(e){default:return n.Unknown;case 0:return n.PlayerSet;case 1:return n.Particle;case 2:return n.Teleporter;case 3:return n.Warp;case 4:return n.LightCollision;case 5:return n.Item;case 6:return n.EnvSound;case 7:return n.FogCollision;case 8:return n.EventCollision;case 9:return n.CharaCollision;case 10:return n.ElementalTrap;case 11:return n.StatusTrap;case 12:return n.HealTrap;case 13:return n.LargeElementalTrap;case 14:return n.ObjRoomID;case 15:return n.Sensor;case 16:return n.UnknownItem16;case 17:return n.Lensflare;case 18:return n.ScriptCollision;case 19:return n.HealRing;case 20:return n.MapCollision;case 21:return n.ScriptCollisionA;case 22:return n.ItemLight;case 23:return n.RadarCollision;case 24:return n.FogCollisionSW;case 25:return n.BossTeleporter;case 26:return n.ImageBoard;case 27:return n.QuestWarp;case 28:return n.Epilogue;case 29:return n.UnknownItem29;case 30:return n.UnknownItem30;case 31:return n.UnknownItem31;case 32:return n.BoxDetectObject;case 33:return n.SymbolChatObject;case 34:return n.TouchPlateObject;case 35:return n.TargetableObject;case 36:return n.EffectObject;case 37:return n.CountDownObject;case 38:return n.UnknownItem38;case 39:return n.UnknownItem39;case 40:return n.UnknownItem40;case 41:return n.UnknownItem41;case 64:return n.MenuActivation;case 65:return n.TelepipeLocation;case 66:return n.BGMCollision;case 67:return n.MainRagolTeleporter;case 68:return n.LobbyTeleporter;case 69:return n.PrincipalWarp;case 70:return n.ShopDoor;case 71:return n.HuntersGuildDoor;case 72:return n.TeleporterDoor;case 73:return n.MedicalCenterDoor;case 74:return n.Elevator;case 75:return n.EasterEgg;case 76:return n.ValentinesHeart;case 77:return n.ChristmasTree;case 78:return n.ChristmasWreath;case 79:return n.HalloweenPumpkin;case 80:return n.TwentyFirstCentury;case 81:return n.Sonic;case 82:return n.WelcomeBoard;case 83:return n.Firework;case 84:return n.LobbyScreenDoor;case 85:return n.MainRagolTeleporterBattleInNextArea;case 86:return n.LabTeleporterDoor;case 87:return n.Pioneer2InvisibleTouchplate;case 128:return n.ForestDoor;case 129:return n.ForestSwitch;case 130:return n.LaserFence;case 131:return n.LaserSquareFence;case 132:return n.ForestLaserFenceSwitch;case 133:return n.LightRays;case 134:return n.BlueButterfly;case 135:return n.Probe;case 136:return n.RandomTypeBox1;case 137:return n.ForestWeatherStation;case 138:return n.Battery;case 139:return n.ForestConsole;case 140:return n.BlackSlidingDoor;case 141:return n.RicoMessagePod;case 142:return n.EnergyBarrier;case 143:return n.ForestRisingBridge;case 144:return n.SwitchNoneDoor;case 145:return n.EnemyBoxGrey;case 146:return n.FixedTypeBox;case 147:return n.EnemyBoxBrown;case 149:return n.EmptyTypeBox;case 150:return n.LaserFenseEx;case 151:return n.LaserSquareFenceEx;case 192:return n.FloorPanel1;case 193:return n.Caves4ButtonDoor;case 194:return n.CavesNormalDoor;case 195:return n.CavesSmashingPillar;case 196:return n.CavesSign1;case 197:return n.CavesSign2;case 198:return n.CavesSign3;case 199:return n.HexagalTank;case 200:return n.BrownPlatform;case 201:return n.WarningLightObject;case 203:return n.Rainbow;case 204:return n.FloatingJelifish;case 205:return n.FloatingDragonfly;case 206:return n.CavesSwitchDoor;case 207:return n.RobotRechargeStation;case 208:return n.CavesCakeShop;case 209:return n.Caves1SmallRedRock;case 210:return n.Caves1MediumRedRock;case 211:return n.Caves1LargeRedRock;case 212:return n.Caves2SmallRock1;case 213:return n.Caves2MediumRock1;case 214:return n.Caves2LargeRock1;case 215:return n.Caves2SmallRock2;case 216:return n.Caves2MediumRock2;case 217:return n.Caves2LargeRock2;case 218:return n.Caves3SmallRock;case 219:return n.Caves3MediumRock;case 220:return n.Caves3LargeRock;case 222:return n.FloorPanel2;case 223:return n.DestructableRockCaves1;case 224:return n.DestructableRockCaves2;case 225:return n.DestructableRockCaves3;case 256:return n.MinesDoor;case 257:return n.FloorPanel3;case 258:return n.MinesSwitchDoor;case 259:return n.LargeCryoTube;case 260:return n.ComputerLikeCalus;case 261:return n.GreenScreenOpeningAndClosing;case 262:return n.FloatingRobot;case 263:return n.FloatingBlueLight;case 264:return n.SelfDestructingObject1;case 265:return n.SelfDestructingObject2;case 266:return n.SelfDestructingObject3;case 267:return n.SparkMachine;case 268:return n.MinesLargeFlashingCrate;case 304:return n.RuinsSeal;case 320:return n.RuinsTeleporter;case 321:return n.RuinsWarpSiteToSite;case 322:return n.RuinsSwitch;case 323:return n.FloorPanel4;case 324:return n.Ruins1Door;case 325:return n.Ruins3Door;case 326:return n.Ruins2Door;case 327:return n.Ruins11ButtonDoor;case 328:return n.Ruins21ButtonDoor;case 329:return n.Ruins31ButtonDoor;case 330:return n.Ruins4ButtonDoor;case 331:return n.Ruins2ButtonDoor;case 332:return n.RuinsSensor;case 333:return n.RuinsFenceSwitch;case 334:return n.RuinsLaserFence4x2;case 335:return n.RuinsLaserFence6x2;case 336:return n.RuinsLaserFence4x4;case 337:return n.RuinsLaserFence6x4;case 338:return n.RuinsPoisonBlob;case 339:return n.RuinsPilarTrap;case 340:return n.PopupTrapNoTech;case 341:return n.RuinsCrystal;case 342:return n.Monument;case 345:return n.RuinsRock1;case 346:return n.RuinsRock2;case 347:return n.RuinsRock3;case 348:return n.RuinsRock4;case 349:return n.RuinsRock5;case 350:return n.RuinsRock6;case 351:return n.RuinsRock7;case 352:return n.Poison;case 353:return n.FixedBoxTypeRuins;case 354:return n.RandomBoxTypeRuins;case 355:return n.EnemyTypeBoxYellow;case 356:return n.EnemyTypeBoxBlue;case 357:return n.EmptyTypeBoxBlue;case 358:return n.DestructableRock;case 359:return n.PopupTrapsTechs;case 368:return n.FlyingWhiteBird;case 369:return n.Tower;case 370:return n.FloatingRocks;case 371:return n.FloatingSoul;case 372:return n.Butterfly;case 384:return n.LobbyGameMenu;case 385:return n.LobbyWarpObject;case 386:return n.Lobby1EventObjectDefaultTree;case 387:return n.UnknownItem387;case 388:return n.UnknownItem388;case 389:return n.UnknownItem389;case 390:return n.LobbyEventObjectStaticPumpkin;case 391:return n.LobbyEventObject3ChristmasWindows;case 392:return n.LobbyEventObjectRedAndWhiteCurtain;case 393:return n.UnknownItem393;case 394:return n.UnknownItem394;case 395:return n.LobbyFishTank;case 396:return n.LobbyEventObjectButterflies;case 400:return n.UnknownItem400;case 401:return n.GreyWallLow;case 402:return n.SpaceshipDoor;case 403:return n.GreyWallHigh;case 416:return n.TempleNormalDoor;case 417:return n.BreakableWallWallButUnbreakable;case 418:return n.BrokenCilinderAndRubble;case 419:return n.ThreeBrokenWallPiecesOnFloor;case 420:return n.HighBrickCilinder;case 421:return n.LyingCilinder;case 422:return n.BrickConeWithFlatTop;case 423:return n.BreakableTempleWall;case 424:return n.TempleMapDetect;case 425:return n.SmallBrownBrickRisingBridge;case 426:return n.LongRisingBridgeWithPinkHighEdges;case 427:return n.FourSwitchTempleDoor;case 448:return n.FourButtonSpaceshipDoor;case 512:return n.ItemBoxCca;case 513:return n.TeleporterEp2;case 514:return n.CCADoor;case 515:return n.SpecialBoxCCA;case 516:return n.BigCCADoor;case 517:return n.BigCCADoorSwitch;case 518:return n.LittleRock;case 519:return n.Little3StoneWall;case 520:return n.Medium3StoneWall;case 521:return n.SpiderPlant;case 522:return n.CCAAreaTeleporter;case 523:return n.UnknownItem523;case 524:return n.WhiteBird;case 525:return n.OrangeBird;case 527:return n.Saw;case 528:return n.LaserDetect;case 529:return n.UnknownItem529;case 530:return n.UnknownItem530;case 531:return n.Seagull;case 544:return n.Fish;case 545:return n.SeabedDoorWithBlueEdges;case 546:return n.SeabedDoorAlwaysOpenNonTriggerable;case 547:return n.LittleCryotube;case 548:return n.WideGlassWallBreakable;case 549:return n.BlueFloatingRobot;case 550:return n.RedFloatingRobot;case 551:return n.Dolphin;case 552:return n.CaptureTrap;case 553:return n.VRLink;case 576:return n.UnknownItem576;case 640:return n.WarpInBarbaRayRoom;case 672:return n.UnknownItem672;case 688:return n.GeeNest;case 689:return n.LabComputerConsole;case 690:return n.LabComputerConsoleGreenScreen;case 691:return n.ChairYelllowPillow;case 692:return n.OrangeWallWithHoleInMiddle;case 693:return n.GreyWallWithHoleInMiddle;case 694:return n.LongTable;case 695:return n.GBAStation;case 696:return n.TalkLinkToSupport;case 697:return n.InstaWarp;case 698:return n.LabInvisibleObject;case 699:return n.LabGlassWindowDoor;case 700:return n.UnknownItem700;case 701:return n.LabCelingWarp;case 768:return n.Ep4LightSource;case 769:return n.Cacti;case 770:return n.BigBrownRock;case 771:return n.BreakableBrownRock;case 832:return n.UnknownItem832;case 833:return n.UnknownItem833;case 896:return n.PoisonPlant;case 897:return n.UnknownItem897;case 898:return n.UnknownItem898;case 899:return n.OozingDesertPlant;case 901:return n.UnknownItem901;case 902:return n.BigBlackRocks;case 903:return n.UnknownItem903;case 904:return n.UnknownItem904;case 905:return n.UnknownItem905;case 906:return n.UnknownItem906;case 907:return n.FallingRock;case 908:return n.DesertPlantHasCollision;case 909:return n.DesertFixedTypeBoxBreakableCrystals;case 910:return n.UnknownItem910;case 911:return n.BeeHive;case 912:return n.UnknownItem912;case 913:return n.Heat;case 960:return n.TopOfSaintMillionEgg;case 961:return n.UnknownItem961}};const o=[];function s(e,i,n){t.OBJECT_TYPES.push(e),o[e]={name:n,pso_id:i}}s(n.Unknown,void 0,"Unknown"),s(n.PlayerSet,0,"Player Set"),s(n.Particle,1,"Particle"),s(n.Teleporter,2,"Teleporter"),s(n.Warp,3,"Warp"),s(n.LightCollision,4,"Light Collision"),s(n.Item,5,"Item"),s(n.EnvSound,6,"Env Sound"),s(n.FogCollision,7,"Fog Collision"),s(n.EventCollision,8,"Event Collision"),s(n.CharaCollision,9,"Chara Collision"),s(n.ElementalTrap,10,"Elemental Trap"),s(n.StatusTrap,11,"Status Trap"),s(n.HealTrap,12,"Heal Trap"),s(n.LargeElementalTrap,13,"Large Elemental Trap"),s(n.ObjRoomID,14,"Obj Room ID"),s(n.Sensor,15,"Sensor"),s(n.UnknownItem16,16,"Unknown Item (16)"),s(n.Lensflare,17,"Lensflare"),s(n.ScriptCollision,18,"Script Collision"),s(n.HealRing,19,"Heal Ring"),s(n.MapCollision,20,"Map Collision"),s(n.ScriptCollisionA,21,"Script Collision A"),s(n.ItemLight,22,"Item Light"),s(n.RadarCollision,23,"Radar Collision"),s(n.FogCollisionSW,24,"Fog Collision SW"),s(n.BossTeleporter,25,"Boss Teleporter"),s(n.ImageBoard,26,"Image Board"),s(n.QuestWarp,27,"Quest Warp"),s(n.Epilogue,28,"Epilogue"),s(n.UnknownItem29,29,"Unknown Item (29)"),s(n.UnknownItem30,30,"Unknown Item (30)"),s(n.UnknownItem31,31,"Unknown Item (31)"),s(n.BoxDetectObject,32,"Box Detect Object"),s(n.SymbolChatObject,33,"Symbol Chat Object"),s(n.TouchPlateObject,34,"Touch plate Object"),s(n.TargetableObject,35,"Targetable Object"),s(n.EffectObject,36,"Effect object"),s(n.CountDownObject,37,"Count Down Object"),s(n.UnknownItem38,38,"Unknown Item (38)"),s(n.UnknownItem39,39,"Unknown Item (39)"),s(n.UnknownItem40,40,"Unknown Item (40)"),s(n.UnknownItem41,41,"Unknown Item (41)"),s(n.MenuActivation,64,"Menu activation"),s(n.TelepipeLocation,65,"Telepipe Location"),s(n.BGMCollision,66,"BGM Collision"),s(n.MainRagolTeleporter,67,"Main Ragol Teleporter"),s(n.LobbyTeleporter,68,"Lobby Teleporter"),s(n.PrincipalWarp,69,"Principal warp"),s(n.ShopDoor,70,"Shop Door"),s(n.HuntersGuildDoor,71,"Hunter's Guild Door"),s(n.TeleporterDoor,72,"Teleporter Door"),s(n.MedicalCenterDoor,73,"Medical Center Door"),s(n.Elevator,74,"Elevator"),s(n.EasterEgg,75,"Easter Egg"),s(n.ValentinesHeart,76,"Valentines Heart"),s(n.ChristmasTree,77,"Christmas Tree"),s(n.ChristmasWreath,78,"Christmas Wreath"),s(n.HalloweenPumpkin,79,"Halloween Pumpkin"),s(n.TwentyFirstCentury,80,"21st Century"),s(n.Sonic,81,"Sonic"),s(n.WelcomeBoard,82,"Welcome Board"),s(n.Firework,83,"Firework"),s(n.LobbyScreenDoor,84,"Lobby Screen Door"),s(n.MainRagolTeleporterBattleInNextArea,85,"Main Ragol Teleporter (Battle in next area?)"),s(n.LabTeleporterDoor,86,"Lab Teleporter Door"),s(n.Pioneer2InvisibleTouchplate,87,"Pioneer 2 Invisible Touchplate"),s(n.ForestDoor,128,"Forest Door"),s(n.ForestSwitch,129,"Forest Switch"),s(n.LaserFence,130,"Laser Fence"),s(n.LaserSquareFence,131,"Laser Square Fence"),s(n.ForestLaserFenceSwitch,132,"Forest Laser Fence Switch"),s(n.LightRays,133,"Light rays"),s(n.BlueButterfly,134,"Blue Butterfly"),s(n.Probe,135,"Probe"),s(n.RandomTypeBox1,136,"Random Type Box 1"),s(n.ForestWeatherStation,137,"Forest Weather Station"),s(n.Battery,138,"Battery"),s(n.ForestConsole,139,"Forest Console"),s(n.BlackSlidingDoor,140,"Black Sliding Door"),s(n.RicoMessagePod,141,"Rico Message Pod"),s(n.EnergyBarrier,142,"Energy Barrier"),s(n.ForestRisingBridge,143,"Forest Rising Bridge"),s(n.SwitchNoneDoor,144,"Switch (none door)"),s(n.EnemyBoxGrey,145,"Enemy Box (Grey)"),s(n.FixedTypeBox,146,"Fixed Type Box"),s(n.EnemyBoxBrown,147,"Enemy Box (Brown)"),s(n.EmptyTypeBox,149,"Empty Type Box"),s(n.LaserFenseEx,150,"Laser Fense Ex"),s(n.LaserSquareFenceEx,151,"Laser Square Fence Ex"),s(n.FloorPanel1,192,"Floor Panel 1"),s(n.Caves4ButtonDoor,193,"Caves 4 Button door"),s(n.CavesNormalDoor,194,"Caves Normal door"),s(n.CavesSmashingPillar,195,"Caves Smashing Pillar"),s(n.CavesSign1,196,"Caves Sign 1"),s(n.CavesSign2,197,"Caves Sign 2"),s(n.CavesSign3,198,"Caves Sign 3"),s(n.HexagalTank,199,"Hexagal Tank"),s(n.BrownPlatform,200,"Brown Platform"),s(n.WarningLightObject,201,"Warning Light Object"),s(n.Rainbow,203,"Rainbow"),s(n.FloatingJelifish,204,"Floating Jelifish"),s(n.FloatingDragonfly,205,"Floating Dragonfly"),s(n.CavesSwitchDoor,206,"Caves Switch Door"),s(n.RobotRechargeStation,207,"Robot Recharge Station"),s(n.CavesCakeShop,208,"Caves Cake Shop"),s(n.Caves1SmallRedRock,209,"Caves 1 Small Red Rock"),s(n.Caves1MediumRedRock,210,"Caves 1 Medium Red Rock"),s(n.Caves1LargeRedRock,211,"Caves 1 Large Red Rock"),s(n.Caves2SmallRock1,212,"Caves 2 Small Rock 1"),s(n.Caves2MediumRock1,213,"Caves 2 Medium Rock 1"),s(n.Caves2LargeRock1,214,"Caves 2 Large Rock 1"),s(n.Caves2SmallRock2,215,"Caves 2 Small Rock 2"),s(n.Caves2MediumRock2,216,"Caves 2 Medium Rock 2"),s(n.Caves2LargeRock2,217,"Caves 2 Large Rock 2"),s(n.Caves3SmallRock,218,"Caves 3 Small Rock"),s(n.Caves3MediumRock,219,"Caves 3 Medium Rock"),s(n.Caves3LargeRock,220,"Caves 3 Large Rock"),s(n.FloorPanel2,222,"Floor Panel 2"),s(n.DestructableRockCaves1,223,"Destructable Rock (Caves 1)"),s(n.DestructableRockCaves2,224,"Destructable Rock (Caves 2)"),s(n.DestructableRockCaves3,225,"Destructable Rock (Caves 3)"),s(n.MinesDoor,256,"Mines Door"),s(n.FloorPanel3,257,"Floor Panel 3"),s(n.MinesSwitchDoor,258,"Mines Switch Door"),s(n.LargeCryoTube,259,"Large Cryo-Tube"),s(n.ComputerLikeCalus,260,"Computer (like calus)"),s(n.GreenScreenOpeningAndClosing,261,"Green Screen opening and closing"),s(n.FloatingRobot,262,"Floating Robot"),s(n.FloatingBlueLight,263,"Floating Blue Light"),s(n.SelfDestructingObject1,264,"Self Destructing Object 1"),s(n.SelfDestructingObject2,265,"Self Destructing Object 2"),s(n.SelfDestructingObject3,266,"Self Destructing Object 3"),s(n.SparkMachine,267,"Spark Machine"),s(n.MinesLargeFlashingCrate,268,"Mines Large Flashing Crate"),s(n.RuinsSeal,304,"Ruins Seal"),s(n.RuinsTeleporter,320,"Ruins Teleporter"),s(n.RuinsWarpSiteToSite,321,"Ruins Warp (Site to site)"),s(n.RuinsSwitch,322,"Ruins Switch"),s(n.FloorPanel4,323,"Floor Panel 4"),s(n.Ruins1Door,324,"Ruins 1 Door"),s(n.Ruins3Door,325,"Ruins 3 Door"),s(n.Ruins2Door,326,"Ruins 2 Door"),s(n.Ruins11ButtonDoor,327,"Ruins 1-1 Button Door"),s(n.Ruins21ButtonDoor,328,"Ruins 2-1 Button Door"),s(n.Ruins31ButtonDoor,329,"Ruins 3-1 Button Door"),s(n.Ruins4ButtonDoor,330,"Ruins 4-Button Door"),s(n.Ruins2ButtonDoor,331,"Ruins 2-Button Door"),s(n.RuinsSensor,332,"Ruins Sensor"),s(n.RuinsFenceSwitch,333,"Ruins Fence Switch"),s(n.RuinsLaserFence4x2,334,"Ruins Laser Fence 4x2"),s(n.RuinsLaserFence6x2,335,"Ruins Laser Fence 6x2"),s(n.RuinsLaserFence4x4,336,"Ruins Laser Fence 4x4"),s(n.RuinsLaserFence6x4,337,"Ruins Laser Fence 6x4"),s(n.RuinsPoisonBlob,338,"Ruins poison Blob"),s(n.RuinsPilarTrap,339,"Ruins Pilar Trap"),s(n.PopupTrapNoTech,340,"Popup Trap (No Tech)"),s(n.RuinsCrystal,341,"Ruins Crystal"),s(n.Monument,342,"Monument"),s(n.RuinsRock1,345,"Ruins Rock 1"),s(n.RuinsRock2,346,"Ruins Rock 2"),s(n.RuinsRock3,347,"Ruins Rock 3"),s(n.RuinsRock4,348,"Ruins Rock 4"),s(n.RuinsRock5,349,"Ruins Rock 5"),s(n.RuinsRock6,350,"Ruins Rock 6"),s(n.RuinsRock7,351,"Ruins Rock 7"),s(n.Poison,352,"Poison"),s(n.FixedBoxTypeRuins,353,"Fixed Box Type (Ruins)"),s(n.RandomBoxTypeRuins,354,"Random Box Type (Ruins)"),s(n.EnemyTypeBoxYellow,355,"Enemy Type Box (Yellow)"),s(n.EnemyTypeBoxBlue,356,"Enemy Type Box (Blue)"),s(n.EmptyTypeBoxBlue,357,"Empty Type Box (Blue)"),s(n.DestructableRock,358,"Destructable Rock"),s(n.PopupTrapsTechs,359,"Popup Traps (techs)"),s(n.FlyingWhiteBird,368,"Flying White Bird"),s(n.Tower,369,"Tower"),s(n.FloatingRocks,370,"Floating Rocks"),s(n.FloatingSoul,371,"Floating Soul"),s(n.Butterfly,372,"Butterfly"),s(n.LobbyGameMenu,384,"Lobby Game menu"),s(n.LobbyWarpObject,385,"Lobby Warp Object"),s(n.Lobby1EventObjectDefaultTree,386,"Lobby 1 Event Object (Default Tree)"),s(n.UnknownItem387,387,"Unknown Item (387)"),s(n.UnknownItem388,388,"Unknown Item (388)"),s(n.UnknownItem389,389,"Unknown Item (389)"),s(n.LobbyEventObjectStaticPumpkin,390,"Lobby Event Object (Static Pumpkin)"),s(n.LobbyEventObject3ChristmasWindows,391,"Lobby Event Object (3 Christmas Windows)"),s(n.LobbyEventObjectRedAndWhiteCurtain,392,"Lobby Event Object (Red and White Curtain)"),s(n.UnknownItem393,393,"Unknown Item (393)"),s(n.UnknownItem394,394,"Unknown Item (394)"),s(n.LobbyFishTank,395,"Lobby Fish Tank"),s(n.LobbyEventObjectButterflies,396,"Lobby Event Object (Butterflies)"),s(n.UnknownItem400,400,"Unknown Item (400)"),s(n.GreyWallLow,401,"grey wall low"),s(n.SpaceshipDoor,402,"Spaceship Door"),s(n.GreyWallHigh,403,"grey wall high"),s(n.TempleNormalDoor,416,"Temple Normal Door"),s(n.BreakableWallWallButUnbreakable,417,'"breakable wall wall, but unbreakable"'),s(n.BrokenCilinderAndRubble,418,"Broken cilinder and rubble"),s(n.ThreeBrokenWallPiecesOnFloor,419,"3 broken wall pieces on floor"),s(n.HighBrickCilinder,420,"high brick cilinder"),s(n.LyingCilinder,421,"lying cilinder"),s(n.BrickConeWithFlatTop,422,"brick cone with flat top"),s(n.BreakableTempleWall,423,"breakable temple wall"),s(n.TempleMapDetect,424,"Temple Map Detect"),s(n.SmallBrownBrickRisingBridge,425,"small brown brick rising bridge"),s(n.LongRisingBridgeWithPinkHighEdges,426,"long rising bridge (with pink high edges)"),s(n.FourSwitchTempleDoor,427,"4 switch temple door"),s(n.FourButtonSpaceshipDoor,448,"4 button spaceship door"),s(n.ItemBoxCca,512,"item box cca"),s(n.TeleporterEp2,513,"Teleporter (Ep 2)"),s(n.CCADoor,514,"CCA Door"),s(n.SpecialBoxCCA,515,"Special Box CCA"),s(n.BigCCADoor,516,"Big CCA Door"),s(n.BigCCADoorSwitch,517,"Big CCA Door Switch"),s(n.LittleRock,518,"Little Rock"),s(n.Little3StoneWall,519,"Little 3 Stone Wall"),s(n.Medium3StoneWall,520,"Medium 3 stone wall"),s(n.SpiderPlant,521,"Spider Plant"),s(n.CCAAreaTeleporter,522,"CCA Area Teleporter"),s(n.UnknownItem523,523,"Unknown Item (523)"),s(n.WhiteBird,524,"White Bird"),s(n.OrangeBird,525,"Orange Bird"),s(n.Saw,527,"Saw"),s(n.LaserDetect,528,"Laser Detect"),s(n.UnknownItem529,529,"Unknown Item (529)"),s(n.UnknownItem530,530,"Unknown Item (530)"),s(n.Seagull,531,"Seagull"),s(n.Fish,544,"Fish"),s(n.SeabedDoorWithBlueEdges,545,"Seabed Door (with blue edges)"),s(n.SeabedDoorAlwaysOpenNonTriggerable,546,"Seabed door (always open, non-triggerable)"),s(n.LittleCryotube,547,"Little Cryotube"),s(n.WideGlassWallBreakable,548,"Wide Glass Wall (breakable)"),s(n.BlueFloatingRobot,549,"Blue floating robot"),s(n.RedFloatingRobot,550,"Red floating robot"),s(n.Dolphin,551,"Dolphin"),s(n.CaptureTrap,552,"Capture Trap"),s(n.VRLink,553,"VR link"),s(n.UnknownItem576,576,"Unknown Item (576)"),s(n.WarpInBarbaRayRoom,640,"Warp in Barba Ray Room"),s(n.UnknownItem672,672,"Unknown Item (672)"),s(n.GeeNest,688,"Gee Nest"),s(n.LabComputerConsole,689,"Lab Computer Console"),s(n.LabComputerConsoleGreenScreen,690,"Lab Computer Console (Green Screen)"),s(n.ChairYelllowPillow,691,"Chair, Yelllow Pillow"),s(n.OrangeWallWithHoleInMiddle,692,"orange wall with hole in middle"),s(n.GreyWallWithHoleInMiddle,693,"grey wall with hole in middle"),s(n.LongTable,694,"long table"),s(n.GBAStation,695,"GBA Station"),s(n.TalkLinkToSupport,696,"Talk (link to support)"),s(n.InstaWarp,697,"insta-warp"),s(n.LabInvisibleObject,698,"Lab Invisible Object"),s(n.LabGlassWindowDoor,699,"Lab Glass window Door"),s(n.UnknownItem700,700,"Unknown Item (700)"),s(n.LabCelingWarp,701,"Lab Celing Warp"),s(n.Ep4LightSource,768,"Ep4 Light Source"),s(n.Cacti,769,"cacti"),s(n.BigBrownRock,770,"Big Brown Rock"),s(n.BreakableBrownRock,771,"Breakable Brown Rock"),s(n.UnknownItem832,832,"Unknown Item (832)"),s(n.UnknownItem833,833,"Unknown Item (833)"),s(n.PoisonPlant,896,"Poison Plant"),s(n.UnknownItem897,897,"Unknown Item (897)"),s(n.UnknownItem898,898,"Unknown Item (898)"),s(n.OozingDesertPlant,899,"Oozing Desert Plant"),s(n.UnknownItem901,901,"Unknown Item (901)"),s(n.BigBlackRocks,902,"big black rocks"),s(n.UnknownItem903,903,"Unknown Item (903)"),s(n.UnknownItem904,904,"Unknown Item (904)"),s(n.UnknownItem905,905,"Unknown Item (905)"),s(n.UnknownItem906,906,"Unknown Item (906)"),s(n.FallingRock,907,"Falling Rock"),s(n.DesertPlantHasCollision,908,"Desert Plant (has collision)"),s(n.DesertFixedTypeBoxBreakableCrystals,909,"Desert Fixed Type Box (Breakable Crystals)"),s(n.UnknownItem910,910,"Unknown Item (910)"),s(n.BeeHive,911,"Bee Hive"),s(n.UnknownItem912,912,"Unknown Item (912)"),s(n.Heat,913,"Heat"),s(n.TopOfSaintMillionEgg,960,"Top of saint million egg"),s(n.UnknownItem961,961,"Unknown Item (961)")},"/7QA":function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i("1Qg8");i("8UJ8");const s=i("LvDl"),r=n(i("GGSb"));i("XtFL"),i("tjRy"),i("3oCa"),i("OP0w"),r.default.useDefaults({defaultLevel:r.default.WARN}),document.addEventListener("keydown",e=>{const t=e;t.ctrlKey&&!t.altKey&&"Z"===t.key.toUpperCase()&&t.preventDefault()}),document.addEventListener("beforeinput",e=>{const t=e;"historyUndo"!==t.inputType&&"historyRedo"!==t.inputType||e.preventDefault()}),function(){const e=new o.ApplicationView,t=s.throttle(()=>{e.resize(window.innerWidth,window.innerHeight)},100,{leading:!0,trailing:!0});t(),document.body.append(e.element),window.addEventListener("resize",t)}()},"/Wax":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("9dYx");class o extends n.AbstractWritableCursor{get size(){return this._size}set size(e){e>this._size?this.ensure_size(e-this._size):this._size=e}get backing_buffer(){return this.buffer.backing_buffer}get dv(){return this.buffer.view}constructor(e,t,i=0,n=e.size-i){if(i<0||i>e.size)throw new Error(`Offset ${i} is out of bounds.`);if(n<0||i+n>e.size)throw new Error(`Size ${n} is out of bounds.`);super(t,i),this.buffer=e,this._size=n}take(e){this.check_size("size",e,e);const t=this.offset+this.position,i=new o(this.buffer,this.endianness,t,e);return this._position+=e,i}ensure_size(e){const t=this.position+e-this._size;t>0&&(this._size+=t,this.buffer.sizethis.val=e.value)}bind_bi(e){const t=this.bind_to(e),i=e.bind_to(this);return{dispose(){t.dispose(),i.dispose()}}}}},"0Xme":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("sDu+"),o=i("FXpb"),s=i("jJhE");i("x1yY");const r=i("4VsB");t.Input=class extends n.LabelledControl{constructor(e,t,i,n,s){super(o.el.span({class:`${t} core_Input`}),s),this._value=new r.WidgetProperty(this,e,this.set_value),this.value=this._value,this.input_element=o.create_element("input",{class:`${n} core_Input_inner`}),this.input_element.type=i,this.input_element.onchange=()=>{this._value.set_val(this.get_value(),{silent:!1})},this.element.append(this.input_element)}set_enabled(e){super.set_enabled(e),this.input_element.disabled=!e}set_attr(e,t,i){if(null==t)return;const n=this.input_element,o=i||(e=>e);s.is_any_property(t)?(n[e]=o(t.val),this.disposable(t.observe(({value:t})=>n[e]=o(t)))):n[e]=o(t)}}},"1Qg8":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("yxQK"),o=i("49yP"),s=i("FXpb"),r=i("nN8q");class a extends r.ResizableWidget{constructor(){super(s.el.div({class:"application_ApplicationView"})),this.menu_view=this.disposable(new n.NavigationView),this.main_content_view=this.disposable(new o.MainContentView),this.element.id="root",this.element.append(this.menu_view.element,this.main_content_view.element),this.finalize_construction(a.prototype)}resize(e,t){return super.resize(e,t),this.main_content_view.resize(e,t-this.menu_view.height),this}}t.ApplicationView=a},"1aHr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("w6HN"),o=i("6cU9"),s=i("KVVN"),r=i("c5EP"),a=i("n5fr"),d=i("sv1z"),l=i("ouMO"),u=i("FXpb"),c=i("r+6V"),_=i("xs7i"),p=i("4Mnx"),v=i("4SjJ"),h=i("S6Bx");class w extends n.ToolBar{constructor(){const e=new c.DropDown("New quest",[_.Episode.I],e=>`Episode ${_.Episode[e]}`,{icon_left:u.Icon.NewFile}),t=new o.FileButton("Open file...",{icon_left:u.Icon.File,accept:".qst",tooltip:"Open a quest file (Ctrl-O)"}),i=new s.Button("Save as...",{icon_left:u.Icon.Save,tooltip:"Save this quest to new file (Ctrl-Shift-S)"}),n=new s.Button("Undo",{icon_left:u.Icon.Undo,tooltip:a.undo_manager.first_undo.map(e=>(e?`Undo "${e.description}"`:"Nothing to undo")+" (Ctrl-Z)")}),f=new s.Button("Redo",{icon_left:u.Icon.Redo,tooltip:a.undo_manager.first_redo.map(e=>(e?`Redo "${e.description}"`:"Nothing to redo")+" (Ctrl-Shift-Z)")}),m=new d.Select(r.quest_editor_store.current_quest.flat_map(e=>e?l.list_property(void 0,...p.area_store.get_areas_for_episode(e.episode)):l.list_property()),e=>{const t=r.quest_editor_store.current_quest.val;if(t){const i=t.entities_per_area.val.get(e.id);return e.name+(i?` (${i})`:"")}return e.name});super({children:[e,t,i,n,f,m]});const g=r.quest_editor_store.current_quest.map(e=>null!=e);this.disposables(e.chosen.observe(({value:e})=>r.quest_editor_store.new_quest(e)),t.files.observe(({value:e})=>{e.length&&r.quest_editor_store.open_file(e[0])}),i.enabled.bind_to(g),i.click.observe(r.quest_editor_store.save_as),n.enabled.bind_to(a.undo_manager.can_undo),n.click.observe(()=>a.undo_manager.undo()),f.enabled.bind_to(a.undo_manager.can_redo),f.click.observe(()=>a.undo_manager.redo()),m.enabled.bind_to(g),m.selected.bind_to(r.quest_editor_store.current_area),m.selected.observe(({value:e})=>r.quest_editor_store.set_current_area(e)),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-O",()=>t.click()),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-Shift-S",r.quest_editor_store.save_as),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-Z",()=>{a.undo_manager.current.val!==h.asm_editor_store.undo&&a.undo_manager.undo()}),v.gui_store.on_global_keydown(v.GuiTool.QuestEditor,"Ctrl-Shift-Z",()=>{a.undo_manager.current.val!==h.asm_editor_store.undo&&a.undo_manager.redo()})),this.finalize_construction(w.prototype)}}t.QuestEditorToolBar=w},"1vWm":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i("nN8q"),r=i("FXpb"),a=i("1aHr"),d=o(i("xGNL")),l=i("zBQr"),u=i("yog5");i("88+i"),i("UrNz");const c=i("xyE7"),_=i("W7aE"),p=i("DUCy"),v=i("Yq7v"),h=i("4SjJ"),w=i("c5EP"),f=i("GGSb").get("quest_editor/gui/QuestEditorView"),m=new Map([[u.QuesInfoView,"quest_info"],[c.NpcCountsView,"npc_counts"],[_.QuestRendererView,"quest_renderer"],[p.AsmEditorView,"asm_editor"],[v.EntityInfoView,"entity_info"]]),g={settings:{showPopoutIcon:!1,showMaximiseIcon:!1},dimensions:{headerHeight:24},labels:{close:"Close",maximise:"Maximise",minimise:"Minimise",popout:"Open in new window"}},y=[{type:"row",content:[{type:"stack",width:3,content:[{title:"Info",type:"component",componentName:m.get(u.QuesInfoView),isClosable:!1},{title:"NPC Counts",type:"component",componentName:m.get(c.NpcCountsView),isClosable:!1}]},{type:"stack",width:9,content:[{title:"3D View",type:"component",componentName:m.get(_.QuestRendererView),isClosable:!1},{title:"Script",type:"component",componentName:m.get(p.AsmEditorView),isClosable:!1}]},{title:"Entity",type:"component",componentName:m.get(v.EntityInfoView),isClosable:!1,width:2}]}];class O extends s.ResizableWidget{constructor(){super(r.el.div({class:"quest_editor_QuestEditorView"})),this.tool_bar_view=this.disposable(new a.QuestEditorToolBar),this.layout_element=r.create_element("div",{class:"quest_editor_gl_container"}),this.sub_views=new Map,this.element.append(this.tool_bar_view.element,this.layout_element),this.layout=this.init_golden_layout(),this.disposables(h.gui_store.on_global_keydown(h.GuiTool.QuestEditor,"Ctrl-Alt-D",()=>w.quest_editor_store.debug.val=!w.quest_editor_store.debug.val)),this.finalize_construction(O.prototype)}resize(e,t){super.resize(e,t);const i=Math.max(0,t-this.tool_bar_view.height);return this.layout_element.style.width=`${e}px`,this.layout_element.style.height=`${i}px`,this.layout.then(t=>t.updateSize(e,i)),this}dispose(){super.dispose(),this.layout.then(e=>e.destroy());for(const e of this.sub_views.values())e.dispose();this.sub_views.clear()}init_golden_layout(){return n(this,void 0,void 0,function*(){const e=yield l.quest_editor_ui_persister.load_layout_config([...m.values()],y);try{return this.attempt_gl_init(Object.assign({},g,{content:e}))}catch(e){return f.warn("Couldn't instantiate golden layout with persisted layout.",e),this.attempt_gl_init(Object.assign({},g,{content:y}))}})}attempt_gl_init(e){const t=new d.default(e,this.layout_element),i=this;try{for(const[e,n]of m)t.registerComponent(n,function(t){const o=new e;t.on("close",()=>o.dispose()),t.on("resize",()=>o.resize(t.width,t.height-4)),o.resize(t.width,t.height),i.sub_views.set(n,o),t.getElement().append(o.element)});return t.on("stateChanged",()=>{this.layout&&l.quest_editor_ui_persister.persist_layout_config(t.toConfig().content)}),t.on("stackCreated",e=>{e.on("activeContentItemChanged",e=>{if("componentName"in e.config){const t=this.sub_views.get(e.config.componentName);t&&t.focus()}})}),t.init(),t}catch(e){throw t.destroy(),e}}}t.QuestEditorView=O},"1z6m":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid"),o=i("FXpb"),s=i("4SjJ");i("Rbar");class r extends n.Widget{constructor(e,t){super(o.el.span({class:"application_NavigationButton"})),this.input=o.create_element("input"),this.label=o.create_element("label");const i=s.GuiTool[e];this.input.type="radio",this.input.name="application_NavigationButton",this.input.value=i,this.input.id=`application_NavigationButton_${i}`,this.label.append(t),this.label.htmlFor=`application_NavigationButton_${i}`,this.element.append(this.input,this.label),this.finalize_construction(r.prototype)}set checked(e){this.input.checked=e}}t.NavigationButton=r},"22Lq":function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),s=i("hUhj"),r=i("oxtq"),a=n(i("GGSb")).default.get("core/observable/property/list/SimpleListProperty");t.SimpleListProperty=class extends s.AbstractProperty{constructor(e,...t){super(),this.is_list_property=!0,this._length=o.property(0),this.value_observers=[],this.list_observers=[],this.length=this._length,this.values=t,this.extract_observables=e}get val(){return this.get_val()}set val(e){this.set_val(e)}get_val(){return this.values}set_val(e){const t=this.values.splice(0,this.values.length,...e);return this.finalize_update({type:r.ListChangeType.ListChange,index:0,removed:t,inserted:e}),t}observe_list(e){return 0===this.value_observers.length&&this.extract_observables&&this.replace_element_observers(0,1/0,this.values),this.list_observers.includes(e)||this.list_observers.push(e),{dispose:()=>{const t=this.list_observers.indexOf(e);if(-1!==t&&this.list_observers.splice(t,1),0===this.list_observers.length){for(const{disposables:e}of this.value_observers)for(const t of e)t.dispose();this.value_observers.splice(0,1/0)}}}}bind_to(e){return r.is_list_property(e)?e.observe_list(e=>{e.type===r.ListChangeType.ListChange&&this.splice(e.index,e.removed.length,...e.inserted)}):e.observe(({value:e})=>this.set_val(e))}bind_bi(e){const t=this.bind_to(e),i=e.bind_to(this);return{dispose(){t.dispose(),i.dispose()}}}update(e){this.splice(0,this.values.length,...e(this.values))}get(e){return this.values[e]}set(e,t){const i=[this.values[e]];this.values[e]=t,this.finalize_update({type:r.ListChangeType.ListChange,index:e,removed:i,inserted:[t]})}push(...e){const t=this.values.length;return this.values.push(...e),this.finalize_update({type:r.ListChangeType.ListChange,index:t,removed:[],inserted:e}),this.length.val}remove(...e){for(const t of e){const e=this.values.indexOf(t);this.values.splice(e,1),this.finalize_update({type:r.ListChangeType.ListChange,index:e,removed:[t],inserted:[]})}}clear(){const e=this.values.splice(0,this.values.length);this.finalize_update({type:r.ListChangeType.ListChange,index:0,removed:e,inserted:[]})}splice(e,t,...i){let n;return n=null==t?this.values.splice(e):this.values.splice(e,t,...i),this.finalize_update({type:r.ListChangeType.ListChange,index:e,removed:n,inserted:i}),n}sort(e){this.values.sort(e),this.finalize_update({type:r.ListChangeType.ListChange,index:0,removed:this.values,inserted:this.values})}finalize_update(e){this.list_observers.length&&this.extract_observables&&e.type===r.ListChangeType.ListChange&&this.replace_element_observers(e.index,e.removed.length,e.inserted);const t=this._length.val;this._length.set_val(this.values.length,{silent:!0});for(const t of this.list_observers)this.call_list_observer(t,e);this.emit(this.values),this._length.set_val(t,{silent:!0}),this._length.set_val(this.values.length,{silent:!1})}call_list_observer(e,t){try{e(t)}catch(e){a.error("Observer threw error.",e)}}replace_element_observers(e,t,i){let n=e;const o=this.value_observers.splice(e,t,...i.map(e=>{const t={index:n,disposables:this.extract_observables(e).map(i=>i.observe(()=>{this.finalize_update({type:r.ListChangeType.ValueChange,updated:[e],index:t.index})}))};return n++,t}));for(const{disposables:e}of o)for(const t of e)t.dispose();const s=i.length-t;for(;n{this.disposed||(this.view=this.disposable(e),this.view.resize(this.width,this.height),this.element.append(e.element))})),this.finalize_construction(s.prototype)}resize(e,t){return super.resize(e,t),this.view&&this.view.resize(e,t),this}}t.LazyWidget=s},"3AeF":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("x4IQ");t.EditLongDescriptionAction=class extends n.QuestEditAction{constructor(){super(...arguments),this.description="Edit long description"}undo(){this.quest.set_long_description(this.old)}redo(){this.quest.set_long_description(this.new)}}},"3CEK":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i("GGSb")),r=i("Womt"),a=i("4vnR"),d=i("aEXR"),l=i("Tpfs"),u=i("4Mnx"),c=i("xpi7"),_=s.default.get("quest_editor/rendering/QuestModelManager"),p=new r.Vector3(0,800,700),v=new r.Vector3(0,0,0),h=new r.Object3D;t.QuestModelManager=class{constructor(e){this.renderer=e,this.disposer=new l.Disposer}load_models(e,t){return n(this,void 0,void 0,function*(){let i;if(e&&t&&(i=e.area_variants.val.find(e=>e.area.id===t.id)||u.area_store.get_variant(e.episode,t.id,0)),this.quest!==e||this.area_variant!==i)if(this.quest=e,this.area=t,this.area_variant=i,this.disposer.dispose_all(),e&&t)try{const n=e.episode,o=t.id,s=i?i.id:0,r=yield d.load_area_collision_geometry(n,o,s),l=yield d.load_area_render_geometry(n,o,s);if(this.add_sections_to_collision_geometry(r,l),this.quest!==e||this.area_variant!==i)return;this.renderer.collision_geometry=r,this.renderer.render_geometry=l,this.renderer.reset_camera(p,v),this.renderer.reset_entity_models();for(const n of e.npcs.val)if(n.area_id===t.id){const t=yield a.load_npc_geometry(n.type),o=yield a.load_npc_textures(n.type);if(this.quest!==e||this.area_variant!==i)return;const s=c.create_npc_mesh(n,t,o);this.update_entity_geometry(n,s)}for(const n of e.objects.val)if(n.area_id===t.id){const t=yield a.load_object_geometry(n.type),o=yield a.load_object_textures(n.type);if(this.quest!==e||this.area_variant!==i)return;const s=c.create_object_mesh(n,t,o);this.update_entity_geometry(n,s)}}catch(i){_.error(`Couldn't load models for quest ${e.id}, ${t.name}.`,i),this.renderer.collision_geometry=h,this.renderer.render_geometry=h,this.renderer.reset_entity_models()}else this.renderer.collision_geometry=h,this.renderer.render_geometry=h,this.renderer.reset_entity_models()})}dispose(){this.disposer.dispose()}add_sections_to_collision_geometry(e,t){const i=new r.Raycaster,n=new r.Vector3,o=new r.Vector3(0,-1,0),s=new r.Vector3(0,1,0);for(const r of e.children){r.geometry.boundingBox.getCenter(n),i.set(n,o);const e=i.intersectObject(t,!0).find(e=>null!=e.object.userData.section);i.set(n,s);const a=i.intersectObject(t,!0).find(e=>null!=e.object.userData.section);let d;if(d=e&&a?e.distance<=a.distance?e:a:e||a){const e=r.userData,t=d.object.userData;e.section=t.section}}}update_entity_geometry(e,t){this.renderer.add_entity_model(t),this.disposer.add_all(e.world_position.observe(({value:{x:e,y:i,z:n}})=>{t.position.set(e,i,n),this.renderer.schedule_render()}),e.rotation.observe(({value:{x:e,y:i,z:n}})=>{t.rotation.set(e,i,n),this.renderer.schedule_render()}))}}},"4/Uj":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),s=i("yub1"),r=i("Sa3/"),a=i("NRxM"),d=i("bcBH"),l=i("GGSb").get("viewer/stores/TextureStore");class u{constructor(){this._current_xvm=o.property(void 0),this.current_xvm=this._current_xvm,this.load_file=e=>n(this,void 0,void 0,function*(){try{const t=yield r.read_file(e);this._current_xvm.val=s.parse_xvm(new a.ArrayBufferCursor(t,d.Endianness.Little))}catch(e){l.error("Couldn't read file.",e)}})}}t.TextureStore=u,t.texture_store=new u},"469Q":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=i("Ftn7"),s=i("Tpfs"),r=i("iR5r"),a=i("GGSb"),d=i("4/Uj"),l=a.get("viewer/rendering/TextureRenderer");t.TextureRenderer=class extends o.Renderer{constructor(){super(new n.OrthographicCamera(-400,400,300,-300,1,10)),this.disposer=new s.Disposer,this.quad_meshes=[],this.ortho_camera=this.camera,this.controls.dollySpeed=-1,this.controls.azimuthRotateSpeed=0,this.controls.polarRotateSpeed=0,this.disposer.add_all(d.texture_store.current_xvm.observe(({value:e})=>{this.scene.remove(...this.quad_meshes),e&&this.render_textures(e),this.reset_camera(new n.Vector3(0,0,5),new n.Vector3),this.schedule_render()}))}set_size(e,t){this.ortho_camera.left=-Math.floor(e/2),this.ortho_camera.right=Math.ceil(e/2),this.ortho_camera.top=Math.floor(t/2),this.ortho_camera.bottom=-Math.ceil(t/2),this.ortho_camera.updateProjectionMatrix(),super.set_size(e,t)}dispose(){super.dispose(),this.disposer.dispose()}render_textures(e){let t=10*(e.textures.length-1),i=0;for(const n of e.textures)t+=n.width,i=Math.max(i,n.height);let o=-Math.floor(t/2);const s=-Math.floor(i/2);for(const t of e.textures){let e;try{e=r.xvm_texture_to_texture(t)}catch(e){l.warn("Couldn't convert XVM texture.",e)}const a=new n.Mesh(this.create_quad(o,s+Math.floor((i-t.height)/2),t.width,t.height),e?new n.MeshBasicMaterial({map:e,transparent:!0}):new n.MeshBasicMaterial({color:16711935}));this.quad_meshes.push(a),this.scene.add(a),o+=10+t.width}}create_quad(e,t,i,o){const s=new n.PlaneGeometry(i,o,1,1);return s.faceVertexUvs=[[[new n.Vector2(0,0),new n.Vector2(0,1),new n.Vector2(1,0)],[new n.Vector2(0,1),new n.Vector2(1,1),new n.Vector2(1,0)]]],s.translate(e+i/2,t+o/2,-5),s}}},"488w":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=i("tRdk"),s=i("kwt4"),r=i("vM2b"),a=new n.Vector3(0,1,0),d=new n.Vector2(0,0),l=new n.Vector3(0,0,0),u=new n.Quaternion(0,0,0,1),c=new n.Vector3(1,1,1);t.ninja_object_to_geometry_builder=function(e,t){new p(t).to_geometry_builder(e)},t.ninja_object_to_buffer_geometry=function(e){return new p(new r.GeometryBuilder).create_buffer_geometry(e)};class _{constructor(){this.vertices_stack=[]}put(e){this.vertices_stack.push(e)}get(e){const t=[];for(let i=this.vertices_stack.length-1;i>=0;i--){const n=this.vertices_stack[i][e];n&&t.push(n)}return t}}class p{constructor(e){this.vertices=new _,this.bone_id=0,this.builder=e}to_geometry_builder(e){this.object_to_geometry(e,void 0,new n.Matrix4)}create_buffer_geometry(e){return this.to_geometry_builder(e),this.builder.build()}object_to_geometry(e,t,i){const{no_translate:s,no_rotate:r,no_scale:a,hidden:d,break_child_trace:_,zxy_rotation_order:p,skip:v}=e.evaluation_flags,{position:h,rotation:w,scale:f}=e,m=new n.Euler(w.x,w.y,w.z,p?"ZXY":"ZYX"),g=(new n.Matrix4).compose(s?l:o.vec3_to_threejs(h),r?u:(new n.Quaternion).setFromEuler(m),a?c:o.vec3_to_threejs(f)).premultiply(i);let y;if(v?y=t:((y=new n.Bone).name=this.bone_id.toString(),y.position.set(h.x,h.y,h.z),y.setRotationFromEuler(m),y.scale.set(f.x,f.y,f.z),this.builder.add_bone(y),t&&t.add(y)),e.model&&!d&&this.model_to_geometry(e.model,g),this.bone_id++,!_)for(const t of e.children)this.object_to_geometry(t,y,g)}model_to_geometry(e,t){s.is_njcm_model(e)?this.njcm_model_to_geometry(e,t):this.xj_model_to_geometry(e,t)}njcm_model_to_geometry(e,t){const i=(new n.Matrix3).getNormalMatrix(t),s=e.vertices.map(e=>{const s=o.vec3_to_threejs(e.position),r=e.normal?o.vec3_to_threejs(e.normal):new n.Vector3(0,1,0);return s.applyMatrix4(t),r.applyMatrix3(i),{bone_id:this.bone_id,position:s,normal:r,bone_weight:e.bone_weight,bone_weight_status:e.bone_weight_status,calc_continue:e.calc_continue}});this.vertices.put(s);for(const t of e.meshes){const e=this.builder.index_count;for(let e=0;e=2&&(e%2==(t.clockwise_winding?1:0)?(this.builder.add_index(r-2),this.builder.add_index(r-1),this.builder.add_index(r)):(this.builder.add_index(r-2),this.builder.add_index(r),this.builder.add_index(r-1)));const l=[[0,0],[0,0],[0,0],[0,0]];for(let e=n.length-1;e>=0;e--){const t=n[e];l[t.bone_weight_status]=[t.bone_id,t.bone_weight]}for(const[e,t]of l)this.builder.add_bone_weight(e,t)}}this.builder.add_group(e,this.builder.index_count-e,t.texture_id)}}xj_model_to_geometry(e,t){const i=this.builder.vertex_count,s=(new n.Matrix3).getNormalMatrix(t);for(let{position:i,normal:r,uv:a}of e.vertices){const e=o.vec3_to_threejs(i).applyMatrix4(t),l=(r?o.vec3_to_threejs(r):new n.Vector3(0,1,0)).applyMatrix3(s),u=a||d;this.builder.add_vertex(e,l,u)}let r;for(const t of e.meshes){const e=this.builder.index_count;let n=!1;for(let e=2;e=2&&(n=!n),n?(this.builder.add_index(s),this.builder.add_index(o),this.builder.add_index(r)):(this.builder.add_index(o),this.builder.add_index(s),this.builder.add_index(r)),n=!n}null!=t.material_properties.texture_id&&(r=t.material_properties.texture_id),this.builder.add_group(e,this.builder.index_count-e,r)}}}},"49yP":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=i("FXpb"),r=i("4SjJ"),a=i("39ZU"),d=i("nN8q"),l=[[r.GuiTool.Viewer,()=>n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("vsj6")))).ViewerView)})],[r.GuiTool.QuestEditor,()=>n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("1vWm")))).QuestEditorView)})],[r.GuiTool.HuntOptimizer,()=>n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("LkpO")))).HuntOptimizerView)})]];class u extends d.ResizableWidget{constructor(){super(s.el.div({class:"application_MainContentView"})),this.tool_views=new Map(l.map(([e,t])=>[e,this.disposable(new a.LazyWidget(t))])),this.tool_changed=({value:e})=>{for(const e of this.tool_views.values())e.visible.val=!1;const t=this.tool_views.get(e);t&&(t.visible.val=!0)};for(const e of this.tool_views.values())this.element.append(e.element);const e=this.tool_views.get(r.gui_store.tool.val);e&&(e.visible.val=!0),this.disposable(r.gui_store.tool.observe(this.tool_changed)),this.finalize_construction(u.prototype)}resize(e,t){super.resize(e,t);for(const i of this.tool_views.values())i.resize(e,t);return this}}t.MainContentView=u},"4Mnx":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("lPzw"),o=i("bJO5"),s=i("xs7i"),r=i("aEXR"),a=i("SoCI");t.area_store=new class{constructor(){this.areas=[],this.get_areas_for_episode=e=>this.areas[e],this.get_area=(e,t)=>{const i=this.areas[e].find(e=>e.id===t);if(!i)throw new Error(`Area id ${t} for episode ${e} is invalid.`);return i},this.get_variant=(e,t,i)=>{const n=this.get_area(e,t).area_variants[i];if(!n)throw new Error(`Area variant id ${i} for area ${t} of episode ${e} is invalid.`);return n},this.get_area_sections=(e,t,i)=>r.load_area_sections(e,t,i);for(const e of s.EPISODES)this.areas[e]=a.get_areas_for_episode(e).map(e=>{const t=new n.AreaModel(e.id,e.name,e.order,[]);for(const i of e.area_variants)t.area_variants.push(new o.AreaVariantModel(i.id,t));return t})}}},"4SjJ":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),o=i("nsCy");var s;!function(e){e[e.Viewer=0]="Viewer",e[e.QuestEditor=1]="QuestEditor",e[e.HuntOptimizer=2]="HuntOptimizer"}(s=t.GuiTool||(t.GuiTool={}));const r=new Map([[s.Viewer,"viewer"],[s.QuestEditor,"quest_editor"],[s.HuntOptimizer,"hunt_optimizer"]]),a=new Map([...r.entries()].map(([e,t])=>[t,e]));t.gui_store=new class{constructor(){this.tool=n.property(s.Viewer),this._server=n.property(o.Server.Ephinea),this.hash_disposer=this.tool.observe(({value:e})=>{window.location.hash=`#/${function(e){const t=r.get(e);if(t)return t;throw new Error(`To string not implemented for ${s[e]}.`)}(e)}`}),this.global_keydown_handlers=new Map,this.dispatch_global_keydown=e=>{const t=[];e.ctrlKey&&t.push("Ctrl"),e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt"),t.push(e.key.toUpperCase());const i=t.join("-"),n=this.global_keydown_handlers.get(this.handler_key(this.tool.val,i));n&&(e.preventDefault(),n())};const e=window.location.hash.slice(2);this.tool.val=function(e){return a.get(e)}(e)||s.Viewer,this.server=this._server,window.addEventListener("keydown",this.dispatch_global_keydown)}dispose(){this.hash_disposer.dispose(),this.global_keydown_handlers.clear(),window.removeEventListener("keydown",this.dispatch_global_keydown)}on_global_keydown(e,t,i){const n=this.handler_key(e,t);return this.global_keydown_handlers.set(n,i),{dispose:()=>{this.global_keydown_handlers.delete(n)}}}handler_key(e,t){return`${s[e]} -> ${t}`}}},"4VsB":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("0CzU");t.WidgetProperty=class extends n.SimpleProperty{constructor(e,t,i){super(t),this.widget=e,this.set_value=i}set_val(e,t){this.set_value.call(this.widget,e),super.set_val(e,Object.assign({silent:!0},t))}}},"4mUz":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse_rel=function(e,t){e.seek_end(32);const i=e.u32(),n=e.u32();e.seek(8);const o=e.u32();return e.seek_start(i),{data_offset:o,index:t?function(e,t){const i=e.u16_array(t),n=[];let o=0;for(const t of i){o+=4*t,e.seek_start(o-4);const i=e.u32(),s=e.u32();n.push({offset:s,size:i})}return n}(e,n):[]}}},"4s8/":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ValueSet=class{constructor(){this.intervals=[]}size(){return this.intervals.reduce((e,t)=>e+t.end-t.start+1,0)}get(e){for(const{start:t,end:i}of this.intervals){const n=i-t+1;if(ethis.intervals[n].start;)e.end=this.intervals[n].end,n++;this.intervals.splice(t+1,n-t-1),e.end=Math.max(e.end,i.end),t++;continue e}t++}this.intervals.push(i)}return this}to_array(){let e=[];for(const{start:t,end:i}of this.intervals)for(let n=t;n<=i;n++)e.push(n);return e}[Symbol.iterator](){const e=this;let t=0,i=NaN;return{next(){let n=!0;return te.intervals[t].end?++te(m)),y=[],O=new Promise(e=>e(y)),b=new a.LoadingCache;b.set(w.NpcType.Unknown,g);const E=new a.LoadingCache;E.set(w.NpcType.Unknown,O);const S=new a.LoadingCache,R=new a.LoadingCache;for(const e of[h.ObjectType.Unknown,h.ObjectType.PlayerSet,h.ObjectType.FogCollision,h.ObjectType.EventCollision,h.ObjectType.ObjRoomID,h.ObjectType.ScriptCollision,h.ObjectType.ItemLight,h.ObjectType.FogCollisionSW,h.ObjectType.MenuActivation,h.ObjectType.BoxDetectObject,h.ObjectType.SymbolChatObject,h.ObjectType.TouchPlateObject,h.ObjectType.TargetableObject,h.ObjectType.EffectObject,h.ObjectType.CountDownObject,h.ObjectType.TelepipeLocation,h.ObjectType.Pioneer2InvisibleTouchplate,h.ObjectType.TempleMapDetect,h.ObjectType.LabInvisibleObject])S.set(e,g),R.set(e,O);function k(e,t){return n(this,void 0,void 0,function*(){const i=function e(t,i){switch(t){case w.NpcType.Dubswitch:return`/npcs/${w.NpcType[t]}.${i===P.Geometry?"xj":"xvm"}`;case w.NpcType.Hildebear2:return e(w.NpcType.Hildebear,i);case w.NpcType.Hildeblue2:return e(w.NpcType.Hildeblue,i);case w.NpcType.RagRappy2:return e(w.NpcType.RagRappy,i);case w.NpcType.Monest2:return e(w.NpcType.Monest,i);case w.NpcType.PoisonLily2:return e(w.NpcType.PoisonLily,i);case w.NpcType.NarLily2:return e(w.NpcType.NarLily,i);case w.NpcType.GrassAssassin2:return e(w.NpcType.GrassAssassin,i);case w.NpcType.Dimenian2:return e(w.NpcType.Dimenian,i);case w.NpcType.LaDimenian2:return e(w.NpcType.LaDimenian,i);case w.NpcType.SoDimenian2:return e(w.NpcType.SoDimenian,i);case w.NpcType.DarkBelra2:return e(w.NpcType.DarkBelra,i);case w.NpcType.SavageWolf2:return e(w.NpcType.SavageWolf,i);case w.NpcType.BarbarousWolf2:return e(w.NpcType.BarbarousWolf,i);case w.NpcType.PanArms2:return e(w.NpcType.PanArms,i);case w.NpcType.Dubchic2:return e(w.NpcType.Dubchic,i);case w.NpcType.Gilchic2:return e(w.NpcType.Gilchic,i);case w.NpcType.Garanz2:return e(w.NpcType.Garanz,i);case w.NpcType.Dubswitch2:return e(w.NpcType.Dubswitch,i);case w.NpcType.Delsaber2:return e(w.NpcType.Delsaber,i);case w.NpcType.ChaosSorcerer2:return e(w.NpcType.ChaosSorcerer,i);default:return`/npcs/${w.NpcType[t]}.${i===P.Geometry?"nj":"xvm"}`}}(e,t);return{url:i,data:yield v.load_array_buffer(i)}})}function N(e,t){return n(this,void 0,void 0,function*(){const i=function(e,t){if(t!==P.Geometry)return`/objects/${h.object_data(e).pso_id}.xvm`;switch(e){case h.ObjectType.EasterEgg:case h.ObjectType.ChristmasTree:case h.ObjectType.ChristmasWreath:case h.ObjectType.TwentyFirstCentury:case h.ObjectType.Sonic:case h.ObjectType.WelcomeBoard:case h.ObjectType.FloatingJelifish:case h.ObjectType.RuinsSeal:case h.ObjectType.Dolphin:case h.ObjectType.Cacti:case h.ObjectType.BigBrownRock:case h.ObjectType.PoisonPlant:case h.ObjectType.BigBlackRocks:case h.ObjectType.FallingRock:case h.ObjectType.DesertFixedTypeBoxBreakableCrystals:case h.ObjectType.BeeHive:return`/objects/${h.object_data(e).pso_id}.nj`;default:return`/objects/${h.object_data(e).pso_id}.xj`}}(e,t);return{url:i,data:yield v.load_array_buffer(i)}})}var P;t.load_npc_geometry=function(e){return n(this,void 0,void 0,function*(){return b.get_or_set(e,()=>n(this,void 0,void 0,function*(){try{const{url:t,data:i}=yield k(e,P.Geometry),n=new l.ArrayBufferCursor(i,d.Endianness.Little),o=t.endsWith(".nj")?c.parse_nj(n):c.parse_xj(n);return o.length?u.ninja_object_to_buffer_geometry(o[0]):(f.warn(`Couldn't parse ${t} for ${w.NpcType[e]}.`),m)}catch(t){return f.warn(`Couldn't load geometry file for ${w.NpcType[e]}.`,t),m}}))})},t.load_npc_textures=function(e){return n(this,void 0,void 0,function*(){return E.get_or_set(e,()=>n(this,void 0,void 0,function*(){try{const{data:t}=yield k(e,P.Texture),i=new l.ArrayBufferCursor(t,d.Endianness.Little),n=_.parse_xvm(i);return p.xvm_to_textures(n)}catch(t){return f.warn(`Couldn't load texture file for ${w.NpcType[e]}.`,t),y}}))})},t.load_object_geometry=function(e){return n(this,void 0,void 0,function*(){return S.get_or_set(e,()=>n(this,void 0,void 0,function*(){try{const{url:t,data:i}=yield N(e,P.Geometry),n=new l.ArrayBufferCursor(i,d.Endianness.Little),o=t.endsWith(".nj")?c.parse_nj(n):c.parse_xj(n);return o.length?u.ninja_object_to_buffer_geometry(o[0]):(f.warn(`Couldn't parse ${t} for ${h.ObjectType[e]}.`),m)}catch(t){return f.warn(`Couldn't load geometry file for ${h.ObjectType[e]}.`,t),m}}))})},t.load_object_textures=function(e){return n(this,void 0,void 0,function*(){return R.get_or_set(e,()=>n(this,void 0,void 0,function*(){try{const{data:t}=yield N(e,P.Texture),i=new l.ArrayBufferCursor(t,d.Endianness.Little),n=_.parse_xvm(i);return p.xvm_to_textures(n)}catch(t){return f.warn(`Couldn't load texture file for ${h.ObjectType[e]}.`,t),y}}))})},t.load_npc_data=k,t.load_object_data=N,function(e){e[e.Geometry=0]="Geometry",e[e.Texture=1]="Texture"}(P||(P={}))},"52VV":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("+LO4"),o=i("nEgy");class s extends n.AbstractMinimalProperty{constructor(e,t){super(),this.dependency=e,this.f=t}get val(){return this.get_val()}get_val(){return this.computed_property?this.computed_property.val:this.f(this.dependency.val).val}observe(e){const t=super.observe(e);return null==this.dependency_disposable&&(this.dependency_disposable=this.dependency.observe(()=>{const e=this.val;this.compute_and_observe(),this.emit(e)}),this.compute_and_observe()),this.emit(this.get_val()),{dispose:()=>{t.dispose(),0===this.observers.length&&(this.dependency_disposable.dispose(),this.dependency_disposable=void 0,this.computed_disposable.dispose(),this.computed_disposable=void 0,this.computed_property=void 0)}}}map(e){return new o.DependentProperty([this],()=>e(this.val))}flat_map(e){return new s(this,t=>e(t))}compute_and_observe(){this.computed_disposable&&this.computed_disposable.dispose(),this.computed_property=this.f(this.dependency.val);let e=this.computed_property.val;this.computed_disposable=this.computed_property.observe(()=>{const t=e;e=this.val,this.emit(t)})}}t.FlatMappedProperty=s},"5aKR":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid"),o=i("FXpb"),s=i("7ZX1");i("+BDF");class r extends n.Widget{constructor(e){super(o.el.div({class:"quest_editor_DisabledView"})),this.label=this.disposable(new s.Label(e,{enabled:!1})),this.element.append(this.label.element),this.finalize_construction(r.prototype)}}t.DisabledView=r},"6WXA":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("4SjJ"),s=i("LvDl"),r=i("M/y3");t.ServerMap=class{constructor(e){this.get_value=s.memoize(e)}get current(){return this._current||(this._current=o.gui_store.server.map(e=>this.get(e))),this._current}get(e){return this.get_value(e)}observe_current(e,t){const i=r.sequential(({value:t})=>n(this,void 0,void 0,function*(){return e(yield t)}));return this.current.observe(i,t)}}},"6cU9":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb");i("+Mcu"),i("Tp1L");const o=i("ouMO"),s=i("QmPX");class r extends s.Control{constructor(e,t){super(n.create_element("label",{class:"core_FileButton core_Button"}),t),this.input=n.create_element("input",{class:"core_FileButton_input core_Button_inner"}),this._files=o.property([]),this.files=this._files,this.input.type="file",this.input.onchange=()=>{this.input.files&&this.input.files.length?this._files.val=[...this.input.files]:this._files.val=[]},t&&t.accept&&(this.input.accept=t.accept);const i=n.el.span({class:"core_FileButton_inner core_Button_inner"});t&&null!=t.icon_left&&i.append(n.el.span({class:"core_FileButton_left core_Button_left"},n.icon(t.icon_left))),i.append(n.el.span({class:"core_Button_center",text:e})),this.element.append(i,this.input),this.disposables(this.enabled.observe(({value:e})=>{this.input.disabled=!e,e?this.element.classList.remove("disabled"):this.element.classList.add("disabled")})),this.finalize_construction(r.prototype)}click(){this.input.click()}}t.FileButton=r},"70mo":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),o=i("Ts/k"),s=i("n5fr"),r=i("GGSb").get("core/undo/UndoStack");t.UndoStack=class{constructor(){this.stack=n.list_property(),this.index=n.property(0),this.can_undo=this.index.map(e=>e>0),this.can_redo=n.map((e,t)=>te?this.stack.get(this.index.val-1):void 0),this.first_redo=this.can_redo.map(e=>e?this.stack.get(this.index.val):void 0),this.undoing_or_redoing=!1}make_current(){s.undo_manager.current.val=this}ensure_not_current(){s.undo_manager.current.val===this&&(s.undo_manager.current.val=o.NOOP_UNDO)}push(e){return this.undoing_or_redoing||(this.stack.splice(this.index.val,1/0,e),this.index.update(e=>e+1)),e}pop(){return this.index.update(e=>e-1),this.stack.splice(this.index.val,1)[0]}undo(){if(this.can_undo.val&&!this.undoing_or_redoing){try{this.undoing_or_redoing=!0,this.index.update(e=>e-1),this.stack.get(this.index.val).undo()}catch(e){r.warn("Error while undoing action.",e)}finally{this.undoing_or_redoing=!1}return!0}return!1}redo(){if(this.can_redo.val&&!this.undoing_or_redoing){try{this.undoing_or_redoing=!0,this.stack.get(this.index.val).redo(),this.index.update(e=>e+1)}catch(e){r.warn("Error while redoing action.",e)}finally{this.undoing_or_redoing=!1}return!0}return!1}reset(){this.stack.clear(),this.index.val=0}}},"7CyS":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=i("VwSi");t.PSO_FRAME_RATE=30,t.create_animation_clip=function(e,i){const s=i.interpolation===o.NjInterpolation.Spline?n.InterpolateSmooth:n.InterpolateLinear,r=[];return i.motion_data.forEach((i,a)=>{const d=e.get_bone(a);d&&i.tracks.forEach(({type:e,keyframes:i})=>{const l=[],u=[];for(const s of i)if(l.push(s.frame/t.PSO_FRAME_RATE),e===o.NjKeyframeTrackType.Rotation){const e=d.evaluation_flags.zxy_rotation_order?"ZXY":"ZYX",t=(new n.Quaternion).setFromEuler(new n.Euler(s.value.x,s.value.y,s.value.z,e));u.push(t.x,t.y,t.z,t.w)}else u.push(s.value.x,s.value.y,s.value.z);if(e===o.NjKeyframeTrackType.Rotation)r.push(new n.QuaternionKeyframeTrack(`.bones[${a}].quaternion`,l,u,s));else{const t=e===o.NjKeyframeTrackType.Position?`.bones[${a}].position`:`.bones[${a}].scale`;r.push(new n.VectorKeyframeTrack(t,l,u,s))}})}),new n.AnimationClip("Animation",(i.frame_count-1)/t.PSO_FRAME_RATE,r).optimize()}},"7ZX1":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid"),o=i("FXpb");i("ku4b");const s=i("4VsB");class r extends n.Widget{constructor(e,t){super(o.create_element("label",{class:"core_Label"}),t),this._text=new s.WidgetProperty(this,"",this.set_text),this.text=this._text,"string"==typeof e?this.set_text(e):this.disposable(this._text.bind_to(e)),this.finalize_construction(r.prototype)}set for(e){this.element.htmlFor=e}set_text(e){this.element.textContent=e}}t.Label=r},"8hIv":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new DataView(new ArrayBuffer(4));t.reinterpret_i32_as_f32=function(e){return n.setInt32(0,e),n.getFloat32(0)},t.reinterpret_f32_as_i32=function(e){return n.setFloat32(0,e),n.getInt32(0)}},"9Onn":function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("yRp4"),r=o.default.get("data_formats/parsing/ninja/njcm");var a;function d(e,t,i){const n=[];let o=!0;for(;o;){const s=e.u8(),c=e.u8(),_=e.position;let p=0;if(0===s)n.push({type:a.Null,type_id:s});else if(1<=s&&s<=3)n.push({type:a.Bits,type_id:s});else if(4===s){const i=c,r=e.position;n.push({type:a.CachePolygonList,type_id:s,cache_index:i,offset:r}),t[i]=r,o=!1}else if(5===s){const o=c,r=t[o];null!=r&&(e.seek_start(r),n.push(...d(e,t,i))),n.push({type:a.DrawPolygonList,type_id:s,cache_index:o})}else if(8<=s&&s<=9){p=2;const t=e.u16();n.push({type:a.Tiny,type_id:s,flip_u:0!=(128&s),flip_v:0!=(64&s),clamp_u:0!=(32&s),clamp_v:0!=(16&s),mipmap_d_adjust:15&s,filter_mode:t>>>14,super_sample:0!=(64&t),texture_id:8191&t})}else 17<=s&&s<=31?(p=2+2*e.u16(),n.push({type:a.Material,type_id:s})):32<=s&&s<=50?(p=2+4*e.u16(),n.push({type:a.Vertex,type_id:s,vertices:l(e,s,c)})):56<=s&&s<=58?(p=2+2*e.u16(),n.push({type:a.Volume,type_id:s})):64<=s&&s<=75?(p=2+2*e.u16(),n.push({type:a.Strip,type_id:s,triangle_strips:u(e,s,c)})):255===s?(p=i?2:0,n.push({type:a.End,type_id:s}),o=!1):(p=2+2*e.u16(),n.push({type:a.Unknown,type_id:s}),r.warn(`Unknown chunk type ${s} at offset ${_}.`));e.seek_start(_+p)}return n}function l(e,t,i){if(t<32||t>50)return r.warn(`Unknown vertex chunk type ${t}.`),[];const n=3&i,o=0!=(128&i),a=e.u16(),d=e.u16(),l=[];for(let i=0;i=42&&(44===t?(r.index=a+e.u16(),r.bone_weight=e.u16()/255):e.seek(4));else if(48<=t&&t<=50){const i=e.u32();r.normal=new s.Vec3((i>>20&1023)/1023,(i>>10&1023)/1023,(1023&i)/1023),t>=49&&e.seek(4)}l.push(r)}return l}function u(e,t,i){const n={ignore_light:0!=(1&i),ignore_specular:0!=(2&i),ignore_ambient:0!=(4&i),use_alpha:0!=(8&i),double_side:0!=(16&i),flat_shading:0!=(32&i),environment_mapping:0!=(64&i)},o=e.u16(),r=o>>>14,a=16383&o;let d=!1,l=!1,u=!1,c=!1;switch(t){case 64:break;case 65:case 66:d=!0;break;case 67:u=!0;break;case 68:case 69:d=!0,u=!0;break;case 70:l=!0;break;case 71:case 72:d=!0,l=!0;break;case 73:break;case 74:case 75:c=!0;break;default:throw new Error(`Unexpected chunk type ID: ${t}.`)}const _=[];for(let t=0;t=2&&e.seek(2*r)}_.push(Object.assign({},n,{clockwise_winding:i,has_tex_coords:d,has_normal:u,vertices:a}))}return _}!function(e){e[e.Unknown=0]="Unknown",e[e.Null=1]="Null",e[e.Bits=2]="Bits",e[e.CachePolygonList=3]="CachePolygonList",e[e.DrawPolygonList=4]="DrawPolygonList",e[e.Tiny=5]="Tiny",e[e.Material=6]="Material",e[e.Vertex=7]="Vertex",e[e.Volume=8]="Volume",e[e.Strip=9]="Strip",e[e.End=10]="End"}(a||(a={})),t.parse_njcm_model=function(e,t){const i=e.u32(),n=e.u32(),o=e.vec3_f32(),s=e.f32(),r=[],l=[];if(i){e.seek_start(i);for(const i of d(e,t,!0))if(i.type===a.Vertex)for(const e of i.vertices)r[e.index]={position:e.position,normal:e.normal,bone_weight:e.bone_weight,bone_weight_status:e.bone_weight_status,calc_continue:e.calc_continue}}if(n){let i;e.seek_start(n);for(const n of d(e,t,!1))if(n.type===a.Tiny)i=n.texture_id;else if(n.type===a.Strip){for(const e of n.triangle_strips)e.texture_id=i;l.push(...n.triangle_strips)}}return{type:"njcm",vertices:r,meshes:l,collision_sphere_center:o,collision_sphere_radius:s}}},"9Ykw":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse_iff=function(e){const t=[];for(;e.bytes_left;){const i=e.u32(),n=e.u32();if(n>e.bytes_left)break;t.push({type:i,data:e.take(n)})}return t}},"9dYx":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("GuD3");t.AbstractWritableCursor=class extends n.AbstractCursor{write_u8(e){return this.ensure_size(1),this.dv.setUint8(this._position++,e),this}write_u16(e){return this.ensure_size(2),this.dv.setUint16(this.position,e,this.little_endian),this._position+=2,this}write_u32(e){return this.ensure_size(4),this.dv.setUint32(this.position,e,this.little_endian),this._position+=4,this}write_i8(e){return this.ensure_size(1),this.dv.setInt8(this.position,e),this._position+=1,this}write_i16(e){return this.ensure_size(2),this.dv.setInt16(this.position,e,this.little_endian),this._position+=2,this}write_i32(e){return this.ensure_size(4),this.dv.setInt32(this.position,e,this.little_endian),this._position+=4,this}write_f32(e){return this.ensure_size(4),this.dv.setFloat32(this.position,e,this.little_endian),this._position+=4,this}write_u8_array(e){return this.ensure_size(e.length),new Uint8Array(this.backing_buffer,this.offset+this.position).set(new Uint8Array(e)),this._position+=e.length,this}write_u16_array(e){this.ensure_size(2*e.length);const t=e.length;for(let i=0;ithis.bytes_left)throw new Error(`${e} Bytes required but only ${this.bytes_left} available.`)}}},"9fJw":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CharacterClassModel=class{constructor(e,t,i,n){this.name=e,this.head_style_count=t,this.hair_styles_count=i,this.hair_styles_with_accessory=n}}},"AF+w":function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("bcBH"),r=i("NRxM"),a=i("/Wax"),d=i("tjEv"),l=o.default.get("core/data_formats/parsing/quest/qst");function u(e,t,i,n){e.write_u8_array([28,4,19,0]),e.write_u8(i),e.write_u8_array([0,0,0]),e.write_string_ascii(n,16);const o=Math.min(1024,t.bytes_left);e.write_cursor(t.take(o));for(let t=o;t<1024;++t)e.write_u8(0);return e.write_u32(o),e.write_u32(0),t.bytes_left>0}t.parse_qst=function(e){let t="PC";const i=e.u8();e.seek(1);const n=e.u8();if(68===i?t="Dreamcast/GameCube":88===i?68===n&&(t="Blue Burst"):166===i&&(t="Dreamcast download"),"Blue Burst"===t){e.seek_start(0);const i=function(e){const t=[];let i,n;for(let o=0;o<4;++o){e.seek(4);const o=e.u16();e.seek(38);const s=e.string_ascii(16,!0,!0),r=e.u32(),a=e.string_ascii(24,!0,!0);if(null!=i&&null!=n&&(o!==i||s.slice(0,5)!==n.slice(0,5))){e.seek(-88);break}i=o,n=s,t.push({quest_id:o,file_name:s,file_name_2:a,size:r})}return t}(e),n=function(e,t){const i=new Map;for(;e.bytes_left>=1056;){const n=e.position,o=e.seek(4).u8(),r=e.seek(3).string_ascii(16,!0,!0);let u=i.get(r);if(!u){const e=t.get(r);i.set(r,u={name:r,expected_size:e,cursor:new a.ResizableBufferCursor(new d.ResizableBuffer(e||10240),s.Endianness.Little),chunk_nos:new Set})}u.chunk_nos.has(o)?l.warn(`File chunk number ${o} of file ${r} was already encountered, overwriting previous chunk.`):u.chunk_nos.add(o);let c=e.seek(1024).u32();e.seek(-1028),c>1024&&(l.warn(`Data segment size of ${c} is larger than expected maximum size, reading just 1024 bytes.`),c=1024);const _=e.take(c),p=1024*o;if(u.cursor.size=Math.max(p+c,u.cursor.size),u.cursor.seek_start(p).write_cursor(_),e.seek(1032-_.size),e.position!==n+1056)throw new Error(`Read ${e.position-n} file chunk message bytes instead of expected 1056.`)}e.bytes_left&&l.warn(`${e.bytes_left} Bytes left in file.`);for(const e of i.values()){e.cursor.seek_start(0),e.chunk_nos=new Set(Array.from(e.chunk_nos.values()).sort((e,t)=>e-t)),null!=e.expected_size&&e.cursor.size!==e.expected_size&&l.warn(`File ${e.name} has an actual size of ${e.cursor.size} instead of the expected size ${e.expected_size}.`);const t=Math.max(e.cursor.size,e.expected_size||0);for(let i=0;i[e.file_name,e.size])));for(const e of n){const t=i.find(t=>t.file_name===e.name);t&&(e.id=t.quest_id,e.name_2=t.file_name_2)}return{version:t,files:n}}l.error(`Can't parse ${t} QST files.`)},t.write_qst=function(e){const t=e.files,i=t.map(e=>88+1056*Math.ceil(e.data.byteLength/1024)).reduce((e,t)=>e+t),n=new ArrayBuffer(i),o=new r.ArrayBufferCursor(n,s.Endianness.Little);if(function(e,t){for(const i of t){if(i.name.length>15)throw new Error(`File ${i.name} has a name longer than 15 characters.`);e.write_u16(88),e.write_u16(68),e.write_u16(i.id||0);for(let t=0;t<38;++t)e.write_u8(0);let t;if(e.write_string_ascii(i.name,16),e.write_u32(i.data.byteLength),null==i.name_2){const e=i.name.lastIndexOf(".");t=-1===e?i.name+"_j":i.name.slice(0,e)+"_j"+i.name.slice(e)}else t=i.name_2;if(t.length>24)throw Error(`File ${i.name} has a file_name_2 length (${t}) longer than 24 characters.`);e.write_string_ascii(t,24)}}(o,t),function(e,t){const i=t.map(e=>({no:0,data:new r.ArrayBufferCursor(e.data,s.Endianness.Little),name:e.name}));let n=0;for(;ne.value);break;case n.Opcode.CALL:case n.Opcode.VA_CALL:u=o.Call,c=[l.args[0].value];break;case n.Opcode.SWITCH_CALL:u=o.Call,c=l.args.slice(1).map(e=>e.value);break;default:if(d===i-1){u=o.None,c=[];break}continue}const _=new s(t,r,d+1,u,c);for(let t=_.start;t<_.end;t++)e.instructions_to_block.set(_.segment.instructions[t],_);if(e.blocks.push(_),a){for(const i of t.labels)e.labels_to_block.set(i,_);a=!1}r=d+1}}static link_blocks(e){const t=[];for(let i=0;i100)return a.warn("Too many iterations."),(new r.ValueSet).set_interval(t.MIN_REGISTER_VALUE,t.MAX_REGISTER_VALUE);for(let a=d-1;a>=o.start;a--){const d=o.segment.instructions[a],u=d.args;switch(d.opcode){case s.Opcode.LET:if(u[0].value===l)return e(i,new Set(n),o,a,u[1].value);break;case s.Opcode.LETI:case s.Opcode.LETB:case s.Opcode.LETW:case s.Opcode.SYNC_LETI:if(u[0].value===l)return(new r.ValueSet).set_value(u[1].value);break;case s.Opcode.SET:if(u[0].value===l)return(new r.ValueSet).set_value(1);break;case s.Opcode.CLEAR:if(u[0].value===l)return(new r.ValueSet).set_value(0);break;case s.Opcode.REV:if(u[0].value===l){const t=e(i,new Set(n),o,a,l),s=t.size();return 0===s||1===s&&0===t.get(0)?(new r.ValueSet).set_value(1):t.has(0)?(new r.ValueSet).set_interval(0,1):(new r.ValueSet).set_value(0)}break;case s.Opcode.ADDI:if(u[0].value===l){const t=e(i,new Set(n),o,a,l);return t.scalar_add(u[1].value)}break;case s.Opcode.SUBI:if(u[0].value===l){const t=e(i,new Set(n),o,a,l);return t.scalar_sub(u[1].value)}break;case s.Opcode.MULI:if(u[0].value===l){const t=e(i,new Set(n),o,a,l);return t.scalar_mul(u[1].value)}break;case s.Opcode.DIVI:if(u[0].value===l){const t=e(i,new Set(n),o,a,l);return t.scalar_div(u[1].value)}break;case s.Opcode.IF_ZONE_CLEAR:if(u[0].value===l)return(new r.ValueSet).set_interval(0,1);break;case s.Opcode.GET_DIFFLVL:if(u[0].value===l)return(new r.ValueSet).set_interval(0,2);break;case s.Opcode.GET_SLOTNUMBER:if(u[0].value===l)return(new r.ValueSet).set_interval(0,3);break;case s.Opcode.GET_RANDOM:if(u[1].value===l){const t=e(i,new Set(n),o,a,u[0].value).min()||0,s=Math.max(e(i,new Set(n),o,a,u[0].value+1).max()||0,t+1);return(new r.ValueSet).set_interval(t,s-1)}break;case s.Opcode.STACK_PUSHM:case s.Opcode.STACK_POPM:{const e=u[0].value,i=u[0].value+u[1].value;if(e<=l&&l{this.editor.trigger(e,"undo",void 0)}),r.asm_editor_store.did_redo.observe(({value:e})=>{this.editor.trigger(e,"redo",void 0)}),r.asm_editor_store.model.observe(({value:e})=>{this.editor.updateOptions({readOnly:null==e}),this.editor.setModel(e||a)},{call_now:!0}),this.editor.onDidFocusEditorWidget(()=>r.asm_editor_store.undo.make_current())),this.finalize_construction(d.prototype)}focus(){this.editor.focus()}resize(e,t){return this.editor.layout({width:e,height:t}),this}}t.AsmEditorView=d},DixV:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("bcBH"),r=i("AU7j"),a=i("CUby"),d=i("JQxC"),l=i("lg9k"),u=i("ZPAt"),c=i("NRxM"),_=i("/Wax"),p=i("tjEv"),v=o.default.get("data_formats/parsing/quest/bin");class h{constructor(e,t,i,n,o,s,r){this.quest_id=e,this.language=t,this.quest_name=i,this.short_description=n,this.long_description=o,this.object_code=s,this.shop_items=r}}t.BinFile=h;const w=[];w[l.SegmentType.Instructions]=2,w[l.SegmentType.String]=1,w[l.SegmentType.Data]=0,t.parse_bin=function(e,t=[0],i=!1){const n=e.u32(),o=e.u32(),s=e.u32();e.seek(4);const d=e.u32(),c=e.u32(),_=e.string_utf16(64,!0,!0),p=e.string_utf16(256,!0,!0),w=e.string_utf16(576,!0,!0);s!==e.size&&v.warn(`Value ${s} in bin size field does not match actual size ${e.size}.`),e.seek(4);const O=e.u32_array(932),b=Math.floor((e.size-o)/4);e.seek_start(o);const E=e.i32_array(b),S=new f(E),R=function(e,t,i,n){const o=new Map;!function(e,t,i,n,o){let s;do{s=n.size;for(const[s,r]of i)g(n,t,e,s,r,o);const d=[...n.entries()].filter(([,e])=>e.type===l.SegmentType.Instructions).sort(([e],[t])=>e-t).map(([,e])=>e),c=r.ControlFlowGraph.create(d);i=new Map;for(const e of d)for(const t of e.instructions)for(let e=0;es)}(e,t,i.reduce((e,t)=>e.set(t,l.SegmentType.Instructions),new Map),o,n);const s=[];let d=0;for(;dd){s=e.offset;break}}if(e.seek_start(d),y(o,e,s,n||[]),i=o.get(d),s<=d){v.error(`Next offset ${s} was smaller than or equal to current offset ${d}.`);break}if(!i){v.error(`Couldn't create segment for offset ${d}.`);continue}}switch(s.push(i),i.type){case l.SegmentType.Instructions:for(const e of i.instructions)d+=e.size;break;case l.SegmentType.Data:d+=i.data.byteLength;break;case l.SegmentType.String:d+=4*Math.ceil((i.value.length+1)/2);break;default:throw new Error(`${l.SegmentType[i.type]} not implemented.`)}}for(const{label:e,offset:i}of t.labels){const t=o.get(i);t?t.labels.includes(e)||(t.labels.push(e),t.labels.sort((e,t)=>e-t)):v.warn(`Label ${e} with offset ${i} does not point to anything.`)}if(e.size!==d){const t=`Expected to parse ${e.size} bytes but parsed ${d} instead.`;if(!n)throw new Error(t);v.error(t)}return s}(e.seek_start(n).take(o-n),S,t,i);return new h(d,c,_,p,w,R,O)},t.write_bin=function(e){const t=new p.ResizableBuffer(4652+100*e.object_code.length),i=new _.ResizableBufferCursor(t,s.Endianness.Little);if(i.write_u32(4652),i.write_u32(0),i.write_u32(0),i.write_u32(4294967295),i.write_u32(e.quest_id),i.write_u32(e.language),i.write_string_utf16(e.quest_name,64),i.write_string_utf16(e.short_description,256),i.write_string_utf16(e.long_description,576),i.write_u32(0),e.shop_items.length>932)throw new Error(`shop_items can't be larger than 932, was ${e.shop_items.length}.`);i.write_u32_array(e.shop_items);for(let t=e.shop_items.length;t<932;t++)i.write_u32(0);for(;i.position<4652;)i.write_u8(0);const{size:n,label_offsets:o}=function(e,t){const i=e.position,n=[];for(const o of t){for(const t of o.labels)n[t]=e.position-i;if(o.type===l.SegmentType.Instructions)for(const t of o.instructions){const i=t.opcode;if(2===i.size&&e.write_u8(i.code>>>8),e.write_u8(255&i.code),i.stack!==u.StackInteraction.Pop)for(let n=0;n=0?e.write_u8(r.value):e.write_i8(r.value);break;case u.Kind.Word:r.value>=0?e.write_u16(r.value):e.write_i16(r.value);break;case u.Kind.DWord:r.value>=0?e.write_u32(r.value):e.write_i32(r.value);break;case u.Kind.Float:e.write_f32(r.value);break;case u.Kind.Label:case u.Kind.ILabel:case u.Kind.DLabel:case u.Kind.SLabel:e.write_u16(r.value);break;case u.Kind.String:e.write_string_utf16(r.value,r.size);break;case u.Kind.ILabelVar:e.write_u8(s.length),e.write_u16_array(s.map(e=>e.value));break;case u.Kind.RegRef:case u.Kind.RegTupRef:e.write_u8(r.value);break;case u.Kind.RegRefVar:e.write_u8(s.length),e.write_u8_array(s.map(e=>e.value));break;default:throw new Error(`Parameter type ${u.Kind[o.type.kind]} not implemented.`)}}}else if(o.type===l.SegmentType.String){const t=4*Math.ceil((o.value.length+1)/2);e.write_string_utf16(o.value,t)}else e.write_cursor(new c.ArrayBufferCursor(o.data,e.endianness))}return{size:e.position-i,label_offsets:n}}(i,e.object_code);for(let e=0;ee.offset-t.offset||e.label-t.label);for(let e=0;et.offset);e++)i=void 0;return{offset:t.offset,next:i}}}function m(e,t,i,n,o){if(i.opcode.stack===u.StackInteraction.Pop){const s=d.stack_value(e,i,i.opcode.params.length-n-1);if(s.size()<=10)for(const e of s){const i=t.get(e);(null==i||w[o]>w[i])&&t.set(e,o)}}else{const e=i.args[n].value,s=t.get(e);(null==s||w[o]>w[s])&&t.set(e,o)}}function g(e,t,i,n,o,s){try{const r=t.get_info(n);if(null==r)return void v.warn(`Label ${n} is not registered in the label table.`);let a,d=e.get(r.offset);if(d){if(d.labels.includes(n)||(d.labels.push(n),d.labels.sort((e,t)=>e-t)),!(w[o]>w[d.type]))return;a=d.labels}else a=[n];const c=r.next?r.next.offset:i.size;switch(i.seek_start(r.offset),o){case l.SegmentType.Instructions:!function(e,t,i,n,o,s,r){const a=[],d={type:l.SegmentType.Instructions,labels:o,instructions:a};e.set(i.position,d);for(;i.position=0;e--){const t=a[e].opcode;if(t===u.Opcode.RET||t===u.Opcode.JMP){n=!1;break}}n&&g(e,t,i,s,l.SegmentType.Instructions,r)}}(e,t,i,c,a,r.next&&r.next.label,s);break;case l.SegmentType.Data:y(e,i,c,a);break;case l.SegmentType.String:!function(e,t,i,n){const o=t.position,s={type:l.SegmentType.String,labels:n,value:t.string_utf16(i-o,!0,!0)};e.set(o,s)}(e,i,c,a);break;default:throw new Error(`Segment type ${l.SegmentType[o]} not implemented.`)}}catch(e){if(!s)throw e;v.error("Couldn't fully parse object code segment.",e)}}function y(e,t,i,n){const o=t.position,s={type:l.SegmentType.Data,labels:n,data:t.array_buffer(i-o)};e.set(o,s)}function O(e,t){const i=[];if(t.stack!==u.StackInteraction.Pop)for(const n of t.params)switch(n.type.kind){case u.Kind.Byte:i.push({value:e.u8(),size:1});break;case u.Kind.Word:i.push({value:e.u16(),size:2});break;case u.Kind.DWord:i.push({value:e.i32(),size:4});break;case u.Kind.Float:i.push({value:e.f32(),size:4});break;case u.Kind.Label:case u.Kind.ILabel:case u.Kind.DLabel:case u.Kind.SLabel:i.push({value:e.u16(),size:2});break;case u.Kind.String:{const t=e.position;i.push({value:e.string_utf16(Math.min(4096,e.bytes_left),!0,!1),size:e.position-t})}break;case u.Kind.ILabelVar:{const t=e.u8();i.push(...e.u16_array(t).map(e=>({value:e,size:2})))}break;case u.Kind.RegRef:case u.Kind.RegTupRef:i.push({value:e.u8(),size:1});break;case u.Kind.RegRefVar:{const t=e.u8();i.push(...e.u8_array(t).map(e=>({value:e,size:1})))}break;default:throw new Error(`Parameter type ${u.Kind[n.type.kind]} not implemented.`)}return i}},DuVK:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("LvDl"),r=i("bcBH"),a=i("/Wax"),d=i("tjEv"),l=i("yRp4"),u=o.default.get("data_formats/parsing/quest/dat"),c=68,_=72;t.parse_dat=function(e){const t=[],i=[],n=[];for(;e.bytes_left;){const o=e.u32(),s=e.u32(),r=e.u32(),a=e.u32();if(0===o)break;if(a!==s-16)throw Error(`Malformed DAT file. Expected an entities size of ${s-16}, got ${a}.`);if(1===o){const i=Math.floor(a/c),n=e.position;for(let n=0;ne+t.total_size,0)),o=new a.ResizableBufferCursor(n,r.Endianness.Little),l=s.groupBy(e,e=>e.area_id),u=Object.keys(l).map(e=>parseInt(e,10)).sort((e,t)=>e-t);for(const e of u){const t=l[e],i=t.length*c;o.write_u32(1),o.write_u32(i+16),o.write_u32(e),o.write_u32(i);for(const e of t){if(2!==e.unknown.length)throw new Error(`unknown should be of length 2, was ${e.unknown.length}`);if(o.write_u16(e.type_id),6!==e.unknown[0].length)throw new Error(`unknown[0] should be of length 6, was ${e.unknown[0].length}`);if(o.write_u8_array(e.unknown[0]),o.write_u16(e.id),o.write_u16(e.group_id),o.write_u16(e.section_id),2!==e.unknown[1].length)throw new Error(`unknown[1] should be of length 2, was ${e.unknown[1].length}`);if(o.write_u8_array(e.unknown[1]),o.write_vec3_f32(e.position),o.write_i32(Math.round(e.rotation.x/(2*Math.PI)*65535)),o.write_i32(Math.round(e.rotation.y/(2*Math.PI)*65535)),o.write_i32(Math.round(e.rotation.z/(2*Math.PI)*65535)),7!==e.properties.length)throw new Error(`properties should be of length 7, was ${e.properties.length}`);o.write_f32(e.properties[0]),o.write_f32(e.properties[1]),o.write_f32(e.properties[2]),o.write_u32(e.properties[3]),o.write_u32(e.properties[4]),o.write_u32(e.properties[5]),o.write_u32(e.properties[6])}}const p=s.groupBy(t,e=>e.area_id),v=Object.keys(p).map(e=>parseInt(e,10)).sort((e,t)=>e-t);for(const e of v){const t=p[e],i=t.length*_;o.write_u32(2),o.write_u32(i+16),o.write_u32(e),o.write_u32(i);for(const e of t){if(3!==e.unknown.length)throw new Error(`unknown should be of length 3, was ${e.unknown.length}`);if(o.write_u16(e.type_id),10!==e.unknown[0].length)throw new Error(`unknown[0] should be of length 10, was ${e.unknown[0].length}`);if(o.write_u8_array(e.unknown[0]),o.write_u16(e.section_id),6!==e.unknown[1].length)throw new Error(`unknown[1] should be of length 6, was ${e.unknown[1].length}`);if(o.write_u8_array(e.unknown[1]),o.write_vec3_f32(e.position),o.write_i32(Math.round(e.rotation.x/(2*Math.PI)*65535)),o.write_i32(Math.round(e.rotation.y/(2*Math.PI)*65535)),o.write_i32(Math.round(e.rotation.z/(2*Math.PI)*65535)),o.write_vec3_f32(e.scale),o.write_f32(e.npc_id),o.write_f32(e.script_label),o.write_u32(e.roaming),4!==e.unknown[2].length)throw new Error(`unknown[2] should be of length 4, was ${e.unknown[2].length}`);o.write_u8_array(e.unknown[2])}}for(const e of i)o.write_u32(e.entity_type),o.write_u32(e.total_size),o.write_u32(e.area_id),o.write_u32(e.entities_size),o.write_u8_array(e.data);return o.write_u32(0),o.write_u32(0),o.write_u32(0),o.write_u32(0),n}},"E/0a":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("0Xme");class o extends n.Input{constructor(e="",t){if(super(e,"core_TextInput","text","core_TextInput_inner",t),this.preferred_label_position="left",t){const{max_length:e}=t;this.set_attr("maxLength",e)}this.set_value(e),this.finalize_construction(o.prototype)}get_value(){return this.input_element.value}set_value(e){this.input_element.value=e}}t.TextInput=o},ETgL:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("sDu+"),o=i("FXpb");i("C5oP");const s=i("4VsB");class r extends n.LabelledControl{constructor(e="",t){super(o.el.div({class:"core_TextArea"}),t),this.preferred_label_position="left",this.text_element=o.el.textarea({class:"core_TextArea_inner"}),this._value=new s.WidgetProperty(this,"",this.set_value),t&&(null!=t.max_length&&(this.text_element.maxLength=t.max_length),null!=t.font_family&&(this.text_element.style.fontFamily=t.font_family),null!=t.rows&&(this.text_element.rows=t.rows),null!=t.cols&&(this.text_element.cols=t.cols)),this.value=this._value,this.set_value(e),this.text_element.onchange=()=>this._value.set_val(this.text_element.value,{silent:!1}),this.element.append(this.text_element),this.finalize_construction(r.prototype)}set_value(e){this.text_element.value=e}}t.TextArea=r},Eqai:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=new n.MeshLambertMaterial({color:65280,side:n.DoubleSide}),s=new n.MeshLambertMaterial({color:16711935,side:n.DoubleSide}),r=new n.MeshLambertMaterial({skinning:!0,color:16711935,side:n.DoubleSide});function a(e,t,i,s){const{created_by_geometry_builder:r,normalized_material_indices:a,bones:d}=e.userData;let l;if(Array.isArray(t))if(r){l=[o];for(const[e,n]of a.entries())n>0&&(l[n]=t[e]||i)}else l=t;else l=t||i;const u=new s(e,l);return r&&d.length&&u instanceof n.SkinnedMesh&&(u.add(d[0]),u.bind(new n.Skeleton(d))),u}t.create_mesh=function(e,t,i=s){return a(e,t,i,n.Mesh)},t.create_skinned_mesh=function(e,t,i=r){return a(e,t,i,n.SkinnedMesh)}},F0Xh:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb"),o=i("nN8q");i("bknw");class s extends o.ResizableWidget{constructor(){super(n.el.div({class:"hunt_optimizer_HelpView"},n.el.p({text:"Add some items with the combo box on the left to see the optimal combination of hunt methods on the right."}),n.el.p({text:'At the moment a hunt method is simply a quest run-through. Partial quest run-throughs are coming. View the list of methods on the "Methods" tab. Each method takes a certain amount of time, which affects the optimization result. Make sure the times are correct for you.'}),n.el.p({text:"Only enemy drops are considered. Box drops are coming."}),n.el.p({text:"The optimal result is calculated using linear optimization. The optimizer takes into account rare enemies and the fact that pan arms can be split in two."}))),this.finalize_construction(s.prototype)}}t.HelpView=s},FNQV:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nN8q"),o=i("FXpb"),s=i("If1w");i("l8iQ");const r=i("WJtm");class a extends n.ResizableWidget{constructor(){super(o.el.div({class:"hunt_optimizer_OptimizerView"})),this.element.append(this.disposable(new s.WantedItemsView).element,this.disposable(new r.OptimizationResultView).element),this.finalize_construction(a.prototype)}}t.OptimizerView=a},FXpb:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("jJhE"),o=i("nsCy");function s(e,t,...i){const n=document.createElement(e);if(t){if(t.class&&(n.className=t.class),t.text&&(n.textContent=t.text),t.title&&(n.title=t.title),t.href&&(n.href=t.href),t.data)for(const[e,i]of Object.entries(t.data))n.dataset[e]=i;t.col_span&&(n.colSpan=t.col_span),t.tab_index&&(n.tabIndex=t.tab_index)}return n.append(...i),n}var r;t.el={div:(e,...t)=>s("div",e,...t),span:(e,...t)=>s("span",e,...t),h2:(e,...t)=>s("h2",e,...t),p:(e,...t)=>s("p",e,...t),a:(e,...t)=>{const i=s("a",e,...t);return e&&e.href&&e.href.trimLeft().startsWith("http")&&(i.target="_blank",i.rel="noopener noreferrer"),i},table:(e,...t)=>s("table",e,...t),thead:(e,...t)=>s("thead",e,...t),tbody:(e,...t)=>s("tbody",e,...t),tfoot:(e,...t)=>s("tfoot",e,...t),tr:(e,...t)=>s("tr",e,...t),th:(e,...t)=>s("th",e,...t),td:(e,...t)=>s("td",e,...t),button:(e,...t)=>s("button",e,...t),textarea:(e,...t)=>s("textarea",e,...t)},t.create_element=s,t.bind_hidden=function(e,t){return n.is_property(t)&&(e.hidden=t.val),t.observe(({value:t})=>e.hidden=t)},function(e){e[e.File=0]="File",e[e.NewFile=1]="NewFile",e[e.Save=2]="Save",e[e.TriangleUp=3]="TriangleUp",e[e.TriangleDown=4]="TriangleDown",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo",e[e.Remove=7]="Remove",e[e.GitHub=8]="GitHub"}(r=t.Icon||(t.Icon={})),t.icon=function(e){let i;switch(e){case r.File:i="fas fa-file";break;case r.NewFile:i="fas fa-file-medical";break;case r.Save:i="fas fa-save";break;case r.TriangleUp:i="fas fa-caret-up";break;case r.TriangleDown:i="fas fa-caret-down";break;case r.Undo:i="fas fa-undo";break;case r.Redo:i="fas fa-redo";break;case r.Remove:i="fas fa-trash-alt";break;case r.GitHub:i="fab fa-github"}return t.el.span({class:i})},t.section_id_icon=function(e,i){const n=t.el.span(),s=i&&i.size;return n.style.display="inline-block",n.style.width=`${s}px`,n.style.height=`${s}px`,n.style.backgroundImage=`url(/assets/images/sectionids/${o.SectionId[e]}.png)`,n.style.backgroundSize=`${s}px`,n.title=o.SectionId[e],n},t.disposable_listener=function(e,t,i,n){return e.addEventListener(t,i,n),{dispose(){e.removeEventListener(t,i)}}}},Ftn7:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=n(i("pVCM")),r=o(i("Womt")),a=i("Womt");s.default.install({THREE:Object.assign({},r,{MOUSE:Object.assign({},r.MOUSE,{LEFT:r.MOUSE.RIGHT,RIGHT:r.MOUSE.LEFT})})});t.Renderer=class{constructor(e){this._debug=!1,this.scene=new a.Scene,this.light_holder=new a.Group,this.renderer=new a.WebGLRenderer({antialias:!0}),this.render_scheduled=!1,this.animation_frame_handle=void 0,this.light=new a.HemisphereLight(16777215,5263440,1.2),this.controls_clock=new a.Clock,this.schedule_render=()=>{this.render_scheduled=!0},this.on_mouse_down=e=>{e.currentTarget&&e.currentTarget.focus()},this.call_render=()=>{const e=this.controls.update(this.controls_clock.getDelta()),t=this.render_scheduled||e;this.render_scheduled=!1,t&&this.render(),this.animation_frame_handle=requestAnimationFrame(this.call_render)},this.camera=e,this.dom_element.tabIndex=0,this.dom_element.addEventListener("mousedown",this.on_mouse_down),this.dom_element.style.outline="none",this.controls=new s.default(e,this.renderer.domElement),this.controls.dampingFactor=1,this.controls.draggingDampingFactor=1,this.scene.background=new a.Color(1579032),this.light_holder.add(this.light),this.scene.add(this.light_holder),this.renderer.setPixelRatio(window.devicePixelRatio)}get debug(){return this._debug}set debug(e){this._debug=e}get dom_element(){return this.renderer.domElement}set_size(e,t){this.renderer.setSize(e,t),this.schedule_render()}pointer_pos_to_device_coords(e){const t=this.renderer.getSize(new a.Vector2);return t.width=e.offsetX/t.width*2-1,t.height=e.offsetY/t.height*-2+1,t}start_rendering(){this.schedule_render(),this.animation_frame_handle=requestAnimationFrame(this.call_render)}stop_rendering(){null!=this.animation_frame_handle&&(cancelAnimationFrame(this.animation_frame_handle),this.animation_frame_handle=void 0)}reset_camera(e,t){this.controls.setLookAt(e.x,e.y,e.z,t.x,t.y,t.z)}dispose(){this.renderer.dispose()}render(){this.renderer.render(this.scene,this.camera)}}},"G+UN":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("x4QM"),s=i("6WXA"),r=i("nsCy");class a{constructor(e,t){this.id_to_item_type=t,this.get_by_id=e=>this.id_to_item_type[e],this.item_types=e}}t.ItemTypeStore=a,t.item_type_stores=new s.ServerMap(function(e){return n(this,void 0,void 0,function*(){const t=yield fetch(`/assets/itemTypes.${r.Server[e].toLowerCase()}.json`),i=yield t.json(),n=[],s=[];for(const e of i){let t;switch(e.class){case"weapon":t=new o.WeaponItemType(e.id,e.name,e.minAtp,e.maxAtp,e.ata,e.maxGrind,e.requiredAtp);break;case"armor":t=new o.ArmorItemType(e.id,e.name,e.atp,e.ata,e.minEvp,e.maxEvp,e.minDfp,e.maxDfp,e.mst,e.hp,e.lck);break;case"shield":t=new o.ShieldItemType(e.id,e.name,e.atp,e.ata,e.minEvp,e.maxEvp,e.minDfp,e.maxDfp,e.mst,e.hp,e.lck);break;case"unit":t=new o.UnitItemType(e.id,e.name);break;case"tool":t=new o.ToolItemType(e.id,e.name);break;default:continue}s[t.id]=t,n.push(t)}return new a(n,s)})})},GN66:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("HjM1"),s=i("xs7i"),r=i("j4Ss");class a extends o.TabContainer{constructor(){super({class:"hunt_optimizer_MethodsView",tabs:[{title:"Episode I",key:"episode_1",create_view:function(){return n(this,void 0,void 0,function*(){return new r.MethodsForEpisodeView(s.Episode.I)})}},{title:"Episode II",key:"episode_2",create_view:function(){return n(this,void 0,void 0,function*(){return new r.MethodsForEpisodeView(s.Episode.II)})}},{title:"Episode IV",key:"episode_4",create_view:function(){return n(this,void 0,void 0,function*(){return new r.MethodsForEpisodeView(s.Episode.IV)})}}]}),this.finalize_construction(a.prototype)}}t.MethodsView=a},GXOi:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("/Wax"),o=i("tjEv");t.prs_compress=function(e){const t=new s(e.size,e.endianness);for(;e.bytes_left;){let i=0,n=0;const o=Math.max(0,e.position-Math.min(2048,e.bytes_left));for(let t=e.position-255;t>=o;t--){let o=e.position,s=t,r=0;for(;o+3=n&&(i=t,n=r,r>=255))break}n<3?t.add_u8(e.u8()):(t.copy(i-e.position,n),e.seek(n))}return t.finalize()};class s{constructor(e,t){this.flags=0,this.flag_bits_left=0,this.flag_offset=0,this.output=new n.ResizableBufferCursor(new o.ResizableBuffer(e),t)}add_u8(e){this.write_control_bit(1),this.write_u8(e)}copy(e,t){e>-256&&t<=5?this.short_copy(e,t):this.long_copy(e,t)}finalize(){this.write_control_bit(0),this.write_control_bit(1),this.flags>>>=this.flag_bits_left;const e=this.output.position;return this.output.seek_start(this.flag_offset).write_u8(this.flags).seek_start(e),this.write_u8(0),this.write_u8(0),this.output.seek_start(0)}write_control_bit(e){if(0==this.flag_bits_left--){const e=this.output.position;this.output.seek_start(this.flag_offset).write_u8(this.flags).seek_start(e).write_u8(0),this.flag_offset=e,this.flag_bits_left=7}this.flags>>>=1,e&&(this.flags|=128)}write_u8(e){this.output.write_u8(e)}short_copy(e,t){t-=2,this.write_control_bit(0),this.write_control_bit(0),this.write_control_bit(t>>>1&1),this.write_control_bit(1&t),this.write_u8(255&e)}long_copy(e,t){t<=9?(this.write_control_bit(0),this.write_control_bit(1),this.write_u8(e<<3&248|t-2&7),this.write_u8(e>>5&255)):(this.write_control_bit(0),this.write_control_bit(1),this.write_u8(e<<3&248),this.write_u8(e>>5&255),this.write_u8(t-1))}}},Gc0Z:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=i("yRp4"),s=i("c5EP"),r=i("xpi7"),a=i("IjTL"),d=i("Tpfs"),l=new n.Vector3(0,-1,0);function u({entity:e,mesh:t},i){const n=e instanceof a.QuestNpcModel?r.NPC_COLORS[i]:r.OBJECT_COLORS[i];if(t)if(Array.isArray(t.material))for(const e of t.material)i===r.ColorType.Normal&&e.map?e.color.set(16777215):e.color.set(n);else t.material.color.set(n)}function c(e,t){return e&&t?e.entity===t.entity:e===t}t.QuestEntityControls=class{constructor(e){this.renderer=e,this.raycaster=new n.Raycaster,this.last_pointer_position=new n.Vector2(0,0),this.moved_since_last_mouse_down=!1,this.disposer=new d.Disposer,this.try_highlight=e=>{const t=this.renderer.get_entity_mesh(e);t&&this.select({entity:e,mesh:t})},this.on_mouse_down=e=>{this.process_event(e),this.stop_transforming();const t=this.pick_entity(this.renderer.pointer_pos_to_device_coords(e));t?(this.renderer.controls.enabled=!1,this.pick=t,this.select(t)):(this.renderer.controls.enabled=!0,this.pick=void 0),this.renderer.schedule_render()},this.on_mouse_up=e=>{this.process_event(e),this.moved_since_last_mouse_down||this.pick||this.deselect(),this.stop_transforming(),this.renderer.controls.enabled=!0,this.renderer.schedule_render()},this.on_mouse_move=e=>{this.process_event(e);const t=this.renderer.pointer_pos_to_device_coords(e);if(this.selected&&this.pick)this.moved_since_last_mouse_down&&(1===e.buttons&&(e.shiftKey?this.translate_vertically(this.selected,this.pick,t):this.translate_horizontally(this.selected,this.pick,t)),this.renderer.schedule_render());else{const e=this.pick_entity(t);this.mark_hovered(e)&&this.renderer.schedule_render()}},this.stop_transforming=()=>{if(this.moved_since_last_mouse_down&&this.selected&&this.pick){const e=this.selected.entity;s.quest_editor_store.push_translate_entity_action(e,this.pick.initial_section,e.section.val,this.pick.initial_position,e.world_position.val,!0)}this.pick=void 0},this.disposer.add(s.quest_editor_store.selected_entity.observe(({value:e})=>{this.selected&&this.selected.entity===e||(this.stop_transforming(),e?this.try_highlight(e):this.deselect())}))}dispose(){this.disposer.dispose()}process_event(e){"mousedown"===e.type?this.moved_since_last_mouse_down=!1:e.offsetX===this.last_pointer_position.x&&e.offsetY===this.last_pointer_position.y||(this.moved_since_last_mouse_down=!0),this.last_pointer_position.set(e.offsetX,e.offsetY)}mark_hovered(e){let t=!1;return this.selected&&c(e,this.selected)||(c(e,this.hovered)||(this.hovered&&(u(this.hovered,r.ColorType.Normal),this.hovered=void 0),e&&u(e,r.ColorType.Hovered),t=!0),this.hovered=e),t}select(e){c(e,this.hovered)&&(this.hovered=void 0),c(e,this.selected)?this.selected=e:(this.selected&&u(this.selected,r.ColorType.Normal),u(e,r.ColorType.Selected),this.selected=e,s.quest_editor_store.set_selected_entity(e.entity))}deselect(){this.selected&&u(this.selected,r.ColorType.Normal),this.selected=void 0,s.quest_editor_store.set_selected_entity(void 0)}translate_vertically(e,t,i){this.raycaster.setFromCamera(i,this.renderer.camera);const s=this.raycaster.ray,r=this.renderer.camera.getWorldDirection(new n.Vector3).negate(),a=(new n.Plane).setFromNormalAndCoplanarPoint(new n.Vector3(r.x,0,r.z).normalize(),e.mesh.position.sub(t.grab_offset)),d=new n.Vector3;if(s.intersectPlane(a,d)){const i=d.y+t.grab_offset.y,n=i-e.entity.world_position.val.y;t.drag_y+=n,t.drag_adjust.y-=n,e.entity.set_world_position(new o.Vec3(e.entity.world_position.val.x,i,e.entity.world_position.val.z))}}translate_horizontally(e,t,i){const{intersection:s,section:r}=this.pick_terrain(i,t);if(s)e.entity.set_world_position(new o.Vec3(s.point.x,s.point.y+t.drag_y,s.point.z)),r&&e.entity.set_section(r);else{this.raycaster.setFromCamera(i,this.renderer.camera);const s=this.raycaster.ray,r=new n.Plane(new n.Vector3(0,1,0),-e.entity.world_position.val.y+t.grab_offset.y),a=new n.Vector3;s.intersectPlane(r,a)&&e.entity.set_world_position(new o.Vec3(a.x+t.grab_offset.x,e.entity.world_position.val.y,a.z+t.grab_offset.z))}}pick_entity(e){this.raycaster.setFromCamera(e,this.renderer.camera);const[t]=this.raycaster.intersectObjects(this.renderer.entity_models.children);if(!t)return;const i=t.object.userData.entity,n=t.object.position.clone().sub(t.point),o=n.clone();let s=0;this.raycaster.set(t.object.position,l);const[r]=this.raycaster.intersectObjects(this.renderer.collision_geometry.children,!0);return r&&(o.y-=r.distance,s+=r.distance),{mesh:t.object,entity:i,initial_section:i.section.val,initial_position:i.world_position.val,grab_offset:n,drag_adjust:o,drag_y:s}}pick_terrain(e,t){this.raycaster.setFromCamera(e,this.renderer.camera),this.raycaster.ray.origin.add(t.drag_adjust);const i=this.raycaster.intersectObjects(this.renderer.collision_geometry.children,!0);for(const e of i)if(e.face.normal.y>.75)return{intersection:e,section:e.object.userData.section};return{}}}},GuD3:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("bcBH"),o=i("yRp4");t.AbstractCursor=class{constructor(e,t){this._position=0,this.endianness=e,this.offset=t}get position(){return this._position}get endianness(){return this.little_endian?n.Endianness.Little:n.Endianness.Big}set endianness(e){this.little_endian=e===n.Endianness.Little}get bytes_left(){return this.size-this.position}seek(e){return this.seek_start(this.position+e)}seek_start(e){if(e<0||e>this.size)throw new Error(`Offset ${e} is out of bounds.`);return this._position=e,this}seek_end(e){if(e<0||e>this.size)throw new Error(`Offset ${e} is out of bounds.`);return this._position=this.size-e,this}u8(){return this.u8_at(this._position++)}u8_at(e){return this.check_offset(e,1),this.dv.getUint8(this.offset+e)}u16(){const e=this.u16_at(this.position);return this._position+=2,e}u16_at(e){return this.check_offset(e,2),this.dv.getUint16(this.offset+e,this.little_endian)}u32(){const e=this.u32_at(this.position);return this._position+=4,e}u32_at(e){return this.check_offset(e,4),this.dv.getUint32(this.offset+e,this.little_endian)}i8(){return this.i8_at(this._position++)}i8_at(e){return this.check_offset(e,1),this.dv.getInt8(this.offset+e)}i16(){const e=this.i16_at(this.position);return this._position+=2,e}i16_at(e){return this.check_offset(e,2),this.dv.getInt16(this.offset+e,this.little_endian)}i32(){const e=this.i32_at(this.position);return this._position+=4,e}i32_at(e){return this.check_offset(e,4),this.dv.getInt32(this.offset+e,this.little_endian)}f32(){const e=this.f32_at(this.position);return this._position+=4,e}f32_at(e){return this.check_offset(e,4),this.dv.getFloat32(this.offset+e,this.little_endian)}u8_array(e){this.check_size("n",e,e);const t=[];for(let i=0;ithis.size-this.position)throw new Error(`${e} ${t} is out of bounds.`)}check_offset(e,t){if(e<0||e+t>this.size)throw new Error(`Offset ${e} is out of bounds.`)}}},Hdaq:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb"),o=i("nN8q");i("m5WL");const s=i("4SjJ"),r=i("KUR2"),a=i("tyuj"),d=i("lHpu"),l=i("VRtl"),u=i("Y3Jw"),c=100,_=140;class p extends o.ResizableWidget{constructor(){super(n.el.div({class:"viewer_Model3DView"})),this.tool_bar_view=this.disposable(new l.Model3DToolBar),this.model_list_view=this.disposable(new u.Model3DSelectListView(a.model_store.models,a.model_store.current_model)),this.animation_list_view=this.disposable(new u.Model3DSelectListView(a.model_store.animations,a.model_store.current_animation)),this.renderer_view=this.disposable(new r.RendererWidget(new d.Model3DRenderer)),this.animation_list_view.borders=!0;const e=n.el.div({class:"viewer_Model3DView_container"});e.append(this.model_list_view.element,this.animation_list_view.element,this.renderer_view.element),this.element.append(this.tool_bar_view.element,e),a.model_store.current_model.val=a.model_store.models[5],this.renderer_view.start_rendering(),this.disposable(s.gui_store.tool.observe(({value:e})=>{e===s.GuiTool.Viewer?this.renderer_view.start_rendering():this.renderer_view.stop_rendering()})),this.finalize_construction(p.prototype)}resize(e,t){super.resize(e,t);const i=Math.max(0,t-this.tool_bar_view.height);return this.model_list_view.resize(c,i),this.animation_list_view.resize(_,i),this.renderer_view.resize(Math.max(0,e-c-_),i),this}}t.Model3DView=p},HjM1:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb"),o=i("39ZU"),s=i("nN8q");i("4AvX");const r=28;class a extends s.ResizableWidget{constructor(e){super(n.el.div({class:"core_TabContainer"}),e),this.tabs=[],this.bar_element=n.el.div({class:"core_TabContainer_Bar"}),this.panes_element=n.el.div({class:"core_TabContainer_Panes"}),this.bar_mousedown=e=>{if(e.target instanceof HTMLElement){const t=e.target.dataset.key;t&&this.activate(t)}},this.bar_element.onmousedown=this.bar_mousedown;for(const t of e.tabs){const e=n.create_element("span",{class:"core_TabContainer_Tab",text:t.title,data:{key:t.key}});this.bar_element.append(e);const i=new o.LazyWidget(t.create_view);this.tabs.push(Object.assign({},t,{tab_element:e,lazy_view:i})),this.panes_element.append(i.element),this.disposable(i)}this.tabs.length&&this.activate(this.tabs[0].key),this.element.append(this.bar_element,this.panes_element),this.finalize_construction(a.prototype)}resize(e,t){super.resize(e,t),this.bar_element.style.width=`${e}px`,this.bar_element.style.height=`${r}px`;const i=t-r;this.panes_element.style.width=`${e}px`,this.panes_element.style.height=`${i}px`;for(const t of this.tabs)t.lazy_view.resize(e,i);return this}activate(e){for(const t of this.tabs){const i=t.key===e;i?t.tab_element.classList.add("active"):t.tab_element.classList.remove("active"),t.lazy_view.visible.val=i}}}t.TabContainer=a},IMNf:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("/Wax"),r=i("tjEv"),a=o.default.get("data_formats/compression/prs/decompress");t.prs_decompress=function(e){const t=new d(e);for(;;)if(1===t.read_flag_bit())t.copy_u8();else{let e,i;if(0===t.read_flag_bit())e=t.read_flag_bit()<<1,e|=t.read_flag_bit(),e+=2,i=t.read_u8()-256;else{if(0===(i=t.read_u16()))break;e=7&i,i>>>=3,0===e?(e=t.read_u8(),e+=1):e+=2,i-=8192}t.offset_copy(i,e)}return t.dst.seek_start(0)};class d{constructor(e){this.src=e,this.dst=new s.ResizableBufferCursor(new r.ResizableBuffer(Math.floor(1.5*e.size)),e.endianness),this.flags=0,this.flag_bits_left=0}read_flag_bit(){0===this.flag_bits_left&&(this.flags=this.read_u8(),this.flag_bits_left=8);let e=1&this.flags;return this.flags>>>=1,this.flag_bits_left-=1,e}copy_u8(){this.dst.write_u8(this.read_u8())}read_u8(){return this.src.u8()}read_u16(){return this.src.u16()}offset_copy(e,t){(e<-8192||e>0)&&a.error(`offset was ${e}, should be between -8192 and 0.`),(t<1||t>256)&&a.error(`length was ${t}, should be between 1 and 256.`);const i=Math.min(-e,t);this.dst.seek(e);const n=this.dst.take(i);this.dst.seek(-e-i);for(let e=0;enull!=e?e:this.default_time)}set_user_time(e){return this._user_time.val=e,this}}},If1w:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("FXpb");i("XfQH");const s=i("KVVN"),r=i("Tpfs"),a=i("TRid"),d=i("oxtq"),l=i("PE7g"),u=i("sMN3"),c=i("Ncr4"),_=i("ouMO");class p extends a.Widget{constructor(){super(o.el.div({class:"hunt_optimizer_WantedItemsView"})),this.tbody_element=o.el.tbody(),this.table_disposer=this.disposable(new r.Disposer),this.store_disposer=this.disposable(new r.Disposer),this.update_table=e=>{if(e.type===d.ListChangeType.ListChange){for(let t=0;t=this.tbody_element.childElementCount)this.tbody_element.append(...t);else for(let i=0;i{const t=this.table_disposer.add(new r.Disposer),i=t.add(new l.NumberInput(e.amount.val,{min:0,step:1}));t.add_all(i.value.bind_to(e.amount),i.value.observe(({value:t})=>e.set_amount(t)));const a=t.add(new s.Button("",{icon_left:o.Icon.Remove}));return t.add(a.click.observe(()=>n(this,void 0,void 0,function*(){return(yield u.hunt_optimizer_stores.current.val).remove_wanted_item(e)}))),o.el.tr({},o.el.td({},i.element),o.el.td({text:e.item_type.name}),o.el.td({},a.element))};const e=_.list_property(),t=_.list_property(),i=this.disposable(new c.ComboBox({items:t,to_label:e=>e.name,placeholder_text:"Add an item",filter(i){const n=i.toLowerCase();t.val=e.val.filter(e=>e.name.toLowerCase().includes(n))}}));this.element.append(o.el.h2({text:"Wanted Items"}),i.element,o.el.div({class:"hunt_optimizer_WantedItemsView_table_wrapper"},o.el.table({},this.tbody_element))),this.disposables(u.hunt_optimizer_stores.observe_current(n=>{this.store_disposer.dispose_all(),this.store_disposer.add_all(n.wanted_items.observe_list(this.update_table),i.selected.observe(({value:e})=>{e&&(n.add_wanted_item(e),i.selected.val=void 0)})),e.val=n.huntable_item_types.slice().sort((e,t)=>e.name.localeCompare(t.name)),t.val=e.val},{call_now:!0})),this.finalize_construction(p.prototype)}}t.WantedItemsView=p},IjTL:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("kiqn");t.QuestNpcModel=class extends n.QuestEntityModel{constructor(e,t,i,n,o,s,r,a,d,l,u){super(e,s,r,a,d),this.pso_type_id=t,this.npc_id=i,this.script_label=n,this.roaming=o,this.unknown=u,this.scale=l}}},JCZi:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i("wsa1"),r=o(i("NUmZ")),a=i("yAUo"),d=i("Q4I3"),l=i("ZPAt"),u=i("ouMO");var c=s.languages.CompletionItemKind;const _=l.OPCODES.filter(e=>null!=e).map(e=>({label:e.mnemonic,kind:c.Function,insertText:e.mnemonic})),p=[{label:".code",kind:c.Keyword,insertText:"code"},{label:".data",kind:c.Keyword,insertText:"data"},{label:".string",kind:c.Keyword,insertText:"string"}];t.AssemblyAnalyser=class{constructor(){this._issues=u.property({warnings:[],errors:[]}),this.issues=this._issues,this.worker=new r.default,this.promises=new Map,this.message_id=0,this.process_worker_message=e=>{const t=e.data;switch(t.type){case a.OutputMessageType.NewObjectCode:this.quest&&(this.quest.object_code.splice(0,this.quest.object_code.length,...t.object_code),this.quest.set_map_designations(t.map_designations),this._issues.val={warnings:t.warnings,errors:t.errors});break;case a.OutputMessageType.SignatureHelp:{const e=this.promises.get(t.id);if(e)if(this.promises.delete(t.id),t.opcode){let i=t.opcode.mnemonic+" ";const n=[];let o=!0;for(const e of t.opcode.params){let t;switch(o?o=!1:i+=", ",e.type.kind){case l.Kind.ILabel:t="FuncLabel";break;case l.Kind.DLabel:t="DataLabel";break;case l.Kind.SLabel:t="StringLabel";break;case l.Kind.ILabelVar:t="...FuncLabel";break;case l.Kind.RegRef:case l.Kind.RegTupRef:t="Register";break;case l.Kind.RegRefVar:t="...Register";break;default:t=l.Kind[e.type.kind]}n.push({label:[i.length,i.length+t.length],documentation:e.doc}),i+=t}const s={signatures:[{label:i,documentation:t.opcode.doc,parameters:n}],activeSignature:0,activeParameter:t.active_param};e.resolve(s)}else e.resolve(void 0)}}},this.worker.onmessage=this.process_worker_message}disassemble(e){this.quest=e;const t=d.disassemble(e.object_code),i={type:a.InputMessageType.NewAssembly,assembly:t};return this.worker.postMessage(i),t}update_assembly(e){const t={type:a.InputMessageType.AssemblyChange,changes:e.map(e=>({start_line_no:e.range.startLineNumber,start_col:e.range.startColumn,end_line_no:e.range.endLineNumber,end_col:e.range.endColumn,new_text:e.text}))};this.worker.postMessage(t)}provide_completion_items(e){return{suggestions:/^\s*([a-z][a-z0-9_=<>!]*)?$/.test(e)?_:/^\s*\.[a-z]+$/.test(e)?p:[],incomplete:!1}}provide_signature_help(e,t){return n(this,void 0,void 0,function*(){const i=this.message_id++;return new Promise((n,o)=>{this.promises.set(i,{resolve:n,reject:o});const s={type:a.InputMessageType.SignatureHelp,id:i,line_no:e,col:t};this.worker.postMessage(s),setTimeout(()=>{this.promises.delete(i)&&o(new Error("Signature help timed out."))},5e3)})})}dispose(){this.worker.terminate()}}},JQxC:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("ZPAt"),r=i("4s8/"),a=i("CUby"),d=o.default.get("quest_editor/scripting/data_flow_analysis/stack_value");t.MIN_STACK_VALUE=s.MIN_SIGNED_DWORD_VALUE,t.MAX_STACK_VALUE=s.MAX_SIGNED_DWORD_VALUE,t.stack_value=function(e,i,n){const o=e.get_block_for_instruction(i);return o?function e(i,n,o,l,u){if(++i.iterations>100)return d.warn("Too many iterations."),(new r.ValueSet).set_interval(t.MIN_STACK_VALUE,t.MAX_STACK_VALUE);for(let e=l-1;e>=o.start;e--){const n=o.segment.instructions[e];if(n.opcode.stack===s.StackInteraction.Pop){u+=n.opcode.params.length;continue}const d=n.args;switch(n.opcode){case s.Opcode.ARG_PUSHR:if(0===u)return a.register_value(i.cfg,n,d[0].value);u--;break;case s.Opcode.ARG_PUSHL:case s.Opcode.ARG_PUSHB:case s.Opcode.ARG_PUSHW:if(0===u)return(new r.ValueSet).set_value(d[0].value);u--;break;case s.Opcode.ARG_PUSHA:case s.Opcode.ARG_PUSHO:case s.Opcode.ARG_PUSHS:if(0===u)return(new r.ValueSet).set_interval(t.MIN_STACK_VALUE,t.MAX_STACK_VALUE);u--}}const c=new r.ValueSet;n.add(o);for(const s of o.from){if(n.has(s)){c.set_interval(t.MIN_STACK_VALUE,t.MAX_STACK_VALUE);break}c.union(e(i,new Set(n),s,s.end,u))}return c}(new l(e),new Set,o,o.index_of_instruction(i),n):new r.ValueSet};class l{constructor(e){this.cfg=e,this.iterations=0}}},KUR2:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nN8q"),o=i("FXpb");class s extends n.ResizableWidget{constructor(e){super(o.create_element("div")),this.renderer=e,this.element.append(e.dom_element),this.disposable(e),this.finalize_construction(s.prototype)}start_rendering(){this.renderer.start_rendering()}stop_rendering(){this.renderer.stop_rendering()}resize(e,t){return super.resize(e,t),this.renderer.set_size(e,t),this}}t.RendererWidget=s},KVVN:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb");i("Tp1L");const o=i("ouMO"),s=i("QmPX"),r=i("4VsB");class a extends s.Control{constructor(e,t){const i=n.el.span({class:"core_Button_inner"});super(n.el.button({class:"core_Button"},i),t),this.center_element=n.el.span({class:"core_Button_center"}),t&&null!=t.icon_left&&i.append(n.el.span({class:"core_Button_left"},n.icon(t.icon_left))),i.append(this.center_element),t&&null!=t.icon_right&&i.append(n.el.span({class:"core_Button_right"},n.icon(t.icon_right))),this._mousedown=o.emitter(),this.mousedown=this._mousedown,this.element.onmousedown=e=>this._mousedown.emit({value:e}),this._mouseup=o.emitter(),this.mouseup=this._mouseup,this.element.onmouseup=e=>this._mouseup.emit({value:e}),this._click=o.emitter(),this.click=this._click,this.element.onclick=e=>this._click.emit({value:e}),this._text=new r.WidgetProperty(this,"",this.set_text),this.text=this._text,"string"==typeof e?this.text.val=e:e&&this.text.bind_to(e),this.finalize_construction(a.prototype)}set_enabled(e){super.set_enabled(e),this.element.disabled=!e}set_text(e){this.center_element.textContent=e,this.center_element.hidden=""===e}}t.Button=a},"L/3r":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),o=i("Ts/k"),s=i("n5fr");t.SimpleUndo=class{constructor(e,t,i){this.can_undo=n.property(!1),this.can_redo=n.property(!1),this.action=n.property({description:e,undo:t,redo:i}),this.first_undo=n.map((e,t)=>t?e:void 0,this.action,this.can_undo),this.first_redo=n.map((e,t)=>t?e:void 0,this.action,this.can_redo)}make_current(){s.undo_manager.current.val=this}ensure_not_current(){s.undo_manager.current.val===this&&(s.undo_manager.current.val=o.NOOP_UNDO)}undo(){return!!this.can_undo&&(this.action.val.undo(),!0)}redo(){return!!this.can_redo&&(this.action.val.redo(),!0)}reset(){this.can_undo.val=!1,this.can_redo.val=!1}}},LSoc:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb"),o=i("TRid"),s=i("ouMO"),r=i("4VsB");i("/xfa");class a extends o.Widget{constructor(e,t,i){super(n.el.div({class:"core_Menu",tab_index:-1})),this.inner_element=n.el.div({class:"core_Menu_inner"}),this.mouseup=e=>{if(!(e.target instanceof HTMLElement))return;const t=e.target.dataset.index;null!=t&&this.select_item(parseInt(t,10))},this.keydown=e=>{switch(e.key){case"ArrowDown":this.hover_next();break;case"ArrowUp":this.hover_prev();break;case"Enter":this.select_hovered()}},this.inner_mouseover=e=>{if(e.target&&e.target instanceof HTMLElement){const t=e.target.dataset.index;null!=t&&this.hover_item(parseInt(t,10))}},this.document_mousedown=e=>{!this.visible.val||this.element.contains(e.target)||this.related_element.contains(e.target)||this.visible.set_val(!1,{silent:!1})},this.document_keydown=e=>{"Escape"===e.key&&this.visible.set_val(!1,{silent:!1})},this.visible.val=!1,this.element.onmouseup=this.mouseup,this.element.onkeydown=this.keydown,this.inner_element.onmouseover=this.inner_mouseover,this.element.append(this.inner_element),this.to_label=t,this.items=Array.isArray(e)?s.property(e):e,this.related_element=i,this._selected=new r.WidgetProperty(this,void 0,this.set_selected),this.selected=this._selected,this.disposables(this.items.observe(({value:e})=>{this.inner_element.innerHTML="",this.inner_element.append(...e.map((e,i)=>n.el.div({text:t(e),data:{index:i.toString()}}))),this.hover_item()},{call_now:!0}),n.disposable_listener(document,"mousedown",this.document_mousedown,{capture:!0}),n.disposable_listener(document,"keydown",this.document_keydown)),this.finalize_construction(a.prototype)}hover_next(){this.visible.val=!0,this.hover_item(null!=this.hovered_index?(this.hovered_index+1)%this.items.val.length:0)}hover_prev(){this.visible.val=!0,this.hover_item(this.hovered_index?this.hovered_index-1:this.items.val.length-1)}select_hovered(){null!=this.hovered_index&&this.select_item(this.hovered_index)}set_visible(e){super.set_visible(e),this.visible.val!=e&&(this.hover_item(),this.inner_element.scrollTop=0)}set_selected(){}hover_item(e){this.hovered_element&&this.hovered_element.classList.remove("core_Menu_hovered"),null==e?(this.hovered_index=void 0,this.hovered_element=void 0):(this.hovered_element=this.inner_element.children.item(e),this.hovered_element&&(this.hovered_index=e,this.hovered_element.classList.add("core_Menu_hovered"),this.hovered_element.scrollIntoView({block:"nearest"})))}select_item(e){const t=this.items.val[e];t&&(this.selected.set_val(t,{silent:!1}),this.visible.set_val(!1,{silent:!1}))}}t.Menu=a},LkpO:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=i("HjM1");class r extends s.TabContainer{constructor(){super({class:"hunt_optimizer_HuntOptimizerView",tabs:[{title:"Optimize",key:"optimize",create_view:function(){return n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("FNQV")))).OptimizerView)})}},{title:"Methods",key:"methods",create_view:function(){return n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("GN66")))).MethodsView)})}},{title:"Help",key:"help",create_view:function(){return n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("F0Xh")))).HelpView)})}}]}),this.finalize_construction(r.prototype)}}t.HuntOptimizerView=r},"M/y3":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.sequential=function(e){const t=[];return function(...i){const o=new Promise((e,n)=>t.push({args:i,resolve:e,reject:n}));return 1===t.length&&function(){n(this,void 0,void 0,function*(){for(;t.length;){const{args:i,resolve:n,reject:o}=t[0];try{n(yield e(...i))}catch(e){o(e)}finally{t.shift()}}})}(),o}}},NRxM:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("9dYx");class o extends n.AbstractWritableCursor{get size(){return this._size}set size(e){if(e>this.backing_buffer.byteLength-this.offset)throw new Error(`Size ${e} is out of bounds.`);this._size=e}constructor(e,t,i=0,n=e.byteLength-i){super(t,i),this._size=n,this.backing_buffer=e,this.dv=new DataView(e,0,e.byteLength)}take(e){const t=this.offset+this.position,i=new o(this.backing_buffer,this.endianness,t,e);return this._position+=e,i}}t.ArrayBufferCursor=o},NUmZ:function(e,t,i){e.exports=function(){return new Worker(i.p+"e811160e92146af6f670.worker.js")}},Ncr4:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("sDu+"),o=i("FXpb");i("rlVZ"),i("x1yY");const s=i("LSoc"),r=i("ouMO"),a=i("4VsB");class d extends n.LabelledControl{constructor(e){super(o.el.span({class:"core_ComboBox core_Input"}),e),this.preferred_label_position="left",this.input_element=o.create_element("input"),this.to_label=e.to_label,this._selected=new a.WidgetProperty(this,void 0,this.set_selected),this.selected=this._selected;const t=r.property(!1);this.menu=this.disposable(new s.Menu(e.items,e.to_label,this.element)),this.menu.element.onmousedown=e=>e.preventDefault(),this.input_element.placeholder=e.placeholder_text||"",this.input_element.onmousedown=()=>{t.val=!0},this.input_element.onkeydown=e=>{switch(e.key){case"ArrowDown":e.preventDefault(),this.menu.hover_next();break;case"ArrowUp":e.preventDefault(),this.menu.hover_prev();break;case"Enter":this.menu.select_hovered()}};const i=e.filter;if(i){let e="";this.input_element.onkeyup=()=>{this.input_element.value!==e&&(e=this.input_element.value,i(e),(this.menu.visible.val||e)&&this.menu.hover_next())}}this.input_element.onblur=()=>{t.val=!1};const n=o.el.span({},o.icon(o.Icon.TriangleDown));this.bind_hidden(n,t);const l=o.el.span({},o.icon(o.Icon.TriangleUp));this.bind_hidden(l,t.map(e=>!e));const u=o.el.span({class:"core_ComboBox_button"},n,l);u.onmousedown=e=>{e.preventDefault(),t.val=!t.val},this.element.append(o.el.span({class:"core_ComboBox_inner core_Input_inner"},this.input_element,u),this.menu.element),this.disposables(this.menu.visible.bind_bi(t),t.observe(({value:e})=>{e&&this.menu.hover_next()}),this.menu.selected.observe(({value:e})=>{this.selected.set_val(e,{silent:!1}),this.input_element.focus()})),this.finalize_construction(d.prototype)}set_selected(e){this.input_element.value=e?this.to_label(e):"",this.menu.selected.val=e}}t.ComboBox=d},PE7g:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("0Xme");i("rY5A");class o extends n.Input{constructor(e=0,t={}){super(e,"core_NumberInput","number","core_NumberInput_inner",t),this.preferred_label_position="left";const{min:i,max:n,step:s}=t;this.set_attr("min",i,String),this.set_attr("max",n,String),this.input_element.step="any",this.set_attr("step",s,String),null!=t.round_to&&t.round_to>=0?this.rounding_factor=Math.pow(10,t.round_to):this.rounding_factor=1,this.element.style.width=`${null==t.width?54:t.width}px`,this.set_value(e),this.finalize_construction(o.prototype)}get_value(){return this.input_element.valueAsNumber}set_value(e){this.input_element.valueAsNumber=Math.round(this.rounding_factor*e)/this.rounding_factor}}t.NumberInput=o},"Q+PT":function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")).default.get("core/observable/SimpleEmitter");t.SimpleEmitter=class{constructor(){this.observers=[]}emit(e){for(const t of this.observers)try{t(e)}catch(e){o.error("Observer threw error.",e)}}observe(e){return this.observers.includes(e)||this.observers.push(e),{dispose:()=>{const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}}}}},Q4I3:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("8hIv"),o=i("lg9k"),s=i("ZPAt");function r(e,t,i){const o=[];for(let r=0;r4&&i.push(t)}else if(d.type===o.SegmentType.String)i.push(" "+JSON.stringify(d.value));else for(const e of d.instructions)if(t||e.opcode.stack!==s.StackInteraction.Push){let o=[];e.opcode.stack===s.StackInteraction.Pop?t||(o=r(e.opcode.params,n.splice(Math.max(0,n.length-e.opcode.params.length),e.opcode.params.length),!0)):o=r(e.opcode.params,e.args,!1),i.push(" "+e.opcode.mnemonic+(o.length?" "+o.join(", "):""))}else n.push(...e.args)}return i.length&&i.push(""),i}},QmPX:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid");t.Control=class extends n.Widget{}},RMZt:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("yfUv"),s=i("ExVU"),r="HuntMethodStore.methodUserTimes";t.hunt_method_persister=new class extends o.Persister{persist_method_user_times(e,t){const i={};for(const t of e)null!=t.user_time.val&&(i[t.id]=t.user_time.val.as("hours"));this.persist_for_server(t,r,i)}load_method_user_times(e,t){return n(this,void 0,void 0,function*(){const i=yield this.load_for_server(t,r);if(i)for(const t of e){const e=i[t.id];t.set_user_time(null==e?void 0:s.Duration.fromObject({hours:e}))}})}}},S6Bx:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("wsa1"),o=i("JCZi"),s=i("Tpfs"),r=i("L/3r"),a=i("c5EP"),d=i("hVaW"),l=i("ouMO"),u=new o.AssemblyAnalyser;n.languages.register({id:"psoasm"}),n.languages.setMonarchTokensProvider("psoasm",d.ASM_SYNTAX),n.languages.registerCompletionItemProvider("psoasm",{provideCompletionItems(e,t){const i=e.getValueInRange({startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:1,endColumn:t.column});return u.provide_completion_items(i)}}),n.languages.registerSignatureHelpProvider("psoasm",{signatureHelpTriggerCharacters:[" ",","],signatureHelpRetriggerCharacters:[", "],provideSignatureHelp:(e,t)=>u.provide_signature_help(t.lineNumber,t.column)}),n.languages.setLanguageConfiguration("psoasm",{indentationRules:{increaseIndentPattern:/^\s*\d+:/,decreaseIndentPattern:/^\s*(\d+|\.)/},autoClosingPairs:[{open:'"',close:'"'}],surroundingPairs:[{open:'"',close:'"'}],comments:{lineComment:"//"}});class c{constructor(){this.undo=new r.SimpleUndo("Text edits",()=>this._did_undo.emit({value:"asm undo"}),()=>this._did_redo.emit({value:"asm undo"})),this.disposer=new s.Disposer,this.model_disposer=this.disposer.add(new s.Disposer),this._model=l.property(void 0),this._did_undo=l.emitter(),this._did_redo=l.emitter(),this.model=this._model,this.did_undo=this._did_undo,this.did_redo=this._did_redo,this.disposer.add_all(a.quest_editor_store.current_quest.observe(({value:e})=>this.quest_changed(e),{call_now:!0}),u.issues.observe(({value:e})=>this.update_model_markers(e),{call_now:!0}))}dispose(){this.disposer.dispose()}quest_changed(e){if(this.undo.reset(),this.model_disposer.dispose_all(),e){const t=u.disassemble(e),i=this.model_disposer.add(n.editor.createModel(t.join("\n"),"psoasm"));let o=i.getAlternativeVersionId(),s=o,r=o;this.model_disposer.add(i.onDidChangeContent(e=>{const t=i.getAlternativeVersionId();tr&&(r=s)),this.undo.can_undo.val=!0),s=t,u.update_assembly(e.changes)})),this._model.val=i}else this._model.val=void 0}update_model_markers({warnings:e,errors:t}){const i=this.model.val;i&&n.editor.setModelMarkers(i,"psoasm",e.map(e=>({severity:n.MarkerSeverity.Hint,message:e.message,startLineNumber:e.line_no,endLineNumber:e.line_no,startColumn:e.col,endColumn:e.col+e.length,tags:[n.MarkerTag.Unnecessary]})).concat(t.map(e=>({severity:n.MarkerSeverity.Error,message:e.message,startLineNumber:e.line_no,endLineNumber:e.line_no,startColumn:e.col,endColumn:e.col+e.length}))))}}t.AsmEditorStore=c,t.asm_editor_store=new c},"Sa3/":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.read_file=function(e){return n(this,void 0,void 0,function*(){return new Promise((t,i)=>{const n=new FileReader;n.addEventListener("loadend",()=>{n.result instanceof ArrayBuffer?t(n.result):i(new Error("Couldn't read file."))}),n.readAsArrayBuffer(e)})})}},SoCI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("xs7i");t.get_areas_for_episode=function(e){return o[e]},t.get_area_variant=function(e,t,i){const n=o[e].find(e=>e.id===t);if(!n)throw new Error(`No area with id ${t}.`);const s=n.area_variants[i];if(!s)throw new Error(`No area variant with id ${i}.`);return s};const o=[];function s(e,t,i,n){const o={id:e,name:t,order:i,area_variants:[]};for(let e=0;e{this.construction_finalized||a.warn(`finalize_construction is never called for ${Object.getPrototypeOf(this).constructor.name}.`)},0)}get id(){return this.element.id}set id(e){this.element.id=e}focus(){this.element.focus()}dispose(){this.element.remove(),this.disposer.dispose(),this.disposed=!0}finalize_construction(e){Object.getPrototypeOf(this)===e&&(this.construction_finalized=!0,"boolean"==typeof this.options.enabled?this.enabled.val=this.options.enabled:this.options.enabled&&this.enabled.bind_to(this.options.enabled),"string"==typeof this.options.tooltip?this.tooltip.val=this.options.tooltip:this.options.tooltip&&this.tooltip.bind_to(this.options.tooltip))}set_visible(e){this.element.hidden=!e}set_enabled(e){e?this.element.classList.remove("disabled"):this.element.classList.add("disabled")}set_tooltip(e){this.element.title=e}bind_hidden(e,t){this.disposable(s.bind_hidden(e,t))}disposable(e){return this.disposer.add(e)}disposables(...e){this.disposer.add_all(...e)}}},Tpfs:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("GGSb").get("core/observable/Disposer");t.Disposer=class{constructor(...e){this._disposed=!1,this.disposables=e}get length(){return this.disposables.length}get disposed(){return this._disposed}add(e){return this._disposed||this.disposables.push(e),e}insert(e,t){return this._disposed||this.disposables.splice(e,0,t),t}add_all(...e){return this._disposed||this.disposables.push(...e),this}dispose_all(){this.dispose_at(0,this.disposables.length)}dispose(){this.dispose_all(),this._disposed=!0}dispose_at(e,t=1){for(const i of this.disposables.splice(e,t))try{i.dispose()}catch(e){n.warn("Error while disposing.",e)}}}},"Ts/k":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO"),o=i("n5fr");t.NOOP_UNDO={can_redo:n.property(!1),can_undo:n.property(!1),first_redo:n.property(void 0),first_undo:n.property(void 0),ensure_not_current(){},make_current(){o.undo_manager.current.val=this},redo:()=>!1,reset(){},undo:()=>!1}},VRtl:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("w6HN"),o=i("6cU9"),s=i("oyid"),r=i("PE7g"),a=i("7CyS"),d=i("tyuj"),l=i("7ZX1"),u=i("FXpb");class c extends n.ToolBar{constructor(){const e=new o.FileButton("Open file...",{icon_left:u.Icon.File,accept:".nj, .njm, .xj, .xvm"}),t=new s.CheckBox(!1,{label:"Show skeleton"}),i=new s.CheckBox(!0,{label:"Play animation"}),n=new r.NumberInput(a.PSO_FRAME_RATE,{label:"Frame rate:",min:1,max:240,step:1}),_=new r.NumberInput(1,{label:"Frame:",min:1,max:d.model_store.animation_frame_count,step:1}),p=new l.Label(d.model_store.animation_frame_count.map(e=>`/ ${e}`));super({children:[e,t,i,n,_,p]}),this.disposables(e.files.observe(({value:e})=>{e.length&&d.model_store.load_file(e[0])}),d.model_store.show_skeleton.bind_to(t.checked));const v=d.model_store.current_nj_motion.map(e=>null!=e);this.disposables(i.enabled.bind_to(v),d.model_store.animation_playing.bind_bi(i.checked),n.enabled.bind_to(v),d.model_store.animation_frame_rate.bind_to(n.value),_.enabled.bind_to(v),d.model_store.animation_frame.bind_to(_.value),_.value.bind_to(d.model_store.animation_frame.map(e=>Math.round(e))),p.enabled.bind_to(v)),this.finalize_construction(c.prototype)}}t.Model3DToolBar=c},VwSi:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("kwt4"),o=i("yRp4"),s=1296321870;var r;function a(e,t){let i=e.u32();const n=e.u32(),o=e.u16(),s=e.u16(),a=(192&s)>>6,u=15&s,c=[];for(let s=0;s=i)return e.seek_start(r),u(e,t);a=n}return s}function u(e,t){const i=[];for(let s=0;sd.quest_editor_store.undo.make_current(),!0),this.renderer_view.start_rendering(),this.disposables(a.gui_store.tool.observe(({value:e})=>{e===a.GuiTool.QuestEditor?this.renderer_view.start_rendering():this.renderer_view.stop_rendering()})),this.finalize_construction(l.prototype)}resize(e,t){return super.resize(e,t),this.renderer_view.resize(e,t),this}}t.QuestRendererView=l},WJtm:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid"),o=i("FXpb"),s=i("yar8"),r=i("sMN3"),a=i("ouMO"),d=i("nsCy"),l=i("xs7i");i("a0xr");const u=i("ExVU");class c extends n.Widget{constructor(){super(o.el.div({class:"hunt_optimizer_OptimizationResultView"},o.el.h2({text:"Ideal Combination of Methods"}))),this.disposable(r.hunt_optimizer_stores.observe_current(e=>{this.results_observer&&this.results_observer.dispose(),this.results_observer=e.result.observe(({value:e})=>this.update_table(e),{call_now:!0})},{call_now:!0})),this.finalize_construction(c.prototype)}dispose(){super.dispose(),this.results_observer&&this.results_observer.dispose(),this.table&&this.table.dispose()}update_table(e){this.table&&this.table.dispose();let t=0,i=u.Duration.fromMillis(0);if(e)for(const n of e.optimal_methods)t+=n.runs,i=i.plus(n.total_time);const n=[{title:"Difficulty",fixed:!0,width:80,render_cell:e=>d.Difficulty[e.difficulty],footer:{render_cell:()=>"Totals:"}},{title:"Method",fixed:!0,width:250,render_cell:e=>e.method_name},{title:"Ep.",fixed:!0,width:40,render_cell:e=>l.Episode[e.method_episode]},{title:"Section ID",fixed:!0,width:90,render_cell(e){const t=o.el.span({},...e.section_ids.map(e=>o.section_id_icon(e,{size:17})));return t.style.display="flex",t}},{title:"Time/Run",width:90,text_align:"center",render_cell:e=>e.method_time.toFormat("hh:mm")},{title:"Runs",width:60,text_align:"right",render_cell:e=>e.runs.toFixed(1),tooltip:e=>e.runs.toString(),footer:{render_cell:()=>t.toFixed(1),tooltip:()=>t.toString()}},{title:"Total Hours",width:60,text_align:"right",render_cell:e=>e.total_time.as("hours").toFixed(1),tooltip:e=>e.total_time.as("hours").toString(),footer:{render_cell:()=>i.as("hours").toFixed(1),tooltip:()=>i.as("hours").toString()}}];if(e)for(const t of e.wanted_items){let i=0;for(const n of e.optimal_methods)i+=n.item_counts.get(t)||0;n.push({title:t.name,width:80,text_align:"right",render_cell(e){const i=e.item_counts.get(t);return i?i.toFixed(2):""},tooltip(e){const i=e.item_counts.get(t);return i?i.toString():""},footer:{render_cell:()=>i.toFixed(2),tooltip:()=>i.toString()}})}this.table=new s.Table({class:"hunt_optimizer_OptimizationResultView_table",values:e?a.list_property(void 0,...e.optimal_methods):a.list_property(),columns:n}),this.element.append(this.table.element)}}t.OptimizationResultView=c},XDYw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("yRp4"),o=i("4mUz");t.parse_area_collision_geometry=function(e){const{data_offset:t}=o.parse_rel(e,!1);e.seek_start(t);const i=e.u32();e.seek_start(i);const s={meshes:[]};for(;e.bytes_left;){const t=e.position,i=e.u32();if(0===i)break;const o={vertices:[],triangles:[]};s.meshes.push(o),e.seek_start(i);const r=e.u32(),a=e.u32(),d=e.u32(),l=e.u32();e.seek_start(a);for(let t=0;t({type:O(e,t),area_id:t.area_id,section_id:t.section_id,position:t.position,rotation:t.rotation,scale:t.scale,unknown:t.unknown,pso_type_id:t.type_id,npc_id:t.npc_id,script_label:Math.round(t.script_label),roaming:t.roaming}))}function O(e,{type_id:t,scale:i,roaming:n,area_id:o}){const s=Math.abs(i.y-1)>1e-5;switch(`${t}, ${n%3}, ${e}`){case"68, 0, 1":return m.NpcType.Booma;case"68, 1, 1":return m.NpcType.Gobooma;case"68, 2, 1":return m.NpcType.Gigobooma;case"99, 0, 1":return m.NpcType.EvilShark;case"99, 1, 1":return m.NpcType.PalShark;case"99, 2, 1":return m.NpcType.GuilShark;case"166, 0, 1":return m.NpcType.Dimenian;case"166, 0, 2":return m.NpcType.Dimenian2;case"166, 1, 1":return m.NpcType.LaDimenian;case"166, 1, 2":return m.NpcType.LaDimenian2;case"166, 2, 1":return m.NpcType.SoDimenian;case"166, 2, 2":return m.NpcType.SoDimenian2;case"214, 0, 2":return m.NpcType.Mericarol;case"214, 1, 2":return m.NpcType.Mericus;case"214, 2, 2":return m.NpcType.Merikle;case"277, 0, 4":return m.NpcType.Boota;case"277, 1, 4":return m.NpcType.ZeBoota;case"277, 2, 4":return m.NpcType.BaBoota;case"279, 0, 4":return m.NpcType.Goran;case"279, 1, 4":return m.NpcType.PyroGoran;case"279, 2, 4":return m.NpcType.GoranDetonator}switch(`${t}, ${n%2}, ${e}`){case"64, 0, 1":return m.NpcType.Hildebear;case"64, 0, 2":return m.NpcType.Hildebear2;case"64, 1, 1":return m.NpcType.Hildeblue;case"64, 1, 2":return m.NpcType.Hildeblue2;case"65, 0, 1":return m.NpcType.RagRappy;case"65, 0, 2":return m.NpcType.RagRappy2;case"65, 0, 4":return m.NpcType.SandRappy;case"65, 1, 1":return m.NpcType.AlRappy;case"65, 1, 2":return m.NpcType.LoveRappy;case"65, 1, 4":return m.NpcType.DelRappy;case"128, 0, 1":return m.NpcType.Dubchic;case"128, 0, 2":return m.NpcType.Dubchic2;case"128, 1, 1":return m.NpcType.Gilchic;case"128, 1, 2":return m.NpcType.Gilchic2;case"212, 0, 2":return m.NpcType.SinowBerill;case"212, 1, 2":return m.NpcType.SinowSpigell;case"213, 0, 2":return m.NpcType.Merillia;case"213, 1, 2":return m.NpcType.Meriltas;case"215, 0, 2":return m.NpcType.UlGibbon;case"215, 1, 2":return m.NpcType.ZolGibbon;case"221, 0, 2":return m.NpcType.Dolmolm;case"221, 1, 2":return m.NpcType.Dolmdarl;case"224, 0, 2":return o>15?m.NpcType.Epsilon:m.NpcType.SinowZoa;case"224, 1, 2":return o>15?m.NpcType.Epsilon:m.NpcType.SinowZele;case"274, 0, 4":return m.NpcType.MerissaA;case"274, 1, 4":return m.NpcType.MerissaAA;case"276, 0, 4":return m.NpcType.Zu;case"276, 1, 4":return m.NpcType.Pazuzu;case"278, 0, 4":return m.NpcType.Dorphon;case"278, 1, 4":return m.NpcType.DorphonEclair;case"281, 0, 4":return s?m.NpcType.SaintMilion:m.NpcType.Kondrieu;case"281, 1, 4":return s?m.NpcType.Shambertin:m.NpcType.Kondrieu}switch(`${t}, ${e}`){case"66, 1":return m.NpcType.Monest;case"66, 2":return m.NpcType.Monest2;case"67, 1":return s?m.NpcType.SavageWolf:m.NpcType.BarbarousWolf;case"67, 2":return s?m.NpcType.SavageWolf2:m.NpcType.BarbarousWolf2;case"96, 1":return m.NpcType.GrassAssassin;case"96, 2":return m.NpcType.GrassAssassin2;case"97, 1":return o>15?m.NpcType.DelLily:s?m.NpcType.PoisonLily:m.NpcType.NarLily;case"97, 2":return o>15?m.NpcType.DelLily:s?m.NpcType.PoisonLily2:m.NpcType.NarLily2;case"98, 1":return m.NpcType.NanoDragon;case"100, 1":return s?m.NpcType.PofuillySlime:m.NpcType.PouillySlime;case"101, 1":return m.NpcType.PanArms;case"101, 2":return m.NpcType.PanArms2;case"129, 1":return m.NpcType.Garanz;case"129, 2":return m.NpcType.Garanz2;case"130, 1":return s?m.NpcType.SinowBeat:m.NpcType.SinowGold;case"131, 1":return m.NpcType.Canadine;case"132, 1":return m.NpcType.Canane;case"133, 1":return m.NpcType.Dubswitch;case"133, 2":return m.NpcType.Dubswitch2;case"160, 1":return m.NpcType.Delsaber;case"160, 2":return m.NpcType.Delsaber2;case"161, 1":return m.NpcType.ChaosSorcerer;case"161, 2":return m.NpcType.ChaosSorcerer2;case"162, 1":return m.NpcType.DarkGunner;case"164, 1":return m.NpcType.ChaosBringer;case"165, 1":return m.NpcType.DarkBelra;case"165, 2":return m.NpcType.DarkBelra2;case"167, 1":return m.NpcType.Bulclaw;case"168, 1":return m.NpcType.Claw;case"192, 1":return m.NpcType.Dragon;case"192, 2":return m.NpcType.GalGryphon;case"193, 1":return m.NpcType.DeRolLe;case"197, 1":return m.NpcType.VolOpt;case"200, 1":return m.NpcType.DarkFalz;case"202, 2":return m.NpcType.OlgaFlow;case"203, 2":return m.NpcType.BarbaRay;case"204, 2":return m.NpcType.GolDragon;case"216, 2":return m.NpcType.Gibbles;case"217, 2":return m.NpcType.Gee;case"218, 2":return m.NpcType.GiGue;case"219, 2":return m.NpcType.Deldepth;case"220, 2":return m.NpcType.Delbiter;case"222, 2":return m.NpcType.Morfos;case"223, 2":return m.NpcType.Recobox;case"225, 2":return m.NpcType.IllGill;case"272, 4":return m.NpcType.Astark;case"273, 4":return s?m.NpcType.SatelliteLizard:m.NpcType.Yowie;case"275, 4":return m.NpcType.Girtablulu}switch(t){case 4:return m.NpcType.FemaleFat;case 5:return m.NpcType.FemaleMacho;case 7:return m.NpcType.FemaleTall;case 10:return m.NpcType.MaleDwarf;case 11:return m.NpcType.MaleFat;case 12:return m.NpcType.MaleMacho;case 13:return m.NpcType.MaleOld;case 25:return m.NpcType.BlueSoldier;case 26:return m.NpcType.RedSoldier;case 27:return m.NpcType.Principal;case 28:return m.NpcType.Tekker;case 29:return m.NpcType.GuildLady;case 30:return m.NpcType.Scientist;case 31:return m.NpcType.Nurse;case 32:return m.NpcType.Irene;case 241:return m.NpcType.ItemShop;case 254:return m.NpcType.Nurse2}return m.NpcType.Unknown}function b(e){const t=new DataView(new ArrayBuffer(4));return e.map(e=>{const i=function(e){switch(e){default:throw new Error(`Unexpected type ${m.NpcType[e]}.`);case m.NpcType.Unknown:return;case m.NpcType.FemaleFat:return{type_id:4,roaming:0,regular:!0};case m.NpcType.FemaleMacho:return{type_id:5,roaming:0,regular:!0};case m.NpcType.FemaleTall:return{type_id:7,roaming:0,regular:!0};case m.NpcType.MaleDwarf:return{type_id:10,roaming:0,regular:!0};case m.NpcType.MaleFat:return{type_id:11,roaming:0,regular:!0};case m.NpcType.MaleMacho:return{type_id:12,roaming:0,regular:!0};case m.NpcType.MaleOld:return{type_id:13,roaming:0,regular:!0};case m.NpcType.BlueSoldier:return{type_id:25,roaming:0,regular:!0};case m.NpcType.RedSoldier:return{type_id:26,roaming:0,regular:!0};case m.NpcType.Principal:return{type_id:27,roaming:0,regular:!0};case m.NpcType.Tekker:return{type_id:28,roaming:0,regular:!0};case m.NpcType.GuildLady:return{type_id:29,roaming:0,regular:!0};case m.NpcType.Scientist:return{type_id:30,roaming:0,regular:!0};case m.NpcType.Nurse:return{type_id:31,roaming:0,regular:!0};case m.NpcType.Irene:return{type_id:32,roaming:0,regular:!0};case m.NpcType.ItemShop:return{type_id:241,roaming:0,regular:!0};case m.NpcType.Nurse2:return{type_id:254,roaming:0,regular:!0};case m.NpcType.Hildebear:return{type_id:64,roaming:0,regular:!0};case m.NpcType.Hildeblue:return{type_id:64,roaming:1,regular:!0};case m.NpcType.RagRappy:return{type_id:65,roaming:0,regular:!0};case m.NpcType.AlRappy:return{type_id:65,roaming:1,regular:!0};case m.NpcType.Monest:return{type_id:66,roaming:0,regular:!0};case m.NpcType.SavageWolf:return{type_id:67,roaming:0,regular:!0};case m.NpcType.BarbarousWolf:return{type_id:67,roaming:0,regular:!1};case m.NpcType.Booma:return{type_id:68,roaming:0,regular:!0};case m.NpcType.Gobooma:return{type_id:68,roaming:1,regular:!0};case m.NpcType.Gigobooma:return{type_id:68,roaming:2,regular:!0};case m.NpcType.Dragon:return{type_id:192,roaming:0,regular:!0};case m.NpcType.GrassAssassin:return{type_id:96,roaming:0,regular:!0};case m.NpcType.PoisonLily:return{type_id:97,roaming:0,regular:!0};case m.NpcType.NarLily:return{type_id:97,roaming:1,regular:!0};case m.NpcType.NanoDragon:return{type_id:98,roaming:0,regular:!0};case m.NpcType.EvilShark:return{type_id:99,roaming:0,regular:!0};case m.NpcType.PalShark:return{type_id:99,roaming:1,regular:!0};case m.NpcType.GuilShark:return{type_id:99,roaming:2,regular:!0};case m.NpcType.PofuillySlime:return{type_id:100,roaming:0,regular:!0};case m.NpcType.PouillySlime:return{type_id:100,roaming:0,regular:!1};case m.NpcType.PanArms:return{type_id:101,roaming:0,regular:!0};case m.NpcType.DeRolLe:return{type_id:193,roaming:0,regular:!0};case m.NpcType.Dubchic:return{type_id:128,roaming:0,regular:!0};case m.NpcType.Gilchic:return{type_id:128,roaming:1,regular:!0};case m.NpcType.Garanz:return{type_id:129,roaming:0,regular:!0};case m.NpcType.SinowBeat:return{type_id:130,roaming:0,regular:!0};case m.NpcType.SinowGold:return{type_id:130,roaming:0,regular:!1};case m.NpcType.Canadine:return{type_id:131,roaming:0,regular:!0};case m.NpcType.Canane:return{type_id:132,roaming:0,regular:!0};case m.NpcType.Dubswitch:return{type_id:133,roaming:0,regular:!0};case m.NpcType.VolOpt:return{type_id:197,roaming:0,regular:!0};case m.NpcType.Delsaber:return{type_id:160,roaming:0,regular:!0};case m.NpcType.ChaosSorcerer:return{type_id:161,roaming:0,regular:!0};case m.NpcType.DarkGunner:return{type_id:162,roaming:0,regular:!0};case m.NpcType.ChaosBringer:return{type_id:164,roaming:0,regular:!0};case m.NpcType.DarkBelra:return{type_id:165,roaming:0,regular:!0};case m.NpcType.Dimenian:return{type_id:166,roaming:0,regular:!0};case m.NpcType.LaDimenian:return{type_id:166,roaming:1,regular:!0};case m.NpcType.SoDimenian:return{type_id:166,roaming:2,regular:!0};case m.NpcType.Bulclaw:return{type_id:167,roaming:0,regular:!0};case m.NpcType.Claw:return{type_id:168,roaming:0,regular:!0};case m.NpcType.DarkFalz:return{type_id:200,roaming:0,regular:!0};case m.NpcType.Hildebear2:return{type_id:64,roaming:0,regular:!0};case m.NpcType.Hildeblue2:return{type_id:64,roaming:1,regular:!0};case m.NpcType.RagRappy2:return{type_id:65,roaming:0,regular:!0};case m.NpcType.LoveRappy:return{type_id:65,roaming:1,regular:!0};case m.NpcType.Monest2:return{type_id:66,roaming:0,regular:!0};case m.NpcType.PoisonLily2:return{type_id:97,roaming:0,regular:!0};case m.NpcType.NarLily2:return{type_id:97,roaming:1,regular:!0};case m.NpcType.GrassAssassin2:return{type_id:96,roaming:0,regular:!0};case m.NpcType.Dimenian2:return{type_id:166,roaming:0,regular:!0};case m.NpcType.LaDimenian2:return{type_id:166,roaming:1,regular:!0};case m.NpcType.SoDimenian2:return{type_id:166,roaming:2,regular:!0};case m.NpcType.DarkBelra2:return{type_id:165,roaming:0,regular:!0};case m.NpcType.BarbaRay:return{type_id:203,roaming:0,regular:!0};case m.NpcType.SavageWolf2:return{type_id:67,roaming:0,regular:!0};case m.NpcType.BarbarousWolf2:return{type_id:67,roaming:0,regular:!1};case m.NpcType.PanArms2:return{type_id:101,roaming:0,regular:!0};case m.NpcType.Dubchic2:return{type_id:128,roaming:0,regular:!0};case m.NpcType.Gilchic2:return{type_id:128,roaming:1,regular:!0};case m.NpcType.Garanz2:return{type_id:129,roaming:0,regular:!0};case m.NpcType.Dubswitch2:return{type_id:133,roaming:0,regular:!0};case m.NpcType.Delsaber2:return{type_id:160,roaming:0,regular:!0};case m.NpcType.ChaosSorcerer2:return{type_id:161,roaming:0,regular:!0};case m.NpcType.GolDragon:return{type_id:204,roaming:0,regular:!0};case m.NpcType.SinowBerill:return{type_id:212,roaming:0,regular:!0};case m.NpcType.SinowSpigell:return{type_id:212,roaming:1,regular:!0};case m.NpcType.Merillia:return{type_id:213,roaming:0,regular:!0};case m.NpcType.Meriltas:return{type_id:213,roaming:1,regular:!0};case m.NpcType.Mericarol:return{type_id:214,roaming:0,regular:!0};case m.NpcType.Mericus:return{type_id:214,roaming:1,regular:!0};case m.NpcType.Merikle:return{type_id:214,roaming:2,regular:!0};case m.NpcType.UlGibbon:return{type_id:215,roaming:0,regular:!0};case m.NpcType.ZolGibbon:return{type_id:215,roaming:1,regular:!0};case m.NpcType.Gibbles:return{type_id:216,roaming:0,regular:!0};case m.NpcType.Gee:return{type_id:217,roaming:0,regular:!0};case m.NpcType.GiGue:return{type_id:218,roaming:0,regular:!0};case m.NpcType.GalGryphon:return{type_id:192,roaming:0,regular:!0};case m.NpcType.Deldepth:return{type_id:219,roaming:0,regular:!0};case m.NpcType.Delbiter:return{type_id:220,roaming:0,regular:!0};case m.NpcType.Dolmolm:return{type_id:221,roaming:0,regular:!0};case m.NpcType.Dolmdarl:return{type_id:221,roaming:1,regular:!0};case m.NpcType.Morfos:return{type_id:222,roaming:0,regular:!0};case m.NpcType.Recobox:return{type_id:223,roaming:0,regular:!0};case m.NpcType.Epsilon:case m.NpcType.SinowZoa:return{type_id:224,roaming:0,regular:!0};case m.NpcType.SinowZele:return{type_id:224,roaming:1,regular:!0};case m.NpcType.IllGill:return{type_id:225,roaming:0,regular:!0};case m.NpcType.DelLily:return{type_id:97,roaming:0,regular:!0};case m.NpcType.OlgaFlow:return{type_id:202,roaming:0,regular:!0};case m.NpcType.SandRappy:return{type_id:65,roaming:0,regular:!0};case m.NpcType.DelRappy:return{type_id:65,roaming:1,regular:!0};case m.NpcType.Astark:return{type_id:272,roaming:0,regular:!0};case m.NpcType.SatelliteLizard:return{type_id:273,roaming:0,regular:!0};case m.NpcType.Yowie:return{type_id:273,roaming:0,regular:!1};case m.NpcType.MerissaA:return{type_id:274,roaming:0,regular:!0};case m.NpcType.MerissaAA:return{type_id:274,roaming:1,regular:!0};case m.NpcType.Girtablulu:return{type_id:275,roaming:0,regular:!0};case m.NpcType.Zu:return{type_id:276,roaming:0,regular:!0};case m.NpcType.Pazuzu:return{type_id:276,roaming:1,regular:!0};case m.NpcType.Boota:return{type_id:277,roaming:0,regular:!0};case m.NpcType.ZeBoota:return{type_id:277,roaming:1,regular:!0};case m.NpcType.BaBoota:return{type_id:277,roaming:2,regular:!0};case m.NpcType.Dorphon:return{type_id:278,roaming:0,regular:!0};case m.NpcType.DorphonEclair:return{type_id:278,roaming:1,regular:!0};case m.NpcType.Goran:return{type_id:279,roaming:0,regular:!0};case m.NpcType.PyroGoran:return{type_id:279,roaming:1,regular:!0};case m.NpcType.GoranDetonator:return{type_id:279,roaming:2,regular:!0};case m.NpcType.SaintMilion:return{type_id:281,roaming:0,regular:!0};case m.NpcType.Shambertin:return{type_id:281,roaming:1,regular:!0};case m.NpcType.Kondrieu:return{type_id:281,roaming:0,regular:!1}}}(e.type)||{type_id:e.pso_type_id,roaming:e.roaming,regular:!0};t.setFloat32(0,e.scale.y),t.setUint32(0,-8388609&t.getUint32(0)|(i.regular?0:8388608));const n=t.getFloat32(0);let o=new _.Vec3(e.scale.x,n,e.scale.z);return{type_id:i.type_id,section_id:e.section_id,position:e.position,rotation:e.rotation,scale:o,npc_id:e.npc_id,script_label:e.script_label,roaming:i.roaming,area_id:e.area_id,unknown:e.unknown}})}t.parse_quest=function(e,t=!1){const i=f.parse_qst(e);if(!i)return;let n,o;for(const e of i.files){const t=e.name.trim().toLowerCase();t.endsWith(".dat")?n=e:t.endsWith(".bin")&&(o=e)}if(!n)return void g.error("File contains no DAT file.");if(!o)return void g.error("File contains no BIN file.");const a=d.prs_decompress(new l.ArrayBufferCursor(n.data,c.Endianness.Little)),u=v.parse_dat(a),_=u.objs.map(e=>{const t=w.pso_id_to_object_type(e.type_id);return{type:t,id:e.id,group_id:e.group_id,area_id:e.area_id,section_id:e.section_id,position:e.position,rotation:e.rotation,properties:new Map(e.properties.map((e,i)=>3!==i||t!==w.ObjectType.ScriptCollision&&t!==w.ObjectType.ForestConsole&&t!==w.ObjectType.TalkLinkToSupport?4===i&&t===w.ObjectType.RicoMessagePod?["script_label",e]:5===i&&t===w.ObjectType.RicoMessagePod?["script_label_2",e]:[`property_${i}`,e]:["script_label",e])),unknown:e.unknown}}),m=d.prs_decompress(new l.ArrayBufferCursor(o.data,c.Endianness.Little)),O=p.parse_bin(m,function(e,t){const i=new Set([0]);for(const t of e){const e=t.properties.get("script_label");null!=e&&i.add(e);const n=t.properties.get("script_label_2");null!=n&&i.add(n)}for(const e of t)i.add(Math.round(e.script_label));return[...i]}(_,u.npcs),t);let b=h.Episode.I,E=new Map;if(O.object_code.length){let e;for(const t of O.object_code)if(t.type===s.SegmentType.Instructions&&t.labels.includes(0)){e=t;break}e?(b=function(e){const t=e.find(e=>e.opcode===r.Opcode.SET_EPISODE);if(!t)return g.debug("Function 0 has no set_episode instruction."),h.Episode.I;switch(t.args[0].value){default:case 0:return h.Episode.I;case 1:return h.Episode.II;case 2:return h.Episode.IV}}(e.instructions),E=function(e,t,i){const n=new Map;for(const e of i)e.opcode===r.Opcode.BB_MAP_DESIGNATE&&n.set(e.args[0].value,e.args[2].value);return n}(0,0,e.instructions)):g.warn("No instruction for label 0 found.")}else g.warn("File contains no instruction labels.");return{id:O.quest_id,language:O.language,name:O.quest_name,short_description:O.short_description,long_description:O.long_description,episode:b,objects:_,npcs:y(b,u.npcs),dat_unknowns:u.unknowns,object_code:O.object_code,shop_items:O.shop_items,map_designations:E}},t.write_quest_qst=function(e,t){const i=v.write_dat({objs:(n=e.objects,n.map(e=>({type_id:w.object_data(e.type).pso_id,id:e.id,group_id:e.group_id,section_id:e.section_id,position:e.position,rotation:e.rotation,properties:[...e.properties.values()],area_id:e.area_id,unknown:e.unknown}))),npcs:b(e.npcs),unknowns:e.dat_unknowns});var n;const o=p.write_bin(new p.BinFile(e.id,e.language,e.name,e.short_description,e.long_description,e.object_code,e.shop_items)),s=t.lastIndexOf("."),r=-1===s?t.slice(0,11):t.slice(0,Math.min(11,s));return f.write_qst({files:[{name:r+".dat",id:e.id,data:a.prs_compress(new u.ResizableBufferCursor(i,c.Endianness.Little)).array_buffer()},{name:r+".bin",id:e.id,data:a.prs_compress(new l.ArrayBufferCursor(o,c.Endianness.Little)).array_buffer()}]})}},Y3Jw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nN8q"),o=i("FXpb");i("8TW1");class s extends n.ResizableWidget{constructor(e,t){super(o.create_element("ul",{class:"viewer_Model3DSelectListView"})),this.models=e,this.selected=t,this.list_click=e=>{if(e.target instanceof HTMLLIElement&&e.target.dataset.index){this.selected_element&&this.selected_element.classList.remove("active"),e.target.classList.add("active");const t=parseInt(e.target.dataset.index,10);this.selected_element=e.target,this.selected.val=this.models[t]}},this.element.onclick=this.list_click,e.forEach((e,t)=>{this.element.append(o.create_element("li",{text:e.name,data:{index:t.toString()}}))}),this.disposable(t.observe(({value:e})=>{if(this.selected_element&&(this.selected_element.classList.remove("active"),this.selected_element=void 0),e&&e!==this.selected_model){const t=this.models.indexOf(e);-1!==t&&(this.selected_element=this.element.childNodes[t],this.selected_element.classList.add("active"))}})),this.finalize_construction(s.prototype)}set borders(e){e?(this.element.style.borderLeft="var(--border)",this.element.style.borderRight="var(--border)"):(this.element.style.borderLeft="none",this.element.style.borderRight="none")}}t.Model3DSelectListView=s},YkZX:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Ftn7"),o=i("Womt"),s=i("c5EP"),r=i("3CEK"),a=i("Tpfs"),d=i("Gc0Z");t.QuestRenderer=class extends n.Renderer{constructor(){super(new o.PerspectiveCamera(60,1,10,1e4)),this._collision_geometry=new o.Object3D,this._render_geometry=new o.Object3D,this._entity_models=new o.Object3D,this.disposer=new a.Disposer,this.entity_to_mesh=new Map,this.model_manager=this.disposer.add(new r.QuestModelManager(this)),this.entity_controls=this.disposer.add(new d.QuestEntityControls(this)),this.load_models=()=>{this.model_manager.load_models(s.quest_editor_store.current_quest.val,s.quest_editor_store.current_area.val)},this.perspective_camera=this.camera,this.disposer.add_all(s.quest_editor_store.current_quest.observe(this.load_models),s.quest_editor_store.current_area.observe(this.load_models),s.quest_editor_store.debug.observe(({value:e})=>this.debug=e)),this.dom_element.addEventListener("mousedown",this.entity_controls.on_mouse_down),this.dom_element.addEventListener("mouseup",this.entity_controls.on_mouse_up),this.dom_element.addEventListener("mousemove",this.entity_controls.on_mouse_move)}get debug(){return super.debug}set debug(e){this.debug!==e&&(super.debug=e,this._render_geometry.visible=e,this.schedule_render())}get collision_geometry(){return this._collision_geometry}set collision_geometry(e){this.scene.remove(this.collision_geometry),this._collision_geometry=e,this.scene.add(e)}get render_geometry(){return this._render_geometry}set render_geometry(e){this.scene.remove(this._render_geometry),this._render_geometry=e,e.visible=this.debug,this.scene.add(e)}get entity_models(){return this._entity_models}dispose(){super.dispose(),this.disposer.dispose()}set_size(e,t){this.perspective_camera.aspect=e/t,this.perspective_camera.updateProjectionMatrix(),super.set_size(e,t)}reset_entity_models(){this.scene.remove(this._entity_models),this._entity_models=new o.Group,this.scene.add(this._entity_models),this.entity_to_mesh.clear()}add_entity_model(e){const t=e.userData.entity;this._entity_models.add(e),this.entity_to_mesh.set(t,e),t===s.quest_editor_store.selected_entity.val&&this.entity_controls.try_highlight(t),this.schedule_render()}get_entity_mesh(e){return this.entity_to_mesh.get(e)}}},Yq7v:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nN8q"),o=i("FXpb"),s=i("5aKR"),r=i("c5EP"),a=i("IjTL"),d=i("yQqj");i("egRq");const l=i("PE7g"),u=i("Tpfs"),c=i("yRp4");class _ extends n.ResizableWidget{constructor(){super(o.el.div({class:"quest_editor_EntityInfoView",tab_index:-1})),this.no_entity_view=new s.DisabledView("No entity selected."),this.table_element=o.el.table(),this.pos_x_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.pos_y_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.pos_z_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.world_pos_x_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.world_pos_y_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.world_pos_z_element=this.disposable(new l.NumberInput(0,{width:80,round_to:3})),this.entity_disposer=new u.Disposer;const e=r.quest_editor_store.selected_entity,t=e.map(e=>null==e),i="quest_editor_EntityInfoView_coord";this.table_element.append(o.el.tr({},o.el.th({text:"Type:"}),this.type_element=o.el.td()),o.el.tr({},o.el.th({text:"Name:"}),this.name_element=o.el.td()),o.el.tr({},o.el.th({text:"Section:"}),this.section_id_element=o.el.td()),o.el.tr({},o.el.th({text:"Section position:",col_span:2})),o.el.tr({},o.el.th({text:"X:",class:i}),o.el.td({},this.pos_x_element.element)),o.el.tr({},o.el.th({text:"Y:",class:i}),o.el.td({},this.pos_y_element.element)),o.el.tr({},o.el.th({text:"Z:",class:i}),o.el.td({},this.pos_z_element.element)),o.el.tr({},o.el.th({text:"World position:",col_span:2})),o.el.tr({},o.el.th({text:"X:",class:i}),o.el.td({},this.world_pos_x_element.element)),o.el.tr({},o.el.th({text:"Y:",class:i}),o.el.td({},this.world_pos_y_element.element)),o.el.tr({},o.el.th({text:"Z:",class:i}),o.el.td({},this.world_pos_z_element.element))),this.element.append(this.table_element,this.no_entity_view.element),this.element.addEventListener("focus",()=>r.quest_editor_store.undo.make_current(),!0),this.bind_hidden(this.table_element,t),this.disposables(this.no_entity_view.visible.bind_to(t),e.observe(({value:e})=>{if(this.entity_disposer.dispose_all(),e){this.type_element.innerText=e instanceof a.QuestNpcModel?"NPC":"Object";const t=d.entity_data(e.type).name;this.name_element.innerText=t,this.name_element.title=t,this.entity_disposer.add(e.section_id.observe(({value:e})=>{this.section_id_element.innerText=e.toString()},{call_now:!0})),this.observe(e,e.position,!1,this.pos_x_element,this.pos_y_element,this.pos_z_element),this.observe(e,e.world_position,!0,this.world_pos_x_element,this.world_pos_y_element,this.world_pos_z_element)}})),this.finalize_construction(_.prototype)}dispose(){super.dispose(),this.entity_disposer.dispose()}observe(e,t,i,n,o,s){this.entity_disposer.add_all(t.observe(({value:{x:e,y:t,z:i}})=>{n.value.val=e,o.value.val=t,s.value.val=i},{call_now:!0}),n.value.observe(({value:n})=>r.quest_editor_store.push_translate_entity_action(e,e.section.val,e.section.val,t.val,new c.Vec3(n,t.val.y,t.val.z),i)),o.value.observe(({value:n})=>r.quest_editor_store.push_translate_entity_action(e,e.section.val,e.section.val,t.val,new c.Vec3(t.val.x,n,t.val.z),i)),s.value.observe(({value:n})=>r.quest_editor_store.push_translate_entity_action(e,e.section.val,e.section.val,t.val,new c.Vec3(t.val.x,t.val.y,n),i)))}}t.EntityInfoView=_},Yuai:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.load_array_buffer=function(e){return n(this,void 0,void 0,function*(){return(yield fetch("/assets"+e)).arrayBuffer()})}},ZPAt:function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(n=t.Kind||(t.Kind={}));const o={kind:n.Any},s={kind:n.Byte},r={kind:n.Word},a={kind:n.DWord},d={kind:n.Float},l={kind:n.Label},u={kind:n.ILabel},c={kind:n.DLabel},_={kind:n.SLabel},p={kind:n.String},v={kind:n.ILabelVar},h={kind:n.RegRef},w={kind:n.RegRefVar},f={kind:n.Pointer};var m,g;t.MIN_SIGNED_DWORD_VALUE=-Math.pow(2,31),t.MAX_SIGNED_DWORD_VALUE=Math.pow(2,31)-1,t.MIN_UNSIGNED_DWORD_VALUE=0,t.MAX_UNSIGNED_DWORD_VALUE=Math.pow(2,32)-1,t.MIN_DWORD_VALUE=t.MIN_SIGNED_DWORD_VALUE,t.MAX_DWORD_VALUE=t.MAX_UNSIGNED_DWORD_VALUE,function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(m=t.ParamAccess||(t.ParamAccess={}));class y{constructor(e,t,i){this.type=e,this.doc=t,this.access=i}}t.Param=y,function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(g=t.StackInteraction||(t.StackInteraction={})),t.OPCODES=[],t.OPCODES_BY_MNEMONIC=new Map;class O{constructor(e,t,i,n,o){this.code=e,this.mnemonic=t,this.doc=i,this.size=this.code<256?1:2,this.params=n,this.stack=o}}O.NOP=t.OPCODES[0]=new O(0,"nop","No operation, does nothing.",[],void 0),O.RET=t.OPCODES[1]=new O(1,"ret","Returns control to caller.",[],void 0),O.SYNC=t.OPCODES[2]=new O(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),O.EXIT=t.OPCODES[3]=new O(3,"exit",void 0,[new y(a,void 0,void 0)],g.Pop),O.THREAD=t.OPCODES[4]=new O(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new y(u,void 0,void 0)],void 0),O.VA_START=t.OPCODES[5]=new O(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),O.VA_END=t.OPCODES[6]=new O(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),O.VA_CALL=t.OPCODES[7]=new O(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new y(u,void 0,void 0)],void 0),O.LET=t.OPCODES[8]=new O(8,"let","Sets the first register's value to second one's value.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.LETI=t.OPCODES[9]=new O(9,"leti","Sets a register to the given value.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.LETB=t.OPCODES[10]=new O(10,"letb","Sets a register to the given value.",[new y({kind:n.RegTupRef,register_tuples:[new y(s,void 0,m.Write)]},void 0,void 0),new y(s,void 0,void 0)],void 0),O.LETW=t.OPCODES[11]=new O(11,"letw","Sets a register to the given value.",[new y({kind:n.RegTupRef,register_tuples:[new y(r,void 0,m.Write)]},void 0,void 0),new y(r,void 0,void 0)],void 0),O.LETA=t.OPCODES[12]=new O(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new y({kind:n.RegTupRef,register_tuples:[new y(f,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.LETO=t.OPCODES[13]=new O(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new y({kind:n.RegTupRef,register_tuples:[new y(f,void 0,m.Write)]},void 0,void 0),new y(l,void 0,void 0)],void 0),O.UNKNOWN_0E=t.OPCODES[14]=new O(14,"unknown_0e",void 0,[],void 0),O.UNKNOWN_0F=t.OPCODES[15]=new O(15,"unknown_0f",void 0,[],void 0),O.SET=t.OPCODES[16]=new O(16,"set","Sets a register to 1.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.CLEAR=t.OPCODES[17]=new O(17,"clear","Sets a register to 0.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.REV=t.OPCODES[18]=new O(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.ReadWrite)]},void 0,void 0)],void 0),O.GSET=t.OPCODES[19]=new O(19,"gset",void 0,[new y(r,void 0,void 0)],void 0),O.GCLEAR=t.OPCODES[20]=new O(20,"gclear",void 0,[new y(r,void 0,void 0)],void 0),O.GREV=t.OPCODES[21]=new O(21,"grev",void 0,[new y(r,void 0,void 0)],void 0),O.GLET=t.OPCODES[22]=new O(22,"glet",void 0,[new y(r,void 0,void 0)],void 0),O.GGET=t.OPCODES[23]=new O(23,"gget","Sets a register to value of the given flag.",[new y(r,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(r,void 0,m.Write)]},void 0,void 0)],void 0),O.ADD=t.OPCODES[24]=new O(24,"add",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.ADDI=t.OPCODES[25]=new O(25,"addi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.SUB=t.OPCODES[26]=new O(26,"sub",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.SUBI=t.OPCODES[27]=new O(27,"subi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.MUL=t.OPCODES[28]=new O(28,"mul",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.MULI=t.OPCODES[29]=new O(29,"muli",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.DIV=t.OPCODES[30]=new O(30,"div",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.DIVI=t.OPCODES[31]=new O(31,"divi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.AND=t.OPCODES[32]=new O(32,"and",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.ANDI=t.OPCODES[33]=new O(33,"andi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.OR=t.OPCODES[34]=new O(34,"or",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.ORI=t.OPCODES[35]=new O(35,"ori",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.XOR=t.OPCODES[36]=new O(36,"xor",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.XORI=t.OPCODES[37]=new O(37,"xori",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.MOD=t.OPCODES[38]=new O(38,"mod",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.MODI=t.OPCODES[39]=new O(39,"modi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.JMP=t.OPCODES[40]=new O(40,"jmp",void 0,[new y(u,void 0,void 0)],void 0),O.CALL=t.OPCODES[41]=new O(41,"call",void 0,[new y(u,void 0,void 0)],void 0),O.JMP_ON=t.OPCODES[42]=new O(42,"jmp_on",void 0,[new y(u,void 0,void 0),new y(w,void 0,m.Read)],void 0),O.JMP_OFF=t.OPCODES[43]=new O(43,"jmp_off",void 0,[new y(u,void 0,void 0),new y(w,void 0,m.Read)],void 0),O.JMP_E=t.OPCODES[44]=new O(44,"jmp_=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMPI_E=t.OPCODES[45]=new O(45,"jmpi_=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMP_NE=t.OPCODES[46]=new O(46,"jmp_!=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMPI_NE=t.OPCODES[47]=new O(47,"jmpi_!=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMP_G=t.OPCODES[48]=new O(48,"ujmp_>",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMPI_G=t.OPCODES[49]=new O(49,"ujmpi_>",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMP_G=t.OPCODES[50]=new O(50,"jmp_>",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMPI_G=t.OPCODES[51]=new O(51,"jmpi_>",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMP_L=t.OPCODES[52]=new O(52,"ujmp_<",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMPI_L=t.OPCODES[53]=new O(53,"ujmpi_<",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMP_L=t.OPCODES[54]=new O(54,"jmp_<",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMPI_L=t.OPCODES[55]=new O(55,"jmpi_<",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMP_GE=t.OPCODES[56]=new O(56,"ujmp_>=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMPI_GE=t.OPCODES[57]=new O(57,"ujmpi_>=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMP_GE=t.OPCODES[58]=new O(58,"jmp_>=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMPI_GE=t.OPCODES[59]=new O(59,"jmpi_>=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMP_LE=t.OPCODES[60]=new O(60,"ujmp_<=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.UJMPI_LE=t.OPCODES[61]=new O(61,"ujmpi_<=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMP_LE=t.OPCODES[62]=new O(62,"jmp_<=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(u,void 0,void 0)],void 0),O.JMPI_LE=t.OPCODES[63]=new O(63,"jmpi_<=",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0)],void 0),O.SWITCH_JMP=t.OPCODES[64]=new O(64,"switch_jmp",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(v,void 0,void 0)],void 0),O.SWITCH_CALL=t.OPCODES[65]=new O(65,"switch_call",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(v,void 0,void 0)],void 0),O.STACK_PUSH=t.OPCODES[66]=new O(66,"stack_push",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.STACK_POP=t.OPCODES[67]=new O(67,"stack_pop",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.STACK_PUSHM=t.OPCODES[68]=new O(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new y(h,void 0,m.Read),new y(a,void 0,void 0)],void 0),O.STACK_POPM=t.OPCODES[69]=new O(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new y(h,void 0,m.Write),new y(a,void 0,void 0)],void 0),O.UNKNOWN_46=t.OPCODES[70]=new O(70,"unknown_46",void 0,[],void 0),O.UNKNOWN_47=t.OPCODES[71]=new O(71,"unknown_47",void 0,[],void 0),O.ARG_PUSHR=t.OPCODES[72]=new O(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],g.Push),O.ARG_PUSHL=t.OPCODES[73]=new O(73,"arg_pushl","Pushes the given value onto the stack.",[new y(a,void 0,void 0)],g.Push),O.ARG_PUSHB=t.OPCODES[74]=new O(74,"arg_pushb","Pushes the given value onto the stack.",[new y(s,void 0,void 0)],g.Push),O.ARG_PUSHW=t.OPCODES[75]=new O(75,"arg_pushw","Pushes the given value onto the stack.",[new y(r,void 0,void 0)],g.Push),O.ARG_PUSHA=t.OPCODES[76]=new O(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],g.Push),O.ARG_PUSHO=t.OPCODES[77]=new O(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new y(l,void 0,void 0)],g.Push),O.ARG_PUSHS=t.OPCODES[78]=new O(78,"arg_pushs","Pushes the given value onto the stack.",[new y(p,void 0,void 0)],g.Push),O.UNKNOWN_4F=t.OPCODES[79]=new O(79,"unknown_4f",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.MESSAGE=t.OPCODES[80]=new O(80,"message",void 0,[new y(a,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.LIST=t.OPCODES[81]=new O(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new y({kind:n.RegTupRef,register_tuples:[new y(s,void 0,m.Write)]},void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.FADEIN=t.OPCODES[82]=new O(82,"fadein",void 0,[],void 0),O.FADEOUT=t.OPCODES[83]=new O(83,"fadeout",void 0,[],void 0),O.SE=t.OPCODES[84]=new O(84,"se",void 0,[new y(a,void 0,void 0)],g.Pop),O.BGM=t.OPCODES[85]=new O(85,"bgm",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_56=t.OPCODES[86]=new O(86,"unknown_56",void 0,[],void 0),O.UNKNOWN_57=t.OPCODES[87]=new O(87,"unknown_57",void 0,[],void 0),O.ENABLE=t.OPCODES[88]=new O(88,"enable",void 0,[new y(a,void 0,void 0)],g.Pop),O.DISABLE=t.OPCODES[89]=new O(89,"disable",void 0,[new y(a,void 0,void 0)],g.Pop),O.WINDOW_MSG=t.OPCODES[90]=new O(90,"window_msg",void 0,[new y(p,void 0,void 0)],g.Pop),O.ADD_MSG=t.OPCODES[91]=new O(91,"add_msg",void 0,[new y(p,void 0,void 0)],g.Pop),O.MESEND=t.OPCODES[92]=new O(92,"mesend",void 0,[],void 0),O.GETTIME=t.OPCODES[93]=new O(93,"gettime",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.WINEND=t.OPCODES[94]=new O(94,"winend",void 0,[],void 0),O.UNKNOWN_5F=t.OPCODES[95]=new O(95,"unknown_5f",void 0,[],void 0),O.NPC_CRT_V3=t.OPCODES[96]=new O(96,"npc_crt_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_STOP=t.OPCODES[97]=new O(97,"npc_stop",void 0,[new y(a,void 0,void 0)],g.Pop),O.NPC_PLAY=t.OPCODES[98]=new O(98,"npc_play",void 0,[new y(a,void 0,void 0)],g.Pop),O.NPC_KILL=t.OPCODES[99]=new O(99,"npc_kill",void 0,[new y(a,void 0,void 0)],g.Pop),O.NPC_NONT=t.OPCODES[100]=new O(100,"npc_nont",void 0,[],void 0),O.NPC_TALK=t.OPCODES[101]=new O(101,"npc_talk",void 0,[],void 0),O.NPC_CRP_V3=t.OPCODES[102]=new O(102,"npc_crp_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read),new y(o,void 0,m.Read),new y(o,void 0,m.Read),new y(u,void 0,m.Read),new y(o,void 0,m.Read),new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_67=t.OPCODES[103]=new O(103,"unknown_67",void 0,[],void 0),O.CREATE_PIPE=t.OPCODES[104]=new O(104,"create_pipe",void 0,[new y(a,void 0,void 0)],g.Pop),O.P_HPSTAT_V3=t.OPCODES[105]=new O(105,"p_hpstat_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.P_DEAD_V3=t.OPCODES[106]=new O(106,"p_dead_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,"Player slot.",void 0)],g.Pop),O.P_DISABLEWARP=t.OPCODES[107]=new O(107,"p_disablewarp",void 0,[],void 0),O.P_ENABLEWARP=t.OPCODES[108]=new O(108,"p_enablewarp",void 0,[],void 0),O.P_MOVE_V3=t.OPCODES[109]=new O(109,"p_move_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.P_LOOK=t.OPCODES[110]=new O(110,"p_look",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_6F=t.OPCODES[111]=new O(111,"unknown_6f",void 0,[],void 0),O.P_ACTION_DISABLE=t.OPCODES[112]=new O(112,"p_action_disable",void 0,[],void 0),O.P_ACTION_ENABLE=t.OPCODES[113]=new O(113,"p_action_enable",void 0,[],void 0),O.DISABLE_MOVEMENT1=t.OPCODES[114]=new O(114,"disable_movement1",void 0,[new y(a,void 0,void 0)],g.Pop),O.ENABLE_MOVEMENT1=t.OPCODES[115]=new O(115,"enable_movement1",void 0,[new y(a,void 0,void 0)],g.Pop),O.P_NONCOL=t.OPCODES[116]=new O(116,"p_noncol",void 0,[],void 0),O.P_COL=t.OPCODES[117]=new O(117,"p_col",void 0,[],void 0),O.P_SETPOS=t.OPCODES[118]=new O(118,"p_setpos","Sets a player's position.",[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"X coordinate.",m.Read),new y(a,"Y coordinate.",m.Read),new y(a,"Z coordinate.",m.Read),new y(a,"Y-axis rotation.",m.Read)]},void 0,void 0)],g.Pop),O.P_RETURN_GUILD=t.OPCODES[119]=new O(119,"p_return_guild",void 0,[],void 0),O.P_TALK_GUILD=t.OPCODES[120]=new O(120,"p_talk_guild",void 0,[new y(a,void 0,void 0)],g.Pop),O.NPC_TALK_PL_V3=t.OPCODES[121]=new O(121,"npc_talk_pl_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_TALK_KILL=t.OPCODES[122]=new O(122,"npc_talk_kill",void 0,[new y(a,void 0,void 0)],g.Pop),O.NPC_CRTPK_V3=t.OPCODES[123]=new O(123,"npc_crtpk_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_CRPPK_V3=t.OPCODES[124]=new O(124,"npc_crppk_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_CRPTALK_V3=t.OPCODES[125]=new O(125,"npc_crptalk_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.P_LOOK_AT_V1=t.OPCODES[126]=new O(126,"p_look_at_v1",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.NPC_CRP_ID_V3=t.OPCODES[127]=new O(127,"npc_crp_id_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.CAM_QUAKE=t.OPCODES[128]=new O(128,"cam_quake",void 0,[],void 0),O.CAM_ADJ=t.OPCODES[129]=new O(129,"cam_adj",void 0,[],void 0),O.CAM_ZMIN=t.OPCODES[130]=new O(130,"cam_zmin",void 0,[],void 0),O.CAM_ZMOUT=t.OPCODES[131]=new O(131,"cam_zmout",void 0,[],void 0),O.CAM_PAN_V3=t.OPCODES[132]=new O(132,"cam_pan_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.GAME_LEV_SUPER=t.OPCODES[133]=new O(133,"game_lev_super",void 0,[],void 0),O.GAME_LEV_RESET=t.OPCODES[134]=new O(134,"game_lev_reset",void 0,[],void 0),O.POS_PIPE_V3=t.OPCODES[135]=new O(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"X coordinate.",m.Read),new y(a,"Y coordinate.",m.Read),new y(a,"Z coordinate.",m.Read),new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.IF_ZONE_CLEAR=t.OPCODES[136]=new O(136,"if_zone_clear",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.CHK_ENE_NUM=t.OPCODES[137]=new O(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNHIDE_OBJ=t.OPCODES[138]=new O(138,"unhide_obj",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.UNHIDE_ENE=t.OPCODES[139]=new O(139,"unhide_ene",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.AT_COORDS_CALL=t.OPCODES[140]=new O(140,"at_coords_call",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(u,void 0,m.Read)]},void 0,void 0)],void 0),O.AT_COORDS_TALK=t.OPCODES[141]=new O(141,"at_coords_talk",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(u,void 0,m.Read)]},void 0,void 0)],void 0),O.COL_NPCIN=t.OPCODES[142]=new O(142,"col_npcin",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(u,void 0,m.Read)]},void 0,void 0)],void 0),O.COL_NPCINR=t.OPCODES[143]=new O(143,"col_npcinr",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.SWITCH_ON=t.OPCODES[144]=new O(144,"switch_on",void 0,[new y(a,void 0,void 0)],g.Pop),O.SWITCH_OFF=t.OPCODES[145]=new O(145,"switch_off",void 0,[new y(a,void 0,void 0)],g.Pop),O.PLAYBGM_EPI=t.OPCODES[146]=new O(146,"playbgm_epi",void 0,[new y(a,void 0,void 0)],g.Pop),O.SET_MAINWARP=t.OPCODES[147]=new O(147,"set_mainwarp",void 0,[new y(a,void 0,void 0)],g.Pop),O.SET_OBJ_PARAM=t.OPCODES[148]=new O(148,"set_obj_param","Creates a targetable object.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"X coordinate.",m.Read),new y(a,"Y coordinate.",m.Read),new y(a,"Z coordinate.",m.Read),new y(a,"Collision radius.",m.Read),new y(u,"Function label.",m.Read),new y(a,"Vertical position of the cursor.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},"Object handle.",void 0)],void 0),O.SET_FLOOR_HANDLER=t.OPCODES[149]=new O(149,"set_floor_handler",void 0,[new y(a,"Floor number.",void 0),new y(u,"Handler function label.",void 0)],g.Pop),O.CLR_FLOOR_HANDLER=t.OPCODES[150]=new O(150,"clr_floor_handler",void 0,[new y(a,"Floor number.",void 0)],g.Pop),O.COL_PLINAW=t.OPCODES[151]=new O(151,"col_plinaw",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.HUD_HIDE=t.OPCODES[152]=new O(152,"hud_hide",void 0,[],void 0),O.HUD_SHOW=t.OPCODES[153]=new O(153,"hud_show",void 0,[],void 0),O.CINE_ENABLE=t.OPCODES[154]=new O(154,"cine_enable",void 0,[],void 0),O.CINE_DISABLE=t.OPCODES[155]=new O(155,"cine_disable",void 0,[],void 0),O.UNKNOWN_9C=t.OPCODES[156]=new O(156,"unknown_9c",void 0,[],void 0),O.UNKNOWN_9D=t.OPCODES[157]=new O(157,"unknown_9d",void 0,[],void 0),O.UNKNOWN_9E=t.OPCODES[158]=new O(158,"unknown_9e",void 0,[],void 0),O.UNKNOWN_9F=t.OPCODES[159]=new O(159,"unknown_9f",void 0,[],void 0),O.UNKNOWN_A0=t.OPCODES[160]=new O(160,"unknown_a0",void 0,[],void 0),O.SET_QT_FAILURE=t.OPCODES[161]=new O(161,"set_qt_failure",void 0,[new y(u,void 0,void 0)],void 0),O.SET_QT_SUCCESS=t.OPCODES[162]=new O(162,"set_qt_success",void 0,[new y(u,void 0,void 0)],void 0),O.CLR_QT_FAILURE=t.OPCODES[163]=new O(163,"clr_qt_failure",void 0,[],void 0),O.CLR_QT_SUCCESS=t.OPCODES[164]=new O(164,"clr_qt_success",void 0,[],void 0),O.SET_QT_CANCEL=t.OPCODES[165]=new O(165,"set_qt_cancel",void 0,[new y(u,void 0,void 0)],void 0),O.CLR_QT_CANCEL=t.OPCODES[166]=new O(166,"clr_qt_cancel",void 0,[],void 0),O.UNKNOWN_A7=t.OPCODES[167]=new O(167,"unknown_a7",void 0,[],void 0),O.PL_WALK_V3=t.OPCODES[168]=new O(168,"pl_walk_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_A9=t.OPCODES[169]=new O(169,"unknown_a9",void 0,[],void 0),O.UNKNOWN_AA=t.OPCODES[170]=new O(170,"unknown_aa",void 0,[],void 0),O.UNKNOWN_AB=t.OPCODES[171]=new O(171,"unknown_ab",void 0,[],void 0),O.UNKNOWN_AC=t.OPCODES[172]=new O(172,"unknown_ac",void 0,[],void 0),O.UNKNOWN_AD=t.OPCODES[173]=new O(173,"unknown_ad",void 0,[],void 0),O.UNKNOWN_AE=t.OPCODES[174]=new O(174,"unknown_ae",void 0,[],void 0),O.UNKNOWN_AF=t.OPCODES[175]=new O(175,"unknown_af",void 0,[],void 0),O.PL_ADD_MESETA=t.OPCODES[176]=new O(176,"pl_add_meseta",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.THREAD_STG=t.OPCODES[177]=new O(177,"thread_stg",void 0,[new y(u,void 0,void 0)],void 0),O.DEL_OBJ_PARAM=t.OPCODES[178]=new O(178,"del_obj_param",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},"Object handle.",void 0)],void 0),O.ITEM_CREATE=t.OPCODES[179]=new O(179,"item_create",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.ITEM_CREATE2=t.OPCODES[180]=new O(180,"item_create2",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.ITEM_DELETE=t.OPCODES[181]=new O(181,"item_delete",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.ITEM_DELETE2=t.OPCODES[182]=new O(182,"item_delete2","Deletes an item from the player's inventory.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.ITEM_CHECK=t.OPCODES[183]=new O(183,"item_check",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.SETEVT=t.OPCODES[184]=new O(184,"setevt",void 0,[new y(a,void 0,void 0)],g.Pop),O.GET_DIFFLVL=t.OPCODES[185]=new O(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.SET_QT_EXIT=t.OPCODES[186]=new O(186,"set_qt_exit",void 0,[new y(u,void 0,void 0)],void 0),O.CLR_QT_EXIT=t.OPCODES[187]=new O(187,"clr_qt_exit",void 0,[],void 0),O.UNKNOWN_BC=t.OPCODES[188]=new O(188,"unknown_bc",void 0,[],void 0),O.UNKNOWN_BD=t.OPCODES[189]=new O(189,"unknown_bd",void 0,[],void 0),O.UNKNOWN_BE=t.OPCODES[190]=new O(190,"unknown_be",void 0,[],void 0),O.UNKNOWN_BF=t.OPCODES[191]=new O(191,"unknown_bf",void 0,[],void 0),O.PARTICLE_V3=t.OPCODES[192]=new O(192,"particle_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_TEXT=t.OPCODES[193]=new O(193,"npc_text",void 0,[new y(a,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.NPC_CHKWARP=t.OPCODES[194]=new O(194,"npc_chkwarp",void 0,[],void 0),O.PL_PKOFF=t.OPCODES[195]=new O(195,"pl_pkoff",void 0,[],void 0),O.MAP_DESIGNATE=t.OPCODES[196]=new O(196,"map_designate",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.MASTERKEY_ON=t.OPCODES[197]=new O(197,"masterkey_on",void 0,[],void 0),O.MASTERKEY_OFF=t.OPCODES[198]=new O(198,"masterkey_off",void 0,[],void 0),O.WINDOW_TIME=t.OPCODES[199]=new O(199,"window_time",void 0,[],void 0),O.WINEND_TIME=t.OPCODES[200]=new O(200,"winend_time",void 0,[],void 0),O.WINSET_TIME=t.OPCODES[201]=new O(201,"winset_time",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GETMTIME=t.OPCODES[202]=new O(202,"getmtime",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.SET_QUEST_BOARD_HANDLER=t.OPCODES[203]=new O(203,"set_quest_board_handler",void 0,[new y(a,void 0,void 0),new y(u,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.CLEAR_QUEST_BOARD_HANDLER=t.OPCODES[204]=new O(204,"clear_quest_board_handler",void 0,[new y(a,void 0,void 0)],g.Pop),O.PARTICLE_ID_V3=t.OPCODES[205]=new O(205,"particle_id_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_CRPTALK_ID_V3=t.OPCODES[206]=new O(206,"npc_crptalk_id_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.NPC_LANG_CLEAN=t.OPCODES[207]=new O(207,"npc_lang_clean",void 0,[],void 0),O.PL_PKON=t.OPCODES[208]=new O(208,"pl_pkon",void 0,[],void 0),O.PL_CHK_ITEM2=t.OPCODES[209]=new O(209,"pl_chk_item2",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.ENABLE_MAINMENU=t.OPCODES[210]=new O(210,"enable_mainmenu",void 0,[],void 0),O.DISABLE_MAINMENU=t.OPCODES[211]=new O(211,"disable_mainmenu",void 0,[],void 0),O.START_BATTLEBGM=t.OPCODES[212]=new O(212,"start_battlebgm",void 0,[],void 0),O.END_BATTLEBGM=t.OPCODES[213]=new O(213,"end_battlebgm",void 0,[],void 0),O.DISP_MSG_QB=t.OPCODES[214]=new O(214,"disp_msg_qb",void 0,[new y(p,void 0,void 0)],g.Pop),O.CLOSE_MSG_QB=t.OPCODES[215]=new O(215,"close_msg_qb",void 0,[],void 0),O.SET_EVENTFLAG_V3=t.OPCODES[216]=new O(216,"set_eventflag_v3",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.SYNC_LETI=t.OPCODES[217]=new O(217,"sync_leti",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.SET_RETURNHUNTER=t.OPCODES[218]=new O(218,"set_returnhunter",void 0,[],void 0),O.SET_RETURNCITY=t.OPCODES[219]=new O(219,"set_returncity",void 0,[],void 0),O.LOAD_PVR=t.OPCODES[220]=new O(220,"load_pvr",void 0,[],void 0),O.LOAD_MIDI=t.OPCODES[221]=new O(221,"load_midi",void 0,[],void 0),O.UNKNOWN_DE=t.OPCODES[222]=new O(222,"unknown_de",void 0,[],void 0),O.NPC_PARAM_V3=t.OPCODES[223]=new O(223,"npc_param_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.PAD_DRAGON=t.OPCODES[224]=new O(224,"pad_dragon",void 0,[],void 0),O.CLEAR_MAINWARP=t.OPCODES[225]=new O(225,"clear_mainwarp",void 0,[new y(a,void 0,void 0)],g.Pop),O.PCAM_PARAM_V3=t.OPCODES[226]=new O(226,"pcam_param_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.START_SETEVT_V3=t.OPCODES[227]=new O(227,"start_setevt_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.WARP_ON=t.OPCODES[228]=new O(228,"warp_on",void 0,[],void 0),O.WARP_OFF=t.OPCODES[229]=new O(229,"warp_off",void 0,[],void 0),O.GET_SLOTNUMBER=t.OPCODES[230]=new O(230,"get_slotnumber",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_SERVERNUMBER=t.OPCODES[231]=new O(231,"get_servernumber",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.SET_EVENTFLAG2=t.OPCODES[232]=new O(232,"set_eventflag2",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],g.Pop),O.RES=t.OPCODES[233]=new O(233,"res",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_EA=t.OPCODES[234]=new O(234,"unknown_ea",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0)],void 0),O.ENABLE_BGMCTRL=t.OPCODES[235]=new O(235,"enable_bgmctrl",void 0,[new y(a,void 0,void 0)],g.Pop),O.SW_SEND=t.OPCODES[236]=new O(236,"sw_send",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.CREATE_BGMCTRL=t.OPCODES[237]=new O(237,"create_bgmctrl",void 0,[],void 0),O.PL_ADD_MESETA2=t.OPCODES[238]=new O(238,"pl_add_meseta2",void 0,[new y(a,void 0,void 0)],g.Pop),O.SYNC_REGISTER=t.OPCODES[239]=new O(239,"sync_register",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.SEND_REGWORK=t.OPCODES[240]=new O(240,"send_regwork",void 0,[],void 0),O.LETI_FIXED_CAMERA_V3=t.OPCODES[241]=new O(241,"leti_fixed_camera_v3",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.DEFAULT_CAMERA_POS1=t.OPCODES[242]=new O(242,"default_camera_pos1",void 0,[],void 0),O.UNKNOWN_F3=t.OPCODES[243]=new O(243,"unknown_f3",void 0,[],void 0),O.UNKNOWN_F4=t.OPCODES[244]=new O(244,"unknown_f4",void 0,[],void 0),O.UNKNOWN_F5=t.OPCODES[245]=new O(245,"unknown_f5",void 0,[],void 0),O.UNKNOWN_F6=t.OPCODES[246]=new O(246,"unknown_f6",void 0,[],void 0),O.UNKNOWN_F7=t.OPCODES[247]=new O(247,"unknown_f7",void 0,[],void 0),O.UNKNOWN_F8=t.OPCODES[248]=new O(248,"unknown_f8",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F9=t.OPCODES[249]=new O(249,"unknown_f9",void 0,[],void 0),O.GET_GC_NUMBER=t.OPCODES[250]=new O(250,"get_gc_number",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_FB=t.OPCODES[251]=new O(251,"unknown_fb",void 0,[new y(r,void 0,void 0)],void 0),O.UNKNOWN_FC=t.OPCODES[252]=new O(252,"unknown_fc",void 0,[],void 0),O.UNKNOWN_FD=t.OPCODES[253]=new O(253,"unknown_fd",void 0,[],void 0),O.UNKNOWN_FE=t.OPCODES[254]=new O(254,"unknown_fe",void 0,[],void 0),O.UNKNOWN_FF=t.OPCODES[255]=new O(255,"unknown_ff",void 0,[],void 0),O.UNKNOWN_F800=t.OPCODES[63488]=new O(63488,"unknown_f800",void 0,[],void 0),O.SET_CHAT_CALLBACK=t.OPCODES[63489]=new O(63489,"set_chat_callback",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.UNKNOWN_F802=t.OPCODES[63490]=new O(63490,"unknown_f802",void 0,[],void 0),O.UNKNOWN_F803=t.OPCODES[63491]=new O(63491,"unknown_f803",void 0,[],void 0),O.UNKNOWN_F804=t.OPCODES[63492]=new O(63492,"unknown_f804",void 0,[],void 0),O.UNKNOWN_F805=t.OPCODES[63493]=new O(63493,"unknown_f805",void 0,[],void 0),O.UNKNOWN_F806=t.OPCODES[63494]=new O(63494,"unknown_f806",void 0,[],void 0),O.UNKNOWN_F807=t.OPCODES[63495]=new O(63495,"unknown_f807",void 0,[],void 0),O.GET_DIFFICULTY_LEVEL2=t.OPCODES[63496]=new O(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_NUMBER_OF_PLAYER1=t.OPCODES[63497]=new O(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_COORD_OF_PLAYER=t.OPCODES[63498]=new O(63498,"get_coord_of_player","Retrieves a player's position.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"X coordinate.",m.Write),new y(a,"Y coordinate.",m.Write),new y(a,"Z coordinate.",m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.ENABLE_MAP=t.OPCODES[63499]=new O(63499,"enable_map",void 0,[],void 0),O.DISABLE_MAP=t.OPCODES[63500]=new O(63500,"disable_map",void 0,[],void 0),O.MAP_DESIGNATE_EX=t.OPCODES[63501]=new O(63501,"map_designate_ex",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F80E=t.OPCODES[63502]=new O(63502,"unknown_f80e",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F80F=t.OPCODES[63503]=new O(63503,"unknown_f80f",void 0,[new y(a,void 0,void 0)],g.Pop),O.BA_INITIAL_FLOOR=t.OPCODES[63504]=new O(63504,"ba_initial_floor",void 0,[new y(a,void 0,void 0)],g.Pop),O.SET_BA_RULES=t.OPCODES[63505]=new O(63505,"set_ba_rules",void 0,[],void 0),O.UNKNOWN_F812=t.OPCODES[63506]=new O(63506,"unknown_f812",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F813=t.OPCODES[63507]=new O(63507,"unknown_f813",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F814=t.OPCODES[63508]=new O(63508,"unknown_f814",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F815=t.OPCODES[63509]=new O(63509,"unknown_f815",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F816=t.OPCODES[63510]=new O(63510,"unknown_f816",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F817=t.OPCODES[63511]=new O(63511,"unknown_f817",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F818=t.OPCODES[63512]=new O(63512,"unknown_f818",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F819=t.OPCODES[63513]=new O(63513,"unknown_f819",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F81A=t.OPCODES[63514]=new O(63514,"unknown_f81a",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F81B=t.OPCODES[63515]=new O(63515,"unknown_f81b",void 0,[new y(a,void 0,void 0)],g.Pop),O.BA_DISP_MSG=t.OPCODES[63516]=new O(63516,"ba_disp_msg",void 0,[new y(p,void 0,void 0)],g.Pop),O.DEATH_LVL_UP=t.OPCODES[63517]=new O(63517,"death_lvl_up",void 0,[new y(a,void 0,void 0)],g.Pop),O.DEATH_TECH_LVL_UP=t.OPCODES[63518]=new O(63518,"death_tech_lvl_up",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F81F=t.OPCODES[63519]=new O(63519,"unknown_f81f",void 0,[],void 0),O.CMODE_STAGE=t.OPCODES[63520]=new O(63520,"cmode_stage",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F821=t.OPCODES[63521]=new O(63521,"unknown_f821",void 0,[],void 0),O.UNKNOWN_F822=t.OPCODES[63522]=new O(63522,"unknown_f822",void 0,[],void 0),O.UNKNOWN_F823=t.OPCODES[63523]=new O(63523,"unknown_f823",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F824=t.OPCODES[63524]=new O(63524,"unknown_f824",void 0,[new y(a,void 0,void 0)],g.Pop),O.EXP_MULTIPLICATION=t.OPCODES[63525]=new O(63525,"exp_multiplication",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.EXP_DIVISION=t.OPCODES[63526]=new O(63526,"exp_division",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_USER_IS_DEAD=t.OPCODES[63527]=new O(63527,"get_user_is_dead",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.GO_FLOOR=t.OPCODES[63528]=new O(63528,"go_floor","Sends a player to the given floor.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Floor ID.",m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F829=t.OPCODES[63529]=new O(63529,"unknown_f829",void 0,[],void 0),O.UNKNOWN_F82A=t.OPCODES[63530]=new O(63530,"unknown_f82a",void 0,[],void 0),O.UNLOCK_DOOR2=t.OPCODES[63531]=new O(63531,"unlock_door2",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.LOCK_DOOR2=t.OPCODES[63532]=new O(63532,"lock_door2",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.IF_SWITCH_NOT_PRESSED=t.OPCODES[63533]=new O(63533,"if_switch_not_pressed",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.IF_SWITCH_PRESSED=t.OPCODES[63534]=new O(63534,"if_switch_pressed",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Floor ID.",m.Read),new y(a,"Switch ID.",m.Read),new y(a,"Will be set to 1 if the switch is pressed, 0 otherwise.",m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F82F=t.OPCODES[63535]=new O(63535,"unknown_f82f",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.CONTROL_DRAGON=t.OPCODES[63536]=new O(63536,"control_dragon",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.RELEASE_DRAGON=t.OPCODES[63537]=new O(63537,"release_dragon",void 0,[],void 0),O.UNKNOWN_F832=t.OPCODES[63538]=new O(63538,"unknown_f832",void 0,[],void 0),O.UNKNOWN_F833=t.OPCODES[63539]=new O(63539,"unknown_f833",void 0,[],void 0),O.UNKNOWN_F834=t.OPCODES[63540]=new O(63540,"unknown_f834",void 0,[],void 0),O.UNKNOWN_F835=t.OPCODES[63541]=new O(63541,"unknown_f835",void 0,[],void 0),O.UNKNOWN_F836=t.OPCODES[63542]=new O(63542,"unknown_f836",void 0,[],void 0),O.UNKNOWN_F837=t.OPCODES[63543]=new O(63543,"unknown_f837",void 0,[],void 0),O.SHRINK=t.OPCODES[63544]=new O(63544,"shrink",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.UNSHRINK=t.OPCODES[63545]=new O(63545,"unshrink",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F83A=t.OPCODES[63546]=new O(63546,"unknown_f83a",void 0,[],void 0),O.UNKNOWN_F83B=t.OPCODES[63547]=new O(63547,"unknown_f83b",void 0,[],void 0),O.DISPLAY_CLOCK2=t.OPCODES[63548]=new O(63548,"display_clock2",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F83D=t.OPCODES[63549]=new O(63549,"unknown_f83d",void 0,[new y(a,void 0,void 0)],g.Pop),O.DELETE_AREA_TITLE=t.OPCODES[63550]=new O(63550,"delete_area_title",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F83F=t.OPCODES[63551]=new O(63551,"unknown_f83f",void 0,[],void 0),O.LOAD_NPC_DATA=t.OPCODES[63552]=new O(63552,"load_npc_data",void 0,[],void 0),O.GET_NPC_DATA=t.OPCODES[63553]=new O(63553,"get_npc_data",void 0,[new y(c,void 0,void 0)],void 0),O.UNKNOWN_F842=t.OPCODES[63554]=new O(63554,"unknown_f842",void 0,[],void 0),O.UNKNOWN_F843=t.OPCODES[63555]=new O(63555,"unknown_f843",void 0,[],void 0),O.UNKNOWN_F844=t.OPCODES[63556]=new O(63556,"unknown_f844",void 0,[],void 0),O.UNKNOWN_F845=t.OPCODES[63557]=new O(63557,"unknown_f845",void 0,[],void 0),O.UNKNOWN_F846=t.OPCODES[63558]=new O(63558,"unknown_f846",void 0,[],void 0),O.UNKNOWN_F847=t.OPCODES[63559]=new O(63559,"unknown_f847",void 0,[],void 0),O.GIVE_DAMAGE_SCORE=t.OPCODES[63560]=new O(63560,"give_damage_score",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.TAKE_DAMAGE_SCORE=t.OPCODES[63561]=new O(63561,"take_damage_score",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNK_SCORE_F84A=t.OPCODES[63562]=new O(63562,"unk_score_f84a",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNK_SCORE_F84B=t.OPCODES[63563]=new O(63563,"unk_score_f84b",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.KILL_SCORE=t.OPCODES[63564]=new O(63564,"kill_score",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.DEATH_SCORE=t.OPCODES[63565]=new O(63565,"death_score",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNK_SCORE_F84E=t.OPCODES[63566]=new O(63566,"unk_score_f84e",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.ENEMY_DEATH_SCORE=t.OPCODES[63567]=new O(63567,"enemy_death_score",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.MESETA_SCORE=t.OPCODES[63568]=new O(63568,"meseta_score",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F851=t.OPCODES[63569]=new O(63569,"unknown_f851",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F852=t.OPCODES[63570]=new O(63570,"unknown_f852",void 0,[new y(a,void 0,void 0)],g.Pop),O.REVERSE_WARPS=t.OPCODES[63571]=new O(63571,"reverse_warps",void 0,[],void 0),O.UNREVERSE_WARPS=t.OPCODES[63572]=new O(63572,"unreverse_warps",void 0,[],void 0),O.SET_ULT_MAP=t.OPCODES[63573]=new O(63573,"set_ult_map",void 0,[],void 0),O.UNSET_ULT_MAP=t.OPCODES[63574]=new O(63574,"unset_ult_map",void 0,[],void 0),O.SET_AREA_TITLE=t.OPCODES[63575]=new O(63575,"set_area_title",void 0,[new y(p,void 0,void 0)],g.Pop),O.UNKNOWN_F858=t.OPCODES[63576]=new O(63576,"unknown_f858",void 0,[],void 0),O.UNKNOWN_F859=t.OPCODES[63577]=new O(63577,"unknown_f859",void 0,[],void 0),O.EQUIP_ITEM=t.OPCODES[63578]=new O(63578,"equip_item",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.UNEQUIP_ITEM=t.OPCODES[63579]=new O(63579,"unequip_item",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F85C=t.OPCODES[63580]=new O(63580,"unknown_f85c",void 0,[],void 0),O.UNKNOWN_F85D=t.OPCODES[63581]=new O(63581,"unknown_f85d",void 0,[],void 0),O.UNKNOWN_F85E=t.OPCODES[63582]=new O(63582,"unknown_f85e",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F85F=t.OPCODES[63583]=new O(63583,"unknown_f85f",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F860=t.OPCODES[63584]=new O(63584,"unknown_f860",void 0,[],void 0),O.UNKNOWN_F861=t.OPCODES[63585]=new O(63585,"unknown_f861",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F862=t.OPCODES[63586]=new O(63586,"unknown_f862",void 0,[],void 0),O.UNKNOWN_F863=t.OPCODES[63587]=new O(63587,"unknown_f863",void 0,[],void 0),O.CMODE_RANK=t.OPCODES[63588]=new O(63588,"cmode_rank",void 0,[new y(a,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.AWARD_ITEM_NAME=t.OPCODES[63589]=new O(63589,"award_item_name",void 0,[],void 0),O.AWARD_ITEM_SELECT=t.OPCODES[63590]=new O(63590,"award_item_select",void 0,[],void 0),O.AWARD_ITEM_GIVE_TO=t.OPCODES[63591]=new O(63591,"award_item_give_to",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F868=t.OPCODES[63592]=new O(63592,"unknown_f868",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F869=t.OPCODES[63593]=new O(63593,"unknown_f869",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.ITEM_CREATE_CMODE=t.OPCODES[63594]=new O(63594,"item_create_cmode",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F86B=t.OPCODES[63595]=new O(63595,"unknown_f86b",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.AWARD_ITEM_OK=t.OPCODES[63596]=new O(63596,"award_item_ok",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F86D=t.OPCODES[63597]=new O(63597,"unknown_f86d",void 0,[],void 0),O.UNKNOWN_F86E=t.OPCODES[63598]=new O(63598,"unknown_f86e",void 0,[],void 0),O.BA_SET_LIVES=t.OPCODES[63599]=new O(63599,"ba_set_lives",void 0,[new y(a,void 0,void 0)],g.Pop),O.BA_SET_TECH_LVL=t.OPCODES[63600]=new O(63600,"ba_set_tech_lvl",void 0,[new y(a,void 0,void 0)],g.Pop),O.BA_SET_LVL=t.OPCODES[63601]=new O(63601,"ba_set_lvl",void 0,[new y(a,void 0,void 0)],g.Pop),O.BA_SET_TIME_LIMIT=t.OPCODES[63602]=new O(63602,"ba_set_time_limit",void 0,[new y(a,void 0,void 0)],g.Pop),O.BOSS_IS_DEAD=t.OPCODES[63603]=new O(63603,"boss_is_dead",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F874=t.OPCODES[63604]=new O(63604,"unknown_f874",void 0,[],void 0),O.UNKNOWN_F875=t.OPCODES[63605]=new O(63605,"unknown_f875",void 0,[],void 0),O.UNKNOWN_F876=t.OPCODES[63606]=new O(63606,"unknown_f876",void 0,[],void 0),O.ENABLE_TECHS=t.OPCODES[63607]=new O(63607,"enable_techs","Enables technique use for the given player.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.DISABLE_TECHS=t.OPCODES[63608]=new O(63608,"disable_techs","Disables technique use for the given player.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.GET_GENDER=t.OPCODES[63609]=new O(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player gender.",m.Write)]},void 0,void 0)],void 0),O.GET_CHARA_CLASS=t.OPCODES[63610]=new O(63610,"get_chara_class","Retrieves the player's race and character class.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player race. 0 If human, 1 if newman, 2 if cast.",m.Write),new y(a,"Player class. 0 If hunter, 1 if ranger, 2 if force.",m.Write)]},void 0,void 0)],void 0),O.TAKE_SLOT_MESETA=t.OPCODES[63611]=new O(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read),new y(a,"Amount of meseta to take.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Will be set to 1 if the meseta was taken, 0 otherwise.",m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F87C=t.OPCODES[63612]=new O(63612,"unknown_f87c",void 0,[],void 0),O.UNKNOWN_F87D=t.OPCODES[63613]=new O(63613,"unknown_f87d",void 0,[],void 0),O.UNKNOWN_F87E=t.OPCODES[63614]=new O(63614,"unknown_f87e",void 0,[],void 0),O.READ_GUILDCARD_FLAG=t.OPCODES[63615]=new O(63615,"read_guildcard_flag",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F880=t.OPCODES[63616]=new O(63616,"unknown_f880",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_PL_NAME=t.OPCODES[63617]=new O(63617,"get_pl_name","Sets the value of to the given player's name.",[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F882=t.OPCODES[63618]=new O(63618,"unknown_f882",void 0,[],void 0),O.UNKNOWN_F883=t.OPCODES[63619]=new O(63619,"unknown_f883",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F884=t.OPCODES[63620]=new O(63620,"unknown_f884",void 0,[],void 0),O.UNKNOWN_F885=t.OPCODES[63621]=new O(63621,"unknown_f885",void 0,[],void 0),O.UNKNOWN_F886=t.OPCODES[63622]=new O(63622,"unknown_f886",void 0,[],void 0),O.UNKNOWN_F887=t.OPCODES[63623]=new O(63623,"unknown_f887",void 0,[],void 0),O.UNKNOWN_F888=t.OPCODES[63624]=new O(63624,"unknown_f888",void 0,[],void 0),O.UNKNOWN_F889=t.OPCODES[63625]=new O(63625,"unknown_f889",void 0,[],void 0),O.GET_PLAYER_STATUS=t.OPCODES[63626]=new O(63626,"get_player_status",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.SEND_MAIL=t.OPCODES[63627]=new O(63627,"send_mail",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.ONLINE_CHECK=t.OPCODES[63628]=new O(63628,"online_check",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.CHL_SET_TIMERECORD=t.OPCODES[63629]=new O(63629,"chl_set_timerecord",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.CHL_GET_TIMERECORD=t.OPCODES[63630]=new O(63630,"chl_get_timerecord",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F88F=t.OPCODES[63631]=new O(63631,"unknown_f88f",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F890=t.OPCODES[63632]=new O(63632,"unknown_f890",void 0,[],void 0),O.LOAD_ENEMY_DATA=t.OPCODES[63633]=new O(63633,"load_enemy_data",void 0,[new y(a,void 0,void 0)],g.Pop),O.GET_PHYSICAL_DATA=t.OPCODES[63634]=new O(63634,"get_physical_data",void 0,[new y(r,void 0,void 0)],void 0),O.GET_ATTACK_DATA=t.OPCODES[63635]=new O(63635,"get_attack_data",void 0,[new y(r,void 0,void 0)],void 0),O.GET_RESIST_DATA=t.OPCODES[63636]=new O(63636,"get_resist_data",void 0,[new y(r,void 0,void 0)],void 0),O.GET_MOVEMENT_DATA=t.OPCODES[63637]=new O(63637,"get_movement_data",void 0,[new y(r,void 0,void 0)],void 0),O.UNKNOWN_F896=t.OPCODES[63638]=new O(63638,"unknown_f896",void 0,[],void 0),O.UNKNOWN_F897=t.OPCODES[63639]=new O(63639,"unknown_f897",void 0,[],void 0),O.SHIFT_LEFT=t.OPCODES[63640]=new O(63640,"shift_left",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.SHIFT_RIGHT=t.OPCODES[63641]=new O(63641,"shift_right",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.GET_RANDOM=t.OPCODES[63642]=new O(63642,"get_random",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.RESET_MAP=t.OPCODES[63643]=new O(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),O.DISP_CHL_RETRY_MENU=t.OPCODES[63644]=new O(63644,"disp_chl_retry_menu",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.CHL_REVERSER=t.OPCODES[63645]=new O(63645,"chl_reverser",void 0,[],void 0),O.UNKNOWN_F89E=t.OPCODES[63646]=new O(63646,"unknown_f89e",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F89F=t.OPCODES[63647]=new O(63647,"unknown_f89f",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F8A0=t.OPCODES[63648]=new O(63648,"unknown_f8a0",void 0,[],void 0),O.UNKNOWN_F8A1=t.OPCODES[63649]=new O(63649,"unknown_f8a1",void 0,[],void 0),O.UNKNOWN_F8A2=t.OPCODES[63650]=new O(63650,"unknown_f8a2",void 0,[],void 0),O.UNKNOWN_F8A3=t.OPCODES[63651]=new O(63651,"unknown_f8a3",void 0,[],void 0),O.UNKNOWN_F8A4=t.OPCODES[63652]=new O(63652,"unknown_f8a4",void 0,[],void 0),O.UNKNOWN_F8A5=t.OPCODES[63653]=new O(63653,"unknown_f8a5",void 0,[],void 0),O.UNKNOWN_F8A6=t.OPCODES[63654]=new O(63654,"unknown_f8a6",void 0,[],void 0),O.UNKNOWN_F8A7=t.OPCODES[63655]=new O(63655,"unknown_f8a7",void 0,[],void 0),O.UNKNOWN_F8A8=t.OPCODES[63656]=new O(63656,"unknown_f8a8",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F8A9=t.OPCODES[63657]=new O(63657,"unknown_f8a9",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F8AA=t.OPCODES[63658]=new O(63658,"unknown_f8aa",void 0,[],void 0),O.UNKNOWN_F8AB=t.OPCODES[63659]=new O(63659,"unknown_f8ab",void 0,[],void 0),O.UNKNOWN_F8AC=t.OPCODES[63660]=new O(63660,"unknown_f8ac",void 0,[],void 0),O.GET_NUMBER_OF_PLAYER2=t.OPCODES[63661]=new O(63661,"get_number_of_player2",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F8AE=t.OPCODES[63662]=new O(63662,"unknown_f8ae",void 0,[],void 0),O.UNKNOWN_F8AF=t.OPCODES[63663]=new O(63663,"unknown_f8af",void 0,[],void 0),O.UNKNOWN_F8B0=t.OPCODES[63664]=new O(63664,"unknown_f8b0",void 0,[],void 0),O.UNKNOWN_F8B1=t.OPCODES[63665]=new O(63665,"unknown_f8b1",void 0,[],void 0),O.UNKNOWN_F8B2=t.OPCODES[63666]=new O(63666,"unknown_f8b2",void 0,[],void 0),O.UNKNOWN_F8B3=t.OPCODES[63667]=new O(63667,"unknown_f8b3",void 0,[],void 0),O.UNKNOWN_F8B4=t.OPCODES[63668]=new O(63668,"unknown_f8b4",void 0,[],void 0),O.UNKNOWN_F8B5=t.OPCODES[63669]=new O(63669,"unknown_f8b5",void 0,[],void 0),O.UNKNOWN_F8B6=t.OPCODES[63670]=new O(63670,"unknown_f8b6",void 0,[],void 0),O.UNKNOWN_F8B7=t.OPCODES[63671]=new O(63671,"unknown_f8b7",void 0,[],void 0),O.UNKNOWN_F8B8=t.OPCODES[63672]=new O(63672,"unknown_f8b8",void 0,[],void 0),O.CHL_RECOVERY=t.OPCODES[63673]=new O(63673,"chl_recovery",void 0,[],void 0),O.UNKNOWN_F8BA=t.OPCODES[63674]=new O(63674,"unknown_f8ba",void 0,[],void 0),O.UNKNOWN_F8BB=t.OPCODES[63675]=new O(63675,"unknown_f8bb",void 0,[],void 0),O.SET_EPISODE=t.OPCODES[63676]=new O(63676,"set_episode",void 0,[new y(a,void 0,void 0)],void 0),O.UNKNOWN_F8BD=t.OPCODES[63677]=new O(63677,"unknown_f8bd",void 0,[],void 0),O.UNKNOWN_F8BE=t.OPCODES[63678]=new O(63678,"unknown_f8be",void 0,[],void 0),O.UNKNOWN_F8BF=t.OPCODES[63679]=new O(63679,"unknown_f8bf",void 0,[],void 0),O.FILE_DL_REQ=t.OPCODES[63680]=new O(63680,"file_dl_req",void 0,[new y(a,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.GET_DL_STATUS=t.OPCODES[63681]=new O(63681,"get_dl_status",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.GBA_UNKNOWN4=t.OPCODES[63682]=new O(63682,"gba_unknown4",void 0,[],void 0),O.GET_GBA_STATE=t.OPCODES[63683]=new O(63683,"get_gba_state",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F8C4=t.OPCODES[63684]=new O(63684,"unknown_f8c4",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F8C5=t.OPCODES[63685]=new O(63685,"unknown_f8c5",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.QEXIT=t.OPCODES[63686]=new O(63686,"qexit",void 0,[],void 0),O.USE_ANIMATION=t.OPCODES[63687]=new O(63687,"use_animation",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Animation ID.",m.Read),new y(a,"Animation duration in number of frames.",m.Read)]},void 0,void 0)],void 0),O.STOP_ANIMATION=t.OPCODES[63688]=new O(63688,"stop_animation",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.RUN_TO_COORD=t.OPCODES[63689]=new O(63689,"run_to_coord",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_INVINCIBLE=t.OPCODES[63690]=new O(63690,"set_slot_invincible",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F8CB=t.OPCODES[63691]=new O(63691,"unknown_f8cb",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_POISON=t.OPCODES[63692]=new O(63692,"set_slot_poison",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_PARALYZE=t.OPCODES[63693]=new O(63693,"set_slot_paralyze",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_SHOCK=t.OPCODES[63694]=new O(63694,"set_slot_shock",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_FREEZE=t.OPCODES[63695]=new O(63695,"set_slot_freeze",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_SLOW=t.OPCODES[63696]=new O(63696,"set_slot_slow",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_CONFUSE=t.OPCODES[63697]=new O(63697,"set_slot_confuse",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_SHIFTA=t.OPCODES[63698]=new O(63698,"set_slot_shifta",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_DEBAND=t.OPCODES[63699]=new O(63699,"set_slot_deband",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_JELLEN=t.OPCODES[63700]=new O(63700,"set_slot_jellen",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.SET_SLOT_ZALURE=t.OPCODES[63701]=new O(63701,"set_slot_zalure",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read)]},void 0,void 0)],void 0),O.FLETI_FIXED_CAMERA=t.OPCODES[63702]=new O(63702,"fleti_fixed_camera",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],g.Pop),O.FLETI_LOCKED_CAMERA=t.OPCODES[63703]=new O(63703,"fleti_locked_camera",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],g.Pop),O.DEFAULT_CAMERA_POS2=t.OPCODES[63704]=new O(63704,"default_camera_pos2",void 0,[],void 0),O.SET_MOTION_BLUR=t.OPCODES[63705]=new O(63705,"set_motion_blur",void 0,[],void 0),O.SET_SCREEN_BW=t.OPCODES[63706]=new O(63706,"set_screen_bw",void 0,[],void 0),O.UNKNOWN_F8DB=t.OPCODES[63707]=new O(63707,"unknown_f8db",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(r,void 0,void 0)],g.Pop),O.NPC_ACTION_STRING=t.OPCODES[63708]=new O(63708,"npc_action_string",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0),new y(_,void 0,void 0)],void 0),O.GET_PAD_COND=t.OPCODES[63709]=new O(63709,"get_pad_cond",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_BUTTON_COND=t.OPCODES[63710]=new O(63710,"get_button_cond",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.FREEZE_ENEMIES=t.OPCODES[63711]=new O(63711,"freeze_enemies",void 0,[],void 0),O.UNFREEZE_ENEMIES=t.OPCODES[63712]=new O(63712,"unfreeze_enemies",void 0,[],void 0),O.FREEZE_EVERYTHING=t.OPCODES[63713]=new O(63713,"freeze_everything",void 0,[],void 0),O.UNFREEZE_EVERYTHING=t.OPCODES[63714]=new O(63714,"unfreeze_everything",void 0,[],void 0),O.RESTORE_HP=t.OPCODES[63715]=new O(63715,"restore_hp",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.RESTORE_TP=t.OPCODES[63716]=new O(63716,"restore_tp",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.CLOSE_CHAT_BUBBLE=t.OPCODES[63717]=new O(63717,"close_chat_bubble",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.MOVE_COORDS_OBJECT=t.OPCODES[63718]=new O(63718,"move_coords_object",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.AT_COORDS_CALL_EX=t.OPCODES[63719]=new O(63719,"at_coords_call_ex",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F8E8=t.OPCODES[63720]=new O(63720,"unknown_f8e8",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F8E9=t.OPCODES[63721]=new O(63721,"unknown_f8e9",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F8EA=t.OPCODES[63722]=new O(63722,"unknown_f8ea",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F8EB=t.OPCODES[63723]=new O(63723,"unknown_f8eb",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.UNKNOWN_F8EC=t.OPCODES[63724]=new O(63724,"unknown_f8ec",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.ANIMATION_CHECK=t.OPCODES[63725]=new O(63725,"animation_check",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.CALL_IMAGE_DATA=t.OPCODES[63726]=new O(63726,"call_image_data",void 0,[new y(a,void 0,void 0),new y(r,void 0,void 0)],g.Pop),O.UNKNOWN_F8EF=t.OPCODES[63727]=new O(63727,"unknown_f8ef",void 0,[],void 0),O.TURN_OFF_BGM_P2=t.OPCODES[63728]=new O(63728,"turn_off_bgm_p2",void 0,[],void 0),O.TURN_ON_BGM_P2=t.OPCODES[63729]=new O(63729,"turn_on_bgm_p2",void 0,[],void 0),O.LOAD_UNK_DATA=t.OPCODES[63730]=new O(63730,"load_unk_data",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(c,void 0,void 0)],g.Pop),O.PARTICLE2=t.OPCODES[63731]=new O(63731,"particle2",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0),new y(a,void 0,void 0),new y(d,void 0,void 0)],g.Pop),O.UNKNOWN_F8F4=t.OPCODES[63732]=new O(63732,"unknown_f8f4",void 0,[],void 0),O.UNKNOWN_F8F5=t.OPCODES[63733]=new O(63733,"unknown_f8f5",void 0,[],void 0),O.UNKNOWN_F8F6=t.OPCODES[63734]=new O(63734,"unknown_f8f6",void 0,[],void 0),O.UNKNOWN_F8F7=t.OPCODES[63735]=new O(63735,"unknown_f8f7",void 0,[],void 0),O.UNKNOWN_F8F8=t.OPCODES[63736]=new O(63736,"unknown_f8f8",void 0,[],void 0),O.UNKNOWN_F8F9=t.OPCODES[63737]=new O(63737,"unknown_f8f9",void 0,[],void 0),O.UNKNOWN_F8FA=t.OPCODES[63738]=new O(63738,"unknown_f8fa",void 0,[],void 0),O.UNKNOWN_F8FB=t.OPCODES[63739]=new O(63739,"unknown_f8fb",void 0,[],void 0),O.UNKNOWN_F8FC=t.OPCODES[63740]=new O(63740,"unknown_f8fc",void 0,[],void 0),O.UNKNOWN_F8FD=t.OPCODES[63741]=new O(63741,"unknown_f8fd",void 0,[],void 0),O.UNKNOWN_F8FE=t.OPCODES[63742]=new O(63742,"unknown_f8fe",void 0,[],void 0),O.UNKNOWN_F8FF=t.OPCODES[63743]=new O(63743,"unknown_f8ff",void 0,[],void 0),O.UNKNOWN_F900=t.OPCODES[63744]=new O(63744,"unknown_f900",void 0,[],void 0),O.DEC2FLOAT=t.OPCODES[63745]=new O(63745,"dec2float",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Read)]},void 0,void 0)],void 0),O.FLOAT2DEC=t.OPCODES[63746]=new O(63746,"float2dec",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Read)]},void 0,void 0)],void 0),O.FLET=t.OPCODES[63747]=new O(63747,"flet",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Read)]},void 0,void 0)],void 0),O.FLETI=t.OPCODES[63748]=new O(63748,"fleti",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y(d,void 0,void 0)],void 0),O.UNKNOWN_F905=t.OPCODES[63749]=new O(63749,"unknown_f905",void 0,[],void 0),O.UNKNOWN_F906=t.OPCODES[63750]=new O(63750,"unknown_f906",void 0,[],void 0),O.UNKNOWN_F907=t.OPCODES[63751]=new O(63751,"unknown_f907",void 0,[],void 0),O.FADD=t.OPCODES[63752]=new O(63752,"fadd",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Read)]},void 0,void 0)],void 0),O.FADDI=t.OPCODES[63753]=new O(63753,"faddi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y(d,void 0,void 0)],void 0),O.FSUB=t.OPCODES[63754]=new O(63754,"fsub",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Read)]},void 0,void 0)],void 0),O.FSUBI=t.OPCODES[63755]=new O(63755,"fsubi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y(d,void 0,void 0)],void 0),O.FMUL=t.OPCODES[63756]=new O(63756,"fmul",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Read)]},void 0,void 0)],void 0),O.FMULI=t.OPCODES[63757]=new O(63757,"fmuli",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y(d,void 0,void 0)],void 0),O.FDIV=t.OPCODES[63758]=new O(63758,"fdiv",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Read)]},void 0,void 0)],void 0),O.FDIVI=t.OPCODES[63759]=new O(63759,"fdivi",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(d,void 0,m.Write)]},void 0,void 0),new y(d,void 0,void 0)],void 0),O.GET_UNKNOWN_COUNT=t.OPCODES[63760]=new O(63760,"get_unknown_count",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.GET_STACKABLE_ITEM_COUNT=t.OPCODES[63761]=new O(63761,"get_stackable_item_count",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,"Player slot.",m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read),new y(a,void 0,m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.FREEZE_AND_HIDE_EQUIP=t.OPCODES[63762]=new O(63762,"freeze_and_hide_equip",void 0,[],void 0),O.THAW_AND_SHOW_EQUIP=t.OPCODES[63763]=new O(63763,"thaw_and_show_equip",void 0,[],void 0),O.SET_PALETTEX_CALLBACK=t.OPCODES[63764]=new O(63764,"set_palettex_callback",void 0,[new y(a,"Player slot.",void 0),new y(u,void 0,void 0)],g.Pop),O.ACTIVATE_PALETTEX=t.OPCODES[63765]=new O(63765,"activate_palettex",void 0,[new y(a,"Player slot.",void 0)],g.Pop),O.ENABLE_PALETTEX=t.OPCODES[63766]=new O(63766,"enable_palettex",void 0,[new y(a,"Player slot.",void 0)],g.Pop),O.RESTORE_PALETTEX=t.OPCODES[63767]=new O(63767,"restore_palettex",void 0,[new y(a,"Player slot.",void 0)],g.Pop),O.DISABLE_PALETTEX=t.OPCODES[63768]=new O(63768,"disable_palettex",void 0,[new y(a,"Player slot.",void 0)],g.Pop),O.GET_PALETTEX_ACTIVATED=t.OPCODES[63769]=new O(63769,"get_palettex_activated",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.GET_UNKNOWN_PALETTEX_STATUS=t.OPCODES[63770]=new O(63770,"get_unknown_palettex_status",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.DISABLE_MOVEMENT2=t.OPCODES[63771]=new O(63771,"disable_movement2",void 0,[new y(a,"Player slot.",void 0)],g.Pop),O.ENABLE_MOVEMENT2=t.OPCODES[63772]=new O(63772,"enable_movement2",void 0,[new y(a,"Player slot.",void 0)],g.Pop),O.GET_TIME_PLAYED=t.OPCODES[63773]=new O(63773,"get_time_played",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_GUILDCARD_TOTAL=t.OPCODES[63774]=new O(63774,"get_guildcard_total",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_SLOT_MESETA=t.OPCODES[63775]=new O(63775,"get_slot_meseta",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_PLAYER_LEVEL=t.OPCODES[63776]=new O(63776,"get_player_level",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.GET_SECTION_ID=t.OPCODES[63777]=new O(63777,"get_section_id",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.GET_PLAYER_HP=t.OPCODES[63778]=new O(63778,"get_player_hp",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,"Maximum HP.",m.Write),new y(a,"Current HP.",m.Write),new y(a,"Maximum TP.",m.Write),new y(a,"Current TP.",m.Write)]},void 0,void 0)],g.Pop),O.GET_FLOOR_NUMBER=t.OPCODES[63779]=new O(63779,"get_floor_number",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.GET_COORD_PLAYER_DETECT=t.OPCODES[63780]=new O(63780,"get_coord_player_detect",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,"Player slot.",m.Read)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Read)]},void 0,void 0)],void 0),O.READ_GLOBAL_FLAG=t.OPCODES[63781]=new O(63781,"read_global_flag",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.WRITE_GLOBAL_FLAG=t.OPCODES[63782]=new O(63782,"write_global_flag",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F927=t.OPCODES[63783]=new O(63783,"unknown_f927",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.FLOOR_PLAYER_DETECT=t.OPCODES[63784]=new O(63784,"floor_player_detect",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write),new y(a,void 0,m.Write),new y(a,void 0,m.Write),new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.READ_DISK_FILE=t.OPCODES[63785]=new O(63785,"read_disk_file",void 0,[new y(p,void 0,void 0)],g.Pop),O.OPEN_PACK_SELECT=t.OPCODES[63786]=new O(63786,"open_pack_select",void 0,[],void 0),O.ITEM_SELECT=t.OPCODES[63787]=new O(63787,"item_select",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.GET_ITEM_ID=t.OPCODES[63788]=new O(63788,"get_item_id",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.COLOR_CHANGE=t.OPCODES[63789]=new O(63789,"color_change",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.SEND_STATISTIC=t.OPCODES[63790]=new O(63790,"send_statistic",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F92F=t.OPCODES[63791]=new O(63791,"unknown_f92f",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.CHAT_BOX=t.OPCODES[63792]=new O(63792,"chat_box",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.CHAT_BUBBLE=t.OPCODES[63793]=new O(63793,"chat_bubble",void 0,[new y(a,void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.UNKNOWN_F932=t.OPCODES[63794]=new O(63794,"unknown_f932",void 0,[],void 0),O.UNKNOWN_F933=t.OPCODES[63795]=new O(63795,"unknown_f933",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],void 0),O.SCROLL_TEXT=t.OPCODES[63796]=new O(63796,"scroll_text",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(d,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(p,void 0,void 0)],g.Pop),O.GBA_UNKNOWN1=t.OPCODES[63797]=new O(63797,"gba_unknown1",void 0,[],void 0),O.GBA_UNKNOWN2=t.OPCODES[63798]=new O(63798,"gba_unknown2",void 0,[],void 0),O.GBA_UNKNOWN3=t.OPCODES[63799]=new O(63799,"gba_unknown3",void 0,[],void 0),O.ADD_DAMAGE_TO=t.OPCODES[63800]=new O(63800,"add_damage_to",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.ITEM_DELETE3=t.OPCODES[63801]=new O(63801,"item_delete3",void 0,[new y(a,void 0,void 0)],g.Pop),O.GET_ITEM_INFO=t.OPCODES[63802]=new O(63802,"get_item_info",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],g.Pop),O.ITEM_PACKING1=t.OPCODES[63803]=new O(63803,"item_packing1",void 0,[new y(a,void 0,void 0)],g.Pop),O.ITEM_PACKING2=t.OPCODES[63804]=new O(63804,"item_packing2",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.GET_LANG_SETTING=t.OPCODES[63805]=new O(63805,"get_lang_setting",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(o,void 0,m.Write)]},void 0,void 0)],g.Pop),O.PREPARE_STATISTIC=t.OPCODES[63806]=new O(63806,"prepare_statistic",void 0,[new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.KEYWORD_DETECT=t.OPCODES[63807]=new O(63807,"keyword_detect",void 0,[],void 0),O.KEYWORD=t.OPCODES[63808]=new O(63808,"keyword",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,"Player slot.",void 0),new y(p,void 0,void 0)],g.Pop),O.GET_GUILDCARD_NUM=t.OPCODES[63809]=new O(63809,"get_guildcard_num",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.UNKNOWN_F942=t.OPCODES[63810]=new O(63810,"unknown_f942",void 0,[],void 0),O.UNKNOWN_F943=t.OPCODES[63811]=new O(63811,"unknown_f943",void 0,[],void 0),O.GET_WRAP_STATUS=t.OPCODES[63812]=new O(63812,"get_wrap_status",void 0,[new y(a,"Player slot.",void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.INITIAL_FLOOR=t.OPCODES[63813]=new O(63813,"initial_floor",void 0,[new y(a,void 0,void 0)],g.Pop),O.SIN=t.OPCODES[63814]=new O(63814,"sin",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.COS=t.OPCODES[63815]=new O(63815,"cos",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F948=t.OPCODES[63816]=new O(63816,"unknown_f948",void 0,[],void 0),O.UNKNOWN_F949=t.OPCODES[63817]=new O(63817,"unknown_f949",void 0,[],void 0),O.BOSS_IS_DEAD2=t.OPCODES[63818]=new O(63818,"boss_is_dead2",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F94B=t.OPCODES[63819]=new O(63819,"unknown_f94b",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F94C=t.OPCODES[63820]=new O(63820,"unknown_f94c",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.IS_THERE_CARDBATTLE=t.OPCODES[63821]=new O(63821,"is_there_cardbattle",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.UNKNOWN_F94E=t.OPCODES[63822]=new O(63822,"unknown_f94e",void 0,[],void 0),O.UNKNOWN_F94F=t.OPCODES[63823]=new O(63823,"unknown_f94f",void 0,[],void 0),O.BB_P2_MENU=t.OPCODES[63824]=new O(63824,"bb_p2_menu",void 0,[new y(a,void 0,void 0)],g.Pop),O.BB_MAP_DESIGNATE=t.OPCODES[63825]=new O(63825,"bb_map_designate",void 0,[new y(s,void 0,void 0),new y(r,void 0,void 0),new y(s,void 0,void 0),new y(s,void 0,void 0)],void 0),O.BB_GET_NUMBER_IN_PACK=t.OPCODES[63826]=new O(63826,"bb_get_number_in_pack",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],void 0),O.BB_SWAP_ITEM=t.OPCODES[63827]=new O(63827,"bb_swap_item",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.BB_CHECK_WRAP=t.OPCODES[63828]=new O(63828,"bb_check_wrap",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0)],g.Pop),O.BB_EXCHANGE_PD_ITEM=t.OPCODES[63829]=new O(63829,"bb_exchange_pd_item",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.BB_EXCHANGE_PD_SRANK=t.OPCODES[63830]=new O(63830,"bb_exchange_pd_srank",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.BB_EXCHANGE_PD_SPECIAL=t.OPCODES[63831]=new O(63831,"bb_exchange_pd_special",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.BB_EXCHANGE_PD_PERCENT=t.OPCODES[63832]=new O(63832,"bb_exchange_pd_percent",void 0,[new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.UNKNOWN_F959=t.OPCODES[63833]=new O(63833,"unknown_f959",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F95A=t.OPCODES[63834]=new O(63834,"unknown_f95a",void 0,[],void 0),O.UNKNOWN_F95B=t.OPCODES[63835]=new O(63835,"unknown_f95b",void 0,[],void 0),O.BB_EXCHANGE_SLT=t.OPCODES[63836]=new O(63836,"bb_exchange_slt",void 0,[new y(a,void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.BB_EXCHANGE_PC=t.OPCODES[63837]=new O(63837,"bb_exchange_pc",void 0,[],void 0),O.BB_BOX_CREATE_BP=t.OPCODES[63838]=new O(63838,"bb_box_create_bp",void 0,[new y(a,void 0,void 0),new y(d,void 0,void 0),new y(d,void 0,void 0)],g.Pop),O.BB_EXCHANGE_PT=t.OPCODES[63839]=new O(63839,"bb_exchange_pt",void 0,[new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y({kind:n.RegTupRef,register_tuples:[new y(a,void 0,m.Write)]},void 0,void 0),new y(a,void 0,void 0),new y(u,void 0,void 0),new y(u,void 0,void 0)],g.Pop),O.UNKNOWN_F960=t.OPCODES[63840]=new O(63840,"unknown_f960",void 0,[new y(a,void 0,void 0)],g.Pop),O.UNKNOWN_F961=t.OPCODES[63841]=new O(63841,"unknown_f961",void 0,[],void 0),O.UNKNOWN_F962=t.OPCODES[63842]=new O(63842,"unknown_f962",void 0,[],void 0),O.UNKNOWN_F963=t.OPCODES[63843]=new O(63843,"unknown_f963",void 0,[],void 0),O.UNKNOWN_F964=t.OPCODES[63844]=new O(63844,"unknown_f964",void 0,[],void 0),O.UNKNOWN_F965=t.OPCODES[63845]=new O(63845,"unknown_f965",void 0,[],void 0),O.UNKNOWN_F966=t.OPCODES[63846]=new O(63846,"unknown_f966",void 0,[],void 0),O.UNKNOWN_F967=t.OPCODES[63847]=new O(63847,"unknown_f967",void 0,[],void 0),O.UNKNOWN_F968=t.OPCODES[63848]=new O(63848,"unknown_f968",void 0,[],void 0),O.UNKNOWN_F969=t.OPCODES[63849]=new O(63849,"unknown_f969",void 0,[],void 0),O.UNKNOWN_F96A=t.OPCODES[63850]=new O(63850,"unknown_f96a",void 0,[],void 0),O.UNKNOWN_F96B=t.OPCODES[63851]=new O(63851,"unknown_f96b",void 0,[],void 0),O.UNKNOWN_F96C=t.OPCODES[63852]=new O(63852,"unknown_f96c",void 0,[],void 0),O.UNKNOWN_F96D=t.OPCODES[63853]=new O(63853,"unknown_f96d",void 0,[],void 0),O.UNKNOWN_F96E=t.OPCODES[63854]=new O(63854,"unknown_f96e",void 0,[],void 0),O.UNKNOWN_F96F=t.OPCODES[63855]=new O(63855,"unknown_f96f",void 0,[],void 0),O.UNKNOWN_F970=t.OPCODES[63856]=new O(63856,"unknown_f970",void 0,[],void 0),O.UNKNOWN_F971=t.OPCODES[63857]=new O(63857,"unknown_f971",void 0,[],void 0),O.UNKNOWN_F972=t.OPCODES[63858]=new O(63858,"unknown_f972",void 0,[],void 0),O.UNKNOWN_F973=t.OPCODES[63859]=new O(63859,"unknown_f973",void 0,[],void 0),O.UNKNOWN_F974=t.OPCODES[63860]=new O(63860,"unknown_f974",void 0,[],void 0),O.UNKNOWN_F975=t.OPCODES[63861]=new O(63861,"unknown_f975",void 0,[],void 0),O.UNKNOWN_F976=t.OPCODES[63862]=new O(63862,"unknown_f976",void 0,[],void 0),O.UNKNOWN_F977=t.OPCODES[63863]=new O(63863,"unknown_f977",void 0,[],void 0),O.UNKNOWN_F978=t.OPCODES[63864]=new O(63864,"unknown_f978",void 0,[],void 0),O.UNKNOWN_F979=t.OPCODES[63865]=new O(63865,"unknown_f979",void 0,[],void 0),O.UNKNOWN_F97A=t.OPCODES[63866]=new O(63866,"unknown_f97a",void 0,[],void 0),O.UNKNOWN_F97B=t.OPCODES[63867]=new O(63867,"unknown_f97b",void 0,[],void 0),O.UNKNOWN_F97C=t.OPCODES[63868]=new O(63868,"unknown_f97c",void 0,[],void 0),O.UNKNOWN_F97D=t.OPCODES[63869]=new O(63869,"unknown_f97d",void 0,[],void 0),O.UNKNOWN_F97E=t.OPCODES[63870]=new O(63870,"unknown_f97e",void 0,[],void 0),O.UNKNOWN_F97F=t.OPCODES[63871]=new O(63871,"unknown_f97f",void 0,[],void 0),O.UNKNOWN_F980=t.OPCODES[63872]=new O(63872,"unknown_f980",void 0,[],void 0),O.UNKNOWN_F981=t.OPCODES[63873]=new O(63873,"unknown_f981",void 0,[],void 0),O.UNKNOWN_F982=t.OPCODES[63874]=new O(63874,"unknown_f982",void 0,[],void 0),O.UNKNOWN_F983=t.OPCODES[63875]=new O(63875,"unknown_f983",void 0,[],void 0),O.UNKNOWN_F984=t.OPCODES[63876]=new O(63876,"unknown_f984",void 0,[],void 0),O.UNKNOWN_F985=t.OPCODES[63877]=new O(63877,"unknown_f985",void 0,[],void 0),O.UNKNOWN_F986=t.OPCODES[63878]=new O(63878,"unknown_f986",void 0,[],void 0),O.UNKNOWN_F987=t.OPCODES[63879]=new O(63879,"unknown_f987",void 0,[],void 0),O.UNKNOWN_F988=t.OPCODES[63880]=new O(63880,"unknown_f988",void 0,[],void 0),O.UNKNOWN_F989=t.OPCODES[63881]=new O(63881,"unknown_f989",void 0,[],void 0),O.UNKNOWN_F98A=t.OPCODES[63882]=new O(63882,"unknown_f98a",void 0,[],void 0),O.UNKNOWN_F98B=t.OPCODES[63883]=new O(63883,"unknown_f98b",void 0,[],void 0),O.UNKNOWN_F98C=t.OPCODES[63884]=new O(63884,"unknown_f98c",void 0,[],void 0),O.UNKNOWN_F98D=t.OPCODES[63885]=new O(63885,"unknown_f98d",void 0,[],void 0),O.UNKNOWN_F98E=t.OPCODES[63886]=new O(63886,"unknown_f98e",void 0,[],void 0),O.UNKNOWN_F98F=t.OPCODES[63887]=new O(63887,"unknown_f98f",void 0,[],void 0),O.UNKNOWN_F990=t.OPCODES[63888]=new O(63888,"unknown_f990",void 0,[],void 0),O.UNKNOWN_F991=t.OPCODES[63889]=new O(63889,"unknown_f991",void 0,[],void 0),O.UNKNOWN_F992=t.OPCODES[63890]=new O(63890,"unknown_f992",void 0,[],void 0),O.UNKNOWN_F993=t.OPCODES[63891]=new O(63891,"unknown_f993",void 0,[],void 0),O.UNKNOWN_F994=t.OPCODES[63892]=new O(63892,"unknown_f994",void 0,[],void 0),O.UNKNOWN_F995=t.OPCODES[63893]=new O(63893,"unknown_f995",void 0,[],void 0),O.UNKNOWN_F996=t.OPCODES[63894]=new O(63894,"unknown_f996",void 0,[],void 0),O.UNKNOWN_F997=t.OPCODES[63895]=new O(63895,"unknown_f997",void 0,[],void 0),O.UNKNOWN_F998=t.OPCODES[63896]=new O(63896,"unknown_f998",void 0,[],void 0),O.UNKNOWN_F999=t.OPCODES[63897]=new O(63897,"unknown_f999",void 0,[],void 0),O.UNKNOWN_F99A=t.OPCODES[63898]=new O(63898,"unknown_f99a",void 0,[],void 0),O.UNKNOWN_F99B=t.OPCODES[63899]=new O(63899,"unknown_f99b",void 0,[],void 0),O.UNKNOWN_F99C=t.OPCODES[63900]=new O(63900,"unknown_f99c",void 0,[],void 0),O.UNKNOWN_F99D=t.OPCODES[63901]=new O(63901,"unknown_f99d",void 0,[],void 0),O.UNKNOWN_F99E=t.OPCODES[63902]=new O(63902,"unknown_f99e",void 0,[],void 0),O.UNKNOWN_F99F=t.OPCODES[63903]=new O(63903,"unknown_f99f",void 0,[],void 0),O.UNKNOWN_F9A0=t.OPCODES[63904]=new O(63904,"unknown_f9a0",void 0,[],void 0),O.UNKNOWN_F9A1=t.OPCODES[63905]=new O(63905,"unknown_f9a1",void 0,[],void 0),O.UNKNOWN_F9A2=t.OPCODES[63906]=new O(63906,"unknown_f9a2",void 0,[],void 0),O.UNKNOWN_F9A3=t.OPCODES[63907]=new O(63907,"unknown_f9a3",void 0,[],void 0),O.UNKNOWN_F9A4=t.OPCODES[63908]=new O(63908,"unknown_f9a4",void 0,[],void 0),O.UNKNOWN_F9A5=t.OPCODES[63909]=new O(63909,"unknown_f9a5",void 0,[],void 0),O.UNKNOWN_F9A6=t.OPCODES[63910]=new O(63910,"unknown_f9a6",void 0,[],void 0),O.UNKNOWN_F9A7=t.OPCODES[63911]=new O(63911,"unknown_f9a7",void 0,[],void 0),O.UNKNOWN_F9A8=t.OPCODES[63912]=new O(63912,"unknown_f9a8",void 0,[],void 0),O.UNKNOWN_F9A9=t.OPCODES[63913]=new O(63913,"unknown_f9a9",void 0,[],void 0),O.UNKNOWN_F9AA=t.OPCODES[63914]=new O(63914,"unknown_f9aa",void 0,[],void 0),O.UNKNOWN_F9AB=t.OPCODES[63915]=new O(63915,"unknown_f9ab",void 0,[],void 0),O.UNKNOWN_F9AC=t.OPCODES[63916]=new O(63916,"unknown_f9ac",void 0,[],void 0),O.UNKNOWN_F9AD=t.OPCODES[63917]=new O(63917,"unknown_f9ad",void 0,[],void 0),O.UNKNOWN_F9AE=t.OPCODES[63918]=new O(63918,"unknown_f9ae",void 0,[],void 0),O.UNKNOWN_F9AF=t.OPCODES[63919]=new O(63919,"unknown_f9af",void 0,[],void 0),O.UNKNOWN_F9B0=t.OPCODES[63920]=new O(63920,"unknown_f9b0",void 0,[],void 0),O.UNKNOWN_F9B1=t.OPCODES[63921]=new O(63921,"unknown_f9b1",void 0,[],void 0),O.UNKNOWN_F9B2=t.OPCODES[63922]=new O(63922,"unknown_f9b2",void 0,[],void 0),O.UNKNOWN_F9B3=t.OPCODES[63923]=new O(63923,"unknown_f9b3",void 0,[],void 0),O.UNKNOWN_F9B4=t.OPCODES[63924]=new O(63924,"unknown_f9b4",void 0,[],void 0),O.UNKNOWN_F9B5=t.OPCODES[63925]=new O(63925,"unknown_f9b5",void 0,[],void 0),O.UNKNOWN_F9B6=t.OPCODES[63926]=new O(63926,"unknown_f9b6",void 0,[],void 0),O.UNKNOWN_F9B7=t.OPCODES[63927]=new O(63927,"unknown_f9b7",void 0,[],void 0),O.UNKNOWN_F9B8=t.OPCODES[63928]=new O(63928,"unknown_f9b8",void 0,[],void 0),O.UNKNOWN_F9B9=t.OPCODES[63929]=new O(63929,"unknown_f9b9",void 0,[],void 0),O.UNKNOWN_F9BA=t.OPCODES[63930]=new O(63930,"unknown_f9ba",void 0,[],void 0),O.UNKNOWN_F9BB=t.OPCODES[63931]=new O(63931,"unknown_f9bb",void 0,[],void 0),O.UNKNOWN_F9BC=t.OPCODES[63932]=new O(63932,"unknown_f9bc",void 0,[],void 0),O.UNKNOWN_F9BD=t.OPCODES[63933]=new O(63933,"unknown_f9bd",void 0,[],void 0),O.UNKNOWN_F9BE=t.OPCODES[63934]=new O(63934,"unknown_f9be",void 0,[],void 0),O.UNKNOWN_F9BF=t.OPCODES[63935]=new O(63935,"unknown_f9bf",void 0,[],void 0),O.UNKNOWN_F9C0=t.OPCODES[63936]=new O(63936,"unknown_f9c0",void 0,[],void 0),O.UNKNOWN_F9C1=t.OPCODES[63937]=new O(63937,"unknown_f9c1",void 0,[],void 0),O.UNKNOWN_F9C2=t.OPCODES[63938]=new O(63938,"unknown_f9c2",void 0,[],void 0),O.UNKNOWN_F9C3=t.OPCODES[63939]=new O(63939,"unknown_f9c3",void 0,[],void 0),O.UNKNOWN_F9C4=t.OPCODES[63940]=new O(63940,"unknown_f9c4",void 0,[],void 0),O.UNKNOWN_F9C5=t.OPCODES[63941]=new O(63941,"unknown_f9c5",void 0,[],void 0),O.UNKNOWN_F9C6=t.OPCODES[63942]=new O(63942,"unknown_f9c6",void 0,[],void 0),O.UNKNOWN_F9C7=t.OPCODES[63943]=new O(63943,"unknown_f9c7",void 0,[],void 0),O.UNKNOWN_F9C8=t.OPCODES[63944]=new O(63944,"unknown_f9c8",void 0,[],void 0),O.UNKNOWN_F9C9=t.OPCODES[63945]=new O(63945,"unknown_f9c9",void 0,[],void 0),O.UNKNOWN_F9CA=t.OPCODES[63946]=new O(63946,"unknown_f9ca",void 0,[],void 0),O.UNKNOWN_F9CB=t.OPCODES[63947]=new O(63947,"unknown_f9cb",void 0,[],void 0),O.UNKNOWN_F9CC=t.OPCODES[63948]=new O(63948,"unknown_f9cc",void 0,[],void 0),O.UNKNOWN_F9CD=t.OPCODES[63949]=new O(63949,"unknown_f9cd",void 0,[],void 0),O.UNKNOWN_F9CE=t.OPCODES[63950]=new O(63950,"unknown_f9ce",void 0,[],void 0),O.UNKNOWN_F9CF=t.OPCODES[63951]=new O(63951,"unknown_f9cf",void 0,[],void 0),O.UNKNOWN_F9D0=t.OPCODES[63952]=new O(63952,"unknown_f9d0",void 0,[],void 0),O.UNKNOWN_F9D1=t.OPCODES[63953]=new O(63953,"unknown_f9d1",void 0,[],void 0),O.UNKNOWN_F9D2=t.OPCODES[63954]=new O(63954,"unknown_f9d2",void 0,[],void 0),O.UNKNOWN_F9D3=t.OPCODES[63955]=new O(63955,"unknown_f9d3",void 0,[],void 0),O.UNKNOWN_F9D4=t.OPCODES[63956]=new O(63956,"unknown_f9d4",void 0,[],void 0),O.UNKNOWN_F9D5=t.OPCODES[63957]=new O(63957,"unknown_f9d5",void 0,[],void 0),O.UNKNOWN_F9D6=t.OPCODES[63958]=new O(63958,"unknown_f9d6",void 0,[],void 0),O.UNKNOWN_F9D7=t.OPCODES[63959]=new O(63959,"unknown_f9d7",void 0,[],void 0),O.UNKNOWN_F9D8=t.OPCODES[63960]=new O(63960,"unknown_f9d8",void 0,[],void 0),O.UNKNOWN_F9D9=t.OPCODES[63961]=new O(63961,"unknown_f9d9",void 0,[],void 0),O.UNKNOWN_F9DA=t.OPCODES[63962]=new O(63962,"unknown_f9da",void 0,[],void 0),O.UNKNOWN_F9DB=t.OPCODES[63963]=new O(63963,"unknown_f9db",void 0,[],void 0),O.UNKNOWN_F9DC=t.OPCODES[63964]=new O(63964,"unknown_f9dc",void 0,[],void 0),O.UNKNOWN_F9DD=t.OPCODES[63965]=new O(63965,"unknown_f9dd",void 0,[],void 0),O.UNKNOWN_F9DE=t.OPCODES[63966]=new O(63966,"unknown_f9de",void 0,[],void 0),O.UNKNOWN_F9DF=t.OPCODES[63967]=new O(63967,"unknown_f9df",void 0,[],void 0),O.UNKNOWN_F9E0=t.OPCODES[63968]=new O(63968,"unknown_f9e0",void 0,[],void 0),O.UNKNOWN_F9E1=t.OPCODES[63969]=new O(63969,"unknown_f9e1",void 0,[],void 0),O.UNKNOWN_F9E2=t.OPCODES[63970]=new O(63970,"unknown_f9e2",void 0,[],void 0),O.UNKNOWN_F9E3=t.OPCODES[63971]=new O(63971,"unknown_f9e3",void 0,[],void 0),O.UNKNOWN_F9E4=t.OPCODES[63972]=new O(63972,"unknown_f9e4",void 0,[],void 0),O.UNKNOWN_F9E5=t.OPCODES[63973]=new O(63973,"unknown_f9e5",void 0,[],void 0),O.UNKNOWN_F9E6=t.OPCODES[63974]=new O(63974,"unknown_f9e6",void 0,[],void 0),O.UNKNOWN_F9E7=t.OPCODES[63975]=new O(63975,"unknown_f9e7",void 0,[],void 0),O.UNKNOWN_F9E8=t.OPCODES[63976]=new O(63976,"unknown_f9e8",void 0,[],void 0),O.UNKNOWN_F9E9=t.OPCODES[63977]=new O(63977,"unknown_f9e9",void 0,[],void 0),O.UNKNOWN_F9EA=t.OPCODES[63978]=new O(63978,"unknown_f9ea",void 0,[],void 0),O.UNKNOWN_F9EB=t.OPCODES[63979]=new O(63979,"unknown_f9eb",void 0,[],void 0),O.UNKNOWN_F9EC=t.OPCODES[63980]=new O(63980,"unknown_f9ec",void 0,[],void 0),O.UNKNOWN_F9ED=t.OPCODES[63981]=new O(63981,"unknown_f9ed",void 0,[],void 0),O.UNKNOWN_F9EE=t.OPCODES[63982]=new O(63982,"unknown_f9ee",void 0,[],void 0),O.UNKNOWN_F9EF=t.OPCODES[63983]=new O(63983,"unknown_f9ef",void 0,[],void 0),O.UNKNOWN_F9F0=t.OPCODES[63984]=new O(63984,"unknown_f9f0",void 0,[],void 0),O.UNKNOWN_F9F1=t.OPCODES[63985]=new O(63985,"unknown_f9f1",void 0,[],void 0),O.UNKNOWN_F9F2=t.OPCODES[63986]=new O(63986,"unknown_f9f2",void 0,[],void 0),O.UNKNOWN_F9F3=t.OPCODES[63987]=new O(63987,"unknown_f9f3",void 0,[],void 0),O.UNKNOWN_F9F4=t.OPCODES[63988]=new O(63988,"unknown_f9f4",void 0,[],void 0),O.UNKNOWN_F9F5=t.OPCODES[63989]=new O(63989,"unknown_f9f5",void 0,[],void 0),O.UNKNOWN_F9F6=t.OPCODES[63990]=new O(63990,"unknown_f9f6",void 0,[],void 0),O.UNKNOWN_F9F7=t.OPCODES[63991]=new O(63991,"unknown_f9f7",void 0,[],void 0),O.UNKNOWN_F9F8=t.OPCODES[63992]=new O(63992,"unknown_f9f8",void 0,[],void 0),O.UNKNOWN_F9F9=t.OPCODES[63993]=new O(63993,"unknown_f9f9",void 0,[],void 0),O.UNKNOWN_F9FA=t.OPCODES[63994]=new O(63994,"unknown_f9fa",void 0,[],void 0),O.UNKNOWN_F9FB=t.OPCODES[63995]=new O(63995,"unknown_f9fb",void 0,[],void 0),O.UNKNOWN_F9FC=t.OPCODES[63996]=new O(63996,"unknown_f9fc",void 0,[],void 0),O.UNKNOWN_F9FD=t.OPCODES[63997]=new O(63997,"unknown_f9fd",void 0,[],void 0),O.UNKNOWN_F9FE=t.OPCODES[63998]=new O(63998,"unknown_f9fe",void 0,[],void 0),O.UNKNOWN_F9FF=t.OPCODES[63999]=new O(63999,"unknown_f9ff",void 0,[],void 0),t.Opcode=O,t.OPCODES.forEach(e=>{t.OPCODES_BY_MNEMONIC.set(e.mnemonic,e)})},Za3H:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb"),o=i("nN8q"),s=i("6cU9"),r=i("w6HN"),a=i("4/Uj"),d=i("KUR2"),l=i("469Q"),u=i("4SjJ");class c extends o.ResizableWidget{constructor(){super(n.el.div({class:"viewer_TextureView"})),this.open_file_button=new s.FileButton("Open file...",{icon_left:n.Icon.File,accept:".xvm"}),this.tool_bar=this.disposable(new r.ToolBar({children:[this.open_file_button]})),this.renderer_view=this.disposable(new d.RendererWidget(new l.TextureRenderer)),this.element.append(this.tool_bar.element,this.renderer_view.element),this.disposable(this.open_file_button.files.observe(({value:e})=>{e.length&&a.texture_store.load_file(e[0])})),this.renderer_view.start_rendering(),this.disposable(u.gui_store.tool.observe(({value:e})=>{e===u.GuiTool.Viewer?this.renderer_view.start_rendering():this.renderer_view.stop_rendering()})),this.finalize_construction(c.prototype)}resize(e,t){return super.resize(e,t),this.renderer_view.resize(e,Math.max(0,t-this.tool_bar.height)),this}}t.TextureView=c},aEXR:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("bcBH"),s=i("NRxM"),r=i("XDYw"),a=i("y42t"),d=i("Yuai"),l=i("AUhH"),u=i("eFYZ"),c=new l.LoadingCache,_=new l.LoadingCache;function p(e,t,i){const n=h(e,t,i,"render").then(e=>u.area_geometry_to_sections_and_object_3d(a.parse_area_geometry(new s.ArrayBufferCursor(e,o.Endianness.Little))));return{geometry:n.then(([,e])=>e),sections:n.then(([e])=>e)}}t.load_area_sections=function(e,t,i){return n(this,void 0,void 0,function*(){return c.get_or_set(`${e}-${t}-${i}`,()=>p(e,t,i)).sections})},t.load_area_render_geometry=function(e,t,i){return n(this,void 0,void 0,function*(){return c.get_or_set(`${e}-${t}-${i}`,()=>p(e,t,i)).geometry})},t.load_area_collision_geometry=function(e,t,i){return n(this,void 0,void 0,function*(){return _.get_or_set(`${e}-${t}-${i}`,()=>h(e,t,i,"collision").then(e=>u.area_collision_geometry_to_object_3d(r.parse_area_collision_geometry(new s.ArrayBufferCursor(e,o.Endianness.Little)))))})};const v=[[["city00_00",1],["forest01",1],["forest02",1],["cave01_",6],["cave02_",5],["cave03_",6],["machine01_",6],["machine02_",6],["ancient01_",5],["ancient02_",5],["ancient03_",5],["boss01",1],["boss02",1],["boss03",1],["darkfalz00",1]],[["labo00_00",1],["ruins01_",3],["ruins02_",3],["space01_",3],["space02_",3],["jungle01_00",1],["jungle02_00",1],["jungle03_00",1],["jungle04_",3],["jungle05_00",1],["seabed01_",3],["seabed02_",3],["boss05",1],["boss06",1],["boss07",1],["boss08",1],["jungle06_00",1],["jungle07_",5]],[],[["city02_00",1],["wilds01_00",1],["wilds01_01",1],["wilds01_02",1],["wilds01_03",1],["crater01_00",1],["desert01_",3],["desert02_",3],["desert03_",3],["boss09_00",1]]];function h(e,t,i,o){return n(this,void 0,void 0,function*(){const n=function(e,t,i){16===t&&1===i&&(t=17,i=1);const n=v[e-1];if(0<=t&&t{this._selected_entity.val=void 0,this._current_area.val=e},this.set_selected_entity=e=>{e&&this.current_quest.val&&(this._current_area.val=_.area_store.get_area(this.current_quest.val.episode,e.area_id)),this._selected_entity.val=e},this.new_quest=e=>{this.set_quest(O.create_new_quest(e))},this.open_file=e=>n(this,void 0,void 0,function*(){try{const t=yield r.read_file(e),i=a.parse_quest(new d.ArrayBufferCursor(t,l.Endianness.Little));this.set_quest(i&&new s.QuestModel(i.id,i.language,i.name,i.short_description,i.long_description,i.episode,i.map_designations,i.objects.map(e=>new u.QuestObjectModel(e.type,e.id,e.group_id,e.area_id,e.section_id,e.position,e.rotation,e.properties,e.unknown)),i.npcs.map(e=>new c.QuestNpcModel(e.type,e.pso_type_id,e.npc_id,e.script_label,e.roaming,e.area_id,e.section_id,e.position,e.rotation,e.scale,e.unknown)),i.dat_unknowns,i.object_code,i.shop_items),e.name)}catch(e){b.error("Couldn't read file.",e)}}),this.save_as=()=>{const e=this.current_quest.val;if(!e)return;let t=prompt("File name:");if(!t)return;const i=a.write_quest_qst({id:e.id.val,language:e.language.val,name:e.name.val,short_description:e.short_description.val,long_description:e.long_description.val,episode:e.episode,objects:e.objects.val.map(e=>({type:e.type,area_id:e.area_id,section_id:e.section_id.val,position:e.position.val,rotation:e.rotation.val,unknown:e.unknown,id:e.id,group_id:e.group_id,properties:e.properties})),npcs:e.npcs.val.map(e=>({type:e.type,area_id:e.area_id,section_id:e.section_id.val,position:e.position.val,rotation:e.rotation.val,scale:e.scale,unknown:e.unknown,pso_type_id:e.pso_type_id,npc_id:e.npc_id,script_label:e.script_label,roaming:e.roaming})),dat_unknowns:e.dat_unknowns,object_code:e.object_code,shop_items:e.shop_items,map_designations:e.map_designations.val},t);t.endsWith(".qst")||(t+=".qst");const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([i],{type:"application/octet-stream"})),n.download=t,document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)},this.push_edit_id_action=e=>{this.current_quest.val&&this.undo.push(new y.EditIdAction(this.current_quest.val,e)).redo()},this.push_edit_name_action=e=>{this.current_quest.val&&this.undo.push(new g.EditNameAction(this.current_quest.val,e)).redo()},this.push_edit_short_description_action=e=>{this.current_quest.val&&this.undo.push(new f.EditShortDescriptionAction(this.current_quest.val,e)).redo()},this.push_edit_long_description_action=e=>{this.current_quest.val&&this.undo.push(new m.EditLongDescriptionAction(this.current_quest.val,e)).redo()},this.push_translate_entity_action=(e,t,i,n,o,s)=>{this.undo.push(new w.TranslateEntityAction(e,t,i,n,o,s)).redo()},this.set_section_on_quest_entity=(e,t)=>{const i=t.find(t=>t.id===e.section_id.val);i?e.set_section(i):b.warn(`Section ${e.section_id.val} not found.`)},this.current_quest_filename=this._current_quest_filename,this.current_quest=this._current_quest,this.current_area=this._current_area,this.selected_entity=this._selected_entity,this.disposer.add(v.gui_store.tool.observe(({value:e})=>{e===v.GuiTool.QuestEditor&&this.undo.make_current()},{call_now:!0}))}dispose(){this.disposer.dispose()}set_quest(e,t){return n(this,void 0,void 0,function*(){if(this.undo.reset(),this._current_area.val=void 0,this._selected_entity.val=void 0,this._current_quest_filename.val=t,this._current_quest.val=e,e){this._current_area.val=_.area_store.get_area(e.episode,0);for(const t of e.area_variants.val){const i=yield _.area_store.get_area_sections(e.episode,t.area.id,t.id);t.sections.val.splice(0,1/0,...i);for(const n of e.objects.val.filter(e=>e.area_id===t.area.id))try{this.set_section_on_quest_entity(n,i)}catch(e){b.error(e)}for(const n of e.npcs.val.filter(e=>e.area_id===t.area.id))try{this.set_section_on_quest_entity(n,i)}catch(e){b.error(e)}}}else b.error("Couldn't parse quest file.")})}}t.QuestEditorStore=E,t.quest_editor_store=new E},dx17:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i("nsCy"),r=i("G+UN"),a=i("6WXA"),d=o(i("GGSb")),l=i("sZ1+"),u=i("lC1H"),c=d.default.get("stores/ItemDropStore");class _{constructor(e){this.enemy_drops=e}}t.ItemDropStore=_;class p{constructor(){this.table=[],this.item_type_to_drops=[];for(let e=0;e=0){const e=new r.SectionModel(d.id,d.position,d.rotation.y);t.push(e),l.userData.section=e}}return[t,i]}},hUhj:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nEgy"),o=i("52VV"),s=i("+LO4");t.AbstractProperty=class extends s.AbstractMinimalProperty{map(e){return new n.DependentProperty([this],()=>e(this.val))}flat_map(e){return new o.FlatMappedProperty(this,t=>e(t))}}},hVaW:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ASM_SYNTAX={defaultToken:"invalid",tokenizer:{root:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/r\d+/,"predefined"],[/[^\s]+:/,"tag"],[/0x[0-9a-fA-F]+/,"number.hex"],[/-?\d+(\.\d+)?(e-?\d+)?/,"number.float"],[/-?[0-9]+/,"number"],[/\.[^\s]+/,"keyword"],[/[a-z][a-z0-9_=<>!]*/,"identifier"],[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/,/,"delimiter"]],string:[[/[^\\"]+/,"string"],[/\\(?:[n\\"])/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}},iR5r:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt");function o(e){let t,i;switch(e.format[1]){case 6:t=n.RGBA_S3TC_DXT1_Format,i=e.width*e.height/2;break;case 7:t=n.RGBA_S3TC_DXT3_Format,i=e.width*e.height;break;default:throw new Error(`Format ${e.format.join(", ")} not supported.`)}const o=new n.CompressedTexture([{data:new Uint8Array(e.data,0,i),width:e.width,height:e.height}],e.width,e.height,t);return o.minFilter=n.LinearFilter,o.wrapS=n.MirroredRepeatWrapping,o.wrapT=n.MirroredRepeatWrapping,o.needsUpdate=!0,o}t.xvm_to_textures=function(e){return e.textures.map(o)},t.xvm_texture_to_texture=o},j4Ss:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nN8q"),o=i("FXpb"),s=i("rqwK"),r=i("sZ1+");i("Czz9");const a=i("CpvQ"),d=i("yar8"),l=i("ouMO");class u extends n.ResizableWidget{constructor(e){super(o.el.div({class:"hunt_optimizer_MethodsForEpisodeView"})),this.episode=e,this.enemy_types=r.ENEMY_NPC_TYPES.filter(e=>r.npc_data(e).episode===this.episode);const t=l.list_property(),i=this.disposable(new d.Table({class:"hunt_optimizer_MethodsForEpisodeView_table",values:t,sort:e=>{t.sort((t,i)=>{for(const{column:n,direction:o}of e){let e=0;switch(n.key){case"method":e=t.name.localeCompare(i.name);break;case"time":e=t.time.val.as("minutes")-i.time.val.as("minutes");break;default:{const o=r.NpcType[n.key];o&&(e=(t.enemy_counts.get(o)||0)-(i.enemy_counts.get(o)||0))}}if(0!==e)return o===d.SortDirection.Asc?e:-e}return 0})},columns:[{key:"method",title:"Method",fixed:!0,width:250,sortable:!0,render_cell:e=>e.name},{key:"time",title:"Time",fixed:!0,width:60,input:!0,sortable:!0,render_cell(e,t){const i=t.add(new a.DurationInput(e.time.val));return t.add(i.value.observe(({value:t})=>e.set_user_time(t))),i.element}},...this.enemy_types.map(e=>({key:r.NpcType[e],title:r.npc_data(e).simple_name,width:90,text_align:"right",sortable:!0,render_cell(t){const i=t.enemy_counts.get(e);return null==i?"":i.toString()}}))]}));this.element.append(i.element),this.disposable(s.hunt_method_stores.observe_current(e=>{this.hunt_methods_observer&&this.hunt_methods_observer.dispose(),this.hunt_methods_observer=e.methods.observe(({value:e})=>{t.val=e.filter(e=>e.episode===this.episode)},{call_now:!0})},{call_now:!0})),this.finalize_construction(u.prototype)}dispose(){super.dispose(),this.hunt_methods_observer&&this.hunt_methods_observer.dispose()}}t.MethodsForEpisodeView=u},jJhE:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.is_property=function(e){return e.is_property},t.is_any_property=function(e){return e&&e.is_property}},karJ:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("Yuai");t.get_character_class_data=function(e,t,i){return n(this,void 0,void 0,function*(){return yield o.load_array_buffer(function(e,t,i){return`/player/${e}${t}${null==i?"":i}.nj`}(e,t,i))})},t.get_character_class_animation_data=function(e){return n(this,void 0,void 0,function*(){return yield o.load_array_buffer(`/player/animation/animation_${e.toString().padStart(3,"0")}.njm`)})}},kiqn:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("yRp4"),o=i("ouMO");t.QuestEntityModel=class{constructor(e,t,i,s,r){this._section=o.property(void 0),this.position_to_world_position=(e,t)=>{if(e){let{x:i,y:o,z:s}=t;const r=-e.sin_y_axis_rotation,a=e.cos_y_axis_rotation,d=r*i+a*s,l=a*i-r*s+e.position.x,u=o+e.position.y,c=d+e.position.z;return new n.Vec3(l,u,c)}return t},this.type=e,this.area_id=t,this.section=this._section,this._section_id=o.property(i),this.section_id=this._section_id,this._position=o.property(s),this.position=this._position,this._rotation=o.property(r),this.rotation=this._rotation,this.world_position=o.map(this.position_to_world_position,this.section,this.position)}set_section(e){return this._section.val=e,this._section_id.val=e.id,this}set_position(e){this._position.val=e}set_rotation(e){this._rotation.val=e}set_world_position(e){let{x:t,y:i,z:o}=e;const s=this.section.val;if(s){const e=t-s.position.x,n=i-s.position.y,r=o-s.position.z,a=-s.sin_y_axis_rotation,d=s.cos_y_axis_rotation;t=d*e+a*r,i=n,o=-a*e+d*r}return this._position.val=new n.Vec3(t,i,o),this}}},kwt4:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("yRp4"),o=i("9Ykw"),s=i("9Onn"),r=i("q7ag");t.ANGLE_TO_RAD=2*Math.PI/65535;const a=1296255566;t.is_njcm_model=function(e){return"njcm"===e.type},t.is_xj_model=function(e){return"xj"===e.type};class d{constructor(e,t,i,n,o,s){this.bone_cache=new Map,this._bone_count=-1,this.evaluation_flags=e,this.model=t,this.position=i,this.rotation=n,this.scale=o,this.children=s}bone_count(){if(-1===this._bone_count){const e=[0];this.get_bone_internal(this,1/0,e),this._bone_count=e[0]}return this._bone_count}get_bone(e){let t=this.bone_cache.get(e);return void 0===t&&(t=this.get_bone_internal(this,e,[0]),this.bone_cache.set(e,t||null)),t||void 0}get_bone_internal(e,t,i){if(!e.evaluation_flags.skip){const n=i[0]++;if(this.bone_cache.set(n,e),n===t)return e}if(!e.evaluation_flags.break_child_trace)for(const n of e.children){const e=this.get_bone_internal(n,t,i);if(e)return e}}}function l(e,t,i){const n=o.parse_iff(e).filter(e=>e.type===a),s=[];for(const e of n)s.push(...u(e.data,t,i));return s}function u(e,i,o){const s=e.u32(),r=0!=(1&s),a=0!=(2&s),l=0!=(4&s),c=0!=(8&s),_=0!=(16&s),p=0!=(32&s),v=0!=(64&s),h=0!=(128&s),w=e.u32(),f=e.f32(),m=e.f32(),g=e.f32(),y=e.i32()*t.ANGLE_TO_RAD,O=e.i32()*t.ANGLE_TO_RAD,b=e.i32()*t.ANGLE_TO_RAD,E=e.f32(),S=e.f32(),R=e.f32(),k=e.u32(),N=e.u32();let P,C,D;return w&&(e.seek_start(w),P=i(e,o)),k?(e.seek_start(k),C=u(e,i,o)):C=[],N?(e.seek_start(N),D=u(e,i,o)):D=[],[new d({no_translate:r,no_rotate:a,no_scale:l,hidden:c,break_child_trace:_,zxy_rotation_order:p,skip:v,shape_skip:h},P,new n.Vec3(f,m,g),new n.Vec3(y,O,b),new n.Vec3(E,S,R),C),...D]}t.NjObject=d,t.parse_nj=function(e){return l(e,s.parse_njcm_model,[])},t.parse_xj=function(e){return l(e,r.parse_xj_model,void 0)},t.parse_xj_object=function(e){return u(e,r.parse_xj_model,void 0)}},lC1H:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EnemyDrop=class{constructor(e,t,i,n,o,s){this.difficulty=e,this.section_id=t,this.npc_type=i,this.item_type=n,this.anything_rate=o,this.rare_rate=s,this.rate=o*s}}},lHpu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=i("tyuj"),s=i("iR5r"),r=i("Eqai"),a=i("488w"),d=i("7CyS"),l=i("Ftn7"),u=i("Tpfs");t.Model3DRenderer=class extends l.Renderer{constructor(){super(new n.PerspectiveCamera(75,1,1,200)),this.disposer=new u.Disposer,this.clock=new n.Clock,this.update_animation_time=!0,this.nj_data_or_xvm_changed=()=>{this.mesh&&(this.scene.remove(this.mesh),this.mesh=void 0,this.scene.remove(this.skeleton_helper),this.skeleton_helper=void 0),this.animation&&(this.animation.mixer.stopAllAction(),this.mesh&&this.animation.mixer.uncacheRoot(this.mesh),this.animation=void 0);const e=o.model_store.current_nj_data.val;if(e){const{nj_object:t,has_skeleton:i}=e;let d;const l=o.model_store.current_xvm.val,u=l?s.xvm_to_textures(l):void 0,c=u&&u.map(e=>new n.MeshLambertMaterial({skinning:i,map:e,side:n.DoubleSide,alphaTest:.5})),_=(d=i?r.create_skinned_mesh(a.ninja_object_to_buffer_geometry(t),c):r.create_mesh(a.ninja_object_to_buffer_geometry(t),c)).geometry.boundingBox,p=_.max.y-_.min.y;d.translateY(-p/2-_.min.y),this.mesh=d,this.scene.add(d),this.skeleton_helper=new n.SkeletonHelper(d),this.skeleton_helper.visible=o.model_store.show_skeleton.val,this.skeleton_helper.material.linewidth=3,this.scene.add(this.skeleton_helper),this.reset_camera(new n.Vector3(0,10,20),new n.Vector3(0,0,0))}this.schedule_render()},this.nj_motion_changed=({value:e})=>{let t;this.animation&&(this.animation.mixer.stopAllAction(),t=this.animation.mixer);const i=o.model_store.current_nj_data.val;if(!(this.mesh&&this.mesh instanceof n.SkinnedMesh&&e&&i))return;this.animation||(t=new n.AnimationMixer(this.mesh));const s=d.create_animation_clip(i.nj_object,e);this.animation={mixer:t,clip:s,action:t.clipAction(s)},this.clock.start(),this.animation.action.play(),this.schedule_render()},this.show_skeleton_changed=({value:e})=>{this.skeleton_helper&&(this.skeleton_helper.visible=e,this.schedule_render())},this.animation_playing_changed=({value:e})=>{this.animation&&(this.animation.action.paused=!e,e?(this.clock.start(),this.schedule_render()):this.clock.stop())},this.animation_frame_rate_changed=({value:e})=>{this.animation&&(this.animation.mixer.timeScale=e/d.PSO_FRAME_RATE)},this.animation_frame_changed=({value:e})=>{const t=o.model_store.current_nj_motion.val;if(this.animation&&t){const i=t.frame_count;e>i&&(e=1),e<1&&(e=i),this.update_animation_time&&(this.animation.action.time=(e-1)/d.PSO_FRAME_RATE),this.schedule_render()}},this.perspective_camera=this.camera,this.disposer.add_all(o.model_store.current_nj_data.observe(this.nj_data_or_xvm_changed),o.model_store.current_xvm.observe(this.nj_data_or_xvm_changed),o.model_store.current_nj_motion.observe(this.nj_motion_changed),o.model_store.show_skeleton.observe(this.show_skeleton_changed),o.model_store.animation_playing.observe(this.animation_playing_changed),o.model_store.animation_frame_rate.observe(this.animation_frame_rate_changed),o.model_store.animation_frame.observe(this.animation_frame_changed))}set_size(e,t){this.perspective_camera.aspect=e/t,this.perspective_camera.updateProjectionMatrix(),super.set_size(e,t)}dispose(){super.dispose(),this.disposer.dispose()}render(){this.animation&&this.animation.mixer.update(this.clock.getDelta()),this.light_holder.quaternion.copy(this.perspective_camera.quaternion),super.render(),this.animation&&!this.animation.action.paused&&(this.update_animation_frame(),this.schedule_render())}update_animation_frame(){if(this.animation&&!this.animation.action.paused){const e=this.animation.action.time;this.update_animation_time=!1,o.model_store.animation_frame.val=e*d.PSO_FRAME_RATE+1,this.update_animation_time=!0}}}},lPzw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.AreaModel=class{constructor(e,t,i,n){if(!Number.isInteger(e)||e<0)throw new Error(`Expected id to be a non-negative integer, got ${e}.`);if(!t)throw new Error("name is required.");if(!n)throw new Error("area_variants is required.");this.id=e,this.name=t,this.order=i,this.area_variants=n}}},lg9k:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ZPAt");t.Instruction=class{constructor(e,t){this.opcode=e,this.args=t,this.arg_size=0,this.param_to_args=[];const i=Math.min(e.params.length,t.length);for(let o=0;oe.can_undo),this.can_redo=this.current.flat_map(e=>e.can_redo),this.first_undo=this.current.flat_map(e=>e.first_undo),this.first_redo=this.current.flat_map(e=>e.first_redo)}undo(){return this.current.val.undo()}redo(){return this.current.val.redo()}}},nEgy:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Tpfs"),o=i("+LO4"),s=i("52VV");class r extends o.AbstractMinimalProperty{constructor(e,t){super(),this.dependencies=e,this.f=t,this.dependency_disposables=new n.Disposer}get val(){return this.get_val()}get_val(){return this.dependency_disposables.length?this._val:this.f()}observe(e,t={}){const i=super.observe(e,t);return 0===this.dependency_disposables.length&&(this._val=this.f(),this.dependency_disposables.add_all(...this.dependencies.map(e=>e.observe(()=>{const e=this._val;this._val=this.f(),this.emit(e)})))),this.emit(this._val),{dispose:()=>{i.dispose(),0===this.observers.length&&this.dependency_disposables.dispose_all()}}}map(e){return new r([this],()=>e(this.val))}flat_map(e){return new s.FlatMappedProperty(this,t=>e(t))}}t.DependentProperty=r},nN8q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid");t.ResizableWidget=class extends n.Widget{constructor(){super(...arguments),this.width=0,this.height=0}resize(e,t){return this.width=e,this.height=t,this.element.style.width=`${e}px`,this.element.style.height=`${t}px`,this}}},nowp:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ExVU"),o=i("ouMO");t.WantedItemModel=class{constructor(e,t){this.item_type=e,this._amount=o.property(t),this.amount=this._amount}set_amount(e){return this._amount.val=e,this}};t.OptimalResultModel=class{constructor(e,t){this.wanted_items=e,this.optimal_methods=t}};t.OptimalMethodModel=class{constructor(e,t,i,o,s,r,a){this.difficulty=e,this.section_ids=t,this.method_name=i,this.method_episode=o,this.method_time=s,this.runs=r,this.item_counts=a,this.total_time=n.Duration.fromMillis(r*s.as("milliseconds"))}}},nsCy:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("uiJh");var o,s,r;t.RARE_ENEMY_PROB=1/512,t.KONDRIEU_PROB=.1,function(e){e.Ephinea="Ephinea"}(o=t.Server||(t.Server={})),t.Servers=n.enum_values(o),function(e){e[e.Viridia=0]="Viridia",e[e.Greenill=1]="Greenill",e[e.Skyly=2]="Skyly",e[e.Bluefull=3]="Bluefull",e[e.Purplenum=4]="Purplenum",e[e.Pinkal=5]="Pinkal",e[e.Redria=6]="Redria",e[e.Oran=7]="Oran",e[e.Yellowboze=8]="Yellowboze",e[e.Whitill=9]="Whitill"}(s=t.SectionId||(t.SectionId={})),t.SectionIds=n.enum_values(s),function(e){e[e.Normal=0]="Normal",e[e.Hard=1]="Hard",e[e.VHard=2]="VHard",e[e.Ultimate=3]="Ultimate"}(r=t.Difficulty||(t.Difficulty={})),t.Difficulties=n.enum_values(r)},oSIo:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("x4IQ");t.EditShortDescriptionAction=class extends n.QuestEditAction{constructor(){super(...arguments),this.description="Edit short description"}undo(){this.quest.set_short_description(this.old)}redo(){this.quest.set_short_description(this.new)}}},ouMO:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Q+PT"),o=i("0CzU"),s=i("nEgy"),r=i("22Lq");t.emitter=function(){return new n.SimpleEmitter},t.property=function(e){return new o.SimpleProperty(e)},t.list_property=function(e,...t){return new r.SimpleListProperty(e,...t)},t.add=function(e,t){return e.map(e=>e+t)},t.sub=function(e,t){return e.map(e=>e-t)},t.map=function(e,...t){return new s.DependentProperty(t,()=>e(...t.map(e=>e.val)))}},oxtq:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ListChange=0]="ListChange",e[e.ValueChange=1]="ValueChange"}(t.ListChangeType||(t.ListChangeType={})),t.is_list_property=function(e){return e.is_list_property},t.is_any_list_property=function(e){return e&&e.is_list_property}},oyid:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb"),o=i("sDu+"),s=i("4VsB");class r extends o.LabelledControl{constructor(e=!1,t){super(n.create_element("input",{class:"core_CheckBox"}),t),this.preferred_label_position="right",this._checked=new s.WidgetProperty(this,e,this.set_checked),this.checked=this._checked,this.set_checked(e),this.element.type="checkbox",this.element.onchange=()=>this._checked.set_val(this.element.checked,{silent:!1}),this.finalize_construction(r.prototype)}set_enabled(e){super.set_enabled(e),this.element.disabled=!e}set_checked(e){this.element.checked=e}}t.CheckBox=r},pgiS:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("x4IQ");t.EditNameAction=class extends n.QuestEditAction{constructor(){super(...arguments),this.description="Edit name"}undo(){this.quest.set_name(this.old)}redo(){this.quest.set_name(this.new)}}},q7ag:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")).default.get("data_formats/parsing/ninja/xj");function s(e,t,i){const n=[];for(let o=0;o=1&&(i>1&&o.warn(`Vertex info count of ${i} was larger than expected.`),l.vertices.push(...function(e,t){e.seek_start(t);const i=e.u16();e.seek(2);const n=e.u32(),s=e.u32(),r=e.u32(),a=[];for(let t=0;tthis.button_mousedown(),{capture:!0}),u.mouseup.observe(()=>this.button_mouseup()),this.menu.selected.observe(({value:e})=>{e&&(this._chosen.emit({value:e}),this.menu.selected.val=void 0)})),this.finalize_construction(d.prototype)}set_enabled(e){super.set_enabled(e),this.button.enabled.val=e}button_mousedown(){this.just_opened=!this.menu.visible.val,this.menu.visible.val=!0}button_mouseup(){this.just_opened?this.menu.focus():this.menu.visible.val=!1,this.just_opened=!1}}t.DropDown=d},rqwK:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i("GGSb")),r=i("nsCy"),a=i("sZ1+"),d=i("upFJ"),l=i("IV2v"),u=i("RMZt"),c=i("ExVU"),_=i("ouMO"),p=i("Tpfs"),v=i("6WXA"),h=s.default.get("hunt_optimizer/stores/HuntMethodStore"),w=c.Duration.fromObject({minutes:30}),f=c.Duration.fromObject({minutes:45}),m=c.Duration.fromObject({minutes:45});class g{constructor(e,t){this.disposer=new p.Disposer,this.methods=_.list_property(e=>[e.user_time],...t),this.disposer.add(this.methods.observe_list(()=>u.hunt_method_persister.persist_method_user_times(this.methods.val,e)))}dispose(){this.disposer.dispose()}}t.HuntMethodStore=g,t.hunt_method_stores=new v.ServerMap(function(e){return n(this,void 0,void 0,function*(){const t=yield fetch(`/assets/quests.${r.Server[e].toLowerCase()}.json`),i=yield t.json(),n=[];for(const e of i){let t=0;const i=new Map;for(const[n,o]of Object.entries(e.enemyCounts)){const e=a.NpcType[n];e?(i.set(e,o),t+=o):h.error(`No NpcType found for code ${n}.`)}switch(e.id){case 31:case 34:case 1305:case 1306:case 1307:case 313:case 314:continue}n.push(new l.HuntMethodModel(`q${e.id}`,e.name,new d.SimpleQuestModel(e.id,e.name,e.episode,i),/^\d-\d.*/.test(e.name)?f:t>400?m:w))}return yield u.hunt_method_persister.load_method_user_times(n,e),new g(e,n)})})},"sDu+":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("7ZX1"),o=i("QmPX");t.LabelledControl=class extends o.Control{constructor(e,t){super(e,t),this._label_text=t&&t.label}get label(){return this._label||null==this._label_text||(this._label=this.disposable(new n.Label(this._label_text)),this.id||(this._label.for=this.id=String(s++)),this._label.enabled.bind_bi(this.enabled)),this._label}};let s=0},sMN3:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(i("lLyO")),r=i("nsCy"),a=i("sZ1+"),d=i("nowp"),l=i("ouMO"),u=i("rqwK"),c=i("dx17"),_=i("G+UN"),p=i("w+Lt"),v=i("6WXA"),h=i("Tpfs");class w{constructor(e,t,i,o){this.server=e,this.item_drop_store=i,this._wanted_items=l.list_property(e=>[e.amount]),this.disposer=new h.Disposer,this.optimize=(e,t)=>{if(!e.length)return;const i=new Set(e.filter(e=>e.amount.val>0).map(e=>e.item_type)),n=this.item_drop_store.enemy_drops,o={};for(const e of this.wanted_items.val)o[e.item_type.name]={min:e.amount.val};const l={},u=new Map;for(const e of t){const t=new Map;for(const[i,n]of e.enemy_counts.entries()){const e=t.get(i)||0,o=a.npc_data(i);if(null==o.rare_type)t.set(i,e+n);else{let s,d;o.rare_type===a.NpcType.Kondrieu?(s=1-r.KONDRIEU_PROB,d=r.KONDRIEU_PROB):(s=1-r.RARE_ENEMY_PROB,d=r.RARE_ENEMY_PROB),t.set(i,e+n*s),t.set(o.rare_type,(t.get(o.rare_type)||0)+n*d)}}const o=[t],s=t.get(a.NpcType.PanArms);if(s){const e=new Map(t);e.delete(a.NpcType.PanArms),e.set(a.NpcType.Migium,s),e.set(a.NpcType.Hidoom,s),o.push(e)}const d=t.get(a.NpcType.PanArms2);if(d){const e=new Map(t);e.delete(a.NpcType.PanArms2),e.set(a.NpcType.Migium2,d),e.set(a.NpcType.Hidoom2,d),o.push(e)}for(let t=0;tn(this,void 0,void 0,function*(){this._wanted_items.val=yield p.hunt_optimizer_persister.load_wanted_items(this.server),this.disposer.add(this._wanted_items.observe(({value:e})=>{p.hunt_optimizer_persister.persist_wanted_items(this.server,e)}))}),this.huntable_item_types=t.item_types.filter(e=>i.enemy_drops.get_drops_for_item_type(e.id).length),this.wanted_items=this._wanted_items,this.result=l.map(this.optimize,this.wanted_items,o.methods),this.initialize_persistence()}dispose(){this.disposer.dispose()}add_wanted_item(e){this._wanted_items.val.find(t=>t.item_type===e)||this._wanted_items.push(new d.WantedItemModel(e,1))}remove_wanted_item(e){this._wanted_items.remove(e)}full_method_name(e,t,i,n){let o=`${e}\t${t}\t${i.id}`;return n&&(o+="\tspa"),o}}t.hunt_optimizer_stores=new v.ServerMap(function(e){return n(this,void 0,void 0,function*(){return new w(e,yield _.item_type_stores.get(e),yield c.item_drop_stores.get(e),yield u.hunt_method_stores.get(e))})})},"sZ1+":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("xs7i");var o;!function(e){e[e.Unknown=0]="Unknown",e[e.FemaleFat=1]="FemaleFat",e[e.FemaleMacho=2]="FemaleMacho",e[e.FemaleTall=3]="FemaleTall",e[e.MaleDwarf=4]="MaleDwarf",e[e.MaleFat=5]="MaleFat",e[e.MaleMacho=6]="MaleMacho",e[e.MaleOld=7]="MaleOld",e[e.BlueSoldier=8]="BlueSoldier",e[e.RedSoldier=9]="RedSoldier",e[e.Principal=10]="Principal",e[e.Tekker=11]="Tekker",e[e.GuildLady=12]="GuildLady",e[e.Scientist=13]="Scientist",e[e.Nurse=14]="Nurse",e[e.Irene=15]="Irene",e[e.ItemShop=16]="ItemShop",e[e.Nurse2=17]="Nurse2",e[e.Hildebear=18]="Hildebear",e[e.Hildeblue=19]="Hildeblue",e[e.RagRappy=20]="RagRappy",e[e.AlRappy=21]="AlRappy",e[e.Monest=22]="Monest",e[e.Mothmant=23]="Mothmant",e[e.SavageWolf=24]="SavageWolf",e[e.BarbarousWolf=25]="BarbarousWolf",e[e.Booma=26]="Booma",e[e.Gobooma=27]="Gobooma",e[e.Gigobooma=28]="Gigobooma",e[e.Dragon=29]="Dragon",e[e.GrassAssassin=30]="GrassAssassin",e[e.PoisonLily=31]="PoisonLily",e[e.NarLily=32]="NarLily",e[e.NanoDragon=33]="NanoDragon",e[e.EvilShark=34]="EvilShark",e[e.PalShark=35]="PalShark",e[e.GuilShark=36]="GuilShark",e[e.PofuillySlime=37]="PofuillySlime",e[e.PouillySlime=38]="PouillySlime",e[e.PanArms=39]="PanArms",e[e.Migium=40]="Migium",e[e.Hidoom=41]="Hidoom",e[e.DeRolLe=42]="DeRolLe",e[e.Dubchic=43]="Dubchic",e[e.Gilchic=44]="Gilchic",e[e.Garanz=45]="Garanz",e[e.SinowBeat=46]="SinowBeat",e[e.SinowGold=47]="SinowGold",e[e.Canadine=48]="Canadine",e[e.Canane=49]="Canane",e[e.Dubswitch=50]="Dubswitch",e[e.VolOpt=51]="VolOpt",e[e.Delsaber=52]="Delsaber",e[e.ChaosSorcerer=53]="ChaosSorcerer",e[e.DarkGunner=54]="DarkGunner",e[e.DeathGunner=55]="DeathGunner",e[e.ChaosBringer=56]="ChaosBringer",e[e.DarkBelra=57]="DarkBelra",e[e.Dimenian=58]="Dimenian",e[e.LaDimenian=59]="LaDimenian",e[e.SoDimenian=60]="SoDimenian",e[e.Bulclaw=61]="Bulclaw",e[e.Bulk=62]="Bulk",e[e.Claw=63]="Claw",e[e.DarkFalz=64]="DarkFalz",e[e.Hildebear2=65]="Hildebear2",e[e.Hildeblue2=66]="Hildeblue2",e[e.RagRappy2=67]="RagRappy2",e[e.LoveRappy=68]="LoveRappy",e[e.StRappy=69]="StRappy",e[e.HalloRappy=70]="HalloRappy",e[e.EggRappy=71]="EggRappy",e[e.Monest2=72]="Monest2",e[e.Mothmant2=73]="Mothmant2",e[e.PoisonLily2=74]="PoisonLily2",e[e.NarLily2=75]="NarLily2",e[e.GrassAssassin2=76]="GrassAssassin2",e[e.Dimenian2=77]="Dimenian2",e[e.LaDimenian2=78]="LaDimenian2",e[e.SoDimenian2=79]="SoDimenian2",e[e.DarkBelra2=80]="DarkBelra2",e[e.BarbaRay=81]="BarbaRay",e[e.SavageWolf2=82]="SavageWolf2",e[e.BarbarousWolf2=83]="BarbarousWolf2",e[e.PanArms2=84]="PanArms2",e[e.Migium2=85]="Migium2",e[e.Hidoom2=86]="Hidoom2",e[e.Dubchic2=87]="Dubchic2",e[e.Gilchic2=88]="Gilchic2",e[e.Garanz2=89]="Garanz2",e[e.Dubswitch2=90]="Dubswitch2",e[e.Delsaber2=91]="Delsaber2",e[e.ChaosSorcerer2=92]="ChaosSorcerer2",e[e.GolDragon=93]="GolDragon",e[e.SinowBerill=94]="SinowBerill",e[e.SinowSpigell=95]="SinowSpigell",e[e.Merillia=96]="Merillia",e[e.Meriltas=97]="Meriltas",e[e.Mericarol=98]="Mericarol",e[e.Mericus=99]="Mericus",e[e.Merikle=100]="Merikle",e[e.UlGibbon=101]="UlGibbon",e[e.ZolGibbon=102]="ZolGibbon",e[e.Gibbles=103]="Gibbles",e[e.Gee=104]="Gee",e[e.GiGue=105]="GiGue",e[e.IllGill=106]="IllGill",e[e.DelLily=107]="DelLily",e[e.Epsilon=108]="Epsilon",e[e.GalGryphon=109]="GalGryphon",e[e.Deldepth=110]="Deldepth",e[e.Delbiter=111]="Delbiter",e[e.Dolmolm=112]="Dolmolm",e[e.Dolmdarl=113]="Dolmdarl",e[e.Morfos=114]="Morfos",e[e.Recobox=115]="Recobox",e[e.Recon=116]="Recon",e[e.SinowZoa=117]="SinowZoa",e[e.SinowZele=118]="SinowZele",e[e.OlgaFlow=119]="OlgaFlow",e[e.SandRappy=120]="SandRappy",e[e.DelRappy=121]="DelRappy",e[e.Astark=122]="Astark",e[e.SatelliteLizard=123]="SatelliteLizard",e[e.Yowie=124]="Yowie",e[e.MerissaA=125]="MerissaA",e[e.MerissaAA=126]="MerissaAA",e[e.Girtablulu=127]="Girtablulu",e[e.Zu=128]="Zu",e[e.Pazuzu=129]="Pazuzu",e[e.Boota=130]="Boota",e[e.ZeBoota=131]="ZeBoota",e[e.BaBoota=132]="BaBoota",e[e.Dorphon=133]="Dorphon",e[e.DorphonEclair=134]="DorphonEclair",e[e.Goran=135]="Goran",e[e.PyroGoran=136]="PyroGoran",e[e.GoranDetonator=137]="GoranDetonator",e[e.SaintMilion=138]="SaintMilion",e[e.Shambertin=139]="Shambertin",e[e.Kondrieu=140]="Kondrieu"}(o=t.NpcType||(t.NpcType={})),t.NPC_TYPES=[],t.ENEMY_NPC_TYPES=[],t.npc_data=function(e){return r[e]},t.name_and_episode_to_npc_type=function(e,t){return n.check_episode(t),s[t].get(e)};const s=[void 0,new Map,new Map,void 0,new Map],r=[];function a(e,i,n,o,a,d,l){if(t.NPC_TYPES.push(e),d&&t.ENEMY_NPC_TYPES.push(e),r[e]={name:i,simple_name:n,ultimate_name:o,episode:a,enemy:d,rare_type:l},a){const t=s[a];t&&(t.set(n,e),t.set(o,e))}}a(o.Unknown,"Unknown","Unknown","Unknown",void 0,!1),a(o.FemaleFat,"Female Fat","Female Fat","Female Fat",void 0,!1),a(o.FemaleMacho,"Female Macho","Female Macho","Female Macho",void 0,!1),a(o.FemaleTall,"Female Tall","Female Tall","Female Tall",void 0,!1),a(o.MaleDwarf,"Male Dwarf","Male Dwarf","Male Dwarf",void 0,!1),a(o.MaleFat,"Male Fat","Male Fat","Male Fat",void 0,!1),a(o.MaleMacho,"Male Macho","Male Macho","Male Macho",void 0,!1),a(o.MaleOld,"Male Old","Male Old","Male Old",void 0,!1),a(o.BlueSoldier,"Blue Soldier","Blue Soldier","Blue Soldier",void 0,!1),a(o.RedSoldier,"Red Soldier","Red Soldier","Red Soldier",void 0,!1),a(o.Principal,"Principal","Principal","Principal",void 0,!1),a(o.Tekker,"Tekker","Tekker","Tekker",void 0,!1),a(o.GuildLady,"Guild Lady","Guild Lady","Guild Lady",void 0,!1),a(o.Scientist,"Scientist","Scientist","Scientist",void 0,!1),a(o.Nurse,"Nurse","Nurse","Nurse",void 0,!1),a(o.Irene,"Irene","Irene","Irene",void 0,!1),a(o.ItemShop,"Item Shop","Item Shop","Item Shop",void 0,!1),a(o.Nurse2,"Nurse (Ep. II)","Nurse","Nurse",2,!1),a(o.Hildebear,"Hildebear","Hildebear","Hildelt",1,!0,o.Hildeblue),a(o.Hildeblue,"Hildeblue","Hildeblue","Hildetorr",1,!0),a(o.RagRappy,"Rag Rappy","Rag Rappy","El Rappy",1,!0,o.AlRappy),a(o.AlRappy,"Al Rappy","Al Rappy","Pal Rappy",1,!0),a(o.Monest,"Monest","Monest","Mothvist",1,!0),a(o.Mothmant,"Mothmant","Mothmant","Mothvert",1,!0),a(o.SavageWolf,"Savage Wolf","Savage Wolf","Gulgus",1,!0),a(o.BarbarousWolf,"Barbarous Wolf","Barbarous Wolf","Gulgus-Gue",1,!0),a(o.Booma,"Booma","Booma","Bartle",1,!0),a(o.Gobooma,"Gobooma","Gobooma","Barble",1,!0),a(o.Gigobooma,"Gigobooma","Gigobooma","Tollaw",1,!0),a(o.Dragon,"Dragon","Dragon","Sil Dragon",1,!0),a(o.GrassAssassin,"Grass Assassin","Grass Assassin","Crimson Assassin",1,!0),a(o.PoisonLily,"Poison Lily","Poison Lily","Ob Lily",1,!0,o.NarLily),a(o.NarLily,"Nar Lily","Nar Lily","Mil Lily",1,!0),a(o.NanoDragon,"Nano Dragon","Nano Dragon","Nano Dragon",1,!0),a(o.EvilShark,"Evil Shark","Evil Shark","Vulmer",1,!0),a(o.PalShark,"Pal Shark","Pal Shark","Govulmer",1,!0),a(o.GuilShark,"Guil Shark","Guil Shark","Melqueek",1,!0),a(o.PofuillySlime,"Pofuilly Slime","Pofuilly Slime","Pofuilly Slime",1,!0,o.PouillySlime),a(o.PouillySlime,"Pouilly Slime","Pouilly Slime","Pouilly Slime",1,!0),a(o.PanArms,"Pan Arms","Pan Arms","Pan Arms",1,!0),a(o.Migium,"Migium","Migium","Migium",1,!0),a(o.Hidoom,"Hidoom","Hidoom","Hidoom",1,!0),a(o.DeRolLe,"De Rol Le","De Rol Le","Dal Ra Lie",1,!0),a(o.Dubchic,"Dubchic","Dubchic","Dubchich",1,!0),a(o.Gilchic,"Gilchic","Gilchic","Gilchich",1,!0),a(o.Garanz,"Garanz","Garanz","Baranz",1,!0),a(o.SinowBeat,"Sinow Beat","Sinow Beat","Sinow Blue",1,!0),a(o.SinowGold,"Sinow Gold","Sinow Gold","Sinow Red",1,!0),a(o.Canadine,"Canadine","Canadine","Canabin",1,!0),a(o.Canane,"Canane","Canane","Canune",1,!0),a(o.Dubswitch,"Dubswitch","Dubswitch","Dubswitch",1,!0),a(o.VolOpt,"Vol Opt","Vol Opt","Vol Opt ver.2",1,!0),a(o.Delsaber,"Delsaber","Delsaber","Delsaber",1,!0),a(o.ChaosSorcerer,"Chaos Sorcerer","Chaos Sorcerer","Gran Sorcerer",1,!0),a(o.DarkGunner,"Dark Gunner","Dark Gunner","Dark Gunner",1,!0),a(o.DeathGunner,"Death Gunner","Death Gunner","Death Gunner",1,!0),a(o.ChaosBringer,"Chaos Bringer","Chaos Bringer","Dark Bringer",1,!0),a(o.DarkBelra,"Dark Belra","Dark Belra","Indi Belra",1,!0),a(o.Dimenian,"Dimenian","Dimenian","Arlan",1,!0),a(o.LaDimenian,"La Dimenian","La Dimenian","Merlan",1,!0),a(o.SoDimenian,"So Dimenian","So Dimenian","Del-D",1,!0),a(o.Bulclaw,"Bulclaw","Bulclaw","Bulclaw",1,!0),a(o.Bulk,"Bulk","Bulk","Bulk",1,!0),a(o.Claw,"Claw","Claw","Claw",1,!0),a(o.DarkFalz,"Dark Falz","Dark Falz","Dark Falz",1,!0),a(o.Hildebear2,"Hildebear (Ep. II)","Hildebear","Hildelt",2,!0,o.Hildeblue2),a(o.Hildeblue2,"Hildeblue (Ep. II)","Hildeblue","Hildetorr",2,!0),a(o.RagRappy2,"Rag Rappy (Ep. II)","Rag Rappy","El Rappy",2,!0,o.LoveRappy),a(o.LoveRappy,"Love Rappy","Love Rappy","Love Rappy",2,!0),a(o.StRappy,"St. Rappy","St. Rappy","St. Rappy",2,!0),a(o.HalloRappy,"Hallo Rappy","Hallo Rappy","Hallo Rappy",2,!0),a(o.EggRappy,"Egg Rappy","Egg Rappy","Egg Rappy",2,!0),a(o.Monest2,"Monest (Ep. II)","Monest","Mothvist",2,!0),a(o.Mothmant2,"Mothmant","Mothmant","Mothvert",2,!0),a(o.PoisonLily2,"Poison Lily (Ep. II)","Poison Lily","Ob Lily",2,!0,o.NarLily2),a(o.NarLily2,"Nar Lily (Ep. II)","Nar Lily","Mil Lily",2,!0),a(o.GrassAssassin2,"Grass Assassin (Ep. II)","Grass Assassin","Crimson Assassin",2,!0),a(o.Dimenian2,"Dimenian (Ep. II)","Dimenian","Arlan",2,!0),a(o.LaDimenian2,"La Dimenian (Ep. II)","La Dimenian","Merlan",2,!0),a(o.SoDimenian2,"So Dimenian (Ep. II)","So Dimenian","Del-D",2,!0),a(o.DarkBelra2,"Dark Belra (Ep. II)","Dark Belra","Indi Belra",2,!0),a(o.BarbaRay,"Barba Ray","Barba Ray","Barba Ray",2,!0),a(o.SavageWolf2,"Savage Wolf (Ep. II)","Savage Wolf","Gulgus",2,!0),a(o.BarbarousWolf2,"Barbarous Wolf (Ep. II)","Barbarous Wolf","Gulgus-Gue",2,!0),a(o.PanArms2,"Pan Arms (Ep. II)","Pan Arms","Pan Arms",2,!0),a(o.Migium2,"Migium (Ep. II)","Migium","Migium",2,!0),a(o.Hidoom2,"Hidoom (Ep. II)","Hidoom","Hidoom",2,!0),a(o.Dubchic2,"Dubchic (Ep. II)","Dubchic","Dubchich",2,!0),a(o.Gilchic2,"Gilchic (Ep. II)","Gilchic","Gilchich",2,!0),a(o.Garanz2,"Garanz (Ep. II)","Garanz","Baranz",2,!0),a(o.Dubswitch2,"Dubswitch (Ep. II)","Dubswitch","Dubswitch",2,!0),a(o.Delsaber2,"Delsaber (Ep. II)","Delsaber","Delsaber",2,!0),a(o.ChaosSorcerer2,"Chaos Sorcerer (Ep. II)","Chaos Sorcerer","Gran Sorcerer",2,!0),a(o.GolDragon,"Gol Dragon","Gol Dragon","Gol Dragon",2,!0),a(o.SinowBerill,"Sinow Berill","Sinow Berill","Sinow Berill",2,!0),a(o.SinowSpigell,"Sinow Spigell","Sinow Spigell","Sinow Spigell",2,!0),a(o.Merillia,"Merillia","Merillia","Merillia",2,!0),a(o.Meriltas,"Meriltas","Meriltas","Meriltas",2,!0),a(o.Mericarol,"Mericarol","Mericarol","Mericarol",2,!0),a(o.Mericus,"Mericus","Mericus","Mericus",2,!0),a(o.Merikle,"Merikle","Merikle","Merikle",2,!0),a(o.UlGibbon,"Ul Gibbon","Ul Gibbon","Ul Gibbon",2,!0),a(o.ZolGibbon,"Zol Gibbon","Zol Gibbon","Zol Gibbon",2,!0),a(o.Gibbles,"Gibbles","Gibbles","Gibbles",2,!0),a(o.Gee,"Gee","Gee","Gee",2,!0),a(o.GiGue,"Gi Gue","Gi Gue","Gi Gue",2,!0),a(o.IllGill,"Ill Gill","Ill Gill","Ill Gill",2,!0),a(o.DelLily,"Del Lily","Del Lily","Del Lily",2,!0),a(o.Epsilon,"Epsilon","Epsilon","Epsilon",2,!0),a(o.GalGryphon,"Gal Gryphon","Gal Gryphon","Gal Gryphon",2,!0),a(o.Deldepth,"Deldepth","Deldepth","Deldepth",2,!0),a(o.Delbiter,"Delbiter","Delbiter","Delbiter",2,!0),a(o.Dolmolm,"Dolmolm","Dolmolm","Dolmolm",2,!0),a(o.Dolmdarl,"Dolmdarl","Dolmdarl","Dolmdarl",2,!0),a(o.Morfos,"Morfos","Morfos","Morfos",2,!0),a(o.Recobox,"Recobox","Recobox","Recobox",2,!0),a(o.Recon,"Recon","Recon","Recon",2,!0),a(o.SinowZoa,"Sinow Zoa","Sinow Zoa","Sinow Zoa",2,!0),a(o.SinowZele,"Sinow Zele","Sinow Zele","Sinow Zele",2,!0),a(o.OlgaFlow,"Olga Flow","Olga Flow","Olga Flow",2,!0),a(o.SandRappy,"Sand Rappy","Sand Rappy","Sand Rappy",4,!0,o.DelRappy),a(o.DelRappy,"Del Rappy","Del Rappy","Del Rappy",4,!0),a(o.Astark,"Astark","Astark","Astark",4,!0),a(o.SatelliteLizard,"Satellite Lizard","Satellite Lizard","Satellite Lizard",4,!0),a(o.Yowie,"Yowie","Yowie","Yowie",4,!0),a(o.MerissaA,"Merissa A","Merissa A","Merissa A",4,!0,o.MerissaAA),a(o.MerissaAA,"Merissa AA","Merissa AA","Merissa AA",4,!0),a(o.Girtablulu,"Girtablulu","Girtablulu","Girtablulu",4,!0),a(o.Zu,"Zu","Zu","Zu",4,!0,o.Pazuzu),a(o.Pazuzu,"Pazuzu","Pazuzu","Pazuzu",4,!0),a(o.Boota,"Boota","Boota","Boota",4,!0),a(o.ZeBoota,"Ze Boota","Ze Boota","Ze Boota",4,!0),a(o.BaBoota,"Ba Boota","Ba Boota","Ba Boota",4,!0),a(o.Dorphon,"Dorphon","Dorphon","Dorphon",4,!0,o.DorphonEclair),a(o.DorphonEclair,"Dorphon Eclair","Dorphon Eclair","Dorphon Eclair",4,!0),a(o.Goran,"Goran","Goran","Goran",4,!0),a(o.PyroGoran,"Pyro Goran","Pyro Goran","Pyro Goran",4,!0),a(o.GoranDetonator,"Goran Detonator","Goran Detonator","Goran Detonator",4,!0),a(o.SaintMilion,"Saint-Milion","Saint-Milion","Saint-Milion",4,!0,o.Kondrieu),a(o.Shambertin,"Shambertin","Shambertin","Shambertin",4,!0,o.Kondrieu),a(o.Kondrieu,"Kondrieu","Kondrieu","Kondrieu",4,!0)},sv1z:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("sDu+"),o=i("FXpb");i("6MRE");const s=i("jJhE"),r=i("KVVN"),a=i("4VsB"),d=i("LSoc");class l extends n.LabelledControl{constructor(e,t,i){const n=o.el.div({class:"core_Select"}),u=new r.Button(" ",{icon_right:o.Icon.TriangleDown}),c=new d.Menu(e,t,n);super(n,i),this.preferred_label_position="left",this.to_label=t,this.button=this.disposable(u),this.menu=this.disposable(c),this.element.append(this.button.element,this.menu.element),this._selected=new a.WidgetProperty(this,void 0,this.set_selected),this.selected=this._selected,this.just_opened=!1,this.disposables(o.disposable_listener(u.element,"mousedown",e=>this.button_mousedown(e)),u.mouseup.observe(()=>this.button_mouseup()),this.menu.selected.observe(({value:e})=>this._selected.set_val(e,{silent:!1}))),i&&(s.is_any_property(i.selected)?this.selected.bind_to(i.selected):i.selected&&(this.selected.val=i.selected)),this.finalize_construction(l.prototype)}set_enabled(e){super.set_enabled(e),this.button.enabled.val=e}set_selected(e){this.button.text.val=e?this.to_label(e):" ",this.menu.selected.val=e}button_mousedown(e){e.stopPropagation(),this.just_opened=!this.menu.visible.val,this.menu.visible.val=!0}button_mouseup(){this.just_opened?this.menu.focus():this.menu.visible.val=!1,this.just_opened=!1}}t.Select=l},t2oB:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CharacterClassAnimationModel=class{constructor(e,t){this.id=e,this.name=t}}},tRdk:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt");t.vec3_to_threejs=function(e){return new n.Vector3(e.x,e.y,e.z)}},tjEv:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ResizableBuffer=class{constructor(e=8192){this._size=0,this._buffer=new ArrayBuffer(e),this._data_view=new DataView(this._buffer)}get size(){return this._size}set size(e){if(e<0)throw new Error("Size should be non-negative.");this.ensure_capacity(e),this._size=e}get capacity(){return this._buffer.byteLength}get backing_buffer(){return this._buffer}get view(){return this._data_view}sub_view(e,t){return new DataView(this._buffer,e,t)}ensure_capacity(e){if(e>this.capacity){let t=this.capacity||e;do{t*=2}while(tnew l.CharacterClassAnimationModel(t,`Animation ${t+1}`)),this.current_model=c.property(void 0),this._current_nj_data=c.property(void 0),this.current_nj_data=this._current_nj_data,this._current_xvm=c.property(void 0),this.current_xvm=this._current_xvm,this.show_skeleton=c.property(!1),this.current_animation=c.property(void 0),this._current_nj_motion=c.property(void 0),this.current_nj_motion=this._current_nj_motion,this.animation_playing=c.property(!0),this.animation_frame_rate=c.property(_.PSO_FRAME_RATE),this.animation_frame=c.property(0),this.animation_frame_count=this.current_nj_motion.map(e=>e?e.frame_count:0),this.disposables=[],this.load_file=e=>n(this,void 0,void 0,function*(){try{const t=yield u.read_file(e),i=new o.ArrayBufferCursor(t,s.Endianness.Little);if(e.name.endsWith(".nj")){this.current_model.val=void 0;const e=a.parse_nj(i)[0];this.set_current_nj_data({nj_object:e,bone_count:e.bone_count(),has_skeleton:!0})}else if(e.name.endsWith(".xj")){this.current_model.val=void 0;const e=a.parse_xj(i)[0];this.set_current_nj_data({nj_object:e,bone_count:0,has_skeleton:!1})}else if(e.name.endsWith(".njm")){this.current_animation.val=void 0,this._current_nj_motion.val=void 0;const e=this.current_nj_data.val;e&&(this.animation_playing.val=!0,this._current_nj_motion.val=r.parse_njm(i,e.bone_count))}else e.name.endsWith(".xvm")?this.current_model&&(this._current_xvm.val=p.parse_xvm(i)):h.error(`Unknown file extension in filename "${e.name}".`)}catch(e){h.error("Couldn't read file.",e)}}),this.load_model=e=>n(this,void 0,void 0,function*(){if(this.current_animation.val=void 0,e){const t=yield this.get_nj_object(e);this.set_current_nj_data({nj_object:t,bone_count:e?64:t.bone_count(),has_skeleton:!0})}else this._current_nj_data.val=void 0}),this.load_animation=e=>n(this,void 0,void 0,function*(){const t=this.current_nj_data.val;t&&e?(this._current_nj_motion.val=yield this.get_nj_motion(e,t.bone_count),this.animation_playing.val=!0):this._current_nj_motion.val=void 0}),this.disposables.push(this.current_model.observe(({value:e})=>this.load_model(e)),this.current_animation.observe(({value:e})=>this.load_animation(e)))}dispose(){this.disposables.forEach(e=>e.dispose())}set_current_nj_data(e){this._current_xvm.val=void 0,this._current_nj_data.val=e}get_nj_object(e){return n(this,void 0,void 0,function*(){let t=w.get(e.name);return t||(t=this.get_all_nj_objects(e),w.set(e.name,t),t)})}get_all_nj_objects(e){return n(this,void 0,void 0,function*(){const t=yield v.get_character_class_data(e.name,"Body"),i=a.parse_nj(new o.ArrayBufferCursor(t,s.Endianness.Little))[0];if(!i)throw new Error(`Couldn't parse body for player class ${e.name}.`);const n=yield v.get_character_class_data(e.name,"Head",0),r=a.parse_nj(new o.ArrayBufferCursor(n,s.Endianness.Little))[0];if(r&&this.add_to_bone(i,r,59),e.hair_styles_count>0){const t=yield v.get_character_class_data(e.name,"Hair",0),n=a.parse_nj(new o.ArrayBufferCursor(t,s.Endianness.Little))[0];if(n&&this.add_to_bone(i,n,59),e.hair_styles_with_accessory.has(0)){const t=yield v.get_character_class_data(e.name,"Accessory",0),n=a.parse_nj(new o.ArrayBufferCursor(t,s.Endianness.Little))[0];n&&this.add_to_bone(i,n,59)}}return i})}add_to_bone(e,t,i){const n=e.get_bone(i);n&&(n.evaluation_flags.hidden=!1,n.evaluation_flags.break_child_trace=!1,n.children.push(t))}get_nj_motion(e,t){return n(this,void 0,void 0,function*(){let i=f.get(e.id);return i||(i=v.get_character_class_animation_data(e.id).then(e=>r.parse_njm(new o.ArrayBufferCursor(e,s.Endianness.Little),t)),f.set(e.id,i),i)})}}t.Model3DStore=m,t.model_store=new m},uaZj:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("kiqn");t.QuestObjectModel=class extends n.QuestEntityModel{constructor(e,t,i,n,o,s,r,a,d){super(e,n,o,s,r),this.id=t,this.group_id=i,this.properties=a,this.unknown=d}}},uiJh:function(e,t,i){"use strict";function n(e){const t=Object.values(e),i=t.filter(e=>"number"==typeof e);return i.length?i:t}Object.defineProperty(t,"__esModule",{value:!0}),t.enum_values=n;t.EnumMap=class{constructor(e,t){this.values=new Map,this.keys=n(e);for(const e of this.keys)this.values.set(e,t(e))}get(e){return this.values.get(e)}}},upFJ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SimpleQuestModel=class{constructor(e,t,i,n){if(this.id=e,this.name=t,this.episode=i,this.enemy_counts=n,!e)throw new Error("id is required.");if(!t)throw new Error("name is required.");if(!n)throw new Error("enemyCounts is required.")}}},v2aa:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i("ouMO"),s=i("xs7i"),r=n(i("GGSb")),a=i("4Mnx"),d=r.default.get("quest_editor/model/QuestModel");t.QuestModel=class{constructor(e,t,i,n,r,l,u,c,_,p,v,h){if(this._id=o.property(0),this._language=o.property(0),this._name=o.property(""),this._short_description=o.property(""),this._long_description=o.property(""),this._area_variants=o.list_property(),this.update_area_variants=()=>{const e=new Map;for(const t of this.entities_per_area.val.keys())try{e.set(t,a.area_store.get_variant(this.episode,t,0))}catch(e){d.warn(e)}for(const[t,i]of this.map_designations.val)try{e.set(t,a.area_store.get_variant(this.episode,t,i))}catch(e){d.warn(e)}this._area_variants.val=[...e.values()]},s.check_episode(l),!u)throw new Error("map_designations is required.");if(!Array.isArray(c))throw new Error("objs is required.");if(!Array.isArray(_))throw new Error("npcs is required.");if(!Array.isArray(p))throw new Error("dat_unknowns is required.");if(!Array.isArray(v))throw new Error("object_code is required.");if(!Array.isArray(h))throw new Error("shop_items is required.");this.id=this._id,this.language=this._language,this.name=this._name,this.short_description=this._short_description,this.long_description=this._long_description,this.area_variants=this._area_variants,this.set_id(e),this.set_language(t),this.set_name(i),this.set_short_description(n),this.set_long_description(r),this.episode=l,this._map_designations=o.property(u),this.map_designations=this._map_designations,this.objects=o.list_property(void 0,...c),this.npcs=o.list_property(void 0,..._),this.dat_unknowns=p,this.object_code=v,this.shop_items=h,this.entities_per_area=o.map((e,t)=>{const i=new Map;for(const t of e)i.set(t.area_id,(i.get(t.area_id)||0)+1);for(const e of t)i.set(e.area_id,(i.get(e.area_id)||0)+1);return i},this.npcs,this.objects),this.entities_per_area.observe(this.update_area_variants),this.map_designations.observe(this.update_area_variants)}set_id(e){if(e<0)throw new Error(`id should be greater than or equal to 0, was ${e}.`);return this._id.val=e,this}set_language(e){if(e<0)throw new Error(`language should be greater than or equal to 0, was ${e}.`);return this._language.val=e,this}set_name(e){if(e.length>32)throw new Error(`name can't be longer than 32 characters, got "${e}".`);return this._name.val=e,this}set_short_description(e){if(e.length>128)throw new Error(`short_description can't be longer than 128 characters, got "${e}".`);return this._short_description.val=e,this}set_long_description(e){if(e.length>288)throw new Error(`long_description can't be longer than 288 characters, got "${e}".`);return this._long_description.val=e,this}set_map_designations(e){return this._map_designations.val=e,this}}},vM2b:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt");t.GeometryBuilder=class{constructor(){this.positions=[],this.normals=[],this.uvs=[],this.indices=[],this.bones=[],this.bone_indices=[],this.bone_weights=[],this.groups=[],this.material_indices=new Set([-1])}get vertex_count(){return this.positions.length/3}get index_count(){return this.indices.length}get_position(e){return new n.Vector3(this.positions[3*e],this.positions[3*e+1],this.positions[3*e+2])}get_normal(e){return new n.Vector3(this.normals[3*e],this.normals[3*e+1],this.normals[3*e+2])}add_vertex(e,t,i){this.positions.push(e.x,e.y,e.z),this.normals.push(t.x,t.y,t.z),this.uvs.push(i.x,i.y)}add_index(e){this.indices.push(e)}add_bone(e){this.bones.push(e)}add_bone_weight(e,t){this.bone_indices.push(e),this.bone_weights.push(t)}add_group(e,t,i){const n=this.groups[this.groups.length-1],o=null==i?-1:i;n&&n.material_index===o?n.size+=t:(this.groups.push({offset:e,size:t,material_index:o}),this.material_indices.add(o))}build(){const e=new n.BufferGeometry,t=e.userData;t.created_by_geometry_builder=!0,e.addAttribute("position",new n.Float32BufferAttribute(this.positions,3)),e.addAttribute("normal",new n.Float32BufferAttribute(this.normals,3)),e.addAttribute("uv",new n.Float32BufferAttribute(this.uvs,2)),e.setIndex(new n.Uint16BufferAttribute(this.indices,1)),this.bone_indices.length&&this.bones.length?(e.addAttribute("skinIndex",new n.Uint16BufferAttribute(this.bone_indices,4)),e.addAttribute("skinWeight",new n.Float32BufferAttribute(this.bone_weights,4)),t.bones=this.bones):t.bones=[];const i=new Map;let o=0;for(const e of[...this.material_indices].sort((e,t)=>e-t))i.set(e,o++);for(const t of this.groups)e.addGroup(t.offset,t.size,i.get(t.material_index));return t.normalized_material_indices=i,e.computeBoundingSphere(),e.computeBoundingBox(),e}}},vsj6:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const s=i("HjM1");class r extends s.TabContainer{constructor(){super({class:"viewer_ViewerView",tabs:[{title:"Models",key:"model",create_view:function(){return n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("Hdaq")))).Model3DView)})}},{title:"Textures",key:"texture",create_view:function(){return n(this,void 0,void 0,function*(){return new((yield Promise.resolve().then(()=>o(i("Za3H")))).TextureView)})}}]}),this.finalize_construction(r.prototype)}}t.ViewerView=r},"w+Lt":function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("G+UN"),s=i("yfUv"),r=i("nowp"),a="HuntOptimizerStore.wantedItems";t.hunt_optimizer_persister=new class extends s.Persister{persist_wanted_items(e,t){this.persist_for_server(e,a,t.map(({item_type:e,amount:t})=>({itemTypeId:e.id,amount:t.val})))}load_wanted_items(e){return n(this,void 0,void 0,function*(){const t=yield o.item_type_stores.get(e),i=yield this.load_for_server(e,a),n=[];if(i)for(const{itemTypeId:e,itemKindId:o,amount:s}of i){const i=null!=e?t.get_by_id(e):t.get_by_id(o);i&&n.push(new r.WantedItemModel(i,s))}return n})}}},w6HN:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("TRid"),o=i("FXpb");i("IQIM");const s=i("sDu+");class r extends n.Widget{constructor(e){if(super(o.create_element("div",{class:"core_ToolBar"}),e),this.height=33,this.element.style.height=`${this.height}px`,e&&e.children)for(const t of e.children)if(t instanceof s.LabelledControl&&t.label){const e=o.create_element("div",{class:"core_ToolBar_group"});"left"===t.preferred_label_position||"top"===t.preferred_label_position?e.append(t.label.element,t.element):e.append(t.element,t.label.element),this.element.append(e)}else this.element.append(t.element),this.disposable(t);this.finalize_construction(r.prototype)}}t.ToolBar=r},x4IQ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.QuestEditAction=class{constructor(e,t){this.quest=e,this.new=t.value,this.old=t.old_value}}},x4QM:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("ouMO");t.WeaponItemType=class{constructor(e,t,i,n,o,s,r){this.id=e,this.name=t,this.min_atp=i,this.max_atp=n,this.ata=o,this.max_grind=s,this.required_atp=r}};t.ArmorItemType=class{constructor(e,t,i,n,o,s,r,a,d,l,u){this.id=e,this.name=t,this.atp=i,this.ata=n,this.min_evp=o,this.max_evp=s,this.min_dfp=r,this.max_dfp=a,this.mst=d,this.hp=l,this.lck=u}};t.ShieldItemType=class{constructor(e,t,i,n,o,s,r,a,d,l,u){this.id=e,this.name=t,this.atp=i,this.ata=n,this.min_evp=o,this.max_evp=s,this.min_dfp=r,this.max_dfp=a,this.mst=d,this.hp=l,this.lck=u}};t.UnitItemType=class{constructor(e,t){this.id=e,this.name=t}};t.ToolItemType=class{constructor(e,t){this.id=e,this.name=t}};t.WeaponItem=class{constructor(e){this.type=e,this._attribute=n.property(0),this.attribute=this._attribute,this._hit=n.property(0),this.hit=this._hit,this._grind=n.property(0),this.grind=this._grind,this.grind_atp=this.grind.map(e=>2*e)}};t.ArmorItem=class{constructor(e){this.type=e}};t.ShieldItem=class{constructor(e){this.type=e}};t.UnitItem=class{constructor(e){this.type=e}};t.ToolItem=class{constructor(e){this.type=e}}},xpi7:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("Womt"),o=i("+oIp"),s=i("sZ1+"),r=i("Eqai");var a;function d(e,t,i,o,s){const a=new n.MeshLambertMaterial({color:o,side:n.DoubleSide}),d=r.create_mesh(t,i.length?i.map(e=>new n.MeshLambertMaterial({map:e,side:n.DoubleSide,alphaTest:.5})):a,a);d.name=s,d.userData.entity=e;const{x:l,y:u,z:c}=e.world_position.val;d.position.set(l,u,c);const _=e.rotation.val;return d.rotation.set(_.x,_.y,_.z),d}!function(e){e[e.Normal=0]="Normal",e[e.Hovered=1]="Hovered",e[e.Selected=2]="Selected"}(a=t.ColorType||(t.ColorType={})),t.OBJECT_COLORS=[],t.OBJECT_COLORS[a.Normal]=16776960,t.OBJECT_COLORS[a.Hovered]=16768831,t.OBJECT_COLORS[a.Selected]=16755200,t.NPC_COLORS=[],t.NPC_COLORS[a.Normal]=16711680,t.NPC_COLORS[a.Hovered]=16727903,t.NPC_COLORS[a.Selected]=16711764,t.create_object_mesh=function(e,i,n){return d(e,i,n,t.OBJECT_COLORS[a.Normal],o.ObjectType[e.type])},t.create_npc_mesh=function(e,i,n){return d(e,i,n,t.NPC_COLORS[a.Normal],s.NpcType[e.type])}},xs7i:function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.I=1]="I",e[e.II=2]="II",e[e.IV=4]="IV"}(n=t.Episode||(t.Episode={})),t.EPISODES=[n.I,n.II,n.IV],t.check_episode=function(e){if(null==n[e])throw new Error(`Invalid episode ${e}.`)}},xyE7:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("nN8q"),o=i("FXpb"),s=i("c5EP"),r=i("sZ1+");i("5sDa");const a=i("5aKR");class d extends n.ResizableWidget{constructor(){super(o.el.div({class:"quest_editor_NpcCountsView"})),this.table_element=o.el.table(),this.no_quest_view=new a.DisabledView("No quest loaded."),this.element.append(this.table_element,this.no_quest_view.element);const e=s.quest_editor_store.current_quest,t=e.map(e=>null==e);this.bind_hidden(this.table_element,t),this.disposables(this.no_quest_view.visible.bind_to(t),e.observe(({value:e})=>this.update_view(e),{call_now:!0})),this.finalize_construction(d.prototype)}update_view(e){const t=document.createDocumentFragment(),i=new Map;if(e)for(const t of e.npcs.val){const e=i.get(t.type)||0;i.set(t.type,e+1)}const n=8*(i.get(r.NpcType.Canane)||0),s=[...i].sort((e,t)=>e[0]-t[0]);for(const[e,i]of s){const s=e===r.NpcType.Canadine?n:0;t.append(o.el.tr({},o.el.th({text:r.npc_data(e).name+":"}),o.el.td({text:String(i+s)})))}this.table_element.innerHTML="",this.table_element.append(t)}}t.NpcCountsView=d},y42t:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("yRp4"),o=i("kwt4"),s=i("4mUz");function r(e,t,i){const n=[];for(let s=0;s{e.type===s.ListChangeType.ListChange?(this.splice_rows(e.index,e.removed.length,e.inserted),this.update_footer()):(e.type,s.ListChangeType.ValueChange)},this.splice_rows=(e,t,i)=>{for(let i=0;ithis.create_row(e+i,t));if(e>=this.tbody_element.childElementCount)this.tbody_element.append(...n);else for(let i=0;i{const i=this.table_disposer.add(new r.Disposer);let n=0;return o.el.tr({},...this.columns.map((s,r)=>{const d=s.fixed?o.el.th():o.el.td();try{const o=s.render_cell(t,i);d.append(o),s.input&&d.classList.add("input"),s.fixed&&(d.classList.add("fixed"),d.style.left=`${n}px`,n+=s.width||0),d.style.width=`${s.width}px`,s.text_align&&(d.style.textAlign=s.text_align),s.tooltip&&(d.title=s.tooltip(t))}catch(t){a.warn(`Error while rendering cell for index ${e}, column ${r}.`,t)}return d}))},this.values=e.values,this.columns=e.columns;let t=[];const i=o.el.thead(),n=o.el.tr();let u=0,c=!1;n.append(...this.columns.map((e,t)=>{const i=o.el.th({data:{index:t.toString()}},o.el.span({text:e.title}));return e.fixed&&(i.style.position="sticky",i.style.left=`${u}px`,u+=e.width),i.style.width=`${e.width}px`,e.footer&&(c=!0),i}));const _=e.sort;_&&(n.onmousedown=e=>{if(e.target instanceof HTMLElement){let i=e.target;for(let e=0;e<5&&!i.dataset.index;e++){if(!i.parentElement)return;i=i.parentElement}if(!i.dataset.index)return;const n=parseInt(i.dataset.index,10),o=this.columns[n];if(!o.sortable)return;const s=t.findIndex(e=>e.column===o);if(0===s){const e=t[0];e.direction=e.direction===d.Asc?d.Desc:d.Asc}else-1!==s&&t.splice(s,1),t.unshift({column:o,direction:d.Asc});_(t)}}),i.append(n),this.tbody_element=o.el.tbody(),this.element.append(i,this.tbody_element),c&&(this.footer_row_element=o.el.tr(),this.element.append(o.el.tfoot({},this.footer_row_element)),this.create_footer()),this.disposables(this.values.observe_list(this.update_table)),this.splice_rows(0,this.values.length.val,this.values.val),this.finalize_construction(l.prototype)}create_footer(){const e=[];let t=0;for(let i=0;inull==e);this.table_element.append(o.el.tr({},o.el.th({text:"Episode:"}),this.episode_element=o.el.td()),o.el.tr({},o.el.th({text:"ID:"}),o.el.td({},this.id_input.element)),o.el.tr({},o.el.th({text:"Name:"}),o.el.td({},this.name_input.element)),o.el.tr({},o.el.th({text:"Short description:",col_span:2})),o.el.tr({},o.el.td({col_span:2},this.short_description_input.element)),o.el.tr({},o.el.th({text:"Long description:",col_span:2})),o.el.tr({},o.el.td({col_span:2},this.long_description_input.element))),this.bind_hidden(this.table_element,t),this.element.append(this.table_element,this.no_quest_view.element),this.element.addEventListener("focus",()=>s.quest_editor_store.undo.make_current(),!0),this.disposables(this.no_quest_view.visible.bind_to(t),e.observe(({value:e})=>{this.quest_disposer.dispose_all(),this.episode_element.textContent=e?r.Episode[e.episode]:"",e&&this.quest_disposer.add_all(this.id_input.value.bind_to(e.id),this.id_input.value.observe(s.quest_editor_store.push_edit_id_action),this.name_input.value.bind_to(e.name),this.name_input.value.observe(s.quest_editor_store.push_edit_name_action),this.short_description_input.value.bind_to(e.short_description),this.short_description_input.value.observe(s.quest_editor_store.push_edit_short_description_action),this.long_description_input.value.bind_to(e.long_description),this.long_description_input.value.observe(s.quest_editor_store.push_edit_long_description_action))})),this.finalize_construction(_.prototype)}}t.QuesInfoView=_},yub1:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i("GGSb")),s=i("9Ykw"),r=o.default.get("data_formats/parsing/ninja/texture"),a=1213027928,d=1414682200;t.parse_xvm=function(e){const t=s.parse_iff(e),i=t.find(e=>e.type===a),n=i&&function(e){return{texture_count:e.u16()}}(i.data),o=t.filter(e=>e.type===d).map(e=>(function(e){const t=e.u32(),i=e.u32(),n=e.u32(),o=e.u16(),s=e.u16(),r=e.u32();e.seek(36);const a=e.array_buffer(r);return{id:n,format:[t,i],width:o,height:s,size:r,data:a}})(e.data));return n?n.texture_count!==o.length&&r.warn(`Found ${o.length} textures instead of ${n.texture_count} as defined in the header.`):r.warn("No header found."),{textures:o}}},yxQK:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=i("FXpb");i("pNch");const o=i("4SjJ"),s=i("TRid"),r=i("1z6m"),a=i("sv1z"),d=i("ouMO"),l=[[o.GuiTool.Viewer,"Viewer"],[o.GuiTool.QuestEditor,"Quest Editor"],[o.GuiTool.HuntOptimizer,"Hunt Optimizer"]];class u extends s.Widget{constructor(){super(n.el.div({class:"application_NavigationView"})),this.height=30,this.buttons=new Map(l.map(([e,t])=>[e,this.disposable(new r.NavigationButton(e,t))])),this.mark_tool_button=e=>{const t=this.buttons.get(e);t&&(t.checked=!0)},this.element.style.height=`${this.height}px`,this.element.onmousedown=this.mousedown;for(const e of this.buttons.values())this.element.append(e.element);this.element.append(n.el.div({class:"application_NavigationView_spacer"}));const e=this.disposable(new a.Select(d.property(["Ephinea"]),e=>e,{label:"Server:",enabled:!1,selected:"Ephinea",tooltip:"Only Ephinea is supported at the moment"}));this.element.append(n.el.span({class:"application_NavigationView_server"},e.label.element,e.element),n.el.a({class:"application_NavigationView_github",href:"https://github.com/DaanVandenBosch/phantasmal-world",title:"GitHub"},n.icon(n.Icon.GitHub))),this.mark_tool_button(o.gui_store.tool.val),this.disposable(o.gui_store.tool.observe(({value:e})=>this.mark_tool_button(e))),this.finalize_construction(u.prototype)}mousedown(e){e.target instanceof HTMLLabelElement&&e.target.control instanceof HTMLInputElement&&(o.gui_store.tool.val=o.GuiTool[e.target.control.value])}}t.NavigationView=u},zBQr:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,s){function r(e){try{d(n.next(e))}catch(e){s(e)}}function a(e){try{d(n.throw(e))}catch(e){s(e)}}function d(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(r,a)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const o=i("yfUv"),s=i("LvDl"),r="QuestEditorUiPersister.layout_config";class a extends o.Persister{constructor(){super(...arguments),this.persist_layout_config=s.throttle(e=>{this.persist(r,e)},500,{leading:!1,trailing:!0})}load_layout_config(e,t){return n(this,void 0,void 0,function*(){const i=yield this.load(r);return i&&this.verify_layout_config(i,e)?i:t})}verify_layout_config(e,t){const i=new Set(t);for(const t of e)if(!this.verify_layout_child(t,i,new Set,!0))return!1;return!0}verify_layout_child(e,t,i,n){if(!e)return!1;if("componentName"in e){if(!t.has(e.componentName))return!1;i.add(e.componentName)}if(e.content)for(const n of e.content)if(!this.verify_layout_child(n,t,i,!1))return!1;return!n||t.size===i.size}}t.QuestEditorUiPersister=a,t.quest_editor_ui_persister=new a}},[["/7QA",2,0,3]]]); \ No newline at end of file diff --git a/runtime.18bb5c3c42eca0d60313.js b/runtime.18bb5c3c42eca0d60313.js deleted file mode 100644 index efbb17b3..00000000 --- a/runtime.18bb5c3c42eca0d60313.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function r(r){for(var t,i,f=r[0],l=r[1],c=r[2],p=0,s=[];pn?n:e}function h(e,t){return"string"!=typeof e?t:e}var d=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n,i){void 0===i&&(i=!1);var r=h(t.fontFamily,o.b.fontFamily),a=h(t.fontWeight,o.b.fontWeight),d=l(t.fontSize,o.b.fontSize);0===(d=u(d,0,100))?d=o.b.fontSize:d<8&&(d=8);var f=function(e,t){if("number"==typeof e)return Math.round(e);if(void 0===e)return t;var n=parseInt(e);return isNaN(n)?t:n}(t.lineHeight,0);0===(f=u(f,0,150))?f=Math.round(c*d):f<8&&(f=8);var p=l(t.letterSpacing,0);p=u(p,-5,20);var m=1+(i?0:.1*s.a.getZoomLevel());return new e({zoomLevel:n,fontFamily:r,fontWeight:a,fontSize:d*=m,lineHeight:f*=m,letterSpacing:p})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),f=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,i.spaceWidth=t.spaceWidth,i.maxDigitWidth=t.maxDigitWidth,i}return a(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(d)},"+7oY":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return p}));var i=n("ic2d"),r=n("Cg/j"),o=n("CRAX"),s=Object(r.c)("configurationService");function a(e,t){var n=Object.create(null);for(var i in e)c(n,i,e[i],t);return n}function c(e,t,n,i){for(var r=t.split("."),o=r.pop(),s=e,a=0;at.getLineMinColumn(n)?i.a.isLowSurrogate(t,n,r-2)?r-=2:r-=1:n>1&&(n-=1,r=t.getLineMaxColumn(n)),new s(n,r,0)},e.moveLeft=function(t,n,i,r,o){var s,a;if(i.hasSelection()&&!r)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var c=e.left(t,n,i.position.lineNumber,i.position.column-(o-1));s=c.lineNumber,a=c.column}return i.move(r,s,a,0)},e.right=function(e,t,n,r){return ru?(n=u,c?r=t.getLineMaxColumn(n):(r=Math.min(t.getLineMaxColumn(n),r),i.a.isInsideSurrogatePair(t,n,r)&&(r-=1))):(r=i.a.columnFromVisibleColumn2(e,t,n,l),i.a.isInsideSurrogatePair(t,n,r)&&(r-=1)),o=l-i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new s(n,r,o)},e.moveDown=function(t,n,i,r,o){var s,a;i.hasSelection()&&!r?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var c=e.down(t,n,s,a,i.leftoverVisibleColumns,o,!0);return i.move(r,c.lineNumber,c.column,c.leftoverVisibleColumns)},e.translateDown=function(t,n,s){var a=s.selection,c=e.down(t,n,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),l=e.down(t,n,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new i.f(new o.a(c.lineNumber,c.column,c.lineNumber,c.column),c.leftoverVisibleColumns,new r.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},e.up=function(e,t,n,r,o,a,c){var l=i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o;return(n-=a)<1?(n=1,c?r=t.getLineMinColumn(n):(r=Math.min(t.getLineMaxColumn(n),r),i.a.isInsideSurrogatePair(t,n,r)&&(r-=1))):(r=i.a.columnFromVisibleColumn2(e,t,n,l),i.a.isInsideSurrogatePair(t,n,r)&&(r-=1)),o=l-i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new s(n,r,o)},e.moveUp=function(t,n,i,r,o){var s,a;i.hasSelection()&&!r?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var c=e.up(t,n,s,a,i.leftoverVisibleColumns,o,!0);return i.move(r,c.lineNumber,c.column,c.leftoverVisibleColumns)},e.translateUp=function(t,n,s){var a=s.selection,c=e.up(t,n,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),l=e.up(t,n,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new i.f(new o.a(c.lineNumber,c.column,c.lineNumber,c.column),c.leftoverVisibleColumns,new r.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var r,o=n.position.lineNumber,s=t.getLineMinColumn(o),a=t.getLineFirstNonWhitespaceColumn(o)||s;return r=n.position.column===a?s:a,n.move(i,o,r,0)},e.moveToEndOfLine=function(e,t,n,i){var r=n.position.lineNumber,o=t.getLineMaxColumn(r);return n.move(i,r,o,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var r=t.getLineCount(),o=t.getLineMaxColumn(r);return n.move(i,r,o,0)},e}()},"+KTK":function(e,t,n){"use strict";n.r(t);n("eA/6"),n("SBYE"),n("oiKk"),n("gJAb"),n("AhDq"),n("v+CO"),n("WQDh"),n("4sI4"),n("vVA1");var i=n("M/lh");for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r)},"+lu7":function(e,t,n){"use strict";n.r(t);var i,r,o,s,a,c,l,u,h,d,f,p,m,g,v,_,y,b,C,w=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i0&&(r.arguments=n),r},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.title)&&X.string(t.command)}}(m||(m={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return X.objectLiteral(t)&&X.string(t.newText)&&r.is(t.range)}}(g||(g={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return X.defined(t)&&S.is(t.textDocument)&&Array.isArray(t.edits)}}(v||(v={})),function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&X.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||X.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||X.boolean(t.options.ignoreIfExists)))}}(_||(_={})),function(e){e.create=function(e,t,n){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&X.string(t.oldUri)&&X.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||X.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||X.boolean(t.options.ignoreIfExists)))}}(y||(y={})),function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&X.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||X.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||X.boolean(t.options.ignoreIfNotExists)))}}(b||(b={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return X.string(e.kind)?_.is(e)||y.is(e)||b.is(e):v.is(e)})))}}(C||(C={}));var x,S,E,M,L,T,O,I,N,A,k,D,z,R,P,H,V,F=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(g.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(g.replace(e,t))},e.prototype.delete=function(e){this.edits.push(g.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(v.is(e)){var n=new F(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var i=new F(e.changes[n]);t._textEditChanges[n]=i})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(S.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),i=new F(r),this._textEditChanges[t.uri]=i}return i}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,i=new F(r),this._textEditChanges[e]=i}return i},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(_.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(y.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.uri)}}(x||(x={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.uri)&&(null===t.version||X.number(t.version))}}(S||(S={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.uri)&&X.string(t.languageId)&&X.number(t.version)&&X.string(t.text)}}(E||(E={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(M||(M={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(M||(M={})),function(e){e.is=function(e){var t=e;return X.objectLiteral(e)&&M.is(t.kind)&&X.string(t.value)}}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(T||(T={})),function(e){e.PlainText=1,e.Snippet=2}(O||(O={})),function(e){e.create=function(e){return{label:e}}}(I||(I={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(N||(N={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return X.string(t)||X.objectLiteral(t)&&X.string(t.language)&&X.string(t.value)}}(A||(A={})),function(e){e.is=function(e){var t=e;return!!t&&X.objectLiteral(t)&&(L.is(t.contents)||A.is(t.contents)||X.typedArray(t.contents,A.is))&&(void 0===e.range||r.is(e.range))}}(k||(k={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(D||(D={})),function(e){e.create=function(e,t){for(var n=[],i=2;i=0;o--){var s=i[o],a=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=r))throw new Error("Overlapping edit");n=n.substring(0,a)+s.newText+n.substring(c,n.length),r=a}return n}}(Y||(Y={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}($||($={}));var X,Z=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=null}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=null},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return i.create(0,e);for(;ne?r=o:n=o+1}var s=n-1;return i.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'\S'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}},"/Om3":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return i})),n.d(t,"language",(function(){return r}));var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","property","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},"/RFl":function(e,t,n){"use strict";n.r(t);n("OhnE");var i=n("pmY6"),r=n("MNsG"),o=n("sswD"),s=n("cGHE"),a=n("aokT"),c=n("gCVg"),l=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n}return e.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new c.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new c.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber=2?(x=v?2:4,A=2/y):(x=v?1:3,A=1/y),(E=Math.max(0,Math.floor((N-h-2)*A/(l+A))))/A>_&&(E=Math.floor(_*A)),M=N-E,"left"===g?(S=0,L+=E,T+=E,O+=E,I+=E):S=t-E-h}else S=0,E=0,x=0,M=N;var k=d?f:0;return{width:t,height:n,glyphMarginLeft:L,glyphMarginWidth:w,glyphMarginHeight:n,lineNumbersLeft:T,lineNumbersWidth:b,lineNumbersHeight:n,decorationsLeft:O,decorationsWidth:c,decorationsHeight:n,contentLeft:I,contentWidth:M,contentHeight:n,renderMinimap:x,minimapLeft:S,minimapWidth:E,viewportColumn:Math.max(1,Math.floor((M-h-2)/l)),verticalScrollbarWidth:h,horizontalScrollbarHeight:p,overviewRuler:{top:k,width:h,height:n-2*k,right:0}}},e}(),E={fontFamily:a.d?"Menlo, Monaco, 'Courier New', monospace":a.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:a.d?12:14,lineHeight:0,letterSpacing:0},M={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},L={inDiffEditor:!1,wordSeparators:c.b,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:r.a("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:i.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}},"/cxE":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h}));var i=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}return e.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}());function r(e){c(e)||i.onUnexpectedError(e)}function o(e){c(e)||i.onUnexpectedExternalError(e)}function s(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var a="Canceled";function c(e){return e instanceof Error&&e.name===a&&e.message===a}function l(){var e=new Error(a);return e.name=e.message,e}function u(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function h(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},"/kV6":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m}));var i,r=n("/cxE"),o=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),s=new o,a=new o,c=new o;function l(e,t){return(e|(65535&t)<<16>>>0)>>>0}function u(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new f(0!==i?[h(n,t),h(i,t)]:[h(n,t)])}function h(e,t){var n=!!(2048&e),i=!!(256&e);return new d(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}!function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),s.define(e,t),a.define(e,n),c.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return s.keyCodeToStr(e)},e.fromString=function(e){return s.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return c.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||c.strToKeyCode(e)}}(i||(i={}));var d=function(){function e(e,t,n,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=r}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new f([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),f=function(){function e(e){if(0===e.length)throw Object(r.b)("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;tthis._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}},g=function(e){function t(t,n,i,r,o,s,a,c,l,u){var h=e.call(this,t,i.getRawConfiguration(),{},r,o,s,a,c,l,u)||this;return h._parentEditor=i,h._overwriteOptions=n,e.prototype.updateOptions.call(h,h._overwriteOptions),h._register(i.onDidChangeConfiguration((function(e){return h._onParentConfigurationChanged(e)}))),h}return f(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawConfiguration()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){r.g(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t=p([m(3,l.a),m(4,o.a),m(5,a.b),m(6,c.e),m(7,h.c),m(8,u.a),m(9,d.a)],t)}(s.a)},"05+/":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return i})),n.d(t,"language",(function(){return r})); +/*!--------------------------------------------------------------------------------------------- + * Copyright (C) David Owens II, owensd.io. All rights reserved. + *--------------------------------------------------------------------------------------------*/ +var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},r={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/\@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}},"09fa":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("Cg/j"),r=Object(i.c)("logService"),o=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n/?";var r=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,r=i;n=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}();function o(e){var t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function s(e,t,n,i){t.lastIndex=0;var r=t.exec(n);if(!r)return null;var o=r[0].indexOf(" ")>=0?function(e,t,n,i){var r,o=e-1-i;for(t.lastIndex=0;r=t.exec(n);){var s=r.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:r[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i):function(e,t,n,i){var r,o=e-1-i,s=n.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;r=t.exec(n);){var a=r.index||0;if(a<=o&&t.lastIndex>=o)return{word:r[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i);return t.lastIndex=0,o}},"0Lb2":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("FWmy"),r=n("MI8n"),o=n("pmY6"),s=n("qj0h"),a=n("aokT"),c={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},l=function(){function e(e,t){var n=this;void 0===t&&(t={}),this._onDidUpdate=new r.a,this._editor=e,this._options=s.g(t,c,!1),this.disposed=!1,this._disposables=[],this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._disposables.push(this._editor.onDidDispose((function(){return n.dispose()}))),this._disposables.push(this._editor.onDidUpdateDiff((function(){return n._onDiffUpdated()}))),this._options.followsCaret&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){n.ignoreSelectionChange||(n.nextIdx=-1)}))),this._options.alwaysRevealFirst&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeModel((function(e){n.revealFirst=!0}))),this._init()}return e.prototype._init=function(){this._editor.getLineChanges()},e.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},e.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach((function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((function(e){t.ranges.push({rhs:!0,range:new a.a(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new a.a(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})})),this.ranges.sort((function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0})),this._onDidUpdate.fire(this)},e.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,r=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var r=n.range.getStartPosition();this._editor.setPosition(r),this._editor.revealPositionInCenter(r,t)}finally{this.ignoreSelectionChange=!1}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},e.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},e.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},e.prototype.dispose=function(){Object(o.d)(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0},e}()},"10Fh":function(e,t,n){"use strict";n.r(t);var i=n("6OMU"),r=n("JQT/"),o=n("sswD"),s=n("cGHE"),a=n("aokT"),c=n("gCVg"),l=n("wQH0"),u=n("twdY"),h=n("3/fG"),d=n("pmY6"),f=n("N0LK"),p=function(){function e(){}return e.prototype.provideSelectionRanges=function(e,t){for(var n=[],i=0,r=t;i=0;c--){if(95===(h=r.charCodeAt(c))||45===h)break;if(Object(f.w)(h)&&Object(f.x)(u))break;u=h}for(c+=1;l0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new a.a(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber)),kind:"statement.line"})},e}(),m=n("Z7SF"),g=n("nnTU"),v=n("/cxE");n.d(t,"provideSelectionRanges",(function(){return L}));var _,y=(_=function(e,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}c((i=i.apply(e,t||[])).next())}))},C=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=this.ranges.length)return this;var i=new e(n,this.ranges);return i.ranges[n].equalsRange(this.ranges[this.index])?i.mov(t):i},e}(),x=function(){function e(e){this._ignoreSelection=!1,this._editor=e}return e.get=function(t){return t.getContribution(e._id)},e.prototype.dispose=function(){Object(d.d)(this._selectionListener)},e.prototype.getId=function(){return e._id},e.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),o=this._editor.getModel();if(u.u.has(o)){var s=Promise.resolve(void 0);return this._state||(s=L(o,n.map((function(e){return e.getPosition()})),r.a.None).then((function(e){if(i.n(e)&&e.length===n.length&&t._editor.hasModel()&&i.g(t._editor.getSelections(),n,(function(e,t){return e.equalsSelection(t)}))){for(var r=function(t){e[t]=e[t].filter((function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())})),e[t].unshift(n[t])},o=0;o=0;r--){var o=e.charCodeAt(r),s=t.get(o);if(0===s){if(2===i)return this._createWord(e,i,s,r+1,this._findEndOfWord(e,t,i,r+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,r+1,this._findEndOfWord(e,t,i,r+1));i=2}else if(1===s&&0!==i)return this._createWord(e,i,s,r+1,this._findEndOfWord(e,t,i,r+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},e._findEndOfWord=function(e,t,n,i){for(var r=e.length,o=i;o=0;r--){var o=e.charCodeAt(r),s=t.get(o);if(1===s)return r+1;if(1===n&&2===s)return r+1;if(2===n&&0===s)return r+1}return 0},e.moveWordLeft=function(t,n,i,r){var o=i.lineNumber,s=i.column,c=!1;1===s&&o>1&&(c=!0,o-=1,s=n.getLineMaxColumn(o));var l=e._findPreviousWordOnLine(t,n,new a.a(o,s));if(0===r){if(l&&!c)if(n.getLineLastNonWhitespaceColumn(o)1?new a.a(n-1,e.getLineMaxColumn(n-1)):t;for(var o=e.getLineContent(n),s=t.column-1;s>1;s--){var c=o.charCodeAt(s-2),l=o.charCodeAt(s-1);if(95!==c&&95===l)return new a.a(n,s);if(r.w(c)&&r.x(l))return new a.a(n,s);if(r.x(c)&&r.x(l)&&s+1=l.start+1&&(l=e._findNextWordOnLine(t,n,new a.a(o,l.end+1))),s=l?l.start+1:n.getLineMaxColumn(o)),new a.a(o,s)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n1?u=1:(l--,u=n.getLineMaxColumn(l)):(d&&u<=d.end+1&&(d=e._findPreviousWordOnLine(t,n,new a.a(l,d.start+1))),d?u=d.end+1:u>1?u=1:(l--,u=n.getLineMaxColumn(l))),new c.a(l,u,s.lineNumber,s.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),r=e._moveWordPartLeft(t,i);return new c.a(i.lineNumber,i.column,r.lineNumber,r.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i=p.start+1&&(p=e._findNextWordOnLine(t,n,new a.a(l,p.end+1))),p?u=p.start+1:ur,h=i>o,d=io)continue;if(yi)continue;if(_1&&r--,this.columnSelect(e,t,n.selection,i,r)},e.columnSelectRight=function(e,t,n,i,r){for(var o=0,s=Math.min(n.position.lineNumber,i),l=Math.max(n.position.lineNumber,i),u=s;u<=l;u++){var h=t.getLineMaxColumn(u),d=a.a.visibleColumnFromColumn2(e,t,new c.a(u,h));o=Math.max(o,d)}return rt.getLineCount()&&(r=t.getLineCount()),this.columnSelect(e,t,n.selection,r,o)},e}(),h=n("snIX"),d=n("oAeH"),f=n("GR/f"),p=n("iuje"),m=n("wQH0"),g=n("T8No");n.d(t,"CoreEditorCommand",(function(){return T})),n.d(t,"EditorScroll_",(function(){return _})),n.d(t,"RevealLine_",(function(){return b})),n.d(t,"CoreNavigationCommands",(function(){return w})),n.d(t,"CoreEditingCommands",(function(){return x}));var v,_,y,b,C,w,x,S,E,M=(v=function(e,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),L=0,T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},t}(o.c);function O(e){e.register()}(y=_||(_={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.g(e))return!1;var t=e;return!(!r.h(t.to)||!r.i(t.by)&&!r.h(t.by)||!r.i(t.value)&&!r.f(t.value)||!r.i(t.revealCursor)&&!r.c(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},y.RawDirection={Up:"up",Down:"down"},y.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},y.parse=function(e){var t,n;switch(e.to){case y.RawDirection.Up:t=1;break;case y.RawDirection.Down:t=2;break;default:return null}switch(e.by){case y.RawUnit.Line:n=1;break;case y.RawUnit.WrappedLine:n=2;break;case y.RawUnit.Page:n=3;break;case y.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(C=b||(b={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.g(e))return!1;var t=e;return!(!r.f(t.lineNumber)||!r.i(t.at)&&!r.h(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},C.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[d.b.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(T);e.MoveTo=Object(o.g)(new t({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=Object(o.g)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map((function(e){return a.d.fromViewState(e)}))),e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},t}(T);e.ColumnSelect=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:null})||this}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var r,o=e.model.validatePosition(i.position);return r=i.viewPosition?e.validateViewPosition(new c.a(i.viewPosition.lineNumber,i.viewPosition.column),o):e.convertModelPositionToViewPosition(o),u.columnSelect(e.config,e.viewModel,t.viewState.selection,r.lineNumber,i.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:3599,linux:{primary:0}}})||this}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return u.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n))),e.CursorColumnSelectRight=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:3601,linux:{primary:0}}})||this}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return u.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n)));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return u.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectUp=Object(o.g)(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(o.g)(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:3595,linux:{primary:0}}}));var r=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return u.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectDown=Object(o.g)(new r({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(o.g)(new r({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:3596,linux:{primary:0}}}));var s=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:null,description:d.a.description})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=d.a.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,d.b.move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},t}(T);e.CursorMoveImpl=s,e.CursorMove=Object(o.g)(new s);var h=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return M(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},n}(T);e.CursorLeft=Object(o.g)(new h({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(o.g)(new h({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1039}})),e.CursorRight=Object(o.g)(new h({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(o.g)(new h({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1041}})),e.CursorUp=Object(o.g)(new h({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(o.g)(new h({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(o.g)(new h({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(o.g)(new h({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1035}})),e.CursorDown=Object(o.g)(new h({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(o.g)(new h({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(o.g)(new h({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(o.g)(new h({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:null})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?d.b.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):d.b.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var r=e.getAll();if(r.length>1)for(var o=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,c=r.length;ar&&(i=r);var o=new l.a(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case b.RawAtArgument.Top:s=3;break;case b.RawAtArgument.Center:s=1;break;case b.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(o);e.revealRange(!1,a,s,0)},t}(T))),e.SelectAll=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[d.b.selectAll(e.context,e.getPrimaryCursor())])},t}(T))),e.SetSelection=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[a.d.fromModelSelection(t.selection)])},t}(T)))}(w||(w={})),S=x||(x={}),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{})},t}(o.c),S.CoreEditingCommand=E,S.LineBreakInsert=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:301}}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},t}(E))),S.Outdent=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:L,kbExpr:g.d.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1026}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(E))),S.Tab=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:L,kbExpr:g.d.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(E))),S.DeleteLeft=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=h.a.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),r=i[0],o=i[1];r&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)},t}(E))),S.DeleteRight=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=h.a.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),r=i[0],o=i[1];r&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)},t}(E)));var I=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return M(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s.a).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var r=e.get(s.a).getActiveCodeEditor();return r?(r.focus(),this._runEditorHandler(e,r,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var i=this._editorHandler;"string"==typeof i?t.trigger("keyboard",i,n):((n=n||{}).source="keyboard",i.runEditorCommand(e,t,n))},t}(o.a),N=function(e){function t(t,n,i){var r=e.call(this,{id:t,precondition:null,description:i})||this;return r._handlerId=n,r}return M(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(o.a);function A(e,t){O(new N("default:"+e,e)),O(new N(e,e,t))}O(new I({editorHandler:w.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:L,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:i.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),O(new I({editorHandler:p.b.Undo,inputHandler:"undo",id:p.b.Undo,precondition:m.a.writable,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:i.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),O(new N("default:"+p.b.Undo,p.b.Undo)),O(new I({editorHandler:p.b.Redo,inputHandler:"redo",id:p.b.Redo,precondition:m.a.writable,kbOpts:{weight:L,kbExpr:m.a.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:i.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),O(new N("default:"+p.b.Redo,p.b.Redo)),A(p.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),A(p.b.ReplacePreviousChar),A(p.b.CompositionStart),A(p.b.CompositionEnd),A(p.b.Paste),A(p.b.Cut)},"20/g":function(e,t,n){"use strict";n.r(t);var i,r,o,s,a,c,l,u,h,d,f,p,m,g,v,_,y,b,C,w=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i0&&(r.arguments=n),r},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.title)&&X.string(t.command)}}(m||(m={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return X.objectLiteral(t)&&X.string(t.newText)&&r.is(t.range)}}(g||(g={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return X.defined(t)&&S.is(t.textDocument)&&Array.isArray(t.edits)}}(v||(v={})),function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&X.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||X.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||X.boolean(t.options.ignoreIfExists)))}}(_||(_={})),function(e){e.create=function(e,t,n){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&X.string(t.oldUri)&&X.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||X.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||X.boolean(t.options.ignoreIfExists)))}}(y||(y={})),function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&X.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||X.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||X.boolean(t.options.ignoreIfNotExists)))}}(b||(b={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return X.string(e.kind)?_.is(e)||y.is(e)||b.is(e):v.is(e)})))}}(C||(C={}));var x,S,E,M,L,T,O,I,N,A,k,D,z,R,P,H,V,F=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(g.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(g.replace(e,t))},e.prototype.delete=function(e){this.edits.push(g.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(v.is(e)){var n=new F(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var i=new F(e.changes[n]);t._textEditChanges[n]=i})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(S.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),i=new F(r),this._textEditChanges[t.uri]=i}return i}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,i=new F(r),this._textEditChanges[e]=i}return i},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(_.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(y.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.uri)}}(x||(x={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.uri)&&(null===t.version||X.number(t.version))}}(S||(S={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){var t=e;return X.defined(t)&&X.string(t.uri)&&X.string(t.languageId)&&X.number(t.version)&&X.string(t.text)}}(E||(E={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(M||(M={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(M||(M={})),function(e){e.is=function(e){var t=e;return X.objectLiteral(e)&&M.is(t.kind)&&X.string(t.value)}}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(T||(T={})),function(e){e.PlainText=1,e.Snippet=2}(O||(O={})),function(e){e.create=function(e){return{label:e}}}(I||(I={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(N||(N={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return X.string(t)||X.objectLiteral(t)&&X.string(t.language)&&X.string(t.value)}}(A||(A={})),function(e){e.is=function(e){var t=e;return!!t&&X.objectLiteral(t)&&(L.is(t.contents)||A.is(t.contents)||X.typedArray(t.contents,A.is))&&(void 0===e.range||r.is(e.range))}}(k||(k={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(D||(D={})),function(e){e.create=function(e,t){for(var n=[],i=2;i=0;o--){var s=i[o],a=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=r))throw new Error("Overlapping edit");n=n.substring(0,a)+s.newText+n.substring(c,n.length),r=a}return n}}(Y||(Y={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}($||($={}));var X,Z=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=null}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=null},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return i.create(0,e);for(;ne?r=o:n=o+1}var s=n-1;return i.create(s,e-t[s])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+10&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},A=function(e,t){return function(n,i){t(n,i,e)}},k=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}c((i=i.apply(e,t||[])).next())}))},D=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}},"3Rsk":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("ic2d"),r=n("MI8n"),o={JSONContribution:"base.contributions.json"};var s=new(function(){function e(){this._onDidChangeSchema=new r.a,this.schemasById={}}return e.prototype.registerSchema=function(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}());i.a.add(o.JSONContribution,s)},"3eme":function(e,t,n){},"3oCa":function(e,t){ +/*! + * Font Awesome Free 5.10.2 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + */ +!function(){"use strict";var e={},t={};try{"undefined"!=typeof window&&(e=window),"undefined"!=typeof document&&(t=document)}catch(e){}var n=(e.navigator||{}).userAgent,i=void 0===n?"":n,r=e,o=t,s=(r.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~i.indexOf("MSIE")||i.indexOf("Trident/"),function(){try{return!0}catch(e){return!1}}());function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=r||{};c.___FONT_AWESOME___||(c.___FONT_AWESOME___={}),c.___FONT_AWESOME___.styles||(c.___FONT_AWESOME___.styles={}),c.___FONT_AWESOME___.hooks||(c.___FONT_AWESOME___.hooks={}),c.___FONT_AWESOME___.shims||(c.___FONT_AWESOME___.shims=[]);var l=c.___FONT_AWESOME___;function u(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,i=void 0!==n&&n,r=Object.keys(t).reduce((function(e,n){var i=t[n];return!!i.icon?e[i.iconName]=i.icon:e[n]=i,e}),{});"function"!=typeof l.hooks.addPack||i?l.styles[e]=function(e){for(var t=1;t=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},m=function(){function e(e,t,n){void 0===n&&(n=r.b),this._editor=e,this._modeService=t,this._openerService=n,this._onDidRenderCodeBlock=new u.a,this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}return e.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=null;if(e)i=t._modeService.getModeIdForLanguageName(e);else{var r=t._editor.getModel();r&&(i=r.getLanguageIdentifier().language)}return t._modeService.triggerMode(i||""),Promise.resolve(!0).then((function(e){var t=d.y.getPromise(i||"");return t?t.then((function(e){return Object(c.b)(n,e)})):Object(c.b)(n,void 0)})).then((function(e){return''+e+""}))},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){var n;try{n=s.a.parse(e)}catch(e){}n&&t._openerService&&t._openerService.open(n).catch(a.e)},disposeables:e}}},e.prototype.render=function(e){var t=[];return{element:e?Object(i.b)(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return Object(h.d)(t)}}},e=f([p(1,o.a),p(2,Object(l.d)(r.a))],e)}()},"3rx1":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var i=n("bY76"),r=n("MrjW"),o=n("N0LK"),s=n("tYmi"),a=n("MNsG"),c=n("gslv");function l(e,t,n){if("string"==typeof e&&(e=i.a.file(e)),n){var l=n.getWorkspaceFolder(e);if(l){var u=n.getWorkspace().folders.length>1,p=void 0;if(p=Object(c.e)(l.uri,e)?"":Object(c.h)(l.uri,e),u){var m=l&&l.name?l.name:Object(c.b)(l.uri);p=p?m+" • "+p:m}return p}}if(e.scheme!==s.a.file&&e.scheme!==s.a.untitled)return e.with({query:null,fragment:null}).toString(!0);if(h(e.fsPath))return Object(r.normalize)(d(e.fsPath));var g=Object(r.normalize)(e.fsPath);return!a.g&&t&&(g=function(e,t){if(a.g||!e||!t)return e;var n=f.original===t?f.normalized:void 0;n||(n=""+Object(o.E)(t,r.posix.sep)+r.posix.sep,f={original:t,normalized:n});(a.c?Object(o.G)(e,n):Object(o.H)(e,n))&&(e="~/"+e.substr(n.length));return e}(g,t.userHome)),g}function u(e){if(e){"string"==typeof e&&(e=i.a.file(e));var t=Object(c.b)(e)||(e.scheme===s.a.file?e.fsPath:e.path);return h(t)?d(t):t}}function h(e){return!(!a.g||!e||":"!==e[1])}function d(e){return h(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var f=Object.create(null)},"4bUh":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("twdY"),r=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,r=i+(n<<1),o=i;o0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return i.x.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return i.x.getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return i.x.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return i.x.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return i.x.getInlineStyleFromMetadata(n,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new o(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,i=0;i>>1)-1;nt&&(i=r)}return n},e}(),o=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var r=this._firstTokenIndex,o=e.getCount();r=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}()},"4rho":function(e,t,n){},"4sI4":function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneReferencesController",(function(){return m}));var i,r=n("sswD"),o=n("Vxe3"),s=n("qkNm"),a=n("+7oY"),c=n("T8No"),l=n("Cg/j"),u=n("sM1p"),h=n("A+jI"),d=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},m=function(e){function t(t,n,i,r,o,s,a){return e.call(this,!0,t,n,i,r,o,s,a)||this}return d(t,e),t=f([p(1,c.e),p(2,o.a),p(3,u.a),p(4,l.a),p(5,h.a),p(6,a.a)],t)}(s.a);Object(r.h)(m)},"4y0V":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("MI8n"),r=function(e,t,n){var r=function(e){return o.fire(e)},o=new i.a({onFirstListenerAdd:function(){e.addEventListener(t,r,n)},onLastListenerRemove:function(){e.removeEventListener(t,r,n)}});return o.event};function o(e){return i.b.map(e,(function(e){return e.preventDefault(),e.stopPropagation(),e}))}},"4yiN":function(e,t,n){"use strict";n.r(t);var i,r,o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}c((i=i.apply(e,t||[])).next())}))},s=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&t>e&&this._stopWorker()}},e.prototype._getClient=function(){var e=this;if(this._lastUsedTime=Date.now(),!this._client){this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs()}});var t=this._worker.getProxy();this._defaults.getEagerModelSync()&&(t=t.then((function(t){return e._worker.withSyncedResources(monaco.editor.getModels().filter((function(t){return t.getModeId()===e._modeId})).map((function(e){return e.uri})))}))),this._client=t}return this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i0)for(var a=0,c=r.childItems;a50&&n._undoStack.shift()),n._prevState=n._readState()}))),n}return c(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype._readState=function(){return this._editor.hasModel()?new l(this._editor.getSelections()):null},t.prototype.getId=function(){return t.ID},t.prototype.cursorUndo=function(){if(this._editor.hasModel())for(var e=new l(this._editor.getSelections());this._undoStack.length>0;){var t=this._undoStack.pop();if(!t.equals(e))return this._isCursorUndo=!0,this._editor.setSelections(t.selections),this._editor.revealRangeInCenterIfOutsideViewport(t.selections[0],0),void(this._isCursorUndo=!1)}},t.ID="editor.contrib.cursorUndoController",t}(o.a),h=function(e){function t(){return e.call(this,{id:"cursorUndo",label:r.a("cursor.undo","Soft Undo"),alias:"Soft Undo",precondition:null,kbOpts:{kbExpr:a.a.textInputFocus,primary:2099,weight:100}})||this}return c(t,e),t.prototype.run=function(e,t,n){u.get(t).cursorUndo()},t}(s.b);Object(s.h)(u),Object(s.f)(h)},"5TxY":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var i,r=n("D3Dy"),o=n("EffR"),s=n("X+cX"),a=n("MI8n"),c=n("pmY6"),l=n("MNsG"),u=n("N0LK"),h=n("Comh"),d=n("gCVg"),f=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p={forceCopyWithSyntaxHighlighting:!1},m=function(e){function t(t,n){var i=e.call(this)||this;i._onFocus=i._register(new a.a),i.onFocus=i._onFocus.event,i._onBlur=i._register(new a.a),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new a.a),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new a.a),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new a.a),i.onCut=i._onCut.event,i._onPaste=i._register(new a.a),i.onPaste=i._onPaste.event,i._onType=i._register(new a.a),i.onType=i._onType.event,i._onCompositionStart=i._register(new a.a),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new a.a),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new a.a),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new a.a),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new v(n)),i._lastTextAreaEvent=0,i._asyncTriggerCut=i._register(new s.d((function(){return i._onCut.fire()}),0)),i._textAreaState=h.b.EMPTY,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(o.k(n.domNode,"keydown",(function(e){!i._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),i._onKeyDown.fire(e)}))),i._register(o.k(n.domNode,"keyup",(function(e){i._onKeyUp.fire(e)}))),i._register(o.h(n.domNode,"compositionstart",(function(e){i._lastTextAreaEvent=1,i._isDoingComposition||(i._isDoingComposition=!0,r.g||i._setAndWriteTextAreaState("compositionstart",h.b.EMPTY),i._onCompositionStart.fire())})));var c=function(e,t){var n=i._textAreaState,r=h.b.readFromTextArea(i._textArea);return[r,h.b.deduceInput(n,r,e,t)]},d=function(e){var t=i._textAreaState,n=h.b.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},f=function(e){return!(!r.g||"ja"!==e)||!(!r.j||0!==e.indexOf("zh-Han"))};return i._register(o.h(n.domNode,"compositionupdate",(function(e){if(i._lastTextAreaEvent=2,f(e.locale)){var t=c(!1,!1),n=t[0],r=t[1];return i._textAreaState=n,i._onType.fire(r),void i._onCompositionUpdate.fire(e)}var o=d(e.data),s=o[0],a=o[1];i._textAreaState=s,i._onType.fire(a),i._onCompositionUpdate.fire(e)}))),i._register(o.h(n.domNode,"compositionend",(function(e){if(i._lastTextAreaEvent=3,f(e.locale)){var t=c(!1,!1),n=t[0],o=t[1];i._textAreaState=n,i._onType.fire(o)}else{var s=d(e.data);n=s[0],o=s[1];i._textAreaState=n,i._onType.fire(o)}(r.g||r.e)&&(i._textAreaState=h.b.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire())}))),i._register(o.h(n.domNode,"input",(function(){var e=8===i._lastTextAreaEvent;if(i._lastTextAreaEvent=4,i._textArea.setIgnoreSelectionChangeTime("received input event"),!i._isDoingComposition){var t=c(l.d,e&&l.d),n=t[0],r=t[1];0===r.replaceCharCnt&&1===r.text.length&&u.u(r.text.charCodeAt(0))||(i._textAreaState=n,0===i._nextCommand?""!==r.text&&i._onType.fire(r):(""!==r.text&&i._onPaste.fire({text:r.text}),i._nextCommand=0))}}))),i._register(o.h(n.domNode,"cut",(function(e){i._lastTextAreaEvent=5,i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(e),i._asyncTriggerCut.schedule()}))),i._register(o.h(n.domNode,"copy",(function(e){i._lastTextAreaEvent=6,i._ensureClipboardGetsEditorSelection(e)}))),i._register(o.h(n.domNode,"paste",(function(e){if(i._lastTextAreaEvent=7,i._textArea.setIgnoreSelectionChangeTime("received paste event"),g.canUseTextData(e)){var t=g.getTextData(e);""!==t&&i._onPaste.fire({text:t})}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",h.b.EMPTY),i._nextCommand=1}))),i._register(o.h(n.domNode,"focus",(function(){i._lastTextAreaEvent=8,i._setHasFocus(!0)}))),i._register(o.h(n.domNode,"blur",(function(){i._lastTextAreaEvent=9,i._setHasFocus(!1)}))),i}return f(t,e),t.prototype._installSelectionChangeListener=function(){var e=this,t=0;return o.h(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&r.e&&l.g){var i=Date.now(),o=i-t;if(t=i,!(o<5)){var s=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(s<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var c=e._textArea.getSelectionStart(),u=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==c||e._textAreaState.selectionEnd!==u){var h=e._textAreaState.deduceEditorPosition(c),f=e._host.deduceModelPosition(h[0],h[1],h[2]),p=e._textAreaState.deduceEditorPosition(u),m=e._host.deduceModelPosition(p[0],p[1],p[2]),g=new d.a(f.lineNumber,f.column,m.lineNumber,m.column);e._onSelectionChangeRequest.fire(g)}}}}}}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(r.f?this._setAndWriteTextAreaState("focusgain",h.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(g.canUseTextData(e)){var n=null;r.d()&&(t.length<65536||p.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),g.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",h.b.selectedText(t))},t}(c.a),g=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),v=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return f(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,s=document.activeElement===i,a=i.selectionStart,c=i.selectionEnd;if(s&&a===t&&c===n)r.i&&window.parent!==window&&i.focus();else{if(s)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(r.i&&window.parent!==window&&i.focus());try{var l=o.M(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),o.K(i,l)}catch(e){}}},t}(c.a)},"5Y4S":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("MNsG"),r=i.b.performance&&"function"==typeof i.b.performance.now,o=function(){function e(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?i.b.performance.now():(new Date).getTime()},e}()},"5aqo":function(e,t,n){"use strict";var i=n("EffR"),r=n("WqXY"),o=n("8HAY"),s=n("zrhQ"),a=n("MI8n"),c=n("qj0h"),l=n("N0LK"),u=(n("3eme"),n("Vxe3")),h=n("03kh"),d=(n("uWgD"),n("cMOf")),f=n("nD70"),p=n("pmY6"),m=n("aokT"),g=n("tX9W"),v=new s.a(new s.c(0,122,204)),_={showArrow:!0,showFrame:!0,className:"",frameColor:v,arrowColor:v,keepEditorSelection:!1},y=function(){function e(e,t,n,i,r,o){this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=r,this._onComputedHeight=o}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},e}(),b=function(){function e(e,t){this._id=e,this._domNode=t}return e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return null},e}(),C=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[]}return e.prototype.dispose=function(){this.hide(),i.F(this._ruleName)},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){i.F(this._ruleName),i.p(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:m.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new f.a(".arrow-decoration-"),e}(),w=function(){function e(e,t){var n=this;void 0===t&&(t={}),this._positionMarkerId=[],this._disposables=[],this._isShowing=!1,this.editor=e,this.options=c.c(t),c.g(this.options,_,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.push(this.editor.onDidLayoutChange((function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)})))}return e.prototype.dispose=function(){var e=this;Object(p.d)(this._disposables),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null})),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[]},e.prototype.create=function(){i.f(this.domNode,"zone-widget"),this.options.className&&i.f(this.domNode,this.options.className),this.container=document.createElement("div"),i.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new C(this.editor),this._disposables.push(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},e.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n)),this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel();if(t){var n=t.getDecorationRange(e);if(n)return n.getStartPosition()}}},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=m.a.isIRange(e)?e:new m.a(e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:g.a.EMPTY}])},e.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;this.options.showArrow&&(t+=2*Math.round(e/3));this.options.showFrame&&(t+=2*Math.round(e/9));return t},e.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},r=this.editor.getLayoutInfo(),o=this._getWidth(r);this.domNode.style.width=o+"px",this.domNode.style.left=this._getLeft(r)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getConfiguration().lineHeight,c=this.editor.getLayoutInfo().height/a*.8;t>=c&&(t=c);var l=0,u=0;if(this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(u=Math.round(a/9)),this.editor.changeViewZones((function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new y(s,i.lineNumber,i.column,t,(function(e){return n._onViewZoneTop(e)}),(function(e){return n._onViewZoneHeight(e)})),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new b("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.options.showFrame){var h=this.options.frameWidth?this.options.frameWidth:u;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}var d=t*a-this._decoratingElementsHeight();this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden",this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);var f=this.editor.getModel();if(f){var p=Math.min(f.getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(p)}},e.prototype.revealLine=function(e){this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){t&&this.container.classList.remove(t),i.f(this.container,e)},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.prototype._relayout=function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id))}))},e.prototype._initSash=function(){var e,t=this;this._resizeSash=new d.a(this.domNode,this,{orientation:1}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.push(this._resizeSash.onDidStart((function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})}))),this._disposables.push(this._resizeSash.onDidEnd((function(){e=void 0}))),this._disposables.push(this._resizeSash.onDidChange((function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getConfiguration().lineHeight,r=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+r;o>5&&o<35&&t._relayout(o)}})))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}(),x=n("3/fG"),S=n("T8No"),E=n("Cg/j"),M=n("9fML");n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return T})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return D}));var L,T,O,I=(L=function(e,t){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=Object(E.c)("IPeekViewService");function A(e){var t=e.get(u.a).getFocusedCodeEditor();return t instanceof h.a?t.getParentEditor():t}Object(M.a)(N,function(){function e(){this._widgets=new Map}return e.prototype.addExclusiveWidget=function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose((function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))}))})},e}()),(O=T||(T={})).inPeekEditor=new S.f("inReferenceSearchEditor",!0),O.notInPeekEditor=O.inPeekEditor.toNegated();var k={headerBackgroundColor:s.a.white,primaryHeadingColor:s.a.fromHex("#333333"),secondaryHeadingColor:s.a.fromHex("#6c6c6cb3")},D=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new a.a,c.g(i.options,k,!1),i}return I(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&t.headerBackgroundColor&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&t.primaryHeadingColor&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&t.secondaryHeadingColor&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&t.frameColor&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=i.a(".head"),this._bodyElement=i.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},t.prototype._fillHead=function(e){var t=this,n=i.a(".peekview-title");i.m(this._headElement,n),i.k(n,"click",(function(e){return t._onTitleClick(e)})),this._headingIcon=i.a("span"),this._primaryHeading=i.a("span.filename"),this._secondaryHeading=i.a("span.dirname"),this._metaHeading=i.a("span.meta"),i.m(n,this._headingIcon,this._primaryHeading,this._secondaryHeading,this._metaHeading);var s=i.a(".peekview-actions");i.m(this._headElement,s);var a=this._getActionBarOptions();this._actionbarWidget=new r.a(s,a),this._disposables.push(this._actionbarWidget),this._actionbarWidget.push(new o.a("peekview.close",x.a("label.close","Close"),"close-peekview-action",!0,(function(){return t.dispose(),Promise.resolve()})),{label:!1,icon:!0})},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitleIcon=function(e){this._headingIcon.className=e?"icon "+e:""},t.prototype.setTitle=function(e,t){this._primaryHeading.innerHTML=l.m(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=l.m(t):i.n(this._secondaryHeading)},t.prototype.setMetaTitle=function(e){e?this._metaHeading.innerHTML=l.m(e):i.n(this._metaHeading)},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getConfiguration().lineHeight),i=e-(n+2);this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},t.prototype._doLayoutHead=function(e,t){this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=e+"px"},t}(w)},"5v8Y":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i,r=n("MXAL"),o=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,r=t.length;i0))return o;r=o-1}}return-(i+1)}function a(e,t){var n=0,i=e.length;if(0===i)return 0;for(;ni?e[c]=o[a++]:a>r?e[c]=o[s++]:t(o[a],o[s])<0?e[c]=o[a++]:e[c]=o[s++]}(t,n,i,s,r,o)}(e,t,0,e.length-1,[]),e}function l(e,t){for(var n=[],i=void 0,r=0,o=c(e.slice(0),t);r0}function f(e,t){if(!t)return e.filter((function(t,n){return e.indexOf(t)===n}));var n=Object.create(null);return e.filter((function(e){var i=t(e);return!n[i]&&(n[i]=!0,!0)}))}function p(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function m(e,t){for(var n=0;nt;r--)i.push(r);return i}function y(e,t,n){var i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function b(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function C(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function w(e){return Array.isArray(e)?e:[e]}n.d(t,"s",(function(){return i})),n.d(t,"t",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"h",(function(){return a})),n.d(t,"o",(function(){return c})),n.d(t,"l",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"m",(function(){return h})),n.d(t,"n",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"k",(function(){return v})),n.d(t,"r",(function(){return _})),n.d(t,"a",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"p",(function(){return C})),n.d(t,"b",(function(){return w}))},"6xnz":function(e,t){function n(e,t,n,i){this.id=e,this.cost=t,this.index=n,this.value=0,this.priority=i}function i(e,t,i,r){n.call(this,e,t,i,r)}function r(e,t){n.call(this,e,0,t,0)}function o(e,t){this.variable=e,this.coefficient=t}function s(e,t,n){return 0===n||"required"===n?null:(t=t||1,n=n||1,!1===e.isMinimization&&(t=-t),e.addVariable(t,"r"+e.relaxationIndex++,!1,!1,n))}function a(e,t,n,i){this.slack=new r("s"+n,n),this.index=n,this.model=i,this.rhs=e,this.isUpperBound=t,this.terms=[],this.termsByVarIndex={},this.relaxation=null}function c(e,t){this.upperBound=e,this.lowerBound=t,this.model=e.model,this.rhs=e.rhs,this.relaxation=null}i.prototype.isInteger=!0,r.prototype.isSlack=!0,a.prototype.addTerm=function(e,t){var n=t.index,i=this.termsByVarIndex[n];if(void 0===i)i=new o(t,e),this.termsByVarIndex[n]=i,this.terms.push(i),!0===this.isUpperBound&&(e=-e),this.model.updateConstraintCoefficient(this,t,e);else{var r=i.coefficient+e;this.setVariableCoefficient(r,t)}return this},a.prototype.removeTerm=function(e){return this},a.prototype.setRightHandSide=function(e){if(e!==this.rhs){var t=e-this.rhs;!0===this.isUpperBound&&(t=-t),this.rhs=e,this.model.updateRightHandSide(this,t)}return this},a.prototype.setVariableCoefficient=function(e,t){var n=t.index;if(-1!==n){var i=this.termsByVarIndex[n];if(void 0===i)this.addTerm(e,t);else if(e!==i.coefficient){var r=e-i.coefficient;!0===this.isUpperBound&&(r=-r),i.coefficient=e,this.model.updateConstraintCoefficient(this,t,r)}return this}console.warn("[Constraint.setVariableCoefficient] Trying to change coefficient of inexistant variable.")},a.prototype.relax=function(e,t){this.relaxation=s(this.model,e,t),this._relax(this.relaxation)},a.prototype._relax=function(e){null!==e&&(this.isUpperBound?this.setVariableCoefficient(-1,e):this.setVariableCoefficient(1,e))},c.prototype.isEquality=!0,c.prototype.addTerm=function(e,t){return this.upperBound.addTerm(e,t),this.lowerBound.addTerm(e,t),this},c.prototype.removeTerm=function(e){return this.upperBound.removeTerm(e),this.lowerBound.removeTerm(e),this},c.prototype.setRightHandSide=function(e){this.upperBound.setRightHandSide(e),this.lowerBound.setRightHandSide(e),this.rhs=e},c.prototype.relax=function(e,t){this.relaxation=s(this.model,e,t),this.upperBound.relaxation=this.relaxation,this.upperBound._relax(this.relaxation),this.lowerBound.relaxation=this.relaxation,this.lowerBound._relax(this.relaxation)},e.exports={Constraint:a,Variable:n,IntegerVariable:i,SlackVariable:r,Equality:c,Term:o}},"746U":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return _}));var i={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function r(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i.number||e.constructor!==Array)}function o(e){return typeof e===i.string||e instanceof String}function s(e){return!(typeof e!==i.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function a(e){return(typeof e===i.number||e instanceof Number)&&!isNaN(e)}function c(e){return!0===e||!1===e}function l(e){return typeof e===i.undefined}function u(e){return l(e)||null===e}var h=Object.prototype.hasOwnProperty;function d(e){if(!s(e))return!1;for(var t in e)if(h.call(e,t))return!1;return!0}function f(e){return typeof e===i.function}function p(e,t){for(var n=Math.min(e.length,t.length),i=0;i";var a=this.text.substring(t,s.start);e+=this.supportOcticons?o(a):Object(r.m)(a),e+="",t=s.end}e+='';var c=this.text.substring(s.start,s.end);e+=this.supportOcticons?o(c):Object(r.m)(c),e+="",t=s.end}}if(t";c=this.text.substring(t);e+=this.supportOcticons?o(c):Object(r.m)(c),e+=""}this.domNode.innerHTML=e,this.domNode.title=this.title,this.didEverRender=!0},e.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,(function(e,r){i="\r\n"===e?-1:0,r+=n;for(var o=0,s=t;o=r&&(a.start+=i),a.end>=r&&(a.end+=i))}return n+=i,"⏎"}))},e}()},"7s2V":function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return i})),n.d(t,"language",(function(){return r}));var i={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},r={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:i.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:i.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:i.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:i.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},o={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","as","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","package","private","protected","public","readonly","require","global","return","set","static","super","switch","symbol","this","throw","true","try","type","typeof","unique","var","void","while","with","yield","async","await","of"],typeKeywords:["any","boolean","number","object","string","undefined"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)/,"number.hex"],[/0[oO]?(@octaldigits)/,"number.octal"],[/0[bB](@binarydigits)/,"number.binary"],[/(@digits)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}},"88+i":function(e,t,n){},"8ATB":function(e,t,n){},"8HAY":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i,r=n("pmY6"),o=n("MI8n"),s=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e,t,n,i,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=!0),this._onDidChange=new o.a,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=r}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},e.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}(),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new o.a),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new o.a),t.onDidRun=t._onDidRun.event,t}return s(t,e),t.prototype.run=function(e,t){var n=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then((function(t){n._onDidRun.fire({action:e,result:t})}),(function(t){n._onDidRun.fire({action:e,error:t})}))):Promise.resolve(null)},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(r.a)},"8HsV":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){for(var e=[],t=0;t1&&n.push(new h.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},t.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel(),r=t.getSelections(),o=[];r.forEach((function(e){return n.getCursorsForSelection(e,i,o)})),o.length>0&&t.setSelections(o)}},t}(c.b),x=function(e){function t(){return e.call(this,{id:"editor.action.addCursorsToBottom",label:r.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:null})||this}return y(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=t.getModel().getLineCount(),r=[],o=n[0].startLineNumber;o<=i;o++)r.push(new h.a(o,n[0].startColumn,o,n[0].endColumn));r.length>0&&t.setSelections(r)}},t}(c.b),S=function(e){function t(){return e.call(this,{id:"editor.action.addCursorsToTop",label:r.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:null})||this}return y(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=[],r=n[0].startLineNumber;r>=1;r--)i.push(new h.a(r,n[0].startColumn,r,n[0].endColumn));i.length>0&&t.setSelections(i)}},t}(c.b),E=function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n},M=function(){function e(e,t,n,i,r,o,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=r,this.matchCase=o,this.currentMatch=s}return e.create=function(t,n){if(!t.hasModel())return null;var i=n.getState();if(!t.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var r,o,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,r=!0,o=!0):(r=i.wholeWord,o=i.matchCase);var c,l=t.getSelection(),u=null;if(l.isEmpty()){var d=t.getModel().getWordAtPosition(l.getStartPosition());if(!d)return null;c=d.word,u=new h.a(l.startLineNumber,d.startColumn,l.startLineNumber,d.endColumn)}else c=t.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new e(t,n,s,c,r,o,u)},e.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new E(t.concat(e),e,0)},e.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new E(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new h.a(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new E(t.concat(e),e,0)},e.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new E(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new h.a(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824)):[]},e}(),L=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n._sessionDispose=[],n}return y(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=M.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose=[this._editor.onDidChangeCursorSelection((function(e){t._ignoreSelectionChange||t._endSession()})),this._editor.onDidBlurEditorText((function(){t._endSession()})),e.getState().onFindReplaceStateChange((function(e){(e.matchCase||e.wholeWord)&&t._endSession()}))]}},t.prototype._endSession=function(){if(this._sessionDispose=Object(a.d)(this._sessionDispose),this._session&&this._session.isDisconnectedFromFindController){this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1)}this._session=null},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new h.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},t.prototype.getSession=function(e){return this._session},t.prototype.addSelectionToNextFindMatch=function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState().matchCase;if(!P(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),r=[],o=0,s=t.length;o0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(t.length>0){for(var i=this._editor.getSelection(),r=0,o=t.length;r1){var a=r.getState().matchCase;if(!P(t.getModel(),s,a))return null}o=M.create(t,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;var c=r.getState(),l=c.matchCase;if(c.isRevealed){var u=c.searchString;l||(u=u.toLowerCase());var h=o.searchText;if(l||(h=h.toLowerCase()),u===h&&o.matchCase===c.matchCase&&o.wholeWord===c.wholeWord&&!c.isRegex)return null}return new z(o.searchText,o.matchCase,o.wholeWord?t.getConfiguration().wordSeparators:null)},t.prototype._setState=function(e){if(z.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=m.i.has(n),r=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map((function(e){return e.range}));r.sort(u.a.compareRangesUsingStarts);var o=this.editor.getSelections();o.sort(u.a.compareRangesUsingStarts);for(var s=[],a=0,c=0,l=r.length,h=o.length;a=h)s.push(d),a++;else{var f=u.a.compareRangesUsingStarts(d,o[c]);f<0?(!o[c].isEmpty()&&u.a.areIntersecting(d,o[c])||s.push(d),a++):f>0?c++:(a++,c++)}}var p=s.map((function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW}}));this.decorations=this.editor.deltaDecorations(this.decorations,p)}}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this)},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=p.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(_.f)(v.vb),position:f.c.Center}}),t._SELECTION_HIGHLIGHT=p.a.register({stickiness:1,className:"selectionHighlight"}),t}(a.a);function P(e,t,n){for(var i=H(e,t[0],!n),r=1,o=t.length;r=!%&+\-*\/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/\/\/+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*\/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N"/,{token:"string",next:"@string"}],[/"/,{token:"string",next:"@string"}]],string:[[/[^"]+/,"string"],[/""/,"string"],[/"/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/'/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^']+/,"identifier"],[/''/,"identifier"],[/'/,{token:"identifier.quote",next:"@pop"}]]}}},"8oxB":function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++h1)for(var n=1;n=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Z=function(e,t){return function(n,i){t(n,i,e)}},Q=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}c((i=i.apply(e,t||[])).next())}))},J=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]1&&p>1;){if(h.charCodeAt(f-2)!==d.charCodeAt(p-2))break;f--,p--}(f>1||p>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,f,s+1,1,p);for(var m=Oe._getLastNonBlankColumn(h,1),g=Oe._getLastNonBlankColumn(d,1),v=h.length+1,_=d.length+1;mt&&(t=l),s>n&&(n=s),(u=o[2])>n&&(n=u)}t++,n++;var a=new He.a(n,t,0);for(i=0,r=e.length;i=this._maxCharCode?0:this._states.get(e,t)},e}(),Fe=null;var Be=null;var je=function(){function e(){}return e._createLink=function(e,t,n,i,r){var o=r-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>i);if(i>0){var a=t.charCodeAt(i-1),c=t.charCodeAt(o);(40===a&&41===c||91===a&&93===c||123===a&&125===c)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===Fe&&(Fe=new Ve([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=Fe);for(var i=function(){if(null===Be){Be=new Pe.a(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)Be.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)Be.set(".,;".charCodeAt(e),2)}return Be}(),r=[],o=1,s=t.getLineCount();o<=s;o++){for(var a=t.getLineContent(o),c=a.length,l=0,u=0,h=0,d=1,f=!1,p=!1,m=!1;l=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}(),Ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ue(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=Object(Re.d)(e.column,Object(Re.c)(t),this._lines[e.lineNumber-1],0);return n?new R.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,i=this,r=0,o=0,s=[],a=function(){if(o=i._lines.length?Ee.c:(n=i._lines[r],s=i._wordenize(n,e),o=0,r+=1,a())};return{next:a}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=[],r=0,o=this._wordenize(n,t);rthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var r=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>r&&(n=r,i=!0)}return i?{lineNumber:t,column:n}:e},t}(ze),qe=function(e){function t(t){var n=e.call(this,t)||this;return n._models=Object.create(null),n}return Ue(t,e),t.prototype.dispose=function(){this._models=Object.create(null)},t.prototype._getModel=function(e){return this._models[e]},t.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},t.prototype.acceptNewModel=function(e){this._models[e.url]=new Ge(D.a.parse(e.url),e.lines,e.EOL,e.versionId)},t.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},t.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},t}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var i=this._getModel(e),r=this._getModel(t);if(!i||!r)return Promise.resolve(null);var o=i.getLinesContent(),s=r.getLinesContent(),a=new ke(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff(),c=!(a.length>0)&&this._modelsAreIdentical(i,r);return Promise.resolve({identical:c,changes:a})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var i=this._getModel(t);if(!i)return Promise.resolve(n);for(var r=[],o=void 0,s=0,a=n=Object(xe.o)(n,(function(e,t){return e.range&&t.range?R.a.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)}));se._diffLimit)r.push({range:l,text:u});else for(var f=Object(Se.b)(d,u,!1),p=i.offsetAt(R.a.lift(l).getStartPosition()),m=0,g=f;m=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},tt=function(e,t){return function(n,i){t(n,i,e)}},nt=6e4,it=3e5;function rt(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var ot=function(e){function t(t,n,i){var r=e.call(this)||this;return r._modelService=t,r._workerManager=r._register(new at(r._modelService)),r._logService=i,r._register(oe.q.register("*",{provideLinks:function(e,t){return rt(r._modelService,e.uri)?r._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),r._register(oe.d.register("*",new st(r._workerManager,n,r._modelService))),r}return Je(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return rt(this._modelService,e)&&rt(this._modelService,t)},t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.computeDiff(e,t,n)}))},t.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Object(xe.n)(t)){if(!rt(this._modelService,e))return Promise.resolve(t);var i=Qe.a.create(!0),r=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return r.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),r}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return rt(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.navigateValueSet(e,t,n)}))},t.prototype.canComputeWordRanges=function(e){return rt(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},t=et([tt(0,Ke.a),tt(1,$e),tt(2,Ze.a)],t)}(ue.a),st=function(){function e(e,t,n){this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){if(this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&rt(this._modelService,e.uri))return this._workerManager.withWorker().then((function(n){return n.textualSuggest(e.uri,t)}))},e}(),at=function(e){function t(t){var n=e.call(this)||this;return n._modelService=t,n._editorWorkerClient=null,n._register(new le.c).cancelAndSet((function(){return n._checkStopIdleWorker()}),Math.round(it/2)),n._register(n._modelService.onModelRemoved((function(e){return n._checkStopEmptyWorker()}))),n}return Je(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&(0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))},t.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&((new Date).getTime()-this._lastWorkerUsedTime>it&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ut(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(ue.a),ct=function(e){function t(t,n,i){var r=e.call(this)||this;if(r._syncedModels=Object.create(null),r._syncedModelsLastUsedTime=Object.create(null),r._proxy=t,r._modelService=n,!i){var o=new le.c;o.cancelAndSet((function(){return r._checkStopModelSync()}),Math.round(nt/2)),r._register(o)}return r}return Je(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)Object(ue.d)(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.esureSyncedResources=function(e){for(var t=0,n=e;tnt&&t.push(n)}for(var i=0,r=t;i'"_]/g,"-")}function wt(e,t){return new Error(e.languageId+": "+t)}function xt(e,t,n,i,r){var o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,c,l,u,h,d,f){return yt(a)?yt(c)?!yt(l)&&l0;){var i=e.tokenizer[n];if(i)return i;var r=n.lastIndexOf(".");n=r<0?null:n.substr(0,r)}return null}var Et=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Mt(e,t);var n=Mt.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new Mt(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),Mt=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return Et.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.switchTo=function(e){return Et.create(this.parent,e)},e}(),Lt=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state)},e}(),Tt=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new Ot(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Ot(e,t);var n=Mt.getStackElementId(e),i=this._entries[n];return i||(i=new Ot(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),Ot=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:Tt.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),It=Object.hasOwnProperty,Nt=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new H.a(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,r=t.state,o=oe.y.get(i);if(!o)return this.enterMode(n,i),this.emit(n,""),r;var s=o.tokenize(e,r,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new H.b(this._tokens,e)},e}(),At=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var i=null!==e?e.length:0,r=t.length,o=null!==n?n.length:0;if(0===i&&0===r&&0===o)return new Uint32Array(0);if(0===i&&0===r)return n;if(0===r&&0===o)return e;var s=new Uint32Array(i+r+o);null!==e&&s.set(e);for(var a=0;a0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(r);return this._myTokenize(a,t,n+r,i)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);for(var r,o,s=e.length,a=t.embeddedModeData,c=t.stack,l=0,u=null,h=!0;h||l=s)break;h=!1;var w=this._lexer.tokenizer[m];if(!w&&!(w=St(this._lexer,m)))throw wt(this._lexer,"tokenizer state is not defined: "+m);var x=e.substr(l);for(var S in w)if(It.call(w,S)){var E=w[S];if((0===l||!E.matchOnlyAtLineStart)&&(g=x.match(E.regex))){v=g[0],_=E.action;break}}}if(g||(g=[""],v=""),_||(l=this._lexer.maxStack)throw wt(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(m)}else if("@pop"===_.next){if(c.depth<=1)throw wt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));c=c.pop()}else if("@popall"===_.next)c=c.popall();else{var L;if("@"===(L=xt(this._lexer,_.next,v,g,m))[0]&&(L=L.substr(1)),!St(this._lexer,L))throw wt(this._lexer,"trying to set a next state '"+L+"' that is undefined in rule: "+this._safeRuleName(y));c=c.push(L)}}_.log&&"string"==typeof _.log&&(r=this._lexer,o=this._lexer.languageId+": "+xt(this._lexer,_.log,v,g,m),console.log(r.languageId+": "+o))}if(null===M)throw wt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));if(Array.isArray(M)){if(u&&u.groups.length>0)throw wt(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(g.length!==M.length+1)throw wt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));for(var T=0,O=1;O=0&&a()}))}))},e.colorizeLine=function(e,t,n,i,r){void 0===r&&(r=4);var o=mt.d.isBasicASCII(e,t),s=mt.d.containsRTL(e,o,n);return Object(pt.d)(new pt.b(!1,!0,e,!1,o,s,0,i,[],r,0,-1,"none",!1,!1)).html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var r=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,n)},e}();function Rt(e,t,n){return new Promise((function(i,r){var o=function(){var s=function(e,t,n){for(var i=[],r=n.getInitialState(),o=0,s=e.length;o"),r=c.endState}return i.join("")}(e,t,n);if(n instanceof kt){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(o,r)}i(s)};o()}))}function Pt(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var r=0,o=e.length;r")}return n.join("")}var Ht=n("uDWl"),Vt=n("S3by"),Ft=n("sFUC"),Bt=n("iDAx"),jt=n("0/Sa"),Wt=n("+7oY"),Ut=n("QDVR"),Gt=n("qj0h"),qt=n("CRAX"),Kt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Yt=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},e.prototype.getValue=function(e){return e?Object(Wt.d)(this.contents,e):this.contents},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!=typeof n||!Object.keys(n).length)return this;for(var i={},r=0,o=xe.e(Object.keys(this.contents).concat(Object.keys(n)));r5e3&&n._leaveChordMode():n._leaveChordMode()}),500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var n=this,i=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var r=e.getDispatchParts()[0];if(null===r)return i;var o=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),c=this._getResolver().resolve(o,s,r);return c&&c.enterChord?(i=!0,this._enterChordMode(r,a),i):(this._statusService&&this._currentChord&&(c&&c.commandId||(this._statusService.setStatusMessage(Zt.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),1e4),i=!0)),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(i=!0),void 0===c.commandArgs?this._commandService.executeCommand(c.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),this._telemetryService.publicLog("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),i)},t.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)},t}(ue.a),en=n("T8No"),tn=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,r=t.length;i=0;u--)this._isTargetedForRemoval(e[u],a,c,s,l)&&e.splice(u,1);else n.push(o)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if(void 0===i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var r=i.length-1;r>=0;r--){var o=i[r];if(o.command!==n.command){var s=o.keypressParts.length>1,a=n.keypressParts.length>1;s&&a&&o.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,i=t.length;n1&&null!==c.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:c.command,commandArgs:c.commandArgs,bubble:c.bubble}:null},e.prototype._findCommand=function(t,n){for(var i=n.length-1;i>=0;i--){var r=n[i];if(e.contextMatchesRules(t,r.when))return r}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}(),nn=n("nrhi"),rn=function(e,t,n,i,r){this.resolvedKeybinding=e,this.keypressParts=e?function(e){for(var t=[],n=0,i=e.length;n1},t.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},t.prototype._getPart=function(e){return new k.d(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},t.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},t}(k.c),cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ln=function(e){function t(t,n){return e.call(this,n,t.parts)||this}return cn(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return k.b.toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":k.b.toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=k.b.toString(e.keyCode)},t}(an),un=n("sM1p"),hn=n("EWX2"),dn=n("A9l+"),fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},mn=function(e,t){return function(n,i){t(n,i,e)}},gn=function(){function e(e){this.model=e,this._onDispose=new A.a}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();var vn=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t,n,i,r=this,o=(t=this.editor,n=function(t){return r.findModel(t,e)},i=function(t){return r.findModel(t.getOriginalEditor(),e)||r.findModel(t.getModifiedEditor(),e)},Object(Ft.a)(t)?n(t):i(t));return o?Promise.resolve(new ue.b(new gn(o))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},e}(),_n=function(){function e(){}return e.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},e}(),yn=function(){},bn=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:Vt.a.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:Vt.a.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:Vt.a.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case Vt.a.Error:console.error(t.message);break;case Vt.a.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP},e.NO_OP=new un.b,e}(),Cn=function(){function e(e){this._onWillExecuteCommand=new A.a,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Object(ue.f)((function(){delete t._dynamicCommands[n]}))},e.prototype.executeCommand=function(e){for(var t=[],n=1;n=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},qn=function(e,t){return function(n,i){t(n,i,e)}},Kn=0,Yn=!1;var $n=function(e){function t(t,n,i,r,o,s,a,c,l,u){var h=this;return(n=n||{}).ariaLabel=n.ariaLabel||dn.g.editorViewAccessibleLabel,n.ariaLabel=n.ariaLabel+";"+(kn.j?dn.g.accessibilityHelpMessageIE:dn.g.accessibilityHelpMessage),h=e.call(this,t,n,{},i,r,o,s,c,l,u)||this,a instanceof wn&&(h._standaloneKeybindingService=a),Yn||(Yn=!0,Dn.b(document.body)),h}return Un(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++Kn,r=en.d.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,r),i},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},t.prototype.addAction=function(e){var t=this;if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),ue.a.None;var n=e.id,i=e.label,r=en.d.and(en.d.equals("editorId",this.getId()),en.d.deserialize(e.precondition)),o=e.keybindings,s=en.d.and(r,en.d.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,c=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(t))},u=[],h=this.getId()+":"+n;if(u.push(K.a.registerCommand(h,l)),a){var d={command:{id:h,title:i},when:r,group:a,order:c};u.push(Vn.c.appendMenuItem(7,d))}Array.isArray(o)&&(u=u.concat(o.map((function(e){return t._standaloneKeybindingService.addDynamicKeybinding(h,e,l,s)}))));var f=new Pn.a(h,i,i,r,l,this._contextKeyService);return this._actions[n]=f,u.push(Object(ue.f)((function(){delete t._actions[n]}))),Object(ue.c)(u)},t=Gn([qn(2,Ye.a),qn(3,j.a),qn(4,K.b),qn(5,en.e),qn(6,Bn.a),qn(7,jn.c),qn(8,un.a),qn(9,Wn.a)],t)}(zn.a),Xn=function(e){function t(t,n,i,r,o,s,a,c,l,u,h,d,f){var p=this;On(d,n,!1),"string"==typeof(n=n||{}).theme&&u.setTheme(n.theme);var m,g=n.model;if(delete n.model,(p=e.call(this,t,n,r,o,s,a,c,u,h,f)||this)._contextViewService=l,p._configurationService=d,p._register(i),void 0===g?(m=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),p._ownsModel=!0):(m=g,p._ownsModel=!1),p._attachModel(m),m){var v={oldModelUrl:null,newModelUrl:m.uri};p._onDidChangeModel.fire(v)}return p}return Un(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){On(this._configurationService,t,!1),e.prototype.updateOptions.call(this,t)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},t=Gn([qn(3,Ye.a),qn(4,j.a),qn(5,K.b),qn(6,en.e),qn(7,Bn.a),qn(8,Fn.b),qn(9,Hn.a),qn(10,un.a),qn(11,Wt.a),qn(12,Wn.a)],t)}($n),Zn=function(e){function t(t,n,i,r,o,s,a,c,l,u,h,d){var f=this;return On(d,n,!0),"string"==typeof(n=n||{}).theme&&(n.theme=u.setTheme(n.theme)),(f=e.call(this,t,n,c,o,r,l,u,h)||this)._contextViewService=a,f._configurationService=d,f._register(i),f._contextViewService.setContainer(f._containerDomElement),f}return Un(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){On(this._configurationService,t,!0),e.prototype.updateOptions.call(this,t)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance($n,t,n)},t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)},t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)},t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},t=Gn([qn(3,Ye.a),qn(4,en.e),qn(5,Bn.a),qn(6,Fn.b),qn(7,ae.a),qn(8,j.a),qn(9,Hn.a),qn(10,un.a),qn(11,Wt.a)],t)}(Rn.a),Qn=n("x/UI"),Jn=n("WBhO"),ei=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e}(),ti=n("MrjW"),ni=n("l2gE"),ii="text/plain",ri="application/unknown",oi=[],si=[],ai=[];function ci(e,t){void 0===t&&(t=!1);var n=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(ti.posix.sep)>=0}}(e);oi.push(n),n.userConfigured?ai.push(n):si.push(n),t&&!n.userConfigured&&oi.forEach((function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))}))}function li(e,t){if(!e)return[ri];e=e.toLowerCase();var n=Object(ti.basename)(e),i=ui(e,n,ai);if(i)return[i,ii];var r=ui(e,n,si);if(r)return[r,ii];if(t){var o=function(e){Object(Y.I)(e)&&(e=e.substr(1));if(e.length>0)for(var t=0,n=oi;t0)return i.mime}}return null}(t);if(o)return[o,ii]}return[ri]}function ui(e,t,n){for(var i=null,r=null,o=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){var c=a.filepatternOnPath?e:t;Object(ni.a)(a.filepatternLowercase,c)&&(r=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&Object(Y.k)(t,a.extensionLowercase)&&(o=a)}return i?i.mime:r?r.mime:o?o.mime:null}var hi=n("MqQJ"),di=n("ic2d"),fi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pi=Object.prototype.hasOwnProperty,mi=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.call(this)||this;return i._onDidChange=i._register(new A.a),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=n,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},t&&(i._initializeFromRegistry(),i._register(hi.a.onDidChangeLanguages((function(e){return i._initializeFromRegistry()})))),i}return fi(t,e),t.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=hi.a.getLanguages();this._registerLanguages(e)},t.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n0&&((n=e.mimetypes).push.apply(n,t.mimetypes),r=t.mimetypes[0]),r||(r="text/x-"+i,e.mimetypes.push(r)),Array.isArray(t.extensions))for(var o=0,s=t.extensions;o0){var f=t.firstLine;"^"!==f.charAt(0)&&(f="^"+f);try{var p=new RegExp(f);Y.C(p)||ci({id:i,mime:r,firstline:p},this._warnOnOverwrite)}catch(e){Object(he.e)(e)}}e.aliases.push(i);var m=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(m=0===t.aliases.length?[null]:t.aliases),null!==m)for(var g=0,v=m;g0;if(y&&null===m[0]);else{var b=(y?m[0]:null)||i;!y&&e.name||(e.name=b)}t.configuration&&e.configurationFiles.push(t.configuration)},t.prototype.isRegisteredMode=function(e){return!!pi.call(this._mimeTypesMap,e)||pi.call(this._languages,e)},t.prototype.getModeIdForLanguageNameLowercase=function(e){return pi.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return pi.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return pi.call(t._languages,e)})):[]},t.prototype.getLanguageIdentifier=function(e){if(e===se.b||0===e)return se.a;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return pi.call(this._languages,t)?this._languages[t].identifier:null},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=li(e,t);return this.extractModeIds(n.join(","))},t}(ue.a),gi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vi=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new A.a),i.onDidChange=i._onDidChange.event,i._selector=n,i.languageIdentifier=i._selector(),i._register(t((function(){return i._evaluate()}))),i}return gi(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(ue.a),_i=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new A.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new A.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new mi(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new vi(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new vi(this.onLanguagesMaybeChanged,(function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i)}))},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||se.a;return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||se.a;this._instantiatedModes[e]=new ei(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),yi=n("tX9W"),bi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ci=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},wi=function(e,t){return function(n,i){t(n,i,e)}};function xi(e){return e.toString()}var Si=function(){function e(e,t,n){this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.push(e.onDidChangeLanguage((function(t){return n(e,t)})))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners=Object(ue.d)(this._modelEventListeners),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageIdentifier)})),this.model.setMode(e.languageIdentifier)},e}(),Ei=de.c||de.d?1:2,Mi=function(e){function t(t,n){var i=e.call(this)||this;return i._onModelAdded=i._register(new A.a),i.onModelAdded=i._onModelAdded.event,i._onModelRemoved=i._register(new A.a),i.onModelRemoved=i._onModelRemoved.event,i._onModelModeChanged=i._register(new A.a),i.onModelModeChanged=i._onModelModeChanged.event,i._configurationService=t,i._resourcePropertiesService=n,i._models={},i._modelCreationOptionsByLanguageAndResource=Object.create(null),i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration((function(e){return i._updateModelOptions()})),i._updateModelOptions(),i}return bi(t,e),t._readModelOptions=function(e,t){var n=I.c.tabSize;if(e.editor&&void 0!==e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(n=i),n<1&&(n=1)}var r=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var o=parseInt(e.editor.indentSize,10);isNaN(o)||(r=o),r<1&&(r=1)}var s=I.c.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=Ei,c=e.eol;"\r\n"===c?a=2:"\n"===c&&(a=1);var l=I.c.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var u=I.c.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(u="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var h=I.c.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:s,detectIndentation:u,defaultEOL:a,trimAutoWhitespace:l,largeFileOptimizations:h}},t.prototype.getCreationOptions=function(e,n,i){var r=this._modelCreationOptionsByLanguageAndResource[e+n];if(!r){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);r=t._readModelOptions({editor:o,eol:s},i),this._modelCreationOptionsByLanguageAndResource[e+n]=r}return r},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),i=0,r=n.length;i=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ni=function(e,t){return function(n,i){t(n,i,e)}},Ai=function(e){function t(t,n){void 0===n&&(n=W.q());var i=e.call(this)||this;return i._styleSheet=n,i._decorationOptionProviders=Object.create(null),i._themeService=t,i}return Oi(t,e),t.prototype.registerDecorationType=function(e,t,n){var i=this._decorationOptionProviders[e];if(!i){var r={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};i=n?new ki(this._themeService,r):new Di(this._themeService,r),this._decorationOptionProviders[e]=i}i.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders[e];t&&(t.refCount--,t.refCount<=0&&(delete this._decorationOptionProviders[e],t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders[e];if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},t=Ii([Ni(0,jn.c)],t)}(Ti),ki=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new Ri(3,t,e),this._afterContentRules=new Ri(4,t,e)}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},e}(),Di=function(){function e(e,t){var n=this;this.refCount=0,this._disposables=[];var i=function(i){var r=new Ri(i,t,e);if(n._disposables.push(r),r.hasContent)return r.className};this.className=i(0);var r,o=(r=new Ri(1,t,e),n._disposables.push(r),r.hasContent?{className:r.className,hasLetterSpacing:r.hasLetterSpacing}:null);o&&(this.inlineClassName=o.className,this.inlineClassNameAffectsLetterSpacing=o.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,c=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;void 0===a&&void 0===c||(this.overviewRuler={color:a||c,darkColor:c||a,position:s.overviewRulerLane||re.c.Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables=Object(ue.d)(this._disposables)},e}(),zi={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:url('{0}') center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:url('{0}');",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},Ri=function(){function e(e,t,n){var i=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var r=Pi.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(r=r+" "+Pi.getClassName(this._providerArgs.parentTypeKey,e)),this._className=r,this._unThemedSelector=Pi.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){i._theme=n.getTheme(),i._removeCSS(),i._buildCSS()})):this._themeListener=null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,i=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(i),t=this.getCSSTextForModelDecorationClassName(i.light),n=this.getCSSTextForModelDecorationClassName(i.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(i),t=this.getCSSTextForModelDecorationInlineClassName(i.light),n=this.getCSSTextForModelDecorationInlineClassName(i.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(i),t=this.getCSSTextForModelDecorationGlyphMarginClassName(i.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(i.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(i.before),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.before),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(i.after),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.after),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var r=this._providerArgs.styleSheet.sheet,o=!1;e.length>0&&(r.insertRule(this._unThemedSelector+" {"+e+"}",0),o=!0),t.length>0&&(r.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),o=!0),n.length>0&&(r.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),o=!0),this._hasContent=o},e.prototype._removeCSS=function(){W.F(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Y.p(zi.contentIconPath,D.a.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27"))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Y.p(zi.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&(t.push(Y.p(zi.gutterIconPath,D.a.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),void 0!==e.gutterIconSize&&t.push(Y.p(zi.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Y.p("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,r=0,o=t;rt)return 1;return 0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,i="000000",r="ffffff";e.length>=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(n=o.fontStyle),null!==o.foreground&&(i=o.foreground),null!==o.background&&(r=o.background)}for(var s=new Ui,a=0,c=t;a>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}(),qi=/\b(comment|string|regex|regexp)\b/;var Ki=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),Yi=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var r=this._children.get(t);return void 0!==r?r.match(n):this._mainRule},e.prototype.insert=function(t,n,i,r){if(""!==t){var o,s,a=t.indexOf(".");-1===a?(o=t,s=""):(o=t.substring(0,a),s=t.substring(a+1));var c=this._children.get(o);void 0===c&&(c=new e(this._mainRule.clone()),this._children.set(o,c)),c.insert(s,n,i,r)}else this._mainRule.acceptOverwrite(n,i,r)},e}();var $i,Xi,Zi,Qi=n("kYye"),Ji=n("MD5Z"),er={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:($i={},$i[Ji.o]="#FFFFFE",$i[Ji.v]="#000000",$i[Ji.A]="#E5EBF1",$i[Qi.l]="#D3D3D3",$i[Qi.a]="#939393",$i[Ji.D]="#ADD6FF4D",$i)},tr={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Xi={},Xi[Ji.o]="#1E1E1E",Xi[Ji.v]="#D4D4D4",Xi[Ji.A]="#3A3D41",Xi[Qi.l]="#404040",Xi[Qi.a]="#707070",Xi[Ji.D]="#ADD6FF26",Xi)},nr={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Zi={},Zi[Ji.o]="#000000",Zi[Ji.v]="#FFFFFF",Zi[Qi.l]="#FFFFFF",Zi[Qi.a]="#FFFFFF",Zi)},ir="vs",rr="vs-dark",or="hc-black",sr=di.a.as(Ji.a.ColorContribution),ar=di.a.as(jn.a.ThemingContribution),cr=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=Object.create(null);for(var t in this.themeData.colors)e[t]=Fi.a.fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var n=ur(this.themeData.base);for(var t in n.colors)e[t]||(e[t]=Fi.a.fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors()[e];return n||(!1!==t?this.getDefault(e):void 0)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=sr.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case ir:return"light";case or:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=ur(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Gi.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e}();function lr(e){return e===ir||e===rr||e===or}function ur(e){switch(e){case ir:return er;case rr:return tr;case or:return nr}}function hr(e){var t=ur(e);return new cr(e,t)}var dr=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new A.a,this._onIconThemeChange=new A.a,this._knownThemes=new Map,this._knownThemes.set(ir,hr(ir)),this._knownThemes.set(rr,hr(rr)),this._knownThemes.set(or,hr(or)),this._styleElement=W.q(),this._styleElement.className="monaco-colors",this.setTheme(ir)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!lr(t.base)&&!lr(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new cr(e,t)),lr(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(ir),this._theme===t)return t.id;this._theme=t;var i=[],r={},o={addRule:function(e){r[e]||(i.push(e),r[e]=!0)}};ar.getThemingParticipants().forEach((function(e){return e(t,o,n.environment)}));var s=t.tokenTheme.getColorMap();return o.addRule(function(e){for(var t=[],n=1,i=e.length;n=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},mr=function(e,t){return function(n,i){t(n,i,e)}},gr="data-keybinding-context",vr=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},e.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t},e}(),_r=function(e){function t(){return e.call(this,-1,null)||this}return fr(t,e),t.prototype.setValue=function(e,t){return!1},t.prototype.removeValue=function(e){return!1},t.prototype.getValue=function(e){},t.INSTANCE=new t,t}(vr),yr=function(e){function t(t,n,i){var r=e.call(this,t,null)||this;return r._configurationService=n,r._values=new Map,r._listener=r._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Object(Ut.d)(r._values);r._values.clear(),i.fire(new wr(t))}else{for(var n=[],o=0,s=e.affectedKeys;o1){var i=n.shift();i&&(r.focusItemByElement(i.container),n.push(i)),r.mnemonics.set(t,n)}}}))),de.c&&r._register(Object(W.h)(o,W.d.KEY_DOWN,(function(e){var t=new Ht.a(e);t.equals(14)||t.equals(11)?(r.focusedItem=r.items.length-1,r.focusNext(),W.c.stop(e,!0)):(t.equals(13)||t.equals(12))&&(r.focusedItem=0,r.focusPrevious(),W.c.stop(e,!0))}))),r._register(Object(W.h)(r.domNode,W.d.MOUSE_OUT,(function(e){var t=e.relatedTarget;Object(W.C)(t,r.domNode)||(r.focusedItem=void 0,r.scrollTopHold=r.menuElement.scrollTop,r.updateFocus(),e.stopPropagation())}))),r._register(Object(W.h)(r.domNode,W.d.MOUSE_UP,(function(e){W.c.stop(e,!0)}))),r._register(Object(W.h)(r.actionsList,W.d.MOUSE_OVER,(function(e){var t=e.target;if(t&&Object(W.C)(t,r.actionsList)&&t!==r.actionsList){for(;t.parentElement!==r.actionsList&&null!==t.parentElement;)t=t.parentElement;if(Object(W.A)(t,"action-item")){var n=r.focusedItem;r.scrollTopHold=r.menuElement.scrollTop,r.setFocusedItem(t),n!==r.focusedItem&&r.updateFocus()}}})));var s={parent:r};return r.mnemonics=new Map,r.push(n,{icon:!0,label:!0,isMenu:!0}),r.scrollableElement=r._register(new Or.a(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0})),r.scrollableElement.getDomNode().style.position=null,o.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",r.scrollableElement.onScroll((function(){r._onScroll.fire()}),r,r.menuDisposables),r._register(Object(W.h)(r.menuElement,W.d.SCROLL,(function(e){void 0!==r.scrollTopHold&&(r.menuElement.scrollTop=r.scrollTopHold,r.scrollTopHold=void 0),r.scrollableElement.scanDomNode()}))),t.appendChild(r.scrollableElement.getDomNode()),r.scrollableElement.scanDomNode(),r.items.filter((function(e){return!(e instanceof Pr)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),r}return Ir(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:null,i=e.backgroundColor?""+e.backgroundColor:null,r=e.borderColor?"2px solid "+e.borderColor:null,o=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=r,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=o,this.items&&this.items.forEach((function(t){(t instanceof zr||t instanceof Pr)&&t.style(e)}))},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t