@nocobase/plugin-multi-app-manager 0.17.0-alpha.4 → 0.17.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){var b={2342:function(b){"use strict";function Denque(b,z){var z=z||{};this._capacity=z.capacity;this._head=0;this._tail=0;if(Array.isArray(b)){this._fromArray(b)}else{this._capacityMask=3;this._list=new Array(4)}}Denque.prototype.peekAt=function peekAt(b){var z=b;if(z!==(z|0)){return void 0}var p=this.size();if(z>=p||z<-p)return undefined;if(z<0)z+=p;z=this._head+z&this._capacityMask;return this._list[z]};Denque.prototype.get=function get(b){return this.peekAt(b)};Denque.prototype.peek=function peek(){if(this._head===this._tail)return undefined;return this._list[this._head]};Denque.prototype.peekFront=function peekFront(){return this.peek()};Denque.prototype.peekBack=function peekBack(){return this.peekAt(-1)};Object.defineProperty(Denque.prototype,"length",{get:function length(){return this.size()}});Denque.prototype.size=function size(){if(this._head===this._tail)return 0;if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)};Denque.prototype.unshift=function unshift(b){if(arguments.length===0)return this.size();var z=this._list.length;this._head=this._head-1+z&this._capacityMask;this._list[this._head]=b;if(this._tail===this._head)this._growArray();if(this._capacity&&this.size()>this._capacity)this.pop();if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)};Denque.prototype.shift=function shift(){var b=this._head;if(b===this._tail)return undefined;var z=this._list[b];this._list[b]=undefined;this._head=b+1&this._capacityMask;if(b<2&&this._tail>1e4&&this._tail<=this._list.length>>>2)this._shrinkArray();return z};Denque.prototype.push=function push(b){if(arguments.length===0)return this.size();var z=this._tail;this._list[z]=b;this._tail=z+1&this._capacityMask;if(this._tail===this._head){this._growArray()}if(this._capacity&&this.size()>this._capacity){this.shift()}if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)};Denque.prototype.pop=function pop(){var b=this._tail;if(b===this._head)return undefined;var z=this._list.length;this._tail=b-1+z&this._capacityMask;var p=this._list[this._tail];this._list[this._tail]=undefined;if(this._head<2&&b>1e4&&b<=z>>>2)this._shrinkArray();return p};Denque.prototype.removeOne=function removeOne(b){var z=b;if(z!==(z|0)){return void 0}if(this._head===this._tail)return void 0;var p=this.size();var O=this._list.length;if(z>=p||z<-p)return void 0;if(z<0)z+=p;z=this._head+z&this._capacityMask;var o=this._list[z];var e;if(b<p/2){for(e=b;e>0;e--){this._list[z]=this._list[z=z-1+O&this._capacityMask]}this._list[z]=void 0;this._head=this._head+1+O&this._capacityMask}else{for(e=p-1-b;e>0;e--){this._list[z]=this._list[z=z+1+O&this._capacityMask]}this._list[z]=void 0;this._tail=this._tail-1+O&this._capacityMask}return o};Denque.prototype.remove=function remove(b,z){var p=b;var O;var o=z;if(p!==(p|0)){return void 0}if(this._head===this._tail)return void 0;var e=this.size();var c=this._list.length;if(p>=e||p<-e||z<1)return void 0;if(p<0)p+=e;if(z===1||!z){O=new Array(1);O[0]=this.removeOne(p);return O}if(p===0&&p+z>=e){O=this.toArray();this.clear();return O}if(p+z>e)z=e-p;var t;O=new Array(z);for(t=0;t<z;t++){O[t]=this._list[this._head+p+t&this._capacityMask]}p=this._head+p&this._capacityMask;if(b+z===e){this._tail=this._tail-z+c&this._capacityMask;for(t=z;t>0;t--){this._list[p=p+1+c&this._capacityMask]=void 0}return O}if(b===0){this._head=this._head+z+c&this._capacityMask;for(t=z-1;t>0;t--){this._list[p=p+1+c&this._capacityMask]=void 0}return O}if(p<e/2){this._head=this._head+b+z+c&this._capacityMask;for(t=b;t>0;t--){this.unshift(this._list[p=p-1+c&this._capacityMask])}p=this._head-1+c&this._capacityMask;while(o>0){this._list[p=p-1+c&this._capacityMask]=void 0;o--}if(b<0)this._tail=p}else{this._tail=p;p=p+z+c&this._capacityMask;for(t=e-(z+b);t>0;t--){this.push(this._list[p++])}p=this._tail;while(o>0){this._list[p=p+1+c&this._capacityMask]=void 0;o--}}if(this._head<2&&this._tail>1e4&&this._tail<=c>>>2)this._shrinkArray();return O};Denque.prototype.splice=function splice(b,z){var p=b;if(p!==(p|0)){return void 0}var O=this.size();if(p<0)p+=O;if(p>O)return void 0;if(arguments.length>2){var o;var e;var c;var t=arguments.length;var i=this._list.length;var n=2;if(!O||p<O/2){e=new Array(p);for(o=0;o<p;o++){e[o]=this._list[this._head+o&this._capacityMask]}if(z===0){c=[];if(p>0){this._head=this._head+p+i&this._capacityMask}}else{c=this.remove(p,z);this._head=this._head+p+i&this._capacityMask}while(t>n){this.unshift(arguments[--t])}for(o=p;o>0;o--){this.unshift(e[o-1])}}else{e=new Array(O-(p+z));var s=e.length;for(o=0;o<s;o++){e[o]=this._list[this._head+p+z+o&this._capacityMask]}if(z===0){c=[];if(p!=O){this._tail=this._head+p+i&this._capacityMask}}else{c=this.remove(p,z);this._tail=this._tail-s+i&this._capacityMask}while(n<t){this.push(arguments[n++])}for(o=0;o<s;o++){this.push(e[o])}}return c}else{return this.remove(p,z)}};Denque.prototype.clear=function clear(){this._list=new Array(this._list.length);this._head=0;this._tail=0};Denque.prototype.isEmpty=function isEmpty(){return this._head===this._tail};Denque.prototype.toArray=function toArray(){return this._copyArray(false)};Denque.prototype._fromArray=function _fromArray(b){var z=b.length;var p=this._nextPowerOf2(z);this._list=new Array(p);this._capacityMask=p-1;this._tail=z;for(var O=0;O<z;O++)this._list[O]=b[O]};Denque.prototype._copyArray=function _copyArray(b,z){var p=this._list;var O=p.length;var o=this.length;z=z|o;if(z==o&&this._head<this._tail){return this._list.slice(this._head,this._tail)}var e=new Array(z);var c=0;var t;if(b||this._head>this._tail){for(t=this._head;t<O;t++)e[c++]=p[t];for(t=0;t<this._tail;t++)e[c++]=p[t]}else{for(t=this._head;t<this._tail;t++)e[c++]=p[t]}return e};Denque.prototype._growArray=function _growArray(){if(this._head!=0){var b=this._copyArray(true,this._list.length<<1);this._tail=this._list.length;this._head=0;this._list=b}else{this._tail=this._list.length;this._list.length<<=1}this._capacityMask=this._capacityMask<<1|1};Denque.prototype._shrinkArray=function _shrinkArray(){this._list.length>>>=1;this._capacityMask>>>=1};Denque.prototype._nextPowerOf2=function _nextPowerOf2(b){var z=Math.log(b)/Math.log(2);var p=1<<z+1;return Math.max(p,4)};b.exports=Denque},89:function(b,z,p){"use strict";const O=p(5436);const o=p(1450);const e=p(2491);const c=p(5157);class BatchBulk extends O{constructor(b,z,p,O,o,e){super(b,z,p,O,o,e);this.onPacketReceive=this.readPrepareResultPacket}start(b,z,p){this.sending=true;this.info=p;this.values=this.initialValues;if(this.opts.timeout){const b=o.createError("Cannot use timeout for Batch statement",this.sql,false,p,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,p);return}let O=this.sql;if(this.opts.namedPlaceholders){const b=e.searchPlaceholder(this.sql,p,this.initialValues,this.displaySql.bind(this));O=b.sql;this.values=b.values}if(!this.validateParameters(p)){this.sending=false;return}this.out=b;this.packet=new c(this.opts,b,this.values[0]);b.startPacket(this);b.writeInt8(22);b.writeString(O);b.flushBuffer(true);if(this.opts.pipelining){b.startPacket(this);this.valueIdx=0;this.sendQueries()}else{this.out=b}}sendQueries(){let b=false;while(!b&&this.sending&&this.valueIdx<this.values.length){this.valueRow=this.values[this.valueIdx++];const z=this.valueRow.length;for(let p=0;p<z;p++){const z=this.valueRow[p];if(z===null){b=this.packet.writeInt8(1)||b;continue}b=this.writeParam(this.packet,z,this.opts,this.info)||b}const p=this.valueIdx===this.values.length;b=this.packet.mark(p,p?null:this.values[this.valueIdx])||b}if(this.valueIdx<this.values.length&&!this.packet.haveErrorResponse){setImmediate(this.sendQueries.bind(this))}else{if(this.sending&&this.valueIdx===this.values.length)this.emit("send_end");this.sending=false}}displaySql(){if(this.opts&&this.initialValues){if(this.sql.length>this.opts.debugLen){return this.sql.substring(0,this.opts.debugLen)+"..."}let b=this.sql+" - parameters:";b+="[";for(let z=0;z<this.initialValues.length;z++){if(z!==0)b+=",";let p=this.initialValues[z];b=this.logParameters(b,p);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}b+="]";return b}return this.sql+" - parameters:[]"}success(b){this.packet.waitingResponseNo--;if(!this.opts.pipelining&&this.packet.statementId===-1){this.packet.statementId=this.statementId;this.out.startPacket(this);this.valueIdx=0;this.sendQueries();this._responseIndex++;this.onPacketReceive=this.readResponsePacket;return}if(!this.sending&&this.packet.waitingResponseNo===0){if(!this.firstError||!this.firstError.fatal){this.sequenceNo=-1;this.compressSequenceNo=-1;this.out.startPacket(this);this.out.writeInt8(25);this.out.writeInt32(this.statementId);this.out.flushBuffer(true)}this.sending=false;this.emit("send_end");if(this.packet.haveErrorResponse){this.packet=null;this.resolve=null;this.onPacketReceive=null;this._columns=null;this._rows=null;process.nextTick(this.reject,this.firstError);this.reject=null;this.emit("end",this.firstError)}else{this.packet=null;let b=0;this._rows.forEach((z=>{b+=z.affectedRows}));const z={affectedRows:b,insertId:this._rows[0].insertId,warningStatus:this._rows[this._rows.length-1].warningStatus};this.successEnd(z);this._columns=null;this._rows=null}return}if(!this.packet.haveErrorResponse){this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}throwError(b,z){this.packet.waitingResponseNo--;this.sending=false;if(this.packet&&!this.packet.haveErrorResponse){if(b.fatal){this.packet.waitingResponseNo=0}if(this.stack){b=o.createError(b.message,this.sql,b.fatal,z,b.sqlState,b.errno,this.stack,false)}this.firstError=b;this.packet.endedWithError()}if(!this.sending&&this.packet.waitingResponseNo===0){this.resolve=null;if(!b.fatal&&this.statementId){this.sequenceNo=-1;this.compressSequenceNo=-1;this.out.startPacket(this);this.out.writeInt8(25);this.out.writeInt32(this.statementId);this.out.flushBuffer(true)}this.emit("send_end");process.nextTick(this.reject,this.firstError);this.reject=null;this.onPacketReceive=null;this.emit("end",this.firstError)}else{this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}validateParameters(b){for(let z=0;z<this.values.length;z++){if(!Array.isArray(this.values[z]))this.values[z]=[this.values[z]];for(let p=0;p<this.values[z].length;p++){if(this.values[z][p]===undefined){this.emit("send_end");this.throwNewError("Parameter at position "+(p+1)+" is undefined for values "+z+"\n"+this.displaySql(),false,b,"HY000",o.ER_PARAMETER_UNDEFINED);return false}}}return true}}b.exports=BatchBulk},5891:function(b,z,p){"use strict";const O=p(8662);const o=p(1450);const e=p(2491);const c=p(9240);const t=39;class BatchRewrite extends O{constructor(b,z,p,O,o,e){super(b,z,p,O,o,e)}start(b,z,p){this.sending=true;this.info=p;if(this.opts.timeout){const b=o.createError("Cannot use timeout for Batch statement",this.sql,false,p,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,p);return}if(this.initialValues.length===0)this.initialValues=[[]];if(this.opts.namedPlaceholders){this.parseResults=e.splitRewritableNamedParameterQuery(this.sql,this.initialValues);this.values=this.parseResults.values}else{this.parseResults=e.splitRewritableQuery(this.sql);this.values=this.initialValues;if(!this.validateParameters(p)){this.sending=false;return}}b.startPacket(this);this.packet=new c(this.opts.maxAllowedPacket,b,this.parseResults.partList[0],this.parseResults.partList[this.parseResults.partList.length-1]);this.onPacketReceive=this.readResponsePacket;this.valueIdx=0;this.sendQueries()}sendQueries(){let b=false;while(!b&&this.sending&&this.valueIdx<this.values.length){this.valueRow=this.values[this.valueIdx++];const z=this.parseResults.partList.length-3;for(let p=0;p<z;p++){const z=this.valueRow[p];b=this.packet.writeString(this.parseResults.partList[p+1])||b;if(z===null){b=this.packet.writeStringAscii("NULL")||b;continue}if(typeof z==="object"&&typeof z.pipe==="function"&&typeof z.read==="function"){this.registerStreamSendEvent(this.packet,this.info);this.currentParam=p;this.packet.writeInt8(t);z.on("data",function(b){this.packet.writeBufferEscape(b)}.bind(this));z.on("end",function(){this.packet.writeInt8(t);this.currentParam++;this.paramWritten()}.bind(this));return}else{b=this.writeParam(this.packet,z,this.opts,this.info)||b}}this.packet.writeString(this.parseResults.partList[this.parseResults.partList.length-2]);this.packet.mark(!this.parseResults.reWritable||this.valueIdx===this.values.length)}if(this.valueIdx<this.values.length&&!this.packet.haveErrorResponse){setImmediate(this.sendQueries.bind(this))}else{if(this.sending&&this.valueIdx===this.values.length)this.emit("send_end");this.sending=false}}displaySql(){if(this.opts&&this.initialValues){if(this.sql.length>this.opts.debugLen){return"sql: "+this.sql.substring(0,this.opts.debugLen)+"..."}let b="sql: "+this.sql+" - parameters:";b+="[";for(let z=0;z<this.initialValues.length;z++){if(z!==0)b+=",";let p=this.initialValues[z];b=this.logParameters(b,p);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}b+="]";return b}return"sql: "+this.sql+" - parameters:[]"}success(b){this.packet.waitingResponseNo--;if(this.packet.haveErrorResponse){if(!this.sending&&this.packet.waitingResponseNo===0){this.packet=null;this.onPacketReceive=null;this.resolve=null;this._columns=null;this._rows=null;process.nextTick(this.reject,this.firstError);this.reject=null;this.emit("end",this.firstError)}}else{if(!this.sending&&this.packet.waitingResponseNo===0){if(this.parseResults.reWritable){this.packet=null;let b=0;this._rows.forEach((z=>{b+=z.affectedRows}));const z={affectedRows:b,insertId:this._rows[0].insertId,warningStatus:this._rows[this._rows.length-1].warningStatus};this.successEnd(z);return}else{this.successEnd(this._rows)}this._columns=null;this._rows=null;return}this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}throwError(b,z){this.packet.waitingResponseNo--;this.sending=false;if(this.packet&&!this.packet.haveErrorResponse){if(b.fatal){this.packet.waitingResponseNo=0}if(this.stack){b=o.createError(b.message,this.sql,b.fatal,z,b.sqlState,b.errno,this.stack,false)}this.firstError=b;this.packet.endedWithError()}if(!this.sending&&this.packet.waitingResponseNo===0){this.packet=null;this.onPacketReceive=null;this.resolve=null;process.nextTick(this.reject,this.firstError);this.reject=null;this.emit("end",this.firstError)}else{this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}validateParameters(b){for(let z=0;z<this.values.length;z++){let p=this.values[z];if(!Array.isArray(p)){p=[p];this.values[z]=p}if(this.parseResults.partList.length-3>p.length){this.emit("send_end");this.throwNewError("Parameter at position "+p.length+" is not set for values "+z+"\n"+this.displaySql(),false,b,"HY000",o.ER_MISSING_PARAMETER);return false}for(let O=0;O<this.parseResults.partList.length-3;O++){if(p[O]===undefined){this.emit("send_end");this.throwNewError("Parameter at position "+(O+1)+" is undefined for values "+z+"\n"+this.displaySql(),false,b,"HY000",o.ER_PARAMETER_UNDEFINED);return false}}}return true}registerStreamSendEvent(b,z){this.paramWritten=function(){let p=false;while(!p){if(this.packet.haveErrorResponse){this.sending=false;this.emit("send_end");return}if(this.currentParam===this.valueRow.length){p=b.writeString(this.parseResults.partList[this.parseResults.partList.length-2])||p;p=b.mark(!this.parseResults.reWritable||this.valueIdx===this.values.length)||p;if(this.valueIdx<this.values.length){this.valueRow=this.values[this.valueIdx++];this.currentParam=0}else{this.sending=false;this.emit("send_end");return}}p=b.writeString(this.parseResults.partList[this.currentParam+1])||p;const O=this.valueRow[this.currentParam];if(O===null){p=b.writeStringAscii("NULL")||p;this.currentParam++;continue}if(typeof O==="object"&&typeof O.pipe==="function"&&typeof O.read==="function"){p=b.writeInt8(t)||p;O.once("end",function(){b.writeInt8(t);this.currentParam++;this.paramWritten()}.bind(this));O.on("data",(function(z){b.writeBufferEscape(z)}));return}p=this.writeParam(b,O,this.opts,z)||p;this.currentParam++}if(this.sending)setImmediate(this.paramWritten.bind(this))}.bind(this)}}b.exports=BatchRewrite},6044:function(b,z,p){"use strict";const O=p(1401);const o=p(9248);const e=p(4980);const c=p(1956);const t=p(2055);const i=p(5427);class ChangeUser extends i{constructor(b,z,p,O){super(z,p,(()=>{}),O);this.opts=b}start(b,z,O){this.configAssign(z,this.opts);let t;const i=Array.isArray(this.opts.password)?this.opts.password[0]:this.opts.password;switch(O.defaultPluginName){case"mysql_native_password":case"":t=c.encryptPassword(i,O.seed,"sha1");break;case"client_ed25519":t=e.encryptPassword(i,O.seed);break;default:t=Buffer.alloc(0);break}b.startPacket(this);b.writeInt8(17);b.writeString(this.opts.user||"");b.writeInt8(0);if(O.serverCapabilities&o.SECURE_CONNECTION){b.writeInt8(t.length);b.writeBuffer(t,0,t.length)}else{b.writeBuffer(t,0,t.length);b.writeInt8(0)}if(O.clientCapabilities&o.CONNECT_WITH_DB){b.writeString(this.opts.database);b.writeInt8(0);O.database=this.opts.database}b.writeInt16(this.opts.collation.index);if(O.clientCapabilities&o.PLUGIN_AUTH){b.writeString(O.defaultPluginName);b.writeInt8(0)}if(O.clientCapabilities&o.CONNECT_ATTRS){b.writeInt8(252);let O=b.pos;b.writeInt16(0);const o=this.opts.collation.charset;writeParam(b,"_client_name",o);writeParam(b,"MariaDB connector/Node",o);let e=p(8850);writeParam(b,"_client_version",o);writeParam(b,e.version,o);writeParam(b,"_node_version",o);writeParam(b,process.versions.node,o);if(z.connectAttributes!==true){let z=Object.keys(this.opts.connectAttributes);for(let p=0;p<z.length;++p){writeParam(b,z[p],o);writeParam(b,this.opts.connectAttributes[z[p]],o)}}b.writeInt16AtPos(O)}b.flushBuffer(true);this.onPacketReceive=this.handshakeResult}configAssign(b,z){if(!z){this.opts=b;return}this.opts.database=z.database?z.database:b.database;this.opts.connectAttributes=z.connectAttributes?z.connectAttributes:b.connectAttributes;if(z.charset&&typeof z.charset==="string"){this.opts.collation=t.fromCharset(z.charset.toLowerCase());if(this.opts.collation===undefined){this.opts.collation=t.fromName(z.charset.toUpperCase());if(this.opts.collation!==undefined){console.log("warning: please use option 'collation' "+"in replacement of 'charset' when using a collation name ('"+z.charset+"')\n"+"(collation looks like 'UTF8MB4_UNICODE_CI', charset like 'utf8').")}}if(this.opts.collation===undefined)throw new RangeError("Unknown charset '"+z.charset+"'")}else if(z.collation&&typeof z.collation==="string"){const b=z.collation;this.opts.collation=t.fromName(b.toUpperCase());if(this.opts.collation===undefined)throw new RangeError("Unknown collation '"+b+"'")}else{this.opts.collation=t.fromIndex(z.charsetNumber)||b.collation}b.password=z.password}}function writeParam(b,z,p){let o=Buffer.isEncoding(p)?Buffer.from(z,p):O.encode(z,p);b.writeLengthCoded(o.length);b.writeBuffer(o,0,o.length)}b.exports=ChangeUser},536:function(b,z,p){"use strict";const O=p(7657);class OkPacket{constructor(b,z,p){this.affectedRows=b;this.insertId=z;this.warningStatus=p}}b.exports=OkPacket},4542:function(b,z,p){"use strict";const O=p(2055);const o=p(3290);const e=p(9248);class ColumnDef{constructor(b,z){this._parse=new StringParser(b);if(z.serverCapabilities&e.MARIADB_CLIENT_EXTENDED_TYPE_INFO){const z=b.subPacketLengthEncoded();while(z.remaining()){switch(z.readUInt8()){case 0:this.dataTypeName=z.readAsciiStringLengthEncoded();break;case 1:this.dataTypeFormat=z.readAsciiStringLengthEncoded();break;default:const b=z.readUnsignedLength();if(b){z.skip(b)}break}}}b.skip(1);this.collation=O.fromIndex(b.readUInt16());this.columnLength=b.readUInt32();this.columnType=b.readUInt8();this.flags=b.readUInt16();this.scale=b.readUInt8();this.type=o.TYPES[this.columnType]}db(){return this._parse.packet.readString(this._parse.dbOffset,this._parse.dbLength)}schema(){return this._parse.packet.readString(this._parse.dbOffset,this._parse.dbLength)}table(){return this._parse.packet.readString(this._parse.tableOffset,this._parse.tableLength)}orgTable(){return this._parse.packet.readString(this._parse.orgTableOffset,this._parse.orgTableLength)}name(){return this._parse.packet.readString(this._parse.nameOffset,this._parse.nameLength)}orgName(){return this._parse.packet.readString(this._parse.orgNameOffset,this._parse.orgNameLength)}}class StringParser{constructor(b){b.skip(4);this.dbLength=b.readUnsignedLength();this.dbOffset=b.pos;b.skip(this.dbLength);this.tableLength=b.readUnsignedLength();this.tableOffset=b.pos;b.skip(this.tableLength);this.orgTableLength=b.readUnsignedLength();this.orgTableOffset=b.pos;b.skip(this.orgTableLength);this.nameLength=b.readUnsignedLength();this.nameOffset=b.pos;b.skip(this.nameLength);this.orgNameLength=b.readUnsignedLength();this.orgNameOffset=b.pos;b.skip(this.orgNameLength);this.packet=b}}b.exports=ColumnDef},7657:function(b,z,p){"use strict";const O=p(2361);const o=p(1450);const e=p(386);const c=p(7311);const t=p(2055);const i=p(536);class Command extends O{constructor(b,z){super();this.sequenceNo=-1;this.compressSequenceNo=-1;this.resolve=b;this.reject=z;this.sending=false}displaySql(){return null}throwUnexpectedError(b,z,p,O,e){if(this.reject){process.nextTick(this.reject,o.createError(b,this.displaySql(),z,p,O,e,this.stack,false));this.resolve=null;this.reject=null}}throwNewError(b,z,p,O,e){this.onPacketReceive=null;if(this.reject){process.nextTick(this.reject,o.createError(b,this.displaySql(),z,p,O,e,this.stack,false));this.resolve=null;this.reject=null}this.emit("end")}throwError(b,z){this.onPacketReceive=null;if(this.reject){if(this.stack){b=o.createError(b.message,b.sql,b.fatal,z,b.sqlState,b.errno,this.stack,false)}this.resolve=null;process.nextTick(this.reject,b);this.reject=null}this.emit("end",b)}successEnd(b){this.onPacketReceive=null;if(this.resolve){this.reject=null;process.nextTick(this.resolve,b);this.resolve=null}this.emit("end")}parseOkPacket(b,z,p,O){b.skip(1);const o=b.readUnsignedLength();const n=p.supportBigInt?b.readSignedLengthBigInt():b.readSignedLength();O.status=b.readUInt16();const s=new i(o,n,b.readUInt16());if(O.status&e.SESSION_STATE_CHANGED){b.skipLengthCodedNumber();while(b.remaining()){const z=b.subPacketLengthEncoded();while(z.remaining()){const b=z.readUInt8();switch(b){case c.SESSION_TRACK_SYSTEM_VARIABLES:const b=z.subPacketLengthEncoded();const o=b.readStringLength();const e=b.readStringLength();switch(o){case"character_set_client":p.collation=t.fromCharset(e);if(p.collation===undefined){this.throwError(new Error("unknown charset : '"+e+"'"),O);return}p.emit("collation",p.collation);break;default:}break;case c.SESSION_TRACK_SCHEMA:const i=z.subPacketLengthEncoded();O.database=i.readStringLength();break}}}}return s}}b.exports=Command},5436:function(b,z,p){"use strict";const O=p(9);class CommonBinary extends O{constructor(b,z,p,O,o,e){super(b,z);this.configAssign(O,p);this.sql=o;this.initialValues=e}writeParam(b,z,p,O){let o=false;switch(typeof z){case"boolean":o=b.writeInt8(0);o=b.writeInt8(z?1:0)||o;break;case"bigint":case"number":o=b.writeInt8(0);o=b.writeLengthStringAscii(""+z)||o;break;case"object":if(Object.prototype.toString.call(z)==="[object Date]"){o=b.writeInt8(0);o=b.writeBinaryDate(z,p)||o}else if(Buffer.isBuffer(z)){o=b.writeInt8(0);o=b.writeLengthEncodedBuffer(z)||o}else if(typeof z.toSqlString==="function"){o=b.writeInt8(0);o=b.writeLengthEncodedString(String(z.toSqlString()))||o}else{if(z.type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(z.type)){const p=this.getBufferFromGeometryValue(z);if(p){o=b.writeInt8(0);o=b.writeLengthEncodedBuffer(Buffer.concat([Buffer.from([0,0,0,0]),p]))||o}else{o=b.writeInt8(1)}}else{o=b.writeInt8(0);o=b.writeLengthEncodedString(JSON.stringify(z))||o}}break;default:o=b.writeInt8(0);o=b.writeLengthEncodedString(z)||o}return o}getBufferFromGeometryValue(b,z){let p;let O;let o;if(!z){switch(b.type){case"Point":p=Buffer.allocUnsafe(21);p.writeInt8(1,0);p.writeInt32LE(1,1);if(b.coordinates&&Array.isArray(b.coordinates)&&b.coordinates.length>=2&&!isNaN(b.coordinates[0])&&!isNaN(b.coordinates[1])){p.writeDoubleLE(b.coordinates[0],5);p.writeDoubleLE(b.coordinates[1],13);return p}else{return null}case"LineString":if(b.coordinates&&Array.isArray(b.coordinates)){const z=b.coordinates.length;p=Buffer.allocUnsafe(9+16*z);p.writeInt8(1,0);p.writeInt32LE(2,1);p.writeInt32LE(z,5);for(let O=0;O<z;O++){if(b.coordinates[O]&&Array.isArray(b.coordinates[O])&&b.coordinates[O].length>=2&&!isNaN(b.coordinates[O][0])&&!isNaN(b.coordinates[O][1])){p.writeDoubleLE(b.coordinates[O][0],9+16*O);p.writeDoubleLE(b.coordinates[O][1],17+16*O)}else{return null}}return p}else{return null}case"Polygon":if(b.coordinates&&Array.isArray(b.coordinates)){const z=b.coordinates.length;let o=0;for(let p=0;p<z;p++){o+=4+16*b.coordinates[p].length}p=Buffer.allocUnsafe(9+o);p.writeInt8(1,0);p.writeInt32LE(3,1);p.writeInt32LE(z,5);O=9;for(let o=0;o<z;o++){const z=b.coordinates[o];if(z&&Array.isArray(z)){p.writeInt32LE(z.length,O);O+=4;for(let b=0;b<z.length;b++){if(z[b]&&Array.isArray(z[b])&&z[b].length>=2&&!isNaN(z[b][0])&&!isNaN(z[b][1])){p.writeDoubleLE(z[b][0],O);p.writeDoubleLE(z[b][1],O+8);O+=16}else{return null}}}}return p}else{return null}case"MultiPoint":o="MultiPoint";p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(4,1);break;case"MultiLineString":o="MultiLineString";p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(5,1);break;case"MultiPolygon":o="MultiPolygon";p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(6,1);break;case"GeometryCollection":p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(7,1);if(b.geometries&&Array.isArray(b.geometries)){const z=b.geometries.length;const O=[p];for(let p=0;p<z;p++){const z=this.getBufferFromGeometryValue(b.geometries[p]);if(z==null)break;O.push(z)}p.writeInt32LE(O.length-1,5);return Buffer.concat(O)}else{p.writeInt32LE(0,5);return p}default:return null}if(b.coordinates&&Array.isArray(b.coordinates)){const z=b.coordinates.length;const O=[p];for(let p=0;p<z;p++){const z=this.getBufferFromGeometryValue(b.coordinates[p],o);if(z==null)break;O.push(z)}p.writeInt32LE(O.length-1,5);return Buffer.concat(O)}else{p.writeInt32LE(0,5);return p}}else{switch(z){case"MultiPoint":if(b&&Array.isArray(b)&&b.length>=2&&!isNaN(b[0])&&!isNaN(b[1])){p=Buffer.allocUnsafe(21);p.writeInt8(1,0);p.writeInt32LE(1,1);p.writeDoubleLE(b[0],5);p.writeDoubleLE(b[1],13);return p}return null;case"MultiLineString":if(b&&Array.isArray(b)){const z=b.length;p=Buffer.allocUnsafe(9+16*z);p.writeInt8(1,0);p.writeInt32LE(2,1);p.writeInt32LE(z,5);for(let O=0;O<z;O++){if(b[O]&&Array.isArray(b[O])&&b[O].length>=2&&!isNaN(b[O][0])&&!isNaN(b[O][1])){p.writeDoubleLE(b[O][0],9+16*O);p.writeDoubleLE(b[O][1],17+16*O)}else{return null}}return p}return null;case"MultiPolygon":if(b&&Array.isArray(b)){const z=b.length;let o=0;for(let p=0;p<z;p++){o+=4+16*b[p].length}p=Buffer.allocUnsafe(9+o);p.writeInt8(1,0);p.writeInt32LE(3,1);p.writeInt32LE(z,5);O=9;for(let o=0;o<z;o++){const z=b[o];if(z&&Array.isArray(z)){p.writeInt32LE(z.length,O);O+=4;for(let b=0;b<z.length;b++){if(z[b]&&Array.isArray(z[b])&&z[b].length>=2&&!isNaN(z[b][0])&&!isNaN(z[b][1])){p.writeDoubleLE(z[b][0],O);p.writeDoubleLE(z[b][1],O+8);O+=16}else{return null}}}}return p}return null}return null}}parseRow(b,z,p){throw new Error("not implemented")}}b.exports=CommonBinary},8662:function(b,z,p){"use strict";const O=p(9);const o=p(8745);const e=p(3290);const c=p(5078);const t=p(7936);const i=39;class CommonText extends O{constructor(b,z,p,O,o,e){super(b,z);this.configAssign(O,p);this.sql=o;this.initialValues=e;this.getDateQuote=this.opts.tz?this.opts.tz==="Etc/UTC"?CommonText.getUtcDate:CommonText.getTimezoneDate:CommonText.getLocalDate}writeParam(b,z,p,O){switch(typeof z){case"boolean":b.writeStringAscii(z?"true":"false");break;case"bigint":case"number":b.writeStringAscii(""+z);break;case"object":if(z===null){b.writeStringAscii("NULL")}else if(Object.prototype.toString.call(z)==="[object Date]"){b.writeStringAscii(this.getDateQuote(z,p))}else if(Buffer.isBuffer(z)){b.writeStringAscii("_BINARY '");b.writeBufferEscape(z);b.writeInt8(i)}else if(typeof z.toSqlString==="function"){b.writeStringEscapeQuote(String(z.toSqlString()))}else if(c.isLong(z)){b.writeStringAscii(z.toString())}else if(Array.isArray(z)){if(p.arrayParenthesis){b.writeStringAscii("(")}for(let o=0;o<z.length;o++){if(o!==0)b.writeStringAscii(",");this.writeParam(b,z[o],p,O)}if(p.arrayParenthesis){b.writeStringAscii(")")}}else{if(z.type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(z.type)){let p=O.isMariaDB()&&O.hasMinVersion(10,1,4)||!O.isMariaDB()&&O.hasMinVersion(5,7,6)?"ST_":"";switch(z.type){case"Point":b.writeStringAscii(p+"PointFromText('POINT("+CommonText.geoPointToString(z.coordinates)+")')");break;case"LineString":b.writeStringAscii(p+"LineFromText('LINESTRING("+CommonText.geoArrayPointToString(z.coordinates)+")')");break;case"Polygon":b.writeStringAscii(p+"PolygonFromText('POLYGON("+CommonText.geoMultiArrayPointToString(z.coordinates)+")')");break;case"MultiPoint":b.writeStringAscii(p+"MULTIPOINTFROMTEXT('MULTIPOINT("+CommonText.geoArrayPointToString(z.coordinates)+")')");break;case"MultiLineString":b.writeStringAscii(p+"MLineFromText('MULTILINESTRING("+CommonText.geoMultiArrayPointToString(z.coordinates)+")')");break;case"MultiPolygon":b.writeStringAscii(p+"MPolyFromText('MULTIPOLYGON("+CommonText.geoMultiPolygonToString(z.coordinates)+")')");break;case"GeometryCollection":b.writeStringAscii(p+"GeomCollFromText('GEOMETRYCOLLECTION("+CommonText.geometricCollectionToString(z.geometries)+")')");break}}else{if(p.permitSetMultiParamEntries){let o=true;for(let e in z){const c=z[e];if(typeof c==="function")continue;if(o){o=false}else{b.writeStringAscii(",")}b.writeString("`"+e+"`");b.writeStringAscii("=");this.writeParam(b,c,p,O)}if(o)b.writeStringEscapeQuote(JSON.stringify(z))}else{b.writeStringEscapeQuote(JSON.stringify(z))}}}break;default:b.writeStringEscapeQuote(z)}}static geometricCollectionToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=p!==0?",":"";switch(b[p].type){case"Point":z+="POINT("+CommonText.geoPointToString(b[p].coordinates)+")";break;case"LineString":z+="LINESTRING("+CommonText.geoArrayPointToString(b[p].coordinates)+")";break;case"Polygon":z+="POLYGON("+CommonText.geoMultiArrayPointToString(b[p].coordinates)+")";break;case"MultiPoint":z+="MULTIPOINT("+CommonText.geoArrayPointToString(b[p].coordinates)+")";break;case"MultiLineString":z+="MULTILINESTRING("+CommonText.geoMultiArrayPointToString(b[p].coordinates)+")";break;case"MultiPolygon":z+="MULTIPOLYGON("+CommonText.geoMultiPolygonToString(b[p].coordinates)+")";break}}return z}static geoMultiPolygonToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=(p!==0?",(":"(")+CommonText.geoMultiArrayPointToString(b[p])+")"}return z}static geoMultiArrayPointToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=(p!==0?",(":"(")+CommonText.geoArrayPointToString(b[p])+")"}return z}static geoArrayPointToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=(p!==0?",":"")+CommonText.geoPointToString(b[p])}return z}static geoPointToString(b){if(!b)return"";return(isNaN(b[0])?"":b[0])+" "+(isNaN(b[1])?"":b[1])}parseRowAsArray(b,z,p){const O=new Array(this._columnCount);for(let o=0;o<this._columnCount;o++){O[o]=this._getValue(o,b[o],this.opts,p,z)}return O}parseRowNested(b,z,p){const O={};for(let o=0;o<this._columnCount;o++){if(!O[this.tableHeader[o][0]])O[this.tableHeader[o][0]]={};O[this.tableHeader[o][0]][this.tableHeader[o][1]]=this._getValue(o,b[o],this.opts,p,z)}return O}parseRowStd(b,z,p){const O={};for(let o=0;o<this._columnCount;o++){O[this.tableHeader[o]]=this._getValue(o,b[o],this.opts,p,z)}return O}castTextWrapper(b,z,p,O){b.string=()=>O.readStringLength();b.buffer=()=>O.readBufferLengthEncoded();b.float=()=>O.readFloatLengthCoded();b.int=()=>O.readIntLengthEncoded();b.long=()=>O.readLongLengthEncoded(z.supportBigInt,z.supportBigNumbers,z.bigNumberStrings,(b.flags&o.UNSIGNED)>0);b.decimal=()=>O.readDecimalLengthEncoded(z.bigNumberStrings);b.date=()=>O.readDateTime(z);b.geometry=()=>b.readGeometry()}readCastValue(b,z,p,O,o){this.castTextWrapper(z,p,O,o);return p.typeCast(z,this.readRowData.bind(this,b,z,p,O,o))}readRowData(b,z,p,O,c){switch(z.columnType){case e.TINY:case e.SHORT:case e.LONG:case e.INT24:case e.YEAR:return c.readIntLengthEncoded();case e.FLOAT:case e.DOUBLE:return c.readFloatLengthCoded();case e.LONGLONG:return c.readLongLengthEncoded(p.supportBigInt,p.supportBigNumbers,p.bigNumberStrings,(z.flags&o.UNSIGNED)>0);case e.DECIMAL:case e.NEWDECIMAL:return c.readDecimalLengthEncoded(p.bigNumberStrings);case e.DATE:if(p.dateStrings){return c.readAsciiStringLengthEncoded()}return c.readDate();case e.DATETIME:case e.TIMESTAMP:if(p.dateStrings){return c.readAsciiStringLengthEncoded()}return c.readDateTime(p);case e.TIME:return c.readAsciiStringLengthEncoded();case e.GEOMETRY:return c.readGeometry(z.dataTypeName);case e.JSON:return JSON.parse(c.readStringLengthEncoded("utf8"));default:if(z.dataTypeFormat&&z.dataTypeFormat==="json"&&p.autoJsonMap){return JSON.parse(c.readStringLengthEncoded("utf8"))}if(z.collation.index===63){return c.readBufferLengthEncoded()}const b=c.readStringLength();if(z.flags&2048){return b==null?null:b===""?[]:b.split(",")}return b}}}function getDatePartQuote(b,z,p,O,o,e,c){return"'"+(b>999?b:b>99?"0"+b:b>9?"00"+b:"000"+b)+"-"+(z<10?"0":"")+z+"-"+(p<10?"0":"")+p+" "+(O<10?"0":"")+O+":"+(o<10?"0":"")+o+":"+(e<10?"0":"")+e+"."+(c>99?c:c>9?"0"+c:"00"+c)+"'"}function getLocalDate(b,z){const p=b.getFullYear();const O=b.getMonth()+1;const o=b.getDate();const e=b.getHours();const c=b.getMinutes();const t=b.getSeconds();const i=b.getMilliseconds();return getDatePartQuote(p,O,o,e,c,t,i)}function getUtcDate(b,z){const p=b.getUTCFullYear();const O=b.getUTCMonth()+1;const o=b.getUTCDate();const e=b.getUTCHours();const c=b.getUTCMinutes();const t=b.getUTCSeconds();const i=b.getUTCMilliseconds();return getDatePartQuote(p,O,o,e,c,t,i)}function getTimezoneDate(b,z){if(b.getMilliseconds()!=0){return t.tz(b,z.tz).format("'YYYY-MM-DD HH:mm:ss.SSS'")}return t.tz(b,z.tz).format("'YYYY-MM-DD HH:mm:ss'")}b.exports=CommonText;b.exports.getTimezoneDate=getTimezoneDate;b.exports.getUtcDate=getUtcDate;b.exports.getLocalDate=getLocalDate},4098:function(b,z,p){const O=p(2649);const o=p(7147);const e=p(6113);const c=p(1450);const t=p(1956);const i=p(9794);const n={INIT:"INIT",FAST_AUTH_RESULT:"FAST_AUTH_RESULT",REQUEST_SERVER_KEY:"REQUEST_SERVER_KEY",SEND_AUTH:"SEND_AUTH"};class CachingSha2PasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.counter=0;this.state=n.INIT}start(b,z,p){this.exchange(this.pluginData,b,z,p);this.onPacketReceive=this.response}exchange(b,z,p,O){switch(this.state){case n.INIT:const e=this.pluginData.slice(0,this.pluginData.length-1);const s=t.encryptPassword(p.password,e,"sha256");z.startPacket(this);if(s.length>0){z.writeBuffer(s,0,s.length);z.flushBuffer(true)}else{z.writeEmptyPacket(true)}this.state=n.FAST_AUTH_RESULT;return;case n.FAST_AUTH_RESULT:const a=b[1];switch(a){case 3:this.emit("send_end");return this.successSend(packet,z,p,O);case 4:if(p.ssl){z.startPacket(this);z.writeString(p.password);z.writeInt8(0);z.flushBuffer(true);return}if(p.cachingRsaPublicKey){try{let b=p.cachingRsaPublicKey;if(!b.includes("-----BEGIN")){b=o.readFileSync(b,"utf8")}this.publicKey=i.retreivePublicKey(b)}catch(b){return this.throwError(b,O)}i.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}else{if(!p.allowPublicKeyRetrieval){return this.throwError(c.createError("RSA public key is not available client side. Either set option `cachingRsaPublicKey` to indicate"+" public key path, or allow public key retrieval with option `allowPublicKeyRetrieval`",null,true,O,"08S01",c.ER_CANNOT_RETRIEVE_RSA_KEY),O)}this.state=n.REQUEST_SERVER_KEY;z.startPacket(this);z.writeInt8(2);z.flushBuffer(true)}return}case n.REQUEST_SERVER_KEY:this.publicKey=i.retreivePublicKey(b.toString("utf8",1));this.state=n.SEND_AUTH;i.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}}static retreivePublicKey(b){return b.replace("(-+BEGIN PUBLIC KEY-+\\r?\\n|\\n?-+END PUBLIC KEY-+\\r?\\n?)","")}static sendSha256PwdPacket(b,z,p,O,o){const e=z.slice(0,z.length-1);o.startPacket(b);const c=i.encrypt(e,O,p);o.writeBuffer(c,0,c.length);o.flushBuffer(b)}static encrypt(b,z,p){const O=Buffer.from(z+"\0");const o=Buffer.allocUnsafe(O.length);const c=b.length;for(let z=0;z<o.length;z++){o[z]=O[z]^b[z%c]}return e.publicEncrypt({key:p,padding:e.constants.RSA_PKCS1_OAEP_PADDING},o)}response(b,z,p,O){const o=b.peek();switch(o){case 0:case 255:this.emit("send_end");return this.successSend(b,z,p,O);default:let o=b.readBufferRemaining();this.exchange(o,z,p,O);this.onPacketReceive=this.response}}}b.exports=CachingSha2PasswordAuth},4945:function(b,z,p){const O=p(2649);class ClearPasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.sequenceNo=b}start(b,z,p){b.startPacket(this);if(z.password)b.writeString(z.password);b.writeInt8(0);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.successSend}}b.exports=ClearPasswordAuth},4980:function(b,z,p){"use strict";const O=p(2649);const o=p(6113);class Ed25519PasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b}start(b,z,p){const O=this.pluginData;const o=Ed25519PasswordAuth.encryptPassword(z.password,O);b.startPacket(this);b.writeBuffer(o,0,o.length);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.successSend}static encryptPassword(b,z){if(!b)return Buffer.alloc(0);let p,O;let e=[gf(),gf(),gf(),gf()];const c=Buffer.alloc(96);const t=Buffer.from(b);let i=o.createHash("sha512");const n=i.update(t).digest();n[0]&=248;n[31]&=127;n[31]|=64;for(p=0;p<32;p++)c[64+p]=z[p];for(p=0;p<32;p++)c[32+p]=n[32+p];i=o.createHash("sha512");const s=i.update(c.slice(32,96)).digest();reduce(s);scalarbase(e,s);pack(c,e);e=[gf(),gf(),gf(),gf()];scalarbase(e,n);const a=Buffer.alloc(32);pack(a,e);for(p=32;p<64;p++)c[p]=a[p-32];i=o.createHash("sha512");const r=i.update(c).digest();reduce(r);const q=new Float64Array(64);for(p=0;p<64;p++)q[p]=0;for(p=0;p<32;p++)q[p]=s[p];for(p=0;p<32;p++){for(O=0;O<32;O++){q[p+O]+=r[p]*n[O]}}modL(c.subarray(32),q);return c.slice(0,64)}}const gf=function(b){const z=new Float64Array(16);if(b)for(let p=0;p<b.length;p++)z[p]=b[p];return z};const e=gf(),c=gf([1]),t=gf([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),i=gf([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),n=gf([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);const s=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function reduce(b){const z=new Float64Array(64);let p;for(p=0;p<64;p++)z[p]=b[p];for(p=0;p<64;p++)b[p]=0;modL(b,z)}function modL(b,z){let p,O,o,e;for(O=63;O>=32;--O){p=0;for(o=O-32,e=O-12;o<e;++o){z[o]+=p-16*z[O]*s[o-(O-32)];p=z[o]+128>>8;z[o]-=p*256}z[o]+=p;z[O]=0}p=0;for(o=0;o<32;o++){z[o]+=p-(z[31]>>4)*s[o];p=z[o]>>8;z[o]&=255}for(o=0;o<32;o++)z[o]-=p*s[o];for(O=0;O<32;O++){z[O+1]+=z[O]>>8;b[O]=z[O]&255}}function scalarbase(b,z){const p=[gf(),gf(),gf(),gf()];set25519(p[0],i);set25519(p[1],n);set25519(p[2],c);M(p[3],i,n);scalarmult(b,p,z)}function set25519(b,z){for(let p=0;p<16;p++)b[p]=z[p]|0}function M(b,z,p){let O,o,e=0,c=0,t=0,i=0,n=0,s=0,a=0,r=0,q=0,d=0,W=0,f=0,R=0,u=0,l=0,_=0,h=0,N=0,E=0,L=0,T=0,B=0,m=0,g=0,I=0,C=0,X=0,D=0,P=0,w=0,U=0;const k=p[0],y=p[1],v=p[2],F=p[3],G=p[4],x=p[5],H=p[6],V=p[7],Y=p[8],K=p[9],j=p[10],Q=p[11],J=p[12],$=p[13],MM=p[14],bM=p[15];O=z[0];e+=O*k;c+=O*y;t+=O*v;i+=O*F;n+=O*G;s+=O*x;a+=O*H;r+=O*V;q+=O*Y;d+=O*K;W+=O*j;f+=O*Q;R+=O*J;u+=O*$;l+=O*MM;_+=O*bM;O=z[1];c+=O*k;t+=O*y;i+=O*v;n+=O*F;s+=O*G;a+=O*x;r+=O*H;q+=O*V;d+=O*Y;W+=O*K;f+=O*j;R+=O*Q;u+=O*J;l+=O*$;_+=O*MM;h+=O*bM;O=z[2];t+=O*k;i+=O*y;n+=O*v;s+=O*F;a+=O*G;r+=O*x;q+=O*H;d+=O*V;W+=O*Y;f+=O*K;R+=O*j;u+=O*Q;l+=O*J;_+=O*$;h+=O*MM;N+=O*bM;O=z[3];i+=O*k;n+=O*y;s+=O*v;a+=O*F;r+=O*G;q+=O*x;d+=O*H;W+=O*V;f+=O*Y;R+=O*K;u+=O*j;l+=O*Q;_+=O*J;h+=O*$;N+=O*MM;E+=O*bM;O=z[4];n+=O*k;s+=O*y;a+=O*v;r+=O*F;q+=O*G;d+=O*x;W+=O*H;f+=O*V;R+=O*Y;u+=O*K;l+=O*j;_+=O*Q;h+=O*J;N+=O*$;E+=O*MM;L+=O*bM;O=z[5];s+=O*k;a+=O*y;r+=O*v;q+=O*F;d+=O*G;W+=O*x;f+=O*H;R+=O*V;u+=O*Y;l+=O*K;_+=O*j;h+=O*Q;N+=O*J;E+=O*$;L+=O*MM;T+=O*bM;O=z[6];a+=O*k;r+=O*y;q+=O*v;d+=O*F;W+=O*G;f+=O*x;R+=O*H;u+=O*V;l+=O*Y;_+=O*K;h+=O*j;N+=O*Q;E+=O*J;L+=O*$;T+=O*MM;B+=O*bM;O=z[7];r+=O*k;q+=O*y;d+=O*v;W+=O*F;f+=O*G;R+=O*x;u+=O*H;l+=O*V;_+=O*Y;h+=O*K;N+=O*j;E+=O*Q;L+=O*J;T+=O*$;B+=O*MM;m+=O*bM;O=z[8];q+=O*k;d+=O*y;W+=O*v;f+=O*F;R+=O*G;u+=O*x;l+=O*H;_+=O*V;h+=O*Y;N+=O*K;E+=O*j;L+=O*Q;T+=O*J;B+=O*$;m+=O*MM;g+=O*bM;O=z[9];d+=O*k;W+=O*y;f+=O*v;R+=O*F;u+=O*G;l+=O*x;_+=O*H;h+=O*V;N+=O*Y;E+=O*K;L+=O*j;T+=O*Q;B+=O*J;m+=O*$;g+=O*MM;I+=O*bM;O=z[10];W+=O*k;f+=O*y;R+=O*v;u+=O*F;l+=O*G;_+=O*x;h+=O*H;N+=O*V;E+=O*Y;L+=O*K;T+=O*j;B+=O*Q;m+=O*J;g+=O*$;I+=O*MM;C+=O*bM;O=z[11];f+=O*k;R+=O*y;u+=O*v;l+=O*F;_+=O*G;h+=O*x;N+=O*H;E+=O*V;L+=O*Y;T+=O*K;B+=O*j;m+=O*Q;g+=O*J;I+=O*$;C+=O*MM;X+=O*bM;O=z[12];R+=O*k;u+=O*y;l+=O*v;_+=O*F;h+=O*G;N+=O*x;E+=O*H;L+=O*V;T+=O*Y;B+=O*K;m+=O*j;g+=O*Q;I+=O*J;C+=O*$;X+=O*MM;D+=O*bM;O=z[13];u+=O*k;l+=O*y;_+=O*v;h+=O*F;N+=O*G;E+=O*x;L+=O*H;T+=O*V;B+=O*Y;m+=O*K;g+=O*j;I+=O*Q;C+=O*J;X+=O*$;D+=O*MM;P+=O*bM;O=z[14];l+=O*k;_+=O*y;h+=O*v;N+=O*F;E+=O*G;L+=O*x;T+=O*H;B+=O*V;m+=O*Y;g+=O*K;I+=O*j;C+=O*Q;X+=O*J;D+=O*$;P+=O*MM;w+=O*bM;O=z[15];_+=O*k;h+=O*y;N+=O*v;E+=O*F;L+=O*G;T+=O*x;B+=O*H;m+=O*V;g+=O*Y;I+=O*K;C+=O*j;X+=O*Q;D+=O*J;P+=O*$;w+=O*MM;U+=O*bM;e+=38*h;c+=38*N;t+=38*E;i+=38*L;n+=38*T;s+=38*B;a+=38*m;r+=38*g;q+=38*I;d+=38*C;W+=38*X;f+=38*D;R+=38*P;u+=38*w;l+=38*U;o=1;O=e+o+65535;o=Math.floor(O/65536);e=O-o*65536;O=c+o+65535;o=Math.floor(O/65536);c=O-o*65536;O=t+o+65535;o=Math.floor(O/65536);t=O-o*65536;O=i+o+65535;o=Math.floor(O/65536);i=O-o*65536;O=n+o+65535;o=Math.floor(O/65536);n=O-o*65536;O=s+o+65535;o=Math.floor(O/65536);s=O-o*65536;O=a+o+65535;o=Math.floor(O/65536);a=O-o*65536;O=r+o+65535;o=Math.floor(O/65536);r=O-o*65536;O=q+o+65535;o=Math.floor(O/65536);q=O-o*65536;O=d+o+65535;o=Math.floor(O/65536);d=O-o*65536;O=W+o+65535;o=Math.floor(O/65536);W=O-o*65536;O=f+o+65535;o=Math.floor(O/65536);f=O-o*65536;O=R+o+65535;o=Math.floor(O/65536);R=O-o*65536;O=u+o+65535;o=Math.floor(O/65536);u=O-o*65536;O=l+o+65535;o=Math.floor(O/65536);l=O-o*65536;O=_+o+65535;o=Math.floor(O/65536);_=O-o*65536;e+=o-1+37*(o-1);o=1;O=e+o+65535;o=Math.floor(O/65536);e=O-o*65536;O=c+o+65535;o=Math.floor(O/65536);c=O-o*65536;O=t+o+65535;o=Math.floor(O/65536);t=O-o*65536;O=i+o+65535;o=Math.floor(O/65536);i=O-o*65536;O=n+o+65535;o=Math.floor(O/65536);n=O-o*65536;O=s+o+65535;o=Math.floor(O/65536);s=O-o*65536;O=a+o+65535;o=Math.floor(O/65536);a=O-o*65536;O=r+o+65535;o=Math.floor(O/65536);r=O-o*65536;O=q+o+65535;o=Math.floor(O/65536);q=O-o*65536;O=d+o+65535;o=Math.floor(O/65536);d=O-o*65536;O=W+o+65535;o=Math.floor(O/65536);W=O-o*65536;O=f+o+65535;o=Math.floor(O/65536);f=O-o*65536;O=R+o+65535;o=Math.floor(O/65536);R=O-o*65536;O=u+o+65535;o=Math.floor(O/65536);u=O-o*65536;O=l+o+65535;o=Math.floor(O/65536);l=O-o*65536;O=_+o+65535;o=Math.floor(O/65536);_=O-o*65536;e+=o-1+37*(o-1);b[0]=e;b[1]=c;b[2]=t;b[3]=i;b[4]=n;b[5]=s;b[6]=a;b[7]=r;b[8]=q;b[9]=d;b[10]=W;b[11]=f;b[12]=R;b[13]=u;b[14]=l;b[15]=_}function scalarmult(b,z,p){let O,o;set25519(b[0],e);set25519(b[1],c);set25519(b[2],c);set25519(b[3],e);for(o=255;o>=0;--o){O=p[o/8|0]>>(o&7)&1;cswap(b,z,O);add(z,b);add(b,b);cswap(b,z,O)}}function pack(b,z){const p=gf(),O=gf(),o=gf();inv25519(o,z[2]);M(p,z[0],o);M(O,z[1],o);pack25519(b,O);b[31]^=par25519(p)<<7}function inv25519(b,z){const p=gf();let O;for(O=0;O<16;O++)p[O]=z[O];for(O=253;O>=0;O--){S(p,p);if(O!==2&&O!==4)M(p,p,z)}for(O=0;O<16;O++)b[O]=p[O]}function S(b,z){M(b,z,z)}function par25519(b){const z=new Uint8Array(32);pack25519(z,b);return z[0]&1}function car25519(b){let z,p,O=1;for(z=0;z<16;z++){p=b[z]+O+65535;O=Math.floor(p/65536);b[z]=p-O*65536}b[0]+=O-1+37*(O-1)}function pack25519(b,z){let p,O,o;const e=gf(),c=gf();for(p=0;p<16;p++)c[p]=z[p];car25519(c);car25519(c);car25519(c);for(O=0;O<2;O++){e[0]=c[0]-65517;for(p=1;p<15;p++){e[p]=c[p]-65535-(e[p-1]>>16&1);e[p-1]&=65535}e[15]=c[15]-32767-(e[14]>>16&1);o=e[15]>>16&1;e[14]&=65535;sel25519(c,e,1-o)}for(p=0;p<16;p++){b[2*p]=c[p]&255;b[2*p+1]=c[p]>>8}}function cswap(b,z,p){for(let O=0;O<4;O++){sel25519(b[O],z[O],p)}}function A(b,z,p){for(let O=0;O<16;O++)b[O]=z[O]+p[O]}function Z(b,z,p){for(let O=0;O<16;O++)b[O]=z[O]-p[O]}function add(b,z){const p=gf(),O=gf(),o=gf(),e=gf(),c=gf(),i=gf(),n=gf(),s=gf(),a=gf();Z(p,b[1],b[0]);Z(a,z[1],z[0]);M(p,p,a);A(O,b[0],b[1]);A(a,z[0],z[1]);M(O,O,a);M(o,b[3],z[3]);M(o,o,t);M(e,b[2],z[2]);A(e,e,e);Z(c,O,p);Z(i,e,o);A(n,e,o);A(s,O,p);M(b[0],c,i);M(b[1],s,n);M(b[2],n,i);M(b[3],c,s)}function sel25519(b,z,p){const O=~(p-1);let o;for(let p=0;p<16;p++){o=O&(b[p]^z[p]);b[p]^=o;z[p]^=o}}b.exports=Ed25519PasswordAuth},1956:function(b,z,p){"use strict";const O=p(2649);const o=p(6113);class NativePasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.compressSequenceNo=z}start(b,z,p){const O=this.pluginData.slice(0,20);let o=NativePasswordAuth.encryptPassword(z.password,O,"sha1");b.startPacket(this);if(o.length>0){b.writeBuffer(o,0,o.length);b.flushBuffer(true)}else{b.writeEmptyPacket(true)}this.emit("send_end");this.onPacketReceive=this.successSend}static encryptPassword(b,z,p){if(!b)return Buffer.alloc(0);let O=o.createHash(p);let e=O.update(b,"utf8").digest();O=o.createHash(p);let c=O.update(e).digest();O=o.createHash(p);O.update(z);O.update(c);let t=O.digest();let i=Buffer.allocUnsafe(t.length);for(let b=0;b<t.length;b++){i[b]=e[b]^t[b]}return i}}b.exports=NativePasswordAuth},5147:function(b,z,p){const O=p(2649);class PamPasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.counter=0}start(b,z,p){this.exchange(this.pluginData,b,z,p);this.onPacketReceive=this.response}exchange(b,z,p,O){z.startPacket(this);let o;if(Array.isArray(p.password)){o=p.password[this.counter];this.counter++}else{o=p.password}if(o)z.writeString(o);z.writeInt8(0);z.flushBuffer(true)}response(b,z,p,O){const o=b.peek();switch(o){case 0:case 255:this.emit("send_end");return this.successSend(b,z,p,O);default:let o=b.readBuffer();this.exchange(o,z,p,O);this.onPacketReceive=this.response}}}b.exports=PamPasswordAuth},2649:function(b,z,p){"use strict";const O=p(7657);class PluginAuth extends O{constructor(b,z,p){super(b,z);this.multiAuthResolver=p}successSend(b,z,p,O){this.multiAuthResolver(b,z,p,O)}}b.exports=PluginAuth},9794:function(b,z,p){const O=p(2649);const o=p(7147);const e=p(6113);const c=p(1450);class Sha256PasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.counter=0;this.initialState=true}start(b,z,p){this.exchange(this.pluginData,b,z,p);this.onPacketReceive=this.response}exchange(b,z,p,O){if(this.initialState){if(!p.password){z.startPacket(this);z.writeEmptyPacket(true);return}else if(p.ssl){z.startPacket(this);if(p.password){z.writeString(p.password)}z.writeInt8(0);z.flushBuffer(true);return}else{if(p.rsaPublicKey){try{let b=p.rsaPublicKey;if(!b.includes("-----BEGIN")){b=o.readFileSync(b,"utf8")}this.publicKey=Sha256PasswordAuth.retreivePublicKey(b)}catch(b){return this.throwError(b,O)}}else{if(!p.allowPublicKeyRetrieval){return this.throwError(c.createError("RSA public key is not available client side. Either set option `rsaPublicKey` to indicate"+" public key path, or allow public key retrieval with option `allowPublicKeyRetrieval`",null,true,O,"08S01",c.ER_CANNOT_RETRIEVE_RSA_KEY),O)}this.initialState=false;z.startPacket(this);z.writeInt8(1);z.flushBuffer(true);return}}Sha256PasswordAuth.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}else{this.publicKey=Sha256PasswordAuth.retreivePublicKey(b.toString("utf8",1));Sha256PasswordAuth.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}}static retreivePublicKey(b){return b.replace("(-+BEGIN PUBLIC KEY-+\\r?\\n|\\n?-+END PUBLIC KEY-+\\r?\\n?)","")}static sendSha256PwdPacket(b,z,p,O,o){const e=z.slice(0,z.length-1);o.startPacket(b);const c=Sha256PasswordAuth.encrypt(e,O,p);o.writeBuffer(c,0,c.length);o.flushBuffer(b)}static encrypt(b,z,p){const O=Buffer.from(z+"\0");const o=Buffer.allocUnsafe(O.length);const c=b.length;for(let z=0;z<o.length;z++){o[z]=O[z]^b[z%c]}return e.publicEncrypt({key:p,padding:e.constants.RSA_PKCS1_OAEP_PADDING},o)}response(b,z,p,O){const o=b.peek();switch(o){case 0:case 255:this.emit("send_end");return this.successSend(b,z,p,O);default:let o=b.readBufferRemaining();this.exchange(o,z,p,O);this.onPacketReceive=this.response}}}b.exports=Sha256PasswordAuth},8051:function(b,z,p){"use strict";const O=p(9248);b.exports.init=function(b,z){let p=O.IGNORE_SPACE|O.PROTOCOL_41|O.TRANSACTIONS|O.SECURE_CONNECTION|O.MULTI_RESULTS|O.PS_MULTI_RESULTS|O.SESSION_TRACK|O.PLUGIN_AUTH_LENENC_CLIENT_DATA;if((z.serverCapabilities&O.MYSQL)===BigInt(0)){p|=O.MARIADB_CLIENT_EXTENDED_TYPE_INFO}if(z.serverCapabilities&O.PLUGIN_AUTH){p|=O.PLUGIN_AUTH}if(b.connectAttributes&&z.serverCapabilities&O.CONNECT_ATTRS){p|=O.CONNECT_ATTRS}if(b.foundRows){p|=O.FOUND_ROWS}if(b.permitLocalInfile){p|=O.LOCAL_FILES}if(b.multipleStatements){p|=O.MULTI_STATEMENTS}z.eofDeprecated=(z.serverCapabilities&O.DEPRECATE_EOF)>0;if(z.eofDeprecated){p|=O.DEPRECATE_EOF}if(b.database&&z.serverCapabilities&O.CONNECT_WITH_DB){p|=O.CONNECT_WITH_DB}if(b.compress){if(z.serverCapabilities&O.COMPRESS){p|=O.COMPRESS}else{b.compress=false}}if(b.bulk){if(z.serverCapabilities&O.MARIADB_CLIENT_STMT_BULK_OPERATIONS){p|=O.MARIADB_CLIENT_STMT_BULK_OPERATIONS}}if(b.permitConnectionWhenExpired){p|=O.CAN_HANDLE_EXPIRED_PASSWORDS}z.clientCapabilities=p}},7088:function(b,z,p){"use strict";const O=p(9248);const o=p(1401);const e=p(1956);const c=p(4980);const t=p(8850).version;const i=p(2037);b.exports.send=function send(b,z,p,o,n){z.startPacket(b);n.defaultPluginName=o;const s=Array.isArray(p.password)?p.password[0]:p.password;let a;let r;switch(o){case"client_ed25519":a=c.encryptPassword(s,n.seed);r="client_ed25519";break;case"mysql_clear_password":a=Buffer.from(s);r="mysql_clear_password";break;default:a=e.encryptPassword(s,n.seed,"sha1");r="mysql_native_password";break}z.writeInt32(Number(n.clientCapabilities&BigInt(4294967295)));z.writeInt32(1024*1024*1024);z.writeInt8(p.collation.index);for(let b=0;b<19;b++){z.writeInt8(0)}z.writeInt32(Number(n.clientCapabilities>>BigInt(32)));z.writeString(p.user||"");z.writeInt8(0);if(n.serverCapabilities&O.PLUGIN_AUTH_LENENC_CLIENT_DATA){z.writeLengthCoded(a.length);z.writeBuffer(a,0,a.length)}else if(n.serverCapabilities&O.SECURE_CONNECTION){z.writeInt8(a.length);z.writeBuffer(a,0,a.length)}else{z.writeBuffer(a,0,a.length);z.writeInt8(0)}if(n.clientCapabilities&O.CONNECT_WITH_DB){z.writeString(p.database);z.writeInt8(0);n.database=p.database}if(n.clientCapabilities&O.PLUGIN_AUTH){z.writeString(r);z.writeInt8(0)}if(n.clientCapabilities&O.CONNECT_ATTRS){z.writeInt8(252);let O=z.pos;z.writeInt16(0);const o=p.collation.charset;writeParam(z,"_client_name",o);writeParam(z,"MariaDB connector/Node",o);writeParam(z,"_client_version",o);writeParam(z,t,o);const e=b.getSocket().address().address;if(e){writeParam(z,"_server_host",o);writeParam(z,e,o)}writeParam(z,"_os",o);writeParam(z,process.platform,o);writeParam(z,"_client_host",o);writeParam(z,i.hostname(),o);writeParam(z,"_node_version",o);writeParam(z,process.versions.node,o);if(p.connectAttributes!==true){let b=Object.keys(p.connectAttributes);for(let O=0;O<b.length;++O){writeParam(z,b[O],o);writeParam(z,p.connectAttributes[b[O]],o)}}z.writeInt16AtPos(O)}z.flushBuffer(true)};function writeParam(b,z,p){let O=Buffer.isEncoding(p)?Buffer.from(z,p):o.encode(z,p);b.writeLengthCoded(O.length);b.writeBuffer(O,0,O.length)}},5427:function(b,z,p){"use strict";const O=p(7657);const o=p(5888);const e=p(7088);const c=p(2693);const t=p(8051);const i=p(1450);const n=p(9248);const s=p(7282);class Handshake extends O{constructor(b,z,p,O,o){super(b,z);this._createSecureContext=p;this._addCommand=O;this.getSocket=o;this.onPacketReceive=this.parseHandshakeInit;this.plugin=this}ensureOptionCompatibility(b,z){if(b.multipleStatements&&(z.serverCapabilities&n.MULTI_STATEMENTS)===0){return this.throwNewError("Option `multipleStatements` enable, but server doesn'permits multi-statment",true,z,"08S01",i.ER_CLIENT_OPTION_INCOMPATIBILITY)}if(b.permitLocalInfile&&(z.serverCapabilities&n.LOCAL_FILES)===0){return this.throwNewError("Option `permitLocalInfile` enable, but server doesn'permits using local file",true,z,"08S01",i.ER_CLIENT_OPTION_INCOMPATIBILITY)}}parseHandshakeInit(b,z,p,O){if(b.peek()===255){const z=b.readError(O);z.fatal=true;return this.throwError(z,O)}let s=new o(b,O);this.ensureOptionCompatibility(p,O);t.init(p,O);if(p.ssl){if(O.serverCapabilities&n.SSL){O.clientCapabilities|=n.SSL;c.send(this,z,O,p);this._createSecureContext(function(){e.send(this,z,p,s.pluginName,O)}.bind(this))}else{return this.throwNewError("Trying to connect with ssl, but ssl not enabled in the server",true,O,"08S01",i.ER_SERVER_SSL_DISABLED)}}else{e.send(this,z,p,s.pluginName,O)}this.onPacketReceive=this.handshakeResult}handshakeResult(b,z,p,O){const o=b.peek();switch(o){case 254:this.plugin.onPacketReceive=null;this.plugin.emit("send_end");this.plugin.emit("end");this.dispatchAuthSwitchRequest(b,z,p,O);return;case 0:this.plugin.onPacketReceive=null;b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16();this.plugin.emit("send_end");return this.plugin.successEnd();case 255:this.plugin.onPacketReceive=null;const e=b.readError(O,this.displaySql());e.fatal=true;return this.plugin.throwError(e,O);default:this.throwNewError("Unexpected type of packet during handshake phase : "+o,true,O,"42000",i.ER_AUTHENTICATION_BAD_PACKET)}}dispatchAuthSwitchRequest(b,z,p,O){let o,e;if(O.clientCapabilities&n.PLUGIN_AUTH){b.skip(1);if(b.remaining()){o=b.readStringNullEnded();e=b.readBufferRemaining()}else{o="mysql_old_password";e=O.seed.slice(0,8)}}else{o=b.readStringNullEnded("cesu8");e=b.readBufferRemaining()}try{this.plugin=Handshake.pluginHandler(o,this.plugin.sequenceNo,this.plugin.compressSequenceNo,e,O,p,z,this.resolve,this.reject,this.handshakeResult.bind(this))}catch(b){this.reject(b);return}if(!this.plugin){this.reject(i.createError("Client does not support authentication protocol '"+o+"' requested by server. ",null,true,O,"08004",i.ER_AUTHENTICATION_PLUGIN_NOT_SUPPORTED))}else{this._addCommand(this.plugin,false)}}static pluginHandler(b,z,O,o,e,c,t,n,s,a){let r;switch(b){case"mysql_native_password":r=p(1956);break;case"mysql_clear_password":r=p(4945);break;case"client_ed25519":r=p(4980);break;case"dialog":r=p(5147);break;case"sha256_password":if(!Handshake.ensureNodeVersion(11,6,0)){throw i.createError("sha256_password authentication plugin require node 11.6+",null,true,e,"08004",i.ER_MINIMUM_NODE_VERSION_REQUIRED)}r=p(9794);break;case"caching_sha2_password":if(!Handshake.ensureNodeVersion(11,6,0)){throw i.createError("caching_sha2_password authentication plugin require node 11.6+",null,true,e,"08004",i.ER_MINIMUM_NODE_VERSION_REQUIRED)}r=p(4098);break;default:return null}return new r(z,O,o,n,s,a)}static ensureNodeVersion(b,z,p){const O=s.versions.node.split(".");return O[0]>b||O[0]===b&&O[1]>z||O[0]===b&&O[1]===z&&O[2]>=p}}b.exports=Handshake},5888:function(b,z,p){"use strict";const O=p(9248);const o=p(9994);class InitialHandshake{constructor(b,z){b.skip(1);z.serverVersion={};z.serverVersion.raw=b.readStringNullEnded();z.threadId=b.readUInt32();let p=b.readBuffer(8);b.skip(1);let e=BigInt(b.readUInt16());b.skip(1);z.status=b.readUInt16();e+=BigInt(b.readUInt16())<<BigInt(16);let c=0;if(e&O.PLUGIN_AUTH){c=Math.max(12,b.readUInt8()-9)}else{b.skip(1)}if(e&O.MYSQL){b.skip(10)}else{b.skip(6);e+=BigInt(b.readUInt32())<<BigInt(32)}if(e&O.SECURE_CONNECTION){let O=b.readBuffer(c);z.seed=Buffer.concat([p,O])}else{z.seed=p}b.skip(1);z.serverCapabilities=e;if(z.serverVersion.raw.startsWith("5.5.5-")){z.serverVersion.mariaDb=true;z.serverVersion.raw=z.serverVersion.raw.substring("5.5.5-".length)}else{z.serverVersion.mariaDb=z.serverVersion.raw.includes("MariaDB")||(e&O.MYSQL)===BigInt(0)}if(e&O.PLUGIN_AUTH){this.pluginName=b.readStringNullEnded()}else{this.pluginName=""}o.parseVersionString(z)}}b.exports=InitialHandshake},2693:function(b,z,p){"use strict";const O=p(9248);b.exports.send=function sendSSLRequest(b,z,p,o){z.startPacket(b);z.writeInt32(Number(p.clientCapabilities&BigInt(4294967295)));z.writeInt32(1024*1024*1024);z.writeInt8(o.collation.index);for(let b=0;b<19;b++){z.writeInt8(0)}if(p.serverCapabilities&O.MYSQL){z.writeInt32(0)}else{z.writeInt32(Number(p.clientCapabilities>>BigInt(32)))}z.flushBuffer(true)}},3136:function(b,z,p){"use strict";const O=p(7657);const o=p(1450);class Ping extends O{constructor(b,z){super(b,z)}start(b,z,p){b.startPacket(this);b.writeInt8(14);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.readPingResponsePacket}readPingResponsePacket(b,z,p,O){if(b.peek()!==0){return this.throwNewError("unexpected packet",false,O,"42000",o.ER_PING_BAD_PACKET)}b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16();this.successEnd(null)}}b.exports=Ping},9335:function(b,z,p){"use strict";const O=p(8662);const o=p(1450);const e=p(2491);const c=39;class Query extends O{constructor(b,z,p,O,o,e){super(b,z,p,O,o,e)}start(b,z,p){if(this.initialValues===undefined){b.startPacket(this);b.writeInt8(3);if(!this.handleTimeout(b,p))return;b.writeString(this.sql);b.flushBuffer(true);this.emit("send_end");return this.onPacketReceive=this.readResponsePacket}if(this.opts.namedPlaceholders){try{const b=e.splitQueryPlaceholder(this.sql,p,this.initialValues,this.displaySql.bind(this));this.queryParts=b.parts;this.values=b.values}catch(b){this.emit("send_end");return this.throwError(b,p)}}else{this.queryParts=e.splitQuery(this.sql);this.values=Array.isArray(this.initialValues)?this.initialValues:[this.initialValues];if(!this.validateParameters(p))return}b.startPacket(this);b.writeInt8(3);if(!this.handleTimeout(b,p))return;b.writeString(this.queryParts[0]);this.onPacketReceive=this.readResponsePacket;const O=this.queryParts.length;for(let z=1;z<O;z++){const O=this.values[z-1];if(O!==null&&typeof O==="object"&&typeof O.pipe==="function"&&typeof O.read==="function"){this.sending=true;this.registerStreamSendEvent(b,p);this.currentParam=z;b.writeInt8(c);O.on("data",(function(z){b.writeBufferEscape(z)}));O.on("end",function(){b.writeInt8(c);b.writeString(this.queryParts[this.currentParam++]);this.paramWritten()}.bind(this));return}else{this.writeParam(b,O,this.opts,p);b.writeString(this.queryParts[z])}}b.flushBuffer(true);this.emit("send_end")}handleTimeout(b,z){if(this.opts.timeout){if(z.isMariaDB()){if(z.hasMinVersion(10,1,2)){b.writeString("SET STATEMENT max_statement_time="+this.opts.timeout/1e3+" FOR ");return true}else{const b=o.createError("Cannot use timeout for MariaDB server before 10.1.2. timeout value: "+this.opts.timeout,this.sql,false,z,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,z);return false}}else{const b=o.createError("Cannot use timeout for MySQL server. timeout value: "+this.opts.timeout,this.sql,false,z,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,z);return false}}return true}validateParameters(b){if(this.queryParts.length-1>this.values.length){this.emit("send_end");this.throwNewError("Parameter at position "+(this.values.length+1)+" is not set",false,b,"HY000",o.ER_MISSING_PARAMETER);return false}for(let z=0;z<this.queryParts.length-1;z++){if(this.values[z]===undefined){this.emit("send_end");this.throwNewError("Parameter at position "+(z+1)+" is undefined\n"+this.displaySql(),false,b,"HY000",o.ER_PARAMETER_UNDEFINED);return false}}return true}registerStreamSendEvent(b,z){this.paramWritten=function(){while(true){if(this.currentParam===this.queryParts.length){b.flushBuffer(true);this.sending=false;this.emit("send_end");return}else{const p=this.values[this.currentParam-1];if(p===null){b.writeStringAscii("NULL");b.writeString(this.queryParts[this.currentParam++]);continue}if(typeof p==="object"&&typeof p.pipe==="function"&&typeof p.read==="function"){b.writeInt8(c);p.once("end",function(){b.writeInt8(c);b.writeString(this.queryParts[this.currentParam++]);this.paramWritten()}.bind(this));p.on("data",(function(z){b.writeBufferEscape(z)}));return}this.writeParam(b,p,this.opts,z);b.writeString(this.queryParts[this.currentParam++])}}}.bind(this)}}b.exports=Query},2713:function(b,z,p){"use strict";const O=p(7657);class Quit extends O{constructor(b,z){super(b,z)}start(b,z,p){b.startPacket(this);b.writeInt8(1);b.flushBuffer(true);this.emit("send_end");this.successEnd();this.onPacketReceive=this.skipResults}skipResults(b,z,p,O){}}b.exports=Quit},4731:function(b,z,p){"use strict";const O=p(7657);const o=p(1450);class Reset extends O{constructor(b,z){super(b,z)}start(b,z,p){b.startPacket(this);b.writeInt8(31);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.readResetResponsePacket}readResetResponsePacket(b,z,p,O){if(b.peek()!==0){return this.throwNewError("unexpected packet",false,O,"42000",o.ER_RESET_BAD_PACKET)}b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16();this.successEnd(null)}}b.exports=Reset},9:function(b,z,p){"use strict";const O=p(7657);const o=p(386);const e=p(4542);const c=p(1450);const t=p(7147);const i=p(2491);class ResultSet extends O{constructor(b,z){super(b,z);this._responseIndex=0;this._rows=[]}readResponsePacket(b,z,p,O){switch(b.peek()){case 0:return this.readOKPacket(b,z,p,O);case 255:const e=b.readError(O,this.displaySql(),this.stack);O.status|=o.STATUS_IN_TRANS;return this.throwError(e,O);case 251:return this.readLocalInfile(b,z,p,O);default:return this.readResultSet(b)}}readResultSet(b){this._columnCount=b.readUnsignedLength();this._getValue=this.opts.typeCast?this.readCastValue:this.readRowData;this._rows.push([]);this._columns=[];this.onPacketReceive=this.readColumn}configAssign(b,z){if(!z){this.opts=b;return}this.opts={timeout:z.timeout,autoJsonMap:b.autoJsonMap,arrayParenthesis:b.arrayParenthesis,supportBigInt:z.supportBigInt!=undefined?z.supportBigInt:b.supportBigInt,checkDuplicate:z.checkDuplicate!=undefined?z.checkDuplicate:b.checkDuplicate,typeCast:z.typeCast!=undefined?z.typeCast:b.typeCast,rowsAsArray:z.rowsAsArray!=undefined?z.rowsAsArray:b.rowsAsArray,nestTables:z.nestTables!=undefined?z.nestTables:b.nestTables,dateStrings:z.dateStrings!=undefined?z.dateStrings:b.dateStrings,tz:z.tz!=undefined?z.tz:b.tz,pipelining:b.pipelining,_localTz:z.localTz!=undefined?z.localTz:b._localTz,namedPlaceholders:z.namedPlaceholders!=undefined?z.namedPlaceholders:b.namedPlaceholders,maxAllowedPacket:z.maxAllowedPacket!=undefined?z.maxAllowedPacket:b.maxAllowedPacket,supportBigNumbers:z.supportBigNumbers!=undefined?z.supportBigNumbers:b.supportBigNumbers,permitSetMultiParamEntries:z.permitSetMultiParamEntries!=undefined?z.permitSetMultiParamEntries:b.permitSetMultiParamEntries,bigNumberStrings:z.bigNumberStrings!=undefined?z.bigNumberStrings:b.bigNumberStrings}}readOKPacket(b,z,p,O){const e=this.parseOkPacket(b,z,p,O);this._rows.push(e);if(O.status&o.MORE_RESULTS_EXISTS){this._responseIndex++;return this.onPacketReceive=this.readResponsePacket}this.success(this._responseIndex===0?this._rows[0]:this._rows)}readPrepareResultPacket(b,z,p,O){switch(b.peek()){case 0:b.skip(1);this.statementId=b.readInt32();this.columnNo=b.readUInt16();this.parameterNo=b.readUInt16();if(this.columnNo>0)return this.onPacketReceive=this.skipColumnsPacket;if(this.parameterNo>0)return this.onPacketReceive=this.skipParameterPacket;return this.success();case 255:const z=b.readError(O,this.displaySql(),this.stack);O.status|=o.STATUS_IN_TRANS;this.onPacketReceive=this.readResponsePacket;return this.throwError(z,O);default:O.status|=o.STATUS_IN_TRANS;this.onPacketReceive=this.readResponsePacket;return this.throwError(c.ER_UNEXPECTED_PACKET,O)}}skipColumnsPacket(b,z,p,O){this.columnNo--;if(this.columnNo===0){if(O.eofDeprecated){if(this.parameterNo>0)return this.onPacketReceive=this.skipParameterPacket;this.success()}return this.onPacketReceive=this.skipEofPacket}}skipEofPacket(b,z,p,O){if(this.parameterNo>0)return this.onPacketReceive=this.skipParameterPacket;this.success()}skipParameterPacket(b,z,p,O){this.parameterNo--;if(this.parameterNo===0){if(O.eofDeprecated)return this.success();return this.onPacketReceive=this.skipEofPacket}}success(b){this.successEnd(b);this._columns=null;this._rows=null}readColumn(b,z,p,O){if(this._columns.length!==this._columnCount){this._columns.push(new e(b,O))}if(this._columns.length===this._columnCount){if(this.opts.rowsAsArray){this.parseRow=this.parseRowAsArray}else{this.tableHeader=new Array(this._columnCount);if(this.opts.nestTables){this.parseRow=this.parseRowStd;if(typeof this.opts.nestTables==="string"){for(let b=0;b<this._columnCount;b++){this.tableHeader[b]=this._columns[b].table()+this.opts.nestTables+this._columns[b].name()}this.checkDuplicates()}else if(this.opts.nestTables===true){this.parseRow=this.parseRowNested;for(let b=0;b<this._columnCount;b++){this.tableHeader[b]=[this._columns[b].table(),this._columns[b].name()]}this.checkNestTablesDuplicates()}}else{this.parseRow=this.parseRowStd;for(let b=0;b<this._columnCount;b++){this.tableHeader[b]=this._columns[b].name()}this.checkDuplicates()}}this.emit("fields",this._columns);return this.onPacketReceive=O.eofDeprecated?this.readResultSetRow:this.readIntermediateEOF}}checkDuplicates(){if(this.opts.checkDuplicate){for(let b=0;b<this._columnCount;b++){if(this.tableHeader.indexOf(this.tableHeader[b],b+1)>0){const b=this.tableHeader.reduce(((b,z,p,O)=>O.indexOf(z)!==p&&b.indexOf(z)===-1?b.concat(z):b),[]);this.throwUnexpectedError("Error in results, duplicate field name `"+b[0]+"`.\n"+"(see option `checkDuplicate`)",false,null,"42000",c.ER_DUPLICATE_FIELD)}}}}checkNestTablesDuplicates(){if(this.opts.checkDuplicate){for(let b=0;b<this._columnCount;b++){for(let z=0;z<b;z++){if(this.tableHeader[z][0]===this.tableHeader[b][0]&&this.tableHeader[z][1]===this.tableHeader[b][1]){this.throwUnexpectedError("Error in results, duplicate field name `"+this.tableHeader[b][0]+"`.`"+this.tableHeader[b][1]+"`\n"+"(see option `checkDuplicate`)",false,null,"42000",c.ER_DUPLICATE_FIELD)}}}}}readIntermediateEOF(b,z,p,O){if(b.peek()!==254){return this.throwNewError("Error in protocol, expected EOF packet",true,O,"42000",c.ER_EOF_EXPECTED)}b.skip(3);O.status=b.readUInt16();this.isOutParameter=O.status&o.PS_OUT_PARAMS;this.onPacketReceive=this.readResultSetRow}handleNewRows(b){this._rows[this._responseIndex].push(b)}readResultSetRow(b,z,p,O){if(b.peek()>=254){if(b.peek()===255){const z=b.readError(O,this.displaySql(),this.stack);O.status|=o.STATUS_IN_TRANS;return this.throwError(z,O)}if(!O.eofDeprecated&&b.length()<13||O.eofDeprecated&&b.length()<16777215){if(!O.eofDeprecated){b.skip(3);O.status=b.readUInt16()}else{b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16()}if(p.metaAsArray){if(!this._meta){this._meta=new Array(this._responseIndex)}this._meta[this._responseIndex]=this._columns;if(O.status&o.MORE_RESULTS_EXISTS||this.isOutParameter){this._responseIndex++;return this.onPacketReceive=this.readResponsePacket}this.success(this._responseIndex===0?[this._rows[0],this._meta[0]]:[this._rows,this._meta])}else{this._rows[this._responseIndex].meta=this._columns;if(O.status&o.MORE_RESULTS_EXISTS||this.isOutParameter){this._responseIndex++;return this.onPacketReceive=this.readResponsePacket}this.success(this._responseIndex===0?this._rows[0]:this._rows)}return}}const e=this.parseRow(this._columns,b,p);this.handleNewRows(e)}displaySql(){if(this.opts&&this.initialValues){if(this.sql.length>this.opts.debugLen){return this.sql.substring(0,this.opts.debugLen)+"..."}let b=this.sql+" - parameters:";return this.logParameters(b,this.initialValues)}return this.sql+" - parameters:[]"}logParameters(b,z){if(this.opts.namedPlaceholders){b+="{";let p=true;for(let O in z){if(p){p=false}else{b+=","}b+="'"+O+"':";let o=z[O];b=ResultSet.logParam(b,o);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}b+="}"}else{b+="[";if(Array.isArray(z)){for(let p=0;p<z.length;p++){if(p!==0)b+=",";let O=z[p];b=ResultSet.logParam(b,O);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}}else{b=ResultSet.logParam(b,z);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"..."}}b+="]"}return b}readLocalInfile(b,z,p,O){b.skip(1);z.startPacket(this);const o=b.readStringRemaining();if(!i.validateFileName(this.sql,this.initialValues,o)){z.writeEmptyPacket();const b=c.createError("LOCAL INFILE wrong filename. '"+o+"' doesn't correspond to query "+this.sql+". Query cancelled. Check for malicious server / proxy",this.sql,false,O,"HY000",c.ER_LOCAL_INFILE_WRONG_FILENAME);process.nextTick(this.reject,b);this.reject=null;this.resolve=null;return this.onPacketReceive=this.readResponsePacket}const e=t.createReadStream(o);e.on("error",(b=>{z.writeEmptyPacket();const p=c.createError("LOCAL INFILE command failed: "+b.message,this.sql,false,O,"22000",c.ER_LOCAL_INFILE_NOT_READABLE);process.nextTick(this.reject,p);this.reject=null;this.resolve=null}));e.on("data",(b=>{z.writeBuffer(b,0,b.length)}));e.on("end",(()=>{if(!z.isEmpty()){z.flushBuffer(false)}z.writeEmptyPacket()}));this.onPacketReceive=this.readResponsePacket}static logParam(b,z){if(z===undefined||z===null){b+=z===undefined?"undefined":"null"}else{switch(z.constructor.name){case"Buffer":b+="0x"+z.toString("hex",0,Math.min(1024,z.length))+"";break;case"String":b+="'"+z+"'";break;case"Date":b+=getStringDate(z);break;case"Object":b+=JSON.stringify(z);break;default:b+=z.toString()}}return b}}function getStringDate(b){return"'"+("00"+(b.getMonth()+1)).slice(-2)+"/"+("00"+b.getDate()).slice(-2)+"/"+b.getFullYear()+" "+("00"+b.getHours()).slice(-2)+":"+("00"+b.getMinutes()).slice(-2)+":"+("00"+b.getSeconds()).slice(-2)+"."+("000"+b.getMilliseconds()).slice(-3)+"'"}b.exports=ResultSet},7516:function(b,z,p){"use strict";const O=p(9335);const{Readable:o}=p(2781);class Stream extends O{constructor(b,z,p,O,e){super((()=>{}),(()=>{}),b,z,p,O);this.socket=e;this.inStream=new o({objectMode:true,read:()=>{}});this.on("fields",(function(b){this.inStream.emit("fields",b)}));this.on("error",(function(b){this.inStream.emit("error",b)}));this.on("end",(function(b){if(b)this.inStream.emit("error",b);this.inStream.push(null)}))}handleNewRows(b){this.inStream.push(b)}}b.exports=Stream},9362:function(b,z,p){"use strict";const O=p(2055);const o=/mariadb:\/\/(([^/@:]+)?(:([^/]+))?@)?(([^/:]+)(:([0-9]+))?)\/([^?]+)(\?(.*))?$/;const e=p(7936);const c=p(1450);class ConnectionOptions{constructor(b){if(typeof b==="string"){b=ConnectionOptions.parse(b)}if(!b)b={};this.host=b.host||"localhost";this.port=b.port||3306;this.user=b.user||process.env.USERNAME;this.password=b.password;this.database=b.database;if(b.charset&&typeof b.charset==="string"){this.collation=O.fromCharset(b.charset.toLowerCase());if(this.collation===undefined){this.collation=O.fromName(b.charset.toUpperCase());if(this.collation!==undefined){console.log("warning: please use option 'collation' "+"in replacement of 'charset' when using a collation name ('"+b.charset+"')\n"+"(collation looks like 'UTF8MB4_UNICODE_CI', charset like 'utf8').")}}if(this.collation===undefined)throw new RangeError("Unknown charset '"+b.charset+"'")}else if(b.collation&&typeof b.collation==="string"){this.collation=O.fromName(b.collation.toUpperCase());if(this.collation===undefined)throw new RangeError("Unknown collation '"+b.collation+"'")}else{this.collation=O.fromIndex(b.charsetNumber)||O.fromIndex(224)}this.initSql=b.initSql;this.connectTimeout=b.connectTimeout===undefined?1e3:b.connectTimeout;this.connectAttributes=b.connectAttributes||false;this.compress=b.compress||false;this.rsaPublicKey=b.rsaPublicKey;this.cachingRsaPublicKey=b.cachingRsaPublicKey;this.allowPublicKeyRetrieval=b.allowPublicKeyRetrieval||false;this.forceVersionCheck=b.forceVersionCheck||false;this.maxAllowedPacket=b.maxAllowedPacket;this.permitConnectionWhenExpired=b.permitConnectionWhenExpired||false;this.pipelining=b.pipelining;this.timezone=b.timezone||"local";this.socketPath=b.socketPath;this.sessionVariables=b.sessionVariables;this.ssl=b.ssl;if(b.ssl){if(typeof b.ssl!=="boolean"&&typeof b.ssl!=="string"){this.ssl.rejectUnauthorized=b.ssl.rejectUnauthorized!==false}}this.queryTimeout=b.queryTimeout===undefined?0:b.queryTimeout;this.socketTimeout=b.socketTimeout===undefined?0:b.socketTimeout;this.keepAliveDelay=b.keepAliveDelay===undefined?0:b.keepAliveDelay;this.debug=b.debug||false;this.debugCompress=b.debugCompress||false;this.debugLen=b.debugLen||256;this.logPackets=b.logPackets||false;this.trace=b.trace||false;this.checkDuplicate=b.checkDuplicate===undefined?true:b.checkDuplicate;this.dateStrings=b.dateStrings||false;this.foundRows=b.foundRows===undefined||b.foundRows;this.metaAsArray=b.metaAsArray||false;this.multipleStatements=b.multipleStatements||false;this.namedPlaceholders=b.namedPlaceholders||false;this.nestTables=b.nestTables;this.autoJsonMap=b.autoJsonMap===undefined?true:b.autoJsonMap;this.arrayParenthesis=b.arrayParenthesis||false;this.permitSetMultiParamEntries=b.permitSetMultiParamEntries||false;this.rowsAsArray=b.rowsAsArray||false;this.supportBigNumbers=b.supportBigNumbers||false;this.supportBigInt=b.supportBigInt||false;this.skipSetTimezone=b.skipSetTimezone||false;this.typeCast=b.typeCast;if(this.typeCast!==undefined&&typeof this.typeCast!=="function"){this.typeCast=undefined}this.bigNumberStrings=b.bigNumberStrings||false;this.bulk=b.bulk===undefined||b.bulk;if(b.pipelining===undefined){this.permitLocalInfile=b.permitLocalInfile||false;this.pipelining=!this.permitLocalInfile}else{this.pipelining=b.pipelining;if(b.permitLocalInfile===true&&this.pipelining){throw new Error("enabling options `permitLocalInfile` and `pipelining` is not possible, options are incompatible.")}this.permitLocalInfile=this.pipelining?false:b.permitLocalInfile||false}if(this.maxAllowedPacket&&!Number.isInteger(this.maxAllowedPacket)){throw new RangeError("maxAllowedPacket must be an integer. was '"+this.maxAllowedPacket+"'")}if(this.timezone&&this.timezone!=="local"&&this.timezone!=="auto"){let b=this.timezone;if(this.timezone==="Z"){b="Etc/UTC"}else{const z=this.timezone.match(/([+\-\s])(\d\d):?(\d\d)?/);if(z){const p=(z[1]==="-"?1:-1)*Number.parseInt(z[2],10);const O=z.length>2&&z[3]?Number.parseInt(z[3],10):0;if(O>0){throw new RangeError("timezone format incompatible with IANA standard timezone format was '"+this.timezone+"'")}if(p==0){b="Etc/UTC"}else{b="Etc/GMT"+(z[1]==="-"?"+":"")+p}}}this._localTz=e.tz.guess();if(b===this._localTz){this.tz=null}else{this.tz=b;if(!e.tz.zone(b)){throw c.createError("Unknown IANA timezone '"+b+"'.",null,true,null,"08S01",c.ER_WRONG_IANA_TIMEZONE)}}}}static parseOptionDataType(b){if(b.bigNumberStrings)b.bigNumberStrings=b.bigNumberStrings=="true";if(b.bulk)b.bulk=b.bulk=="true";if(b.rsaPublicKey)b.rsaPublicKey=b.rsaPublicKey;if(b.cachingRsaPublicKey)b.cachingRsaPublicKey=b.cachingRsaPublicKey;if(b.logPackets)b.logPackets=b.logPackets=="true";if(b.allowPublicKeyRetrieval)b.allowPublicKeyRetrieval=b.allowPublicKeyRetrieval=="true";if(b.charsetNumber&&!isNaN(Number.parseInt(b.charsetNumber))){b.charsetNumber=Number.parseInt(b.charsetNumber)}if(b.compress)b.compress=b.compress=="true";if(b.connectAttributes)b.connectAttributes=JSON.parse(b.connectAttributes);if(b.connectTimeout)b.connectTimeout=parseInt(b.connectTimeout);if(b.keepAliveDelay)b.keepAliveDelay=parseInt(b.keepAliveDelay);if(b.socketTimeout)b.socketTimeout=parseInt(b.socketTimeout);if(b.dateStrings)b.dateStrings=b.dateStrings=="true";if(b.debug)b.debug=b.debug=="true";if(b.autoJsonMap)b.autoJsonMap=b.autoJsonMap=="true";if(b.arrayParenthesis)b.arrayParenthesis=b.arrayParenthesis=="true";if(b.skipSetTimezone)b.skipSetTimezone=b.skipSetTimezone=="true";if(b.checkDuplicate)b.checkDuplicate=b.checkDuplicate=="true";if(b.debugCompress)b.debugCompress=b.debugCompress=="true";if(b.debugLen)b.debugLen=parseInt(b.debugLen);if(b.queryTimeout)b.queryTimeout=parseInt(b.queryTimeout);if(b.foundRows)b.foundRows=b.foundRows=="true";if(b.maxAllowedPacket&&!isNaN(Number.parseInt(b.maxAllowedPacket)))b.maxAllowedPacket=parseInt(b.maxAllowedPacket);if(b.metaAsArray)b.metaAsArray=b.metaAsArray=="true";if(b.multipleStatements)b.multipleStatements=b.multipleStatements=="true";if(b.namedPlaceholders)b.namedPlaceholders=b.namedPlaceholders=="true";if(b.nestTables)b.nestTables=b.nestTables=="true";if(b.permitSetMultiParamEntries)b.permitSetMultiParamEntries=b.permitSetMultiParamEntries=="true";if(b.pipelining)b.pipelining=b.pipelining=="true";if(b.forceVersionCheck)b.forceVersionCheck=b.forceVersionCheck=="true";if(b.rowsAsArray)b.rowsAsArray=b.rowsAsArray=="true";if(b.supportBigNumbers)b.supportBigNumbers=b.supportBigNumbers=="true";if(b.supportBigInt)b.supportBigInt=b.supportBigInt=="true";if(b.trace)b.trace=b.trace=="true";if(b.ssl&&(b.ssl=="true"||b.ssl=="false"))b.ssl=b.ssl=="true";return b}static parse(b){const z=b.match(o);if(!z){throw new Error("error parsing connection string '"+b+"'. format must be 'mariadb://[<user>[:<password>]@]<host>[:<port>]/[<db>[?<opt1>=<value1>[&<opt2>=<value2>]]]'")}const p={user:z[2]?decodeURIComponent(z[2]):undefined,password:z[4]?decodeURIComponent(z[4]):undefined,host:z[6]?decodeURIComponent(z[6]):z[6],port:z[8]?parseInt(z[8]):undefined,database:z[9]?decodeURIComponent(z[9]):z[9]};const O=z[11];if(O){const b=O.split("&");b.forEach((function(b){const z=b.indexOf("=");if(z!==1){let O=b.substring(z+1);O=O?decodeURIComponent(O):undefined;p[b.substring(0,z)]=O}}))}return this.parseOptionDataType(p)}}b.exports=ConnectionOptions},1859:function(b){"use strict";class PoolClusterOptions{constructor(b){if(b){this.canRetry=b.canRetry===undefined?true:b.canRetry;this.removeNodeErrorCount=b.removeNodeErrorCount||5;this.restoreNodeTimeout=b.restoreNodeTimeout||1e3;this.defaultSelector=b.defaultSelector||"RR"}else{this.canRetry=true;this.removeNodeErrorCount=5;this.restoreNodeTimeout=1e3;this.defaultSelector="RR"}}}b.exports=PoolClusterOptions},9967:function(b,z,p){"use strict";let O=p(9362);class PoolOptions{constructor(b){if(typeof b==="string"){b=O.parse(b);if(b.acquireTimeout)b.acquireTimeout=parseInt(b.acquireTimeout);if(b.connectionLimit)b.connectionLimit=parseInt(b.connectionLimit);if(b.idleTimeout)b.idleTimeout=parseInt(b.idleTimeout);if(b.leakDetectionTimeout)b.leakDetectionTimeout=parseInt(b.leakDetectionTimeout);if(b.initializationTimeout)b.initializationTimeout=parseInt(b.initializationTimeout);if(b.minDelayValidation)b.minDelayValidation=parseInt(b.minDelayValidation);if(b.minimumIdle)b.minimumIdle=parseInt(b.minimumIdle);if(b.noControlAfterUse)b.noControlAfterUse=b.noControlAfterUse=="true";if(b.resetAfterUse)b.resetAfterUse=b.resetAfterUse=="true";if(b.pingTimeout)b.pingTimeout=parseInt(b.pingTimeout)}this.acquireTimeout=b.acquireTimeout===undefined?1e4:b.acquireTimeout;this.connectionLimit=b.connectionLimit===undefined?10:b.connectionLimit;this.idleTimeout=b.idleTimeout||1800;this.leakDetectionTimeout=b.leakDetectionTimeout||0;this.initializationTimeout=b.initializationTimeout===undefined?3e4:b.initializationTimeout;this.minDelayValidation=b.minDelayValidation===undefined?500:b.minDelayValidation;this.minimumIdle=b.minimumIdle===undefined?this.connectionLimit:Math.min(b.minimumIdle,this.connectionLimit);this.noControlAfterUse=b.noControlAfterUse||false;this.resetAfterUse=b.resetAfterUse===undefined?true:b.resetAfterUse;this.pingTimeout=b.pingTimeout||250;this.connOptions=new O(b);if(this.acquireTimeout>0&&this.connOptions.connectTimeout>this.acquireTimeout){this.connOptions.connectTimeout=this.acquireTimeout}}}b.exports=PoolOptions},5903:function(b,z,p){"use strict";const O=p(2939);const o=p(3837);const e=p(1450);const{Status:c}=p(2584);function ConnectionCallback(b){O.call(this,b);let z=1;const p=this.connect.bind(this);const o=this.changeUser.bind(this);const t=this.query.bind(this);const i=this.end.bind(this);const n=this.ping.bind(this);const s=this.reset.bind(this);const a=this.commit.bind(this);const r=this.rollback.bind(this);const emptySuccess=b=>{};const emptyError=b=>{};const _commitCallback=b=>{a().then((()=>{if(b)b(null,null,null)})).catch(b||emptyError)};const _rollbackCallback=b=>{r().then((()=>{if(b)b(null,null,null)})).catch(b||emptyError)};const _pingCallback=(b,z)=>{let p,O;if(typeof b==="function"){O=b;p=undefined}else{p=b;O=z}n(p).then(O||emptySuccess).catch(O||emptyError)};const _resetCallback=b=>{s().then(b||emptySuccess).catch(b||emptyError)};const _beginTransactionCallback=b=>{t("START TRANSACTION").then((()=>{if(b)b(null,null,null)})).catch(b||emptyError)};const _endCallback=b=>{i().then(b||emptySuccess).catch(b||emptyError)};const _connectCallback=function(b){if(!b){throw new e.createError("missing callback parameter",null,false,this.info,"HY000",e.ER_MISSING_PARAMETER)}if(z===1){this.on("connect",b)}else{switch(this._status()){case c.CLOSING:case c.CLOSED:b(e.createError("Connection closed",null,true,this.info,"08S01",e.ER_CONNECTION_ALREADY_CLOSED));break;default:b()}}};const _changeUserCallback=(b,z)=>{let p,O;if(typeof b==="function"){O=b;p=undefined}else{p=b;O=z}o(p).then((()=>{if(O)O(null,null,null)})).catch(O||emptyError)};this.commit=_commitCallback;this.rollback=_rollbackCallback;this.ping=_pingCallback;this.reset=_resetCallback;this.end=_endCallback;this.connect=_connectCallback;this.changeUser=_changeUserCallback;this.query=this._queryCallback;this.batch=this._batchCallback;this.beginTransaction=_beginTransactionCallback;const q=this;p().then((()=>{z=0;q.emit("connect")})).catch((b=>{z=0;q.emit("connect",b)}))}o.inherits(ConnectionCallback,O);b.exports=ConnectionCallback},2939:function(b,z,p){"use strict";const O=p(2361);const o=p(3837);const e=p(2342);const c=p(1808);const t=p(1516);const i=p(1412);const n=p(8234);const s=p(4997);const a=p(386);const r=p(9994);const q=p(4404);const d=p(1450);const W=p(2245);const f=p(9248);const R=p(7936);const u=p(5427);const l=p(2713);const _=p(3136);const h=p(4731);const N=p(9335);const E=p(5891);const L=p(89);const T=p(7516);const B=p(6044);const{Status:m}=p(2584);function Connection(b){this.connect=()=>{switch(C){case m.NOT_CONNECTED:C=m.CONNECTING;return new Promise((function(b,z){_registerHandshakeCmd(b,z)}));case m.CLOSING:case m.CLOSED:return Promise.reject(d.createError("Connection closed",null,true,p,"08S01",d.ER_CONNECTION_ALREADY_CLOSED));case m.CONNECTING:case m.AUTHENTICATING:return Promise.reject(d.createError("Connection is already connecting",null,true,p,"08S01",d.ER_ALREADY_CONNECTING))}return Promise.resolve(this)};this.changeUser=b=>{if(!p.isMariaDB()){return Promise.reject(d.createError("method changeUser not available for MySQL server due to Bug #83472",null,false,p,"0A000",d.ER_MYSQL_CHANGE_USER_BUG))}return new Promise((function(p,O){w(new B(b,(O=>{if(b&&b.collation)z.collation=b.collation;p(O)}),_authFailHandler.bind(this,O),w.bind(this)))}))};this.beginTransaction=()=>this.query("START TRANSACTION");this.commit=()=>_changeTransaction("COMMIT");this.rollback=()=>_changeTransaction("ROLLBACK");this._queryPromise=(b,p)=>{let O,o,e=p;if(typeof b==="object"){O=b;o=O.sql;if(O.values)e=O.values}else{o=b}return new Promise((function(b,p){const c=new N(b,p,O,z,o,e);if(z.trace)Error.captureStackTrace(c);w(c)}))};this.batch=(b,O)=>{let o,e,c=O;if(typeof b==="object"){o=b;e=o.sql;if(o.values)c=o.values}else{e=b}if(!c){return Promise.reject(d.createError("Batch must have values set",e,false,p,"HY000",d.ER_BATCH_WITH_NO_VALUES))}const t=Array.isArray(c)?c:[c];return new Promise((function(b,p){let O=canUseBulk(t);const c=O?new L(b,p,o,z,e,t):new E(b,p,o,z,e,t);if(z.trace)Error.captureStackTrace(c);w(c)}))};this.queryStream=(b,p)=>{let O,o,e=p;if(typeof b==="object"){O=b;o=O.sql;if(b.values)e=b.values}else{o=b}const c=new T(O,z,o,e,D);if(z.trace)Error.captureStackTrace(c);w(c);return c.inStream};this.ping=b=>new Promise((function(z,O){if(b){if(b<0){O(d.createError("Ping cannot have negative timeout value",null,false,p,"0A000",d.ER_BAD_PARAMETER_VALUE));return}const e=setTimeout((()=>{O(d.createError("Ping timeout",null,true,p,"0A000",d.ER_PING_TIMEOUT));w=_addCommandDisabled;clearTimeout(P);if(C!==m.CLOSING&&C!==m.CLOSED){o.clear();C=m.CLOSED;D.destroy()}_clear()}),b);return w(new _((()=>{clearTimeout(e);z()}),(b=>{clearTimeout(e);O(b)})))}return w(new _(z,O))}));this.reset=()=>{if(p.isMariaDB()&&p.hasMinVersion(10,2,4)||!p.isMariaDB()&&p.hasMinVersion(5,7,3)){return new Promise((function(b,z){return w(new h(b,z))}))}return Promise.reject(new Error("Reset command not permitted for server "+this.info.serverVersion+" (requires server MariaDB version 10.2.4+ or MySQL 5.7.3+)"))};this.isValid=()=>C===m.CONNECTED;this.end=()=>{w=_addCommandDisabled;clearTimeout(P);if(C!==m.CLOSING&&C!==m.CLOSED&&C!==m.NOT_CONNECTED){C=m.CLOSING;return new Promise((function(b,z){const ended=()=>{C=m.CLOSED;D.destroy();D.unref();_clear();g.clear();b()};const p=new l(ended,ended);o.push(p);g.push(p);if(o.length===1){process.nextTick(_nextSendCmd.bind(this))}}))}return Promise.resolve()};this.close=function(){this.destroy()};this.destroy=()=>{w=_addCommandDisabled;clearTimeout(P);if(C!==m.CLOSING&&C!==m.CLOSED){C=m.CLOSING;o.clear();if(g.length>0){const b=this;const O=new Connection(z);O.connect().then((()=>{const killResHandler=()=>{const b=d.createError("Connection destroyed, command was killed",null,true,p,"08S01",d.ER_CMD_NOT_EXECUTED_DESTROYED);socketErrorDispatchToQueries(b);process.nextTick((()=>{if(D)D.destroy()}));C=m.CLOSED;O.end().catch((()=>{}))};O.query("KILL "+p.threadId).then(killResHandler).catch(killResHandler)})).catch((z=>{const ended=()=>{let b=D;_clear();C=m.CLOSED;setImmediate(resolve);b.destroy();g.clear()};const p=new l(ended,ended);o.push(p);g.push(p);if(o.length===1){process.nextTick(_nextSendCmd.bind(b))}}))}else{C=m.CLOSED;D.destroy()}}_clear()};this.pause=()=>{D.pause()};this.resume=()=>{D.resume()};this.format=(b,z)=>{throw d.createError('"Connection.format intentionally not implemented. please use Connection.query(sql, values), it will be more secure and faster',null,false,p,"0A000",d.ER_NOT_IMPLEMENTED_FORMAT)};this.serverVersion=()=>{if(!p.serverVersion)throw new Error("cannot know if server information until connection is established");return p.serverVersion.raw};this.debug=b=>{z.debug=b;z.emit("debug",z.logPackets,z.debug)};this.debugCompress=b=>{z.debugCompress=b};function TestMethods(){}TestMethods.prototype.getCollation=()=>z.collation;TestMethods.prototype.getSocket=()=>D;this.__tests=new TestMethods;this._status=()=>C;this._queryCallback=(b,p,O)=>{let o,e,c=p,t=O;if(typeof p==="function"){t=p;c=undefined}if(typeof b==="object"){o=b;e=o.sql;if(b.values)c=b.values}else{e=b}let i;if(t){const resolve=b=>{const z=b.meta;delete b.meta;t(null,b,z)};i=new N(resolve,t,o,z,e,c)}else{i=new N((()=>{}),(()=>{}),o,z,e,c)}i.handleNewRows=b=>{i._rows[i._responseIndex].push(b);i.emit("data",b)};if(z.trace)Error.captureStackTrace(i);w(i);return i};this._batchCallback=(b,O,o)=>{let e,c,t=O,i=o;if(typeof O==="function"){i=O;t=undefined}if(typeof b==="object"){e=b;c=e.sql;if(b.values)t=b.values}else{c=b}if(t!==undefined){t=Array.isArray(t)?t:[t]}let n;if(!t){if(i){i(d.createError("Batch must have values set",c,false,p,"HY000",d.ER_BATCH_WITH_NO_VALUES))}return null}let s=canUseBulk(t);const a=s?L:E;if(i){const resolve=b=>{const z=b.meta;delete b.meta;i(null,b,z)};n=new a(resolve,i,e,z,c,t)}else{n=new a((()=>{}),(()=>{}),e,z,c,t)}n.handleNewRows=b=>{n._rows[n._responseIndex].push(b);n.emit("data",b)};if(z.trace)Error.captureStackTrace(n);w(n);return n};const canUseBulk=b=>{let O=p.serverVersion&&p.serverVersion.mariaDb&&p.hasMinVersion(10,2,7)&&z.bulk&&(p.serverCapabilities&f.MARIADB_CLIENT_STMT_BULK_OPERATIONS)>BigInt(0);if(O){if(b!==undefined){if(!z.namedPlaceholders){const z=Array.isArray(b[0])?b[0].length:b[0]?1:0;if(z==0)return false;for(let p=0;p<b.length;p++){let O=b[p];if(!Array.isArray(O))O=[O];if(z!==O.length){return false}for(let b=0;b<z;b++){const z=O[b];if(z!==null&&typeof z==="object"&&typeof z.pipe==="function"&&typeof z.read==="function"){return false}}}}else{for(let z=0;z<b.length;z++){let p=b[z];const O=Object.keys(p);for(let b=0;b<O.length;b++){const z=p[O[b]];if(z!==null&&typeof z==="object"&&typeof z.pipe==="function"&&typeof z.read==="function"){return false}}}}}}return O};const _registerHandshakeCmd=(b,z)=>{const p=_authFailHandler.bind(this,z);const O=_authSucceedHandler.bind(this,b,p);const o=new u(O,p,_createSecureContext.bind(this,p),_addCommandEnable.bind(this),_getSocket);Error.captureStackTrace(o);o.once("end",(()=>{process.nextTick(_nextSendCmd)}));g.push(o);_initSocket(p)};const _executeSessionVariableQuery=()=>{if(z.sessionVariables){const b=[];let O="set ";let o=Object.keys(z.sessionVariables);if(o.length>0){return new Promise((function(e,c){for(let p=0;p<o.length;++p){O+=(p!==0?",":"")+"@@"+o[p].replace(/[^a-z0-9_]/gi,"")+"=?";b.push(z.sessionVariables[o[p]])}const errorHandling=b=>{c(d.createError("Error setting session variable (value "+JSON.stringify(z.sessionVariables)+"). Error: "+b.message,O,true,p,"08S01",d.ER_SETTING_SESSION_ERROR,null))};const t=new N(e,errorHandling,null,z,O,b);if(z.trace)Error.captureStackTrace(t);w(t)}))}}return Promise.resolve()};const _checkServerTimezone=()=>{if(z.timezone==="auto"){return this._queryPromise("SELECT @@system_time_zone stz, @@time_zone tz").then((b=>{const O=b[0].tz==="SYSTEM"?b[0].stz:b[0].tz;const o=R.tz.zone(O);if(o){const b=R.tz.guess();if(O===b){z.tz=null}else{z._localTz=b;z.tz=O}}else{return Promise.reject(d.createError("Automatic timezone setting fails. Server timezone '"+O+"' does't have a corresponding IANA timezone. Option timezone must be set according to server timezone",null,true,p,"08S01",d.ER_WRONG_AUTO_TIMEZONE))}return Promise.resolve()}))}if(z.tz&&!z.skipSetTimezone){let b=z.tz;if(z.tz==="Etc/UTC"){b="+00:00"}else if(z.tz.startsWith("Etc/GMT")){let p=R.tz.zone(z.tz);b=p.abbrs[0]+":00"}return this._queryPromise("SET time_zone=?",b).then((b=>Promise.resolve())).catch((b=>{console.log(`warning: setting timezone '${z.tz}' fails on server.\n look at https://mariadb.com/kb/en/mysql_tzinfo_to_sql/ to load IANA timezone.\nSetting timezone can be disabled with option \`skipSetTimezone\``);return Promise.resolve()}))}return Promise.resolve()};const _checkServerVersion=()=>{if(!z.forceVersionCheck){return Promise.resolve()}return this._queryPromise("SELECT @@VERSION AS v").then((b=>{p.serverVersion.raw=b[0].v;p.serverVersion.mariaDb=p.serverVersion.raw.includes("MariaDB");r.parseVersionString(p);return Promise.resolve()}))};const _executeInitQuery=()=>{if(z.initSql){const b=Array.isArray(z.initSql)?z.initSql:[z.initSql];const O=[];b.forEach((b=>{O.push(this._queryPromise(b))}));return Promise.all(O).catch((b=>Promise.reject(d.createError("Error executing initial sql command: "+b.message,null,true,p,"08S01",d.ER_INITIAL_SQL_ERROR,null))))}return Promise.resolve()};const _executeSessionTimeout=()=>{if(z.queryTimeout){if(p.isMariaDB()&&p.hasMinVersion(10,1,2)){const b="SET max_statement_time="+z.queryTimeout/1e3;this._queryPromise(b).catch((z=>Promise.reject(d.createError("Error setting session queryTimeout: "+z.message,b,true,p,"08S01",d.ER_INITIAL_TIMEOUT_ERROR,null))))}else{return Promise.reject(d.createError("Can only use queryTimeout for MariaDB server after 10.1.1. queryTimeout value: "+null,z.queryTimeout,false,p,"HY000",d.ER_TIMEOUT_NOT_SUPPORTED))}}return Promise.resolve()};const _getSocket=()=>D;const _initSocket=b=>{if(z.socketPath){D=c.connect(z.socketPath)}else{D=c.connect(z.port,z.host)}if(z.connectTimeout){P=setTimeout(_connectTimeoutReached,z.connectTimeout,b,Date.now())}const p=_socketErrorHandler.bind(this,b);D.on("data",y.onData.bind(y));D.on("error",p);D.on("end",p);D.on("connect",function(){clearTimeout(P);if(C===m.CONNECTING){C=m.AUTHENTICATING;X=true;D.setTimeout(z.socketTimeout,_socketTimeoutReached.bind(this,b));D.setNoDelay(true);if(z.keepAliveDelay){D.setKeepAlive(true,z.keepAliveDelay)}}}.bind(this));D.writeBuf=b=>D.write(b);D.flush=()=>{};k.setStream(D)};const _authSucceedHandler=(b,O)=>{if(z.logPackets)p.enableLogPacket();if(z.compress){if(p.serverCapabilities&f.COMPRESS){k.setStream(new s(D,z,p));y=new n(y,g,z,p);D.removeAllListeners("data");D.on("data",y.onData.bind(y))}else{console.error("connection is configured to use packet compression, but the server doesn't have this capability")}}w=z.pipelining?_addCommandEnablePipeline:_addCommandEnable;const o=I.toArray();o.forEach((b=>{w(b)}));const errorInitialQueries=b=>{if(!b.fatal)this.end().catch((b=>{}));process.nextTick(O,b)};C=m.INIT_CMD;_executeSessionVariableQuery().then((()=>_checkServerTimezone())).then((()=>_checkServerVersion())).then((()=>_executeInitQuery())).then((()=>_executeSessionTimeout())).then((()=>{C=m.CONNECTED;process.nextTick(b,this)})).catch(errorInitialQueries)};const _authFailHandler=(b,z)=>{process.nextTick(b,z);g.shift();U(z,true)};const _createSecureContext=(b,p)=>{const O=_socketErrorHandler.bind(this,b);const o=Object.assign({},z.ssl,{servername:z.host,socket:D});try{const b=q.connect(o,p);b.on("data",y.onData.bind(y));b.on("error",O);b.on("end",O);b.writeBuf=z=>b.write(z);b.flush=()=>{};D.removeAllListeners("data");D=b;k.setStream(b)}catch(b){O(b)}};const _unexpectedPacket=function(b){if(b&&b.peek()===255){let z=b.readError(p);if(z.fatal&&C!==m.CLOSING&&C!==m.CLOSED){this.emit("error",z);this.end()}}else if(C!==m.CLOSING&&C!==m.CLOSED){this.emit("error",d.createError("receiving packet from server without active commands\n"+"conn:"+(p.threadId?p.threadId:-1)+"("+b.pos+","+b.end+")\n"+W.log(z,b.buf,b.pos,b.end),null,true,p,"08S01",d.ER_UNEXPECTED_PACKET));this.destroy()}};const _changeTransaction=b=>{if(C===m.CLOSING||C===m.CLOSED){return Promise.reject(d.createError("Cannot execute new commands: connection closed",b,true,p,"08S01",d.ER_CMD_CONNECTION_CLOSED))}if(g.peekFront()||p.status&a.STATUS_IN_TRANS){return new Promise((function(p,O){const o=new N(p,O,null,z,b,null);if(z.trace)Error.captureStackTrace(o);w(o)}))}return Promise.resolve()};const _connectTimeoutReached=function(b,z){P=null;const O=g.peekFront();b(d.createError("Connection timeout: failed to create socket after "+(Date.now()-z)+"ms",null,true,p,"08S01",d.ER_CONNECTION_TIMEOUT,O?O.stack:null))};const _socketTimeoutReached=function(){const b=d.createError("socket timeout",null,true,p,"08S01",d.ER_SOCKET_TIMEOUT);const z=p.getLastPackets();if(z!==""){b.message=b.message+"\nlast received packets:\n"+z}U(b,true)};const _addCommandQueue=b=>{I.push(b);return b};const _addCommandEnable=b=>{b.once("end",(()=>{setImmediate(_nextSendCmd)}));if(o.isEmpty()&&(C===m.INIT_CMD||C===m.CONNECTED)){if(g.peekFront()){g.push(b);o.push(b);return b}g.push(b);b.start(k,z,p)}else{g.push(b);o.push(b)}return b};const _addCommandEnablePipeline=b=>{b.once("send_end",(()=>{setImmediate(_nextSendCmd)}));g.push(b);if(o.isEmpty()){b.start(k,z,p);if(b.sending){o.push(b);b.prependOnceListener("send_end",(()=>{o.shift()}))}}else{o.push(b)}return b};const _addCommandDisabled=b=>{b.throwNewError("Cannot execute new commands: connection closed",true,p,"08S01",d.ER_CMD_CONNECTION_CLOSED)};const _socketErrorHandler=function(b,z){if(C===m.CLOSING||C===m.CLOSED)return;if(D){D.writeBuf=()=>{};D.flush=()=>{}}if(!z){z=d.createError("socket has unexpectedly been closed",null,true,p,"08S01",d.ER_SOCKET_UNEXPECTED_CLOSE)}else{z.fatal=true;this.sqlState="HY000"}const O=p.getLastPackets();if(O!==""){z.message+="\nlast received packets:\n"+O}switch(C){case m.CONNECTING:case m.AUTHENTICATING:const p=g.peekFront();if(p&&p.stack&&z){z.stack+="\n From event:\n"+p.stack.substring(p.stack.indexOf("\n")+1)}b(z);break;default:U(z,false)}};const _fatalErrorHandler=function(b){return function(z,p){if(C===m.CLOSING||C===m.CLOSED){socketErrorDispatchToQueries(z);return}const O=C!==m.CONNECTING;C=m.CLOSING;w=_addCommandDisabled;if(D){D.removeAllListeners("error");D.removeAllListeners("timeout");D.removeAllListeners("close");D.removeAllListeners("data");if(!D.destroyed)D.destroy();D=undefined}C=m.CLOSED;const o=socketErrorDispatchToQueries(z);if(O){if(b.listenerCount("error")>0){b.emit("error",z);b.emit("end");_clear()}else{b.emit("end");_clear();if(!p&&!o)throw z}}else{_clear()}}};const socketErrorDispatchToQueries=b=>{let z;let O=false;while(z=g.shift()){if(z&&z.onPacketReceive){O=true;setImmediate(z.throwError.bind(z),b,p)}}return O};const _nextSendCmd=()=>{let b;if(b=o.shift()){if(b.sending){o.unshift(b)}else{b.start(k,z,p);if(b.sending){b.prependOnceListener("send_end",(()=>{o.shift()}));o.unshift(b)}}}};const _clear=()=>{o.clear();z.removeAllListeners();k=undefined;D=undefined};O.call(this);const z=Object.assign(new O,b);const p=new r;const o=new e;const g=new e;const I=new e;let C=m.NOT_CONNECTED;let X=false;let D=null;let P=null;let w=_addCommandQueue;const U=_fatalErrorHandler(this);let k=new i(z,p);let y=new t(_unexpectedPacket.bind(this),g,k,z,p);this.query=this._queryPromise;this.escape=W.escape.bind(this,z,p);this.escapeId=W.escapeId.bind(this,z,p);Object.defineProperty(this,"threadId",{get(){return p?p.threadId:undefined}});Object.defineProperty(this,"info",{get(){return p}})}o.inherits(Connection,O);b.exports=Connection},9248:function(b){b.exports.MYSQL=BigInt(1);b.exports.FOUND_ROWS=BigInt(2);b.exports.LONG_FLAG=BigInt(4);b.exports.CONNECT_WITH_DB=BigInt(8);b.exports.NO_SCHEMA=BigInt(1)<<BigInt(4);b.exports.COMPRESS=BigInt(1)<<BigInt(5);b.exports.ODBC=BigInt(1)<<BigInt(6);b.exports.LOCAL_FILES=BigInt(1)<<BigInt(7);b.exports.IGNORE_SPACE=BigInt(1)<<BigInt(8);b.exports.PROTOCOL_41=BigInt(1)<<BigInt(9);b.exports.INTERACTIVE=BigInt(1)<<BigInt(10);b.exports.SSL=BigInt(1)<<BigInt(11);b.exports.IGNORE_SIGPIPE=BigInt(1)<<BigInt(12);b.exports.TRANSACTIONS=BigInt(1)<<BigInt(13);b.exports.RESERVED=BigInt(1)<<BigInt(14);b.exports.SECURE_CONNECTION=BigInt(1)<<BigInt(15);b.exports.MULTI_STATEMENTS=BigInt(1)<<BigInt(16);b.exports.MULTI_RESULTS=BigInt(1)<<BigInt(17);b.exports.PS_MULTI_RESULTS=BigInt(1)<<BigInt(18);b.exports.PLUGIN_AUTH=BigInt(1)<<BigInt(19);b.exports.CONNECT_ATTRS=BigInt(1)<<BigInt(20);b.exports.PLUGIN_AUTH_LENENC_CLIENT_DATA=BigInt(1)<<BigInt(21);b.exports.CAN_HANDLE_EXPIRED_PASSWORDS=BigInt(1)<<BigInt(22);b.exports.SESSION_TRACK=BigInt(1)<<BigInt(23);b.exports.DEPRECATE_EOF=BigInt(1)<<BigInt(24);b.exports.SSL_VERIFY_SERVER_CERT=BigInt(1)<<BigInt(30);b.exports.MARIADB_CLIENT_STMT_BULK_OPERATIONS=BigInt(1)<<BigInt(34);b.exports.MARIADB_CLIENT_EXTENDED_TYPE_INFO=BigInt(1)<<BigInt(35)},2055:function(b){"use strict";let z=[];let p=[];class Collation{constructor(b,z,p,O){this.index=b;this.name=z;this.charset=p}static fromCharset(b){return p[b]}static fromIndex(b){if(b>=z.length)return undefined;return z[b]}static fromName(b){for(let p=0;p<z.length;p++){let O=z[p];if(O&&O.name===b){return O}}return undefined}}z[1]=new Collation(1,"BIG5_CHINESE_CI","big5",2);z[2]=new Collation(2,"LATIN2_CZECH_CS","latin2",1);z[3]=new Collation(3,"DEC8_SWEDISH_CI","dec8",1);z[4]=new Collation(4,"CP850_GENERAL_CI","cp850",1);z[5]=new Collation(5,"LATIN1_GERMAN1_CI","latin1",1);z[6]=new Collation(6,"HP8_ENGLISH_CI","hp8",1);z[7]=new Collation(7,"KOI8R_GENERAL_CI","koi8r",1);z[8]=new Collation(8,"LATIN1_SWEDISH_CI","latin1",1);z[9]=new Collation(9,"LATIN2_GENERAL_CI","latin2",1);z[10]=new Collation(10,"SWE7_SWEDISH_CI","swe7",1);z[11]=new Collation(11,"ASCII_GENERAL_CI","ascii",1);z[12]=new Collation(12,"UJIS_JAPANESE_CI","ujis",3);z[13]=new Collation(13,"SJIS_JAPANESE_CI","sjis",2);z[14]=new Collation(14,"CP1251_BULGARIAN_CI","cp1251",1);z[15]=new Collation(15,"LATIN1_DANISH_CI","latin1",1);z[16]=new Collation(16,"HEBREW_GENERAL_CI","hebrew",1);z[18]=new Collation(18,"TIS620_THAI_CI","tis620",1);z[19]=new Collation(19,"EUCKR_KOREAN_CI","euckr",2);z[20]=new Collation(20,"LATIN7_ESTONIAN_CS","latin7",1);z[21]=new Collation(21,"LATIN2_HUNGARIAN_CI","latin2",1);z[22]=new Collation(22,"KOI8U_GENERAL_CI","koi8u",1);z[23]=new Collation(23,"CP1251_UKRAINIAN_CI","cp1251",1);z[24]=new Collation(24,"GB2312_CHINESE_CI","gb2312",2);z[25]=new Collation(25,"GREEK_GENERAL_CI","greek",1);z[26]=new Collation(26,"CP1250_GENERAL_CI","cp1250",1);z[27]=new Collation(27,"LATIN2_CROATIAN_CI","latin2",1);z[28]=new Collation(28,"GBK_CHINESE_CI","gbk",2);z[29]=new Collation(29,"CP1257_LITHUANIAN_CI","cp1257",1);z[30]=new Collation(30,"LATIN5_TURKISH_CI","latin5",1);z[31]=new Collation(31,"LATIN1_GERMAN2_CI","latin1",1);z[32]=new Collation(32,"ARMSCII8_GENERAL_CI","armscii8",1);z[33]=new Collation(33,"UTF8_GENERAL_CI","utf8",3);z[34]=new Collation(34,"CP1250_CZECH_CS","cp1250",1);z[35]=new Collation(35,"UCS2_GENERAL_CI","ucs2",2);z[36]=new Collation(36,"CP866_GENERAL_CI","cp866",1);z[37]=new Collation(37,"KEYBCS2_GENERAL_CI","keybcs2",1);z[38]=new Collation(38,"MACCE_GENERAL_CI","macce",1);z[39]=new Collation(39,"MACROMAN_GENERAL_CI","macroman",1);z[40]=new Collation(40,"CP852_GENERAL_CI","cp852",1);z[41]=new Collation(41,"LATIN7_GENERAL_CI","latin7",1);z[42]=new Collation(42,"LATIN7_GENERAL_CS","latin7",1);z[43]=new Collation(43,"MACCE_BIN","macce",1);z[44]=new Collation(44,"CP1250_CROATIAN_CI","cp1250",1);z[45]=new Collation(45,"UTF8MB4_GENERAL_CI","utf8",4);z[46]=new Collation(46,"UTF8MB4_BIN","utf8",4);z[47]=new Collation(47,"LATIN1_BIN","latin1",1);z[48]=new Collation(48,"LATIN1_GENERAL_CI","latin1",1);z[49]=new Collation(49,"LATIN1_GENERAL_CS","latin1",1);z[50]=new Collation(50,"CP1251_BIN","cp1251",1);z[51]=new Collation(51,"CP1251_GENERAL_CI","cp1251",1);z[52]=new Collation(52,"CP1251_GENERAL_CS","cp1251",1);z[53]=new Collation(53,"MACROMAN_BIN","macroman",1);z[54]=new Collation(54,"UTF16_GENERAL_CI","utf16",4);z[55]=new Collation(55,"UTF16_BIN","utf16",4);z[56]=new Collation(56,"UTF16LE_GENERAL_CI","utf16le",4);z[57]=new Collation(57,"CP1256_GENERAL_CI","cp1256",1);z[58]=new Collation(58,"CP1257_BIN","cp1257",1);z[59]=new Collation(59,"CP1257_GENERAL_CI","cp1257",1);z[60]=new Collation(60,"UTF32_GENERAL_CI","utf32",4);z[61]=new Collation(61,"UTF32_BIN","utf32",4);z[62]=new Collation(62,"UTF16LE_BIN","utf16le",4);z[63]=new Collation(63,"BINARY","binary",1);z[64]=new Collation(64,"ARMSCII8_BIN","armscii8",1);z[65]=new Collation(65,"ASCII_BIN","ascii",1);z[66]=new Collation(66,"CP1250_BIN","cp1250",1);z[67]=new Collation(67,"CP1256_BIN","cp1256",1);z[68]=new Collation(68,"CP866_BIN","cp866",1);z[69]=new Collation(69,"DEC8_BIN","dec8",1);z[70]=new Collation(70,"GREEK_BIN","greek",1);z[71]=new Collation(71,"HEBREW_BIN","hebrew",1);z[72]=new Collation(72,"HP8_BIN","hp8",1);z[73]=new Collation(73,"KEYBCS2_BIN","keybcs2",1);z[74]=new Collation(74,"KOI8R_BIN","koi8r",1);z[75]=new Collation(75,"KOI8U_BIN","koi8u",1);z[76]=new Collation(76,"UTF8_TOLOWER_CI","utf8",3);z[77]=new Collation(77,"LATIN2_BIN","latin2",1);z[78]=new Collation(78,"LATIN5_BIN","latin5",1);z[79]=new Collation(79,"LATIN7_BIN","latin7",1);z[80]=new Collation(80,"CP850_BIN","cp850",1);z[81]=new Collation(81,"CP852_BIN","cp852",1);z[82]=new Collation(82,"SWE7_BIN","swe7",1);z[83]=new Collation(83,"UTF8_BIN","utf8",3);z[84]=new Collation(84,"BIG5_BIN","big5",2);z[85]=new Collation(85,"EUCKR_BIN","euckr",2);z[86]=new Collation(86,"GB2312_BIN","gb2312",2);z[87]=new Collation(87,"GBK_BIN","gbk",2);z[88]=new Collation(88,"SJIS_BIN","sjis",2);z[89]=new Collation(89,"TIS620_BIN","tis620",1);z[90]=new Collation(90,"UCS2_BIN","ucs2",2);z[91]=new Collation(91,"UJIS_BIN","ujis",3);z[92]=new Collation(92,"GEOSTD8_GENERAL_CI","geostd8",1);z[93]=new Collation(93,"GEOSTD8_BIN","geostd8",1);z[94]=new Collation(94,"LATIN1_SPANISH_CI","latin1",1);z[95]=new Collation(95,"CP932_JAPANESE_CI","cp932",2);z[96]=new Collation(96,"CP932_BIN","cp932",2);z[97]=new Collation(97,"EUCJPMS_JAPANESE_CI","eucjpms",3);z[98]=new Collation(98,"EUCJPMS_BIN","eucjpms",3);z[99]=new Collation(99,"CP1250_POLISH_CI","cp1250",1);z[101]=new Collation(101,"UTF16_UNICODE_CI","utf16",4);z[102]=new Collation(102,"UTF16_ICELANDIC_CI","utf16",4);z[103]=new Collation(103,"UTF16_LATVIAN_CI","utf16",4);z[104]=new Collation(104,"UTF16_ROMANIAN_CI","utf16",4);z[105]=new Collation(105,"UTF16_SLOVENIAN_CI","utf16",4);z[106]=new Collation(106,"UTF16_POLISH_CI","utf16",4);z[107]=new Collation(107,"UTF16_ESTONIAN_CI","utf16",4);z[108]=new Collation(108,"UTF16_SPANISH_CI","utf16",4);z[109]=new Collation(109,"UTF16_SWEDISH_CI","utf16",4);z[110]=new Collation(110,"UTF16_TURKISH_CI","utf16",4);z[111]=new Collation(111,"UTF16_CZECH_CI","utf16",4);z[112]=new Collation(112,"UTF16_DANISH_CI","utf16",4);z[113]=new Collation(113,"UTF16_LITHUANIAN_CI","utf16",4);z[114]=new Collation(114,"UTF16_SLOVAK_CI","utf16",4);z[115]=new Collation(115,"UTF16_SPANISH2_CI","utf16",4);z[116]=new Collation(116,"UTF16_ROMAN_CI","utf16",4);z[117]=new Collation(117,"UTF16_PERSIAN_CI","utf16",4);z[118]=new Collation(118,"UTF16_ESPERANTO_CI","utf16",4);z[119]=new Collation(119,"UTF16_HUNGARIAN_CI","utf16",4);z[120]=new Collation(120,"UTF16_SINHALA_CI","utf16",4);z[121]=new Collation(121,"UTF16_GERMAN2_CI","utf16",4);z[122]=new Collation(122,"UTF16_CROATIAN_MYSQL561_CI","utf16",4);z[123]=new Collation(123,"UTF16_UNICODE_520_CI","utf16",4);z[124]=new Collation(124,"UTF16_VIETNAMESE_CI","utf16",4);z[128]=new Collation(128,"UCS2_UNICODE_CI","ucs2",2);z[129]=new Collation(129,"UCS2_ICELANDIC_CI","ucs2",2);z[130]=new Collation(130,"UCS2_LATVIAN_CI","ucs2",2);z[131]=new Collation(131,"UCS2_ROMANIAN_CI","ucs2",2);z[132]=new Collation(132,"UCS2_SLOVENIAN_CI","ucs2",2);z[133]=new Collation(133,"UCS2_POLISH_CI","ucs2",2);z[134]=new Collation(134,"UCS2_ESTONIAN_CI","ucs2",2);z[135]=new Collation(135,"UCS2_SPANISH_CI","ucs2",2);z[136]=new Collation(136,"UCS2_SWEDISH_CI","ucs2",2);z[137]=new Collation(137,"UCS2_TURKISH_CI","ucs2",2);z[138]=new Collation(138,"UCS2_CZECH_CI","ucs2",2);z[139]=new Collation(139,"UCS2_DANISH_CI","ucs2",2);z[140]=new Collation(140,"UCS2_LITHUANIAN_CI","ucs2",2);z[141]=new Collation(141,"UCS2_SLOVAK_CI","ucs2",2);z[142]=new Collation(142,"UCS2_SPANISH2_CI","ucs2",2);z[143]=new Collation(143,"UCS2_ROMAN_CI","ucs2",2);z[144]=new Collation(144,"UCS2_PERSIAN_CI","ucs2",2);z[145]=new Collation(145,"UCS2_ESPERANTO_CI","ucs2",2);z[146]=new Collation(146,"UCS2_HUNGARIAN_CI","ucs2",2);z[147]=new Collation(147,"UCS2_SINHALA_CI","ucs2",2);z[148]=new Collation(148,"UCS2_GERMAN2_CI","ucs2",2);z[149]=new Collation(149,"UCS2_CROATIAN_MYSQL561_CI","ucs2",2);z[150]=new Collation(150,"UCS2_UNICODE_520_CI","ucs2",2);z[151]=new Collation(151,"UCS2_VIETNAMESE_CI","ucs2",2);z[159]=new Collation(159,"UCS2_GENERAL_MYSQL500_CI","ucs2",2);z[160]=new Collation(160,"UTF32_UNICODE_CI","utf32",4);z[161]=new Collation(161,"UTF32_ICELANDIC_CI","utf32",4);z[162]=new Collation(162,"UTF32_LATVIAN_CI","utf32",4);z[163]=new Collation(163,"UTF32_ROMANIAN_CI","utf32",4);z[164]=new Collation(164,"UTF32_SLOVENIAN_CI","utf32",4);z[165]=new Collation(165,"UTF32_POLISH_CI","utf32",4);z[166]=new Collation(166,"UTF32_ESTONIAN_CI","utf32",4);z[167]=new Collation(167,"UTF32_SPANISH_CI","utf32",4);z[168]=new Collation(168,"UTF32_SWEDISH_CI","utf32",4);z[169]=new Collation(169,"UTF32_TURKISH_CI","utf32",4);z[170]=new Collation(170,"UTF32_CZECH_CI","utf32",4);z[171]=new Collation(171,"UTF32_DANISH_CI","utf32",4);z[172]=new Collation(172,"UTF32_LITHUANIAN_CI","utf32",4);z[173]=new Collation(173,"UTF32_SLOVAK_CI","utf32",4);z[174]=new Collation(174,"UTF32_SPANISH2_CI","utf32",4);z[175]=new Collation(175,"UTF32_ROMAN_CI","utf32",4);z[176]=new Collation(176,"UTF32_PERSIAN_CI","utf32",4);z[177]=new Collation(177,"UTF32_ESPERANTO_CI","utf32",4);z[178]=new Collation(178,"UTF32_HUNGARIAN_CI","utf32",4);z[179]=new Collation(179,"UTF32_SINHALA_CI","utf32",4);z[180]=new Collation(180,"UTF32_GERMAN2_CI","utf32",4);z[181]=new Collation(181,"UTF32_CROATIAN_MYSQL561_CI","utf32",4);z[182]=new Collation(182,"UTF32_UNICODE_520_CI","utf32",4);z[183]=new Collation(183,"UTF32_VIETNAMESE_CI","utf32",4);z[192]=new Collation(192,"UTF8_UNICODE_CI","utf8",3);z[193]=new Collation(193,"UTF8_ICELANDIC_CI","utf8",3);z[194]=new Collation(194,"UTF8_LATVIAN_CI","utf8",3);z[195]=new Collation(195,"UTF8_ROMANIAN_CI","utf8",3);z[196]=new Collation(196,"UTF8_SLOVENIAN_CI","utf8",3);z[197]=new Collation(197,"UTF8_POLISH_CI","utf8",3);z[198]=new Collation(198,"UTF8_ESTONIAN_CI","utf8",3);z[199]=new Collation(199,"UTF8_SPANISH_CI","utf8",3);z[200]=new Collation(200,"UTF8_SWEDISH_CI","utf8",3);z[201]=new Collation(201,"UTF8_TURKISH_CI","utf8",3);z[202]=new Collation(202,"UTF8_CZECH_CI","utf8",3);z[203]=new Collation(203,"UTF8_DANISH_CI","utf8",3);z[204]=new Collation(204,"UTF8_LITHUANIAN_CI","utf8",3);z[205]=new Collation(205,"UTF8_SLOVAK_CI","utf8",3);z[206]=new Collation(206,"UTF8_SPANISH2_CI","utf8",3);z[207]=new Collation(207,"UTF8_ROMAN_CI","utf8",3);z[208]=new Collation(208,"UTF8_PERSIAN_CI","utf8",3);z[209]=new Collation(209,"UTF8_ESPERANTO_CI","utf8",3);z[210]=new Collation(210,"UTF8_HUNGARIAN_CI","utf8",3);z[211]=new Collation(211,"UTF8_SINHALA_CI","utf8",3);z[212]=new Collation(212,"UTF8_GERMAN2_CI","utf8",3);z[213]=new Collation(213,"UTF8_CROATIAN_MYSQL561_CI","utf8",3);z[214]=new Collation(214,"UTF8_UNICODE_520_CI","utf8",3);z[215]=new Collation(215,"UTF8_VIETNAMESE_CI","utf8",3);z[223]=new Collation(223,"UTF8_GENERAL_MYSQL500_CI","utf8",3);z[224]=new Collation(224,"UTF8MB4_UNICODE_CI","utf8",4);z[225]=new Collation(225,"UTF8MB4_ICELANDIC_CI","utf8",4);z[226]=new Collation(226,"UTF8MB4_LATVIAN_CI","utf8",4);z[227]=new Collation(227,"UTF8MB4_ROMANIAN_CI","utf8",4);z[228]=new Collation(228,"UTF8MB4_SLOVENIAN_CI","utf8",4);z[229]=new Collation(229,"UTF8MB4_POLISH_CI","utf8",4);z[230]=new Collation(230,"UTF8MB4_ESTONIAN_CI","utf8",4);z[231]=new Collation(231,"UTF8MB4_SPANISH_CI","utf8",4);z[232]=new Collation(232,"UTF8MB4_SWEDISH_CI","utf8",4);z[233]=new Collation(233,"UTF8MB4_TURKISH_CI","utf8",4);z[234]=new Collation(234,"UTF8MB4_CZECH_CI","utf8",4);z[235]=new Collation(235,"UTF8MB4_DANISH_CI","utf8",4);z[236]=new Collation(236,"UTF8MB4_LITHUANIAN_CI","utf8",4);z[237]=new Collation(237,"UTF8MB4_SLOVAK_CI","utf8",4);z[238]=new Collation(238,"UTF8MB4_SPANISH2_CI","utf8",4);z[239]=new Collation(239,"UTF8MB4_ROMAN_CI","utf8",4);z[240]=new Collation(240,"UTF8MB4_PERSIAN_CI","utf8",4);z[241]=new Collation(241,"UTF8MB4_ESPERANTO_CI","utf8",4);z[242]=new Collation(242,"UTF8MB4_HUNGARIAN_CI","utf8",4);z[243]=new Collation(243,"UTF8MB4_SINHALA_CI","utf8",4);z[244]=new Collation(244,"UTF8MB4_GERMAN2_CI","utf8",4);z[245]=new Collation(245,"UTF8MB4_CROATIAN_MYSQL561_CI","utf8",4);z[246]=new Collation(246,"UTF8MB4_UNICODE_520_CI","utf8",4);z[247]=new Collation(247,"UTF8MB4_VIETNAMESE_CI","utf8",4);z[248]=new Collation(248,"GB18030_CHINESE_CI","gb18030",4);z[249]=new Collation(249,"GB18030_BIN","gb18030",4);z[250]=new Collation(250,"GB18030_UNICODE_520_CI","gb18030",4);z[255]=new Collation(255,"UTF8MB4_0900_AI_CI","utf8",4);z[256]=new Collation(256,"UTF8MB4_DE_PB_0900_AI_CI","utf8",4);z[257]=new Collation(257,"UTF8MB4_IS_0900_AI_CI","utf8",4);z[258]=new Collation(258,"UTF8MB4_LV_0900_AI_CI","utf8",4);z[259]=new Collation(259,"UTF8MB4_RO_0900_AI_CI","utf8",4);z[260]=new Collation(260,"UTF8MB4_SL_0900_AI_CI","utf8",4);z[261]=new Collation(261,"UTF8MB4_PL_0900_AI_CI","utf8",4);z[262]=new Collation(262,"UTF8MB4_ET_0900_AI_CI","utf8",4);z[263]=new Collation(263,"UTF8MB4_ES_0900_AI_CI","utf8",4);z[264]=new Collation(264,"UTF8MB4_SV_0900_AI_CI","utf8",4);z[265]=new Collation(265,"UTF8MB4_TR_0900_AI_CI","utf8",4);z[266]=new Collation(266,"UTF8MB4_CS_0900_AI_CI","utf8",4);z[267]=new Collation(267,"UTF8MB4_DA_0900_AI_CI","utf8",4);z[268]=new Collation(268,"UTF8MB4_LT_0900_AI_CI","utf8",4);z[269]=new Collation(269,"UTF8MB4_SK_0900_AI_CI","utf8",4);z[270]=new Collation(270,"UTF8MB4_ES_TRAD_0900_AI_CI","utf8",4);z[271]=new Collation(271,"UTF8MB4_LA_0900_AI_CI","utf8",4);z[273]=new Collation(273,"UTF8MB4_EO_0900_AI_CI","utf8",4);z[274]=new Collation(274,"UTF8MB4_HU_0900_AI_CI","utf8",4);z[275]=new Collation(275,"UTF8MB4_HR_0900_AI_CI","utf8",4);z[277]=new Collation(277,"UTF8MB4_VI_0900_AI_CI","utf8",4);z[278]=new Collation(278,"UTF8MB4_0900_AS_CS","utf8",4);z[279]=new Collation(279,"UTF8MB4_DE_PB_0900_AS_CS","utf8",4);z[280]=new Collation(280,"UTF8MB4_IS_0900_AS_CS","utf8",4);z[281]=new Collation(281,"UTF8MB4_LV_0900_AS_CS","utf8",4);z[282]=new Collation(282,"UTF8MB4_RO_0900_AS_CS","utf8",4);z[283]=new Collation(283,"UTF8MB4_SL_0900_AS_CS","utf8",4);z[284]=new Collation(284,"UTF8MB4_PL_0900_AS_CS","utf8",4);z[285]=new Collation(285,"UTF8MB4_ET_0900_AS_CS","utf8",4);z[286]=new Collation(286,"UTF8MB4_ES_0900_AS_CS","utf8",4);z[287]=new Collation(287,"UTF8MB4_SV_0900_AS_CS","utf8",4);z[288]=new Collation(288,"UTF8MB4_TR_0900_AS_CS","utf8",4);z[289]=new Collation(289,"UTF8MB4_CS_0900_AS_CS","utf8",4);z[290]=new Collation(290,"UTF8MB4_DA_0900_AS_CS","utf8",4);z[291]=new Collation(291,"UTF8MB4_LT_0900_AS_CS","utf8",4);z[292]=new Collation(292,"UTF8MB4_SK_0900_AS_CS","utf8",4);z[293]=new Collation(293,"UTF8MB4_ES_TRAD_0900_AS_CS","utf8",4);z[294]=new Collation(294,"UTF8MB4_LA_0900_AS_CS","utf8",4);z[296]=new Collation(296,"UTF8MB4_EO_0900_AS_CS","utf8",4);z[297]=new Collation(297,"UTF8MB4_HU_0900_AS_CS","utf8",4);z[298]=new Collation(298,"UTF8MB4_HR_0900_AS_CS","utf8",4);z[300]=new Collation(300,"UTF8MB4_VI_0900_AS_CS","utf8",4);z[303]=new Collation(303,"UTF8MB4_JA_0900_AS_CS","utf8",4);z[304]=new Collation(304,"UTF8MB4_JA_0900_AS_CS_KS","utf8",4);z[305]=new Collation(305,"UTF8MB4_0900_AS_CI","utf8",4);z[306]=new Collation(306,"UTF8MB4_RU_0900_AI_CI","utf8",4);z[307]=new Collation(307,"UTF8MB4_RU_0900_AS_CS","utf8",4);z[308]=new Collation(308,"UTF8MB4_ZH_0900_AS_CS","utf8",4);z[309]=new Collation(309,"UTF8MB4_0900_BIN","utf8",4);z[576]=new Collation(576,"UTF8_CROATIAN_CI","utf8",3);z[577]=new Collation(577,"UTF8_MYANMAR_CI","utf8",3);z[578]=new Collation(578,"UTF8_THAI_520_W2","utf8",3);z[608]=new Collation(608,"UTF8MB4_CROATIAN_CI","utf8",4);z[609]=new Collation(609,"UTF8MB4_MYANMAR_CI","utf8",4);z[610]=new Collation(610,"UTF8MB4_THAI_520_W2","utf8",4);z[640]=new Collation(640,"UCS2_CROATIAN_CI","ucs2",2);z[641]=new Collation(641,"UCS2_MYANMAR_CI","ucs2",2);z[642]=new Collation(642,"UCS2_THAI_520_W2","ucs2",2);z[672]=new Collation(672,"UTF16_CROATIAN_CI","utf16",4);z[673]=new Collation(673,"UTF16_MYANMAR_CI","utf16",4);z[674]=new Collation(674,"UTF16_THAI_520_W2","utf16",4);z[736]=new Collation(736,"UTF32_CROATIAN_CI","utf32",4);z[737]=new Collation(737,"UTF32_MYANMAR_CI","utf32",4);z[738]=new Collation(738,"UTF32_THAI_520_W2","utf32",4);z[1025]=new Collation(1025,"BIG5_CHINESE_NOPAD_CI","big5",2);z[1027]=new Collation(1027,"DEC8_SWEDISH_NOPAD_CI","dec8",1);z[1028]=new Collation(1028,"CP850_GENERAL_NOPAD_CI","cp850",1);z[1030]=new Collation(1030,"HP8_ENGLISH_NOPAD_CI","hp8",1);z[1031]=new Collation(1031,"KOI8R_GENERAL_NOPAD_CI","koi8r",1);z[1032]=new Collation(1032,"LATIN1_SWEDISH_NOPAD_CI","latin1",1);z[1033]=new Collation(1033,"LATIN2_GENERAL_NOPAD_CI","latin2",1);z[1034]=new Collation(1034,"SWE7_SWEDISH_NOPAD_CI","swe7",1);z[1035]=new Collation(1035,"ASCII_GENERAL_NOPAD_CI","ascii",1);z[1036]=new Collation(1036,"UJIS_JAPANESE_NOPAD_CI","ujis",3);z[1037]=new Collation(1037,"SJIS_JAPANESE_NOPAD_CI","sjis",2);z[1040]=new Collation(1040,"HEBREW_GENERAL_NOPAD_CI","hebrew",1);z[1042]=new Collation(1042,"TIS620_THAI_NOPAD_CI","tis620",1);z[1043]=new Collation(1043,"EUCKR_KOREAN_NOPAD_CI","euckr",2);z[1046]=new Collation(1046,"KOI8U_GENERAL_NOPAD_CI","koi8u",1);z[1048]=new Collation(1048,"GB2312_CHINESE_NOPAD_CI","gb2312",2);z[1049]=new Collation(1049,"GREEK_GENERAL_NOPAD_CI","greek",1);z[1050]=new Collation(1050,"CP1250_GENERAL_NOPAD_CI","cp1250",1);z[1052]=new Collation(1052,"GBK_CHINESE_NOPAD_CI","gbk",2);z[1054]=new Collation(1054,"LATIN5_TURKISH_NOPAD_CI","latin5",1);z[1056]=new Collation(1056,"ARMSCII8_GENERAL_NOPAD_CI","armscii8",1);z[1057]=new Collation(1057,"UTF8_GENERAL_NOPAD_CI","utf8",3);z[1059]=new Collation(1059,"UCS2_GENERAL_NOPAD_CI","ucs2",2);z[1060]=new Collation(1060,"CP866_GENERAL_NOPAD_CI","cp866",1);z[1061]=new Collation(1061,"KEYBCS2_GENERAL_NOPAD_CI","keybcs2",1);z[1062]=new Collation(1062,"MACCE_GENERAL_NOPAD_CI","macce",1);z[1063]=new Collation(1063,"MACROMAN_GENERAL_NOPAD_CI","macroman",1);z[1064]=new Collation(1064,"CP852_GENERAL_NOPAD_CI","cp852",1);z[1065]=new Collation(1065,"LATIN7_GENERAL_NOPAD_CI","latin7",1);z[1067]=new Collation(1067,"MACCE_NOPAD_BIN","macce",1);z[1069]=new Collation(1069,"UTF8MB4_GENERAL_NOPAD_CI","utf8",4);z[1070]=new Collation(1070,"UTF8MB4_NOPAD_BIN","utf8",4);z[1071]=new Collation(1071,"LATIN1_NOPAD_BIN","latin1",1);z[1074]=new Collation(1074,"CP1251_NOPAD_BIN","cp1251",1);z[1075]=new Collation(1075,"CP1251_GENERAL_NOPAD_CI","cp1251",1);z[1077]=new Collation(1077,"MACROMAN_NOPAD_BIN","macroman",1);z[1078]=new Collation(1078,"UTF16_GENERAL_NOPAD_CI","utf16",4);z[1079]=new Collation(1079,"UTF16_NOPAD_BIN","utf16",4);z[1080]=new Collation(1080,"UTF16LE_GENERAL_NOPAD_CI","utf16le",4);z[1081]=new Collation(1081,"CP1256_GENERAL_NOPAD_CI","cp1256",1);z[1082]=new Collation(1082,"CP1257_NOPAD_BIN","cp1257",1);z[1083]=new Collation(1083,"CP1257_GENERAL_NOPAD_CI","cp1257",1);z[1084]=new Collation(1084,"UTF32_GENERAL_NOPAD_CI","utf32",4);z[1085]=new Collation(1085,"UTF32_NOPAD_BIN","utf32",4);z[1086]=new Collation(1086,"UTF16LE_NOPAD_BIN","utf16le",4);z[1088]=new Collation(1088,"ARMSCII8_NOPAD_BIN","armscii8",1);z[1089]=new Collation(1089,"ASCII_NOPAD_BIN","ascii",1);z[1090]=new Collation(1090,"CP1250_NOPAD_BIN","cp1250",1);z[1091]=new Collation(1091,"CP1256_NOPAD_BIN","cp1256",1);z[1092]=new Collation(1092,"CP866_NOPAD_BIN","cp866",1);z[1093]=new Collation(1093,"DEC8_NOPAD_BIN","dec8",1);z[1094]=new Collation(1094,"GREEK_NOPAD_BIN","greek",1);z[1095]=new Collation(1095,"HEBREW_NOPAD_BIN","hebrew",1);z[1096]=new Collation(1096,"HP8_NOPAD_BIN","hp8",1);z[1097]=new Collation(1097,"KEYBCS2_NOPAD_BIN","keybcs2",1);z[1098]=new Collation(1098,"KOI8R_NOPAD_BIN","koi8r",1);z[1099]=new Collation(1099,"KOI8U_NOPAD_BIN","koi8u",1);z[1101]=new Collation(1101,"LATIN2_NOPAD_BIN","latin2",1);z[1102]=new Collation(1102,"LATIN5_NOPAD_BIN","latin5",1);z[1103]=new Collation(1103,"LATIN7_NOPAD_BIN","latin7",1);z[1104]=new Collation(1104,"CP850_NOPAD_BIN","cp850",1);z[1105]=new Collation(1105,"CP852_NOPAD_BIN","cp852",1);z[1106]=new Collation(1106,"SWE7_NOPAD_BIN","swe7",1);z[1107]=new Collation(1107,"UTF8_NOPAD_BIN","utf8",3);z[1108]=new Collation(1108,"BIG5_NOPAD_BIN","big5",2);z[1109]=new Collation(1109,"EUCKR_NOPAD_BIN","euckr",2);z[1110]=new Collation(1110,"GB2312_NOPAD_BIN","gb2312",2);z[1111]=new Collation(1111,"GBK_NOPAD_BIN","gbk",2);z[1112]=new Collation(1112,"SJIS_NOPAD_BIN","sjis",2);z[1113]=new Collation(1113,"TIS620_NOPAD_BIN","tis620",1);z[1114]=new Collation(1114,"UCS2_NOPAD_BIN","ucs2",2);z[1115]=new Collation(1115,"UJIS_NOPAD_BIN","ujis",3);z[1116]=new Collation(1116,"GEOSTD8_GENERAL_NOPAD_CI","geostd8",1);z[1117]=new Collation(1117,"GEOSTD8_NOPAD_BIN","geostd8",1);z[1119]=new Collation(1119,"CP932_JAPANESE_NOPAD_CI","cp932",2);z[1120]=new Collation(1120,"CP932_NOPAD_BIN","cp932",2);z[1121]=new Collation(1121,"EUCJPMS_JAPANESE_NOPAD_CI","eucjpms",3);z[1122]=new Collation(1122,"EUCJPMS_NOPAD_BIN","eucjpms",3);z[1125]=new Collation(1125,"UTF16_UNICODE_NOPAD_CI","utf16",4);z[1147]=new Collation(1147,"UTF16_UNICODE_520_NOPAD_CI","utf16",4);z[1152]=new Collation(1152,"UCS2_UNICODE_NOPAD_CI","ucs2",2);z[1174]=new Collation(1174,"UCS2_UNICODE_520_NOPAD_CI","ucs2",2);z[1184]=new Collation(1184,"UTF32_UNICODE_NOPAD_CI","utf32",4);z[1206]=new Collation(1206,"UTF32_UNICODE_520_NOPAD_CI","utf32",4);z[1216]=new Collation(1216,"UTF8_UNICODE_NOPAD_CI","utf8",3);z[1238]=new Collation(1238,"UTF8_UNICODE_520_NOPAD_CI","utf8",3);z[1248]=new Collation(1248,"UTF8MB4_UNICODE_NOPAD_CI","utf8",4);z[1270]=new Collation(1270,"UTF8MB4_UNICODE_520_NOPAD_CI","utf8",4);for(let b=0;b<z.length;b++){let p=z[b];if(p){Collation.prototype[p.name]=p}}p["big5"]=z[1];p["dec8"]=z[3];p["cp850"]=z[4];p["hp8"]=z[6];p["koi8r"]=z[7];p["latin1"]=z[8];p["latin2"]=z[9];p["swe7"]=z[10];p["ascii"]=z[11];p["ujis"]=z[12];p["sjis"]=z[13];p["hebrew"]=z[16];p["tis620"]=z[18];p["euckr"]=z[19];p["koi8u"]=z[22];p["gb2312"]=z[24];p["greek"]=z[25];p["cp1250"]=z[26];p["gbk"]=z[28];p["latin5"]=z[30];p["armscii8"]=z[32];p["utf8"]=z[33];p["ucs2"]=z[35];p["cp866"]=z[36];p["keybcs2"]=z[37];p["macce"]=z[38];p["macroman"]=z[39];p["cp852"]=z[40];p["latin7"]=z[41];p["utf8mb4"]=z[45];p["cp1251"]=z[51];p["utf16"]=z[54];p["utf16le"]=z[56];p["cp1256"]=z[57];p["cp1257"]=z[59];p["utf32"]=z[60];p["binary"]=z[63];p["geostd8"]=z[92];p["cp932"]=z[95];p["eucjpms"]=z[97];p["gb18030"]=z[248];b.exports=Collation},2584:function(b){"use strict";const z={NOT_CONNECTED:1,CONNECTING:2,AUTHENTICATING:3,INIT_CMD:4,CONNECTED:5,CLOSING:6,CLOSED:7};b.exports.Status=z},8013:function(b){"use strict";let z={};z[120]="HA_ERR_KEY_NOT_FOUND";z[121]="HA_ERR_FOUND_DUPP_KEY";z[122]="HA_ERR_INTERNAL_ERROR";z[123]="HA_ERR_RECORD_CHANGED";z[124]="HA_ERR_WRONG_INDEX";z[126]="HA_ERR_CRASHED";z[127]="HA_ERR_WRONG_IN_RECORD";z[128]="HA_ERR_OUT_OF_MEM";z[130]="HA_ERR_NOT_A_TABLE";z[131]="HA_ERR_WRONG_COMMAND";z[132]="HA_ERR_OLD_FILE";z[133]="HA_ERR_NO_ACTIVE_RECORD";z[134]="HA_ERR_RECORD_DELETED";z[135]="HA_ERR_RECORD_FILE_FULL";z[136]="HA_ERR_INDEX_FILE_FULL";z[137]="HA_ERR_END_OF_FILE";z[138]="HA_ERR_UNSUPPORTED";z[139]="HA_ERR_TO_BIG_ROW";z[140]="HA_WRONG_CREATE_OPTION";z[141]="HA_ERR_FOUND_DUPP_UNIQUE";z[142]="HA_ERR_UNKNOWN_CHARSET";z[143]="HA_ERR_WRONG_MRG_TABLE_DEF";z[144]="HA_ERR_CRASHED_ON_REPAIR";z[145]="HA_ERR_CRASHED_ON_USAGE";z[146]="HA_ERR_LOCK_WAIT_TIMEOUT";z[147]="HA_ERR_LOCK_TABLE_FULL";z[148]="HA_ERR_READ_ONLY_TRANSACTION";z[149]="HA_ERR_LOCK_DEADLOCK";z[150]="HA_ERR_CANNOT_ADD_FOREIGN";z[151]="HA_ERR_NO_REFERENCED_ROW";z[152]="HA_ERR_ROW_IS_REFERENCED";z[153]="HA_ERR_NO_SAVEPOINT";z[154]="HA_ERR_NON_UNIQUE_BLOCK_SIZE";z[155]="HA_ERR_NO_SUCH_TABLE";z[156]="HA_ERR_TABLE_EXIST";z[157]="HA_ERR_NO_CONNECTION";z[158]="HA_ERR_NULL_IN_SPATIAL";z[159]="HA_ERR_TABLE_DEF_CHANGED";z[160]="HA_ERR_NO_PARTITION_FOUND";z[161]="HA_ERR_RBR_LOGGING_FAILED";z[162]="HA_ERR_DROP_INDEX_FK";z[163]="HA_ERR_FOREIGN_DUPLICATE_KEY";z[164]="HA_ERR_TABLE_NEEDS_UPGRADE";z[165]="HA_ERR_TABLE_READONLY";z[166]="HA_ERR_AUTOINC_READ_FAILED";z[167]="HA_ERR_AUTOINC_ERANGE";z[168]="HA_ERR_GENERIC";z[169]="HA_ERR_RECORD_IS_THE_SAME";z[170]="HA_ERR_LOGGING_IMPOSSIBLE";z[171]="HA_ERR_CORRUPT_EVENT";z[172]="HA_ERR_NEW_FILE";z[173]="HA_ERR_ROWS_EVENT_APPLY";z[174]="HA_ERR_INITIALIZATION";z[175]="HA_ERR_FILE_TOO_SHORT";z[176]="HA_ERR_WRONG_CRC";z[177]="HA_ERR_TOO_MANY_CONCURRENT_TRXS";z[178]="HA_ERR_NOT_IN_LOCK_PARTITIONS";z[179]="HA_ERR_INDEX_COL_TOO_LONG";z[180]="HA_ERR_INDEX_CORRUPT";z[181]="HA_ERR_UNDO_REC_TOO_BIG";z[182]="HA_FTS_INVALID_DOCID";z[183]="HA_ERR_TABLE_IN_FK_CHECK";z[184]="HA_ERR_TABLESPACE_EXISTS";z[185]="HA_ERR_TOO_MANY_FIELDS";z[186]="HA_ERR_ROW_IN_WRONG_PARTITION";z[187]="HA_ERR_ROW_NOT_VISIBLE";z[188]="HA_ERR_ABORTED_BY_USER";z[189]="HA_ERR_DISK_FULL";z[190]="HA_ERR_INCOMPATIBLE_DEFINITION";z[191]="HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE";z[192]="HA_ERR_DECRYPTION_FAILED";z[193]="HA_ERR_FK_DEPTH_EXCEEDED";z[194]="HA_ERR_TABLESPACE_MISSING";z[195]="HA_ERR_SEQUENCE_INVALID_DATA";z[196]="HA_ERR_SEQUENCE_RUN_OUT";z[1e3]="ER_HASHCHK";z[1001]="ER_NISAMCHK";z[1002]="ER_NO";z[1003]="ER_YES";z[1004]="ER_CANT_CREATE_FILE";z[1005]="ER_CANT_CREATE_TABLE";z[1006]="ER_CANT_CREATE_DB";z[1007]="ER_DB_CREATE_EXISTS";z[1008]="ER_DB_DROP_EXISTS";z[1009]="ER_DB_DROP_DELETE";z[1010]="ER_DB_DROP_RMDIR";z[1011]="ER_CANT_DELETE_FILE";z[1012]="ER_CANT_FIND_SYSTEM_REC";z[1013]="ER_CANT_GET_STAT";z[1014]="ER_CANT_GET_WD";z[1015]="ER_CANT_LOCK";z[1016]="ER_CANT_OPEN_FILE";z[1017]="ER_FILE_NOT_FOUND";z[1018]="ER_CANT_READ_DIR";z[1019]="ER_CANT_SET_WD";z[1020]="ER_CHECKREAD";z[1021]="ER_DISK_FULL";z[1022]="ER_DUP_KEY";z[1023]="ER_ERROR_ON_CLOSE";z[1024]="ER_ERROR_ON_READ";z[1025]="ER_ERROR_ON_RENAME";z[1026]="ER_ERROR_ON_WRITE";z[1027]="ER_FILE_USED";z[1028]="ER_FILSORT_ABORT";z[1029]="ER_FORM_NOT_FOUND";z[1030]="ER_GET_ERRNO";z[1031]="ER_ILLEGAL_HA";z[1032]="ER_KEY_NOT_FOUND";z[1033]="ER_NOT_FORM_FILE";z[1034]="ER_NOT_KEYFILE";z[1035]="ER_OLD_KEYFILE";z[1036]="ER_OPEN_AS_READONLY";z[1037]="ER_OUTOFMEMORY";z[1038]="ER_OUT_OF_SORTMEMORY";z[1039]="ER_UNEXPECTED_EOF";z[1040]="ER_CON_COUNT_ERROR";z[1041]="ER_OUT_OF_RESOURCES";z[1042]="ER_BAD_HOST_ERROR";z[1043]="ER_HANDSHAKE_ERROR";z[1044]="ER_DBACCESS_DENIED_ERROR";z[1045]="ER_ACCESS_DENIED_ERROR";z[1046]="ER_NO_DB_ERROR";z[1047]="ER_UNKNOWN_COM_ERROR";z[1048]="ER_BAD_NULL_ERROR";z[1049]="ER_BAD_DB_ERROR";z[1050]="ER_TABLE_EXISTS_ERROR";z[1051]="ER_BAD_TABLE_ERROR";z[1052]="ER_NON_UNIQ_ERROR";z[1053]="ER_SERVER_SHUTDOWN";z[1054]="ER_BAD_FIELD_ERROR";z[1055]="ER_WRONG_FIELD_WITH_GROUP";z[1056]="ER_WRONG_GROUP_FIELD";z[1057]="ER_WRONG_SUM_SELECT";z[1058]="ER_WRONG_VALUE_COUNT";z[1059]="ER_TOO_LONG_IDENT";z[1060]="ER_DUP_FIELDNAME";z[1061]="ER_DUP_KEYNAME";z[1062]="ER_DUP_ENTRY";z[1063]="ER_WRONG_FIELD_SPEC";z[1064]="ER_PARSE_ERROR";z[1065]="ER_EMPTY_QUERY";z[1066]="ER_NONUNIQ_TABLE";z[1067]="ER_INVALID_DEFAULT";z[1068]="ER_MULTIPLE_PRI_KEY";z[1069]="ER_TOO_MANY_KEYS";z[1070]="ER_TOO_MANY_KEY_PARTS";z[1071]="ER_TOO_LONG_KEY";z[1072]="ER_KEY_COLUMN_DOES_NOT_EXITS";z[1073]="ER_BLOB_USED_AS_KEY";z[1074]="ER_TOO_BIG_FIELDLENGTH";z[1075]="ER_WRONG_AUTO_KEY";z[1076]="ER_BINLOG_CANT_DELETE_GTID_DOMAIN";z[1077]="ER_NORMAL_SHUTDOWN";z[1078]="ER_GOT_SIGNAL";z[1079]="ER_SHUTDOWN_COMPLETE";z[1080]="ER_FORCING_CLOSE";z[1081]="ER_IPSOCK_ERROR";z[1082]="ER_NO_SUCH_INDEX";z[1083]="ER_WRONG_FIELD_TERMINATORS";z[1084]="ER_BLOBS_AND_NO_TERMINATED";z[1085]="ER_TEXTFILE_NOT_READABLE";z[1086]="ER_FILE_EXISTS_ERROR";z[1087]="ER_LOAD_INFO";z[1088]="ER_ALTER_INFO";z[1089]="ER_WRONG_SUB_KEY";z[1090]="ER_CANT_REMOVE_ALL_FIELDS";z[1091]="ER_CANT_DROP_FIELD_OR_KEY";z[1092]="ER_INSERT_INFO";z[1093]="ER_UPDATE_TABLE_USED";z[1094]="ER_NO_SUCH_THREAD";z[1095]="ER_KILL_DENIED_ERROR";z[1096]="ER_NO_TABLES_USED";z[1097]="ER_TOO_BIG_SET";z[1098]="ER_NO_UNIQUE_LOGFILE";z[1099]="ER_TABLE_NOT_LOCKED_FOR_WRITE";z[1100]="ER_TABLE_NOT_LOCKED";z[1101]="ER_UNUSED_17";z[1102]="ER_WRONG_DB_NAME";z[1103]="ER_WRONG_TABLE_NAME";z[1104]="ER_TOO_BIG_SELECT";z[1105]="ER_UNKNOWN_ERROR";z[1106]="ER_UNKNOWN_PROCEDURE";z[1107]="ER_WRONG_PARAMCOUNT_TO_PROCEDURE";z[1108]="ER_WRONG_PARAMETERS_TO_PROCEDURE";z[1109]="ER_UNKNOWN_TABLE";z[1110]="ER_FIELD_SPECIFIED_TWICE";z[1111]="ER_INVALID_GROUP_FUNC_USE";z[1112]="ER_UNSUPPORTED_EXTENSION";z[1113]="ER_TABLE_MUST_HAVE_COLUMNS";z[1114]="ER_RECORD_FILE_FULL";z[1115]="ER_UNKNOWN_CHARACTER_SET";z[1116]="ER_TOO_MANY_TABLES";z[1117]="ER_TOO_MANY_FIELDS";z[1118]="ER_TOO_BIG_ROWSIZE";z[1119]="ER_STACK_OVERRUN";z[1120]="ER_WRONG_OUTER_JOIN";z[1121]="ER_NULL_COLUMN_IN_INDEX";z[1122]="ER_CANT_FIND_UDF";z[1123]="ER_CANT_INITIALIZE_UDF";z[1124]="ER_UDF_NO_PATHS";z[1125]="ER_UDF_EXISTS";z[1126]="ER_CANT_OPEN_LIBRARY";z[1127]="ER_CANT_FIND_DL_ENTRY";z[1128]="ER_FUNCTION_NOT_DEFINED";z[1129]="ER_HOST_IS_BLOCKED";z[1130]="ER_HOST_NOT_PRIVILEGED";z[1131]="ER_PASSWORD_ANONYMOUS_USER";z[1132]="ER_PASSWORD_NOT_ALLOWED";z[1133]="ER_PASSWORD_NO_MATCH";z[1134]="ER_UPDATE_INFO";z[1135]="ER_CANT_CREATE_THREAD";z[1136]="ER_WRONG_VALUE_COUNT_ON_ROW";z[1137]="ER_CANT_REOPEN_TABLE";z[1138]="ER_INVALID_USE_OF_NULL";z[1139]="ER_REGEXP_ERROR";z[1140]="ER_MIX_OF_GROUP_FUNC_AND_FIELDS";z[1141]="ER_NONEXISTING_GRANT";z[1142]="ER_TABLEACCESS_DENIED_ERROR";z[1143]="ER_COLUMNACCESS_DENIED_ERROR";z[1144]="ER_ILLEGAL_GRANT_FOR_TABLE";z[1145]="ER_GRANT_WRONG_HOST_OR_USER";z[1146]="ER_NO_SUCH_TABLE";z[1147]="ER_NONEXISTING_TABLE_GRANT";z[1148]="ER_NOT_ALLOWED_COMMAND";z[1149]="ER_SYNTAX_ERROR";z[1150]="ER_DELAYED_CANT_CHANGE_LOCK";z[1151]="ER_TOO_MANY_DELAYED_THREADS";z[1152]="ER_ABORTING_CONNECTION";z[1153]="ER_NET_PACKET_TOO_LARGE";z[1154]="ER_NET_READ_ERROR_FROM_PIPE";z[1155]="ER_NET_FCNTL_ERROR";z[1156]="ER_NET_PACKETS_OUT_OF_ORDER";z[1157]="ER_NET_UNCOMPRESS_ERROR";z[1158]="ER_NET_READ_ERROR";z[1159]="ER_NET_READ_INTERRUPTED";z[1160]="ER_NET_ERROR_ON_WRITE";z[1161]="ER_NET_WRITE_INTERRUPTED";z[1162]="ER_TOO_LONG_STRING";z[1163]="ER_TABLE_CANT_HANDLE_BLOB";z[1164]="ER_TABLE_CANT_HANDLE_AUTO_INCREMENT";z[1165]="ER_DELAYED_INSERT_TABLE_LOCKED";z[1166]="ER_WRONG_COLUMN_NAME";z[1167]="ER_WRONG_KEY_COLUMN";z[1168]="ER_WRONG_MRG_TABLE";z[1169]="ER_DUP_UNIQUE";z[1170]="ER_BLOB_KEY_WITHOUT_LENGTH";z[1171]="ER_PRIMARY_CANT_HAVE_NULL";z[1172]="ER_TOO_MANY_ROWS";z[1173]="ER_REQUIRES_PRIMARY_KEY";z[1174]="ER_NO_RAID_COMPILED";z[1175]="ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE";z[1176]="ER_KEY_DOES_NOT_EXITS";z[1177]="ER_CHECK_NO_SUCH_TABLE";z[1178]="ER_CHECK_NOT_IMPLEMENTED";z[1179]="ER_CANT_DO_THIS_DURING_AN_TRANSACTION";z[1180]="ER_ERROR_DURING_COMMIT";z[1181]="ER_ERROR_DURING_ROLLBACK";z[1182]="ER_ERROR_DURING_FLUSH_LOGS";z[1183]="ER_ERROR_DURING_CHECKPOINT";z[1184]="ER_NEW_ABORTING_CONNECTION";z[1185]="ER_UNUSED_10";z[1186]="ER_FLUSH_MASTER_BINLOG_CLOSED";z[1187]="ER_INDEX_REBUILD";z[1188]="ER_MASTER";z[1189]="ER_MASTER_NET_READ";z[1190]="ER_MASTER_NET_WRITE";z[1191]="ER_FT_MATCHING_KEY_NOT_FOUND";z[1192]="ER_LOCK_OR_ACTIVE_TRANSACTION";z[1193]="ER_UNKNOWN_SYSTEM_VARIABLE";z[1194]="ER_CRASHED_ON_USAGE";z[1195]="ER_CRASHED_ON_REPAIR";z[1196]="ER_WARNING_NOT_COMPLETE_ROLLBACK";z[1197]="ER_TRANS_CACHE_FULL";z[1198]="ER_SLAVE_MUST_STOP";z[1199]="ER_SLAVE_NOT_RUNNING";z[1200]="ER_BAD_SLAVE";z[1201]="ER_MASTER_INFO";z[1202]="ER_SLAVE_THREAD";z[1203]="ER_TOO_MANY_USER_CONNECTIONS";z[1204]="ER_SET_CONSTANTS_ONLY";z[1205]="ER_LOCK_WAIT_TIMEOUT";z[1206]="ER_LOCK_TABLE_FULL";z[1207]="ER_READ_ONLY_TRANSACTION";z[1208]="ER_DROP_DB_WITH_READ_LOCK";z[1209]="ER_CREATE_DB_WITH_READ_LOCK";z[1210]="ER_WRONG_ARGUMENTS";z[1211]="ER_NO_PERMISSION_TO_CREATE_USER";z[1212]="ER_UNION_TABLES_IN_DIFFERENT_DIR";z[1213]="ER_LOCK_DEADLOCK";z[1214]="ER_TABLE_CANT_HANDLE_FT";z[1215]="ER_CANNOT_ADD_FOREIGN";z[1216]="ER_NO_REFERENCED_ROW";z[1217]="ER_ROW_IS_REFERENCED";z[1218]="ER_CONNECT_TO_MASTER";z[1219]="ER_QUERY_ON_MASTER";z[1220]="ER_ERROR_WHEN_EXECUTING_COMMAND";z[1221]="ER_WRONG_USAGE";z[1222]="ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT";z[1223]="ER_CANT_UPDATE_WITH_READLOCK";z[1224]="ER_MIXING_NOT_ALLOWED";z[1225]="ER_DUP_ARGUMENT";z[1226]="ER_USER_LIMIT_REACHED";z[1227]="ER_SPECIFIC_ACCESS_DENIED_ERROR";z[1228]="ER_LOCAL_VARIABLE";z[1229]="ER_GLOBAL_VARIABLE";z[1230]="ER_NO_DEFAULT";z[1231]="ER_WRONG_VALUE_FOR_VAR";z[1232]="ER_WRONG_TYPE_FOR_VAR";z[1233]="ER_VAR_CANT_BE_READ";z[1234]="ER_CANT_USE_OPTION_HERE";z[1235]="ER_NOT_SUPPORTED_YET";z[1236]="ER_MASTER_FATAL_ERROR_READING_BINLOG";z[1237]="ER_SLAVE_IGNORED_TABLE";z[1238]="ER_INCORRECT_GLOBAL_LOCAL_VAR";z[1239]="ER_WRONG_FK_DEF";z[1240]="ER_KEY_REF_DO_NOT_MATCH_TABLE_REF";z[1241]="ER_OPERAND_COLUMNS";z[1242]="ER_SUBQUERY_NO_1_ROW";z[1243]="ER_UNKNOWN_STMT_HANDLER";z[1244]="ER_CORRUPT_HELP_DB";z[1245]="ER_CYCLIC_REFERENCE";z[1246]="ER_AUTO_CONVERT";z[1247]="ER_ILLEGAL_REFERENCE";z[1248]="ER_DERIVED_MUST_HAVE_ALIAS";z[1249]="ER_SELECT_REDUCED";z[1250]="ER_TABLENAME_NOT_ALLOWED_HERE";z[1251]="ER_NOT_SUPPORTED_AUTH_MODE";z[1252]="ER_SPATIAL_CANT_HAVE_NULL";z[1253]="ER_COLLATION_CHARSET_MISMATCH";z[1254]="ER_SLAVE_WAS_RUNNING";z[1255]="ER_SLAVE_WAS_NOT_RUNNING";z[1256]="ER_TOO_BIG_FOR_UNCOMPRESS";z[1257]="ER_ZLIB_Z_MEM_ERROR";z[1258]="ER_ZLIB_Z_BUF_ERROR";z[1259]="ER_ZLIB_Z_DATA_ERROR";z[1260]="ER_CUT_VALUE_GROUP_CONCAT";z[1261]="ER_WARN_TOO_FEW_RECORDS";z[1262]="ER_WARN_TOO_MANY_RECORDS";z[1263]="ER_WARN_NULL_TO_NOTNULL";z[1264]="ER_WARN_DATA_OUT_OF_RANGE";z[1265]="WARN_DATA_TRUNCATED";z[1266]="ER_WARN_USING_OTHER_HANDLER";z[1267]="ER_CANT_AGGREGATE_2COLLATIONS";z[1268]="ER_DROP_USER";z[1269]="ER_REVOKE_GRANTS";z[1270]="ER_CANT_AGGREGATE_3COLLATIONS";z[1271]="ER_CANT_AGGREGATE_NCOLLATIONS";z[1272]="ER_VARIABLE_IS_NOT_STRUCT";z[1273]="ER_UNKNOWN_COLLATION";z[1274]="ER_SLAVE_IGNORED_SSL_PARAMS";z[1275]="ER_SERVER_IS_IN_SECURE_AUTH_MODE";z[1276]="ER_WARN_FIELD_RESOLVED";z[1277]="ER_BAD_SLAVE_UNTIL_COND";z[1278]="ER_MISSING_SKIP_SLAVE";z[1279]="ER_UNTIL_COND_IGNORED";z[1280]="ER_WRONG_NAME_FOR_INDEX";z[1281]="ER_WRONG_NAME_FOR_CATALOG";z[1282]="ER_WARN_QC_RESIZE";z[1283]="ER_BAD_FT_COLUMN";z[1284]="ER_UNKNOWN_KEY_CACHE";z[1285]="ER_WARN_HOSTNAME_WONT_WORK";z[1286]="ER_UNKNOWN_STORAGE_ENGINE";z[1287]="ER_WARN_DEPRECATED_SYNTAX";z[1288]="ER_NON_UPDATABLE_TABLE";z[1289]="ER_FEATURE_DISABLED";z[1290]="ER_OPTION_PREVENTS_STATEMENT";z[1291]="ER_DUPLICATED_VALUE_IN_TYPE";z[1292]="ER_TRUNCATED_WRONG_VALUE";z[1293]="ER_TOO_MUCH_AUTO_TIMESTAMP_COLS";z[1294]="ER_INVALID_ON_UPDATE";z[1295]="ER_UNSUPPORTED_PS";z[1296]="ER_GET_ERRMSG";z[1297]="ER_GET_TEMPORARY_ERRMSG";z[1298]="ER_UNKNOWN_TIME_ZONE";z[1299]="ER_WARN_INVALID_TIMESTAMP";z[1300]="ER_INVALID_CHARACTER_STRING";z[1301]="ER_WARN_ALLOWED_PACKET_OVERFLOWED";z[1302]="ER_CONFLICTING_DECLARATIONS";z[1303]="ER_SP_NO_RECURSIVE_CREATE";z[1304]="ER_SP_ALREADY_EXISTS";z[1305]="ER_SP_DOES_NOT_EXIST";z[1306]="ER_SP_DROP_FAILED";z[1307]="ER_SP_STORE_FAILED";z[1308]="ER_SP_LILABEL_MISMATCH";z[1309]="ER_SP_LABEL_REDEFINE";z[1310]="ER_SP_LABEL_MISMATCH";z[1311]="ER_SP_UNINIT_VAR";z[1312]="ER_SP_BADSELECT";z[1313]="ER_SP_BADRETURN";z[1314]="ER_SP_BADSTATEMENT";z[1315]="ER_UPDATE_LOG_DEPRECATED_IGNORED";z[1316]="ER_UPDATE_LOG_DEPRECATED_TRANSLATED";z[1317]="ER_QUERY_INTERRUPTED";z[1318]="ER_SP_WRONG_NO_OF_ARGS";z[1319]="ER_SP_COND_MISMATCH";z[1320]="ER_SP_NORETURN";z[1321]="ER_SP_NORETURNEND";z[1322]="ER_SP_BAD_CURSOR_QUERY";z[1323]="ER_SP_BAD_CURSOR_SELECT";z[1324]="ER_SP_CURSOR_MISMATCH";z[1325]="ER_SP_CURSOR_ALREADY_OPEN";z[1326]="ER_SP_CURSOR_NOT_OPEN";z[1327]="ER_SP_UNDECLARED_VAR";z[1328]="ER_SP_WRONG_NO_OF_FETCH_ARGS";z[1329]="ER_SP_FETCH_NO_DATA";z[1330]="ER_SP_DUP_PARAM";z[1331]="ER_SP_DUP_VAR";z[1332]="ER_SP_DUP_COND";z[1333]="ER_SP_DUP_CURS";z[1334]="ER_SP_CANT_ALTER";z[1335]="ER_SP_SUBSELECT_NYI";z[1336]="ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG";z[1337]="ER_SP_VARCOND_AFTER_CURSHNDLR";z[1338]="ER_SP_CURSOR_AFTER_HANDLER";z[1339]="ER_SP_CASE_NOT_FOUND";z[1340]="ER_FPARSER_TOO_BIG_FILE";z[1341]="ER_FPARSER_BAD_HEADER";z[1342]="ER_FPARSER_EOF_IN_COMMENT";z[1343]="ER_FPARSER_ERROR_IN_PARAMETER";z[1344]="ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER";z[1345]="ER_VIEW_NO_EXPLAIN";z[1346]="ER_FRM_UNKNOWN_TYPE";z[1347]="ER_WRONG_OBJECT";z[1348]="ER_NONUPDATEABLE_COLUMN";z[1349]="ER_VIEW_SELECT_DERIVED";z[1350]="ER_VIEW_SELECT_CLAUSE";z[1351]="ER_VIEW_SELECT_VARIABLE";z[1352]="ER_VIEW_SELECT_TMPTABLE";z[1353]="ER_VIEW_WRONG_LIST";z[1354]="ER_WARN_VIEW_MERGE";z[1355]="ER_WARN_VIEW_WITHOUT_KEY";z[1356]="ER_VIEW_INVALID";z[1357]="ER_SP_NO_DROP_SP";z[1358]="ER_SP_GOTO_IN_HNDLR";z[1359]="ER_TRG_ALREADY_EXISTS";z[1360]="ER_TRG_DOES_NOT_EXIST";z[1361]="ER_TRG_ON_VIEW_OR_TEMP_TABLE";z[1362]="ER_TRG_CANT_CHANGE_ROW";z[1363]="ER_TRG_NO_SUCH_ROW_IN_TRG";z[1364]="ER_NO_DEFAULT_FOR_FIELD";z[1365]="ER_DIVISION_BY_ZERO";z[1366]="ER_TRUNCATED_WRONG_VALUE_FOR_FIELD";z[1367]="ER_ILLEGAL_VALUE_FOR_TYPE";z[1368]="ER_VIEW_NONUPD_CHECK";z[1369]="ER_VIEW_CHECK_FAILED";z[1370]="ER_PROCACCESS_DENIED_ERROR";z[1371]="ER_RELAY_LOG_FAIL";z[1372]="ER_PASSWD_LENGTH";z[1373]="ER_UNKNOWN_TARGET_BINLOG";z[1374]="ER_IO_ERR_LOG_INDEX_READ";z[1375]="ER_BINLOG_PURGE_PROHIBITED";z[1376]="ER_FSEEK_FAIL";z[1377]="ER_BINLOG_PURGE_FATAL_ERR";z[1378]="ER_LOG_IN_USE";z[1379]="ER_LOG_PURGE_UNKNOWN_ERR";z[1380]="ER_RELAY_LOG_INIT";z[1381]="ER_NO_BINARY_LOGGING";z[1382]="ER_RESERVED_SYNTAX";z[1383]="ER_WSAS_FAILED";z[1384]="ER_DIFF_GROUPS_PROC";z[1385]="ER_NO_GROUP_FOR_PROC";z[1386]="ER_ORDER_WITH_PROC";z[1387]="ER_LOGGING_PROHIBIT_CHANGING_OF";z[1388]="ER_NO_FILE_MAPPING";z[1389]="ER_WRONG_MAGIC";z[1390]="ER_PS_MANY_PARAM";z[1391]="ER_KEY_PART_0";z[1392]="ER_VIEW_CHECKSUM";z[1393]="ER_VIEW_MULTIUPDATE";z[1394]="ER_VIEW_NO_INSERT_FIELD_LIST";z[1395]="ER_VIEW_DELETE_MERGE_VIEW";z[1396]="ER_CANNOT_USER";z[1397]="ER_XAER_NOTA";z[1398]="ER_XAER_INVAL";z[1399]="ER_XAER_RMFAIL";z[1400]="ER_XAER_OUTSIDE";z[1401]="ER_XAER_RMERR";z[1402]="ER_XA_RBROLLBACK";z[1403]="ER_NONEXISTING_PROC_GRANT";z[1404]="ER_PROC_AUTO_GRANT_FAIL";z[1405]="ER_PROC_AUTO_REVOKE_FAIL";z[1406]="ER_DATA_TOO_LONG";z[1407]="ER_SP_BAD_SQLSTATE";z[1408]="ER_STARTUP";z[1409]="ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR";z[1410]="ER_CANT_CREATE_USER_WITH_GRANT";z[1411]="ER_WRONG_VALUE_FOR_TYPE";z[1412]="ER_TABLE_DEF_CHANGED";z[1413]="ER_SP_DUP_HANDLER";z[1414]="ER_SP_NOT_VAR_ARG";z[1415]="ER_SP_NO_RETSET";z[1416]="ER_CANT_CREATE_GEOMETRY_OBJECT";z[1417]="ER_FAILED_ROUTINE_BREAK_BINLOG";z[1418]="ER_BINLOG_UNSAFE_ROUTINE";z[1419]="ER_BINLOG_CREATE_ROUTINE_NEED_SUPER";z[1420]="ER_EXEC_STMT_WITH_OPEN_CURSOR";z[1421]="ER_STMT_HAS_NO_OPEN_CURSOR";z[1422]="ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG";z[1423]="ER_NO_DEFAULT_FOR_VIEW_FIELD";z[1424]="ER_SP_NO_RECURSION";z[1425]="ER_TOO_BIG_SCALE";z[1426]="ER_TOO_BIG_PRECISION";z[1427]="ER_M_BIGGER_THAN_D";z[1428]="ER_WRONG_LOCK_OF_SYSTEM_TABLE";z[1429]="ER_CONNECT_TO_FOREIGN_DATA_SOURCE";z[1430]="ER_QUERY_ON_FOREIGN_DATA_SOURCE";z[1431]="ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST";z[1432]="ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE";z[1433]="ER_FOREIGN_DATA_STRING_INVALID";z[1434]="ER_CANT_CREATE_FEDERATED_TABLE";z[1435]="ER_TRG_IN_WRONG_SCHEMA";z[1436]="ER_STACK_OVERRUN_NEED_MORE";z[1437]="ER_TOO_LONG_BODY";z[1438]="ER_WARN_CANT_DROP_DEFAULT_KEYCACHE";z[1439]="ER_TOO_BIG_DISPLAYWIDTH";z[1440]="ER_XAER_DUPID";z[1441]="ER_DATETIME_FUNCTION_OVERFLOW";z[1442]="ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG";z[1443]="ER_VIEW_PREVENT_UPDATE";z[1444]="ER_PS_NO_RECURSION";z[1445]="ER_SP_CANT_SET_AUTOCOMMIT";z[1446]="ER_MALFORMED_DEFINER";z[1447]="ER_VIEW_FRM_NO_USER";z[1448]="ER_VIEW_OTHER_USER";z[1449]="ER_NO_SUCH_USER";z[1450]="ER_FORBID_SCHEMA_CHANGE";z[1451]="ER_ROW_IS_REFERENCED_2";z[1452]="ER_NO_REFERENCED_ROW_2";z[1453]="ER_SP_BAD_VAR_SHADOW";z[1454]="ER_TRG_NO_DEFINER";z[1455]="ER_OLD_FILE_FORMAT";z[1456]="ER_SP_RECURSION_LIMIT";z[1457]="ER_SP_PROC_TABLE_CORRUPT";z[1458]="ER_SP_WRONG_NAME";z[1459]="ER_TABLE_NEEDS_UPGRADE";z[1460]="ER_SP_NO_AGGREGATE";z[1461]="ER_MAX_PREPARED_STMT_COUNT_REACHED";z[1462]="ER_VIEW_RECURSIVE";z[1463]="ER_NON_GROUPING_FIELD_USED";z[1464]="ER_TABLE_CANT_HANDLE_SPKEYS";z[1465]="ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA";z[1466]="ER_REMOVED_SPACES";z[1467]="ER_AUTOINC_READ_FAILED";z[1468]="ER_USERNAME";z[1469]="ER_HOSTNAME";z[1470]="ER_WRONG_STRING_LENGTH";z[1471]="ER_NON_INSERTABLE_TABLE";z[1472]="ER_ADMIN_WRONG_MRG_TABLE";z[1473]="ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT";z[1474]="ER_NAME_BECOMES_EMPTY";z[1475]="ER_AMBIGUOUS_FIELD_TERM";z[1476]="ER_FOREIGN_SERVER_EXISTS";z[1477]="ER_FOREIGN_SERVER_DOESNT_EXIST";z[1478]="ER_ILLEGAL_HA_CREATE_OPTION";z[1479]="ER_PARTITION_REQUIRES_VALUES_ERROR";z[1480]="ER_PARTITION_WRONG_VALUES_ERROR";z[1481]="ER_PARTITION_MAXVALUE_ERROR";z[1482]="ER_PARTITION_SUBPARTITION_ERROR";z[1483]="ER_PARTITION_SUBPART_MIX_ERROR";z[1484]="ER_PARTITION_WRONG_NO_PART_ERROR";z[1485]="ER_PARTITION_WRONG_NO_SUBPART_ERROR";z[1486]="ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR";z[1487]="ER_NOT_CONSTANT_EXPRESSION";z[1488]="ER_FIELD_NOT_FOUND_PART_ERROR";z[1489]="ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR";z[1490]="ER_INCONSISTENT_PARTITION_INFO_ERROR";z[1491]="ER_PARTITION_FUNC_NOT_ALLOWED_ERROR";z[1492]="ER_PARTITIONS_MUST_BE_DEFINED_ERROR";z[1493]="ER_RANGE_NOT_INCREASING_ERROR";z[1494]="ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR";z[1495]="ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR";z[1496]="ER_PARTITION_ENTRY_ERROR";z[1497]="ER_MIX_HANDLER_ERROR";z[1498]="ER_PARTITION_NOT_DEFINED_ERROR";z[1499]="ER_TOO_MANY_PARTITIONS_ERROR";z[1500]="ER_SUBPARTITION_ERROR";z[1501]="ER_CANT_CREATE_HANDLER_FILE";z[1502]="ER_BLOB_FIELD_IN_PART_FUNC_ERROR";z[1503]="ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF";z[1504]="ER_NO_PARTS_ERROR";z[1505]="ER_PARTITION_MGMT_ON_NONPARTITIONED";z[1506]="ER_FOREIGN_KEY_ON_PARTITIONED";z[1507]="ER_DROP_PARTITION_NON_EXISTENT";z[1508]="ER_DROP_LAST_PARTITION";z[1509]="ER_COALESCE_ONLY_ON_HASH_PARTITION";z[1510]="ER_REORG_HASH_ONLY_ON_SAME_NO";z[1511]="ER_REORG_NO_PARAM_ERROR";z[1512]="ER_ONLY_ON_RANGE_LIST_PARTITION";z[1513]="ER_ADD_PARTITION_SUBPART_ERROR";z[1514]="ER_ADD_PARTITION_NO_NEW_PARTITION";z[1515]="ER_COALESCE_PARTITION_NO_PARTITION";z[1516]="ER_REORG_PARTITION_NOT_EXIST";z[1517]="ER_SAME_NAME_PARTITION";z[1518]="ER_NO_BINLOG_ERROR";z[1519]="ER_CONSECUTIVE_REORG_PARTITIONS";z[1520]="ER_REORG_OUTSIDE_RANGE";z[1521]="ER_PARTITION_FUNCTION_FAILURE";z[1522]="ER_PART_STATE_ERROR";z[1523]="ER_LIMITED_PART_RANGE";z[1524]="ER_PLUGIN_IS_NOT_LOADED";z[1525]="ER_WRONG_VALUE";z[1526]="ER_NO_PARTITION_FOR_GIVEN_VALUE";z[1527]="ER_FILEGROUP_OPTION_ONLY_ONCE";z[1528]="ER_CREATE_FILEGROUP_FAILED";z[1529]="ER_DROP_FILEGROUP_FAILED";z[1530]="ER_TABLESPACE_AUTO_EXTEND_ERROR";z[1531]="ER_WRONG_SIZE_NUMBER";z[1532]="ER_SIZE_OVERFLOW_ERROR";z[1533]="ER_ALTER_FILEGROUP_FAILED";z[1534]="ER_BINLOG_ROW_LOGGING_FAILED";z[1535]="ER_BINLOG_ROW_WRONG_TABLE_DEF";z[1536]="ER_BINLOG_ROW_RBR_TO_SBR";z[1537]="ER_EVENT_ALREADY_EXISTS";z[1538]="ER_EVENT_STORE_FAILED";z[1539]="ER_EVENT_DOES_NOT_EXIST";z[1540]="ER_EVENT_CANT_ALTER";z[1541]="ER_EVENT_DROP_FAILED";z[1542]="ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG";z[1543]="ER_EVENT_ENDS_BEFORE_STARTS";z[1544]="ER_EVENT_EXEC_TIME_IN_THE_PAST";z[1545]="ER_EVENT_OPEN_TABLE_FAILED";z[1546]="ER_EVENT_NEITHER_M_EXPR_NOR_M_AT";z[1547]="ER_UNUSED_2";z[1548]="ER_UNUSED_3";z[1549]="ER_EVENT_CANNOT_DELETE";z[1550]="ER_EVENT_COMPILE_ERROR";z[1551]="ER_EVENT_SAME_NAME";z[1552]="ER_EVENT_DATA_TOO_LONG";z[1553]="ER_DROP_INDEX_FK";z[1554]="ER_WARN_DEPRECATED_SYNTAX_WITH_VER";z[1555]="ER_CANT_WRITE_LOCK_LOG_TABLE";z[1556]="ER_CANT_LOCK_LOG_TABLE";z[1557]="ER_UNUSED_4";z[1558]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE";z[1559]="ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR";z[1560]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT";z[1561]="ER_UNUSED_13";z[1562]="ER_PARTITION_NO_TEMPORARY";z[1563]="ER_PARTITION_CONST_DOMAIN_ERROR";z[1564]="ER_PARTITION_FUNCTION_IS_NOT_ALLOWED";z[1565]="ER_DDL_LOG_ERROR";z[1566]="ER_NULL_IN_VALUES_LESS_THAN";z[1567]="ER_WRONG_PARTITION_NAME";z[1568]="ER_CANT_CHANGE_TX_CHARACTERISTICS";z[1569]="ER_DUP_ENTRY_AUTOINCREMENT_CASE";z[1570]="ER_EVENT_MODIFY_QUEUE_ERROR";z[1571]="ER_EVENT_SET_VAR_ERROR";z[1572]="ER_PARTITION_MERGE_ERROR";z[1573]="ER_CANT_ACTIVATE_LOG";z[1574]="ER_RBR_NOT_AVAILABLE";z[1575]="ER_BASE64_DECODE_ERROR";z[1576]="ER_EVENT_RECURSION_FORBIDDEN";z[1577]="ER_EVENTS_DB_ERROR";z[1578]="ER_ONLY_INTEGERS_ALLOWED";z[1579]="ER_UNSUPORTED_LOG_ENGINE";z[1580]="ER_BAD_LOG_STATEMENT";z[1581]="ER_CANT_RENAME_LOG_TABLE";z[1582]="ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT";z[1583]="ER_WRONG_PARAMETERS_TO_NATIVE_FCT";z[1584]="ER_WRONG_PARAMETERS_TO_STORED_FCT";z[1585]="ER_NATIVE_FCT_NAME_COLLISION";z[1586]="ER_DUP_ENTRY_WITH_KEY_NAME";z[1587]="ER_BINLOG_PURGE_EMFILE";z[1588]="ER_EVENT_CANNOT_CREATE_IN_THE_PAST";z[1589]="ER_EVENT_CANNOT_ALTER_IN_THE_PAST";z[1590]="ER_SLAVE_INCIDENT";z[1591]="ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT";z[1592]="ER_BINLOG_UNSAFE_STATEMENT";z[1593]="ER_SLAVE_FATAL_ERROR";z[1594]="ER_SLAVE_RELAY_LOG_READ_FAILURE";z[1595]="ER_SLAVE_RELAY_LOG_WRITE_FAILURE";z[1596]="ER_SLAVE_CREATE_EVENT_FAILURE";z[1597]="ER_SLAVE_MASTER_COM_FAILURE";z[1598]="ER_BINLOG_LOGGING_IMPOSSIBLE";z[1599]="ER_VIEW_NO_CREATION_CTX";z[1600]="ER_VIEW_INVALID_CREATION_CTX";z[1601]="ER_SR_INVALID_CREATION_CTX";z[1602]="ER_TRG_CORRUPTED_FILE";z[1603]="ER_TRG_NO_CREATION_CTX";z[1604]="ER_TRG_INVALID_CREATION_CTX";z[1605]="ER_EVENT_INVALID_CREATION_CTX";z[1606]="ER_TRG_CANT_OPEN_TABLE";z[1607]="ER_CANT_CREATE_SROUTINE";z[1608]="ER_UNUSED_11";z[1609]="ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT";z[1610]="ER_SLAVE_CORRUPT_EVENT";z[1611]="ER_LOAD_DATA_INVALID_COLUMN";z[1612]="ER_LOG_PURGE_NO_FILE";z[1613]="ER_XA_RBTIMEOUT";z[1614]="ER_XA_RBDEADLOCK";z[1615]="ER_NEED_REPREPARE";z[1616]="ER_DELAYED_NOT_SUPPORTED";z[1617]="WARN_NO_MASTER_INFO";z[1618]="WARN_OPTION_IGNORED";z[1619]="ER_PLUGIN_DELETE_BUILTIN";z[1620]="WARN_PLUGIN_BUSY";z[1621]="ER_VARIABLE_IS_READONLY";z[1622]="ER_WARN_ENGINE_TRANSACTION_ROLLBACK";z[1623]="ER_SLAVE_HEARTBEAT_FAILURE";z[1624]="ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE";z[1625]="ER_UNUSED_14";z[1626]="ER_CONFLICT_FN_PARSE_ERROR";z[1627]="ER_EXCEPTIONS_WRITE_ERROR";z[1628]="ER_TOO_LONG_TABLE_COMMENT";z[1629]="ER_TOO_LONG_FIELD_COMMENT";z[1630]="ER_FUNC_INEXISTENT_NAME_COLLISION";z[1631]="ER_DATABASE_NAME";z[1632]="ER_TABLE_NAME";z[1633]="ER_PARTITION_NAME";z[1634]="ER_SUBPARTITION_NAME";z[1635]="ER_TEMPORARY_NAME";z[1636]="ER_RENAMED_NAME";z[1637]="ER_TOO_MANY_CONCURRENT_TRXS";z[1638]="WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED";z[1639]="ER_DEBUG_SYNC_TIMEOUT";z[1640]="ER_DEBUG_SYNC_HIT_LIMIT";z[1641]="ER_DUP_SIGNAL_SET";z[1642]="ER_SIGNAL_WARN";z[1643]="ER_SIGNAL_NOT_FOUND";z[1644]="ER_SIGNAL_EXCEPTION";z[1645]="ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER";z[1646]="ER_SIGNAL_BAD_CONDITION_TYPE";z[1647]="WARN_COND_ITEM_TRUNCATED";z[1648]="ER_COND_ITEM_TOO_LONG";z[1649]="ER_UNKNOWN_LOCALE";z[1650]="ER_SLAVE_IGNORE_SERVER_IDS";z[1651]="ER_QUERY_CACHE_DISABLED";z[1652]="ER_SAME_NAME_PARTITION_FIELD";z[1653]="ER_PARTITION_COLUMN_LIST_ERROR";z[1654]="ER_WRONG_TYPE_COLUMN_VALUE_ERROR";z[1655]="ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR";z[1656]="ER_MAXVALUE_IN_VALUES_IN";z[1657]="ER_TOO_MANY_VALUES_ERROR";z[1658]="ER_ROW_SINGLE_PARTITION_FIELD_ERROR";z[1659]="ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD";z[1660]="ER_PARTITION_FIELDS_TOO_LONG";z[1661]="ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE";z[1662]="ER_BINLOG_ROW_MODE_AND_STMT_ENGINE";z[1663]="ER_BINLOG_UNSAFE_AND_STMT_ENGINE";z[1664]="ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE";z[1665]="ER_BINLOG_STMT_MODE_AND_ROW_ENGINE";z[1666]="ER_BINLOG_ROW_INJECTION_AND_STMT_MODE";z[1667]="ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE";z[1668]="ER_BINLOG_UNSAFE_LIMIT";z[1669]="ER_BINLOG_UNSAFE_INSERT_DELAYED";z[1670]="ER_BINLOG_UNSAFE_SYSTEM_TABLE";z[1671]="ER_BINLOG_UNSAFE_AUTOINC_COLUMNS";z[1672]="ER_BINLOG_UNSAFE_UDF";z[1673]="ER_BINLOG_UNSAFE_SYSTEM_VARIABLE";z[1674]="ER_BINLOG_UNSAFE_SYSTEM_FUNCTION";z[1675]="ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS";z[1676]="ER_MESSAGE_AND_STATEMENT";z[1677]="ER_SLAVE_CONVERSION_FAILED";z[1678]="ER_SLAVE_CANT_CREATE_CONVERSION";z[1679]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT";z[1680]="ER_PATH_LENGTH";z[1681]="ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT";z[1682]="ER_WRONG_NATIVE_TABLE_STRUCTURE";z[1683]="ER_WRONG_PERFSCHEMA_USAGE";z[1684]="ER_WARN_I_S_SKIPPED_TABLE";z[1685]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT";z[1686]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT";z[1687]="ER_SPATIAL_MUST_HAVE_GEOM_COL";z[1688]="ER_TOO_LONG_INDEX_COMMENT";z[1689]="ER_LOCK_ABORTED";z[1690]="ER_DATA_OUT_OF_RANGE";z[1691]="ER_WRONG_SPVAR_TYPE_IN_LIMIT";z[1692]="ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE";z[1693]="ER_BINLOG_UNSAFE_MIXED_STATEMENT";z[1694]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN";z[1695]="ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN";z[1696]="ER_FAILED_READ_FROM_PAR_FILE";z[1697]="ER_VALUES_IS_NOT_INT_TYPE_ERROR";z[1698]="ER_ACCESS_DENIED_NO_PASSWORD_ERROR";z[1699]="ER_SET_PASSWORD_AUTH_PLUGIN";z[1700]="ER_GRANT_PLUGIN_USER_EXISTS";z[1701]="ER_TRUNCATE_ILLEGAL_FK";z[1702]="ER_PLUGIN_IS_PERMANENT";z[1703]="ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN";z[1704]="ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX";z[1705]="ER_STMT_CACHE_FULL";z[1706]="ER_MULTI_UPDATE_KEY_CONFLICT";z[1707]="ER_TABLE_NEEDS_REBUILD";z[1708]="WARN_OPTION_BELOW_LIMIT";z[1709]="ER_INDEX_COLUMN_TOO_LONG";z[1710]="ER_ERROR_IN_TRIGGER_BODY";z[1711]="ER_ERROR_IN_UNKNOWN_TRIGGER_BODY";z[1712]="ER_INDEX_CORRUPT";z[1713]="ER_UNDO_RECORD_TOO_BIG";z[1714]="ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT";z[1715]="ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE";z[1716]="ER_BINLOG_UNSAFE_REPLACE_SELECT";z[1717]="ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT";z[1718]="ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT";z[1719]="ER_BINLOG_UNSAFE_UPDATE_IGNORE";z[1720]="ER_UNUSED_15";z[1721]="ER_UNUSED_16";z[1722]="ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT";z[1723]="ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC";z[1724]="ER_BINLOG_UNSAFE_INSERT_TWO_KEYS";z[1725]="ER_TABLE_IN_FK_CHECK";z[1726]="ER_UNUSED_1";z[1727]="ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST";z[1728]="ER_CANNOT_LOAD_FROM_TABLE_V2";z[1729]="ER_MASTER_DELAY_VALUE_OUT_OF_RANGE";z[1730]="ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT";z[1731]="ER_PARTITION_EXCHANGE_DIFFERENT_OPTION";z[1732]="ER_PARTITION_EXCHANGE_PART_TABLE";z[1733]="ER_PARTITION_EXCHANGE_TEMP_TABLE";z[1734]="ER_PARTITION_INSTEAD_OF_SUBPARTITION";z[1735]="ER_UNKNOWN_PARTITION";z[1736]="ER_TABLES_DIFFERENT_METADATA";z[1737]="ER_ROW_DOES_NOT_MATCH_PARTITION";z[1738]="ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX";z[1739]="ER_WARN_INDEX_NOT_APPLICABLE";z[1740]="ER_PARTITION_EXCHANGE_FOREIGN_KEY";z[1741]="ER_NO_SUCH_KEY_VALUE";z[1742]="ER_VALUE_TOO_LONG";z[1743]="ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE";z[1744]="ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE";z[1745]="ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX";z[1746]="ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT";z[1747]="ER_PARTITION_CLAUSE_ON_NONPARTITIONED";z[1748]="ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET";z[1749]="ER_UNUSED_5";z[1750]="ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE";z[1751]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE";z[1752]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE";z[1753]="ER_MTS_FEATURE_IS_NOT_SUPPORTED";z[1754]="ER_MTS_UPDATED_DBS_GREATER_MAX";z[1755]="ER_MTS_CANT_PARALLEL";z[1756]="ER_MTS_INCONSISTENT_DATA";z[1757]="ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING";z[1758]="ER_DA_INVALID_CONDITION_NUMBER";z[1759]="ER_INSECURE_PLAIN_TEXT";z[1760]="ER_INSECURE_CHANGE_MASTER";z[1761]="ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO";z[1762]="ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO";z[1763]="ER_SQLTHREAD_WITH_SECURE_SLAVE";z[1764]="ER_TABLE_HAS_NO_FT";z[1765]="ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER";z[1766]="ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION";z[1767]="ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST";z[1768]="ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL";z[1769]="ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION";z[1770]="ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL";z[1771]="ER_SKIPPING_LOGGED_TRANSACTION";z[1772]="ER_MALFORMED_GTID_SET_SPECIFICATION";z[1773]="ER_MALFORMED_GTID_SET_ENCODING";z[1774]="ER_MALFORMED_GTID_SPECIFICATION";z[1775]="ER_GNO_EXHAUSTED";z[1776]="ER_BAD_SLAVE_AUTO_POSITION";z[1777]="ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON";z[1778]="ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET";z[1779]="ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON";z[1780]="ER_GTID_MODE_REQUIRES_BINLOG";z[1781]="ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF";z[1782]="ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON";z[1783]="ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF";z[1784]="ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF";z[1785]="ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE";z[1786]="ER_GTID_UNSAFE_CREATE_SELECT";z[1787]="ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION";z[1788]="ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME";z[1789]="ER_MASTER_HAS_PURGED_REQUIRED_GTIDS";z[1790]="ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID";z[1791]="ER_UNKNOWN_EXPLAIN_FORMAT";z[1792]="ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION";z[1793]="ER_TOO_LONG_TABLE_PARTITION_COMMENT";z[1794]="ER_SLAVE_CONFIGURATION";z[1795]="ER_INNODB_FT_LIMIT";z[1796]="ER_INNODB_NO_FT_TEMP_TABLE";z[1797]="ER_INNODB_FT_WRONG_DOCID_COLUMN";z[1798]="ER_INNODB_FT_WRONG_DOCID_INDEX";z[1799]="ER_INNODB_ONLINE_LOG_TOO_BIG";z[1800]="ER_UNKNOWN_ALTER_ALGORITHM";z[1801]="ER_UNKNOWN_ALTER_LOCK";z[1802]="ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS";z[1803]="ER_MTS_RECOVERY_FAILURE";z[1804]="ER_MTS_RESET_WORKERS";z[1805]="ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2";z[1806]="ER_SLAVE_SILENT_RETRY_TRANSACTION";z[1807]="ER_UNUSED_22";z[1808]="ER_TABLE_SCHEMA_MISMATCH";z[1809]="ER_TABLE_IN_SYSTEM_TABLESPACE";z[1810]="ER_IO_READ_ERROR";z[1811]="ER_IO_WRITE_ERROR";z[1812]="ER_TABLESPACE_MISSING";z[1813]="ER_TABLESPACE_EXISTS";z[1814]="ER_TABLESPACE_DISCARDED";z[1815]="ER_INTERNAL_ERROR";z[1816]="ER_INNODB_IMPORT_ERROR";z[1817]="ER_INNODB_INDEX_CORRUPT";z[1818]="ER_INVALID_YEAR_COLUMN_LENGTH";z[1819]="ER_NOT_VALID_PASSWORD";z[1820]="ER_MUST_CHANGE_PASSWORD";z[1821]="ER_FK_NO_INDEX_CHILD";z[1822]="ER_FK_NO_INDEX_PARENT";z[1823]="ER_FK_FAIL_ADD_SYSTEM";z[1824]="ER_FK_CANNOT_OPEN_PARENT";z[1825]="ER_FK_INCORRECT_OPTION";z[1826]="ER_DUP_CONSTRAINT_NAME";z[1827]="ER_PASSWORD_FORMAT";z[1828]="ER_FK_COLUMN_CANNOT_DROP";z[1829]="ER_FK_COLUMN_CANNOT_DROP_CHILD";z[1830]="ER_FK_COLUMN_NOT_NULL";z[1831]="ER_DUP_INDEX";z[1832]="ER_FK_COLUMN_CANNOT_CHANGE";z[1833]="ER_FK_COLUMN_CANNOT_CHANGE_CHILD";z[1834]="ER_FK_CANNOT_DELETE_PARENT";z[1835]="ER_MALFORMED_PACKET";z[1836]="ER_READ_ONLY_MODE";z[1837]="ER_GTID_NEXT_TYPE_UNDEFINED_GROUP";z[1838]="ER_VARIABLE_NOT_SETTABLE_IN_SP";z[1839]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF";z[1840]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY";z[1841]="ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY";z[1842]="ER_GTID_PURGED_WAS_CHANGED";z[1843]="ER_GTID_EXECUTED_WAS_CHANGED";z[1844]="ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES";z[1845]="ER_ALTER_OPERATION_NOT_SUPPORTED";z[1846]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON";z[1847]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY";z[1848]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION";z[1849]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME";z[1850]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE";z[1851]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK";z[1852]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE";z[1853]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK";z[1854]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC";z[1855]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS";z[1856]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS";z[1857]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS";z[1858]="ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE";z[1859]="ER_DUP_UNKNOWN_IN_INDEX";z[1860]="ER_IDENT_CAUSES_TOO_LONG_PATH";z[1861]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL";z[1862]="ER_MUST_CHANGE_PASSWORD_LOGIN";z[1863]="ER_ROW_IN_WRONG_PARTITION";z[1864]="ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX";z[1865]="ER_INNODB_NO_FT_USES_PARSER";z[1866]="ER_BINLOG_LOGICAL_CORRUPTION";z[1867]="ER_WARN_PURGE_LOG_IN_USE";z[1868]="ER_WARN_PURGE_LOG_IS_ACTIVE";z[1869]="ER_AUTO_INCREMENT_CONFLICT";z[1870]="WARN_ON_BLOCKHOLE_IN_RBR";z[1871]="ER_SLAVE_MI_INIT_REPOSITORY";z[1872]="ER_SLAVE_RLI_INIT_REPOSITORY";z[1873]="ER_ACCESS_DENIED_CHANGE_USER_ERROR";z[1874]="ER_INNODB_READ_ONLY";z[1875]="ER_STOP_SLAVE_SQL_THREAD_TIMEOUT";z[1876]="ER_STOP_SLAVE_IO_THREAD_TIMEOUT";z[1877]="ER_TABLE_CORRUPT";z[1878]="ER_TEMP_FILE_WRITE_FAILURE";z[1879]="ER_INNODB_FT_AUX_NOT_HEX_ID";z[1880]="ER_LAST_MYSQL_ERROR_MESSAGE";z[1900]="ER_UNUSED_18";z[1901]="ER_GENERATED_COLUMN_FUNCTION_IS_NOT_ALLOWED";z[1902]="ER_UNUSED_19";z[1903]="ER_PRIMARY_KEY_BASED_ON_GENERATED_COLUMN";z[1904]="ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN";z[1905]="ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN";z[1906]="ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN";z[1907]="ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN";z[1908]="ER_UNUSED_20";z[1909]="ER_UNUSED_21";z[1910]="ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS";z[1911]="ER_UNKNOWN_OPTION";z[1912]="ER_BAD_OPTION_VALUE";z[1913]="ER_UNUSED_6";z[1914]="ER_UNUSED_7";z[1915]="ER_UNUSED_8";z[1916]="ER_DATA_OVERFLOW";z[1917]="ER_DATA_TRUNCATED";z[1918]="ER_BAD_DATA";z[1919]="ER_DYN_COL_WRONG_FORMAT";z[1920]="ER_DYN_COL_IMPLEMENTATION_LIMIT";z[1921]="ER_DYN_COL_DATA";z[1922]="ER_DYN_COL_WRONG_CHARSET";z[1923]="ER_ILLEGAL_SUBQUERY_OPTIMIZER_SWITCHES";z[1924]="ER_QUERY_CACHE_IS_DISABLED";z[1925]="ER_QUERY_CACHE_IS_GLOBALY_DISABLED";z[1926]="ER_VIEW_ORDERBY_IGNORED";z[1927]="ER_CONNECTION_KILLED";z[1928]="ER_UNUSED_12";z[1929]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SKIP_REPLICATION";z[1930]="ER_STORED_FUNCTION_PREVENTS_SWITCH_SKIP_REPLICATION";z[1931]="ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT";z[1932]="ER_NO_SUCH_TABLE_IN_ENGINE";z[1933]="ER_TARGET_NOT_EXPLAINABLE";z[1934]="ER_CONNECTION_ALREADY_EXISTS";z[1935]="ER_MASTER_LOG_PREFIX";z[1936]="ER_CANT_START_STOP_SLAVE";z[1937]="ER_SLAVE_STARTED";z[1938]="ER_SLAVE_STOPPED";z[1939]="ER_SQL_DISCOVER_ERROR";z[1940]="ER_FAILED_GTID_STATE_INIT";z[1941]="ER_INCORRECT_GTID_STATE";z[1942]="ER_CANNOT_UPDATE_GTID_STATE";z[1943]="ER_DUPLICATE_GTID_DOMAIN";z[1944]="ER_GTID_OPEN_TABLE_FAILED";z[1945]="ER_GTID_POSITION_NOT_FOUND_IN_BINLOG";z[1946]="ER_CANNOT_LOAD_SLAVE_GTID_STATE";z[1947]="ER_MASTER_GTID_POS_CONFLICTS_WITH_BINLOG";z[1948]="ER_MASTER_GTID_POS_MISSING_DOMAIN";z[1949]="ER_UNTIL_REQUIRES_USING_GTID";z[1950]="ER_GTID_STRICT_OUT_OF_ORDER";z[1951]="ER_GTID_START_FROM_BINLOG_HOLE";z[1952]="ER_SLAVE_UNEXPECTED_MASTER_SWITCH";z[1953]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_GTID_DOMAIN_ID_SEQ_NO";z[1954]="ER_STORED_FUNCTION_PREVENTS_SWITCH_GTID_DOMAIN_ID_SEQ_NO";z[1955]="ER_GTID_POSITION_NOT_FOUND_IN_BINLOG2";z[1956]="ER_BINLOG_MUST_BE_EMPTY";z[1957]="ER_NO_SUCH_QUERY";z[1958]="ER_BAD_BASE64_DATA";z[1959]="ER_INVALID_ROLE";z[1960]="ER_INVALID_CURRENT_USER";z[1961]="ER_CANNOT_GRANT_ROLE";z[1962]="ER_CANNOT_REVOKE_ROLE";z[1963]="ER_CHANGE_SLAVE_PARALLEL_THREADS_ACTIVE";z[1964]="ER_PRIOR_COMMIT_FAILED";z[1965]="ER_IT_IS_A_VIEW";z[1966]="ER_SLAVE_SKIP_NOT_IN_GTID";z[1967]="ER_TABLE_DEFINITION_TOO_BIG";z[1968]="ER_PLUGIN_INSTALLED";z[1969]="ER_STATEMENT_TIMEOUT";z[1970]="ER_SUBQUERIES_NOT_SUPPORTED";z[1971]="ER_SET_STATEMENT_NOT_SUPPORTED";z[1972]="ER_UNUSED_9";z[1973]="ER_USER_CREATE_EXISTS";z[1974]="ER_USER_DROP_EXISTS";z[1975]="ER_ROLE_CREATE_EXISTS";z[1976]="ER_ROLE_DROP_EXISTS";z[1977]="ER_CANNOT_CONVERT_CHARACTER";z[1978]="ER_INVALID_DEFAULT_VALUE_FOR_FIELD";z[1979]="ER_KILL_QUERY_DENIED_ERROR";z[1980]="ER_NO_EIS_FOR_FIELD";z[1981]="ER_WARN_AGGFUNC_DEPENDENCE";z[1982]="WARN_INNODB_PARTITION_OPTION_IGNORED";z[3e3]="ER_FILE_CORRUPT";z[3001]="ER_ERROR_ON_MASTER";z[3002]="ER_INCONSISTENT_ERROR";z[3003]="ER_STORAGE_ENGINE_NOT_LOADED";z[3004]="ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER";z[3005]="ER_WARN_LEGACY_SYNTAX_CONVERTED";z[3006]="ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN";z[3007]="ER_CANNOT_DISCARD_TEMPORARY_TABLE";z[3008]="ER_FK_DEPTH_EXCEEDED";z[3009]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2";z[3010]="ER_WARN_TRIGGER_DOESNT_HAVE_CREATED";z[3011]="ER_REFERENCED_TRG_DOES_NOT_EXIST_MYSQL";z[3012]="ER_EXPLAIN_NOT_SUPPORTED";z[3013]="ER_INVALID_FIELD_SIZE";z[3014]="ER_MISSING_HA_CREATE_OPTION";z[3015]="ER_ENGINE_OUT_OF_MEMORY";z[3016]="ER_PASSWORD_EXPIRE_ANONYMOUS_USER";z[3017]="ER_SLAVE_SQL_THREAD_MUST_STOP";z[3018]="ER_NO_FT_MATERIALIZED_SUBQUERY";z[3019]="ER_INNODB_UNDO_LOG_FULL";z[3020]="ER_INVALID_ARGUMENT_FOR_LOGARITHM";z[3021]="ER_SLAVE_CHANNEL_IO_THREAD_MUST_STOP";z[3022]="ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO";z[3023]="ER_WARN_ONLY_MASTER_LOG_FILE_NO_POS";z[3024]="ER_QUERY_TIMEOUT";z[3025]="ER_NON_RO_SELECT_DISABLE_TIMER";z[3026]="ER_DUP_LIST_ENTRY";z[3027]="ER_SQL_MODE_NO_EFFECT";z[3028]="ER_AGGREGATE_ORDER_FOR_UNION";z[3029]="ER_AGGREGATE_ORDER_NON_AGG_QUERY";z[3030]="ER_SLAVE_WORKER_STOPPED_PREVIOUS_THD_ERROR";z[3031]="ER_DONT_SUPPORT_SLAVE_PRESERVE_COMMIT_ORDER";z[3032]="ER_SERVER_OFFLINE_MODE";z[3033]="ER_GIS_DIFFERENT_SRIDS";z[3034]="ER_GIS_UNSUPPORTED_ARGUMENT";z[3035]="ER_GIS_UNKNOWN_ERROR";z[3036]="ER_GIS_UNKNOWN_EXCEPTION";z[3037]="ER_GIS_INVALID_DATA";z[3038]="ER_BOOST_GEOMETRY_EMPTY_INPUT_EXCEPTION";z[3039]="ER_BOOST_GEOMETRY_CENTROID_EXCEPTION";z[3040]="ER_BOOST_GEOMETRY_OVERLAY_INVALID_INPUT_EXCEPTION";z[3041]="ER_BOOST_GEOMETRY_TURN_INFO_EXCEPTION";z[3042]="ER_BOOST_GEOMETRY_SELF_INTERSECTION_POINT_EXCEPTION";z[3043]="ER_BOOST_GEOMETRY_UNKNOWN_EXCEPTION";z[3044]="ER_STD_BAD_ALLOC_ERROR";z[3045]="ER_STD_DOMAIN_ERROR";z[3046]="ER_STD_LENGTH_ERROR";z[3047]="ER_STD_INVALID_ARGUMENT";z[3048]="ER_STD_OUT_OF_RANGE_ERROR";z[3049]="ER_STD_OVERFLOW_ERROR";z[3050]="ER_STD_RANGE_ERROR";z[3051]="ER_STD_UNDERFLOW_ERROR";z[3052]="ER_STD_LOGIC_ERROR";z[3053]="ER_STD_RUNTIME_ERROR";z[3054]="ER_STD_UNKNOWN_EXCEPTION";z[3055]="ER_GIS_DATA_WRONG_ENDIANESS";z[3056]="ER_CHANGE_MASTER_PASSWORD_LENGTH";z[3057]="ER_USER_LOCK_WRONG_NAME";z[3058]="ER_USER_LOCK_DEADLOCK";z[3059]="ER_REPLACE_INACCESSIBLE_ROWS";z[3060]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_GIS";z[4e3]="ER_COMMULTI_BADCONTEXT";z[4001]="ER_BAD_COMMAND_IN_MULTI";z[4002]="ER_WITH_COL_WRONG_LIST";z[4003]="ER_TOO_MANY_DEFINITIONS_IN_WITH_CLAUSE";z[4004]="ER_DUP_QUERY_NAME";z[4005]="ER_RECURSIVE_WITHOUT_ANCHORS";z[4006]="ER_UNACCEPTABLE_MUTUAL_RECURSION";z[4007]="ER_REF_TO_RECURSIVE_WITH_TABLE_IN_DERIVED";z[4008]="ER_NOT_STANDARD_COMPLIANT_RECURSIVE";z[4009]="ER_WRONG_WINDOW_SPEC_NAME";z[4010]="ER_DUP_WINDOW_NAME";z[4011]="ER_PARTITION_LIST_IN_REFERENCING_WINDOW_SPEC";z[4012]="ER_ORDER_LIST_IN_REFERENCING_WINDOW_SPEC";z[4013]="ER_WINDOW_FRAME_IN_REFERENCED_WINDOW_SPEC";z[4014]="ER_BAD_COMBINATION_OF_WINDOW_FRAME_BOUND_SPECS";z[4015]="ER_WRONG_PLACEMENT_OF_WINDOW_FUNCTION";z[4016]="ER_WINDOW_FUNCTION_IN_WINDOW_SPEC";z[4017]="ER_NOT_ALLOWED_WINDOW_FRAME";z[4018]="ER_NO_ORDER_LIST_IN_WINDOW_SPEC";z[4019]="ER_RANGE_FRAME_NEEDS_SIMPLE_ORDERBY";z[4020]="ER_WRONG_TYPE_FOR_ROWS_FRAME";z[4021]="ER_WRONG_TYPE_FOR_RANGE_FRAME";z[4022]="ER_FRAME_EXCLUSION_NOT_SUPPORTED";z[4023]="ER_WINDOW_FUNCTION_DONT_HAVE_FRAME";z[4024]="ER_INVALID_NTILE_ARGUMENT";z[4025]="ER_CONSTRAINT_FAILED";z[4026]="ER_EXPRESSION_IS_TOO_BIG";z[4027]="ER_ERROR_EVALUATING_EXPRESSION";z[4028]="ER_CALCULATING_DEFAULT_VALUE";z[4029]="ER_EXPRESSION_REFERS_TO_UNINIT_FIELD";z[4030]="ER_PARTITION_DEFAULT_ERROR";z[4031]="ER_REFERENCED_TRG_DOES_NOT_EXIST";z[4032]="ER_INVALID_DEFAULT_PARAM";z[4033]="ER_BINLOG_NON_SUPPORTED_BULK";z[4034]="ER_BINLOG_UNCOMPRESS_ERROR";z[4035]="ER_JSON_BAD_CHR";z[4036]="ER_JSON_NOT_JSON_CHR";z[4037]="ER_JSON_EOS";z[4038]="ER_JSON_SYNTAX";z[4039]="ER_JSON_ESCAPING";z[4040]="ER_JSON_DEPTH";z[4041]="ER_JSON_PATH_EOS";z[4042]="ER_JSON_PATH_SYNTAX";z[4043]="ER_JSON_PATH_DEPTH";z[4044]="ER_JSON_PATH_NO_WILDCARD";z[4045]="ER_JSON_PATH_ARRAY";z[4046]="ER_JSON_ONE_OR_ALL";z[4047]="ER_UNSUPPORT_COMPRESSED_TEMPORARY_TABLE";z[4048]="ER_GEOJSON_INCORRECT";z[4049]="ER_GEOJSON_TOO_FEW_POINTS";z[4050]="ER_GEOJSON_NOT_CLOSED";z[4051]="ER_JSON_PATH_EMPTY";z[4052]="ER_SLAVE_SAME_ID";z[4053]="ER_FLASHBACK_NOT_SUPPORTED";z[4054]="ER_KEYS_OUT_OF_ORDER";z[4055]="ER_OVERLAPPING_KEYS";z[4056]="ER_REQUIRE_ROW_BINLOG_FORMAT";z[4057]="ER_ISOLATION_MODE_NOT_SUPPORTED";z[4058]="ER_ON_DUPLICATE_DISABLED";z[4059]="ER_UPDATES_WITH_CONSISTENT_SNAPSHOT";z[4060]="ER_ROLLBACK_ONLY";z[4061]="ER_ROLLBACK_TO_SAVEPOINT";z[4062]="ER_ISOLATION_LEVEL_WITH_CONSISTENT_SNAPSHOT";z[4063]="ER_UNSUPPORTED_COLLATION";z[4064]="ER_METADATA_INCONSISTENCY";z[4065]="ER_CF_DIFFERENT";z[4066]="ER_RDB_TTL_DURATION_FORMAT";z[4067]="ER_RDB_STATUS_GENERAL";z[4068]="ER_RDB_STATUS_MSG";z[4069]="ER_RDB_TTL_UNSUPPORTED";z[4070]="ER_RDB_TTL_COL_FORMAT";z[4071]="ER_PER_INDEX_CF_DEPRECATED";z[4072]="ER_KEY_CREATE_DURING_ALTER";z[4073]="ER_SK_POPULATE_DURING_ALTER";z[4074]="ER_SUM_FUNC_WITH_WINDOW_FUNC_AS_ARG";z[4075]="ER_NET_OK_PACKET_TOO_LARGE";z[4076]="ER_GEOJSON_EMPTY_COORDINATES";z[4077]="ER_MYROCKS_CANT_NOPAD_COLLATION";z[4078]="ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION";z[4079]="ER_ILLEGAL_PARAMETER_DATA_TYPE_FOR_OPERATION";z[4080]="ER_WRONG_PARAMCOUNT_TO_CURSOR";z[4081]="ER_UNKNOWN_STRUCTURED_VARIABLE";z[4082]="ER_ROW_VARIABLE_DOES_NOT_HAVE_FIELD";z[4083]="ER_END_IDENTIFIER_DOES_NOT_MATCH";z[4084]="ER_SEQUENCE_RUN_OUT";z[4085]="ER_SEQUENCE_INVALID_DATA";z[4086]="ER_SEQUENCE_INVALID_TABLE_STRUCTURE";z[4087]="ER_SEQUENCE_ACCESS_ERROR";z[4088]="ER_SEQUENCE_BINLOG_FORMAT";z[4089]="ER_NOT_SEQUENCE";z[4090]="ER_NOT_SEQUENCE2";z[4091]="ER_UNKNOWN_SEQUENCES";z[4092]="ER_UNKNOWN_VIEW";z[4093]="ER_WRONG_INSERT_INTO_SEQUENCE";z[4094]="ER_SP_STACK_TRACE";z[4095]="ER_PACKAGE_ROUTINE_IN_SPEC_NOT_DEFINED_IN_BODY";z[4096]="ER_PACKAGE_ROUTINE_FORWARD_DECLARATION_NOT_DEFINED";z[4097]="ER_COMPRESSED_COLUMN_USED_AS_KEY";z[4098]="ER_UNKNOWN_COMPRESSION_METHOD";z[4099]="ER_WRONG_NUMBER_OF_VALUES_IN_TVC";z[4100]="ER_FIELD_REFERENCE_IN_TVC";z[4101]="ER_WRONG_TYPE_FOR_PERCENTILE_FUNC";z[4102]="ER_ARGUMENT_NOT_CONSTANT";z[4103]="ER_ARGUMENT_OUT_OF_RANGE";z[4104]="ER_WRONG_TYPE_OF_ARGUMENT";z[4105]="ER_NOT_AGGREGATE_FUNCTION";z[4106]="ER_INVALID_AGGREGATE_FUNCTION";z[4107]="ER_INVALID_VALUE_TO_LIMIT";z[4108]="ER_INVISIBLE_NOT_NULL_WITHOUT_DEFAULT";z[4109]="ER_UPDATE_INFO_WITH_SYSTEM_VERSIONING";z[4110]="ER_VERS_FIELD_WRONG_TYPE";z[4111]="ER_VERS_ENGINE_UNSUPPORTED";z[4112]="ER_UNUSED_23";z[4113]="ER_PARTITION_WRONG_TYPE";z[4114]="WARN_VERS_PART_FULL";z[4115]="WARN_VERS_PARAMETERS";z[4116]="ER_VERS_DROP_PARTITION_INTERVAL";z[4117]="ER_UNUSED_25";z[4118]="WARN_VERS_PART_NON_HISTORICAL";z[4119]="ER_VERS_ALTER_NOT_ALLOWED";z[4120]="ER_VERS_ALTER_ENGINE_PROHIBITED";z[4121]="ER_VERS_RANGE_PROHIBITED";z[4122]="ER_CONFLICTING_FOR_SYSTEM_TIME";z[4123]="ER_VERS_TABLE_MUST_HAVE_COLUMNS";z[4124]="ER_VERS_NOT_VERSIONED";z[4125]="ER_MISSING";z[4126]="ER_VERS_PERIOD_COLUMNS";z[4127]="ER_PART_WRONG_VALUE";z[4128]="ER_VERS_WRONG_PARTS";z[4129]="ER_VERS_NO_TRX_ID";z[4130]="ER_VERS_ALTER_SYSTEM_FIELD";z[4131]="ER_DROP_VERSIONING_SYSTEM_TIME_PARTITION";z[4132]="ER_VERS_DB_NOT_SUPPORTED";z[4133]="ER_VERS_TRT_IS_DISABLED";z[4134]="ER_VERS_DUPLICATE_ROW_START_END";z[4135]="ER_VERS_ALREADY_VERSIONED";z[4136]="ER_UNUSED_24";z[4137]="ER_VERS_NOT_SUPPORTED";z[4138]="ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED";z[4139]="ER_INDEX_FILE_FULL";z[4140]="ER_UPDATED_COLUMN_ONLY_ONCE";z[4141]="ER_EMPTY_ROW_IN_TVC";z[4142]="ER_VERS_QUERY_IN_PARTITION";z[4143]="ER_KEY_DOESNT_SUPPORT";z[4144]="ER_ALTER_OPERATION_TABLE_OPTIONS_NEED_REBUILD";z[4145]="ER_BACKUP_LOCK_IS_ACTIVE";z[4146]="ER_BACKUP_NOT_RUNNING";z[4147]="ER_BACKUP_WRONG_STAGE";z[4148]="ER_BACKUP_STAGE_FAILED";z[4149]="ER_BACKUP_UNKNOWN_STAGE";z[4150]="ER_USER_IS_BLOCKED";z[4151]="ER_ACCOUNT_HAS_BEEN_LOCKED";z[4152]="ER_PERIOD_TEMPORARY_NOT_ALLOWED";z[4153]="ER_PERIOD_TYPES_MISMATCH";z[4154]="ER_MORE_THAN_ONE_PERIOD";z[4155]="ER_PERIOD_FIELD_WRONG_ATTRIBUTES";z[4156]="ER_PERIOD_NOT_FOUND";z[4157]="ER_PERIOD_COLUMNS_UPDATED";z[4158]="ER_PERIOD_CONSTRAINT_DROP";z[4159]="ER_TOO_LONG_KEYPART";z[4160]="ER_TOO_LONG_DATABASE_COMMENT";z[4161]="ER_UNKNOWN_DATA_TYPE";z[4162]="ER_UNKNOWN_OPERATOR";z[4163]="ER_WARN_HISTORY_ROW_START_TIME";z[4164]="ER_PART_STARTS_BEYOND_INTERVAL";z[4165]="ER_GALERA_REPLICATION_NOT_SUPPORTED";z[4166]="ER_LOAD_INFILE_CAPABILITY_DISABLED";z[4167]="ER_NO_SECURE_TRANSPORTS_CONFIGURED";z[4168]="ER_SLAVE_IGNORED_SHARED_TABLE";z[4169]="ER_NO_AUTOINCREMENT_WITH_UNIQUE";b.exports.codes=z},8745:function(b){b.exports.NOT_NULL=1;b.exports.PRIMARY_KEY=2;b.exports.UNIQUE_KEY=4;b.exports.MULTIPLE_KEY=8;b.exports.BLOB=1<<4;b.exports.UNSIGNED=1<<5;b.exports.ZEROFILL_FLAG=1<<6;b.exports.BINARY_COLLATION=1<<7;b.exports.ENUM=1<<8;b.exports.AUTO_INCREMENT=1<<9;b.exports.TIMESTAMP=1<<10;b.exports.SET=1<<11;b.exports.NO_DEFAULT_VALUE_FLAG=1<<12;b.exports.ON_UPDATE_NOW_FLAG=1<<13;b.exports.NUM_FLAG=1<<14},3290:function(b){b.exports.DECIMAL=0;b.exports.TINY=1;b.exports.SHORT=2;b.exports.LONG=3;b.exports.FLOAT=4;b.exports.DOUBLE=5;b.exports.NULL=6;b.exports.TIMESTAMP=7;b.exports.LONGLONG=8;b.exports.INT24=9;b.exports.DATE=10;b.exports.TIME=11;b.exports.DATETIME=12;b.exports.YEAR=13;b.exports.NEWDATE=14;b.exports.VARCHAR=15;b.exports.BIT=16;b.exports.TIMESTAMP2=17;b.exports.DATETIME2=18;b.exports.TIME2=19;b.exports.JSON=245;b.exports.NEWDECIMAL=246;b.exports.ENUM=247;b.exports.SET=248;b.exports.TINY_BLOB=249;b.exports.MEDIUM_BLOB=250;b.exports.LONG_BLOB=251;b.exports.BLOB=252;b.exports.VAR_STRING=253;b.exports.STRING=254;b.exports.GEOMETRY=255;const z=[];z[0]="DECIMAL";z[1]="TINY";z[2]="SHORT";z[3]="LONG";z[4]="FLOAT";z[5]="DOUBLE";z[6]="NULL";z[7]="TIMESTAMP";z[8]="LONGLONG";z[9]="INT24";z[10]="DATE";z[11]="TIME";z[12]="DATETIME";z[13]="YEAR";z[14]="NEWDATE";z[15]="VARCHAR";z[16]="BIT";z[17]="TIMESTAMP2";z[18]="DATETIME2";z[19]="TIME2";z[245]="JSON";z[246]="NEWDECIMAL";z[247]="ENUM";z[248]="SET";z[249]="TINY_BLOB";z[250]="MEDIUM_BLOB";z[251]="LONG_BLOB";z[252]="BLOB";z[253]="VAR_STRING";z[254]="STRING";z[255]="GEOMETRY";b.exports.TYPES=z},386:function(b){b.exports.STATUS_IN_TRANS=1;b.exports.STATUS_AUTOCOMMIT=2;b.exports.MORE_RESULTS_EXISTS=8;b.exports.QUERY_NO_GOOD_INDEX_USED=16;b.exports.QUERY_NO_INDEX_USED=32;b.exports.STATUS_CURSOR_EXISTS=64;b.exports.STATUS_LAST_ROW_SENT=128;b.exports.STATUS_DB_DROPPED=1<<8;b.exports.STATUS_NO_BACKSLASH_ESCAPES=1<<9;b.exports.STATUS_METADATA_CHANGED=1<<10;b.exports.QUERY_WAS_SLOW=1<<11;b.exports.PS_OUT_PARAMS=1<<12;b.exports.STATUS_IN_TRANS_READONLY=1<<13;b.exports.SESSION_STATE_CHANGED=1<<14},7311:function(b){b.exports.SESSION_TRACK_SYSTEM_VARIABLES=0;b.exports.SESSION_TRACK_SCHEMA=1;b.exports.SESSION_TRACK_STATE_CHANGE=2;b.exports.SESSION_TRACK_GTIDS=3;b.exports.SESSION_TRACK_TRANSACTION_CHARACTERISTICS=4;b.exports.SESSION_TRACK_TRANSACTION_STATE=5},6699:function(b){function FilteredPoolCluster(b,z,p){const O=b;const o=z;const e=p;this.getConnection=()=>O.getConnection(o,e);this.query=function(b,z){return O.getConnection(o,e).then((p=>p.query(b,z).then((b=>{p.end();return b})).catch((b=>{p.end();return Promise.reject(b)})))).catch((b=>Promise.reject(b)))};this.batch=function(b,z){return O.getConnection(o,e).then((p=>p.batch(b,z).then((b=>{p.end();return b})).catch((b=>{p.end();return Promise.reject(b)})))).catch((b=>Promise.reject(b)))}}b.exports=FilteredPoolCluster},5157:function(b,z,p){"use strict";const O=p(7936);const o=p(1401);const e=1024;const c=16384;const t=131072;const i=1048576;const n=16777219;class BulkPacket{constructor(b,z,p){this.out=z;this.buf=Buffer.allocUnsafe(e);this.pos=4;this.datatypes=[];this.encoding=z.encoding;this.statementId=-1;this.waitingResponseNo=1;this.singleQuery=false;this.haveErrorResponse=false;this.writeBinaryDate=b.tz?b.tz==="Etc/UTC"?this.writeBinaryUtcDate:this.writeBinaryTimezoneDate:this.writeBinaryLocalDate;if(this.encoding==="utf8"){this.writeLengthEncodedString=this.writeDefaultLengthEncodedString}else if(Buffer.isEncoding(this.encoding)){this.writeLengthEncodedString=this.writeDefaultLengthEncodedString}else{this.writeLengthEncodedString=this.writeIconvLengthEncodedString}this.maxAllowedPacket=b.maxAllowedPacket;this.maxPacketSize=b.maxAllowedPacket?Math.min(n,b.maxAllowedPacket):4194304;this.writeHeader(p)}datatypeChanged(b){if(this.datatypes.length!==b.length)return true;for(let z=0;z<b.length;z++){if(b[z]!==null){switch(typeof b[z]){case"boolean":if(this.datatypes[z]!==1)return true;break;case"number":case"bigint":if(this.datatypes[z]!==15)return true;break;case"object":if(Object.prototype.toString.call(b[z])==="[object Date]"){if(this.datatypes[z]!==12)return true}else if(Buffer.isBuffer(b[z])){if(this.datatypes[z]!==251)return true}else if(b[z].type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(b[z].type)){if(this.datatypes[z]!==251)return true}else{if(this.datatypes[z]!==15)return true}break;default:if(this.datatypes[z]!==15)return true}}}return false}writeHeader(b){this.buf[this.pos++]=250;this.buf[this.pos++]=this.statementId;this.buf[this.pos++]=this.statementId>>8;this.buf[this.pos++]=this.statementId>>16;this.buf[this.pos++]=this.statementId>>24;this.buf[this.pos++]=128;this.buf[this.pos++]=0;this.datatypes=[];if(b){for(let z=0;z<b.length;z++){if(b[z]===null){this.buf[this.pos++]=15}else{switch(typeof b[z]){case"boolean":this.buf[this.pos++]=1;break;case"bigint":case"number":this.buf[this.pos++]=15;break;case"object":if(Object.prototype.toString.call(b[z])==="[object Date]"){this.buf[this.pos++]=12}else if(Buffer.isBuffer(b[z])){this.buf[this.pos++]=251}else if(b[z].type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(b[z].type)){this.buf[this.pos++]=251}else{this.buf[this.pos++]=15}break;default:this.buf[this.pos++]=15}}this.datatypes[z]=this.buf[this.pos-1];this.buf[this.pos++]=0}}}growBuffer(b){let z;if(b+this.pos<c){z=c}else if(b+this.pos<t){z=t}else if(b+this.pos<i){z=i}else z=n;if(z>this.maxPacketSize&&this.markPos){this.flush(false,b);return true}else{let b=Buffer.allocUnsafe(Math.min(z));this.buf.copy(b,0,0,this.pos);this.buf=b;return false}}writeLengthStringAscii(b){let z=b.length;if(z>=this.buf.length-this.pos){let z=Buffer.from(b,"ascii");return this.writeLengthEncodedBuffer(z)}this.writeLength(z);for(let p=0;p<z;){this.buf[this.pos++]=b.charCodeAt(p++)}return false}writeLength(b){if(b<251){return this.writeInt8(b)}else if(b<65536){let z=this.writeInt8(252);return this.writeInt16(b)||z}else if(b<16777216){let z=this.writeInt8(253);return this.writeInt24(b)||z}else{if(this.pos+9>=this.buf.length){const z=Buffer.allocUnsafe(9);z[0]=254;z[1]=b;z[2]=b>>>8;z[3]=b>>>16;z[4]=b>>>24;z[5]=0;z[6]=0;z[7]=0;z[8]=0;return this.writeBuffer(z)}this.buf[this.pos++]=254;this.buf[this.pos++]=b;this.buf[this.pos++]=b>>>8;this.buf[this.pos++]=b>>>16;this.buf[this.pos++]=b>>>24;this.buf[this.pos++]=0;this.buf[this.pos++]=0;this.buf[this.pos++]=0;this.buf[this.pos++]=0;return false}}writeLengthEncodedBuffer(b){let z=b.length;let p=this.writeLength(z);return this.writeBuffer(b)||p}writeBuffer(b){let z=false;let p=b.length;if(p>this.buf.length-this.pos){if(this.buf.length<n)z=this.growBuffer(p*2);if(p>this.buf.length-this.pos){let z=this.buf.length-this.pos;b.copy(this.buf,this.pos,0,z);this.pos+=z;this.flush(false,p-z);while(z<p){if(this.buf.length-this.pos<p-z)this.growBuffer(p-z);const O=Math.min(p-z,this.buf.length-this.pos);b.copy(this.buf,this.pos,z,z+O);z+=O;this.pos+=O;if(p-z>0)this.flush(false,p-z)}return true}}b.copy(this.buf,this.pos,0,p);this.pos+=p;return z}writeInt8(b){let z=false;if(this.pos+1>this.buf.length){if(this.buf.length<n){z=this.growBuffer(1)}else{this.flush(false,1);this.buf[this.pos++]=b;return true}}this.buf[this.pos++]=b;return z}writeInt16(b){let z=false;if(this.pos+2>this.buf.length){if(this.buf.length<this.maxPacketSize)z=this.growBuffer(2);if(this.pos+2>this.buf.length){const z=Buffer.allocUnsafe(2);z[0]=b;z[1]=b>>>8;this.writeBuffer(z);return true}}this.buf[this.pos++]=b;this.buf[this.pos++]=b>>>8;return z}writeInt24(b){let z=false;if(this.pos+3>this.buf.length){if(this.buf.length<this.maxPacketSize)z=this.growBuffer(3);if(this.pos+3>this.buf.length){const z=Buffer.allocUnsafe(3);z[0]=b;z[1]=b>>>8;z[2]=b>>>16;this.writeBuffer(z);return true}}this.buf[this.pos++]=b;this.buf[this.pos++]=b>>>8;this.buf[this.pos++]=b>>>16;return z}writeIconvLengthEncodedString(b){let z=o.encode(b,this.encoding);return this.writeLengthEncodedBuffer(z,0,z.length)}writeDefaultLengthEncodedString(b){if(b.length*3+10<this.buf.length-this.pos){const z=b.length*3;let p;if(z<251){p=this.pos;this.pos++}else if(z<65536){this.buf[this.pos++]=252;p=this.pos;this.pos+=2}else{this.buf[this.pos++]=253;p=this.pos;this.pos+=3}const O=this.pos;this.pos+=this.buf.write(b,this.pos,this.encoding);const o=this.pos-O;if(z<251){this.buf[p]=o}else if(z<65536){this.buf[p]=o;this.buf[p+1]=o>>>8}else{this.buf[p]=o;this.buf[p+1]=o>>>8;this.buf[p+2]=o>>>16}return false}let z=false;let p=Buffer.byteLength(b,this.encoding);if(p+9>this.buf.length-this.pos){if(this.buf.length<n)z=this.growBuffer(p+9);if(p>this.buf.length-this.pos){let p=Buffer.from(b,this.encoding);return this.writeLengthEncodedBuffer(p)||z}}this.writeLength(p);this.pos+=this.buf.write(b,this.pos,this.encoding);return z}writeBinaryLocalDate(b,z){const p=b.getFullYear();const O=b.getMonth()+1;const o=b.getDate();const e=b.getHours();const c=b.getMinutes();const t=b.getSeconds();const i=b.getMilliseconds();return this._writeBinaryDate(p,O,o,e,c,t,i)}writeBinaryUtcDate(b,z){const p=b.getUTCFullYear();const O=b.getUTCMonth()+1;const o=b.getUTCDate();const e=b.getUTCHours();const c=b.getUTCMinutes();const t=b.getUTCSeconds();const i=b.getUTCMilliseconds();return this._writeBinaryDate(p,O,o,e,c,t,i)}_writeBinaryDate(b,z,p,O,o,e,c){let t=c===0?7:11;if(t+1>this.buf.length-this.pos){let i=Buffer.allocUnsafe(t+1);i[0]=t;i[1]=b;i[2]=b>>>8;i[3]=z;i[4]=p;i[5]=O;i[6]=o;i[7]=e;if(c!==0){const b=c*1e3;i[8]=b;i[9]=b>>>8;i[10]=b>>>16;i[11]=b>>>24}return this.writeBuffer(i)}this.buf[this.pos]=t;this.buf[this.pos+1]=b;this.buf[this.pos+2]=b>>>8;this.buf[this.pos+3]=z;this.buf[this.pos+4]=p;this.buf[this.pos+5]=O;this.buf[this.pos+6]=o;this.buf[this.pos+7]=e;if(c!==0){const b=c*1e3;this.buf[this.pos+8]=b;this.buf[this.pos+9]=b>>>8;this.buf[this.pos+10]=b>>>16;this.buf[this.pos+11]=b>>>24}this.pos+=t+1;return false}writeBinaryTimezoneDate(b,z){const p=new Date(O.tz(b,z._localTz).tz(z.tz).format("YYYY-MM-DD HH:mm:ss.SSSSSS"));const o=p.getFullYear();const e=p.getMonth()+1;const c=p.getDate();const t=p.getHours();const i=p.getMinutes();const n=p.getSeconds();const s=p.getMilliseconds();return this._writeBinaryDate(o,e,c,t,i,n,s)}mark(b,z){let p=false;this.nextRow=z;if(this.singleQuery){if(!this.haveErrorResponse){const b=this.pos+(this.singleQuerySequenceNo!==undefined?(this.singleQuerySequenceNo+1)*n:0);if(this.maxAllowedPacket&&b>this.maxAllowedPacket){console.log("will send a packet to db server with size > connection option 'maxAllowedPacket' (size send is "+b+") connection might be reset by server")}this.copyAndFlush(true);p=true;this.markPos=undefined}this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined;this.singleQuery=false;this.writeHeader(z);this.markPos=undefined}else{if(!b&&this.datatypeChanged(z)){this.markPos=this.pos;this.flushMark();p=true}else if(this.markPos&&this.pos>this.maxPacketSize){this.flushMark();p=true}else{this.markPos=this.pos;if(b){this.flushMark();p=true}}}return p}flush(b,z){if(this.markPos&&!this.singleQuery){this.flushMark()}else{if(this.buf.length<n){let b=Buffer.allocUnsafe(n);this.buf.copy(b,0,0,this.pos);this.buf=b}else{if(!this.haveErrorResponse){if(this.maxAllowedPacket&&this.buf.length>this.maxAllowedPacket){console.log("will send a packet to server with size > connection option 'maxAllowedPacket' (size send is "+this.pos+") connection might be reset by server")}this.copyAndFlush(false);this.markPos=undefined;if(!this.singleQuery)this.waitingResponseNo++;this.singleQuery=true;this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}}}}flushMark(){let b;if(this.pos!==this.markPos){b=Buffer.allocUnsafe(this.pos-this.markPos);this.buf.copy(b,0,this.markPos,this.pos)}this.pos=this.markPos;if(!this.haveErrorResponse){this.copyAndFlush(true);this.waitingResponseNo++}this.pos=4;this.markPos=undefined;if(this.nextRow)this.writeHeader(this.nextRow);if(b){if(this.buf.length-this.pos<b.length)this.growBuffer(b.length-(this.buf.length-this.pos));b.copy(this.buf,this.pos,0,b.length);this.pos+=b.length}this.singleQuery=false;this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined}copyAndFlush(b){this.out.buf=this.buf;this.out.pos=this.pos;if(this.singleQuerySequenceNo!==undefined){this.out.cmd.sequenceNo=this.singleQuerySequenceNo;this.out.cmd.compressSequenceNo=this.singleQueryCompressSequenceNo}else{this.out.cmd.sequenceNo=-1;this.out.cmd.compressSequenceNo=-1}this.out.flushBuffer(b);if(this.singleQuerySequenceNo!==undefined){this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}this.pos=4;this.buf=Buffer.allocUnsafe(e)}endedWithError(){this.haveErrorResponse=true}}b.exports=BulkPacket},8234:function(b,z,p){"use strict";const O=p(9796);const o=p(2245);class CompressionInputStream{constructor(b,z,p,O){this.reader=b;this.receiveQueue=z;this.info=O;this.opts=p;this.header=Buffer.allocUnsafe(7);this.headerLen=0;this.compressPacketLen=null;this.packetLen=null;this.remainingLen=null;this.parts=null;this.partsTotalLen=0}receivePacket(b){let z=this.currentCmd();if(this.opts.debugCompress){console.log("<== conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,z?z.onPacketReceive?z.constructor.name+"."+z.onPacketReceive.name:z.constructor.name:"no command",o.log(this.opts,b,0,b.length,this.header))}if(z)z.compressSequenceNo=this.header[3];const p=this.header[4]|this.header[5]<<8|this.header[6]<<16;if(p===0){this.reader.onData(b)}else{const z=O.inflateSync(b);this.reader.onData(z)}}currentCmd(){let b;while(b=this.receiveQueue.peek()){if(b.onPacketReceive)return b;this.receiveQueue.shift()}return null}resetHeader(){this.remainingLen=null;this.headerLen=0}onData(b){let z=0;let p;const O=b.length;do{if(this.remainingLen){p=this.remainingLen}else if(this.headerLen===0&&O-z>=7){this.header[0]=b[z];this.header[1]=b[z+1];this.header[2]=b[z+2];this.header[3]=b[z+3];this.header[4]=b[z+4];this.header[5]=b[z+5];this.header[6]=b[z+6];this.headerLen=7;z+=7;this.compressPacketLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);this.packetLen=this.header[4]|this.header[5]<<8|this.header[6]<<16;if(this.packetLen===0)this.packetLen=this.compressPacketLen;p=this.compressPacketLen}else{p=null;while(O-z>0){this.header[this.headerLen++]=b[z++];if(this.headerLen===7){this.compressPacketLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);this.packetLen=this.header[4]|this.header[5]<<8|this.header[6]<<16;if(this.packetLen===0)this.packetLen=this.compressPacketLen;p=this.compressPacketLen;break}}}if(p){if(O-z>=p){const O=b.slice(z,z+p);z+=p;if(this.parts){this.parts.push(O);this.partsTotalLen+=p;if(this.compressPacketLen<16777215){let b=Buffer.concat(this.parts,this.partsTotalLen);this.parts=null;this.receivePacket(b)}}else{if(this.compressPacketLen<16777215){this.receivePacket(O)}else{this.parts=[O];this.partsTotalLen=p}}this.resetHeader()}else{const o=b.slice(z,O);if(!this.parts){this.parts=[o];this.partsTotalLen=O-z}else{this.parts.push(o);this.partsTotalLen+=O-z}this.remainingLen=p-(O-z);return}}}while(z<O)}}b.exports=CompressionInputStream},4997:function(b,z,p){"use strict";const O=p(2245);const o=p(9796);const e=2048;const c=131072;const t=1048576;const i=16777222;class CompressionOutputStream{constructor(b,z,p){this.info=p;this.opts=z;this.pos=7;this.header=Buffer.allocUnsafe(7);this.buf=Buffer.allocUnsafe(e);this.writer=z=>{b.write(z)}}growBuffer(b){let z;if(b+this.pos<c){z=c}else if(b+this.pos<t){z=t}else z=i;let p=Buffer.allocUnsafe(z);this.buf.copy(p,0,0,this.pos);this.buf=p}writeBuf(b,z){let p=0,O=b.length;if(O>this.buf.length-this.pos){if(this.buf.length!==i){this.growBuffer(O)}if(O>this.buf.length-this.pos){let o=O;while(true){let O=Math.min(i-this.pos,o);b.copy(this.buf,this.pos,p,p+O);o-=O;p+=O;this.pos+=O;if(o===0)return;this.flush(false,z,o)}}}b.copy(this.buf,this.pos,p,p+O);this.pos+=O}flush(b,z,p){if(this.pos<1536){this.buf[0]=this.pos-7;this.buf[1]=this.pos-7>>>8;this.buf[2]=this.pos-7>>>16;this.buf[3]=++z.compressSequenceNo;this.buf[4]=0;this.buf[5]=0;this.buf[6]=0;if(this.opts.debugCompress){console.log("==> conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,z?z.constructor.name+"(0,"+this.pos+")":"unknown",O.log(this.opts,this.buf,0,this.pos))}this.writer(this.buf.slice(0,this.pos))}else{const p=o.deflateSync(this.buf.slice(7,this.pos));const e=p.length;this.header[0]=e;this.header[1]=e>>>8;this.header[2]=e>>>16;this.header[3]=++z.compressSequenceNo;this.header[4]=this.pos-7;this.header[5]=this.pos-7>>>8;this.header[6]=this.pos-7>>>16;if(this.opts.debugCompress){console.log("==> conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,z?z.constructor.name+"(0,"+this.pos+"=>"+e+")":"unknown",O.log(this.opts,p,0,e,this.header))}this.writer(this.header);this.writer(p);if(b&&this.pos===i)this.writeEmptyPacket(z);this.header=Buffer.allocUnsafe(7)}this.buf=p?CompressionOutputStream.allocateBuffer(p):Buffer.allocUnsafe(e);this.pos=7}static allocateBuffer(b){if(b+4<e){return Buffer.allocUnsafe(e)}else if(b+4<c){return Buffer.allocUnsafe(c)}else if(b+4<t){return Buffer.allocUnsafe(t)}return Buffer.allocUnsafe(i)}writeEmptyPacket(b){const z=Buffer.from([0,0,0,b.compressSequenceNo,0,0,0]);if(this.opts.debugCompress){console.log("==> conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,b?b.constructor.name+"(0,"+this.pos+")":"unknown",O.log(this.opts,z,0,7))}this.writer(z)}}b.exports=CompressionOutputStream},1516:function(b,z,p){"use strict";const O=p(2962);const o=p(9466);const e=p(2245);class PacketInputStream{constructor(b,z,p,O,o){this.unexpectedPacket=b;this.opts=O;this.receiveQueue=z;this.info=o;this.out=p;this.header=Buffer.allocUnsafe(4);this.headerLen=0;this.packetLen=null;this.remainingLen=null;this.parts=null;this.partsTotalLen=0;this.changeEncoding(this.opts.collation);this.changeDebug(this.opts.logPackets,this.opts.debug);this.opts.on("collation",this.changeEncoding.bind(this));this.opts.on("debug",this.changeDebug.bind(this))}changeEncoding(b){this.encoding=b.charset;this.packetConstructor=Buffer.isEncoding(this.encoding)?O:o}changeDebug(b,z){this.logPackets=b;this.debug=z;this.receivePacket=this.logPackets||this.debug?this.receivePacketDebug:this.receivePacketBasic}receivePacketDebug(b){let z=this.currentCmd();if(b){const p=e.log(this.opts,b.buf,b.pos,b.end,this.header);if(this.opts.logPackets){this.info.addPacket("<== conn:"+(this.info.threadId?this.info.threadId:-1)+" "+(z?z.onPacketReceive?z.constructor.name+"."+z.onPacketReceive.name:z.constructor.name:"no command")+" ("+b.pos+","+b.end+"))\n"+p)}if(this.opts.debug){console.log("<== conn:%d %s (%d,%d)\n%s",this.info.threadId?this.info.threadId:-1,z?z.onPacketReceive?z.constructor.name+"."+z.onPacketReceive.name:z.constructor.name:"no command",b.pos,b.end,p)}}if(!z){this.unexpectedPacket(b);return}z.sequenceNo=this.header[3];z.onPacketReceive(b,this.out,this.opts,this.info);if(!z.onPacketReceive)this.receiveQueue.shift()}receivePacketBasic(b){let z=this.currentCmd();if(!z){this.unexpectedPacket(b);return}z.sequenceNo=this.header[3];z.onPacketReceive(b,this.out,this.opts,this.info);if(!z.onPacketReceive)this.receiveQueue.shift()}resetHeader(){this.remainingLen=null;this.headerLen=0}currentCmd(){let b;while(b=this.receiveQueue.peek()){if(b.onPacketReceive)return b;this.receiveQueue.shift()}return null}onData(b){let z=0;let p;const O=b.length;do{if(this.remainingLen){p=this.remainingLen}else if(this.headerLen===0&&O-z>=4){this.header[0]=b[z];this.header[1]=b[z+1];this.header[2]=b[z+2];this.header[3]=b[z+3];z+=4;this.headerLen=4;this.packetLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);p=this.packetLen}else{p=null;while(O-z>0){this.header[this.headerLen++]=b[z++];if(this.headerLen===4){this.packetLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);p=this.packetLen;break}}}if(p){if(O-z>=p){const O=b.slice(z,z+p);z+=p;if(this.parts){this.parts.push(O);this.partsTotalLen+=p;if(this.packetLen<16777215){let b=Buffer.concat(this.parts,this.partsTotalLen);this.parts=null;const z=new this.packetConstructor(b,0,this.partsTotalLen,this.encoding);this.receivePacket(z)}}else{if(this.packetLen<16777215){const b=new this.packetConstructor(O,0,p,this.encoding);this.receivePacket(b)}else{this.parts=[O];this.partsTotalLen=p}}this.resetHeader()}else{const o=b.slice(z,O);if(!this.parts){this.parts=[o];this.partsTotalLen=O-z}else{this.parts.push(o);this.partsTotalLen+=O-z}this.remainingLen=p-(O-z);return}}}while(z<O)}}b.exports=PacketInputStream},2962:function(b,z,p){"use strict";const O=p(6546);class PacketNodeEncoded extends O{constructor(b,z,p,O){super(b,z,p);this.encoding=O}readStringLength(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return this.buf.toString(this.encoding,this.pos-b,this.pos)}readString(b,z){return this.buf.toString(this.encoding,b,b+z)}subPacketLengthEncoded(){const b=this.readUnsignedLength();this.skip(b);return new PacketNodeEncoded(this.buf,this.pos-b,this.pos,this.encoding)}readStringRemaining(){const b=this.buf.toString(this.encoding,this.pos,this.end);this.pos=this.end;return b}}b.exports=PacketNodeEncoded},9466:function(b,z,p){"use strict";const O=p(6546);const o=p(1401);class PacketIconvEncoded extends O{constructor(b,z,p,O){super(b,z,p);this.encoding=O}readStringLength(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return o.decode(this.buf.slice(this.pos-b,this.pos),this.encoding)}readString(b,z){return o.decode(this.buf.slice(b,b+z),this.encoding)}subPacketLengthEncoded(){const b=this.readUnsignedLength();this.skip(b);return new PacketIconvEncoded(this.buf,this.pos-b,this.pos,this.encoding)}readStringRemaining(){const b=o.decode(this.buf.slice(this.pos,this.end),this.encoding);this.pos=this.end;return b}}b.exports=PacketIconvEncoded},1412:function(b,z,p){"use strict";const O=p(1401);const o=p(2245);const e=39;const c=34;const t=0;const i=92;const n=1024;const s=16384;const a=131072;const r=1048576;const q=16777219;const d=/[\0\"\'\\\b\n\r\t\u001A]/g;class PacketOutputStream{constructor(b,z){this.opts=b;this.info=z;this.pos=4;this.buf=Buffer.allocUnsafe(n);this.changeEncoding(this.opts.collation);this.changeDebug(this.opts.logPackets,this.opts.debug);this.opts.on("collation",this.changeEncoding.bind(this));this.opts.on("debug",this.changeDebug.bind(this))}changeEncoding(b){this.encoding=b.charset;if(this.encoding==="utf8"){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeUtf8StringEscapeQuote}else if(Buffer.isEncoding(this.encoding)){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}else{this.writeString=this.writeDefaultIconvString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}}changeDebug(b,z){this.logPackets=b;this.debug=z;this.flushBuffer=this.logPackets||this.debug?this.flushBufferDebug:this.flushBufferBasic}setStream(b){this.stream=b}growBuffer(b){let z;if(b+this.pos<s){z=s}else if(b+this.pos<a){z=a}else if(b+this.pos<r){z=r}else z=q;let p=Buffer.allocUnsafe(z);this.buf.copy(p,0,0,this.pos);this.buf=p}startPacket(b){this.cmd=b;this.pos=4}writeInt8(b){if(this.pos+1>=this.buf.length){if(this.pos>=q){this.flushBuffer(false,1)}else this.growBuffer(1)}this.buf[this.pos++]=b}writeInt16(b){if(this.pos+2>=this.buf.length){let z=Buffer.allocUnsafe(2);z.writeUInt16LE(b,0);this.writeBuffer(z,0,2);return}this.buf[this.pos]=b;this.buf[this.pos+1]=b>>8;this.pos+=2}writeInt16AtPos(b){this.buf[b]=this.pos-b-2;this.buf[b+1]=this.pos-b-2>>8}writeInt32(b){if(this.pos+4>=this.buf.length){let z=Buffer.allocUnsafe(4);z.writeInt32LE(b,0);this.writeBuffer(z,0,4);return}this.buf[this.pos]=b;this.buf[this.pos+1]=b>>8;this.buf[this.pos+2]=b>>16;this.buf[this.pos+3]=b>>24;this.pos+=4}writeLengthCoded(b){if(b<251){this.writeInt8(b);return}this.writeInt8(252);this.writeInt16(b)}writeBuffer(b,z,p){if(p>this.buf.length-this.pos){if(this.buf.length!==q){this.growBuffer(p)}if(p>this.buf.length-this.pos){let O=p;while(true){let p=Math.min(q-this.pos,O);b.copy(this.buf,this.pos,z,z+p);O-=p;z+=p;this.pos+=p;if(O===0)return;this.flushBuffer(false,O)}}}b.copy(this.buf,this.pos,z,z+p);this.pos+=p}writeStringAscii(b){let z=b.length;if(z>=this.buf.length-this.pos){let z=Buffer.from(b,"ascii");this.writeBuffer(z,0,z.length);return}for(let p=0;p<z;){this.buf[this.pos++]=b.charCodeAt(p++)}}writeUtf8StringEscapeQuote(b){const z=b.length;if(z*3+2>=this.buf.length-this.pos){const z=Buffer.from(b,"utf8");this.writeInt8(e);this.writeBufferEscape(z);this.writeInt8(e);return}let p=0;let O;this.buf[this.pos++]=e;for(;p<z&&(O=b.charCodeAt(p))<128;p++){if(O===i||O===e||O===t||O===c){this.buf[this.pos++]=i}this.buf[this.pos++]=O}while(p<z){O=b.charCodeAt(p++);if(O<128){if(O===i||O===e||O===t||O===c){this.buf[this.pos++]=i}this.buf[this.pos++]=O}else if(O<2048){this.buf[this.pos++]=192|O>>6;this.buf[this.pos++]=128|O&63}else if(O>=55296&&O<57344){if(O<56320){if(p+1>z){this.buf[this.pos++]=63}else{const z=b.charCodeAt(p);if(z>=56320&&z<57344){const b=(O<<10)+z+(65536-(55296<<10)-56320);this.buf[this.pos++]=240|b>>18;this.buf[this.pos++]=128|b>>12&63;this.buf[this.pos++]=128|b>>6&63;this.buf[this.pos++]=128|b&63;p++}else{this.buf[this.pos++]=63}}}else{this.buf[this.pos++]=63}}else{this.buf[this.pos++]=224|O>>12;this.buf[this.pos++]=128|O>>6&63;this.buf[this.pos++]=128|O&63}}this.buf[this.pos++]=e}writeDefaultBufferString(b){if(b.length*3<this.buf.length-this.pos){this.pos+=this.buf.write(b,this.pos,this.encoding);return}let z=Buffer.byteLength(b,this.encoding);if(z>this.buf.length-this.pos){if(this.buf.length<q){this.growBuffer(z)}if(z>this.buf.length-this.pos){let z=Buffer.from(b,this.encoding);this.writeBuffer(z,0,z.length);return}}this.pos+=this.buf.write(b,this.pos,this.encoding)}writeDefaultIconvString(b){let z=O.encode(b,this.encoding);this.writeBuffer(z,0,z.length)}writeDefaultStringEscapeQuote(b){this.writeInt8(e);let z;let p=0;while((z=d.exec(b))!==null){this.writeString(b.slice(p,z.index));this.writeInt8(i);this.writeInt8(z[0].charCodeAt(0));p=d.lastIndex}if(p===0){this.writeString(b);this.writeInt8(e);return}if(p<b.length){this.writeString(b.slice(p))}this.writeInt8(e)}writeBufferEscape(b){let z=b.length;if(z*2>this.buf.length-this.pos){if(this.buf.length!==q)this.growBuffer(z*2);if(z*2>this.buf.length-this.pos){for(let p=0;p<z;p++){switch(b[p]){case e:case i:case c:case t:if(this.pos>=this.buf.length)this.flushBuffer(false,(z-p)*2);this.buf[this.pos++]=i}if(this.pos>=this.buf.length)this.flushBuffer(false,(z-p)*2);this.buf[this.pos++]=b[p]}return}}for(let p=0;p<z;p++){switch(b[p]){case e:case i:case c:case t:this.buf[this.pos++]=i}this.buf[this.pos++]=b[p]}}isEmpty(){return this.pos<=4}flushBufferDebug(b,z){this.buf[0]=this.pos-4;this.buf[1]=this.pos-4>>>8;this.buf[2]=this.pos-4>>>16;this.buf[3]=++this.cmd.sequenceNo;this.stream.writeBuf(this.buf.slice(0,this.pos),this.cmd);const p=o.log(this.opts,this.buf,0,this.pos);if(this.opts.logPackets){this.info.addPacket("==> conn:"+(this.info.threadId?this.info.threadId:-1)+" "+this.cmd.constructor.name+"(0,"+this.pos+")\n"+p)}if(this.opts.debug){console.log("==> conn:%d %s\n%s",this.info.threadId?this.info.threadId:-1,this.cmd.constructor.name+"(0,"+this.pos+")",o.log(this.opts,this.buf,0,this.pos))}if(b){if(this.pos===q){this.writeEmptyPacket()}else{this.stream.flush(true,this.cmd);this.buf=Buffer.allocUnsafe(n)}}else{this.buf=allocateBuffer(z+4);this.pos=4}}flushBufferBasic(b,z){this.buf[0]=this.pos-4;this.buf[1]=this.pos-4>>>8;this.buf[2]=this.pos-4>>>16;this.buf[3]=++this.cmd.sequenceNo;this.stream.writeBuf(this.buf.slice(0,this.pos),this.cmd);if(b){if(this.pos===q){this.writeEmptyPacket()}else{this.stream.flush(true,this.cmd);this.buf=Buffer.allocUnsafe(n)}}else{this.buf=allocateBuffer(z+4);this.pos=4}}writeEmptyPacket(){const b=Buffer.from([0,0,0,++this.cmd.sequenceNo]);if(this.opts.logPackets||this.opts.debug){const z=o.log(this.opts,b,0,4);if(this.opts.logPackets){this.info.addPacket("==> conn:"+(this.info.threadId?this.info.threadId:-1)+" "+this.cmd.constructor.name+"(0,4)\n"+z)}if(this.opts.debug){console.log("==> conn:%d %s\n%s",this.info.threadId?this.info.threadId:-1,this.cmd.constructor.name+"(0,4)",z)}}this.stream.writeBuf(b,this.cmd);this.stream.flush(true,this.cmd)}}function allocateBuffer(b){if(b<n){return Buffer.allocUnsafe(n)}else if(b<s){return Buffer.allocUnsafe(s)}else if(b<a){return Buffer.allocUnsafe(a)}else if(b<r){return Buffer.allocUnsafe(r)}return Buffer.allocUnsafe(q)}b.exports=PacketOutputStream},6546:function(b,z,p){"use strict";const O=p(1450);const o=p(1401);const e=p(5078);const c=p(7936);class Packet{constructor(b,z,p){this.buf=b;this.pos=z;this.end=p}skip(b){this.pos+=b}readGeometry(b){const z=this.readBufferLengthEncoded();if(z===null||z.length===0){if(b){switch(b){case"point":return{type:"Point"};case"linestring":return{type:"LineString"};case"polygon":return{type:"Polygon"};case"multipoint":return{type:"MultiPoint"};case"multilinestring":return{type:"MultiLineString"};case"multipolygon":return{type:"MultiPolygon"};default:return{type:b}}}return null}let p=4;return readGeometryObject(false);function parseCoordinates(b){p+=16;const O=b?z.readDoubleLE(p-16):z.readDoubleBE(p-16);const o=b?z.readDoubleLE(p-8):z.readDoubleBE(p-8);return[O,o]}function readGeometryObject(b){const O=z[p++];const o=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;switch(o){case 1:const o=parseCoordinates(O);if(b)return o;return{type:"Point",coordinates:o};case 2:const e=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;let c=[];for(let b=0;b<e;b++){c.push(parseCoordinates(O))}if(b)return c;return{type:"LineString",coordinates:c};case 3:let t=[];const i=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;for(let b=0;b<i;b++){const b=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;let o=[];for(let z=0;z<b;z++){o.push(parseCoordinates(O))}t.push(o)}if(b)return t;return{type:"Polygon",coordinates:t};case 4:return{type:"MultiPoint",coordinates:parseGeomArray(O,true)};case 5:return{type:"MultiLineString",coordinates:parseGeomArray(O,true)};case 6:return{type:"MultiPolygon",coordinates:parseGeomArray(O,true)};case 7:return{type:"GeometryCollection",geometries:parseGeomArray(O,false)}}return null}function parseGeomArray(b,O){let o=[];const e=b?z.readInt32LE(p):z.readInt32BE(p);p+=4;for(let b=0;b<e;b++){o.push(readGeometryObject(O))}return o}}peek(){return this.buf[this.pos]}remaining(){return this.end-this.pos>0}readUInt8(){return this.buf[this.pos++]}readUInt16(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)}readUInt24(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)+(this.buf[this.pos++]<<16)}readUInt32(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)+(this.buf[this.pos++]<<16)+this.buf[this.pos++]*16777216}readInt32(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)+(this.buf[this.pos++]<<16)+(this.buf[this.pos++]<<24)}readInt32LE(){return(this.buf[this.pos++]<<24)+(this.buf[this.pos++]<<16)+(this.buf[this.pos++]<<8)+this.buf[this.pos++]}readInt64(){const b=this.buf[this.pos+4]+this.buf[this.pos+5]*2**8+this.buf[this.pos+6]*2**16+(this.buf[this.pos+7]<<24);const z=(BigInt(b)<<BigInt(32))+BigInt(this.buf[this.pos]+this.buf[this.pos+1]*2**8+this.buf[this.pos+2]*2**16+this.buf[this.pos+3]*2**24);this.pos+=8;return z}readUnsignedLength(){const b=this.buf[this.pos++]&255;switch(b){case 251:return null;case 252:return this.readUInt16();case 253:return this.readUInt24();case 254:return Number(this.readInt64());default:return b}}readBuffer(b){this.pos+=b;return this.buf.slice(this.pos-b,this.pos)}readBufferRemaining(){let b=this.buf.slice(this.pos,this.end);this.pos=this.end;return b}readBufferLengthEncoded(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return this.buf.slice(this.pos-b,this.pos)}readStringNullEnded(){let b=this.pos;let z=0;while(this.remaining()>0&&this.buf[this.pos++]!==0){z++}return this.buf.toString("utf8",b,b+z)}readSignedLength(){const b=this.buf[this.pos++];switch(b){case 251:return null;case 252:return this.readUInt16();case 253:return this.readUInt24();case 254:return Number(this.readInt64());default:return b}}readSignedLengthBigInt(){const b=this.buf[this.pos++];switch(b){case 251:return null;case 252:return BigInt(this.readUInt16());case 253:return BigInt(this.readUInt24());case 254:return this.readInt64();default:return BigInt(b)}}readAsciiStringLengthEncoded(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return this.buf.toString("ascii",this.pos-b,this.pos)}readStringLength(){throw new Error("code is normally superseded by Node encoder or Iconv depending on charset used")}readStringLengthEncoded(b){const z=this.readUnsignedLength();if(z===null)return null;this.pos+=z;if(Buffer.isEncoding(b)){return this.buf.toString(b,this.pos-z,this.pos)}return o.decode(this.buf.slice(this.pos-z,this.pos),b)}readLongLengthEncoded(b,z,p,O){const o=this.readUnsignedLength();if(o===null)return null;if(b){const b=this.buf.toString("ascii",this.pos,this.pos+o);this.pos+=o;return BigInt(b)}let c=0;let t=false;let i=this.pos;if(o>0&&this.buf[i]===45){t=true;i++}for(;i<this.pos+o;i++){c=c*10+(this.buf[i]-48)}let n=t?-1*c:c;this.pos+=o;if(!Number.isSafeInteger(n)){const b=this.buf.toString("ascii",this.pos-o,this.pos);if(p)return b;if(z){return e.fromString(b,O,10)}}return n}readDecimalLengthEncoded(b){const z=this.readUnsignedLength();if(z===null)return null;this.pos+=z;let p=this.buf.toString("ascii",this.pos-z,this.pos);return b?p:+p}readDate(){const b=this.readUnsignedLength();if(b===null)return null;let z=[];let p=0;let O=this.pos;this.pos+=b;while(O<this.pos){const b=this.buf[O++];if(b===45){z.push(p);p=0}else{p=p*10+b-48}}z.push(p);if(z[0]===0&&z[1]===0&&z[2]===0)return null;return new Date(z[0],z[1]-1,z[2])}readDateTime(b){const z=this.readUnsignedLength();if(z===null)return null;this.pos+=z;const p=this.buf.toString("ascii",this.pos-z,this.pos);if(p.startsWith("0000-00-00 00:00:00"))return null;if(b.tz){return new Date(c.tz(p,b.tz).clone().tz(b._localTz).format("YYYY-MM-DD HH:mm:ss.SSSSSS"))}return new Date(p)}readIntLengthEncoded(){const b=this.readUnsignedLength();if(b===null)return null;let z=0;let p=false;let O=this.pos;if(b>0&&this.buf[O]===45){p=true;O++}for(;O<this.pos+b;O++){z=z*10+(this.buf[O]-48)}this.pos+=b;return p?-1*z:z}readFloatLengthCoded(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return+this.buf.toString("ascii",this.pos-b,this.pos)}skipLengthCodedNumber(){const b=this.buf[this.pos++]&255;switch(b){case 251:return;case 252:this.pos+=2+(65535&(this.buf[this.pos]&255)+((this.buf[this.pos+1]&255)<<8));return;case 253:this.pos+=3+(16777215&(this.buf[this.pos]&255)+((this.buf[this.pos+1]&255)<<8)+((this.buf[this.pos+2]&255)<<16));return;case 254:this.pos+=8+((this.buf[this.pos]&255)+((this.buf[this.pos+1]&255)<<8)+((this.buf[this.pos+2]&255)<<16)+((this.buf[this.pos+3]&255)<<24)+((this.buf[this.pos+4]&255)<<32)+((this.buf[this.pos+5]&255)<<40)+((this.buf[this.pos+6]&255)<<48)+((this.buf[this.pos+7]&255)<<56));return;default:this.pos+=b;return}}positionFromEnd(b){this.pos=this.end-b}_toBuf(){return this.buf.slice(this.pos,this.end)}forceOffset(b){this.pos=b}length(){return this.end-this.pos}subPacketLengthEncoded(){const b=this.readUnsignedLength();this.skip(b);return new Packet(this.buf,this.pos-b,this.pos)}readError(b,z,p){this.skip(1);let o=this.readUInt16();let e="";if(this.peek()===35){this.skip(6);e=this.buf.toString("utf8",this.pos-5,this.pos)}let c=this.buf.toString("utf8",this.pos,this.end);let t=e.startsWith("08")||e==="70100";if(t){const i=b.getLastPackets();if(i!=="")return O.createError(c+"\nlast received packets:\n"+i,z,t,b,e,o,p)}return O.createError(c,z,t,b,e,o,p)}}b.exports=Packet},9240:function(b,z,p){"use strict";const O=p(1401);const o=39;const e=34;const c=0;const t=92;const i=1024;const n=16384;const s=131072;const a=1048576;const r=16777219;const q=/[\0\"\'\\]/g;class ReWritePacket{constructor(b,z,p,O){this.out=z;this.buf=Buffer.allocUnsafe(i);this.pos=4;this.initStr=p;this.endStr=O;this.encoding=z.encoding;this.endStrLength=Buffer.byteLength(this.endStr,this.encoding);this.waitingResponseNo=0;this.singleQuery=false;this.haveErrorResponse=false;if(this.encoding==="utf8"){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeUtf8StringEscapeQuote}else if(Buffer.isEncoding(this.encoding)){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}else{this.writeString=this.writeDefaultIconvString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}this.maxAllowedPacket=b;if(b){this.maxPacketSize=Math.min(r,b)-this.endStrLength}else this.maxPacketSize=4194304-this.endStrLength;this.buf[this.pos++]=3;this.writeString(this.initStr)}growBuffer(b){let z;if(b+this.pos<n){z=n}else if(b+this.pos<s){z=s}else if(b+this.pos<a){z=a}else z=r;if(z>this.maxPacketSize&&this.markPos){this.flush(false,b);return true}let p=Buffer.allocUnsafe(Math.min(z));this.buf.copy(p,0,0,this.pos);this.buf=p;return false}writeInt8(b){let z=false;if(this.pos+1+this.endStrLength>=this.buf.length){if(this.buf.length<r){z=this.growBuffer(1)}else{this.flush(false,1);this.buf[this.pos++]=b;return true}}this.buf[this.pos++]=b;return z}writeStringAscii(b){let z=b.length;if(z>=this.buf.length-(this.pos+this.endStrLength)){let z=Buffer.from(b,"ascii");return this.writeBuffer(z,0,z.length)}for(let p=0;p<z;){this.buf[this.pos++]=b.charCodeAt(p++)}return false}writeUtf8StringEscapeQuote(b){const z=b.length;if(z*3+2>=this.buf.length-(this.pos+this.endStrLength)){let z;const p=Buffer.from(b,"utf8");z=this.writeInt8(o);z=this.writeBufferEscape(p)||z;z=this.writeInt8(o)||z;return z}let p=0;let O;this.buf[this.pos++]=o;for(;p<z&&(O=b.charCodeAt(p))<128;p++){if(O===t||O===o||O===c||O===e){this.buf[this.pos++]=t}this.buf[this.pos++]=O}while(p<z){O=b.charCodeAt(p++);if(O<128){if(O===t||O===o||O===c||O===e){this.buf[this.pos++]=t}this.buf[this.pos++]=O}else if(O<2048){this.buf[this.pos++]=192|O>>6;this.buf[this.pos++]=128|O&63}else if(O>=55296&&O<57344){if(O<56320){if(p+1>z){this.buf[this.pos++]=63}else{const z=b.charCodeAt(p);if(z>=56320&&z<57344){const b=(O<<10)+z+(65536-(55296<<10)-56320);this.buf[this.pos++]=240|b>>18;this.buf[this.pos++]=128|b>>12&63;this.buf[this.pos++]=128|b>>6&63;this.buf[this.pos++]=128|b&63;p++}else{this.buf[this.pos++]=63}}}else{this.buf[this.pos++]=63}}else{this.buf[this.pos++]=224|O>>12;this.buf[this.pos++]=128|O>>6&63;this.buf[this.pos++]=128|O&63}}this.buf[this.pos++]=o;return false}writeDefaultIconvString(b){let z=O.encode(b,this.encoding);return this.writeBuffer(z,0,z.length)}writeDefaultBufferString(b){if(b.length*3<this.buf.length-(this.pos+this.endStrLength)){this.pos+=this.buf.write(b,this.pos,this.encoding);return false}let z=false;let p=Buffer.byteLength(b,this.encoding);if(p>this.buf.length-(this.pos+this.endStrLength)){if(this.buf.length<r){z=this.growBuffer(p)}if(p>this.buf.length-(this.pos+this.endStrLength)){let p=Buffer.from(b,this.encoding);z=this.writeBuffer(p,0,p.length)||z;return z}}this.pos+=this.buf.write(b,this.pos,this.encoding);return z}writeDefaultStringEscapeQuote(b){let z=this.writeInt8(o);let p;let O=0;while((p=q.exec(b))!==null){z=this.writeString(b.slice(O,p.index))||z;z=this.writeInt8(t)||z;z=this.writeInt8(p[0].charCodeAt(0))||z;O=q.lastIndex}if(O===0){z=this.writeString(b)||z;z=this.writeInt8(o)||z;return z}if(O<b.length){z=this.writeString(b.slice(O))||z}z=this.writeInt8(o)||z;return z}writeBufferEscape(b){let z=false;let p=b.length;if(p*2>this.buf.length-(this.pos+this.endStrLength)){if(this.buf.length<r)z=this.growBuffer(p*2);if(p*2>this.buf.length-(this.pos+this.endStrLength)){for(let z=0;z<p;z++){switch(b[z]){case o:case t:case e:case c:if(this.pos>=this.buf.length)this.flush(false,(p-z)*2);this.buf[this.pos++]=t}if(this.pos>=this.buf.length)this.flush(false,(p-z)*2);this.buf[this.pos++]=b[z]}return true}}for(let z=0;z<p;z++){switch(b[z]){case o:case t:case e:case c:this.buf[this.pos++]=t}this.buf[this.pos++]=b[z]}return z}writeBuffer(b,z,p){let O=false;if(p>this.buf.length-(this.pos+this.endStrLength)){if(this.buf.length<r)O=this.growBuffer(p);if(p>this.buf.length-(this.pos+this.endStrLength)){let o=p;while(true){let p=Math.min(r-this.pos,o);b.copy(this.buf,this.pos,z,z+p);o-=p;z+=p;this.pos+=p;if(o===0)return O;this.flush(false,o);O=true}}}b.copy(this.buf,this.pos,z,z+p);this.pos+=p;return O}mark(b){let z=false;if(this.singleQuery){z=this.writeString(this.endStr);if(!this.haveErrorResponse){const b=this.pos+(this.singleQuerySequenceNo!=undefined?(this.singleQuerySequenceNo+1)*r:0);if(this.maxAllowedPacket&&b>this.maxAllowedPacket){console.log("will send a packet to db server with size > connection option 'maxAllowedPacket' (size send is "+b+") connection might be reset by server")}this.copyAndFlush(true);z=true;this.markPos=undefined}this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined;this.singleQuery=false;this.buf[this.pos++]=3;this.writeString(this.initStr);this.markPos=undefined}else{if(this.markPos&&this.pos+this.endStrLength>this.maxPacketSize){this.flushMark();z=true}this.markPos=this.pos;if(b){this.flushMark();z=true}if(!b)z=this.writeStringAscii(",")||z}return z}flush(b,z){if(this.markPos&&!this.singleQuery){this.flushMark()}else{if(this.buf.length<r){let b=Buffer.allocUnsafe(r);this.buf.copy(b,0,0,this.pos);this.buf=b}else{if(!this.haveErrorResponse){if(this.maxAllowedPacket&&this.buf.length>this.maxAllowedPacket){console.log("will send a packet to server with size > connection option 'maxAllowedPacket' (size send is "+this.pos+") connection might be reset by server")}this.copyAndFlush(false);this.markPos=undefined;if(!this.singleQuery)this.waitingResponseNo++;this.singleQuery=true;this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}}}}flushMark(){let b;if(this.pos!==this.markPos){b=Buffer.allocUnsafe(this.pos-this.markPos-1);this.buf.copy(b,0,this.markPos+1,this.pos)}this.pos=this.markPos;this.writeString(this.endStr);if(!this.haveErrorResponse){this.copyAndFlush(true);this.waitingResponseNo++}this.pos=4;this.buf[this.pos++]=3;this.writeString(this.initStr);this.markPos=undefined;if(b){if(this.buf.length-this.pos<b.length)this.growBuffer(b.length-(this.buf.length-this.pos));b.copy(this.buf,this.pos,0,b.length);this.pos+=b.length}this.singleQuery=false;this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined}copyAndFlush(b){this.out.buf=this.buf;this.out.pos=this.pos;if(this.singleQuerySequenceNo!=undefined){this.out.cmd.sequenceNo=this.singleQuerySequenceNo;this.out.cmd.compressSequenceNo=this.singleQueryCompressSequenceNo}else{this.out.cmd.sequenceNo=-1;this.out.cmd.compressSequenceNo=-1}this.out.flushBuffer(b);if(this.singleQuerySequenceNo!=undefined){this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}this.pos=4;this.buf=Buffer.allocUnsafe(i)}endedWithError(){this.haveErrorResponse=true}}b.exports=ReWritePacket},9994:function(b,z,p){"use strict";const O=p(2342);const _addPacket=function(b){this.lastPackets.push(b);while(this.lastPackets.size()>32)this.lastPackets.shift()};const _getLastPackets=function(){let b="";let z;while(z=this.lastPackets.shift()){b+="\n"+z}return b};class ConnectionInformation{constructor(){this.threadId=-1;this.status=null;this.serverVersion=null;this.serverCapabilities=null}addPacket(b){}getLastPackets(){return""}enableLogPacket(){this.lastPackets=new O;this.addPacket=_addPacket.bind(this);this.getLastPackets=_getLastPackets.bind(this)}hasMinVersion(b,z,p){if(!this.serverVersion)throw new Error("cannot know if server version until connection is established");if(!b)throw new Error("a major version must be set");if(!z)z=0;if(!p)p=0;let O=this.serverVersion;return O.major>b||O.major===b&&O.minor>z||O.major===b&&O.minor===z&&O.patch>=p}isMariaDB(){if(!this.serverVersion)throw new Error("cannot know if server is MariaDB until connection is established");return this.serverVersion.mariaDb}static parseVersionString(b){let z;let p=0;let O=0;let o=0;for(;p<b.serverVersion.raw.length;p++){z=b.serverVersion.raw.charCodeAt(p);if(z<48||z>57){switch(O){case 0:b.serverVersion.major=o;break;case 1:b.serverVersion.minor=o;break;case 2:b.serverVersion.patch=o;return}O++;o=0}else{o=o*10+z-48}}if(O===2)b.serverVersion.patch=o}}b.exports=ConnectionInformation},1450:function(b,z,p){"use strict";const O=p(8013);class SqlError extends Error{constructor(b,z,p,o,c,t,i,n){super((n===undefined||n?"(conn="+(o?o.threadId?o.threadId:-1:-1)+", no: "+(t?t:-1)+", SQLState: "+(c?c:"HY000")+") ":"")+b+(z?"\nsql: "+z:""));this.text=b;this.sql=z;this.fatal=p;this.errno=t;this.sqlState=c;if(t>45e3&&t<46e3){this.code=e[t]||"UNKNOWN"}else{this.code=O.codes[this.errno]||"UNKNOWN"}if(i){this.stack+="\n From event:\n"+i.substring(i.indexOf("\n")+1)}}}b.exports.createError=function(b,z,p,O,o,e,c,t){return new SqlError(b,z,p,O,o,e,c,t)};b.exports.ER_CONNECTION_ALREADY_CLOSED=45001;b.exports.ER_ALREADY_CONNECTING=45002;b.exports.ER_MYSQL_CHANGE_USER_BUG=45003;b.exports.ER_CMD_NOT_EXECUTED_DESTROYED=45004;b.exports.ER_NULL_CHAR_ESCAPEID=45005;b.exports.ER_NULL_ESCAPEID=45006;b.exports.ER_NOT_IMPLEMENTED_FORMAT=45007;b.exports.ER_NODE_NOT_SUPPORTED_TLS=45008;b.exports.ER_SOCKET_UNEXPECTED_CLOSE=45009;b.exports.ER_UNEXPECTED_PACKET=45011;b.exports.ER_CONNECTION_TIMEOUT=45012;b.exports.ER_CMD_CONNECTION_CLOSED=45013;b.exports.ER_CHANGE_USER_BAD_PACKET=45014;b.exports.ER_PING_BAD_PACKET=45015;b.exports.ER_MISSING_PARAMETER=45016;b.exports.ER_PARAMETER_UNDEFINED=45017;b.exports.ER_PLACEHOLDER_UNDEFINED=45018;b.exports.ER_SOCKET=45019;b.exports.ER_EOF_EXPECTED=45020;b.exports.ER_LOCAL_INFILE_DISABLED=45021;b.exports.ER_LOCAL_INFILE_NOT_READABLE=45022;b.exports.ER_SERVER_SSL_DISABLED=45023;b.exports.ER_AUTHENTICATION_BAD_PACKET=45024;b.exports.ER_AUTHENTICATION_PLUGIN_NOT_SUPPORTED=45025;b.exports.ER_SOCKET_TIMEOUT=45026;b.exports.ER_POOL_ALREADY_CLOSED=45027;b.exports.ER_GET_CONNECTION_TIMEOUT=45028;b.exports.ER_SETTING_SESSION_ERROR=45029;b.exports.ER_INITIAL_SQL_ERROR=45030;b.exports.ER_BATCH_WITH_NO_VALUES=45031;b.exports.ER_RESET_BAD_PACKET=45032;b.exports.ER_WRONG_IANA_TIMEZONE=45033;b.exports.ER_LOCAL_INFILE_WRONG_FILENAME=45034;b.exports.ER_ADD_CONNECTION_CLOSED_POOL=45035;b.exports.ER_WRONG_AUTO_TIMEZONE=45036;b.exports.ER_CLOSING_POOL=45037;b.exports.ER_TIMEOUT_NOT_SUPPORTED=45038;b.exports.ER_INITIAL_TIMEOUT_ERROR=45039;b.exports.ER_DUPLICATE_FIELD=45040;b.exports.ER_CLIENT_OPTION_INCOMPATIBILITY=45041;b.exports.ER_PING_TIMEOUT=45042;b.exports.ER_BAD_PARAMETER_VALUE=45043;b.exports.ER_CANNOT_RETRIEVE_RSA_KEY=45044;b.exports.ER_MINIMUM_NODE_VERSION_REQUIRED=45045;b.exports.ER_POOL_UNDEFINED_SQL=45049;const o=Object.keys(b.exports);const e={};for(let z=0;z<o.length;z++){const p=o[z];if(p!=="createError"){e[b.exports[p]]=p}}b.exports.SqlError=SqlError},2491:function(b,z,p){const O=p(1450);const o={Normal:1,String:2,SlashStarComment:3,Escape:4,EOLComment:5,Backtick:6,Placeholder:7};b.exports.splitQuery=function(b){let z=[];let p=o.Normal;let O="\0";let e=false;let c=0;let t=0;let i=b.charAt(t++);while(i!==""){if(p===o.Escape&&!(i==="'"&&e||i==='"'&&!e)){p=o.String;i=b.charAt(t++);continue}switch(i){case"*":if(p===o.Normal&&O=="/")p=o.SlashStarComment;break;case"/":if(p===o.SlashStarComment&&O=="*")p=o.Normal;break;case"#":if(p===o.Normal)p=o.EOLComment;break;case"-":if(p===o.Normal&&O=="-"){p=o.EOLComment}break;case"\n":if(p===o.EOLComment){p=o.Normal}break;case'"':if(p===o.Normal){p=o.String;e=false}else if(p===o.String&&!e){p=o.Normal}else if(p===o.Escape&&!e){p=o.String}break;case"'":if(p===o.Normal){p=o.String;e=true}else if(p===o.String&&e){p=o.Normal}else if(p===o.Escape&&e){p=o.String}break;case"\\":if(p===o.String)p=o.Escape;break;case"?":if(p===o.Normal){z.push(b.substring(c,t-1));c=t}break;case"`":if(p===o.Backtick){p=o.Normal}else if(p===o.Normal){p=o.Backtick}break}O=i;i=b.charAt(t++)}if(c===0){z.push(b)}else{z.push(b.substring(c))}return z};b.exports.splitQueryPlaceholder=function(b,z,p,e){let c=[];let t=[];let i=o.Normal;let n="\0";let s=false;let a=0;let r=0;let q=b.charAt(r++);let d;while(q!==""){if(i===o.Escape&&!(q==="'"&&s||q==='"'&&!s)){i=o.String;q=b.charAt(r++);continue}switch(q){case"*":if(i===o.Normal&&n=="/")i=o.SlashStarComment;break;case"/":if(i===o.SlashStarComment&&n=="*")i=o.Normal;break;case"#":if(i===o.Normal)i=o.EOLComment;break;case"-":if(i===o.Normal&&n=="-"){i=o.EOLComment}break;case"\n":if(i===o.EOLComment){i=o.Normal}break;case'"':if(i===o.Normal){i=o.String;s=false}else if(i===o.String&&!s){i=o.Normal}else if(i===o.Escape&&!s){i=o.String}break;case"'":if(i===o.Normal){i=o.String;s=true}else if(i===o.String&&s){i=o.Normal;s=false}else if(i===o.Escape&&s){i=o.String}break;case"\\":if(i===o.String)i=o.Escape;break;case":":if(i===o.Normal){c.push(b.substring(a,r-1));d="";while((q=b.charAt(r++))!==""&&q>="0"&&q<="9"||q>="A"&&q<="Z"||q>="a"&&q<="z"||q==="-"||q==="_"){d+=q}r--;const o=p[d];if(o===undefined){throw O.createError("Placeholder '"+d+"' is not defined",e.call(),false,z,"HY000",O.ER_PLACEHOLDER_UNDEFINED)}t.push(o);a=r}break;case"`":if(i===o.Backtick){i=o.Normal}else if(i===o.Normal){i=o.Backtick}}n=q;q=b.charAt(r++)}if(a===0){c.push(b)}else{c.push(b.substring(a))}return{parts:c,values:t}};b.exports.splitRewritableQuery=function(b){let z=true;let p=true;let O=[];let e="\0";let c=0;let t=null;let i=null;let n=null;let s=false;let a=0;let r=true;let q=false;let d=false;let W=false;let f=o.Normal;let R=0;let u=b.charAt(R++);while(u!==""){if(f===o.Escape&&!(u==="'"&&s||u==='"'&&!s)){f=o.String;u=b.charAt(R++);continue}switch(u){case"*":if(f===o.Normal&&e=="/"){f=o.SlashStarComment}break;case"/":if(f===o.SlashStarComment&&e=="*"){f=o.Normal}break;case"#":if(f===o.Normal){f=o.EOLComment}break;case"-":if(f===o.Normal&&e=="-"){f=o.EOLComment}break;case"\n":if(f===o.EOLComment){f=o.Normal}break;case'"':if(f===o.Normal){f=o.String;s=false}else if(f===o.String&&!s){f=o.Normal}else if(f===o.Escape&&!s){f=o.String}break;case";":if(f===o.Normal){d=true;p=false}break;case"'":if(f===o.Normal){f=o.String;s=true}else if(f===o.String&&s){f=o.Normal}else if(f===o.Escape&&s){f=o.String}break;case"\\":if(f===o.String){f=o.Escape}break;case"?":if(f===o.Normal){W=true;let p=b.substring(c,R-1);c=R;if(t===null){t=p;i=""}else if(i===null){i=p}else{if(n){z=false;O.push(n+p);n=null}else O.push(p)}}break;case"`":if(f===o.Backtick){f=o.Normal}else if(f===o.Normal){f=o.Backtick}break;case"s":case"S":if(f===o.Normal&&n===null&&b.length>R+5&&(b.charAt(R)==="e"||b.charAt(R)==="E")&&(b.charAt(R+1)==="l"||b.charAt(R+1)==="L")&&(b.charAt(R+2)==="e"||b.charAt(R+2)==="E")&&(b.charAt(R+3)==="c"||b.charAt(R+3)==="C")&&(b.charAt(R+4)==="t"||b.charAt(R+4)==="T")){if(R>1&&b.charAt(R-2)>" "&&"();><=-+,".indexOf(b.charAt(R-2))===-1){break}if(b.charAt(R+5)>" "&&"();><=-+,".indexOf(b.charAt(R+5))===-1){break}z=false}break;case"v":case"V":if(f===o.Normal&&!t&&(e==")"||e<=" ")&&b.length>R+6&&(b.charAt(R)==="a"||b.charAt(R)==="A")&&(b.charAt(R+1)==="l"||b.charAt(R+1)==="L")&&(b.charAt(R+2)==="u"||b.charAt(R+2)==="U")&&(b.charAt(R+3)==="e"||b.charAt(R+3)==="E")&&(b.charAt(R+4)==="s"||b.charAt(R+4)==="S")&&(b.charAt(R+5)==="("||b.charAt(R+5)<=" ")){R+=5;t=b.substring(c,R);c=R}break;case"l":case"L":if(f===o.Normal&&b.length>R+13&&(b.charAt(R)==="a"||b.charAt(R)==="A")&&(b.charAt(R+1)==="s"||b.charAt(R+1)==="S")&&(b.charAt(R+2)==="t"||b.charAt(R+2)==="T")&&b.charAt(R+3)==="_"&&(b.charAt(R+4)==="i"||b.charAt(R+4)==="I")&&(b.charAt(R+5)==="n"||b.charAt(R+5)==="N")&&(b.charAt(R+6)==="s"||b.charAt(R+6)==="S")&&(b.charAt(R+7)==="e"||b.charAt(R+7)==="E")&&(b.charAt(R+8)==="r"||b.charAt(R+8)==="R")&&(b.charAt(R+9)==="t"||b.charAt(R+9)==="T")&&b.charAt(R+10)==="_"&&(b.charAt(R+11)==="i"||b.charAt(R+11)==="I")&&(b.charAt(R+12)==="d"||b.charAt(R+12)==="D")&&b.charAt(R+13)==="("){z=false;R+=13}break;case"(":if(f===o.Normal){a++}break;case")":if(f===o.Normal){a--;if(a===0&&i!==null&&n===null){n=b.substring(c,R);c=R}}break;default:if(f===o.Normal&&r&&u>" "){if((u==="I"||u==="i")&&b.length>R+6&&(b.charAt(R)==="n"||b.charAt(R)==="N")&&(b.charAt(R+1)==="s"||b.charAt(R+1)==="S")&&(b.charAt(R+2)==="e"||b.charAt(R+2)==="E")&&(b.charAt(R+3)==="r"||b.charAt(R+3)==="R")&&(b.charAt(R+4)==="t"||b.charAt(R+4)==="T")&&(b.charAt(R+5)==="("||b.charAt(R+5)<=" ")){q=true}r=false}if(f===o.Normal&&d&&u>=" "){z=false;p=true}break}e=u;u=b.charAt(R++)}if(f===o.EOLComment)p=false;if(!W){if(t===null){O.unshift("");O.unshift(b)}else{O.unshift(b.substring(c,R));O.unshift(t)}c=R}else{O.unshift(i!==null?i:"");O.unshift(t!==null?t:"")}if(!q){z=false}if(W){O.push(n!==null?n:"")}O.push(b.substring(c,R));return{partList:O,reWritable:z,multipleQueries:p}};b.exports.searchPlaceholder=function(b,z,p,O){let e="";const c=p.length;let t=new Array(c);for(let b=0;b<c;b++)t[b]=[];let i=o.Normal;let n="\0";let s=false;let a=0;let r=0;let q=b.charAt(r++);let d;while(q!==""){if(i===o.Escape&&!(q==="'"&&s||q==='"'&&!s)){i=o.String;n=q;q=b.charAt(r++);continue}switch(q){case"*":if(i===o.Normal&&n=="/")i=o.SlashStarComment;break;case"/":if(i===o.SlashStarComment&&n=="*")i=o.Normal;break;case"#":if(i===o.Normal)i=o.EOLComment;break;case"-":if(i===o.Normal&&n=="-"){i=o.EOLComment}break;case"\n":if(i===o.EOLComment){i=o.Normal}break;case'"':if(i===o.Normal){i=o.String;s=false}else if(i===o.String&&!s){i=o.Normal}else if(i===o.Escape&&!s){i=o.String}break;case"'":if(i===o.Normal){i=o.String;s=true}else if(i===o.String&&s){i=o.Normal;s=false}else if(i===o.Escape&&s){i=o.String}break;case"\\":if(i===o.String)i=o.Escape;break;case":":if(i===o.Normal){e+=b.substring(a,r-1)+"?";d="";while((q=b.charAt(r++))!==""&&q>="0"&&q<="9"||q>="A"&&q<="Z"||q>="a"&&q<="z"||q==="-"||q==="_"){d+=q}r--;for(let b=0;b<c;b++){const z=p[b][d];if(z!==undefined){t[b].push(z)}else{t[b].push(null)}}a=r}break;case"`":if(i===o.Backtick){i=o.Normal}else if(i===o.Normal){i=o.Backtick}}n=q;q=b.charAt(r++)}if(a===0){e=b}else{e+=b.substring(a)}return{sql:e,values:t}};b.exports.splitRewritableNamedParameterQuery=function(b,z){let p=true;let O=true;let e=[];let c=new Array(z.length);for(let b=0;b<c.length;b++)c[b]=[];let t="\0";let i=0;let n=null;let s=null;let a=null;let r=false;let q=0;let d=true;let W=false;let f=false;let R=false;let u;let l=o.Normal;let _=0;let h=b.charAt(_++);while(h!==""){if(l===o.Escape&&!(h==="'"&&r||h==='"'&&!r)){l=o.String;h=b.charAt(_++);continue}switch(h){case"*":if(l===o.Normal&&t=="/"){l=o.SlashStarComment}break;case"/":if(l===o.SlashStarComment&&t=="*"){l=o.Normal}break;case"#":if(l===o.Normal){l=o.EOLComment}break;case"-":if(l===o.Normal&&t=="-"){l=o.EOLComment}break;case"\n":if(l===o.EOLComment){l=o.Normal}break;case'"':if(l===o.Normal){l=o.String;r=false}else if(l===o.String&&!r){l=o.Normal}else if(l===o.Escape&&!r){l=o.String}break;case";":if(l===o.Normal){f=true;O=false}break;case"'":if(l===o.Normal){l=o.String;r=true}else if(l===o.String&&r){l=o.Normal}else if(l===o.Escape&&r){l=o.String}break;case"\\":if(l===o.String){l=o.Escape}break;case":":if(l===o.Normal){let O=b.substring(i,_-1);u="";while((h=b.charAt(_++))!==""&&h>="0"&&h<="9"||h>="A"&&h<="Z"||h>="a"&&h<="z"||h==="-"||h==="_"){u+=h}_--;R=true;z.forEach(((b,z)=>{if(b[u]!==undefined){c[z].push(b[u])}else{c[z].push(null)}}));i=_;if(n===null){n=O;s=""}else if(s===null){s=O}else{if(a){p=false;e.push(a+O);a=null}else e.push(O)}}break;case"`":if(l===o.Backtick){l=o.Normal}else if(l===o.Normal){l=o.Backtick}break;case"s":case"S":if(l===o.Normal&&a===null&&b.length>_+5&&(b.charAt(_)==="e"||b.charAt(_)==="E")&&(b.charAt(_+1)==="l"||b.charAt(_+1)==="L")&&(b.charAt(_+2)==="e"||b.charAt(_+2)==="E")&&(b.charAt(_+3)==="c"||b.charAt(_+3)==="C")&&(b.charAt(_+4)==="t"||b.charAt(_+4)==="T")){if(_>1&&b.charAt(_-2)>" "&&"();><=-+,".indexOf(b.charAt(_-2))===-1){break}if(b.charAt(_+5)>" "&&"();><=-+,".indexOf(b.charAt(_+5))===-1){break}p=false}break;case"v":case"V":if(l===o.Normal&&!n&&(t==")"||t<=" ")&&b.length>_+6&&(b.charAt(_)==="a"||b.charAt(_)==="A")&&(b.charAt(_+1)==="l"||b.charAt(_+1)==="L")&&(b.charAt(_+2)==="u"||b.charAt(_+2)==="U")&&(b.charAt(_+3)==="e"||b.charAt(_+3)==="E")&&(b.charAt(_+4)==="s"||b.charAt(_+4)==="S")&&(b.charAt(_+5)==="("||b.charAt(_+5)<=" ")){_+=5;n=b.substring(i,_);i=_}break;case"l":case"L":if(l===o.Normal&&b.length>_+13&&(b.charAt(_)==="a"||b.charAt(_)==="A")&&(b.charAt(_+1)==="s"||b.charAt(_+1)==="S")&&(b.charAt(_+2)==="t"||b.charAt(_+2)==="T")&&b.charAt(_+3)==="_"&&(b.charAt(_+4)==="i"||b.charAt(_+4)==="I")&&(b.charAt(_+5)==="n"||b.charAt(_+5)==="N")&&(b.charAt(_+6)==="s"||b.charAt(_+6)==="S")&&(b.charAt(_+7)==="e"||b.charAt(_+7)==="E")&&(b.charAt(_+8)==="r"||b.charAt(_+8)==="R")&&(b.charAt(_+9)==="t"||b.charAt(_+9)==="T")&&b.charAt(_+10)==="_"&&(b.charAt(_+11)==="i"||b.charAt(_+11)==="I")&&(b.charAt(_+12)==="d"||b.charAt(_+12)==="D")&&b.charAt(_+13)==="("){p=false;_+=13}break;case"(":if(l===o.Normal){q++}break;case")":if(l===o.Normal){q--;if(q===0&&s!==null&&a===null){a=b.substring(i,_);i=_}}break;default:if(l===o.Normal&&d&&h>" "){if((h==="I"||h==="i")&&b.length>_+6&&(b.charAt(_)==="n"||b.charAt(_)==="N")&&(b.charAt(_+1)==="s"||b.charAt(_+1)==="S")&&(b.charAt(_+2)==="e"||b.charAt(_+2)==="E")&&(b.charAt(_+3)==="r"||b.charAt(_+3)==="R")&&(b.charAt(_+4)==="t"||b.charAt(_+4)==="T")&&(b.charAt(_+5)==="("||b.charAt(_+5)<=" ")){W=true}d=false}if(l===o.Normal&&f&&h>=" "){p=false;O=true}break}t=h;h=b.charAt(_++)}if(l===o.EOLComment)O=false;if(!R){if(n===null){e.unshift("");e.unshift(b)}else{e.unshift(b.substring(i,_));e.unshift(n)}i=_}else{e.unshift(s!==null?s:"");e.unshift(n!==null?n:"")}if(!W){p=false}if(R){e.push(a!==null?a:"")}e.push(b.substring(i,_));return{partList:e,reWritable:p,multipleQueries:O,values:c}};b.exports.validateFileName=function(b,z,p){let O=new RegExp("^(\\s*\\/\\*([^\\*]|\\*[^\\/])*\\*\\/)*\\s*LOAD\\s+DATA\\s+((LOW_PRIORITY|CONCURRENT)\\s+)?LOCAL\\s+INFILE\\s+'"+p.replace(/\\/g,"\\\\\\\\").replace(".","\\.")+"'","i");if(O.test(b))return true;if(z!=null){O=new RegExp("^(\\s*\\/\\*([^\\*]|\\*[^\\/])*\\*\\/)*\\s*LOAD\\s+DATA\\s+((LOW_PRIORITY|CONCURRENT)\\s+)?LOCAL\\s+INFILE\\s+\\?","i");if(O.test(b)&&z.length>0){if(Array.isArray(z)){return z[0].toLowerCase()===p.toLowerCase()}return z.toLowerCase()===p.toLowerCase()}}return false}},2245:function(b,z,p){"use strict";const O=p(5078);const o="0123456789ABCDEF".split("");const e=p(1450);const c=p(8662);const t=p(1401);b.exports.log=function(b,z,p,O,e){let c=[];if(!z)return"";if(p===undefined||p===null)p=0;if(O===undefined||O===null)O=z.length;let t=new Array(16);t[8]=" ";let i=e!==undefined;let n=p||0;const s=Math.min(i?b.debugLen-e.length:b.debugLen,O-n);const a=O-n>s;let r;let q=0;let d=0;c.push("+--------------------------------------------------+\n"+"| 0 1 2 3 4 5 6 7 8 9 a b c d e f |\n"+"+--------------------------------------------------+------------------+\n");if(i){while(d<e.length){if(q===0)c.push("| ");r=e[d++]&255;c.push(o[r>>>4],o[r&15]," ");t[q++]=r>31&&r<127?String.fromCharCode(r):".";if(q===8)c.push(" ")}}d=n;while(d<s+n){if(q===0)c.push("| ");r=z[d]&255;c.push(o[r>>>4],o[r&15]," ");t[q++]=r>31&&r<127?String.fromCharCode(r):".";if(q===8)c.push(" ");if(q===16){c.push("| ",t.join("")," |\n");q=0}d++}let W=q;if(W>0){if(W<8){for(;W<8;W++){c.push(" ");t[q++]=" "}c.push(" ")}for(;W<16;W++){c.push(" ");t[q++]=" "}c.push("| ",t.join(""),a?" |...\n":" |\n")}else if(a){c[c.length-1]=" |...\n"}c.push("+--------------------------------------------------+------------------+\n");return c.join("")};b.exports.escapeId=(b,z,p)=>{if(!p||p===""){throw e.createError("Cannot escape empty ID value",null,false,z,"0A000",e.ER_NULL_ESCAPEID)}if(p.includes("\0")){throw e.createError("Cannot escape ID with null character (u0000)",null,false,z,"0A000",e.ER_NULL_CHAR_ESCAPEID)}if(p.match(/^`.+`$/g)){return p}return"`"+p.replace(/`/g,"``")+"`"};const escapeParameters=(b,z,p)=>{if(p===undefined||p===null)return"NULL";switch(typeof p){case"boolean":return p?"true":"false";case"bigint":case"number":return""+p;case"object":if(Object.prototype.toString.call(p)==="[object Date]"){return b.tz?b.tz==="Etc/UTC"?c.getUtcDate(p,b):c.getTimezoneDate(p,b):c.getLocalDate(p,b)}else if(Buffer.isBuffer(p)){let z;if(Buffer.isEncoding(b.collation.charset)){z=p.toString(b.collation.charset,0,p.length)}else{z=t.decode(p,b.collation.charset)}return"_binary'"+escapeString(z)+"'"}else if(typeof p.toSqlString==="function"){return"'"+escapeString(String(p.toSqlString()))+"'"}else if(O.isLong(p)){return p.toString()}else if(Array.isArray(p)){let O=b.arrayParenthesis?"(":"";for(let o=0;o<p.length;o++){if(o!==0)O+=",";O+=escapeParameters(b,z,p[o])}if(b.arrayParenthesis)O+=")";return O}else{if(p.type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(p.type)){let b=z&&(z.isMariaDB()&&z.hasMinVersion(10,1,4)||!z.isMariaDB()&&z.hasMinVersion(5,7,6))?"ST_":"";switch(p.type){case"Point":return b+"PointFromText('POINT("+c.geoPointToString(p.coordinates)+")')";case"LineString":return b+"LineFromText('LINESTRING("+c.geoArrayPointToString(p.coordinates)+")')";case"Polygon":return b+"PolygonFromText('POLYGON("+c.geoMultiArrayPointToString(p.coordinates)+")')";case"MultiPoint":return b+"MULTIPOINTFROMTEXT('MULTIPOINT("+c.geoArrayPointToString(p.coordinates)+")')";case"MultiLineString":return b+"MLineFromText('MULTILINESTRING("+c.geoMultiArrayPointToString(p.coordinates)+")')";case"MultiPolygon":return b+"MPolyFromText('MULTIPOLYGON("+c.geoMultiPolygonToString(p.coordinates)+")')";case"GeometryCollection":return b+"GeomCollFromText('GEOMETRYCOLLECTION("+c.geometricCollectionToString(p.geometries)+")')"}}else{if(b.permitSetMultiParamEntries){let O="";let o=true;for(let e in p){const c=p[e];if(typeof c==="function")continue;if(o){o=false}else{O+=","}O+="`"+e+"`=";O+=this.escape(b,z,c)}if(O==="")return"'"+escapeString(JSON.stringify(p))+"'";return O}else{return"'"+escapeString(JSON.stringify(p))+"'"}}}default:return"'"+escapeString(p)+"'"}};const i={"\0":"\\0","'":"\\'",'"':'\\"',"\b":"\\b","\n":"\\n","\r":"\\r","\t":"\\t","":"\\Z","\\":"\\\\"};const escapeString=b=>{const z=/[\u0000'"\b\n\r\t\u001A\\]/g;let p=0;let O="";let o;while(o=z.exec(b)){O+=b.substring(p,o.index);O+=i[o[0]];p=z.lastIndex}if(p===0){return b}if(p<b.length){O+=b.substring(p)}return O};b.exports.escape=escapeParameters},1847:function(b,z,p){"use strict";const O=p(2361);const o=p(3837);const e=p(2342);const c=p(1450);const t=p(2245);function PoolBase(b,z,p,o){this.getConnection=function(){return addRequest(this)};this.query=function(b,z){return addRequest(this,b,z,false)};this.batch=function(b,z){return addRequest(this,b,z,true)};this.end=function(){if(n){return Promise.reject(c.createError("pool is already closed",null,false,null,"HY000",c.ER_POOL_ALREADY_CLOSED,undefined,false))}n=true;clearInterval(f);const b=[];let z;while(z=q.shift()){b.push(z.forceEnd())}R=clearTimeout(R);if(W.size()>0){let b;const z=c.createError("pool is ending, connection request aborted",null,false,null,"HY000",c.ER_CLOSING_POOL,undefined,false);while(b=W.shift()){process.nextTick(b.reject,z)}}return Promise.all(b)};this.activeConnections=function(){return Object.keys(d).length};this.totalConnections=function(){return this.activeConnections()+this.idleConnections()};this.idleConnections=function(){return q.size()};this.taskQueueSize=function(){return W.size()};this.initialize=function(){s=true;const b=this;const z=Date.now()+i.initializationTimeout;connectionCreationLoop(b,0,z).then((z=>{if(n){z.forceEnd().catch((b=>{}))}else{addPoolConnection(b,z);if(i.idleTimeout>0){f=setInterval(idleMaintainer,500,b)}}})).catch((b=>{s=false;const z=W.shift();if(z){R=clearTimeout(R);process.nextTick(z.reject,b);resetTimeoutToNextTask()}else if(!n){console.error(b)}})).finally((()=>{ensurePoolSize(b)}))};this.escape=z=>t.escape(b.connOptions,searchInfo(),z);this.escapeId=z=>t.escapeId(b.connOptions,searchInfo(),z);const searchInfo=()=>{let b=null;let z=q.get(0);if(z==null){z=Object.keys(d)[0]}if(z!=null){b=z.info}return b};const addRequest=function(b,p,O,o){if(o!=undefined&&!p){return Promise.reject(c.createError("sql parameter is mandatory",null,false,null,"HY000",c.ER_POOL_UNDEFINED_SQL,undefined,false))}if(n){return Promise.reject(c.createError("pool is closed",null,false,null,"HY000",c.ER_POOL_ALREADY_CLOSED,undefined,false))}return getIdleValidConnection(b).then((e=>{b.emit("acquire",e);return z(e,p,O,o)}),(()=>{process.nextTick((()=>b.emit("enqueue")));ensurePoolSize(b);return new Promise(((b,z)=>{const e={timeout:Date.now()+i.acquireTimeout,reject:z,resolve:b,sql:p,values:O,isBatch:o};if(!R){R=setTimeout(rejectAndResetTimeout,i.acquireTimeout,e)}W.push(e)}))}))};const getIdleValidConnection=function(b){if(q.isEmpty()){return Promise.reject(null)}const z=q.shift();d[z.threadId]=z;if(i.minDelayValidation<=0||Date.now()-z.lastUse>i.minDelayValidation){return o(z).then((()=>{a(z);return Promise.resolve(z)})).catch((p=>{delete d[z.threadId];b.emit("_remove-conn");return getIdleValidConnection(b)}))}else{if(z.isValid()){a(z);return Promise.resolve(z)}else{delete d[z.threadId];b.emit("_remove-conn");return getIdleValidConnection(b)}}};const timeoutTask=b=>{R=null;if(b===W.peekFront()){W.shift();process.nextTick(b.reject,c.createError("retrieve connection from pool timeout after "+Math.abs(Date.now()-(b.timeout-i.acquireTimeout))+"ms",null,false,null,"HY000",c.ER_GET_CONNECTION_TIMEOUT,undefined,false))}else{throw new Error("Rejection by timeout without task !!!")}};const rejectAndResetTimeout=b=>{timeoutTask(b);resetTimeoutToNextTask()};const connectionCreationLoop=function(b,z,O){return new Promise((function(o,e){const creationTryout=function(o,e){if(n){e(c.createError("Cannot create new connection to pool, pool closed",null,true,null,"08S01",c.ER_ADD_CONNECTION_CLOSED_POOL,null));return}z++;p(b).then((b=>{o(b)})).catch((b=>{if(n||b.errno&&(b.errno===1524||b.errno===1045||b.errno===1698)||O<Date.now()){e(b);return}setTimeout(creationTryout.bind(null,o,e),500)}))};creationTryout(o,e)}))};const addPoolConnection=function(b,z){z.lastUse=Date.now();const p=z.destroy;z.destroy=()=>{r(z);delete d[z.threadId];p();b.emit("_remove-conn")};z.on("error",(p=>{let O=0;let o;r(z);delete d[z.threadId];while(o=q.peekAt(O)){if(o===z){q.removeOne(O);break}else{o.lastUse=Math.min(Date.now()-i.minDelayValidation,o.lastUse)}O++}b.emit("_remove-conn")}));s=false;q.push(z);b.emit("_idle-conn");process.nextTick((()=>b.emit("connection",z)))};this._releaseConnection=function(b){r(b);b.lastUse=Date.now();delete d[b.threadId];const z=this;if(n){return b.forceEnd().catch((()=>Promise.resolve()))}else if(b.isValid()){z.emit("release",b);q.push(b);process.nextTick((()=>z.emit("_idle-conn")))}else{ensurePoolSize(z)}};const ensurePoolSize=function(b){if(!s&&b.idleConnections()<i.minimumIdle&&b.totalConnections()<i.connectionLimit&&!n){s=true;process.nextTick((()=>{const z=Date.now()+i.initializationTimeout;if(!n){connectionCreationLoop(b,0,z).then((z=>{if(n){return z.forceEnd().catch((b=>{}))}addPoolConnection(b,z)})).catch((z=>{if(b.totalConnections()===0){const b=W.shift();if(b){R=clearTimeout(R);process.nextTick(b.reject,z);resetTimeoutToNextTask()}}else if(!n){console.error(`pool fail to create connection (${z.message})`)}setTimeout((()=>{s=false;if(W.size()>0){ensurePoolSize(b)}}),500)}))}}))}};const resetTimeoutToNextTask=()=>{const b=Date.now();let z;while(z=W.peekFront()){if(z.timeout<b){timeoutTask(z)}else{R=setTimeout(rejectAndResetTimeout,z.timeout-b,z);return}}};const idleMaintainer=function(b){let z=Math.max(1,b.idleConnections()-i.minimumIdle);while(z>0){const b=q.peek();--z;if(b&&b.lastUse+i.idleTimeout*1e3<Date.now()){q.shift();b.forceEnd().catch((b=>{}));continue}break}ensurePoolSize(b)};this._discardConnection=b=>{r(b);delete d[b.threadId];b.forceEnd().catch((b=>{}));this.emit("_remove-conn")};const logLeak=b=>{console.log("Possible connection leak on thread "+b.info.threadId+" (connection not returned to pool since "+(Date.now()-b.lastUse)+"ms. Did connection.released() been implemented");b.leaked=true};const _initLeakProcess=b=>{b.lastUse=Date.now();b.leaked=false;b.leakProcess=setTimeout(logLeak,i.leakDetectionTimeout,b)};const _removeLeakProcess=b=>{b.leakProcess=clearTimeout(b.leakProcess);if(b.leaked){console.log("Previous possible leak connection with thread "+b.info.threadId+" was returned to pool")}};const handleTaskQueue=function(){R=clearTimeout(R);const b=W.shift();if(b){const p=q.shift();if(p){a(p);this.emit("acquire",p);d[p.threadId]=p;resetTimeoutToNextTask();z(p,b.sql,b.values,b.isBatch).then(b.resolve).catch(b.reject)}else{W.unshift(b)}}};const i=b;let n=false;let s=false;const a=i.leakDetectionTimeout>0?_initLeakProcess:()=>{};const r=i.leakDetectionTimeout>0?_removeLeakProcess:()=>{};const q=new e;const d={};const W=new e;let f;let R;Object.defineProperty(this,"closed",{get(){return n}});O.call(this);this.on("_idle-conn",handleTaskQueue.bind(this));this.on("_remove-conn",ensurePoolSize.bind(this,this));this.on("connection",ensurePoolSize.bind(this,this))}o.inherits(PoolBase,O);b.exports=PoolBase},9324:function(b,z,p){"use strict";const O=p(1847);const o=p(5903);const e=p(1450);const c=p(3837);function PoolCallback(b){const processTaskCallback=function(b,z,p,O){if(z){return new Promise(((o,e)=>{const c=O?b.batch:b.query;c(z,p,((z,p,O)=>{b.releaseWithoutError();if(z){e(z);return}return o(p)}))}))}else{return Promise.resolve(b)}};const pingPromise=function(z){return new Promise(((p,O)=>{z.ping(b.pingTimeout,(b=>{if(b){O(b)}else p()}))}))};const createConnectionPoolCallback=function(z){const p=new o(b.connOptions);return new Promise((function(O,o){p.connect((c=>{if(c){o(c)}else{if(z.closed){p.end((b=>{}));o(e.createError("Cannot create new connection to pool, pool closed",null,true,null,"08S01",e.ER_ADD_CONNECTION_CLOSED_POOL,null))}else{const o=p.end;p.forceEnd=()=>new Promise((function(b,z){o((p=>{if(p){z(p)}else{b()}}))}));p.release=function(O){if(z.closed){z._discardConnection(p);if(O)O();return}if(b.noControlAfterUse){z._releaseConnection(p);if(O)O();return}let o=p.rollback;if(b.resetAfterUse&&p.info.isMariaDB()&&(p.info.serverVersion.minor===2&&p.info.hasMinVersion(10,2,22)||p.info.hasMinVersion(10,3,13))){o=p.reset}o((b=>{if(b){z._discardConnection(p);if(O)O();return}else{z._releaseConnection(p)}if(O)O()}))};p.end=p.release;p.releaseWithoutError=()=>{p.end((b=>{}))};O(p)}}}))}))};O.call(this,b,processTaskCallback,createConnectionPoolCallback,pingPromise);const z=this.getConnection.bind(this);const p=this.end.bind(this);const c=this.query.bind(this);const t=this.batch.bind(this);const emptyError=b=>{};const _getConnectionCallback=b=>{z().then((z=>{if(b)b(null,z)})).catch(b||emptyError)};const _endCallback=b=>{p().then((()=>{if(b)b(null)})).catch(b||emptyError)};const _queryCallback=function(b,z,p){let O=p,o=z;if(typeof z==="function"){O=z;o=undefined}c(b,o).then((b=>{if(O)O(null,b,b.meta)})).catch(O||emptyError)};const _batchCallback=function(b,z,p){let O=z,o=p;if(typeof z==="function"){o=z;O=undefined}t(b,O).then((b=>{if(o)o(null,b,b.meta)})).catch(o||emptyError)};this.end=_endCallback;this.query=_queryCallback;this.batch=_batchCallback;this.getConnection=_getConnectionCallback}c.inherits(PoolCallback,O);b.exports=PoolCallback},837:function(b,z,p){"use strict";const O=p(1859);const o=p(9967);const e=p(4673);const c=p(9324);const t=p(6699);const i=p(2361);const n=p(3837);function PoolCluster(b){const z=new O(b);const p={};let n={};let s=0;i.call(this);this.add=(b,z)=>{let O;if(typeof b==="string"||b instanceof String){O=b;if(p[O])throw new Error("Node identifier '"+O+"' already exist !")}else{O="PoolNode-"+s++;z=b}const e=new o(z);const c=_createPool(e);c.initialize();p[O]=c};this.end=()=>{n={};const b=[];Object.keys(p).forEach((z=>{b.push(p[z].end());delete p[z]}));return Promise.all(b)};this.of=(b,z)=>new t(this,b,z);this.remove=b=>{if(!b)throw new Error("pattern parameter in Cluster.remove(pattern) is mandatory");const z=RegExp(b);Object.keys(p).forEach((b=>{if(z.test(b)){p[b].end();delete p[b];n={}}}))};this.getConnection=(b,z)=>_getConnection(this,b,z);this.setCallback=()=>{this.getConnection=_getConnectionCallback.bind(this,this);_createPool=_createPoolCallback};const _getConnection=(b,z,O,o,e)=>{const c=_matchingNodes(z||/^/);if(c.length===0){if(Object.keys(p).length===0&&!e){return Promise.reject(new Error("No node have been added to cluster "+"or nodes have been removed due to too much connection error"))}if(o===undefined)return Promise.reject(new Error("No node found for pattern '"+z+"'"));const b="No Connection available for '"+z+"'"+(e?". Last connection error was: "+e.message:"");return Promise.reject(new Error(b))}const t=_getConnection.bind(this,this,z,O);try{const z=_selectPool(c,O,o);return _handleConnectionError(b,c,z,t)}catch(b){return Promise.reject(b)}};let _createPool=b=>new e(b,false);const _createPoolCallback=b=>new c(b,false);const _getConnectionCallback=(b,z,O,o,e,c)=>{const t=_matchingNodes(z||/^/);if(t.length===0){if(Object.keys(p).length===0&&!c){o(new Error("No node have been added to cluster "+"or nodes have been removed due to too much connection error"));return}if(e===undefined)o(new Error("No node found for pattern '"+z+"'"));const b="No Connection available for '"+z+"'"+(c?". Last connection error was: "+c.message:"");o(new Error(b));return}const i=_getConnectionCallback.bind(this,this,z,O,o);try{const b=_selectPool(t,O,e);_handleConnectionCallbackError(this,t,b,i,o)}catch(b){o(b)}};const _matchingNodes=b=>{if(n[b])return n[b];const z=RegExp(b);const O=[];Object.keys(p).forEach((b=>{if(z.test(b)){O.push(b)}}));n[b]=O;return O};const _selectPool=(b,O,o)=>{const e=O||z.defaultSelector;let c=0;let t;let i;switch(e){case"RR":t=roundRobinSelector;break;case"RANDOM":t=randomSelector;break;case"ORDER":t=orderedSelector;break;default:throw new Error("Wrong selector value '"+e+"'. Possible values are 'RR','RANDOM' or 'ORDER'")}i=t(b,c);while((o===i||p[i].blacklistedUntil>Date.now())&&c<b.length-1){c++;i=t(b,c)}return i};const roundRobinSelector=b=>{let z=b.lastRrIdx;if(z===undefined)z=-1;if(++z>=b.length)z=0;b.lastRrIdx=z;return b[z]};const randomSelector=b=>{let z=Math.floor(Math.random()*b.length);return b[z]};const orderedSelector=(b,z)=>b[z];const _handleConnectionError=(b,O,o,e)=>{const c=p[o];return c.getConnection().then((b=>{c.errorCount=0;return Promise.resolve(b)})).catch((t=>{c.errorCount=c.errorCount?c.errorCount+1:1;c.blacklistedUntil=Date.now()+z.restoreNodeTimeout;if(z.removeNodeErrorCount&&c.errorCount>=z.removeNodeErrorCount&&p[o]){delete p[o];n={};delete O.lastRrIdx;process.nextTick((()=>b.emit("remove",o)));c.end().catch((b=>{}))}if(O.length!==0&&z.canRetry){return e(o,t)}return Promise.reject(t)}))};const _handleConnectionCallbackError=(b,O,o,e,c)=>{const t=p[o];t.getConnection(((i,s)=>{if(i){t.errorCount=t.errorCount?t.errorCount+1:1;t.blacklistedUntil=Date.now()+z.restoreNodeTimeout;if(z.removeNodeErrorCount&&t.errorCount>=z.removeNodeErrorCount&&p[o]){delete p[o];n={};delete O.lastRrIdx;process.nextTick((()=>b.emit("remove",o)));t.end((()=>{}));if(O.length===0)return Promise.reject(i)}if(z.canRetry)return e(o,i);c(i)}else{t.errorCount=0;c(null,s)}}))};function TestMethods(){}TestMethods.prototype.getNodes=()=>p;this.__tests=new TestMethods}n.inherits(PoolCluster,i);b.exports=PoolCluster},4673:function(b,z,p){"use strict";const O=p(2939);const o=p(1847);const e=p(1450);const c=p(3837);function PoolPromise(b){const processTaskPromise=function(b,z,p,O){if(z){const o=O?b.batch:b.query;return o(z,p).then((z=>{b.releaseWithoutError();return Promise.resolve(z)})).catch((z=>{b.releaseWithoutError();return Promise.reject(z)}))}return Promise.resolve(b)};const createConnectionPoolPromise=function(z){const p=new O(b.connOptions);return p.connect().then((()=>{if(z.closed){p.end().then((()=>{})).catch((()=>{}));return Promise.reject(e.createError("Cannot create new connection to pool, pool closed",null,true,null,"08S01",e.ER_ADD_CONNECTION_CLOSED_POOL,null))}p.releaseWithoutError=()=>{p.release().catch((()=>{}))};p.forceEnd=p.end;p.release=()=>{if(z.closed){z._discardConnection(p);return Promise.resolve()}if(b.noControlAfterUse){z._releaseConnection(p);return Promise.resolve()}let O=p.rollback;if(b.resetAfterUse&&p.info.isMariaDB()&&(p.info.serverVersion.minor===2&&p.info.hasMinVersion(10,2,22)||p.info.hasMinVersion(10,3,13))){O=p.reset}return O().then((()=>{z._releaseConnection(p);return Promise.resolve()})).catch((b=>{z._discardConnection(p);return Promise.resolve()}))};p.end=p.release;return Promise.resolve(p)})).catch((b=>Promise.reject(b)))};o.call(this,b,processTaskPromise,createConnectionPoolPromise,(z=>z.ping(b.pingTimeout)))}c.inherits(PoolPromise,o);b.exports=PoolPromise},9210:function(b,z,p){"use strict";var O=p(5118).Buffer;z._dbcs=DBCSCodec;var o=-1,e=-2,c=-10,t=-1e3,i=new Array(256),n=-1;for(var s=0;s<256;s++)i[s]=o;function DBCSCodec(b,z){this.encodingName=b.encodingName;if(!b)throw new Error("DBCS codec is called without the data.");if(!b.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var p=b.table();this.decodeTables=[];this.decodeTables[0]=i.slice(0);this.decodeTableSeq=[];for(var O=0;O<p.length;O++)this._addDecodeChunk(p[O]);if(typeof b.gb18030==="function"){this.gb18030=b.gb18030();var c=this.decodeTables.length;this.decodeTables.push(i.slice(0));var n=this.decodeTables.length;this.decodeTables.push(i.slice(0));var s=this.decodeTables[0];for(var O=129;O<=254;O++){var a=this.decodeTables[t-s[O]];for(var r=48;r<=57;r++){if(a[r]===o){a[r]=t-c}else if(a[r]>t){throw new Error("gb18030 decode tables conflict at byte 2")}var q=this.decodeTables[t-a[r]];for(var d=129;d<=254;d++){if(q[d]===o){q[d]=t-n}else if(q[d]===t-n){continue}else if(q[d]>t){throw new Error("gb18030 decode tables conflict at byte 3")}var W=this.decodeTables[t-q[d]];for(var f=48;f<=57;f++){if(W[f]===o)W[f]=e}}}}}this.defaultCharUnicode=z.defaultCharUnicode;this.encodeTable=[];this.encodeTableSeq=[];var R={};if(b.encodeSkipVals)for(var O=0;O<b.encodeSkipVals.length;O++){var u=b.encodeSkipVals[O];if(typeof u==="number")R[u]=true;else for(var r=u.from;r<=u.to;r++)R[r]=true}this._fillEncodeTable(0,0,R);if(b.encodeAdd){for(var l in b.encodeAdd)if(Object.prototype.hasOwnProperty.call(b.encodeAdd,l))this._setEncodeChar(l.charCodeAt(0),b.encodeAdd[l])}this.defCharSB=this.encodeTable[0][z.defaultCharSingleByte.charCodeAt(0)];if(this.defCharSB===o)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===o)this.defCharSB="?".charCodeAt(0)}DBCSCodec.prototype.encoder=DBCSEncoder;DBCSCodec.prototype.decoder=DBCSDecoder;DBCSCodec.prototype._getDecodeTrieNode=function(b){var z=[];for(;b>0;b>>>=8)z.push(b&255);if(z.length==0)z.push(0);var p=this.decodeTables[0];for(var O=z.length-1;O>0;O--){var e=p[z[O]];if(e==o){p[z[O]]=t-this.decodeTables.length;this.decodeTables.push(p=i.slice(0))}else if(e<=t){p=this.decodeTables[t-e]}else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+b.toString(16))}return p};DBCSCodec.prototype._addDecodeChunk=function(b){var z=parseInt(b[0],16);var p=this._getDecodeTrieNode(z);z=z&255;for(var O=1;O<b.length;O++){var o=b[O];if(typeof o==="string"){for(var e=0;e<o.length;){var t=o.charCodeAt(e++);if(55296<=t&&t<56320){var i=o.charCodeAt(e++);if(56320<=i&&i<57344)p[z++]=65536+(t-55296)*1024+(i-56320);else throw new Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+b[0])}else if(4080<t&&t<=4095){var n=4095-t+2;var s=[];for(var a=0;a<n;a++)s.push(o.charCodeAt(e++));p[z++]=c-this.decodeTableSeq.length;this.decodeTableSeq.push(s)}else p[z++]=t}}else if(typeof o==="number"){var r=p[z-1]+1;for(var e=0;e<o;e++)p[z++]=r++}else throw new Error("Incorrect type '"+typeof o+"' given in "+this.encodingName+" at chunk "+b[0])}if(z>255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+b[0]+": too long"+z)};DBCSCodec.prototype._getEncodeBucket=function(b){var z=b>>8;if(this.encodeTable[z]===undefined)this.encodeTable[z]=i.slice(0);return this.encodeTable[z]};DBCSCodec.prototype._setEncodeChar=function(b,z){var p=this._getEncodeBucket(b);var O=b&255;if(p[O]<=c)this.encodeTableSeq[c-p[O]][n]=z;else if(p[O]==o)p[O]=z};DBCSCodec.prototype._setEncodeSequence=function(b,z){var p=b[0];var O=this._getEncodeBucket(p);var e=p&255;var t;if(O[e]<=c){t=this.encodeTableSeq[c-O[e]]}else{t={};if(O[e]!==o)t[n]=O[e];O[e]=c-this.encodeTableSeq.length;this.encodeTableSeq.push(t)}for(var i=1;i<b.length-1;i++){var s=t[p];if(typeof s==="object")t=s;else{t=t[p]={};if(s!==undefined)t[n]=s}}p=b[b.length-1];t[p]=z};DBCSCodec.prototype._fillEncodeTable=function(b,z,p){var O=this.decodeTables[b];var o=false;var e={};for(var i=0;i<256;i++){var n=O[i];var s=z+i;if(p[s])continue;if(n>=0){this._setEncodeChar(n,s);o=true}else if(n<=t){var a=t-n;if(!e[a]){var r=s<<8>>>0;if(this._fillEncodeTable(a,r,p))o=true;else e[a]=true}}else if(n<=c){this._setEncodeSequence(this.decodeTableSeq[c-n],s);o=true}}return o};function DBCSEncoder(b,z){this.leadSurrogate=-1;this.seqObj=undefined;this.encodeTable=z.encodeTable;this.encodeTableSeq=z.encodeTableSeq;this.defaultCharSingleByte=z.defCharSB;this.gb18030=z.gb18030}DBCSEncoder.prototype.write=function(b){var z=O.alloc(b.length*(this.gb18030?4:3)),p=this.leadSurrogate,e=this.seqObj,t=-1,i=0,s=0;while(true){if(t===-1){if(i==b.length)break;var a=b.charCodeAt(i++)}else{var a=t;t=-1}if(55296<=a&&a<57344){if(a<56320){if(p===-1){p=a;continue}else{p=a;a=o}}else{if(p!==-1){a=65536+(p-55296)*1024+(a-56320);p=-1}else{a=o}}}else if(p!==-1){t=a;a=o;p=-1}var r=o;if(e!==undefined&&a!=o){var q=e[a];if(typeof q==="object"){e=q;continue}else if(typeof q=="number"){r=q}else if(q==undefined){q=e[n];if(q!==undefined){r=q;t=a}else{}}e=undefined}else if(a>=0){var d=this.encodeTable[a>>8];if(d!==undefined)r=d[a&255];if(r<=c){e=this.encodeTableSeq[c-r];continue}if(r==o&&this.gb18030){var W=findIdx(this.gb18030.uChars,a);if(W!=-1){var r=this.gb18030.gbChars[W]+(a-this.gb18030.uChars[W]);z[s++]=129+Math.floor(r/12600);r=r%12600;z[s++]=48+Math.floor(r/1260);r=r%1260;z[s++]=129+Math.floor(r/10);r=r%10;z[s++]=48+r;continue}}}if(r===o)r=this.defaultCharSingleByte;if(r<256){z[s++]=r}else if(r<65536){z[s++]=r>>8;z[s++]=r&255}else if(r<16777216){z[s++]=r>>16;z[s++]=r>>8&255;z[s++]=r&255}else{z[s++]=r>>>24;z[s++]=r>>>16&255;z[s++]=r>>>8&255;z[s++]=r&255}}this.seqObj=e;this.leadSurrogate=p;return z.slice(0,s)};DBCSEncoder.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===undefined)return;var b=O.alloc(10),z=0;if(this.seqObj){var p=this.seqObj[n];if(p!==undefined){if(p<256){b[z++]=p}else{b[z++]=p>>8;b[z++]=p&255}}else{}this.seqObj=undefined}if(this.leadSurrogate!==-1){b[z++]=this.defaultCharSingleByte;this.leadSurrogate=-1}return b.slice(0,z)};DBCSEncoder.prototype.findIdx=findIdx;function DBCSDecoder(b,z){this.nodeIdx=0;this.prevBytes=[];this.decodeTables=z.decodeTables;this.decodeTableSeq=z.decodeTableSeq;this.defaultCharUnicode=z.defaultCharUnicode;this.gb18030=z.gb18030}DBCSDecoder.prototype.write=function(b){var z=O.alloc(b.length*2),p=this.nodeIdx,i=this.prevBytes,n=this.prevBytes.length,s=-this.prevBytes.length,a;for(var r=0,q=0;r<b.length;r++){var d=r>=0?b[r]:i[r+n];var a=this.decodeTables[p][d];if(a>=0){}else if(a===o){a=this.defaultCharUnicode.charCodeAt(0);r=s}else if(a===e){if(r>=3){var W=(b[r-3]-129)*12600+(b[r-2]-48)*1260+(b[r-1]-129)*10+(d-48)}else{var W=(i[r-3+n]-129)*12600+((r-2>=0?b[r-2]:i[r-2+n])-48)*1260+((r-1>=0?b[r-1]:i[r-1+n])-129)*10+(d-48)}var f=findIdx(this.gb18030.gbChars,W);a=this.gb18030.uChars[f]+W-this.gb18030.gbChars[f]}else if(a<=t){p=t-a;continue}else if(a<=c){var R=this.decodeTableSeq[c-a];for(var u=0;u<R.length-1;u++){a=R[u];z[q++]=a&255;z[q++]=a>>8}a=R[R.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+a+" at "+p+"/"+d);if(a>=65536){a-=65536;var l=55296|a>>10;z[q++]=l&255;z[q++]=l>>8;a=56320|a&1023}z[q++]=a&255;z[q++]=a>>8;p=0;s=r+1}this.nodeIdx=p;this.prevBytes=s>=0?Array.prototype.slice.call(b,s):i.slice(s+n).concat(Array.prototype.slice.call(b));return z.slice(0,q).toString("ucs2")};DBCSDecoder.prototype.end=function(){var b="";while(this.prevBytes.length>0){b+=this.defaultCharUnicode;var z=this.prevBytes.slice(1);this.prevBytes=[];this.nodeIdx=0;if(z.length>0)b+=this.write(z)}this.prevBytes=[];this.nodeIdx=0;return b};function findIdx(b,z){if(b[0]>z)return-1;var p=0,O=b.length;while(p<O-1){var o=p+(O-p+1>>1);if(b[o]<=z)p=o;else O=o}return p}},136:function(b,z,p){"use strict";b.exports={shiftjis:{type:"_dbcs",table:function(){return p(6560)},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return p(2739)},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return p(8252)}},gbk:{type:"_dbcs",table:function(){return p(8252).concat(p(8116))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return p(8252).concat(p(8116))},gb18030:function(){return p(3175)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return p(1278)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return p(527)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return p(527).concat(p(363))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},9424:function(b,z,p){"use strict";var O=[p(5121),p(3043),p(8109),p(399),p(6748),p(9975),p(5978),p(9210),p(136)];for(var o=0;o<O.length;o++){var e=O[o];for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c))z[c]=e[c]}},5121:function(b,z,p){"use strict";var O=p(5118).Buffer;b.exports={utf8:{type:"_internal",bomAware:true},cesu8:{type:"_internal",bomAware:true},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:true},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:InternalCodec};function InternalCodec(b,z){this.enc=b.encodingName;this.bomAware=b.bomAware;if(this.enc==="base64")this.encoder=InternalEncoderBase64;else if(this.enc==="cesu8"){this.enc="utf8";this.encoder=InternalEncoderCesu8;if(O.from("eda0bdedb2a9","hex").toString()!=="💩"){this.decoder=InternalDecoderCesu8;this.defaultCharUnicode=z.defaultCharUnicode}}}InternalCodec.prototype.encoder=InternalEncoder;InternalCodec.prototype.decoder=InternalDecoder;var o=p(1576).StringDecoder;if(!o.prototype.end)o.prototype.end=function(){};function InternalDecoder(b,z){this.decoder=new o(z.enc)}InternalDecoder.prototype.write=function(b){if(!O.isBuffer(b)){b=O.from(b)}return this.decoder.write(b)};InternalDecoder.prototype.end=function(){return this.decoder.end()};function InternalEncoder(b,z){this.enc=z.enc}InternalEncoder.prototype.write=function(b){return O.from(b,this.enc)};InternalEncoder.prototype.end=function(){};function InternalEncoderBase64(b,z){this.prevStr=""}InternalEncoderBase64.prototype.write=function(b){b=this.prevStr+b;var z=b.length-b.length%4;this.prevStr=b.slice(z);b=b.slice(0,z);return O.from(b,"base64")};InternalEncoderBase64.prototype.end=function(){return O.from(this.prevStr,"base64")};function InternalEncoderCesu8(b,z){}InternalEncoderCesu8.prototype.write=function(b){var z=O.alloc(b.length*3),p=0;for(var o=0;o<b.length;o++){var e=b.charCodeAt(o);if(e<128)z[p++]=e;else if(e<2048){z[p++]=192+(e>>>6);z[p++]=128+(e&63)}else{z[p++]=224+(e>>>12);z[p++]=128+(e>>>6&63);z[p++]=128+(e&63)}}return z.slice(0,p)};InternalEncoderCesu8.prototype.end=function(){};function InternalDecoderCesu8(b,z){this.acc=0;this.contBytes=0;this.accBytes=0;this.defaultCharUnicode=z.defaultCharUnicode}InternalDecoderCesu8.prototype.write=function(b){var z=this.acc,p=this.contBytes,O=this.accBytes,o="";for(var e=0;e<b.length;e++){var c=b[e];if((c&192)!==128){if(p>0){o+=this.defaultCharUnicode;p=0}if(c<128){o+=String.fromCharCode(c)}else if(c<224){z=c&31;p=1;O=1}else if(c<240){z=c&15;p=2;O=1}else{o+=this.defaultCharUnicode}}else{if(p>0){z=z<<6|c&63;p--;O++;if(p===0){if(O===2&&z<128&&z>0)o+=this.defaultCharUnicode;else if(O===3&&z<2048)o+=this.defaultCharUnicode;else o+=String.fromCharCode(z)}}else{o+=this.defaultCharUnicode}}}this.acc=z;this.contBytes=p;this.accBytes=O;return o};InternalDecoderCesu8.prototype.end=function(){var b=0;if(this.contBytes>0)b+=this.defaultCharUnicode;return b}},6748:function(b,z,p){"use strict";var O=p(5118).Buffer;z._sbcs=SBCSCodec;function SBCSCodec(b,z){if(!b)throw new Error("SBCS codec is called without the data.");if(!b.chars||b.chars.length!==128&&b.chars.length!==256)throw new Error("Encoding '"+b.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(b.chars.length===128){var p="";for(var o=0;o<128;o++)p+=String.fromCharCode(o);b.chars=p+b.chars}this.decodeBuf=O.from(b.chars,"ucs2");var e=O.alloc(65536,z.defaultCharSingleByte.charCodeAt(0));for(var o=0;o<b.chars.length;o++)e[b.chars.charCodeAt(o)]=o;this.encodeBuf=e}SBCSCodec.prototype.encoder=SBCSEncoder;SBCSCodec.prototype.decoder=SBCSDecoder;function SBCSEncoder(b,z){this.encodeBuf=z.encodeBuf}SBCSEncoder.prototype.write=function(b){var z=O.alloc(b.length);for(var p=0;p<b.length;p++)z[p]=this.encodeBuf[b.charCodeAt(p)];return z};SBCSEncoder.prototype.end=function(){};function SBCSDecoder(b,z){this.decodeBuf=z.decodeBuf}SBCSDecoder.prototype.write=function(b){var z=this.decodeBuf;var p=O.alloc(b.length*2);var o=0,e=0;for(var c=0;c<b.length;c++){o=b[c]*2;e=c*2;p[e]=z[o];p[e+1]=z[o+1]}return p.toString("ucs2")};SBCSDecoder.prototype.end=function(){}},5978:function(b){"use strict";b.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\ufeff​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0ÚỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸÝỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0ẲẴẪ\b\t\n\v\f\rỶỸỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},9975:function(b){"use strict";b.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},cp720:{type:"_sbcs",chars:"€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■ "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},8109:function(b,z,p){"use strict";var O=p(5118).Buffer;z.utf16be=Utf16BECodec;function Utf16BECodec(){}Utf16BECodec.prototype.encoder=Utf16BEEncoder;Utf16BECodec.prototype.decoder=Utf16BEDecoder;Utf16BECodec.prototype.bomAware=true;function Utf16BEEncoder(){}Utf16BEEncoder.prototype.write=function(b){var z=O.from(b,"ucs2");for(var p=0;p<z.length;p+=2){var o=z[p];z[p]=z[p+1];z[p+1]=o}return z};Utf16BEEncoder.prototype.end=function(){};function Utf16BEDecoder(){this.overflowByte=-1}Utf16BEDecoder.prototype.write=function(b){if(b.length==0)return"";var z=O.alloc(b.length+1),p=0,o=0;if(this.overflowByte!==-1){z[0]=b[0];z[1]=this.overflowByte;p=1;o=2}for(;p<b.length-1;p+=2,o+=2){z[o]=b[p+1];z[o+1]=b[p]}this.overflowByte=p==b.length-1?b[b.length-1]:-1;return z.slice(0,o).toString("ucs2")};Utf16BEDecoder.prototype.end=function(){this.overflowByte=-1};z.utf16=Utf16Codec;function Utf16Codec(b,z){this.iconv=z}Utf16Codec.prototype.encoder=Utf16Encoder;Utf16Codec.prototype.decoder=Utf16Decoder;function Utf16Encoder(b,z){b=b||{};if(b.addBOM===undefined)b.addBOM=true;this.encoder=z.iconv.getEncoder("utf-16le",b)}Utf16Encoder.prototype.write=function(b){return this.encoder.write(b)};Utf16Encoder.prototype.end=function(){return this.encoder.end()};function Utf16Decoder(b,z){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=b||{};this.iconv=z.iconv}Utf16Decoder.prototype.write=function(b){if(!this.decoder){this.initialBufs.push(b);this.initialBufsLen+=b.length;if(this.initialBufsLen<16)return"";var z=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(z,this.options);var p="";for(var O=0;O<this.initialBufs.length;O++)p+=this.decoder.write(this.initialBufs[O]);this.initialBufs.length=this.initialBufsLen=0;return p}return this.decoder.write(b)};Utf16Decoder.prototype.end=function(){if(!this.decoder){var b=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(b,this.options);var z="";for(var p=0;p<this.initialBufs.length;p++)z+=this.decoder.write(this.initialBufs[p]);var O=this.decoder.end();if(O)z+=O;this.initialBufs.length=this.initialBufsLen=0;return z}return this.decoder.end()};function detectEncoding(b,z){var p=[];var O=0;var o=0,e=0;M:for(var c=0;c<b.length;c++){var t=b[c];for(var i=0;i<t.length;i++){p.push(t[i]);if(p.length===2){if(O===0){if(p[0]===255&&p[1]===254)return"utf-16le";if(p[0]===254&&p[1]===255)return"utf-16be"}if(p[0]===0&&p[1]!==0)e++;if(p[0]!==0&&p[1]===0)o++;p.length=0;O++;if(O>=100){break M}}}}if(e>o)return"utf-16be";if(e<o)return"utf-16le";return z||"utf-16le"}},3043:function(b,z,p){"use strict";var O=p(5118).Buffer;z._utf32=Utf32Codec;function Utf32Codec(b,z){this.iconv=z;this.bomAware=true;this.isLE=b.isLE}z.utf32le={type:"_utf32",isLE:true};z.utf32be={type:"_utf32",isLE:false};z.ucs4le="utf32le";z.ucs4be="utf32be";Utf32Codec.prototype.encoder=Utf32Encoder;Utf32Codec.prototype.decoder=Utf32Decoder;function Utf32Encoder(b,z){this.isLE=z.isLE;this.highSurrogate=0}Utf32Encoder.prototype.write=function(b){var z=O.from(b,"ucs2");var p=O.alloc(z.length*2);var o=this.isLE?p.writeUInt32LE:p.writeUInt32BE;var e=0;for(var c=0;c<z.length;c+=2){var t=z.readUInt16LE(c);var i=55296<=t&&t<56320;var n=56320<=t&&t<57344;if(this.highSurrogate){if(i||!n){o.call(p,this.highSurrogate,e);e+=4}else{var s=(this.highSurrogate-55296<<10|t-56320)+65536;o.call(p,s,e);e+=4;this.highSurrogate=0;continue}}if(i)this.highSurrogate=t;else{o.call(p,t,e);e+=4;this.highSurrogate=0}}if(e<p.length)p=p.slice(0,e);return p};Utf32Encoder.prototype.end=function(){if(!this.highSurrogate)return;var b=O.alloc(4);if(this.isLE)b.writeUInt32LE(this.highSurrogate,0);else b.writeUInt32BE(this.highSurrogate,0);this.highSurrogate=0;return b};function Utf32Decoder(b,z){this.isLE=z.isLE;this.badChar=z.iconv.defaultCharUnicode.charCodeAt(0);this.overflow=[]}Utf32Decoder.prototype.write=function(b){if(b.length===0)return"";var z=0;var p=0;var o=O.alloc(b.length+4);var e=0;var c=this.isLE;var t=this.overflow;var i=this.badChar;if(t.length>0){for(;z<b.length&&t.length<4;z++)t.push(b[z]);if(t.length===4){if(c){p=t[z]|t[z+1]<<8|t[z+2]<<16|t[z+3]<<24}else{p=t[z+3]|t[z+2]<<8|t[z+1]<<16|t[z]<<24}t.length=0;e=_writeCodepoint(o,e,p,i)}}for(;z<b.length-3;z+=4){if(c){p=b[z]|b[z+1]<<8|b[z+2]<<16|b[z+3]<<24}else{p=b[z+3]|b[z+2]<<8|b[z+1]<<16|b[z]<<24}e=_writeCodepoint(o,e,p,i)}for(;z<b.length;z++){t.push(b[z])}return o.slice(0,e).toString("ucs2")};function _writeCodepoint(b,z,p,O){if(p<0||p>1114111){p=O}if(p>=65536){p-=65536;var o=55296|p>>10;b[z++]=o&255;b[z++]=o>>8;var p=56320|p&1023}b[z++]=p&255;b[z++]=p>>8;return z}Utf32Decoder.prototype.end=function(){this.overflow.length=0};z.utf32=Utf32AutoCodec;z.ucs4="utf32";function Utf32AutoCodec(b,z){this.iconv=z}Utf32AutoCodec.prototype.encoder=Utf32AutoEncoder;Utf32AutoCodec.prototype.decoder=Utf32AutoDecoder;function Utf32AutoEncoder(b,z){b=b||{};if(b.addBOM===undefined)b.addBOM=true;this.encoder=z.iconv.getEncoder(b.defaultEncoding||"utf-32le",b)}Utf32AutoEncoder.prototype.write=function(b){return this.encoder.write(b)};Utf32AutoEncoder.prototype.end=function(){return this.encoder.end()};function Utf32AutoDecoder(b,z){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=b||{};this.iconv=z.iconv}Utf32AutoDecoder.prototype.write=function(b){if(!this.decoder){this.initialBufs.push(b);this.initialBufsLen+=b.length;if(this.initialBufsLen<32)return"";var z=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(z,this.options);var p="";for(var O=0;O<this.initialBufs.length;O++)p+=this.decoder.write(this.initialBufs[O]);this.initialBufs.length=this.initialBufsLen=0;return p}return this.decoder.write(b)};Utf32AutoDecoder.prototype.end=function(){if(!this.decoder){var b=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(b,this.options);var z="";for(var p=0;p<this.initialBufs.length;p++)z+=this.decoder.write(this.initialBufs[p]);var O=this.decoder.end();if(O)z+=O;this.initialBufs.length=this.initialBufsLen=0;return z}return this.decoder.end()};function detectEncoding(b,z){var p=[];var O=0;var o=0,e=0;var c=0,t=0;M:for(var i=0;i<b.length;i++){var n=b[i];for(var s=0;s<n.length;s++){p.push(n[s]);if(p.length===4){if(O===0){if(p[0]===255&&p[1]===254&&p[2]===0&&p[3]===0){return"utf-32le"}if(p[0]===0&&p[1]===0&&p[2]===254&&p[3]===255){return"utf-32be"}}if(p[0]!==0||p[1]>16)e++;if(p[3]!==0||p[2]>16)o++;if(p[0]===0&&p[1]===0&&(p[2]!==0||p[3]!==0))t++;if((p[0]!==0||p[1]!==0)&&p[2]===0&&p[3]===0)c++;p.length=0;O++;if(O>=100){break M}}}}if(t-e>c-o)return"utf-32be";if(t-e<c-o)return"utf-32le";return z||"utf-32le"}},399:function(b,z,p){"use strict";var O=p(5118).Buffer;z.utf7=Utf7Codec;z.unicode11utf7="utf7";function Utf7Codec(b,z){this.iconv=z}Utf7Codec.prototype.encoder=Utf7Encoder;Utf7Codec.prototype.decoder=Utf7Decoder;Utf7Codec.prototype.bomAware=true;var o=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Utf7Encoder(b,z){this.iconv=z.iconv}Utf7Encoder.prototype.write=function(b){return O.from(b.replace(o,function(b){return"+"+(b==="+"?"":this.iconv.encode(b,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Utf7Encoder.prototype.end=function(){};function Utf7Decoder(b,z){this.iconv=z.iconv;this.inBase64=false;this.base64Accum=""}var e=/[A-Za-z0-9\/+]/;var c=[];for(var t=0;t<256;t++)c[t]=e.test(String.fromCharCode(t));var i="+".charCodeAt(0),n="-".charCodeAt(0),s="&".charCodeAt(0);Utf7Decoder.prototype.write=function(b){var z="",p=0,o=this.inBase64,e=this.base64Accum;for(var t=0;t<b.length;t++){if(!o){if(b[t]==i){z+=this.iconv.decode(b.slice(p,t),"ascii");p=t+1;o=true}}else{if(!c[b[t]]){if(t==p&&b[t]==n){z+="+"}else{var s=e+this.iconv.decode(b.slice(p,t),"ascii");z+=this.iconv.decode(O.from(s,"base64"),"utf16-be")}if(b[t]!=n)t--;p=t+1;o=false;e=""}}}if(!o){z+=this.iconv.decode(b.slice(p),"ascii")}else{var s=e+this.iconv.decode(b.slice(p),"ascii");var a=s.length-s.length%8;e=s.slice(a);s=s.slice(0,a);z+=this.iconv.decode(O.from(s,"base64"),"utf16-be")}this.inBase64=o;this.base64Accum=e;return z};Utf7Decoder.prototype.end=function(){var b="";if(this.inBase64&&this.base64Accum.length>0)b=this.iconv.decode(O.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return b};z.utf7imap=Utf7IMAPCodec;function Utf7IMAPCodec(b,z){this.iconv=z}Utf7IMAPCodec.prototype.encoder=Utf7IMAPEncoder;Utf7IMAPCodec.prototype.decoder=Utf7IMAPDecoder;Utf7IMAPCodec.prototype.bomAware=true;function Utf7IMAPEncoder(b,z){this.iconv=z.iconv;this.inBase64=false;this.base64Accum=O.alloc(6);this.base64AccumIdx=0}Utf7IMAPEncoder.prototype.write=function(b){var z=this.inBase64,p=this.base64Accum,o=this.base64AccumIdx,e=O.alloc(b.length*5+10),c=0;for(var t=0;t<b.length;t++){var i=b.charCodeAt(t);if(32<=i&&i<=126){if(z){if(o>0){c+=e.write(p.slice(0,o).toString("base64").replace(/\//g,",").replace(/=+$/,""),c);o=0}e[c++]=n;z=false}if(!z){e[c++]=i;if(i===s)e[c++]=n}}else{if(!z){e[c++]=s;z=true}if(z){p[o++]=i>>8;p[o++]=i&255;if(o==p.length){c+=e.write(p.toString("base64").replace(/\//g,","),c);o=0}}}}this.inBase64=z;this.base64AccumIdx=o;return e.slice(0,c)};Utf7IMAPEncoder.prototype.end=function(){var b=O.alloc(10),z=0;if(this.inBase64){if(this.base64AccumIdx>0){z+=b.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),z);this.base64AccumIdx=0}b[z++]=n;this.inBase64=false}return b.slice(0,z)};function Utf7IMAPDecoder(b,z){this.iconv=z.iconv;this.inBase64=false;this.base64Accum=""}var a=c.slice();a[",".charCodeAt(0)]=true;Utf7IMAPDecoder.prototype.write=function(b){var z="",p=0,o=this.inBase64,e=this.base64Accum;for(var c=0;c<b.length;c++){if(!o){if(b[c]==s){z+=this.iconv.decode(b.slice(p,c),"ascii");p=c+1;o=true}}else{if(!a[b[c]]){if(c==p&&b[c]==n){z+="&"}else{var t=e+this.iconv.decode(b.slice(p,c),"ascii").replace(/,/g,"/");z+=this.iconv.decode(O.from(t,"base64"),"utf16-be")}if(b[c]!=n)c--;p=c+1;o=false;e=""}}}if(!o){z+=this.iconv.decode(b.slice(p),"ascii")}else{var t=e+this.iconv.decode(b.slice(p),"ascii").replace(/,/g,"/");var i=t.length-t.length%8;e=t.slice(i);t=t.slice(0,i);z+=this.iconv.decode(O.from(t,"base64"),"utf16-be")}this.inBase64=o;this.base64Accum=e;return z};Utf7IMAPDecoder.prototype.end=function(){var b="";if(this.inBase64&&this.base64Accum.length>0)b=this.iconv.decode(O.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return b}},5487:function(b,z){"use strict";var p="\ufeff";z.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(b,z){this.encoder=b;this.addBOM=true}PrependBOMWrapper.prototype.write=function(b){if(this.addBOM){b=p+b;this.addBOM=false}return this.encoder.write(b)};PrependBOMWrapper.prototype.end=function(){return this.encoder.end()};z.StripBOM=StripBOMWrapper;function StripBOMWrapper(b,z){this.decoder=b;this.pass=false;this.options=z||{}}StripBOMWrapper.prototype.write=function(b){var z=this.decoder.write(b);if(this.pass||!z)return z;if(z[0]===p){z=z.slice(1);if(typeof this.options.stripBOM==="function")this.options.stripBOM()}this.pass=true;return z};StripBOMWrapper.prototype.end=function(){return this.decoder.end()}},1401:function(b,z,p){"use strict";var O=p(5118).Buffer;var o=p(5487),e=b.exports;e.encodings=null;e.defaultCharUnicode="�";e.defaultCharSingleByte="?";e.encode=function encode(b,z,p){b=""+(b||"");var o=e.getEncoder(z,p);var c=o.write(b);var t=o.end();return t&&t.length>0?O.concat([c,t]):c};e.decode=function decode(b,z,p){if(typeof b==="string"){if(!e.skipDecodeWarning){console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");e.skipDecodeWarning=true}b=O.from(""+(b||""),"binary")}var o=e.getDecoder(z,p);var c=o.write(b);var t=o.end();return t?c+t:c};e.encodingExists=function encodingExists(b){try{e.getCodec(b);return true}catch(b){return false}};e.toEncoding=e.encode;e.fromEncoding=e.decode;e._codecDataCache={};e.getCodec=function getCodec(b){if(!e.encodings)e.encodings=p(9424);var z=e._canonicalizeEncoding(b);var O={};while(true){var o=e._codecDataCache[z];if(o)return o;var c=e.encodings[z];switch(typeof c){case"string":z=c;break;case"object":for(var t in c)O[t]=c[t];if(!O.encodingName)O.encodingName=z;z=c.type;break;case"function":if(!O.encodingName)O.encodingName=z;o=new c(O,e);e._codecDataCache[O.encodingName]=o;return o;default:throw new Error("Encoding not recognized: '"+b+"' (searched as: '"+z+"')")}}};e._canonicalizeEncoding=function(b){return(""+b).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};e.getEncoder=function getEncoder(b,z){var p=e.getCodec(b),O=new p.encoder(z,p);if(p.bomAware&&z&&z.addBOM)O=new o.PrependBOM(O,z);return O};e.getDecoder=function getDecoder(b,z){var p=e.getCodec(b),O=new p.decoder(z,p);if(p.bomAware&&!(z&&z.stripBOM===false))O=new o.StripBOM(O,z);return O};e.enableStreamingAPI=function enableStreamingAPI(b){if(e.supportsStreams)return;var z=p(1053)(b);e.IconvLiteEncoderStream=z.IconvLiteEncoderStream;e.IconvLiteDecoderStream=z.IconvLiteDecoderStream;e.encodeStream=function encodeStream(b,z){return new e.IconvLiteEncoderStream(e.getEncoder(b,z),z)};e.decodeStream=function decodeStream(b,z){return new e.IconvLiteDecoderStream(e.getDecoder(b,z),z)};e.supportsStreams=true};var c;try{c=p(2781)}catch(b){}if(c&&c.Transform){e.enableStreamingAPI(c)}else{e.encodeStream=e.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}}if(false){}},1053:function(b,z,p){"use strict";var O=p(5118).Buffer;b.exports=function(b){var z=b.Transform;function IconvLiteEncoderStream(b,p){this.conv=b;p=p||{};p.decodeStrings=false;z.call(this,p)}IconvLiteEncoderStream.prototype=Object.create(z.prototype,{constructor:{value:IconvLiteEncoderStream}});IconvLiteEncoderStream.prototype._transform=function(b,z,p){if(typeof b!="string")return p(new Error("Iconv encoding stream needs strings as its input."));try{var O=this.conv.write(b);if(O&&O.length)this.push(O);p()}catch(b){p(b)}};IconvLiteEncoderStream.prototype._flush=function(b){try{var z=this.conv.end();if(z&&z.length)this.push(z);b()}catch(z){b(z)}};IconvLiteEncoderStream.prototype.collect=function(b){var z=[];this.on("error",b);this.on("data",(function(b){z.push(b)}));this.on("end",(function(){b(null,O.concat(z))}));return this};function IconvLiteDecoderStream(b,p){this.conv=b;p=p||{};p.encoding=this.encoding="utf8";z.call(this,p)}IconvLiteDecoderStream.prototype=Object.create(z.prototype,{constructor:{value:IconvLiteDecoderStream}});IconvLiteDecoderStream.prototype._transform=function(b,z,p){if(!O.isBuffer(b)&&!(b instanceof Uint8Array))return p(new Error("Iconv decoding stream needs buffers as its input."));try{var o=this.conv.write(b);if(o&&o.length)this.push(o,this.encoding);p()}catch(b){p(b)}};IconvLiteDecoderStream.prototype._flush=function(b){try{var z=this.conv.end();if(z&&z.length)this.push(z,this.encoding);b()}catch(z){b(z)}};IconvLiteDecoderStream.prototype.collect=function(b){var z="";this.on("error",b);this.on("data",(function(b){z+=b}));this.on("end",(function(){b(null,z)}));return this};return{IconvLiteEncoderStream:IconvLiteEncoderStream,IconvLiteDecoderStream:IconvLiteDecoderStream}}},4719:function(b,z,p){"use strict";const O=p(8850);p(3229)(O);const o=p(2939);const e=p(4673);const c=p(837);const t=p(9362);const i=p(9967);const n=p(1859);b.exports.version=p(8850).version;b.exports.SqlError=p(1450).SqlError;b.exports.defaultOptions=function defaultOptions(b){const z=new t(b);const p={};for(const[b,O]of Object.entries(z)){if(!b.startsWith("_")){p[b]=O}}return p};b.exports.createConnection=function createConnection(b){try{const z=new t(b);return new o(z).connect()}catch(b){return Promise.reject(b)}};b.exports.createPool=function createPool(b){const z=new i(b);const p=new e(z,false);p.initialize();return p};b.exports.createPoolCluster=function createPoolCluster(b){const z=new n(b);return new c(z)}},7936:function(b,z,p){var O=b.exports=p(6345);O.tz.load(p(1128))},6345:function(b,z,p){
1
+ (function(){var b={2342:function(b){"use strict";function Denque(b,z){var z=z||{};this._capacity=z.capacity;this._head=0;this._tail=0;if(Array.isArray(b)){this._fromArray(b)}else{this._capacityMask=3;this._list=new Array(4)}}Denque.prototype.peekAt=function peekAt(b){var z=b;if(z!==(z|0)){return void 0}var p=this.size();if(z>=p||z<-p)return undefined;if(z<0)z+=p;z=this._head+z&this._capacityMask;return this._list[z]};Denque.prototype.get=function get(b){return this.peekAt(b)};Denque.prototype.peek=function peek(){if(this._head===this._tail)return undefined;return this._list[this._head]};Denque.prototype.peekFront=function peekFront(){return this.peek()};Denque.prototype.peekBack=function peekBack(){return this.peekAt(-1)};Object.defineProperty(Denque.prototype,"length",{get:function length(){return this.size()}});Denque.prototype.size=function size(){if(this._head===this._tail)return 0;if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)};Denque.prototype.unshift=function unshift(b){if(arguments.length===0)return this.size();var z=this._list.length;this._head=this._head-1+z&this._capacityMask;this._list[this._head]=b;if(this._tail===this._head)this._growArray();if(this._capacity&&this.size()>this._capacity)this.pop();if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)};Denque.prototype.shift=function shift(){var b=this._head;if(b===this._tail)return undefined;var z=this._list[b];this._list[b]=undefined;this._head=b+1&this._capacityMask;if(b<2&&this._tail>1e4&&this._tail<=this._list.length>>>2)this._shrinkArray();return z};Denque.prototype.push=function push(b){if(arguments.length===0)return this.size();var z=this._tail;this._list[z]=b;this._tail=z+1&this._capacityMask;if(this._tail===this._head){this._growArray()}if(this._capacity&&this.size()>this._capacity){this.shift()}if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)};Denque.prototype.pop=function pop(){var b=this._tail;if(b===this._head)return undefined;var z=this._list.length;this._tail=b-1+z&this._capacityMask;var p=this._list[this._tail];this._list[this._tail]=undefined;if(this._head<2&&b>1e4&&b<=z>>>2)this._shrinkArray();return p};Denque.prototype.removeOne=function removeOne(b){var z=b;if(z!==(z|0)){return void 0}if(this._head===this._tail)return void 0;var p=this.size();var O=this._list.length;if(z>=p||z<-p)return void 0;if(z<0)z+=p;z=this._head+z&this._capacityMask;var o=this._list[z];var e;if(b<p/2){for(e=b;e>0;e--){this._list[z]=this._list[z=z-1+O&this._capacityMask]}this._list[z]=void 0;this._head=this._head+1+O&this._capacityMask}else{for(e=p-1-b;e>0;e--){this._list[z]=this._list[z=z+1+O&this._capacityMask]}this._list[z]=void 0;this._tail=this._tail-1+O&this._capacityMask}return o};Denque.prototype.remove=function remove(b,z){var p=b;var O;var o=z;if(p!==(p|0)){return void 0}if(this._head===this._tail)return void 0;var e=this.size();var c=this._list.length;if(p>=e||p<-e||z<1)return void 0;if(p<0)p+=e;if(z===1||!z){O=new Array(1);O[0]=this.removeOne(p);return O}if(p===0&&p+z>=e){O=this.toArray();this.clear();return O}if(p+z>e)z=e-p;var t;O=new Array(z);for(t=0;t<z;t++){O[t]=this._list[this._head+p+t&this._capacityMask]}p=this._head+p&this._capacityMask;if(b+z===e){this._tail=this._tail-z+c&this._capacityMask;for(t=z;t>0;t--){this._list[p=p+1+c&this._capacityMask]=void 0}return O}if(b===0){this._head=this._head+z+c&this._capacityMask;for(t=z-1;t>0;t--){this._list[p=p+1+c&this._capacityMask]=void 0}return O}if(p<e/2){this._head=this._head+b+z+c&this._capacityMask;for(t=b;t>0;t--){this.unshift(this._list[p=p-1+c&this._capacityMask])}p=this._head-1+c&this._capacityMask;while(o>0){this._list[p=p-1+c&this._capacityMask]=void 0;o--}if(b<0)this._tail=p}else{this._tail=p;p=p+z+c&this._capacityMask;for(t=e-(z+b);t>0;t--){this.push(this._list[p++])}p=this._tail;while(o>0){this._list[p=p+1+c&this._capacityMask]=void 0;o--}}if(this._head<2&&this._tail>1e4&&this._tail<=c>>>2)this._shrinkArray();return O};Denque.prototype.splice=function splice(b,z){var p=b;if(p!==(p|0)){return void 0}var O=this.size();if(p<0)p+=O;if(p>O)return void 0;if(arguments.length>2){var o;var e;var c;var t=arguments.length;var i=this._list.length;var n=2;if(!O||p<O/2){e=new Array(p);for(o=0;o<p;o++){e[o]=this._list[this._head+o&this._capacityMask]}if(z===0){c=[];if(p>0){this._head=this._head+p+i&this._capacityMask}}else{c=this.remove(p,z);this._head=this._head+p+i&this._capacityMask}while(t>n){this.unshift(arguments[--t])}for(o=p;o>0;o--){this.unshift(e[o-1])}}else{e=new Array(O-(p+z));var s=e.length;for(o=0;o<s;o++){e[o]=this._list[this._head+p+z+o&this._capacityMask]}if(z===0){c=[];if(p!=O){this._tail=this._head+p+i&this._capacityMask}}else{c=this.remove(p,z);this._tail=this._tail-s+i&this._capacityMask}while(n<t){this.push(arguments[n++])}for(o=0;o<s;o++){this.push(e[o])}}return c}else{return this.remove(p,z)}};Denque.prototype.clear=function clear(){this._list=new Array(this._list.length);this._head=0;this._tail=0};Denque.prototype.isEmpty=function isEmpty(){return this._head===this._tail};Denque.prototype.toArray=function toArray(){return this._copyArray(false)};Denque.prototype._fromArray=function _fromArray(b){var z=b.length;var p=this._nextPowerOf2(z);this._list=new Array(p);this._capacityMask=p-1;this._tail=z;for(var O=0;O<z;O++)this._list[O]=b[O]};Denque.prototype._copyArray=function _copyArray(b,z){var p=this._list;var O=p.length;var o=this.length;z=z|o;if(z==o&&this._head<this._tail){return this._list.slice(this._head,this._tail)}var e=new Array(z);var c=0;var t;if(b||this._head>this._tail){for(t=this._head;t<O;t++)e[c++]=p[t];for(t=0;t<this._tail;t++)e[c++]=p[t]}else{for(t=this._head;t<this._tail;t++)e[c++]=p[t]}return e};Denque.prototype._growArray=function _growArray(){if(this._head!=0){var b=this._copyArray(true,this._list.length<<1);this._tail=this._list.length;this._head=0;this._list=b}else{this._tail=this._list.length;this._list.length<<=1}this._capacityMask=this._capacityMask<<1|1};Denque.prototype._shrinkArray=function _shrinkArray(){this._list.length>>>=1;this._capacityMask>>>=1};Denque.prototype._nextPowerOf2=function _nextPowerOf2(b){var z=Math.log(b)/Math.log(2);var p=1<<z+1;return Math.max(p,4)};b.exports=Denque},89:function(b,z,p){"use strict";const O=p(5436);const o=p(1450);const e=p(2491);const c=p(5157);class BatchBulk extends O{constructor(b,z,p,O,o,e){super(b,z,p,O,o,e);this.onPacketReceive=this.readPrepareResultPacket}start(b,z,p){this.sending=true;this.info=p;this.values=this.initialValues;if(this.opts.timeout){const b=o.createError("Cannot use timeout for Batch statement",this.sql,false,p,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,p);return}let O=this.sql;if(this.opts.namedPlaceholders){const b=e.searchPlaceholder(this.sql,p,this.initialValues,this.displaySql.bind(this));O=b.sql;this.values=b.values}if(!this.validateParameters(p)){this.sending=false;return}this.out=b;this.packet=new c(this.opts,b,this.values[0]);b.startPacket(this);b.writeInt8(22);b.writeString(O);b.flushBuffer(true);if(this.opts.pipelining){b.startPacket(this);this.valueIdx=0;this.sendQueries()}else{this.out=b}}sendQueries(){let b=false;while(!b&&this.sending&&this.valueIdx<this.values.length){this.valueRow=this.values[this.valueIdx++];const z=this.valueRow.length;for(let p=0;p<z;p++){const z=this.valueRow[p];if(z===null){b=this.packet.writeInt8(1)||b;continue}b=this.writeParam(this.packet,z,this.opts,this.info)||b}const p=this.valueIdx===this.values.length;b=this.packet.mark(p,p?null:this.values[this.valueIdx])||b}if(this.valueIdx<this.values.length&&!this.packet.haveErrorResponse){setImmediate(this.sendQueries.bind(this))}else{if(this.sending&&this.valueIdx===this.values.length)this.emit("send_end");this.sending=false}}displaySql(){if(this.opts&&this.initialValues){if(this.sql.length>this.opts.debugLen){return this.sql.substring(0,this.opts.debugLen)+"..."}let b=this.sql+" - parameters:";b+="[";for(let z=0;z<this.initialValues.length;z++){if(z!==0)b+=",";let p=this.initialValues[z];b=this.logParameters(b,p);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}b+="]";return b}return this.sql+" - parameters:[]"}success(b){this.packet.waitingResponseNo--;if(!this.opts.pipelining&&this.packet.statementId===-1){this.packet.statementId=this.statementId;this.out.startPacket(this);this.valueIdx=0;this.sendQueries();this._responseIndex++;this.onPacketReceive=this.readResponsePacket;return}if(!this.sending&&this.packet.waitingResponseNo===0){if(!this.firstError||!this.firstError.fatal){this.sequenceNo=-1;this.compressSequenceNo=-1;this.out.startPacket(this);this.out.writeInt8(25);this.out.writeInt32(this.statementId);this.out.flushBuffer(true)}this.sending=false;this.emit("send_end");if(this.packet.haveErrorResponse){this.packet=null;this.resolve=null;this.onPacketReceive=null;this._columns=null;this._rows=null;process.nextTick(this.reject,this.firstError);this.reject=null;this.emit("end",this.firstError)}else{this.packet=null;let b=0;this._rows.forEach((z=>{b+=z.affectedRows}));const z={affectedRows:b,insertId:this._rows[0].insertId,warningStatus:this._rows[this._rows.length-1].warningStatus};this.successEnd(z);this._columns=null;this._rows=null}return}if(!this.packet.haveErrorResponse){this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}throwError(b,z){this.packet.waitingResponseNo--;this.sending=false;if(this.packet&&!this.packet.haveErrorResponse){if(b.fatal){this.packet.waitingResponseNo=0}if(this.stack){b=o.createError(b.message,this.sql,b.fatal,z,b.sqlState,b.errno,this.stack,false)}this.firstError=b;this.packet.endedWithError()}if(!this.sending&&this.packet.waitingResponseNo===0){this.resolve=null;if(!b.fatal&&this.statementId){this.sequenceNo=-1;this.compressSequenceNo=-1;this.out.startPacket(this);this.out.writeInt8(25);this.out.writeInt32(this.statementId);this.out.flushBuffer(true)}this.emit("send_end");process.nextTick(this.reject,this.firstError);this.reject=null;this.onPacketReceive=null;this.emit("end",this.firstError)}else{this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}validateParameters(b){for(let z=0;z<this.values.length;z++){if(!Array.isArray(this.values[z]))this.values[z]=[this.values[z]];for(let p=0;p<this.values[z].length;p++){if(this.values[z][p]===undefined){this.emit("send_end");this.throwNewError("Parameter at position "+(p+1)+" is undefined for values "+z+"\n"+this.displaySql(),false,b,"HY000",o.ER_PARAMETER_UNDEFINED);return false}}}return true}}b.exports=BatchBulk},5891:function(b,z,p){"use strict";const O=p(8662);const o=p(1450);const e=p(2491);const c=p(9240);const t=39;class BatchRewrite extends O{constructor(b,z,p,O,o,e){super(b,z,p,O,o,e)}start(b,z,p){this.sending=true;this.info=p;if(this.opts.timeout){const b=o.createError("Cannot use timeout for Batch statement",this.sql,false,p,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,p);return}if(this.initialValues.length===0)this.initialValues=[[]];if(this.opts.namedPlaceholders){this.parseResults=e.splitRewritableNamedParameterQuery(this.sql,this.initialValues);this.values=this.parseResults.values}else{this.parseResults=e.splitRewritableQuery(this.sql);this.values=this.initialValues;if(!this.validateParameters(p)){this.sending=false;return}}b.startPacket(this);this.packet=new c(this.opts.maxAllowedPacket,b,this.parseResults.partList[0],this.parseResults.partList[this.parseResults.partList.length-1]);this.onPacketReceive=this.readResponsePacket;this.valueIdx=0;this.sendQueries()}sendQueries(){let b=false;while(!b&&this.sending&&this.valueIdx<this.values.length){this.valueRow=this.values[this.valueIdx++];const z=this.parseResults.partList.length-3;for(let p=0;p<z;p++){const z=this.valueRow[p];b=this.packet.writeString(this.parseResults.partList[p+1])||b;if(z===null){b=this.packet.writeStringAscii("NULL")||b;continue}if(typeof z==="object"&&typeof z.pipe==="function"&&typeof z.read==="function"){this.registerStreamSendEvent(this.packet,this.info);this.currentParam=p;this.packet.writeInt8(t);z.on("data",function(b){this.packet.writeBufferEscape(b)}.bind(this));z.on("end",function(){this.packet.writeInt8(t);this.currentParam++;this.paramWritten()}.bind(this));return}else{b=this.writeParam(this.packet,z,this.opts,this.info)||b}}this.packet.writeString(this.parseResults.partList[this.parseResults.partList.length-2]);this.packet.mark(!this.parseResults.reWritable||this.valueIdx===this.values.length)}if(this.valueIdx<this.values.length&&!this.packet.haveErrorResponse){setImmediate(this.sendQueries.bind(this))}else{if(this.sending&&this.valueIdx===this.values.length)this.emit("send_end");this.sending=false}}displaySql(){if(this.opts&&this.initialValues){if(this.sql.length>this.opts.debugLen){return"sql: "+this.sql.substring(0,this.opts.debugLen)+"..."}let b="sql: "+this.sql+" - parameters:";b+="[";for(let z=0;z<this.initialValues.length;z++){if(z!==0)b+=",";let p=this.initialValues[z];b=this.logParameters(b,p);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}b+="]";return b}return"sql: "+this.sql+" - parameters:[]"}success(b){this.packet.waitingResponseNo--;if(this.packet.haveErrorResponse){if(!this.sending&&this.packet.waitingResponseNo===0){this.packet=null;this.onPacketReceive=null;this.resolve=null;this._columns=null;this._rows=null;process.nextTick(this.reject,this.firstError);this.reject=null;this.emit("end",this.firstError)}}else{if(!this.sending&&this.packet.waitingResponseNo===0){if(this.parseResults.reWritable){this.packet=null;let b=0;this._rows.forEach((z=>{b+=z.affectedRows}));const z={affectedRows:b,insertId:this._rows[0].insertId,warningStatus:this._rows[this._rows.length-1].warningStatus};this.successEnd(z);return}else{this.successEnd(this._rows)}this._columns=null;this._rows=null;return}this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}throwError(b,z){this.packet.waitingResponseNo--;this.sending=false;if(this.packet&&!this.packet.haveErrorResponse){if(b.fatal){this.packet.waitingResponseNo=0}if(this.stack){b=o.createError(b.message,this.sql,b.fatal,z,b.sqlState,b.errno,this.stack,false)}this.firstError=b;this.packet.endedWithError()}if(!this.sending&&this.packet.waitingResponseNo===0){this.packet=null;this.onPacketReceive=null;this.resolve=null;process.nextTick(this.reject,this.firstError);this.reject=null;this.emit("end",this.firstError)}else{this._responseIndex++;this.onPacketReceive=this.readResponsePacket}}validateParameters(b){for(let z=0;z<this.values.length;z++){let p=this.values[z];if(!Array.isArray(p)){p=[p];this.values[z]=p}if(this.parseResults.partList.length-3>p.length){this.emit("send_end");this.throwNewError("Parameter at position "+p.length+" is not set for values "+z+"\n"+this.displaySql(),false,b,"HY000",o.ER_MISSING_PARAMETER);return false}for(let O=0;O<this.parseResults.partList.length-3;O++){if(p[O]===undefined){this.emit("send_end");this.throwNewError("Parameter at position "+(O+1)+" is undefined for values "+z+"\n"+this.displaySql(),false,b,"HY000",o.ER_PARAMETER_UNDEFINED);return false}}}return true}registerStreamSendEvent(b,z){this.paramWritten=function(){let p=false;while(!p){if(this.packet.haveErrorResponse){this.sending=false;this.emit("send_end");return}if(this.currentParam===this.valueRow.length){p=b.writeString(this.parseResults.partList[this.parseResults.partList.length-2])||p;p=b.mark(!this.parseResults.reWritable||this.valueIdx===this.values.length)||p;if(this.valueIdx<this.values.length){this.valueRow=this.values[this.valueIdx++];this.currentParam=0}else{this.sending=false;this.emit("send_end");return}}p=b.writeString(this.parseResults.partList[this.currentParam+1])||p;const O=this.valueRow[this.currentParam];if(O===null){p=b.writeStringAscii("NULL")||p;this.currentParam++;continue}if(typeof O==="object"&&typeof O.pipe==="function"&&typeof O.read==="function"){p=b.writeInt8(t)||p;O.once("end",function(){b.writeInt8(t);this.currentParam++;this.paramWritten()}.bind(this));O.on("data",(function(z){b.writeBufferEscape(z)}));return}p=this.writeParam(b,O,this.opts,z)||p;this.currentParam++}if(this.sending)setImmediate(this.paramWritten.bind(this))}.bind(this)}}b.exports=BatchRewrite},6044:function(b,z,p){"use strict";const O=p(1401);const o=p(9248);const e=p(4980);const c=p(1956);const t=p(2055);const i=p(5427);class ChangeUser extends i{constructor(b,z,p,O){super(z,p,(()=>{}),O);this.opts=b}start(b,z,O){this.configAssign(z,this.opts);let t;const i=Array.isArray(this.opts.password)?this.opts.password[0]:this.opts.password;switch(O.defaultPluginName){case"mysql_native_password":case"":t=c.encryptPassword(i,O.seed,"sha1");break;case"client_ed25519":t=e.encryptPassword(i,O.seed);break;default:t=Buffer.alloc(0);break}b.startPacket(this);b.writeInt8(17);b.writeString(this.opts.user||"");b.writeInt8(0);if(O.serverCapabilities&o.SECURE_CONNECTION){b.writeInt8(t.length);b.writeBuffer(t,0,t.length)}else{b.writeBuffer(t,0,t.length);b.writeInt8(0)}if(O.clientCapabilities&o.CONNECT_WITH_DB){b.writeString(this.opts.database);b.writeInt8(0);O.database=this.opts.database}b.writeInt16(this.opts.collation.index);if(O.clientCapabilities&o.PLUGIN_AUTH){b.writeString(O.defaultPluginName);b.writeInt8(0)}if(O.clientCapabilities&o.CONNECT_ATTRS){b.writeInt8(252);let O=b.pos;b.writeInt16(0);const o=this.opts.collation.charset;writeParam(b,"_client_name",o);writeParam(b,"MariaDB connector/Node",o);let e=p(8850);writeParam(b,"_client_version",o);writeParam(b,e.version,o);writeParam(b,"_node_version",o);writeParam(b,process.versions.node,o);if(z.connectAttributes!==true){let z=Object.keys(this.opts.connectAttributes);for(let p=0;p<z.length;++p){writeParam(b,z[p],o);writeParam(b,this.opts.connectAttributes[z[p]],o)}}b.writeInt16AtPos(O)}b.flushBuffer(true);this.onPacketReceive=this.handshakeResult}configAssign(b,z){if(!z){this.opts=b;return}this.opts.database=z.database?z.database:b.database;this.opts.connectAttributes=z.connectAttributes?z.connectAttributes:b.connectAttributes;if(z.charset&&typeof z.charset==="string"){this.opts.collation=t.fromCharset(z.charset.toLowerCase());if(this.opts.collation===undefined){this.opts.collation=t.fromName(z.charset.toUpperCase());if(this.opts.collation!==undefined){console.log("warning: please use option 'collation' "+"in replacement of 'charset' when using a collation name ('"+z.charset+"')\n"+"(collation looks like 'UTF8MB4_UNICODE_CI', charset like 'utf8').")}}if(this.opts.collation===undefined)throw new RangeError("Unknown charset '"+z.charset+"'")}else if(z.collation&&typeof z.collation==="string"){const b=z.collation;this.opts.collation=t.fromName(b.toUpperCase());if(this.opts.collation===undefined)throw new RangeError("Unknown collation '"+b+"'")}else{this.opts.collation=t.fromIndex(z.charsetNumber)||b.collation}b.password=z.password}}function writeParam(b,z,p){let o=Buffer.isEncoding(p)?Buffer.from(z,p):O.encode(z,p);b.writeLengthCoded(o.length);b.writeBuffer(o,0,o.length)}b.exports=ChangeUser},536:function(b,z,p){"use strict";const O=p(7657);class OkPacket{constructor(b,z,p){this.affectedRows=b;this.insertId=z;this.warningStatus=p}}b.exports=OkPacket},4542:function(b,z,p){"use strict";const O=p(2055);const o=p(3290);const e=p(9248);class ColumnDef{constructor(b,z){this._parse=new StringParser(b);if(z.serverCapabilities&e.MARIADB_CLIENT_EXTENDED_TYPE_INFO){const z=b.subPacketLengthEncoded();while(z.remaining()){switch(z.readUInt8()){case 0:this.dataTypeName=z.readAsciiStringLengthEncoded();break;case 1:this.dataTypeFormat=z.readAsciiStringLengthEncoded();break;default:const b=z.readUnsignedLength();if(b){z.skip(b)}break}}}b.skip(1);this.collation=O.fromIndex(b.readUInt16());this.columnLength=b.readUInt32();this.columnType=b.readUInt8();this.flags=b.readUInt16();this.scale=b.readUInt8();this.type=o.TYPES[this.columnType]}db(){return this._parse.packet.readString(this._parse.dbOffset,this._parse.dbLength)}schema(){return this._parse.packet.readString(this._parse.dbOffset,this._parse.dbLength)}table(){return this._parse.packet.readString(this._parse.tableOffset,this._parse.tableLength)}orgTable(){return this._parse.packet.readString(this._parse.orgTableOffset,this._parse.orgTableLength)}name(){return this._parse.packet.readString(this._parse.nameOffset,this._parse.nameLength)}orgName(){return this._parse.packet.readString(this._parse.orgNameOffset,this._parse.orgNameLength)}}class StringParser{constructor(b){b.skip(4);this.dbLength=b.readUnsignedLength();this.dbOffset=b.pos;b.skip(this.dbLength);this.tableLength=b.readUnsignedLength();this.tableOffset=b.pos;b.skip(this.tableLength);this.orgTableLength=b.readUnsignedLength();this.orgTableOffset=b.pos;b.skip(this.orgTableLength);this.nameLength=b.readUnsignedLength();this.nameOffset=b.pos;b.skip(this.nameLength);this.orgNameLength=b.readUnsignedLength();this.orgNameOffset=b.pos;b.skip(this.orgNameLength);this.packet=b}}b.exports=ColumnDef},7657:function(b,z,p){"use strict";const O=p(2361);const o=p(1450);const e=p(386);const c=p(7311);const t=p(2055);const i=p(536);class Command extends O{constructor(b,z){super();this.sequenceNo=-1;this.compressSequenceNo=-1;this.resolve=b;this.reject=z;this.sending=false}displaySql(){return null}throwUnexpectedError(b,z,p,O,e){if(this.reject){process.nextTick(this.reject,o.createError(b,this.displaySql(),z,p,O,e,this.stack,false));this.resolve=null;this.reject=null}}throwNewError(b,z,p,O,e){this.onPacketReceive=null;if(this.reject){process.nextTick(this.reject,o.createError(b,this.displaySql(),z,p,O,e,this.stack,false));this.resolve=null;this.reject=null}this.emit("end")}throwError(b,z){this.onPacketReceive=null;if(this.reject){if(this.stack){b=o.createError(b.message,b.sql,b.fatal,z,b.sqlState,b.errno,this.stack,false)}this.resolve=null;process.nextTick(this.reject,b);this.reject=null}this.emit("end",b)}successEnd(b){this.onPacketReceive=null;if(this.resolve){this.reject=null;process.nextTick(this.resolve,b);this.resolve=null}this.emit("end")}parseOkPacket(b,z,p,O){b.skip(1);const o=b.readUnsignedLength();const n=p.supportBigInt?b.readSignedLengthBigInt():b.readSignedLength();O.status=b.readUInt16();const s=new i(o,n,b.readUInt16());if(O.status&e.SESSION_STATE_CHANGED){b.skipLengthCodedNumber();while(b.remaining()){const z=b.subPacketLengthEncoded();while(z.remaining()){const b=z.readUInt8();switch(b){case c.SESSION_TRACK_SYSTEM_VARIABLES:const b=z.subPacketLengthEncoded();const o=b.readStringLength();const e=b.readStringLength();switch(o){case"character_set_client":p.collation=t.fromCharset(e);if(p.collation===undefined){this.throwError(new Error("unknown charset : '"+e+"'"),O);return}p.emit("collation",p.collation);break;default:}break;case c.SESSION_TRACK_SCHEMA:const i=z.subPacketLengthEncoded();O.database=i.readStringLength();break}}}}return s}}b.exports=Command},5436:function(b,z,p){"use strict";const O=p(9);class CommonBinary extends O{constructor(b,z,p,O,o,e){super(b,z);this.configAssign(O,p);this.sql=o;this.initialValues=e}writeParam(b,z,p,O){let o=false;switch(typeof z){case"boolean":o=b.writeInt8(0);o=b.writeInt8(z?1:0)||o;break;case"bigint":case"number":o=b.writeInt8(0);o=b.writeLengthStringAscii(""+z)||o;break;case"object":if(Object.prototype.toString.call(z)==="[object Date]"){o=b.writeInt8(0);o=b.writeBinaryDate(z,p)||o}else if(Buffer.isBuffer(z)){o=b.writeInt8(0);o=b.writeLengthEncodedBuffer(z)||o}else if(typeof z.toSqlString==="function"){o=b.writeInt8(0);o=b.writeLengthEncodedString(String(z.toSqlString()))||o}else{if(z.type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(z.type)){const p=this.getBufferFromGeometryValue(z);if(p){o=b.writeInt8(0);o=b.writeLengthEncodedBuffer(Buffer.concat([Buffer.from([0,0,0,0]),p]))||o}else{o=b.writeInt8(1)}}else{o=b.writeInt8(0);o=b.writeLengthEncodedString(JSON.stringify(z))||o}}break;default:o=b.writeInt8(0);o=b.writeLengthEncodedString(z)||o}return o}getBufferFromGeometryValue(b,z){let p;let O;let o;if(!z){switch(b.type){case"Point":p=Buffer.allocUnsafe(21);p.writeInt8(1,0);p.writeInt32LE(1,1);if(b.coordinates&&Array.isArray(b.coordinates)&&b.coordinates.length>=2&&!isNaN(b.coordinates[0])&&!isNaN(b.coordinates[1])){p.writeDoubleLE(b.coordinates[0],5);p.writeDoubleLE(b.coordinates[1],13);return p}else{return null}case"LineString":if(b.coordinates&&Array.isArray(b.coordinates)){const z=b.coordinates.length;p=Buffer.allocUnsafe(9+16*z);p.writeInt8(1,0);p.writeInt32LE(2,1);p.writeInt32LE(z,5);for(let O=0;O<z;O++){if(b.coordinates[O]&&Array.isArray(b.coordinates[O])&&b.coordinates[O].length>=2&&!isNaN(b.coordinates[O][0])&&!isNaN(b.coordinates[O][1])){p.writeDoubleLE(b.coordinates[O][0],9+16*O);p.writeDoubleLE(b.coordinates[O][1],17+16*O)}else{return null}}return p}else{return null}case"Polygon":if(b.coordinates&&Array.isArray(b.coordinates)){const z=b.coordinates.length;let o=0;for(let p=0;p<z;p++){o+=4+16*b.coordinates[p].length}p=Buffer.allocUnsafe(9+o);p.writeInt8(1,0);p.writeInt32LE(3,1);p.writeInt32LE(z,5);O=9;for(let o=0;o<z;o++){const z=b.coordinates[o];if(z&&Array.isArray(z)){p.writeInt32LE(z.length,O);O+=4;for(let b=0;b<z.length;b++){if(z[b]&&Array.isArray(z[b])&&z[b].length>=2&&!isNaN(z[b][0])&&!isNaN(z[b][1])){p.writeDoubleLE(z[b][0],O);p.writeDoubleLE(z[b][1],O+8);O+=16}else{return null}}}}return p}else{return null}case"MultiPoint":o="MultiPoint";p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(4,1);break;case"MultiLineString":o="MultiLineString";p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(5,1);break;case"MultiPolygon":o="MultiPolygon";p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(6,1);break;case"GeometryCollection":p=Buffer.allocUnsafe(9);p.writeInt8(1,0);p.writeInt32LE(7,1);if(b.geometries&&Array.isArray(b.geometries)){const z=b.geometries.length;const O=[p];for(let p=0;p<z;p++){const z=this.getBufferFromGeometryValue(b.geometries[p]);if(z==null)break;O.push(z)}p.writeInt32LE(O.length-1,5);return Buffer.concat(O)}else{p.writeInt32LE(0,5);return p}default:return null}if(b.coordinates&&Array.isArray(b.coordinates)){const z=b.coordinates.length;const O=[p];for(let p=0;p<z;p++){const z=this.getBufferFromGeometryValue(b.coordinates[p],o);if(z==null)break;O.push(z)}p.writeInt32LE(O.length-1,5);return Buffer.concat(O)}else{p.writeInt32LE(0,5);return p}}else{switch(z){case"MultiPoint":if(b&&Array.isArray(b)&&b.length>=2&&!isNaN(b[0])&&!isNaN(b[1])){p=Buffer.allocUnsafe(21);p.writeInt8(1,0);p.writeInt32LE(1,1);p.writeDoubleLE(b[0],5);p.writeDoubleLE(b[1],13);return p}return null;case"MultiLineString":if(b&&Array.isArray(b)){const z=b.length;p=Buffer.allocUnsafe(9+16*z);p.writeInt8(1,0);p.writeInt32LE(2,1);p.writeInt32LE(z,5);for(let O=0;O<z;O++){if(b[O]&&Array.isArray(b[O])&&b[O].length>=2&&!isNaN(b[O][0])&&!isNaN(b[O][1])){p.writeDoubleLE(b[O][0],9+16*O);p.writeDoubleLE(b[O][1],17+16*O)}else{return null}}return p}return null;case"MultiPolygon":if(b&&Array.isArray(b)){const z=b.length;let o=0;for(let p=0;p<z;p++){o+=4+16*b[p].length}p=Buffer.allocUnsafe(9+o);p.writeInt8(1,0);p.writeInt32LE(3,1);p.writeInt32LE(z,5);O=9;for(let o=0;o<z;o++){const z=b[o];if(z&&Array.isArray(z)){p.writeInt32LE(z.length,O);O+=4;for(let b=0;b<z.length;b++){if(z[b]&&Array.isArray(z[b])&&z[b].length>=2&&!isNaN(z[b][0])&&!isNaN(z[b][1])){p.writeDoubleLE(z[b][0],O);p.writeDoubleLE(z[b][1],O+8);O+=16}else{return null}}}}return p}return null}return null}}parseRow(b,z,p){throw new Error("not implemented")}}b.exports=CommonBinary},8662:function(b,z,p){"use strict";const O=p(9);const o=p(8745);const e=p(3290);const c=p(2694);const t=p(7936);const i=39;class CommonText extends O{constructor(b,z,p,O,o,e){super(b,z);this.configAssign(O,p);this.sql=o;this.initialValues=e;this.getDateQuote=this.opts.tz?this.opts.tz==="Etc/UTC"?CommonText.getUtcDate:CommonText.getTimezoneDate:CommonText.getLocalDate}writeParam(b,z,p,O){switch(typeof z){case"boolean":b.writeStringAscii(z?"true":"false");break;case"bigint":case"number":b.writeStringAscii(""+z);break;case"object":if(z===null){b.writeStringAscii("NULL")}else if(Object.prototype.toString.call(z)==="[object Date]"){b.writeStringAscii(this.getDateQuote(z,p))}else if(Buffer.isBuffer(z)){b.writeStringAscii("_BINARY '");b.writeBufferEscape(z);b.writeInt8(i)}else if(typeof z.toSqlString==="function"){b.writeStringEscapeQuote(String(z.toSqlString()))}else if(c.isLong(z)){b.writeStringAscii(z.toString())}else if(Array.isArray(z)){if(p.arrayParenthesis){b.writeStringAscii("(")}for(let o=0;o<z.length;o++){if(o!==0)b.writeStringAscii(",");this.writeParam(b,z[o],p,O)}if(p.arrayParenthesis){b.writeStringAscii(")")}}else{if(z.type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(z.type)){let p=O.isMariaDB()&&O.hasMinVersion(10,1,4)||!O.isMariaDB()&&O.hasMinVersion(5,7,6)?"ST_":"";switch(z.type){case"Point":b.writeStringAscii(p+"PointFromText('POINT("+CommonText.geoPointToString(z.coordinates)+")')");break;case"LineString":b.writeStringAscii(p+"LineFromText('LINESTRING("+CommonText.geoArrayPointToString(z.coordinates)+")')");break;case"Polygon":b.writeStringAscii(p+"PolygonFromText('POLYGON("+CommonText.geoMultiArrayPointToString(z.coordinates)+")')");break;case"MultiPoint":b.writeStringAscii(p+"MULTIPOINTFROMTEXT('MULTIPOINT("+CommonText.geoArrayPointToString(z.coordinates)+")')");break;case"MultiLineString":b.writeStringAscii(p+"MLineFromText('MULTILINESTRING("+CommonText.geoMultiArrayPointToString(z.coordinates)+")')");break;case"MultiPolygon":b.writeStringAscii(p+"MPolyFromText('MULTIPOLYGON("+CommonText.geoMultiPolygonToString(z.coordinates)+")')");break;case"GeometryCollection":b.writeStringAscii(p+"GeomCollFromText('GEOMETRYCOLLECTION("+CommonText.geometricCollectionToString(z.geometries)+")')");break}}else{if(p.permitSetMultiParamEntries){let o=true;for(let e in z){const c=z[e];if(typeof c==="function")continue;if(o){o=false}else{b.writeStringAscii(",")}b.writeString("`"+e+"`");b.writeStringAscii("=");this.writeParam(b,c,p,O)}if(o)b.writeStringEscapeQuote(JSON.stringify(z))}else{b.writeStringEscapeQuote(JSON.stringify(z))}}}break;default:b.writeStringEscapeQuote(z)}}static geometricCollectionToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=p!==0?",":"";switch(b[p].type){case"Point":z+="POINT("+CommonText.geoPointToString(b[p].coordinates)+")";break;case"LineString":z+="LINESTRING("+CommonText.geoArrayPointToString(b[p].coordinates)+")";break;case"Polygon":z+="POLYGON("+CommonText.geoMultiArrayPointToString(b[p].coordinates)+")";break;case"MultiPoint":z+="MULTIPOINT("+CommonText.geoArrayPointToString(b[p].coordinates)+")";break;case"MultiLineString":z+="MULTILINESTRING("+CommonText.geoMultiArrayPointToString(b[p].coordinates)+")";break;case"MultiPolygon":z+="MULTIPOLYGON("+CommonText.geoMultiPolygonToString(b[p].coordinates)+")";break}}return z}static geoMultiPolygonToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=(p!==0?",(":"(")+CommonText.geoMultiArrayPointToString(b[p])+")"}return z}static geoMultiArrayPointToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=(p!==0?",(":"(")+CommonText.geoArrayPointToString(b[p])+")"}return z}static geoArrayPointToString(b){if(!b)return"";let z="";for(let p=0;p<b.length;p++){z+=(p!==0?",":"")+CommonText.geoPointToString(b[p])}return z}static geoPointToString(b){if(!b)return"";return(isNaN(b[0])?"":b[0])+" "+(isNaN(b[1])?"":b[1])}parseRowAsArray(b,z,p){const O=new Array(this._columnCount);for(let o=0;o<this._columnCount;o++){O[o]=this._getValue(o,b[o],this.opts,p,z)}return O}parseRowNested(b,z,p){const O={};for(let o=0;o<this._columnCount;o++){if(!O[this.tableHeader[o][0]])O[this.tableHeader[o][0]]={};O[this.tableHeader[o][0]][this.tableHeader[o][1]]=this._getValue(o,b[o],this.opts,p,z)}return O}parseRowStd(b,z,p){const O={};for(let o=0;o<this._columnCount;o++){O[this.tableHeader[o]]=this._getValue(o,b[o],this.opts,p,z)}return O}castTextWrapper(b,z,p,O){b.string=()=>O.readStringLength();b.buffer=()=>O.readBufferLengthEncoded();b.float=()=>O.readFloatLengthCoded();b.int=()=>O.readIntLengthEncoded();b.long=()=>O.readLongLengthEncoded(z.supportBigInt,z.supportBigNumbers,z.bigNumberStrings,(b.flags&o.UNSIGNED)>0);b.decimal=()=>O.readDecimalLengthEncoded(z.bigNumberStrings);b.date=()=>O.readDateTime(z);b.geometry=()=>b.readGeometry()}readCastValue(b,z,p,O,o){this.castTextWrapper(z,p,O,o);return p.typeCast(z,this.readRowData.bind(this,b,z,p,O,o))}readRowData(b,z,p,O,c){switch(z.columnType){case e.TINY:case e.SHORT:case e.LONG:case e.INT24:case e.YEAR:return c.readIntLengthEncoded();case e.FLOAT:case e.DOUBLE:return c.readFloatLengthCoded();case e.LONGLONG:return c.readLongLengthEncoded(p.supportBigInt,p.supportBigNumbers,p.bigNumberStrings,(z.flags&o.UNSIGNED)>0);case e.DECIMAL:case e.NEWDECIMAL:return c.readDecimalLengthEncoded(p.bigNumberStrings);case e.DATE:if(p.dateStrings){return c.readAsciiStringLengthEncoded()}return c.readDate();case e.DATETIME:case e.TIMESTAMP:if(p.dateStrings){return c.readAsciiStringLengthEncoded()}return c.readDateTime(p);case e.TIME:return c.readAsciiStringLengthEncoded();case e.GEOMETRY:return c.readGeometry(z.dataTypeName);case e.JSON:return JSON.parse(c.readStringLengthEncoded("utf8"));default:if(z.dataTypeFormat&&z.dataTypeFormat==="json"&&p.autoJsonMap){return JSON.parse(c.readStringLengthEncoded("utf8"))}if(z.collation.index===63){return c.readBufferLengthEncoded()}const b=c.readStringLength();if(z.flags&2048){return b==null?null:b===""?[]:b.split(",")}return b}}}function getDatePartQuote(b,z,p,O,o,e,c){return"'"+(b>999?b:b>99?"0"+b:b>9?"00"+b:"000"+b)+"-"+(z<10?"0":"")+z+"-"+(p<10?"0":"")+p+" "+(O<10?"0":"")+O+":"+(o<10?"0":"")+o+":"+(e<10?"0":"")+e+"."+(c>99?c:c>9?"0"+c:"00"+c)+"'"}function getLocalDate(b,z){const p=b.getFullYear();const O=b.getMonth()+1;const o=b.getDate();const e=b.getHours();const c=b.getMinutes();const t=b.getSeconds();const i=b.getMilliseconds();return getDatePartQuote(p,O,o,e,c,t,i)}function getUtcDate(b,z){const p=b.getUTCFullYear();const O=b.getUTCMonth()+1;const o=b.getUTCDate();const e=b.getUTCHours();const c=b.getUTCMinutes();const t=b.getUTCSeconds();const i=b.getUTCMilliseconds();return getDatePartQuote(p,O,o,e,c,t,i)}function getTimezoneDate(b,z){if(b.getMilliseconds()!=0){return t.tz(b,z.tz).format("'YYYY-MM-DD HH:mm:ss.SSS'")}return t.tz(b,z.tz).format("'YYYY-MM-DD HH:mm:ss'")}b.exports=CommonText;b.exports.getTimezoneDate=getTimezoneDate;b.exports.getUtcDate=getUtcDate;b.exports.getLocalDate=getLocalDate},4098:function(b,z,p){const O=p(2649);const o=p(7147);const e=p(6113);const c=p(1450);const t=p(1956);const i=p(9794);const n={INIT:"INIT",FAST_AUTH_RESULT:"FAST_AUTH_RESULT",REQUEST_SERVER_KEY:"REQUEST_SERVER_KEY",SEND_AUTH:"SEND_AUTH"};class CachingSha2PasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.counter=0;this.state=n.INIT}start(b,z,p){this.exchange(this.pluginData,b,z,p);this.onPacketReceive=this.response}exchange(b,z,p,O){switch(this.state){case n.INIT:const e=this.pluginData.slice(0,this.pluginData.length-1);const s=t.encryptPassword(p.password,e,"sha256");z.startPacket(this);if(s.length>0){z.writeBuffer(s,0,s.length);z.flushBuffer(true)}else{z.writeEmptyPacket(true)}this.state=n.FAST_AUTH_RESULT;return;case n.FAST_AUTH_RESULT:const a=b[1];switch(a){case 3:this.emit("send_end");return this.successSend(packet,z,p,O);case 4:if(p.ssl){z.startPacket(this);z.writeString(p.password);z.writeInt8(0);z.flushBuffer(true);return}if(p.cachingRsaPublicKey){try{let b=p.cachingRsaPublicKey;if(!b.includes("-----BEGIN")){b=o.readFileSync(b,"utf8")}this.publicKey=i.retreivePublicKey(b)}catch(b){return this.throwError(b,O)}i.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}else{if(!p.allowPublicKeyRetrieval){return this.throwError(c.createError("RSA public key is not available client side. Either set option `cachingRsaPublicKey` to indicate"+" public key path, or allow public key retrieval with option `allowPublicKeyRetrieval`",null,true,O,"08S01",c.ER_CANNOT_RETRIEVE_RSA_KEY),O)}this.state=n.REQUEST_SERVER_KEY;z.startPacket(this);z.writeInt8(2);z.flushBuffer(true)}return}case n.REQUEST_SERVER_KEY:this.publicKey=i.retreivePublicKey(b.toString("utf8",1));this.state=n.SEND_AUTH;i.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}}static retreivePublicKey(b){return b.replace("(-+BEGIN PUBLIC KEY-+\\r?\\n|\\n?-+END PUBLIC KEY-+\\r?\\n?)","")}static sendSha256PwdPacket(b,z,p,O,o){const e=z.slice(0,z.length-1);o.startPacket(b);const c=i.encrypt(e,O,p);o.writeBuffer(c,0,c.length);o.flushBuffer(b)}static encrypt(b,z,p){const O=Buffer.from(z+"\0");const o=Buffer.allocUnsafe(O.length);const c=b.length;for(let z=0;z<o.length;z++){o[z]=O[z]^b[z%c]}return e.publicEncrypt({key:p,padding:e.constants.RSA_PKCS1_OAEP_PADDING},o)}response(b,z,p,O){const o=b.peek();switch(o){case 0:case 255:this.emit("send_end");return this.successSend(b,z,p,O);default:let o=b.readBufferRemaining();this.exchange(o,z,p,O);this.onPacketReceive=this.response}}}b.exports=CachingSha2PasswordAuth},4945:function(b,z,p){const O=p(2649);class ClearPasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.sequenceNo=b}start(b,z,p){b.startPacket(this);if(z.password)b.writeString(z.password);b.writeInt8(0);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.successSend}}b.exports=ClearPasswordAuth},4980:function(b,z,p){"use strict";const O=p(2649);const o=p(6113);class Ed25519PasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b}start(b,z,p){const O=this.pluginData;const o=Ed25519PasswordAuth.encryptPassword(z.password,O);b.startPacket(this);b.writeBuffer(o,0,o.length);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.successSend}static encryptPassword(b,z){if(!b)return Buffer.alloc(0);let p,O;let e=[gf(),gf(),gf(),gf()];const c=Buffer.alloc(96);const t=Buffer.from(b);let i=o.createHash("sha512");const n=i.update(t).digest();n[0]&=248;n[31]&=127;n[31]|=64;for(p=0;p<32;p++)c[64+p]=z[p];for(p=0;p<32;p++)c[32+p]=n[32+p];i=o.createHash("sha512");const s=i.update(c.slice(32,96)).digest();reduce(s);scalarbase(e,s);pack(c,e);e=[gf(),gf(),gf(),gf()];scalarbase(e,n);const a=Buffer.alloc(32);pack(a,e);for(p=32;p<64;p++)c[p]=a[p-32];i=o.createHash("sha512");const r=i.update(c).digest();reduce(r);const q=new Float64Array(64);for(p=0;p<64;p++)q[p]=0;for(p=0;p<32;p++)q[p]=s[p];for(p=0;p<32;p++){for(O=0;O<32;O++){q[p+O]+=r[p]*n[O]}}modL(c.subarray(32),q);return c.slice(0,64)}}const gf=function(b){const z=new Float64Array(16);if(b)for(let p=0;p<b.length;p++)z[p]=b[p];return z};const e=gf(),c=gf([1]),t=gf([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),i=gf([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),n=gf([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);const s=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function reduce(b){const z=new Float64Array(64);let p;for(p=0;p<64;p++)z[p]=b[p];for(p=0;p<64;p++)b[p]=0;modL(b,z)}function modL(b,z){let p,O,o,e;for(O=63;O>=32;--O){p=0;for(o=O-32,e=O-12;o<e;++o){z[o]+=p-16*z[O]*s[o-(O-32)];p=z[o]+128>>8;z[o]-=p*256}z[o]+=p;z[O]=0}p=0;for(o=0;o<32;o++){z[o]+=p-(z[31]>>4)*s[o];p=z[o]>>8;z[o]&=255}for(o=0;o<32;o++)z[o]-=p*s[o];for(O=0;O<32;O++){z[O+1]+=z[O]>>8;b[O]=z[O]&255}}function scalarbase(b,z){const p=[gf(),gf(),gf(),gf()];set25519(p[0],i);set25519(p[1],n);set25519(p[2],c);M(p[3],i,n);scalarmult(b,p,z)}function set25519(b,z){for(let p=0;p<16;p++)b[p]=z[p]|0}function M(b,z,p){let O,o,e=0,c=0,t=0,i=0,n=0,s=0,a=0,r=0,q=0,d=0,W=0,f=0,R=0,u=0,l=0,_=0,h=0,N=0,E=0,L=0,T=0,B=0,m=0,g=0,I=0,C=0,X=0,D=0,P=0,w=0,U=0;const k=p[0],y=p[1],v=p[2],F=p[3],G=p[4],x=p[5],H=p[6],V=p[7],Y=p[8],K=p[9],j=p[10],Q=p[11],J=p[12],$=p[13],MM=p[14],bM=p[15];O=z[0];e+=O*k;c+=O*y;t+=O*v;i+=O*F;n+=O*G;s+=O*x;a+=O*H;r+=O*V;q+=O*Y;d+=O*K;W+=O*j;f+=O*Q;R+=O*J;u+=O*$;l+=O*MM;_+=O*bM;O=z[1];c+=O*k;t+=O*y;i+=O*v;n+=O*F;s+=O*G;a+=O*x;r+=O*H;q+=O*V;d+=O*Y;W+=O*K;f+=O*j;R+=O*Q;u+=O*J;l+=O*$;_+=O*MM;h+=O*bM;O=z[2];t+=O*k;i+=O*y;n+=O*v;s+=O*F;a+=O*G;r+=O*x;q+=O*H;d+=O*V;W+=O*Y;f+=O*K;R+=O*j;u+=O*Q;l+=O*J;_+=O*$;h+=O*MM;N+=O*bM;O=z[3];i+=O*k;n+=O*y;s+=O*v;a+=O*F;r+=O*G;q+=O*x;d+=O*H;W+=O*V;f+=O*Y;R+=O*K;u+=O*j;l+=O*Q;_+=O*J;h+=O*$;N+=O*MM;E+=O*bM;O=z[4];n+=O*k;s+=O*y;a+=O*v;r+=O*F;q+=O*G;d+=O*x;W+=O*H;f+=O*V;R+=O*Y;u+=O*K;l+=O*j;_+=O*Q;h+=O*J;N+=O*$;E+=O*MM;L+=O*bM;O=z[5];s+=O*k;a+=O*y;r+=O*v;q+=O*F;d+=O*G;W+=O*x;f+=O*H;R+=O*V;u+=O*Y;l+=O*K;_+=O*j;h+=O*Q;N+=O*J;E+=O*$;L+=O*MM;T+=O*bM;O=z[6];a+=O*k;r+=O*y;q+=O*v;d+=O*F;W+=O*G;f+=O*x;R+=O*H;u+=O*V;l+=O*Y;_+=O*K;h+=O*j;N+=O*Q;E+=O*J;L+=O*$;T+=O*MM;B+=O*bM;O=z[7];r+=O*k;q+=O*y;d+=O*v;W+=O*F;f+=O*G;R+=O*x;u+=O*H;l+=O*V;_+=O*Y;h+=O*K;N+=O*j;E+=O*Q;L+=O*J;T+=O*$;B+=O*MM;m+=O*bM;O=z[8];q+=O*k;d+=O*y;W+=O*v;f+=O*F;R+=O*G;u+=O*x;l+=O*H;_+=O*V;h+=O*Y;N+=O*K;E+=O*j;L+=O*Q;T+=O*J;B+=O*$;m+=O*MM;g+=O*bM;O=z[9];d+=O*k;W+=O*y;f+=O*v;R+=O*F;u+=O*G;l+=O*x;_+=O*H;h+=O*V;N+=O*Y;E+=O*K;L+=O*j;T+=O*Q;B+=O*J;m+=O*$;g+=O*MM;I+=O*bM;O=z[10];W+=O*k;f+=O*y;R+=O*v;u+=O*F;l+=O*G;_+=O*x;h+=O*H;N+=O*V;E+=O*Y;L+=O*K;T+=O*j;B+=O*Q;m+=O*J;g+=O*$;I+=O*MM;C+=O*bM;O=z[11];f+=O*k;R+=O*y;u+=O*v;l+=O*F;_+=O*G;h+=O*x;N+=O*H;E+=O*V;L+=O*Y;T+=O*K;B+=O*j;m+=O*Q;g+=O*J;I+=O*$;C+=O*MM;X+=O*bM;O=z[12];R+=O*k;u+=O*y;l+=O*v;_+=O*F;h+=O*G;N+=O*x;E+=O*H;L+=O*V;T+=O*Y;B+=O*K;m+=O*j;g+=O*Q;I+=O*J;C+=O*$;X+=O*MM;D+=O*bM;O=z[13];u+=O*k;l+=O*y;_+=O*v;h+=O*F;N+=O*G;E+=O*x;L+=O*H;T+=O*V;B+=O*Y;m+=O*K;g+=O*j;I+=O*Q;C+=O*J;X+=O*$;D+=O*MM;P+=O*bM;O=z[14];l+=O*k;_+=O*y;h+=O*v;N+=O*F;E+=O*G;L+=O*x;T+=O*H;B+=O*V;m+=O*Y;g+=O*K;I+=O*j;C+=O*Q;X+=O*J;D+=O*$;P+=O*MM;w+=O*bM;O=z[15];_+=O*k;h+=O*y;N+=O*v;E+=O*F;L+=O*G;T+=O*x;B+=O*H;m+=O*V;g+=O*Y;I+=O*K;C+=O*j;X+=O*Q;D+=O*J;P+=O*$;w+=O*MM;U+=O*bM;e+=38*h;c+=38*N;t+=38*E;i+=38*L;n+=38*T;s+=38*B;a+=38*m;r+=38*g;q+=38*I;d+=38*C;W+=38*X;f+=38*D;R+=38*P;u+=38*w;l+=38*U;o=1;O=e+o+65535;o=Math.floor(O/65536);e=O-o*65536;O=c+o+65535;o=Math.floor(O/65536);c=O-o*65536;O=t+o+65535;o=Math.floor(O/65536);t=O-o*65536;O=i+o+65535;o=Math.floor(O/65536);i=O-o*65536;O=n+o+65535;o=Math.floor(O/65536);n=O-o*65536;O=s+o+65535;o=Math.floor(O/65536);s=O-o*65536;O=a+o+65535;o=Math.floor(O/65536);a=O-o*65536;O=r+o+65535;o=Math.floor(O/65536);r=O-o*65536;O=q+o+65535;o=Math.floor(O/65536);q=O-o*65536;O=d+o+65535;o=Math.floor(O/65536);d=O-o*65536;O=W+o+65535;o=Math.floor(O/65536);W=O-o*65536;O=f+o+65535;o=Math.floor(O/65536);f=O-o*65536;O=R+o+65535;o=Math.floor(O/65536);R=O-o*65536;O=u+o+65535;o=Math.floor(O/65536);u=O-o*65536;O=l+o+65535;o=Math.floor(O/65536);l=O-o*65536;O=_+o+65535;o=Math.floor(O/65536);_=O-o*65536;e+=o-1+37*(o-1);o=1;O=e+o+65535;o=Math.floor(O/65536);e=O-o*65536;O=c+o+65535;o=Math.floor(O/65536);c=O-o*65536;O=t+o+65535;o=Math.floor(O/65536);t=O-o*65536;O=i+o+65535;o=Math.floor(O/65536);i=O-o*65536;O=n+o+65535;o=Math.floor(O/65536);n=O-o*65536;O=s+o+65535;o=Math.floor(O/65536);s=O-o*65536;O=a+o+65535;o=Math.floor(O/65536);a=O-o*65536;O=r+o+65535;o=Math.floor(O/65536);r=O-o*65536;O=q+o+65535;o=Math.floor(O/65536);q=O-o*65536;O=d+o+65535;o=Math.floor(O/65536);d=O-o*65536;O=W+o+65535;o=Math.floor(O/65536);W=O-o*65536;O=f+o+65535;o=Math.floor(O/65536);f=O-o*65536;O=R+o+65535;o=Math.floor(O/65536);R=O-o*65536;O=u+o+65535;o=Math.floor(O/65536);u=O-o*65536;O=l+o+65535;o=Math.floor(O/65536);l=O-o*65536;O=_+o+65535;o=Math.floor(O/65536);_=O-o*65536;e+=o-1+37*(o-1);b[0]=e;b[1]=c;b[2]=t;b[3]=i;b[4]=n;b[5]=s;b[6]=a;b[7]=r;b[8]=q;b[9]=d;b[10]=W;b[11]=f;b[12]=R;b[13]=u;b[14]=l;b[15]=_}function scalarmult(b,z,p){let O,o;set25519(b[0],e);set25519(b[1],c);set25519(b[2],c);set25519(b[3],e);for(o=255;o>=0;--o){O=p[o/8|0]>>(o&7)&1;cswap(b,z,O);add(z,b);add(b,b);cswap(b,z,O)}}function pack(b,z){const p=gf(),O=gf(),o=gf();inv25519(o,z[2]);M(p,z[0],o);M(O,z[1],o);pack25519(b,O);b[31]^=par25519(p)<<7}function inv25519(b,z){const p=gf();let O;for(O=0;O<16;O++)p[O]=z[O];for(O=253;O>=0;O--){S(p,p);if(O!==2&&O!==4)M(p,p,z)}for(O=0;O<16;O++)b[O]=p[O]}function S(b,z){M(b,z,z)}function par25519(b){const z=new Uint8Array(32);pack25519(z,b);return z[0]&1}function car25519(b){let z,p,O=1;for(z=0;z<16;z++){p=b[z]+O+65535;O=Math.floor(p/65536);b[z]=p-O*65536}b[0]+=O-1+37*(O-1)}function pack25519(b,z){let p,O,o;const e=gf(),c=gf();for(p=0;p<16;p++)c[p]=z[p];car25519(c);car25519(c);car25519(c);for(O=0;O<2;O++){e[0]=c[0]-65517;for(p=1;p<15;p++){e[p]=c[p]-65535-(e[p-1]>>16&1);e[p-1]&=65535}e[15]=c[15]-32767-(e[14]>>16&1);o=e[15]>>16&1;e[14]&=65535;sel25519(c,e,1-o)}for(p=0;p<16;p++){b[2*p]=c[p]&255;b[2*p+1]=c[p]>>8}}function cswap(b,z,p){for(let O=0;O<4;O++){sel25519(b[O],z[O],p)}}function A(b,z,p){for(let O=0;O<16;O++)b[O]=z[O]+p[O]}function Z(b,z,p){for(let O=0;O<16;O++)b[O]=z[O]-p[O]}function add(b,z){const p=gf(),O=gf(),o=gf(),e=gf(),c=gf(),i=gf(),n=gf(),s=gf(),a=gf();Z(p,b[1],b[0]);Z(a,z[1],z[0]);M(p,p,a);A(O,b[0],b[1]);A(a,z[0],z[1]);M(O,O,a);M(o,b[3],z[3]);M(o,o,t);M(e,b[2],z[2]);A(e,e,e);Z(c,O,p);Z(i,e,o);A(n,e,o);A(s,O,p);M(b[0],c,i);M(b[1],s,n);M(b[2],n,i);M(b[3],c,s)}function sel25519(b,z,p){const O=~(p-1);let o;for(let p=0;p<16;p++){o=O&(b[p]^z[p]);b[p]^=o;z[p]^=o}}b.exports=Ed25519PasswordAuth},1956:function(b,z,p){"use strict";const O=p(2649);const o=p(6113);class NativePasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.compressSequenceNo=z}start(b,z,p){const O=this.pluginData.slice(0,20);let o=NativePasswordAuth.encryptPassword(z.password,O,"sha1");b.startPacket(this);if(o.length>0){b.writeBuffer(o,0,o.length);b.flushBuffer(true)}else{b.writeEmptyPacket(true)}this.emit("send_end");this.onPacketReceive=this.successSend}static encryptPassword(b,z,p){if(!b)return Buffer.alloc(0);let O=o.createHash(p);let e=O.update(b,"utf8").digest();O=o.createHash(p);let c=O.update(e).digest();O=o.createHash(p);O.update(z);O.update(c);let t=O.digest();let i=Buffer.allocUnsafe(t.length);for(let b=0;b<t.length;b++){i[b]=e[b]^t[b]}return i}}b.exports=NativePasswordAuth},5147:function(b,z,p){const O=p(2649);class PamPasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.counter=0}start(b,z,p){this.exchange(this.pluginData,b,z,p);this.onPacketReceive=this.response}exchange(b,z,p,O){z.startPacket(this);let o;if(Array.isArray(p.password)){o=p.password[this.counter];this.counter++}else{o=p.password}if(o)z.writeString(o);z.writeInt8(0);z.flushBuffer(true)}response(b,z,p,O){const o=b.peek();switch(o){case 0:case 255:this.emit("send_end");return this.successSend(b,z,p,O);default:let o=b.readBuffer();this.exchange(o,z,p,O);this.onPacketReceive=this.response}}}b.exports=PamPasswordAuth},2649:function(b,z,p){"use strict";const O=p(7657);class PluginAuth extends O{constructor(b,z,p){super(b,z);this.multiAuthResolver=p}successSend(b,z,p,O){this.multiAuthResolver(b,z,p,O)}}b.exports=PluginAuth},9794:function(b,z,p){const O=p(2649);const o=p(7147);const e=p(6113);const c=p(1450);class Sha256PasswordAuth extends O{constructor(b,z,p,O,o,e){super(O,o,e);this.pluginData=p;this.sequenceNo=b;this.counter=0;this.initialState=true}start(b,z,p){this.exchange(this.pluginData,b,z,p);this.onPacketReceive=this.response}exchange(b,z,p,O){if(this.initialState){if(!p.password){z.startPacket(this);z.writeEmptyPacket(true);return}else if(p.ssl){z.startPacket(this);if(p.password){z.writeString(p.password)}z.writeInt8(0);z.flushBuffer(true);return}else{if(p.rsaPublicKey){try{let b=p.rsaPublicKey;if(!b.includes("-----BEGIN")){b=o.readFileSync(b,"utf8")}this.publicKey=Sha256PasswordAuth.retreivePublicKey(b)}catch(b){return this.throwError(b,O)}}else{if(!p.allowPublicKeyRetrieval){return this.throwError(c.createError("RSA public key is not available client side. Either set option `rsaPublicKey` to indicate"+" public key path, or allow public key retrieval with option `allowPublicKeyRetrieval`",null,true,O,"08S01",c.ER_CANNOT_RETRIEVE_RSA_KEY),O)}this.initialState=false;z.startPacket(this);z.writeInt8(1);z.flushBuffer(true);return}}Sha256PasswordAuth.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}else{this.publicKey=Sha256PasswordAuth.retreivePublicKey(b.toString("utf8",1));Sha256PasswordAuth.sendSha256PwdPacket(this,this.pluginData,this.publicKey,p.password,z)}}static retreivePublicKey(b){return b.replace("(-+BEGIN PUBLIC KEY-+\\r?\\n|\\n?-+END PUBLIC KEY-+\\r?\\n?)","")}static sendSha256PwdPacket(b,z,p,O,o){const e=z.slice(0,z.length-1);o.startPacket(b);const c=Sha256PasswordAuth.encrypt(e,O,p);o.writeBuffer(c,0,c.length);o.flushBuffer(b)}static encrypt(b,z,p){const O=Buffer.from(z+"\0");const o=Buffer.allocUnsafe(O.length);const c=b.length;for(let z=0;z<o.length;z++){o[z]=O[z]^b[z%c]}return e.publicEncrypt({key:p,padding:e.constants.RSA_PKCS1_OAEP_PADDING},o)}response(b,z,p,O){const o=b.peek();switch(o){case 0:case 255:this.emit("send_end");return this.successSend(b,z,p,O);default:let o=b.readBufferRemaining();this.exchange(o,z,p,O);this.onPacketReceive=this.response}}}b.exports=Sha256PasswordAuth},8051:function(b,z,p){"use strict";const O=p(9248);b.exports.init=function(b,z){let p=O.IGNORE_SPACE|O.PROTOCOL_41|O.TRANSACTIONS|O.SECURE_CONNECTION|O.MULTI_RESULTS|O.PS_MULTI_RESULTS|O.SESSION_TRACK|O.PLUGIN_AUTH_LENENC_CLIENT_DATA;if((z.serverCapabilities&O.MYSQL)===BigInt(0)){p|=O.MARIADB_CLIENT_EXTENDED_TYPE_INFO}if(z.serverCapabilities&O.PLUGIN_AUTH){p|=O.PLUGIN_AUTH}if(b.connectAttributes&&z.serverCapabilities&O.CONNECT_ATTRS){p|=O.CONNECT_ATTRS}if(b.foundRows){p|=O.FOUND_ROWS}if(b.permitLocalInfile){p|=O.LOCAL_FILES}if(b.multipleStatements){p|=O.MULTI_STATEMENTS}z.eofDeprecated=(z.serverCapabilities&O.DEPRECATE_EOF)>0;if(z.eofDeprecated){p|=O.DEPRECATE_EOF}if(b.database&&z.serverCapabilities&O.CONNECT_WITH_DB){p|=O.CONNECT_WITH_DB}if(b.compress){if(z.serverCapabilities&O.COMPRESS){p|=O.COMPRESS}else{b.compress=false}}if(b.bulk){if(z.serverCapabilities&O.MARIADB_CLIENT_STMT_BULK_OPERATIONS){p|=O.MARIADB_CLIENT_STMT_BULK_OPERATIONS}}if(b.permitConnectionWhenExpired){p|=O.CAN_HANDLE_EXPIRED_PASSWORDS}z.clientCapabilities=p}},7088:function(b,z,p){"use strict";const O=p(9248);const o=p(1401);const e=p(1956);const c=p(4980);const t=p(8850).version;const i=p(2037);b.exports.send=function send(b,z,p,o,n){z.startPacket(b);n.defaultPluginName=o;const s=Array.isArray(p.password)?p.password[0]:p.password;let a;let r;switch(o){case"client_ed25519":a=c.encryptPassword(s,n.seed);r="client_ed25519";break;case"mysql_clear_password":a=Buffer.from(s);r="mysql_clear_password";break;default:a=e.encryptPassword(s,n.seed,"sha1");r="mysql_native_password";break}z.writeInt32(Number(n.clientCapabilities&BigInt(4294967295)));z.writeInt32(1024*1024*1024);z.writeInt8(p.collation.index);for(let b=0;b<19;b++){z.writeInt8(0)}z.writeInt32(Number(n.clientCapabilities>>BigInt(32)));z.writeString(p.user||"");z.writeInt8(0);if(n.serverCapabilities&O.PLUGIN_AUTH_LENENC_CLIENT_DATA){z.writeLengthCoded(a.length);z.writeBuffer(a,0,a.length)}else if(n.serverCapabilities&O.SECURE_CONNECTION){z.writeInt8(a.length);z.writeBuffer(a,0,a.length)}else{z.writeBuffer(a,0,a.length);z.writeInt8(0)}if(n.clientCapabilities&O.CONNECT_WITH_DB){z.writeString(p.database);z.writeInt8(0);n.database=p.database}if(n.clientCapabilities&O.PLUGIN_AUTH){z.writeString(r);z.writeInt8(0)}if(n.clientCapabilities&O.CONNECT_ATTRS){z.writeInt8(252);let O=z.pos;z.writeInt16(0);const o=p.collation.charset;writeParam(z,"_client_name",o);writeParam(z,"MariaDB connector/Node",o);writeParam(z,"_client_version",o);writeParam(z,t,o);const e=b.getSocket().address().address;if(e){writeParam(z,"_server_host",o);writeParam(z,e,o)}writeParam(z,"_os",o);writeParam(z,process.platform,o);writeParam(z,"_client_host",o);writeParam(z,i.hostname(),o);writeParam(z,"_node_version",o);writeParam(z,process.versions.node,o);if(p.connectAttributes!==true){let b=Object.keys(p.connectAttributes);for(let O=0;O<b.length;++O){writeParam(z,b[O],o);writeParam(z,p.connectAttributes[b[O]],o)}}z.writeInt16AtPos(O)}z.flushBuffer(true)};function writeParam(b,z,p){let O=Buffer.isEncoding(p)?Buffer.from(z,p):o.encode(z,p);b.writeLengthCoded(O.length);b.writeBuffer(O,0,O.length)}},5427:function(b,z,p){"use strict";const O=p(7657);const o=p(5888);const e=p(7088);const c=p(2693);const t=p(8051);const i=p(1450);const n=p(9248);const s=p(7282);class Handshake extends O{constructor(b,z,p,O,o){super(b,z);this._createSecureContext=p;this._addCommand=O;this.getSocket=o;this.onPacketReceive=this.parseHandshakeInit;this.plugin=this}ensureOptionCompatibility(b,z){if(b.multipleStatements&&(z.serverCapabilities&n.MULTI_STATEMENTS)===0){return this.throwNewError("Option `multipleStatements` enable, but server doesn'permits multi-statment",true,z,"08S01",i.ER_CLIENT_OPTION_INCOMPATIBILITY)}if(b.permitLocalInfile&&(z.serverCapabilities&n.LOCAL_FILES)===0){return this.throwNewError("Option `permitLocalInfile` enable, but server doesn'permits using local file",true,z,"08S01",i.ER_CLIENT_OPTION_INCOMPATIBILITY)}}parseHandshakeInit(b,z,p,O){if(b.peek()===255){const z=b.readError(O);z.fatal=true;return this.throwError(z,O)}let s=new o(b,O);this.ensureOptionCompatibility(p,O);t.init(p,O);if(p.ssl){if(O.serverCapabilities&n.SSL){O.clientCapabilities|=n.SSL;c.send(this,z,O,p);this._createSecureContext(function(){e.send(this,z,p,s.pluginName,O)}.bind(this))}else{return this.throwNewError("Trying to connect with ssl, but ssl not enabled in the server",true,O,"08S01",i.ER_SERVER_SSL_DISABLED)}}else{e.send(this,z,p,s.pluginName,O)}this.onPacketReceive=this.handshakeResult}handshakeResult(b,z,p,O){const o=b.peek();switch(o){case 254:this.plugin.onPacketReceive=null;this.plugin.emit("send_end");this.plugin.emit("end");this.dispatchAuthSwitchRequest(b,z,p,O);return;case 0:this.plugin.onPacketReceive=null;b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16();this.plugin.emit("send_end");return this.plugin.successEnd();case 255:this.plugin.onPacketReceive=null;const e=b.readError(O,this.displaySql());e.fatal=true;return this.plugin.throwError(e,O);default:this.throwNewError("Unexpected type of packet during handshake phase : "+o,true,O,"42000",i.ER_AUTHENTICATION_BAD_PACKET)}}dispatchAuthSwitchRequest(b,z,p,O){let o,e;if(O.clientCapabilities&n.PLUGIN_AUTH){b.skip(1);if(b.remaining()){o=b.readStringNullEnded();e=b.readBufferRemaining()}else{o="mysql_old_password";e=O.seed.slice(0,8)}}else{o=b.readStringNullEnded("cesu8");e=b.readBufferRemaining()}try{this.plugin=Handshake.pluginHandler(o,this.plugin.sequenceNo,this.plugin.compressSequenceNo,e,O,p,z,this.resolve,this.reject,this.handshakeResult.bind(this))}catch(b){this.reject(b);return}if(!this.plugin){this.reject(i.createError("Client does not support authentication protocol '"+o+"' requested by server. ",null,true,O,"08004",i.ER_AUTHENTICATION_PLUGIN_NOT_SUPPORTED))}else{this._addCommand(this.plugin,false)}}static pluginHandler(b,z,O,o,e,c,t,n,s,a){let r;switch(b){case"mysql_native_password":r=p(1956);break;case"mysql_clear_password":r=p(4945);break;case"client_ed25519":r=p(4980);break;case"dialog":r=p(5147);break;case"sha256_password":if(!Handshake.ensureNodeVersion(11,6,0)){throw i.createError("sha256_password authentication plugin require node 11.6+",null,true,e,"08004",i.ER_MINIMUM_NODE_VERSION_REQUIRED)}r=p(9794);break;case"caching_sha2_password":if(!Handshake.ensureNodeVersion(11,6,0)){throw i.createError("caching_sha2_password authentication plugin require node 11.6+",null,true,e,"08004",i.ER_MINIMUM_NODE_VERSION_REQUIRED)}r=p(4098);break;default:return null}return new r(z,O,o,n,s,a)}static ensureNodeVersion(b,z,p){const O=s.versions.node.split(".");return O[0]>b||O[0]===b&&O[1]>z||O[0]===b&&O[1]===z&&O[2]>=p}}b.exports=Handshake},5888:function(b,z,p){"use strict";const O=p(9248);const o=p(9994);class InitialHandshake{constructor(b,z){b.skip(1);z.serverVersion={};z.serverVersion.raw=b.readStringNullEnded();z.threadId=b.readUInt32();let p=b.readBuffer(8);b.skip(1);let e=BigInt(b.readUInt16());b.skip(1);z.status=b.readUInt16();e+=BigInt(b.readUInt16())<<BigInt(16);let c=0;if(e&O.PLUGIN_AUTH){c=Math.max(12,b.readUInt8()-9)}else{b.skip(1)}if(e&O.MYSQL){b.skip(10)}else{b.skip(6);e+=BigInt(b.readUInt32())<<BigInt(32)}if(e&O.SECURE_CONNECTION){let O=b.readBuffer(c);z.seed=Buffer.concat([p,O])}else{z.seed=p}b.skip(1);z.serverCapabilities=e;if(z.serverVersion.raw.startsWith("5.5.5-")){z.serverVersion.mariaDb=true;z.serverVersion.raw=z.serverVersion.raw.substring("5.5.5-".length)}else{z.serverVersion.mariaDb=z.serverVersion.raw.includes("MariaDB")||(e&O.MYSQL)===BigInt(0)}if(e&O.PLUGIN_AUTH){this.pluginName=b.readStringNullEnded()}else{this.pluginName=""}o.parseVersionString(z)}}b.exports=InitialHandshake},2693:function(b,z,p){"use strict";const O=p(9248);b.exports.send=function sendSSLRequest(b,z,p,o){z.startPacket(b);z.writeInt32(Number(p.clientCapabilities&BigInt(4294967295)));z.writeInt32(1024*1024*1024);z.writeInt8(o.collation.index);for(let b=0;b<19;b++){z.writeInt8(0)}if(p.serverCapabilities&O.MYSQL){z.writeInt32(0)}else{z.writeInt32(Number(p.clientCapabilities>>BigInt(32)))}z.flushBuffer(true)}},3136:function(b,z,p){"use strict";const O=p(7657);const o=p(1450);class Ping extends O{constructor(b,z){super(b,z)}start(b,z,p){b.startPacket(this);b.writeInt8(14);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.readPingResponsePacket}readPingResponsePacket(b,z,p,O){if(b.peek()!==0){return this.throwNewError("unexpected packet",false,O,"42000",o.ER_PING_BAD_PACKET)}b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16();this.successEnd(null)}}b.exports=Ping},9335:function(b,z,p){"use strict";const O=p(8662);const o=p(1450);const e=p(2491);const c=39;class Query extends O{constructor(b,z,p,O,o,e){super(b,z,p,O,o,e)}start(b,z,p){if(this.initialValues===undefined){b.startPacket(this);b.writeInt8(3);if(!this.handleTimeout(b,p))return;b.writeString(this.sql);b.flushBuffer(true);this.emit("send_end");return this.onPacketReceive=this.readResponsePacket}if(this.opts.namedPlaceholders){try{const b=e.splitQueryPlaceholder(this.sql,p,this.initialValues,this.displaySql.bind(this));this.queryParts=b.parts;this.values=b.values}catch(b){this.emit("send_end");return this.throwError(b,p)}}else{this.queryParts=e.splitQuery(this.sql);this.values=Array.isArray(this.initialValues)?this.initialValues:[this.initialValues];if(!this.validateParameters(p))return}b.startPacket(this);b.writeInt8(3);if(!this.handleTimeout(b,p))return;b.writeString(this.queryParts[0]);this.onPacketReceive=this.readResponsePacket;const O=this.queryParts.length;for(let z=1;z<O;z++){const O=this.values[z-1];if(O!==null&&typeof O==="object"&&typeof O.pipe==="function"&&typeof O.read==="function"){this.sending=true;this.registerStreamSendEvent(b,p);this.currentParam=z;b.writeInt8(c);O.on("data",(function(z){b.writeBufferEscape(z)}));O.on("end",function(){b.writeInt8(c);b.writeString(this.queryParts[this.currentParam++]);this.paramWritten()}.bind(this));return}else{this.writeParam(b,O,this.opts,p);b.writeString(this.queryParts[z])}}b.flushBuffer(true);this.emit("send_end")}handleTimeout(b,z){if(this.opts.timeout){if(z.isMariaDB()){if(z.hasMinVersion(10,1,2)){b.writeString("SET STATEMENT max_statement_time="+this.opts.timeout/1e3+" FOR ");return true}else{const b=o.createError("Cannot use timeout for MariaDB server before 10.1.2. timeout value: "+this.opts.timeout,this.sql,false,z,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,z);return false}}else{const b=o.createError("Cannot use timeout for MySQL server. timeout value: "+this.opts.timeout,this.sql,false,z,"HY000",o.ER_TIMEOUT_NOT_SUPPORTED);this.emit("send_end");this.throwError(b,z);return false}}return true}validateParameters(b){if(this.queryParts.length-1>this.values.length){this.emit("send_end");this.throwNewError("Parameter at position "+(this.values.length+1)+" is not set",false,b,"HY000",o.ER_MISSING_PARAMETER);return false}for(let z=0;z<this.queryParts.length-1;z++){if(this.values[z]===undefined){this.emit("send_end");this.throwNewError("Parameter at position "+(z+1)+" is undefined\n"+this.displaySql(),false,b,"HY000",o.ER_PARAMETER_UNDEFINED);return false}}return true}registerStreamSendEvent(b,z){this.paramWritten=function(){while(true){if(this.currentParam===this.queryParts.length){b.flushBuffer(true);this.sending=false;this.emit("send_end");return}else{const p=this.values[this.currentParam-1];if(p===null){b.writeStringAscii("NULL");b.writeString(this.queryParts[this.currentParam++]);continue}if(typeof p==="object"&&typeof p.pipe==="function"&&typeof p.read==="function"){b.writeInt8(c);p.once("end",function(){b.writeInt8(c);b.writeString(this.queryParts[this.currentParam++]);this.paramWritten()}.bind(this));p.on("data",(function(z){b.writeBufferEscape(z)}));return}this.writeParam(b,p,this.opts,z);b.writeString(this.queryParts[this.currentParam++])}}}.bind(this)}}b.exports=Query},2713:function(b,z,p){"use strict";const O=p(7657);class Quit extends O{constructor(b,z){super(b,z)}start(b,z,p){b.startPacket(this);b.writeInt8(1);b.flushBuffer(true);this.emit("send_end");this.successEnd();this.onPacketReceive=this.skipResults}skipResults(b,z,p,O){}}b.exports=Quit},4731:function(b,z,p){"use strict";const O=p(7657);const o=p(1450);class Reset extends O{constructor(b,z){super(b,z)}start(b,z,p){b.startPacket(this);b.writeInt8(31);b.flushBuffer(true);this.emit("send_end");this.onPacketReceive=this.readResetResponsePacket}readResetResponsePacket(b,z,p,O){if(b.peek()!==0){return this.throwNewError("unexpected packet",false,O,"42000",o.ER_RESET_BAD_PACKET)}b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16();this.successEnd(null)}}b.exports=Reset},9:function(b,z,p){"use strict";const O=p(7657);const o=p(386);const e=p(4542);const c=p(1450);const t=p(7147);const i=p(2491);class ResultSet extends O{constructor(b,z){super(b,z);this._responseIndex=0;this._rows=[]}readResponsePacket(b,z,p,O){switch(b.peek()){case 0:return this.readOKPacket(b,z,p,O);case 255:const e=b.readError(O,this.displaySql(),this.stack);O.status|=o.STATUS_IN_TRANS;return this.throwError(e,O);case 251:return this.readLocalInfile(b,z,p,O);default:return this.readResultSet(b)}}readResultSet(b){this._columnCount=b.readUnsignedLength();this._getValue=this.opts.typeCast?this.readCastValue:this.readRowData;this._rows.push([]);this._columns=[];this.onPacketReceive=this.readColumn}configAssign(b,z){if(!z){this.opts=b;return}this.opts={timeout:z.timeout,autoJsonMap:b.autoJsonMap,arrayParenthesis:b.arrayParenthesis,supportBigInt:z.supportBigInt!=undefined?z.supportBigInt:b.supportBigInt,checkDuplicate:z.checkDuplicate!=undefined?z.checkDuplicate:b.checkDuplicate,typeCast:z.typeCast!=undefined?z.typeCast:b.typeCast,rowsAsArray:z.rowsAsArray!=undefined?z.rowsAsArray:b.rowsAsArray,nestTables:z.nestTables!=undefined?z.nestTables:b.nestTables,dateStrings:z.dateStrings!=undefined?z.dateStrings:b.dateStrings,tz:z.tz!=undefined?z.tz:b.tz,pipelining:b.pipelining,_localTz:z.localTz!=undefined?z.localTz:b._localTz,namedPlaceholders:z.namedPlaceholders!=undefined?z.namedPlaceholders:b.namedPlaceholders,maxAllowedPacket:z.maxAllowedPacket!=undefined?z.maxAllowedPacket:b.maxAllowedPacket,supportBigNumbers:z.supportBigNumbers!=undefined?z.supportBigNumbers:b.supportBigNumbers,permitSetMultiParamEntries:z.permitSetMultiParamEntries!=undefined?z.permitSetMultiParamEntries:b.permitSetMultiParamEntries,bigNumberStrings:z.bigNumberStrings!=undefined?z.bigNumberStrings:b.bigNumberStrings}}readOKPacket(b,z,p,O){const e=this.parseOkPacket(b,z,p,O);this._rows.push(e);if(O.status&o.MORE_RESULTS_EXISTS){this._responseIndex++;return this.onPacketReceive=this.readResponsePacket}this.success(this._responseIndex===0?this._rows[0]:this._rows)}readPrepareResultPacket(b,z,p,O){switch(b.peek()){case 0:b.skip(1);this.statementId=b.readInt32();this.columnNo=b.readUInt16();this.parameterNo=b.readUInt16();if(this.columnNo>0)return this.onPacketReceive=this.skipColumnsPacket;if(this.parameterNo>0)return this.onPacketReceive=this.skipParameterPacket;return this.success();case 255:const z=b.readError(O,this.displaySql(),this.stack);O.status|=o.STATUS_IN_TRANS;this.onPacketReceive=this.readResponsePacket;return this.throwError(z,O);default:O.status|=o.STATUS_IN_TRANS;this.onPacketReceive=this.readResponsePacket;return this.throwError(c.ER_UNEXPECTED_PACKET,O)}}skipColumnsPacket(b,z,p,O){this.columnNo--;if(this.columnNo===0){if(O.eofDeprecated){if(this.parameterNo>0)return this.onPacketReceive=this.skipParameterPacket;this.success()}return this.onPacketReceive=this.skipEofPacket}}skipEofPacket(b,z,p,O){if(this.parameterNo>0)return this.onPacketReceive=this.skipParameterPacket;this.success()}skipParameterPacket(b,z,p,O){this.parameterNo--;if(this.parameterNo===0){if(O.eofDeprecated)return this.success();return this.onPacketReceive=this.skipEofPacket}}success(b){this.successEnd(b);this._columns=null;this._rows=null}readColumn(b,z,p,O){if(this._columns.length!==this._columnCount){this._columns.push(new e(b,O))}if(this._columns.length===this._columnCount){if(this.opts.rowsAsArray){this.parseRow=this.parseRowAsArray}else{this.tableHeader=new Array(this._columnCount);if(this.opts.nestTables){this.parseRow=this.parseRowStd;if(typeof this.opts.nestTables==="string"){for(let b=0;b<this._columnCount;b++){this.tableHeader[b]=this._columns[b].table()+this.opts.nestTables+this._columns[b].name()}this.checkDuplicates()}else if(this.opts.nestTables===true){this.parseRow=this.parseRowNested;for(let b=0;b<this._columnCount;b++){this.tableHeader[b]=[this._columns[b].table(),this._columns[b].name()]}this.checkNestTablesDuplicates()}}else{this.parseRow=this.parseRowStd;for(let b=0;b<this._columnCount;b++){this.tableHeader[b]=this._columns[b].name()}this.checkDuplicates()}}this.emit("fields",this._columns);return this.onPacketReceive=O.eofDeprecated?this.readResultSetRow:this.readIntermediateEOF}}checkDuplicates(){if(this.opts.checkDuplicate){for(let b=0;b<this._columnCount;b++){if(this.tableHeader.indexOf(this.tableHeader[b],b+1)>0){const b=this.tableHeader.reduce(((b,z,p,O)=>O.indexOf(z)!==p&&b.indexOf(z)===-1?b.concat(z):b),[]);this.throwUnexpectedError("Error in results, duplicate field name `"+b[0]+"`.\n"+"(see option `checkDuplicate`)",false,null,"42000",c.ER_DUPLICATE_FIELD)}}}}checkNestTablesDuplicates(){if(this.opts.checkDuplicate){for(let b=0;b<this._columnCount;b++){for(let z=0;z<b;z++){if(this.tableHeader[z][0]===this.tableHeader[b][0]&&this.tableHeader[z][1]===this.tableHeader[b][1]){this.throwUnexpectedError("Error in results, duplicate field name `"+this.tableHeader[b][0]+"`.`"+this.tableHeader[b][1]+"`\n"+"(see option `checkDuplicate`)",false,null,"42000",c.ER_DUPLICATE_FIELD)}}}}}readIntermediateEOF(b,z,p,O){if(b.peek()!==254){return this.throwNewError("Error in protocol, expected EOF packet",true,O,"42000",c.ER_EOF_EXPECTED)}b.skip(3);O.status=b.readUInt16();this.isOutParameter=O.status&o.PS_OUT_PARAMS;this.onPacketReceive=this.readResultSetRow}handleNewRows(b){this._rows[this._responseIndex].push(b)}readResultSetRow(b,z,p,O){if(b.peek()>=254){if(b.peek()===255){const z=b.readError(O,this.displaySql(),this.stack);O.status|=o.STATUS_IN_TRANS;return this.throwError(z,O)}if(!O.eofDeprecated&&b.length()<13||O.eofDeprecated&&b.length()<16777215){if(!O.eofDeprecated){b.skip(3);O.status=b.readUInt16()}else{b.skip(1);b.skipLengthCodedNumber();b.skipLengthCodedNumber();O.status=b.readUInt16()}if(p.metaAsArray){if(!this._meta){this._meta=new Array(this._responseIndex)}this._meta[this._responseIndex]=this._columns;if(O.status&o.MORE_RESULTS_EXISTS||this.isOutParameter){this._responseIndex++;return this.onPacketReceive=this.readResponsePacket}this.success(this._responseIndex===0?[this._rows[0],this._meta[0]]:[this._rows,this._meta])}else{this._rows[this._responseIndex].meta=this._columns;if(O.status&o.MORE_RESULTS_EXISTS||this.isOutParameter){this._responseIndex++;return this.onPacketReceive=this.readResponsePacket}this.success(this._responseIndex===0?this._rows[0]:this._rows)}return}}const e=this.parseRow(this._columns,b,p);this.handleNewRows(e)}displaySql(){if(this.opts&&this.initialValues){if(this.sql.length>this.opts.debugLen){return this.sql.substring(0,this.opts.debugLen)+"..."}let b=this.sql+" - parameters:";return this.logParameters(b,this.initialValues)}return this.sql+" - parameters:[]"}logParameters(b,z){if(this.opts.namedPlaceholders){b+="{";let p=true;for(let O in z){if(p){p=false}else{b+=","}b+="'"+O+"':";let o=z[O];b=ResultSet.logParam(b,o);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}b+="}"}else{b+="[";if(Array.isArray(z)){for(let p=0;p<z.length;p++){if(p!==0)b+=",";let O=z[p];b=ResultSet.logParam(b,O);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"...";break}}}else{b=ResultSet.logParam(b,z);if(b.length>this.opts.debugLen){b=b.substr(0,this.opts.debugLen)+"..."}}b+="]"}return b}readLocalInfile(b,z,p,O){b.skip(1);z.startPacket(this);const o=b.readStringRemaining();if(!i.validateFileName(this.sql,this.initialValues,o)){z.writeEmptyPacket();const b=c.createError("LOCAL INFILE wrong filename. '"+o+"' doesn't correspond to query "+this.sql+". Query cancelled. Check for malicious server / proxy",this.sql,false,O,"HY000",c.ER_LOCAL_INFILE_WRONG_FILENAME);process.nextTick(this.reject,b);this.reject=null;this.resolve=null;return this.onPacketReceive=this.readResponsePacket}const e=t.createReadStream(o);e.on("error",(b=>{z.writeEmptyPacket();const p=c.createError("LOCAL INFILE command failed: "+b.message,this.sql,false,O,"22000",c.ER_LOCAL_INFILE_NOT_READABLE);process.nextTick(this.reject,p);this.reject=null;this.resolve=null}));e.on("data",(b=>{z.writeBuffer(b,0,b.length)}));e.on("end",(()=>{if(!z.isEmpty()){z.flushBuffer(false)}z.writeEmptyPacket()}));this.onPacketReceive=this.readResponsePacket}static logParam(b,z){if(z===undefined||z===null){b+=z===undefined?"undefined":"null"}else{switch(z.constructor.name){case"Buffer":b+="0x"+z.toString("hex",0,Math.min(1024,z.length))+"";break;case"String":b+="'"+z+"'";break;case"Date":b+=getStringDate(z);break;case"Object":b+=JSON.stringify(z);break;default:b+=z.toString()}}return b}}function getStringDate(b){return"'"+("00"+(b.getMonth()+1)).slice(-2)+"/"+("00"+b.getDate()).slice(-2)+"/"+b.getFullYear()+" "+("00"+b.getHours()).slice(-2)+":"+("00"+b.getMinutes()).slice(-2)+":"+("00"+b.getSeconds()).slice(-2)+"."+("000"+b.getMilliseconds()).slice(-3)+"'"}b.exports=ResultSet},7516:function(b,z,p){"use strict";const O=p(9335);const{Readable:o}=p(2781);class Stream extends O{constructor(b,z,p,O,e){super((()=>{}),(()=>{}),b,z,p,O);this.socket=e;this.inStream=new o({objectMode:true,read:()=>{}});this.on("fields",(function(b){this.inStream.emit("fields",b)}));this.on("error",(function(b){this.inStream.emit("error",b)}));this.on("end",(function(b){if(b)this.inStream.emit("error",b);this.inStream.push(null)}))}handleNewRows(b){this.inStream.push(b)}}b.exports=Stream},9362:function(b,z,p){"use strict";const O=p(2055);const o=/mariadb:\/\/(([^/@:]+)?(:([^/]+))?@)?(([^/:]+)(:([0-9]+))?)\/([^?]+)(\?(.*))?$/;const e=p(7936);const c=p(1450);class ConnectionOptions{constructor(b){if(typeof b==="string"){b=ConnectionOptions.parse(b)}if(!b)b={};this.host=b.host||"localhost";this.port=b.port||3306;this.user=b.user||process.env.USERNAME;this.password=b.password;this.database=b.database;if(b.charset&&typeof b.charset==="string"){this.collation=O.fromCharset(b.charset.toLowerCase());if(this.collation===undefined){this.collation=O.fromName(b.charset.toUpperCase());if(this.collation!==undefined){console.log("warning: please use option 'collation' "+"in replacement of 'charset' when using a collation name ('"+b.charset+"')\n"+"(collation looks like 'UTF8MB4_UNICODE_CI', charset like 'utf8').")}}if(this.collation===undefined)throw new RangeError("Unknown charset '"+b.charset+"'")}else if(b.collation&&typeof b.collation==="string"){this.collation=O.fromName(b.collation.toUpperCase());if(this.collation===undefined)throw new RangeError("Unknown collation '"+b.collation+"'")}else{this.collation=O.fromIndex(b.charsetNumber)||O.fromIndex(224)}this.initSql=b.initSql;this.connectTimeout=b.connectTimeout===undefined?1e3:b.connectTimeout;this.connectAttributes=b.connectAttributes||false;this.compress=b.compress||false;this.rsaPublicKey=b.rsaPublicKey;this.cachingRsaPublicKey=b.cachingRsaPublicKey;this.allowPublicKeyRetrieval=b.allowPublicKeyRetrieval||false;this.forceVersionCheck=b.forceVersionCheck||false;this.maxAllowedPacket=b.maxAllowedPacket;this.permitConnectionWhenExpired=b.permitConnectionWhenExpired||false;this.pipelining=b.pipelining;this.timezone=b.timezone||"local";this.socketPath=b.socketPath;this.sessionVariables=b.sessionVariables;this.ssl=b.ssl;if(b.ssl){if(typeof b.ssl!=="boolean"&&typeof b.ssl!=="string"){this.ssl.rejectUnauthorized=b.ssl.rejectUnauthorized!==false}}this.queryTimeout=b.queryTimeout===undefined?0:b.queryTimeout;this.socketTimeout=b.socketTimeout===undefined?0:b.socketTimeout;this.keepAliveDelay=b.keepAliveDelay===undefined?0:b.keepAliveDelay;this.debug=b.debug||false;this.debugCompress=b.debugCompress||false;this.debugLen=b.debugLen||256;this.logPackets=b.logPackets||false;this.trace=b.trace||false;this.checkDuplicate=b.checkDuplicate===undefined?true:b.checkDuplicate;this.dateStrings=b.dateStrings||false;this.foundRows=b.foundRows===undefined||b.foundRows;this.metaAsArray=b.metaAsArray||false;this.multipleStatements=b.multipleStatements||false;this.namedPlaceholders=b.namedPlaceholders||false;this.nestTables=b.nestTables;this.autoJsonMap=b.autoJsonMap===undefined?true:b.autoJsonMap;this.arrayParenthesis=b.arrayParenthesis||false;this.permitSetMultiParamEntries=b.permitSetMultiParamEntries||false;this.rowsAsArray=b.rowsAsArray||false;this.supportBigNumbers=b.supportBigNumbers||false;this.supportBigInt=b.supportBigInt||false;this.skipSetTimezone=b.skipSetTimezone||false;this.typeCast=b.typeCast;if(this.typeCast!==undefined&&typeof this.typeCast!=="function"){this.typeCast=undefined}this.bigNumberStrings=b.bigNumberStrings||false;this.bulk=b.bulk===undefined||b.bulk;if(b.pipelining===undefined){this.permitLocalInfile=b.permitLocalInfile||false;this.pipelining=!this.permitLocalInfile}else{this.pipelining=b.pipelining;if(b.permitLocalInfile===true&&this.pipelining){throw new Error("enabling options `permitLocalInfile` and `pipelining` is not possible, options are incompatible.")}this.permitLocalInfile=this.pipelining?false:b.permitLocalInfile||false}if(this.maxAllowedPacket&&!Number.isInteger(this.maxAllowedPacket)){throw new RangeError("maxAllowedPacket must be an integer. was '"+this.maxAllowedPacket+"'")}if(this.timezone&&this.timezone!=="local"&&this.timezone!=="auto"){let b=this.timezone;if(this.timezone==="Z"){b="Etc/UTC"}else{const z=this.timezone.match(/([+\-\s])(\d\d):?(\d\d)?/);if(z){const p=(z[1]==="-"?1:-1)*Number.parseInt(z[2],10);const O=z.length>2&&z[3]?Number.parseInt(z[3],10):0;if(O>0){throw new RangeError("timezone format incompatible with IANA standard timezone format was '"+this.timezone+"'")}if(p==0){b="Etc/UTC"}else{b="Etc/GMT"+(z[1]==="-"?"+":"")+p}}}this._localTz=e.tz.guess();if(b===this._localTz){this.tz=null}else{this.tz=b;if(!e.tz.zone(b)){throw c.createError("Unknown IANA timezone '"+b+"'.",null,true,null,"08S01",c.ER_WRONG_IANA_TIMEZONE)}}}}static parseOptionDataType(b){if(b.bigNumberStrings)b.bigNumberStrings=b.bigNumberStrings=="true";if(b.bulk)b.bulk=b.bulk=="true";if(b.rsaPublicKey)b.rsaPublicKey=b.rsaPublicKey;if(b.cachingRsaPublicKey)b.cachingRsaPublicKey=b.cachingRsaPublicKey;if(b.logPackets)b.logPackets=b.logPackets=="true";if(b.allowPublicKeyRetrieval)b.allowPublicKeyRetrieval=b.allowPublicKeyRetrieval=="true";if(b.charsetNumber&&!isNaN(Number.parseInt(b.charsetNumber))){b.charsetNumber=Number.parseInt(b.charsetNumber)}if(b.compress)b.compress=b.compress=="true";if(b.connectAttributes)b.connectAttributes=JSON.parse(b.connectAttributes);if(b.connectTimeout)b.connectTimeout=parseInt(b.connectTimeout);if(b.keepAliveDelay)b.keepAliveDelay=parseInt(b.keepAliveDelay);if(b.socketTimeout)b.socketTimeout=parseInt(b.socketTimeout);if(b.dateStrings)b.dateStrings=b.dateStrings=="true";if(b.debug)b.debug=b.debug=="true";if(b.autoJsonMap)b.autoJsonMap=b.autoJsonMap=="true";if(b.arrayParenthesis)b.arrayParenthesis=b.arrayParenthesis=="true";if(b.skipSetTimezone)b.skipSetTimezone=b.skipSetTimezone=="true";if(b.checkDuplicate)b.checkDuplicate=b.checkDuplicate=="true";if(b.debugCompress)b.debugCompress=b.debugCompress=="true";if(b.debugLen)b.debugLen=parseInt(b.debugLen);if(b.queryTimeout)b.queryTimeout=parseInt(b.queryTimeout);if(b.foundRows)b.foundRows=b.foundRows=="true";if(b.maxAllowedPacket&&!isNaN(Number.parseInt(b.maxAllowedPacket)))b.maxAllowedPacket=parseInt(b.maxAllowedPacket);if(b.metaAsArray)b.metaAsArray=b.metaAsArray=="true";if(b.multipleStatements)b.multipleStatements=b.multipleStatements=="true";if(b.namedPlaceholders)b.namedPlaceholders=b.namedPlaceholders=="true";if(b.nestTables)b.nestTables=b.nestTables=="true";if(b.permitSetMultiParamEntries)b.permitSetMultiParamEntries=b.permitSetMultiParamEntries=="true";if(b.pipelining)b.pipelining=b.pipelining=="true";if(b.forceVersionCheck)b.forceVersionCheck=b.forceVersionCheck=="true";if(b.rowsAsArray)b.rowsAsArray=b.rowsAsArray=="true";if(b.supportBigNumbers)b.supportBigNumbers=b.supportBigNumbers=="true";if(b.supportBigInt)b.supportBigInt=b.supportBigInt=="true";if(b.trace)b.trace=b.trace=="true";if(b.ssl&&(b.ssl=="true"||b.ssl=="false"))b.ssl=b.ssl=="true";return b}static parse(b){const z=b.match(o);if(!z){throw new Error("error parsing connection string '"+b+"'. format must be 'mariadb://[<user>[:<password>]@]<host>[:<port>]/[<db>[?<opt1>=<value1>[&<opt2>=<value2>]]]'")}const p={user:z[2]?decodeURIComponent(z[2]):undefined,password:z[4]?decodeURIComponent(z[4]):undefined,host:z[6]?decodeURIComponent(z[6]):z[6],port:z[8]?parseInt(z[8]):undefined,database:z[9]?decodeURIComponent(z[9]):z[9]};const O=z[11];if(O){const b=O.split("&");b.forEach((function(b){const z=b.indexOf("=");if(z!==1){let O=b.substring(z+1);O=O?decodeURIComponent(O):undefined;p[b.substring(0,z)]=O}}))}return this.parseOptionDataType(p)}}b.exports=ConnectionOptions},1859:function(b){"use strict";class PoolClusterOptions{constructor(b){if(b){this.canRetry=b.canRetry===undefined?true:b.canRetry;this.removeNodeErrorCount=b.removeNodeErrorCount||5;this.restoreNodeTimeout=b.restoreNodeTimeout||1e3;this.defaultSelector=b.defaultSelector||"RR"}else{this.canRetry=true;this.removeNodeErrorCount=5;this.restoreNodeTimeout=1e3;this.defaultSelector="RR"}}}b.exports=PoolClusterOptions},9967:function(b,z,p){"use strict";let O=p(9362);class PoolOptions{constructor(b){if(typeof b==="string"){b=O.parse(b);if(b.acquireTimeout)b.acquireTimeout=parseInt(b.acquireTimeout);if(b.connectionLimit)b.connectionLimit=parseInt(b.connectionLimit);if(b.idleTimeout)b.idleTimeout=parseInt(b.idleTimeout);if(b.leakDetectionTimeout)b.leakDetectionTimeout=parseInt(b.leakDetectionTimeout);if(b.initializationTimeout)b.initializationTimeout=parseInt(b.initializationTimeout);if(b.minDelayValidation)b.minDelayValidation=parseInt(b.minDelayValidation);if(b.minimumIdle)b.minimumIdle=parseInt(b.minimumIdle);if(b.noControlAfterUse)b.noControlAfterUse=b.noControlAfterUse=="true";if(b.resetAfterUse)b.resetAfterUse=b.resetAfterUse=="true";if(b.pingTimeout)b.pingTimeout=parseInt(b.pingTimeout)}this.acquireTimeout=b.acquireTimeout===undefined?1e4:b.acquireTimeout;this.connectionLimit=b.connectionLimit===undefined?10:b.connectionLimit;this.idleTimeout=b.idleTimeout||1800;this.leakDetectionTimeout=b.leakDetectionTimeout||0;this.initializationTimeout=b.initializationTimeout===undefined?3e4:b.initializationTimeout;this.minDelayValidation=b.minDelayValidation===undefined?500:b.minDelayValidation;this.minimumIdle=b.minimumIdle===undefined?this.connectionLimit:Math.min(b.minimumIdle,this.connectionLimit);this.noControlAfterUse=b.noControlAfterUse||false;this.resetAfterUse=b.resetAfterUse===undefined?true:b.resetAfterUse;this.pingTimeout=b.pingTimeout||250;this.connOptions=new O(b);if(this.acquireTimeout>0&&this.connOptions.connectTimeout>this.acquireTimeout){this.connOptions.connectTimeout=this.acquireTimeout}}}b.exports=PoolOptions},5903:function(b,z,p){"use strict";const O=p(2939);const o=p(3837);const e=p(1450);const{Status:c}=p(2584);function ConnectionCallback(b){O.call(this,b);let z=1;const p=this.connect.bind(this);const o=this.changeUser.bind(this);const t=this.query.bind(this);const i=this.end.bind(this);const n=this.ping.bind(this);const s=this.reset.bind(this);const a=this.commit.bind(this);const r=this.rollback.bind(this);const emptySuccess=b=>{};const emptyError=b=>{};const _commitCallback=b=>{a().then((()=>{if(b)b(null,null,null)})).catch(b||emptyError)};const _rollbackCallback=b=>{r().then((()=>{if(b)b(null,null,null)})).catch(b||emptyError)};const _pingCallback=(b,z)=>{let p,O;if(typeof b==="function"){O=b;p=undefined}else{p=b;O=z}n(p).then(O||emptySuccess).catch(O||emptyError)};const _resetCallback=b=>{s().then(b||emptySuccess).catch(b||emptyError)};const _beginTransactionCallback=b=>{t("START TRANSACTION").then((()=>{if(b)b(null,null,null)})).catch(b||emptyError)};const _endCallback=b=>{i().then(b||emptySuccess).catch(b||emptyError)};const _connectCallback=function(b){if(!b){throw new e.createError("missing callback parameter",null,false,this.info,"HY000",e.ER_MISSING_PARAMETER)}if(z===1){this.on("connect",b)}else{switch(this._status()){case c.CLOSING:case c.CLOSED:b(e.createError("Connection closed",null,true,this.info,"08S01",e.ER_CONNECTION_ALREADY_CLOSED));break;default:b()}}};const _changeUserCallback=(b,z)=>{let p,O;if(typeof b==="function"){O=b;p=undefined}else{p=b;O=z}o(p).then((()=>{if(O)O(null,null,null)})).catch(O||emptyError)};this.commit=_commitCallback;this.rollback=_rollbackCallback;this.ping=_pingCallback;this.reset=_resetCallback;this.end=_endCallback;this.connect=_connectCallback;this.changeUser=_changeUserCallback;this.query=this._queryCallback;this.batch=this._batchCallback;this.beginTransaction=_beginTransactionCallback;const q=this;p().then((()=>{z=0;q.emit("connect")})).catch((b=>{z=0;q.emit("connect",b)}))}o.inherits(ConnectionCallback,O);b.exports=ConnectionCallback},2939:function(b,z,p){"use strict";const O=p(2361);const o=p(3837);const e=p(2342);const c=p(1808);const t=p(1516);const i=p(1412);const n=p(8234);const s=p(4997);const a=p(386);const r=p(9994);const q=p(4404);const d=p(1450);const W=p(2245);const f=p(9248);const R=p(7936);const u=p(5427);const l=p(2713);const _=p(3136);const h=p(4731);const N=p(9335);const E=p(5891);const L=p(89);const T=p(7516);const B=p(6044);const{Status:m}=p(2584);function Connection(b){this.connect=()=>{switch(C){case m.NOT_CONNECTED:C=m.CONNECTING;return new Promise((function(b,z){_registerHandshakeCmd(b,z)}));case m.CLOSING:case m.CLOSED:return Promise.reject(d.createError("Connection closed",null,true,p,"08S01",d.ER_CONNECTION_ALREADY_CLOSED));case m.CONNECTING:case m.AUTHENTICATING:return Promise.reject(d.createError("Connection is already connecting",null,true,p,"08S01",d.ER_ALREADY_CONNECTING))}return Promise.resolve(this)};this.changeUser=b=>{if(!p.isMariaDB()){return Promise.reject(d.createError("method changeUser not available for MySQL server due to Bug #83472",null,false,p,"0A000",d.ER_MYSQL_CHANGE_USER_BUG))}return new Promise((function(p,O){w(new B(b,(O=>{if(b&&b.collation)z.collation=b.collation;p(O)}),_authFailHandler.bind(this,O),w.bind(this)))}))};this.beginTransaction=()=>this.query("START TRANSACTION");this.commit=()=>_changeTransaction("COMMIT");this.rollback=()=>_changeTransaction("ROLLBACK");this._queryPromise=(b,p)=>{let O,o,e=p;if(typeof b==="object"){O=b;o=O.sql;if(O.values)e=O.values}else{o=b}return new Promise((function(b,p){const c=new N(b,p,O,z,o,e);if(z.trace)Error.captureStackTrace(c);w(c)}))};this.batch=(b,O)=>{let o,e,c=O;if(typeof b==="object"){o=b;e=o.sql;if(o.values)c=o.values}else{e=b}if(!c){return Promise.reject(d.createError("Batch must have values set",e,false,p,"HY000",d.ER_BATCH_WITH_NO_VALUES))}const t=Array.isArray(c)?c:[c];return new Promise((function(b,p){let O=canUseBulk(t);const c=O?new L(b,p,o,z,e,t):new E(b,p,o,z,e,t);if(z.trace)Error.captureStackTrace(c);w(c)}))};this.queryStream=(b,p)=>{let O,o,e=p;if(typeof b==="object"){O=b;o=O.sql;if(b.values)e=b.values}else{o=b}const c=new T(O,z,o,e,D);if(z.trace)Error.captureStackTrace(c);w(c);return c.inStream};this.ping=b=>new Promise((function(z,O){if(b){if(b<0){O(d.createError("Ping cannot have negative timeout value",null,false,p,"0A000",d.ER_BAD_PARAMETER_VALUE));return}const e=setTimeout((()=>{O(d.createError("Ping timeout",null,true,p,"0A000",d.ER_PING_TIMEOUT));w=_addCommandDisabled;clearTimeout(P);if(C!==m.CLOSING&&C!==m.CLOSED){o.clear();C=m.CLOSED;D.destroy()}_clear()}),b);return w(new _((()=>{clearTimeout(e);z()}),(b=>{clearTimeout(e);O(b)})))}return w(new _(z,O))}));this.reset=()=>{if(p.isMariaDB()&&p.hasMinVersion(10,2,4)||!p.isMariaDB()&&p.hasMinVersion(5,7,3)){return new Promise((function(b,z){return w(new h(b,z))}))}return Promise.reject(new Error("Reset command not permitted for server "+this.info.serverVersion+" (requires server MariaDB version 10.2.4+ or MySQL 5.7.3+)"))};this.isValid=()=>C===m.CONNECTED;this.end=()=>{w=_addCommandDisabled;clearTimeout(P);if(C!==m.CLOSING&&C!==m.CLOSED&&C!==m.NOT_CONNECTED){C=m.CLOSING;return new Promise((function(b,z){const ended=()=>{C=m.CLOSED;D.destroy();D.unref();_clear();g.clear();b()};const p=new l(ended,ended);o.push(p);g.push(p);if(o.length===1){process.nextTick(_nextSendCmd.bind(this))}}))}return Promise.resolve()};this.close=function(){this.destroy()};this.destroy=()=>{w=_addCommandDisabled;clearTimeout(P);if(C!==m.CLOSING&&C!==m.CLOSED){C=m.CLOSING;o.clear();if(g.length>0){const b=this;const O=new Connection(z);O.connect().then((()=>{const killResHandler=()=>{const b=d.createError("Connection destroyed, command was killed",null,true,p,"08S01",d.ER_CMD_NOT_EXECUTED_DESTROYED);socketErrorDispatchToQueries(b);process.nextTick((()=>{if(D)D.destroy()}));C=m.CLOSED;O.end().catch((()=>{}))};O.query("KILL "+p.threadId).then(killResHandler).catch(killResHandler)})).catch((z=>{const ended=()=>{let b=D;_clear();C=m.CLOSED;setImmediate(resolve);b.destroy();g.clear()};const p=new l(ended,ended);o.push(p);g.push(p);if(o.length===1){process.nextTick(_nextSendCmd.bind(b))}}))}else{C=m.CLOSED;D.destroy()}}_clear()};this.pause=()=>{D.pause()};this.resume=()=>{D.resume()};this.format=(b,z)=>{throw d.createError('"Connection.format intentionally not implemented. please use Connection.query(sql, values), it will be more secure and faster',null,false,p,"0A000",d.ER_NOT_IMPLEMENTED_FORMAT)};this.serverVersion=()=>{if(!p.serverVersion)throw new Error("cannot know if server information until connection is established");return p.serverVersion.raw};this.debug=b=>{z.debug=b;z.emit("debug",z.logPackets,z.debug)};this.debugCompress=b=>{z.debugCompress=b};function TestMethods(){}TestMethods.prototype.getCollation=()=>z.collation;TestMethods.prototype.getSocket=()=>D;this.__tests=new TestMethods;this._status=()=>C;this._queryCallback=(b,p,O)=>{let o,e,c=p,t=O;if(typeof p==="function"){t=p;c=undefined}if(typeof b==="object"){o=b;e=o.sql;if(b.values)c=b.values}else{e=b}let i;if(t){const resolve=b=>{const z=b.meta;delete b.meta;t(null,b,z)};i=new N(resolve,t,o,z,e,c)}else{i=new N((()=>{}),(()=>{}),o,z,e,c)}i.handleNewRows=b=>{i._rows[i._responseIndex].push(b);i.emit("data",b)};if(z.trace)Error.captureStackTrace(i);w(i);return i};this._batchCallback=(b,O,o)=>{let e,c,t=O,i=o;if(typeof O==="function"){i=O;t=undefined}if(typeof b==="object"){e=b;c=e.sql;if(b.values)t=b.values}else{c=b}if(t!==undefined){t=Array.isArray(t)?t:[t]}let n;if(!t){if(i){i(d.createError("Batch must have values set",c,false,p,"HY000",d.ER_BATCH_WITH_NO_VALUES))}return null}let s=canUseBulk(t);const a=s?L:E;if(i){const resolve=b=>{const z=b.meta;delete b.meta;i(null,b,z)};n=new a(resolve,i,e,z,c,t)}else{n=new a((()=>{}),(()=>{}),e,z,c,t)}n.handleNewRows=b=>{n._rows[n._responseIndex].push(b);n.emit("data",b)};if(z.trace)Error.captureStackTrace(n);w(n);return n};const canUseBulk=b=>{let O=p.serverVersion&&p.serverVersion.mariaDb&&p.hasMinVersion(10,2,7)&&z.bulk&&(p.serverCapabilities&f.MARIADB_CLIENT_STMT_BULK_OPERATIONS)>BigInt(0);if(O){if(b!==undefined){if(!z.namedPlaceholders){const z=Array.isArray(b[0])?b[0].length:b[0]?1:0;if(z==0)return false;for(let p=0;p<b.length;p++){let O=b[p];if(!Array.isArray(O))O=[O];if(z!==O.length){return false}for(let b=0;b<z;b++){const z=O[b];if(z!==null&&typeof z==="object"&&typeof z.pipe==="function"&&typeof z.read==="function"){return false}}}}else{for(let z=0;z<b.length;z++){let p=b[z];const O=Object.keys(p);for(let b=0;b<O.length;b++){const z=p[O[b]];if(z!==null&&typeof z==="object"&&typeof z.pipe==="function"&&typeof z.read==="function"){return false}}}}}}return O};const _registerHandshakeCmd=(b,z)=>{const p=_authFailHandler.bind(this,z);const O=_authSucceedHandler.bind(this,b,p);const o=new u(O,p,_createSecureContext.bind(this,p),_addCommandEnable.bind(this),_getSocket);Error.captureStackTrace(o);o.once("end",(()=>{process.nextTick(_nextSendCmd)}));g.push(o);_initSocket(p)};const _executeSessionVariableQuery=()=>{if(z.sessionVariables){const b=[];let O="set ";let o=Object.keys(z.sessionVariables);if(o.length>0){return new Promise((function(e,c){for(let p=0;p<o.length;++p){O+=(p!==0?",":"")+"@@"+o[p].replace(/[^a-z0-9_]/gi,"")+"=?";b.push(z.sessionVariables[o[p]])}const errorHandling=b=>{c(d.createError("Error setting session variable (value "+JSON.stringify(z.sessionVariables)+"). Error: "+b.message,O,true,p,"08S01",d.ER_SETTING_SESSION_ERROR,null))};const t=new N(e,errorHandling,null,z,O,b);if(z.trace)Error.captureStackTrace(t);w(t)}))}}return Promise.resolve()};const _checkServerTimezone=()=>{if(z.timezone==="auto"){return this._queryPromise("SELECT @@system_time_zone stz, @@time_zone tz").then((b=>{const O=b[0].tz==="SYSTEM"?b[0].stz:b[0].tz;const o=R.tz.zone(O);if(o){const b=R.tz.guess();if(O===b){z.tz=null}else{z._localTz=b;z.tz=O}}else{return Promise.reject(d.createError("Automatic timezone setting fails. Server timezone '"+O+"' does't have a corresponding IANA timezone. Option timezone must be set according to server timezone",null,true,p,"08S01",d.ER_WRONG_AUTO_TIMEZONE))}return Promise.resolve()}))}if(z.tz&&!z.skipSetTimezone){let b=z.tz;if(z.tz==="Etc/UTC"){b="+00:00"}else if(z.tz.startsWith("Etc/GMT")){let p=R.tz.zone(z.tz);b=p.abbrs[0]+":00"}return this._queryPromise("SET time_zone=?",b).then((b=>Promise.resolve())).catch((b=>{console.log(`warning: setting timezone '${z.tz}' fails on server.\n look at https://mariadb.com/kb/en/mysql_tzinfo_to_sql/ to load IANA timezone.\nSetting timezone can be disabled with option \`skipSetTimezone\``);return Promise.resolve()}))}return Promise.resolve()};const _checkServerVersion=()=>{if(!z.forceVersionCheck){return Promise.resolve()}return this._queryPromise("SELECT @@VERSION AS v").then((b=>{p.serverVersion.raw=b[0].v;p.serverVersion.mariaDb=p.serverVersion.raw.includes("MariaDB");r.parseVersionString(p);return Promise.resolve()}))};const _executeInitQuery=()=>{if(z.initSql){const b=Array.isArray(z.initSql)?z.initSql:[z.initSql];const O=[];b.forEach((b=>{O.push(this._queryPromise(b))}));return Promise.all(O).catch((b=>Promise.reject(d.createError("Error executing initial sql command: "+b.message,null,true,p,"08S01",d.ER_INITIAL_SQL_ERROR,null))))}return Promise.resolve()};const _executeSessionTimeout=()=>{if(z.queryTimeout){if(p.isMariaDB()&&p.hasMinVersion(10,1,2)){const b="SET max_statement_time="+z.queryTimeout/1e3;this._queryPromise(b).catch((z=>Promise.reject(d.createError("Error setting session queryTimeout: "+z.message,b,true,p,"08S01",d.ER_INITIAL_TIMEOUT_ERROR,null))))}else{return Promise.reject(d.createError("Can only use queryTimeout for MariaDB server after 10.1.1. queryTimeout value: "+null,z.queryTimeout,false,p,"HY000",d.ER_TIMEOUT_NOT_SUPPORTED))}}return Promise.resolve()};const _getSocket=()=>D;const _initSocket=b=>{if(z.socketPath){D=c.connect(z.socketPath)}else{D=c.connect(z.port,z.host)}if(z.connectTimeout){P=setTimeout(_connectTimeoutReached,z.connectTimeout,b,Date.now())}const p=_socketErrorHandler.bind(this,b);D.on("data",y.onData.bind(y));D.on("error",p);D.on("end",p);D.on("connect",function(){clearTimeout(P);if(C===m.CONNECTING){C=m.AUTHENTICATING;X=true;D.setTimeout(z.socketTimeout,_socketTimeoutReached.bind(this,b));D.setNoDelay(true);if(z.keepAliveDelay){D.setKeepAlive(true,z.keepAliveDelay)}}}.bind(this));D.writeBuf=b=>D.write(b);D.flush=()=>{};k.setStream(D)};const _authSucceedHandler=(b,O)=>{if(z.logPackets)p.enableLogPacket();if(z.compress){if(p.serverCapabilities&f.COMPRESS){k.setStream(new s(D,z,p));y=new n(y,g,z,p);D.removeAllListeners("data");D.on("data",y.onData.bind(y))}else{console.error("connection is configured to use packet compression, but the server doesn't have this capability")}}w=z.pipelining?_addCommandEnablePipeline:_addCommandEnable;const o=I.toArray();o.forEach((b=>{w(b)}));const errorInitialQueries=b=>{if(!b.fatal)this.end().catch((b=>{}));process.nextTick(O,b)};C=m.INIT_CMD;_executeSessionVariableQuery().then((()=>_checkServerTimezone())).then((()=>_checkServerVersion())).then((()=>_executeInitQuery())).then((()=>_executeSessionTimeout())).then((()=>{C=m.CONNECTED;process.nextTick(b,this)})).catch(errorInitialQueries)};const _authFailHandler=(b,z)=>{process.nextTick(b,z);g.shift();U(z,true)};const _createSecureContext=(b,p)=>{const O=_socketErrorHandler.bind(this,b);const o=Object.assign({},z.ssl,{servername:z.host,socket:D});try{const b=q.connect(o,p);b.on("data",y.onData.bind(y));b.on("error",O);b.on("end",O);b.writeBuf=z=>b.write(z);b.flush=()=>{};D.removeAllListeners("data");D=b;k.setStream(b)}catch(b){O(b)}};const _unexpectedPacket=function(b){if(b&&b.peek()===255){let z=b.readError(p);if(z.fatal&&C!==m.CLOSING&&C!==m.CLOSED){this.emit("error",z);this.end()}}else if(C!==m.CLOSING&&C!==m.CLOSED){this.emit("error",d.createError("receiving packet from server without active commands\n"+"conn:"+(p.threadId?p.threadId:-1)+"("+b.pos+","+b.end+")\n"+W.log(z,b.buf,b.pos,b.end),null,true,p,"08S01",d.ER_UNEXPECTED_PACKET));this.destroy()}};const _changeTransaction=b=>{if(C===m.CLOSING||C===m.CLOSED){return Promise.reject(d.createError("Cannot execute new commands: connection closed",b,true,p,"08S01",d.ER_CMD_CONNECTION_CLOSED))}if(g.peekFront()||p.status&a.STATUS_IN_TRANS){return new Promise((function(p,O){const o=new N(p,O,null,z,b,null);if(z.trace)Error.captureStackTrace(o);w(o)}))}return Promise.resolve()};const _connectTimeoutReached=function(b,z){P=null;const O=g.peekFront();b(d.createError("Connection timeout: failed to create socket after "+(Date.now()-z)+"ms",null,true,p,"08S01",d.ER_CONNECTION_TIMEOUT,O?O.stack:null))};const _socketTimeoutReached=function(){const b=d.createError("socket timeout",null,true,p,"08S01",d.ER_SOCKET_TIMEOUT);const z=p.getLastPackets();if(z!==""){b.message=b.message+"\nlast received packets:\n"+z}U(b,true)};const _addCommandQueue=b=>{I.push(b);return b};const _addCommandEnable=b=>{b.once("end",(()=>{setImmediate(_nextSendCmd)}));if(o.isEmpty()&&(C===m.INIT_CMD||C===m.CONNECTED)){if(g.peekFront()){g.push(b);o.push(b);return b}g.push(b);b.start(k,z,p)}else{g.push(b);o.push(b)}return b};const _addCommandEnablePipeline=b=>{b.once("send_end",(()=>{setImmediate(_nextSendCmd)}));g.push(b);if(o.isEmpty()){b.start(k,z,p);if(b.sending){o.push(b);b.prependOnceListener("send_end",(()=>{o.shift()}))}}else{o.push(b)}return b};const _addCommandDisabled=b=>{b.throwNewError("Cannot execute new commands: connection closed",true,p,"08S01",d.ER_CMD_CONNECTION_CLOSED)};const _socketErrorHandler=function(b,z){if(C===m.CLOSING||C===m.CLOSED)return;if(D){D.writeBuf=()=>{};D.flush=()=>{}}if(!z){z=d.createError("socket has unexpectedly been closed",null,true,p,"08S01",d.ER_SOCKET_UNEXPECTED_CLOSE)}else{z.fatal=true;this.sqlState="HY000"}const O=p.getLastPackets();if(O!==""){z.message+="\nlast received packets:\n"+O}switch(C){case m.CONNECTING:case m.AUTHENTICATING:const p=g.peekFront();if(p&&p.stack&&z){z.stack+="\n From event:\n"+p.stack.substring(p.stack.indexOf("\n")+1)}b(z);break;default:U(z,false)}};const _fatalErrorHandler=function(b){return function(z,p){if(C===m.CLOSING||C===m.CLOSED){socketErrorDispatchToQueries(z);return}const O=C!==m.CONNECTING;C=m.CLOSING;w=_addCommandDisabled;if(D){D.removeAllListeners("error");D.removeAllListeners("timeout");D.removeAllListeners("close");D.removeAllListeners("data");if(!D.destroyed)D.destroy();D=undefined}C=m.CLOSED;const o=socketErrorDispatchToQueries(z);if(O){if(b.listenerCount("error")>0){b.emit("error",z);b.emit("end");_clear()}else{b.emit("end");_clear();if(!p&&!o)throw z}}else{_clear()}}};const socketErrorDispatchToQueries=b=>{let z;let O=false;while(z=g.shift()){if(z&&z.onPacketReceive){O=true;setImmediate(z.throwError.bind(z),b,p)}}return O};const _nextSendCmd=()=>{let b;if(b=o.shift()){if(b.sending){o.unshift(b)}else{b.start(k,z,p);if(b.sending){b.prependOnceListener("send_end",(()=>{o.shift()}));o.unshift(b)}}}};const _clear=()=>{o.clear();z.removeAllListeners();k=undefined;D=undefined};O.call(this);const z=Object.assign(new O,b);const p=new r;const o=new e;const g=new e;const I=new e;let C=m.NOT_CONNECTED;let X=false;let D=null;let P=null;let w=_addCommandQueue;const U=_fatalErrorHandler(this);let k=new i(z,p);let y=new t(_unexpectedPacket.bind(this),g,k,z,p);this.query=this._queryPromise;this.escape=W.escape.bind(this,z,p);this.escapeId=W.escapeId.bind(this,z,p);Object.defineProperty(this,"threadId",{get(){return p?p.threadId:undefined}});Object.defineProperty(this,"info",{get(){return p}})}o.inherits(Connection,O);b.exports=Connection},9248:function(b){b.exports.MYSQL=BigInt(1);b.exports.FOUND_ROWS=BigInt(2);b.exports.LONG_FLAG=BigInt(4);b.exports.CONNECT_WITH_DB=BigInt(8);b.exports.NO_SCHEMA=BigInt(1)<<BigInt(4);b.exports.COMPRESS=BigInt(1)<<BigInt(5);b.exports.ODBC=BigInt(1)<<BigInt(6);b.exports.LOCAL_FILES=BigInt(1)<<BigInt(7);b.exports.IGNORE_SPACE=BigInt(1)<<BigInt(8);b.exports.PROTOCOL_41=BigInt(1)<<BigInt(9);b.exports.INTERACTIVE=BigInt(1)<<BigInt(10);b.exports.SSL=BigInt(1)<<BigInt(11);b.exports.IGNORE_SIGPIPE=BigInt(1)<<BigInt(12);b.exports.TRANSACTIONS=BigInt(1)<<BigInt(13);b.exports.RESERVED=BigInt(1)<<BigInt(14);b.exports.SECURE_CONNECTION=BigInt(1)<<BigInt(15);b.exports.MULTI_STATEMENTS=BigInt(1)<<BigInt(16);b.exports.MULTI_RESULTS=BigInt(1)<<BigInt(17);b.exports.PS_MULTI_RESULTS=BigInt(1)<<BigInt(18);b.exports.PLUGIN_AUTH=BigInt(1)<<BigInt(19);b.exports.CONNECT_ATTRS=BigInt(1)<<BigInt(20);b.exports.PLUGIN_AUTH_LENENC_CLIENT_DATA=BigInt(1)<<BigInt(21);b.exports.CAN_HANDLE_EXPIRED_PASSWORDS=BigInt(1)<<BigInt(22);b.exports.SESSION_TRACK=BigInt(1)<<BigInt(23);b.exports.DEPRECATE_EOF=BigInt(1)<<BigInt(24);b.exports.SSL_VERIFY_SERVER_CERT=BigInt(1)<<BigInt(30);b.exports.MARIADB_CLIENT_STMT_BULK_OPERATIONS=BigInt(1)<<BigInt(34);b.exports.MARIADB_CLIENT_EXTENDED_TYPE_INFO=BigInt(1)<<BigInt(35)},2055:function(b){"use strict";let z=[];let p=[];class Collation{constructor(b,z,p,O){this.index=b;this.name=z;this.charset=p}static fromCharset(b){return p[b]}static fromIndex(b){if(b>=z.length)return undefined;return z[b]}static fromName(b){for(let p=0;p<z.length;p++){let O=z[p];if(O&&O.name===b){return O}}return undefined}}z[1]=new Collation(1,"BIG5_CHINESE_CI","big5",2);z[2]=new Collation(2,"LATIN2_CZECH_CS","latin2",1);z[3]=new Collation(3,"DEC8_SWEDISH_CI","dec8",1);z[4]=new Collation(4,"CP850_GENERAL_CI","cp850",1);z[5]=new Collation(5,"LATIN1_GERMAN1_CI","latin1",1);z[6]=new Collation(6,"HP8_ENGLISH_CI","hp8",1);z[7]=new Collation(7,"KOI8R_GENERAL_CI","koi8r",1);z[8]=new Collation(8,"LATIN1_SWEDISH_CI","latin1",1);z[9]=new Collation(9,"LATIN2_GENERAL_CI","latin2",1);z[10]=new Collation(10,"SWE7_SWEDISH_CI","swe7",1);z[11]=new Collation(11,"ASCII_GENERAL_CI","ascii",1);z[12]=new Collation(12,"UJIS_JAPANESE_CI","ujis",3);z[13]=new Collation(13,"SJIS_JAPANESE_CI","sjis",2);z[14]=new Collation(14,"CP1251_BULGARIAN_CI","cp1251",1);z[15]=new Collation(15,"LATIN1_DANISH_CI","latin1",1);z[16]=new Collation(16,"HEBREW_GENERAL_CI","hebrew",1);z[18]=new Collation(18,"TIS620_THAI_CI","tis620",1);z[19]=new Collation(19,"EUCKR_KOREAN_CI","euckr",2);z[20]=new Collation(20,"LATIN7_ESTONIAN_CS","latin7",1);z[21]=new Collation(21,"LATIN2_HUNGARIAN_CI","latin2",1);z[22]=new Collation(22,"KOI8U_GENERAL_CI","koi8u",1);z[23]=new Collation(23,"CP1251_UKRAINIAN_CI","cp1251",1);z[24]=new Collation(24,"GB2312_CHINESE_CI","gb2312",2);z[25]=new Collation(25,"GREEK_GENERAL_CI","greek",1);z[26]=new Collation(26,"CP1250_GENERAL_CI","cp1250",1);z[27]=new Collation(27,"LATIN2_CROATIAN_CI","latin2",1);z[28]=new Collation(28,"GBK_CHINESE_CI","gbk",2);z[29]=new Collation(29,"CP1257_LITHUANIAN_CI","cp1257",1);z[30]=new Collation(30,"LATIN5_TURKISH_CI","latin5",1);z[31]=new Collation(31,"LATIN1_GERMAN2_CI","latin1",1);z[32]=new Collation(32,"ARMSCII8_GENERAL_CI","armscii8",1);z[33]=new Collation(33,"UTF8_GENERAL_CI","utf8",3);z[34]=new Collation(34,"CP1250_CZECH_CS","cp1250",1);z[35]=new Collation(35,"UCS2_GENERAL_CI","ucs2",2);z[36]=new Collation(36,"CP866_GENERAL_CI","cp866",1);z[37]=new Collation(37,"KEYBCS2_GENERAL_CI","keybcs2",1);z[38]=new Collation(38,"MACCE_GENERAL_CI","macce",1);z[39]=new Collation(39,"MACROMAN_GENERAL_CI","macroman",1);z[40]=new Collation(40,"CP852_GENERAL_CI","cp852",1);z[41]=new Collation(41,"LATIN7_GENERAL_CI","latin7",1);z[42]=new Collation(42,"LATIN7_GENERAL_CS","latin7",1);z[43]=new Collation(43,"MACCE_BIN","macce",1);z[44]=new Collation(44,"CP1250_CROATIAN_CI","cp1250",1);z[45]=new Collation(45,"UTF8MB4_GENERAL_CI","utf8",4);z[46]=new Collation(46,"UTF8MB4_BIN","utf8",4);z[47]=new Collation(47,"LATIN1_BIN","latin1",1);z[48]=new Collation(48,"LATIN1_GENERAL_CI","latin1",1);z[49]=new Collation(49,"LATIN1_GENERAL_CS","latin1",1);z[50]=new Collation(50,"CP1251_BIN","cp1251",1);z[51]=new Collation(51,"CP1251_GENERAL_CI","cp1251",1);z[52]=new Collation(52,"CP1251_GENERAL_CS","cp1251",1);z[53]=new Collation(53,"MACROMAN_BIN","macroman",1);z[54]=new Collation(54,"UTF16_GENERAL_CI","utf16",4);z[55]=new Collation(55,"UTF16_BIN","utf16",4);z[56]=new Collation(56,"UTF16LE_GENERAL_CI","utf16le",4);z[57]=new Collation(57,"CP1256_GENERAL_CI","cp1256",1);z[58]=new Collation(58,"CP1257_BIN","cp1257",1);z[59]=new Collation(59,"CP1257_GENERAL_CI","cp1257",1);z[60]=new Collation(60,"UTF32_GENERAL_CI","utf32",4);z[61]=new Collation(61,"UTF32_BIN","utf32",4);z[62]=new Collation(62,"UTF16LE_BIN","utf16le",4);z[63]=new Collation(63,"BINARY","binary",1);z[64]=new Collation(64,"ARMSCII8_BIN","armscii8",1);z[65]=new Collation(65,"ASCII_BIN","ascii",1);z[66]=new Collation(66,"CP1250_BIN","cp1250",1);z[67]=new Collation(67,"CP1256_BIN","cp1256",1);z[68]=new Collation(68,"CP866_BIN","cp866",1);z[69]=new Collation(69,"DEC8_BIN","dec8",1);z[70]=new Collation(70,"GREEK_BIN","greek",1);z[71]=new Collation(71,"HEBREW_BIN","hebrew",1);z[72]=new Collation(72,"HP8_BIN","hp8",1);z[73]=new Collation(73,"KEYBCS2_BIN","keybcs2",1);z[74]=new Collation(74,"KOI8R_BIN","koi8r",1);z[75]=new Collation(75,"KOI8U_BIN","koi8u",1);z[76]=new Collation(76,"UTF8_TOLOWER_CI","utf8",3);z[77]=new Collation(77,"LATIN2_BIN","latin2",1);z[78]=new Collation(78,"LATIN5_BIN","latin5",1);z[79]=new Collation(79,"LATIN7_BIN","latin7",1);z[80]=new Collation(80,"CP850_BIN","cp850",1);z[81]=new Collation(81,"CP852_BIN","cp852",1);z[82]=new Collation(82,"SWE7_BIN","swe7",1);z[83]=new Collation(83,"UTF8_BIN","utf8",3);z[84]=new Collation(84,"BIG5_BIN","big5",2);z[85]=new Collation(85,"EUCKR_BIN","euckr",2);z[86]=new Collation(86,"GB2312_BIN","gb2312",2);z[87]=new Collation(87,"GBK_BIN","gbk",2);z[88]=new Collation(88,"SJIS_BIN","sjis",2);z[89]=new Collation(89,"TIS620_BIN","tis620",1);z[90]=new Collation(90,"UCS2_BIN","ucs2",2);z[91]=new Collation(91,"UJIS_BIN","ujis",3);z[92]=new Collation(92,"GEOSTD8_GENERAL_CI","geostd8",1);z[93]=new Collation(93,"GEOSTD8_BIN","geostd8",1);z[94]=new Collation(94,"LATIN1_SPANISH_CI","latin1",1);z[95]=new Collation(95,"CP932_JAPANESE_CI","cp932",2);z[96]=new Collation(96,"CP932_BIN","cp932",2);z[97]=new Collation(97,"EUCJPMS_JAPANESE_CI","eucjpms",3);z[98]=new Collation(98,"EUCJPMS_BIN","eucjpms",3);z[99]=new Collation(99,"CP1250_POLISH_CI","cp1250",1);z[101]=new Collation(101,"UTF16_UNICODE_CI","utf16",4);z[102]=new Collation(102,"UTF16_ICELANDIC_CI","utf16",4);z[103]=new Collation(103,"UTF16_LATVIAN_CI","utf16",4);z[104]=new Collation(104,"UTF16_ROMANIAN_CI","utf16",4);z[105]=new Collation(105,"UTF16_SLOVENIAN_CI","utf16",4);z[106]=new Collation(106,"UTF16_POLISH_CI","utf16",4);z[107]=new Collation(107,"UTF16_ESTONIAN_CI","utf16",4);z[108]=new Collation(108,"UTF16_SPANISH_CI","utf16",4);z[109]=new Collation(109,"UTF16_SWEDISH_CI","utf16",4);z[110]=new Collation(110,"UTF16_TURKISH_CI","utf16",4);z[111]=new Collation(111,"UTF16_CZECH_CI","utf16",4);z[112]=new Collation(112,"UTF16_DANISH_CI","utf16",4);z[113]=new Collation(113,"UTF16_LITHUANIAN_CI","utf16",4);z[114]=new Collation(114,"UTF16_SLOVAK_CI","utf16",4);z[115]=new Collation(115,"UTF16_SPANISH2_CI","utf16",4);z[116]=new Collation(116,"UTF16_ROMAN_CI","utf16",4);z[117]=new Collation(117,"UTF16_PERSIAN_CI","utf16",4);z[118]=new Collation(118,"UTF16_ESPERANTO_CI","utf16",4);z[119]=new Collation(119,"UTF16_HUNGARIAN_CI","utf16",4);z[120]=new Collation(120,"UTF16_SINHALA_CI","utf16",4);z[121]=new Collation(121,"UTF16_GERMAN2_CI","utf16",4);z[122]=new Collation(122,"UTF16_CROATIAN_MYSQL561_CI","utf16",4);z[123]=new Collation(123,"UTF16_UNICODE_520_CI","utf16",4);z[124]=new Collation(124,"UTF16_VIETNAMESE_CI","utf16",4);z[128]=new Collation(128,"UCS2_UNICODE_CI","ucs2",2);z[129]=new Collation(129,"UCS2_ICELANDIC_CI","ucs2",2);z[130]=new Collation(130,"UCS2_LATVIAN_CI","ucs2",2);z[131]=new Collation(131,"UCS2_ROMANIAN_CI","ucs2",2);z[132]=new Collation(132,"UCS2_SLOVENIAN_CI","ucs2",2);z[133]=new Collation(133,"UCS2_POLISH_CI","ucs2",2);z[134]=new Collation(134,"UCS2_ESTONIAN_CI","ucs2",2);z[135]=new Collation(135,"UCS2_SPANISH_CI","ucs2",2);z[136]=new Collation(136,"UCS2_SWEDISH_CI","ucs2",2);z[137]=new Collation(137,"UCS2_TURKISH_CI","ucs2",2);z[138]=new Collation(138,"UCS2_CZECH_CI","ucs2",2);z[139]=new Collation(139,"UCS2_DANISH_CI","ucs2",2);z[140]=new Collation(140,"UCS2_LITHUANIAN_CI","ucs2",2);z[141]=new Collation(141,"UCS2_SLOVAK_CI","ucs2",2);z[142]=new Collation(142,"UCS2_SPANISH2_CI","ucs2",2);z[143]=new Collation(143,"UCS2_ROMAN_CI","ucs2",2);z[144]=new Collation(144,"UCS2_PERSIAN_CI","ucs2",2);z[145]=new Collation(145,"UCS2_ESPERANTO_CI","ucs2",2);z[146]=new Collation(146,"UCS2_HUNGARIAN_CI","ucs2",2);z[147]=new Collation(147,"UCS2_SINHALA_CI","ucs2",2);z[148]=new Collation(148,"UCS2_GERMAN2_CI","ucs2",2);z[149]=new Collation(149,"UCS2_CROATIAN_MYSQL561_CI","ucs2",2);z[150]=new Collation(150,"UCS2_UNICODE_520_CI","ucs2",2);z[151]=new Collation(151,"UCS2_VIETNAMESE_CI","ucs2",2);z[159]=new Collation(159,"UCS2_GENERAL_MYSQL500_CI","ucs2",2);z[160]=new Collation(160,"UTF32_UNICODE_CI","utf32",4);z[161]=new Collation(161,"UTF32_ICELANDIC_CI","utf32",4);z[162]=new Collation(162,"UTF32_LATVIAN_CI","utf32",4);z[163]=new Collation(163,"UTF32_ROMANIAN_CI","utf32",4);z[164]=new Collation(164,"UTF32_SLOVENIAN_CI","utf32",4);z[165]=new Collation(165,"UTF32_POLISH_CI","utf32",4);z[166]=new Collation(166,"UTF32_ESTONIAN_CI","utf32",4);z[167]=new Collation(167,"UTF32_SPANISH_CI","utf32",4);z[168]=new Collation(168,"UTF32_SWEDISH_CI","utf32",4);z[169]=new Collation(169,"UTF32_TURKISH_CI","utf32",4);z[170]=new Collation(170,"UTF32_CZECH_CI","utf32",4);z[171]=new Collation(171,"UTF32_DANISH_CI","utf32",4);z[172]=new Collation(172,"UTF32_LITHUANIAN_CI","utf32",4);z[173]=new Collation(173,"UTF32_SLOVAK_CI","utf32",4);z[174]=new Collation(174,"UTF32_SPANISH2_CI","utf32",4);z[175]=new Collation(175,"UTF32_ROMAN_CI","utf32",4);z[176]=new Collation(176,"UTF32_PERSIAN_CI","utf32",4);z[177]=new Collation(177,"UTF32_ESPERANTO_CI","utf32",4);z[178]=new Collation(178,"UTF32_HUNGARIAN_CI","utf32",4);z[179]=new Collation(179,"UTF32_SINHALA_CI","utf32",4);z[180]=new Collation(180,"UTF32_GERMAN2_CI","utf32",4);z[181]=new Collation(181,"UTF32_CROATIAN_MYSQL561_CI","utf32",4);z[182]=new Collation(182,"UTF32_UNICODE_520_CI","utf32",4);z[183]=new Collation(183,"UTF32_VIETNAMESE_CI","utf32",4);z[192]=new Collation(192,"UTF8_UNICODE_CI","utf8",3);z[193]=new Collation(193,"UTF8_ICELANDIC_CI","utf8",3);z[194]=new Collation(194,"UTF8_LATVIAN_CI","utf8",3);z[195]=new Collation(195,"UTF8_ROMANIAN_CI","utf8",3);z[196]=new Collation(196,"UTF8_SLOVENIAN_CI","utf8",3);z[197]=new Collation(197,"UTF8_POLISH_CI","utf8",3);z[198]=new Collation(198,"UTF8_ESTONIAN_CI","utf8",3);z[199]=new Collation(199,"UTF8_SPANISH_CI","utf8",3);z[200]=new Collation(200,"UTF8_SWEDISH_CI","utf8",3);z[201]=new Collation(201,"UTF8_TURKISH_CI","utf8",3);z[202]=new Collation(202,"UTF8_CZECH_CI","utf8",3);z[203]=new Collation(203,"UTF8_DANISH_CI","utf8",3);z[204]=new Collation(204,"UTF8_LITHUANIAN_CI","utf8",3);z[205]=new Collation(205,"UTF8_SLOVAK_CI","utf8",3);z[206]=new Collation(206,"UTF8_SPANISH2_CI","utf8",3);z[207]=new Collation(207,"UTF8_ROMAN_CI","utf8",3);z[208]=new Collation(208,"UTF8_PERSIAN_CI","utf8",3);z[209]=new Collation(209,"UTF8_ESPERANTO_CI","utf8",3);z[210]=new Collation(210,"UTF8_HUNGARIAN_CI","utf8",3);z[211]=new Collation(211,"UTF8_SINHALA_CI","utf8",3);z[212]=new Collation(212,"UTF8_GERMAN2_CI","utf8",3);z[213]=new Collation(213,"UTF8_CROATIAN_MYSQL561_CI","utf8",3);z[214]=new Collation(214,"UTF8_UNICODE_520_CI","utf8",3);z[215]=new Collation(215,"UTF8_VIETNAMESE_CI","utf8",3);z[223]=new Collation(223,"UTF8_GENERAL_MYSQL500_CI","utf8",3);z[224]=new Collation(224,"UTF8MB4_UNICODE_CI","utf8",4);z[225]=new Collation(225,"UTF8MB4_ICELANDIC_CI","utf8",4);z[226]=new Collation(226,"UTF8MB4_LATVIAN_CI","utf8",4);z[227]=new Collation(227,"UTF8MB4_ROMANIAN_CI","utf8",4);z[228]=new Collation(228,"UTF8MB4_SLOVENIAN_CI","utf8",4);z[229]=new Collation(229,"UTF8MB4_POLISH_CI","utf8",4);z[230]=new Collation(230,"UTF8MB4_ESTONIAN_CI","utf8",4);z[231]=new Collation(231,"UTF8MB4_SPANISH_CI","utf8",4);z[232]=new Collation(232,"UTF8MB4_SWEDISH_CI","utf8",4);z[233]=new Collation(233,"UTF8MB4_TURKISH_CI","utf8",4);z[234]=new Collation(234,"UTF8MB4_CZECH_CI","utf8",4);z[235]=new Collation(235,"UTF8MB4_DANISH_CI","utf8",4);z[236]=new Collation(236,"UTF8MB4_LITHUANIAN_CI","utf8",4);z[237]=new Collation(237,"UTF8MB4_SLOVAK_CI","utf8",4);z[238]=new Collation(238,"UTF8MB4_SPANISH2_CI","utf8",4);z[239]=new Collation(239,"UTF8MB4_ROMAN_CI","utf8",4);z[240]=new Collation(240,"UTF8MB4_PERSIAN_CI","utf8",4);z[241]=new Collation(241,"UTF8MB4_ESPERANTO_CI","utf8",4);z[242]=new Collation(242,"UTF8MB4_HUNGARIAN_CI","utf8",4);z[243]=new Collation(243,"UTF8MB4_SINHALA_CI","utf8",4);z[244]=new Collation(244,"UTF8MB4_GERMAN2_CI","utf8",4);z[245]=new Collation(245,"UTF8MB4_CROATIAN_MYSQL561_CI","utf8",4);z[246]=new Collation(246,"UTF8MB4_UNICODE_520_CI","utf8",4);z[247]=new Collation(247,"UTF8MB4_VIETNAMESE_CI","utf8",4);z[248]=new Collation(248,"GB18030_CHINESE_CI","gb18030",4);z[249]=new Collation(249,"GB18030_BIN","gb18030",4);z[250]=new Collation(250,"GB18030_UNICODE_520_CI","gb18030",4);z[255]=new Collation(255,"UTF8MB4_0900_AI_CI","utf8",4);z[256]=new Collation(256,"UTF8MB4_DE_PB_0900_AI_CI","utf8",4);z[257]=new Collation(257,"UTF8MB4_IS_0900_AI_CI","utf8",4);z[258]=new Collation(258,"UTF8MB4_LV_0900_AI_CI","utf8",4);z[259]=new Collation(259,"UTF8MB4_RO_0900_AI_CI","utf8",4);z[260]=new Collation(260,"UTF8MB4_SL_0900_AI_CI","utf8",4);z[261]=new Collation(261,"UTF8MB4_PL_0900_AI_CI","utf8",4);z[262]=new Collation(262,"UTF8MB4_ET_0900_AI_CI","utf8",4);z[263]=new Collation(263,"UTF8MB4_ES_0900_AI_CI","utf8",4);z[264]=new Collation(264,"UTF8MB4_SV_0900_AI_CI","utf8",4);z[265]=new Collation(265,"UTF8MB4_TR_0900_AI_CI","utf8",4);z[266]=new Collation(266,"UTF8MB4_CS_0900_AI_CI","utf8",4);z[267]=new Collation(267,"UTF8MB4_DA_0900_AI_CI","utf8",4);z[268]=new Collation(268,"UTF8MB4_LT_0900_AI_CI","utf8",4);z[269]=new Collation(269,"UTF8MB4_SK_0900_AI_CI","utf8",4);z[270]=new Collation(270,"UTF8MB4_ES_TRAD_0900_AI_CI","utf8",4);z[271]=new Collation(271,"UTF8MB4_LA_0900_AI_CI","utf8",4);z[273]=new Collation(273,"UTF8MB4_EO_0900_AI_CI","utf8",4);z[274]=new Collation(274,"UTF8MB4_HU_0900_AI_CI","utf8",4);z[275]=new Collation(275,"UTF8MB4_HR_0900_AI_CI","utf8",4);z[277]=new Collation(277,"UTF8MB4_VI_0900_AI_CI","utf8",4);z[278]=new Collation(278,"UTF8MB4_0900_AS_CS","utf8",4);z[279]=new Collation(279,"UTF8MB4_DE_PB_0900_AS_CS","utf8",4);z[280]=new Collation(280,"UTF8MB4_IS_0900_AS_CS","utf8",4);z[281]=new Collation(281,"UTF8MB4_LV_0900_AS_CS","utf8",4);z[282]=new Collation(282,"UTF8MB4_RO_0900_AS_CS","utf8",4);z[283]=new Collation(283,"UTF8MB4_SL_0900_AS_CS","utf8",4);z[284]=new Collation(284,"UTF8MB4_PL_0900_AS_CS","utf8",4);z[285]=new Collation(285,"UTF8MB4_ET_0900_AS_CS","utf8",4);z[286]=new Collation(286,"UTF8MB4_ES_0900_AS_CS","utf8",4);z[287]=new Collation(287,"UTF8MB4_SV_0900_AS_CS","utf8",4);z[288]=new Collation(288,"UTF8MB4_TR_0900_AS_CS","utf8",4);z[289]=new Collation(289,"UTF8MB4_CS_0900_AS_CS","utf8",4);z[290]=new Collation(290,"UTF8MB4_DA_0900_AS_CS","utf8",4);z[291]=new Collation(291,"UTF8MB4_LT_0900_AS_CS","utf8",4);z[292]=new Collation(292,"UTF8MB4_SK_0900_AS_CS","utf8",4);z[293]=new Collation(293,"UTF8MB4_ES_TRAD_0900_AS_CS","utf8",4);z[294]=new Collation(294,"UTF8MB4_LA_0900_AS_CS","utf8",4);z[296]=new Collation(296,"UTF8MB4_EO_0900_AS_CS","utf8",4);z[297]=new Collation(297,"UTF8MB4_HU_0900_AS_CS","utf8",4);z[298]=new Collation(298,"UTF8MB4_HR_0900_AS_CS","utf8",4);z[300]=new Collation(300,"UTF8MB4_VI_0900_AS_CS","utf8",4);z[303]=new Collation(303,"UTF8MB4_JA_0900_AS_CS","utf8",4);z[304]=new Collation(304,"UTF8MB4_JA_0900_AS_CS_KS","utf8",4);z[305]=new Collation(305,"UTF8MB4_0900_AS_CI","utf8",4);z[306]=new Collation(306,"UTF8MB4_RU_0900_AI_CI","utf8",4);z[307]=new Collation(307,"UTF8MB4_RU_0900_AS_CS","utf8",4);z[308]=new Collation(308,"UTF8MB4_ZH_0900_AS_CS","utf8",4);z[309]=new Collation(309,"UTF8MB4_0900_BIN","utf8",4);z[576]=new Collation(576,"UTF8_CROATIAN_CI","utf8",3);z[577]=new Collation(577,"UTF8_MYANMAR_CI","utf8",3);z[578]=new Collation(578,"UTF8_THAI_520_W2","utf8",3);z[608]=new Collation(608,"UTF8MB4_CROATIAN_CI","utf8",4);z[609]=new Collation(609,"UTF8MB4_MYANMAR_CI","utf8",4);z[610]=new Collation(610,"UTF8MB4_THAI_520_W2","utf8",4);z[640]=new Collation(640,"UCS2_CROATIAN_CI","ucs2",2);z[641]=new Collation(641,"UCS2_MYANMAR_CI","ucs2",2);z[642]=new Collation(642,"UCS2_THAI_520_W2","ucs2",2);z[672]=new Collation(672,"UTF16_CROATIAN_CI","utf16",4);z[673]=new Collation(673,"UTF16_MYANMAR_CI","utf16",4);z[674]=new Collation(674,"UTF16_THAI_520_W2","utf16",4);z[736]=new Collation(736,"UTF32_CROATIAN_CI","utf32",4);z[737]=new Collation(737,"UTF32_MYANMAR_CI","utf32",4);z[738]=new Collation(738,"UTF32_THAI_520_W2","utf32",4);z[1025]=new Collation(1025,"BIG5_CHINESE_NOPAD_CI","big5",2);z[1027]=new Collation(1027,"DEC8_SWEDISH_NOPAD_CI","dec8",1);z[1028]=new Collation(1028,"CP850_GENERAL_NOPAD_CI","cp850",1);z[1030]=new Collation(1030,"HP8_ENGLISH_NOPAD_CI","hp8",1);z[1031]=new Collation(1031,"KOI8R_GENERAL_NOPAD_CI","koi8r",1);z[1032]=new Collation(1032,"LATIN1_SWEDISH_NOPAD_CI","latin1",1);z[1033]=new Collation(1033,"LATIN2_GENERAL_NOPAD_CI","latin2",1);z[1034]=new Collation(1034,"SWE7_SWEDISH_NOPAD_CI","swe7",1);z[1035]=new Collation(1035,"ASCII_GENERAL_NOPAD_CI","ascii",1);z[1036]=new Collation(1036,"UJIS_JAPANESE_NOPAD_CI","ujis",3);z[1037]=new Collation(1037,"SJIS_JAPANESE_NOPAD_CI","sjis",2);z[1040]=new Collation(1040,"HEBREW_GENERAL_NOPAD_CI","hebrew",1);z[1042]=new Collation(1042,"TIS620_THAI_NOPAD_CI","tis620",1);z[1043]=new Collation(1043,"EUCKR_KOREAN_NOPAD_CI","euckr",2);z[1046]=new Collation(1046,"KOI8U_GENERAL_NOPAD_CI","koi8u",1);z[1048]=new Collation(1048,"GB2312_CHINESE_NOPAD_CI","gb2312",2);z[1049]=new Collation(1049,"GREEK_GENERAL_NOPAD_CI","greek",1);z[1050]=new Collation(1050,"CP1250_GENERAL_NOPAD_CI","cp1250",1);z[1052]=new Collation(1052,"GBK_CHINESE_NOPAD_CI","gbk",2);z[1054]=new Collation(1054,"LATIN5_TURKISH_NOPAD_CI","latin5",1);z[1056]=new Collation(1056,"ARMSCII8_GENERAL_NOPAD_CI","armscii8",1);z[1057]=new Collation(1057,"UTF8_GENERAL_NOPAD_CI","utf8",3);z[1059]=new Collation(1059,"UCS2_GENERAL_NOPAD_CI","ucs2",2);z[1060]=new Collation(1060,"CP866_GENERAL_NOPAD_CI","cp866",1);z[1061]=new Collation(1061,"KEYBCS2_GENERAL_NOPAD_CI","keybcs2",1);z[1062]=new Collation(1062,"MACCE_GENERAL_NOPAD_CI","macce",1);z[1063]=new Collation(1063,"MACROMAN_GENERAL_NOPAD_CI","macroman",1);z[1064]=new Collation(1064,"CP852_GENERAL_NOPAD_CI","cp852",1);z[1065]=new Collation(1065,"LATIN7_GENERAL_NOPAD_CI","latin7",1);z[1067]=new Collation(1067,"MACCE_NOPAD_BIN","macce",1);z[1069]=new Collation(1069,"UTF8MB4_GENERAL_NOPAD_CI","utf8",4);z[1070]=new Collation(1070,"UTF8MB4_NOPAD_BIN","utf8",4);z[1071]=new Collation(1071,"LATIN1_NOPAD_BIN","latin1",1);z[1074]=new Collation(1074,"CP1251_NOPAD_BIN","cp1251",1);z[1075]=new Collation(1075,"CP1251_GENERAL_NOPAD_CI","cp1251",1);z[1077]=new Collation(1077,"MACROMAN_NOPAD_BIN","macroman",1);z[1078]=new Collation(1078,"UTF16_GENERAL_NOPAD_CI","utf16",4);z[1079]=new Collation(1079,"UTF16_NOPAD_BIN","utf16",4);z[1080]=new Collation(1080,"UTF16LE_GENERAL_NOPAD_CI","utf16le",4);z[1081]=new Collation(1081,"CP1256_GENERAL_NOPAD_CI","cp1256",1);z[1082]=new Collation(1082,"CP1257_NOPAD_BIN","cp1257",1);z[1083]=new Collation(1083,"CP1257_GENERAL_NOPAD_CI","cp1257",1);z[1084]=new Collation(1084,"UTF32_GENERAL_NOPAD_CI","utf32",4);z[1085]=new Collation(1085,"UTF32_NOPAD_BIN","utf32",4);z[1086]=new Collation(1086,"UTF16LE_NOPAD_BIN","utf16le",4);z[1088]=new Collation(1088,"ARMSCII8_NOPAD_BIN","armscii8",1);z[1089]=new Collation(1089,"ASCII_NOPAD_BIN","ascii",1);z[1090]=new Collation(1090,"CP1250_NOPAD_BIN","cp1250",1);z[1091]=new Collation(1091,"CP1256_NOPAD_BIN","cp1256",1);z[1092]=new Collation(1092,"CP866_NOPAD_BIN","cp866",1);z[1093]=new Collation(1093,"DEC8_NOPAD_BIN","dec8",1);z[1094]=new Collation(1094,"GREEK_NOPAD_BIN","greek",1);z[1095]=new Collation(1095,"HEBREW_NOPAD_BIN","hebrew",1);z[1096]=new Collation(1096,"HP8_NOPAD_BIN","hp8",1);z[1097]=new Collation(1097,"KEYBCS2_NOPAD_BIN","keybcs2",1);z[1098]=new Collation(1098,"KOI8R_NOPAD_BIN","koi8r",1);z[1099]=new Collation(1099,"KOI8U_NOPAD_BIN","koi8u",1);z[1101]=new Collation(1101,"LATIN2_NOPAD_BIN","latin2",1);z[1102]=new Collation(1102,"LATIN5_NOPAD_BIN","latin5",1);z[1103]=new Collation(1103,"LATIN7_NOPAD_BIN","latin7",1);z[1104]=new Collation(1104,"CP850_NOPAD_BIN","cp850",1);z[1105]=new Collation(1105,"CP852_NOPAD_BIN","cp852",1);z[1106]=new Collation(1106,"SWE7_NOPAD_BIN","swe7",1);z[1107]=new Collation(1107,"UTF8_NOPAD_BIN","utf8",3);z[1108]=new Collation(1108,"BIG5_NOPAD_BIN","big5",2);z[1109]=new Collation(1109,"EUCKR_NOPAD_BIN","euckr",2);z[1110]=new Collation(1110,"GB2312_NOPAD_BIN","gb2312",2);z[1111]=new Collation(1111,"GBK_NOPAD_BIN","gbk",2);z[1112]=new Collation(1112,"SJIS_NOPAD_BIN","sjis",2);z[1113]=new Collation(1113,"TIS620_NOPAD_BIN","tis620",1);z[1114]=new Collation(1114,"UCS2_NOPAD_BIN","ucs2",2);z[1115]=new Collation(1115,"UJIS_NOPAD_BIN","ujis",3);z[1116]=new Collation(1116,"GEOSTD8_GENERAL_NOPAD_CI","geostd8",1);z[1117]=new Collation(1117,"GEOSTD8_NOPAD_BIN","geostd8",1);z[1119]=new Collation(1119,"CP932_JAPANESE_NOPAD_CI","cp932",2);z[1120]=new Collation(1120,"CP932_NOPAD_BIN","cp932",2);z[1121]=new Collation(1121,"EUCJPMS_JAPANESE_NOPAD_CI","eucjpms",3);z[1122]=new Collation(1122,"EUCJPMS_NOPAD_BIN","eucjpms",3);z[1125]=new Collation(1125,"UTF16_UNICODE_NOPAD_CI","utf16",4);z[1147]=new Collation(1147,"UTF16_UNICODE_520_NOPAD_CI","utf16",4);z[1152]=new Collation(1152,"UCS2_UNICODE_NOPAD_CI","ucs2",2);z[1174]=new Collation(1174,"UCS2_UNICODE_520_NOPAD_CI","ucs2",2);z[1184]=new Collation(1184,"UTF32_UNICODE_NOPAD_CI","utf32",4);z[1206]=new Collation(1206,"UTF32_UNICODE_520_NOPAD_CI","utf32",4);z[1216]=new Collation(1216,"UTF8_UNICODE_NOPAD_CI","utf8",3);z[1238]=new Collation(1238,"UTF8_UNICODE_520_NOPAD_CI","utf8",3);z[1248]=new Collation(1248,"UTF8MB4_UNICODE_NOPAD_CI","utf8",4);z[1270]=new Collation(1270,"UTF8MB4_UNICODE_520_NOPAD_CI","utf8",4);for(let b=0;b<z.length;b++){let p=z[b];if(p){Collation.prototype[p.name]=p}}p["big5"]=z[1];p["dec8"]=z[3];p["cp850"]=z[4];p["hp8"]=z[6];p["koi8r"]=z[7];p["latin1"]=z[8];p["latin2"]=z[9];p["swe7"]=z[10];p["ascii"]=z[11];p["ujis"]=z[12];p["sjis"]=z[13];p["hebrew"]=z[16];p["tis620"]=z[18];p["euckr"]=z[19];p["koi8u"]=z[22];p["gb2312"]=z[24];p["greek"]=z[25];p["cp1250"]=z[26];p["gbk"]=z[28];p["latin5"]=z[30];p["armscii8"]=z[32];p["utf8"]=z[33];p["ucs2"]=z[35];p["cp866"]=z[36];p["keybcs2"]=z[37];p["macce"]=z[38];p["macroman"]=z[39];p["cp852"]=z[40];p["latin7"]=z[41];p["utf8mb4"]=z[45];p["cp1251"]=z[51];p["utf16"]=z[54];p["utf16le"]=z[56];p["cp1256"]=z[57];p["cp1257"]=z[59];p["utf32"]=z[60];p["binary"]=z[63];p["geostd8"]=z[92];p["cp932"]=z[95];p["eucjpms"]=z[97];p["gb18030"]=z[248];b.exports=Collation},2584:function(b){"use strict";const z={NOT_CONNECTED:1,CONNECTING:2,AUTHENTICATING:3,INIT_CMD:4,CONNECTED:5,CLOSING:6,CLOSED:7};b.exports.Status=z},8013:function(b){"use strict";let z={};z[120]="HA_ERR_KEY_NOT_FOUND";z[121]="HA_ERR_FOUND_DUPP_KEY";z[122]="HA_ERR_INTERNAL_ERROR";z[123]="HA_ERR_RECORD_CHANGED";z[124]="HA_ERR_WRONG_INDEX";z[126]="HA_ERR_CRASHED";z[127]="HA_ERR_WRONG_IN_RECORD";z[128]="HA_ERR_OUT_OF_MEM";z[130]="HA_ERR_NOT_A_TABLE";z[131]="HA_ERR_WRONG_COMMAND";z[132]="HA_ERR_OLD_FILE";z[133]="HA_ERR_NO_ACTIVE_RECORD";z[134]="HA_ERR_RECORD_DELETED";z[135]="HA_ERR_RECORD_FILE_FULL";z[136]="HA_ERR_INDEX_FILE_FULL";z[137]="HA_ERR_END_OF_FILE";z[138]="HA_ERR_UNSUPPORTED";z[139]="HA_ERR_TO_BIG_ROW";z[140]="HA_WRONG_CREATE_OPTION";z[141]="HA_ERR_FOUND_DUPP_UNIQUE";z[142]="HA_ERR_UNKNOWN_CHARSET";z[143]="HA_ERR_WRONG_MRG_TABLE_DEF";z[144]="HA_ERR_CRASHED_ON_REPAIR";z[145]="HA_ERR_CRASHED_ON_USAGE";z[146]="HA_ERR_LOCK_WAIT_TIMEOUT";z[147]="HA_ERR_LOCK_TABLE_FULL";z[148]="HA_ERR_READ_ONLY_TRANSACTION";z[149]="HA_ERR_LOCK_DEADLOCK";z[150]="HA_ERR_CANNOT_ADD_FOREIGN";z[151]="HA_ERR_NO_REFERENCED_ROW";z[152]="HA_ERR_ROW_IS_REFERENCED";z[153]="HA_ERR_NO_SAVEPOINT";z[154]="HA_ERR_NON_UNIQUE_BLOCK_SIZE";z[155]="HA_ERR_NO_SUCH_TABLE";z[156]="HA_ERR_TABLE_EXIST";z[157]="HA_ERR_NO_CONNECTION";z[158]="HA_ERR_NULL_IN_SPATIAL";z[159]="HA_ERR_TABLE_DEF_CHANGED";z[160]="HA_ERR_NO_PARTITION_FOUND";z[161]="HA_ERR_RBR_LOGGING_FAILED";z[162]="HA_ERR_DROP_INDEX_FK";z[163]="HA_ERR_FOREIGN_DUPLICATE_KEY";z[164]="HA_ERR_TABLE_NEEDS_UPGRADE";z[165]="HA_ERR_TABLE_READONLY";z[166]="HA_ERR_AUTOINC_READ_FAILED";z[167]="HA_ERR_AUTOINC_ERANGE";z[168]="HA_ERR_GENERIC";z[169]="HA_ERR_RECORD_IS_THE_SAME";z[170]="HA_ERR_LOGGING_IMPOSSIBLE";z[171]="HA_ERR_CORRUPT_EVENT";z[172]="HA_ERR_NEW_FILE";z[173]="HA_ERR_ROWS_EVENT_APPLY";z[174]="HA_ERR_INITIALIZATION";z[175]="HA_ERR_FILE_TOO_SHORT";z[176]="HA_ERR_WRONG_CRC";z[177]="HA_ERR_TOO_MANY_CONCURRENT_TRXS";z[178]="HA_ERR_NOT_IN_LOCK_PARTITIONS";z[179]="HA_ERR_INDEX_COL_TOO_LONG";z[180]="HA_ERR_INDEX_CORRUPT";z[181]="HA_ERR_UNDO_REC_TOO_BIG";z[182]="HA_FTS_INVALID_DOCID";z[183]="HA_ERR_TABLE_IN_FK_CHECK";z[184]="HA_ERR_TABLESPACE_EXISTS";z[185]="HA_ERR_TOO_MANY_FIELDS";z[186]="HA_ERR_ROW_IN_WRONG_PARTITION";z[187]="HA_ERR_ROW_NOT_VISIBLE";z[188]="HA_ERR_ABORTED_BY_USER";z[189]="HA_ERR_DISK_FULL";z[190]="HA_ERR_INCOMPATIBLE_DEFINITION";z[191]="HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE";z[192]="HA_ERR_DECRYPTION_FAILED";z[193]="HA_ERR_FK_DEPTH_EXCEEDED";z[194]="HA_ERR_TABLESPACE_MISSING";z[195]="HA_ERR_SEQUENCE_INVALID_DATA";z[196]="HA_ERR_SEQUENCE_RUN_OUT";z[1e3]="ER_HASHCHK";z[1001]="ER_NISAMCHK";z[1002]="ER_NO";z[1003]="ER_YES";z[1004]="ER_CANT_CREATE_FILE";z[1005]="ER_CANT_CREATE_TABLE";z[1006]="ER_CANT_CREATE_DB";z[1007]="ER_DB_CREATE_EXISTS";z[1008]="ER_DB_DROP_EXISTS";z[1009]="ER_DB_DROP_DELETE";z[1010]="ER_DB_DROP_RMDIR";z[1011]="ER_CANT_DELETE_FILE";z[1012]="ER_CANT_FIND_SYSTEM_REC";z[1013]="ER_CANT_GET_STAT";z[1014]="ER_CANT_GET_WD";z[1015]="ER_CANT_LOCK";z[1016]="ER_CANT_OPEN_FILE";z[1017]="ER_FILE_NOT_FOUND";z[1018]="ER_CANT_READ_DIR";z[1019]="ER_CANT_SET_WD";z[1020]="ER_CHECKREAD";z[1021]="ER_DISK_FULL";z[1022]="ER_DUP_KEY";z[1023]="ER_ERROR_ON_CLOSE";z[1024]="ER_ERROR_ON_READ";z[1025]="ER_ERROR_ON_RENAME";z[1026]="ER_ERROR_ON_WRITE";z[1027]="ER_FILE_USED";z[1028]="ER_FILSORT_ABORT";z[1029]="ER_FORM_NOT_FOUND";z[1030]="ER_GET_ERRNO";z[1031]="ER_ILLEGAL_HA";z[1032]="ER_KEY_NOT_FOUND";z[1033]="ER_NOT_FORM_FILE";z[1034]="ER_NOT_KEYFILE";z[1035]="ER_OLD_KEYFILE";z[1036]="ER_OPEN_AS_READONLY";z[1037]="ER_OUTOFMEMORY";z[1038]="ER_OUT_OF_SORTMEMORY";z[1039]="ER_UNEXPECTED_EOF";z[1040]="ER_CON_COUNT_ERROR";z[1041]="ER_OUT_OF_RESOURCES";z[1042]="ER_BAD_HOST_ERROR";z[1043]="ER_HANDSHAKE_ERROR";z[1044]="ER_DBACCESS_DENIED_ERROR";z[1045]="ER_ACCESS_DENIED_ERROR";z[1046]="ER_NO_DB_ERROR";z[1047]="ER_UNKNOWN_COM_ERROR";z[1048]="ER_BAD_NULL_ERROR";z[1049]="ER_BAD_DB_ERROR";z[1050]="ER_TABLE_EXISTS_ERROR";z[1051]="ER_BAD_TABLE_ERROR";z[1052]="ER_NON_UNIQ_ERROR";z[1053]="ER_SERVER_SHUTDOWN";z[1054]="ER_BAD_FIELD_ERROR";z[1055]="ER_WRONG_FIELD_WITH_GROUP";z[1056]="ER_WRONG_GROUP_FIELD";z[1057]="ER_WRONG_SUM_SELECT";z[1058]="ER_WRONG_VALUE_COUNT";z[1059]="ER_TOO_LONG_IDENT";z[1060]="ER_DUP_FIELDNAME";z[1061]="ER_DUP_KEYNAME";z[1062]="ER_DUP_ENTRY";z[1063]="ER_WRONG_FIELD_SPEC";z[1064]="ER_PARSE_ERROR";z[1065]="ER_EMPTY_QUERY";z[1066]="ER_NONUNIQ_TABLE";z[1067]="ER_INVALID_DEFAULT";z[1068]="ER_MULTIPLE_PRI_KEY";z[1069]="ER_TOO_MANY_KEYS";z[1070]="ER_TOO_MANY_KEY_PARTS";z[1071]="ER_TOO_LONG_KEY";z[1072]="ER_KEY_COLUMN_DOES_NOT_EXITS";z[1073]="ER_BLOB_USED_AS_KEY";z[1074]="ER_TOO_BIG_FIELDLENGTH";z[1075]="ER_WRONG_AUTO_KEY";z[1076]="ER_BINLOG_CANT_DELETE_GTID_DOMAIN";z[1077]="ER_NORMAL_SHUTDOWN";z[1078]="ER_GOT_SIGNAL";z[1079]="ER_SHUTDOWN_COMPLETE";z[1080]="ER_FORCING_CLOSE";z[1081]="ER_IPSOCK_ERROR";z[1082]="ER_NO_SUCH_INDEX";z[1083]="ER_WRONG_FIELD_TERMINATORS";z[1084]="ER_BLOBS_AND_NO_TERMINATED";z[1085]="ER_TEXTFILE_NOT_READABLE";z[1086]="ER_FILE_EXISTS_ERROR";z[1087]="ER_LOAD_INFO";z[1088]="ER_ALTER_INFO";z[1089]="ER_WRONG_SUB_KEY";z[1090]="ER_CANT_REMOVE_ALL_FIELDS";z[1091]="ER_CANT_DROP_FIELD_OR_KEY";z[1092]="ER_INSERT_INFO";z[1093]="ER_UPDATE_TABLE_USED";z[1094]="ER_NO_SUCH_THREAD";z[1095]="ER_KILL_DENIED_ERROR";z[1096]="ER_NO_TABLES_USED";z[1097]="ER_TOO_BIG_SET";z[1098]="ER_NO_UNIQUE_LOGFILE";z[1099]="ER_TABLE_NOT_LOCKED_FOR_WRITE";z[1100]="ER_TABLE_NOT_LOCKED";z[1101]="ER_UNUSED_17";z[1102]="ER_WRONG_DB_NAME";z[1103]="ER_WRONG_TABLE_NAME";z[1104]="ER_TOO_BIG_SELECT";z[1105]="ER_UNKNOWN_ERROR";z[1106]="ER_UNKNOWN_PROCEDURE";z[1107]="ER_WRONG_PARAMCOUNT_TO_PROCEDURE";z[1108]="ER_WRONG_PARAMETERS_TO_PROCEDURE";z[1109]="ER_UNKNOWN_TABLE";z[1110]="ER_FIELD_SPECIFIED_TWICE";z[1111]="ER_INVALID_GROUP_FUNC_USE";z[1112]="ER_UNSUPPORTED_EXTENSION";z[1113]="ER_TABLE_MUST_HAVE_COLUMNS";z[1114]="ER_RECORD_FILE_FULL";z[1115]="ER_UNKNOWN_CHARACTER_SET";z[1116]="ER_TOO_MANY_TABLES";z[1117]="ER_TOO_MANY_FIELDS";z[1118]="ER_TOO_BIG_ROWSIZE";z[1119]="ER_STACK_OVERRUN";z[1120]="ER_WRONG_OUTER_JOIN";z[1121]="ER_NULL_COLUMN_IN_INDEX";z[1122]="ER_CANT_FIND_UDF";z[1123]="ER_CANT_INITIALIZE_UDF";z[1124]="ER_UDF_NO_PATHS";z[1125]="ER_UDF_EXISTS";z[1126]="ER_CANT_OPEN_LIBRARY";z[1127]="ER_CANT_FIND_DL_ENTRY";z[1128]="ER_FUNCTION_NOT_DEFINED";z[1129]="ER_HOST_IS_BLOCKED";z[1130]="ER_HOST_NOT_PRIVILEGED";z[1131]="ER_PASSWORD_ANONYMOUS_USER";z[1132]="ER_PASSWORD_NOT_ALLOWED";z[1133]="ER_PASSWORD_NO_MATCH";z[1134]="ER_UPDATE_INFO";z[1135]="ER_CANT_CREATE_THREAD";z[1136]="ER_WRONG_VALUE_COUNT_ON_ROW";z[1137]="ER_CANT_REOPEN_TABLE";z[1138]="ER_INVALID_USE_OF_NULL";z[1139]="ER_REGEXP_ERROR";z[1140]="ER_MIX_OF_GROUP_FUNC_AND_FIELDS";z[1141]="ER_NONEXISTING_GRANT";z[1142]="ER_TABLEACCESS_DENIED_ERROR";z[1143]="ER_COLUMNACCESS_DENIED_ERROR";z[1144]="ER_ILLEGAL_GRANT_FOR_TABLE";z[1145]="ER_GRANT_WRONG_HOST_OR_USER";z[1146]="ER_NO_SUCH_TABLE";z[1147]="ER_NONEXISTING_TABLE_GRANT";z[1148]="ER_NOT_ALLOWED_COMMAND";z[1149]="ER_SYNTAX_ERROR";z[1150]="ER_DELAYED_CANT_CHANGE_LOCK";z[1151]="ER_TOO_MANY_DELAYED_THREADS";z[1152]="ER_ABORTING_CONNECTION";z[1153]="ER_NET_PACKET_TOO_LARGE";z[1154]="ER_NET_READ_ERROR_FROM_PIPE";z[1155]="ER_NET_FCNTL_ERROR";z[1156]="ER_NET_PACKETS_OUT_OF_ORDER";z[1157]="ER_NET_UNCOMPRESS_ERROR";z[1158]="ER_NET_READ_ERROR";z[1159]="ER_NET_READ_INTERRUPTED";z[1160]="ER_NET_ERROR_ON_WRITE";z[1161]="ER_NET_WRITE_INTERRUPTED";z[1162]="ER_TOO_LONG_STRING";z[1163]="ER_TABLE_CANT_HANDLE_BLOB";z[1164]="ER_TABLE_CANT_HANDLE_AUTO_INCREMENT";z[1165]="ER_DELAYED_INSERT_TABLE_LOCKED";z[1166]="ER_WRONG_COLUMN_NAME";z[1167]="ER_WRONG_KEY_COLUMN";z[1168]="ER_WRONG_MRG_TABLE";z[1169]="ER_DUP_UNIQUE";z[1170]="ER_BLOB_KEY_WITHOUT_LENGTH";z[1171]="ER_PRIMARY_CANT_HAVE_NULL";z[1172]="ER_TOO_MANY_ROWS";z[1173]="ER_REQUIRES_PRIMARY_KEY";z[1174]="ER_NO_RAID_COMPILED";z[1175]="ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE";z[1176]="ER_KEY_DOES_NOT_EXITS";z[1177]="ER_CHECK_NO_SUCH_TABLE";z[1178]="ER_CHECK_NOT_IMPLEMENTED";z[1179]="ER_CANT_DO_THIS_DURING_AN_TRANSACTION";z[1180]="ER_ERROR_DURING_COMMIT";z[1181]="ER_ERROR_DURING_ROLLBACK";z[1182]="ER_ERROR_DURING_FLUSH_LOGS";z[1183]="ER_ERROR_DURING_CHECKPOINT";z[1184]="ER_NEW_ABORTING_CONNECTION";z[1185]="ER_UNUSED_10";z[1186]="ER_FLUSH_MASTER_BINLOG_CLOSED";z[1187]="ER_INDEX_REBUILD";z[1188]="ER_MASTER";z[1189]="ER_MASTER_NET_READ";z[1190]="ER_MASTER_NET_WRITE";z[1191]="ER_FT_MATCHING_KEY_NOT_FOUND";z[1192]="ER_LOCK_OR_ACTIVE_TRANSACTION";z[1193]="ER_UNKNOWN_SYSTEM_VARIABLE";z[1194]="ER_CRASHED_ON_USAGE";z[1195]="ER_CRASHED_ON_REPAIR";z[1196]="ER_WARNING_NOT_COMPLETE_ROLLBACK";z[1197]="ER_TRANS_CACHE_FULL";z[1198]="ER_SLAVE_MUST_STOP";z[1199]="ER_SLAVE_NOT_RUNNING";z[1200]="ER_BAD_SLAVE";z[1201]="ER_MASTER_INFO";z[1202]="ER_SLAVE_THREAD";z[1203]="ER_TOO_MANY_USER_CONNECTIONS";z[1204]="ER_SET_CONSTANTS_ONLY";z[1205]="ER_LOCK_WAIT_TIMEOUT";z[1206]="ER_LOCK_TABLE_FULL";z[1207]="ER_READ_ONLY_TRANSACTION";z[1208]="ER_DROP_DB_WITH_READ_LOCK";z[1209]="ER_CREATE_DB_WITH_READ_LOCK";z[1210]="ER_WRONG_ARGUMENTS";z[1211]="ER_NO_PERMISSION_TO_CREATE_USER";z[1212]="ER_UNION_TABLES_IN_DIFFERENT_DIR";z[1213]="ER_LOCK_DEADLOCK";z[1214]="ER_TABLE_CANT_HANDLE_FT";z[1215]="ER_CANNOT_ADD_FOREIGN";z[1216]="ER_NO_REFERENCED_ROW";z[1217]="ER_ROW_IS_REFERENCED";z[1218]="ER_CONNECT_TO_MASTER";z[1219]="ER_QUERY_ON_MASTER";z[1220]="ER_ERROR_WHEN_EXECUTING_COMMAND";z[1221]="ER_WRONG_USAGE";z[1222]="ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT";z[1223]="ER_CANT_UPDATE_WITH_READLOCK";z[1224]="ER_MIXING_NOT_ALLOWED";z[1225]="ER_DUP_ARGUMENT";z[1226]="ER_USER_LIMIT_REACHED";z[1227]="ER_SPECIFIC_ACCESS_DENIED_ERROR";z[1228]="ER_LOCAL_VARIABLE";z[1229]="ER_GLOBAL_VARIABLE";z[1230]="ER_NO_DEFAULT";z[1231]="ER_WRONG_VALUE_FOR_VAR";z[1232]="ER_WRONG_TYPE_FOR_VAR";z[1233]="ER_VAR_CANT_BE_READ";z[1234]="ER_CANT_USE_OPTION_HERE";z[1235]="ER_NOT_SUPPORTED_YET";z[1236]="ER_MASTER_FATAL_ERROR_READING_BINLOG";z[1237]="ER_SLAVE_IGNORED_TABLE";z[1238]="ER_INCORRECT_GLOBAL_LOCAL_VAR";z[1239]="ER_WRONG_FK_DEF";z[1240]="ER_KEY_REF_DO_NOT_MATCH_TABLE_REF";z[1241]="ER_OPERAND_COLUMNS";z[1242]="ER_SUBQUERY_NO_1_ROW";z[1243]="ER_UNKNOWN_STMT_HANDLER";z[1244]="ER_CORRUPT_HELP_DB";z[1245]="ER_CYCLIC_REFERENCE";z[1246]="ER_AUTO_CONVERT";z[1247]="ER_ILLEGAL_REFERENCE";z[1248]="ER_DERIVED_MUST_HAVE_ALIAS";z[1249]="ER_SELECT_REDUCED";z[1250]="ER_TABLENAME_NOT_ALLOWED_HERE";z[1251]="ER_NOT_SUPPORTED_AUTH_MODE";z[1252]="ER_SPATIAL_CANT_HAVE_NULL";z[1253]="ER_COLLATION_CHARSET_MISMATCH";z[1254]="ER_SLAVE_WAS_RUNNING";z[1255]="ER_SLAVE_WAS_NOT_RUNNING";z[1256]="ER_TOO_BIG_FOR_UNCOMPRESS";z[1257]="ER_ZLIB_Z_MEM_ERROR";z[1258]="ER_ZLIB_Z_BUF_ERROR";z[1259]="ER_ZLIB_Z_DATA_ERROR";z[1260]="ER_CUT_VALUE_GROUP_CONCAT";z[1261]="ER_WARN_TOO_FEW_RECORDS";z[1262]="ER_WARN_TOO_MANY_RECORDS";z[1263]="ER_WARN_NULL_TO_NOTNULL";z[1264]="ER_WARN_DATA_OUT_OF_RANGE";z[1265]="WARN_DATA_TRUNCATED";z[1266]="ER_WARN_USING_OTHER_HANDLER";z[1267]="ER_CANT_AGGREGATE_2COLLATIONS";z[1268]="ER_DROP_USER";z[1269]="ER_REVOKE_GRANTS";z[1270]="ER_CANT_AGGREGATE_3COLLATIONS";z[1271]="ER_CANT_AGGREGATE_NCOLLATIONS";z[1272]="ER_VARIABLE_IS_NOT_STRUCT";z[1273]="ER_UNKNOWN_COLLATION";z[1274]="ER_SLAVE_IGNORED_SSL_PARAMS";z[1275]="ER_SERVER_IS_IN_SECURE_AUTH_MODE";z[1276]="ER_WARN_FIELD_RESOLVED";z[1277]="ER_BAD_SLAVE_UNTIL_COND";z[1278]="ER_MISSING_SKIP_SLAVE";z[1279]="ER_UNTIL_COND_IGNORED";z[1280]="ER_WRONG_NAME_FOR_INDEX";z[1281]="ER_WRONG_NAME_FOR_CATALOG";z[1282]="ER_WARN_QC_RESIZE";z[1283]="ER_BAD_FT_COLUMN";z[1284]="ER_UNKNOWN_KEY_CACHE";z[1285]="ER_WARN_HOSTNAME_WONT_WORK";z[1286]="ER_UNKNOWN_STORAGE_ENGINE";z[1287]="ER_WARN_DEPRECATED_SYNTAX";z[1288]="ER_NON_UPDATABLE_TABLE";z[1289]="ER_FEATURE_DISABLED";z[1290]="ER_OPTION_PREVENTS_STATEMENT";z[1291]="ER_DUPLICATED_VALUE_IN_TYPE";z[1292]="ER_TRUNCATED_WRONG_VALUE";z[1293]="ER_TOO_MUCH_AUTO_TIMESTAMP_COLS";z[1294]="ER_INVALID_ON_UPDATE";z[1295]="ER_UNSUPPORTED_PS";z[1296]="ER_GET_ERRMSG";z[1297]="ER_GET_TEMPORARY_ERRMSG";z[1298]="ER_UNKNOWN_TIME_ZONE";z[1299]="ER_WARN_INVALID_TIMESTAMP";z[1300]="ER_INVALID_CHARACTER_STRING";z[1301]="ER_WARN_ALLOWED_PACKET_OVERFLOWED";z[1302]="ER_CONFLICTING_DECLARATIONS";z[1303]="ER_SP_NO_RECURSIVE_CREATE";z[1304]="ER_SP_ALREADY_EXISTS";z[1305]="ER_SP_DOES_NOT_EXIST";z[1306]="ER_SP_DROP_FAILED";z[1307]="ER_SP_STORE_FAILED";z[1308]="ER_SP_LILABEL_MISMATCH";z[1309]="ER_SP_LABEL_REDEFINE";z[1310]="ER_SP_LABEL_MISMATCH";z[1311]="ER_SP_UNINIT_VAR";z[1312]="ER_SP_BADSELECT";z[1313]="ER_SP_BADRETURN";z[1314]="ER_SP_BADSTATEMENT";z[1315]="ER_UPDATE_LOG_DEPRECATED_IGNORED";z[1316]="ER_UPDATE_LOG_DEPRECATED_TRANSLATED";z[1317]="ER_QUERY_INTERRUPTED";z[1318]="ER_SP_WRONG_NO_OF_ARGS";z[1319]="ER_SP_COND_MISMATCH";z[1320]="ER_SP_NORETURN";z[1321]="ER_SP_NORETURNEND";z[1322]="ER_SP_BAD_CURSOR_QUERY";z[1323]="ER_SP_BAD_CURSOR_SELECT";z[1324]="ER_SP_CURSOR_MISMATCH";z[1325]="ER_SP_CURSOR_ALREADY_OPEN";z[1326]="ER_SP_CURSOR_NOT_OPEN";z[1327]="ER_SP_UNDECLARED_VAR";z[1328]="ER_SP_WRONG_NO_OF_FETCH_ARGS";z[1329]="ER_SP_FETCH_NO_DATA";z[1330]="ER_SP_DUP_PARAM";z[1331]="ER_SP_DUP_VAR";z[1332]="ER_SP_DUP_COND";z[1333]="ER_SP_DUP_CURS";z[1334]="ER_SP_CANT_ALTER";z[1335]="ER_SP_SUBSELECT_NYI";z[1336]="ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG";z[1337]="ER_SP_VARCOND_AFTER_CURSHNDLR";z[1338]="ER_SP_CURSOR_AFTER_HANDLER";z[1339]="ER_SP_CASE_NOT_FOUND";z[1340]="ER_FPARSER_TOO_BIG_FILE";z[1341]="ER_FPARSER_BAD_HEADER";z[1342]="ER_FPARSER_EOF_IN_COMMENT";z[1343]="ER_FPARSER_ERROR_IN_PARAMETER";z[1344]="ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER";z[1345]="ER_VIEW_NO_EXPLAIN";z[1346]="ER_FRM_UNKNOWN_TYPE";z[1347]="ER_WRONG_OBJECT";z[1348]="ER_NONUPDATEABLE_COLUMN";z[1349]="ER_VIEW_SELECT_DERIVED";z[1350]="ER_VIEW_SELECT_CLAUSE";z[1351]="ER_VIEW_SELECT_VARIABLE";z[1352]="ER_VIEW_SELECT_TMPTABLE";z[1353]="ER_VIEW_WRONG_LIST";z[1354]="ER_WARN_VIEW_MERGE";z[1355]="ER_WARN_VIEW_WITHOUT_KEY";z[1356]="ER_VIEW_INVALID";z[1357]="ER_SP_NO_DROP_SP";z[1358]="ER_SP_GOTO_IN_HNDLR";z[1359]="ER_TRG_ALREADY_EXISTS";z[1360]="ER_TRG_DOES_NOT_EXIST";z[1361]="ER_TRG_ON_VIEW_OR_TEMP_TABLE";z[1362]="ER_TRG_CANT_CHANGE_ROW";z[1363]="ER_TRG_NO_SUCH_ROW_IN_TRG";z[1364]="ER_NO_DEFAULT_FOR_FIELD";z[1365]="ER_DIVISION_BY_ZERO";z[1366]="ER_TRUNCATED_WRONG_VALUE_FOR_FIELD";z[1367]="ER_ILLEGAL_VALUE_FOR_TYPE";z[1368]="ER_VIEW_NONUPD_CHECK";z[1369]="ER_VIEW_CHECK_FAILED";z[1370]="ER_PROCACCESS_DENIED_ERROR";z[1371]="ER_RELAY_LOG_FAIL";z[1372]="ER_PASSWD_LENGTH";z[1373]="ER_UNKNOWN_TARGET_BINLOG";z[1374]="ER_IO_ERR_LOG_INDEX_READ";z[1375]="ER_BINLOG_PURGE_PROHIBITED";z[1376]="ER_FSEEK_FAIL";z[1377]="ER_BINLOG_PURGE_FATAL_ERR";z[1378]="ER_LOG_IN_USE";z[1379]="ER_LOG_PURGE_UNKNOWN_ERR";z[1380]="ER_RELAY_LOG_INIT";z[1381]="ER_NO_BINARY_LOGGING";z[1382]="ER_RESERVED_SYNTAX";z[1383]="ER_WSAS_FAILED";z[1384]="ER_DIFF_GROUPS_PROC";z[1385]="ER_NO_GROUP_FOR_PROC";z[1386]="ER_ORDER_WITH_PROC";z[1387]="ER_LOGGING_PROHIBIT_CHANGING_OF";z[1388]="ER_NO_FILE_MAPPING";z[1389]="ER_WRONG_MAGIC";z[1390]="ER_PS_MANY_PARAM";z[1391]="ER_KEY_PART_0";z[1392]="ER_VIEW_CHECKSUM";z[1393]="ER_VIEW_MULTIUPDATE";z[1394]="ER_VIEW_NO_INSERT_FIELD_LIST";z[1395]="ER_VIEW_DELETE_MERGE_VIEW";z[1396]="ER_CANNOT_USER";z[1397]="ER_XAER_NOTA";z[1398]="ER_XAER_INVAL";z[1399]="ER_XAER_RMFAIL";z[1400]="ER_XAER_OUTSIDE";z[1401]="ER_XAER_RMERR";z[1402]="ER_XA_RBROLLBACK";z[1403]="ER_NONEXISTING_PROC_GRANT";z[1404]="ER_PROC_AUTO_GRANT_FAIL";z[1405]="ER_PROC_AUTO_REVOKE_FAIL";z[1406]="ER_DATA_TOO_LONG";z[1407]="ER_SP_BAD_SQLSTATE";z[1408]="ER_STARTUP";z[1409]="ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR";z[1410]="ER_CANT_CREATE_USER_WITH_GRANT";z[1411]="ER_WRONG_VALUE_FOR_TYPE";z[1412]="ER_TABLE_DEF_CHANGED";z[1413]="ER_SP_DUP_HANDLER";z[1414]="ER_SP_NOT_VAR_ARG";z[1415]="ER_SP_NO_RETSET";z[1416]="ER_CANT_CREATE_GEOMETRY_OBJECT";z[1417]="ER_FAILED_ROUTINE_BREAK_BINLOG";z[1418]="ER_BINLOG_UNSAFE_ROUTINE";z[1419]="ER_BINLOG_CREATE_ROUTINE_NEED_SUPER";z[1420]="ER_EXEC_STMT_WITH_OPEN_CURSOR";z[1421]="ER_STMT_HAS_NO_OPEN_CURSOR";z[1422]="ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG";z[1423]="ER_NO_DEFAULT_FOR_VIEW_FIELD";z[1424]="ER_SP_NO_RECURSION";z[1425]="ER_TOO_BIG_SCALE";z[1426]="ER_TOO_BIG_PRECISION";z[1427]="ER_M_BIGGER_THAN_D";z[1428]="ER_WRONG_LOCK_OF_SYSTEM_TABLE";z[1429]="ER_CONNECT_TO_FOREIGN_DATA_SOURCE";z[1430]="ER_QUERY_ON_FOREIGN_DATA_SOURCE";z[1431]="ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST";z[1432]="ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE";z[1433]="ER_FOREIGN_DATA_STRING_INVALID";z[1434]="ER_CANT_CREATE_FEDERATED_TABLE";z[1435]="ER_TRG_IN_WRONG_SCHEMA";z[1436]="ER_STACK_OVERRUN_NEED_MORE";z[1437]="ER_TOO_LONG_BODY";z[1438]="ER_WARN_CANT_DROP_DEFAULT_KEYCACHE";z[1439]="ER_TOO_BIG_DISPLAYWIDTH";z[1440]="ER_XAER_DUPID";z[1441]="ER_DATETIME_FUNCTION_OVERFLOW";z[1442]="ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG";z[1443]="ER_VIEW_PREVENT_UPDATE";z[1444]="ER_PS_NO_RECURSION";z[1445]="ER_SP_CANT_SET_AUTOCOMMIT";z[1446]="ER_MALFORMED_DEFINER";z[1447]="ER_VIEW_FRM_NO_USER";z[1448]="ER_VIEW_OTHER_USER";z[1449]="ER_NO_SUCH_USER";z[1450]="ER_FORBID_SCHEMA_CHANGE";z[1451]="ER_ROW_IS_REFERENCED_2";z[1452]="ER_NO_REFERENCED_ROW_2";z[1453]="ER_SP_BAD_VAR_SHADOW";z[1454]="ER_TRG_NO_DEFINER";z[1455]="ER_OLD_FILE_FORMAT";z[1456]="ER_SP_RECURSION_LIMIT";z[1457]="ER_SP_PROC_TABLE_CORRUPT";z[1458]="ER_SP_WRONG_NAME";z[1459]="ER_TABLE_NEEDS_UPGRADE";z[1460]="ER_SP_NO_AGGREGATE";z[1461]="ER_MAX_PREPARED_STMT_COUNT_REACHED";z[1462]="ER_VIEW_RECURSIVE";z[1463]="ER_NON_GROUPING_FIELD_USED";z[1464]="ER_TABLE_CANT_HANDLE_SPKEYS";z[1465]="ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA";z[1466]="ER_REMOVED_SPACES";z[1467]="ER_AUTOINC_READ_FAILED";z[1468]="ER_USERNAME";z[1469]="ER_HOSTNAME";z[1470]="ER_WRONG_STRING_LENGTH";z[1471]="ER_NON_INSERTABLE_TABLE";z[1472]="ER_ADMIN_WRONG_MRG_TABLE";z[1473]="ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT";z[1474]="ER_NAME_BECOMES_EMPTY";z[1475]="ER_AMBIGUOUS_FIELD_TERM";z[1476]="ER_FOREIGN_SERVER_EXISTS";z[1477]="ER_FOREIGN_SERVER_DOESNT_EXIST";z[1478]="ER_ILLEGAL_HA_CREATE_OPTION";z[1479]="ER_PARTITION_REQUIRES_VALUES_ERROR";z[1480]="ER_PARTITION_WRONG_VALUES_ERROR";z[1481]="ER_PARTITION_MAXVALUE_ERROR";z[1482]="ER_PARTITION_SUBPARTITION_ERROR";z[1483]="ER_PARTITION_SUBPART_MIX_ERROR";z[1484]="ER_PARTITION_WRONG_NO_PART_ERROR";z[1485]="ER_PARTITION_WRONG_NO_SUBPART_ERROR";z[1486]="ER_WRONG_EXPR_IN_PARTITION_FUNC_ERROR";z[1487]="ER_NOT_CONSTANT_EXPRESSION";z[1488]="ER_FIELD_NOT_FOUND_PART_ERROR";z[1489]="ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR";z[1490]="ER_INCONSISTENT_PARTITION_INFO_ERROR";z[1491]="ER_PARTITION_FUNC_NOT_ALLOWED_ERROR";z[1492]="ER_PARTITIONS_MUST_BE_DEFINED_ERROR";z[1493]="ER_RANGE_NOT_INCREASING_ERROR";z[1494]="ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR";z[1495]="ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR";z[1496]="ER_PARTITION_ENTRY_ERROR";z[1497]="ER_MIX_HANDLER_ERROR";z[1498]="ER_PARTITION_NOT_DEFINED_ERROR";z[1499]="ER_TOO_MANY_PARTITIONS_ERROR";z[1500]="ER_SUBPARTITION_ERROR";z[1501]="ER_CANT_CREATE_HANDLER_FILE";z[1502]="ER_BLOB_FIELD_IN_PART_FUNC_ERROR";z[1503]="ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF";z[1504]="ER_NO_PARTS_ERROR";z[1505]="ER_PARTITION_MGMT_ON_NONPARTITIONED";z[1506]="ER_FOREIGN_KEY_ON_PARTITIONED";z[1507]="ER_DROP_PARTITION_NON_EXISTENT";z[1508]="ER_DROP_LAST_PARTITION";z[1509]="ER_COALESCE_ONLY_ON_HASH_PARTITION";z[1510]="ER_REORG_HASH_ONLY_ON_SAME_NO";z[1511]="ER_REORG_NO_PARAM_ERROR";z[1512]="ER_ONLY_ON_RANGE_LIST_PARTITION";z[1513]="ER_ADD_PARTITION_SUBPART_ERROR";z[1514]="ER_ADD_PARTITION_NO_NEW_PARTITION";z[1515]="ER_COALESCE_PARTITION_NO_PARTITION";z[1516]="ER_REORG_PARTITION_NOT_EXIST";z[1517]="ER_SAME_NAME_PARTITION";z[1518]="ER_NO_BINLOG_ERROR";z[1519]="ER_CONSECUTIVE_REORG_PARTITIONS";z[1520]="ER_REORG_OUTSIDE_RANGE";z[1521]="ER_PARTITION_FUNCTION_FAILURE";z[1522]="ER_PART_STATE_ERROR";z[1523]="ER_LIMITED_PART_RANGE";z[1524]="ER_PLUGIN_IS_NOT_LOADED";z[1525]="ER_WRONG_VALUE";z[1526]="ER_NO_PARTITION_FOR_GIVEN_VALUE";z[1527]="ER_FILEGROUP_OPTION_ONLY_ONCE";z[1528]="ER_CREATE_FILEGROUP_FAILED";z[1529]="ER_DROP_FILEGROUP_FAILED";z[1530]="ER_TABLESPACE_AUTO_EXTEND_ERROR";z[1531]="ER_WRONG_SIZE_NUMBER";z[1532]="ER_SIZE_OVERFLOW_ERROR";z[1533]="ER_ALTER_FILEGROUP_FAILED";z[1534]="ER_BINLOG_ROW_LOGGING_FAILED";z[1535]="ER_BINLOG_ROW_WRONG_TABLE_DEF";z[1536]="ER_BINLOG_ROW_RBR_TO_SBR";z[1537]="ER_EVENT_ALREADY_EXISTS";z[1538]="ER_EVENT_STORE_FAILED";z[1539]="ER_EVENT_DOES_NOT_EXIST";z[1540]="ER_EVENT_CANT_ALTER";z[1541]="ER_EVENT_DROP_FAILED";z[1542]="ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG";z[1543]="ER_EVENT_ENDS_BEFORE_STARTS";z[1544]="ER_EVENT_EXEC_TIME_IN_THE_PAST";z[1545]="ER_EVENT_OPEN_TABLE_FAILED";z[1546]="ER_EVENT_NEITHER_M_EXPR_NOR_M_AT";z[1547]="ER_UNUSED_2";z[1548]="ER_UNUSED_3";z[1549]="ER_EVENT_CANNOT_DELETE";z[1550]="ER_EVENT_COMPILE_ERROR";z[1551]="ER_EVENT_SAME_NAME";z[1552]="ER_EVENT_DATA_TOO_LONG";z[1553]="ER_DROP_INDEX_FK";z[1554]="ER_WARN_DEPRECATED_SYNTAX_WITH_VER";z[1555]="ER_CANT_WRITE_LOCK_LOG_TABLE";z[1556]="ER_CANT_LOCK_LOG_TABLE";z[1557]="ER_UNUSED_4";z[1558]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE";z[1559]="ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR";z[1560]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT";z[1561]="ER_UNUSED_13";z[1562]="ER_PARTITION_NO_TEMPORARY";z[1563]="ER_PARTITION_CONST_DOMAIN_ERROR";z[1564]="ER_PARTITION_FUNCTION_IS_NOT_ALLOWED";z[1565]="ER_DDL_LOG_ERROR";z[1566]="ER_NULL_IN_VALUES_LESS_THAN";z[1567]="ER_WRONG_PARTITION_NAME";z[1568]="ER_CANT_CHANGE_TX_CHARACTERISTICS";z[1569]="ER_DUP_ENTRY_AUTOINCREMENT_CASE";z[1570]="ER_EVENT_MODIFY_QUEUE_ERROR";z[1571]="ER_EVENT_SET_VAR_ERROR";z[1572]="ER_PARTITION_MERGE_ERROR";z[1573]="ER_CANT_ACTIVATE_LOG";z[1574]="ER_RBR_NOT_AVAILABLE";z[1575]="ER_BASE64_DECODE_ERROR";z[1576]="ER_EVENT_RECURSION_FORBIDDEN";z[1577]="ER_EVENTS_DB_ERROR";z[1578]="ER_ONLY_INTEGERS_ALLOWED";z[1579]="ER_UNSUPORTED_LOG_ENGINE";z[1580]="ER_BAD_LOG_STATEMENT";z[1581]="ER_CANT_RENAME_LOG_TABLE";z[1582]="ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT";z[1583]="ER_WRONG_PARAMETERS_TO_NATIVE_FCT";z[1584]="ER_WRONG_PARAMETERS_TO_STORED_FCT";z[1585]="ER_NATIVE_FCT_NAME_COLLISION";z[1586]="ER_DUP_ENTRY_WITH_KEY_NAME";z[1587]="ER_BINLOG_PURGE_EMFILE";z[1588]="ER_EVENT_CANNOT_CREATE_IN_THE_PAST";z[1589]="ER_EVENT_CANNOT_ALTER_IN_THE_PAST";z[1590]="ER_SLAVE_INCIDENT";z[1591]="ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT";z[1592]="ER_BINLOG_UNSAFE_STATEMENT";z[1593]="ER_SLAVE_FATAL_ERROR";z[1594]="ER_SLAVE_RELAY_LOG_READ_FAILURE";z[1595]="ER_SLAVE_RELAY_LOG_WRITE_FAILURE";z[1596]="ER_SLAVE_CREATE_EVENT_FAILURE";z[1597]="ER_SLAVE_MASTER_COM_FAILURE";z[1598]="ER_BINLOG_LOGGING_IMPOSSIBLE";z[1599]="ER_VIEW_NO_CREATION_CTX";z[1600]="ER_VIEW_INVALID_CREATION_CTX";z[1601]="ER_SR_INVALID_CREATION_CTX";z[1602]="ER_TRG_CORRUPTED_FILE";z[1603]="ER_TRG_NO_CREATION_CTX";z[1604]="ER_TRG_INVALID_CREATION_CTX";z[1605]="ER_EVENT_INVALID_CREATION_CTX";z[1606]="ER_TRG_CANT_OPEN_TABLE";z[1607]="ER_CANT_CREATE_SROUTINE";z[1608]="ER_UNUSED_11";z[1609]="ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT";z[1610]="ER_SLAVE_CORRUPT_EVENT";z[1611]="ER_LOAD_DATA_INVALID_COLUMN";z[1612]="ER_LOG_PURGE_NO_FILE";z[1613]="ER_XA_RBTIMEOUT";z[1614]="ER_XA_RBDEADLOCK";z[1615]="ER_NEED_REPREPARE";z[1616]="ER_DELAYED_NOT_SUPPORTED";z[1617]="WARN_NO_MASTER_INFO";z[1618]="WARN_OPTION_IGNORED";z[1619]="ER_PLUGIN_DELETE_BUILTIN";z[1620]="WARN_PLUGIN_BUSY";z[1621]="ER_VARIABLE_IS_READONLY";z[1622]="ER_WARN_ENGINE_TRANSACTION_ROLLBACK";z[1623]="ER_SLAVE_HEARTBEAT_FAILURE";z[1624]="ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE";z[1625]="ER_UNUSED_14";z[1626]="ER_CONFLICT_FN_PARSE_ERROR";z[1627]="ER_EXCEPTIONS_WRITE_ERROR";z[1628]="ER_TOO_LONG_TABLE_COMMENT";z[1629]="ER_TOO_LONG_FIELD_COMMENT";z[1630]="ER_FUNC_INEXISTENT_NAME_COLLISION";z[1631]="ER_DATABASE_NAME";z[1632]="ER_TABLE_NAME";z[1633]="ER_PARTITION_NAME";z[1634]="ER_SUBPARTITION_NAME";z[1635]="ER_TEMPORARY_NAME";z[1636]="ER_RENAMED_NAME";z[1637]="ER_TOO_MANY_CONCURRENT_TRXS";z[1638]="WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED";z[1639]="ER_DEBUG_SYNC_TIMEOUT";z[1640]="ER_DEBUG_SYNC_HIT_LIMIT";z[1641]="ER_DUP_SIGNAL_SET";z[1642]="ER_SIGNAL_WARN";z[1643]="ER_SIGNAL_NOT_FOUND";z[1644]="ER_SIGNAL_EXCEPTION";z[1645]="ER_RESIGNAL_WITHOUT_ACTIVE_HANDLER";z[1646]="ER_SIGNAL_BAD_CONDITION_TYPE";z[1647]="WARN_COND_ITEM_TRUNCATED";z[1648]="ER_COND_ITEM_TOO_LONG";z[1649]="ER_UNKNOWN_LOCALE";z[1650]="ER_SLAVE_IGNORE_SERVER_IDS";z[1651]="ER_QUERY_CACHE_DISABLED";z[1652]="ER_SAME_NAME_PARTITION_FIELD";z[1653]="ER_PARTITION_COLUMN_LIST_ERROR";z[1654]="ER_WRONG_TYPE_COLUMN_VALUE_ERROR";z[1655]="ER_TOO_MANY_PARTITION_FUNC_FIELDS_ERROR";z[1656]="ER_MAXVALUE_IN_VALUES_IN";z[1657]="ER_TOO_MANY_VALUES_ERROR";z[1658]="ER_ROW_SINGLE_PARTITION_FIELD_ERROR";z[1659]="ER_FIELD_TYPE_NOT_ALLOWED_AS_PARTITION_FIELD";z[1660]="ER_PARTITION_FIELDS_TOO_LONG";z[1661]="ER_BINLOG_ROW_ENGINE_AND_STMT_ENGINE";z[1662]="ER_BINLOG_ROW_MODE_AND_STMT_ENGINE";z[1663]="ER_BINLOG_UNSAFE_AND_STMT_ENGINE";z[1664]="ER_BINLOG_ROW_INJECTION_AND_STMT_ENGINE";z[1665]="ER_BINLOG_STMT_MODE_AND_ROW_ENGINE";z[1666]="ER_BINLOG_ROW_INJECTION_AND_STMT_MODE";z[1667]="ER_BINLOG_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE";z[1668]="ER_BINLOG_UNSAFE_LIMIT";z[1669]="ER_BINLOG_UNSAFE_INSERT_DELAYED";z[1670]="ER_BINLOG_UNSAFE_SYSTEM_TABLE";z[1671]="ER_BINLOG_UNSAFE_AUTOINC_COLUMNS";z[1672]="ER_BINLOG_UNSAFE_UDF";z[1673]="ER_BINLOG_UNSAFE_SYSTEM_VARIABLE";z[1674]="ER_BINLOG_UNSAFE_SYSTEM_FUNCTION";z[1675]="ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS";z[1676]="ER_MESSAGE_AND_STATEMENT";z[1677]="ER_SLAVE_CONVERSION_FAILED";z[1678]="ER_SLAVE_CANT_CREATE_CONVERSION";z[1679]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_FORMAT";z[1680]="ER_PATH_LENGTH";z[1681]="ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT";z[1682]="ER_WRONG_NATIVE_TABLE_STRUCTURE";z[1683]="ER_WRONG_PERFSCHEMA_USAGE";z[1684]="ER_WARN_I_S_SKIPPED_TABLE";z[1685]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_BINLOG_DIRECT";z[1686]="ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_DIRECT";z[1687]="ER_SPATIAL_MUST_HAVE_GEOM_COL";z[1688]="ER_TOO_LONG_INDEX_COMMENT";z[1689]="ER_LOCK_ABORTED";z[1690]="ER_DATA_OUT_OF_RANGE";z[1691]="ER_WRONG_SPVAR_TYPE_IN_LIMIT";z[1692]="ER_BINLOG_UNSAFE_MULTIPLE_ENGINES_AND_SELF_LOGGING_ENGINE";z[1693]="ER_BINLOG_UNSAFE_MIXED_STATEMENT";z[1694]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SQL_LOG_BIN";z[1695]="ER_STORED_FUNCTION_PREVENTS_SWITCH_SQL_LOG_BIN";z[1696]="ER_FAILED_READ_FROM_PAR_FILE";z[1697]="ER_VALUES_IS_NOT_INT_TYPE_ERROR";z[1698]="ER_ACCESS_DENIED_NO_PASSWORD_ERROR";z[1699]="ER_SET_PASSWORD_AUTH_PLUGIN";z[1700]="ER_GRANT_PLUGIN_USER_EXISTS";z[1701]="ER_TRUNCATE_ILLEGAL_FK";z[1702]="ER_PLUGIN_IS_PERMANENT";z[1703]="ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MIN";z[1704]="ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE_MAX";z[1705]="ER_STMT_CACHE_FULL";z[1706]="ER_MULTI_UPDATE_KEY_CONFLICT";z[1707]="ER_TABLE_NEEDS_REBUILD";z[1708]="WARN_OPTION_BELOW_LIMIT";z[1709]="ER_INDEX_COLUMN_TOO_LONG";z[1710]="ER_ERROR_IN_TRIGGER_BODY";z[1711]="ER_ERROR_IN_UNKNOWN_TRIGGER_BODY";z[1712]="ER_INDEX_CORRUPT";z[1713]="ER_UNDO_RECORD_TOO_BIG";z[1714]="ER_BINLOG_UNSAFE_INSERT_IGNORE_SELECT";z[1715]="ER_BINLOG_UNSAFE_INSERT_SELECT_UPDATE";z[1716]="ER_BINLOG_UNSAFE_REPLACE_SELECT";z[1717]="ER_BINLOG_UNSAFE_CREATE_IGNORE_SELECT";z[1718]="ER_BINLOG_UNSAFE_CREATE_REPLACE_SELECT";z[1719]="ER_BINLOG_UNSAFE_UPDATE_IGNORE";z[1720]="ER_UNUSED_15";z[1721]="ER_UNUSED_16";z[1722]="ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT";z[1723]="ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC";z[1724]="ER_BINLOG_UNSAFE_INSERT_TWO_KEYS";z[1725]="ER_TABLE_IN_FK_CHECK";z[1726]="ER_UNUSED_1";z[1727]="ER_BINLOG_UNSAFE_AUTOINC_NOT_FIRST";z[1728]="ER_CANNOT_LOAD_FROM_TABLE_V2";z[1729]="ER_MASTER_DELAY_VALUE_OUT_OF_RANGE";z[1730]="ER_ONLY_FD_AND_RBR_EVENTS_ALLOWED_IN_BINLOG_STATEMENT";z[1731]="ER_PARTITION_EXCHANGE_DIFFERENT_OPTION";z[1732]="ER_PARTITION_EXCHANGE_PART_TABLE";z[1733]="ER_PARTITION_EXCHANGE_TEMP_TABLE";z[1734]="ER_PARTITION_INSTEAD_OF_SUBPARTITION";z[1735]="ER_UNKNOWN_PARTITION";z[1736]="ER_TABLES_DIFFERENT_METADATA";z[1737]="ER_ROW_DOES_NOT_MATCH_PARTITION";z[1738]="ER_BINLOG_CACHE_SIZE_GREATER_THAN_MAX";z[1739]="ER_WARN_INDEX_NOT_APPLICABLE";z[1740]="ER_PARTITION_EXCHANGE_FOREIGN_KEY";z[1741]="ER_NO_SUCH_KEY_VALUE";z[1742]="ER_VALUE_TOO_LONG";z[1743]="ER_NETWORK_READ_EVENT_CHECKSUM_FAILURE";z[1744]="ER_BINLOG_READ_EVENT_CHECKSUM_FAILURE";z[1745]="ER_BINLOG_STMT_CACHE_SIZE_GREATER_THAN_MAX";z[1746]="ER_CANT_UPDATE_TABLE_IN_CREATE_TABLE_SELECT";z[1747]="ER_PARTITION_CLAUSE_ON_NONPARTITIONED";z[1748]="ER_ROW_DOES_NOT_MATCH_GIVEN_PARTITION_SET";z[1749]="ER_UNUSED_5";z[1750]="ER_CHANGE_RPL_INFO_REPOSITORY_FAILURE";z[1751]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_CREATED_TEMP_TABLE";z[1752]="ER_WARNING_NOT_COMPLETE_ROLLBACK_WITH_DROPPED_TEMP_TABLE";z[1753]="ER_MTS_FEATURE_IS_NOT_SUPPORTED";z[1754]="ER_MTS_UPDATED_DBS_GREATER_MAX";z[1755]="ER_MTS_CANT_PARALLEL";z[1756]="ER_MTS_INCONSISTENT_DATA";z[1757]="ER_FULLTEXT_NOT_SUPPORTED_WITH_PARTITIONING";z[1758]="ER_DA_INVALID_CONDITION_NUMBER";z[1759]="ER_INSECURE_PLAIN_TEXT";z[1760]="ER_INSECURE_CHANGE_MASTER";z[1761]="ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO";z[1762]="ER_FOREIGN_DUPLICATE_KEY_WITHOUT_CHILD_INFO";z[1763]="ER_SQLTHREAD_WITH_SECURE_SLAVE";z[1764]="ER_TABLE_HAS_NO_FT";z[1765]="ER_VARIABLE_NOT_SETTABLE_IN_SF_OR_TRIGGER";z[1766]="ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION";z[1767]="ER_GTID_NEXT_IS_NOT_IN_GTID_NEXT_LIST";z[1768]="ER_CANT_CHANGE_GTID_NEXT_IN_TRANSACTION_WHEN_GTID_NEXT_LIST_IS_NULL";z[1769]="ER_SET_STATEMENT_CANNOT_INVOKE_FUNCTION";z[1770]="ER_GTID_NEXT_CANT_BE_AUTOMATIC_IF_GTID_NEXT_LIST_IS_NON_NULL";z[1771]="ER_SKIPPING_LOGGED_TRANSACTION";z[1772]="ER_MALFORMED_GTID_SET_SPECIFICATION";z[1773]="ER_MALFORMED_GTID_SET_ENCODING";z[1774]="ER_MALFORMED_GTID_SPECIFICATION";z[1775]="ER_GNO_EXHAUSTED";z[1776]="ER_BAD_SLAVE_AUTO_POSITION";z[1777]="ER_AUTO_POSITION_REQUIRES_GTID_MODE_ON";z[1778]="ER_CANT_DO_IMPLICIT_COMMIT_IN_TRX_WHEN_GTID_NEXT_IS_SET";z[1779]="ER_GTID_MODE_2_OR_3_REQUIRES_ENFORCE_GTID_CONSISTENCY_ON";z[1780]="ER_GTID_MODE_REQUIRES_BINLOG";z[1781]="ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF";z[1782]="ER_CANT_SET_GTID_NEXT_TO_ANONYMOUS_WHEN_GTID_MODE_IS_ON";z[1783]="ER_CANT_SET_GTID_NEXT_LIST_TO_NON_NULL_WHEN_GTID_MODE_IS_OFF";z[1784]="ER_FOUND_GTID_EVENT_WHEN_GTID_MODE_IS_OFF";z[1785]="ER_GTID_UNSAFE_NON_TRANSACTIONAL_TABLE";z[1786]="ER_GTID_UNSAFE_CREATE_SELECT";z[1787]="ER_GTID_UNSAFE_CREATE_DROP_TEMPORARY_TABLE_IN_TRANSACTION";z[1788]="ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME";z[1789]="ER_MASTER_HAS_PURGED_REQUIRED_GTIDS";z[1790]="ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID";z[1791]="ER_UNKNOWN_EXPLAIN_FORMAT";z[1792]="ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION";z[1793]="ER_TOO_LONG_TABLE_PARTITION_COMMENT";z[1794]="ER_SLAVE_CONFIGURATION";z[1795]="ER_INNODB_FT_LIMIT";z[1796]="ER_INNODB_NO_FT_TEMP_TABLE";z[1797]="ER_INNODB_FT_WRONG_DOCID_COLUMN";z[1798]="ER_INNODB_FT_WRONG_DOCID_INDEX";z[1799]="ER_INNODB_ONLINE_LOG_TOO_BIG";z[1800]="ER_UNKNOWN_ALTER_ALGORITHM";z[1801]="ER_UNKNOWN_ALTER_LOCK";z[1802]="ER_MTS_CHANGE_MASTER_CANT_RUN_WITH_GAPS";z[1803]="ER_MTS_RECOVERY_FAILURE";z[1804]="ER_MTS_RESET_WORKERS";z[1805]="ER_COL_COUNT_DOESNT_MATCH_CORRUPTED_V2";z[1806]="ER_SLAVE_SILENT_RETRY_TRANSACTION";z[1807]="ER_UNUSED_22";z[1808]="ER_TABLE_SCHEMA_MISMATCH";z[1809]="ER_TABLE_IN_SYSTEM_TABLESPACE";z[1810]="ER_IO_READ_ERROR";z[1811]="ER_IO_WRITE_ERROR";z[1812]="ER_TABLESPACE_MISSING";z[1813]="ER_TABLESPACE_EXISTS";z[1814]="ER_TABLESPACE_DISCARDED";z[1815]="ER_INTERNAL_ERROR";z[1816]="ER_INNODB_IMPORT_ERROR";z[1817]="ER_INNODB_INDEX_CORRUPT";z[1818]="ER_INVALID_YEAR_COLUMN_LENGTH";z[1819]="ER_NOT_VALID_PASSWORD";z[1820]="ER_MUST_CHANGE_PASSWORD";z[1821]="ER_FK_NO_INDEX_CHILD";z[1822]="ER_FK_NO_INDEX_PARENT";z[1823]="ER_FK_FAIL_ADD_SYSTEM";z[1824]="ER_FK_CANNOT_OPEN_PARENT";z[1825]="ER_FK_INCORRECT_OPTION";z[1826]="ER_DUP_CONSTRAINT_NAME";z[1827]="ER_PASSWORD_FORMAT";z[1828]="ER_FK_COLUMN_CANNOT_DROP";z[1829]="ER_FK_COLUMN_CANNOT_DROP_CHILD";z[1830]="ER_FK_COLUMN_NOT_NULL";z[1831]="ER_DUP_INDEX";z[1832]="ER_FK_COLUMN_CANNOT_CHANGE";z[1833]="ER_FK_COLUMN_CANNOT_CHANGE_CHILD";z[1834]="ER_FK_CANNOT_DELETE_PARENT";z[1835]="ER_MALFORMED_PACKET";z[1836]="ER_READ_ONLY_MODE";z[1837]="ER_GTID_NEXT_TYPE_UNDEFINED_GROUP";z[1838]="ER_VARIABLE_NOT_SETTABLE_IN_SP";z[1839]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_MODE_IS_OFF";z[1840]="ER_CANT_SET_GTID_PURGED_WHEN_GTID_EXECUTED_IS_NOT_EMPTY";z[1841]="ER_CANT_SET_GTID_PURGED_WHEN_OWNED_GTIDS_IS_NOT_EMPTY";z[1842]="ER_GTID_PURGED_WAS_CHANGED";z[1843]="ER_GTID_EXECUTED_WAS_CHANGED";z[1844]="ER_BINLOG_STMT_MODE_AND_NO_REPL_TABLES";z[1845]="ER_ALTER_OPERATION_NOT_SUPPORTED";z[1846]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON";z[1847]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COPY";z[1848]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_PARTITION";z[1849]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_RENAME";z[1850]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_COLUMN_TYPE";z[1851]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FK_CHECK";z[1852]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_IGNORE";z[1853]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOPK";z[1854]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_AUTOINC";z[1855]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_HIDDEN_FTS";z[1856]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_CHANGE_FTS";z[1857]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_FTS";z[1858]="ER_SQL_SLAVE_SKIP_COUNTER_NOT_SETTABLE_IN_GTID_MODE";z[1859]="ER_DUP_UNKNOWN_IN_INDEX";z[1860]="ER_IDENT_CAUSES_TOO_LONG_PATH";z[1861]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_NOT_NULL";z[1862]="ER_MUST_CHANGE_PASSWORD_LOGIN";z[1863]="ER_ROW_IN_WRONG_PARTITION";z[1864]="ER_MTS_EVENT_BIGGER_PENDING_JOBS_SIZE_MAX";z[1865]="ER_INNODB_NO_FT_USES_PARSER";z[1866]="ER_BINLOG_LOGICAL_CORRUPTION";z[1867]="ER_WARN_PURGE_LOG_IN_USE";z[1868]="ER_WARN_PURGE_LOG_IS_ACTIVE";z[1869]="ER_AUTO_INCREMENT_CONFLICT";z[1870]="WARN_ON_BLOCKHOLE_IN_RBR";z[1871]="ER_SLAVE_MI_INIT_REPOSITORY";z[1872]="ER_SLAVE_RLI_INIT_REPOSITORY";z[1873]="ER_ACCESS_DENIED_CHANGE_USER_ERROR";z[1874]="ER_INNODB_READ_ONLY";z[1875]="ER_STOP_SLAVE_SQL_THREAD_TIMEOUT";z[1876]="ER_STOP_SLAVE_IO_THREAD_TIMEOUT";z[1877]="ER_TABLE_CORRUPT";z[1878]="ER_TEMP_FILE_WRITE_FAILURE";z[1879]="ER_INNODB_FT_AUX_NOT_HEX_ID";z[1880]="ER_LAST_MYSQL_ERROR_MESSAGE";z[1900]="ER_UNUSED_18";z[1901]="ER_GENERATED_COLUMN_FUNCTION_IS_NOT_ALLOWED";z[1902]="ER_UNUSED_19";z[1903]="ER_PRIMARY_KEY_BASED_ON_GENERATED_COLUMN";z[1904]="ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN";z[1905]="ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN";z[1906]="ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN";z[1907]="ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN";z[1908]="ER_UNUSED_20";z[1909]="ER_UNUSED_21";z[1910]="ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS";z[1911]="ER_UNKNOWN_OPTION";z[1912]="ER_BAD_OPTION_VALUE";z[1913]="ER_UNUSED_6";z[1914]="ER_UNUSED_7";z[1915]="ER_UNUSED_8";z[1916]="ER_DATA_OVERFLOW";z[1917]="ER_DATA_TRUNCATED";z[1918]="ER_BAD_DATA";z[1919]="ER_DYN_COL_WRONG_FORMAT";z[1920]="ER_DYN_COL_IMPLEMENTATION_LIMIT";z[1921]="ER_DYN_COL_DATA";z[1922]="ER_DYN_COL_WRONG_CHARSET";z[1923]="ER_ILLEGAL_SUBQUERY_OPTIMIZER_SWITCHES";z[1924]="ER_QUERY_CACHE_IS_DISABLED";z[1925]="ER_QUERY_CACHE_IS_GLOBALY_DISABLED";z[1926]="ER_VIEW_ORDERBY_IGNORED";z[1927]="ER_CONNECTION_KILLED";z[1928]="ER_UNUSED_12";z[1929]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SKIP_REPLICATION";z[1930]="ER_STORED_FUNCTION_PREVENTS_SWITCH_SKIP_REPLICATION";z[1931]="ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT";z[1932]="ER_NO_SUCH_TABLE_IN_ENGINE";z[1933]="ER_TARGET_NOT_EXPLAINABLE";z[1934]="ER_CONNECTION_ALREADY_EXISTS";z[1935]="ER_MASTER_LOG_PREFIX";z[1936]="ER_CANT_START_STOP_SLAVE";z[1937]="ER_SLAVE_STARTED";z[1938]="ER_SLAVE_STOPPED";z[1939]="ER_SQL_DISCOVER_ERROR";z[1940]="ER_FAILED_GTID_STATE_INIT";z[1941]="ER_INCORRECT_GTID_STATE";z[1942]="ER_CANNOT_UPDATE_GTID_STATE";z[1943]="ER_DUPLICATE_GTID_DOMAIN";z[1944]="ER_GTID_OPEN_TABLE_FAILED";z[1945]="ER_GTID_POSITION_NOT_FOUND_IN_BINLOG";z[1946]="ER_CANNOT_LOAD_SLAVE_GTID_STATE";z[1947]="ER_MASTER_GTID_POS_CONFLICTS_WITH_BINLOG";z[1948]="ER_MASTER_GTID_POS_MISSING_DOMAIN";z[1949]="ER_UNTIL_REQUIRES_USING_GTID";z[1950]="ER_GTID_STRICT_OUT_OF_ORDER";z[1951]="ER_GTID_START_FROM_BINLOG_HOLE";z[1952]="ER_SLAVE_UNEXPECTED_MASTER_SWITCH";z[1953]="ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_GTID_DOMAIN_ID_SEQ_NO";z[1954]="ER_STORED_FUNCTION_PREVENTS_SWITCH_GTID_DOMAIN_ID_SEQ_NO";z[1955]="ER_GTID_POSITION_NOT_FOUND_IN_BINLOG2";z[1956]="ER_BINLOG_MUST_BE_EMPTY";z[1957]="ER_NO_SUCH_QUERY";z[1958]="ER_BAD_BASE64_DATA";z[1959]="ER_INVALID_ROLE";z[1960]="ER_INVALID_CURRENT_USER";z[1961]="ER_CANNOT_GRANT_ROLE";z[1962]="ER_CANNOT_REVOKE_ROLE";z[1963]="ER_CHANGE_SLAVE_PARALLEL_THREADS_ACTIVE";z[1964]="ER_PRIOR_COMMIT_FAILED";z[1965]="ER_IT_IS_A_VIEW";z[1966]="ER_SLAVE_SKIP_NOT_IN_GTID";z[1967]="ER_TABLE_DEFINITION_TOO_BIG";z[1968]="ER_PLUGIN_INSTALLED";z[1969]="ER_STATEMENT_TIMEOUT";z[1970]="ER_SUBQUERIES_NOT_SUPPORTED";z[1971]="ER_SET_STATEMENT_NOT_SUPPORTED";z[1972]="ER_UNUSED_9";z[1973]="ER_USER_CREATE_EXISTS";z[1974]="ER_USER_DROP_EXISTS";z[1975]="ER_ROLE_CREATE_EXISTS";z[1976]="ER_ROLE_DROP_EXISTS";z[1977]="ER_CANNOT_CONVERT_CHARACTER";z[1978]="ER_INVALID_DEFAULT_VALUE_FOR_FIELD";z[1979]="ER_KILL_QUERY_DENIED_ERROR";z[1980]="ER_NO_EIS_FOR_FIELD";z[1981]="ER_WARN_AGGFUNC_DEPENDENCE";z[1982]="WARN_INNODB_PARTITION_OPTION_IGNORED";z[3e3]="ER_FILE_CORRUPT";z[3001]="ER_ERROR_ON_MASTER";z[3002]="ER_INCONSISTENT_ERROR";z[3003]="ER_STORAGE_ENGINE_NOT_LOADED";z[3004]="ER_GET_STACKED_DA_WITHOUT_ACTIVE_HANDLER";z[3005]="ER_WARN_LEGACY_SYNTAX_CONVERTED";z[3006]="ER_BINLOG_UNSAFE_FULLTEXT_PLUGIN";z[3007]="ER_CANNOT_DISCARD_TEMPORARY_TABLE";z[3008]="ER_FK_DEPTH_EXCEEDED";z[3009]="ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE_V2";z[3010]="ER_WARN_TRIGGER_DOESNT_HAVE_CREATED";z[3011]="ER_REFERENCED_TRG_DOES_NOT_EXIST_MYSQL";z[3012]="ER_EXPLAIN_NOT_SUPPORTED";z[3013]="ER_INVALID_FIELD_SIZE";z[3014]="ER_MISSING_HA_CREATE_OPTION";z[3015]="ER_ENGINE_OUT_OF_MEMORY";z[3016]="ER_PASSWORD_EXPIRE_ANONYMOUS_USER";z[3017]="ER_SLAVE_SQL_THREAD_MUST_STOP";z[3018]="ER_NO_FT_MATERIALIZED_SUBQUERY";z[3019]="ER_INNODB_UNDO_LOG_FULL";z[3020]="ER_INVALID_ARGUMENT_FOR_LOGARITHM";z[3021]="ER_SLAVE_CHANNEL_IO_THREAD_MUST_STOP";z[3022]="ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO";z[3023]="ER_WARN_ONLY_MASTER_LOG_FILE_NO_POS";z[3024]="ER_QUERY_TIMEOUT";z[3025]="ER_NON_RO_SELECT_DISABLE_TIMER";z[3026]="ER_DUP_LIST_ENTRY";z[3027]="ER_SQL_MODE_NO_EFFECT";z[3028]="ER_AGGREGATE_ORDER_FOR_UNION";z[3029]="ER_AGGREGATE_ORDER_NON_AGG_QUERY";z[3030]="ER_SLAVE_WORKER_STOPPED_PREVIOUS_THD_ERROR";z[3031]="ER_DONT_SUPPORT_SLAVE_PRESERVE_COMMIT_ORDER";z[3032]="ER_SERVER_OFFLINE_MODE";z[3033]="ER_GIS_DIFFERENT_SRIDS";z[3034]="ER_GIS_UNSUPPORTED_ARGUMENT";z[3035]="ER_GIS_UNKNOWN_ERROR";z[3036]="ER_GIS_UNKNOWN_EXCEPTION";z[3037]="ER_GIS_INVALID_DATA";z[3038]="ER_BOOST_GEOMETRY_EMPTY_INPUT_EXCEPTION";z[3039]="ER_BOOST_GEOMETRY_CENTROID_EXCEPTION";z[3040]="ER_BOOST_GEOMETRY_OVERLAY_INVALID_INPUT_EXCEPTION";z[3041]="ER_BOOST_GEOMETRY_TURN_INFO_EXCEPTION";z[3042]="ER_BOOST_GEOMETRY_SELF_INTERSECTION_POINT_EXCEPTION";z[3043]="ER_BOOST_GEOMETRY_UNKNOWN_EXCEPTION";z[3044]="ER_STD_BAD_ALLOC_ERROR";z[3045]="ER_STD_DOMAIN_ERROR";z[3046]="ER_STD_LENGTH_ERROR";z[3047]="ER_STD_INVALID_ARGUMENT";z[3048]="ER_STD_OUT_OF_RANGE_ERROR";z[3049]="ER_STD_OVERFLOW_ERROR";z[3050]="ER_STD_RANGE_ERROR";z[3051]="ER_STD_UNDERFLOW_ERROR";z[3052]="ER_STD_LOGIC_ERROR";z[3053]="ER_STD_RUNTIME_ERROR";z[3054]="ER_STD_UNKNOWN_EXCEPTION";z[3055]="ER_GIS_DATA_WRONG_ENDIANESS";z[3056]="ER_CHANGE_MASTER_PASSWORD_LENGTH";z[3057]="ER_USER_LOCK_WRONG_NAME";z[3058]="ER_USER_LOCK_DEADLOCK";z[3059]="ER_REPLACE_INACCESSIBLE_ROWS";z[3060]="ER_ALTER_OPERATION_NOT_SUPPORTED_REASON_GIS";z[4e3]="ER_COMMULTI_BADCONTEXT";z[4001]="ER_BAD_COMMAND_IN_MULTI";z[4002]="ER_WITH_COL_WRONG_LIST";z[4003]="ER_TOO_MANY_DEFINITIONS_IN_WITH_CLAUSE";z[4004]="ER_DUP_QUERY_NAME";z[4005]="ER_RECURSIVE_WITHOUT_ANCHORS";z[4006]="ER_UNACCEPTABLE_MUTUAL_RECURSION";z[4007]="ER_REF_TO_RECURSIVE_WITH_TABLE_IN_DERIVED";z[4008]="ER_NOT_STANDARD_COMPLIANT_RECURSIVE";z[4009]="ER_WRONG_WINDOW_SPEC_NAME";z[4010]="ER_DUP_WINDOW_NAME";z[4011]="ER_PARTITION_LIST_IN_REFERENCING_WINDOW_SPEC";z[4012]="ER_ORDER_LIST_IN_REFERENCING_WINDOW_SPEC";z[4013]="ER_WINDOW_FRAME_IN_REFERENCED_WINDOW_SPEC";z[4014]="ER_BAD_COMBINATION_OF_WINDOW_FRAME_BOUND_SPECS";z[4015]="ER_WRONG_PLACEMENT_OF_WINDOW_FUNCTION";z[4016]="ER_WINDOW_FUNCTION_IN_WINDOW_SPEC";z[4017]="ER_NOT_ALLOWED_WINDOW_FRAME";z[4018]="ER_NO_ORDER_LIST_IN_WINDOW_SPEC";z[4019]="ER_RANGE_FRAME_NEEDS_SIMPLE_ORDERBY";z[4020]="ER_WRONG_TYPE_FOR_ROWS_FRAME";z[4021]="ER_WRONG_TYPE_FOR_RANGE_FRAME";z[4022]="ER_FRAME_EXCLUSION_NOT_SUPPORTED";z[4023]="ER_WINDOW_FUNCTION_DONT_HAVE_FRAME";z[4024]="ER_INVALID_NTILE_ARGUMENT";z[4025]="ER_CONSTRAINT_FAILED";z[4026]="ER_EXPRESSION_IS_TOO_BIG";z[4027]="ER_ERROR_EVALUATING_EXPRESSION";z[4028]="ER_CALCULATING_DEFAULT_VALUE";z[4029]="ER_EXPRESSION_REFERS_TO_UNINIT_FIELD";z[4030]="ER_PARTITION_DEFAULT_ERROR";z[4031]="ER_REFERENCED_TRG_DOES_NOT_EXIST";z[4032]="ER_INVALID_DEFAULT_PARAM";z[4033]="ER_BINLOG_NON_SUPPORTED_BULK";z[4034]="ER_BINLOG_UNCOMPRESS_ERROR";z[4035]="ER_JSON_BAD_CHR";z[4036]="ER_JSON_NOT_JSON_CHR";z[4037]="ER_JSON_EOS";z[4038]="ER_JSON_SYNTAX";z[4039]="ER_JSON_ESCAPING";z[4040]="ER_JSON_DEPTH";z[4041]="ER_JSON_PATH_EOS";z[4042]="ER_JSON_PATH_SYNTAX";z[4043]="ER_JSON_PATH_DEPTH";z[4044]="ER_JSON_PATH_NO_WILDCARD";z[4045]="ER_JSON_PATH_ARRAY";z[4046]="ER_JSON_ONE_OR_ALL";z[4047]="ER_UNSUPPORT_COMPRESSED_TEMPORARY_TABLE";z[4048]="ER_GEOJSON_INCORRECT";z[4049]="ER_GEOJSON_TOO_FEW_POINTS";z[4050]="ER_GEOJSON_NOT_CLOSED";z[4051]="ER_JSON_PATH_EMPTY";z[4052]="ER_SLAVE_SAME_ID";z[4053]="ER_FLASHBACK_NOT_SUPPORTED";z[4054]="ER_KEYS_OUT_OF_ORDER";z[4055]="ER_OVERLAPPING_KEYS";z[4056]="ER_REQUIRE_ROW_BINLOG_FORMAT";z[4057]="ER_ISOLATION_MODE_NOT_SUPPORTED";z[4058]="ER_ON_DUPLICATE_DISABLED";z[4059]="ER_UPDATES_WITH_CONSISTENT_SNAPSHOT";z[4060]="ER_ROLLBACK_ONLY";z[4061]="ER_ROLLBACK_TO_SAVEPOINT";z[4062]="ER_ISOLATION_LEVEL_WITH_CONSISTENT_SNAPSHOT";z[4063]="ER_UNSUPPORTED_COLLATION";z[4064]="ER_METADATA_INCONSISTENCY";z[4065]="ER_CF_DIFFERENT";z[4066]="ER_RDB_TTL_DURATION_FORMAT";z[4067]="ER_RDB_STATUS_GENERAL";z[4068]="ER_RDB_STATUS_MSG";z[4069]="ER_RDB_TTL_UNSUPPORTED";z[4070]="ER_RDB_TTL_COL_FORMAT";z[4071]="ER_PER_INDEX_CF_DEPRECATED";z[4072]="ER_KEY_CREATE_DURING_ALTER";z[4073]="ER_SK_POPULATE_DURING_ALTER";z[4074]="ER_SUM_FUNC_WITH_WINDOW_FUNC_AS_ARG";z[4075]="ER_NET_OK_PACKET_TOO_LARGE";z[4076]="ER_GEOJSON_EMPTY_COORDINATES";z[4077]="ER_MYROCKS_CANT_NOPAD_COLLATION";z[4078]="ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION";z[4079]="ER_ILLEGAL_PARAMETER_DATA_TYPE_FOR_OPERATION";z[4080]="ER_WRONG_PARAMCOUNT_TO_CURSOR";z[4081]="ER_UNKNOWN_STRUCTURED_VARIABLE";z[4082]="ER_ROW_VARIABLE_DOES_NOT_HAVE_FIELD";z[4083]="ER_END_IDENTIFIER_DOES_NOT_MATCH";z[4084]="ER_SEQUENCE_RUN_OUT";z[4085]="ER_SEQUENCE_INVALID_DATA";z[4086]="ER_SEQUENCE_INVALID_TABLE_STRUCTURE";z[4087]="ER_SEQUENCE_ACCESS_ERROR";z[4088]="ER_SEQUENCE_BINLOG_FORMAT";z[4089]="ER_NOT_SEQUENCE";z[4090]="ER_NOT_SEQUENCE2";z[4091]="ER_UNKNOWN_SEQUENCES";z[4092]="ER_UNKNOWN_VIEW";z[4093]="ER_WRONG_INSERT_INTO_SEQUENCE";z[4094]="ER_SP_STACK_TRACE";z[4095]="ER_PACKAGE_ROUTINE_IN_SPEC_NOT_DEFINED_IN_BODY";z[4096]="ER_PACKAGE_ROUTINE_FORWARD_DECLARATION_NOT_DEFINED";z[4097]="ER_COMPRESSED_COLUMN_USED_AS_KEY";z[4098]="ER_UNKNOWN_COMPRESSION_METHOD";z[4099]="ER_WRONG_NUMBER_OF_VALUES_IN_TVC";z[4100]="ER_FIELD_REFERENCE_IN_TVC";z[4101]="ER_WRONG_TYPE_FOR_PERCENTILE_FUNC";z[4102]="ER_ARGUMENT_NOT_CONSTANT";z[4103]="ER_ARGUMENT_OUT_OF_RANGE";z[4104]="ER_WRONG_TYPE_OF_ARGUMENT";z[4105]="ER_NOT_AGGREGATE_FUNCTION";z[4106]="ER_INVALID_AGGREGATE_FUNCTION";z[4107]="ER_INVALID_VALUE_TO_LIMIT";z[4108]="ER_INVISIBLE_NOT_NULL_WITHOUT_DEFAULT";z[4109]="ER_UPDATE_INFO_WITH_SYSTEM_VERSIONING";z[4110]="ER_VERS_FIELD_WRONG_TYPE";z[4111]="ER_VERS_ENGINE_UNSUPPORTED";z[4112]="ER_UNUSED_23";z[4113]="ER_PARTITION_WRONG_TYPE";z[4114]="WARN_VERS_PART_FULL";z[4115]="WARN_VERS_PARAMETERS";z[4116]="ER_VERS_DROP_PARTITION_INTERVAL";z[4117]="ER_UNUSED_25";z[4118]="WARN_VERS_PART_NON_HISTORICAL";z[4119]="ER_VERS_ALTER_NOT_ALLOWED";z[4120]="ER_VERS_ALTER_ENGINE_PROHIBITED";z[4121]="ER_VERS_RANGE_PROHIBITED";z[4122]="ER_CONFLICTING_FOR_SYSTEM_TIME";z[4123]="ER_VERS_TABLE_MUST_HAVE_COLUMNS";z[4124]="ER_VERS_NOT_VERSIONED";z[4125]="ER_MISSING";z[4126]="ER_VERS_PERIOD_COLUMNS";z[4127]="ER_PART_WRONG_VALUE";z[4128]="ER_VERS_WRONG_PARTS";z[4129]="ER_VERS_NO_TRX_ID";z[4130]="ER_VERS_ALTER_SYSTEM_FIELD";z[4131]="ER_DROP_VERSIONING_SYSTEM_TIME_PARTITION";z[4132]="ER_VERS_DB_NOT_SUPPORTED";z[4133]="ER_VERS_TRT_IS_DISABLED";z[4134]="ER_VERS_DUPLICATE_ROW_START_END";z[4135]="ER_VERS_ALREADY_VERSIONED";z[4136]="ER_UNUSED_24";z[4137]="ER_VERS_NOT_SUPPORTED";z[4138]="ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED";z[4139]="ER_INDEX_FILE_FULL";z[4140]="ER_UPDATED_COLUMN_ONLY_ONCE";z[4141]="ER_EMPTY_ROW_IN_TVC";z[4142]="ER_VERS_QUERY_IN_PARTITION";z[4143]="ER_KEY_DOESNT_SUPPORT";z[4144]="ER_ALTER_OPERATION_TABLE_OPTIONS_NEED_REBUILD";z[4145]="ER_BACKUP_LOCK_IS_ACTIVE";z[4146]="ER_BACKUP_NOT_RUNNING";z[4147]="ER_BACKUP_WRONG_STAGE";z[4148]="ER_BACKUP_STAGE_FAILED";z[4149]="ER_BACKUP_UNKNOWN_STAGE";z[4150]="ER_USER_IS_BLOCKED";z[4151]="ER_ACCOUNT_HAS_BEEN_LOCKED";z[4152]="ER_PERIOD_TEMPORARY_NOT_ALLOWED";z[4153]="ER_PERIOD_TYPES_MISMATCH";z[4154]="ER_MORE_THAN_ONE_PERIOD";z[4155]="ER_PERIOD_FIELD_WRONG_ATTRIBUTES";z[4156]="ER_PERIOD_NOT_FOUND";z[4157]="ER_PERIOD_COLUMNS_UPDATED";z[4158]="ER_PERIOD_CONSTRAINT_DROP";z[4159]="ER_TOO_LONG_KEYPART";z[4160]="ER_TOO_LONG_DATABASE_COMMENT";z[4161]="ER_UNKNOWN_DATA_TYPE";z[4162]="ER_UNKNOWN_OPERATOR";z[4163]="ER_WARN_HISTORY_ROW_START_TIME";z[4164]="ER_PART_STARTS_BEYOND_INTERVAL";z[4165]="ER_GALERA_REPLICATION_NOT_SUPPORTED";z[4166]="ER_LOAD_INFILE_CAPABILITY_DISABLED";z[4167]="ER_NO_SECURE_TRANSPORTS_CONFIGURED";z[4168]="ER_SLAVE_IGNORED_SHARED_TABLE";z[4169]="ER_NO_AUTOINCREMENT_WITH_UNIQUE";b.exports.codes=z},8745:function(b){b.exports.NOT_NULL=1;b.exports.PRIMARY_KEY=2;b.exports.UNIQUE_KEY=4;b.exports.MULTIPLE_KEY=8;b.exports.BLOB=1<<4;b.exports.UNSIGNED=1<<5;b.exports.ZEROFILL_FLAG=1<<6;b.exports.BINARY_COLLATION=1<<7;b.exports.ENUM=1<<8;b.exports.AUTO_INCREMENT=1<<9;b.exports.TIMESTAMP=1<<10;b.exports.SET=1<<11;b.exports.NO_DEFAULT_VALUE_FLAG=1<<12;b.exports.ON_UPDATE_NOW_FLAG=1<<13;b.exports.NUM_FLAG=1<<14},3290:function(b){b.exports.DECIMAL=0;b.exports.TINY=1;b.exports.SHORT=2;b.exports.LONG=3;b.exports.FLOAT=4;b.exports.DOUBLE=5;b.exports.NULL=6;b.exports.TIMESTAMP=7;b.exports.LONGLONG=8;b.exports.INT24=9;b.exports.DATE=10;b.exports.TIME=11;b.exports.DATETIME=12;b.exports.YEAR=13;b.exports.NEWDATE=14;b.exports.VARCHAR=15;b.exports.BIT=16;b.exports.TIMESTAMP2=17;b.exports.DATETIME2=18;b.exports.TIME2=19;b.exports.JSON=245;b.exports.NEWDECIMAL=246;b.exports.ENUM=247;b.exports.SET=248;b.exports.TINY_BLOB=249;b.exports.MEDIUM_BLOB=250;b.exports.LONG_BLOB=251;b.exports.BLOB=252;b.exports.VAR_STRING=253;b.exports.STRING=254;b.exports.GEOMETRY=255;const z=[];z[0]="DECIMAL";z[1]="TINY";z[2]="SHORT";z[3]="LONG";z[4]="FLOAT";z[5]="DOUBLE";z[6]="NULL";z[7]="TIMESTAMP";z[8]="LONGLONG";z[9]="INT24";z[10]="DATE";z[11]="TIME";z[12]="DATETIME";z[13]="YEAR";z[14]="NEWDATE";z[15]="VARCHAR";z[16]="BIT";z[17]="TIMESTAMP2";z[18]="DATETIME2";z[19]="TIME2";z[245]="JSON";z[246]="NEWDECIMAL";z[247]="ENUM";z[248]="SET";z[249]="TINY_BLOB";z[250]="MEDIUM_BLOB";z[251]="LONG_BLOB";z[252]="BLOB";z[253]="VAR_STRING";z[254]="STRING";z[255]="GEOMETRY";b.exports.TYPES=z},386:function(b){b.exports.STATUS_IN_TRANS=1;b.exports.STATUS_AUTOCOMMIT=2;b.exports.MORE_RESULTS_EXISTS=8;b.exports.QUERY_NO_GOOD_INDEX_USED=16;b.exports.QUERY_NO_INDEX_USED=32;b.exports.STATUS_CURSOR_EXISTS=64;b.exports.STATUS_LAST_ROW_SENT=128;b.exports.STATUS_DB_DROPPED=1<<8;b.exports.STATUS_NO_BACKSLASH_ESCAPES=1<<9;b.exports.STATUS_METADATA_CHANGED=1<<10;b.exports.QUERY_WAS_SLOW=1<<11;b.exports.PS_OUT_PARAMS=1<<12;b.exports.STATUS_IN_TRANS_READONLY=1<<13;b.exports.SESSION_STATE_CHANGED=1<<14},7311:function(b){b.exports.SESSION_TRACK_SYSTEM_VARIABLES=0;b.exports.SESSION_TRACK_SCHEMA=1;b.exports.SESSION_TRACK_STATE_CHANGE=2;b.exports.SESSION_TRACK_GTIDS=3;b.exports.SESSION_TRACK_TRANSACTION_CHARACTERISTICS=4;b.exports.SESSION_TRACK_TRANSACTION_STATE=5},6699:function(b){function FilteredPoolCluster(b,z,p){const O=b;const o=z;const e=p;this.getConnection=()=>O.getConnection(o,e);this.query=function(b,z){return O.getConnection(o,e).then((p=>p.query(b,z).then((b=>{p.end();return b})).catch((b=>{p.end();return Promise.reject(b)})))).catch((b=>Promise.reject(b)))};this.batch=function(b,z){return O.getConnection(o,e).then((p=>p.batch(b,z).then((b=>{p.end();return b})).catch((b=>{p.end();return Promise.reject(b)})))).catch((b=>Promise.reject(b)))}}b.exports=FilteredPoolCluster},5157:function(b,z,p){"use strict";const O=p(7936);const o=p(1401);const e=1024;const c=16384;const t=131072;const i=1048576;const n=16777219;class BulkPacket{constructor(b,z,p){this.out=z;this.buf=Buffer.allocUnsafe(e);this.pos=4;this.datatypes=[];this.encoding=z.encoding;this.statementId=-1;this.waitingResponseNo=1;this.singleQuery=false;this.haveErrorResponse=false;this.writeBinaryDate=b.tz?b.tz==="Etc/UTC"?this.writeBinaryUtcDate:this.writeBinaryTimezoneDate:this.writeBinaryLocalDate;if(this.encoding==="utf8"){this.writeLengthEncodedString=this.writeDefaultLengthEncodedString}else if(Buffer.isEncoding(this.encoding)){this.writeLengthEncodedString=this.writeDefaultLengthEncodedString}else{this.writeLengthEncodedString=this.writeIconvLengthEncodedString}this.maxAllowedPacket=b.maxAllowedPacket;this.maxPacketSize=b.maxAllowedPacket?Math.min(n,b.maxAllowedPacket):4194304;this.writeHeader(p)}datatypeChanged(b){if(this.datatypes.length!==b.length)return true;for(let z=0;z<b.length;z++){if(b[z]!==null){switch(typeof b[z]){case"boolean":if(this.datatypes[z]!==1)return true;break;case"number":case"bigint":if(this.datatypes[z]!==15)return true;break;case"object":if(Object.prototype.toString.call(b[z])==="[object Date]"){if(this.datatypes[z]!==12)return true}else if(Buffer.isBuffer(b[z])){if(this.datatypes[z]!==251)return true}else if(b[z].type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(b[z].type)){if(this.datatypes[z]!==251)return true}else{if(this.datatypes[z]!==15)return true}break;default:if(this.datatypes[z]!==15)return true}}}return false}writeHeader(b){this.buf[this.pos++]=250;this.buf[this.pos++]=this.statementId;this.buf[this.pos++]=this.statementId>>8;this.buf[this.pos++]=this.statementId>>16;this.buf[this.pos++]=this.statementId>>24;this.buf[this.pos++]=128;this.buf[this.pos++]=0;this.datatypes=[];if(b){for(let z=0;z<b.length;z++){if(b[z]===null){this.buf[this.pos++]=15}else{switch(typeof b[z]){case"boolean":this.buf[this.pos++]=1;break;case"bigint":case"number":this.buf[this.pos++]=15;break;case"object":if(Object.prototype.toString.call(b[z])==="[object Date]"){this.buf[this.pos++]=12}else if(Buffer.isBuffer(b[z])){this.buf[this.pos++]=251}else if(b[z].type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(b[z].type)){this.buf[this.pos++]=251}else{this.buf[this.pos++]=15}break;default:this.buf[this.pos++]=15}}this.datatypes[z]=this.buf[this.pos-1];this.buf[this.pos++]=0}}}growBuffer(b){let z;if(b+this.pos<c){z=c}else if(b+this.pos<t){z=t}else if(b+this.pos<i){z=i}else z=n;if(z>this.maxPacketSize&&this.markPos){this.flush(false,b);return true}else{let b=Buffer.allocUnsafe(Math.min(z));this.buf.copy(b,0,0,this.pos);this.buf=b;return false}}writeLengthStringAscii(b){let z=b.length;if(z>=this.buf.length-this.pos){let z=Buffer.from(b,"ascii");return this.writeLengthEncodedBuffer(z)}this.writeLength(z);for(let p=0;p<z;){this.buf[this.pos++]=b.charCodeAt(p++)}return false}writeLength(b){if(b<251){return this.writeInt8(b)}else if(b<65536){let z=this.writeInt8(252);return this.writeInt16(b)||z}else if(b<16777216){let z=this.writeInt8(253);return this.writeInt24(b)||z}else{if(this.pos+9>=this.buf.length){const z=Buffer.allocUnsafe(9);z[0]=254;z[1]=b;z[2]=b>>>8;z[3]=b>>>16;z[4]=b>>>24;z[5]=0;z[6]=0;z[7]=0;z[8]=0;return this.writeBuffer(z)}this.buf[this.pos++]=254;this.buf[this.pos++]=b;this.buf[this.pos++]=b>>>8;this.buf[this.pos++]=b>>>16;this.buf[this.pos++]=b>>>24;this.buf[this.pos++]=0;this.buf[this.pos++]=0;this.buf[this.pos++]=0;this.buf[this.pos++]=0;return false}}writeLengthEncodedBuffer(b){let z=b.length;let p=this.writeLength(z);return this.writeBuffer(b)||p}writeBuffer(b){let z=false;let p=b.length;if(p>this.buf.length-this.pos){if(this.buf.length<n)z=this.growBuffer(p*2);if(p>this.buf.length-this.pos){let z=this.buf.length-this.pos;b.copy(this.buf,this.pos,0,z);this.pos+=z;this.flush(false,p-z);while(z<p){if(this.buf.length-this.pos<p-z)this.growBuffer(p-z);const O=Math.min(p-z,this.buf.length-this.pos);b.copy(this.buf,this.pos,z,z+O);z+=O;this.pos+=O;if(p-z>0)this.flush(false,p-z)}return true}}b.copy(this.buf,this.pos,0,p);this.pos+=p;return z}writeInt8(b){let z=false;if(this.pos+1>this.buf.length){if(this.buf.length<n){z=this.growBuffer(1)}else{this.flush(false,1);this.buf[this.pos++]=b;return true}}this.buf[this.pos++]=b;return z}writeInt16(b){let z=false;if(this.pos+2>this.buf.length){if(this.buf.length<this.maxPacketSize)z=this.growBuffer(2);if(this.pos+2>this.buf.length){const z=Buffer.allocUnsafe(2);z[0]=b;z[1]=b>>>8;this.writeBuffer(z);return true}}this.buf[this.pos++]=b;this.buf[this.pos++]=b>>>8;return z}writeInt24(b){let z=false;if(this.pos+3>this.buf.length){if(this.buf.length<this.maxPacketSize)z=this.growBuffer(3);if(this.pos+3>this.buf.length){const z=Buffer.allocUnsafe(3);z[0]=b;z[1]=b>>>8;z[2]=b>>>16;this.writeBuffer(z);return true}}this.buf[this.pos++]=b;this.buf[this.pos++]=b>>>8;this.buf[this.pos++]=b>>>16;return z}writeIconvLengthEncodedString(b){let z=o.encode(b,this.encoding);return this.writeLengthEncodedBuffer(z,0,z.length)}writeDefaultLengthEncodedString(b){if(b.length*3+10<this.buf.length-this.pos){const z=b.length*3;let p;if(z<251){p=this.pos;this.pos++}else if(z<65536){this.buf[this.pos++]=252;p=this.pos;this.pos+=2}else{this.buf[this.pos++]=253;p=this.pos;this.pos+=3}const O=this.pos;this.pos+=this.buf.write(b,this.pos,this.encoding);const o=this.pos-O;if(z<251){this.buf[p]=o}else if(z<65536){this.buf[p]=o;this.buf[p+1]=o>>>8}else{this.buf[p]=o;this.buf[p+1]=o>>>8;this.buf[p+2]=o>>>16}return false}let z=false;let p=Buffer.byteLength(b,this.encoding);if(p+9>this.buf.length-this.pos){if(this.buf.length<n)z=this.growBuffer(p+9);if(p>this.buf.length-this.pos){let p=Buffer.from(b,this.encoding);return this.writeLengthEncodedBuffer(p)||z}}this.writeLength(p);this.pos+=this.buf.write(b,this.pos,this.encoding);return z}writeBinaryLocalDate(b,z){const p=b.getFullYear();const O=b.getMonth()+1;const o=b.getDate();const e=b.getHours();const c=b.getMinutes();const t=b.getSeconds();const i=b.getMilliseconds();return this._writeBinaryDate(p,O,o,e,c,t,i)}writeBinaryUtcDate(b,z){const p=b.getUTCFullYear();const O=b.getUTCMonth()+1;const o=b.getUTCDate();const e=b.getUTCHours();const c=b.getUTCMinutes();const t=b.getUTCSeconds();const i=b.getUTCMilliseconds();return this._writeBinaryDate(p,O,o,e,c,t,i)}_writeBinaryDate(b,z,p,O,o,e,c){let t=c===0?7:11;if(t+1>this.buf.length-this.pos){let i=Buffer.allocUnsafe(t+1);i[0]=t;i[1]=b;i[2]=b>>>8;i[3]=z;i[4]=p;i[5]=O;i[6]=o;i[7]=e;if(c!==0){const b=c*1e3;i[8]=b;i[9]=b>>>8;i[10]=b>>>16;i[11]=b>>>24}return this.writeBuffer(i)}this.buf[this.pos]=t;this.buf[this.pos+1]=b;this.buf[this.pos+2]=b>>>8;this.buf[this.pos+3]=z;this.buf[this.pos+4]=p;this.buf[this.pos+5]=O;this.buf[this.pos+6]=o;this.buf[this.pos+7]=e;if(c!==0){const b=c*1e3;this.buf[this.pos+8]=b;this.buf[this.pos+9]=b>>>8;this.buf[this.pos+10]=b>>>16;this.buf[this.pos+11]=b>>>24}this.pos+=t+1;return false}writeBinaryTimezoneDate(b,z){const p=new Date(O.tz(b,z._localTz).tz(z.tz).format("YYYY-MM-DD HH:mm:ss.SSSSSS"));const o=p.getFullYear();const e=p.getMonth()+1;const c=p.getDate();const t=p.getHours();const i=p.getMinutes();const n=p.getSeconds();const s=p.getMilliseconds();return this._writeBinaryDate(o,e,c,t,i,n,s)}mark(b,z){let p=false;this.nextRow=z;if(this.singleQuery){if(!this.haveErrorResponse){const b=this.pos+(this.singleQuerySequenceNo!==undefined?(this.singleQuerySequenceNo+1)*n:0);if(this.maxAllowedPacket&&b>this.maxAllowedPacket){console.log("will send a packet to db server with size > connection option 'maxAllowedPacket' (size send is "+b+") connection might be reset by server")}this.copyAndFlush(true);p=true;this.markPos=undefined}this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined;this.singleQuery=false;this.writeHeader(z);this.markPos=undefined}else{if(!b&&this.datatypeChanged(z)){this.markPos=this.pos;this.flushMark();p=true}else if(this.markPos&&this.pos>this.maxPacketSize){this.flushMark();p=true}else{this.markPos=this.pos;if(b){this.flushMark();p=true}}}return p}flush(b,z){if(this.markPos&&!this.singleQuery){this.flushMark()}else{if(this.buf.length<n){let b=Buffer.allocUnsafe(n);this.buf.copy(b,0,0,this.pos);this.buf=b}else{if(!this.haveErrorResponse){if(this.maxAllowedPacket&&this.buf.length>this.maxAllowedPacket){console.log("will send a packet to server with size > connection option 'maxAllowedPacket' (size send is "+this.pos+") connection might be reset by server")}this.copyAndFlush(false);this.markPos=undefined;if(!this.singleQuery)this.waitingResponseNo++;this.singleQuery=true;this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}}}}flushMark(){let b;if(this.pos!==this.markPos){b=Buffer.allocUnsafe(this.pos-this.markPos);this.buf.copy(b,0,this.markPos,this.pos)}this.pos=this.markPos;if(!this.haveErrorResponse){this.copyAndFlush(true);this.waitingResponseNo++}this.pos=4;this.markPos=undefined;if(this.nextRow)this.writeHeader(this.nextRow);if(b){if(this.buf.length-this.pos<b.length)this.growBuffer(b.length-(this.buf.length-this.pos));b.copy(this.buf,this.pos,0,b.length);this.pos+=b.length}this.singleQuery=false;this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined}copyAndFlush(b){this.out.buf=this.buf;this.out.pos=this.pos;if(this.singleQuerySequenceNo!==undefined){this.out.cmd.sequenceNo=this.singleQuerySequenceNo;this.out.cmd.compressSequenceNo=this.singleQueryCompressSequenceNo}else{this.out.cmd.sequenceNo=-1;this.out.cmd.compressSequenceNo=-1}this.out.flushBuffer(b);if(this.singleQuerySequenceNo!==undefined){this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}this.pos=4;this.buf=Buffer.allocUnsafe(e)}endedWithError(){this.haveErrorResponse=true}}b.exports=BulkPacket},8234:function(b,z,p){"use strict";const O=p(9796);const o=p(2245);class CompressionInputStream{constructor(b,z,p,O){this.reader=b;this.receiveQueue=z;this.info=O;this.opts=p;this.header=Buffer.allocUnsafe(7);this.headerLen=0;this.compressPacketLen=null;this.packetLen=null;this.remainingLen=null;this.parts=null;this.partsTotalLen=0}receivePacket(b){let z=this.currentCmd();if(this.opts.debugCompress){console.log("<== conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,z?z.onPacketReceive?z.constructor.name+"."+z.onPacketReceive.name:z.constructor.name:"no command",o.log(this.opts,b,0,b.length,this.header))}if(z)z.compressSequenceNo=this.header[3];const p=this.header[4]|this.header[5]<<8|this.header[6]<<16;if(p===0){this.reader.onData(b)}else{const z=O.inflateSync(b);this.reader.onData(z)}}currentCmd(){let b;while(b=this.receiveQueue.peek()){if(b.onPacketReceive)return b;this.receiveQueue.shift()}return null}resetHeader(){this.remainingLen=null;this.headerLen=0}onData(b){let z=0;let p;const O=b.length;do{if(this.remainingLen){p=this.remainingLen}else if(this.headerLen===0&&O-z>=7){this.header[0]=b[z];this.header[1]=b[z+1];this.header[2]=b[z+2];this.header[3]=b[z+3];this.header[4]=b[z+4];this.header[5]=b[z+5];this.header[6]=b[z+6];this.headerLen=7;z+=7;this.compressPacketLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);this.packetLen=this.header[4]|this.header[5]<<8|this.header[6]<<16;if(this.packetLen===0)this.packetLen=this.compressPacketLen;p=this.compressPacketLen}else{p=null;while(O-z>0){this.header[this.headerLen++]=b[z++];if(this.headerLen===7){this.compressPacketLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);this.packetLen=this.header[4]|this.header[5]<<8|this.header[6]<<16;if(this.packetLen===0)this.packetLen=this.compressPacketLen;p=this.compressPacketLen;break}}}if(p){if(O-z>=p){const O=b.slice(z,z+p);z+=p;if(this.parts){this.parts.push(O);this.partsTotalLen+=p;if(this.compressPacketLen<16777215){let b=Buffer.concat(this.parts,this.partsTotalLen);this.parts=null;this.receivePacket(b)}}else{if(this.compressPacketLen<16777215){this.receivePacket(O)}else{this.parts=[O];this.partsTotalLen=p}}this.resetHeader()}else{const o=b.slice(z,O);if(!this.parts){this.parts=[o];this.partsTotalLen=O-z}else{this.parts.push(o);this.partsTotalLen+=O-z}this.remainingLen=p-(O-z);return}}}while(z<O)}}b.exports=CompressionInputStream},4997:function(b,z,p){"use strict";const O=p(2245);const o=p(9796);const e=2048;const c=131072;const t=1048576;const i=16777222;class CompressionOutputStream{constructor(b,z,p){this.info=p;this.opts=z;this.pos=7;this.header=Buffer.allocUnsafe(7);this.buf=Buffer.allocUnsafe(e);this.writer=z=>{b.write(z)}}growBuffer(b){let z;if(b+this.pos<c){z=c}else if(b+this.pos<t){z=t}else z=i;let p=Buffer.allocUnsafe(z);this.buf.copy(p,0,0,this.pos);this.buf=p}writeBuf(b,z){let p=0,O=b.length;if(O>this.buf.length-this.pos){if(this.buf.length!==i){this.growBuffer(O)}if(O>this.buf.length-this.pos){let o=O;while(true){let O=Math.min(i-this.pos,o);b.copy(this.buf,this.pos,p,p+O);o-=O;p+=O;this.pos+=O;if(o===0)return;this.flush(false,z,o)}}}b.copy(this.buf,this.pos,p,p+O);this.pos+=O}flush(b,z,p){if(this.pos<1536){this.buf[0]=this.pos-7;this.buf[1]=this.pos-7>>>8;this.buf[2]=this.pos-7>>>16;this.buf[3]=++z.compressSequenceNo;this.buf[4]=0;this.buf[5]=0;this.buf[6]=0;if(this.opts.debugCompress){console.log("==> conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,z?z.constructor.name+"(0,"+this.pos+")":"unknown",O.log(this.opts,this.buf,0,this.pos))}this.writer(this.buf.slice(0,this.pos))}else{const p=o.deflateSync(this.buf.slice(7,this.pos));const e=p.length;this.header[0]=e;this.header[1]=e>>>8;this.header[2]=e>>>16;this.header[3]=++z.compressSequenceNo;this.header[4]=this.pos-7;this.header[5]=this.pos-7>>>8;this.header[6]=this.pos-7>>>16;if(this.opts.debugCompress){console.log("==> conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,z?z.constructor.name+"(0,"+this.pos+"=>"+e+")":"unknown",O.log(this.opts,p,0,e,this.header))}this.writer(this.header);this.writer(p);if(b&&this.pos===i)this.writeEmptyPacket(z);this.header=Buffer.allocUnsafe(7)}this.buf=p?CompressionOutputStream.allocateBuffer(p):Buffer.allocUnsafe(e);this.pos=7}static allocateBuffer(b){if(b+4<e){return Buffer.allocUnsafe(e)}else if(b+4<c){return Buffer.allocUnsafe(c)}else if(b+4<t){return Buffer.allocUnsafe(t)}return Buffer.allocUnsafe(i)}writeEmptyPacket(b){const z=Buffer.from([0,0,0,b.compressSequenceNo,0,0,0]);if(this.opts.debugCompress){console.log("==> conn:%d %s (compress)\n%s",this.info.threadId?this.info.threadId:-1,b?b.constructor.name+"(0,"+this.pos+")":"unknown",O.log(this.opts,z,0,7))}this.writer(z)}}b.exports=CompressionOutputStream},1516:function(b,z,p){"use strict";const O=p(2962);const o=p(9466);const e=p(2245);class PacketInputStream{constructor(b,z,p,O,o){this.unexpectedPacket=b;this.opts=O;this.receiveQueue=z;this.info=o;this.out=p;this.header=Buffer.allocUnsafe(4);this.headerLen=0;this.packetLen=null;this.remainingLen=null;this.parts=null;this.partsTotalLen=0;this.changeEncoding(this.opts.collation);this.changeDebug(this.opts.logPackets,this.opts.debug);this.opts.on("collation",this.changeEncoding.bind(this));this.opts.on("debug",this.changeDebug.bind(this))}changeEncoding(b){this.encoding=b.charset;this.packetConstructor=Buffer.isEncoding(this.encoding)?O:o}changeDebug(b,z){this.logPackets=b;this.debug=z;this.receivePacket=this.logPackets||this.debug?this.receivePacketDebug:this.receivePacketBasic}receivePacketDebug(b){let z=this.currentCmd();if(b){const p=e.log(this.opts,b.buf,b.pos,b.end,this.header);if(this.opts.logPackets){this.info.addPacket("<== conn:"+(this.info.threadId?this.info.threadId:-1)+" "+(z?z.onPacketReceive?z.constructor.name+"."+z.onPacketReceive.name:z.constructor.name:"no command")+" ("+b.pos+","+b.end+"))\n"+p)}if(this.opts.debug){console.log("<== conn:%d %s (%d,%d)\n%s",this.info.threadId?this.info.threadId:-1,z?z.onPacketReceive?z.constructor.name+"."+z.onPacketReceive.name:z.constructor.name:"no command",b.pos,b.end,p)}}if(!z){this.unexpectedPacket(b);return}z.sequenceNo=this.header[3];z.onPacketReceive(b,this.out,this.opts,this.info);if(!z.onPacketReceive)this.receiveQueue.shift()}receivePacketBasic(b){let z=this.currentCmd();if(!z){this.unexpectedPacket(b);return}z.sequenceNo=this.header[3];z.onPacketReceive(b,this.out,this.opts,this.info);if(!z.onPacketReceive)this.receiveQueue.shift()}resetHeader(){this.remainingLen=null;this.headerLen=0}currentCmd(){let b;while(b=this.receiveQueue.peek()){if(b.onPacketReceive)return b;this.receiveQueue.shift()}return null}onData(b){let z=0;let p;const O=b.length;do{if(this.remainingLen){p=this.remainingLen}else if(this.headerLen===0&&O-z>=4){this.header[0]=b[z];this.header[1]=b[z+1];this.header[2]=b[z+2];this.header[3]=b[z+3];z+=4;this.headerLen=4;this.packetLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);p=this.packetLen}else{p=null;while(O-z>0){this.header[this.headerLen++]=b[z++];if(this.headerLen===4){this.packetLen=this.header[0]+(this.header[1]<<8)+(this.header[2]<<16);p=this.packetLen;break}}}if(p){if(O-z>=p){const O=b.slice(z,z+p);z+=p;if(this.parts){this.parts.push(O);this.partsTotalLen+=p;if(this.packetLen<16777215){let b=Buffer.concat(this.parts,this.partsTotalLen);this.parts=null;const z=new this.packetConstructor(b,0,this.partsTotalLen,this.encoding);this.receivePacket(z)}}else{if(this.packetLen<16777215){const b=new this.packetConstructor(O,0,p,this.encoding);this.receivePacket(b)}else{this.parts=[O];this.partsTotalLen=p}}this.resetHeader()}else{const o=b.slice(z,O);if(!this.parts){this.parts=[o];this.partsTotalLen=O-z}else{this.parts.push(o);this.partsTotalLen+=O-z}this.remainingLen=p-(O-z);return}}}while(z<O)}}b.exports=PacketInputStream},2962:function(b,z,p){"use strict";const O=p(6546);class PacketNodeEncoded extends O{constructor(b,z,p,O){super(b,z,p);this.encoding=O}readStringLength(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return this.buf.toString(this.encoding,this.pos-b,this.pos)}readString(b,z){return this.buf.toString(this.encoding,b,b+z)}subPacketLengthEncoded(){const b=this.readUnsignedLength();this.skip(b);return new PacketNodeEncoded(this.buf,this.pos-b,this.pos,this.encoding)}readStringRemaining(){const b=this.buf.toString(this.encoding,this.pos,this.end);this.pos=this.end;return b}}b.exports=PacketNodeEncoded},9466:function(b,z,p){"use strict";const O=p(6546);const o=p(1401);class PacketIconvEncoded extends O{constructor(b,z,p,O){super(b,z,p);this.encoding=O}readStringLength(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return o.decode(this.buf.slice(this.pos-b,this.pos),this.encoding)}readString(b,z){return o.decode(this.buf.slice(b,b+z),this.encoding)}subPacketLengthEncoded(){const b=this.readUnsignedLength();this.skip(b);return new PacketIconvEncoded(this.buf,this.pos-b,this.pos,this.encoding)}readStringRemaining(){const b=o.decode(this.buf.slice(this.pos,this.end),this.encoding);this.pos=this.end;return b}}b.exports=PacketIconvEncoded},1412:function(b,z,p){"use strict";const O=p(1401);const o=p(2245);const e=39;const c=34;const t=0;const i=92;const n=1024;const s=16384;const a=131072;const r=1048576;const q=16777219;const d=/[\0\"\'\\\b\n\r\t\u001A]/g;class PacketOutputStream{constructor(b,z){this.opts=b;this.info=z;this.pos=4;this.buf=Buffer.allocUnsafe(n);this.changeEncoding(this.opts.collation);this.changeDebug(this.opts.logPackets,this.opts.debug);this.opts.on("collation",this.changeEncoding.bind(this));this.opts.on("debug",this.changeDebug.bind(this))}changeEncoding(b){this.encoding=b.charset;if(this.encoding==="utf8"){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeUtf8StringEscapeQuote}else if(Buffer.isEncoding(this.encoding)){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}else{this.writeString=this.writeDefaultIconvString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}}changeDebug(b,z){this.logPackets=b;this.debug=z;this.flushBuffer=this.logPackets||this.debug?this.flushBufferDebug:this.flushBufferBasic}setStream(b){this.stream=b}growBuffer(b){let z;if(b+this.pos<s){z=s}else if(b+this.pos<a){z=a}else if(b+this.pos<r){z=r}else z=q;let p=Buffer.allocUnsafe(z);this.buf.copy(p,0,0,this.pos);this.buf=p}startPacket(b){this.cmd=b;this.pos=4}writeInt8(b){if(this.pos+1>=this.buf.length){if(this.pos>=q){this.flushBuffer(false,1)}else this.growBuffer(1)}this.buf[this.pos++]=b}writeInt16(b){if(this.pos+2>=this.buf.length){let z=Buffer.allocUnsafe(2);z.writeUInt16LE(b,0);this.writeBuffer(z,0,2);return}this.buf[this.pos]=b;this.buf[this.pos+1]=b>>8;this.pos+=2}writeInt16AtPos(b){this.buf[b]=this.pos-b-2;this.buf[b+1]=this.pos-b-2>>8}writeInt32(b){if(this.pos+4>=this.buf.length){let z=Buffer.allocUnsafe(4);z.writeInt32LE(b,0);this.writeBuffer(z,0,4);return}this.buf[this.pos]=b;this.buf[this.pos+1]=b>>8;this.buf[this.pos+2]=b>>16;this.buf[this.pos+3]=b>>24;this.pos+=4}writeLengthCoded(b){if(b<251){this.writeInt8(b);return}this.writeInt8(252);this.writeInt16(b)}writeBuffer(b,z,p){if(p>this.buf.length-this.pos){if(this.buf.length!==q){this.growBuffer(p)}if(p>this.buf.length-this.pos){let O=p;while(true){let p=Math.min(q-this.pos,O);b.copy(this.buf,this.pos,z,z+p);O-=p;z+=p;this.pos+=p;if(O===0)return;this.flushBuffer(false,O)}}}b.copy(this.buf,this.pos,z,z+p);this.pos+=p}writeStringAscii(b){let z=b.length;if(z>=this.buf.length-this.pos){let z=Buffer.from(b,"ascii");this.writeBuffer(z,0,z.length);return}for(let p=0;p<z;){this.buf[this.pos++]=b.charCodeAt(p++)}}writeUtf8StringEscapeQuote(b){const z=b.length;if(z*3+2>=this.buf.length-this.pos){const z=Buffer.from(b,"utf8");this.writeInt8(e);this.writeBufferEscape(z);this.writeInt8(e);return}let p=0;let O;this.buf[this.pos++]=e;for(;p<z&&(O=b.charCodeAt(p))<128;p++){if(O===i||O===e||O===t||O===c){this.buf[this.pos++]=i}this.buf[this.pos++]=O}while(p<z){O=b.charCodeAt(p++);if(O<128){if(O===i||O===e||O===t||O===c){this.buf[this.pos++]=i}this.buf[this.pos++]=O}else if(O<2048){this.buf[this.pos++]=192|O>>6;this.buf[this.pos++]=128|O&63}else if(O>=55296&&O<57344){if(O<56320){if(p+1>z){this.buf[this.pos++]=63}else{const z=b.charCodeAt(p);if(z>=56320&&z<57344){const b=(O<<10)+z+(65536-(55296<<10)-56320);this.buf[this.pos++]=240|b>>18;this.buf[this.pos++]=128|b>>12&63;this.buf[this.pos++]=128|b>>6&63;this.buf[this.pos++]=128|b&63;p++}else{this.buf[this.pos++]=63}}}else{this.buf[this.pos++]=63}}else{this.buf[this.pos++]=224|O>>12;this.buf[this.pos++]=128|O>>6&63;this.buf[this.pos++]=128|O&63}}this.buf[this.pos++]=e}writeDefaultBufferString(b){if(b.length*3<this.buf.length-this.pos){this.pos+=this.buf.write(b,this.pos,this.encoding);return}let z=Buffer.byteLength(b,this.encoding);if(z>this.buf.length-this.pos){if(this.buf.length<q){this.growBuffer(z)}if(z>this.buf.length-this.pos){let z=Buffer.from(b,this.encoding);this.writeBuffer(z,0,z.length);return}}this.pos+=this.buf.write(b,this.pos,this.encoding)}writeDefaultIconvString(b){let z=O.encode(b,this.encoding);this.writeBuffer(z,0,z.length)}writeDefaultStringEscapeQuote(b){this.writeInt8(e);let z;let p=0;while((z=d.exec(b))!==null){this.writeString(b.slice(p,z.index));this.writeInt8(i);this.writeInt8(z[0].charCodeAt(0));p=d.lastIndex}if(p===0){this.writeString(b);this.writeInt8(e);return}if(p<b.length){this.writeString(b.slice(p))}this.writeInt8(e)}writeBufferEscape(b){let z=b.length;if(z*2>this.buf.length-this.pos){if(this.buf.length!==q)this.growBuffer(z*2);if(z*2>this.buf.length-this.pos){for(let p=0;p<z;p++){switch(b[p]){case e:case i:case c:case t:if(this.pos>=this.buf.length)this.flushBuffer(false,(z-p)*2);this.buf[this.pos++]=i}if(this.pos>=this.buf.length)this.flushBuffer(false,(z-p)*2);this.buf[this.pos++]=b[p]}return}}for(let p=0;p<z;p++){switch(b[p]){case e:case i:case c:case t:this.buf[this.pos++]=i}this.buf[this.pos++]=b[p]}}isEmpty(){return this.pos<=4}flushBufferDebug(b,z){this.buf[0]=this.pos-4;this.buf[1]=this.pos-4>>>8;this.buf[2]=this.pos-4>>>16;this.buf[3]=++this.cmd.sequenceNo;this.stream.writeBuf(this.buf.slice(0,this.pos),this.cmd);const p=o.log(this.opts,this.buf,0,this.pos);if(this.opts.logPackets){this.info.addPacket("==> conn:"+(this.info.threadId?this.info.threadId:-1)+" "+this.cmd.constructor.name+"(0,"+this.pos+")\n"+p)}if(this.opts.debug){console.log("==> conn:%d %s\n%s",this.info.threadId?this.info.threadId:-1,this.cmd.constructor.name+"(0,"+this.pos+")",o.log(this.opts,this.buf,0,this.pos))}if(b){if(this.pos===q){this.writeEmptyPacket()}else{this.stream.flush(true,this.cmd);this.buf=Buffer.allocUnsafe(n)}}else{this.buf=allocateBuffer(z+4);this.pos=4}}flushBufferBasic(b,z){this.buf[0]=this.pos-4;this.buf[1]=this.pos-4>>>8;this.buf[2]=this.pos-4>>>16;this.buf[3]=++this.cmd.sequenceNo;this.stream.writeBuf(this.buf.slice(0,this.pos),this.cmd);if(b){if(this.pos===q){this.writeEmptyPacket()}else{this.stream.flush(true,this.cmd);this.buf=Buffer.allocUnsafe(n)}}else{this.buf=allocateBuffer(z+4);this.pos=4}}writeEmptyPacket(){const b=Buffer.from([0,0,0,++this.cmd.sequenceNo]);if(this.opts.logPackets||this.opts.debug){const z=o.log(this.opts,b,0,4);if(this.opts.logPackets){this.info.addPacket("==> conn:"+(this.info.threadId?this.info.threadId:-1)+" "+this.cmd.constructor.name+"(0,4)\n"+z)}if(this.opts.debug){console.log("==> conn:%d %s\n%s",this.info.threadId?this.info.threadId:-1,this.cmd.constructor.name+"(0,4)",z)}}this.stream.writeBuf(b,this.cmd);this.stream.flush(true,this.cmd)}}function allocateBuffer(b){if(b<n){return Buffer.allocUnsafe(n)}else if(b<s){return Buffer.allocUnsafe(s)}else if(b<a){return Buffer.allocUnsafe(a)}else if(b<r){return Buffer.allocUnsafe(r)}return Buffer.allocUnsafe(q)}b.exports=PacketOutputStream},6546:function(b,z,p){"use strict";const O=p(1450);const o=p(1401);const e=p(2694);const c=p(7936);class Packet{constructor(b,z,p){this.buf=b;this.pos=z;this.end=p}skip(b){this.pos+=b}readGeometry(b){const z=this.readBufferLengthEncoded();if(z===null||z.length===0){if(b){switch(b){case"point":return{type:"Point"};case"linestring":return{type:"LineString"};case"polygon":return{type:"Polygon"};case"multipoint":return{type:"MultiPoint"};case"multilinestring":return{type:"MultiLineString"};case"multipolygon":return{type:"MultiPolygon"};default:return{type:b}}}return null}let p=4;return readGeometryObject(false);function parseCoordinates(b){p+=16;const O=b?z.readDoubleLE(p-16):z.readDoubleBE(p-16);const o=b?z.readDoubleLE(p-8):z.readDoubleBE(p-8);return[O,o]}function readGeometryObject(b){const O=z[p++];const o=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;switch(o){case 1:const o=parseCoordinates(O);if(b)return o;return{type:"Point",coordinates:o};case 2:const e=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;let c=[];for(let b=0;b<e;b++){c.push(parseCoordinates(O))}if(b)return c;return{type:"LineString",coordinates:c};case 3:let t=[];const i=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;for(let b=0;b<i;b++){const b=O?z.readInt32LE(p):z.readInt32BE(p);p+=4;let o=[];for(let z=0;z<b;z++){o.push(parseCoordinates(O))}t.push(o)}if(b)return t;return{type:"Polygon",coordinates:t};case 4:return{type:"MultiPoint",coordinates:parseGeomArray(O,true)};case 5:return{type:"MultiLineString",coordinates:parseGeomArray(O,true)};case 6:return{type:"MultiPolygon",coordinates:parseGeomArray(O,true)};case 7:return{type:"GeometryCollection",geometries:parseGeomArray(O,false)}}return null}function parseGeomArray(b,O){let o=[];const e=b?z.readInt32LE(p):z.readInt32BE(p);p+=4;for(let b=0;b<e;b++){o.push(readGeometryObject(O))}return o}}peek(){return this.buf[this.pos]}remaining(){return this.end-this.pos>0}readUInt8(){return this.buf[this.pos++]}readUInt16(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)}readUInt24(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)+(this.buf[this.pos++]<<16)}readUInt32(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)+(this.buf[this.pos++]<<16)+this.buf[this.pos++]*16777216}readInt32(){return this.buf[this.pos++]+(this.buf[this.pos++]<<8)+(this.buf[this.pos++]<<16)+(this.buf[this.pos++]<<24)}readInt32LE(){return(this.buf[this.pos++]<<24)+(this.buf[this.pos++]<<16)+(this.buf[this.pos++]<<8)+this.buf[this.pos++]}readInt64(){const b=this.buf[this.pos+4]+this.buf[this.pos+5]*2**8+this.buf[this.pos+6]*2**16+(this.buf[this.pos+7]<<24);const z=(BigInt(b)<<BigInt(32))+BigInt(this.buf[this.pos]+this.buf[this.pos+1]*2**8+this.buf[this.pos+2]*2**16+this.buf[this.pos+3]*2**24);this.pos+=8;return z}readUnsignedLength(){const b=this.buf[this.pos++]&255;switch(b){case 251:return null;case 252:return this.readUInt16();case 253:return this.readUInt24();case 254:return Number(this.readInt64());default:return b}}readBuffer(b){this.pos+=b;return this.buf.slice(this.pos-b,this.pos)}readBufferRemaining(){let b=this.buf.slice(this.pos,this.end);this.pos=this.end;return b}readBufferLengthEncoded(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return this.buf.slice(this.pos-b,this.pos)}readStringNullEnded(){let b=this.pos;let z=0;while(this.remaining()>0&&this.buf[this.pos++]!==0){z++}return this.buf.toString("utf8",b,b+z)}readSignedLength(){const b=this.buf[this.pos++];switch(b){case 251:return null;case 252:return this.readUInt16();case 253:return this.readUInt24();case 254:return Number(this.readInt64());default:return b}}readSignedLengthBigInt(){const b=this.buf[this.pos++];switch(b){case 251:return null;case 252:return BigInt(this.readUInt16());case 253:return BigInt(this.readUInt24());case 254:return this.readInt64();default:return BigInt(b)}}readAsciiStringLengthEncoded(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return this.buf.toString("ascii",this.pos-b,this.pos)}readStringLength(){throw new Error("code is normally superseded by Node encoder or Iconv depending on charset used")}readStringLengthEncoded(b){const z=this.readUnsignedLength();if(z===null)return null;this.pos+=z;if(Buffer.isEncoding(b)){return this.buf.toString(b,this.pos-z,this.pos)}return o.decode(this.buf.slice(this.pos-z,this.pos),b)}readLongLengthEncoded(b,z,p,O){const o=this.readUnsignedLength();if(o===null)return null;if(b){const b=this.buf.toString("ascii",this.pos,this.pos+o);this.pos+=o;return BigInt(b)}let c=0;let t=false;let i=this.pos;if(o>0&&this.buf[i]===45){t=true;i++}for(;i<this.pos+o;i++){c=c*10+(this.buf[i]-48)}let n=t?-1*c:c;this.pos+=o;if(!Number.isSafeInteger(n)){const b=this.buf.toString("ascii",this.pos-o,this.pos);if(p)return b;if(z){return e.fromString(b,O,10)}}return n}readDecimalLengthEncoded(b){const z=this.readUnsignedLength();if(z===null)return null;this.pos+=z;let p=this.buf.toString("ascii",this.pos-z,this.pos);return b?p:+p}readDate(){const b=this.readUnsignedLength();if(b===null)return null;let z=[];let p=0;let O=this.pos;this.pos+=b;while(O<this.pos){const b=this.buf[O++];if(b===45){z.push(p);p=0}else{p=p*10+b-48}}z.push(p);if(z[0]===0&&z[1]===0&&z[2]===0)return null;return new Date(z[0],z[1]-1,z[2])}readDateTime(b){const z=this.readUnsignedLength();if(z===null)return null;this.pos+=z;const p=this.buf.toString("ascii",this.pos-z,this.pos);if(p.startsWith("0000-00-00 00:00:00"))return null;if(b.tz){return new Date(c.tz(p,b.tz).clone().tz(b._localTz).format("YYYY-MM-DD HH:mm:ss.SSSSSS"))}return new Date(p)}readIntLengthEncoded(){const b=this.readUnsignedLength();if(b===null)return null;let z=0;let p=false;let O=this.pos;if(b>0&&this.buf[O]===45){p=true;O++}for(;O<this.pos+b;O++){z=z*10+(this.buf[O]-48)}this.pos+=b;return p?-1*z:z}readFloatLengthCoded(){const b=this.readUnsignedLength();if(b===null)return null;this.pos+=b;return+this.buf.toString("ascii",this.pos-b,this.pos)}skipLengthCodedNumber(){const b=this.buf[this.pos++]&255;switch(b){case 251:return;case 252:this.pos+=2+(65535&(this.buf[this.pos]&255)+((this.buf[this.pos+1]&255)<<8));return;case 253:this.pos+=3+(16777215&(this.buf[this.pos]&255)+((this.buf[this.pos+1]&255)<<8)+((this.buf[this.pos+2]&255)<<16));return;case 254:this.pos+=8+((this.buf[this.pos]&255)+((this.buf[this.pos+1]&255)<<8)+((this.buf[this.pos+2]&255)<<16)+((this.buf[this.pos+3]&255)<<24)+((this.buf[this.pos+4]&255)<<32)+((this.buf[this.pos+5]&255)<<40)+((this.buf[this.pos+6]&255)<<48)+((this.buf[this.pos+7]&255)<<56));return;default:this.pos+=b;return}}positionFromEnd(b){this.pos=this.end-b}_toBuf(){return this.buf.slice(this.pos,this.end)}forceOffset(b){this.pos=b}length(){return this.end-this.pos}subPacketLengthEncoded(){const b=this.readUnsignedLength();this.skip(b);return new Packet(this.buf,this.pos-b,this.pos)}readError(b,z,p){this.skip(1);let o=this.readUInt16();let e="";if(this.peek()===35){this.skip(6);e=this.buf.toString("utf8",this.pos-5,this.pos)}let c=this.buf.toString("utf8",this.pos,this.end);let t=e.startsWith("08")||e==="70100";if(t){const i=b.getLastPackets();if(i!=="")return O.createError(c+"\nlast received packets:\n"+i,z,t,b,e,o,p)}return O.createError(c,z,t,b,e,o,p)}}b.exports=Packet},9240:function(b,z,p){"use strict";const O=p(1401);const o=39;const e=34;const c=0;const t=92;const i=1024;const n=16384;const s=131072;const a=1048576;const r=16777219;const q=/[\0\"\'\\]/g;class ReWritePacket{constructor(b,z,p,O){this.out=z;this.buf=Buffer.allocUnsafe(i);this.pos=4;this.initStr=p;this.endStr=O;this.encoding=z.encoding;this.endStrLength=Buffer.byteLength(this.endStr,this.encoding);this.waitingResponseNo=0;this.singleQuery=false;this.haveErrorResponse=false;if(this.encoding==="utf8"){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeUtf8StringEscapeQuote}else if(Buffer.isEncoding(this.encoding)){this.writeString=this.writeDefaultBufferString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}else{this.writeString=this.writeDefaultIconvString;this.writeStringEscapeQuote=this.writeDefaultStringEscapeQuote}this.maxAllowedPacket=b;if(b){this.maxPacketSize=Math.min(r,b)-this.endStrLength}else this.maxPacketSize=4194304-this.endStrLength;this.buf[this.pos++]=3;this.writeString(this.initStr)}growBuffer(b){let z;if(b+this.pos<n){z=n}else if(b+this.pos<s){z=s}else if(b+this.pos<a){z=a}else z=r;if(z>this.maxPacketSize&&this.markPos){this.flush(false,b);return true}let p=Buffer.allocUnsafe(Math.min(z));this.buf.copy(p,0,0,this.pos);this.buf=p;return false}writeInt8(b){let z=false;if(this.pos+1+this.endStrLength>=this.buf.length){if(this.buf.length<r){z=this.growBuffer(1)}else{this.flush(false,1);this.buf[this.pos++]=b;return true}}this.buf[this.pos++]=b;return z}writeStringAscii(b){let z=b.length;if(z>=this.buf.length-(this.pos+this.endStrLength)){let z=Buffer.from(b,"ascii");return this.writeBuffer(z,0,z.length)}for(let p=0;p<z;){this.buf[this.pos++]=b.charCodeAt(p++)}return false}writeUtf8StringEscapeQuote(b){const z=b.length;if(z*3+2>=this.buf.length-(this.pos+this.endStrLength)){let z;const p=Buffer.from(b,"utf8");z=this.writeInt8(o);z=this.writeBufferEscape(p)||z;z=this.writeInt8(o)||z;return z}let p=0;let O;this.buf[this.pos++]=o;for(;p<z&&(O=b.charCodeAt(p))<128;p++){if(O===t||O===o||O===c||O===e){this.buf[this.pos++]=t}this.buf[this.pos++]=O}while(p<z){O=b.charCodeAt(p++);if(O<128){if(O===t||O===o||O===c||O===e){this.buf[this.pos++]=t}this.buf[this.pos++]=O}else if(O<2048){this.buf[this.pos++]=192|O>>6;this.buf[this.pos++]=128|O&63}else if(O>=55296&&O<57344){if(O<56320){if(p+1>z){this.buf[this.pos++]=63}else{const z=b.charCodeAt(p);if(z>=56320&&z<57344){const b=(O<<10)+z+(65536-(55296<<10)-56320);this.buf[this.pos++]=240|b>>18;this.buf[this.pos++]=128|b>>12&63;this.buf[this.pos++]=128|b>>6&63;this.buf[this.pos++]=128|b&63;p++}else{this.buf[this.pos++]=63}}}else{this.buf[this.pos++]=63}}else{this.buf[this.pos++]=224|O>>12;this.buf[this.pos++]=128|O>>6&63;this.buf[this.pos++]=128|O&63}}this.buf[this.pos++]=o;return false}writeDefaultIconvString(b){let z=O.encode(b,this.encoding);return this.writeBuffer(z,0,z.length)}writeDefaultBufferString(b){if(b.length*3<this.buf.length-(this.pos+this.endStrLength)){this.pos+=this.buf.write(b,this.pos,this.encoding);return false}let z=false;let p=Buffer.byteLength(b,this.encoding);if(p>this.buf.length-(this.pos+this.endStrLength)){if(this.buf.length<r){z=this.growBuffer(p)}if(p>this.buf.length-(this.pos+this.endStrLength)){let p=Buffer.from(b,this.encoding);z=this.writeBuffer(p,0,p.length)||z;return z}}this.pos+=this.buf.write(b,this.pos,this.encoding);return z}writeDefaultStringEscapeQuote(b){let z=this.writeInt8(o);let p;let O=0;while((p=q.exec(b))!==null){z=this.writeString(b.slice(O,p.index))||z;z=this.writeInt8(t)||z;z=this.writeInt8(p[0].charCodeAt(0))||z;O=q.lastIndex}if(O===0){z=this.writeString(b)||z;z=this.writeInt8(o)||z;return z}if(O<b.length){z=this.writeString(b.slice(O))||z}z=this.writeInt8(o)||z;return z}writeBufferEscape(b){let z=false;let p=b.length;if(p*2>this.buf.length-(this.pos+this.endStrLength)){if(this.buf.length<r)z=this.growBuffer(p*2);if(p*2>this.buf.length-(this.pos+this.endStrLength)){for(let z=0;z<p;z++){switch(b[z]){case o:case t:case e:case c:if(this.pos>=this.buf.length)this.flush(false,(p-z)*2);this.buf[this.pos++]=t}if(this.pos>=this.buf.length)this.flush(false,(p-z)*2);this.buf[this.pos++]=b[z]}return true}}for(let z=0;z<p;z++){switch(b[z]){case o:case t:case e:case c:this.buf[this.pos++]=t}this.buf[this.pos++]=b[z]}return z}writeBuffer(b,z,p){let O=false;if(p>this.buf.length-(this.pos+this.endStrLength)){if(this.buf.length<r)O=this.growBuffer(p);if(p>this.buf.length-(this.pos+this.endStrLength)){let o=p;while(true){let p=Math.min(r-this.pos,o);b.copy(this.buf,this.pos,z,z+p);o-=p;z+=p;this.pos+=p;if(o===0)return O;this.flush(false,o);O=true}}}b.copy(this.buf,this.pos,z,z+p);this.pos+=p;return O}mark(b){let z=false;if(this.singleQuery){z=this.writeString(this.endStr);if(!this.haveErrorResponse){const b=this.pos+(this.singleQuerySequenceNo!=undefined?(this.singleQuerySequenceNo+1)*r:0);if(this.maxAllowedPacket&&b>this.maxAllowedPacket){console.log("will send a packet to db server with size > connection option 'maxAllowedPacket' (size send is "+b+") connection might be reset by server")}this.copyAndFlush(true);z=true;this.markPos=undefined}this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined;this.singleQuery=false;this.buf[this.pos++]=3;this.writeString(this.initStr);this.markPos=undefined}else{if(this.markPos&&this.pos+this.endStrLength>this.maxPacketSize){this.flushMark();z=true}this.markPos=this.pos;if(b){this.flushMark();z=true}if(!b)z=this.writeStringAscii(",")||z}return z}flush(b,z){if(this.markPos&&!this.singleQuery){this.flushMark()}else{if(this.buf.length<r){let b=Buffer.allocUnsafe(r);this.buf.copy(b,0,0,this.pos);this.buf=b}else{if(!this.haveErrorResponse){if(this.maxAllowedPacket&&this.buf.length>this.maxAllowedPacket){console.log("will send a packet to server with size > connection option 'maxAllowedPacket' (size send is "+this.pos+") connection might be reset by server")}this.copyAndFlush(false);this.markPos=undefined;if(!this.singleQuery)this.waitingResponseNo++;this.singleQuery=true;this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}}}}flushMark(){let b;if(this.pos!==this.markPos){b=Buffer.allocUnsafe(this.pos-this.markPos-1);this.buf.copy(b,0,this.markPos+1,this.pos)}this.pos=this.markPos;this.writeString(this.endStr);if(!this.haveErrorResponse){this.copyAndFlush(true);this.waitingResponseNo++}this.pos=4;this.buf[this.pos++]=3;this.writeString(this.initStr);this.markPos=undefined;if(b){if(this.buf.length-this.pos<b.length)this.growBuffer(b.length-(this.buf.length-this.pos));b.copy(this.buf,this.pos,0,b.length);this.pos+=b.length}this.singleQuery=false;this.singleQuerySequenceNo=undefined;this.singleQueryCompressSequenceNo=undefined}copyAndFlush(b){this.out.buf=this.buf;this.out.pos=this.pos;if(this.singleQuerySequenceNo!=undefined){this.out.cmd.sequenceNo=this.singleQuerySequenceNo;this.out.cmd.compressSequenceNo=this.singleQueryCompressSequenceNo}else{this.out.cmd.sequenceNo=-1;this.out.cmd.compressSequenceNo=-1}this.out.flushBuffer(b);if(this.singleQuerySequenceNo!=undefined){this.singleQuerySequenceNo=this.out.cmd.sequenceNo;this.singleQueryCompressSequenceNo=this.out.cmd.compressSequenceNo}this.pos=4;this.buf=Buffer.allocUnsafe(i)}endedWithError(){this.haveErrorResponse=true}}b.exports=ReWritePacket},9994:function(b,z,p){"use strict";const O=p(2342);const _addPacket=function(b){this.lastPackets.push(b);while(this.lastPackets.size()>32)this.lastPackets.shift()};const _getLastPackets=function(){let b="";let z;while(z=this.lastPackets.shift()){b+="\n"+z}return b};class ConnectionInformation{constructor(){this.threadId=-1;this.status=null;this.serverVersion=null;this.serverCapabilities=null}addPacket(b){}getLastPackets(){return""}enableLogPacket(){this.lastPackets=new O;this.addPacket=_addPacket.bind(this);this.getLastPackets=_getLastPackets.bind(this)}hasMinVersion(b,z,p){if(!this.serverVersion)throw new Error("cannot know if server version until connection is established");if(!b)throw new Error("a major version must be set");if(!z)z=0;if(!p)p=0;let O=this.serverVersion;return O.major>b||O.major===b&&O.minor>z||O.major===b&&O.minor===z&&O.patch>=p}isMariaDB(){if(!this.serverVersion)throw new Error("cannot know if server is MariaDB until connection is established");return this.serverVersion.mariaDb}static parseVersionString(b){let z;let p=0;let O=0;let o=0;for(;p<b.serverVersion.raw.length;p++){z=b.serverVersion.raw.charCodeAt(p);if(z<48||z>57){switch(O){case 0:b.serverVersion.major=o;break;case 1:b.serverVersion.minor=o;break;case 2:b.serverVersion.patch=o;return}O++;o=0}else{o=o*10+z-48}}if(O===2)b.serverVersion.patch=o}}b.exports=ConnectionInformation},1450:function(b,z,p){"use strict";const O=p(8013);class SqlError extends Error{constructor(b,z,p,o,c,t,i,n){super((n===undefined||n?"(conn="+(o?o.threadId?o.threadId:-1:-1)+", no: "+(t?t:-1)+", SQLState: "+(c?c:"HY000")+") ":"")+b+(z?"\nsql: "+z:""));this.text=b;this.sql=z;this.fatal=p;this.errno=t;this.sqlState=c;if(t>45e3&&t<46e3){this.code=e[t]||"UNKNOWN"}else{this.code=O.codes[this.errno]||"UNKNOWN"}if(i){this.stack+="\n From event:\n"+i.substring(i.indexOf("\n")+1)}}}b.exports.createError=function(b,z,p,O,o,e,c,t){return new SqlError(b,z,p,O,o,e,c,t)};b.exports.ER_CONNECTION_ALREADY_CLOSED=45001;b.exports.ER_ALREADY_CONNECTING=45002;b.exports.ER_MYSQL_CHANGE_USER_BUG=45003;b.exports.ER_CMD_NOT_EXECUTED_DESTROYED=45004;b.exports.ER_NULL_CHAR_ESCAPEID=45005;b.exports.ER_NULL_ESCAPEID=45006;b.exports.ER_NOT_IMPLEMENTED_FORMAT=45007;b.exports.ER_NODE_NOT_SUPPORTED_TLS=45008;b.exports.ER_SOCKET_UNEXPECTED_CLOSE=45009;b.exports.ER_UNEXPECTED_PACKET=45011;b.exports.ER_CONNECTION_TIMEOUT=45012;b.exports.ER_CMD_CONNECTION_CLOSED=45013;b.exports.ER_CHANGE_USER_BAD_PACKET=45014;b.exports.ER_PING_BAD_PACKET=45015;b.exports.ER_MISSING_PARAMETER=45016;b.exports.ER_PARAMETER_UNDEFINED=45017;b.exports.ER_PLACEHOLDER_UNDEFINED=45018;b.exports.ER_SOCKET=45019;b.exports.ER_EOF_EXPECTED=45020;b.exports.ER_LOCAL_INFILE_DISABLED=45021;b.exports.ER_LOCAL_INFILE_NOT_READABLE=45022;b.exports.ER_SERVER_SSL_DISABLED=45023;b.exports.ER_AUTHENTICATION_BAD_PACKET=45024;b.exports.ER_AUTHENTICATION_PLUGIN_NOT_SUPPORTED=45025;b.exports.ER_SOCKET_TIMEOUT=45026;b.exports.ER_POOL_ALREADY_CLOSED=45027;b.exports.ER_GET_CONNECTION_TIMEOUT=45028;b.exports.ER_SETTING_SESSION_ERROR=45029;b.exports.ER_INITIAL_SQL_ERROR=45030;b.exports.ER_BATCH_WITH_NO_VALUES=45031;b.exports.ER_RESET_BAD_PACKET=45032;b.exports.ER_WRONG_IANA_TIMEZONE=45033;b.exports.ER_LOCAL_INFILE_WRONG_FILENAME=45034;b.exports.ER_ADD_CONNECTION_CLOSED_POOL=45035;b.exports.ER_WRONG_AUTO_TIMEZONE=45036;b.exports.ER_CLOSING_POOL=45037;b.exports.ER_TIMEOUT_NOT_SUPPORTED=45038;b.exports.ER_INITIAL_TIMEOUT_ERROR=45039;b.exports.ER_DUPLICATE_FIELD=45040;b.exports.ER_CLIENT_OPTION_INCOMPATIBILITY=45041;b.exports.ER_PING_TIMEOUT=45042;b.exports.ER_BAD_PARAMETER_VALUE=45043;b.exports.ER_CANNOT_RETRIEVE_RSA_KEY=45044;b.exports.ER_MINIMUM_NODE_VERSION_REQUIRED=45045;b.exports.ER_POOL_UNDEFINED_SQL=45049;const o=Object.keys(b.exports);const e={};for(let z=0;z<o.length;z++){const p=o[z];if(p!=="createError"){e[b.exports[p]]=p}}b.exports.SqlError=SqlError},2491:function(b,z,p){const O=p(1450);const o={Normal:1,String:2,SlashStarComment:3,Escape:4,EOLComment:5,Backtick:6,Placeholder:7};b.exports.splitQuery=function(b){let z=[];let p=o.Normal;let O="\0";let e=false;let c=0;let t=0;let i=b.charAt(t++);while(i!==""){if(p===o.Escape&&!(i==="'"&&e||i==='"'&&!e)){p=o.String;i=b.charAt(t++);continue}switch(i){case"*":if(p===o.Normal&&O=="/")p=o.SlashStarComment;break;case"/":if(p===o.SlashStarComment&&O=="*")p=o.Normal;break;case"#":if(p===o.Normal)p=o.EOLComment;break;case"-":if(p===o.Normal&&O=="-"){p=o.EOLComment}break;case"\n":if(p===o.EOLComment){p=o.Normal}break;case'"':if(p===o.Normal){p=o.String;e=false}else if(p===o.String&&!e){p=o.Normal}else if(p===o.Escape&&!e){p=o.String}break;case"'":if(p===o.Normal){p=o.String;e=true}else if(p===o.String&&e){p=o.Normal}else if(p===o.Escape&&e){p=o.String}break;case"\\":if(p===o.String)p=o.Escape;break;case"?":if(p===o.Normal){z.push(b.substring(c,t-1));c=t}break;case"`":if(p===o.Backtick){p=o.Normal}else if(p===o.Normal){p=o.Backtick}break}O=i;i=b.charAt(t++)}if(c===0){z.push(b)}else{z.push(b.substring(c))}return z};b.exports.splitQueryPlaceholder=function(b,z,p,e){let c=[];let t=[];let i=o.Normal;let n="\0";let s=false;let a=0;let r=0;let q=b.charAt(r++);let d;while(q!==""){if(i===o.Escape&&!(q==="'"&&s||q==='"'&&!s)){i=o.String;q=b.charAt(r++);continue}switch(q){case"*":if(i===o.Normal&&n=="/")i=o.SlashStarComment;break;case"/":if(i===o.SlashStarComment&&n=="*")i=o.Normal;break;case"#":if(i===o.Normal)i=o.EOLComment;break;case"-":if(i===o.Normal&&n=="-"){i=o.EOLComment}break;case"\n":if(i===o.EOLComment){i=o.Normal}break;case'"':if(i===o.Normal){i=o.String;s=false}else if(i===o.String&&!s){i=o.Normal}else if(i===o.Escape&&!s){i=o.String}break;case"'":if(i===o.Normal){i=o.String;s=true}else if(i===o.String&&s){i=o.Normal;s=false}else if(i===o.Escape&&s){i=o.String}break;case"\\":if(i===o.String)i=o.Escape;break;case":":if(i===o.Normal){c.push(b.substring(a,r-1));d="";while((q=b.charAt(r++))!==""&&q>="0"&&q<="9"||q>="A"&&q<="Z"||q>="a"&&q<="z"||q==="-"||q==="_"){d+=q}r--;const o=p[d];if(o===undefined){throw O.createError("Placeholder '"+d+"' is not defined",e.call(),false,z,"HY000",O.ER_PLACEHOLDER_UNDEFINED)}t.push(o);a=r}break;case"`":if(i===o.Backtick){i=o.Normal}else if(i===o.Normal){i=o.Backtick}}n=q;q=b.charAt(r++)}if(a===0){c.push(b)}else{c.push(b.substring(a))}return{parts:c,values:t}};b.exports.splitRewritableQuery=function(b){let z=true;let p=true;let O=[];let e="\0";let c=0;let t=null;let i=null;let n=null;let s=false;let a=0;let r=true;let q=false;let d=false;let W=false;let f=o.Normal;let R=0;let u=b.charAt(R++);while(u!==""){if(f===o.Escape&&!(u==="'"&&s||u==='"'&&!s)){f=o.String;u=b.charAt(R++);continue}switch(u){case"*":if(f===o.Normal&&e=="/"){f=o.SlashStarComment}break;case"/":if(f===o.SlashStarComment&&e=="*"){f=o.Normal}break;case"#":if(f===o.Normal){f=o.EOLComment}break;case"-":if(f===o.Normal&&e=="-"){f=o.EOLComment}break;case"\n":if(f===o.EOLComment){f=o.Normal}break;case'"':if(f===o.Normal){f=o.String;s=false}else if(f===o.String&&!s){f=o.Normal}else if(f===o.Escape&&!s){f=o.String}break;case";":if(f===o.Normal){d=true;p=false}break;case"'":if(f===o.Normal){f=o.String;s=true}else if(f===o.String&&s){f=o.Normal}else if(f===o.Escape&&s){f=o.String}break;case"\\":if(f===o.String){f=o.Escape}break;case"?":if(f===o.Normal){W=true;let p=b.substring(c,R-1);c=R;if(t===null){t=p;i=""}else if(i===null){i=p}else{if(n){z=false;O.push(n+p);n=null}else O.push(p)}}break;case"`":if(f===o.Backtick){f=o.Normal}else if(f===o.Normal){f=o.Backtick}break;case"s":case"S":if(f===o.Normal&&n===null&&b.length>R+5&&(b.charAt(R)==="e"||b.charAt(R)==="E")&&(b.charAt(R+1)==="l"||b.charAt(R+1)==="L")&&(b.charAt(R+2)==="e"||b.charAt(R+2)==="E")&&(b.charAt(R+3)==="c"||b.charAt(R+3)==="C")&&(b.charAt(R+4)==="t"||b.charAt(R+4)==="T")){if(R>1&&b.charAt(R-2)>" "&&"();><=-+,".indexOf(b.charAt(R-2))===-1){break}if(b.charAt(R+5)>" "&&"();><=-+,".indexOf(b.charAt(R+5))===-1){break}z=false}break;case"v":case"V":if(f===o.Normal&&!t&&(e==")"||e<=" ")&&b.length>R+6&&(b.charAt(R)==="a"||b.charAt(R)==="A")&&(b.charAt(R+1)==="l"||b.charAt(R+1)==="L")&&(b.charAt(R+2)==="u"||b.charAt(R+2)==="U")&&(b.charAt(R+3)==="e"||b.charAt(R+3)==="E")&&(b.charAt(R+4)==="s"||b.charAt(R+4)==="S")&&(b.charAt(R+5)==="("||b.charAt(R+5)<=" ")){R+=5;t=b.substring(c,R);c=R}break;case"l":case"L":if(f===o.Normal&&b.length>R+13&&(b.charAt(R)==="a"||b.charAt(R)==="A")&&(b.charAt(R+1)==="s"||b.charAt(R+1)==="S")&&(b.charAt(R+2)==="t"||b.charAt(R+2)==="T")&&b.charAt(R+3)==="_"&&(b.charAt(R+4)==="i"||b.charAt(R+4)==="I")&&(b.charAt(R+5)==="n"||b.charAt(R+5)==="N")&&(b.charAt(R+6)==="s"||b.charAt(R+6)==="S")&&(b.charAt(R+7)==="e"||b.charAt(R+7)==="E")&&(b.charAt(R+8)==="r"||b.charAt(R+8)==="R")&&(b.charAt(R+9)==="t"||b.charAt(R+9)==="T")&&b.charAt(R+10)==="_"&&(b.charAt(R+11)==="i"||b.charAt(R+11)==="I")&&(b.charAt(R+12)==="d"||b.charAt(R+12)==="D")&&b.charAt(R+13)==="("){z=false;R+=13}break;case"(":if(f===o.Normal){a++}break;case")":if(f===o.Normal){a--;if(a===0&&i!==null&&n===null){n=b.substring(c,R);c=R}}break;default:if(f===o.Normal&&r&&u>" "){if((u==="I"||u==="i")&&b.length>R+6&&(b.charAt(R)==="n"||b.charAt(R)==="N")&&(b.charAt(R+1)==="s"||b.charAt(R+1)==="S")&&(b.charAt(R+2)==="e"||b.charAt(R+2)==="E")&&(b.charAt(R+3)==="r"||b.charAt(R+3)==="R")&&(b.charAt(R+4)==="t"||b.charAt(R+4)==="T")&&(b.charAt(R+5)==="("||b.charAt(R+5)<=" ")){q=true}r=false}if(f===o.Normal&&d&&u>=" "){z=false;p=true}break}e=u;u=b.charAt(R++)}if(f===o.EOLComment)p=false;if(!W){if(t===null){O.unshift("");O.unshift(b)}else{O.unshift(b.substring(c,R));O.unshift(t)}c=R}else{O.unshift(i!==null?i:"");O.unshift(t!==null?t:"")}if(!q){z=false}if(W){O.push(n!==null?n:"")}O.push(b.substring(c,R));return{partList:O,reWritable:z,multipleQueries:p}};b.exports.searchPlaceholder=function(b,z,p,O){let e="";const c=p.length;let t=new Array(c);for(let b=0;b<c;b++)t[b]=[];let i=o.Normal;let n="\0";let s=false;let a=0;let r=0;let q=b.charAt(r++);let d;while(q!==""){if(i===o.Escape&&!(q==="'"&&s||q==='"'&&!s)){i=o.String;n=q;q=b.charAt(r++);continue}switch(q){case"*":if(i===o.Normal&&n=="/")i=o.SlashStarComment;break;case"/":if(i===o.SlashStarComment&&n=="*")i=o.Normal;break;case"#":if(i===o.Normal)i=o.EOLComment;break;case"-":if(i===o.Normal&&n=="-"){i=o.EOLComment}break;case"\n":if(i===o.EOLComment){i=o.Normal}break;case'"':if(i===o.Normal){i=o.String;s=false}else if(i===o.String&&!s){i=o.Normal}else if(i===o.Escape&&!s){i=o.String}break;case"'":if(i===o.Normal){i=o.String;s=true}else if(i===o.String&&s){i=o.Normal;s=false}else if(i===o.Escape&&s){i=o.String}break;case"\\":if(i===o.String)i=o.Escape;break;case":":if(i===o.Normal){e+=b.substring(a,r-1)+"?";d="";while((q=b.charAt(r++))!==""&&q>="0"&&q<="9"||q>="A"&&q<="Z"||q>="a"&&q<="z"||q==="-"||q==="_"){d+=q}r--;for(let b=0;b<c;b++){const z=p[b][d];if(z!==undefined){t[b].push(z)}else{t[b].push(null)}}a=r}break;case"`":if(i===o.Backtick){i=o.Normal}else if(i===o.Normal){i=o.Backtick}}n=q;q=b.charAt(r++)}if(a===0){e=b}else{e+=b.substring(a)}return{sql:e,values:t}};b.exports.splitRewritableNamedParameterQuery=function(b,z){let p=true;let O=true;let e=[];let c=new Array(z.length);for(let b=0;b<c.length;b++)c[b]=[];let t="\0";let i=0;let n=null;let s=null;let a=null;let r=false;let q=0;let d=true;let W=false;let f=false;let R=false;let u;let l=o.Normal;let _=0;let h=b.charAt(_++);while(h!==""){if(l===o.Escape&&!(h==="'"&&r||h==='"'&&!r)){l=o.String;h=b.charAt(_++);continue}switch(h){case"*":if(l===o.Normal&&t=="/"){l=o.SlashStarComment}break;case"/":if(l===o.SlashStarComment&&t=="*"){l=o.Normal}break;case"#":if(l===o.Normal){l=o.EOLComment}break;case"-":if(l===o.Normal&&t=="-"){l=o.EOLComment}break;case"\n":if(l===o.EOLComment){l=o.Normal}break;case'"':if(l===o.Normal){l=o.String;r=false}else if(l===o.String&&!r){l=o.Normal}else if(l===o.Escape&&!r){l=o.String}break;case";":if(l===o.Normal){f=true;O=false}break;case"'":if(l===o.Normal){l=o.String;r=true}else if(l===o.String&&r){l=o.Normal}else if(l===o.Escape&&r){l=o.String}break;case"\\":if(l===o.String){l=o.Escape}break;case":":if(l===o.Normal){let O=b.substring(i,_-1);u="";while((h=b.charAt(_++))!==""&&h>="0"&&h<="9"||h>="A"&&h<="Z"||h>="a"&&h<="z"||h==="-"||h==="_"){u+=h}_--;R=true;z.forEach(((b,z)=>{if(b[u]!==undefined){c[z].push(b[u])}else{c[z].push(null)}}));i=_;if(n===null){n=O;s=""}else if(s===null){s=O}else{if(a){p=false;e.push(a+O);a=null}else e.push(O)}}break;case"`":if(l===o.Backtick){l=o.Normal}else if(l===o.Normal){l=o.Backtick}break;case"s":case"S":if(l===o.Normal&&a===null&&b.length>_+5&&(b.charAt(_)==="e"||b.charAt(_)==="E")&&(b.charAt(_+1)==="l"||b.charAt(_+1)==="L")&&(b.charAt(_+2)==="e"||b.charAt(_+2)==="E")&&(b.charAt(_+3)==="c"||b.charAt(_+3)==="C")&&(b.charAt(_+4)==="t"||b.charAt(_+4)==="T")){if(_>1&&b.charAt(_-2)>" "&&"();><=-+,".indexOf(b.charAt(_-2))===-1){break}if(b.charAt(_+5)>" "&&"();><=-+,".indexOf(b.charAt(_+5))===-1){break}p=false}break;case"v":case"V":if(l===o.Normal&&!n&&(t==")"||t<=" ")&&b.length>_+6&&(b.charAt(_)==="a"||b.charAt(_)==="A")&&(b.charAt(_+1)==="l"||b.charAt(_+1)==="L")&&(b.charAt(_+2)==="u"||b.charAt(_+2)==="U")&&(b.charAt(_+3)==="e"||b.charAt(_+3)==="E")&&(b.charAt(_+4)==="s"||b.charAt(_+4)==="S")&&(b.charAt(_+5)==="("||b.charAt(_+5)<=" ")){_+=5;n=b.substring(i,_);i=_}break;case"l":case"L":if(l===o.Normal&&b.length>_+13&&(b.charAt(_)==="a"||b.charAt(_)==="A")&&(b.charAt(_+1)==="s"||b.charAt(_+1)==="S")&&(b.charAt(_+2)==="t"||b.charAt(_+2)==="T")&&b.charAt(_+3)==="_"&&(b.charAt(_+4)==="i"||b.charAt(_+4)==="I")&&(b.charAt(_+5)==="n"||b.charAt(_+5)==="N")&&(b.charAt(_+6)==="s"||b.charAt(_+6)==="S")&&(b.charAt(_+7)==="e"||b.charAt(_+7)==="E")&&(b.charAt(_+8)==="r"||b.charAt(_+8)==="R")&&(b.charAt(_+9)==="t"||b.charAt(_+9)==="T")&&b.charAt(_+10)==="_"&&(b.charAt(_+11)==="i"||b.charAt(_+11)==="I")&&(b.charAt(_+12)==="d"||b.charAt(_+12)==="D")&&b.charAt(_+13)==="("){p=false;_+=13}break;case"(":if(l===o.Normal){q++}break;case")":if(l===o.Normal){q--;if(q===0&&s!==null&&a===null){a=b.substring(i,_);i=_}}break;default:if(l===o.Normal&&d&&h>" "){if((h==="I"||h==="i")&&b.length>_+6&&(b.charAt(_)==="n"||b.charAt(_)==="N")&&(b.charAt(_+1)==="s"||b.charAt(_+1)==="S")&&(b.charAt(_+2)==="e"||b.charAt(_+2)==="E")&&(b.charAt(_+3)==="r"||b.charAt(_+3)==="R")&&(b.charAt(_+4)==="t"||b.charAt(_+4)==="T")&&(b.charAt(_+5)==="("||b.charAt(_+5)<=" ")){W=true}d=false}if(l===o.Normal&&f&&h>=" "){p=false;O=true}break}t=h;h=b.charAt(_++)}if(l===o.EOLComment)O=false;if(!R){if(n===null){e.unshift("");e.unshift(b)}else{e.unshift(b.substring(i,_));e.unshift(n)}i=_}else{e.unshift(s!==null?s:"");e.unshift(n!==null?n:"")}if(!W){p=false}if(R){e.push(a!==null?a:"")}e.push(b.substring(i,_));return{partList:e,reWritable:p,multipleQueries:O,values:c}};b.exports.validateFileName=function(b,z,p){let O=new RegExp("^(\\s*\\/\\*([^\\*]|\\*[^\\/])*\\*\\/)*\\s*LOAD\\s+DATA\\s+((LOW_PRIORITY|CONCURRENT)\\s+)?LOCAL\\s+INFILE\\s+'"+p.replace(/\\/g,"\\\\\\\\").replace(".","\\.")+"'","i");if(O.test(b))return true;if(z!=null){O=new RegExp("^(\\s*\\/\\*([^\\*]|\\*[^\\/])*\\*\\/)*\\s*LOAD\\s+DATA\\s+((LOW_PRIORITY|CONCURRENT)\\s+)?LOCAL\\s+INFILE\\s+\\?","i");if(O.test(b)&&z.length>0){if(Array.isArray(z)){return z[0].toLowerCase()===p.toLowerCase()}return z.toLowerCase()===p.toLowerCase()}}return false}},2245:function(b,z,p){"use strict";const O=p(2694);const o="0123456789ABCDEF".split("");const e=p(1450);const c=p(8662);const t=p(1401);b.exports.log=function(b,z,p,O,e){let c=[];if(!z)return"";if(p===undefined||p===null)p=0;if(O===undefined||O===null)O=z.length;let t=new Array(16);t[8]=" ";let i=e!==undefined;let n=p||0;const s=Math.min(i?b.debugLen-e.length:b.debugLen,O-n);const a=O-n>s;let r;let q=0;let d=0;c.push("+--------------------------------------------------+\n"+"| 0 1 2 3 4 5 6 7 8 9 a b c d e f |\n"+"+--------------------------------------------------+------------------+\n");if(i){while(d<e.length){if(q===0)c.push("| ");r=e[d++]&255;c.push(o[r>>>4],o[r&15]," ");t[q++]=r>31&&r<127?String.fromCharCode(r):".";if(q===8)c.push(" ")}}d=n;while(d<s+n){if(q===0)c.push("| ");r=z[d]&255;c.push(o[r>>>4],o[r&15]," ");t[q++]=r>31&&r<127?String.fromCharCode(r):".";if(q===8)c.push(" ");if(q===16){c.push("| ",t.join("")," |\n");q=0}d++}let W=q;if(W>0){if(W<8){for(;W<8;W++){c.push(" ");t[q++]=" "}c.push(" ")}for(;W<16;W++){c.push(" ");t[q++]=" "}c.push("| ",t.join(""),a?" |...\n":" |\n")}else if(a){c[c.length-1]=" |...\n"}c.push("+--------------------------------------------------+------------------+\n");return c.join("")};b.exports.escapeId=(b,z,p)=>{if(!p||p===""){throw e.createError("Cannot escape empty ID value",null,false,z,"0A000",e.ER_NULL_ESCAPEID)}if(p.includes("\0")){throw e.createError("Cannot escape ID with null character (u0000)",null,false,z,"0A000",e.ER_NULL_CHAR_ESCAPEID)}if(p.match(/^`.+`$/g)){return p}return"`"+p.replace(/`/g,"``")+"`"};const escapeParameters=(b,z,p)=>{if(p===undefined||p===null)return"NULL";switch(typeof p){case"boolean":return p?"true":"false";case"bigint":case"number":return""+p;case"object":if(Object.prototype.toString.call(p)==="[object Date]"){return b.tz?b.tz==="Etc/UTC"?c.getUtcDate(p,b):c.getTimezoneDate(p,b):c.getLocalDate(p,b)}else if(Buffer.isBuffer(p)){let z;if(Buffer.isEncoding(b.collation.charset)){z=p.toString(b.collation.charset,0,p.length)}else{z=t.decode(p,b.collation.charset)}return"_binary'"+escapeString(z)+"'"}else if(typeof p.toSqlString==="function"){return"'"+escapeString(String(p.toSqlString()))+"'"}else if(O.isLong(p)){return p.toString()}else if(Array.isArray(p)){let O=b.arrayParenthesis?"(":"";for(let o=0;o<p.length;o++){if(o!==0)O+=",";O+=escapeParameters(b,z,p[o])}if(b.arrayParenthesis)O+=")";return O}else{if(p.type!=null&&["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].includes(p.type)){let b=z&&(z.isMariaDB()&&z.hasMinVersion(10,1,4)||!z.isMariaDB()&&z.hasMinVersion(5,7,6))?"ST_":"";switch(p.type){case"Point":return b+"PointFromText('POINT("+c.geoPointToString(p.coordinates)+")')";case"LineString":return b+"LineFromText('LINESTRING("+c.geoArrayPointToString(p.coordinates)+")')";case"Polygon":return b+"PolygonFromText('POLYGON("+c.geoMultiArrayPointToString(p.coordinates)+")')";case"MultiPoint":return b+"MULTIPOINTFROMTEXT('MULTIPOINT("+c.geoArrayPointToString(p.coordinates)+")')";case"MultiLineString":return b+"MLineFromText('MULTILINESTRING("+c.geoMultiArrayPointToString(p.coordinates)+")')";case"MultiPolygon":return b+"MPolyFromText('MULTIPOLYGON("+c.geoMultiPolygonToString(p.coordinates)+")')";case"GeometryCollection":return b+"GeomCollFromText('GEOMETRYCOLLECTION("+c.geometricCollectionToString(p.geometries)+")')"}}else{if(b.permitSetMultiParamEntries){let O="";let o=true;for(let e in p){const c=p[e];if(typeof c==="function")continue;if(o){o=false}else{O+=","}O+="`"+e+"`=";O+=this.escape(b,z,c)}if(O==="")return"'"+escapeString(JSON.stringify(p))+"'";return O}else{return"'"+escapeString(JSON.stringify(p))+"'"}}}default:return"'"+escapeString(p)+"'"}};const i={"\0":"\\0","'":"\\'",'"':'\\"',"\b":"\\b","\n":"\\n","\r":"\\r","\t":"\\t","":"\\Z","\\":"\\\\"};const escapeString=b=>{const z=/[\u0000'"\b\n\r\t\u001A\\]/g;let p=0;let O="";let o;while(o=z.exec(b)){O+=b.substring(p,o.index);O+=i[o[0]];p=z.lastIndex}if(p===0){return b}if(p<b.length){O+=b.substring(p)}return O};b.exports.escape=escapeParameters},1847:function(b,z,p){"use strict";const O=p(2361);const o=p(3837);const e=p(2342);const c=p(1450);const t=p(2245);function PoolBase(b,z,p,o){this.getConnection=function(){return addRequest(this)};this.query=function(b,z){return addRequest(this,b,z,false)};this.batch=function(b,z){return addRequest(this,b,z,true)};this.end=function(){if(n){return Promise.reject(c.createError("pool is already closed",null,false,null,"HY000",c.ER_POOL_ALREADY_CLOSED,undefined,false))}n=true;clearInterval(f);const b=[];let z;while(z=q.shift()){b.push(z.forceEnd())}R=clearTimeout(R);if(W.size()>0){let b;const z=c.createError("pool is ending, connection request aborted",null,false,null,"HY000",c.ER_CLOSING_POOL,undefined,false);while(b=W.shift()){process.nextTick(b.reject,z)}}return Promise.all(b)};this.activeConnections=function(){return Object.keys(d).length};this.totalConnections=function(){return this.activeConnections()+this.idleConnections()};this.idleConnections=function(){return q.size()};this.taskQueueSize=function(){return W.size()};this.initialize=function(){s=true;const b=this;const z=Date.now()+i.initializationTimeout;connectionCreationLoop(b,0,z).then((z=>{if(n){z.forceEnd().catch((b=>{}))}else{addPoolConnection(b,z);if(i.idleTimeout>0){f=setInterval(idleMaintainer,500,b)}}})).catch((b=>{s=false;const z=W.shift();if(z){R=clearTimeout(R);process.nextTick(z.reject,b);resetTimeoutToNextTask()}else if(!n){console.error(b)}})).finally((()=>{ensurePoolSize(b)}))};this.escape=z=>t.escape(b.connOptions,searchInfo(),z);this.escapeId=z=>t.escapeId(b.connOptions,searchInfo(),z);const searchInfo=()=>{let b=null;let z=q.get(0);if(z==null){z=Object.keys(d)[0]}if(z!=null){b=z.info}return b};const addRequest=function(b,p,O,o){if(o!=undefined&&!p){return Promise.reject(c.createError("sql parameter is mandatory",null,false,null,"HY000",c.ER_POOL_UNDEFINED_SQL,undefined,false))}if(n){return Promise.reject(c.createError("pool is closed",null,false,null,"HY000",c.ER_POOL_ALREADY_CLOSED,undefined,false))}return getIdleValidConnection(b).then((e=>{b.emit("acquire",e);return z(e,p,O,o)}),(()=>{process.nextTick((()=>b.emit("enqueue")));ensurePoolSize(b);return new Promise(((b,z)=>{const e={timeout:Date.now()+i.acquireTimeout,reject:z,resolve:b,sql:p,values:O,isBatch:o};if(!R){R=setTimeout(rejectAndResetTimeout,i.acquireTimeout,e)}W.push(e)}))}))};const getIdleValidConnection=function(b){if(q.isEmpty()){return Promise.reject(null)}const z=q.shift();d[z.threadId]=z;if(i.minDelayValidation<=0||Date.now()-z.lastUse>i.minDelayValidation){return o(z).then((()=>{a(z);return Promise.resolve(z)})).catch((p=>{delete d[z.threadId];b.emit("_remove-conn");return getIdleValidConnection(b)}))}else{if(z.isValid()){a(z);return Promise.resolve(z)}else{delete d[z.threadId];b.emit("_remove-conn");return getIdleValidConnection(b)}}};const timeoutTask=b=>{R=null;if(b===W.peekFront()){W.shift();process.nextTick(b.reject,c.createError("retrieve connection from pool timeout after "+Math.abs(Date.now()-(b.timeout-i.acquireTimeout))+"ms",null,false,null,"HY000",c.ER_GET_CONNECTION_TIMEOUT,undefined,false))}else{throw new Error("Rejection by timeout without task !!!")}};const rejectAndResetTimeout=b=>{timeoutTask(b);resetTimeoutToNextTask()};const connectionCreationLoop=function(b,z,O){return new Promise((function(o,e){const creationTryout=function(o,e){if(n){e(c.createError("Cannot create new connection to pool, pool closed",null,true,null,"08S01",c.ER_ADD_CONNECTION_CLOSED_POOL,null));return}z++;p(b).then((b=>{o(b)})).catch((b=>{if(n||b.errno&&(b.errno===1524||b.errno===1045||b.errno===1698)||O<Date.now()){e(b);return}setTimeout(creationTryout.bind(null,o,e),500)}))};creationTryout(o,e)}))};const addPoolConnection=function(b,z){z.lastUse=Date.now();const p=z.destroy;z.destroy=()=>{r(z);delete d[z.threadId];p();b.emit("_remove-conn")};z.on("error",(p=>{let O=0;let o;r(z);delete d[z.threadId];while(o=q.peekAt(O)){if(o===z){q.removeOne(O);break}else{o.lastUse=Math.min(Date.now()-i.minDelayValidation,o.lastUse)}O++}b.emit("_remove-conn")}));s=false;q.push(z);b.emit("_idle-conn");process.nextTick((()=>b.emit("connection",z)))};this._releaseConnection=function(b){r(b);b.lastUse=Date.now();delete d[b.threadId];const z=this;if(n){return b.forceEnd().catch((()=>Promise.resolve()))}else if(b.isValid()){z.emit("release",b);q.push(b);process.nextTick((()=>z.emit("_idle-conn")))}else{ensurePoolSize(z)}};const ensurePoolSize=function(b){if(!s&&b.idleConnections()<i.minimumIdle&&b.totalConnections()<i.connectionLimit&&!n){s=true;process.nextTick((()=>{const z=Date.now()+i.initializationTimeout;if(!n){connectionCreationLoop(b,0,z).then((z=>{if(n){return z.forceEnd().catch((b=>{}))}addPoolConnection(b,z)})).catch((z=>{if(b.totalConnections()===0){const b=W.shift();if(b){R=clearTimeout(R);process.nextTick(b.reject,z);resetTimeoutToNextTask()}}else if(!n){console.error(`pool fail to create connection (${z.message})`)}setTimeout((()=>{s=false;if(W.size()>0){ensurePoolSize(b)}}),500)}))}}))}};const resetTimeoutToNextTask=()=>{const b=Date.now();let z;while(z=W.peekFront()){if(z.timeout<b){timeoutTask(z)}else{R=setTimeout(rejectAndResetTimeout,z.timeout-b,z);return}}};const idleMaintainer=function(b){let z=Math.max(1,b.idleConnections()-i.minimumIdle);while(z>0){const b=q.peek();--z;if(b&&b.lastUse+i.idleTimeout*1e3<Date.now()){q.shift();b.forceEnd().catch((b=>{}));continue}break}ensurePoolSize(b)};this._discardConnection=b=>{r(b);delete d[b.threadId];b.forceEnd().catch((b=>{}));this.emit("_remove-conn")};const logLeak=b=>{console.log("Possible connection leak on thread "+b.info.threadId+" (connection not returned to pool since "+(Date.now()-b.lastUse)+"ms. Did connection.released() been implemented");b.leaked=true};const _initLeakProcess=b=>{b.lastUse=Date.now();b.leaked=false;b.leakProcess=setTimeout(logLeak,i.leakDetectionTimeout,b)};const _removeLeakProcess=b=>{b.leakProcess=clearTimeout(b.leakProcess);if(b.leaked){console.log("Previous possible leak connection with thread "+b.info.threadId+" was returned to pool")}};const handleTaskQueue=function(){R=clearTimeout(R);const b=W.shift();if(b){const p=q.shift();if(p){a(p);this.emit("acquire",p);d[p.threadId]=p;resetTimeoutToNextTask();z(p,b.sql,b.values,b.isBatch).then(b.resolve).catch(b.reject)}else{W.unshift(b)}}};const i=b;let n=false;let s=false;const a=i.leakDetectionTimeout>0?_initLeakProcess:()=>{};const r=i.leakDetectionTimeout>0?_removeLeakProcess:()=>{};const q=new e;const d={};const W=new e;let f;let R;Object.defineProperty(this,"closed",{get(){return n}});O.call(this);this.on("_idle-conn",handleTaskQueue.bind(this));this.on("_remove-conn",ensurePoolSize.bind(this,this));this.on("connection",ensurePoolSize.bind(this,this))}o.inherits(PoolBase,O);b.exports=PoolBase},9324:function(b,z,p){"use strict";const O=p(1847);const o=p(5903);const e=p(1450);const c=p(3837);function PoolCallback(b){const processTaskCallback=function(b,z,p,O){if(z){return new Promise(((o,e)=>{const c=O?b.batch:b.query;c(z,p,((z,p,O)=>{b.releaseWithoutError();if(z){e(z);return}return o(p)}))}))}else{return Promise.resolve(b)}};const pingPromise=function(z){return new Promise(((p,O)=>{z.ping(b.pingTimeout,(b=>{if(b){O(b)}else p()}))}))};const createConnectionPoolCallback=function(z){const p=new o(b.connOptions);return new Promise((function(O,o){p.connect((c=>{if(c){o(c)}else{if(z.closed){p.end((b=>{}));o(e.createError("Cannot create new connection to pool, pool closed",null,true,null,"08S01",e.ER_ADD_CONNECTION_CLOSED_POOL,null))}else{const o=p.end;p.forceEnd=()=>new Promise((function(b,z){o((p=>{if(p){z(p)}else{b()}}))}));p.release=function(O){if(z.closed){z._discardConnection(p);if(O)O();return}if(b.noControlAfterUse){z._releaseConnection(p);if(O)O();return}let o=p.rollback;if(b.resetAfterUse&&p.info.isMariaDB()&&(p.info.serverVersion.minor===2&&p.info.hasMinVersion(10,2,22)||p.info.hasMinVersion(10,3,13))){o=p.reset}o((b=>{if(b){z._discardConnection(p);if(O)O();return}else{z._releaseConnection(p)}if(O)O()}))};p.end=p.release;p.releaseWithoutError=()=>{p.end((b=>{}))};O(p)}}}))}))};O.call(this,b,processTaskCallback,createConnectionPoolCallback,pingPromise);const z=this.getConnection.bind(this);const p=this.end.bind(this);const c=this.query.bind(this);const t=this.batch.bind(this);const emptyError=b=>{};const _getConnectionCallback=b=>{z().then((z=>{if(b)b(null,z)})).catch(b||emptyError)};const _endCallback=b=>{p().then((()=>{if(b)b(null)})).catch(b||emptyError)};const _queryCallback=function(b,z,p){let O=p,o=z;if(typeof z==="function"){O=z;o=undefined}c(b,o).then((b=>{if(O)O(null,b,b.meta)})).catch(O||emptyError)};const _batchCallback=function(b,z,p){let O=z,o=p;if(typeof z==="function"){o=z;O=undefined}t(b,O).then((b=>{if(o)o(null,b,b.meta)})).catch(o||emptyError)};this.end=_endCallback;this.query=_queryCallback;this.batch=_batchCallback;this.getConnection=_getConnectionCallback}c.inherits(PoolCallback,O);b.exports=PoolCallback},837:function(b,z,p){"use strict";const O=p(1859);const o=p(9967);const e=p(4673);const c=p(9324);const t=p(6699);const i=p(2361);const n=p(3837);function PoolCluster(b){const z=new O(b);const p={};let n={};let s=0;i.call(this);this.add=(b,z)=>{let O;if(typeof b==="string"||b instanceof String){O=b;if(p[O])throw new Error("Node identifier '"+O+"' already exist !")}else{O="PoolNode-"+s++;z=b}const e=new o(z);const c=_createPool(e);c.initialize();p[O]=c};this.end=()=>{n={};const b=[];Object.keys(p).forEach((z=>{b.push(p[z].end());delete p[z]}));return Promise.all(b)};this.of=(b,z)=>new t(this,b,z);this.remove=b=>{if(!b)throw new Error("pattern parameter in Cluster.remove(pattern) is mandatory");const z=RegExp(b);Object.keys(p).forEach((b=>{if(z.test(b)){p[b].end();delete p[b];n={}}}))};this.getConnection=(b,z)=>_getConnection(this,b,z);this.setCallback=()=>{this.getConnection=_getConnectionCallback.bind(this,this);_createPool=_createPoolCallback};const _getConnection=(b,z,O,o,e)=>{const c=_matchingNodes(z||/^/);if(c.length===0){if(Object.keys(p).length===0&&!e){return Promise.reject(new Error("No node have been added to cluster "+"or nodes have been removed due to too much connection error"))}if(o===undefined)return Promise.reject(new Error("No node found for pattern '"+z+"'"));const b="No Connection available for '"+z+"'"+(e?". Last connection error was: "+e.message:"");return Promise.reject(new Error(b))}const t=_getConnection.bind(this,this,z,O);try{const z=_selectPool(c,O,o);return _handleConnectionError(b,c,z,t)}catch(b){return Promise.reject(b)}};let _createPool=b=>new e(b,false);const _createPoolCallback=b=>new c(b,false);const _getConnectionCallback=(b,z,O,o,e,c)=>{const t=_matchingNodes(z||/^/);if(t.length===0){if(Object.keys(p).length===0&&!c){o(new Error("No node have been added to cluster "+"or nodes have been removed due to too much connection error"));return}if(e===undefined)o(new Error("No node found for pattern '"+z+"'"));const b="No Connection available for '"+z+"'"+(c?". Last connection error was: "+c.message:"");o(new Error(b));return}const i=_getConnectionCallback.bind(this,this,z,O,o);try{const b=_selectPool(t,O,e);_handleConnectionCallbackError(this,t,b,i,o)}catch(b){o(b)}};const _matchingNodes=b=>{if(n[b])return n[b];const z=RegExp(b);const O=[];Object.keys(p).forEach((b=>{if(z.test(b)){O.push(b)}}));n[b]=O;return O};const _selectPool=(b,O,o)=>{const e=O||z.defaultSelector;let c=0;let t;let i;switch(e){case"RR":t=roundRobinSelector;break;case"RANDOM":t=randomSelector;break;case"ORDER":t=orderedSelector;break;default:throw new Error("Wrong selector value '"+e+"'. Possible values are 'RR','RANDOM' or 'ORDER'")}i=t(b,c);while((o===i||p[i].blacklistedUntil>Date.now())&&c<b.length-1){c++;i=t(b,c)}return i};const roundRobinSelector=b=>{let z=b.lastRrIdx;if(z===undefined)z=-1;if(++z>=b.length)z=0;b.lastRrIdx=z;return b[z]};const randomSelector=b=>{let z=Math.floor(Math.random()*b.length);return b[z]};const orderedSelector=(b,z)=>b[z];const _handleConnectionError=(b,O,o,e)=>{const c=p[o];return c.getConnection().then((b=>{c.errorCount=0;return Promise.resolve(b)})).catch((t=>{c.errorCount=c.errorCount?c.errorCount+1:1;c.blacklistedUntil=Date.now()+z.restoreNodeTimeout;if(z.removeNodeErrorCount&&c.errorCount>=z.removeNodeErrorCount&&p[o]){delete p[o];n={};delete O.lastRrIdx;process.nextTick((()=>b.emit("remove",o)));c.end().catch((b=>{}))}if(O.length!==0&&z.canRetry){return e(o,t)}return Promise.reject(t)}))};const _handleConnectionCallbackError=(b,O,o,e,c)=>{const t=p[o];t.getConnection(((i,s)=>{if(i){t.errorCount=t.errorCount?t.errorCount+1:1;t.blacklistedUntil=Date.now()+z.restoreNodeTimeout;if(z.removeNodeErrorCount&&t.errorCount>=z.removeNodeErrorCount&&p[o]){delete p[o];n={};delete O.lastRrIdx;process.nextTick((()=>b.emit("remove",o)));t.end((()=>{}));if(O.length===0)return Promise.reject(i)}if(z.canRetry)return e(o,i);c(i)}else{t.errorCount=0;c(null,s)}}))};function TestMethods(){}TestMethods.prototype.getNodes=()=>p;this.__tests=new TestMethods}n.inherits(PoolCluster,i);b.exports=PoolCluster},4673:function(b,z,p){"use strict";const O=p(2939);const o=p(1847);const e=p(1450);const c=p(3837);function PoolPromise(b){const processTaskPromise=function(b,z,p,O){if(z){const o=O?b.batch:b.query;return o(z,p).then((z=>{b.releaseWithoutError();return Promise.resolve(z)})).catch((z=>{b.releaseWithoutError();return Promise.reject(z)}))}return Promise.resolve(b)};const createConnectionPoolPromise=function(z){const p=new O(b.connOptions);return p.connect().then((()=>{if(z.closed){p.end().then((()=>{})).catch((()=>{}));return Promise.reject(e.createError("Cannot create new connection to pool, pool closed",null,true,null,"08S01",e.ER_ADD_CONNECTION_CLOSED_POOL,null))}p.releaseWithoutError=()=>{p.release().catch((()=>{}))};p.forceEnd=p.end;p.release=()=>{if(z.closed){z._discardConnection(p);return Promise.resolve()}if(b.noControlAfterUse){z._releaseConnection(p);return Promise.resolve()}let O=p.rollback;if(b.resetAfterUse&&p.info.isMariaDB()&&(p.info.serverVersion.minor===2&&p.info.hasMinVersion(10,2,22)||p.info.hasMinVersion(10,3,13))){O=p.reset}return O().then((()=>{z._releaseConnection(p);return Promise.resolve()})).catch((b=>{z._discardConnection(p);return Promise.resolve()}))};p.end=p.release;return Promise.resolve(p)})).catch((b=>Promise.reject(b)))};o.call(this,b,processTaskPromise,createConnectionPoolPromise,(z=>z.ping(b.pingTimeout)))}c.inherits(PoolPromise,o);b.exports=PoolPromise},9210:function(b,z,p){"use strict";var O=p(5118).Buffer;z._dbcs=DBCSCodec;var o=-1,e=-2,c=-10,t=-1e3,i=new Array(256),n=-1;for(var s=0;s<256;s++)i[s]=o;function DBCSCodec(b,z){this.encodingName=b.encodingName;if(!b)throw new Error("DBCS codec is called without the data.");if(!b.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var p=b.table();this.decodeTables=[];this.decodeTables[0]=i.slice(0);this.decodeTableSeq=[];for(var O=0;O<p.length;O++)this._addDecodeChunk(p[O]);if(typeof b.gb18030==="function"){this.gb18030=b.gb18030();var c=this.decodeTables.length;this.decodeTables.push(i.slice(0));var n=this.decodeTables.length;this.decodeTables.push(i.slice(0));var s=this.decodeTables[0];for(var O=129;O<=254;O++){var a=this.decodeTables[t-s[O]];for(var r=48;r<=57;r++){if(a[r]===o){a[r]=t-c}else if(a[r]>t){throw new Error("gb18030 decode tables conflict at byte 2")}var q=this.decodeTables[t-a[r]];for(var d=129;d<=254;d++){if(q[d]===o){q[d]=t-n}else if(q[d]===t-n){continue}else if(q[d]>t){throw new Error("gb18030 decode tables conflict at byte 3")}var W=this.decodeTables[t-q[d]];for(var f=48;f<=57;f++){if(W[f]===o)W[f]=e}}}}}this.defaultCharUnicode=z.defaultCharUnicode;this.encodeTable=[];this.encodeTableSeq=[];var R={};if(b.encodeSkipVals)for(var O=0;O<b.encodeSkipVals.length;O++){var u=b.encodeSkipVals[O];if(typeof u==="number")R[u]=true;else for(var r=u.from;r<=u.to;r++)R[r]=true}this._fillEncodeTable(0,0,R);if(b.encodeAdd){for(var l in b.encodeAdd)if(Object.prototype.hasOwnProperty.call(b.encodeAdd,l))this._setEncodeChar(l.charCodeAt(0),b.encodeAdd[l])}this.defCharSB=this.encodeTable[0][z.defaultCharSingleByte.charCodeAt(0)];if(this.defCharSB===o)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===o)this.defCharSB="?".charCodeAt(0)}DBCSCodec.prototype.encoder=DBCSEncoder;DBCSCodec.prototype.decoder=DBCSDecoder;DBCSCodec.prototype._getDecodeTrieNode=function(b){var z=[];for(;b>0;b>>>=8)z.push(b&255);if(z.length==0)z.push(0);var p=this.decodeTables[0];for(var O=z.length-1;O>0;O--){var e=p[z[O]];if(e==o){p[z[O]]=t-this.decodeTables.length;this.decodeTables.push(p=i.slice(0))}else if(e<=t){p=this.decodeTables[t-e]}else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+b.toString(16))}return p};DBCSCodec.prototype._addDecodeChunk=function(b){var z=parseInt(b[0],16);var p=this._getDecodeTrieNode(z);z=z&255;for(var O=1;O<b.length;O++){var o=b[O];if(typeof o==="string"){for(var e=0;e<o.length;){var t=o.charCodeAt(e++);if(55296<=t&&t<56320){var i=o.charCodeAt(e++);if(56320<=i&&i<57344)p[z++]=65536+(t-55296)*1024+(i-56320);else throw new Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+b[0])}else if(4080<t&&t<=4095){var n=4095-t+2;var s=[];for(var a=0;a<n;a++)s.push(o.charCodeAt(e++));p[z++]=c-this.decodeTableSeq.length;this.decodeTableSeq.push(s)}else p[z++]=t}}else if(typeof o==="number"){var r=p[z-1]+1;for(var e=0;e<o;e++)p[z++]=r++}else throw new Error("Incorrect type '"+typeof o+"' given in "+this.encodingName+" at chunk "+b[0])}if(z>255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+b[0]+": too long"+z)};DBCSCodec.prototype._getEncodeBucket=function(b){var z=b>>8;if(this.encodeTable[z]===undefined)this.encodeTable[z]=i.slice(0);return this.encodeTable[z]};DBCSCodec.prototype._setEncodeChar=function(b,z){var p=this._getEncodeBucket(b);var O=b&255;if(p[O]<=c)this.encodeTableSeq[c-p[O]][n]=z;else if(p[O]==o)p[O]=z};DBCSCodec.prototype._setEncodeSequence=function(b,z){var p=b[0];var O=this._getEncodeBucket(p);var e=p&255;var t;if(O[e]<=c){t=this.encodeTableSeq[c-O[e]]}else{t={};if(O[e]!==o)t[n]=O[e];O[e]=c-this.encodeTableSeq.length;this.encodeTableSeq.push(t)}for(var i=1;i<b.length-1;i++){var s=t[p];if(typeof s==="object")t=s;else{t=t[p]={};if(s!==undefined)t[n]=s}}p=b[b.length-1];t[p]=z};DBCSCodec.prototype._fillEncodeTable=function(b,z,p){var O=this.decodeTables[b];var o=false;var e={};for(var i=0;i<256;i++){var n=O[i];var s=z+i;if(p[s])continue;if(n>=0){this._setEncodeChar(n,s);o=true}else if(n<=t){var a=t-n;if(!e[a]){var r=s<<8>>>0;if(this._fillEncodeTable(a,r,p))o=true;else e[a]=true}}else if(n<=c){this._setEncodeSequence(this.decodeTableSeq[c-n],s);o=true}}return o};function DBCSEncoder(b,z){this.leadSurrogate=-1;this.seqObj=undefined;this.encodeTable=z.encodeTable;this.encodeTableSeq=z.encodeTableSeq;this.defaultCharSingleByte=z.defCharSB;this.gb18030=z.gb18030}DBCSEncoder.prototype.write=function(b){var z=O.alloc(b.length*(this.gb18030?4:3)),p=this.leadSurrogate,e=this.seqObj,t=-1,i=0,s=0;while(true){if(t===-1){if(i==b.length)break;var a=b.charCodeAt(i++)}else{var a=t;t=-1}if(55296<=a&&a<57344){if(a<56320){if(p===-1){p=a;continue}else{p=a;a=o}}else{if(p!==-1){a=65536+(p-55296)*1024+(a-56320);p=-1}else{a=o}}}else if(p!==-1){t=a;a=o;p=-1}var r=o;if(e!==undefined&&a!=o){var q=e[a];if(typeof q==="object"){e=q;continue}else if(typeof q=="number"){r=q}else if(q==undefined){q=e[n];if(q!==undefined){r=q;t=a}else{}}e=undefined}else if(a>=0){var d=this.encodeTable[a>>8];if(d!==undefined)r=d[a&255];if(r<=c){e=this.encodeTableSeq[c-r];continue}if(r==o&&this.gb18030){var W=findIdx(this.gb18030.uChars,a);if(W!=-1){var r=this.gb18030.gbChars[W]+(a-this.gb18030.uChars[W]);z[s++]=129+Math.floor(r/12600);r=r%12600;z[s++]=48+Math.floor(r/1260);r=r%1260;z[s++]=129+Math.floor(r/10);r=r%10;z[s++]=48+r;continue}}}if(r===o)r=this.defaultCharSingleByte;if(r<256){z[s++]=r}else if(r<65536){z[s++]=r>>8;z[s++]=r&255}else if(r<16777216){z[s++]=r>>16;z[s++]=r>>8&255;z[s++]=r&255}else{z[s++]=r>>>24;z[s++]=r>>>16&255;z[s++]=r>>>8&255;z[s++]=r&255}}this.seqObj=e;this.leadSurrogate=p;return z.slice(0,s)};DBCSEncoder.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===undefined)return;var b=O.alloc(10),z=0;if(this.seqObj){var p=this.seqObj[n];if(p!==undefined){if(p<256){b[z++]=p}else{b[z++]=p>>8;b[z++]=p&255}}else{}this.seqObj=undefined}if(this.leadSurrogate!==-1){b[z++]=this.defaultCharSingleByte;this.leadSurrogate=-1}return b.slice(0,z)};DBCSEncoder.prototype.findIdx=findIdx;function DBCSDecoder(b,z){this.nodeIdx=0;this.prevBytes=[];this.decodeTables=z.decodeTables;this.decodeTableSeq=z.decodeTableSeq;this.defaultCharUnicode=z.defaultCharUnicode;this.gb18030=z.gb18030}DBCSDecoder.prototype.write=function(b){var z=O.alloc(b.length*2),p=this.nodeIdx,i=this.prevBytes,n=this.prevBytes.length,s=-this.prevBytes.length,a;for(var r=0,q=0;r<b.length;r++){var d=r>=0?b[r]:i[r+n];var a=this.decodeTables[p][d];if(a>=0){}else if(a===o){a=this.defaultCharUnicode.charCodeAt(0);r=s}else if(a===e){if(r>=3){var W=(b[r-3]-129)*12600+(b[r-2]-48)*1260+(b[r-1]-129)*10+(d-48)}else{var W=(i[r-3+n]-129)*12600+((r-2>=0?b[r-2]:i[r-2+n])-48)*1260+((r-1>=0?b[r-1]:i[r-1+n])-129)*10+(d-48)}var f=findIdx(this.gb18030.gbChars,W);a=this.gb18030.uChars[f]+W-this.gb18030.gbChars[f]}else if(a<=t){p=t-a;continue}else if(a<=c){var R=this.decodeTableSeq[c-a];for(var u=0;u<R.length-1;u++){a=R[u];z[q++]=a&255;z[q++]=a>>8}a=R[R.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+a+" at "+p+"/"+d);if(a>=65536){a-=65536;var l=55296|a>>10;z[q++]=l&255;z[q++]=l>>8;a=56320|a&1023}z[q++]=a&255;z[q++]=a>>8;p=0;s=r+1}this.nodeIdx=p;this.prevBytes=s>=0?Array.prototype.slice.call(b,s):i.slice(s+n).concat(Array.prototype.slice.call(b));return z.slice(0,q).toString("ucs2")};DBCSDecoder.prototype.end=function(){var b="";while(this.prevBytes.length>0){b+=this.defaultCharUnicode;var z=this.prevBytes.slice(1);this.prevBytes=[];this.nodeIdx=0;if(z.length>0)b+=this.write(z)}this.prevBytes=[];this.nodeIdx=0;return b};function findIdx(b,z){if(b[0]>z)return-1;var p=0,O=b.length;while(p<O-1){var o=p+(O-p+1>>1);if(b[o]<=z)p=o;else O=o}return p}},136:function(b,z,p){"use strict";b.exports={shiftjis:{type:"_dbcs",table:function(){return p(6560)},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return p(2739)},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return p(8252)}},gbk:{type:"_dbcs",table:function(){return p(8252).concat(p(8116))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return p(8252).concat(p(8116))},gb18030:function(){return p(3175)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return p(1278)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return p(527)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return p(527).concat(p(363))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},9424:function(b,z,p){"use strict";var O=[p(5121),p(3043),p(8109),p(399),p(6748),p(9975),p(5978),p(9210),p(136)];for(var o=0;o<O.length;o++){var e=O[o];for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c))z[c]=e[c]}},5121:function(b,z,p){"use strict";var O=p(5118).Buffer;b.exports={utf8:{type:"_internal",bomAware:true},cesu8:{type:"_internal",bomAware:true},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:true},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:InternalCodec};function InternalCodec(b,z){this.enc=b.encodingName;this.bomAware=b.bomAware;if(this.enc==="base64")this.encoder=InternalEncoderBase64;else if(this.enc==="cesu8"){this.enc="utf8";this.encoder=InternalEncoderCesu8;if(O.from("eda0bdedb2a9","hex").toString()!=="💩"){this.decoder=InternalDecoderCesu8;this.defaultCharUnicode=z.defaultCharUnicode}}}InternalCodec.prototype.encoder=InternalEncoder;InternalCodec.prototype.decoder=InternalDecoder;var o=p(1576).StringDecoder;if(!o.prototype.end)o.prototype.end=function(){};function InternalDecoder(b,z){this.decoder=new o(z.enc)}InternalDecoder.prototype.write=function(b){if(!O.isBuffer(b)){b=O.from(b)}return this.decoder.write(b)};InternalDecoder.prototype.end=function(){return this.decoder.end()};function InternalEncoder(b,z){this.enc=z.enc}InternalEncoder.prototype.write=function(b){return O.from(b,this.enc)};InternalEncoder.prototype.end=function(){};function InternalEncoderBase64(b,z){this.prevStr=""}InternalEncoderBase64.prototype.write=function(b){b=this.prevStr+b;var z=b.length-b.length%4;this.prevStr=b.slice(z);b=b.slice(0,z);return O.from(b,"base64")};InternalEncoderBase64.prototype.end=function(){return O.from(this.prevStr,"base64")};function InternalEncoderCesu8(b,z){}InternalEncoderCesu8.prototype.write=function(b){var z=O.alloc(b.length*3),p=0;for(var o=0;o<b.length;o++){var e=b.charCodeAt(o);if(e<128)z[p++]=e;else if(e<2048){z[p++]=192+(e>>>6);z[p++]=128+(e&63)}else{z[p++]=224+(e>>>12);z[p++]=128+(e>>>6&63);z[p++]=128+(e&63)}}return z.slice(0,p)};InternalEncoderCesu8.prototype.end=function(){};function InternalDecoderCesu8(b,z){this.acc=0;this.contBytes=0;this.accBytes=0;this.defaultCharUnicode=z.defaultCharUnicode}InternalDecoderCesu8.prototype.write=function(b){var z=this.acc,p=this.contBytes,O=this.accBytes,o="";for(var e=0;e<b.length;e++){var c=b[e];if((c&192)!==128){if(p>0){o+=this.defaultCharUnicode;p=0}if(c<128){o+=String.fromCharCode(c)}else if(c<224){z=c&31;p=1;O=1}else if(c<240){z=c&15;p=2;O=1}else{o+=this.defaultCharUnicode}}else{if(p>0){z=z<<6|c&63;p--;O++;if(p===0){if(O===2&&z<128&&z>0)o+=this.defaultCharUnicode;else if(O===3&&z<2048)o+=this.defaultCharUnicode;else o+=String.fromCharCode(z)}}else{o+=this.defaultCharUnicode}}}this.acc=z;this.contBytes=p;this.accBytes=O;return o};InternalDecoderCesu8.prototype.end=function(){var b=0;if(this.contBytes>0)b+=this.defaultCharUnicode;return b}},6748:function(b,z,p){"use strict";var O=p(5118).Buffer;z._sbcs=SBCSCodec;function SBCSCodec(b,z){if(!b)throw new Error("SBCS codec is called without the data.");if(!b.chars||b.chars.length!==128&&b.chars.length!==256)throw new Error("Encoding '"+b.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(b.chars.length===128){var p="";for(var o=0;o<128;o++)p+=String.fromCharCode(o);b.chars=p+b.chars}this.decodeBuf=O.from(b.chars,"ucs2");var e=O.alloc(65536,z.defaultCharSingleByte.charCodeAt(0));for(var o=0;o<b.chars.length;o++)e[b.chars.charCodeAt(o)]=o;this.encodeBuf=e}SBCSCodec.prototype.encoder=SBCSEncoder;SBCSCodec.prototype.decoder=SBCSDecoder;function SBCSEncoder(b,z){this.encodeBuf=z.encodeBuf}SBCSEncoder.prototype.write=function(b){var z=O.alloc(b.length);for(var p=0;p<b.length;p++)z[p]=this.encodeBuf[b.charCodeAt(p)];return z};SBCSEncoder.prototype.end=function(){};function SBCSDecoder(b,z){this.decodeBuf=z.decodeBuf}SBCSDecoder.prototype.write=function(b){var z=this.decodeBuf;var p=O.alloc(b.length*2);var o=0,e=0;for(var c=0;c<b.length;c++){o=b[c]*2;e=c*2;p[e]=z[o];p[e+1]=z[o+1]}return p.toString("ucs2")};SBCSDecoder.prototype.end=function(){}},5978:function(b){"use strict";b.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\ufeff​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0ÚỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸÝỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0ẲẴẪ\b\t\n\v\f\rỶỸỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},9975:function(b){"use strict";b.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},cp720:{type:"_sbcs",chars:"€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■ "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},8109:function(b,z,p){"use strict";var O=p(5118).Buffer;z.utf16be=Utf16BECodec;function Utf16BECodec(){}Utf16BECodec.prototype.encoder=Utf16BEEncoder;Utf16BECodec.prototype.decoder=Utf16BEDecoder;Utf16BECodec.prototype.bomAware=true;function Utf16BEEncoder(){}Utf16BEEncoder.prototype.write=function(b){var z=O.from(b,"ucs2");for(var p=0;p<z.length;p+=2){var o=z[p];z[p]=z[p+1];z[p+1]=o}return z};Utf16BEEncoder.prototype.end=function(){};function Utf16BEDecoder(){this.overflowByte=-1}Utf16BEDecoder.prototype.write=function(b){if(b.length==0)return"";var z=O.alloc(b.length+1),p=0,o=0;if(this.overflowByte!==-1){z[0]=b[0];z[1]=this.overflowByte;p=1;o=2}for(;p<b.length-1;p+=2,o+=2){z[o]=b[p+1];z[o+1]=b[p]}this.overflowByte=p==b.length-1?b[b.length-1]:-1;return z.slice(0,o).toString("ucs2")};Utf16BEDecoder.prototype.end=function(){this.overflowByte=-1};z.utf16=Utf16Codec;function Utf16Codec(b,z){this.iconv=z}Utf16Codec.prototype.encoder=Utf16Encoder;Utf16Codec.prototype.decoder=Utf16Decoder;function Utf16Encoder(b,z){b=b||{};if(b.addBOM===undefined)b.addBOM=true;this.encoder=z.iconv.getEncoder("utf-16le",b)}Utf16Encoder.prototype.write=function(b){return this.encoder.write(b)};Utf16Encoder.prototype.end=function(){return this.encoder.end()};function Utf16Decoder(b,z){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=b||{};this.iconv=z.iconv}Utf16Decoder.prototype.write=function(b){if(!this.decoder){this.initialBufs.push(b);this.initialBufsLen+=b.length;if(this.initialBufsLen<16)return"";var z=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(z,this.options);var p="";for(var O=0;O<this.initialBufs.length;O++)p+=this.decoder.write(this.initialBufs[O]);this.initialBufs.length=this.initialBufsLen=0;return p}return this.decoder.write(b)};Utf16Decoder.prototype.end=function(){if(!this.decoder){var b=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(b,this.options);var z="";for(var p=0;p<this.initialBufs.length;p++)z+=this.decoder.write(this.initialBufs[p]);var O=this.decoder.end();if(O)z+=O;this.initialBufs.length=this.initialBufsLen=0;return z}return this.decoder.end()};function detectEncoding(b,z){var p=[];var O=0;var o=0,e=0;M:for(var c=0;c<b.length;c++){var t=b[c];for(var i=0;i<t.length;i++){p.push(t[i]);if(p.length===2){if(O===0){if(p[0]===255&&p[1]===254)return"utf-16le";if(p[0]===254&&p[1]===255)return"utf-16be"}if(p[0]===0&&p[1]!==0)e++;if(p[0]!==0&&p[1]===0)o++;p.length=0;O++;if(O>=100){break M}}}}if(e>o)return"utf-16be";if(e<o)return"utf-16le";return z||"utf-16le"}},3043:function(b,z,p){"use strict";var O=p(5118).Buffer;z._utf32=Utf32Codec;function Utf32Codec(b,z){this.iconv=z;this.bomAware=true;this.isLE=b.isLE}z.utf32le={type:"_utf32",isLE:true};z.utf32be={type:"_utf32",isLE:false};z.ucs4le="utf32le";z.ucs4be="utf32be";Utf32Codec.prototype.encoder=Utf32Encoder;Utf32Codec.prototype.decoder=Utf32Decoder;function Utf32Encoder(b,z){this.isLE=z.isLE;this.highSurrogate=0}Utf32Encoder.prototype.write=function(b){var z=O.from(b,"ucs2");var p=O.alloc(z.length*2);var o=this.isLE?p.writeUInt32LE:p.writeUInt32BE;var e=0;for(var c=0;c<z.length;c+=2){var t=z.readUInt16LE(c);var i=55296<=t&&t<56320;var n=56320<=t&&t<57344;if(this.highSurrogate){if(i||!n){o.call(p,this.highSurrogate,e);e+=4}else{var s=(this.highSurrogate-55296<<10|t-56320)+65536;o.call(p,s,e);e+=4;this.highSurrogate=0;continue}}if(i)this.highSurrogate=t;else{o.call(p,t,e);e+=4;this.highSurrogate=0}}if(e<p.length)p=p.slice(0,e);return p};Utf32Encoder.prototype.end=function(){if(!this.highSurrogate)return;var b=O.alloc(4);if(this.isLE)b.writeUInt32LE(this.highSurrogate,0);else b.writeUInt32BE(this.highSurrogate,0);this.highSurrogate=0;return b};function Utf32Decoder(b,z){this.isLE=z.isLE;this.badChar=z.iconv.defaultCharUnicode.charCodeAt(0);this.overflow=[]}Utf32Decoder.prototype.write=function(b){if(b.length===0)return"";var z=0;var p=0;var o=O.alloc(b.length+4);var e=0;var c=this.isLE;var t=this.overflow;var i=this.badChar;if(t.length>0){for(;z<b.length&&t.length<4;z++)t.push(b[z]);if(t.length===4){if(c){p=t[z]|t[z+1]<<8|t[z+2]<<16|t[z+3]<<24}else{p=t[z+3]|t[z+2]<<8|t[z+1]<<16|t[z]<<24}t.length=0;e=_writeCodepoint(o,e,p,i)}}for(;z<b.length-3;z+=4){if(c){p=b[z]|b[z+1]<<8|b[z+2]<<16|b[z+3]<<24}else{p=b[z+3]|b[z+2]<<8|b[z+1]<<16|b[z]<<24}e=_writeCodepoint(o,e,p,i)}for(;z<b.length;z++){t.push(b[z])}return o.slice(0,e).toString("ucs2")};function _writeCodepoint(b,z,p,O){if(p<0||p>1114111){p=O}if(p>=65536){p-=65536;var o=55296|p>>10;b[z++]=o&255;b[z++]=o>>8;var p=56320|p&1023}b[z++]=p&255;b[z++]=p>>8;return z}Utf32Decoder.prototype.end=function(){this.overflow.length=0};z.utf32=Utf32AutoCodec;z.ucs4="utf32";function Utf32AutoCodec(b,z){this.iconv=z}Utf32AutoCodec.prototype.encoder=Utf32AutoEncoder;Utf32AutoCodec.prototype.decoder=Utf32AutoDecoder;function Utf32AutoEncoder(b,z){b=b||{};if(b.addBOM===undefined)b.addBOM=true;this.encoder=z.iconv.getEncoder(b.defaultEncoding||"utf-32le",b)}Utf32AutoEncoder.prototype.write=function(b){return this.encoder.write(b)};Utf32AutoEncoder.prototype.end=function(){return this.encoder.end()};function Utf32AutoDecoder(b,z){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=b||{};this.iconv=z.iconv}Utf32AutoDecoder.prototype.write=function(b){if(!this.decoder){this.initialBufs.push(b);this.initialBufsLen+=b.length;if(this.initialBufsLen<32)return"";var z=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(z,this.options);var p="";for(var O=0;O<this.initialBufs.length;O++)p+=this.decoder.write(this.initialBufs[O]);this.initialBufs.length=this.initialBufsLen=0;return p}return this.decoder.write(b)};Utf32AutoDecoder.prototype.end=function(){if(!this.decoder){var b=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(b,this.options);var z="";for(var p=0;p<this.initialBufs.length;p++)z+=this.decoder.write(this.initialBufs[p]);var O=this.decoder.end();if(O)z+=O;this.initialBufs.length=this.initialBufsLen=0;return z}return this.decoder.end()};function detectEncoding(b,z){var p=[];var O=0;var o=0,e=0;var c=0,t=0;M:for(var i=0;i<b.length;i++){var n=b[i];for(var s=0;s<n.length;s++){p.push(n[s]);if(p.length===4){if(O===0){if(p[0]===255&&p[1]===254&&p[2]===0&&p[3]===0){return"utf-32le"}if(p[0]===0&&p[1]===0&&p[2]===254&&p[3]===255){return"utf-32be"}}if(p[0]!==0||p[1]>16)e++;if(p[3]!==0||p[2]>16)o++;if(p[0]===0&&p[1]===0&&(p[2]!==0||p[3]!==0))t++;if((p[0]!==0||p[1]!==0)&&p[2]===0&&p[3]===0)c++;p.length=0;O++;if(O>=100){break M}}}}if(t-e>c-o)return"utf-32be";if(t-e<c-o)return"utf-32le";return z||"utf-32le"}},399:function(b,z,p){"use strict";var O=p(5118).Buffer;z.utf7=Utf7Codec;z.unicode11utf7="utf7";function Utf7Codec(b,z){this.iconv=z}Utf7Codec.prototype.encoder=Utf7Encoder;Utf7Codec.prototype.decoder=Utf7Decoder;Utf7Codec.prototype.bomAware=true;var o=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Utf7Encoder(b,z){this.iconv=z.iconv}Utf7Encoder.prototype.write=function(b){return O.from(b.replace(o,function(b){return"+"+(b==="+"?"":this.iconv.encode(b,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Utf7Encoder.prototype.end=function(){};function Utf7Decoder(b,z){this.iconv=z.iconv;this.inBase64=false;this.base64Accum=""}var e=/[A-Za-z0-9\/+]/;var c=[];for(var t=0;t<256;t++)c[t]=e.test(String.fromCharCode(t));var i="+".charCodeAt(0),n="-".charCodeAt(0),s="&".charCodeAt(0);Utf7Decoder.prototype.write=function(b){var z="",p=0,o=this.inBase64,e=this.base64Accum;for(var t=0;t<b.length;t++){if(!o){if(b[t]==i){z+=this.iconv.decode(b.slice(p,t),"ascii");p=t+1;o=true}}else{if(!c[b[t]]){if(t==p&&b[t]==n){z+="+"}else{var s=e+this.iconv.decode(b.slice(p,t),"ascii");z+=this.iconv.decode(O.from(s,"base64"),"utf16-be")}if(b[t]!=n)t--;p=t+1;o=false;e=""}}}if(!o){z+=this.iconv.decode(b.slice(p),"ascii")}else{var s=e+this.iconv.decode(b.slice(p),"ascii");var a=s.length-s.length%8;e=s.slice(a);s=s.slice(0,a);z+=this.iconv.decode(O.from(s,"base64"),"utf16-be")}this.inBase64=o;this.base64Accum=e;return z};Utf7Decoder.prototype.end=function(){var b="";if(this.inBase64&&this.base64Accum.length>0)b=this.iconv.decode(O.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return b};z.utf7imap=Utf7IMAPCodec;function Utf7IMAPCodec(b,z){this.iconv=z}Utf7IMAPCodec.prototype.encoder=Utf7IMAPEncoder;Utf7IMAPCodec.prototype.decoder=Utf7IMAPDecoder;Utf7IMAPCodec.prototype.bomAware=true;function Utf7IMAPEncoder(b,z){this.iconv=z.iconv;this.inBase64=false;this.base64Accum=O.alloc(6);this.base64AccumIdx=0}Utf7IMAPEncoder.prototype.write=function(b){var z=this.inBase64,p=this.base64Accum,o=this.base64AccumIdx,e=O.alloc(b.length*5+10),c=0;for(var t=0;t<b.length;t++){var i=b.charCodeAt(t);if(32<=i&&i<=126){if(z){if(o>0){c+=e.write(p.slice(0,o).toString("base64").replace(/\//g,",").replace(/=+$/,""),c);o=0}e[c++]=n;z=false}if(!z){e[c++]=i;if(i===s)e[c++]=n}}else{if(!z){e[c++]=s;z=true}if(z){p[o++]=i>>8;p[o++]=i&255;if(o==p.length){c+=e.write(p.toString("base64").replace(/\//g,","),c);o=0}}}}this.inBase64=z;this.base64AccumIdx=o;return e.slice(0,c)};Utf7IMAPEncoder.prototype.end=function(){var b=O.alloc(10),z=0;if(this.inBase64){if(this.base64AccumIdx>0){z+=b.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),z);this.base64AccumIdx=0}b[z++]=n;this.inBase64=false}return b.slice(0,z)};function Utf7IMAPDecoder(b,z){this.iconv=z.iconv;this.inBase64=false;this.base64Accum=""}var a=c.slice();a[",".charCodeAt(0)]=true;Utf7IMAPDecoder.prototype.write=function(b){var z="",p=0,o=this.inBase64,e=this.base64Accum;for(var c=0;c<b.length;c++){if(!o){if(b[c]==s){z+=this.iconv.decode(b.slice(p,c),"ascii");p=c+1;o=true}}else{if(!a[b[c]]){if(c==p&&b[c]==n){z+="&"}else{var t=e+this.iconv.decode(b.slice(p,c),"ascii").replace(/,/g,"/");z+=this.iconv.decode(O.from(t,"base64"),"utf16-be")}if(b[c]!=n)c--;p=c+1;o=false;e=""}}}if(!o){z+=this.iconv.decode(b.slice(p),"ascii")}else{var t=e+this.iconv.decode(b.slice(p),"ascii").replace(/,/g,"/");var i=t.length-t.length%8;e=t.slice(i);t=t.slice(0,i);z+=this.iconv.decode(O.from(t,"base64"),"utf16-be")}this.inBase64=o;this.base64Accum=e;return z};Utf7IMAPDecoder.prototype.end=function(){var b="";if(this.inBase64&&this.base64Accum.length>0)b=this.iconv.decode(O.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return b}},5487:function(b,z){"use strict";var p="\ufeff";z.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(b,z){this.encoder=b;this.addBOM=true}PrependBOMWrapper.prototype.write=function(b){if(this.addBOM){b=p+b;this.addBOM=false}return this.encoder.write(b)};PrependBOMWrapper.prototype.end=function(){return this.encoder.end()};z.StripBOM=StripBOMWrapper;function StripBOMWrapper(b,z){this.decoder=b;this.pass=false;this.options=z||{}}StripBOMWrapper.prototype.write=function(b){var z=this.decoder.write(b);if(this.pass||!z)return z;if(z[0]===p){z=z.slice(1);if(typeof this.options.stripBOM==="function")this.options.stripBOM()}this.pass=true;return z};StripBOMWrapper.prototype.end=function(){return this.decoder.end()}},1401:function(b,z,p){"use strict";var O=p(5118).Buffer;var o=p(5487),e=b.exports;e.encodings=null;e.defaultCharUnicode="�";e.defaultCharSingleByte="?";e.encode=function encode(b,z,p){b=""+(b||"");var o=e.getEncoder(z,p);var c=o.write(b);var t=o.end();return t&&t.length>0?O.concat([c,t]):c};e.decode=function decode(b,z,p){if(typeof b==="string"){if(!e.skipDecodeWarning){console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");e.skipDecodeWarning=true}b=O.from(""+(b||""),"binary")}var o=e.getDecoder(z,p);var c=o.write(b);var t=o.end();return t?c+t:c};e.encodingExists=function encodingExists(b){try{e.getCodec(b);return true}catch(b){return false}};e.toEncoding=e.encode;e.fromEncoding=e.decode;e._codecDataCache={};e.getCodec=function getCodec(b){if(!e.encodings)e.encodings=p(9424);var z=e._canonicalizeEncoding(b);var O={};while(true){var o=e._codecDataCache[z];if(o)return o;var c=e.encodings[z];switch(typeof c){case"string":z=c;break;case"object":for(var t in c)O[t]=c[t];if(!O.encodingName)O.encodingName=z;z=c.type;break;case"function":if(!O.encodingName)O.encodingName=z;o=new c(O,e);e._codecDataCache[O.encodingName]=o;return o;default:throw new Error("Encoding not recognized: '"+b+"' (searched as: '"+z+"')")}}};e._canonicalizeEncoding=function(b){return(""+b).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};e.getEncoder=function getEncoder(b,z){var p=e.getCodec(b),O=new p.encoder(z,p);if(p.bomAware&&z&&z.addBOM)O=new o.PrependBOM(O,z);return O};e.getDecoder=function getDecoder(b,z){var p=e.getCodec(b),O=new p.decoder(z,p);if(p.bomAware&&!(z&&z.stripBOM===false))O=new o.StripBOM(O,z);return O};e.enableStreamingAPI=function enableStreamingAPI(b){if(e.supportsStreams)return;var z=p(1053)(b);e.IconvLiteEncoderStream=z.IconvLiteEncoderStream;e.IconvLiteDecoderStream=z.IconvLiteDecoderStream;e.encodeStream=function encodeStream(b,z){return new e.IconvLiteEncoderStream(e.getEncoder(b,z),z)};e.decodeStream=function decodeStream(b,z){return new e.IconvLiteDecoderStream(e.getDecoder(b,z),z)};e.supportsStreams=true};var c;try{c=p(2781)}catch(b){}if(c&&c.Transform){e.enableStreamingAPI(c)}else{e.encodeStream=e.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}}if(false){}},1053:function(b,z,p){"use strict";var O=p(5118).Buffer;b.exports=function(b){var z=b.Transform;function IconvLiteEncoderStream(b,p){this.conv=b;p=p||{};p.decodeStrings=false;z.call(this,p)}IconvLiteEncoderStream.prototype=Object.create(z.prototype,{constructor:{value:IconvLiteEncoderStream}});IconvLiteEncoderStream.prototype._transform=function(b,z,p){if(typeof b!="string")return p(new Error("Iconv encoding stream needs strings as its input."));try{var O=this.conv.write(b);if(O&&O.length)this.push(O);p()}catch(b){p(b)}};IconvLiteEncoderStream.prototype._flush=function(b){try{var z=this.conv.end();if(z&&z.length)this.push(z);b()}catch(z){b(z)}};IconvLiteEncoderStream.prototype.collect=function(b){var z=[];this.on("error",b);this.on("data",(function(b){z.push(b)}));this.on("end",(function(){b(null,O.concat(z))}));return this};function IconvLiteDecoderStream(b,p){this.conv=b;p=p||{};p.encoding=this.encoding="utf8";z.call(this,p)}IconvLiteDecoderStream.prototype=Object.create(z.prototype,{constructor:{value:IconvLiteDecoderStream}});IconvLiteDecoderStream.prototype._transform=function(b,z,p){if(!O.isBuffer(b)&&!(b instanceof Uint8Array))return p(new Error("Iconv decoding stream needs buffers as its input."));try{var o=this.conv.write(b);if(o&&o.length)this.push(o,this.encoding);p()}catch(b){p(b)}};IconvLiteDecoderStream.prototype._flush=function(b){try{var z=this.conv.end();if(z&&z.length)this.push(z,this.encoding);b()}catch(z){b(z)}};IconvLiteDecoderStream.prototype.collect=function(b){var z="";this.on("error",b);this.on("data",(function(b){z+=b}));this.on("end",(function(){b(null,z)}));return this};return{IconvLiteEncoderStream:IconvLiteEncoderStream,IconvLiteDecoderStream:IconvLiteDecoderStream}}},4719:function(b,z,p){"use strict";const O=p(8850);p(3229)(O);const o=p(2939);const e=p(4673);const c=p(837);const t=p(9362);const i=p(9967);const n=p(1859);b.exports.version=p(8850).version;b.exports.SqlError=p(1450).SqlError;b.exports.defaultOptions=function defaultOptions(b){const z=new t(b);const p={};for(const[b,O]of Object.entries(z)){if(!b.startsWith("_")){p[b]=O}}return p};b.exports.createConnection=function createConnection(b){try{const z=new t(b);return new o(z).connect()}catch(b){return Promise.reject(b)}};b.exports.createPool=function createPool(b){const z=new i(b);const p=new e(z,false);p.initialize();return p};b.exports.createPoolCluster=function createPoolCluster(b){const z=new n(b);return new c(z)}},7936:function(b,z,p){var O=b.exports=p(6345);O.tz.load(p(1128))},6345:function(b,z,p){
2
2
  //! moment-timezone.js
3
3
  //! version : 0.5.43
4
4
  //! Copyright (c) JS Foundation and other contributors
@@ -12,7 +12,7 @@
12
12
  //! momentjs.com
13
13
  (function(z,p){true?b.exports=p():0})(this,(function(){"use strict";var z;function hooks(){return z.apply(null,arguments)}function setHookCallback(b){z=b}function isArray(b){return b instanceof Array||Object.prototype.toString.call(b)==="[object Array]"}function isObject(b){return b!=null&&Object.prototype.toString.call(b)==="[object Object]"}function hasOwnProp(b,z){return Object.prototype.hasOwnProperty.call(b,z)}function isObjectEmpty(b){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(b).length===0}else{var z;for(z in b){if(hasOwnProp(b,z)){return false}}return true}}function isUndefined(b){return b===void 0}function isNumber(b){return typeof b==="number"||Object.prototype.toString.call(b)==="[object Number]"}function isDate(b){return b instanceof Date||Object.prototype.toString.call(b)==="[object Date]"}function map(b,z){var p=[],O,o=b.length;for(O=0;O<o;++O){p.push(z(b[O],O))}return p}function extend(b,z){for(var p in z){if(hasOwnProp(z,p)){b[p]=z[p]}}if(hasOwnProp(z,"toString")){b.toString=z.toString}if(hasOwnProp(z,"valueOf")){b.valueOf=z.valueOf}return b}function createUTC(b,z,p,O){return createLocalOrUTC(b,z,p,O,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(b){if(b._pf==null){b._pf=defaultParsingFlags()}return b._pf}var p;if(Array.prototype.some){p=Array.prototype.some}else{p=function(b){var z=Object(this),p=z.length>>>0,O;for(O=0;O<p;O++){if(O in z&&b.call(this,z[O],O,z)){return true}}return false}}function isValid(b){if(b._isValid==null){var z=getParsingFlags(b),O=p.call(z.parsedDateParts,(function(b){return b!=null})),o=!isNaN(b._d.getTime())&&z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&O);if(b._strict){o=o&&z.charsLeftOver===0&&z.unusedTokens.length===0&&z.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(b)){b._isValid=o}else{return o}}return b._isValid}function createInvalid(b){var z=createUTC(NaN);if(b!=null){extend(getParsingFlags(z),b)}else{getParsingFlags(z).userInvalidated=true}return z}var O=hooks.momentProperties=[],o=false;function copyConfig(b,z){var p,o,e,c=O.length;if(!isUndefined(z._isAMomentObject)){b._isAMomentObject=z._isAMomentObject}if(!isUndefined(z._i)){b._i=z._i}if(!isUndefined(z._f)){b._f=z._f}if(!isUndefined(z._l)){b._l=z._l}if(!isUndefined(z._strict)){b._strict=z._strict}if(!isUndefined(z._tzm)){b._tzm=z._tzm}if(!isUndefined(z._isUTC)){b._isUTC=z._isUTC}if(!isUndefined(z._offset)){b._offset=z._offset}if(!isUndefined(z._pf)){b._pf=getParsingFlags(z)}if(!isUndefined(z._locale)){b._locale=z._locale}if(c>0){for(p=0;p<c;p++){o=O[p];e=z[o];if(!isUndefined(e)){b[o]=e}}}return b}function Moment(b){copyConfig(this,b);this._d=new Date(b._d!=null?b._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(o===false){o=true;hooks.updateOffset(this);o=false}}function isMoment(b){return b instanceof Moment||b!=null&&b._isAMomentObject!=null}function warn(b){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+b)}}function deprecate(b,z){var p=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,b)}if(p){var O=[],o,e,c,t=arguments.length;for(e=0;e<t;e++){o="";if(typeof arguments[e]==="object"){o+="\n["+e+"] ";for(c in arguments[0]){if(hasOwnProp(arguments[0],c)){o+=c+": "+arguments[0][c]+", "}}o=o.slice(0,-2)}else{o=arguments[e]}O.push(o)}warn(b+"\nArguments: "+Array.prototype.slice.call(O).join("")+"\n"+(new Error).stack);p=false}return z.apply(this,arguments)}),z)}var e={};function deprecateSimple(b,z){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(b,z)}if(!e[b]){warn(z);e[b]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(b){return typeof Function!=="undefined"&&b instanceof Function||Object.prototype.toString.call(b)==="[object Function]"}function set(b){var z,p;for(p in b){if(hasOwnProp(b,p)){z=b[p];if(isFunction(z)){this[p]=z}else{this["_"+p]=z}}}this._config=b;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(b,z){var p=extend({},b),O;for(O in z){if(hasOwnProp(z,O)){if(isObject(b[O])&&isObject(z[O])){p[O]={};extend(p[O],b[O]);extend(p[O],z[O])}else if(z[O]!=null){p[O]=z[O]}else{delete p[O]}}}for(O in b){if(hasOwnProp(b,O)&&!hasOwnProp(z,O)&&isObject(b[O])){p[O]=extend({},p[O])}}return p}function Locale(b){if(b!=null){this.set(b)}}var c;if(Object.keys){c=Object.keys}else{c=function(b){var z,p=[];for(z in b){if(hasOwnProp(b,z)){p.push(z)}}return p}}var t={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(b,z,p){var O=this._calendar[b]||this._calendar["sameElse"];return isFunction(O)?O.call(z,p):O}function zeroFill(b,z,p){var O=""+Math.abs(b),o=z-O.length,e=b>=0;return(e?p?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+O}var i=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,n=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,s={},a={};function addFormatToken(b,z,p,O){var o=O;if(typeof O==="string"){o=function(){return this[O]()}}if(b){a[b]=o}if(z){a[z[0]]=function(){return zeroFill(o.apply(this,arguments),z[1],z[2])}}if(p){a[p]=function(){return this.localeData().ordinal(o.apply(this,arguments),b)}}}function removeFormattingTokens(b){if(b.match(/\[[\s\S]/)){return b.replace(/^\[|\]$/g,"")}return b.replace(/\\/g,"")}function makeFormatFunction(b){var z=b.match(i),p,O;for(p=0,O=z.length;p<O;p++){if(a[z[p]]){z[p]=a[z[p]]}else{z[p]=removeFormattingTokens(z[p])}}return function(p){var o="",e;for(e=0;e<O;e++){o+=isFunction(z[e])?z[e].call(p,b):z[e]}return o}}function formatMoment(b,z){if(!b.isValid()){return b.localeData().invalidDate()}z=expandFormat(z,b.localeData());s[z]=s[z]||makeFormatFunction(z);return s[z](b)}function expandFormat(b,z){var p=5;function replaceLongDateFormatTokens(b){return z.longDateFormat(b)||b}n.lastIndex=0;while(p>=0&&n.test(b)){b=b.replace(n,replaceLongDateFormatTokens);n.lastIndex=0;p-=1}return b}var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(b){var z=this._longDateFormat[b],p=this._longDateFormat[b.toUpperCase()];if(z||!p){return z}this._longDateFormat[b]=p.match(i).map((function(b){if(b==="MMMM"||b==="MM"||b==="DD"||b==="dddd"){return b.slice(1)}return b})).join("");return this._longDateFormat[b]}var q="Invalid date";function invalidDate(){return this._invalidDate}var d="%d",W=/\d{1,2}/;function ordinal(b){return this._ordinal.replace("%d",b)}var f={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(b,z,p,O){var o=this._relativeTime[p];return isFunction(o)?o(b,z,p,O):o.replace(/%d/i,b)}function pastFuture(b,z){var p=this._relativeTime[b>0?"future":"past"];return isFunction(p)?p(z):p.replace(/%s/i,z)}var R={};function addUnitAlias(b,z){var p=b.toLowerCase();R[p]=R[p+"s"]=R[z]=b}function normalizeUnits(b){return typeof b==="string"?R[b]||R[b.toLowerCase()]:undefined}function normalizeObjectUnits(b){var z={},p,O;for(O in b){if(hasOwnProp(b,O)){p=normalizeUnits(O);if(p){z[p]=b[O]}}}return z}var u={};function addUnitPriority(b,z){u[b]=z}function getPrioritizedUnits(b){var z=[],p;for(p in b){if(hasOwnProp(b,p)){z.push({unit:p,priority:u[p]})}}z.sort((function(b,z){return b.priority-z.priority}));return z}function isLeapYear(b){return b%4===0&&b%100!==0||b%400===0}function absFloor(b){if(b<0){return Math.ceil(b)||0}else{return Math.floor(b)}}function toInt(b){var z=+b,p=0;if(z!==0&&isFinite(z)){p=absFloor(z)}return p}function makeGetSet(b,z){return function(p){if(p!=null){set$1(this,b,p);hooks.updateOffset(this,z);return this}else{return get(this,b)}}}function get(b,z){return b.isValid()?b._d["get"+(b._isUTC?"UTC":"")+z]():NaN}function set$1(b,z,p){if(b.isValid()&&!isNaN(p)){if(z==="FullYear"&&isLeapYear(b.year())&&b.month()===1&&b.date()===29){p=toInt(p);b._d["set"+(b._isUTC?"UTC":"")+z](p,b.month(),daysInMonth(p,b.month()))}else{b._d["set"+(b._isUTC?"UTC":"")+z](p)}}}function stringGet(b){b=normalizeUnits(b);if(isFunction(this[b])){return this[b]()}return this}function stringSet(b,z){if(typeof b==="object"){b=normalizeObjectUnits(b);var p=getPrioritizedUnits(b),O,o=p.length;for(O=0;O<o;O++){this[p[O].unit](b[p[O].unit])}}else{b=normalizeUnits(b);if(isFunction(this[b])){return this[b](z)}}return this}var l=/\d/,_=/\d\d/,h=/\d{3}/,N=/\d{4}/,E=/[+-]?\d{6}/,L=/\d\d?/,T=/\d\d\d\d?/,B=/\d\d\d\d\d\d?/,m=/\d{1,3}/,g=/\d{1,4}/,I=/[+-]?\d{1,6}/,C=/\d+/,X=/[+-]?\d+/,D=/Z|[+-]\d\d:?\d\d/gi,P=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[+-]?\d+(\.\d{1,3})?/,U=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,k;k={};function addRegexToken(b,z,p){k[b]=isFunction(z)?z:function(b,O){return b&&p?p:z}}function getParseRegexForToken(b,z){if(!hasOwnProp(k,b)){return new RegExp(unescapeFormat(b))}return k[b](z._strict,z._locale)}function unescapeFormat(b){return regexEscape(b.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(b,z,p,O,o){return z||p||O||o})))}function regexEscape(b){return b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var y={};function addParseToken(b,z){var p,O=z,o;if(typeof b==="string"){b=[b]}if(isNumber(z)){O=function(b,p){p[z]=toInt(b)}}o=b.length;for(p=0;p<o;p++){y[b[p]]=O}}function addWeekParseToken(b,z){addParseToken(b,(function(b,p,O,o){O._w=O._w||{};z(b,O._w,O,o)}))}function addTimeToArrayFromToken(b,z,p){if(z!=null&&hasOwnProp(y,b)){y[b](z,p._a,p,b)}}var v=0,F=1,G=2,x=3,H=4,V=5,Y=6,K=7,j=8;function mod(b,z){return(b%z+z)%z}var Q;if(Array.prototype.indexOf){Q=Array.prototype.indexOf}else{Q=function(b){var z;for(z=0;z<this.length;++z){if(this[z]===b){return z}}return-1}}function daysInMonth(b,z){if(isNaN(b)||isNaN(z)){return NaN}var p=mod(z,12);b+=(z-p)/12;return p===1?isLeapYear(b)?29:28:31-p%7%2}addFormatToken("M",["MM",2],"Mo",(function(){return this.month()+1}));addFormatToken("MMM",0,0,(function(b){return this.localeData().monthsShort(this,b)}));addFormatToken("MMMM",0,0,(function(b){return this.localeData().months(this,b)}));addUnitAlias("month","M");addUnitPriority("month",8);addRegexToken("M",L);addRegexToken("MM",L,_);addRegexToken("MMM",(function(b,z){return z.monthsShortRegex(b)}));addRegexToken("MMMM",(function(b,z){return z.monthsRegex(b)}));addParseToken(["M","MM"],(function(b,z){z[F]=toInt(b)-1}));addParseToken(["MMM","MMMM"],(function(b,z,p,O){var o=p._locale.monthsParse(b,O,p._strict);if(o!=null){z[F]=o}else{getParsingFlags(p).invalidMonth=b}}));var J="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MM=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,bM=U,zM=U;function localeMonths(b,z){if(!b){return isArray(this._months)?this._months:this._months["standalone"]}return isArray(this._months)?this._months[b.month()]:this._months[(this._months.isFormat||MM).test(z)?"format":"standalone"][b.month()]}function localeMonthsShort(b,z){if(!b){return isArray(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}return isArray(this._monthsShort)?this._monthsShort[b.month()]:this._monthsShort[MM.test(z)?"format":"standalone"][b.month()]}function handleStrictParse(b,z,p){var O,o,e,c=b.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(O=0;O<12;++O){e=createUTC([2e3,O]);this._shortMonthsParse[O]=this.monthsShort(e,"").toLocaleLowerCase();this._longMonthsParse[O]=this.months(e,"").toLocaleLowerCase()}}if(p){if(z==="MMM"){o=Q.call(this._shortMonthsParse,c);return o!==-1?o:null}else{o=Q.call(this._longMonthsParse,c);return o!==-1?o:null}}else{if(z==="MMM"){o=Q.call(this._shortMonthsParse,c);if(o!==-1){return o}o=Q.call(this._longMonthsParse,c);return o!==-1?o:null}else{o=Q.call(this._longMonthsParse,c);if(o!==-1){return o}o=Q.call(this._shortMonthsParse,c);return o!==-1?o:null}}}function localeMonthsParse(b,z,p){var O,o,e;if(this._monthsParseExact){return handleStrictParse.call(this,b,z,p)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(O=0;O<12;O++){o=createUTC([2e3,O]);if(p&&!this._longMonthsParse[O]){this._longMonthsParse[O]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i");this._shortMonthsParse[O]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")}if(!p&&!this._monthsParse[O]){e="^"+this.months(o,"")+"|^"+this.monthsShort(o,"");this._monthsParse[O]=new RegExp(e.replace(".",""),"i")}if(p&&z==="MMMM"&&this._longMonthsParse[O].test(b)){return O}else if(p&&z==="MMM"&&this._shortMonthsParse[O].test(b)){return O}else if(!p&&this._monthsParse[O].test(b)){return O}}}function setMonth(b,z){var p;if(!b.isValid()){return b}if(typeof z==="string"){if(/^\d+$/.test(z)){z=toInt(z)}else{z=b.localeData().monthsParse(z);if(!isNumber(z)){return b}}}p=Math.min(b.date(),daysInMonth(b.year(),z));b._d["set"+(b._isUTC?"UTC":"")+"Month"](z,p);return b}function getSetMonth(b){if(b!=null){setMonth(this,b);hooks.updateOffset(this,true);return this}else{return get(this,"Month")}}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(b){if(this._monthsParseExact){if(!hasOwnProp(this,"_monthsRegex")){computeMonthsParse.call(this)}if(b){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!hasOwnProp(this,"_monthsShortRegex")){this._monthsShortRegex=bM}return this._monthsShortStrictRegex&&b?this._monthsShortStrictRegex:this._monthsShortRegex}}function monthsRegex(b){if(this._monthsParseExact){if(!hasOwnProp(this,"_monthsRegex")){computeMonthsParse.call(this)}if(b){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!hasOwnProp(this,"_monthsRegex")){this._monthsRegex=zM}return this._monthsStrictRegex&&b?this._monthsStrictRegex:this._monthsRegex}}function computeMonthsParse(){function cmpLenRev(b,z){return z.length-b.length}var b=[],z=[],p=[],O,o;for(O=0;O<12;O++){o=createUTC([2e3,O]);b.push(this.monthsShort(o,""));z.push(this.months(o,""));p.push(this.months(o,""));p.push(this.monthsShort(o,""))}b.sort(cmpLenRev);z.sort(cmpLenRev);p.sort(cmpLenRev);for(O=0;O<12;O++){b[O]=regexEscape(b[O]);z[O]=regexEscape(z[O])}for(O=0;O<24;O++){p[O]=regexEscape(p[O])}this._monthsRegex=new RegExp("^("+p.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+z.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+b.join("|")+")","i")}addFormatToken("Y",0,0,(function(){var b=this.year();return b<=9999?zeroFill(b,4):"+"+b}));addFormatToken(0,["YY",2],0,(function(){return this.year()%100}));addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,true],0,"year");addUnitAlias("year","y");addUnitPriority("year",1);addRegexToken("Y",X);addRegexToken("YY",L,_);addRegexToken("YYYY",g,N);addRegexToken("YYYYY",I,E);addRegexToken("YYYYYY",I,E);addParseToken(["YYYYY","YYYYYY"],v);addParseToken("YYYY",(function(b,z){z[v]=b.length===2?hooks.parseTwoDigitYear(b):toInt(b)}));addParseToken("YY",(function(b,z){z[v]=hooks.parseTwoDigitYear(b)}));addParseToken("Y",(function(b,z){z[v]=parseInt(b,10)}));function daysInYear(b){return isLeapYear(b)?366:365}hooks.parseTwoDigitYear=function(b){return toInt(b)+(toInt(b)>68?1900:2e3)};var pM=makeGetSet("FullYear",true);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(b,z,p,O,o,e,c){var t;if(b<100&&b>=0){t=new Date(b+400,z,p,O,o,e,c);if(isFinite(t.getFullYear())){t.setFullYear(b)}}else{t=new Date(b,z,p,O,o,e,c)}return t}function createUTCDate(b){var z,p;if(b<100&&b>=0){p=Array.prototype.slice.call(arguments);p[0]=b+400;z=new Date(Date.UTC.apply(null,p));if(isFinite(z.getUTCFullYear())){z.setUTCFullYear(b)}}else{z=new Date(Date.UTC.apply(null,arguments))}return z}function firstWeekOffset(b,z,p){var O=7+z-p,o=(7+createUTCDate(b,0,O).getUTCDay()-z)%7;return-o+O-1}function dayOfYearFromWeeks(b,z,p,O,o){var e=(7+p-O)%7,c=firstWeekOffset(b,O,o),t=1+7*(z-1)+e+c,i,n;if(t<=0){i=b-1;n=daysInYear(i)+t}else if(t>daysInYear(b)){i=b+1;n=t-daysInYear(b)}else{i=b;n=t}return{year:i,dayOfYear:n}}function weekOfYear(b,z,p){var O=firstWeekOffset(b.year(),z,p),o=Math.floor((b.dayOfYear()-O-1)/7)+1,e,c;if(o<1){c=b.year()-1;e=o+weeksInYear(c,z,p)}else if(o>weeksInYear(b.year(),z,p)){e=o-weeksInYear(b.year(),z,p);c=b.year()+1}else{c=b.year();e=o}return{week:e,year:c}}function weeksInYear(b,z,p){var O=firstWeekOffset(b,z,p),o=firstWeekOffset(b+1,z,p);return(daysInYear(b)-O+o)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",L);addRegexToken("ww",L,_);addRegexToken("W",L);addRegexToken("WW",L,_);addWeekParseToken(["w","ww","W","WW"],(function(b,z,p,O){z[O.substr(0,1)]=toInt(b)}));function localeWeek(b){return weekOfYear(b,this._week.dow,this._week.doy).week}var OM={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(b){var z=this.localeData().week(this);return b==null?z:this.add((b-z)*7,"d")}function getSetISOWeek(b){var z=weekOfYear(this,1,4).week;return b==null?z:this.add((b-z)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,(function(b){return this.localeData().weekdaysMin(this,b)}));addFormatToken("ddd",0,0,(function(b){return this.localeData().weekdaysShort(this,b)}));addFormatToken("dddd",0,0,(function(b){return this.localeData().weekdays(this,b)}));addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",L);addRegexToken("e",L);addRegexToken("E",L);addRegexToken("dd",(function(b,z){return z.weekdaysMinRegex(b)}));addRegexToken("ddd",(function(b,z){return z.weekdaysShortRegex(b)}));addRegexToken("dddd",(function(b,z){return z.weekdaysRegex(b)}));addWeekParseToken(["dd","ddd","dddd"],(function(b,z,p,O){var o=p._locale.weekdaysParse(b,O,p._strict);if(o!=null){z.d=o}else{getParsingFlags(p).invalidWeekday=b}}));addWeekParseToken(["d","e","E"],(function(b,z,p,O){z[O]=toInt(b)}));function parseWeekday(b,z){if(typeof b!=="string"){return b}if(!isNaN(b)){return parseInt(b,10)}b=z.weekdaysParse(b);if(typeof b==="number"){return b}return null}function parseIsoWeekday(b,z){if(typeof b==="string"){return z.weekdaysParse(b)%7||7}return isNaN(b)?null:b}function shiftWeekdays(b,z){return b.slice(z,7).concat(b.slice(0,z))}var oM="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),eM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cM="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tM=U,AM=U,iM=U;function localeWeekdays(b,z){var p=isArray(this._weekdays)?this._weekdays:this._weekdays[b&&b!==true&&this._weekdays.isFormat.test(z)?"format":"standalone"];return b===true?shiftWeekdays(p,this._week.dow):b?p[b.day()]:p}function localeWeekdaysShort(b){return b===true?shiftWeekdays(this._weekdaysShort,this._week.dow):b?this._weekdaysShort[b.day()]:this._weekdaysShort}function localeWeekdaysMin(b){return b===true?shiftWeekdays(this._weekdaysMin,this._week.dow):b?this._weekdaysMin[b.day()]:this._weekdaysMin}function handleStrictParse$1(b,z,p){var O,o,e,c=b.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(O=0;O<7;++O){e=createUTC([2e3,1]).day(O);this._minWeekdaysParse[O]=this.weekdaysMin(e,"").toLocaleLowerCase();this._shortWeekdaysParse[O]=this.weekdaysShort(e,"").toLocaleLowerCase();this._weekdaysParse[O]=this.weekdays(e,"").toLocaleLowerCase()}}if(p){if(z==="dddd"){o=Q.call(this._weekdaysParse,c);return o!==-1?o:null}else if(z==="ddd"){o=Q.call(this._shortWeekdaysParse,c);return o!==-1?o:null}else{o=Q.call(this._minWeekdaysParse,c);return o!==-1?o:null}}else{if(z==="dddd"){o=Q.call(this._weekdaysParse,c);if(o!==-1){return o}o=Q.call(this._shortWeekdaysParse,c);if(o!==-1){return o}o=Q.call(this._minWeekdaysParse,c);return o!==-1?o:null}else if(z==="ddd"){o=Q.call(this._shortWeekdaysParse,c);if(o!==-1){return o}o=Q.call(this._weekdaysParse,c);if(o!==-1){return o}o=Q.call(this._minWeekdaysParse,c);return o!==-1?o:null}else{o=Q.call(this._minWeekdaysParse,c);if(o!==-1){return o}o=Q.call(this._weekdaysParse,c);if(o!==-1){return o}o=Q.call(this._shortWeekdaysParse,c);return o!==-1?o:null}}}function localeWeekdaysParse(b,z,p){var O,o,e;if(this._weekdaysParseExact){return handleStrictParse$1.call(this,b,z,p)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(O=0;O<7;O++){o=createUTC([2e3,1]).day(O);if(p&&!this._fullWeekdaysParse[O]){this._fullWeekdaysParse[O]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[O]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[O]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[O]){e="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,"");this._weekdaysParse[O]=new RegExp(e.replace(".",""),"i")}if(p&&z==="dddd"&&this._fullWeekdaysParse[O].test(b)){return O}else if(p&&z==="ddd"&&this._shortWeekdaysParse[O].test(b)){return O}else if(p&&z==="dd"&&this._minWeekdaysParse[O].test(b)){return O}else if(!p&&this._weekdaysParse[O].test(b)){return O}}}function getSetDayOfWeek(b){if(!this.isValid()){return b!=null?this:NaN}var z=this._isUTC?this._d.getUTCDay():this._d.getDay();if(b!=null){b=parseWeekday(b,this.localeData());return this.add(b-z,"d")}else{return z}}function getSetLocaleDayOfWeek(b){if(!this.isValid()){return b!=null?this:NaN}var z=(this.day()+7-this.localeData()._week.dow)%7;return b==null?z:this.add(b-z,"d")}function getSetISODayOfWeek(b){if(!this.isValid()){return b!=null?this:NaN}if(b!=null){var z=parseIsoWeekday(b,this.localeData());return this.day(this.day()%7?z:z-7)}else{return this.day()||7}}function weekdaysRegex(b){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(b){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!hasOwnProp(this,"_weekdaysRegex")){this._weekdaysRegex=tM}return this._weekdaysStrictRegex&&b?this._weekdaysStrictRegex:this._weekdaysRegex}}function weekdaysShortRegex(b){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(b){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!hasOwnProp(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=AM}return this._weekdaysShortStrictRegex&&b?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function weekdaysMinRegex(b){if(this._weekdaysParseExact){if(!hasOwnProp(this,"_weekdaysRegex")){computeWeekdaysParse.call(this)}if(b){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!hasOwnProp(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=iM}return this._weekdaysMinStrictRegex&&b?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function computeWeekdaysParse(){function cmpLenRev(b,z){return z.length-b.length}var b=[],z=[],p=[],O=[],o,e,c,t,i;for(o=0;o<7;o++){e=createUTC([2e3,1]).day(o);c=regexEscape(this.weekdaysMin(e,""));t=regexEscape(this.weekdaysShort(e,""));i=regexEscape(this.weekdays(e,""));b.push(c);z.push(t);p.push(i);O.push(c);O.push(t);O.push(i)}b.sort(cmpLenRev);z.sort(cmpLenRev);p.sort(cmpLenRev);O.sort(cmpLenRev);this._weekdaysRegex=new RegExp("^("+O.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+p.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+z.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+b.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}));addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}));addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)}));addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}));function meridiem(b,z){addFormatToken(b,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),z)}))}meridiem("a",true);meridiem("A",false);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(b,z){return z._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",L);addRegexToken("h",L);addRegexToken("k",L);addRegexToken("HH",L,_);addRegexToken("hh",L,_);addRegexToken("kk",L,_);addRegexToken("hmm",T);addRegexToken("hmmss",B);addRegexToken("Hmm",T);addRegexToken("Hmmss",B);addParseToken(["H","HH"],x);addParseToken(["k","kk"],(function(b,z,p){var O=toInt(b);z[x]=O===24?0:O}));addParseToken(["a","A"],(function(b,z,p){p._isPm=p._locale.isPM(b);p._meridiem=b}));addParseToken(["h","hh"],(function(b,z,p){z[x]=toInt(b);getParsingFlags(p).bigHour=true}));addParseToken("hmm",(function(b,z,p){var O=b.length-2;z[x]=toInt(b.substr(0,O));z[H]=toInt(b.substr(O));getParsingFlags(p).bigHour=true}));addParseToken("hmmss",(function(b,z,p){var O=b.length-4,o=b.length-2;z[x]=toInt(b.substr(0,O));z[H]=toInt(b.substr(O,2));z[V]=toInt(b.substr(o));getParsingFlags(p).bigHour=true}));addParseToken("Hmm",(function(b,z,p){var O=b.length-2;z[x]=toInt(b.substr(0,O));z[H]=toInt(b.substr(O))}));addParseToken("Hmmss",(function(b,z,p){var O=b.length-4,o=b.length-2;z[x]=toInt(b.substr(0,O));z[H]=toInt(b.substr(O,2));z[V]=toInt(b.substr(o))}));function localeIsPM(b){return(b+"").toLowerCase().charAt(0)==="p"}var nM=/[ap]\.?m?\.?/i,sM=makeGetSet("Hours",true);function localeMeridiem(b,z,p){if(b>11){return p?"pm":"PM"}else{return p?"am":"AM"}}var aM={calendar:t,longDateFormat:r,invalidDate:q,ordinal:d,dayOfMonthOrdinalParse:W,relativeTime:f,months:J,monthsShort:$,week:OM,weekdays:oM,weekdaysMin:cM,weekdaysShort:eM,meridiemParse:nM};var rM={},qM={},dM;function commonPrefix(b,z){var p,O=Math.min(b.length,z.length);for(p=0;p<O;p+=1){if(b[p]!==z[p]){return p}}return O}function normalizeLocale(b){return b?b.toLowerCase().replace("_","-"):b}function chooseLocale(b){var z=0,p,O,o,e;while(z<b.length){e=normalizeLocale(b[z]).split("-");p=e.length;O=normalizeLocale(b[z+1]);O=O?O.split("-"):null;while(p>0){o=loadLocale(e.slice(0,p).join("-"));if(o){return o}if(O&&O.length>=p&&commonPrefix(e,O)>=p-1){break}p--}z++}return dM}function isLocaleNameSane(b){return b.match("^[^/\\\\]*$")!=null}function loadLocale(z){var p=null,O;if(rM[z]===undefined&&"object"!=="undefined"&&b&&b.exports&&isLocaleNameSane(z)){try{p=dM._abbr;O=require;O("./locale/"+z);getSetGlobalLocale(p)}catch(b){rM[z]=null}}return rM[z]}function getSetGlobalLocale(b,z){var p;if(b){if(isUndefined(z)){p=getLocale(b)}else{p=defineLocale(b,z)}if(p){dM=p}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+b+" not found. Did you forget to load it?")}}}return dM._abbr}function defineLocale(b,z){if(z!==null){var p,O=aM;z.abbr=b;if(rM[b]!=null){deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");O=rM[b]._config}else if(z.parentLocale!=null){if(rM[z.parentLocale]!=null){O=rM[z.parentLocale]._config}else{p=loadLocale(z.parentLocale);if(p!=null){O=p._config}else{if(!qM[z.parentLocale]){qM[z.parentLocale]=[]}qM[z.parentLocale].push({name:b,config:z});return null}}}rM[b]=new Locale(mergeConfigs(O,z));if(qM[b]){qM[b].forEach((function(b){defineLocale(b.name,b.config)}))}getSetGlobalLocale(b);return rM[b]}else{delete rM[b];return null}}function updateLocale(b,z){if(z!=null){var p,O,o=aM;if(rM[b]!=null&&rM[b].parentLocale!=null){rM[b].set(mergeConfigs(rM[b]._config,z))}else{O=loadLocale(b);if(O!=null){o=O._config}z=mergeConfigs(o,z);if(O==null){z.abbr=b}p=new Locale(z);p.parentLocale=rM[b];rM[b]=p}getSetGlobalLocale(b)}else{if(rM[b]!=null){if(rM[b].parentLocale!=null){rM[b]=rM[b].parentLocale;if(b===getSetGlobalLocale()){getSetGlobalLocale(b)}}else if(rM[b]!=null){delete rM[b]}}}return rM[b]}function getLocale(b){var z;if(b&&b._locale&&b._locale._abbr){b=b._locale._abbr}if(!b){return dM}if(!isArray(b)){z=loadLocale(b);if(z){return z}b=[b]}return chooseLocale(b)}function listLocales(){return c(rM)}function checkOverflow(b){var z,p=b._a;if(p&&getParsingFlags(b).overflow===-2){z=p[F]<0||p[F]>11?F:p[G]<1||p[G]>daysInMonth(p[v],p[F])?G:p[x]<0||p[x]>24||p[x]===24&&(p[H]!==0||p[V]!==0||p[Y]!==0)?x:p[H]<0||p[H]>59?H:p[V]<0||p[V]>59?V:p[Y]<0||p[Y]>999?Y:-1;if(getParsingFlags(b)._overflowDayOfYear&&(z<v||z>G)){z=G}if(getParsingFlags(b)._overflowWeeks&&z===-1){z=K}if(getParsingFlags(b)._overflowWeekday&&z===-1){z=j}getParsingFlags(b).overflow=z}return b}var WM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,RM=/Z|[+-]\d\d(?::?\d\d)?/,uM=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],lM=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_M=/^\/?Date\((-?\d+)/i,hM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,NM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(b){var z,p,O=b._i,o=WM.exec(O)||fM.exec(O),e,c,t,i,n=uM.length,s=lM.length;if(o){getParsingFlags(b).iso=true;for(z=0,p=n;z<p;z++){if(uM[z][1].exec(o[1])){c=uM[z][0];e=uM[z][2]!==false;break}}if(c==null){b._isValid=false;return}if(o[3]){for(z=0,p=s;z<p;z++){if(lM[z][1].exec(o[3])){t=(o[2]||" ")+lM[z][0];break}}if(t==null){b._isValid=false;return}}if(!e&&t!=null){b._isValid=false;return}if(o[4]){if(RM.exec(o[4])){i="Z"}else{b._isValid=false;return}}b._f=c+(t||"")+(i||"");configFromStringAndFormat(b)}else{b._isValid=false}}function extractFromRFC2822Strings(b,z,p,O,o,e){var c=[untruncateYear(b),$.indexOf(z),parseInt(p,10),parseInt(O,10),parseInt(o,10)];if(e){c.push(parseInt(e,10))}return c}function untruncateYear(b){var z=parseInt(b,10);if(z<=49){return 2e3+z}else if(z<=999){return 1900+z}return z}function preprocessRFC2822(b){return b.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(b,z,p){if(b){var O=eM.indexOf(b),o=new Date(z[0],z[1],z[2]).getDay();if(O!==o){getParsingFlags(p).weekdayMismatch=true;p._isValid=false;return false}}return true}function calculateOffset(b,z,p){if(b){return NM[b]}else if(z){return 0}else{var O=parseInt(p,10),o=O%100,e=(O-o)/100;return e*60+o}}function configFromRFC2822(b){var z=hM.exec(preprocessRFC2822(b._i)),p;if(z){p=extractFromRFC2822Strings(z[4],z[3],z[2],z[5],z[6],z[7]);if(!checkWeekday(z[1],p,b)){return}b._a=p;b._tzm=calculateOffset(z[8],z[9],z[10]);b._d=createUTCDate.apply(null,b._a);b._d.setUTCMinutes(b._d.getUTCMinutes()-b._tzm);getParsingFlags(b).rfc2822=true}else{b._isValid=false}}function configFromString(b){var z=_M.exec(b._i);if(z!==null){b._d=new Date(+z[1]);return}configFromISO(b);if(b._isValid===false){delete b._isValid}else{return}configFromRFC2822(b);if(b._isValid===false){delete b._isValid}else{return}if(b._strict){b._isValid=false}else{hooks.createFromInputFallback(b)}}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are "+"discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(b){b._d=new Date(b._i+(b._useUTC?" UTC":""))}));function defaults(b,z,p){if(b!=null){return b}if(z!=null){return z}return p}function currentDateArray(b){var z=new Date(hooks.now());if(b._useUTC){return[z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate()]}return[z.getFullYear(),z.getMonth(),z.getDate()]}function configFromArray(b){var z,p,O=[],o,e,c;if(b._d){return}o=currentDateArray(b);if(b._w&&b._a[G]==null&&b._a[F]==null){dayOfYearFromWeekInfo(b)}if(b._dayOfYear!=null){c=defaults(b._a[v],o[v]);if(b._dayOfYear>daysInYear(c)||b._dayOfYear===0){getParsingFlags(b)._overflowDayOfYear=true}p=createUTCDate(c,0,b._dayOfYear);b._a[F]=p.getUTCMonth();b._a[G]=p.getUTCDate()}for(z=0;z<3&&b._a[z]==null;++z){b._a[z]=O[z]=o[z]}for(;z<7;z++){b._a[z]=O[z]=b._a[z]==null?z===2?1:0:b._a[z]}if(b._a[x]===24&&b._a[H]===0&&b._a[V]===0&&b._a[Y]===0){b._nextDay=true;b._a[x]=0}b._d=(b._useUTC?createUTCDate:createDate).apply(null,O);e=b._useUTC?b._d.getUTCDay():b._d.getDay();if(b._tzm!=null){b._d.setUTCMinutes(b._d.getUTCMinutes()-b._tzm)}if(b._nextDay){b._a[x]=24}if(b._w&&typeof b._w.d!=="undefined"&&b._w.d!==e){getParsingFlags(b).weekdayMismatch=true}}function dayOfYearFromWeekInfo(b){var z,p,O,o,e,c,t,i,n;z=b._w;if(z.GG!=null||z.W!=null||z.E!=null){e=1;c=4;p=defaults(z.GG,b._a[v],weekOfYear(createLocal(),1,4).year);O=defaults(z.W,1);o=defaults(z.E,1);if(o<1||o>7){i=true}}else{e=b._locale._week.dow;c=b._locale._week.doy;n=weekOfYear(createLocal(),e,c);p=defaults(z.gg,b._a[v],n.year);O=defaults(z.w,n.week);if(z.d!=null){o=z.d;if(o<0||o>6){i=true}}else if(z.e!=null){o=z.e+e;if(z.e<0||z.e>6){i=true}}else{o=e}}if(O<1||O>weeksInYear(p,e,c)){getParsingFlags(b)._overflowWeeks=true}else if(i!=null){getParsingFlags(b)._overflowWeekday=true}else{t=dayOfYearFromWeeks(p,O,o,e,c);b._a[v]=t.year;b._dayOfYear=t.dayOfYear}}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(b){if(b._f===hooks.ISO_8601){configFromISO(b);return}if(b._f===hooks.RFC_2822){configFromRFC2822(b);return}b._a=[];getParsingFlags(b).empty=true;var z=""+b._i,p,O,o,e,c,t=z.length,n=0,s,r;o=expandFormat(b._f,b._locale).match(i)||[];r=o.length;for(p=0;p<r;p++){e=o[p];O=(z.match(getParseRegexForToken(e,b))||[])[0];if(O){c=z.substr(0,z.indexOf(O));if(c.length>0){getParsingFlags(b).unusedInput.push(c)}z=z.slice(z.indexOf(O)+O.length);n+=O.length}if(a[e]){if(O){getParsingFlags(b).empty=false}else{getParsingFlags(b).unusedTokens.push(e)}addTimeToArrayFromToken(e,O,b)}else if(b._strict&&!O){getParsingFlags(b).unusedTokens.push(e)}}getParsingFlags(b).charsLeftOver=t-n;if(z.length>0){getParsingFlags(b).unusedInput.push(z)}if(b._a[x]<=12&&getParsingFlags(b).bigHour===true&&b._a[x]>0){getParsingFlags(b).bigHour=undefined}getParsingFlags(b).parsedDateParts=b._a.slice(0);getParsingFlags(b).meridiem=b._meridiem;b._a[x]=meridiemFixWrap(b._locale,b._a[x],b._meridiem);s=getParsingFlags(b).era;if(s!==null){b._a[v]=b._locale.erasConvertYear(s,b._a[v])}configFromArray(b);checkOverflow(b)}function meridiemFixWrap(b,z,p){var O;if(p==null){return z}if(b.meridiemHour!=null){return b.meridiemHour(z,p)}else if(b.isPM!=null){O=b.isPM(p);if(O&&z<12){z+=12}if(!O&&z===12){z=0}return z}else{return z}}function configFromStringAndArray(b){var z,p,O,o,e,c,t=false,i=b._f.length;if(i===0){getParsingFlags(b).invalidFormat=true;b._d=new Date(NaN);return}for(o=0;o<i;o++){e=0;c=false;z=copyConfig({},b);if(b._useUTC!=null){z._useUTC=b._useUTC}z._f=b._f[o];configFromStringAndFormat(z);if(isValid(z)){c=true}e+=getParsingFlags(z).charsLeftOver;e+=getParsingFlags(z).unusedTokens.length*10;getParsingFlags(z).score=e;if(!t){if(O==null||e<O||c){O=e;p=z;if(c){t=true}}}else{if(e<O){O=e;p=z}}}extend(b,p||z)}function configFromObject(b){if(b._d){return}var z=normalizeObjectUnits(b._i),p=z.day===undefined?z.date:z.day;b._a=map([z.year,z.month,p,z.hour,z.minute,z.second,z.millisecond],(function(b){return b&&parseInt(b,10)}));configFromArray(b)}function createFromConfig(b){var z=new Moment(checkOverflow(prepareConfig(b)));if(z._nextDay){z.add(1,"d");z._nextDay=undefined}return z}function prepareConfig(b){var z=b._i,p=b._f;b._locale=b._locale||getLocale(b._l);if(z===null||p===undefined&&z===""){return createInvalid({nullInput:true})}if(typeof z==="string"){b._i=z=b._locale.preparse(z)}if(isMoment(z)){return new Moment(checkOverflow(z))}else if(isDate(z)){b._d=z}else if(isArray(p)){configFromStringAndArray(b)}else if(p){configFromStringAndFormat(b)}else{configFromInput(b)}if(!isValid(b)){b._d=null}return b}function configFromInput(b){var z=b._i;if(isUndefined(z)){b._d=new Date(hooks.now())}else if(isDate(z)){b._d=new Date(z.valueOf())}else if(typeof z==="string"){configFromString(b)}else if(isArray(z)){b._a=map(z.slice(0),(function(b){return parseInt(b,10)}));configFromArray(b)}else if(isObject(z)){configFromObject(b)}else if(isNumber(z)){b._d=new Date(z)}else{hooks.createFromInputFallback(b)}}function createLocalOrUTC(b,z,p,O,o){var e={};if(z===true||z===false){O=z;z=undefined}if(p===true||p===false){O=p;p=undefined}if(isObject(b)&&isObjectEmpty(b)||isArray(b)&&b.length===0){b=undefined}e._isAMomentObject=true;e._useUTC=e._isUTC=o;e._l=p;e._i=b;e._f=z;e._strict=O;return createFromConfig(e)}function createLocal(b,z,p,O){return createLocalOrUTC(b,z,p,O,false)}var EM=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var b=createLocal.apply(null,arguments);if(this.isValid()&&b.isValid()){return b<this?this:b}else{return createInvalid()}})),LM=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var b=createLocal.apply(null,arguments);if(this.isValid()&&b.isValid()){return b>this?this:b}else{return createInvalid()}}));function pickBy(b,z){var p,O;if(z.length===1&&isArray(z[0])){z=z[0]}if(!z.length){return createLocal()}p=z[0];for(O=1;O<z.length;++O){if(!z[O].isValid()||z[O][b](p)){p=z[O]}}return p}function min(){var b=[].slice.call(arguments,0);return pickBy("isBefore",b)}function max(){var b=[].slice.call(arguments,0);return pickBy("isAfter",b)}var now=function(){return Date.now?Date.now():+new Date};var TM=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(b){var z,p=false,O,o=TM.length;for(z in b){if(hasOwnProp(b,z)&&!(Q.call(TM,z)!==-1&&(b[z]==null||!isNaN(b[z])))){return false}}for(O=0;O<o;++O){if(b[TM[O]]){if(p){return false}if(parseFloat(b[TM[O]])!==toInt(b[TM[O]])){p=true}}}return true}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(b){var z=normalizeObjectUnits(b),p=z.year||0,O=z.quarter||0,o=z.month||0,e=z.week||z.isoWeek||0,c=z.day||0,t=z.hour||0,i=z.minute||0,n=z.second||0,s=z.millisecond||0;this._isValid=isDurationValid(z);this._milliseconds=+s+n*1e3+i*6e4+t*1e3*60*60;this._days=+c+e*7;this._months=+o+O*3+p*12;this._data={};this._locale=getLocale();this._bubble()}function isDuration(b){return b instanceof Duration}function absRound(b){if(b<0){return Math.round(-1*b)*-1}else{return Math.round(b)}}function compareArrays(b,z,p){var O=Math.min(b.length,z.length),o=Math.abs(b.length-z.length),e=0,c;for(c=0;c<O;c++){if(p&&b[c]!==z[c]||!p&&toInt(b[c])!==toInt(z[c])){e++}}return e+o}function offset(b,z){addFormatToken(b,0,0,(function(){var b=this.utcOffset(),p="+";if(b<0){b=-b;p="-"}return p+zeroFill(~~(b/60),2)+z+zeroFill(~~b%60,2)}))}offset("Z",":");offset("ZZ","");addRegexToken("Z",P);addRegexToken("ZZ",P);addParseToken(["Z","ZZ"],(function(b,z,p){p._useUTC=true;p._tzm=offsetFromString(P,b)}));var BM=/([\+\-]|\d\d)/gi;function offsetFromString(b,z){var p=(z||"").match(b),O,o,e;if(p===null){return null}O=p[p.length-1]||[];o=(O+"").match(BM)||["-",0,0];e=+(o[1]*60)+toInt(o[2]);return e===0?0:o[0]==="+"?e:-e}function cloneWithOffset(b,z){var p,O;if(z._isUTC){p=z.clone();O=(isMoment(b)||isDate(b)?b.valueOf():createLocal(b).valueOf())-p.valueOf();p._d.setTime(p._d.valueOf()+O);hooks.updateOffset(p,false);return p}else{return createLocal(b).local()}}function getDateOffset(b){return-Math.round(b._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(b,z,p){var O=this._offset||0,o;if(!this.isValid()){return b!=null?this:NaN}if(b!=null){if(typeof b==="string"){b=offsetFromString(P,b);if(b===null){return this}}else if(Math.abs(b)<16&&!p){b=b*60}if(!this._isUTC&&z){o=getDateOffset(this)}this._offset=b;this._isUTC=true;if(o!=null){this.add(o,"m")}if(O!==b){if(!z||this._changeInProgress){addSubtract(this,createDuration(b-O,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;hooks.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?O:getDateOffset(this)}}function getSetZone(b,z){if(b!=null){if(typeof b!=="string"){b=-b}this.utcOffset(b,z);return this}else{return-this.utcOffset()}}function setOffsetToUTC(b){return this.utcOffset(0,b)}function setOffsetToLocal(b){if(this._isUTC){this.utcOffset(0,b);this._isUTC=false;if(b){this.subtract(getDateOffset(this),"m")}}return this}function setOffsetToParsedOffset(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i==="string"){var b=offsetFromString(D,this._i);if(b!=null){this.utcOffset(b)}else{this.utcOffset(0,true)}}return this}function hasAlignedHourOffset(b){if(!this.isValid()){return false}b=b?createLocal(b).utcOffset():0;return(this.utcOffset()-b)%60===0}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted}var b={},z;copyConfig(b,this);b=prepareConfig(b);if(b._a){z=b._isUTC?createUTC(b._a):createLocal(b._a);this._isDSTShifted=this.isValid()&&compareArrays(b._a,z.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:false}function isUtcOffset(){return this.isValid()?this._isUTC:false}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false}var SM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(b,z){var p=b,O=null,o,e,c;if(isDuration(b)){p={ms:b._milliseconds,d:b._days,M:b._months}}else if(isNumber(b)||!isNaN(+b)){p={};if(z){p[z]=+b}else{p.milliseconds=+b}}else if(O=SM.exec(b)){o=O[1]==="-"?-1:1;p={y:0,d:toInt(O[G])*o,h:toInt(O[x])*o,m:toInt(O[H])*o,s:toInt(O[V])*o,ms:toInt(absRound(O[Y]*1e3))*o}}else if(O=mM.exec(b)){o=O[1]==="-"?-1:1;p={y:parseIso(O[2],o),M:parseIso(O[3],o),w:parseIso(O[4],o),d:parseIso(O[5],o),h:parseIso(O[6],o),m:parseIso(O[7],o),s:parseIso(O[8],o)}}else if(p==null){p={}}else if(typeof p==="object"&&("from"in p||"to"in p)){c=momentsDifference(createLocal(p.from),createLocal(p.to));p={};p.ms=c.milliseconds;p.M=c.months}e=new Duration(p);if(isDuration(b)&&hasOwnProp(b,"_locale")){e._locale=b._locale}if(isDuration(b)&&hasOwnProp(b,"_isValid")){e._isValid=b._isValid}return e}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(b,z){var p=b&&parseFloat(b.replace(",","."));return(isNaN(p)?0:p)*z}function positiveMomentsDifference(b,z){var p={};p.months=z.month()-b.month()+(z.year()-b.year())*12;if(b.clone().add(p.months,"M").isAfter(z)){--p.months}p.milliseconds=+z-+b.clone().add(p.months,"M");return p}function momentsDifference(b,z){var p;if(!(b.isValid()&&z.isValid())){return{milliseconds:0,months:0}}z=cloneWithOffset(z,b);if(b.isBefore(z)){p=positiveMomentsDifference(b,z)}else{p=positiveMomentsDifference(z,b);p.milliseconds=-p.milliseconds;p.months=-p.months}return p}function createAdder(b,z){return function(p,O){var o,e;if(O!==null&&!isNaN(+O)){deprecateSimple(z,"moment()."+z+"(period, number) is deprecated. Please use moment()."+z+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");e=p;p=O;O=e}o=createDuration(p,O);addSubtract(this,o,b);return this}}function addSubtract(b,z,p,O){var o=z._milliseconds,e=absRound(z._days),c=absRound(z._months);if(!b.isValid()){return}O=O==null?true:O;if(c){setMonth(b,get(b,"Month")+c*p)}if(e){set$1(b,"Date",get(b,"Date")+e*p)}if(o){b._d.setTime(b._d.valueOf()+o*p)}if(O){hooks.updateOffset(b,e||c)}}var gM=createAdder(1,"add"),IM=createAdder(-1,"subtract");function isString(b){return typeof b==="string"||b instanceof String}function isMomentInput(b){return isMoment(b)||isDate(b)||isString(b)||isNumber(b)||isNumberOrStringArray(b)||isMomentInputObject(b)||b===null||b===undefined}function isMomentInputObject(b){var z=isObject(b)&&!isObjectEmpty(b),p=false,O=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,e,c=O.length;for(o=0;o<c;o+=1){e=O[o];p=p||hasOwnProp(b,e)}return z&&p}function isNumberOrStringArray(b){var z=isArray(b),p=false;if(z){p=b.filter((function(z){return!isNumber(z)&&isString(b)})).length===0}return z&&p}function isCalendarSpec(b){var z=isObject(b)&&!isObjectEmpty(b),p=false,O=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,e;for(o=0;o<O.length;o+=1){e=O[o];p=p||hasOwnProp(b,e)}return z&&p}function getCalendarFormat(b,z){var p=b.diff(z,"days",true);return p<-6?"sameElse":p<-1?"lastWeek":p<0?"lastDay":p<1?"sameDay":p<2?"nextDay":p<7?"nextWeek":"sameElse"}function calendar$1(b,z){if(arguments.length===1){if(!arguments[0]){b=undefined;z=undefined}else if(isMomentInput(arguments[0])){b=arguments[0];z=undefined}else if(isCalendarSpec(arguments[0])){z=arguments[0];b=undefined}}var p=b||createLocal(),O=cloneWithOffset(p,this).startOf("day"),o=hooks.calendarFormat(this,O)||"sameElse",e=z&&(isFunction(z[o])?z[o].call(this,p):z[o]);return this.format(e||this.localeData().calendar(o,this,createLocal(p)))}function clone(){return new Moment(this)}function isAfter(b,z){var p=isMoment(b)?b:createLocal(b);if(!(this.isValid()&&p.isValid())){return false}z=normalizeUnits(z)||"millisecond";if(z==="millisecond"){return this.valueOf()>p.valueOf()}else{return p.valueOf()<this.clone().startOf(z).valueOf()}}function isBefore(b,z){var p=isMoment(b)?b:createLocal(b);if(!(this.isValid()&&p.isValid())){return false}z=normalizeUnits(z)||"millisecond";if(z==="millisecond"){return this.valueOf()<p.valueOf()}else{return this.clone().endOf(z).valueOf()<p.valueOf()}}function isBetween(b,z,p,O){var o=isMoment(b)?b:createLocal(b),e=isMoment(z)?z:createLocal(z);if(!(this.isValid()&&o.isValid()&&e.isValid())){return false}O=O||"()";return(O[0]==="("?this.isAfter(o,p):!this.isBefore(o,p))&&(O[1]===")"?this.isBefore(e,p):!this.isAfter(e,p))}function isSame(b,z){var p=isMoment(b)?b:createLocal(b),O;if(!(this.isValid()&&p.isValid())){return false}z=normalizeUnits(z)||"millisecond";if(z==="millisecond"){return this.valueOf()===p.valueOf()}else{O=p.valueOf();return this.clone().startOf(z).valueOf()<=O&&O<=this.clone().endOf(z).valueOf()}}function isSameOrAfter(b,z){return this.isSame(b,z)||this.isAfter(b,z)}function isSameOrBefore(b,z){return this.isSame(b,z)||this.isBefore(b,z)}function diff(b,z,p){var O,o,e;if(!this.isValid()){return NaN}O=cloneWithOffset(b,this);if(!O.isValid()){return NaN}o=(O.utcOffset()-this.utcOffset())*6e4;z=normalizeUnits(z);switch(z){case"year":e=monthDiff(this,O)/12;break;case"month":e=monthDiff(this,O);break;case"quarter":e=monthDiff(this,O)/3;break;case"second":e=(this-O)/1e3;break;case"minute":e=(this-O)/6e4;break;case"hour":e=(this-O)/36e5;break;case"day":e=(this-O-o)/864e5;break;case"week":e=(this-O-o)/6048e5;break;default:e=this-O}return p?e:absFloor(e)}function monthDiff(b,z){if(b.date()<z.date()){return-monthDiff(z,b)}var p=(z.year()-b.year())*12+(z.month()-b.month()),O=b.clone().add(p,"months"),o,e;if(z-O<0){o=b.clone().add(p-1,"months");e=(z-O)/(O-o)}else{o=b.clone().add(p+1,"months");e=(z-O)/(o-O)}return-(p+e)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(b){if(!this.isValid()){return null}var z=b!==true,p=z?this.clone().utc():this;if(p.year()<0||p.year()>9999){return formatMoment(p,z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(isFunction(Date.prototype.toISOString)){if(z){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(p,"Z"))}}return formatMoment(p,z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var b="moment",z="",p,O,o,e;if(!this.isLocal()){b=this.utcOffset()===0?"moment.utc":"moment.parseZone";z="Z"}p="["+b+'("]';O=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";o="-MM-DD[T]HH:mm:ss.SSS";e=z+'[")]';return this.format(p+O+o+e)}function format(b){if(!b){b=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat}var z=formatMoment(this,b);return this.localeData().postformat(z)}function from(b,z){if(this.isValid()&&(isMoment(b)&&b.isValid()||createLocal(b).isValid())){return createDuration({to:this,from:b}).locale(this.locale()).humanize(!z)}else{return this.localeData().invalidDate()}}function fromNow(b){return this.from(createLocal(),b)}function to(b,z){if(this.isValid()&&(isMoment(b)&&b.isValid()||createLocal(b).isValid())){return createDuration({from:this,to:b}).locale(this.locale()).humanize(!z)}else{return this.localeData().invalidDate()}}function toNow(b){return this.to(createLocal(),b)}function locale(b){var z;if(b===undefined){return this._locale._abbr}else{z=getLocale(b);if(z!=null){this._locale=z}return this}}var CM=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(b){if(b===undefined){return this.localeData()}else{return this.locale(b)}}));function localeData(){return this._locale}var XM=1e3,DM=60*XM,PM=60*DM,wM=(365*400+97)*24*PM;function mod$1(b,z){return(b%z+z)%z}function localStartOfDate(b,z,p){if(b<100&&b>=0){return new Date(b+400,z,p)-wM}else{return new Date(b,z,p).valueOf()}}function utcStartOfDate(b,z,p){if(b<100&&b>=0){return Date.UTC(b+400,z,p)-wM}else{return Date.UTC(b,z,p)}}function startOf(b){var z,p;b=normalizeUnits(b);if(b===undefined||b==="millisecond"||!this.isValid()){return this}p=this._isUTC?utcStartOfDate:localStartOfDate;switch(b){case"year":z=p(this.year(),0,1);break;case"quarter":z=p(this.year(),this.month()-this.month()%3,1);break;case"month":z=p(this.year(),this.month(),1);break;case"week":z=p(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":z=p(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":z=p(this.year(),this.month(),this.date());break;case"hour":z=this._d.valueOf();z-=mod$1(z+(this._isUTC?0:this.utcOffset()*DM),PM);break;case"minute":z=this._d.valueOf();z-=mod$1(z,DM);break;case"second":z=this._d.valueOf();z-=mod$1(z,XM);break}this._d.setTime(z);hooks.updateOffset(this,true);return this}function endOf(b){var z,p;b=normalizeUnits(b);if(b===undefined||b==="millisecond"||!this.isValid()){return this}p=this._isUTC?utcStartOfDate:localStartOfDate;switch(b){case"year":z=p(this.year()+1,0,1)-1;break;case"quarter":z=p(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":z=p(this.year(),this.month()+1,1)-1;break;case"week":z=p(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":z=p(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":z=p(this.year(),this.month(),this.date()+1)-1;break;case"hour":z=this._d.valueOf();z+=PM-mod$1(z+(this._isUTC?0:this.utcOffset()*DM),PM)-1;break;case"minute":z=this._d.valueOf();z+=DM-mod$1(z,DM)-1;break;case"second":z=this._d.valueOf();z+=XM-mod$1(z,XM)-1;break}this._d.setTime(z);hooks.updateOffset(this,true);return this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var b=this;return[b.year(),b.month(),b.date(),b.hour(),b.minute(),b.second(),b.millisecond()]}function toObject(){var b=this;return{years:b.year(),months:b.month(),date:b.date(),hours:b.hours(),minutes:b.minutes(),seconds:b.seconds(),milliseconds:b.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(b,z,p,O){var o=p._locale.erasParse(b,O,p._strict);if(o){getParsingFlags(p).era=o}else{getParsingFlags(p).invalidEra=b}}));addRegexToken("y",C);addRegexToken("yy",C);addRegexToken("yyy",C);addRegexToken("yyyy",C);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],v);addParseToken(["yo"],(function(b,z,p,O){var o;if(p._locale._eraYearOrdinalRegex){o=b.match(p._locale._eraYearOrdinalRegex)}if(p._locale.eraYearOrdinalParse){z[v]=p._locale.eraYearOrdinalParse(b,o)}else{z[v]=parseInt(b,10)}}));function localeEras(b,z){var p,O,o,e=this._eras||getLocale("en")._eras;for(p=0,O=e.length;p<O;++p){switch(typeof e[p].since){case"string":o=hooks(e[p].since).startOf("day");e[p].since=o.valueOf();break}switch(typeof e[p].until){case"undefined":e[p].until=+Infinity;break;case"string":o=hooks(e[p].until).startOf("day").valueOf();e[p].until=o.valueOf();break}}return e}function localeErasParse(b,z,p){var O,o,e=this.eras(),c,t,i;b=b.toUpperCase();for(O=0,o=e.length;O<o;++O){c=e[O].name.toUpperCase();t=e[O].abbr.toUpperCase();i=e[O].narrow.toUpperCase();if(p){switch(z){case"N":case"NN":case"NNN":if(t===b){return e[O]}break;case"NNNN":if(c===b){return e[O]}break;case"NNNNN":if(i===b){return e[O]}break}}else if([c,t,i].indexOf(b)>=0){return e[O]}}}function localeErasConvertYear(b,z){var p=b.since<=b.until?+1:-1;if(z===undefined){return hooks(b.since).year()}else{return hooks(b.since).year()+(z-b.offset)*p}}function getEraName(){var b,z,p,O=this.localeData().eras();for(b=0,z=O.length;b<z;++b){p=this.clone().startOf("day").valueOf();if(O[b].since<=p&&p<=O[b].until){return O[b].name}if(O[b].until<=p&&p<=O[b].since){return O[b].name}}return""}function getEraNarrow(){var b,z,p,O=this.localeData().eras();for(b=0,z=O.length;b<z;++b){p=this.clone().startOf("day").valueOf();if(O[b].since<=p&&p<=O[b].until){return O[b].narrow}if(O[b].until<=p&&p<=O[b].since){return O[b].narrow}}return""}function getEraAbbr(){var b,z,p,O=this.localeData().eras();for(b=0,z=O.length;b<z;++b){p=this.clone().startOf("day").valueOf();if(O[b].since<=p&&p<=O[b].until){return O[b].abbr}if(O[b].until<=p&&p<=O[b].since){return O[b].abbr}}return""}function getEraYear(){var b,z,p,O,o=this.localeData().eras();for(b=0,z=o.length;b<z;++b){p=o[b].since<=o[b].until?+1:-1;O=this.clone().startOf("day").valueOf();if(o[b].since<=O&&O<=o[b].until||o[b].until<=O&&O<=o[b].since){return(this.year()-hooks(o[b].since).year())*p+o[b].offset}}return this.year()}function erasNameRegex(b){if(!hasOwnProp(this,"_erasNameRegex")){computeErasParse.call(this)}return b?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(b){if(!hasOwnProp(this,"_erasAbbrRegex")){computeErasParse.call(this)}return b?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(b){if(!hasOwnProp(this,"_erasNarrowRegex")){computeErasParse.call(this)}return b?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(b,z){return z.erasAbbrRegex(b)}function matchEraName(b,z){return z.erasNameRegex(b)}function matchEraNarrow(b,z){return z.erasNarrowRegex(b)}function matchEraYearOrdinal(b,z){return z._eraYearOrdinalRegex||C}function computeErasParse(){var b=[],z=[],p=[],O=[],o,e,c=this.eras();for(o=0,e=c.length;o<e;++o){z.push(regexEscape(c[o].name));b.push(regexEscape(c[o].abbr));p.push(regexEscape(c[o].narrow));O.push(regexEscape(c[o].name));O.push(regexEscape(c[o].abbr));O.push(regexEscape(c[o].narrow))}this._erasRegex=new RegExp("^("+O.join("|")+")","i");this._erasNameRegex=new RegExp("^("+z.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+b.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+p.join("|")+")","i")}addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100}));addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100}));function addWeekYearFormatToken(b,z){addFormatToken(0,[b,b.length],0,z)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addUnitPriority("weekYear",1);addUnitPriority("isoWeekYear",1);addRegexToken("G",X);addRegexToken("g",X);addRegexToken("GG",L,_);addRegexToken("gg",L,_);addRegexToken("GGGG",g,N);addRegexToken("gggg",g,N);addRegexToken("GGGGG",I,E);addRegexToken("ggggg",I,E);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(b,z,p,O){z[O.substr(0,2)]=toInt(b)}));addWeekParseToken(["gg","GG"],(function(b,z,p,O){z[O]=hooks.parseTwoDigitYear(b)}));function getSetWeekYear(b){return getSetWeekYearHelper.call(this,b,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(b){return getSetWeekYearHelper.call(this,b,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var b=this.localeData()._week;return weeksInYear(this.year(),b.dow,b.doy)}function getWeeksInWeekYear(){var b=this.localeData()._week;return weeksInYear(this.weekYear(),b.dow,b.doy)}function getSetWeekYearHelper(b,z,p,O,o){var e;if(b==null){return weekOfYear(this,O,o).year}else{e=weeksInYear(b,O,o);if(z>e){z=e}return setWeekAll.call(this,b,z,p,O,o)}}function setWeekAll(b,z,p,O,o){var e=dayOfYearFromWeeks(b,z,p,O,o),c=createUTCDate(e.year,0,e.dayOfYear);this.year(c.getUTCFullYear());this.month(c.getUTCMonth());this.date(c.getUTCDate());return this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",l);addParseToken("Q",(function(b,z){z[F]=(toInt(b)-1)*3}));function getSetQuarter(b){return b==null?Math.ceil((this.month()+1)/3):this.month((b-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",L);addRegexToken("DD",L,_);addRegexToken("Do",(function(b,z){return b?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient}));addParseToken(["D","DD"],G);addParseToken("Do",(function(b,z){z[G]=toInt(b.match(L)[0])}));var UM=makeGetSet("Date",true);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",m);addRegexToken("DDDD",h);addParseToken(["DDD","DDDD"],(function(b,z,p){p._dayOfYear=toInt(b)}));function getSetDayOfYear(b){var z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return b==null?z:this.add(b-z,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",L);addRegexToken("mm",L,_);addParseToken(["m","mm"],H);var kM=makeGetSet("Minutes",false);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",L);addRegexToken("ss",L,_);addParseToken(["s","ss"],V);var yM=makeGetSet("Seconds",false);addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)}));addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)}));addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,(function(){return this.millisecond()*10}));addFormatToken(0,["SSSSS",5],0,(function(){return this.millisecond()*100}));addFormatToken(0,["SSSSSS",6],0,(function(){return this.millisecond()*1e3}));addFormatToken(0,["SSSSSSS",7],0,(function(){return this.millisecond()*1e4}));addFormatToken(0,["SSSSSSSS",8],0,(function(){return this.millisecond()*1e5}));addFormatToken(0,["SSSSSSSSS",9],0,(function(){return this.millisecond()*1e6}));addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",m,l);addRegexToken("SS",m,_);addRegexToken("SSS",m,h);var vM,FM;for(vM="SSSS";vM.length<=9;vM+="S"){addRegexToken(vM,C)}function parseMs(b,z){z[Y]=toInt(("0."+b)*1e3)}for(vM="S";vM.length<=9;vM+="S"){addParseToken(vM,parseMs)}FM=makeGetSet("Milliseconds",false);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var GM=Moment.prototype;GM.add=gM;GM.calendar=calendar$1;GM.clone=clone;GM.diff=diff;GM.endOf=endOf;GM.format=format;GM.from=from;GM.fromNow=fromNow;GM.to=to;GM.toNow=toNow;GM.get=stringGet;GM.invalidAt=invalidAt;GM.isAfter=isAfter;GM.isBefore=isBefore;GM.isBetween=isBetween;GM.isSame=isSame;GM.isSameOrAfter=isSameOrAfter;GM.isSameOrBefore=isSameOrBefore;GM.isValid=isValid$2;GM.lang=CM;GM.locale=locale;GM.localeData=localeData;GM.max=LM;GM.min=EM;GM.parsingFlags=parsingFlags;GM.set=stringSet;GM.startOf=startOf;GM.subtract=IM;GM.toArray=toArray;GM.toObject=toObject;GM.toDate=toDate;GM.toISOString=toISOString;GM.inspect=inspect;if(typeof Symbol!=="undefined"&&Symbol.for!=null){GM[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}}GM.toJSON=toJSON;GM.toString=toString;GM.unix=unix;GM.valueOf=valueOf;GM.creationData=creationData;GM.eraName=getEraName;GM.eraNarrow=getEraNarrow;GM.eraAbbr=getEraAbbr;GM.eraYear=getEraYear;GM.year=pM;GM.isLeapYear=getIsLeapYear;GM.weekYear=getSetWeekYear;GM.isoWeekYear=getSetISOWeekYear;GM.quarter=GM.quarters=getSetQuarter;GM.month=getSetMonth;GM.daysInMonth=getDaysInMonth;GM.week=GM.weeks=getSetWeek;GM.isoWeek=GM.isoWeeks=getSetISOWeek;GM.weeksInYear=getWeeksInYear;GM.weeksInWeekYear=getWeeksInWeekYear;GM.isoWeeksInYear=getISOWeeksInYear;GM.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;GM.date=UM;GM.day=GM.days=getSetDayOfWeek;GM.weekday=getSetLocaleDayOfWeek;GM.isoWeekday=getSetISODayOfWeek;GM.dayOfYear=getSetDayOfYear;GM.hour=GM.hours=sM;GM.minute=GM.minutes=kM;GM.second=GM.seconds=yM;GM.millisecond=GM.milliseconds=FM;GM.utcOffset=getSetOffset;GM.utc=setOffsetToUTC;GM.local=setOffsetToLocal;GM.parseZone=setOffsetToParsedOffset;GM.hasAlignedHourOffset=hasAlignedHourOffset;GM.isDST=isDaylightSavingTime;GM.isLocal=isLocal;GM.isUtcOffset=isUtcOffset;GM.isUtc=isUtc;GM.isUTC=isUtc;GM.zoneAbbr=getZoneAbbr;GM.zoneName=getZoneName;GM.dates=deprecate("dates accessor is deprecated. Use date instead.",UM);GM.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);GM.years=deprecate("years accessor is deprecated. Use year instead",pM);GM.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);GM.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(b){return createLocal(b*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(b){return b}var xM=Locale.prototype;xM.calendar=calendar;xM.longDateFormat=longDateFormat;xM.invalidDate=invalidDate;xM.ordinal=ordinal;xM.preparse=preParsePostFormat;xM.postformat=preParsePostFormat;xM.relativeTime=relativeTime;xM.pastFuture=pastFuture;xM.set=set;xM.eras=localeEras;xM.erasParse=localeErasParse;xM.erasConvertYear=localeErasConvertYear;xM.erasAbbrRegex=erasAbbrRegex;xM.erasNameRegex=erasNameRegex;xM.erasNarrowRegex=erasNarrowRegex;xM.months=localeMonths;xM.monthsShort=localeMonthsShort;xM.monthsParse=localeMonthsParse;xM.monthsRegex=monthsRegex;xM.monthsShortRegex=monthsShortRegex;xM.week=localeWeek;xM.firstDayOfYear=localeFirstDayOfYear;xM.firstDayOfWeek=localeFirstDayOfWeek;xM.weekdays=localeWeekdays;xM.weekdaysMin=localeWeekdaysMin;xM.weekdaysShort=localeWeekdaysShort;xM.weekdaysParse=localeWeekdaysParse;xM.weekdaysRegex=weekdaysRegex;xM.weekdaysShortRegex=weekdaysShortRegex;xM.weekdaysMinRegex=weekdaysMinRegex;xM.isPM=localeIsPM;xM.meridiem=localeMeridiem;function get$1(b,z,p,O){var o=getLocale(),e=createUTC().set(O,z);return o[p](e,b)}function listMonthsImpl(b,z,p){if(isNumber(b)){z=b;b=undefined}b=b||"";if(z!=null){return get$1(b,z,p,"month")}var O,o=[];for(O=0;O<12;O++){o[O]=get$1(b,O,p,"month")}return o}function listWeekdaysImpl(b,z,p,O){if(typeof b==="boolean"){if(isNumber(z)){p=z;z=undefined}z=z||""}else{z=b;p=z;b=false;if(isNumber(z)){p=z;z=undefined}z=z||""}var o=getLocale(),e=b?o._week.dow:0,c,t=[];if(p!=null){return get$1(z,(p+e)%7,O,"day")}for(c=0;c<7;c++){t[c]=get$1(z,(c+e)%7,O,"day")}return t}function listMonths(b,z){return listMonthsImpl(b,z,"months")}function listMonthsShort(b,z){return listMonthsImpl(b,z,"monthsShort")}function listWeekdays(b,z,p){return listWeekdaysImpl(b,z,p,"weekdays")}function listWeekdaysShort(b,z,p){return listWeekdaysImpl(b,z,p,"weekdaysShort")}function listWeekdaysMin(b,z,p){return listWeekdaysImpl(b,z,p,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(b){var z=b%10,p=toInt(b%100/10)===1?"th":z===1?"st":z===2?"nd":z===3?"rd":"th";return b+p}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var HM=Math.abs;function abs(){var b=this._data;this._milliseconds=HM(this._milliseconds);this._days=HM(this._days);this._months=HM(this._months);b.milliseconds=HM(b.milliseconds);b.seconds=HM(b.seconds);b.minutes=HM(b.minutes);b.hours=HM(b.hours);b.months=HM(b.months);b.years=HM(b.years);return this}function addSubtract$1(b,z,p,O){var o=createDuration(z,p);b._milliseconds+=O*o._milliseconds;b._days+=O*o._days;b._months+=O*o._months;return b._bubble()}function add$1(b,z){return addSubtract$1(this,b,z,1)}function subtract$1(b,z){return addSubtract$1(this,b,z,-1)}function absCeil(b){if(b<0){return Math.floor(b)}else{return Math.ceil(b)}}function bubble(){var b=this._milliseconds,z=this._days,p=this._months,O=this._data,o,e,c,t,i;if(!(b>=0&&z>=0&&p>=0||b<=0&&z<=0&&p<=0)){b+=absCeil(monthsToDays(p)+z)*864e5;z=0;p=0}O.milliseconds=b%1e3;o=absFloor(b/1e3);O.seconds=o%60;e=absFloor(o/60);O.minutes=e%60;c=absFloor(e/60);O.hours=c%24;z+=absFloor(c/24);i=absFloor(daysToMonths(z));p+=i;z-=absCeil(monthsToDays(i));t=absFloor(p/12);p%=12;O.days=z;O.months=p;O.years=t;return this}function daysToMonths(b){return b*4800/146097}function monthsToDays(b){return b*146097/4800}function as(b){if(!this.isValid()){return NaN}var z,p,O=this._milliseconds;b=normalizeUnits(b);if(b==="month"||b==="quarter"||b==="year"){z=this._days+O/864e5;p=this._months+daysToMonths(z);switch(b){case"month":return p;case"quarter":return p/3;case"year":return p/12}}else{z=this._days+Math.round(monthsToDays(this._months));switch(b){case"week":return z/7+O/6048e5;case"day":return z+O/864e5;case"hour":return z*24+O/36e5;case"minute":return z*1440+O/6e4;case"second":return z*86400+O/1e3;case"millisecond":return Math.floor(z*864e5)+O;default:throw new Error("Unknown unit "+b)}}}function valueOf$1(){if(!this.isValid()){return NaN}return this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6}function makeAs(b){return function(){return this.as(b)}}var VM=makeAs("ms"),YM=makeAs("s"),KM=makeAs("m"),jM=makeAs("h"),QM=makeAs("d"),JM=makeAs("w"),ZM=makeAs("M"),$M=makeAs("Q"),Mb=makeAs("y");function clone$1(){return createDuration(this)}function get$2(b){b=normalizeUnits(b);return this.isValid()?this[b+"s"]():NaN}function makeGetter(b){return function(){return this.isValid()?this._data[b]:NaN}}var bb=makeGetter("milliseconds"),zb=makeGetter("seconds"),pb=makeGetter("minutes"),Ob=makeGetter("hours"),ob=makeGetter("days"),eb=makeGetter("months"),cb=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var tb=Math.round,Ab={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(b,z,p,O,o){return o.relativeTime(z||1,!!p,b,O)}function relativeTime$1(b,z,p,O){var o=createDuration(b).abs(),e=tb(o.as("s")),c=tb(o.as("m")),t=tb(o.as("h")),i=tb(o.as("d")),n=tb(o.as("M")),s=tb(o.as("w")),a=tb(o.as("y")),r=e<=p.ss&&["s",e]||e<p.s&&["ss",e]||c<=1&&["m"]||c<p.m&&["mm",c]||t<=1&&["h"]||t<p.h&&["hh",t]||i<=1&&["d"]||i<p.d&&["dd",i];if(p.w!=null){r=r||s<=1&&["w"]||s<p.w&&["ww",s]}r=r||n<=1&&["M"]||n<p.M&&["MM",n]||a<=1&&["y"]||["yy",a];r[2]=z;r[3]=+b>0;r[4]=O;return substituteTimeAgo.apply(null,r)}function getSetRelativeTimeRounding(b){if(b===undefined){return tb}if(typeof b==="function"){tb=b;return true}return false}function getSetRelativeTimeThreshold(b,z){if(Ab[b]===undefined){return false}if(z===undefined){return Ab[b]}Ab[b]=z;if(b==="s"){Ab.ss=z-1}return true}function humanize(b,z){if(!this.isValid()){return this.localeData().invalidDate()}var p=false,O=Ab,o,e;if(typeof b==="object"){z=b;b=false}if(typeof b==="boolean"){p=b}if(typeof z==="object"){O=Object.assign({},Ab,z);if(z.s!=null&&z.ss==null){O.ss=z.s-1}}o=this.localeData();e=relativeTime$1(this,!p,O,o);if(p){e=o.pastFuture(+this,e)}return o.postformat(e)}var ib=Math.abs;function sign(b){return(b>0)-(b<0)||+b}function toISOString$1(){if(!this.isValid()){return this.localeData().invalidDate()}var b=ib(this._milliseconds)/1e3,z=ib(this._days),p=ib(this._months),O,o,e,c,t=this.asSeconds(),i,n,s,a;if(!t){return"P0D"}O=absFloor(b/60);o=absFloor(O/60);b%=60;O%=60;e=absFloor(p/12);p%=12;c=b?b.toFixed(3).replace(/\.?0+$/,""):"";i=t<0?"-":"";n=sign(this._months)!==sign(t)?"-":"";s=sign(this._days)!==sign(t)?"-":"";a=sign(this._milliseconds)!==sign(t)?"-":"";return i+"P"+(e?n+e+"Y":"")+(p?n+p+"M":"")+(z?s+z+"D":"")+(o||O||b?"T":"")+(o?a+o+"H":"")+(O?a+O+"M":"")+(b?a+c+"S":"")}var nb=Duration.prototype;nb.isValid=isValid$1;nb.abs=abs;nb.add=add$1;nb.subtract=subtract$1;nb.as=as;nb.asMilliseconds=VM;nb.asSeconds=YM;nb.asMinutes=KM;nb.asHours=jM;nb.asDays=QM;nb.asWeeks=JM;nb.asMonths=ZM;nb.asQuarters=$M;nb.asYears=Mb;nb.valueOf=valueOf$1;nb._bubble=bubble;nb.clone=clone$1;nb.get=get$2;nb.milliseconds=bb;nb.seconds=zb;nb.minutes=pb;nb.hours=Ob;nb.days=ob;nb.weeks=weeks;nb.months=eb;nb.years=cb;nb.humanize=humanize;nb.toISOString=toISOString$1;nb.toString=toISOString$1;nb.toJSON=toISOString$1;nb.locale=locale;nb.localeData=localeData;nb.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);nb.lang=CM;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",X);addRegexToken("X",w);addParseToken("X",(function(b,z,p){p._d=new Date(parseFloat(b)*1e3)}));addParseToken("x",(function(b,z,p){p._d=new Date(toInt(b))}));
14
14
  //! moment.js
15
- hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=GM;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=GM;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},3229:function(b,z,p){var O=p(2568);b.exports=function pleaseUpgradeNode(b,z){var z=z||{};var p=b.engines.node.replace(">=","");var o=process.version.replace("v","");if(O(o,p)===-1){if(z.message){console.error(z.message(p))}else{console.error(b.name+" requires at least version "+p+" of Node, please upgrade")}if(z.hasOwnProperty("exitCode")){process.exit(z.exitCode)}else{process.exit(1)}}}},5118:function(b,z,p){"use strict";var O=p(4300);var o=O.Buffer;var e={};var c;for(c in O){if(!O.hasOwnProperty(c))continue;if(c==="SlowBuffer"||c==="Buffer")continue;e[c]=O[c]}var t=e.Buffer={};for(c in o){if(!o.hasOwnProperty(c))continue;if(c==="allocUnsafe"||c==="allocUnsafeSlow")continue;t[c]=o[c]}e.Buffer.prototype=o.prototype;if(!t.from||t.from===Uint8Array.from){t.from=function(b,z,p){if(typeof b==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof b)}if(b&&typeof b.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}return o(b,z,p)}}if(!t.alloc){t.alloc=function(b,z,p){if(typeof b!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof b)}if(b<0||b>=2*(1<<30)){throw new RangeError('The value "'+b+'" is invalid for option "size"')}var O=o(b);if(!z||z.length===0){O.fill(0)}else if(typeof p==="string"){O.fill(z,p)}else{O.fill(z)}return O}}if(!e.kStringMaxLength){try{e.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(b){}}if(!e.constants){e.constants={MAX_LENGTH:e.kMaxLength};if(e.kStringMaxLength){e.constants.MAX_STRING_LENGTH=e.kStringMaxLength}}b.exports=e},2568:function(b){b.exports=function cmp(b,z){var p=b.split(".");var O=z.split(".");for(var o=0;o<3;o++){var e=Number(p[o]);var c=Number(O[o]);if(e>c)return 1;if(c>e)return-1;if(!isNaN(e)&&isNaN(c))return 1;if(isNaN(e)&&!isNaN(c))return-1}return 0}},4300:function(b){"use strict";b.exports=require("buffer")},6113:function(b){"use strict";b.exports=require("crypto")},2361:function(b){"use strict";b.exports=require("events")},7147:function(b){"use strict";b.exports=require("fs")},1808:function(b){"use strict";b.exports=require("net")},2037:function(b){"use strict";b.exports=require("os")},7282:function(b){"use strict";b.exports=require("process")},2781:function(b){"use strict";b.exports=require("stream")},1576:function(b){"use strict";b.exports=require("string_decoder")},4404:function(b){"use strict";b.exports=require("tls")},3837:function(b){"use strict";b.exports=require("util")},9796:function(b){"use strict";b.exports=require("zlib")},5078:function(b){var z=function(b){"use strict";Object.defineProperty(b,"__esModule",{value:true});b.default=void 0;
15
+ hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=GM;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=GM;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},3229:function(b,z,p){var O=p(2568);b.exports=function pleaseUpgradeNode(b,z){var z=z||{};var p=b.engines.node.replace(">=","");var o=process.version.replace("v","");if(O(o,p)===-1){if(z.message){console.error(z.message(p))}else{console.error(b.name+" requires at least version "+p+" of Node, please upgrade")}if(z.hasOwnProperty("exitCode")){process.exit(z.exitCode)}else{process.exit(1)}}}},5118:function(b,z,p){"use strict";var O=p(4300);var o=O.Buffer;var e={};var c;for(c in O){if(!O.hasOwnProperty(c))continue;if(c==="SlowBuffer"||c==="Buffer")continue;e[c]=O[c]}var t=e.Buffer={};for(c in o){if(!o.hasOwnProperty(c))continue;if(c==="allocUnsafe"||c==="allocUnsafeSlow")continue;t[c]=o[c]}e.Buffer.prototype=o.prototype;if(!t.from||t.from===Uint8Array.from){t.from=function(b,z,p){if(typeof b==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof b)}if(b&&typeof b.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}return o(b,z,p)}}if(!t.alloc){t.alloc=function(b,z,p){if(typeof b!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof b)}if(b<0||b>=2*(1<<30)){throw new RangeError('The value "'+b+'" is invalid for option "size"')}var O=o(b);if(!z||z.length===0){O.fill(0)}else if(typeof p==="string"){O.fill(z,p)}else{O.fill(z)}return O}}if(!e.kStringMaxLength){try{e.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(b){}}if(!e.constants){e.constants={MAX_LENGTH:e.kMaxLength};if(e.kStringMaxLength){e.constants.MAX_STRING_LENGTH=e.kStringMaxLength}}b.exports=e},2568:function(b){b.exports=function cmp(b,z){var p=b.split(".");var O=z.split(".");for(var o=0;o<3;o++){var e=Number(p[o]);var c=Number(O[o]);if(e>c)return 1;if(c>e)return-1;if(!isNaN(e)&&isNaN(c))return 1;if(isNaN(e)&&!isNaN(c))return-1}return 0}},4300:function(b){"use strict";b.exports=require("buffer")},6113:function(b){"use strict";b.exports=require("crypto")},2361:function(b){"use strict";b.exports=require("events")},7147:function(b){"use strict";b.exports=require("fs")},1808:function(b){"use strict";b.exports=require("net")},2037:function(b){"use strict";b.exports=require("os")},7282:function(b){"use strict";b.exports=require("process")},2781:function(b){"use strict";b.exports=require("stream")},1576:function(b){"use strict";b.exports=require("string_decoder")},4404:function(b){"use strict";b.exports=require("tls")},3837:function(b){"use strict";b.exports=require("util")},9796:function(b){"use strict";b.exports=require("zlib")},2694:function(b){var z=function(b){"use strict";Object.defineProperty(b,"__esModule",{value:true});b.default=void 0;
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2009 The Closure Library Authors